/******/ (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;
/******/
/******/ 	// identity function for calling harmony imports with the correct context
/******/ 	__webpack_require__.i = function(value) { return value; };
/******/
/******/ 	// 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 = 5);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {

﻿/* COPYRIGHT 2012 SUPERMAP
 * 本程序只能在有效的授权许可下使用。
 * 未经许可，不得以任何手段擅自使用或传播。*/

/**
 * @requires SuperMap/BaseTypes.js
 */

/**
 * Namespace: SuperMap.Lang
 * 国际化的命名空间，包含多种语言和方法库来设置和获取当前的语言。
 */
var SuperMap = window.SuperMap = window.SuperMap || {};

/***
 * @private
 * @type {{translate: SuperMap.PlotLang.translate}}
 */
SuperMap.PlotLang = {
    /**
     * APIMethod: translate
     * 从当前语言字符串的字典查找key。
     *     getCode获取的值用来判断合适的字典。字典存储在 <SuperMap.Lang> 方法中。
     *
     * Parameters:
     * key - {String} 字典中i18n字符串值的关键字.
     * context - {Object} <SuperMap.String.format> 使用此参数。
     *
     * Returns:
     * {String} 国际化的字符串。
     */
    translate: function(key, context) {
        var dictionary = SuperMap.PlotLang["zh-CN"];
        var message = dictionary && dictionary[key];
        if(!message) {
            // Message not found, fall back to message key
            message = key;
        }
        if(context) {
            message = SuperMap.String.format(message, context);
        }
        return message;
    }

};


/**
 * @private
 * APIMethod: SuperMap.plotI18n
 *  <SuperMap.Lang.translate> 的别名.  当前语言字符串的字典查找key。
 *  getCode获取的值用来判断合适的字典。字典存储在 <SuperMap.Lang> 方法中。
 *
 * Parameters:
 * key - {String} 字典中i18n字符串值的关键字.
 * context - {Object} <SuperMap.String.format> 使用此参数。
 *
 * Returns:
 * {String} 国际化的字符串。
 */
SuperMap.plotI18n = SuperMap.PlotLang.translate;


/**
 * @private
 * */
SuperMap.PlotLang["zh-CN"] = {
	//字体
	'SongTi':"宋体",
    //text
	'text':"文本",
    'textSizeLabel':"字体大小",
    'textSizeTitle':"字体大小",
    'textFaceNameLabel':"字体",
    'textFaceNameTitle':"字体",
    'textAlignLabel':"水平对齐方式",
    'textAlignTitle':"文本的水平对齐方式",
    'textVerticalAlignmentLabel':"垂直对齐方式",
    'textVerticalAlignmentTitle':"文本的垂直对齐方式",
    'textHaloRadiusLabel':"文本边框宽度",
    'textHaloRadiusTitle':"文本的外围边框的宽度",
    'textHaloColorLabel':"文本边框颜色",
    'textHaloColorTitle':"文本的外围边框的颜色",
    'textFillLabel':"文本颜色",
    'textFillTitle':"文本的颜色值",
    'textOpacityLabel':"透明度",
    'textOpacityTitle':"文本的透明度",
    'textDxLabel':"横向偏移",
    'textDxTitle':"文本的横向偏移值",
    'textDyLabel':"纵向偏移值",
    'textDyTitle':"文本的纵向偏移值",
    'textCompOpLabel':"叠加方式",
    'textCompOpTitle':"文本之间相互叠加里使用的覆盖或者是异或等运算方式",
    'expandingPointContent':"展",
    'volleyPointContent':"齐",
    'rendezvousPointContent':"会",
    'supplyPointContent':"补",
    //symbolAlgo
	//JB
    'symbolAlgo_17703':"加",
    'symbolAlgo_17704':"急",
    'symbolAlgo_21600':"冲",
    'symbolAlgo_28000_1':"危",
    'symbolAlgo_28000_2':"中",
    'symbolAlgo_28000_3':"轻",
    'symbolAlgo_315':"突击",
    'symbolAlgo_31304':"慑阻",
    'symbolAlgo_3010301':"调",
    'symbolAlgo_3010303':"出",
    'symbolAlgo_3010304':"协",

	//WJ
    'symbolAlgo_2121505':"火",
    'symbolAlgo_2121506':"墩",
    'symbolAlgo_2121507':"复",
    'symbolAlgo_2121601':"遥",
    'symbolAlgo_2121602':"障",
    'symbolAlgo_30010':"?",
    'symbolAlgo_3001101':"集",
    'symbolAlgo_3001102':"暴",
    'symbolAlgo_3001103':"骚",
    'symbolAlgo_3001104':"私",
    'symbolAlgo_3001105':"盗",
    'symbolAlgo_30020':"水",
    'symbolAlgo_3002001':"震",
    'symbolAlgo_3002004':"火",
    'symbolAlgo_30025':"滞",
    'symbolAlgo_5010301':"调",
    'symbolAlgo_5010303':"出",
    'symbolAlgo_5010304':"协",
    'symbolAlgo_5010401':"JZ",
    'symbolAlgo_5022001':"ZD0",
    'symbolAlgo_5034801':"催",
    "symbolAlgo_60203":"避",
    'symbolAlgo_60301':"爆",
    'symbolAlgo_6030101':"挖",
    'symbolAlgo_6030102':"浇",
    'symbolAlgo_6030103':"砌",
    'symbolAlgo_6030104':"装",
    'symbolAlgo_6030105':"石",
    'symbolAlgo_6030106':"沙",
    'symbolAlgo_6030107':"练",
    'symbolAlgo_60304':"隧",
    'symbolAlgo_3002501':"踏",
    'symbolAlgo_30026':"灾",
    'symbolAlgo_40104':"缉",
    'symbolAlgo_4030301':"标",
    'symbolAlgo_4030302':"劝",
    'symbolAlgo_4030303':"疏",
    'symbolAlgo_40304':"警",
    'symbolAlgo_4030401':"警",

    //basic symbol
    'polyLine':"折线",
    'parallelogram':"平行四边形",
    'circle':"圆",
    'ellipse':"椭圆",
    'annotation':"注记",
    'regularPolygon':"正多边形",
    'polygon':"多边形",
    'bezier':"贝塞尔曲线",
    'closedBesselCurve':"闭合贝塞尔曲线",
    'kidney':"集结地",
    'brace':"大括号",
    'trapezoid':"梯形",
    'rectangle':"矩形",
    'chord':"弓形",
    'sector':"扇形",
    'arc':"弧线",
    'parallel':"平行线",
    'annoframe':"注记指示框",
    'tooltipBoxM':"多角标注框",
    'runway':"跑道线",
    'curveEight':"八字形",
    'arrowLine':"箭头线",
    'pathText':"沿线注记",
    'concentricCircle':"同心圆",
    'combinedCircle':"组合圆",
    'freeCurve':"自由线",
    'nodeChain':"节点链",
    'lineMarking':"线型标注",
    'symbolTextBox':"标注框",

    'parallelFlatArrow':"平行平耳箭头",
    'multipleArrow':"多箭头",
    'trapezoidalFlatArrow':"梯形平耳箭头",
    'besselPointArrow':"贝塞尔尖耳箭头",
    'besselArrow':"普通贝塞尔箭头",
    'doubleArrow':"钳击箭头",
    'brokenSpaceTriangleArrow':"折线空三角箭头",
    'besselDovetailArrow':"贝塞尔燕尾箭头",
    'ordinaryLineArrow':"普通折线箭头",
    'besselPointedEarsTailArrow':"贝塞尔尖耳燕尾箭头",
    'besselTipArrow':"贝塞尔尖耳单点箭头",
    'besselArrowNoGraph':"普通贝塞尔箭头(不随图)",
    'brokenSpaceTriangleArrowNoGraph':"折线空三角箭头(不随图)",
    'besselPointedEarsTailArrowNoGraph':"贝塞尔尖耳燕尾箭头(不随图)",
    'ordinaryLineArrowNoGraph':"普通折线箭头(不随图)",
    'combianationArrow':"组合箭头",
    'symbolAlgo_311':'进攻方向',
    'symbolAlgo_317':'钳击',

    //new obj
    'airDeployment':"空军兵力部署",
    'airRoute':"空军航线",
    'arcRegion':"扇形区域",
    'flagGroup':"多旗",
    'lineRelation':"对象间连线",
    'polygonRegion':"多边形区域管理",
    'navyRoute':"海军航线",
    'missileRoute':"导弹航线",
    'navyDeployment':"海军兵力部署",
    'satelliteTimeWindows':"卫星时间窗",
    'satellite':"卫星",
    'symbolText':"对象标注",
    'symbolText1':"对象标注(带指示线)",
    'interferenceBeam':"干扰波束",
    'groupObject':"组合对象",

    //routeNodeTypeName
    'RENDEZVOUS': "会合点",
    'EXPANDING': "展开点",
    'VOLLEY': "齐射点",
    'STANDBY': "待机点",
    'SUPPLY': "补给点",
    'TAKEOFF': "起飞点",
    'INITIAL': "初始点",
    'VISUALINITAL': "可视初始点",
    'LANCH': "发射点",
    'TURNING': "转弯点",
    'AIMING': "瞄准点",
    'COMMONROUTE': "普通航路点",
    'WEAPONLAUNCH': "武器发射点",
    'TARGET': "目标点",
    'ATTACK':"攻击点",
    'SUPPRESS':"压制点",
    'EIGHTSPIRAL':"八字盘旋点",
    'HAPPYVALLEY':"跑马圈点",

    'LITERATESIGN':"标牌文字",

    'undoStackOverflow': '撤销的栈溢出',

    //Mapviewer
    'noContent':'无内容',
    'lableTitle': '_标签图层'

};



/***/ }),
/* 1 */
/***/ (function(module, exports) {

/*!
 * 
 *          iclient-plot-algorithms-jb.(http://iclient.supermap.io)
 *          Copyright© 2000 - 2020 SuperMap Software Co.Ltd
 *          version: v10.1.0-beta
 *         
 */!function(t){var e={};function l(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,l),i.l=!0,i.exports}l.m=t,l.c=e,l.d=function(t,e,o){l.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},l.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(l.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)l.d(o,i,function(e){return t[e]}.bind(null,i));return o},l.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="",l(l.s=225)}([function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4021102=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30800),e}();SuperMap.Plot.AlgoSymbol4021102=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4021101=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30800),e}();SuperMap.Plot.AlgoSymbol4021101=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020404=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){var e=.3*this.getSubSymbolScaleValue();e>.05&&(e=.05),this.scaleValues[0]=e}for(var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=Math.abs(l*this.scaleValues[0]),i=this.getDashLinePts(t,o),n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},a=1,r=0;r<i.length;r++){var s=i[r];if(0==a%2)if(2===s.length&&r!==i.length-1){var p=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*o,s[0],p),c=null;c=this.scaleValues[0]>0?u.pntLeft:u.pntRight,this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,s[0],s[1]],n)}else a--;i[r].length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),a++}var P=180*SuperMap.Plot.PlottingUtil.radian(t[0],t[1])/Math.PI;this.scaleValues[0]>0?P+=90:P-=90;var S=SuperMap.Plot.PlottingUtil.circlePoint(t[0],2*o,2*o,P);this.addScalePoint(S),this.finish()}}},{key:"getDashLinePts",value:function(t,e){var l=[],o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(e>o)return l;for(var i=SuperMap.Plot.PlottingUtil.clonePoints(t),n=2*parseInt(o/(1.5*e)),a=0;a<n;a++){var r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,e);if(-1!==r.index){if(0==a%2){for(var s=[],p=0;p<r.index+1;p++)s.push(i[p].clone());s.push(r.pt),l.push(s)}var u=[];u.push(r.pt);for(var c=r.index+1;c<i.length;c++)u.push(i[c]);i=(i=[]).concat(u)}}return i.length>0&&l.push(i),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=.5*SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;i>=.05&&(i=.05),SuperMap.Plot.PlottingUtil.isRight(e,l[0],l[1])&&(i=-i),this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol6020404=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020403=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=1.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(1.05));var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);2===this.controlPoints.length&&t.splice(1,0,new SuperMap.Geometry.Point(t[0].x+e,t[0].y));var l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=new SuperMap.Geometry.Point(t[2].x,t[2].y),n=SuperMap.Plot.PlottingUtil.distance(l,o),a=n*this.scaleValues[0],r=180*SuperMap.Plot.PlottingUtil.radian(l,o)/Math.PI%360,s=180*SuperMap.Plot.PlottingUtil.radian(l,i)/Math.PI%360;r>s&&(s+=360);var p=(s-r)/50,u=this.getArcPts(t[0],n,r,s,p),c=this.getArcPts(t[0],a,r,s,p);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0}),3===this.controlPoints.length&&(this.controlPoints[2]=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e,e,s)),this.addScalePoint(new SuperMap.Geometry.Point(c[c.length-1].x,c[c.length-1].y),0),this.finish()}}},{key:"getArcPts",value:function(t,e,l,o,i){void 0!==i&&null!==i||(i=1);for(var n=[],a=l;a<o;a+=i){var r=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,a);n.push(r)}var s=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,o);return n.push(s),n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),i=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;i>=1.01&&(this.scaleValues[0]=i)}}}]),e}();SuperMap.Plot.AlgoSymbol6020403=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4022102=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMap.Plot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){4>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var i=this.scaleValues[0],n=this.scaleValues[2],a=this.scaleValues[3],r=o*i,s=new SuperMap.Geometry.Point(l.x+o*n,l.y+o*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,r,0);var p=new SuperMap.Geometry.Point(s.x+r,s.y+r/2),u=new SuperMap.Geometry.Point(s.x+r,s.y-r/2),c=.3*r,P=SuperMap.Plot.PlottingUtil.radian(u,p)*SuperMap.Plot.PlottingUtil.RTOD,S=SuperMap.Plot.PlottingUtil.circlePoint(p,c,c,P+157.5),h=SuperMap.Plot.PlottingUtil.circlePoint(p,c,c,P+202.5),y=new SuperMap.Geometry.Point((S.x+h.x)/2,(S.y+h.y)/2),f=[];f.push(u),f.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,y,h,p],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0),this.addScalePoint(s);var g=r,M=SuperMap.Plot.PlottingUtil.circlePoint(s,g,g,90);this.addScalePoint(M),this.finish(),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol4022102=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4022101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMap.Plot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){4>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var i=this.scaleValues[0],n=this.scaleValues[2],a=this.scaleValues[3],r=o*i,s=new SuperMap.Geometry.Point(l.x+o*n,l.y+o*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,r,0);var p=new SuperMap.Geometry.Point(s.x+r,s.y+r/2),u=new SuperMap.Geometry.Point(s.x+r,s.y-r/2),c=.3*r,P=SuperMap.Plot.PlottingUtil.radian(p,u)*SuperMap.Plot.PlottingUtil.RTOD,S=SuperMap.Plot.PlottingUtil.circlePoint(u,c,c,P+157.5),h=SuperMap.Plot.PlottingUtil.circlePoint(u,c,c,P+202.5),y=new SuperMap.Geometry.Point((S.x+h.x)/2,(S.y+h.y)/2),f=[];f.push(p),f.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,y,h,u],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0),this.addScalePoint(s);var g=r,M=SuperMap.Plot.PlottingUtil.circlePoint(s,g,g,90);this.addScalePoint(M),this.finish(),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol4022101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4022100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23500),e}();SuperMap.Plot.AlgoSymbol4022100=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4020402=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.069485),l.scaleValues.push(.15),l.scaleValues.push(.1),l.scaleValues.push(1.731025),l.scaleValues.push(2.076877)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30102),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,a=e*this.scaleValues[2],r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.index,p=r.pt,u=new SuperMap.Geometry.Point(o[s].x,o[s].y),c=new SuperMap.Geometry.Point(o[s+1].x,o[s+1].y),P=180*SuperMap.Plot.PlottingUtil.radian(u,c)/Math.PI,S=SuperMap.Plot.PlottingUtil.circlePoint(p,a/2,a/2,P+n),h=SuperMap.Plot.PlottingUtil.circlePoint(p,a,a,P+n+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[S,h]);var y=180*SuperMap.Plot.PlottingUtil.radian(p,S)/Math.PI,f=new SuperMap.Geometry.Point(-.2*a,.05*a),g=new SuperMap.Geometry.Point(-.2*a,-.05*a),M=SuperMap.Plot.PlottingUtil.coordinateTrans(S,f,y),b=SuperMap.Plot.PlottingUtil.coordinateTrans(S,g,y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,M,b],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var m=.4*a*this.scaleValues[5],d=.4*a*this.scaleValues[6],v=new SuperMap.Geometry.Point(0,-.9*(m-.25*d)),O=new SuperMap.Geometry.Point(0,.9*(m-.25*d)),U=SuperMap.Plot.PlottingUtil.coordinateTrans(h,v,y),L=SuperMap.Plot.PlottingUtil.coordinateTrans(h,O,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[U,L]);var w=new SuperMap.Geometry.Point(0,-m),V=SuperMap.Plot.PlottingUtil.coordinateTrans(h,w,y),_=new SuperMap.Geometry.Point(.5*d,-.25*d),T=new SuperMap.Geometry.Point(-.25*d,-.25*d),A=new SuperMap.Geometry.Point(-.5*d,.25*d),E=new SuperMap.Geometry.Point(.5*d,.25*d),x=SuperMap.Plot.PlottingUtil.coordinateTrans(V,_,y),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(V,T,y),j=SuperMap.Plot.PlottingUtil.coordinateTrans(V,A,y),C=SuperMap.Plot.PlottingUtil.coordinateTrans(V,E,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[x,Y,j,C,x]);var I=new SuperMap.Geometry.Point(0,m),G=SuperMap.Plot.PlottingUtil.coordinateTrans(h,I,y),B=new SuperMap.Geometry.Point(0,.25*d),R=new SuperMap.Geometry.Point(.5*d,0),N=new SuperMap.Geometry.Point(0,-.25*d),D=new SuperMap.Geometry.Point(-.5*d,0),k=SuperMap.Plot.PlottingUtil.coordinateTrans(G,B,y),z=SuperMap.Plot.PlottingUtil.coordinateTrans(G,R,y),F=SuperMap.Plot.PlottingUtil.coordinateTrans(G,N,y),K=SuperMap.Plot.PlottingUtil.coordinateTrans(G,D,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[k,z,F,K,k]),this.addScalePoint(p,0);var W=SuperMap.Plot.PlottingUtil.circlePoint(p,a,a,P+n);this.addScalePoint(W,1);var q=new SuperMap.Geometry.Point(0,-m),J=SuperMap.Plot.PlottingUtil.coordinateTrans(h,q,y);this.addScalePoint(J,2);var H=new SuperMap.Geometry.Point(-.5*d,0),Q=SuperMap.Plot.PlottingUtil.coordinateTrans(G,H,y);this.addScalePoint(Q,3),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol4020402=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4020401=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.RTOD,a=e*this.scaleValues[2],r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.pt,p=r.index,u=new SuperMap.Geometry.Point(s.x,s.y),c=new SuperMap.Geometry.Point(o[p].x,o[p].y),P=new SuperMap.Geometry.Point(o[p+1].x,o[p+1].y),S=SuperMap.Plot.PlottingUtil.radian(c,P)*SuperMap.Plot.PlottingUtil.RTOD,h=SuperMap.Plot.PlottingUtil.circlePoint(u,1.5*a,1.5*a,S+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,h]);var y=SuperMap.Plot.PlottingUtil.radian(u,h)*SuperMap.Plot.PlottingUtil.RTOD,f=new SuperMap.Geometry.Point(-.2*a,.05*a),g=new SuperMap.Geometry.Point(-.2*a,-.05*a),M=SuperMap.Plot.PlottingUtil.coordinateTrans(h,f,y),b=SuperMap.Plot.PlottingUtil.coordinateTrans(h,g,y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[h,M,b],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var m=new SuperMap.Geometry.Point(.6*a,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(u,m,y),v=.4*a*this.scaleValues[5],O=.4*a*this.scaleValues[6],U=new SuperMap.Geometry.Point(0,-.9*(v-.25*O)),L=new SuperMap.Geometry.Point(0,.9*(v-.25*O)),w=SuperMap.Plot.PlottingUtil.coordinateTrans(d,U,y),V=SuperMap.Plot.PlottingUtil.coordinateTrans(d,L,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[w,V]);var _=new SuperMap.Geometry.Point(0,v),T=SuperMap.Plot.PlottingUtil.coordinateTrans(d,_,y),A=new SuperMap.Geometry.Point(.5*O,-.25*O),E=new SuperMap.Geometry.Point(-.5*O,-.25*O),x=new SuperMap.Geometry.Point(-.5*O,.25*O),Y=new SuperMap.Geometry.Point(.25*O,.25*O),j=new SuperMap.Geometry.Point(.5*O,0),C=SuperMap.Plot.PlottingUtil.coordinateTrans(T,A,y+180),I=SuperMap.Plot.PlottingUtil.coordinateTrans(T,E,y+180),G=SuperMap.Plot.PlottingUtil.coordinateTrans(T,x,y+180),B=SuperMap.Plot.PlottingUtil.coordinateTrans(T,Y,y+180),R=SuperMap.Plot.PlottingUtil.coordinateTrans(T,j,y+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[C,I,G,B,C]);var N=new SuperMap.Geometry.Point(0,-v),D=SuperMap.Plot.PlottingUtil.coordinateTrans(d,N,y),k=SuperMap.Plot.PlottingUtil.coordinateTrans(D,A,y+180),z=SuperMap.Plot.PlottingUtil.coordinateTrans(D,E,y+180),F=SuperMap.Plot.PlottingUtil.coordinateTrans(D,x,y+180),K=SuperMap.Plot.PlottingUtil.coordinateTrans(D,Y,y+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[k,z,F,K,k]),this.addScalePoint(s,0),this.addScalePoint(h,1);var W=new SuperMap.Geometry.Point(0,-v),q=SuperMap.Plot.PlottingUtil.coordinateTrans(d,W,y);this.addScalePoint(q,2),this.addScalePoint(R,3),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol4020401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4020303=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.069485),l.scaleValues.push(.14),l.scaleValues.push(.1),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(Math.PI/2),this.scaleValues.push(.069485),this.scaleValues.push(.14),this.scaleValues.push(.1),this.scaleValues.push(.1));var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[2]=1.5*o,this.scaleValues[4]=.5*o,this.scaleValues[5]=.5*o}var i=l*this.scaleValues[4],n=this.scaleValues[0]-this.scaleValues[3];n<0&&(n=0);var a=this.scaleValues[0]+this.scaleValues[3];a>1&&(a=1);var r=this.getLinePts(e,this.scaleValues[4],n),s=this.getLinePts(e,this.scaleValues[4],a),p=new SuperMap.Geometry.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),u=SuperMap.Plot.PlottingUtil.radian(r.startPt,r.endPt)*SuperMap.Plot.PlottingUtil.RTOD;this.createSubSymbol1(p,i,u);var c=new SuperMap.Geometry.Point((s.startPt.x+s.endPt.x)/2,(s.startPt.y+s.endPt.y)/2),P=SuperMap.Plot.PlottingUtil.radian(s.startPt,s.endPt)*SuperMap.Plot.PlottingUtil.RTOD;this.createSubSymbol2(c,i,P);for(var S=[],h=[],y=[],f=0;f<=r.startIndex;f++)S.push(e[f]);if(S.push(r.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S),r.endIndex<=s.startIndex){h.push(r.endPt);for(var g=r.endIndex+1;g<=s.startIndex;g++)h.push(e[g]);h.push(s.startPt),2===e.length&&SuperMap.Plot.PlottingUtil.distance(e[0],r.endPt)<=SuperMap.Plot.PlottingUtil.distance(e[0],s.startPt)&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h),e.length>2&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}y.push(s.endPt);for(var M=s.endIndex+1;M<e.length;M++)y.push(e[M]);var b=l*this.scaleValues[0],m=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.RTOD,d=l*this.scaleValues[2],v=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,b);if(-1!==v.index){var O=v.pt,U=new SuperMap.Geometry.Point(e[v.index].x,e[v.index].y),L=new SuperMap.Geometry.Point(e[v.index+1].x,e[v.index+1].y),w=SuperMap.Plot.PlottingUtil.radian(U,L)*SuperMap.Plot.PlottingUtil.RTOD,V=SuperMap.Plot.PlottingUtil.circlePoint(O,d,d,m+w-180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O,V]);var _=SuperMap.Plot.PlottingUtil.radian(O,V)*SuperMap.Plot.PlottingUtil.RTOD,T=new SuperMap.Geometry.Point(-.2*d,.05*d),A=new SuperMap.Geometry.Point(-.2*d,-.05*d),E=SuperMap.Plot.PlottingUtil.coordinateTrans(V,T,_),x=SuperMap.Plot.PlottingUtil.coordinateTrans(V,A,_);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[V,E,x],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addScalePoint(v.pt,0),this.addScalePoint(V,1),this.addScalePoint(p,2),this.addScalePoint(r.startPt,3),this.finish()}}}},{key:"createSubSymbol1",value:function(t,e,l){var o=this.getSubSymbolPts(e);this.createSubSymbol(t,e,l,o)}},{key:"createSubSymbol2",value:function(t,e,l){var o=this.getSubSymbolPts1(e);this.createSubSymbol(t,e,l,o)}},{key:"createSubSymbol",value:function(t,e,l,o){for(var i=[],n=0;n<o.length;n++){var a=SuperMap.Plot.PlottingUtil.coordinateTrans(t,o[n],l);i.push(a)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,i)}},{key:"getSubSymbolPts",value:function(t){var e=t,l=[];return l.push(new SuperMap.Geometry.Point(0,2*e)),l.push(new SuperMap.Geometry.Point(-e,0)),l.push(new SuperMap.Geometry.Point(0,-2*e)),l.push(new SuperMap.Geometry.Point(e,0)),l}},{key:"getSubSymbolPts1",value:function(t){var e=t,l=[];return l.push(new SuperMap.Geometry.Point(e,2*e)),l.push(new SuperMap.Geometry.Point(-e,2*e)),l.push(new SuperMap.Geometry.Point(-e,-2*e)),l.push(new SuperMap.Geometry.Point(e,-e)),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a,r,s,p,u,c,P,S,h=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){i=-1,n=0,a=new SuperMap.Geometry.Point(0,0);for(var y=0;y<o.length-1;y++)(r=[]).push(o[y]),r.push(o[y+1]),s=SuperMap.Plot.PlottingUtil.projectPoint(e,o[y],o[y+1]),-1!==(p=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(s,r)).index&&(u=SuperMap.Plot.PlottingUtil.distance(e,s),-1==i?(i=y,a=s,n=u):n>u&&(i=y,a=s,n=u));if(-1==i||i>o.length-1)return;c=0;for(var f=0;f<i;f++)c+=SuperMap.Plot.PlottingUtil.distance(o[f],o[f+1]);if((c+=SuperMap.Plot.PlottingUtil.distance(o[i],a))<0||c>h)return;var g=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(this.scalePoints[0],o),M=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(this.scalePoints[3],o),b=0;g.index===M.index&&(b=SuperMap.Plot.PlottingUtil.distance(this.scalePoints[0],this.scalePoints[3]));for(var m=M.index;m<g.index;m++)b+=SuperMap.Plot.PlottingUtil.distance(o[m],o[m+1]);c<b+.5?c=b+.5:c>h-b-.5&&(c=h-b-.5),this.scaleValues[0]=c/h}else if(1===t){var d=h*this.scaleValues[0],v=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,d);if(-1===v.index)return;var O=o[v.index],U=o[v.index+1],L=SuperMap.Plot.PlottingUtil.radian(O,U),w=SuperMap.Plot.PlottingUtil.radian(v.pt,e);this.scaleValues[1]=w-L-Math.PI;var V=SuperMap.Plot.PlottingUtil.distance(v.pt,e);this.scaleValues[2]=V/h}else if(2===t){i=-1,n=0,a=new SuperMap.Geometry.Point(0,0);for(var _=0;_<o.length-1;_++)(r=[]).push(o[_]),r.push(o[_+1]),s=SuperMap.Plot.PlottingUtil.projectPoint(e,o[_],o[_+1]),-1!==(p=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(s,r)).index&&(u=SuperMap.Plot.PlottingUtil.distance(e,s),-1==i?(i=_,a=s,n=u):n>u&&(i=_,a=s,n=u));if(-1!==i&&i<=o.length-1){c=0;for(var T=0;T<i;T++)c+=SuperMap.Plot.PlottingUtil.distance(o[T],o[T+1]);c+=SuperMap.Plot.PlottingUtil.distance(o[i],a);var A=this.getLinePts(o,this.scaleValues[4],5/14),E=SuperMap.Plot.PlottingUtil.distance(A.startPt,A.endPt)/3*2/h;if(c>0&&c<h){var x=c/h;x<E&&(x=E),x>1-E&&(x=1-E),this.scaleValues[3]=Math.abs(x-this.scaleValues[0])}}}else if(3===t)if(this.scaleValues[0]>.5){var Y=this.scaleValues[0]+this.scaleValues[3],j=h*(P=this.scaleValues[0]-this.scaleValues[3]),C=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,j);-1!==C.index&&((S=SuperMap.Plot.PlottingUtil.distance(C.pt,e)/h)>1-Y&&(S=1-Y),this.scaleValues[4]=S)}else{var I=h*(P=this.scaleValues[0]-this.scaleValues[3]);-1!==(p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,I)).index&&((S=SuperMap.Plot.PlottingUtil.distance(p.pt,e)/h)>P&&(S=P),this.scaleValues[4]=S)}}}}]),e}();SuperMap.Plot.AlgoSymbol4020303=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4011101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(-.1),l.scaleValues.push(0),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=i/o,this.scaleValues[3]=i/o}var n=this.scaleValues[0],a=this.scaleValues[1],r=this.scaleValues[3],s=this.scaleValues[4],p=this.scaleValues[6],u=this.scaleValues[7],c=this.scaleValues[8],P=this.scaleValues[9],S=new SuperMap.Geometry.Point(l.x+o*p,l.y+o*u),h=new SuperMap.Geometry.Point(l.x+o*c,l.y+o*P),y=[],f=.15*SuperMap.Plot.PlottingUtil.distance(S,h),g=SuperMap.Plot.PlottingUtil.linePnt(S,h,f),M=SuperMap.Plot.PlottingUtil.linePnt(h,S,f);y.push(g),y.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var b=o*n,m=a;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],S,b,m+90);var d=o*r,v=s;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],h,d,v+90),this.addScalePoint(S);var O=SuperMap.Plot.PlottingUtil.circlePoint(S,.5*b,.5*b,m);this.addScalePoint(O),this.addScalePoint(h);var U=SuperMap.Plot.PlottingUtil.circlePoint(h,.5*d,.5*d,v);this.addScalePoint(U),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a,r,s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),p=SuperMap.Plot.PlottingUtil.polylineDistance(l),u=e;if(0==t)i=(u.x-s.x)/p,this.scaleValues[6]=i,n=(u.y-s.y)/p,this.scaleValues[7]=n;else if(1==t){i=this.scaleValues[6],n=this.scaleValues[7];var c=new SuperMap.Geometry.Point(s.x+p*i,s.y+p*n),P=2*SuperMap.Plot.PlottingUtil.distance(c,u)/p;this.scaleValues[0]=P;var S=180*SuperMap.Plot.PlottingUtil.radian(c,u)/Math.PI;this.scaleValues[1]=S,this.scaleValues[2]=0<=S&&S<90?1:90<=S&&S<180?2:180<=S&&S<270?3:4}else if(2==t)a=(u.x-s.x)/p,this.scaleValues[8]=a,r=(u.y-s.y)/p,this.scaleValues[9]=r;else if(3==t){a=this.scaleValues[8],r=this.scaleValues[9];var h=new SuperMap.Geometry.Point(s.x+p*a,s.y+p*r),y=2*SuperMap.Plot.PlottingUtil.distance(h,u)/p;this.scaleValues[3]=y;var f=180*SuperMap.Plot.PlottingUtil.radian(h,u)/Math.PI;this.scaleValues[4]=f,this.scaleValues[5]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}}}}]),e}();SuperMap.Plot.AlgoSymbol4011101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4011100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(-.1),l.scaleValues.push(0),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=i/o,this.scaleValues[3]=i/o}var n=this.scaleValues[0],a=this.scaleValues[1],r=this.scaleValues[3],s=this.scaleValues[4],p=this.scaleValues[6],u=this.scaleValues[7],c=this.scaleValues[8],P=this.scaleValues[9],S=new SuperMap.Geometry.Point(l.x+o*p,l.y+o*u),h=new SuperMap.Geometry.Point(l.x+o*c,l.y+o*P),y=[],f=.15*SuperMap.Plot.PlottingUtil.distance(S,h),g=SuperMap.Plot.PlottingUtil.linePnt(S,h,f),M=SuperMap.Plot.PlottingUtil.linePnt(h,S,f);y.push(g),y.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var b=o*n,m=a;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],S,b,m-90);var d=o*r,v=s;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],h,d,v-90),this.addScalePoint(S);var O=SuperMap.Plot.PlottingUtil.circlePoint(S,.5*b,.5*b,m);this.addScalePoint(O),this.addScalePoint(h);var U=SuperMap.Plot.PlottingUtil.circlePoint(h,.5*d,.5*d,v);this.addScalePoint(U),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a,r,s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),p=SuperMap.Plot.PlottingUtil.polylineDistance(l),u=e;if(0==t)i=(u.x-s.x)/p,this.scaleValues[6]=i,n=(u.y-s.y)/p,this.scaleValues[7]=n;else if(1==t){i=this.scaleValues[6],n=this.scaleValues[7];var c=new SuperMap.Geometry.Point(s.x+p*i,s.y+p*n),P=2*SuperMap.Plot.PlottingUtil.distance(c,u)/p;this.scaleValues[0]=P;var S=180*SuperMap.Plot.PlottingUtil.radian(c,u)/Math.PI;this.scaleValues[1]=S,this.scaleValues[2]=0<=S&&S<90?1:90<=S&&S<180?2:180<=S&&S<270?3:4}else if(2==t)a=(u.x-s.x)/p,this.scaleValues[8]=a,r=(u.y-s.y)/p,this.scaleValues[9]=r;else if(3==t){a=this.scaleValues[8],r=this.scaleValues[9];var h=new SuperMap.Geometry.Point(s.x+p*a,s.y+p*r),y=2*SuperMap.Plot.PlottingUtil.distance(h,u)/p;this.scaleValues[3]=y;var f=180*SuperMap.Plot.PlottingUtil.radian(h,u)/Math.PI;this.scaleValues[4]=f,this.scaleValues[5]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}}}}]),e}();SuperMap.Plot.AlgoSymbol4011100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4010905=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.333333),l.scaleValues.push(.333333),l.scaleValues.push(.125),l.scaleValues.push(90)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23901),e}();SuperMap.Plot.AlgoSymbol4010905=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4010801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol4010800),e}();SuperMap.Plot.AlgoSymbol4010801=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4010800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){4>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l,o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),i=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=(l=1.5*this.getDefaultSubSymbolSize())/i;n>.2&&(n=.2),this.scaleValues[0]=n}var a=this.scaleValues[0],r=this.scaleValues[2],s=this.scaleValues[3];l=i*a;var p=new SuperMap.Geometry.Point(o.x+i*r,o.y+i*s);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,l,0);for(var u=0;u<this.components.length;u++)this.components[u].style.strokeColor="#0000ff",this.components[u].style.lineColorLimit=!0,this.components[u].style.strokeOpacity=1,this.components[u].style.color="#0000ff",this.components[u].style.opacity=1;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e),this.addScalePoint(p);var c=l,P=SuperMap.Plot.PlottingUtil.circlePoint(p,c,c,90);this.addScalePoint(P),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol4010800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3032000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(-.1),l.scaleValues.push(0),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23600),e}();SuperMap.Plot.AlgoSymbol3032000=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3020901=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.125)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(2==t.length){var l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=SuperMap.Plot.PlottingUtil.distance(l,o),n=180*SuperMap.Plot.PlottingUtil.radian(l,o)/Math.PI,a=SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n+60);e.push(t[0]),e.push(o),e.push(a),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e)}else{this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);for(var r=0;r<t.length;r++)e.push(t[r])}var s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),p=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var u=this.scaleValues[0],c=this.scaleValues[1],P=this.scaleValues[2],S=new SuperMap.Geometry.Point(s.x+p*u,s.y+p*c),h=p*P;0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],S,h,0),this.addScalePoint(S.clone());var y=SuperMap.Plot.PlottingUtil.circlePoint(S,.5*h,.5*h,90);this.addScalePoint(y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];if(2==l.length){var i=new SuperMap.Geometry.Point(l[0].x,l[0].y),n=new SuperMap.Geometry.Point(l[1].x,l[1].y),a=SuperMap.Plot.PlottingUtil.distance(i,n),r=180*SuperMap.Plot.PlottingUtil.radian(i,n)/Math.PI,s=SuperMap.Plot.PlottingUtil.circlePoint(i,a,a,r+60);o.push(l[0]),o.push(n),o.push(s),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o)}else{this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var p=0;p<l.length;p++)o.push(l[p])}var u=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),c=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)this.scaleValues[0]=(e.x-u.x)/c,this.scaleValues[1]=(e.y-u.y)/c;else if(1===t){var P=new SuperMap.Geometry.Point(u.x+c*this.scaleValues[0],u.y+c*this.scaleValues[1]),S=2*SuperMap.Plot.PlottingUtil.distance(e,P)/c;S<.5&&(this.scaleValues[2]=S)}}}}]),e}();SuperMap.Plot.AlgoSymbol3020901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010304=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="协",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21600),e}();SuperMap.Plot.AlgoSymbol3010304=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010303=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="出",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21600),e}();SuperMap.Plot.AlgoSymbol3010303=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020402=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol6020400),o(e,[{key:"getSubSymbolPts",value:function(t){var e=[],l=[];l.push(new SuperMap.Geometry.Point(-t/2,0)),l.push(new SuperMap.Geometry.Point(t/2,0)),e.push(l);var o=[];return o.push(new SuperMap.Geometry.Point(0,0)),o.push(new SuperMap.Geometry.Point(0,t/2)),e.push(o),e}}]),e}();SuperMap.Plot.AlgoSymbol6020402=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020401=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol6020400),o(e,[{key:"getSubSymbolPts",value:function(t){var e=[],l=[];l.push(new SuperMap.Geometry.Point(-t/2,0)),l.push(new SuperMap.Geometry.Point(t/2,0)),e.push(l);var o=[];return o.push(new SuperMap.Geometry.Point(0,-t/2)),o.push(new SuperMap.Geometry.Point(0,t/2)),e.push(o),e}}]),e}();SuperMap.Plot.AlgoSymbol6020401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.05));var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);2===this.controlPoints.length&&t.splice(1,0,new SuperMap.Geometry.Point(t[0].x+e,t[0].y));var l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=new SuperMap.Geometry.Point(t[2].x,t[2].y),n=e,a=180*SuperMap.Plot.PlottingUtil.radian(l,o)/Math.PI%360,r=180*SuperMap.Plot.PlottingUtil.radian(l,i)/Math.PI%360;if(a>r&&(r+=360),!this.isEdit){var s=.5*this.getDefaultSubSymbolSize()/n;s>.1&&(s=.1),this.scaleValues[0]=s}var p=n*this.scaleValues[0],u=180*Math.atan(.5*p/n)/Math.PI,c=(r-a)/3,P=(r-a)/50,S=this.getArcPts(t[0],n,a,a+c-1.8*u,P);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=this.getArcPts(t[0],n,a+c+1.8*u,a+2*c-1.8*u,P);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var y=this.getArcPts(t[0],n,a+2*c+1.8*u,r,P);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var f=a+c+90,g=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e,e,a+c);this.createSubSymbol(g,p,f);var M=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e,e,a+2*c),b=a+2*c+90;this.createSubSymbol(M,p,b);var m=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e+p,e+p,a+c);this.addScalePoint(m),3===this.controlPoints.length&&(this.controlPoints[2]=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e,e,r)),this.finish()}}},{key:"getArcPts",value:function(t,e,l,o,i){void 0!==i&&null!==i||(i=1);for(var n=[],a=l;a<o;a+=i){var r=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,a);n.push(r)}var s=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,o);return n.push(s),n}},{key:"createSubSymbol",value:function(t,e,l){for(var o=this.getSubSymbolPts(e),i=0;i<o.length;i++){for(var n=o[i],a=[],r=0;r<n.length;r++){var s=SuperMap.Plot.PlottingUtil.coordinateTrans(t,n[r],l);a.push(s)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a)}}},{key:"getSubSymbolPts",value:function(t){var e=[],l=[];l.push(new SuperMap.Geometry.Point(-t/2,0)),l.push(new SuperMap.Geometry.Point(t/2,0)),e.push(l);var o=[];return o.push(new SuperMap.Geometry.Point(0,-t/2)),o.push(new SuperMap.Geometry.Point(0,0)),e.push(o),e}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);2===this.controlPoints.length&&l.splice(1,0,new SuperMap.Geometry.Point(l[0].x+o,l[0].y));var i=new SuperMap.Geometry.Point(l[0].x,l[0].y),n=new SuperMap.Geometry.Point(l[1].x,l[1].y),a=new SuperMap.Geometry.Point(l[2].x,l[2].y),r=SuperMap.Plot.PlottingUtil.distance(i,n),s=180*SuperMap.Plot.PlottingUtil.radian(i,n)/Math.PI%360,p=180*SuperMap.Plot.PlottingUtil.radian(i,a)/Math.PI%360;s>p&&(p+=360);var u=(p-s)/3,c=SuperMap.Plot.PlottingUtil.circlePoint(l[0],o,o,s+u),P=SuperMap.Plot.PlottingUtil.distance(c,e)/r;P<=.6&&(this.scaleValues[0]=P)}}}]),e}();SuperMap.Plot.AlgoSymbol6020400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010302=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="冲",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21600),e}();SuperMap.Plot.AlgoSymbol3010302=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="调",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21600),e}();SuperMap.Plot.AlgoSymbol3010301=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010108=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3010107),e}();SuperMap.Plot.AlgoSymbol3010108=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010107=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);0==this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05):1==this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue(l),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var o=this.getLinePts(e,this.scaleValues[0]),i=new SuperMap.Geometry.Point((o.startPt.x+o.endPt.x)/2,(o.startPt.y+o.endPt.y)/2),n=180*SuperMap.Plot.PlottingUtil.radian(o.startPt,o.endPt)/Math.PI,a=SuperMap.Plot.PlottingUtil.distance(o.startPt,o.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],i,a,n-90);for(var r=[],s=[],p=0;p<=o.startIndex;p++)r.push(e[p]);if(r.push(o.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),o.endIndex<=e.length){s.push(o.endPt);for(var u=o.endIndex+1;u<=e.length-1;u++)s.push(e[u]);this.addArrow(s,this.scaleValues[1])}var c=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),P=SuperMap.Plot.PlottingUtil.circlePoint(c.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,n+90);this.addScalePoint(P,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMap.Plot.AlgoSymbol3010107=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010106=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05):1==this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.8*this.getSubSymbolScaleValue(l),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var o=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,.3*l);if(-1!==o.index){var i=o.pt,n=o.index,a=l*this.scaleValues[0]*.5,r=SuperMap.Plot.PlottingUtil.radian(i,e[n+1])*SuperMap.Plot.PlottingUtil.RTOD,s=SuperMap.Plot.PlottingUtil.circlePoint(i,a,a,r+90),p=SuperMap.Plot.PlottingUtil.circlePoint(i,a,a,r-90),u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,i,s),c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,i,p);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u.pntLeft,u.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c.pntLeft,c.pntRight]);var P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,.6*l);if(-1!==P.index){var S=P.pt,h=P.index,y=SuperMap.Plot.PlottingUtil.radian(S,e[h+1])*SuperMap.Plot.PlottingUtil.RTOD,f=SuperMap.Plot.PlottingUtil.circlePoint(S,a,a,y+90),g=SuperMap.Plot.PlottingUtil.circlePoint(S,a,a,y-90),M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,S,f),b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,S,g);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[M.pntLeft,M.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[b.pntLeft,b.pntRight]),this.addArrow(e,this.scaleValues[1]),this.addScalePoint(g,0),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.6*i,o);if(!n.bfind)return;var a=2*SuperMap.Plot.PlottingUtil.distance(e,n.pts);this.scaleValues[0]=a/i}}}]),e}();SuperMap.Plot.AlgoSymbol3010106=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010105=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3010102),o(e,[{key:"getSubSymbolPts",value:function(t){var e=t/4,l=[];l.push(new SuperMap.Geometry.Point(-2*e,-e)),l.push(new SuperMap.Geometry.Point(e,-e));for(var o=-90;o<=90;o+=5)l.push(SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(e,0),e,e,o));return l.push(new SuperMap.Geometry.Point(e,e)),l.push(new SuperMap.Geometry.Point(-2*e,e)),l}}]),e}();SuperMap.Plot.AlgoSymbol3010105=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010104=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3010102),o(e,[{key:"getSubSymbolPts",value:function(t){var e=t/4,l=[];return l.push(new SuperMap.Geometry.Point(2*e,0)),l.push(new SuperMap.Geometry.Point(0,e)),l.push(new SuperMap.Geometry.Point(-2*e,0)),l.push(new SuperMap.Geometry.Point(0,-e)),l.push(new SuperMap.Geometry.Point(-e,-e)),l.push(new SuperMap.Geometry.Point(e,-e)),l.push(new SuperMap.Geometry.Point(0,-e)),l}}]),e}();SuperMap.Plot.AlgoSymbol3010104=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010103=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3010102),o(e,[{key:"createSubSymbol1",value:function(t,e,l){var o=this.getSubSymbolPts1(e);this.createSubSymbol(t,e,l,o)}},{key:"createSubSymbol2",value:function(t,e,l){var o=this.getSubSymbolPts2(e);this.createSubSymbol(t,e,l,o)}},{key:"getSubSymbolPts1",value:function(t){var e=t/4,l=[];return l.push(new SuperMap.Geometry.Point(-2*e,-e)),l.push(new SuperMap.Geometry.Point(2*e,-e)),l.push(new SuperMap.Geometry.Point(e,e)),l.push(new SuperMap.Geometry.Point(-2*e,e)),l}},{key:"getSubSymbolPts2",value:function(t){var e=t/4,l=[];return l.push(new SuperMap.Geometry.Point(-2*e,0)),l.push(new SuperMap.Geometry.Point(0,-e)),l.push(new SuperMap.Geometry.Point(2*e,0)),l.push(new SuperMap.Geometry.Point(0,e)),l}}]),e}();SuperMap.Plot.AlgoSymbol3010103=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3010102=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05):1==this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue(),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=e*this.scaleValues[0],i=this.getLinePts(l,this.scaleValues[0],5/14),n=this.getLinePts(l,this.scaleValues[0],9/14),a=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=180*SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI;this.createSubSymbol1(a,o,r);var s=new SuperMap.Geometry.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),p=180*SuperMap.Plot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI;this.createSubSymbol2(s,o,p);var u=SuperMap.Plot.PlottingUtil.circlePoint(s,.5*o,.5*o,p+90);this.addScalePoint(u);for(var c=[],P=[],S=[],h=0;h<=i.startIndex;h++)c.push(l[h]);if(c.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),i.endIndex<=n.startIndex){P.push(i.endPt);for(var y=i.endIndex+1;y<=n.startIndex;y++)P.push(l[y]);P.push(n.startPt),2===l.length&&SuperMap.Plot.PlottingUtil.distance(l[0],i.endPt)<=SuperMap.Plot.PlottingUtil.distance(l[0],n.startPt)&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),l.length>2&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P)}S.push(n.endPt);for(var f=n.endIndex+1;f<l.length;f++)S.push(l[f]);this.addArrow(S,this.scaleValues[1]),this.finish()}}},{key:"createSubSymbol1",value:function(t,e,l){var o=this.getSubSymbolPts(e);this.createSubSymbol(t,e,l,o)}},{key:"createSubSymbol2",value:function(t,e,l){var o=this.getSubSymbolPts(e);this.createSubSymbol(t,e,l,o)}},{key:"createSubSymbol",value:function(t,e,l,o){for(var i=[],n=0;n<o.length;n++){var a=SuperMap.Plot.PlottingUtil.coordinateTrans(t,o[n],l);i.push(a)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,i)}},{key:"getSubSymbolPts",value:function(t){var e=t/2,l=[];return l.push(new SuperMap.Geometry.Point(-2*e,0)),l.push(new SuperMap.Geometry.Point(0,-e)),l.push(new SuperMap.Geometry.Point(2*e,0)),l.push(new SuperMap.Geometry.Point(0,e)),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(9*i/14,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;a<=.3&&(this.scaleValues[0]=a)}}}]),e}();SuperMap.Plot.AlgoSymbol3010102=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2890001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.05),l.scaleValues.push(180)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){3!==this.scaleValues.length&&(this.scaleValues=[.5,.05,180]);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var a=l*o,r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(-1!==r.index){for(var s=[],p=0;p<=r.index;p++)s.push(e[p]);var u,c,P,S,h=l*i,y=[];if(a-SuperMap.Plot.PlottingUtil.polylineDistance(s)>(h*=.5)){u=SuperMap.Plot.PlottingUtil.linePnt(r.pts,e[r.index],h),s.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),c=SuperMap.Plot.PlottingUtil.linePnt(r.pts,e[r.index+1],h),y.push(c);for(var f=e.length,g=r.index+1;g<f;++g)y.push(e[g])}else{for(var M=-1,b=s.length-1;b>=0;b--)if(P=new SuperMap.Geometry.Point(s[b].x,s[b].y),S=new SuperMap.Geometry.Point(r.pts.x,r.pts.y),SuperMap.Plot.PlottingUtil.distance(P,S)>h){M=b;break}if(-1===M)return;s.splice(M+1,s.length-1-M),u=SuperMap.Plot.PlottingUtil.linePnt(r.pts,e[M],h),s.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var m=-1,d=r.index;d<e.length;d++)if(P=new SuperMap.Geometry.Point(e[d].x,e[d].y),S=new SuperMap.Geometry.Point(r.pts.x,r.pts.y),SuperMap.Plot.PlottingUtil.distance(P,S)>h){m=d;break}if(-1===m)return;c=SuperMap.Plot.PlottingUtil.linePnt(r.pts,e[m],h),y.push(c);for(var v=m+1;v<e.length;++v)y.push(e[v])}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var O=y[0],U=s[s.length-1],L=new SuperMap.Geometry.Point((O.x+U.x)/2,(O.y+U.y)/2);r.x=L.x,r.y=L.y;var w=h,V=new SuperMap.Geometry.Point(.5*w,w),_=new SuperMap.Geometry.Point(.5*w,-w),T=new SuperMap.Geometry.Point(-.5*w,-w),A=new SuperMap.Geometry.Point(-.5*w,w),E=[],x=SuperMap.Plot.PlottingUtil.coordinateTrans(L,V,n),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(L,_,n),j=SuperMap.Plot.PlottingUtil.coordinateTrans(L,T,n),C=SuperMap.Plot.PlottingUtil.coordinateTrans(L,A,n);E.push(x),E.push(Y),E.push(j),E.push(C),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,E);var I=new SuperMap.Geometry.Point(0,-2*w),G=new SuperMap.Geometry.Point(.15*w,-1.6*w),B=new SuperMap.Geometry.Point(-.15*w,-1.6*w),R=SuperMap.Plot.PlottingUtil.coordinateTrans(L,I,n),N=SuperMap.Plot.PlottingUtil.coordinateTrans(L,G,n),D=SuperMap.Plot.PlottingUtil.coordinateTrans(L,B,n),k=[];k.push(R),k.push(N),k.push(D);var z={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,k,z);var F=new SuperMap.Geometry.Point(0,-w),K=SuperMap.Plot.PlottingUtil.coordinateTrans(L,F,n);(k=[]).push(K),k.push(R),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,k),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],L,1.5*w,n+90);for(var W=.02*l,q=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(W,e[1],e[0]),J=.5*SuperMap.Plot.PlottingUtil.distance(e[0],q.pntLeft),H=new SuperMap.Geometry.Point((e[0].x+q.pntLeft.x)/2,(e[0].y+q.pntLeft.y)/2),Q=SuperMap.Plot.PlottingUtil.radian(e[1],e[0])*SuperMap.Plot.PlottingUtil.RTOD,X=[],Z=270+Q;Z<=360+Q;Z+=5)X.push(SuperMap.Plot.PlottingUtil.circlePoint(H,J,J,Z));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,X),V=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(W,e[e.length-2],e[e.length-1]);for(var $=new SuperMap.Geometry.Point((e[e.length-1].x+V.pntRight.x)/2,(e[e.length-1].y+V.pntRight.y)/2),tt=SuperMap.Plot.PlottingUtil.radian(e[e.length-1],V.pntRight)*SuperMap.Plot.PlottingUtil.RTOD,et=[],lt=90+tt;lt<=180+tt;lt+=5)et.push(SuperMap.Plot.PlottingUtil.circlePoint($,J,J,lt));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,et),this.scalePoints=[],this.addScalePoint(L,0);var ot=new SuperMap.Geometry.Point(0,-2*h),it=SuperMap.Plot.PlottingUtil.coordinateTrans(L,ot,this.scaleValues[2]);this.addScalePoint(it,1),this.finish()}}}},{key:"GetSymbolPt",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){3!==this.scaleValues.length&&(this.scaleValues=[.5,.05,0]);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=this.scaleValues[0],i=this.scaleValues[1],n=l*o,a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,e);if(-1!==a.index){for(var r=[],s=0;s<=a.index;s++)r.push(e[s]);var p,u,c,P,S=l*i,h=[];if(n-SuperMap.Plot.PlottingUtil.polylineDistance(r)>(S*=.5)){p=SuperMap.Plot.PlottingUtil.linePnt(a.pts,e[a.index],S),r.push(p),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),u=SuperMap.Plot.PlottingUtil.linePnt(a.pts,e[a.index+1],S),h.push(u);for(var y=e.length,f=a.index+1;f<y;++f)h.push(e[f])}else{for(var g=-1,M=r.length-1;M>=0;M--)if(c=new SuperMap.Geometry.Point(r[M].x,r[M].y),P=new SuperMap.Geometry.Point(a.pts.x,a.pts.y),SuperMap.Plot.PlottingUtil.distance(c,P)>S){g=M;break}if(-1===g)return;r.splice(g+1,r.length-1-g),p=SuperMap.Plot.PlottingUtil.linePnt(a.pts,e[g],S),r.push(p);for(var b=-1,m=a.index;m<e.length;m++)if(c=new SuperMap.Geometry.Point(e[m].x,e[m].y),P=new SuperMap.Geometry.Point(a.pts.x,a.pts.y),SuperMap.Plot.PlottingUtil.distance(c,P)>S){b=m;break}if(-1===b)return;u=SuperMap.Plot.PlottingUtil.linePnt(a.pts,e[b],S),h.push(u);for(var d=b+1;d<e.length;++d)h.push(e[d])}var v=h[0],O=r[r.length-1];return new SuperMap.Geometry.Point((v.x+O.x)/2,(v.y+O.y)/2)}}}},{key:"computeScaleValues",value:function(t,e){if((0===t||1===t)&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a,r=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){i=new SuperMap.Geometry.Point(e.x,e.y);for(var s=[],p=0;p<o.length;p++)s.push(o[p]);for(var u=-1,c=0,P=new SuperMap.Geometry.Point(0,0),S=0;S<s.length-1;S++){var h=[];h.push(s[S]),h.push(s[S+1]);var y=SuperMap.Plot.PlottingUtil.projectPoint(i,s[S],s[S+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(y,h).index){var f=SuperMap.Plot.PlottingUtil.distance(i,y);-1===u?(u=S,P=y,c=f):c>f&&(u=S,P=y,c=f)}}if(-1===u||u>s.length-1)return;n=0;for(var g=0;g<u;g++){var M=new SuperMap.Geometry.Point(o[g].x,o[g].y),b=new SuperMap.Geometry.Point(o[g+1].x,o[g+1].y);n+=SuperMap.Plot.PlottingUtil.distance(M,b)}var m=new SuperMap.Geometry.Point(o[u].x,o[u].y);a=(n+=SuperMap.Plot.PlottingUtil.distance(m,P))/r;var d=.4-this.scaleValues[1]+.5,v=.5-(.4-this.scaleValues[1]);a>=d&&(a=d),a<=v&&(a=v),this.scaleValues[0]=a}else if(1===t){i=new SuperMap.Geometry.Point(e.x,e.y);var O=this.GetSymbolPt();a=(n=SuperMap.Plot.PlottingUtil.distance(i,O))/r;var U=this.scaleValues[0]<.4?this.scaleValues[0]:1-this.scaleValues[0];a>=U&&(a=U),this.scaleValues[1]=a;var L=SuperMap.Plot.PlottingUtil.radian(O,i)*SuperMap.Plot.PlottingUtil.RTOD;this.scaleValues[2]=L-270}}}}]),e}();SuperMap.Plot.AlgoSymbol2890001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2350001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(0),l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(-.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){4>=this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(0),this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(-.05));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var i=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=i/o*.8,this.scaleValues[3]=i/o*.8}var n=this.scaleValues[0],a=this.scaleValues[1],r=this.scaleValues[3],s=this.scaleValues[4],p=this.scaleValues[6],u=this.scaleValues[7],c=this.scaleValues[8],P=this.scaleValues[9],S=new SuperMap.Geometry.Point(l.x+o*p,l.y+o*u),h=new SuperMap.Geometry.Point(l.x+o*c,l.y+o*P),y=o*n,f=a;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],S,y,f);var g=o*r,M=s;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],h,g,M),this.addScalePoint(S);var b=SuperMap.Plot.PlottingUtil.circlePoint(S,y,y,f);this.addScalePoint(b),this.addScalePoint(h);var m=SuperMap.Plot.PlottingUtil.circlePoint(h,g,g,M);this.addScalePoint(m),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(0),this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(-.05));var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a,r,s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),p=SuperMap.Plot.PlottingUtil.polylineDistance(o),u=e;if(0==t)i=(u.x-s.x)/p,this.scaleValues[6]=i,n=(u.y-s.y)/p,this.scaleValues[7]=n;else if(1==t){i=this.scaleValues[6],n=this.scaleValues[7];var c=new SuperMap.Geometry.Point(s.x+p*i,s.y+p*n),P=SuperMap.Plot.PlottingUtil.distance(c,u)/p;this.scaleValues[0]=P;var S=180*SuperMap.Plot.PlottingUtil.radian(c,u)/Math.PI;this.scaleValues[1]=S,this.scaleValues[2]=0<=S&&S<90?1:90<=S&&S<180?2:180<=S&&S<270?3:4}else if(2==t)a=(u.x-s.x)/p,this.scaleValues[8]=a,r=(u.y-s.y)/p,this.scaleValues[9]=r;else if(3==t){a=this.scaleValues[8],r=this.scaleValues[9];var h=new SuperMap.Geometry.Point(s.x+p*a,s.y+p*r),y=SuperMap.Plot.PlottingUtil.distance(h,u)/p;this.scaleValues[3]=y;var f=180*SuperMap.Plot.PlottingUtil.radian(h,u)/Math.PI;this.scaleValues[4]=f,this.scaleValues[5]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}}}}]),e}();SuperMap.Plot.AlgoSymbol2350001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol44400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=0,l.scaleValues[1]=0,l.scaleValues[2]=.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=0,this.scaleValues[1]=0,this.scaleValues[2]=.1),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t,{fill:!1});var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],a=new SuperMap.Geometry.Point(l.x+e*o,l.y+e*i),r=new SuperMap.Geometry.Point(a.x+1,a.y),s=[];t.push(t[0].clone());for(var p=0;p<t.length-1;p++){var u=SuperMap.Plot.PlottingUtil.intersectLines(a,r,t[p],t[p+1]);u.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint,t[p],t[p+1])&&s.push(u.intersectPoint))}if(!(0>=s.length)){var c=s[0].clone(),P=s[0].clone();for(p=0;p<s.length;p++)c.x>s[p].x&&(c=s[p].clone()),P.x<s[p].x&&(P=s[p].clone());var S=[],h=new SuperMap.Geometry.Point(a.x-n/2,c.y);h.x<=P.x&&h.x>=c.x&&((S=[]).push(c),S.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S));var y=new SuperMap.Geometry.Point(a.x+n/2,P.y);y.x<=P.x&&y.x>=c.x&&((S=[]).push(P),S.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S)),this.scalePoints=[];var f=SuperMap.Plot.PlottingUtil.circlePoint(a,n/2,n/2,90);if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(t,a))return this.addScalePoint(a,0),this.addScalePoint(f,1),a.x<c.x?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c,a]):this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,a]),void this.finish();this.addScalePoint(a,0),this.addScalePoint(f,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;if(0===SuperMap.Plot.PlottingUtil.getOutRectangleDis(l))return;var o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),r=e;if(0==t&&(o=(r.x-a.x)/n,this.scaleValues[0]=o,i=(r.y-a.y)/n,this.scaleValues[1]=i),1==t){o=this.scaleValues[0],i=this.scaleValues[1];var s=new SuperMap.Geometry.Point(a.x+o*n,a.y+i*n),p=2*SuperMap.Plot.PlottingUtil.distance(r,s)/n;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol44400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol44300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var i=this.scaleValues[0],n=this.scaleValues[2],a=this.scaleValues[3];l.x=l.x+n*o,l.y=l.y+a*o;var r=o*i,s=SuperMap.Plot.PlottingUtil.circlePoint(l,r,r,90),p=SuperMap.Plot.PlottingUtil.circlePoint(l,r,r,210),u=SuperMap.Plot.PlottingUtil.circlePoint(l,r,r,330),c=[];c.push(s),c.push(p),c.push(u),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0,fillLimit:!0,fill:!0}),this.scalePoints=[],this.addScalePoint(s),this.addScalePoint(l),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=[];if(o=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0===t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+a,n.y+r),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1===t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol44300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol44200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.05),l.scaleValues.push(180)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=this.GetGoPts();if(!(t.length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.05),this.scaleValues.push(180));var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[1]=o}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2],r=l*i,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r,e);if(s.bfind){var p=s.index,u=s.pts,c=u,P=n*l,S=new SuperMap.Geometry.Point(P,-.5*P),h=new SuperMap.Geometry.Point(P,.5*P),y=new SuperMap.Geometry.Point(-P,.5*P),f=new SuperMap.Geometry.Point(-P,-.5*P),g=SuperMap.Plot.PlottingUtil.coordinateTrans(c,S,a),M=SuperMap.Plot.PlottingUtil.coordinateTrans(c,h,a),b=SuperMap.Plot.PlottingUtil.coordinateTrans(c,y,a),m=SuperMap.Plot.PlottingUtil.coordinateTrans(c,f,a),d=[];d.push(g),d.push(M),d.push(b),d.push(m),d.push(g),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d);var v=new SuperMap.Geometry.Point(.5*P,-.2*P),O=new SuperMap.Geometry.Point(.7*P,.2*P),U=new SuperMap.Geometry.Point(.3*P,.2*P),L=SuperMap.Plot.PlottingUtil.coordinateTrans(c,v,a),w=SuperMap.Plot.PlottingUtil.coordinateTrans(c,U,a),V=SuperMap.Plot.PlottingUtil.coordinateTrans(c,O,a),_=[];_.push(L),_.push(w),_.push(V),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,_,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,fillLimit:!0,fill:!0,lineTypeLimit:!0});var T=new SuperMap.Geometry.Point(P,0),A=new SuperMap.Geometry.Point(2*P,0),E=SuperMap.Plot.PlottingUtil.coordinateTrans(c,T,a),x=SuperMap.Plot.PlottingUtil.coordinateTrans(c,A,a);(_=[]).push(E),_.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_);var Y=new SuperMap.Geometry.Point(2*P,.15*P),j=new SuperMap.Geometry.Point(2*P,-.15*P),C=new SuperMap.Geometry.Point(2.6*P,0),I=SuperMap.Plot.PlottingUtil.coordinateTrans(c,Y,a),G=SuperMap.Plot.PlottingUtil.coordinateTrans(c,j,a),B=SuperMap.Plot.PlottingUtil.coordinateTrans(c,C,a);(_=[]).push(I),_.push(G),_.push(B),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,_,{fillLimit:!0,fill:!0,lineTypeLimit:!0});var R=[];R.push(I),R.push(B);var N,D=[],k=[];for(N=0;N<=p;N++)D.push(e[N]);for(D.push(c),k.push(c),N=p+1;N<e.length;N++)k.push(e[N]);var z,F,K=1.2*P;if(r>K){var W=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r-K,D);if(W.bfind){var q=W.pts,J=W.index;for(_=[],N=0;N<=J;N++)_.push(D[N]);_.push(q),z=SuperMap.Plot.PlottingUtil.radian(_[0],_[1])*SuperMap.Plot.PlottingUtil.RTOD,F=SuperMap.Plot.PlottingUtil.circlePoint(_[0],.1*P,.1*P,90+z),_.splice(0,0,F),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_)}}if(l-r>K){var H=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(K,k);if(H.bfind){var Q=H.pts,X=H.index;for((_=[]).push(Q),N=X+1;N<k.length;N++)_.push(k[N]);var Z=_.length;z=SuperMap.Plot.PlottingUtil.radian(_[Z-1],_[Z-2])*SuperMap.Plot.PlottingUtil.RTOD,F=SuperMap.Plot.PlottingUtil.circlePoint(_[Z-1],.1*P,.1*P,270+z),_.push(F),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_)}}this.scalePoints=[],this.addScalePoint(u),this.addScalePoint(x),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0==t){for(var r=e.clone(),s=-1,p=0,u=0;u<o.length-1;u++){var c=[];c.push(o[u]),c.push(o[u+1]);var P=SuperMap.Plot.PlottingUtil.projectPoint(r,o[u],o[u+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(P,c).isOnPolyLine){var S=SuperMap.Plot.PlottingUtil.distance(r,P);-1==s?(s=u,p=S):p>S&&(s=u,p=S)}}if(-1==s)return SuperMap.Plot.PlottingUtil.distance(r,o[0])>SuperMap.Plot.PlottingUtil.distance(r,o[o.length-1])?void(s=o.length-1):void(s=0);if(i=0,0===s)i=SuperMap.Plot.PlottingUtil.distance(o[0],P);else for(var h=0;h<s;h++)i+=SuperMap.Plot.PlottingUtil.distance(o[h],o[h+1]);if(i<0||i>a)return;n=i/a,this.scaleValues[0]=n}else if(1==t){i=this.scaleValues[0]*a;var y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,o);if(!y.bfind)return;var f=y.pts;(n=.5*SuperMap.Plot.PlottingUtil.distance(f,e)/a)>.3&&(n=.3),this.scaleValues[1]=n;var g=SuperMap.Plot.PlottingUtil.radian(f,e)*SuperMap.Plot.PlottingUtil.RTOD;this.scaleValues[2]=g}}}},{key:"GetGoPts",value:function(){var t=[];return this.controlPoints.length<this.minEditPts?t:(t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),1==(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length&&(t=[]),t)}}]),e}();SuperMap.Plot.AlgoSymbol44200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol44100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.105263),l.scaleValues.push(.181818),l.scaleValues.push(.285714),l.scaleValues.push(.285714)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(.285714),this.scaleValues.push(.105263),this.scaleValues.push(.181818),this.scaleValues.push(.285714),this.scaleValues.push(.285714));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),a=new SuperMap.Geometry.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*r),u=new SuperMap.Geometry.Point(o*(1-s),o*r),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD,g=[];g.push(a),g.push(p),g.push(S),g.push(y),g.push(h),g.push(u),g.push(n);for(var M=[],b=0;b<g.length;b++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[b],f);M.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var d=[],v=.06*o,O=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v,l,e),U=O.pntRight,L=O.pntLeft;d.push(U),d.push(L),v=.15*o;var w=new SuperMap.Geometry.Point(v,0),V=SuperMap.Plot.PlottingUtil.coordinateTrans(e,w,f);d.push(V),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,fillLimit:!0,fill:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(M[0]),this.addScalePoint(M[1]),this.addScalePoint(M[2]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),a=l[1].clone(),r=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var p=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var c=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[2]=c;var P=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[4]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol44100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol43500=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),o=[];for(e=15;e<=75;e+=5)o.push(SuperMap.Plot.PlottingUtil.circlePoint(t[0],l,l,e));for(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),o=[],e=105;e<=165;e+=5)o.push(SuperMap.Plot.PlottingUtil.circlePoint(t[0],l,l,e));for(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),o=[],e=195;e<=255;e+=5)o.push(SuperMap.Plot.PlottingUtil.circlePoint(t[0],l,l,e));for(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),o=[],e=285;e<=345;e+=5)o.push(SuperMap.Plot.PlottingUtil.circlePoint(t[0],l,l,e));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);var i,n,a,r,s,p=.2*l,u=new SuperMap.Geometry.Point(t[0].x-p,t[0].y),c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,t[0],u);i=c.pntRight,n=c.pntLeft,a=(c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*p,i,n)).pntLeft;var P=new SuperMap.Geometry.Point(i.x+2*p,i.y);r=(c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,i,P)).pntRight,s=c.pntLeft,(o=[]).push(a),o.push(n),o.push(i),o.push(s),o.push(r),o.push(i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol43500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.04),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){2==t.length?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t,{fill:!1});var e,l,o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),i=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.2*this.getSubSymbolScaleValue()),l=i*this.scaleValues[0];var n=i*this.scaleValues[0],a=n+l;e=new SuperMap.Geometry.Point(o.x,o.y+a);var r=[];r.push(e),r.push(new SuperMap.Geometry.Point(e.x+l,e.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,r);var s=new SuperMap.Geometry.Point(o.x,o.y+.8*n),p=new SuperMap.Geometry.Point(o.x-n,o.y-n),u=new SuperMap.Geometry.Point(o.x+n,o.y-n);(r=[]).push(s),r.push(p),r.push(u),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,r,{fillLimit:!0,fill:!0,lineTypeLimit:!0});var c=new SuperMap.Geometry.Point(o.x-.5*n,o.y-n),P=new SuperMap.Geometry.Point(p.x,p.y-2*l),S=new SuperMap.Geometry.Point(o.x+.5*n,o.y-n),h=new SuperMap.Geometry.Point(u.x,u.y-2*l);(r=[]).push(c),r.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),(r=[]).push(S),r.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol42700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.285714),l.scaleValues.push(.5),l.scaleValues.push(.333333),l.scaleValues.push(.333333)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.285714),this.scaleValues.push(.285714),this.scaleValues.push(.5),this.scaleValues.push(.333333));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),a=new SuperMap.Geometry.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*r),u=new SuperMap.Geometry.Point(o*(1-s),o*r),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD,g=[];g.push(a),g.push(u),g.push(h),g.push(y),g.push(S),g.push(p),g.push(n);for(var M=[],b=0;b<g.length;b++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[b],f);M.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var d,v,O,U=!0;e.x>l.x&&(U=!1);var L,w=(O=.1*o)+(v=.12*o/2);d=1==U?(L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(w,l,e)).pntRight:(L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(w,l,e)).pntLeft;var V,_,T,A,E,x,Y,j,C=[];C.push(d),C.push(new SuperMap.Geometry.Point(d.x+v,d.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,C),1==U?(V=(L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.85*O,l,e)).pntRight,A=L.pntLeft,_=(L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O,V,A)).pntRight,T=L.pntLeft):(V=(L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.85*O,l,e)).pntLeft,A=L.pntRight,_=(L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O,V,A)).pntLeft,T=L.pntRight),(C=[]).push(V),C.push(_),C.push(T),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,C,{fillLimit:!0,fill:!0,lineTypeLimit:!0}),L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*v,_,T),j=1==U?L.pntRight:L.pntLeft,L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*v,T,_),x=1==U?L.pntLeft:L.pntRight;var I=SuperMap.Plot.PlottingUtil.intersectLines(V,x,T,_);I.isIntersectLines&&(E=I.intersectPoint,(I=SuperMap.Plot.PlottingUtil.intersectLines(V,j,T,_)).isIntersectLines&&(Y=I.intersectPoint,(C=[]).push(E),C.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C),(C=[]).push(Y),C.push(j),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C),this.scalePoints=[],this.addScalePoint(M[0]),this.addScalePoint(M[1]),this.addScalePoint(M[2]),this.finish()))}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),a=l[1].clone(),r=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var p=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var c=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[2]=c;var P=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[4]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol42500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.5*i}var n=l*this.scaleValues[0],a=l*this.scaleValues[2],r=l*this.scaleValues[3],s=[];s.push(new SuperMap.Geometry.Point(o.x+a,o.y+r)),s.push(new SuperMap.Geometry.Point(o.x+a+n,o.y+r)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,s,{fill:!1}),this.scalePoints=[],this.addScalePoint(new SuperMap.Geometry.Point(o.x+a+n,o.y+r)),this.addScalePoint(new SuperMap.Geometry.Point(o.x+a,o.y+r)),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=[];if(o=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+a,n.y+r),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol42400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*a,l.y+o*r);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,c=SuperMap.Plot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),r=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-a.x)/r,this.scaleValues[2]=i,n=(e.y-a.y)/r,this.scaleValues[3]=n;else if(1===t){i=this.scaleValues[2],n=this.scaleValues[3];var s=new SuperMap.Geometry.Point(a.x+r*i,a.y+r*n),p=SuperMap.Plot.PlottingUtil.distance(s,e)/r;this.scaleValues[0]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol42200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(0!=e){var l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2];2===t.length?this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMap.Geometry.Point(r.x+i*e,r.y+n*e),p=a*e,u=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,270),c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,30),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,150),S=[];S.push(u),S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{fill:!1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var h=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(h),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),r=e;if(0==t)i=(r.x-a.x)/o,this.scaleValues[0]=i,n=(r.y-a.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(a.x+i*o,a.y+n*o),p=SuperMap.Plot.PlottingUtil.distance(r,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol41202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(0!==e){var l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2];2===t.length?this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMap.Geometry.Point(r.x+i*e,r.y+n*e),p=a*e,u=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90),c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,210),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,330),S=[];S.push(u),S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{fill:!1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var h=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(h),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),r=e;if(0==t)i=(r.x-a.x)/o,this.scaleValues[0]=i,n=(r.y-a.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(a.x+i*o,a.y+n*o),p=SuperMap.Plot.PlottingUtil.distance(r,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol41201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],a=this.scaleValues[2];2===t.length?this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMap.Geometry.Point(r.x+i*e,r.y+n*e),p=a*e,u=new SuperMap.Geometry.Point(s.x,s.y),c=new SuperMap.Geometry.Point(s.x-p,s.y-p),P=new SuperMap.Geometry.Point(s.x+p,s.y-p),S=new SuperMap.Geometry.Point(s.x-p,s.y+p),h=new SuperMap.Geometry.Point(s.x+p,s.y+p),y=[];y.push(u),y.push(c),y.push(P),y.push(u),y.push(S),y.push(h),y.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var f=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),r=e;if(0==t)i=(r.x-a.x)/o,this.scaleValues[0]=i,n=(r.y-a.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(a.x+i*o,a.y+n*o),p=SuperMap.Plot.PlottingUtil.distance(r,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol41200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.5),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&this.scaleValues.push(.5);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=e/l/2,i=.1*e;this.isEdit||(this.scaleValues[0]=o);var n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]-.4*e,t);if(n.bfind){var a=n.pts,r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]+.4*e,t);if(r.bfind){var s=r.pts,p=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]-.3*e,t);if(p.bfind){var u=p.pts,c=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]+.3*e,t);if(c.bfind){var P=c.pts,S=0,h=0,y=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(a,t);y.isOnPolyLine&&(S=y.index);var f=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(s,t);f.isOnPolyLine&&(h=f.index);var g=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0],t);if(g.bfind){var M=g.pts,b=[];if(b.push(u),S!==h)for(var m=S+1;m<=h;m++)b.push(t[m]);b.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);for(var d=[],v=0;v<=n.index;v++)d.push(t[v]);d.push(a),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var O=[];if(r.index<=t.length){O.push(s);for(var U=r.index+1;U<=t.length-1;U++)O.push(t[U])}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O);for(var L=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(M,b),w=0,V=0;V<L.index;V++)w+=SuperMap.Plot.PlottingUtil.distance(b[V],b[V+1]);w+=SuperMap.Plot.PlottingUtil.distance(M,b[L.index]);var _=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(w-.1,b);if(_.bfind){var T=_.pts,A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.42*e,T,M),E=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.48*e,T,M),x=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.6*e,T,M),Y=A.pntLeft,j=E.pntLeft,C=x.pntLeft;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[M,Y]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[j,C]);var I=SuperMap.Plot.PlottingUtil.polylineDistance([j,C]),G=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3*I,j,C).pntRight;if(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[C,G]),t.length>this.minEditPts){for(var B,R,N,D,k,z,F,K,W,q=1;q<t.length-1;q++){for(B=t[q],R=t[q+1],N=t[q-1],k=180*SuperMap.Plot.PlottingUtil.radian(B,R)/Math.PI,z=180*SuperMap.Plot.PlottingUtil.radian(B,N)/Math.PI-k;z<0;)z+=360;D=z/2,F=t[q+1].clone(),F=SuperMap.Plot.PlottingUtil.rotateAngle(B,D*Math.PI/180,F),K=SuperMap.Plot.PlottingUtil.linePnt(B,F,i),(W=[]).push(t[q]),W.push(K),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,W,null,!0)}var J=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[t.length-2],t[t.length-1]),H=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],t[0]),Q=J.pntLeft,X=H.pntRight;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],X]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[t.length-1],Q])}else{var Z=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[0],t[1]),$=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],t[0]),tt=Z.pntLeft,et=$.pntRight;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],et]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[1],tt])}this.addScalePoint(M,0),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(l.length<this.minEditPts)return;for(var i=-1,n=0,a=new SuperMap.Geometry.Point(0,0),r=0;r<l.length-1;r++){var s=[];s.push(l[r]),s.push(l[r+1]);var p=SuperMap.Plot.PlottingUtil.projectPoint(e,l[r],l[r+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(p,s).isOnPolyLine){var u=SuperMap.Plot.PlottingUtil.distance(e,p);-1===i?(i=r,a=p,n=u):n>u&&(i=r,a=p,n=u)}}if(-1===i||i>l.length-1)return;for(var c=0,P=0;P<i;P++)c+=SuperMap.Plot.PlottingUtil.distance(l[P],l[P+1]);var S=l[i];if((c+=SuperMap.Plot.PlottingUtil.distance(S,a))<0||c>o)return;var h=c/o,y=SuperMap.Plot.PlottingUtil.distance(l[0],l[1])/o;h<.4*y&&(h=.4*y),h>1-.4*y&&(h=1-.4*y),this.scaleValues[0]=h}}}]),e}();SuperMap.Plot.AlgoSymbol41100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40900=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[],l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(t.length<3)e.push(t[0]),e.push(t[1]);else{var o=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=o.scaleValues;for(var i=0;i<o.scalePoints.length;i++)this.addScalePoint(o.scalePoints[i]);e=o.beizerPoints}SuperMap.Plot.PlottingUtil.clearSamePts(e);var n=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(this.getSubSymbolScaleValue())),!(e.length<=0)){var a;a=2==t.length?0:t.length-1;var r=n*this.scaleValues[4*a],s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r,e);if(s.bfind){var p=s.index,u=s.pts,c=l*this.scaleValues[4*a+1],P=r-c,S=r+c;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var h,y=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(h=0;h<p;h++)f.push(e[h]);if(f.push(y),(s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e)).bfind){var g=s.pts;p=s.index;var M=[];for(M.push(g),h=p+1;h<e.length;h++)M.push(e[h]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[u,g]);var b=l*this.scaleValues[4*a+1]/1.667;if(!(f.length<2)){var m=f[0],d=f[1],v=SuperMap.Plot.PlottingUtil.radian(m,d)*SuperMap.Plot.PlottingUtil.RTOD,O=SuperMap.Plot.PlottingUtil.circlePoint(m,b,b,v+90),U=SuperMap.Plot.PlottingUtil.circlePoint(m,b,b,v+270),L=[];if(L.push(O),L.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L),!(M.length<2)){var w=M[M.length-1],V=M[M.length-2],_=SuperMap.Plot.PlottingUtil.radian(w,V)*SuperMap.Plot.PlottingUtil.RTOD,T=SuperMap.Plot.PlottingUtil.circlePoint(w,b,b,_+90),A=SuperMap.Plot.PlottingUtil.circlePoint(w,b,b,_+270);(L=[]).push(T),L.push(A),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L),this.addScalePoint(u),this.addScalePoint(O),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,c=0;for(a=0;a<s.length-1;a++){var P=[];P.push(s[a]),P.push(s[a+1]);var S=SuperMap.Plot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S,P).isOnPolyLine){var h=SuperMap.Plot.PlottingUtil.distance(r,S);-1==u?(u=a,p=S,c=h):c>h&&(u=a,p=S,c=h)}}if(-1==u||u>s.length-1)return;var y=0;for(a=0;a<u;a++){var f=o[a],g=o[a+1];y+=SuperMap.Plot.PlottingUtil.distance(f,g)}var M=o[u];if((y+=SuperMap.Plot.PlottingUtil.distance(M,p))<0||y>n)return;var b=y/n;if(b>.8||b<.2)return;2==l.length?this.scaleValues[0]=b:this.scaleValues[2*t]=b}else if(2*l.length-1==t||2==l.length&&1==t){var m=1.667*SuperMap.Plot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var v=(e.x-l[d].x)/i,O=(e.y-l[d].y)/i;this.scaleValues[2*t]=v,this.scaleValues[2*t+1]=O}}}}]),e}();SuperMap.Plot.AlgoSymbol40900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.2*i}var n=l*this.scaleValues[0],a=l*this.scaleValues[2],r=l*this.scaleValues[3],s=new SuperMap.Geometry.Point(o.x+a,o.y+r),p=[];p.push(s),p.push(new SuperMap.Geometry.Point(s.x+n,s.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,p,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});for(var u=18*n,c=new SuperMap.Geometry.Point(s.x+u,s.y),P=[],S=135;S<180;S+=3)P.push(SuperMap.Plot.PlottingUtil.circlePoint(c,u,u,S));P.push(SuperMap.Plot.PlottingUtil.circlePoint(c,u,u,180)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var h=SuperMap.Plot.PlottingUtil.circlePoint(s,n,n,0);this.addScalePoint(h),this.addScalePoint(s),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+a,n.y+r),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol40101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.4*i}var n=l*this.scaleValues[0],a=l*this.scaleValues[2],r=l*this.scaleValues[3],s=new SuperMap.Geometry.Point(o.x+a,o.y+r),p=.6*n,u=new SuperMap.Geometry.Point(s.x+n,s.y),c=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,0),P=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,180),S=[];S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0});var h=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,90),y=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,270);(S=[]).push(h),S.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0});var f=new SuperMap.Geometry.Point(s.x-n,s.y),g=SuperMap.Plot.PlottingUtil.circlePoint(f,.5*n,.5*n,270),M=SuperMap.Plot.PlottingUtil.circlePoint(f,n,n,240),b=SuperMap.Plot.PlottingUtil.circlePoint(f,n,n,90),m=SuperMap.Plot.PlottingUtil.circlePoint(f,n,n,300);(S=[]).push(g),S.push(M),S.push(b),S.push(m),S.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0}),this.scalePoints=[];var d=SuperMap.Plot.PlottingUtil.circlePoint(s,n,n,0);this.addScalePoint(d),this.addScalePoint(s),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+a,n.y+r),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol40100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40000=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[];if(t.length<3)e.push(t[0]),e.push(t[1]);else{var l=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=l.scaleValues;for(var o=0;o<l.scalePoints.length;o++)this.addScalePoint(l.scalePoints[o]);e=l.beizerPoints}if(SuperMap.Plot.PlottingUtil.clearSamePts(e),!(e.length<=0)){this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(.5*this.getSubSymbolScaleValue()));var i=0;t.length>2&&(i=t.length-1);var n=SuperMap.Plot.PlottingUtil.polylineDistance(t),a=SuperMap.Plot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*i],r=n*this.scaleValues[4*i+1]/1.667,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,c=3.6*r,P=a-c,S=a+c;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var h,y=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(h=0;h<p;h++)f.push(e[h]);if(f.push(y),(s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e)).bfind){var g=s.pts;p=s.index;var M=[];for(M.push(g),h=p+1;h<e.length;h++)M.push(e[h]);var b={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1};if(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f,b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M,b),!(f.length<2)){var m=f[0],d=f[1],v=SuperMap.Plot.PlottingUtil.radian(m,d)*SuperMap.Plot.PlottingUtil.RTOD,O=SuperMap.Plot.PlottingUtil.circlePoint(m,r,r,v+90),U=SuperMap.Plot.PlottingUtil.circlePoint(m,r,r,v+270),L=[];if(L.push(O),L.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L,b),!(M.length<2)){var w=M[M.length-1],V=M[M.length-2],_=SuperMap.Plot.PlottingUtil.radian(w,V)*SuperMap.Plot.PlottingUtil.RTOD,T=SuperMap.Plot.PlottingUtil.circlePoint(w,r,r,_+90),A=SuperMap.Plot.PlottingUtil.circlePoint(w,r,r,_+270);(L=[]).push(T),L.push(A),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L,b);var E=SuperMap.Plot.PlottingUtil.radian(y,g)*SuperMap.Plot.PlottingUtil.RTOD,x=.8*SuperMap.Plot.PlottingUtil.distance(y,g),Y=new SuperMap.Geometry.Point((y.x+g.x)/2,(y.y+g.y)/2);if(this.subSymbols.length>0){var j=this.computeSubSymbol(this.subSymbols[0],Y,x,E);if(null!=j)for(var C=0;C<j.length;C++)j[C].style.lineColorLimit=!0,j[C].style.strokeColor="#0000ff",j[C].style.color="#0000ff"}var I=SuperMap.Plot.PlottingUtil.findPointInLine(y,g,.4*x),G=SuperMap.Plot.PlottingUtil.circlePoint(I,.75*x,.75*x,E+135),B=SuperMap.Plot.PlottingUtil.circlePoint(I,.75*x,.75*x,E+315),R=SuperMap.Plot.PlottingUtil.distance(G,B);(L=[]).push(G),L.push(B),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L);var N=SuperMap.Plot.PlottingUtil.findPointInLine(G,B,1.2*R),D=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.08*R,G,B);(L=[]).push(N),L.push(D.pntLeft),L.push(D.pntRight),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,L,{fillLimit:!0,fill:!0,lineTypeLimit:!0}),this.addScalePoint(u),this.addScalePoint(O),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,c=0;for(a=0;a<s.length-1;a++){var P=[];P.push(s[a]),P.push(s[a+1]);var S=SuperMap.Plot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S,P).isOnPolyLine){var h=SuperMap.Plot.PlottingUtil.distance(r,S);-1==u?(u=a,p=S,c=h):c>h&&(u=a,p=S,c=h)}}if(-1==u||u>s.length-1)return;var y=0;for(a=0;a<u;a++){var f=o[a],g=o[a+1];y+=SuperMap.Plot.PlottingUtil.distance(f,g)}var M=o[u];if((y+=SuperMap.Plot.PlottingUtil.distance(M,p))<0||y>n)return;var b=y/n;if(b>.8||b<.2)return;2==l.length?this.scaleValues[0]=b:this.scaleValues[2*t]=b}else if(2*l.length-1==t||2==l.length&&1==t){var m=1.667*SuperMap.Plot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var v=(e.x-l[d].x)/i,O=(e.y-l[d].y)/i;this.scaleValues[2*t]=v,this.scaleValues[2*t+1]=O}}}}]),e}();SuperMap.Plot.AlgoSymbol40000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[];if(t.length<3)e.push(t[0]),e.push(t[1]);else{var l=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=l.scaleValues;for(var o=0;o<l.scalePoints.length;o++)this.addScalePoint(l.scalePoints[o]);e=l.beizerPoints}if(SuperMap.Plot.PlottingUtil.clearSamePts(e),!(e.length<=0)){this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(.5*this.getSubSymbolScaleValue()));var i=0;t.length>2&&(i=t.length-1);var n=SuperMap.Plot.PlottingUtil.polylineDistance(t),a=SuperMap.Plot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*i],r=n*this.scaleValues[4*i+1]/1.667,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,c=3*r,P=a-c,S=a+c;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var h,y=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(h=0;h<p;h++)f.push(e[h]);if(f.push(y),(s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e)).bfind){var g=s.pts;p=s.index;var M=[];for(M.push(g),h=p+1;h<e.length;h++)M.push(e[h]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var b=SuperMap.Plot.PlottingUtil.radian(y,g)*SuperMap.Plot.PlottingUtil.RTOD,m=SuperMap.Plot.PlottingUtil.distance(y,g),d=new SuperMap.Geometry.Point((y.x+g.x)/2,(y.y+g.y)/2);if(this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],d,m,b),!(f.length<2)){var v=f[0],O=f[1],U=SuperMap.Plot.PlottingUtil.radian(v,O)*SuperMap.Plot.PlottingUtil.RTOD,L=SuperMap.Plot.PlottingUtil.circlePoint(v,r,r,U+90),w=SuperMap.Plot.PlottingUtil.circlePoint(v,r,r,U+270),V=[];if(V.push(L),V.push(w),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V),!(M.length<2)){var _=M[M.length-1],T=M[M.length-2],A=SuperMap.Plot.PlottingUtil.radian(_,T)*SuperMap.Plot.PlottingUtil.RTOD,E=SuperMap.Plot.PlottingUtil.circlePoint(_,r,r,A+90),x=SuperMap.Plot.PlottingUtil.circlePoint(_,r,r,A+270);(V=[]).push(E),V.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V);var Y=SuperMap.Plot.PlottingUtil.paraLine(e,r,!1),j=SuperMap.Plot.PlottingUtil.polylineDistance(Y)/11,C=j;for(h=0;h<11;h++)if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(C-j,Y)).bfind){var I=s.index,G=s.pts;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(C,Y)).bfind){var B=s.pts,R=s.index;if(h%2==0){var N=[];N.push(G);for(var D=I+1;D<=R;D++)N.push(Y[D]);N.push(B),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,N,{surroundLineLimit:!0,lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1})}C+=j}}var k;k=SuperMap.Plot.PlottingUtil.paraLine(e,3.5*r,!1),SuperMap.Plot.PlottingUtil.clearSamePts(k),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,k);var z;z=SuperMap.Plot.PlottingUtil.paraLine(e,3.5*r,!0),SuperMap.Plot.PlottingUtil.clearSamePts(z),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,z),this.addScalePoint(u),this.addScalePoint(L),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,c=0;for(a=0;a<s.length-1;a++){var P=[];P.push(s[a]),P.push(s[a+1]);var S=SuperMap.Plot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S,P).isOnPolyLine){var h=SuperMap.Plot.PlottingUtil.distance(r,S);-1==u?(u=a,p=S,c=h):c>h&&(u=a,p=S,c=h)}}if(-1==u||u>s.length-1)return;var y=0;for(a=0;a<u;a++){var f=o[a],g=o[a+1];y+=SuperMap.Plot.PlottingUtil.distance(f,g)}var M=o[u];if((y+=SuperMap.Plot.PlottingUtil.distance(M,p))<0||y>n)return;var b=y/n;if(b>.8||b<.2)return;2==l.length?this.scaleValues[0]=b:this.scaleValues[2*t]=b}else if(2*l.length-1==t||2==l.length&&1==t){var m=1.667*SuperMap.Plot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var v=(e.x-l[d].x)/i,O=(e.y-l[d].y)/i;this.scaleValues[2*t]=v,this.scaleValues[2*t+1]=O}}}}]),e}();SuperMap.Plot.AlgoSymbol39802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[];if(t.length<3)e.push(t[0]),e.push(t[1]);else{var l=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=l.scaleValues;for(var o=0;o<l.scalePoints.length;o++)this.addScalePoint(l.scalePoints[o]);e=l.beizerPoints}if(SuperMap.Plot.PlottingUtil.clearSamePts(e),!(e.length<=0)){this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(.5*this.getSubSymbolScaleValue()));var i=0;t.length>2&&(i=t.length-1);var n=SuperMap.Plot.PlottingUtil.polylineDistance(t),a=SuperMap.Plot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*i],r=n*this.scaleValues[4*i+1]/1.667,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,c=3*r,P=a-c,S=a+c;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var h,y=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(h=0;h<p;h++)f.push(e[h]);if(f.push(y),(s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e)).bfind){var g=s.pts;p=s.index;var M=[];for(M.push(g),h=p+1;h<e.length;h++)M.push(e[h]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var b=SuperMap.Plot.PlottingUtil.radian(y,g)*SuperMap.Plot.PlottingUtil.RTOD,m=SuperMap.Plot.PlottingUtil.distance(y,g),d=new SuperMap.Geometry.Point((y.x+g.x)/2,(y.y+g.y)/2);if(this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],d,m,b),!(f.length<2)){var v=f[0],O=f[1],U=SuperMap.Plot.PlottingUtil.radian(v,O)*SuperMap.Plot.PlottingUtil.RTOD,L=SuperMap.Plot.PlottingUtil.circlePoint(v,r,r,U+90),w=SuperMap.Plot.PlottingUtil.circlePoint(v,r,r,U+270),V=[];if(V.push(L),V.push(w),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V),!(M.length<2)){var _=M[M.length-1],T=M[M.length-2],A=SuperMap.Plot.PlottingUtil.radian(_,T)*SuperMap.Plot.PlottingUtil.RTOD,E=SuperMap.Plot.PlottingUtil.circlePoint(_,r,r,A+90),x=SuperMap.Plot.PlottingUtil.circlePoint(_,r,r,A+270);(V=[]).push(E),V.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V),this.addScalePoint(u),this.addScalePoint(L),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,c=0;for(a=0;a<s.length-1;a++){var P=[];P.push(s[a]),P.push(s[a+1]);var S=SuperMap.Plot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S,P).isOnPolyLine){var h=SuperMap.Plot.PlottingUtil.distance(r,S);-1==u?(u=a,p=S,c=h):c>h&&(u=a,p=S,c=h)}}if(-1==u||u>s.length-1)return;var y=0;for(a=0;a<u;a++){var f=o[a],g=o[a+1];y+=SuperMap.Plot.PlottingUtil.distance(f,g)}var M=o[u];if((y+=SuperMap.Plot.PlottingUtil.distance(M,p))<0||y>n)return;var b=y/n;if(b>.8||b<.2)return;2==l.length?this.scaleValues[0]=b:this.scaleValues[2*t]=b}else if(2*l.length-1==t||2==l.length&&1==t){var m=1.667*SuperMap.Plot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var v=(e.x-l[d].x)/i,O=(e.y-l[d].y)/i;this.scaleValues[2*t]=v,this.scaleValues[2*t+1]=O}}}}]),e}();SuperMap.Plot.AlgoSymbol39801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[];if(t.length<3)e.push(t[0]),e.push(t[1]);else{var l=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=l.scaleValues;for(var o=0;o<l.scalePoints.length;o++)this.addScalePoint(l.scalePoints[o]);e=l.beizerPoints}if(SuperMap.Plot.PlottingUtil.clearSamePts(e),!(e.length<=0)){this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(.5*this.getSubSymbolScaleValue()));var i=0;t.length>2&&(i=t.length-1);var n=SuperMap.Plot.PlottingUtil.polylineDistance(t),a=SuperMap.Plot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*i],r=n*this.scaleValues[4*i+1]/1.667,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,c=3.6*r,P=a-c,S=a+c;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var h,y=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(h=0;h<p;h++)f.push(e[h]);if(f.push(y),(s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e)).bfind){var g=s.pts;p=s.index;var M=[];for(M.push(g),h=p+1;h<e.length;h++)M.push(e[h]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var b=SuperMap.Plot.PlottingUtil.radian(y,g)*SuperMap.Plot.PlottingUtil.RTOD,m=SuperMap.Plot.PlottingUtil.distance(y,g),d=new SuperMap.Geometry.Point((y.x+g.x)/2,(y.y+g.y)/2);if(this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],d,.8*m,b),!(f.length<2)){var v=f[0],O=f[1],U=SuperMap.Plot.PlottingUtil.radian(v,O)*SuperMap.Plot.PlottingUtil.RTOD,L=SuperMap.Plot.PlottingUtil.circlePoint(v,r,r,U+90),w=SuperMap.Plot.PlottingUtil.circlePoint(v,r,r,U+270),V=[];if(V.push(L),V.push(w),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V),!(M.length<2)){var _=M[M.length-1],T=M[M.length-2],A=SuperMap.Plot.PlottingUtil.radian(_,T)*SuperMap.Plot.PlottingUtil.RTOD,E=SuperMap.Plot.PlottingUtil.circlePoint(_,r,r,A+90),x=SuperMap.Plot.PlottingUtil.circlePoint(_,r,r,A+270);(V=[]).push(E),V.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V);var Y=SuperMap.Plot.PlottingUtil.paraLine(e,r,!1),j=SuperMap.Plot.PlottingUtil.polylineDistance(Y)/11,C=j;for(h=0;h<11;h++)if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(C-j,Y)).bfind){var I=s.index,G=s.pts;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(C,Y)).bfind){var B=s.pts,R=s.index;if(h%2==0){var N=[];N.push(G);for(var D=I+1;D<=R;D++)N.push(Y[D]);N.push(B),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,N,{surroundLineLimit:!0,lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1})}C+=j}}this.addScalePoint(u),this.addScalePoint(L),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var a,r=e,s=[];for(a=0;a<o.length;a++)s.push(o[a]);var p,u=-1,c=0;for(a=0;a<s.length-1;a++){var P=[];P.push(s[a]),P.push(s[a+1]);var S=SuperMap.Plot.PlottingUtil.projectPoint(r,s[a],s[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S,P).isOnPolyLine){var h=SuperMap.Plot.PlottingUtil.distance(r,S);-1==u?(u=a,p=S,c=h):c>h&&(u=a,p=S,c=h)}}if(-1==u||u>s.length-1)return;var y=0;for(a=0;a<u;a++){var f=o[a],g=o[a+1];y+=SuperMap.Plot.PlottingUtil.distance(f,g)}var M=o[u];if((y+=SuperMap.Plot.PlottingUtil.distance(M,p))<0||y>n)return;var b=y/n;if(b>.8||b<.2)return;2==l.length?this.scaleValues[0]=b:this.scaleValues[2*t]=b}else if(2*l.length-1==t||2==l.length&&1==t){var m=1.667*SuperMap.Plot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var v=(e.x-l[d].x)/i,O=(e.y-l[d].y)/i;this.scaleValues[2*t]=v,this.scaleValues[2*t+1]=O}}}}]),e}();SuperMap.Plot.AlgoSymbol39800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol39600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.03,l.scaleValues[1]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol38600),e}();SuperMap.Plot.AlgoSymbol39600=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.08),l.scaleValues.push(.181818),l.scaleValues.push(.285714),l.scaleValues.push(.285714)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.285714),this.scaleValues.push(.08),this.scaleValues.push(.181818),this.scaleValues.push(.285714),this.scaleValues.push(.285714));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),a=new SuperMap.Geometry.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*r),u=new SuperMap.Geometry.Point(o*(1-s),o*r),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD,g=[];g.push(n),g.push(p),g.push(S),g.push(y),g.push(h),g.push(u),g.push(a);for(var M=[],b=0;b<g.length;b++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[b],f);M.push(m)}for(var d=[],v=M.length-1;v>=0;--v)d.push(M[v]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var O=t[0],U=t[0],L=t[1],w=SuperMap.Plot.PlottingUtil.radian(U,L)*SuperMap.Plot.PlottingUtil.RTOD+270,V=.2*o;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],O,V,w),this.scalePoints=[],this.addScalePoint(M[0]),this.addScalePoint(M[1]),this.addScalePoint(M[2]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),a=l[1].clone(),r=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var p=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var c=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[2]=c;var P=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[4]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol39500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.1||i<=0)&&(i=.1),this.scaleValues[0]=i}var n=l*this.scaleValues[2],a=l*this.scaleValues[3],r=new SuperMap.Geometry.Point(o.x+n,o.y+a),s=l*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,s,0),this.scalePoints=[];var p=SuperMap.Plot.PlottingUtil.circlePoint(r,s,s,180);this.addScalePoint(p),this.addScalePoint(r),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=[];if(o=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+a,n.y+r),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol39101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol39000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(.08),l.scaleValues.push(.05),l.scaleValues.push(-.08),l.scaleValues.push(-.08),l.scaleValues.push(.05),l.scaleValues.push(.08),l.scaleValues.push(-.08)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(.08),this.scaleValues.push(.05),this.scaleValues.push(-.08),this.scaleValues.push(-.08),this.scaleValues.push(.05),this.scaleValues.push(.08),this.scaleValues.push(-.08));var e=this.scaleValues[1],l=this.scaleValues[2],o=this.scaleValues[4],i=this.scaleValues[5],n=this.scaleValues[7],a=this.scaleValues[8],r=[];if(r=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),r=SuperMap.Plot.PlottingUtil.clearSamePts(r),!(this.minEditPts>r.length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,r);var s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),p=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var u=this.getSubSymbolScaleValue()*p;this.scaleValues[0]=u/p,this.scaleValues[3]=u/p,this.scaleValues[6]=u/p}var c=new SuperMap.Geometry.Point(s.x+p*e,s.y+p*l),P=new SuperMap.Geometry.Point(s.x+p*o,s.y+p*i),S=new SuperMap.Geometry.Point(s.x+p*n,s.y+p*a),h=p*this.scaleValues[0],y=p*this.scaleValues[3],f=p*this.scaleValues[6];this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],c,1.5*h,0),this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],P,1.5*y,0),this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[2],S,1.5*f,0),this.addScalePoint(c);var g=SuperMap.Plot.PlottingUtil.circlePoint(c,h,h,180);this.addScalePoint(g),this.addScalePoint(P);var M=SuperMap.Plot.PlottingUtil.circlePoint(P,y,y,180);this.addScalePoint(M),this.addScalePoint(S);var b=SuperMap.Plot.PlottingUtil.circlePoint(S,f,f,180);this.addScalePoint(b),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;0===this.scaleValues.length&&(this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(.08),this.scaleValues.push(.05),this.scaleValues.push(-.08),this.scaleValues.push(-.08),this.scaleValues.push(.05),this.scaleValues.push(.08),this.scaleValues.push(-.08));var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=this.scaleValues[3],r=this.scaleValues[4],s=this.scaleValues[5],p=this.scaleValues[6],u=this.scaleValues[7],c=this.scaleValues[8],P=[];if(P=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),P=SuperMap.Plot.PlottingUtil.clearSamePts(P),this.minEditPts>P.length)return;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,P);var S=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),h=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-S.x)/h,this.scaleValues[1]=i,n=(e.y-S.y)/h,this.scaleValues[2]=n;else if(1===t){i=this.scaleValues[1],n=this.scaleValues[2];var y=new SuperMap.Geometry.Point(S.x+h*i,S.y+h*n);o=SuperMap.Plot.PlottingUtil.distance(y,e)/h,this.scaleValues[0]=o}if(2===t)r=(e.x-S.x)/h,this.scaleValues[4]=r,s=(e.y-S.y)/h,this.scaleValues[5]=s;else if(3===t){r=this.scaleValues[4],s=this.scaleValues[5];var f=new SuperMap.Geometry.Point(S.x+h*r,S.y+h*s);a=SuperMap.Plot.PlottingUtil.distance(f,e)/h,this.scaleValues[3]=a}if(4===t)u=(e.x-S.x)/h,this.scaleValues[7]=u,c=(e.y-S.y)/h,this.scaleValues[8]=c;else if(5===t){u=this.scaleValues[7],c=this.scaleValues[8];var g=new SuperMap.Geometry.Point(S.x+h*u,S.y+h*c);p=SuperMap.Plot.PlottingUtil.distance(g,e)/h,this.scaleValues[6]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol39000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol38700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=Math.PI/4,l.scaleValues[1]=Math.PI/4,l.scaleValues[2]=.3,l.scaleValues[3]=.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<4&&(this.scaleValues=[],this.scaleValues[0]=Math.PI/4,this.scaleValues[1]=Math.PI/4,this.scaleValues[2]=.3,this.scaleValues[3]=.1);var e=t[0],l=t[1],o=SuperMap.Plot.PlottingUtil.distance(e,l),i=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD;if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/o;(n>.3||n<=0)&&(n=.3),this.scaleValues[2]=n}var a=this.scaleValues[0],r=this.scaleValues[1],s=this.scaleValues[2],p=this.scaleValues[3],u=a*SuperMap.Plot.PlottingUtil.RTOD,c=i-u,P=i+u,S=this.GetArcPts(c,P,e,o);if(!(2>S.length)){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=o*s,y=i-90,f=o*p,g=SuperMap.Plot.PlottingUtil.linePnt(e,l,f),M=SuperMap.Plot.PlottingUtil.radian(g,l)*SuperMap.Plot.PlottingUtil.RTOD-30,b=SuperMap.Plot.PlottingUtil.distance(g,l),m=0,d=t[0].clone(),v=SuperMap.Plot.PlottingUtil.circlePoint(g,b,b,M),O=null;if(this.subSymbols.length>0&&null!=(O=this.computeSubSymbol(this.subSymbols[0],g,h,y,0,-.5)))for(var U=0;U<O.length;U++)if(!(2>O[U].positionPoints))for(var L=0;L<O[U].positionPoints.length-1;L++){var w=O[U].positionPoints[L],V=O[U].positionPoints[L+1],_=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.intersectLineSegs(g,v,w,V,_)&&(0==m?d=_:SuperMap.Plot.PlottingUtil.distance(g,_)>SuperMap.Plot.PlottingUtil.distance(g,d)&&(d=_),m++)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[d,v]);var T=SuperMap.Plot.PlottingUtil.radian(v,d)*SuperMap.Plot.PlottingUtil.RTOD,A=SuperMap.Plot.PlottingUtil.distance(d,v),E=SuperMap.Plot.PlottingUtil.circlePoint(v,.1*A,.1*A,T-15),x=SuperMap.Plot.PlottingUtil.circlePoint(v,.1*A,.1*A,T+15),Y=[];Y.push(v),Y.push(E),Y.push(x),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,Y,{fillLimit:!0,fill:!0,lineTypeLimit:!0}),this.scalePoints=[];var j=SuperMap.Plot.PlottingUtil.circlePoint(e,o,o,P);this.addScalePoint(j);var C=SuperMap.Plot.PlottingUtil.linePnt(g,l,o*s);if(this.addScalePoint(C),this.addScalePoint(g),3==t.length){var I=t[2],G=SuperMap.Plot.PlottingUtil.distance(e,I),B=r*SuperMap.Plot.PlottingUtil.RTOD,R=i-B,N=i+B,D=this.GetArcPts(R,N,e,G);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,D);var k=SuperMap.Plot.PlottingUtil.circlePoint(e,G,G,N);this.addScalePoint(k);var z=v,F=SuperMap.Plot.PlottingUtil.distance(e,I)-o,K=SuperMap.Plot.PlottingUtil.circlePoint(z,F,F,M);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[z,K]);var W=SuperMap.Plot.PlottingUtil.circlePoint(K,.1*F,.1*F,T-15),q=SuperMap.Plot.PlottingUtil.circlePoint(K,.1*F,.1*F,T+15),J=[];J.push(K),J.push(W),J.push(q),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,J,{fillLimit:!0,fill:!0,lineTypeLimit:!0})}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>3)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=e,i=l[0],n=l[1],a=SuperMap.Plot.PlottingUtil.distance(i,n),r=SuperMap.Plot.PlottingUtil.radian(i,n);if(0==t){var s=SuperMap.Plot.PlottingUtil.radian(i,o),p=Math.abs(s-r);this.scaleValues[0]=p}else if(1==t){var u=a*this.scaleValues[3],c=SuperMap.Plot.PlottingUtil.linePnt(i,n,u),P=SuperMap.Plot.PlottingUtil.distance(o,c)/a;this.scaleValues[2]=P}else if(2==t){var S=SuperMap.Plot.PlottingUtil.distance(o,i)/a;if(S>=1)return;this.scaleValues[3]=S}else if(3==t){var h=SuperMap.Plot.PlottingUtil.radian(i,o),y=Math.abs(h-r);this.scaleValues[1]=y}}}},{key:"GetArcPts",value:function(t,e,l,o){var i,n=[],a=0;for(a=t;a<e;a+=4)i=SuperMap.Plot.PlottingUtil.circlePoint(l,o,o,a),n.push(i);return a!=e&&(i=SuperMap.Plot.PlottingUtil.circlePoint(l,o,o,e),n.push(i)),n}}]),e}();SuperMap.Plot.AlgoSymbol38700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol38600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.04,l.scaleValues[2]=.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=.04),2===this.scaleValues.length&&this.scaleValues.push(.1),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=o,this.scaleValues[2]=.5*o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,r=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.7*r,a-90);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p,this.scaleValues[2])}for(var P=[],S=0;S<e.length;S++)P.push(e[S]);var h=l*this.scaleValues[1],y=SuperMap.Plot.PlottingUtil.paraLine(P,h,!0),f=SuperMap.Plot.PlottingUtil.paraLine(P,h,!1),g=[];for(S=0;S<y.length;S++)g.push(y[S]);var M=[];for(S=0;S<f.length;S++)M.push(f[S]);g=SuperMap.Plot.PlottingUtil.clearSamePts(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),M=SuperMap.Plot.PlottingUtil.clearSamePts(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var b=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),m=SuperMap.Plot.PlottingUtil.circlePoint(b.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(m,0),this.addScalePoint(f[0],1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(l.length<this.minEditPts)return;if(0===t){var n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o);if(-1===n.index)return;var a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}if(1===t){var r=SuperMap.Plot.PlottingUtil.distance(e,l[0]);this.scaleValues[1]=r/i}}}}]),e}();SuperMap.Plot.AlgoSymbol38600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*a,l.y+o*r);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,c=SuperMap.Plot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(c),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol37700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37601=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),i=l*this.scaleValues[2],n=l*this.scaleValues[3],a=new SuperMap.Geometry.Point(o.x+i,o.y+n);if(!this.isEdit){var r=this.getDefaultSubSymbolSize()/l;(r>.3||r<=0)&&(r=.3),this.scaleValues[0]=r}var s=l*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,s,90),this.scalePoints=[];var p=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,180);this.addScalePoint(p),this.addScalePoint(a),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+a,n.y+r),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol37601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.15||i<=0)&&(i=.15),this.scaleValues[0]=i}var n=o*this.scaleValues[2],a=o*this.scaleValues[3],r=new SuperMap.Geometry.Point(l.x+n,l.y+a),s=o*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,s,0),this.scalePoints=[];var p=SuperMap.Plot.PlottingUtil.circlePoint(r,s,s,180);this.addScalePoint(p),this.addScalePoint(r),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=i*this.scaleValues[2],r=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+a,n.y+r),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol37600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.125,l.scaleValues[1]=.02,l.scaleValues[2]=.25,l.scaleValues[3]=.8),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<4&&(this.scaleValues=[],this.scaleValues[0]=.125,this.scaleValues[1]=.02,this.scaleValues[2]=.25,this.scaleValues[3]=.8),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),l=SuperMap.Plot.PlottingUtil.radian(t[1],t[0])*SuperMap.Plot.PlottingUtil.RTOD,o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=this.scaleValues[3],r=new SuperMap.Geometry.Point(o*e,i*e),s=new SuperMap.Geometry.Point(o*e,-i*e),p=SuperMap.Plot.PlottingUtil.coordinateTrans(t[1],r,l),u=SuperMap.Plot.PlottingUtil.coordinateTrans(t[1],s,l),c=[];c.push(p),c.push(u),c.push(t[1]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{fillLimit:!0,fill:!0,lineTypeLimit:!0});var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n*e,t);if(P.bfind){var S=.05*e,h=P.pts,y=SuperMap.Plot.PlottingUtil.circlePoint(h,S,S,l+90),f=SuperMap.Plot.PlottingUtil.circlePoint(h,S,S,l+270);if((c=[]).push(y),c.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{lineTypeLimit:!0,surroundLineLimit:!0}),(P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a*e,t)).bfind){var g=P.pts,M=SuperMap.Plot.PlottingUtil.circlePoint(g,S,S,l+90),b=SuperMap.Plot.PlottingUtil.circlePoint(g,S,S,l+270);(c=[]).push(M),c.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(u),this.addScalePoint(h),this.addScalePoint(g),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[1],l[0]);if(0==t){var i=SuperMap.Plot.PlottingUtil.projectPoint(e,l[1],l[0]),n=SuperMap.Plot.PlottingUtil.distance(i,l[1]);90>SuperMap.Plot.PlottingUtil.radian(l[1],i)*SuperMap.Plot.PlottingUtil.RTOD&&(n=-n);var a=n/o;this.scaleValues[0]=a;var r=SuperMap.Plot.PlottingUtil.distance(e,i)/o;this.scaleValues[1]=r}else if(1==t){var s=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;if(.1>s||s>.95)return;this.scaleValues[2]=s}else if(2==t){var p=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;if(.1>p||p>.95)return;this.scaleValues[3]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol37301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.125,l.scaleValues[1]=.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),l=SuperMap.Plot.PlottingUtil.radian(t[1],t[0])*SuperMap.Plot.PlottingUtil.RTOD,o=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],.35*e),i=SuperMap.Plot.PlottingUtil.circlePoint(o,.05*e,.05*e,l+270);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[i,o],{fill:!1,fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var n=this.scaleValues[0],a=this.scaleValues[1],r=new SuperMap.Geometry.Point(n*e,a*e),s=new SuperMap.Geometry.Point(n*e,-a*e),p=SuperMap.Plot.PlottingUtil.coordinateTrans(t[1],r,l),u=SuperMap.Plot.PlottingUtil.coordinateTrans(t[1],s,l),c=[];c.push(p),c.push(u),c.push(t[1]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{fillLimit:!0,fill:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(u),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[1],l[0]);if(0==t){var i=SuperMap.Plot.PlottingUtil.projectPoint(e,l[1],l[0]),n=SuperMap.Plot.PlottingUtil.distance(i,l[1]);90>SuperMap.Plot.PlottingUtil.radian(l[1],i)*SuperMap.Plot.PlottingUtil.RTOD&&(n=-n);var a=n/o;this.scaleValues[0]=a;var r=SuperMap.Plot.PlottingUtil.distance(e,i)/o;this.scaleValues[1]=r}}}}]),e}();SuperMap.Plot.AlgoSymbol37300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol37200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol27100),e}();SuperMap.Plot.AlgoSymbol37200=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e,l,o=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),i=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,n=this.scaleValues[0],a=this.scaleValues[1],r=n*o,s=[];for(e=90;e<=270;e+=3)l=SuperMap.Plot.PlottingUtil.circlePoint(t[0],r,r,e+i),s.push(l);var p=[];for(e=-90;e<=90;e+=3)l=SuperMap.Plot.PlottingUtil.circlePoint(t[1],r,r,e+i),p.push(l);var u=o*a,c=new SuperMap.Geometry.Point((s[0].x+p[p.length-1].x)/2,(s[0].y+p[p.length-1].y)/2),P=SuperMap.Plot.PlottingUtil.linePnt(s[0],p[p.length-1],.5*(o-1.2*u)),S=SuperMap.Plot.PlottingUtil.linePnt(p[p.length-1],s[0],.5*(o-1.2*u)),h=[];h.push(P),h.push.apply(h,s),h.push.apply(h,p),h.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var y=SuperMap.Plot.PlottingUtil.radian(S,P)*SuperMap.Plot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],c,.9*u,y-90),this.scalePoints=[],this.addScalePoint(s[s.length-1]);var f=SuperMap.Plot.PlottingUtil.circlePoint(c,u,u,y+90);this.addScalePoint(f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}else if(1==t){var n=this.scaleValues[0]*o,a=SuperMap.Plot.PlottingUtil.circlePoint(l[0],n,n,90),r=SuperMap.Plot.PlottingUtil.circlePoint(l[1],n,n,90),s=new SuperMap.Geometry.Point((a.x+r.x)/2,(a.y+r.y)/2),p=SuperMap.Plot.PlottingUtil.distance(s,e)/o;p>=.8&&(p=.8),this.scaleValues[1]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol37100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var l=.1*e,o=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l,t[1],t[0]),i=o.pntRight,n=o.pntLeft,a=(o=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l,t[0],t[1])).pntRight,r=o.pntLeft,s=[];s.push(i),s.push(n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);var p=[];p.push(a),p.push(r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);var u=[];u.push(i),u.push(r);for(var c=SuperMap.Plot.PlottingUtil.polylineDistance(u)/11,P=c,S=0,h=0,y=null,f=null,g=0;g<11;g++){if(0==g)S=0,y=i.clone();else{var M=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P-c,u);if(!M.bfind)continue;S=M.index,y=M.pts}if(10==g)h=0,f=r.clone();else{if(!(M=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,u)).bfind)continue;h=M.index,f=M.pts}if(g%2==0){var b=[];b.push(y);for(var m=S+1;m<=h;m++)b.push(u[m]);b.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,{lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0})}P+=c}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol36800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.04,l.scaleValues[1]=.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=.04),2===this.scaleValues.length&&this.scaleValues.push(.1),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=o,this.scaleValues[2]=.5*o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,r=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.7*r,a-90);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addStartPtArrow(s,this.scaleValues[2]),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p,this.scaleValues[2])}for(var P=[],S=0;S<e.length;S++)P.push(e[S]);var h=l*this.scaleValues[1],y=SuperMap.Plot.PlottingUtil.paraLine(P,h,!0),f=SuperMap.Plot.PlottingUtil.paraLine(P,h,!1),g=[];for(S=0;S<y.length;S++)g.push(y[S]);var M=[];for(S=0;S<f.length;S++)M.push(f[S]);g=SuperMap.Plot.PlottingUtil.clearSamePts(g),M=SuperMap.Plot.PlottingUtil.clearSamePts(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var b=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),m=SuperMap.Plot.PlottingUtil.circlePoint(b.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(m,0),this.addScalePoint(f[0],1),this.finish()}}},{key:"addStartPtArrow",value:function(t,e){if(t.length<2)return t;var l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints)*e,o=t[0];if(t.length>=2){for(var i=-1,n=0;n<t.length-1;n++)if(l<SuperMap.Plot.PlottingUtil.distance(o,t[n])){i=n;break}t.splice(1,i)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var a=t[1],r=t[0],s=l,p=SuperMap.Plot.PlottingUtil.radian(r,a)*SuperMap.Plot.PlottingUtil.RTOD,u=SuperMap.Plot.PlottingUtil.circlePoint(r,s,s,p+22.5),c=SuperMap.Plot.PlottingUtil.circlePoint(r,s,s,p-22.5);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[u,t[0],c],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0)}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(l.length<this.minEditPts)return;if(0===t){var n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o);if(-1===n.index)return;var a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.4?a:.4}if(1===t){var r=SuperMap.Plot.PlottingUtil.distance(e,l[0]);this.scaleValues[1]=r/i}}}}]),e}();SuperMap.Plot.AlgoSymbol36700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue(),this.scaleValues[1]=this.getSubSymbolScaleValue());var e,l=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),o=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,i=this.scaleValues[0],n=this.scaleValues[1],a=i*l,r=[];for(e=90;e<=270;e+=3)r.push(SuperMap.Plot.PlottingUtil.circlePoint(t[0],a,a,e+o));for(e=-90;e<=90;e+=3)r.push(SuperMap.Plot.PlottingUtil.circlePoint(t[1],a,a,e+o));r.push(r[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);var s=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),p=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,u=l*n;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,u,p+90),this.scalePoints=[],this.addScalePoint(r[r.length-1]);var c=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p+90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}else if(1==t){var n=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),a=SuperMap.Plot.PlottingUtil.distance(n,e)/o;a>=.8&&(a=.8),this.scaleValues[1]=a}}}}]),e}();SuperMap.Plot.AlgoSymbol36600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36401=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.1),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=.5*e,o=e*this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l,t),n=i.index,a=i.pts,r=(i=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l+o,t)).index;if(!(n<0||r<0)){var s;if(n!=r)(s=SuperMap.Plot.PlottingUtil.distance(t[n+1],t[n]))<=2*o?(o=s/2,a.x=(t[n+1].x+t[n].x)/2,a.y=(t[n+1].y+t[n].y)/2):a=SuperMap.Plot.PlottingUtil.linePnt(t[n+1],t[n],o);else if((s=SuperMap.Plot.PlottingUtil.distance(t[n+1],t[n]))<=2*o)o=s/2,a.x=(t[n+1].x+t[n].x)/2,a.y=(t[n+1].y+t[n].y)/2;else SuperMap.Plot.PlottingUtil.distance(t[n],a)<o&&(a=SuperMap.Plot.PlottingUtil.linePnt(t[n],t[n+1],o));var p,u=[];for(p=0;p<n+1;p++)u.push(t[p]);var c=SuperMap.Plot.PlottingUtil.linePnt(a,t[n],o);u.push(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var P=SuperMap.Plot.PlottingUtil.linePnt(a,t[n+1],o),S=[];S.push(P);var h=t.length;for(p=n+1;p<h;++p)S.push(t[p]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var y=t[0],f=t[1],g=t[t.length-2],M=t[t.length-1],b=.03*e,m=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b,f,y),d=m.pntRight,v=m.pntLeft,O=(m=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b,g,M)).pntRight,U=m.pntLeft,L=[];L.push(d),L.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L,{lineTypeLimit:!0});var w=[];w.push(O),w.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w,{lineTypeLimit:!0});var V=SuperMap.Plot.PlottingUtil.radian(P,c)*SuperMap.Plot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,.8*o,V-90),this.scalePoints=[];var _=SuperMap.Plot.PlottingUtil.circlePoint(a,o,o,V-90);this.addScalePoint(_),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;if(0==t){var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=e,n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*o,l).pts,a=SuperMap.Plot.PlottingUtil.distance(i,n)/o;this.scaleValues[0]=a<.5?a:.5}}}}]),e}();SuperMap.Plot.AlgoSymbol36401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol36400=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol36400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.1);var e=t[0],l=t[1],o=SuperMap.Plot.PlottingUtil.distance(e,l),i=o*this.scaleValues[0],n=SuperMap.Plot.PlottingUtil.linePnt(e,l,.5*o),a=SuperMap.Plot.PlottingUtil.linePnt(n,e,i),r=SuperMap.Plot.PlottingUtil.linePnt(n,l,i),s=[],p=[];s.push(t[0]),s.push(a),p.push(r),p.push(t[1]);var u=SuperMap.Plot.PlottingUtil.paraLine(s,.5*i,!0),c=SuperMap.Plot.PlottingUtil.paraLine(p,.5*i,!0),P=[],S=[];P.push(u[0]),P.push(u[1]),S.push(c[0]),S.push(c[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1});var h=[],y=[],f=SuperMap.Plot.PlottingUtil.paraLine(s,.5*i,!1),g=SuperMap.Plot.PlottingUtil.paraLine(p,.5*i,!1);h.push(f[0]),h.push(f[1]),y.push(g[0]),y.push(g[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y,{lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1});var M=SuperMap.Plot.PlottingUtil.linePnt(P[1],S[0],.2*i),b=SuperMap.Plot.PlottingUtil.linePnt(S[0],P[1],.2*i),m=SuperMap.Plot.PlottingUtil.linePnt(h[1],y[0],.2*i),d=SuperMap.Plot.PlottingUtil.linePnt(y[0],h[1],.2*i),v=[];v.push(M),v.push(b),v.push(d),v.push(m),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,v,{fillLimit:!0,fill:!0,lineTypeLimit:!0});var O=SuperMap.Plot.PlottingUtil.linePnt(m,M,1.2*i),U=SuperMap.Plot.PlottingUtil.linePnt(M,m,1.2*i),L=[];L.push(O),L.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L,{lineTypeLimit:!0});var w=SuperMap.Plot.PlottingUtil.linePnt(d,b,1.2*i),V=SuperMap.Plot.PlottingUtil.linePnt(b,d,1.2*i),_=[];_.push(w),_.push(V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_,{lineTypeLimit:!0}),this.addScalePoint(f[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>this.scalePoints.length)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0]);this.scaleValues[0]=2*i/o}}}}]),e}();SuperMap.Plot.AlgoSymbol35500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35304=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=0),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=0),!this.isEdit){var e=[];e.push(this.subSymbols[0]),this.scaleValues[0]=this.getSubSymbolScaleValue(),this.subSymbols=[];for(var l=0;l<t.length;l++)this.subSymbols.push(e[0])}var o,i=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],n=[];for(o=0;o<t.length;o++)n.push(t[o]);for(n.push(n[0]),o=0;o<n.length-1;o++){var a=n[o],r=n[o+1],s=SuperMap.Plot.PlottingUtil.radian(a,r)*SuperMap.Plot.PlottingUtil.RTOD;s+=90;var p=.5*i,u=SuperMap.Plot.PlottingUtil.circlePoint(a,p,p,s),c=SuperMap.Plot.PlottingUtil.circlePoint(r,p,p,s);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c])}this.scalePoints=[];var P=SuperMap.Plot.PlottingUtil.circlePoint(t[0],1.2*i,1.2*i,270);for(this.addScalePoint(P),o=0;o<t.length;o++){var S=n[o];2*(o+1)>=this.scaleValues.length&&this.scaleValues.push(0);var h=this.scaleValues[2*(o+1)];2*(o+1)+1>=this.scaleValues.length&&this.scaleValues.push(1);var y=h;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[o],S,i,y);var f=SuperMap.Plot.PlottingUtil.circlePoint(S,1.5*i,1.5*i,y+90);this.addScalePoint(f)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>this.scalePoints.length)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;if(0==t){for(var o=[],i=0;i<l.length;i++)o.push(l[i]);var n=SuperMap.Plot.PlottingUtil.polylineDistance(o),a=SuperMap.Plot.PlottingUtil.distance(o[0],e)/1.2;this.scaleValues[0]=a/n}else{var r=l[t-1],s=SuperMap.Plot.PlottingUtil.radian(r,e)*SuperMap.Plot.PlottingUtil.RTOD;0>(s-=90)&&(s+=360),this.scaleValues[2*t]=s}}}},{key:"GetCodeByScaleValue",value:function(t){switch(Math.floor(t)){case 0:return 35300;case 1:return 35301;case 2:return 35302;case 3:return 35303;case 4:return 35400;case 5:return 35401;case 6:return 35402;case 7:return 35403;default:return-1}}}]),e}();SuperMap.Plot.AlgoSymbol35304=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue()),2==t.length?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=e*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],l,o,0),this.scalePoints=[];var i=SuperMap.Plot.PlottingUtil.circlePoint(l,o,o,90);this.addScalePoint(i),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var n=SuperMap.Plot.PlottingUtil.distance(e,i)/o;this.scaleValues[0]=n}}}}]),e}();SuperMap.Plot.AlgoSymbol35200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.03),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.03),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=e[0],n=e[1],a=e[e.length-1],r=e[e.length-2],s=SuperMap.Plot.PlottingUtil.radian(i,n)*SuperMap.Plot.PlottingUtil.RTOD,p=SuperMap.Plot.PlottingUtil.radian(r,a)*SuperMap.Plot.PlottingUtil.RTOD,u=this.scaleValues[0],c=l*u,P=SuperMap.Plot.PlottingUtil.circlePoint(i,c,c,s+90),S=SuperMap.Plot.PlottingUtil.circlePoint(i,c,c,s+270),h=[];h.push(P),h.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(S);var y=SuperMap.Plot.PlottingUtil.circlePoint(a,c,c,p+90),f=SuperMap.Plot.PlottingUtil.circlePoint(a,c,c,p+270);(h=[]).push(y),h.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0});var g,M,b=t.length;if(this.scaleValues.length<=b){for(this.scaleValues=[],this.scaleValues.push(u),M=1/b,g=0;g<b-1;g++)this.scaleValues.push(M*(g+1));this.scaleValues.push(u)}for(g=0;g<b-1;g++){var m=(M=this.scaleValues[g+1])*l,d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(m,e);if(!d.bfind)return;var v=d.pts,O=d.index,U=l*this.getSubSymbolScaleValue(),L=.3*U,w=SuperMap.Plot.PlottingUtil.radian(e[O],e[O+1])*SuperMap.Plot.PlottingUtil.RTOD,V=new SuperMap.Geometry.Point(U,-L),_=new SuperMap.Geometry.Point(-U,-L),T=new SuperMap.Geometry.Point(-U,0),A=new SuperMap.Geometry.Point(U,0),E=SuperMap.Plot.PlottingUtil.coordinateTrans(v,V,w),x=SuperMap.Plot.PlottingUtil.coordinateTrans(v,_,w),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(v,T,w),j=SuperMap.Plot.PlottingUtil.coordinateTrans(v,A,w);(h=[]).push(E),h.push(x),h.push(Y),h.push(j),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,{lineTypeLimit:!0,fillLimit:!0,fill:!0}),this.addScalePoint(v)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>=this.scalePoints.length)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0==t){var a=(i=SuperMap.Plot.PlottingUtil.distance(e,l[0]))/n;this.scaleValues[0]=a}else{var r,s=e,p=[];for(r=0;r<o.length;r++)p.push(o[r]);var u=-1,c=0,P=new SuperMap.Geometry.Point(0,0);for(r=0;r<p.length-1;r++){var S=[];S.push(p[r]),S.push(p[r+1]);var h=SuperMap.Plot.PlottingUtil.projectPoint(s,p[r],p[r+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(h,S).isOnPolyLine){var y=SuperMap.Plot.PlottingUtil.distance(s,h);-1==u?(u=r,P=h,c=y):c>y&&(u=r,P=h,c=y)}}if(-1==u||u>p.length-1)return;for(i=0,r=0;r<u;r++)i+=SuperMap.Plot.PlottingUtil.distance(o[r],o[r+1]);if((i+=SuperMap.Plot.PlottingUtil.distance(o[u],P))<0||i>n)return;var f=i/n;this.scaleValues[t]=f}}}}]),e}();SuperMap.Plot.AlgoSymbol35000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34902=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l/2,e);if(o.bfind){var i=o.index,n=o.pts;if(!this.isEdit){var a=this.getDefaultSubSymbolSize()/l;(a>.3||a<=0)&&(a=.3),this.scaleValues[0]=a,this.scaleValues[1]=.5*a}var r,s=l*this.scaleValues[0],p=[];for(p.push(n),r=i;r>=0;r--)p.push(e[r]);if((o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,p)).bfind){var u=o.index,c=o.pts,P=[];for(r=p.length-1;r>u;r--)P.push(p[r]);P.push(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S=[];for(S.push(n),r=i+1;r<e.length;r++)S.push(e[r]);if((o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,S)).bfind){var h=o.index,y=o.pts;for((P=[]).push(y),r=h+1;r<S.length;r++)P.push(S[r]);this.addArrow(P,this.scaleValues[1]);var f=.1*s,g=c,M=y,b=SuperMap.Plot.PlottingUtil.radian(g,M)*SuperMap.Plot.PlottingUtil.RTOD,m=new SuperMap.Geometry.Point((g.x+M.x)/2,(g.y+M.y)/2),d=SuperMap.Plot.PlottingUtil.circlePoint(m,2*f,2*f,b),v=SuperMap.Plot.PlottingUtil.circlePoint(m,2*f,2*f,b+180),O=SuperMap.Plot.PlottingUtil.circlePoint(d,f,f,0);(P=[]).push(d),P.push(O);var U={surroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0};this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,P,U);var L=SuperMap.Plot.PlottingUtil.circlePoint(v,f,f,0);(P=[]).push(v),P.push(L),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,P,U);var w=e[0].clone(),V=e[1].clone(),_=SuperMap.Plot.PlottingUtil.radian(V,w)*SuperMap.Plot.PlottingUtil.RTOD,T=new SuperMap.Geometry.Point(0,.5*s),A=new SuperMap.Geometry.Point(s,.5*s),E=new SuperMap.Geometry.Point(1.5*s,0),x=SuperMap.Plot.PlottingUtil.coordinateTrans(w,T,_),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(w,A,_),j=SuperMap.Plot.PlottingUtil.coordinateTrans(w,E,_);(P=[]).push(e[0]),P.push(x),P.push(Y),P.push(j),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,P),this.finish()}}}}}}]),e}();SuperMap.Plot.AlgoSymbol34902=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34901=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l/2,e);if(o.bfind){var i=o.index,n=o.pts;if(!this.isEdit){var a=this.getDefaultSubSymbolSize()/l;(a>.3||a<=0)&&(a=.3),this.scaleValues[0]=a,this.scaleValues[1]=.5*a}var r,s=l*this.scaleValues[0],p=[];for(p.push(n),r=i;r>=0;r--)p.push(e[r]);if((o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,p)).bfind){var u=o.index,c=o.pts,P=[];for(r=p.length-1;r>u;r--)P.push(p[r]);P.push(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S=[];for(S.push(n),r=i+1;r<e.length;r++)S.push(e[r]);if((o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,S)).bfind){var h=o.index,y=o.pts;for((P=[]).push(y),r=h+1;r<S.length;r++)P.push(S[r]);this.addArrow(P,this.scaleValues[1]);var f=.1*s,g=SuperMap.Plot.PlottingUtil.circlePoint(n,f,f,0);(P=[]).push(n),P.push(g);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,P,{surroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0});var M=e[0].clone(),b=e[1].clone(),m=SuperMap.Plot.PlottingUtil.radian(b,M)*SuperMap.Plot.PlottingUtil.RTOD,d=new SuperMap.Geometry.Point(0,.5*s),v=new SuperMap.Geometry.Point(s,.5*s),O=new SuperMap.Geometry.Point(1.5*s,0),U=SuperMap.Plot.PlottingUtil.coordinateTrans(M,d,m),L=SuperMap.Plot.PlottingUtil.coordinateTrans(M,v,m),w=SuperMap.Plot.PlottingUtil.coordinateTrans(M,O,m);(P=[]).push(e[0]),P.push(U),P.push(L),P.push(w),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,P),this.finish()}}}}}}]),e}();SuperMap.Plot.AlgoSymbol34901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(-1!==SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,l/2).index){if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=.5*o}this.addArrow(e,this.scaleValues[1]);var i=l*this.scaleValues[0],n=new SuperMap.Geometry.Point(e[0].x,e[0].y),a=new SuperMap.Geometry.Point(e[1].x,e[1].y),r=SuperMap.Plot.PlottingUtil.radian(a,n)*SuperMap.Plot.PlottingUtil.RTOD,s=new SuperMap.Geometry.Point(0,.5*i),p=new SuperMap.Geometry.Point(i,.5*i),u=new SuperMap.Geometry.Point(1.5*i,0),c=SuperMap.Plot.PlottingUtil.coordinateTrans(n,s,r),P=SuperMap.Plot.PlottingUtil.coordinateTrans(n,p,r),S=SuperMap.Plot.PlottingUtil.coordinateTrans(n,u,r);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[e[0],c,P,S]),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol34900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34801=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.4),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[],l=t[0].clone(),o=t[1].clone(),i=SuperMap.Plot.PlottingUtil.distance(l,o),n=0;for(n=15;n<=165;n+=4)e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n));SuperMap.Plot.PlottingUtil.equalFuzzy(n,165)&&(n=165,e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n)));var a=[];for(n=e.length-1;n>=0;n--)a.push(e[n]);for(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),e=[],n=195;n<=345;n+=4)e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n));for(SuperMap.Plot.PlottingUtil.equalFuzzy(n,345)&&(n=345,e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n))),a=[],n=e.length-1;n>=0;n--)a.push(e[n]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);var r=2*this.scaleValues[0]*i;(e=[]).push(new SuperMap.Geometry.Point(l.x-r,l.y)),e.push(new SuperMap.Geometry.Point(l.x-.4*r,l.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),(e=[]).push(new SuperMap.Geometry.Point(l.x-.2*r,l.y)),e.push(new SuperMap.Geometry.Point(l.x+.4*r,l.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),(e=[]).push(new SuperMap.Geometry.Point(l.x+.6*r,l.y)),e.push(new SuperMap.Geometry.Point(l.x+r,l.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),(e=[]).push(new SuperMap.Geometry.Point(l.x-this.scaleValues[0]*i,l.y)),e.push(new SuperMap.Geometry.Point(l.x-this.scaleValues[0]*i,l.y+this.scaleValues[0]*i)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol34801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[],l=t[0].clone(),o=t[1].clone(),i=SuperMap.Plot.PlottingUtil.distance(l,o),n=0;for(n=15;n<=165;n+=4)e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n));SuperMap.Plot.PlottingUtil.equalFuzzy(n,165)&&(n=165,e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n)));var a=[];for(n=e.length-1;n>=0;n--)a.push(e[n]);for(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),e=[],n=195;n<=345;n+=4)e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n));for(SuperMap.Plot.PlottingUtil.equalFuzzy(n,345)&&(n=345,e.push(SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n))),a=[],n=e.length-1;n>=0;n--)a.push(e[n]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);var r=.8*i;(e=[]).push(new SuperMap.Geometry.Point(l.x-r,l.y)),e.push(new SuperMap.Geometry.Point(l.x+r,l.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),(e=[]).push(new SuperMap.Geometry.Point(l.x-.4*i,l.y)),e.push(new SuperMap.Geometry.Point(l.x-.4*i,l.y+.4*i)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol34800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.08,l.scaleValues[1]=.03),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.08),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=.5*e,o=e*this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l,t),n=i.pts,a=i.index,r=(i=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l+o,t)).index;if(!(a<0||r<0)){var s,p,u;if(a!=r)s=new SuperMap.Geometry.Point(t[a+1].x,t[a+1].y),p=new SuperMap.Geometry.Point(t[a].x,t[a].y),(u=SuperMap.Plot.PlottingUtil.distance(s,p))<=2*o?(o=u/2,n.x=(t[a+1].x+t[a].x)/2,n.y=(t[a+1].y+t[a].y)/2):n=SuperMap.Plot.PlottingUtil.linePnt(t[a+1],t[a],o);else if(s=new SuperMap.Geometry.Point(t[a+1].x,t[a+1].y),p=new SuperMap.Geometry.Point(t[a].x,t[a].y),(u=SuperMap.Plot.PlottingUtil.distance(s,p))<=2*o)o=u/2,n.x=(t[a+1].x+t[a].x)/2,n.y=(t[a+1].y+t[a].y)/2;else s=new SuperMap.Geometry.Point(t[a].x,t[a].y),p=new SuperMap.Geometry.Point(n.x,n.y),SuperMap.Plot.PlottingUtil.distance(s,p)<o&&(n=SuperMap.Plot.PlottingUtil.linePnt(t[a],t[a],o));var c,P,S,h=[];for(c=0;c<a+1;c++)h.push(t[c]);P=SuperMap.Plot.PlottingUtil.linePnt(n,t[a],o),h.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h),S=SuperMap.Plot.PlottingUtil.linePnt(n,t[a+1],o);var y=[];y.push(S);var f=t.length;for(c=a+1;c<f;++c)y.push(t[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var g=[],M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o/2,P,S);g.push(P),g.push(M.pntRight),g.push(M.pntLeft);var b=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,P,n)).pntRight;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{lineTypeLimit:!0});var m,d,v,O,U=t[0].clone(),L=t[1].clone(),w=t[t.length-2].clone(),V=t[t.length-1].clone(),_=e*this.scaleValues[1];d=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(_,L,U)).pntRight,m=M.pntLeft,O=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(_,w,V)).pntRight,v=M.pntLeft;var T=[];T.push(d),T.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T,{lineTypeLimit:!0});var A=[];A.push(O),A.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,{lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(b),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0==t){var i=.5*o,n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,l).pts,a=SuperMap.Plot.PlottingUtil.distance(e,n)/o;a>.5&&(a=.5),this.scaleValues[0]=a}}}}]),e}();SuperMap.Plot.AlgoSymbol34700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34501=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts||t.length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=SuperMap.Plot.PlottingUtil.radian(l,o)*SuperMap.Plot.PlottingUtil.RTOD,n=new SuperMap.Geometry.Point(0,0),a=new SuperMap.Geometry.Point(.475*e,0),r=SuperMap.Plot.PlottingUtil.coordinateTrans(l,n,i),s=SuperMap.Plot.PlottingUtil.coordinateTrans(l,a,i),p=[];p.push(r),p.push(s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var u=new SuperMap.Geometry.Point(.525*e,0),c=new SuperMap.Geometry.Point(.725*e,0),P=SuperMap.Plot.PlottingUtil.coordinateTrans(l,u,i),S=SuperMap.Plot.PlottingUtil.coordinateTrans(l,c,i);(p=[]).push(P),p.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var h=new SuperMap.Geometry.Point(.775*e,0),y=new SuperMap.Geometry.Point(.95*e,0),f=SuperMap.Plot.PlottingUtil.coordinateTrans(l,h,i),g=SuperMap.Plot.PlottingUtil.coordinateTrans(l,y,i);if((p=[]).push(f),p.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0}),this.subSymbols.length>0){var M=.2*e,b=new SuperMap.Geometry.Point(t[1].x,t[1].y+M/2);this.computeSubSymbol(this.subSymbols[0],b,M,0)}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol34501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34500=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=SuperMap.Plot.PlottingUtil.radian(l,o)*SuperMap.Plot.PlottingUtil.RTOD,n=new SuperMap.Geometry.Point(0,0),a=new SuperMap.Geometry.Point(.475*e,0),r=SuperMap.Plot.PlottingUtil.coordinateTrans(l,n,i),s=SuperMap.Plot.PlottingUtil.coordinateTrans(l,a,i),p=[];p.push(r),p.push(s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var u=new SuperMap.Geometry.Point(.525*e,0),c=new SuperMap.Geometry.Point(.725*e,0),P=SuperMap.Plot.PlottingUtil.coordinateTrans(l,u,i),S=SuperMap.Plot.PlottingUtil.coordinateTrans(l,c,i);(p=[]).push(P),p.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var h=new SuperMap.Geometry.Point(.775*e,0),y=new SuperMap.Geometry.Point(.95*e,0),f=SuperMap.Plot.PlottingUtil.coordinateTrans(l,h,i),g=SuperMap.Plot.PlottingUtil.coordinateTrans(l,y,i);(p=[]).push(f),p.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var M=new SuperMap.Geometry.Point(e,.0125*e),b=new SuperMap.Geometry.Point(e,-.0125*e),m=new SuperMap.Geometry.Point(.75*e+.2*e,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(l,M,i),v=SuperMap.Plot.PlottingUtil.coordinateTrans(l,b,i),O=SuperMap.Plot.PlottingUtil.coordinateTrans(l,m,i);(p=[]).push(d),p.push(O),p.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var U=new SuperMap.Geometry.Point(.75*e+.025*e,0),L=SuperMap.Plot.PlottingUtil.coordinateTrans(l,U,i);(p=[]).push(O),p.push(L),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var w=new SuperMap.Geometry.Point(.75*e+.15*e,0),V=SuperMap.Plot.PlottingUtil.circlePoint(w,.075*e,.1*e,150),_=SuperMap.Plot.PlottingUtil.circlePoint(w,.075*e,.1*e,210),T=SuperMap.Plot.PlottingUtil.coordinateTrans(l,w,i),A=SuperMap.Plot.PlottingUtil.coordinateTrans(l,V,i),E=SuperMap.Plot.PlottingUtil.coordinateTrans(l,_,i);(p=[]).push(A),p.push(T),p.push(E),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var x=new SuperMap.Geometry.Point(.75*e+.05*e,.025*e),Y=new SuperMap.Geometry.Point(.75*e+.05*e,-.025*e),j=SuperMap.Plot.PlottingUtil.coordinateTrans(l,x,i),C=SuperMap.Plot.PlottingUtil.coordinateTrans(l,Y,i);(p=[]).push(j),p.push(C),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0});var I=new SuperMap.Geometry.Point(.75*e+.0125*e,0),G=new SuperMap.Geometry.Point(.75*e+.0125*e,.0125*e),B=SuperMap.Plot.PlottingUtil.coordinateTrans(l,I,i),R=SuperMap.Plot.PlottingUtil.coordinateTrans(l,G,i);(p=[]).push(B),p.push(R),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,p,{lineTypeLimit:!0}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol34500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=SuperMap.Plot.PlottingUtil.radian(l,o)*SuperMap.Plot.PlottingUtil.RTOD,n=this.scaleValues[0],a=this.scaleValues[1];if(!(n<0||a<0)){var r=n*e,s=1-a*(5/4);s<0&&(s=0),s>1&&(s=1);var p,u,c=e*s,P=SuperMap.Plot.PlottingUtil.circlePoint(l,c,c,i),S=[];S.push(t[0].clone()),S.push(P),p=SuperMap.Plot.PlottingUtil.paraLine(S,r,!0),u=SuperMap.Plot.PlottingUtil.paraLine(S,r,!1);var h,y=[];for(h=0;h<p.length;h++)y.push(p[h]);var f=[];for(h=0;h<u.length;h++)f.push(u[h]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var g=a*e,M=SuperMap.Plot.PlottingUtil.circlePoint(o,g/2,g/2,i);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],M,g/2,i+180);for(var b=[],m=.1*c,d=[],v=0;v<y.length;v++)d.push(y[v].clone());var O=[];for(h=0;h<f.length;h++)O.push(f[h].clone());var U=SuperMap.Plot.PlottingUtil.distance(O[0],O[1]);if(!(m>=U)){for(var L=m;L<c-r;L+=m){var w=SuperMap.Plot.PlottingUtil.circlePoint(O[0],L,L,i),V=SuperMap.Plot.PlottingUtil.circlePoint(w,U,U,i+45),_=SuperMap.Plot.PlottingUtil.intersectLines(w,V,d[0],d[1]);if(_.isIntersectLines){var T=_.intersectPoint;if(!SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(T,d).isOnPolyLine)break;(b=[]).push(w),b.push(T),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,{lineTypeLimit:!0,surroundLineLimit:!0})}}this.scalePoints=[];var A=SuperMap.Plot.PlottingUtil.circlePoint(l,r,r,i+90);this.addScalePoint(A);var E=g/2,x=SuperMap.Plot.PlottingUtil.circlePoint(o,E,E,i+90);this.addScalePoint(x),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i=SuperMap.Plot.PlottingUtil.polylineDistance(l);0==t?(o=SuperMap.Plot.PlottingUtil.distance(l[0],e)/i,this.scaleValues[0]=o):1==t&&(o=2*SuperMap.Plot.PlottingUtil.distance(l[1],e)/i,this.scaleValues[1]=o)}}}]),e}();SuperMap.Plot.AlgoSymbol34400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol34300=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=SuperMap.Plot.PlottingUtil.radian(o,i)*SuperMap.Plot.PlottingUtil.RTOD,a=.02*l,r=[];for(e=0;e<360;e+=10)r.push(SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(0,0),a,a,e));r.push(r[0]);var s=[],p=new SuperMap.Geometry.Point(.1*l,0),u=SuperMap.Plot.PlottingUtil.coordinateTrans(o,p,n);for(e=0;e<r.length;e++)s.push(new SuperMap.Geometry.Point(r[e].x+u.x,r[e].y+u.y));var c={lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fill:!0};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,c);var P=new SuperMap.Geometry.Point(.25*l,0),S=SuperMap.Plot.PlottingUtil.coordinateTrans(o,P,n);for(s=[],e=0;e<r.length;e++)s.push(new SuperMap.Geometry.Point(r[e].x+S.x,r[e].y+S.y));this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,c);var h=new SuperMap.Geometry.Point(.4*l,0),y=SuperMap.Plot.PlottingUtil.coordinateTrans(o,h,n);for(s=[],e=0;e<r.length;e++)s.push(new SuperMap.Geometry.Point(r[e].x+y.x,r[e].y+y.y));this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,c);var f=new SuperMap.Geometry.Point(.6*l,0),g=SuperMap.Plot.PlottingUtil.coordinateTrans(o,f,n);for(s=[],e=0;e<r.length;e++)s.push(new SuperMap.Geometry.Point(r[e].x+g.x,r[e].y+g.y));this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,c);var M=new SuperMap.Geometry.Point(.5*l,.05*l),b=new SuperMap.Geometry.Point(.7*l,.05*l),m=new SuperMap.Geometry.Point(.75*l,0),d=new SuperMap.Geometry.Point(.7*l,-.05*l),v=new SuperMap.Geometry.Point(.5*l,-.05*l),O=SuperMap.Plot.PlottingUtil.coordinateTrans(o,M,n),U=SuperMap.Plot.PlottingUtil.coordinateTrans(o,b,n),L=SuperMap.Plot.PlottingUtil.coordinateTrans(o,m,n),w=SuperMap.Plot.PlottingUtil.coordinateTrans(o,d,n),V=SuperMap.Plot.PlottingUtil.coordinateTrans(o,v,n);(s=[]).push(O),s.push(U),s.push(L),s.push(w),s.push(V),s.push(O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol34300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol33400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.125),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.125),this.scaleValues.push(0)),this.scaleValues.length<6&&this.scaleValues.push(.1);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l,o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(((i=this.getDefaultSubSymbolSize()/n)>.3||i<=0)&&(i=.3),this.scaleValues[5]=i);var a=1.5*this.scaleValues[5];2==t.length?(this.isEdit||(this.scaleValues[3]=this.scaleValues[2]+a),l=this.scaleValues[2],o=this.scaleValues[3]):(SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[4],0)&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.125)),this.isEdit||(this.scaleValues[4]=this.scaleValues[3]+a,((i=this.getDefaultSubSymbolSize()/n)>.3||i<=0)&&(i=.3),this.scaleValues[5]=i),l=this.scaleValues[3],o=this.scaleValues[4]);var r=n*l,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r,e);if(s.bfind){var p=s.index,u=s.pts,c=n*o;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(c,e)).bfind){for(var P=s.index,S=s.pts,h=new SuperMap.Geometry.Point(u.x,u.y),y=new SuperMap.Geometry.Point(S.x,S.y),f=SuperMap.Plot.PlottingUtil.radian(h,y)*SuperMap.Plot.PlottingUtil.RTOD,g=[],M=0;M<=p;M++)g.push(e[M]);for(g.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),(g=[]).push(S),M=P+1;M<e.length;M++)g.push(e[M]);this.addArrow(g,.5*this.scaleValues[5]);var b=SuperMap.Plot.PlottingUtil.distance(h,y),m=new SuperMap.Geometry.Point(2/3*b,.5/3*b),d=new SuperMap.Geometry.Point(0,.5/3*b),v=new SuperMap.Geometry.Point(0,-.5/3*b),O=new SuperMap.Geometry.Point(2/3*b,-.5/3*b),U=SuperMap.Plot.PlottingUtil.coordinateTrans(h,m,f),L=SuperMap.Plot.PlottingUtil.coordinateTrans(h,d,f),w=SuperMap.Plot.PlottingUtil.coordinateTrans(h,v,f),V=SuperMap.Plot.PlottingUtil.coordinateTrans(h,O,f);(g=[]).push(U),g.push(L),g.push(w),g.push(V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g);var _=b/3*2,T=SuperMap.Plot.PlottingUtil.radian(y,U)*SuperMap.Plot.PlottingUtil.RTOD,A=SuperMap.Plot.PlottingUtil.circlePoint(y,_,_,T),E=SuperMap.Plot.PlottingUtil.radian(y,V)*SuperMap.Plot.PlottingUtil.RTOD,x=SuperMap.Plot.PlottingUtil.circlePoint(y,_,_,E);(g=[]).push(A),g.push(S),g.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),this.scalePoints=[],this.addScalePoint(S);var Y=SuperMap.Plot.PlottingUtil.circlePoint(h,b/2,b/2,f+90);this.addScalePoint(Y),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMap.Plot.PlottingUtil.polylineDistance(o),r=0,s=0;if(2==l.length?(r=this.scaleValues[2],s=this.scaleValues[3]):(r=this.scaleValues[3],s=this.scaleValues[4]),0==t){for(var p=s-r,u=e.clone(),c=[],P=0;P<o.length;P++)c.push(o[P].clone());for(var S,h=-1,y=0,f=0;f<c.length-1;f++){var g=[];g.push(c[f]),g.push(c[f+1]);var M=SuperMap.Plot.PlottingUtil.projectPoint(u,c[f],c[f+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(M,g).isOnPolyLine){var b=SuperMap.Plot.PlottingUtil.distance(u,M);-1==h?(h=f,S=M,y=b):y>b&&(h=f,S=M,y=b)}}if(-1==h||h>c.length-1)return;i=0;for(var m=0;m<h;m++)i+=SuperMap.Plot.PlottingUtil.distance(o[m],o[m+1]);if((i+=SuperMap.Plot.PlottingUtil.distance(o[h],S))<0||i>a)return;if((n=i/a)>.7||n-p<0)return;2==l.length?(this.scaleValues[2]=n-p,this.scaleValues[3]=n):(this.scaleValues[3]=n-p,this.scaleValues[4]=n)}else if(1==t){i=a*r;var d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,o);if(!d.bfind)return;var v=d.pts;if(.7<(n=(2*SuperMap.Plot.PlottingUtil.distance(v,e)+i)/a))return;2==l.length?this.scaleValues[3]=n:this.scaleValues[4]=n}}}}]),e}();SuperMap.Plot.AlgoSymbol33400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol32900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);2===t.length?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),i=o;this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var n=e*this.scaleValues[0],a=this.scaleValues[1],r=a,s=this.scaleValues[3],p=this.scaleValues[4];i.x=o.x+s*e,i.y=o.y+p*e,this.computeSubSymbol(this.subSymbols[0],o,n,r),this.addScalePoint(i,0);var u=new SuperMap.Geometry.Point(i.x,i.y),c=SuperMap.Plot.PlottingUtil.circlePoint(u,n,n,0);this.addScalePoint(c,1);var P=SuperMap.Plot.PlottingUtil.circlePoint(u,2*n,2*n,a);this.addScalePoint(P,2),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),r=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t&&(o=(e.x-a.x)/r,this.scaleValues[3]=o,i=(e.y-a.y)/r,this.scaleValues[4]=i),1===t){o=this.scaleValues[3],i=this.scaleValues[4],n=new SuperMap.Geometry.Point(a.x+o*r,a.y+i*r);var s=SuperMap.Plot.PlottingUtil.distance(n,e)/r;this.scaleValues[0]=s}if(2===t){o=this.scaleValues[3],i=this.scaleValues[4],n=new SuperMap.Geometry.Point(a.x+o*r,a.y+i*r);var p=SuperMap.Plot.PlottingUtil.radian(n,e)*SuperMap.Plot.PlottingUtil.RTOD;this.scaleValues[1]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol32900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol32300=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=t[0],o=t[1];e=2==t.length?o:t[2];var i=new SuperMap.Geometry.Point((l.x+o.x)/2,(l.y+o.y)/2),n=SuperMap.Plot.PlottingUtil.distance(i,e),a=.5*n,r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,i,e),s=r.pntLeft,p=r.pntRight,u=!(i.x>e.x),c=[];u?(c.push(l),c.push(s)):(c.push(l),c.push(p)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var P=[];u?(P.push(o),P.push(p)):(P.push(o),P.push(s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var S,h,y,f,g=.37*n,M=SuperMap.Plot.PlottingUtil.linePnt(i,e,g),b=.09*n,m=[];m.push(M),m.push(new SuperMap.Geometry.Point(M.x,M.y+b)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,m,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE}),u?(S=(r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b,i,M)).pntLeft,h=(r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*b,i,M)).pntLeft,y=(r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b,S,h)).pntRight,f=r.pntLeft):(S=(r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b,i,M)).pntRight,h=(r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*b,i,M)).pntRight,y=(r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(b,S,h)).pntRight,f=r.pntLeft);var d=[];d.push(S),d.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE});var v=[];v.push(y),v.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol32300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31803=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);var i=.5*e,n=e*this.getSubSymbolScaleValue(),a=n,r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.pt,p=new SuperMap.Geometry.Point(o[r.index].x,o[r.index].y),u=new SuperMap.Geometry.Point(o[r.index+1].x,o[r.index+1].y),c=180*SuperMap.Plot.PlottingUtil.radian(p,u)/Math.PI,P=SuperMap.Plot.PlottingUtil.circlePoint(s,n,n,c+90);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,P]);var S=180*SuperMap.Plot.PlottingUtil.radian(s,P)/Math.PI,h=new SuperMap.Geometry.Point(-.2*n,.05*n),y=new SuperMap.Geometry.Point(-.2*n,-.05*n),f=SuperMap.Plot.PlottingUtil.coordinateTrans(P,h,S),g=SuperMap.Plot.PlottingUtil.coordinateTrans(P,y,S);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,f,g],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var M=new SuperMap.Geometry.Point(0,-.6*a);M=SuperMap.Plot.PlottingUtil.coordinateTrans(s,M,c),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],M,a,c-90),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol31803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31601=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var l=this.getDefaultSubSymbolSize()/e;(l>.3||l<=0)&&(l=.3),this.scaleValues[2]=l}var o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),i=Math.abs(t[1].x-t[0].x)*this.getSubSymbolScaleValue()*.5,n=Math.abs(t[1].y-t[0].y)*this.getSubSymbolScaleValue()*.5;if(t[0].y>t[1].y){var a=new SuperMap.Geometry.Point(o.x,t[0].y),r=new SuperMap.Geometry.Point(o.x,t[0].y-n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[a,r]);var s=new SuperMap.Geometry.Point(o.x,t[1].y),p=new SuperMap.Geometry.Point(o.x,t[1].y+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,p])}else{var u=new SuperMap.Geometry.Point(o.x,t[1].y),c=new SuperMap.Geometry.Point(o.x,t[1].y-n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c]);var P=new SuperMap.Geometry.Point(o.x,t[0].y),S=new SuperMap.Geometry.Point(o.x,t[0].y+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,S])}if(t[0].x>t[1].x){var h=new SuperMap.Geometry.Point(t[0].x,o.y),y=new SuperMap.Geometry.Point(t[0].x-i,o.y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[h,y]);var f=new SuperMap.Geometry.Point(t[1].x,o.y),g=new SuperMap.Geometry.Point(t[1].x+i,o.y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[f,g])}else{var M=new SuperMap.Geometry.Point(t[1].x,o.y),b=new SuperMap.Geometry.Point(t[1].x-i,o.y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[M,b]);var m=new SuperMap.Geometry.Point(t[0].x,o.y),d=new SuperMap.Geometry.Point(t[0].x+i,o.y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[m,d])}this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t);var v=new SuperMap.Geometry.Point(o.x+e*this.scaleValues[0],o.y+e*this.scaleValues[1]),O=e*this.scaleValues[2]*1.2;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],v,O,0),this.addScalePoint(v);var U=SuperMap.Plot.PlottingUtil.circlePoint(v,O/2,O/2,90);this.addScalePoint(U),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;this.scaleValues.lenth<3&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===t)o=(e.x-a.x)/n,this.scaleValues[0]=o,i=(e.y-a.y)/n,this.scaleValues[1]=i;else if(1===t){o=this.scaleValues[0],i=this.scaleValues[1];var r=new SuperMap.Geometry.Point(a.x+n*o,a.y+n*i),s=SuperMap.Plot.PlottingUtil.distance(r,e)/n;this.scaleValues[2]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol31601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues.push(.1),this.scaleValues.push(.1),this.scaleValues.push(0)),this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=Math.abs(t[1].x-t[0].x)*this.getSubSymbolScaleValue()*.5,i=new SuperMap.Geometry.Point(e.x-o,e.y+o),n=new SuperMap.Geometry.Point(e.x-3*o,e.y-o);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[i,n]);var a=new SuperMap.Geometry.Point(e.x-o,e.y-o),r=new SuperMap.Geometry.Point(e.x-3*o,e.y+o);if(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[a,r]),!this.isEdit){var s=this.getDefaultSubSymbolSize()/l;(s>.3||s<=0)&&(s=.3),this.scaleValues[0]=s}var p=new SuperMap.Geometry.Point(e.x+o,e.y),u=new SuperMap.Geometry.Point(e.x+4*o,e.y),c=SuperMap.Plot.PlottingUtil.radian(p,u)*SuperMap.Plot.PlottingUtil.RTOD,P=l*this.scaleValues[0]*2,S=new SuperMap.Geometry.Point(e.x+l*this.scaleValues[1],e.y+l*this.scaleValues[2]);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],S,.8*P,c),this.addScalePoint(S);var h=SuperMap.Plot.PlottingUtil.circlePoint(S,P/2,P/2,90);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;this.scaleValues.lenth<3&&(this.scaleValues.push(.1),this.scaleValues.push(.1),this.scaleValues.push(0));var o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===t)o=(e.x-a.x)/n,this.scaleValues[1]=o,i=(e.y-a.y)/n,this.scaleValues[2]=i;else if(1===t){o=this.scaleValues[1],i=this.scaleValues[2];var r=new SuperMap.Geometry.Point(a.x+n*o,a.y+n*i),s=SuperMap.Plot.PlottingUtil.distance(r,e)/n;this.scaleValues[0]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol31600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31401=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol31400),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t);var e=0;e=Math.abs(t[1].x-t[0].x)<Math.abs(t[1].y-t[0].y)?.1*Math.abs(t[1].x-t[0].x):.1*Math.abs(t[1].y-t[0].y);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=new SuperMap.Geometry.Point(l.x-e,l.y-e),i=new SuperMap.Geometry.Point(l.x+e,l.y-3*e),n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[o,i],n,!0);var a=new SuperMap.Geometry.Point(l.x-e,l.y+e),r=new SuperMap.Geometry.Point(l.x-3*e,l.y+3*e);this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[a,r],n,!0);var s=new SuperMap.Geometry.Point(l.x+e,l.y+e),p=new SuperMap.Geometry.Point(l.x+3*e,l.y+3*e);this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[s,p],n,!0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31400=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=0;l=Math.abs(t[1].x-t[0].x)<Math.abs(t[1].y-t[0].y)?.1*Math.abs(t[1].x-t[0].x):.1*Math.abs(t[1].y-t[0].y);var o=new SuperMap.Geometry.Point(e.x-l,e.y-l),i=new SuperMap.Geometry.Point(e.x+l,e.y+l);this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[o,i],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31304=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 1===l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.1),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol31300),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[1]*e,i=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],.5*e),n=SuperMap.Plot.PlottingUtil.linePnt(i,t[0],o),a=SuperMap.Plot.PlottingUtil.linePnt(i,t[1],o),r=this.scaleValues[0]*e,s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,t[1],t[0]),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,t[0],t[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s.pntLeft,s.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p.pntLeft,p.pntRight]);var u=[],c=[];u.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),u.push(new SuperMap.Geometry.Point(n.x,n.y)),c.push(new SuperMap.Geometry.Point(a.x,a.y)),c.push(new SuperMap.Geometry.Point(t[1].x,t[1].y));for(var P=this.scaleValues[this.scaleValues.length-1]*e,S=SuperMap.Plot.PlottingUtil.paraLine(u,P,!0),h=SuperMap.Plot.PlottingUtil.paraLine(u,P,!1),y=SuperMap.Plot.PlottingUtil.paraLine(c,P,!0),f=SuperMap.Plot.PlottingUtil.paraLine(c,P,!1),g=[],M=[],b=0;b<S.length;b++)g.push(S[b]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g);for(var m=0;m<h.length;m++)M.push(h[m]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);for(var d=[],v=[],O=0;O<y.length;O++)d.push(y[O]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);for(var U=0;U<f.length;U++)v.push(f[U]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v);var L=n,w=a,V=SuperMap.Plot.PlottingUtil.radian(L,w)*SuperMap.Plot.PlottingUtil.RTOD,_=SuperMap.Plot.PlottingUtil.distance(L,w);this.addText("慑阻",i,_,V),this.addScalePoint(s.pntRight,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31304=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31303=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol31300),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],.5*e),n=SuperMap.Plot.PlottingUtil.linePnt(i,t[0],o),a=SuperMap.Plot.PlottingUtil.linePnt(i,t[1],o);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],n]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[a,t[1]]);var r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]),s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[0],t[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[r.pntLeft,r.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s.pntLeft,s.pntRight]);var p=[],u=[];p.push(t[0]),p.push(n),u.push(a),u.push(t[1]);for(var c=SuperMap.Plot.PlottingUtil.paraLine(p,o,!0),P=SuperMap.Plot.PlottingUtil.paraLine(p,o,!1),S=SuperMap.Plot.PlottingUtil.paraLine(u,o,!0),h=SuperMap.Plot.PlottingUtil.paraLine(u,o,!1),y=[],f=[],g=0;g<c.length;g++)y.push(c[g]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);for(var M=0;M<P.length;M++)f.push(P[M]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);for(var b=[],m=[],d=0;d<S.length;d++)b.push(S[d]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);for(var v=0;v<h.length;v++)m.push(h[v]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m);var O=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],i,2*o,O),this.addScalePoint(r.pntRight,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31303=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31302=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol31300),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=t[0],i=t[1],n=this.scaleValues[0]*e,a=SuperMap.Plot.PlottingUtil.linePnt(o,i,.5*e),r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,t[0],t[1]),s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,t[1],t[0]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[r.pntLeft,r.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s.pntLeft,s.pntRight]);var p=SuperMap.Plot.PlottingUtil.linePnt(a,o,n),u=SuperMap.Plot.PlottingUtil.linePnt(a,i,n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],p]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,t[1]]);var c=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,2*n,c),this.addScalePoint(s.pntRight),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31302=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31301=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol31300),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[0],t[1]),n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[i.pntLeft,i.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[n.pntLeft,n.pntRight]);var a=[],r=3*o;a.push(t[0]),a.push(t[1]);for(var s=SuperMap.Plot.PlottingUtil.paraLine(a,r,!0),p=SuperMap.Plot.PlottingUtil.paraLine(a,r,!1),u=[],c=0;c<s.length;c++)u.push(s[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,s[1],s[0]),S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,s[0],s[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P.pntLeft,P.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[S.pntLeft,S.pntRight]);for(var h=[],y=0;y<p.length;y++)h.push(p[y]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var f=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,p[1],p[0]),g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,p[0],p[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[f.pntLeft,f.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[g.pntLeft,g.pntRight]),this.addScalePoint(n.pntRight,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[0],t[1]),n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[i.pntLeft,i.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[n.pntLeft,n.pntRight]),this.addScalePoint(n.pntRight,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0===t){var n=l[0],a=e,r=SuperMap.Plot.PlottingUtil.distance(a,n)/o;this.scaleValues[0]=r}}}}]),e}();SuperMap.Plot.AlgoSymbol31300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30102=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(1.570796),l.scaleValues.push(.069485),l.scaleValues.push(.15),l.scaleValues.push(.1),l.scaleValues.push(1.731025),l.scaleValues.push(2.076877)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,a=e*this.scaleValues[2],r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.index,p=r.pt,u=o[s],c=o[s+1],P=180*SuperMap.Plot.PlottingUtil.radian(u,c)/Math.PI,S=SuperMap.Plot.PlottingUtil.circlePoint(p,a/2,a/2,P+n),h=SuperMap.Plot.PlottingUtil.circlePoint(p,a,a,P+n+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[S,h]);var y=180*SuperMap.Plot.PlottingUtil.radian(p,S)/Math.PI,f=new SuperMap.Geometry.Point(-.2*a,.05*a),g=new SuperMap.Geometry.Point(-.2*a,-.05*a),M=SuperMap.Plot.PlottingUtil.coordinateTrans(S,f,y),b=SuperMap.Plot.PlottingUtil.coordinateTrans(S,g,y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,M,b],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var m=.5*a*this.scaleValues[5],d=.5*a*this.scaleValues[6],v=new SuperMap.Geometry.Point(0,-.9*(m-.25*d)),O=new SuperMap.Geometry.Point(0,.9*(m-.25*d)),U=SuperMap.Plot.PlottingUtil.coordinateTrans(h,v,y),L=SuperMap.Plot.PlottingUtil.coordinateTrans(h,O,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[U,L]);var w=new SuperMap.Geometry.Point(0,m),V=SuperMap.Plot.PlottingUtil.coordinateTrans(h,w,y),_=new SuperMap.Geometry.Point(.5*d,-.25*d),T=new SuperMap.Geometry.Point(-.5*d,-.25*d),A=new SuperMap.Geometry.Point(-.5*d,.25*d),E=new SuperMap.Geometry.Point(.25*d,.25*d),x=SuperMap.Plot.PlottingUtil.coordinateTrans(V,_,y),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(V,T,y),j=SuperMap.Plot.PlottingUtil.coordinateTrans(V,A,y),C=SuperMap.Plot.PlottingUtil.coordinateTrans(V,E,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[x,Y,j,C,x]);var I=new SuperMap.Geometry.Point(0,-m),G=SuperMap.Plot.PlottingUtil.coordinateTrans(h,I,y),B=new SuperMap.Geometry.Point(0,.25*d),R=new SuperMap.Geometry.Point(.5*d,0),N=new SuperMap.Geometry.Point(0,-.25*d),D=new SuperMap.Geometry.Point(-.5*d,0),k=SuperMap.Plot.PlottingUtil.coordinateTrans(G,B,y),z=SuperMap.Plot.PlottingUtil.coordinateTrans(G,R,y),F=SuperMap.Plot.PlottingUtil.coordinateTrans(G,N,y),K=SuperMap.Plot.PlottingUtil.coordinateTrans(G,D,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[k,z,F,K,k]),this.addScalePoint(p,0);var W=SuperMap.Plot.PlottingUtil.circlePoint(p,a,a,P+n);this.addScalePoint(W,1);var q=new SuperMap.Geometry.Point(0,-m),J=SuperMap.Plot.PlottingUtil.coordinateTrans(h,q,y);this.addScalePoint(J,2);var H=new SuperMap.Geometry.Point(-.5*d,0),Q=SuperMap.Plot.PlottingUtil.coordinateTrans(V,H,y);this.addScalePoint(Q,3),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,a,r,s,p,u,c,P,S,h=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(h=SuperMap.Plot.PlottingUtil.clearSamePts(h),0===t){for(var y=-1,f=0,g=new SuperMap.Geometry.Point(0,0),M=0;M<h.length-1;M++){var b=[];b.push(h[M]),b.push(h[M+1]);var m=SuperMap.Plot.PlottingUtil.projectPoint(e,h[M],h[M+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(m,b).index){var d=SuperMap.Plot.PlottingUtil.distance(e,m);-1==y?(y=M,g=m,f=d):f>d&&(y=M,g=m,f=d)}}if(-1==y||y>h.length-1)return;n=0;for(var v=0;v<y;v++)n+=SuperMap.Plot.PlottingUtil.distance(h[v],h[v+1]);if((n+=SuperMap.Plot.PlottingUtil.distance(h[y],g))<0||n>o)return;var O=n/o;this.scaleValues[0]=O}else if(1===t){a=o*this.scaleValues[0];var U=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,a);if(-1===U.index)return;s=r=U.pt,p=h[U.index],u=h[U.index+1],c=SuperMap.Plot.PlottingUtil.radian(p,u);var L=SuperMap.Plot.PlottingUtil.radian(s,e)-c;this.scaleValues[1]=L;var w=(n=SuperMap.Plot.PlottingUtil.distance(r,e))/o;this.scaleValues[2]=w}else if(2===t){if(a=o*this.scaleValues[0],P=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,a)).index)return;s=r.pt,p=h[r.index],u=h[r.index+1],c=180*SuperMap.Plot.PlottingUtil.radian(p,u)/Math.PI,S=SuperMap.Plot.PlottingUtil.circlePoint(s,n,n,c+P-180);var V=SuperMap.Plot.PlottingUtil.distance(e,S)/(.4*n);this.scaleValues[5]=V}else if(3===t){if(a=o*this.scaleValues[0],P=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,a)).index)return;s=r.pt,p=h[r.index],u=h[r.index+1],c=180*SuperMap.Plot.PlottingUtil.radian(p,u)/Math.PI,S=SuperMap.Plot.PlottingUtil.circlePoint(s,n,n,c+P-180);var _=.4*n*this.scaleValues[5],T=SuperMap.Plot.PlottingUtil.circlePoint(S,_,_,c+P+90),A=2*SuperMap.Plot.PlottingUtil.distance(T,e)/(.4*n);if(this.scaleValues[5]-.25*A<=0)return;this.scaleValues[6]=A}}}}]),e}();SuperMap.Plot.AlgoSymbol30102=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.125),l.scaleValues.push(Math.PI/2)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);t=SuperMap.Plot.PlottingUtil.clearSamePts(t);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);if(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.125),this.scaleValues.push(Math.PI/2)),3===this.scaleValues.length&&this.scaleValues.push(this.getSubSymbolScaleValue()),!(t.length<this.minEditPts)){for(var l=0,o=0;o<t.length-1;o++)l+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[1]=i,this.scaleValues[3]=i}var n=this.scaleValues[1],a=180*this.scaleValues[2]/Math.PI,r=l*this.scaleValues[0],s=l*this.scaleValues[3],p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,r);if(-1!==p.index){var u=p.pt,c=e[p.index],P=e[p.index+1],S=SuperMap.Plot.PlottingUtil.radian(c,P)*SuperMap.Plot.PlottingUtil.RTOD,h=SuperMap.Plot.PlottingUtil.circlePoint(u,s,s,S+a);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p.pt,h]);var y,f=SuperMap.Plot.PlottingUtil.radian(u,h)*SuperMap.Plot.PlottingUtil.RTOD,g=l*n;0<this.subSymbols.length&&(y=SuperMap.Plot.PlottingUtil.circlePoint(u,s,s,S+a+180),this.computeSubSymbol(this.subSymbols[0],y,.8*g,S+a-180),this.addScalePoint(SuperMap.Plot.PlottingUtil.circlePoint(y,.5*g,.5*g,S+a+90),1)),y=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+30);var M=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+33),b=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt([h,y,M]);b=SuperMap.Plot.PlottingUtil.clearSamePts(b);var m=SuperMap.Plot.PlottingUtil.polylineDistance(b),d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.9*m,b);if(-1!==d.index){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b.slice(0,d.index));var v=SuperMap.Plot.PlottingUtil.radian(h,y)*SuperMap.Plot.PlottingUtil.RTOD,O=new SuperMap.Geometry.Point(-.2*s,.05*s),U=new SuperMap.Geometry.Point(-.2*s,-.05*s),L=SuperMap.Plot.PlottingUtil.coordinateTrans(y,O,v+17),w=SuperMap.Plot.PlottingUtil.coordinateTrans(y,U,v+17),V={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[y,L,w],V);var _=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+330),T=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+327),A=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt([h,_,T]);A=SuperMap.Plot.PlottingUtil.clearSamePts(A),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A.slice(0,d.index));var E=SuperMap.Plot.PlottingUtil.radian(h,_)*SuperMap.Plot.PlottingUtil.RTOD,x=SuperMap.Plot.PlottingUtil.coordinateTrans(_,O,E-17),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(_,U,E-17);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[_,x,Y],V),this.addScalePoint(u,0),this.addScalePoint(h,2),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,a,r,s,p=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(p=SuperMap.Plot.PlottingUtil.clearSamePts(p),0===t){for(var u=[],c=0;c<p.length;c++)u.push(new SuperMap.Geometry.Point(p[c].x,p[c].y));for(var P=-1,S=0,h=new SuperMap.Geometry.Point(0,0),y=0;y<u.length-1;y++){var f=[];f.push(u[y]),f.push(u[y+1]);var g=SuperMap.Plot.PlottingUtil.projectPoint(e,u[y],u[y+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(g,f).index){var M=SuperMap.Plot.PlottingUtil.distance(e,g);-1==P?(P=y,h=g,S=M):S>M&&(P=y,h=g,S=M)}}if(-1==P||P>u.length-1)return;for(var b=0,m=0;m<P;m++)b+=SuperMap.Plot.PlottingUtil.distance(p[m],p[m+1]);if((b+=SuperMap.Plot.PlottingUtil.distance(p[P],h))<0||b>o)return;var d=b/o;this.scaleValues[0]=d}else if(1===t){var v=SuperMap.Plot.PlottingUtil.findPointInPolyLine(p,o*this.scaleValues[0]);if(-1===v.index)return;n=v.pt,a=p[v.index],r=p[v.index+1],s=SuperMap.Plot.PlottingUtil.radian(a,r)*SuperMap.Plot.PlottingUtil.RTOD;var O=o*this.scaleValues[3],U=SuperMap.Plot.PlottingUtil.circlePoint(n,O,O,s+this.scaleValues[2]*SuperMap.Plot.PlottingUtil.RTOD+180),L=SuperMap.Plot.PlottingUtil.distance(U,e)/o*2;this.scaleValues[1]=L}else if(2===t){var w=o*this.scaleValues[0],V=SuperMap.Plot.PlottingUtil.findPointInPolyLine(p,w);if(-1===V.index)return;n=V.pt,a=p[V.index],r=p[V.index+1],s=SuperMap.Plot.PlottingUtil.radian(a,r);var _=SuperMap.Plot.PlottingUtil.radian(n,e)-s;this.scaleValues[2]=_}}}}]),e}();SuperMap.Plot.AlgoSymbol30800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30201=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30200),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1)),3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l),0==this.scaleValues.length?(this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.05)):3==this.scaleValues.length&&(this.scaleValues[3]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[1]=2*this.getSubSymbolScaleValue(),this.scaleValues[3]=.5*this.getSubSymbolScaleValue());var o=e*this.scaleValues[1],i=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,o);if(-1!==i.index){var n=t[0],a=i.pt,r=SuperMap.Plot.PlottingUtil.radian(n,a)*SuperMap.Plot.PlottingUtil.RTOD,s=new SuperMap.Geometry.Point(0,.1*o),p=new SuperMap.Geometry.Point(.4*o,.1*o),u=new SuperMap.Geometry.Point(.4*o,-.1*o),c=new SuperMap.Geometry.Point(0,-.1*o),P=SuperMap.Plot.PlottingUtil.coordinateTrans(n,s,r),S=SuperMap.Plot.PlottingUtil.coordinateTrans(n,p,r),h=SuperMap.Plot.PlottingUtil.coordinateTrans(n,u,r),y=SuperMap.Plot.PlottingUtil.coordinateTrans(n,c,r),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,S,h,y,P],f);var g=new SuperMap.Geometry.Point(.3*o,.1*o),M=new SuperMap.Geometry.Point(.3*o,-.1*o),b=SuperMap.Plot.PlottingUtil.coordinateTrans(n,g,r),m=SuperMap.Plot.PlottingUtil.coordinateTrans(n,M,r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[b,m],f);var d=new SuperMap.Geometry.Point(.4*o,0),v=new SuperMap.Geometry.Point(.8*o,0),O=SuperMap.Plot.PlottingUtil.coordinateTrans(n,d,r),U=SuperMap.Plot.PlottingUtil.coordinateTrans(n,v,r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O,U],f);var L=new SuperMap.Geometry.Point(.7*o,.025*o),w=new SuperMap.Geometry.Point(.7*o,-.025*o),V=SuperMap.Plot.PlottingUtil.coordinateTrans(n,L,r),_=SuperMap.Plot.PlottingUtil.coordinateTrans(n,w,r);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[U,V,_],f);var T=[];T.push(i.pt);for(var A=i.index+1;A<l.length;A++)T.push(l[A]);this.addArrow(T,this.scaleValues[3]),this.components[this.components.length-2].style.strokeDashstyle="dash",this.components[this.components.length-2].style.lineSymbolID=1,this.components[this.components.length-2].style.lineTypeLimit=!0;var E=SuperMap.Plot.PlottingUtil.circlePoint(n,o,o,r+90);this.addScalePoint(E,0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol30201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(1e3),l.scaleValues.push(.2),l.scaleValues.push(.1),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length?(this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.05)):3==this.scaleValues.length&&(this.scaleValues[3]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[1]=2*this.getSubSymbolScaleValue(),this.scaleValues[3]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=e*this.scaleValues[1],i=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,o);if(-1!==i.index){var n=t[0],a=i.pt,r=SuperMap.Plot.PlottingUtil.radian(n,a)*SuperMap.Plot.PlottingUtil.RTOD,s=new SuperMap.Geometry.Point(0,.1*o),p=new SuperMap.Geometry.Point(.4*o,.1*o),u=new SuperMap.Geometry.Point(.4*o,-.1*o),c=new SuperMap.Geometry.Point(0,-.1*o),P=SuperMap.Plot.PlottingUtil.coordinateTrans(n,s,r),S=SuperMap.Plot.PlottingUtil.coordinateTrans(n,p,r),h=SuperMap.Plot.PlottingUtil.coordinateTrans(n,u,r),y=SuperMap.Plot.PlottingUtil.coordinateTrans(n,c,r),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,S,h,y,P],f);var g=.1*o,M=new SuperMap.Geometry.Point(.3*o,0),b=SuperMap.Plot.PlottingUtil.circlePoint(M,g,g,135),m=SuperMap.Plot.PlottingUtil.circlePoint(M,g,g,225),d=SuperMap.Plot.PlottingUtil.coordinateTrans(n,M,r),v=SuperMap.Plot.PlottingUtil.coordinateTrans(n,b,r),O=SuperMap.Plot.PlottingUtil.coordinateTrans(n,m,r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[v,d,O],f);var U=new SuperMap.Geometry.Point(.9*o,0),L=SuperMap.Plot.PlottingUtil.coordinateTrans(n,U,r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[d,L],f);var w=new SuperMap.Geometry.Point(.8*o,.025*o),V=new SuperMap.Geometry.Point(.8*o,-.025*o),_=SuperMap.Plot.PlottingUtil.coordinateTrans(n,w,r),T=SuperMap.Plot.PlottingUtil.coordinateTrans(n,V,r);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[L,_,T],f);var A=[];A.push(i.pt);for(var E=i.index+1;E<l.length;E++)A.push(l[E]);this.addArrow(A,this.scaleValues[3]),this.components[this.components.length-2].style.strokeDashstyle="dash",this.components[this.components.length-2].style.lineSymbolID=1,this.components[this.components.length-2].style.lineTypeLimit=!0;var x=SuperMap.Plot.PlottingUtil.circlePoint(n,o,o,r+90);this.addScalePoint(x,0),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n=l[0],a=e,r=SuperMap.Plot.PlottingUtil.distance(a,n);if(0===t){var s=r/o;if(.06>s||.3<s)return;this.scaleValues[1]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol30200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.069485),l.scaleValues.push(.15),l.scaleValues.push(.1),l.scaleValues.push(1.731025),l.scaleValues.push(2.076877)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.RTOD,a=e*this.scaleValues[2],r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==r.index){var s=r.pt,p=r.index,u=s,c=o[p],P=o[p+1],S=SuperMap.Plot.PlottingUtil.radian(c,P)*SuperMap.Plot.PlottingUtil.RTOD,h=SuperMap.Plot.PlottingUtil.circlePoint(u,1.5*a,1.5*a,S+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,h]);var y=SuperMap.Plot.PlottingUtil.radian(u,h)*SuperMap.Plot.PlottingUtil.RTOD,f=new SuperMap.Geometry.Point(-.2*a,.05*a),g=new SuperMap.Geometry.Point(-.2*a,-.05*a),M=SuperMap.Plot.PlottingUtil.coordinateTrans(h,f,y),b=SuperMap.Plot.PlottingUtil.coordinateTrans(h,g,y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[h,M,b],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var m=new SuperMap.Geometry.Point(.6*a,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(u,m,y),v=.4*a*this.scaleValues[5],O=.4*a*this.scaleValues[6],U=new SuperMap.Geometry.Point(0,-.9*(v-.25*O)),L=new SuperMap.Geometry.Point(0,.9*(v-.25*O)),w=SuperMap.Plot.PlottingUtil.coordinateTrans(d,U,y),V=SuperMap.Plot.PlottingUtil.coordinateTrans(d,L,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[w,V]);var _=new SuperMap.Geometry.Point(0,v),T=SuperMap.Plot.PlottingUtil.coordinateTrans(d,_,y),A=new SuperMap.Geometry.Point(0,.25*O),E=new SuperMap.Geometry.Point(.5*O,0),x=new SuperMap.Geometry.Point(0,-.25*O),Y=new SuperMap.Geometry.Point(-.5*O,0),j=SuperMap.Plot.PlottingUtil.coordinateTrans(T,A,y),C=SuperMap.Plot.PlottingUtil.coordinateTrans(T,E,y),I=SuperMap.Plot.PlottingUtil.coordinateTrans(T,x,y),G=SuperMap.Plot.PlottingUtil.coordinateTrans(T,Y,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[j,C,I,G,j]);var B=new SuperMap.Geometry.Point(0,-v),R=SuperMap.Plot.PlottingUtil.coordinateTrans(d,B,y),N=SuperMap.Plot.PlottingUtil.coordinateTrans(R,A,y),D=SuperMap.Plot.PlottingUtil.coordinateTrans(R,E,y),k=SuperMap.Plot.PlottingUtil.coordinateTrans(R,x,y),z=SuperMap.Plot.PlottingUtil.coordinateTrans(R,Y,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[N,D,k,z,N]),this.addScalePoint(s,0),this.addScalePoint(h,1);var F=new SuperMap.Geometry.Point(0,-v),K=SuperMap.Plot.PlottingUtil.coordinateTrans(d,F,y);this.addScalePoint(K,2),this.addScalePoint(G,3),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,a,r,s,p,u,c,P,S,h=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(h=SuperMap.Plot.PlottingUtil.clearSamePts(h),0===t){for(var y=[],f=0;f<h.length;f++)y.push(new SuperMap.Geometry.Point(h[f].x,h[f].y));for(var g=-1,M=0,b=new SuperMap.Geometry.Point(0,0),m=0;m<y.length-1;m++){var d=[];d.push(y[m]),d.push(y[m+1]);var v=SuperMap.Plot.PlottingUtil.projectPoint(e,y[m],y[m+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(v,d).index){var O=SuperMap.Plot.PlottingUtil.distance(e,v);-1==g?(g=m,b=v,M=O):M>O&&(g=m,b=v,M=O)}}if(-1==g||g>y.length-1)return;n=0;for(var U=0;U<g;U++)n+=SuperMap.Plot.PlottingUtil.distance(h[U],h[U+1]);if((n+=SuperMap.Plot.PlottingUtil.distance(h[g],b))<0||n>o)return;var L=n/o;this.scaleValues[0]=L}else if(1===t){a=o*this.scaleValues[0];var w=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,a);if(-1===w.index)return;r=w.pt,s=h[w.index],p=h[w.index+1],u=SuperMap.Plot.PlottingUtil.radian(s,p);var V=(S=SuperMap.Plot.PlottingUtil.radian(r,e))-u;this.scaleValues[1]=V;var _=(n=SuperMap.Plot.PlottingUtil.distance(r,e))/o/1.5;this.scaleValues[2]=_}else if(2===t){if(a=o*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,a)).index)return;P=r.pt,s=h[r.index],p=h[r.index+1],u=180*SuperMap.Plot.PlottingUtil.radian(s,p)/Math.PI;var T=SuperMap.Plot.PlottingUtil.circlePoint(P,.4*n,.4*n,u+c),A=SuperMap.Plot.PlottingUtil.distance(e,T)/(.4*n);this.scaleValues[5]=A}else if(3===t){if(a=o*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,a)).index)return;P=r.pt,s=h[r.index],p=h[r.index+1],S=(u=180*SuperMap.Plot.PlottingUtil.radian(s,p)/Math.PI)+c;var E=new SuperMap.Geometry.Point(.6*n,0),x=SuperMap.Plot.PlottingUtil.coordinateTrans(P,E,S),Y=.4*n*this.scaleValues[5],j=new SuperMap.Geometry.Point(0,Y),C=SuperMap.Plot.PlottingUtil.coordinateTrans(x,j,S),I=2*SuperMap.Plot.PlottingUtil.distance(C,e)/(.4*n);this.scaleValues[6]=I}}}}]),e}();SuperMap.Plot.AlgoSymbol30100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30002=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30001),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getSubSymbolScaleValue();this.scaleValues[2]=o,this.scaleValues[4]=o}var i=l*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,a=l*this.scaleValues[2],r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==r.index){var s=r.pt,p=new SuperMap.Geometry.Point(e[r.index].x,e[r.index].y),u=new SuperMap.Geometry.Point(e[r.index+1].x,e[r.index+1].y),c=180*SuperMap.Plot.PlottingUtil.radian(p,u)/Math.PI,P=SuperMap.Plot.PlottingUtil.circlePoint(s,a,a,c+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,P]);var S=180*SuperMap.Plot.PlottingUtil.radian(s,P)/Math.PI,h=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*a,.2*a,S-157.5),y=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*a,.2*a,S+157.5);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,h,y],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});for(var f=4.5*(l*this.scaleValues[4])*Math.sin(Math.PI/8),g=this.getLeftSubSymbolPts(f),M=e[0].clone(),b=-1,m=null,d=1;d<e.length;d++)if(SuperMap.Plot.PlottingUtil.distance(M,e[d])>.5*f){b=d-1,m=SuperMap.Plot.PlottingUtil.linePnt(M,e[d],.5*f);break}-1===b&&(b=e.length-1,m=e[e.length-1]);var v=null;if(null!==m){for(var O=180*SuperMap.Plot.PlottingUtil.radian(M,m)/Math.PI,U=[],L=0;L<g.length;L++)U.push(SuperMap.Plot.PlottingUtil.coordinateTrans(M,g[L],O));v=U[3].clone(),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U)}for(var w=this.getRightSubSymbolPts(f),V=e[e.length-1].clone(),_=-1,T=null,A=e.length-2;A>=0;A--)if(SuperMap.Plot.PlottingUtil.distance(V,e[A])>.5*f){_=A,T=SuperMap.Plot.PlottingUtil.linePnt(V,e[A],.5*f);break}if(-1===_&&(_=0,T=e[0]),null!==T){for(var E=180*SuperMap.Plot.PlottingUtil.radian(V,T)/Math.PI,x=[],Y=0;Y<w.length;Y++)x.push(SuperMap.Plot.PlottingUtil.coordinateTrans(V,w[Y],E));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,x)}if(b<=_){var j=[];j.push(m);for(var C=b+1;C<=_;C++)j.push(e[C]);j.push(T),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,j)}this.addScalePoint(s),this.addScalePoint(P),null!==v&&this.addScalePoint(v),this.finish()}}}},{key:"getRightSubSymbolPts",value:function(t){var e=.25*t,l=[];return l.push(new SuperMap.Geometry.Point(0,2*e)),l.push(new SuperMap.Geometry.Point(2*e,2*e)),l.push(new SuperMap.Geometry.Point(2*e,-e)),l.push(new SuperMap.Geometry.Point(0,-2*e)),l.push(new SuperMap.Geometry.Point(0,2*e)),l}}]),e}();SuperMap.Plot.AlgoSymbol30002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getSubSymbolScaleValue();(o>.2||o<=0)&&(o=.2),this.scaleValues[2]=o,this.scaleValues[4]=o}var i=l*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,a=l*this.scaleValues[2],r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==r.index){var s=r.pt,p=new SuperMap.Geometry.Point(e[r.index].x,e[r.index].y),u=new SuperMap.Geometry.Point(e[r.index+1].x,e[r.index+1].y),c=180*SuperMap.Plot.PlottingUtil.radian(p,u)/Math.PI,P=SuperMap.Plot.PlottingUtil.circlePoint(s,a,a,c+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,P]);var S=180*SuperMap.Plot.PlottingUtil.radian(s,P)/Math.PI,h=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*a,.2*a,S-157.5),y=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*a,.2*a,S+157.5);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,h,y],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});for(var f=4.5*(l*this.scaleValues[4])*Math.sin(Math.PI/8),g=this.getLeftSubSymbolPts(f),M=e[0].clone(),b=-1,m=null,d=1;d<e.length;d++)if(SuperMap.Plot.PlottingUtil.distance(M,e[d])>.5*f){b=d-1,m=SuperMap.Plot.PlottingUtil.linePnt(M,e[d],.5*f);break}-1===b&&(b=e.length-1,m=e[e.length-1]);var v=null;if(null!==m){for(var O=180*SuperMap.Plot.PlottingUtil.radian(M,m)/Math.PI,U=[],L=0;L<g.length;L++)U.push(SuperMap.Plot.PlottingUtil.coordinateTrans(M,g[L],O));v=U[3].clone(),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U)}for(var w=this.getRightSubSymbolPts(f),V=e[e.length-1].clone(),_=-1,T=null,A=e.length-2;A>=0;A--)if(SuperMap.Plot.PlottingUtil.distance(V,e[A])>.5*f){_=A,T=SuperMap.Plot.PlottingUtil.linePnt(V,e[A],.5*f);break}if(-1===_&&(_=0,T=e[0]),null!==T){for(var E=180*SuperMap.Plot.PlottingUtil.radian(V,T)/Math.PI,x=[],Y=0;Y<w.length;Y++)x.push(SuperMap.Plot.PlottingUtil.coordinateTrans(V,w[Y],E));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,x)}if(b<=_){var j=[];j.push(m);for(var C=b+1;C<=_;C++)j.push(e[C]);j.push(T),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,j)}this.addScalePoint(s),this.addScalePoint(P),null!==v&&this.addScalePoint(v),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var a=-1,r=0,s=new SuperMap.Geometry.Point(0,0),p=0;p<o.length-1;p++){var u=[];u.push(o[p]),u.push(o[p+1]);var c=SuperMap.Plot.PlottingUtil.projectPoint(e,o[p],o[p+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(c,u).index){var P=SuperMap.Plot.PlottingUtil.distance(e,c);isNaN(P)||(-1==a?(a=p,s=c,r=P):r>P&&(a=p,s=c,r=P))}}if(-1===a||a>o.length-1)return;i=0;for(var S=0;S<a;S++)i+=SuperMap.Plot.PlottingUtil.distance(o[S],o[S+1]);if((i+=SuperMap.Plot.PlottingUtil.distance(o[a],s))<0||i>n)return;var h=i/n;this.scaleValues[0]=h}else if(1===t){var y=n*this.scaleValues[0],f=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,y);if(-1===f.index)return;var g=f.pt,M=o[f.index],b=o[f.index+1],m=SuperMap.Plot.PlottingUtil.radian(M,b),d=SuperMap.Plot.PlottingUtil.radian(g,e)-m;this.scaleValues[1]=d;var v=(i=SuperMap.Plot.PlottingUtil.distance(g,e))/n;this.scaleValues[2]=v}else if(2===t){var O=SuperMap.Plot.PlottingUtil.distance(e,l[0])/n;O>.35&&(O=.35),this.scaleValues[4]=O}}}},{key:"getLeftSubSymbolPts",value:function(t){var e=.25*t,l=[],o=new SuperMap.Geometry.Point(0,0),i=new SuperMap.Geometry.Point(e,-2*e),n=new SuperMap.Geometry.Point(2*e,0),a=new SuperMap.Geometry.Point(e,2*e);return l.push(o),l.push(i),l.push(n),l.push(a),l.push(o),l}},{key:"getRightSubSymbolPts",value:function(t){return this.getLeftSubSymbolPts(t)}}]),e}();SuperMap.Plot.AlgoSymbol30001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);var i=e*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI;if(!this.isEdit){var a=this.getSubSymbolScaleValue();this.scaleValues[2]=a}var r=e*this.scaleValues[2],s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==s.index){var p=s.pt,u=new SuperMap.Geometry.Point(o[s.index].x,o[s.index].y),c=new SuperMap.Geometry.Point(o[s.index+1].x,o[s.index+1].y),P=180*SuperMap.Plot.PlottingUtil.radian(u,c)/Math.PI,S=SuperMap.Plot.PlottingUtil.circlePoint(p,r,r,P+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p,S]);var h=180*SuperMap.Plot.PlottingUtil.radian(p,S)/Math.PI,y=new SuperMap.Geometry.Point(-.2*r,.05*r),f=new SuperMap.Geometry.Point(-.2*r,-.05*r),g=SuperMap.Plot.PlottingUtil.coordinateTrans(S,y,h),M=SuperMap.Plot.PlottingUtil.coordinateTrans(S,f,h);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,g,M],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0}),this.addScalePoint(p,0),this.addScalePoint(S,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var a=-1,r=0,s=new SuperMap.Geometry.Point(0,0),p=0;p<o.length-1;p++){var u=[];u.push(o[p]),u.push(o[p+1]);var c=SuperMap.Plot.PlottingUtil.projectPoint(e,o[p],o[p+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(c,u).index){var P=SuperMap.Plot.PlottingUtil.distance(e,c);-1==a?(a=p,s=c,r=P):r>P&&(a=p,s=c,r=P)}}if(-1==a||a>o.length-1)return;i=0;for(var S=0;S<a;S++)i+=SuperMap.Plot.PlottingUtil.distance(o[S],o[S+1]);if((i+=SuperMap.Plot.PlottingUtil.distance(o[a],s))<0||i>n)return;var h=i/n;this.scaleValues[0]=h}else if(1===t){var y=n*this.scaleValues[0],f=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,y);if(-1===f.index)return;var g=f.pt,M=o[f.index],b=o[f.index+1],m=SuperMap.Plot.PlottingUtil.radian(M,b),d=SuperMap.Plot.PlottingUtil.radian(g,e)-m;this.scaleValues[1]=d;var v=(i=SuperMap.Plot.PlottingUtil.distance(g,e))/n;this.scaleValues[2]=v}}}}]),e}();SuperMap.Plot.AlgoSymbol30000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29903=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05,l.scaleValues[2]=.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05,this.scaleValues[2]=.02):1===this.scaleValues.length?(this.scaleValues[1]=this.getSubSymbolScaleValue(),this.scaleValues[2]=.5*this.getSubSymbolScaleValue()):2===this.scaleValues.length&&(this.scaleValues[2]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=this.getSubSymbolScaleValue(),this.scaleValues[2]=.5*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,r=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,r,a-180);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);if(this.addArrow(p,this.scaleValues[2]),p.length>=2){var P=l*this.scaleValues[1],S=.3*P,h=.8*P,y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l-h,e),f=1.1*P,g=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l-f,e),M=180*SuperMap.Plot.PlottingUtil.radian(y.pts,g.pts)/Math.PI,b=SuperMap.Plot.PlottingUtil.circlePoint(y.pts,S,S,M+90),m=SuperMap.Plot.PlottingUtil.circlePoint(y.pts,S,S,M+270),d=SuperMap.Plot.PlottingUtil.circlePoint(g.pts,S,S,M+90),v=SuperMap.Plot.PlottingUtil.circlePoint(g.pts,S,S,M+270),O=[];O.push(b),O.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),(O=[]).push(d),O.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O)}}var U=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),L=SuperMap.Plot.PlottingUtil.circlePoint(U.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a+90);this.addScalePoint(L,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.4?a:.4}}}]),e}();SuperMap.Plot.AlgoSymbol29903=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 10!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.2),l.scaleValues.push(.2),l.scaleValues.push(.4),l.scaleValues.push(.4),l.scaleValues.push(.1),l.scaleValues.push(.2),l.scaleValues.push(.1),l.scaleValues.push(.2),l.scaleValues.push(1),l.scaleValues.push(1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var o,i,n=e*this.scaleValues[4],a=e*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),s=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],r+a);o=0===this.scaleValues[8]?SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,t[1],s).pntRight:SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,t[1],s).pntLeft;var p=e*this.scaleValues[6],u=e*this.scaleValues[7],c=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],r+u);i=0===this.scaleValues[9]?SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,t[0],c).pntLeft:SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,t[0],c).pntRight;var P=[];P.push(new SuperMap.Geometry.Point(o.x,o.y)),P.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),P.push(new SuperMap.Geometry.Point(t[1].x,t[1].y)),P.push(new SuperMap.Geometry.Point(i.x,i.y));var S=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(P);S=SuperMap.Plot.PlottingUtil.clearSamePts(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S),this.addScalePoint(o,3),this.addScalePoint(i,4),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.projectPoint(e,l[0],l[1]);if(t<=2&&SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments),3===t){var n=SuperMap.Plot.PlottingUtil.distance(e,i)/o,a=SuperMap.Plot.PlottingUtil.distance(i,l[0])/o;this.scaleValues[4]=n,this.scaleValues[5]=a,SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],e)?this.scaleValues[8]=1:this.scaleValues[8]=0}if(4===t){var r=SuperMap.Plot.PlottingUtil.distance(e,i)/o,s=SuperMap.Plot.PlottingUtil.distance(i,l[1])/o;this.scaleValues[6]=r,this.scaleValues[7]=s,SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],e)?this.scaleValues[9]=1:this.scaleValues[9]=0}}}}]),e}();SuperMap.Plot.AlgoSymbol29800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29401=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var a=new SuperMap.Geometry.Point(t[0].x,t[0].y),r=new SuperMap.Geometry.Point(t[1].x,t[1].y),s=180*SuperMap.Plot.PlottingUtil.radian(a,r)/Math.PI,p=a,u=i[0],c=[];c.push(p),c.push(u),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c);var P=new SuperMap.Geometry.Point(0,.8*o),S=new SuperMap.Geometry.Point(0,-.8*o),h=SuperMap.Plot.PlottingUtil.coordinateTrans(p,P,s),y=SuperMap.Plot.PlottingUtil.coordinateTrans(p,S,s);(c=[]).push(h),c.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var f=new SuperMap.Geometry.Point(-.3*o,.4*o),g=new SuperMap.Geometry.Point(-.3*o,-.4*o),M=SuperMap.Plot.PlottingUtil.coordinateTrans(p,f,s),b=SuperMap.Plot.PlottingUtil.coordinateTrans(p,g,s);(c=[]).push(M),c.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var m=new SuperMap.Geometry.Point(.3*o,.4*o),d=new SuperMap.Geometry.Point(.3*o,-.4*o),v=SuperMap.Plot.PlottingUtil.coordinateTrans(p,m,s),O=SuperMap.Plot.PlottingUtil.coordinateTrans(p,d,s);(c=[]).push(v),c.push(O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var U=new SuperMap.Geometry.Point((a.x+r.x)/2,(a.y+r.y)/2),L=new SuperMap.Geometry.Point((i[0].x+i[i.length-1].x)/2,(i[i.length-1].y+i[0].y)/2);(c=[]).push(U),c.push(L),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c);var w=SuperMap.Plot.PlottingUtil.coordinateTrans(U,P,s),V=SuperMap.Plot.PlottingUtil.coordinateTrans(U,S,s);(c=[]).push(w),c.push(V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var _=SuperMap.Plot.PlottingUtil.coordinateTrans(U,f,s),T=SuperMap.Plot.PlottingUtil.coordinateTrans(U,g,s);(c=[]).push(_),c.push(T),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var A=SuperMap.Plot.PlottingUtil.coordinateTrans(U,m,s),E=SuperMap.Plot.PlottingUtil.coordinateTrans(U,d,s);(c=[]).push(A),c.push(E),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var x=r,Y=i[i.length-1];(c=[]).push(x),c.push(Y),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c);var j=SuperMap.Plot.PlottingUtil.coordinateTrans(x,P,s),C=SuperMap.Plot.PlottingUtil.coordinateTrans(x,S,s);(c=[]).push(j),c.push(C),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var I=SuperMap.Plot.PlottingUtil.coordinateTrans(x,f,s),G=SuperMap.Plot.PlottingUtil.coordinateTrans(x,g,s);(c=[]).push(I),c.push(G),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var B=SuperMap.Plot.PlottingUtil.coordinateTrans(x,m,s),R=SuperMap.Plot.PlottingUtil.coordinateTrans(x,d,s);(c=[]).push(B),c.push(R),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),this.addScalePoint(i[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n=new SuperMap.Geometry.Point(l[0].x,l[0].y),a=new SuperMap.Geometry.Point(e.x,e.y),r=SuperMap.Plot.PlottingUtil.distance(n,a)/o;this.scaleValues[0]=r}}}]),e}();SuperMap.Plot.AlgoSymbol29401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29103=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol29100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=[];o=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var i=0;i<4;i++){var n=i*(o.length-1)/4,a=new SuperMap.Geometry.Point(o[n].x,o[n].y),r=new SuperMap.Geometry.Point(o[n+1].x,o[n+1].y),s=new SuperMap.Geometry.Point((a.x+r.x)/2,(a.y+r.y)/2),p=180*SuperMap.Plot.PlottingUtil.radian(s,r)/Math.PI,u=e*this.scaleValues[0]/2,c=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p),P=SuperMap.Plot.PlottingUtil.circlePoint(s,4*u,4*u,p+270),S=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p+180);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,P,S],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0})}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol29103=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29101=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol29100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var l=[];l=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var o=0;o<4;o++){var i=o*(l.length-1)/4,n=new SuperMap.Geometry.Point(l[i].x,l[i].y),a=new SuperMap.Geometry.Point(l[i+1].x,l[i+1].y),r=new SuperMap.Geometry.Point((n.x+a.x)/2,(n.y+a.y)/2),s=SuperMap.Plot.PlottingUtil.radian(r,a)*SuperMap.Plot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,u=SuperMap.Plot.PlottingUtil.circlePoint(r,p,p,s),c=SuperMap.Plot.PlottingUtil.circlePoint(r,4*p,4*p,s+270),P=SuperMap.Plot.PlottingUtil.circlePoint(r,p,p,s+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c,P])}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol29101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var l=[];l=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var o=0;o<4;o++){var i=Math.floor(o*l.length/4),n=new SuperMap.Geometry.Point(l[i].x,l[i].y),a=new SuperMap.Geometry.Point(l[i+1].x,l[i+1].y),r=new SuperMap.Geometry.Point((n.x+a.x)/2,(n.y+a.y)/2),s=SuperMap.Plot.PlottingUtil.radian(a,r)*SuperMap.Plot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,u=SuperMap.Plot.PlottingUtil.circlePoint(r,p,p,s),c=SuperMap.Plot.PlottingUtil.circlePoint(r,4*p,4*p,s+270),P=SuperMap.Plot.PlottingUtil.circlePoint(r,p,p,s+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c,P],{lineTypeLimit:!0,surroundLineLimit:!0})}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol29100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29003=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.02),this.scaleValues.push(0)),this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var l,o,i=SuperMap.Plot.PlottingUtil.polylineDistance(e),n=this.scaleValues[0],a=this.scaleValues[1],r=SuperMap.Plot.PlottingUtil.polylineDistance(t),s=n*r,p=.083*r,u=0,c=.01*r,P=0,S=0;S<=i;S+=p){if(1==P||11==P||6==P){u=S+c;var h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(u,e);if(!h.bfind)return;l=h.index,o=h.pts;var y=[],f=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[l],o);0==a?y.push(f.pntLeft):y.push(f.pntRight),1==P&&(this.scalePoints=[],this.addScalePoint(y[0])),y.push(o);var g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,y[0],y[1]),M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,y[1],y[0]),b=[];b.push(g.pntLeft),b.push(g.pntRight),b.push(M.pntLeft),b.push(M.pntRight),b.push(g.pntLeft.clone());this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{SurroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0})}P++}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;if(0==t){var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=this.scaleValues[0],n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=i*n,r=.01*n,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r,o);if(!s.bfind)return;var p=s.pts,u=s.index,c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,o[u],p).pntLeft,P=SuperMap.Plot.PlottingUtil.projectPoint(e,c,p),S=SuperMap.Plot.PlottingUtil.distance(P,p),h=SuperMap.Plot.PlottingUtil.pointIsRightToLine(P,p,e);this.scaleValues[1]=h?1:0,this.scaleValues[0]=S/n}}}}]),e}();SuperMap.Plot.AlgoSymbol29003=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29002=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol29001),o(e,[{key:"calculateParts",value:function(){(function t(e,l,o){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,l);if(void 0===i){var n=Object.getPrototypeOf(e);return null===n?void 0:t(n,l,o)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(o):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"calculateParts",this).call(this)}}]),e}();SuperMap.Plot.AlgoSymbol29002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29001=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t.length,l=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),o=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,i=.3*l,n=t[1].clone(),a=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],2*l);this.subSymbols.length>1&&(this.computeSubSymbol(this.subSymbols[0],n,i,o),this.computeSubSymbol(this.subSymbols[1],a,i,o));var r,s=[];2==e?(r=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t),s.push.apply(s,r)):3==e&&(r=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),s=s.concat(r));var p,u=new SuperMap.Geometry.Point(.8*l,.1*l),c=new SuperMap.Geometry.Point(1.2*l,.1*l),P=new SuperMap.Geometry.Point(1.2*l,.1*-l),S=new SuperMap.Geometry.Point(.9*l,.1*-l),h=[];h.push(u),h.push(c),h.push(P),h.push(S);var y=[],f=0;for(f=0;f<4;f++)p=SuperMap.Plot.PlottingUtil.coordinateTrans(t[0],h[f],o),y.push(p);var g=new SuperMap.Geometry.Point(-.8*l,.1*l),M=new SuperMap.Geometry.Point(-1.2*l,.1*l),b=new SuperMap.Geometry.Point(-1.1*l,.1*-l),m=new SuperMap.Geometry.Point(-.8*l,.1*-l);(h=[]).push(g),h.push(M),h.push(b),h.push(m);var d=[];for(f=0;f<4;f++)p=SuperMap.Plot.PlottingUtil.coordinateTrans(t[0],h[f],o),d.push(p);for(var v,O=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],3*l),U=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],2*l),L=[],w=0;w<s.length-1;w++){var V=SuperMap.Plot.PlottingUtil.intersectLines(s[w],s[w+1],O,U);V.isIntersectLines&&(v=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(V.intersectPoint,s)).isOnPolyLine&&L.push(V.intersectPoint)}if(!(0>=L.length)&&(v=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(L[0],s)).isOnPolyLine){var _=[];for(f=v.index+1;f<s.length;f++)_.push(s[f]);for(f=0;f<=v.index;f++)_.push(s[f]);var T=[],A=[];SuperMap.Plot.PlottingUtil.ptIsInPolygon(y,L[0])?(T.push.apply(T,y),A.push.apply(A,d)):(T.push.apply(T,d),A.push.apply(A,y));var E=[],x=[];for(v=-1,f=0;f<_.length;f++)if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(T,_[f])){if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(A,_[f])){v=f;break}E.push(_[f])}if(-1!=v)for(f=v;f<_.length;f++)if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(A,_[f])){if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(T,_[f]))break;x.push(_[f])}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,E),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,x),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol29001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=t.length,o=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),i=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,n=[];2==l?(e=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t),n.push.apply(n,e)):3==l&&(e=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),n=n.concat(e));var a,r=new SuperMap.Geometry.Point(.8*o,.1*o),s=new SuperMap.Geometry.Point(1.2*o,.1*o),p=new SuperMap.Geometry.Point(1.2*o,.1*-o),u=new SuperMap.Geometry.Point(.9*o,.1*-o),c=[];c.push(r),c.push(s),c.push(p),c.push(u);var P=[],S=0;for(S=0;S<4;S++)a=SuperMap.Plot.PlottingUtil.coordinateTrans(t[0],c[S],i),P.push(a);var h=new SuperMap.Geometry.Point(-.8*o,.1*o),y=new SuperMap.Geometry.Point(-1.2*o,.1*o),f=new SuperMap.Geometry.Point(-1.1*o,.1*-o),g=new SuperMap.Geometry.Point(-.8*o,.1*-o);(c=[]).push(h),c.push(y),c.push(f),c.push(g);var M=[];for(S=0;S<4;S++)a=SuperMap.Plot.PlottingUtil.coordinateTrans(t[0],c[S],i),M.push(a);var b,m=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],3*o),d=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],2*o),v=[];for(S=0;S<n.length-1;S++){var O=SuperMap.Plot.PlottingUtil.intersectLines(n[S],n[S+1],m,d);O.isIntersectLines&&(b=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(O.intersectPoint,n)).isOnPolyLine&&v.push(O.intersectPoint)}if(!(0>=v.length)&&(b=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(v[0],n)).isOnPolyLine){var U=[];for(S=b.index+1;S<n.length;S++)U.push(n[S]);for(S=0;S<=b.index;S++)U.push(n[S]);var L=[],w=[];SuperMap.Plot.PlottingUtil.ptIsInPolygon(P,v[0])?(L.push.apply(L,P),w.push.apply(w,M)):(L.push.apply(L,M),w.push.apply(w,P));var V=[],_=[];for(b=-1,S=0;S<U.length;S++)if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(L,U[S])){if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(w,U[S])){b=S;break}V.push(U[S])}if(-1!==b)for(S=b;S<U.length;S++)if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(w,U[S])){if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(L,U[S]))break;_.push(U[S])}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_),this.addLine(V),this.addLine(_),this.finish()}}}},{key:"addLine",value:function(t){for(var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=0;l<t.length-2;l++){var o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.02*e,t);if(-1!==o.index){var i=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*e,t);if(-1!==i.index){var n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.92*e,t);if(-1!==n.index&&(l===o.index||l===o.index+1||l===n.index||l===n.index+1||l===i.index||l===i.index+1)){var a=SuperMap.Plot.PlottingUtil.radian(t[l+1],t[l])*SuperMap.Plot.PlottingUtil.RTOD,r=SuperMap.Plot.PlottingUtil.circlePoint(t[l+1],.02*e,.02*e,a+90);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[l+1],r])}}}}}}]),e}();SuperMap.Plot.AlgoSymbol29000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5)),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var i=e[0],n=e[1],a=e[e.length-2],r=e[e.length-1],s=l*this.scaleValues[0]*.6,p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,n,i),u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,a,r),c=p.pntLeft,P=u.pntRight,S=[];S.push(i),S.push(c);for(var h=new SuperMap.Geometry.Point((i.x+c.x)/2,(i.y+c.y)/2),y=SuperMap.Plot.PlottingUtil.polylineDistance(S)/2,f=[],g=180*SuperMap.Plot.PlottingUtil.radian(n,i)/Math.PI,M=270+g;M<=360+g;M+=3)f.push(SuperMap.Plot.PlottingUtil.circlePoint(h,y,y,M));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var b=[];b.push(r),b.push(P);var m=[];m.push(r),m.push(P);for(var d=new SuperMap.Geometry.Point((r.x+P.x)/2,(r.y+P.y)/2),v=SuperMap.Plot.PlottingUtil.polylineDistance(m)/2,O=[],U=180*SuperMap.Plot.PlottingUtil.radian(r,P)/Math.PI,L=90+U;L<=180+U;L+=3)O.push(SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,L));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol28900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.087081),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.087081),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=.5*SuperMap.Plot.PlottingUtil.distance(t[0],l),u=new SuperMap.Geometry.Point(l.x+o*a-p,l.y+o*r);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],u,s,180),this.addScalePoint(u);var c=s,P=SuperMap.Plot.PlottingUtil.circlePoint(u,c,c,0);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),r=SuperMap.Plot.PlottingUtil.polylineDistance(l),s=.5*SuperMap.Plot.PlottingUtil.distance(l[0],a);if(0===t)i=(e.x+s-a.x)/r,this.scaleValues[2]=i,n=(e.y-a.y)/r,this.scaleValues[3]=n;else if(1===t){i=this.scaleValues[2],n=this.scaleValues[3];var p=new SuperMap.Geometry.Point(a.x-s+r*i,a.y+r*n),u=SuperMap.Plot.PlottingUtil.distance(p,e)/r;this.scaleValues[0]=u}}}}]),e}();SuperMap.Plot.AlgoSymbol28400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.3),l.scaleValues.push(1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.3),this.scaleValues.push(1)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var e,l,o=t[0].clone(),i=t[1].clone(),n=SuperMap.Plot.PlottingUtil.distance(o,i),a=this.scaleValues[0],r=this.scaleValues[1];if(SuperMap.Plot.PlottingUtil.equalFuzzy(1,r))e=SuperMap.Plot.PlottingUtil.radian(o,i)+270*SuperMap.Plot.PlottingUtil.DTOR;else e=SuperMap.Plot.PlottingUtil.radian(o,i)+90*SuperMap.Plot.PlottingUtil.DTOR,l=o,o=i,i=l;var s=n*a*.67,p=SuperMap.Plot.PlottingUtil.circlePoint(o,s,s,e*SuperMap.Plot.PlottingUtil.RTOD);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,n*a,e*SuperMap.Plot.PlottingUtil.RTOD);var u=SuperMap.Plot.PlottingUtil.circlePoint(i,s,s,e*SuperMap.Plot.PlottingUtil.RTOD);this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],u,n*a,e*SuperMap.Plot.PlottingUtil.RTOD),this.scalePoints=[];var c=e*SuperMap.Plot.PlottingUtil.RTOD,P=n*a,S=t[0].clone(),h=SuperMap.Plot.PlottingUtil.circlePoint(S,P,P,c);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l))[0].clone(),i=l[1].clone(),n=e.clone(),a=SuperMap.Plot.PlottingUtil.distance(o,i),r=SuperMap.Plot.PlottingUtil.plumbLineLen(n,o,i)/a;if(r<0||SuperMap.Plot.PlottingUtil.equalFuzzy(r,0))return;this.scaleValues[0]=r,SuperMap.Plot.PlottingUtil.pointIsRightToLine(o,i,n)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}]),e}();SuperMap.Plot.AlgoSymbol28301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var i=l*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],o,i,0),this.scalePoints=[];var n=SuperMap.Plot.PlottingUtil.circlePoint(o,i,i,0);this.addScalePoint(n),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=[];o=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var a=SuperMap.Plot.PlottingUtil.distance(e,n)/i;this.scaleValues[0]=a}}}}]),e}();SuperMap.Plot.AlgoSymbol28300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=e*this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l/2,t[0],t[1]),i=o.pntRight,n=o.pntLeft,a=SuperMap.Plot.PlottingUtil.radian(i,n)*SuperMap.Plot.PlottingUtil.RTOD,r=SuperMap.Plot.PlottingUtil.circlePoint(i,l/6,l/6,a-170),s=SuperMap.Plot.PlottingUtil.circlePoint(n,l/6,l/6,a+10),p=[];p.push(r),p.push(i),p.push(n),p.push(s),this.scalePoints=[],this.addScalePoint(i);var u=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(p);u=SuperMap.Plot.PlottingUtil.clearSamePts(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var c=SuperMap.Plot.PlottingUtil.paraLine(p,e,!0),P=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(c);P=SuperMap.Plot.PlottingUtil.clearSamePts(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=2*SuperMap.Plot.PlottingUtil.distance(e,l[1])/o;this.scaleValues[0]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol28201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28200=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol28200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.349066)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[1].x,t[1].y),o=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,i=0,n=0;n<t.length-1;n++)i+=SuperMap.Plot.PlottingUtil.distance(e,l);var a=this.scaleValues[0]*i;this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[e,new SuperMap.Geometry.Point(e.x+a,e.y)],{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var r=180*this.scaleValues[1]/Math.PI,s=SuperMap.Plot.PlottingUtil.circlePoint(e,i,i,o-r),p=SuperMap.Plot.PlottingUtil.circlePoint(e,i,i,o+r);this.addCell(SuperMap.Plot.SymbolType.ARCSYMBOL,[s,l,p],{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],t[1]],{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE},!0);var u=SuperMap.Plot.PlottingUtil.circlePoint(e,a,a,o-90);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,s],{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var c=SuperMap.Plot.PlottingUtil.circlePoint(e,a,a,o+90);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c,p],{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c],{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE},!0);var P=SuperMap.Plot.PlottingUtil.circlePoint(e,a,a,o+180);this.addScalePoint(new SuperMap.Geometry.Point(P.x,P.y),0),this.addScalePoint(p,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=new SuperMap.Geometry.Point(l[0].x,l[0].y),i=new SuperMap.Geometry.Point(l[1].x,l[1].y),n=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,a=SuperMap.Plot.PlottingUtil.distance(o,i);if(0===t){var r=SuperMap.Plot.PlottingUtil.distance(o,e)/a;this.scaleValues[0]=r}if(1===t){var s=180*SuperMap.Plot.PlottingUtil.radian(o,e)/Math.PI,p=Math.abs(s-n);if(p>270&&p<360&&(p=360-p),p>90)return;this.scaleValues[1]=p*Math.PI/180}}}}]),e}();SuperMap.Plot.AlgoSymbol28100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.349066)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l,o,i,n,a,r,s=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.RTOD,p=new SuperMap.Geometry.Point(t[0].x,t[0].y),u=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),c=SuperMap.Plot.PlottingUtil.radian(p,u)*SuperMap.Plot.PlottingUtil.RTOD,P=new SuperMap.Geometry.Point(0,0);if(2<=t.length){for(e=[],l=new SuperMap.Geometry.Point(t[1].x,t[1].y),o=SuperMap.Plot.PlottingUtil.distance(p,l),i=0,i=c-s;i<c+s;i+=3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i));SuperMap.Plot.PlottingUtil.equalFuzzy(i,c+s)&&(i=c+s,e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i))),(n=[]).push(t[0]);for(var S=0;S<e.length;S++)n.push(new SuperMap.Geometry.Point(e[S].x,e[S].y));n.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),a=SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,c),P=new SuperMap.Geometry.Point(a.x,a.y),(r=[]).push(t[0]),r.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER})}var h=new SuperMap.Geometry.Point(0,0);if(3<=t.length){for(e=[],l=new SuperMap.Geometry.Point(t[2].x,t[2].y),o=SuperMap.Plot.PlottingUtil.distance(p,l),i=0,i=c-s;i<c+s;i+=3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i));SuperMap.Plot.PlottingUtil.equalFuzzy(i,c+s)&&(i=c+s,e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i)));var y=[];if(0==e.length)return void(y.length>0&&(y=[]));(n=[]).push(t[0]);for(var f=0;f<e.length;f++)n.push(new SuperMap.Geometry.Point(e[f].x,e[f].y));n.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});for(var g=new SuperMap.Geometry.Point(t[1].x,t[1].y),M=SuperMap.Plot.PlottingUtil.distance(p,g)*this.scaleValues[0],b=[],m=90;m<=270;m+=3)b.push(SuperMap.Plot.PlottingUtil.circlePoint(p,M,M,c+m));n=[];for(var d=b.length-1;d>=0;d--)n.push(new SuperMap.Geometry.Point(b[d].x,b[d].y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),(n=[]).push(new SuperMap.Geometry.Point(b[0].x,b[0].y)),n.push(new SuperMap.Geometry.Point(e[e.length-1].x,e[e.length-1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),(n=[]).push(new SuperMap.Geometry.Point(e[0].x,e[0].y)),n.push(new SuperMap.Geometry.Point(b[b.length-1].x,b[b.length-1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),a=SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,c),h=new SuperMap.Geometry.Point(a.x,a.y),(r=[]).push(P),r.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER})}var v=new SuperMap.Geometry.Point(0,0);if(4<=t.length){for(e=[],l=new SuperMap.Geometry.Point(t[3].x,t[3].y),o=SuperMap.Plot.PlottingUtil.distance(p,l),i=0,i=c-s;i<=c+s;i+=3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i));SuperMap.Plot.PlottingUtil.equalFuzzy(i,c+s)&&(i=c+s,e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i))),(n=[]).push(t[0]);for(var O=0;O<e.length;O++)n.push(new SuperMap.Geometry.Point(e[O].x,e[O].y));n.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),a=SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,c),v=new SuperMap.Geometry.Point(a.x,a.y),(r=[]).push(h),r.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER})}if(3>t.length)this.addScalePoint(t[0]);else{var U=SuperMap.Plot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0],L=SuperMap.Plot.PlottingUtil.circlePoint(p,U,U,c+180);this.addScalePoint(L,0)}var w=SuperMap.Plot.PlottingUtil.distance(t[0],t[t.length-1]),V=SuperMap.Plot.PlottingUtil.circlePoint(p,w,w,c+s);this.addScalePoint(V,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l,o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMap.Plot.PlottingUtil.clearSamePts(o),0==t){if(3>o.length)return;var i=new SuperMap.Geometry.Point(o[0].x,o[0].y),n=new SuperMap.Geometry.Point(e.x,e.y),a=SuperMap.Plot.PlottingUtil.distance(i,n),r=new SuperMap.Geometry.Point(o[1].x,o[1].y);if((l=a/SuperMap.Plot.PlottingUtil.distance(i,r))>=2.5)return;this.scaleValues[0]=l}else if(1==t){var s=new SuperMap.Geometry.Point(o[0].x,o[0].y),p=new SuperMap.Geometry.Point(o[o.length-1].x,o[o.length-1].y),u=SuperMap.Plot.PlottingUtil.radian(s,p),c=new SuperMap.Geometry.Point(e.x,e.y);if(l=SuperMap.Plot.PlottingUtil.radian(s,c)-u,(l=Math.abs(l))>Math.PI/2&&l<3*Math.PI/2)return;l>3*Math.PI/2&&l<=2*Math.PI&&(l=2*Math.PI-l),this.scaleValues[1]=Math.abs(l)}}}}]),e}();SuperMap.Plot.AlgoSymbol28000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27902=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol27900),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[t[0],new SuperMap.Geometry.Point(t[0].x-e*this.scaleValues[0],t[0].y)],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!0,fill:!0,fillColor:"#ffff00",fillOpacity:1,lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[new SuperMap.Geometry.Point(t[0].x+e*(this.scaleValues[0]+.1),t[0].y+e*this.scaleValues[0]),new SuperMap.Geometry.Point(t[0].x-e*(this.scaleValues[0]+.1),t[0].y+e*this.scaleValues[0])]);var l=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e*this.scaleValues[0],e*this.scaleValues[0],90);this.addScalePoint(l,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol27902=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27901=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol27900),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[t[0],new SuperMap.Geometry.Point(t[0].x-e*this.scaleValues[0],t[0].y)],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!0,fill:!0,fillColor:"#ffff00",fillOpacity:1,lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[new SuperMap.Geometry.Point(t[0].x+e*(this.scaleValues[0]+.1),t[0].y-e*this.scaleValues[0]),new SuperMap.Geometry.Point(t[0].x-e*(this.scaleValues[0]+.1),t[0].y-e*this.scaleValues[0])]);var l=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e*this.scaleValues[0],e*this.scaleValues[0],90);this.addScalePoint(l,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol27901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.25),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[t[0],new SuperMap.Geometry.Point(t[0].x-e*this.scaleValues[0],t[0].y)],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!0,fill:!0,fillColor:"#ffff00",fillOpacity:1,lineTypeLimit:!0});var l=SuperMap.Plot.PlottingUtil.circlePoint(t[0],e*this.scaleValues[0],e*this.scaleValues[0],90);this.addScalePoint(l,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=new SuperMap.Geometry.Point(this.controlPoints[0].x,this.controlPoints[0].y),o=new SuperMap.Geometry.Point(this.controlPoints[1].x,this.controlPoints[1].y),i=new SuperMap.Geometry.Point(e.x,e.y),n=SuperMap.Plot.PlottingUtil.distance(l,i)/SuperMap.Plot.PlottingUtil.distance(l,o);.9<n&&(n=.9),this.scaleValues[0]=n}}}]),e}();SuperMap.Plot.AlgoSymbol27900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27701=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.03),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&this.scaleValues.push(.03);for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=[];o=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());var n=this.scaleValues[0]*e*2,a=this.scaleValues[0]*e,r=new SuperMap.Geometry.Point(i.x-n-a,i.y),s=new SuperMap.Geometry.Point(i.x-n,i.y),p=new SuperMap.Geometry.Point(i.x-n+a,i.y),u=new SuperMap.Geometry.Point(i.x+n,i.y),c=new SuperMap.Geometry.Point(i.x+n+a,i.y),P=new SuperMap.Geometry.Point(i.x+n+2*a,i.y),S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,r,s),h=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,s,p),y=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,u,c),f=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,c,P),g=[];g.push(new SuperMap.Geometry.Point(S.pntLeft.x,S.pntLeft.y)),g.push(new SuperMap.Geometry.Point(r.x,r.y)),g.push(new SuperMap.Geometry.Point(S.pntRight.x,S.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),(g=[]).push(new SuperMap.Geometry.Point(h.pntLeft.x,h.pntLeft.y)),g.push(new SuperMap.Geometry.Point(s.x,s.y)),g.push(new SuperMap.Geometry.Point(h.pntRight.x,h.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),(g=[]).push(new SuperMap.Geometry.Point(y.pntLeft.x,y.pntLeft.y)),g.push(new SuperMap.Geometry.Point(u.x,u.y)),g.push(new SuperMap.Geometry.Point(y.pntRight.x,y.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),(g=[]).push(new SuperMap.Geometry.Point(f.pntLeft.x,f.pntLeft.y)),g.push(new SuperMap.Geometry.Point(c.x,c.y)),g.push(new SuperMap.Geometry.Point(f.pntRight.x,f.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol27701=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var a=new SuperMap.Geometry.Point(t[0].x,t[0].y),r=new SuperMap.Geometry.Point(t[1].x,t[1].y),s=180*SuperMap.Plot.PlottingUtil.radian(a,r)/Math.PI;if(90<s&&s<270){var p=a;a=r,r=p,s=180*SuperMap.Plot.PlottingUtil.radian(a,r)/Math.PI}var u=new SuperMap.Geometry.Point(.25*e,0),c=new SuperMap.Geometry.Point(.25*e+.2*o,.3*o),P=new SuperMap.Geometry.Point(.25*e+.2*o,-.3*o),S=SuperMap.Plot.PlottingUtil.coordinateTrans(a,u,s),h=SuperMap.Plot.PlottingUtil.coordinateTrans(a,c,s),y=SuperMap.Plot.PlottingUtil.coordinateTrans(a,P,s),f=[];f.push(new SuperMap.Geometry.Point(h.x,h.y)),f.push(new SuperMap.Geometry.Point(S.x,S.y)),f.push(new SuperMap.Geometry.Point(y.x,y.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var g=new SuperMap.Geometry.Point(.3*e,0),M=new SuperMap.Geometry.Point(.3*e+.2*o,.3*o),b=new SuperMap.Geometry.Point(.3*e+.2*o,-.3*o),m=SuperMap.Plot.PlottingUtil.coordinateTrans(a,g,s),d=SuperMap.Plot.PlottingUtil.coordinateTrans(a,M,s),v=SuperMap.Plot.PlottingUtil.coordinateTrans(a,b,s);(f=[]).push(new SuperMap.Geometry.Point(d.x,d.y)),f.push(new SuperMap.Geometry.Point(m.x,m.y)),f.push(new SuperMap.Geometry.Point(v.x,v.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var O=new SuperMap.Geometry.Point(.7*e,0),U=new SuperMap.Geometry.Point(.7*e+.2*o,.3*o),L=new SuperMap.Geometry.Point(.7*e+.2*o,-.3*o),w=SuperMap.Plot.PlottingUtil.coordinateTrans(a,O,s),V=SuperMap.Plot.PlottingUtil.coordinateTrans(a,U,s),_=SuperMap.Plot.PlottingUtil.coordinateTrans(a,L,s);(f=[]).push(new SuperMap.Geometry.Point(V.x,V.y)),f.push(new SuperMap.Geometry.Point(w.x,w.y)),f.push(new SuperMap.Geometry.Point(_.x,_.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var T=new SuperMap.Geometry.Point(.75*e,0),A=new SuperMap.Geometry.Point(.75*e+.2*o,.3*o),E=new SuperMap.Geometry.Point(.75*e+.2*o,-.3*o),x=SuperMap.Plot.PlottingUtil.coordinateTrans(a,T,s),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(a,A,s),j=SuperMap.Plot.PlottingUtil.coordinateTrans(a,E,s);(f=[]).push(new SuperMap.Geometry.Point(Y.x,Y.y)),f.push(new SuperMap.Geometry.Point(x.x,x.y)),f.push(new SuperMap.Geometry.Point(j.x,j.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addScalePoint(i[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){for(var l=0,o=0;o<this.controlPoints.length-1;o++)l+=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[o],this.controlPoints[o+1]);var i=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],e)/l;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol27700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27300=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=[];l=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),i=new SuperMap.Geometry.Point(o.x,0);if(!1===this.polylineConnectLocationPoint){for(var n=0,a=-1,r=0;r<l.length-1;r++){var s=SuperMap.Plot.PlottingUtil.intersectLines(o,new SuperMap.Geometry.Point(o.x,o.y+1),l[r],l[r+1]);s.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,l[r],l[r+1])&&i.x===s.intersectPoint.x&&(0==n?(i.y=s.intersectPoint.y,a=r):i.y<s.intersectPoint.y&&(i.y=s.intersectPoint.y,a=r),n++))}var p=this.getSubSymbolScaleValue()*e,u=[];u.push(i);for(var c=a+1;c<l.length-1;c++)u.push(new SuperMap.Geometry.Point(l[c].x,l[c].y));for(var P=0;P<=a;P++)u.push(new SuperMap.Geometry.Point(l[P].x,l[P].y));var S=.8*p,h=SuperMap.Plot.PlottingUtil.findPointInPolyLine(u,S);if(-1===h.index)return;var y=[];y.push(h.pt);for(var f=h.index+1;f<u.length-1;f++)y.push(u[f]);u=[];for(var g=y.length-1;g>0;g--)u.push(y[g]);var M=SuperMap.Plot.PlottingUtil.findPointInPolyLine(u,S);if(-1===M.index)return;(y=[]).push(M.pt);for(var b=M.index+1;b<u.length-1;b++)y.push(u[b]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],i,p,0)}else{var m=t[0],d=t[1],v=SuperMap.Plot.PlottingUtil.distance(m,d),O=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.2*v,[m,d]);if(-1===O.index)return;var U=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*v,[m,d]);if(-1===U.index)return;var L=[];L.push(t[0]),L.push(O.pts),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L),(L=[]).push(U.pts);for(var w=1;w<t.length;w++)L.push(t[w]);L.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L);var V=new SuperMap.Geometry.Point((O.pts.x+U.pts.x)/2,(O.pts.y+U.pts.y)/2);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],V,.1*v,0)}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol27300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol27100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.1,l.scaleValues[1]=.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=.1,this.scaleValues[1]=.2),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var e,l,o=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),i=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,n=this.scaleValues[0],a=this.scaleValues[1],r=n*o,s=[];for(e=90;e<=270;e+=3)l=SuperMap.Plot.PlottingUtil.circlePoint(t[0],r,r,e+i),s.push(l);var p=[];for(e=-90;e<=90;e+=3)l=SuperMap.Plot.PlottingUtil.circlePoint(t[1],r,r,e+i),p.push(l);var u=o*a,c=new SuperMap.Geometry.Point((s[0].x+p[p.length-1].x)/2,(s[0].y+p[p.length-1].y)/2),P=SuperMap.Plot.PlottingUtil.linePnt(s[0],p[p.length-1],.5*(o-1.2*u)),S=SuperMap.Plot.PlottingUtil.linePnt(p[p.length-1],s[0],.5*(o-1.2*u)),h=SuperMap.Plot.PlottingUtil.radian(S,P)*SuperMap.Plot.PlottingUtil.RTOD,y=[];y.push(P),y.push.apply(y,s),y.push.apply(y,p),y.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],c,.9*u,h-90),this.scalePoints=[],this.addScalePoint(s[s.length-1]);var f=SuperMap.Plot.PlottingUtil.circlePoint(c,u,u,h+90);this.addScalePoint(f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}else if(1==t){var n=this.scaleValues[0]*o,a=SuperMap.Plot.PlottingUtil.radian(l[0],l[1])*SuperMap.Plot.PlottingUtil.RTOD,r=SuperMap.Plot.PlottingUtil.circlePoint(l[0],n,n,90+a),s=SuperMap.Plot.PlottingUtil.circlePoint(l[1],n,n,90+a),p=new SuperMap.Geometry.Point((r.x+s.x)/2,(r.y+s.y)/2),u=SuperMap.Plot.PlottingUtil.distance(p,e)/o;u>=.8&&(u=.8),this.scaleValues[1]=u}}}}]),e}();SuperMap.Plot.AlgoSymbol27100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(2===this.controlPoints.length)this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t);else if(3===this.controlPoints.length){var e=new SuperMap.Geometry.Point(this.controlPoints[0].x,this.controlPoints[0].y),l=new SuperMap.Geometry.Point(this.controlPoints[1].x,this.controlPoints[1].y),o=new SuperMap.Geometry.Point(this.controlPoints[2].x,this.controlPoints[2].y),i=SuperMap.Plot.PlottingUtil.distance(l,o);if(0>=i)return;this.scaleValues=[];var n=SuperMap.Plot.PlottingUtil.distance(e,l)/i;this.scaleValues.push(n);var a=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD;a>90?a-=90:a=270+a,this.scaleValues.push(a*SuperMap.Plot.PlottingUtil.DTOR);var r=SuperMap.Plot.PlottingUtil.radian(e,o)*SuperMap.Plot.PlottingUtil.RTOD;r>90?r-=90:r=270+r,this.scaleValues.push(r*SuperMap.Plot.PlottingUtil.DTOR);var s=this.scaleValues[0]*i,p=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.RTOD+90,u=this.scaleValues[2]*SuperMap.Plot.PlottingUtil.RTOD+90;p<u&&(p+=360);for(var c,P=[],S=p;S>=u;S-=4)c=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],s,s,S),P.push(c);S!=u&&(c=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],s,s,u),P.push(c)),P.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,P)}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol26800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),r=2*o*.8,s=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,r,s),0===this.scaleValues[1]?this.addScalePoint(i[0]):this.addScalePoint(n[0]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===o)return;if(0===t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol26700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26601=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);for(var l,o,i=SuperMap.Plot.PlottingUtil.polylineDistance(e),n=.1*i,a=.5*n,r=this.computeDashLine(n,a,e),s=.01*i,p=0;p<r.length;p++)l=SuperMap.Plot.PlottingUtil.paraLine(r[p],s,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),o=SuperMap.Plot.PlottingUtil.paraLine(r[p],s,!1),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);this.finish()}}},{key:"computeDashLine",value:function(t,e,l){for(var o,i,n=[],a=SuperMap.Plot.PlottingUtil.polylineDistance(l),r=l[0].clone(),s=1,p=0,u=!0,c=!0;p<a;){var P;(i=[]).push(r),p+=t;var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,l);if(P=S.index,o=S.pts,!(u=S.bfind))break;if(s<P)for(var h=s;h<P;h++)i.push(l[h]);i.push(o),n.push(i),p+=e;var y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,l);if(P=y.index,r=y.pts,s=P+1,!(c=y.bfind))break}if(!u){(i=[]).push(r);for(var f=s;f<l.length;f++)i.push(l[f]);2===i.length&&0===SuperMap.Plot.PlottingUtil.distance(i[0],i[1])||n.push(i)}if(!c){var g=l[l.length-1],M=SuperMap.Plot.PlottingUtil.distance(o,g);if(M*=.01,!SuperMap.Plot.PlottingUtil.equalFuzzy(M,0)){var b=SuperMap.Plot.PlottingUtil.linePnt(g,o,M);(i=[]).push(b),i.push(g),n.push(i)}}return n}}]),e}();SuperMap.Plot.AlgoSymbol26601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26600=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=.1*SuperMap.Plot.PlottingUtil.polylineDistance(e),o=.5*l;this.computeDashLine(l,o,e),this.finish()}}},{key:"computeDashLine",value:function(t,e,l){for(var o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=l[0].clone(),r=1,s=0,p=!0,u=!0;s<n;){var c;(i=[]).push(a),s+=t;var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,l);if(c=P.index,o=P.pts,!(p=P.bfind))break;if(r<c)for(var S=r;S<c;S++)i.push(l[S]);i.push(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),s+=e;var h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,l);if(c=h.index,a=h.pts,r=c+1,!(u=h.bfind))break}if(!p){(i=[]).push(a);for(var y=r;y<l.length;y++)i.push(l[y]);2===i.length&&0===SuperMap.Plot.PlottingUtil.distance(i[0],i[1])||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}if(!u){var f=l[l.length-1],g=SuperMap.Plot.PlottingUtil.distance(o,f);if(g*=.01,!SuperMap.Plot.PlottingUtil.equalFuzzy(g,0)){var M=SuperMap.Plot.PlottingUtil.linePnt(f,o,g);(i=[]).push(M),i.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}}}}]),e}();SuperMap.Plot.AlgoSymbol26600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26503=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol22000),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5)),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}for(var i=l*this.scaleValues[0],n=this.getLinePts(e,this.scaleValues[0]),a=[],r=[],s=0;s<=n.startIndex;s++)a.push(e[s]);if(a.push(n.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),n.endIndex<=e.length){r.push(n.endPt);for(var p=n.endIndex+1;p<=e.length-1;p++)r.push(e[p]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r)}var u=.5*i,c=new SuperMap.Geometry.Point(n.endPt.x,n.endPt.y),P=new SuperMap.Geometry.Point(n.startPt.x,n.startPt.y),S=SuperMap.Plot.PlottingUtil.distance(c,P),h=.2*S,y=SuperMap.Plot.PlottingUtil.linePnt(c,P,h),f=SuperMap.Plot.PlottingUtil.linePnt(P,c,h),g=.5*S,M=SuperMap.Plot.PlottingUtil.linePnt(c,P,g),b=new SuperMap.Geometry.Point((f.x+M.x)/2,(f.y+M.y)/2),m=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(u,f,b),d=m.pntLeft,v=m.pntRight,O=[];O.push(v),O.push(f),O.push(d),this.addCell(SuperMap.Plot.SymbolType.ARCSYMBOL,O,null,!0);var U=.1*S,L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(U,f,M),w=L.pntLeft,V=L.pntRight,_=[];_.push(f),_.push(w),_.push(V);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,_,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var T=[];T.push(M),T.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T,null,!0);var A=new SuperMap.Geometry.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),E=180*SuperMap.Plot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI,x=.5*l*this.scaleValues[0],Y=SuperMap.Plot.PlottingUtil.circlePoint(A,x,x,E+90),j=e[0],C=e[1],I=e[e.length-2],G=e[e.length-1],B=.5*i,R=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(B,C,j),N=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(B,I,G),D=R.pntLeft,k=N.pntLeft,z=[];z.push(j),z.push(D),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,z);var F=[];F.push(G),F.push(k),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,F),this.addScalePoint(Y),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol26503=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol26502=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol22000),e}();SuperMap.Plot.AlgoSymbol26502=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5)),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,r=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.8*r,a);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p)}var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),S=SuperMap.Plot.PlottingUtil.circlePoint(P.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a);this.addScalePoint(S,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMap.Plot.AlgoSymbol26501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,l/2);if(-1!==o.index){var i=o.pt,n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=n;var a=1.5*this.scaleValues[0]*l,r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,e[o.index],i),s=[];s.push(r.pntLeft),s.push(i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s,null,!0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol26500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05),l.scaleValues.push(-1.5)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){this.scaleValues=[];for(var e=0;e<t.length;e++)this.scaleValues.splice(e,0,0);var l=this.getSubSymbolScaleValue();this.scaleValues[t.length]=.8*l,this.scaleValues[t.length+1]=l,this.scaleValues[t.length+2]=-1.5;var o=.5*SuperMap.Plot.PlottingUtil.distance(t[0],t[1])/SuperMap.Plot.PlottingUtil.polylineDistance(t);this.scaleValues[t.length+3]=o,this.scaleValues[t.length+4]=l}this.isEdit&&this.scaleValues.length===t.length+3&&(this.scaleValues[t.length+3]=.5*SuperMap.Plot.PlottingUtil.distance(t[0],t[1])/SuperMap.Plot.PlottingUtil.polylineDistance(t),this.scaleValues[t.length+4]=.05);var i=SuperMap.Plot.PlottingUtil.polylineDistance(t),n=i*this.scaleValues[this.scaleValues.length-1],a=i*this.scaleValues[this.scaleValues.length-2],r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,a-.5*n);if(-1!==r.index){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,a+.5*n);if(-1!==s.index){var p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,a).pt,u=SuperMap.Plot.PlottingUtil.radian(r.pt,s.pt)*SuperMap.Plot.PlottingUtil.RTOD;if(0===this.subSymbols.length){var c=new SuperMap.Geometry.Point(p.x+.1*n,p.y);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[p,c],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0)}else this.computeSubSymbol(this.subSymbols[0],p,.8*n,u);for(var P=[],S=[],h=0;h<=r.index;h++)P.push(t[h]);P.push(r.pt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),S.push(s.pt);for(var y=r.index+1;y<=t.length-1;y++)S.push(t[y]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var f,g,M,b=SuperMap.Plot.PlottingUtil.polylineDistance(t),m=this.scaleValues.length,d=b*this.scaleValues[m-5],v=this.scaleValues[0];if(0===v)f=(g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,t[1],t[0])).pntRight;else if(1===v)f=(g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,t[1],t[0])).pntLeft;else{if(2!==v)return;f=t[0]}var O,U,L,w,V=[];if(V.push(t[0]),V.push(f),this.addScalePoint(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V,null,!0),t.length>this.minEditPts){for(var _,T,A,E,x,Y=1;Y<t.length-1;Y++){var j,C,I,G=this.scaleValues[Y];if(0===G){for(_=t[Y],C=t[Y+1],I=t[Y-1],T=180*SuperMap.Plot.PlottingUtil.radian(_,C)/Math.PI,A=180*SuperMap.Plot.PlottingUtil.radian(_,I)/Math.PI-T;A<0;)A+=360;E=A/2,x=t[Y+1].clone(),x=SuperMap.Plot.PlottingUtil.rotateAngle(_,E*Math.PI/180,x),j=SuperMap.Plot.PlottingUtil.linePnt(_,x,d)}else if(1===G){for(_=t[Y],C=t[Y+1],I=t[Y-1],T=180*SuperMap.Plot.PlottingUtil.radian(_,C)/Math.PI,A=180*SuperMap.Plot.PlottingUtil.radian(_,I)/Math.PI-T;A<0;)A+=360;E=180-A/2,x=t[Y-1].clone(),x=SuperMap.Plot.PlottingUtil.rotateAngle(_,E*Math.PI/180,x),j=SuperMap.Plot.PlottingUtil.linePnt(_,x,d)}else{if(2!==G)continue;j=t[Y]}(O=[]).push(t[Y]),O.push(j),this.addScalePoint(j),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O,null,!0)}var B=t.length,R=this.scaleValues[B-1];if(0===R)U=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,t[B-2],t[B-1])).pntLeft,L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*d,t[B-2],t[B-1]).pntLeft;else if(1===R)U=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,t[B-2],t[B-1])).pntRight,L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*d,t[B-2],t[B-1]).pntRight;else{if(2!==R)return;U=t[B-1].clone(),L=t[B-1].clone()}(O=[]).push(t[B-1]),O.push(U),this.addScalePoint(U),this.addScalePoint(L),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O,null,!0)}else{var N=this.scaleValues[1];if(0===N)U=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,t[0],t[1])).pntLeft,L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*d,t[0],t[1]).pntLeft;else if(1===N)U=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(d,t[0],t[1])).pntRight,L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*d,t[0],t[1]).pntRight;else{if(2!==N)return;U=t[1].clone(),L=t[1].clone()}(O=[]).push(t[1]),O.push(U),this.addScalePoint(U),this.addScalePoint(L),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O,null,!0)}var D=this.scaleValues.length,k=this.scaleValues[D-4],z=Math.abs(b*k),F=this.scaleValues[D-3],K=Math.abs(d*F);if(-1!==(g=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,z)).index){var W=g.index,q=g.pt;w=F>=0?(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(K,t[W],q)).pntRight:(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(K,t[W],q)).pntLeft;var J=SuperMap.Plot.PlottingUtil.linePnt(q,w,K),H=.3*K,Q=SuperMap.Plot.PlottingUtil.linePnt(J,q,H),X=(M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3*H,J,Q)).pntLeft,Z=M.pntRight;(O=[]).push(q),O.push(J),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O,null,!0),(O=[]).push(X),O.push(J),O.push(Z);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,O,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0),this.addScalePoint(J),this.addScalePoint(p);var $=SuperMap.Plot.PlottingUtil.radian(r.pt,s.pt)*SuperMap.Plot.PlottingUtil.RTOD+90,tt=SuperMap.Plot.PlottingUtil.circlePoint(p,.5*n,.5*n,$);this.addScalePoint(tt),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,a,r,s,p,u,c,P,S=SuperMap.Plot.PlottingUtil.polylineDistance(l),h=l.length,y=e;if(t>=0&&t<h){var f=!1;if(0==t)f=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t],l[t+1],y);else if(t==h-1)f=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],y);else{var g=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],l[t+1]),M=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],y);if(g!=M)f=M;else{var b=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t],l[t+1],y);f=b==M?M:b}}this.scaleValues[t]=f?1:0}else if(t==h){o=SuperMap.Plot.PlottingUtil.distance(l[h-1],y);var m=(o/=2)/S;this.scaleValues[t]=m}else if(t===h+1){i=-1,n=0,a=new SuperMap.Geometry.Point(0,0);for(var d=0;d<l.length-1;d++)(r=[]).push(l[d]),r.push(l[d+1]),p=SuperMap.Plot.PlottingUtil.projectPoint(y,l[d],l[d+1]),(s=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(p,r)).isOnPolyLine&&(P=SuperMap.Plot.PlottingUtil.distance(y,p),-1==i?(i=d,a=p,n=P):n>P&&(i=d,a=p,n=P));if(-1==i||i>l.length-1)return;u=0;for(var v=0;v<i;v++){var O=l[v],U=l[v+1];u+=SuperMap.Plot.PlottingUtil.distance(O,U)}if(c=l[i],(u+=SuperMap.Plot.PlottingUtil.distance(c,a))<0||u>S)return;var L=u/S;this.scaleValues[h+1]=L;var w,V=this.scaleValues.length;o=S*this.scaleValues[V-5],w=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[i],l[i+1],y)?n/o:-Math.abs(n/o),this.scaleValues[h+2]=w}else if(t===h+2){i=-1,n=0,a=new SuperMap.Geometry.Point(0,0);for(var _=0;_<l.length-1;_++)(r=[]).push(l[_]),r.push(l[_+1]),p=SuperMap.Plot.PlottingUtil.projectPoint(y,l[_],l[_+1]),(s=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(p,r)).isOnPolyLine&&(P=SuperMap.Plot.PlottingUtil.distance(y,p),-1===i?(i=_,a=p,n=P):n>P&&(i=_,a=p,n=P));if(-1===i||i>l.length-1)return;u=0;for(var T=0;T<i;T++)u+=SuperMap.Plot.PlottingUtil.distance(l[T],l[T+1]);if(c=l[i],(u+=SuperMap.Plot.PlottingUtil.distance(c,a))<0||u>S)return;.1*S<u&&.9*S>u&&(this.scaleValues[this.scaleValues.length-2]=u/S)}else if(t===h+3){var A=this.scaleValues[this.scaleValues.length-2]*S;if(-1===(s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,A)).index)return;var E=2*SuperMap.Plot.PlottingUtil.distance(s.pt,e)/S;E>.15&&(E=.15),this.scaleValues[this.scaleValues.length-1]=E}}}}]),e}();SuperMap.Plot.AlgoSymbol26400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25901=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol25900),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=2*this.getSubSymbolScaleValue());var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=n*l/2,s=[];s.push(new SuperMap.Geometry.Point(a.x-r,a.y)),s.push(new SuperMap.Geometry.Point(a.x+r,a.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s,null,!0);var p=.3*r,u=[];u.push(new SuperMap.Geometry.Point(a.x-r,a.y+p/2)),u.push(new SuperMap.Geometry.Point(a.x-r,a.y-p/2)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,null,!0);var c=[];c.push(new SuperMap.Geometry.Point(a.x+r,a.y+p/2)),c.push(new SuperMap.Geometry.Point(a.x+r,a.y-p/2)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,null,!0);var P=[];P.push(new SuperMap.Geometry.Point(a.x,a.y)),P.push(new SuperMap.Geometry.Point(a.x,a.y+1.5*p)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,null,!0);var S=[];S.push(new SuperMap.Geometry.Point(a.x-p/2,a.y)),S.push(new SuperMap.Geometry.Point(a.x-p,a.y+p)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,null,!0);var h=[];h.push(new SuperMap.Geometry.Point(a.x+p/2,a.y)),h.push(new SuperMap.Geometry.Point(a.x+p,a.y+p)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,null,!0),this.addScalePoint(a);var y=SuperMap.Plot.PlottingUtil.circlePoint(a,r,r,90);this.addScalePoint(y),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol25901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50,n=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!0),a=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!1);if(n.length>2&&a.length>0){for(var r=[],s=0;s<n.length;s++)r.push(n[s]);var p=a[0],u=[];SuperMap.Plot.PlottingUtil.ptIsInPolygon(r,p)||(u=u.concat(n),n=(n=[]).concat(a),a=(a=[]).concat(u))}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},!0);var c=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),P=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=4*this.getSubSymbolScaleValue());var S=this.scaleValues[0],h=this.scaleValues[1],y=this.scaleValues[2],f=new SuperMap.Geometry.Point(c.x+P*S,c.y+P*h),g=y*P/2,M=[];M.push(new SuperMap.Geometry.Point(f.x-g,f.y)),M.push(new SuperMap.Geometry.Point(f.x+g,f.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M,null,!0);var b=.3*g,m=[];m.push(new SuperMap.Geometry.Point(f.x-g,f.y+b/2)),m.push(new SuperMap.Geometry.Point(f.x-g,f.y-b/2)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m,null,!0);var d=[];d.push(new SuperMap.Geometry.Point(f.x+g,f.y+b/2)),d.push(new SuperMap.Geometry.Point(f.x+g,f.y-b/2)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d,null,!0);var v=[];v.push(new SuperMap.Geometry.Point(f.x,f.y)),v.push(new SuperMap.Geometry.Point(f.x,f.y+1.5*b)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v,null,!0);var O=[];O.push(new SuperMap.Geometry.Point(f.x-b/2,f.y)),O.push(new SuperMap.Geometry.Point(f.x-b,f.y+b)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O,null,!0);var U=[];U.push(new SuperMap.Geometry.Point(f.x+b/2,f.y)),U.push(new SuperMap.Geometry.Point(f.x+b,f.y+b)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U,null,!0),this.addScalePoint(f);var L=SuperMap.Plot.PlottingUtil.circlePoint(f,g,g,90);this.addScalePoint(L),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t&&1!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i,n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),a=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(SuperMap.Plot.PlottingUtil.equalFuzzy(a,0))return;if(0==t)o=(e.x-n.x)/a,this.scaleValues[0]=o,i=(e.y-n.y)/a,this.scaleValues[1]=i;else if(1==t){o=this.scaleValues[0],i=this.scaleValues[1];var r=new SuperMap.Geometry.Point(n.x+a*o,n.y+a*i),s=2*SuperMap.Plot.PlottingUtil.distance(r,e)/a;this.scaleValues[2]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol25900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol25800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=2*this.getSubSymbolScaleValue());var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=n*l/2,s=[];s.push(new SuperMap.Geometry.Point(a.x,a.y)),s.push(new SuperMap.Geometry.Point(a.x,a.y+r));this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,s,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var p=[];p.push(new SuperMap.Geometry.Point(a.x-1.5*r,a.y+r)),p.push(new SuperMap.Geometry.Point(a.x+1.5*r,a.y+r)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,null,!0),this.addScalePoint(a);var u=SuperMap.Plot.PlottingUtil.circlePoint(a,r,r,90);this.addScalePoint(u),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol25801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.08)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50,n=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!0),a=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!1);if(n.length>2&&a.length>0){for(var r=[],s=new SuperMap.Geometry.Point(0,0),p=0;p<n.length;p++)r.push(n[p]);s=a[0];var u=[];SuperMap.Plot.PlottingUtil.ptIsInPolygon(r,s)||(u=u.concat(n),n=(n=[]).concat(a),a=(a=[]).concat(u))}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},!0);var c=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),P=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=2*this.getSubSymbolScaleValue());var S=this.scaleValues[0],h=this.scaleValues[1],y=this.scaleValues[2],f=new SuperMap.Geometry.Point(c.x+P*S,c.y+P*h),g=y*P/2,M=[];M.push(new SuperMap.Geometry.Point(f.x,f.y)),M.push(new SuperMap.Geometry.Point(f.x,f.y+g));this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,M,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var b=[];b.push(new SuperMap.Geometry.Point(f.x-1.5*g,f.y+g)),b.push(new SuperMap.Geometry.Point(f.x+1.5*g,f.y+g)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,null,!0),this.addScalePoint(f);var m=SuperMap.Plot.PlottingUtil.circlePoint(f,g,g,90);this.addScalePoint(m),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0==n)return;if(0==t)o=(e.x-a.x)/n,this.scaleValues[0]=o,i=(e.y-a.y)/n,this.scaleValues[1]=i;else if(1==t){o=this.scaleValues[0],i=this.scaleValues[1];var r=new SuperMap.Geometry.Point(a.x+n*o,a.y+n*i),s=2*SuperMap.Plot.PlottingUtil.distance(r,e)/n;this.scaleValues[2]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol25800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25701=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var n={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),r=10*i;t.push(t[0]);for(var s=!0,p=a.x,u=a.x;s;){s=!1;for(var c,P,S,h,y,f=[],g=new SuperMap.Geometry.Point(p,a.y),M=SuperMap.Plot.PlottingUtil.circlePoint(g,10,10,45),b=0;b<t.length-1;b++){var m=SuperMap.Plot.PlottingUtil.intersectLines(g,M,t[b],t[b+1]);m.isIntersectLines&&(P=m.intersectPoint,(S=[]).push(t[b]),S.push(t[b+1]),(c=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(P,S)).isOnPolyLine&&f.push(P))}if(1<f.length){this.sortPts2D(f);for(var d=0;d<f.length-1;d++)y=new SuperMap.Geometry.Point((f[d].x+f[d+1].x)/2,(f[d].y+f[d+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(t,y)&&((h=[]).push(f[d]),h.push(f[d+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,n,!0))}f.length>0&&(s=!0),f=[];for(var v=new SuperMap.Geometry.Point(u,a.y),O=SuperMap.Plot.PlottingUtil.circlePoint(v,5,5,45),U=0;U<t.length-1;U++)(c=SuperMap.Plot.PlottingUtil.intersectLines(v,O,t[U],t[U+1])).isIntersectLines&&(P=c.intersectPoint,(S=[]).push(t[U]),S.push(t[U+1]),(c=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(P,S)).isOnPolyLine&&f.push(P));if(1<f.length){this.sortPts2D(f);for(var L=0;L<f.length-1;L++)y=new SuperMap.Geometry.Point((f[L].x+f[L+1].x)/2,(f[L].y+f[L+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(t,y)&&((h=[]).push(f[L]),h.push(f[L+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,n,!0))}f.length>0&&(s=!0),p-=r,u+=r}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMap.Geometry.Point(0,0),l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=e):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMap.Plot.AlgoSymbol25701=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25700=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i,n,a=(l-e)/50,r=SuperMap.Plot.PlottingUtil.paraPolygon(t,a,!0),s=SuperMap.Plot.PlottingUtil.paraPolygon(t,a,!1);if(r.length>2&&s.length>0){for(var p=[],u=0;u<r.length;u++)p.push(r[u]);i=s[0],n=[],SuperMap.Plot.PlottingUtil.ptIsInPolygon(p,i)||(n=n.concat(r),r=(r=[]).concat(s),s=(s=[]).concat(n))}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,r);var c={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,c),s.push(s[0]);for(var P=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),S=10*a,h=!0,y=P.x,f=P.x;h;){h=!1;for(var g,M,b,m=[],d=new SuperMap.Geometry.Point(y,P.y),v=SuperMap.Plot.PlottingUtil.circlePoint(d,10,10,45),O=0;O<s.length-1;O++){var U=SuperMap.Plot.PlottingUtil.intersectLines(d,v,s[O],s[O+1]);U.isIntersectLines&&(M=U.intersectPoint,(n=[]).push(s[O]),n.push(s[O+1]),(g=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(M,n)).isOnPolyLine&&m.push(M))}if(1<m.length){this.sortPts2D(m);for(var L=0;L<m.length-1;L++)i=new SuperMap.Geometry.Point((m[L].x+m[L+1].x)/2,(m[L].y+m[L+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(s,i)&&((b=[]).push(m[L]),b.push(m[L+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,c))}m.length>0&&(h=!0),m=[];for(var w=new SuperMap.Geometry.Point(f,P.y),V=SuperMap.Plot.PlottingUtil.circlePoint(w,5,5,45),_=0;_<s.length-1;_++)(g=SuperMap.Plot.PlottingUtil.intersectLines(w,V,s[_],s[_+1])).isIntersectLines&&(M=g.intersectPoint,(n=[]).push(s[_]),n.push(s[_+1]),(g=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(M,n)).isOnPolyLine&&m.push(M));if(1<m.length){this.sortPts2D(m);for(var T=0;T<m.length-1;T++)i=new SuperMap.Geometry.Point((m[T].x+m[T+1].x)/2,(m[T].y+m[T+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(s,i)&&((b=[]).push(m[T]),b.push(m[T+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,c))}m.length>0&&(h=!0),y-=S,f+=S}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMap.Geometry.Point(0,0),l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=e):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMap.Plot.AlgoSymbol25700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25601=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol25600),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var l=this.scaleValues[0]*e*.5,o=SuperMap.Plot.PlottingUtil.clonePoints(t);o.push(o[0].clone());for(var i=0;i<o.length-1;i++){var n=new SuperMap.Geometry.Point((o[i].x+o[i+1].x)/2,(o[i].y+o[i+1].y)/2),a=new SuperMap.Geometry.Point(0,1.5*l),r=new SuperMap.Geometry.Point(-.5*l,0),s=new SuperMap.Geometry.Point(0,-1.5*l),p=new SuperMap.Geometry.Point(.5*l,0),u=SuperMap.Plot.PlottingUtil.radian(n,o[i+1])*SuperMap.Plot.PlottingUtil.RTOD,c=SuperMap.Plot.PlottingUtil.coordinateTrans(n,a,u),P=SuperMap.Plot.PlottingUtil.coordinateTrans(n,r,u),S=SuperMap.Plot.PlottingUtil.coordinateTrans(n,s,u),h=SuperMap.Plot.PlottingUtil.coordinateTrans(n,p,u),y=[];y.push(c),y.push(P),y.push(S),y.push(h),y.push(c.clone());this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0,lineWidthLimit:!0})}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol25601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.01),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50,n=[],a=[],r=!0;t.length>2?SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[0],t[1],t[2])?(n=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!1),a=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!0)):(r=!1,n=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!0),a=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!1)):(n=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!1),a=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!0));var s,p,u,c,P,S,h,y,f;if(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,a),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,{surroundLineFlag:!1,lineWidthLimit:!0}),t.length>2){var g=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var M=this.scaleValues[0]*g*.5;a.push(a[0].clone());for(var b=0;b<a.length-1;b++){s=new SuperMap.Geometry.Point((a[b].x+a[b+1].x)/2,(a[b].y+a[b+1].y)/2),p=new SuperMap.Geometry.Point(0,0),u=new SuperMap.Geometry.Point(0,0),c=new SuperMap.Geometry.Point(0,0),r?(p.x=0,p.y=1.5*M,u.x=-.5*M,u.y=0,c.x=.5*M,c.y=0):(p.x=0,p.y=-1.5*M,u.x=-.5*M,u.y=0,c.x=.5*M,c.y=0),P=SuperMap.Plot.PlottingUtil.radian(s,a[b+1])*SuperMap.Plot.PlottingUtil.RTOD,S=SuperMap.Plot.PlottingUtil.coordinateTrans(s,p,P),h=SuperMap.Plot.PlottingUtil.coordinateTrans(s,u,P),y=SuperMap.Plot.PlottingUtil.coordinateTrans(s,c,P),(f=[]).push(S),f.push(h),f.push(y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0,lineWidthLimit:!0})}n.push(n[0].clone());for(var m=0;m<n.length-1;m++){s=new SuperMap.Geometry.Point((n[m].x+n[m+1].x)/2,(n[m].y+n[m+1].y)/2),p=new SuperMap.Geometry.Point(0,0),u=new SuperMap.Geometry.Point(0,0),c=new SuperMap.Geometry.Point(0,0),r?(p.x=0,p.y=-1.5*M,u.x=-.5*M,u.y=0,c.x=.5*M,c.y=0):(p.x=0,p.y=1.5*M,u.x=-.5*M,u.y=0,c.x=.5*M,c.y=0),P=SuperMap.Plot.PlottingUtil.radian(s,n[m+1])*SuperMap.Plot.PlottingUtil.RTOD,S=SuperMap.Plot.PlottingUtil.coordinateTrans(s,p,P),h=SuperMap.Plot.PlottingUtil.coordinateTrans(s,u,P),y=SuperMap.Plot.PlottingUtil.coordinateTrans(s,c,P),(f=[]).push(S),f.push(h),f.push(y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0,fillLimit:!0,fill:!0,lineWidthLimit:!0})}}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol25600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25503=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.02)),0==this.subSymbols.length&&this.subSymbols.push(new SuperMap.Plot.SubSymbol(100,8402)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=.5*this.getSubSymbolScaleValue());var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=n*l,s=[];s.push(new SuperMap.Geometry.Point(a.x-4*r,a.y+r/2)),s.push(new SuperMap.Geometry.Point(a.x-4*r,a.y-r/2));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s,{surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0});var p=[];p.push(new SuperMap.Geometry.Point(a.x-4*r,a.y)),p.push(new SuperMap.Geometry.Point(a.x-r,a.y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0}),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,2*r,0);var u=[];u.push(new SuperMap.Geometry.Point(a.x+4*r,a.y)),u.push(new SuperMap.Geometry.Point(a.x+r,a.y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0});var c=[];c.push(new SuperMap.Geometry.Point(a.x+4*r,a.y+r/2)),c.push(new SuperMap.Geometry.Point(a.x+4*r,a.y-r/2));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,surroundLineLimit:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(a.clone());var P=SuperMap.Plot.PlottingUtil.circlePoint(a,2*r,2*r,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t&&1!=t)return;var l,o,i=this.controlPoints,n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(i),a=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(SuperMap.Plot.PlottingUtil.equalFuzzy(a,0))return;if(0==t)l=(e.x-n.x)/a,this.scaleValues[0]=l,o=(e.y-n.y)/a,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var r=new SuperMap.Geometry.Point(n.x+a*l,n.y+a*o),s=SuperMap.Plot.PlottingUtil.distance(r,e)/2/a;this.scaleValues[2]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol25503=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25502=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.08)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=2*this.getSubSymbolScaleValue());var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=n*l/2.5,s=.7*r,p=[];p.push(new SuperMap.Geometry.Point(a.x,a.y)),p.push(new SuperMap.Geometry.Point(a.x+r,a.y));this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,p,{surroundLineFlag:!1,lineTypeLimit:!0});var u=[];u.push(new SuperMap.Geometry.Point(a.x+s,a.y-s/2)),u.push(new SuperMap.Geometry.Point(a.x-s,a.y-s/2));var c={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,c);var P=[];P.push(new SuperMap.Geometry.Point(a.x,a.y-s/2)),P.push(new SuperMap.Geometry.Point(a.x,a.y+s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,c);var S=[];S.push(new SuperMap.Geometry.Point(a.x-s/2,a.y-s/2)),S.push(new SuperMap.Geometry.Point(a.x-s,a.y+s/2)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,c);var h=[];h.push(new SuperMap.Geometry.Point(a.x+s/2,a.y-s/2)),h.push(new SuperMap.Geometry.Point(a.x+s,a.y+s/2)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,c),this.scalePoints=[],this.addScalePoint(a.clone());var y=SuperMap.Plot.PlottingUtil.circlePoint(a,1.25*r,1.25*r,90);this.addScalePoint(y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t&&1!=t)return;var l,o,i=this.controlPoints,n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(i),a=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(SuperMap.Plot.PlottingUtil.equalFuzzy(a,0))return;if(0==t)l=(e.x-n.x)/a,this.scaleValues[0]=l,o=(e.y-n.y)/a,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var r=new SuperMap.Geometry.Point(n.x+a*l,n.y+a*o),s=2*SuperMap.Plot.PlottingUtil.distance(r,e)/a;this.scaleValues[2]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol25502=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol25500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.05)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=2*this.getSubSymbolScaleValue());var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=n*l,s=.25*r,p=[];p.push(new SuperMap.Geometry.Point(a.x-r,a.y+s)),p.push(new SuperMap.Geometry.Point(a.x+r,a.y+s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);var u=[];u.push(new SuperMap.Geometry.Point(a.x+r,a.y-s)),u.push(new SuperMap.Geometry.Point(a.x-r,a.y-s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var c=[];c.push(new SuperMap.Geometry.Point(a.x+r,a.y+2*s)),c.push(new SuperMap.Geometry.Point(a.x+r,a.y-2*s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var P=[];P.push(new SuperMap.Geometry.Point(a.x-r,a.y+2*s)),P.push(new SuperMap.Geometry.Point(a.x-r,a.y-2*s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),this.scalePoints=[],this.addScalePoint(a);var S=SuperMap.Plot.PlottingUtil.circlePoint(a,r,r,90);this.addScalePoint(S),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol25501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.02));for(var e=t[0].x,l=t[0].x,o=0;o<t.length;o++)e>t[o].x&&(e=t[o].x),l<t[o].x&&(l=t[o].x);var i=(l-e)/50,n=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!1),a=SuperMap.Plot.PlottingUtil.polylineDistance(n),r=SuperMap.Plot.PlottingUtil.paraPolygon(t,i,!0),s={surroundLineFlag:!1,lineWidthLimit:!0};a>SuperMap.Plot.PlottingUtil.polylineDistance(r)?(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,r,s)):(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n,s),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,r));var p=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),u=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[2]=.5*this.getSubSymbolScaleValue());var c=this.scaleValues[0],P=this.scaleValues[1],S=this.scaleValues[2],h=new SuperMap.Geometry.Point(p.x+u*c,p.y+u*P),y=S*u,f=new SuperMap.Geometry.Point(h.x-4*y,h.y+y/2),g=new SuperMap.Geometry.Point(h.x-4*y,h.y-y/2),M=[];M.push(f),M.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var b=new SuperMap.Geometry.Point(h.x-4*y,h.y),m=new SuperMap.Geometry.Point(h.x-1.5*y,h.y);(M=[]).push(b),M.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);for(var d=new SuperMap.Geometry.Point(h.x,h.y-y),v=SuperMap.Plot.PlottingUtil.circlePoint(d,2*y,2*y,60),O=SuperMap.Plot.PlottingUtil.circlePoint(d,2*y,2*y,120),U=new SuperMap.Geometry.Point((v.x+O.x)/2,v.y),L=[],w=0;w<=180;w+=3)L.push(SuperMap.Plot.PlottingUtil.circlePoint(U,y,y,w));M=[];for(var V=0;V<L.length;V++)M.push(L[V].clone());M.push(O.clone()),M.push(d.clone()),M.push(v.clone()),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,M);var _=new SuperMap.Geometry.Point(h.x+4*y,h.y),T=new SuperMap.Geometry.Point(h.x+1.5*y,h.y);(M=[]).push(_.clone()),M.push(T.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var A=new SuperMap.Geometry.Point(h.x+4*y,h.y+y/2),E=new SuperMap.Geometry.Point(h.x+4*y,h.y-y/2);(M=[]).push(A.clone()),M.push(E.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),this.scalePoints=[],this.addScalePoint(h.clone());var x=SuperMap.Plot.PlottingUtil.circlePoint(h,y,y,90);this.addScalePoint(x.clone()),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t&&1!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i,n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),a=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(SuperMap.Plot.PlottingUtil.equalFuzzy(a,0))return;if(0==t)o=(e.x-n.x)/a,this.scaleValues[0]=o,i=(e.y-n.y)/a,this.scaleValues[1]=i;else if(1==t){o=this.scaleValues[0],i=this.scaleValues[1];var r=new SuperMap.Geometry.Point(n.x+a*o,n.y+a*i),s=SuperMap.Plot.PlottingUtil.distance(r,e)/a;this.scaleValues[2]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol25500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5));for(var i=this.getLinePts(e,this.scaleValues[0]),n=this.getLinePts(e,1.2*this.scaleValues[0]),a=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt),r=[],s=[],p=0;p<=n.startIndex;p++)r.push(e[p]);if(r.push(n.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),n.endIndex<=e.length){s.push(n.endPt);for(var u=n.endIndex+1;u<=e.length-1;u++)s.push(e[u]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}var c=e[0],P=e[1],S=e[e.length-2],h=e[e.length-1],y=.3*a,f=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y,P,c),g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y,S,h),M=f.pntLeft,b=g.pntLeft,m=[];m.push(c),m.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m);var d=[];d.push(h),d.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,O=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),U=new SuperMap.Geometry.Point(.1*a,0),L=new SuperMap.Geometry.Point(.5*a,0),w=SuperMap.Plot.PlottingUtil.coordinateTrans(O,U,v),V=SuperMap.Plot.PlottingUtil.coordinateTrans(O,L,v),_=[];_.push(w),_.push(V);var T={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_,T);var A=new SuperMap.Geometry.Point(.35*a,0),E=SuperMap.Plot.PlottingUtil.circlePoint(A,.2*a,.2*a,135),x=SuperMap.Plot.PlottingUtil.circlePoint(A,.2*a,.2*a,225),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(O,A,v),j=SuperMap.Plot.PlottingUtil.coordinateTrans(O,E,v),C=SuperMap.Plot.PlottingUtil.coordinateTrans(O,x,v);(_=[]).push(j),_.push(Y),_.push(C),T={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0},this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_,T);var I=new SuperMap.Geometry.Point(-.1*a,0),G=new SuperMap.Geometry.Point(-.5*a,-.15*a),B=new SuperMap.Geometry.Point(-.5*a,.15*a),R=SuperMap.Plot.PlottingUtil.coordinateTrans(O,I,v),N=SuperMap.Plot.PlottingUtil.coordinateTrans(O,G,v),D=SuperMap.Plot.PlottingUtil.coordinateTrans(O,B,v);(_=[]).push(R),_.push(N),_.push(D),_.push(R),T={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0},this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_,T);var k=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),z=SuperMap.Plot.PlottingUtil.circlePoint(k.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,v);this.addScalePoint(z,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMap.Plot.AlgoSymbol25400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.068),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&this.scaleValues.push(.068),0==this.subSymbols.length&&(this.subSymbols.push(new SuperMap.Plot.SubSymbol(100,300)),this.subSymbols.push(new SuperMap.Plot.SubSymbol(100,6200)));var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0],o=l*e,i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(e/2,n);if(a.bfind){var r=a.pts.clone(),s=a.index,p=(l=this.scaleValues[0])*e,u=[];u.push(r);for(var c=s;c>=0;c--)u.push(n[c]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,u)).bfind){var P=a.index,S=a.pts.clone(),h=[];h.push(S);for(var y=P+1;y<u.length;y++)h.push(u[y].clone());var f={surroundLineFlag:!1,fillLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,f);var g=[];g.push(r);for(var M=s+1;M<n.length;M++)g.push(n[M]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,g)).bfind){var b=a.index,m=a.pts.clone();(h=[]).push(m);for(var d=b+1;d<g.length;d++)h.push(g[d].clone());this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1});var v=SuperMap.Plot.PlottingUtil.radian(S,m)*SuperMap.Plot.PlottingUtil.RTOD,O=new SuperMap.Geometry.Point((S.x+m.x)/2,(S.y+m.y)/2);if(this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],O,p,v+90),e=SuperMap.Plot.PlottingUtil.polylineDistance(i),(a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(e/2,i)).bfind){var U=a.index,L=a.pts.clone(),w=[];w.push(L);for(var V=U;V>=0;V--)w.push(i[V]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,w)).bfind){var _=a.index,T=a.pts.clone(),A=[];A.push(T);for(var E=_+1;E<w.length;E++)A.push(w[E]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A);var x=[];x.push(L);for(var Y=U+1;Y<i.length;Y++)x.push(i[Y]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,x)).bfind){var j=a.index,C=a.pts.clone();(A=[]).push(C);for(var I=j+1;I<x.length;I++)A.push(x[I]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,f);var G=SuperMap.Plot.PlottingUtil.radian(T,C)*SuperMap.Plot.PlottingUtil.RTOD,B=new SuperMap.Geometry.Point((T.x+C.x)/2,(T.y+C.y)/2);this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],B,p,G);var R=SuperMap.Plot.PlottingUtil.linePnt(u[u.length-1],w[w.length-1],3*o),N=SuperMap.Plot.PlottingUtil.linePnt(w[w.length-1],u[u.length-1],3*o);(A=[]).push(R),A.push(N),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,f);var D=SuperMap.Plot.PlottingUtil.linePnt(g[g.length-1],x[x.length-1],3*o),k=SuperMap.Plot.PlottingUtil.linePnt(x[x.length-1],g[g.length-1],3*o);(A=[]).push(D),A.push(k),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,f),this.scalePoints=[],this.addScalePoint(R.clone()),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o/2;i>=.4&&(i=.4),this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol25301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.068),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0],o=l*e,i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(e/2,n);if(a.bfind){var r=a.pts.clone(),s=a.index,p=(l=this.scaleValues[0])*e,u=[];u.push(r);for(var c=s;c>=0;c--)u.push(n[c]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,u)).bfind){var P=a.index,S=a.pts.clone(),h=[];h.push(S);for(var y=P+1;y<u.length;y++)h.push(u[y].clone());var f={surroundLineFlag:!1,fillLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,f);var g=[];g.push(r);for(var M=s+1;M<n.length;M++)g.push(n[M]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,g)).bfind){var b=a.index,m=a.pts.clone();(h=[]).push(m);for(var d=b+1;d<g.length;d++)h.push(g[d].clone());this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1});var v=SuperMap.Plot.PlottingUtil.radian(S,m)*SuperMap.Plot.PlottingUtil.RTOD,O=new SuperMap.Geometry.Point((S.x+m.x)/2,(S.y+m.y)/2);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],O,p,v);var U=u[u.length-1].clone(),L=SuperMap.Plot.PlottingUtil.circlePoint(U,.3*o,.3*o,v+30),w=SuperMap.Plot.PlottingUtil.circlePoint(U,.3*o,.3*o,v+180),V=SuperMap.Plot.PlottingUtil.circlePoint(U,.3*o,.3*o,v+330);(h=[]).push(L),h.push(w),h.push(V);var _={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};if(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,_,!0),e=SuperMap.Plot.PlottingUtil.polylineDistance(i),(a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(e/2,i)).bfind){var T=a.index,A=a.pts.clone(),E=[];E.push(A);for(var x=T;x>=0;x--)E.push(i[x]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,E)).bfind){var Y=a.index,j=a.pts.clone(),C=[];C.push(j);for(var I=Y+1;I<E.length;I++)C.push(E[I]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C);var G=[];G.push(A);for(var B=T+1;B<i.length;B++)G.push(i[B]);if((a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,G)).bfind){var R=a.index,N=a.pts.clone();(C=[]).push(N);for(var D=R+1;D<G.length;D++)C.push(G[D]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C,f);var k=SuperMap.Plot.PlottingUtil.radian(j,N)*SuperMap.Plot.PlottingUtil.RTOD,z=new SuperMap.Geometry.Point((j.x+N.x)/2,(j.y+N.y)/2);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[1],z,p,k+90);var F=E[E.length-1].clone(),K=SuperMap.Plot.PlottingUtil.circlePoint(F,.3*o,.3*o,v+30),W=SuperMap.Plot.PlottingUtil.circlePoint(F,.3*o,.3*o,v+180),q=SuperMap.Plot.PlottingUtil.circlePoint(F,.3*o,.3*o,v+330);(h=[]).push(K),h.push(W),h.push(q),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,_,!0);var J=SuperMap.Plot.PlottingUtil.linePnt(W,w,3*o),H=SuperMap.Plot.PlottingUtil.linePnt(w,W,3*o);(C=[]).push(J),C.push(H),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C,f);var Q=SuperMap.Plot.PlottingUtil.linePnt(g[g.length-1],G[G.length-1],3*o),X=SuperMap.Plot.PlottingUtil.linePnt(G[G.length-1],g[g.length-1],3*o);(C=[]).push(Q),C.push(X),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C,f),this.scalePoints=[],this.addScalePoint(J.clone()),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o/2;i>=.45&&(i=.45),this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol25300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.025),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var l,o=e*this.scaleValues[0];l=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0);var i;i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1),this.addScalePoint(i[0]);var n=i[i.length-1],a=l[l.length-1],r=SuperMap.Plot.PlottingUtil.distance(n,a),s=.3*r,p=l[l.length-2],u=l[l.length-1],c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,p,u).pntLeft;p=i[i.length-2],u=i[i.length-1];var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,p,u).pntRight,S=r;p=i[i.length-1],u=t[t.length-1];var h=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(S,p,u).pntRight,y=[];y.push(c),y.push(h),y.push(P);var f=[];f=(f=f.concat(l)).concat(y);for(var g=i.length-1;g>=0;--g)f.push(i[g]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;if(i>.5)return;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol25202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=l*this.scaleValues[0],i=e[e.length-1];if(e.length>2){for(var n=-1,a=e.length-2;a>=0;a--)if(o<SuperMap.Plot.PlottingUtil.distance(i,e[a])){n=a;break}e.splice(n+1,e.length-n),e.push(i)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var r=e[e.length-2],s=e[e.length-1],p=o,u=180*SuperMap.Plot.PlottingUtil.radian(r,s)/Math.PI,c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+157.5),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+202.5),S=[];S.push(c),S.push(i),S.push(P);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var h=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[l.length-1])/o;if(i>.2)return;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol25201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=Math.max(this.subSymbols[0].symbolData.symbolSize.x,this.subSymbols[0].symbolData.symbolSize.y);var o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t),r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMap.Plot.PlottingUtil.radian(r.pts,a.pts)*SuperMap.Plot.PlottingUtil.RTOD+270,p=100*SuperMap.Plot.PlottingUtil.distance(a.pts,r.pts)/l,u=new SuperMap.Geometry.Point((r.pts.x+a.pts.x)/2,(a.pts.y+r.pts.y)/2);if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],u,p,s),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone()),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMap.Plot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i),a=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(3===t&&null==n.pt&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var r=SuperMap.Plot.PlottingUtil.clonePoints(i);r.splice(0,n.index+1),r.unshift(n.pt);var s=SuperMap.Plot.PlottingUtil.polylineDistance(r);a<s&&(s=a),this.scaleValues[t+1]=(a-s)/a,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMap.Plot.AlgoSymbol25200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.105263),l.scaleValues.push(.105263),l.scaleValues.push(.181818),l.scaleValues.push(.285714),l.scaleValues.push(.285714)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol25000),o(e,[{key:"calculateParts",value:function(){this.init();var t=this.GetGoPts();if(0!=t.length){0==this.scaleValues.length&&(this.scaleValues.push(.105263),this.scaleValues.push(.105263),this.scaleValues.push(.181818),this.scaleValues.push(.285714),this.scaleValues.push(.285714));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),a=new SuperMap.Geometry.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*r),u=new SuperMap.Geometry.Point(o*(1-s),o*r),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l),g=[];g.push(n),g.push(p),g.push(S),g.push(y),g.push(h),g.push(u),g.push(a);for(var M,b=[],m=0;m<g.length;m++)M=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[m],f*SuperMap.Plot.PlottingUtil.RTOD),b.push(M);for(var d=[],v=b.length-1;v>=0;--v)d.push(b[v]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b),this.scalePoints=[];var O=b[0].clone();O.isScalePoint=!0,O.tag=0,this.scalePoints.push(O);var U=b[1].clone();U.isScalePoint=!0,U.tag=1,this.scalePoints.push(U);var L=b[2].clone();L.isScalePoint=!0,L.tag=2,this.scalePoints.push(L);var w=.08125*o,V=new SuperMap.Geometry.Point(y.x-w,0),_=new SuperMap.Geometry.Point(V.x-w/2,0),T=new SuperMap.Geometry.Point(V.x+w/2,0),A=[];M=SuperMap.Plot.PlottingUtil.coordinateTrans(e,_,f*SuperMap.Plot.PlottingUtil.RTOD),A.push(M.clone()),M=SuperMap.Plot.PlottingUtil.coordinateTrans(e,T,f*SuperMap.Plot.PlottingUtil.RTOD),A.push(M.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A);var E=new SuperMap.Geometry.Point(V.x,V.y-w/2),x=new SuperMap.Geometry.Point(V.x,V.y+w/2),Y=[];M=SuperMap.Plot.PlottingUtil.coordinateTrans(e,x,f*SuperMap.Plot.PlottingUtil.RTOD),Y.push(M.clone()),M=SuperMap.Plot.PlottingUtil.coordinateTrans(e,E,f*SuperMap.Plot.PlottingUtil.RTOD),Y.push(M.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,Y),this.finish()}}},{key:"GetGoPts",value:function(){var t=[];return this.controlPoints.length<this.minEditPts?t:(t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),1==(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length&&(t=[]),t)}}]),e}();SuperMap.Plot.AlgoSymbol25101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.285714),l.scaleValues.push(.5),l.scaleValues.push(.333333),l.scaleValues.push(.333333)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol25000),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.285714),this.scaleValues.push(.285714),this.scaleValues.push(.5),this.scaleValues.push(.333333),this.scaleValues.push(.333333));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),a=new SuperMap.Geometry.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*r),u=new SuperMap.Geometry.Point(o*(1-s),o*r),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l),g=[];g.push(n),g.push(p),g.push(S),g.push(y),g.push(h),g.push(u),g.push(a);for(var M,b=[],m=0;m<g.length;m++)M=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[m],f*SuperMap.Plot.PlottingUtil.RTOD),b.push(M);for(var d=[],v=b.length-1;v>=0;--v)d.push(b[v]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b),this.scalePoints=[];var O=b[0].clone();O.isScalePoint=!0,O.tag=0,this.scalePoints.push(O);var U=b[1].clone();U.isScalePoint=!0,U.tag=1,this.scalePoints.push(U);var L=b[2].clone();L.isScalePoint=!0,L.tag=2,this.scalePoints.push(L);var w=.04*o,V=.0475*o,_=new SuperMap.Geometry.Point(y.x-w,0),T=new SuperMap.Geometry.Point(S.x,S.y+V),A=SuperMap.Plot.PlottingUtil.intersectLines(p,S,_,T),E=A.intersectPoint;if(0!=A.isIntersectLines){var x=new SuperMap.Geometry.Point(h.x,h.y-V),Y=(A=SuperMap.Plot.PlottingUtil.intersectLines(h,u,_,x)).intersectPoint;if(0!=A.isIntersectLines){var j=[];j.push(E),j.push(_),j.push(Y);for(var C=[],I=0;I<j.length;I++)M=SuperMap.Plot.PlottingUtil.coordinateTrans(e,j[I],f*SuperMap.Plot.PlottingUtil.RTOD),C.push(M);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C),this.finish()}}}}}]),e}();SuperMap.Plot.AlgoSymbol25100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.222222),l.scaleValues.push(.5),l.scaleValues.push(.5),l.scaleValues.push(.5)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.222222),this.scaleValues.push(.5),this.scaleValues.push(.5),this.scaleValues.push(.5));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),a=new SuperMap.Geometry.Point(0,o*i),r=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*r),u=new SuperMap.Geometry.Point(o*(1-s),o*r),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l),g=[];g.push(n),g.push(p),g.push(S),g.push(y),g.push(h),g.push(u),g.push(a);for(var M=[],b=0;b<g.length;b++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[b],f*SuperMap.Plot.PlottingUtil.RTOD);M.push(m)}for(var d=[],v=M.length-1;v>=0;--v)d.push(M[v]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d),this.scalePoints=[];var O=M[0].clone();O.isScalePoint=!0,O.tag=0,this.scalePoints.push(O);var U=M[1].clone();U.isScalePoint=!0,U.tag=1,this.scalePoints.push(U);var L=M[2].clone();L.isScalePoint=!0,L.tag=2,this.scalePoints.push(L),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),a=l[1].clone(),r=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var p=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMap.Plot.PlottingUtil.projectPoint(r,n,a);var c=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[2]=c;var P=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[4]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol25000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol24700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.025),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e;0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(.025),this.scaleValues.push(0)),e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=new SuperMap.Geometry.Point(0,0),o=this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.polylineDistance(e),n=o*i;if(!this.isEdit){var a=this.getDefaultSubSymbolSize()/i;(a>.3||a<=0)&&(a=.3),this.scaleValues[1]=a}var r=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.polylineDistance(t),s=0,p=.3*n;this.ComputeDashLine(3*i/19,i/19,e);var u=e[1].clone(),c=e[0].clone(),P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,u,c),S=P.pntRight,h=P.pntLeft,y=[];y.push(h.clone()),y.push(S.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);for(var f=3*p,g=e[0].clone(),M=0;M<=i;M+=f){s=M+2*p;var b=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,e);if(b.bfind){if(l=b.pts,b.index>=e.length)break;var m,d,v,O,U,L,w,V=[];if(V.push(g.clone()),V.push(l.clone()),0==M){var _=l.clone();_.isScalePoint=!0,_.tag=0,this.scalePoints.push(_);var T=S.clone();T.isScalePoint=!0,T.tag=1,this.scalePoints.push(T)}if(0==this.scaleValues[2]){m=new SuperMap.Geometry.Point((g.x+l.x)/2,(g.y+l.y)/2),d=g.clone(),v=m.clone(),c=l.clone();var A=(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,d,v)).pntLeft;O=SuperMap.Plot.PlottingUtil.linePnt(m,d,.3*r),U=SuperMap.Plot.PlottingUtil.linePnt(m,c,.3*r),0==M&&((L=A.clone()).isScalePoint=!0,L.tag=2,this.scalePoints.push(L)),(w=[]).push(A.clone()),w.push(O.clone()),w.push(U.clone()),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,w)}else{m=new SuperMap.Geometry.Point((g.x+l.x)/2,(g.y+l.y)/2),d=g.clone(),v=m.clone(),c=l.clone();var E=(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,d,v)).pntRight;O=SuperMap.Plot.PlottingUtil.linePnt(m,d,.3*p),U=SuperMap.Plot.PlottingUtil.linePnt(m,c,.3*p),0==M&&((L=E.clone()).isScalePoint=!0,L.tag=2,this.scalePoints.push(L)),(w=[]).push(E.clone()),w.push(O.clone()),w.push(U.clone()),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,w)}if(s=M+3*p,(b=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,e)).bfind){if(l=b.pts,!(b.index<e.length))break;g=l}}}u=e[e.length-2].clone(),c=e[e.length-1].clone(),P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,u,c),(y=[]).push(P.pntLeft.clone()),y.push(P.pntRight.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t&&1!=t&&2!=t)return;var l,o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=e.clone(),r=l[0].clone();if(0==t)i=SuperMap.Plot.PlottingUtil.distance(a,r)/.6/n,this.scaleValues[0]=i;else if(1==t)i=SuperMap.Plot.PlottingUtil.distance(a,r)/n,this.scaleValues[1]=i;else if(2==t){var s=this.scaleValues[0]*n,p=.01*n,u=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,l);if(!u.bfind)return;var c=u.index,P=u.pts.clone();if(!(u.index<l.length))return;var S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,l[c],P).pntLeft.clone(),h=SuperMap.Plot.PlottingUtil.projectPoint(e,S,P);(S.x-P.x)*(h.x-P.x)+(S.y-P.y)*(h.y-P.y)>=0?this.scaleValues[2]=0:this.scaleValues[2]=1}}}},{key:"ComputeDashLine",value:function(t,e,l){for(var o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=l[0].clone(),r=1,s=0,p=!0,u=!0;s<n;){var c;(i=[]).push(a),s+=t;var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,l);if(c=P.index,o=P.pts,!(p=P.bfind))break;if(r<c)for(var S=r;S<c;S++)i.push(l[S]);i.push(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),s+=e;var h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,l);if(c=h.index,a=h.pts,r=c+1,!(u=h.bfind))break}if(!p){(i=[]).push(a);for(var y=r;y<l.length;y++)i.push(l[y]);2===i.length&&0===SuperMap.Plot.PlottingUtil.distance(i[0],i[1])||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}if(!u){var f=l[l.length-1],g=SuperMap.Plot.PlottingUtil.distance(o,f);if(g*=.01,!SuperMap.Plot.PlottingUtil.equalFuzzy(g,0)){var M=SuperMap.Plot.PlottingUtil.linePnt(f,o,g);(i=[]).push(M),i.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}}}}]),e}();SuperMap.Plot.AlgoSymbol24700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23902=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.125),l.scaleValues.push(90)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l,o,i,n=[];if(2==t.length){e=t[0],l=t[1];var a=SuperMap.Plot.PlottingUtil.distance(e,l);i=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,o=SuperMap.Plot.PlottingUtil.circlePoint(e,a,a,i+60),n.push(e),n.push(o),n.push(l)}else n=n.concat(t);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n),n.push(n[0]);var r=SuperMap.Plot.PlottingUtil.polylineDistance(n),s=this.scaleValues[0],p=this.scaleValues[1],u=this.scaleValues[2],c=this.scaleValues[4],P=r*s;e=n[0],l=n[1],o=n[2];var S,h=r*p,y=180*SuperMap.Plot.PlottingUtil.InnerAngle(e,l,o)/Math.PI*u,f=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,g=f-y,M=f+y,b=SuperMap.Plot.PlottingUtil.circlePoint(e,h,h,g),m=SuperMap.Plot.PlottingUtil.circlePoint(e,h,h,M);S=SuperMap.Plot.PlottingUtil.ptIsInPolygon(n,b)?b:m;var d=r*this.scaleValues[3];i=c,0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],S,d,i-90);var v=SuperMap.Plot.PlottingUtil.circlePoint(e,P,P,f+180);this.addScalePoint(v),this.addScalePoint(S);var O=SuperMap.Plot.PlottingUtil.circlePoint(S,.5*d,.5*d,i);this.addScalePoint(O),this.createArcPts(n,P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,a,r,s,p,u=[];2==l.length?(o=l[0],i=l[1],r=SuperMap.Plot.PlottingUtil.distance(o,i),a=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,n=SuperMap.Plot.PlottingUtil.circlePoint(o,r,r,a+60),u.push(o),u.push(i),u.push(n)):u=u.concat(l),o=u[0],i=u[1],n=u[2],u.push(u[0]);var c=SuperMap.Plot.PlottingUtil.polylineDistance(u),P=e;if(0===t)r=SuperMap.Plot.PlottingUtil.distance(P,u[0]),this.scaleValues[0]=r/c;else if(1===t){s=SuperMap.Plot.PlottingUtil.distance(P,u[0])/c,this.scaleValues[1]=s,a=180*SuperMap.Plot.PlottingUtil.InnerAngle(o,i,n)/Math.PI,0<=(p=180*SuperMap.Plot.PlottingUtil.InnerAngle(o,i,P)/Math.PI/a)&&1>=p&&(this.scaleValues[2]=p)}else if(2===t){s=this.scaleValues[1],p=this.scaleValues[2];var S,h=c*s,y=180*SuperMap.Plot.PlottingUtil.InnerAngle(o,i,n)/Math.PI*p,f=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,g=f-y,M=f+y,b=SuperMap.Plot.PlottingUtil.circlePoint(o,h,h,g),m=SuperMap.Plot.PlottingUtil.circlePoint(o,h,h,M);S=SuperMap.Plot.PlottingUtil.ptIsInPolygon(u,b)?b:m;var d=2*SuperMap.Plot.PlottingUtil.distance(P,S)/c;this.scaleValues[3]=d;var v=180*SuperMap.Plot.PlottingUtil.radian(S,P)/Math.PI;this.scaleValues[4]=v}}}},{key:"ComputeSubSymbolPt",value:function(t,e,l,o){var i,n,a=l[0],r=l[1],s=l[2],p=SuperMap.Plot.PlottingUtil.plumbLineLen(s,a,r)*t,u=SuperMap.Plot.PlottingUtil.plumbLineLen(r,a,s)*e,c=[];if(SuperMap.Plot.PlottingUtil.pointIsRightToLine(a,r,o)?((i=[]).push(a),i.push(r),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!1)):((i=[]).push(a),i.push(r),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!0)),SuperMap.Plot.PlottingUtil.pointIsRightToLine(a,s,o)?((i=[]).push(a),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!1)):((i=[]).push(a),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!0)),2>c.length||2>n.length)return o;var P=SuperMap.Plot.PlottingUtil.intersectLines(c[0],c[1],n[0],n[1]);return P.isIntersectLines?P.intersectPoint:o}},{key:"createArcPts",value:function(t,e){for(var l=[],o=[],i=0;i<t.length;i++)o.push(e),l.push([{Start:0,End:360}]);for(var n=0;n<t.length;n++)if(0!==l[n].length&&(0!==l[n][0].Start||0!==l[n][0].End))for(var a=n+1;a<t.length;a++)if(0!==l[a].length&&(0!==l[a][0].Start||0!==l[a][0].End)){var r=SuperMap.Plot.PlottingUtil.distance(t[n],t[a]);if(r<o[n]+o[a])if(r>Math.abs(o[n]-o[a]))for(var s=0;s<2;s++){var p,u,c;0==s?(c=n,p=SuperMap.Plot.PlottingUtil.radian(t[n],t[a])*SuperMap.Plot.PlottingUtil.RTOD,u=Math.acos((r*r+o[n]*o[n]-o[a]*o[a])/(2*r*o[n]))*SuperMap.Plot.PlottingUtil.RTOD):(c=a,p=SuperMap.Plot.PlottingUtil.radian(t[a],t[n])*SuperMap.Plot.PlottingUtil.RTOD,u=Math.acos((r*r+o[a]*o[a]-o[n]*o[n])/(2*r*o[a]))*SuperMap.Plot.PlottingUtil.RTOD);var P=p-u,S=p+u,h=P<0&&S>0||P>360||S>360;P=this.adjustAngle(P),S=this.adjustAngle(S);for(var y=l[c].length-1;y>=0;y--)if(h){if(S>l[c][y].End||SuperMap.Plot.PlottingUtil.equalFuzzy(S,l[c][y].End)){l[c].splice(y,1);continue}if(S>l[c][y].Start&&(l[c][y].Start=S),P<l[c][y].Start||SuperMap.Plot.PlottingUtil.equalFuzzy(P,l[c][y].Start)){l[c].splice(y,1);continue}P<l[c][y].End&&(l[c][y].End=P)}else if(P<l[c][y].Start&&S>l[c][y].End)l[c].splice(y,1);else if(P>l[c][y].Start&&S<l[c][y].End)l[c].push({Start:l[c][y].Start,End:P}),l[c].push({Start:S,End:l[c][y].End}),l[c].splice(y,1);else{if(P>l[c][y].End)continue;if(P>l[c][y].Start&&(l[c][y].End=P),S<l[c][y].Start)continue;S<l[c][y].End&&(l[c][y].Start=S)}}else{if(o[n]<o[a]){l[n][0].Start=0,l[n][0].End=0;break}l[a][0].Start=0,l[a][0].End=0}}for(var f=0;f<t.length;f++)if(0!==l[f].length&&(0!==l[f][0].Start||0!==l[f][0].End))for(var g=l[f].length-1;g>=0;g--){for(var M=this.adjustAngle(l[f][g].Start),b=this.adjustAngle(l[f][g].End);b<M;)b+=360;for(var m=[],d=(b-M)/72,v=M;v<b+d/2;v+=d){var O=t[f].x+o[f]*Math.cos(v*SuperMap.Plot.PlottingUtil.DTOR),U=t[f].y+o[f]*Math.sin(v*SuperMap.Plot.PlottingUtil.DTOR);m.push(new SuperMap.Geometry.Point(O,U))}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m)}}},{key:"adjustAngle",value:function(t){for(;t>360;)t-=360;for(;t<0;)t+=360;return t}},{key:"GetCirclePts",value:function(t,e,l,o){var i=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,n=180*SuperMap.Plot.PlottingUtil.radian(t,l)/Math.PI,a=i;n>i&&(a=n);for(var r=[],s=a;s<360+a;s+=4)90==s&&(s=91),r.push(SuperMap.Plot.PlottingUtil.circlePoint(t,o,o,s));return r.push[0],r}},{key:"CreatArc",value:function(t,e,l){for(var o=[],i=[],n=0;n<t.length;n++){var a=t[n];SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,a)||SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,a)?(i.length>1&&o.push(i),i=[]):i.push(a)}i.length>1&&o.push(i);for(var r=0;r<o.length;r++){var s=o[r];this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}}},{key:"GetArcPts3D",value:function(t,e,l){for(var o=[],i=[],n=0;n<t.length;n++){var a=t[n];SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,a)||SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,a)?(i.length>1&&o.push(i),i=[]):i.push(a)}i.length>1&&o.push(i);for(var r=[],s=0;s<o.length;s++)r=r.concat(o[s]);return r}},{key:"sortPts",value:function(t,e){t=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);for(var l=0;l<e.length;l++)for(var o=e[l],i=180*SuperMap.Plot.PlottingUtil.radian(t,o)/Math.PI,n=0;n<e.length;n++){var a=e[n],r=180*SuperMap.Plot.PlottingUtil.radian(t,a)/Math.PI;if(i>r){var s=new SuperMap.Geometry.Point(o.x,o.y);o=new SuperMap.Geometry.Point(a.x,a.y),a=new SuperMap.Geometry.Point(s.x,s.y),i=r,e[l]=o,e[n]=a}}return e}}]),e}();SuperMap.Plot.AlgoSymbol23902=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23901=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.333333),l.scaleValues.push(.333333),l.scaleValues.push(.125),l.scaleValues.push(90)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=[];if(2==t.length){var o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=SuperMap.Plot.PlottingUtil.distance(o,i);e=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI;var a=SuperMap.Plot.PlottingUtil.circlePoint(o,n,n,e+60);l.push(t[0]),l.push(i),l.push(a),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l)}else{this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);for(var r=0;r<t.length;r++)l.push(t[r])}var s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);l.push(l[0]);var p=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(!this.isEdit){var u=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.scaleValues[2]=2*u*this.getSubSymbolScaleValue()/p}var c=this.scaleValues[0],P=this.scaleValues[1],S=this.scaleValues[2],h=this.scaleValues[3],y=this.ComputeSubSymbolPt(c,P,l,s),f=p*S,g=y;e=h-90,0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],g,f,e),this.addScalePoint(g);var M=SuperMap.Plot.PlottingUtil.circlePoint(y,f,f,h);this.addScalePoint(M),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,a=[];if(2==l.length){o=l[0],i=l[1];var r=SuperMap.Plot.PlottingUtil.distance(o,i),s=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI;n=SuperMap.Plot.PlottingUtil.circlePoint(o,r,r,s+60),a.push(o),a.push(i),a.push(n)}else a=a.concat(l);o=a[0],i=a[1],n=a[2];var p=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(a);a.push(a[0]);var u=SuperMap.Plot.PlottingUtil.polylineDistance(a),c=e;if(0==t){var P=SuperMap.Plot.PlottingUtil.plumbLineLen(n,o,i),S=SuperMap.Plot.PlottingUtil.plumbLineLen(i,o,n),h=SuperMap.Plot.PlottingUtil.plumbLineLen(c,o,i)/P,y=SuperMap.Plot.PlottingUtil.plumbLineLen(c,o,n)/S;h>1&&(h=1),y>1&&(y=1),this.scaleValues[0]=h,this.scaleValues[1]=y}else if(1==t){var f=this.scaleValues[0],g=this.scaleValues[1],M=this.ComputeSubSymbolPt(f,g,a,p),b=SuperMap.Plot.PlottingUtil.distance(M,c)/u;this.scaleValues[2]=b;var m=180*SuperMap.Plot.PlottingUtil.radian(M,c)/Math.PI;this.scaleValues[3]=m}}}},{key:"ComputeSubSymbolPt",value:function(t,e,l,o){var i,n,a=l[0],r=l[1],s=l[2],p=SuperMap.Plot.PlottingUtil.plumbLineLen(s,a,r)*t,u=SuperMap.Plot.PlottingUtil.plumbLineLen(r,a,s)*e,c=[];if(SuperMap.Plot.PlottingUtil.pointIsRightToLine(a,r,o)?((i=[]).push(a),i.push(r),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!1)):((i=[]).push(a),i.push(r),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!0)),SuperMap.Plot.PlottingUtil.pointIsRightToLine(a,s,o)?((i=[]).push(a),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!1)):((i=[]).push(a),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!0)),2>c.length||2>n.length)return o;var P=SuperMap.Plot.PlottingUtil.intersectLines(c[0],c[1],n[0],n[1]);return P.isIntersectLines?P.intersectPoint:o}}]),e}();SuperMap.Plot.AlgoSymbol23901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23700=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];3>=t.length?(e=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t),e=SuperMap.Plot.PlottingUtil.clearSamePts(e)):e=t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=i}var n=o*this.scaleValues[0]*.15,a=[];a.push(new SuperMap.Geometry.Point(0,n)),a.push(new SuperMap.Geometry.Point(-n,0)),a.push(new SuperMap.Geometry.Point(0,-n));var r=[];r.push(new SuperMap.Geometry.Point(n,n)),r.push(new SuperMap.Geometry.Point(0,0)),r.push(new SuperMap.Geometry.Point(n,-n));for(var s=new SuperMap.Geometry.Point(-3*n,2*n),p=SuperMap.Plot.PlottingUtil.coordinateTrans(l,s,0),u=[],c=[],P=0;P<3;P++)u.push(new SuperMap.Geometry.Point(a[P].x+p.x,a[P].y+p.y)),c.push(new SuperMap.Geometry.Point(r[P].x+p.x,r[P].y+p.y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);for(var S=new SuperMap.Geometry.Point(3*n,2*n),h=SuperMap.Plot.PlottingUtil.coordinateTrans(l,S,0),y=[],f=[],g=0;g<3;g++)y.push(new SuperMap.Geometry.Point(a[g].x+h.x,a[g].y+h.y)),f.push(new SuperMap.Geometry.Point(r[g].x+h.x,r[g].y+h.y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var M=new SuperMap.Geometry.Point(-4*n,-2*n),b=SuperMap.Plot.PlottingUtil.coordinateTrans(l,M,0);y=[],f=[];for(var m=0;m<3;m++)y.push(new SuperMap.Geometry.Point(a[m].x+b.x,a[m].y+b.y)),f.push(new SuperMap.Geometry.Point(r[m].x+b.x,r[m].y+b.y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var d=new SuperMap.Geometry.Point(0,-2*n),v=SuperMap.Plot.PlottingUtil.coordinateTrans(l,d,0);y=[],f=[];for(var O=0;O<3;O++)y.push(new SuperMap.Geometry.Point(a[O].x+v.x,a[O].y+v.y)),f.push(new SuperMap.Geometry.Point(r[O].x+v.x,r[O].y+v.y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var U=new SuperMap.Geometry.Point(4*n,-2*n),L=SuperMap.Plot.PlottingUtil.coordinateTrans(l,U,0);y=[],f=[];for(var w=0;w<3;w++)y.push(new SuperMap.Geometry.Point(a[w].x+L.x,a[w].y+L.y)),f.push(new SuperMap.Geometry.Point(r[w].x+L.x,r[w].y+L.y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol23700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(1),l.scaleValues.push(-.1),l.scaleValues.push(0),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){4>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var i=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[0]=i/o*.8,this.scaleValues[3]=i/o*.8}var n=this.scaleValues[0],a=this.scaleValues[1],r=this.scaleValues[3],s=this.scaleValues[4],p=this.scaleValues[6],u=this.scaleValues[7],c=this.scaleValues[8],P=this.scaleValues[9],S=new SuperMap.Geometry.Point(l.x+o*p,l.y+o*u),h=new SuperMap.Geometry.Point(l.x+o*c,l.y+o*P),y=[],f=.15*SuperMap.Plot.PlottingUtil.distance(S,h),g=SuperMap.Plot.PlottingUtil.linePnt(S,h,f),M=SuperMap.Plot.PlottingUtil.linePnt(h,S,f);y.push(g),y.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var b=o*n,m=a;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],S,b,m);var d=o*r,v=s;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],h,d,v),this.addScalePoint(S);var O=SuperMap.Plot.PlottingUtil.circlePoint(S,b,b,m);this.addScalePoint(O),this.addScalePoint(h);var U=SuperMap.Plot.PlottingUtil.circlePoint(h,d,d,v);this.addScalePoint(U),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;10>this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(1),this.scaleValues.push(-.1),this.scaleValues.push(0),this.scaleValues.push(.1),this.scaleValues.push(0));var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a,r,s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),p=SuperMap.Plot.PlottingUtil.polylineDistance(o),u=e;if(0==t)i=(u.x-s.x)/p,this.scaleValues[6]=i,n=(u.y-s.y)/p,this.scaleValues[7]=n;else if(1==t){i=this.scaleValues[6],n=this.scaleValues[7];var c=new SuperMap.Geometry.Point(s.x+p*i,s.y+p*n),P=SuperMap.Plot.PlottingUtil.distance(c,u)/p;this.scaleValues[0]=P;var S=180*SuperMap.Plot.PlottingUtil.radian(c,u)/Math.PI;this.scaleValues[1]=S,this.scaleValues[2]=0<=S&&S<90?1:90<=S&&S<180?2:180<=S&&S<270?3:4}else if(2==t)a=(u.x-s.x)/p,this.scaleValues[8]=a,r=(u.y-s.y)/p,this.scaleValues[9]=r;else if(3==t){a=this.scaleValues[8],r=this.scaleValues[9];var h=new SuperMap.Geometry.Point(s.x+p*a,s.y+p*r),y=SuperMap.Plot.PlottingUtil.distance(h,u)/p;this.scaleValues[3]=y;var f=180*SuperMap.Plot.PlottingUtil.radian(h,u)/Math.PI;this.scaleValues[4]=f,this.scaleValues[5]=0<=f&&f<90?1:90<=f&&f<180?2:180<=f&&f<270?3:4}}}}]),e}();SuperMap.Plot.AlgoSymbol23600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],a=this.scaleValues[2],r=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*a,l.y+o*r);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,c=SuperMap.Plot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),r=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-a.x)/r,this.scaleValues[2]=i,n=(e.y-a.y)/r,this.scaleValues[3]=n;else if(1===t){i=this.scaleValues[2],n=this.scaleValues[3];var s=new SuperMap.Geometry.Point(a.x+r*i,a.y+r*n),p=SuperMap.Plot.PlottingUtil.distance(s,e)/r;this.scaleValues[0]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol23500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e),this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var l=this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2],n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),a=SuperMap.Plot.PlottingUtil.polylineDistance(t),r=a*i,s=new SuperMap.Geometry.Point(n.x+a*l,n.y+a*o);if(this.subSymbols.length>0){if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],s,r,0),this.addScalePoint(s);var p=SuperMap.Plot.PlottingUtil.circlePoint(s,r,r,0);this.addScalePoint(p)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),r=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-a.x)/r,this.scaleValues[0]=i,n=(e.y-a.y)/r,this.scaleValues[1]=n;else if(1===t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(a.x+r*i,a.y+r*n),p=SuperMap.Plot.PlottingUtil.distance(s,e)/r;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol23400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol22200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05));var o=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.35*this.getSubSymbolScaleValue());var i=o*this.scaleValues[0],n=[];n.push(new SuperMap.Geometry.Point(l.x,l.y)),n.push(new SuperMap.Geometry.Point(l.x+i,l.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,n);var a=[];a.push(new SuperMap.Geometry.Point(l.x,l.y+.8*i)),a.push(new SuperMap.Geometry.Point(l.x,l.y-.8*i)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);var r=[];r.push(new SuperMap.Geometry.Point(l.x+.8*i,l.y)),r.push(new SuperMap.Geometry.Point(l.x-.8*i,l.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol22200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol22103=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.025)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol22000),e}();SuperMap.Plot.AlgoSymbol22103=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol22000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.03):1===this.scaleValues.length&&(this.scaleValues[1]=.02),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=.6*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,r=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.8*r,a);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p)}var P=e[0],S=e[1],h=e[e.length-2],y=e[e.length-1],f=l*this.scaleValues[1],g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f,S,P),M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f,h,y),b=g.pntLeft,m=M.pntLeft,d=[];d.push(P),d.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=[];v.push(y),v.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v);var O=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),U=SuperMap.Plot.PlottingUtil.circlePoint(O.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,a);this.addScalePoint(U,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMap.Plot.AlgoSymbol22000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05,l.scaleValues[2]=.01,l.scaleValues[3]=.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=.02,this.scaleValues[2]=.01,this.scaleValues[3]=.02):1===this.scaleValues.length&&(this.scaleValues.push(.02),this.scaleValues.push(.01),this.scaleValues.push(.25*this.getSubSymbolScaleValue())),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[3]=.5*o}for(var i=this.getLinePts(e,this.scaleValues[0]),n=[],a=[],r=0;r<=i.startIndex;r++)n.push(e[r]);if(n.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),i.endIndex<=e.length){a.push(i.endPt);for(var s=i.endIndex+1;s<=e.length-1;s++)a.push(e[s]);this.addArrow(a,this.scaleValues[this.scaleValues.length-1])}var p,u,c,P,S,h,y,f,g,M,b,m,d,v=i.startPt.clone(),O=i.endPt.clone(),U=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),L=SuperMap.Plot.PlottingUtil.distance(v,O),w=SuperMap.Plot.PlottingUtil.radian(v,O)*SuperMap.Plot.PlottingUtil.RTOD;p=new SuperMap.Geometry.Point(0,0),u=new SuperMap.Geometry.Point(0,0),c=new SuperMap.Geometry.Point(0,0),P=new SuperMap.Geometry.Point(0,0),S=new SuperMap.Geometry.Point(0,0),h=new SuperMap.Geometry.Point(0,0),y=new SuperMap.Geometry.Point(0,0),f=new SuperMap.Geometry.Point(0,0),g=new SuperMap.Geometry.Point(0,0),M=new SuperMap.Geometry.Point(0,0),b=new SuperMap.Geometry.Point(0,0),m=new SuperMap.Geometry.Point(0,0),d=new SuperMap.Geometry.Point(0,0),v.x>=O.x?(p.x=.25*L,p.y=.25*-L,u.x=.5*-L,u.y=.25*-L,c.x=.5*-L,c.y=.25*L,P.x=.5*L,P.y=.25*L,S.x=.5*L,S.y=0,h.x=.25*-L,h.y=.125*-L,y.x=0,y.y=.125*L,f.x=0,f.y=.125*-L,g.x=.25*L,g.y=.2*L,M.x=.25*-L,M.y=.25*-L,b.x=.375*-L,b.y=.5*-L,m.x=.02*-L,m.y=.25*-L,d.x=.1*L,d.y=.5*-L):(p.x=.25*L,p.y=.25*L,u.x=.5*-L,u.y=.25*L,c.x=.5*-L,c.y=.25*-L,P.x=.5*L,P.y=.25*-L,S.x=.5*L,S.y=0,h.x=.25*L,h.y=.125*-L,y.x=0,y.y=.125*L,f.x=0,f.y=.125*-L,g.x=.25*-L,g.y=.125*L,M.x=.25*-L,M.y=.25*L,b.x=.375*-L,b.y=.5*L,m.x=.02*L,m.y=.25*L,d.x=.15*L,d.y=.5*L);var V=[],_=[],T=[],A=[],E=[],x=SuperMap.Plot.PlottingUtil.coordinateTrans(U,p,w),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(U,u,w),j=SuperMap.Plot.PlottingUtil.coordinateTrans(U,c,w),C=SuperMap.Plot.PlottingUtil.coordinateTrans(U,P,w),I=SuperMap.Plot.PlottingUtil.coordinateTrans(U,S,w),G=SuperMap.Plot.PlottingUtil.coordinateTrans(U,h,w),B=SuperMap.Plot.PlottingUtil.coordinateTrans(U,y,w),R=SuperMap.Plot.PlottingUtil.coordinateTrans(U,f,w),N=SuperMap.Plot.PlottingUtil.coordinateTrans(U,g,w),D=SuperMap.Plot.PlottingUtil.coordinateTrans(U,M,w),k=SuperMap.Plot.PlottingUtil.coordinateTrans(U,b,w),z=SuperMap.Plot.PlottingUtil.coordinateTrans(U,m,w),F=SuperMap.Plot.PlottingUtil.coordinateTrans(U,d,w);V.push(x),V.push(Y),V.push(j),V.push(C),V.push(I),_.push(G),_.push(B),_.push(R),_.push(N),T.push(D),T.push(k),A.push(z),A.push(F),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,V,null,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_,null,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T,null,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,null,!0);var K=.3*SuperMap.Plot.PlottingUtil.distance(R,N),W=SuperMap.Plot.PlottingUtil.linePnt(N,R,K),q=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3*K,N,W);E.push(q.pntLeft),E.push(N),E.push(q.pntRight);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,E,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var J=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),H=SuperMap.Plot.PlottingUtil.circlePoint(J.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,w+90);this.addScalePoint(H,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMap.Plot.AlgoSymbol21900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.2));var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=.5*e,o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,a=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,n+90),r=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,n+270),s=SuperMap.Plot.PlottingUtil.circlePoint(a,l,l,n),p=SuperMap.Plot.PlottingUtil.circlePoint(r,l,l,n),u=[];u.push(p),u.push(r),u.push(a),u.push(s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var c=SuperMap.Plot.PlottingUtil.circlePoint(i,e,e,n+90),P=SuperMap.Plot.PlottingUtil.circlePoint(i,e,e,n+270),S=SuperMap.Plot.PlottingUtil.circlePoint(c,l,l,n+180),h=SuperMap.Plot.PlottingUtil.circlePoint(P,l,l,n+180);(u=[]).push(S),u.push(c),u.push(P),u.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),this.addScalePoint(a),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol21800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05)),l.subText="",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMap.Plot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){1==this.scaleValues.length&&this.scaleValues.push(this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[0]=.6*this.getSubSymbolScaleValue(),this.scaleValues[1]=this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);for(var l=0,o=0;o<e.length-1;o++)l+=SuperMap.Plot.PlottingUtil.distance(e[o],e[o+1]);var i=.5*l,n=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==n.index){for(var a=n.pt,r=[],s=0,p=0;p<n.index+1;p++)r.push(e[p]),p>0&&(s+=SuperMap.Plot.PlottingUtil.distance(r[p],r[p-1]));var u,c,P=i-s,S=l*this.scaleValues[1],h=[];if(P>=S){u=SuperMap.Plot.PlottingUtil.linePnt(a,e[n.index],S),r.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),c=SuperMap.Plot.PlottingUtil.linePnt(a,e[n.index+1],S),h.push(c);for(var y=e.length,f=n.index+1;f<y;++f)h.push(e[f]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}else{for(var g,M,b=-1,m=r.length-1;m>=0;m--)if(g=new SuperMap.Geometry.Point(r[m].x,r[m].y),M=new SuperMap.Geometry.Point(a.x,a.y),SuperMap.Plot.PlottingUtil.distance(g,M)>S){b=m;break}if(-1==b)return;r.splice(b+1,r.length-1-b),u=SuperMap.Plot.PlottingUtil.linePnt(a,e[b],S),r.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);for(var d=-1,v=n.index;v<e.length;v++)if(g=new SuperMap.Geometry.Point(e[v].x,e[v].y),M=new SuperMap.Geometry.Point(a.x,a.y),SuperMap.Plot.PlottingUtil.distance(g,M)>S){d=v;break}if(-1==d)return;c=SuperMap.Plot.PlottingUtil.linePnt(a,e[d],S),h.push(c);for(var O=d+1;O<e.length;++O)h.push(e[O]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}if(!(r.length<2)){for(var U=0,L=0;L<t.length-1;L++)U+=SuperMap.Plot.PlottingUtil.distance(t[L],t[L+1]);var w=U*this.scaleValues[0],V=new SuperMap.Geometry.Point(r[0].x,r[0].y),_=new SuperMap.Geometry.Point(r[1].x,r[1].y),T=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(w,_,V),A=[];if(A.push(T.pntLeft),A.push(T.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A),!(h.length<2)){var E=new SuperMap.Geometry.Point(h[h.length-1].x,h[h.length-1].y),x=new SuperMap.Geometry.Point(h[h.length-2].x,h[h.length-2].y),Y=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(w,x,E);(A=[]).push(Y.pntLeft),A.push(Y.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A);var j=u,C=c,I=180*SuperMap.Plot.PlottingUtil.radian(j,C)/Math.PI,G=SuperMap.Plot.PlottingUtil.distance(j,C),B=new SuperMap.Geometry.Point((u.x+c.x)/2,(u.y+c.y)/2),R=this.subText;this.addText(R,B,G,I),this.addScalePoint(T.pntLeft),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol21600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21504=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21501),o(e,[{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-90)}}]),e}();SuperMap.Plot.AlgoSymbol21504=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21503=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21501),o(e,[{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-90)}}]),e}();SuperMap.Plot.AlgoSymbol21503=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol21502=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21501),e}();SuperMap.Plot.AlgoSymbol21502=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue()),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=.5*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,r=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.addSubSymbols(n,r,a);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p,this.scaleValues[1])}var P=l*this.scaleValues[0]*.5,S=SuperMap.Plot.PlottingUtil.circlePoint(n,P,P,a+90);this.addScalePoint(S,0),this.finish()}}},{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-180)}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),a=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=a<=.5?a:.5}}}]),e}();SuperMap.Plot.AlgoSymbol21501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues.push(.02),this.scaleValues.push(.1),this.scaleValues.push(0)):3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);if(e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addArrow(e,this.scaleValues[this.scaleValues.length-1]),0!==SuperMap.Plot.PlottingUtil.polylineDistance(e)){if(!this.isEdit){var l=this.getSubSymbolScaleValue();this.scaleValues[0]=.5*l,this.scaleValues[this.scaleValues.length-1]=.5*this.getSubSymbolScaleValue()}for(var o=this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.polylineDistance(t),n=o*i,a=this.scaleValues[1]*i,r=0,s=.01*i,p=s,u=0;p<=i;p+=a,u++){r=p+s;var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,r);if(-1===c.index)return;var P=[],S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,e[c.index],c.pt);P.push(new SuperMap.Geometry.Point(S.pntLeft.x,S.pntLeft.y)),P.push(new SuperMap.Geometry.Point(S.pntRight.x,S.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),0===u?this.addScalePoint(P[0],0):1===u&&this.addScalePoint(c.pt,1)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=.01*i;if(0===t){var a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,n);if(-1===a.index)return;var r=SuperMap.Plot.PlottingUtil.distance(e,a.pt);this.scaleValues[0]=r/i}else if(1===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,n);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,o);if(-1===p.index)return;for(var u=0,c=s.index+1;c<p.index;c++)u+=SuperMap.Plot.PlottingUtil.distance(o[c],o[c+1]);u+=SuperMap.Plot.PlottingUtil.distance(o[p.index],p.pt),u-=n,this.scaleValues[1]=u/i,this.scaleValues[1]>.93&&(this.scaleValues[1]=.93)}}}}]),e}();SuperMap.Plot.AlgoSymbol21500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21401=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.03),l.scaleValues.push(.4),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues.push(.03),this.scaleValues.push(.4),this.scaleValues.push(0)):3===this.scaleValues.length&&this.scaleValues.push(.02);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=this.scaleValues[1],i=l*(1-o)*.5,n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,e);if(n.bfind){this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(),this.scaleValues[this.scaleValues.length-1]=.5*this.getSubSymbolScaleValue());var a,r=this.scaleValues[0],s=SuperMap.Plot.PlottingUtil.polylineDistance(t)*r,p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[n.index],n.pts),u=this.scaleValues[2];1===u?a=new SuperMap.Geometry.Point(p.pntRight.x,p.pntRight.y):0===u&&(a=new SuperMap.Geometry.Point(p.pntLeft.x,p.pntLeft.y));var c=[];c.push(a),c.push(n.pts);var P;this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c,{lineTypeLimit:!0});var S=l*(.5+.5*o),h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e);if(h.bfind){var y=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[h.index],h.pts);1===u?P=new SuperMap.Geometry.Point(y.pntRight.x,y.pntRight.y):0===u&&(P=new SuperMap.Geometry.Point(y.pntLeft.x,y.pntLeft.y)),this.addArrow(e,this.scaleValues[this.scaleValues.length-1]),this.addScalePoint(P,0);var f=[];f.push(P),f.push(h.pts);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,f,{lineTypeLimit:!0}),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=i*(.5+.5*this.scaleValues[1]),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,o);if(!a.bfind)return;var r,s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,o[a.index],a.pts),p=SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[a.index],o[a.index+1],e);this.scaleValues[2]=p?0:1,r=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y),new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y));var u=SuperMap.Plot.PlottingUtil.distance(r.projectPoint,new SuperMap.Geometry.Point(a.pts.x,a.pts.y));this.scaleValues[0]=u/i}}}]),e}();SuperMap.Plot.AlgoSymbol21401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),!(this.controlPoints<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.02));[].push(e[e.length-1]),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());for(var l=SuperMap.Plot.PlottingUtil.polylineDistance(e)*this.scaleValues[0],o=t[t.length-1],i=SuperMap.Plot.PlottingUtil.distance(o,e[e.length-1]);i<1.5*l;)e.pop(),i=SuperMap.Plot.PlottingUtil.distance(o,e[e.length-1]);e.push(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var n=e[e.length-2],a=180*SuperMap.Plot.PlottingUtil.radian(o,n)/Math.PI,r=SuperMap.Plot.PlottingUtil.circlePoint(o,l,l,a+22.5),s=SuperMap.Plot.PlottingUtil.circlePoint(o,l,l,a-22.5),p=[];p.push(r),p.push(o),p.push(s);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,p,{surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0,fill:!0}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol21400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol20301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length!==this.minEditPts&&(this.scaleValues=[],this.scaleValues.push(.2),this.scaleValues.push(0)),this.components.length=0,this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,this.controlPoints);var e,l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,a=new SuperMap.Geometry.Point((o.x+i.x)/2,(o.y+i.y)/2),r=this.scaleValues[0]*l;e=0==this.scaleValues[1]?SuperMap.Plot.PlottingUtil.circlePoint(a,r,r,n+90):SuperMap.Plot.PlottingUtil.circlePoint(a,r,r,n+270);var s={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[a,e]);var p=.02*SuperMap.Plot.PlottingUtil.distance(t[0],t[t.length-1]),u=new SuperMap.Geometry.Point((o.x+a.x)/2,(o.y+a.y)/2),c=[u,new SuperMap.Geometry.Point(u.x,u.y+p)];this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c,s,!0);var P=new SuperMap.Geometry.Point((i.x+a.x)/2,(i.y+a.y)/2);c=[P,new SuperMap.Geometry.Point(P.x,P.y+p)],this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c,s,!0);var S=new SuperMap.Geometry.Point(e.x,e.y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=new SuperMap.Geometry.Point(l[0].x,l[0].y),i=new SuperMap.Geometry.Point(l[1].x,l[1].y),n=SuperMap.Plot.PlottingUtil.distance(o,i);if(0===n)return;var a=new SuperMap.Geometry.Point((o.x+i.x)/2,(o.y+i.y)/2);if(0===t){var r=SuperMap.Plot.PlottingUtil.distance(e,a)/n;this.scaleValues[0]=r,SuperMap.Plot.PlottingUtil.pointIsRightToLine(o,i,e)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}}]),e}();SuperMap.Plot.AlgoSymbol20301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol20300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){1!==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1)),this.components.length=0,this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,this.controlPoints);var e=this.scaleValues[0],l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=l*e,i=.01*l;o<2*i&&(i=.5*o);for(var n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},a=0,r=o;r<l-i;r+=o){var s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(r,t);if(s.bfind){var p=s.pts,u=[];u.push(p);var c=SuperMap.Plot.PlottingUtil.circlePoint(p,i,i,90);if(u.push(c),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,u,n),0===a){var P=new SuperMap.Geometry.Point(p.x,p.y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}a++}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;for(var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=-1,n=0,a=new SuperMap.Geometry.Point(0,0),r=0;r<l.length-1;r++){var s,p=[];p.push(l[r]),p.push(l[r+1]);var u=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l[r],l[r+1]);if(u.isOnline&&(s=u.projectPoint),!u.isOnline&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(e,l[r],l[r+1])&&(s=e),void 0===s)return;if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(s,p).isOnPolyLine){var c=SuperMap.Plot.PlottingUtil.distance(e,s);-1===i?(i=r,a=s,n=c):n>c&&(i=r,a=s,n=c)}}if(-1===i||i>l.length-1)return;for(var P=0,S=0;S<i;S++){var h=new SuperMap.Geometry.Point(l[S].x,l[S].y),y=new SuperMap.Geometry.Point(l[S+1].x,l[S+1].y);P+=SuperMap.Plot.PlottingUtil.distance(h,y)}var f=new SuperMap.Geometry.Point(l[i].x,l[i].y);if((P+=SuperMap.Plot.PlottingUtil.distance(f,a))<0||P>o)return;var g=P/o;g>.95?g=.95:g<.1&&(g=.1),this.scaleValues[0]=g}}}]),e}();SuperMap.Plot.AlgoSymbol20300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17806=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17804),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var e,l,o,i,n,a=this.scaleValues[0],r=this.scaleValues[1],s=this.scaleValues[2],p=0,u=0;if(t.length==this.minEditPts){this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t),l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y);var c=SuperMap.Plot.PlottingUtil.distance(l,o);p=2*c,e=new SuperMap.Geometry.Point(l.x+p*a,l.y+p*r);var P=2*c*s/.28/2;u=P,i=SuperMap.Plot.PlottingUtil.circlePoint(e,P,P,0),(n=[]).push(e.clone()),n.push(i.clone()),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,n)}else{this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=new SuperMap.Geometry.Point(t[2].x,t[2].y),p=SuperMap.Plot.PlottingUtil.distance(l,o)+SuperMap.Plot.PlottingUtil.distance(l,i),e=new SuperMap.Geometry.Point(l.x+p*a,l.y+p*r);var S=p*s/.21/2,h=p*s/.38/2;u=S;var y=SuperMap.Plot.PlottingUtil.circlePoint(e,S,S,0),f=SuperMap.Plot.PlottingUtil.circlePoint(e,h,h,90);(n=[]).push(e.clone()),n.push(y.clone()),n.push(f.clone()),this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,n)}this.scalePoints=[];var g=new SuperMap.Geometry.Point(e.x+.1*p,e.y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g);var M=SuperMap.Plot.PlottingUtil.circlePoint(e,u,u,90);M.isScalePoint=!0,M.tag=1,this.scalePoints.push(M),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,a=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),r=(a=SuperMap.Plot.PlottingUtil.clearSamePts(a))[0].clone(),s=0;if(0==(s=2==a.length?2*SuperMap.Plot.PlottingUtil.distance(a[0],a[1]):SuperMap.Plot.PlottingUtil.distance(a[0],a[1])+SuperMap.Plot.PlottingUtil.distance(a[0],a[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*s-r.x)/s,this.scaleValues[0]=l,o=(e.y-r.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMap.Geometry.Point(r.x+s*l,r.y+s*o);n=SuperMap.Plot.PlottingUtil.distance(p,e),i=.1,i=2===a.length?.56*n/s:.42*n/s,this.scaleValues[2]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol17806=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17805=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17804),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1)),t.length==this.minEditPts?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=0;if(0!=(l=t.length==this.minEditPts?2*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]):SuperMap.Plot.PlottingUtil.distance(t[0],t[1])+SuperMap.Plot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=3*(l*n),s=new SuperMap.Geometry.Point(-.5*r,.3*r),p=new SuperMap.Geometry.Point(-.5*r,-.3*r),u=new SuperMap.Geometry.Point(.5*r,-.3*r),c=new SuperMap.Geometry.Point(.5*r,.3*r),P=SuperMap.Plot.PlottingUtil.coordinateTrans(a,s,0),S=SuperMap.Plot.PlottingUtil.coordinateTrans(a,p,0),h=SuperMap.Plot.PlottingUtil.coordinateTrans(a,u,0),y=SuperMap.Plot.PlottingUtil.coordinateTrans(a,c,0),f=[];f.push(P.clone()),f.push(S.clone()),f.push(h.clone()),f.push(y.clone()),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f);var g=new SuperMap.Geometry.Point(-.3*r,.3*r),M=new SuperMap.Geometry.Point(-.3*r,.5*r),b=SuperMap.Plot.PlottingUtil.coordinateTrans(a,g,0),m=SuperMap.Plot.PlottingUtil.coordinateTrans(a,M,0);(f=[]).push(b.clone()),f.push(m.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var d=new SuperMap.Geometry.Point(-.3*r,-.3*r),v=new SuperMap.Geometry.Point(-.3*r,-.5*r),O=SuperMap.Plot.PlottingUtil.coordinateTrans(a,d,0),U=SuperMap.Plot.PlottingUtil.coordinateTrans(a,v,0);(f=[]).push(O.clone()),f.push(U.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var L=new SuperMap.Geometry.Point(.3*r,.3*r),w=new SuperMap.Geometry.Point(.3*r,.5*r),V=SuperMap.Plot.PlottingUtil.coordinateTrans(a,L,0),_=SuperMap.Plot.PlottingUtil.coordinateTrans(a,w,0);(f=[]).push(V.clone()),f.push(_.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var T=new SuperMap.Geometry.Point(.3*r,-.3*r),A=new SuperMap.Geometry.Point(.3*r,-.5*r),E=SuperMap.Plot.PlottingUtil.coordinateTrans(a,T,0),x=SuperMap.Plot.PlottingUtil.coordinateTrans(a,A,0);(f=[]).push(E.clone()),f.push(x.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.scalePoints=[];var Y=new SuperMap.Geometry.Point(a.x+.1*r,a.y);Y.isScalePoint=!0,Y.tag=0,this.scalePoints.push(Y);var j=SuperMap.Plot.PlottingUtil.circlePoint(a,.5*r,.5*r,90);j.isScalePoint=!0,j.tag=1,this.scalePoints.push(j),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol17805=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17804=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1)),t.length==this.minEditPts?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=0;if(0!=(l=t.length==this.minEditPts?2*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]):SuperMap.Plot.PlottingUtil.distance(t[0],t[1])+SuperMap.Plot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=l*n,s=3*r,p=new SuperMap.Geometry.Point(-.5*s,.5*r),u=new SuperMap.Geometry.Point(.5*s,.5*r),c=SuperMap.Plot.PlottingUtil.coordinateTrans(a,p,0),P=SuperMap.Plot.PlottingUtil.coordinateTrans(a,u,0),S=[];S.push(c.clone()),S.push(P.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=new SuperMap.Geometry.Point(-.5*s,-.5*r),y=new SuperMap.Geometry.Point(.5*s,-.5*r),f=SuperMap.Plot.PlottingUtil.coordinateTrans(a,h,0),g=SuperMap.Plot.PlottingUtil.coordinateTrans(a,y,0);(S=[]).push(f.clone()),S.push(g.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var M=new SuperMap.Geometry.Point(-.1*s,.5*r),b=new SuperMap.Geometry.Point(-.15*s,-.5*r),m=SuperMap.Plot.PlottingUtil.coordinateTrans(a,M,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(a,b,0);(S=[]).push(m.clone()),S.push(d.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var v=new SuperMap.Geometry.Point(.15*s,.5*r),O=new SuperMap.Geometry.Point(.1*s,-.5*r),U=SuperMap.Plot.PlottingUtil.coordinateTrans(a,v,0),L=SuperMap.Plot.PlottingUtil.coordinateTrans(a,O,0);(S=[]).push(U.clone()),S.push(L.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S),this.scalePoints=[];var w=new SuperMap.Geometry.Point(a.x+.1*s,a.y);w.isScalePoint=!0,w.tag=0,this.scalePoints.push(w);var V=SuperMap.Plot.PlottingUtil.circlePoint(a,.5*s,.5*s,90);V.isScalePoint=!0,V.tag=1,this.scalePoints.push(V),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,a=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),r=(a=SuperMap.Plot.PlottingUtil.clearSamePts(a))[0].clone(),s=0;if(0==(s=2==a.length?2*SuperMap.Plot.PlottingUtil.distance(a[0],a[1]):SuperMap.Plot.PlottingUtil.distance(a[0],a[1])+SuperMap.Plot.PlottingUtil.distance(a[0],a[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*n-r.x)/s,this.scaleValues[0]=l,o=(e.y-r.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMap.Geometry.Point(r.x+s*l,r.y+s*o);i=2*(n=SuperMap.Plot.PlottingUtil.distance(p,e))/s/3,this.scaleValues[2]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol17804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17803=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.2)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.2)),2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=0;if(0!=(l=2==t.length?2*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]):SuperMap.Plot.PlottingUtil.distance(t[0],t[1])+SuperMap.Plot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],a=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),r=l*n,s=new SuperMap.Geometry.Point(-.5*r,.25*r),p=new SuperMap.Geometry.Point(-.4*r,.125*r),u=new SuperMap.Geometry.Point(.4*r,.125*r),c=new SuperMap.Geometry.Point(.5*r,.25*r),P=SuperMap.Plot.PlottingUtil.coordinateTrans(a,s,0),S=SuperMap.Plot.PlottingUtil.coordinateTrans(a,p,0),h=SuperMap.Plot.PlottingUtil.coordinateTrans(a,u,0),y=SuperMap.Plot.PlottingUtil.coordinateTrans(a,c,0),f=[];f.push(P.clone()),f.push(S.clone()),f.push(h.clone()),f.push(y.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var g=new SuperMap.Geometry.Point(-.5*r,-.25*r),M=new SuperMap.Geometry.Point(-.4*r,-.125*r),b=new SuperMap.Geometry.Point(.4*r,-.125*r),m=new SuperMap.Geometry.Point(.5*r,-.25*r),d=SuperMap.Plot.PlottingUtil.coordinateTrans(a,g,0),v=SuperMap.Plot.PlottingUtil.coordinateTrans(a,M,0),O=SuperMap.Plot.PlottingUtil.coordinateTrans(a,b,0),U=SuperMap.Plot.PlottingUtil.coordinateTrans(a,m,0);(f=[]).push(d.clone()),f.push(v.clone()),f.push(O.clone()),f.push(U.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.scalePoints=[];var L=new SuperMap.Geometry.Point(a.x+.1*r,a.y);L.isScalePoint=!0,L.tag=0,this.scalePoints.push(L);var w=SuperMap.Plot.PlottingUtil.circlePoint(a,.25*r,.25*r,90);w.isScalePoint=!0,w.tag=1,this.scalePoints.push(w),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,a=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),r=(a=SuperMap.Plot.PlottingUtil.clearSamePts(a))[0].clone(),s=0;if(0==(s=2==a.length?2*SuperMap.Plot.PlottingUtil.distance(a[0],a[1]):SuperMap.Plot.PlottingUtil.distance(a[0],a[1])+SuperMap.Plot.PlottingUtil.distance(a[0],a[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*n-r.x)/s,this.scaleValues[0]=l,o=(e.y-r.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMap.Geometry.Point(r.x+s*l,r.y+s*o);i=4*(n=SuperMap.Plot.PlottingUtil.distance(p,e))/s,this.scaleValues[2]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol17803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),o=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD);var i=SuperMap.Plot.PlottingUtil.distance(e,l),n=[],a=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),r=SuperMap.Plot.PlottingUtil.circlePoint(e,.08*i,.08*i,o+90),s=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),p=SuperMap.Plot.PlottingUtil.circlePoint(e,.08*i,.08*i,o+270);n.push(a.clone()),n.push(r.clone()),n.push(s.clone()),n.push(p.clone()),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);var u=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),c=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180);(n=[]).push(u.clone()),n.push(c.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var P=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),S=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(n=[]).push(P.clone()),n.push(S.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var h=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),y=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(n=[]).push(h.clone()),n.push(y.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var f=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),g=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(n=[]).push(f.clone()),n.push(g.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol17802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),o=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD);var i=SuperMap.Plot.PlottingUtil.distance(e,l),n=[],a=SuperMap.Plot.PlottingUtil.circlePoint(e,.1*i,.1*i,0);n.push(t[0].clone()),n.push(a.clone()),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,n);var r=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),s=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180);(n=[]).push(r.clone()),n.push(s.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var p=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),u=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(n=[]).push(p.clone()),n.push(u.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var c=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),P=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(n=[]).push(c.clone()),n.push(P.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var S=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),h=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(n=[]).push(S.clone()),n.push(h.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol17801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),o=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD);var i=SuperMap.Plot.PlottingUtil.distance(e,l),n=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),a=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180),r=[];r.push(n.clone()),r.push(a.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);var s=SuperMap.Plot.PlottingUtil.circlePoint(e,.1*i,.1*i,o+180),p=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(r=[]).push(s.clone()),r.push(p.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);var u=SuperMap.Plot.PlottingUtil.circlePoint(e,.1*i,.1*i,o),c=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(r=[]).push(u.clone()),r.push(c.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);var P=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),S=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(r=[]).push(P.clone()),r.push(S.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol17800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol17704=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="急",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17703),e}();SuperMap.Plot.AlgoSymbol17704=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17703=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="加",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.isEdit||(this.scaleValues=[]);var o=[];if(this.scalePoints=[],t.length<3)o.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),o.push(new SuperMap.Geometry.Point(t[1].x,t[1].y));else{var i=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=i.scaleValues;for(var n=0;n<i.scalePoints.length;n++)this.addScalePoint(i.scalePoints[n]);o=i.beizerPoints}if(!(o.length<2)){var a=e/2;if(-1!==SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,a).index){var r,s;if(r=2==t.length?0:t.length-1,this.isEdit)s=this.scaleValues[4*r]*e,isNaN(s)&&(s=Math.abs(this.scaleValues[4*r-1]*e));else{var p=.5*this.getSubSymbolScaleValue();s=p*e,this.scaleValues.push(p)}var u=a-s,c=a+s,P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,u);if(-1!==P.index){var S=P.pt;this.addScalePoint(new SuperMap.Geometry.Point(S.x,S.y));var h=[];if(0==P.index)h.push(o[0]);else for(var y=0;y<P.index;y++)h.push(o[y]);h.push(S);var f=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,c);if(-1!==f.index){var g=f.pt,M=[];M.push(g);for(var b=f.index+1;b<o.length;b++)M.push(o[b]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var m=h[h.length-1],d=M[0],v=180*SuperMap.Plot.PlottingUtil.radian(m,d)/Math.PI,O=SuperMap.Plot.PlottingUtil.distance(m,d),U=new SuperMap.Geometry.Point((m.x+d.x)/2,(m.y+d.y)/2),L=this.subText;this.addText(L,U,O,v),this.finish()}}}}}}},{key:"computeBeizer",value:function(t,e){var l,o,i,n=[];if(this.scalePoints=[],this.isEdit){(i=[]).push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),i.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),l=this.scaleValues[0],o=this.scaleValues[1];var a=t[0].x+e*l,r=t[0].y+e*o;i.push(new SuperMap.Geometry.Point(a,r)),this.addScalePoint(new SuperMap.Geometry.Point(a,r));for(var s=1;s<t.length-1;s++)i.push(new SuperMap.Geometry.Point(t[s].x,t[s].y)),l=this.scaleValues[4*s-2],o=this.scaleValues[4*s-1],a=t[s].x+e*l,r=t[s].y+e*o,i.push(new SuperMap.Geometry.Point(a,r)),this.addScalePoint(new SuperMap.Geometry.Point(a,r)),l=this.scaleValues[4*s],o=this.scaleValues[4*s+1],a=t[s].x+e*l,r=t[s].y+e*o,i.push(new SuperMap.Geometry.Point(a,r)),this.addScalePoint(new SuperMap.Geometry.Point(a,r));var p=t.length-1;i.push(new SuperMap.Geometry.Point(t[p].x,t[p].y)),l=this.scaleValues[4*p-2],o=this.scaleValues[4*p-1],a=t[p].x+e*l,r=t[p].y+e*o,i.push(new SuperMap.Geometry.Point(a,r)),this.addScalePoint(new SuperMap.Geometry.Point(a,r)),i.push(new SuperMap.Geometry.Point(t[p].x,t[p].y)),n=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(i)}else{if(this.scaleValues=[],i=[],(i=SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(t)).length<3)return n;var u=i[2].x-i[0].x,c=i[2].y-i[0].y;l=u/e,o=c/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMap.Geometry.Point(i[2].x,i[2].y));for(var P=1;P<t.length-1;P++){l=(u=i[3*P+1].x-i[3*P].x)/e,o=(c=i[3*P+1].y-i[3*P].y)/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMap.Geometry.Point(i[3*P+1].x,i[3*P+1].y));var S=(i[3*P+2].x-i[3*P].x)/e,h=(i[3*P+2].y-i[3*P].y)/e;this.scaleValues.push(S),this.scaleValues.push(h),this.addScalePoint(new SuperMap.Geometry.Point(i[3*P+2].x,i[3*P+2].y))}l=(u=i[3*(t.length-1)+1].x-i[3*(t.length-1)].x)/e,o=(c=i[3*(t.length-1)+1].y-i[3*(t.length-1)].y)/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMap.Geometry.Point(i[3*(t.length-1)+1].x,i[3*(t.length-1)+1].y)),n=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(i)}return n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),t<0||t>2*l.length-2)return;for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(2*(l.length-1)==t||2==l.length){for(var n=this.computeBeizer(l,o),a=0,r=0;r<n.length-1;r++)a+=SuperMap.Plot.PlottingUtil.distance(n[r],n[r+1]);var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,a/2);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.distance(e,s.pt)/o;p>.45&&(p=.45),2==l.length?this.scaleValues[0]=p:this.scaleValues[2*t]=p}else{var u=-1;u=t%2==0?t/2:(t+1)/2;var c=(e.x-l[u].x)/o,P=(e.y-l[u].y)/o;this.scaleValues[2*t]=c,this.scaleValues[2*t+1]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol17703=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);0===this.scaleValues.length&&this.scaleValues.push(.02),this.isEdit||(this.scaleValues[0]=.2*this.getSubSymbolScaleValue());var l=e*this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.paraLine(o,l,!0),n=SuperMap.Plot.PlottingUtil.paraLine(o,l,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);for(var a={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},r=this.getDashLinePts(n,5*l),s=0;s<r.length;s++){var p=r[s];this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,a)}this.finish()}}},{key:"getDashLinePts",value:function(t,e){var l=[],o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(e>o)return l;for(var i=SuperMap.Plot.PlottingUtil.clonePoints(t),n=2*parseInt(o/(1.5*e)),a=0;a<n;a++){var r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,e);if(-1!==r.index){if(0==a%2){for(var s=[],p=0;p<r.index+1;p++)s.push(i[p].clone());s.push(r.pt),l.push(s)}var u=[];u.push(r.pt);for(var c=r.index+1;c<i.length;c++)u.push(i[c]);i=(i=[]).concat(u)}}return i.length>0&&l.push(i),l}}]),e}();SuperMap.Plot.AlgoSymbol17700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o,i,n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},a=this.scaleValues[0]*e;o=SuperMap.Plot.PlottingUtil.paraLine(t,a,!0),i=SuperMap.Plot.PlottingUtil.paraLine(t,a,!1);var r=new SuperMap.Geometry.Point(o[0].x,o[0].y);r.isScalePoint=!0,r.tag=0,this.scalePoints.push(r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);var s=new SuperMap.Geometry.Point(t[0].x,t[0].y),p=new SuperMap.Geometry.Point(t[1].x,t[1].y),u=180*SuperMap.Plot.PlottingUtil.radian(s,p)/Math.PI,c=new SuperMap.Geometry.Point(.3*e,0),P=SuperMap.Plot.PlottingUtil.coordinateTrans(s,c,u),S=new SuperMap.Geometry.Point(0,.7*a),h=SuperMap.Plot.PlottingUtil.coordinateTrans(P,S,u),y=[];y.push(new SuperMap.Geometry.Point(P.x,P.y)),y.push(new SuperMap.Geometry.Point(h.x,h.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,y,n);var f=new SuperMap.Geometry.Point(.7*a,.7*a),g=new SuperMap.Geometry.Point(-.7*a,.7*a),M=SuperMap.Plot.PlottingUtil.coordinateTrans(P,f,u),b=SuperMap.Plot.PlottingUtil.coordinateTrans(P,g,u);(y=[]).push(new SuperMap.Geometry.Point(M.x,M.y)),y.push(new SuperMap.Geometry.Point(b.x,b.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var m=new SuperMap.Geometry.Point(.7*e,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(s,m,u),v=new SuperMap.Geometry.Point(.7*a,.7*a),O=new SuperMap.Geometry.Point(.7*a,-.7*a),U=new SuperMap.Geometry.Point(-.7*a,-.7*a),L=new SuperMap.Geometry.Point(-.7*a,.7*a),w=SuperMap.Plot.PlottingUtil.coordinateTrans(d,v,u),V=SuperMap.Plot.PlottingUtil.coordinateTrans(d,O,u),_=SuperMap.Plot.PlottingUtil.coordinateTrans(d,U,u),T=SuperMap.Plot.PlottingUtil.coordinateTrans(d,L,u);(y=[]).push(new SuperMap.Geometry.Point(w.x,w.y)),y.push(new SuperMap.Geometry.Point(V.x,V.y)),y.push(new SuperMap.Geometry.Point(_.x,_.y)),y.push(new SuperMap.Geometry.Point(T.x,T.y)),y.push(new SuperMap.Geometry.Point(w.x,w.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var A=new SuperMap.Geometry.Point(.3*a,.3*a),E=new SuperMap.Geometry.Point(.3*a,-.3*a),x=new SuperMap.Geometry.Point(-.3*a,-.3*a),Y=new SuperMap.Geometry.Point(-.3*a,.3*a),j=SuperMap.Plot.PlottingUtil.coordinateTrans(d,A,u),C=SuperMap.Plot.PlottingUtil.coordinateTrans(d,E,u),I=SuperMap.Plot.PlottingUtil.coordinateTrans(d,x,u),G=SuperMap.Plot.PlottingUtil.coordinateTrans(d,Y,u);(y=[]).push(new SuperMap.Geometry.Point(j.x,j.y)),y.push(new SuperMap.Geometry.Point(C.x,C.y)),y.push(new SuperMap.Geometry.Point(I.x,I.y)),y.push(new SuperMap.Geometry.Point(G.x,G.y)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,n),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=l[0],a=l[1],r=SuperMap.Plot.PlottingUtil.projectPoint(e,n,a),s=SuperMap.Plot.PlottingUtil.distance(e,r);this.scaleValues[0]=s/o}}}}]),e}();SuperMap.Plot.AlgoSymbol17600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17501=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,a=0;a<e.length;a++)l>e[a].x&&(l=e[a].x),o<e[a].x&&(o=e[a].x),i>e[a].y&&(i=e[a].y),n<e[a].y&&(n=e[a].y);var r=new SuperMap.Geometry.Point((o+l)/2,(n+i)/2),s=.33*(o-l),p=.1*(n-i),u=SuperMap.Plot.PlottingUtil.circlePoint(r,s,s,0),c=SuperMap.Plot.PlottingUtil.circlePoint(r,s,s,180),P=[];P.push(new SuperMap.Geometry.Point(u.x,u.y)),P.push(new SuperMap.Geometry.Point(c.x,c.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S=new SuperMap.Geometry.Point(r.x-3*s/7,r.y+p),h=SuperMap.Plot.PlottingUtil.circlePoint(S,p,p,60),y=SuperMap.Plot.PlottingUtil.circlePoint(S,p,p,120);(P=[]).push(new SuperMap.Geometry.Point(h.x,h.y)),P.push(new SuperMap.Geometry.Point(S.x,S.y)),P.push(new SuperMap.Geometry.Point(y.x,y.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var f=new SuperMap.Geometry.Point(r.x+3*s/7,r.y+p),g=SuperMap.Plot.PlottingUtil.circlePoint(f,p,p,60),M=SuperMap.Plot.PlottingUtil.circlePoint(f,p,p,120);(P=[]).push(new SuperMap.Geometry.Point(g.x,g.y)),P.push(new SuperMap.Geometry.Point(f.x,f.y)),P.push(new SuperMap.Geometry.Point(M.x,M.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol17501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17500=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,a=0;a<e.length;a++)l>e[a].x&&(l=e[a].x),o<e[a].x&&(o=e[a].x),i>e[a].y&&(i=e[a].y),n<e[a].y&&(n=e[a].y);var r={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},s=new SuperMap.Geometry.Point((o+l)/2,(n+i)/2),p=o-l,u=n-i,c=.1*p,P=.1*u,S=new SuperMap.Geometry.Point(s.x,s.y+P),h=new SuperMap.Geometry.Point(s.x-c,s.y-P),y=new SuperMap.Geometry.Point(s.x+c,s.y-P);c=.03*p,P=.03*u;var f=new SuperMap.Geometry.Point(S.x,S.y+P),g=new SuperMap.Geometry.Point(S.x-c,S.y-P),M=new SuperMap.Geometry.Point(S.x+c,S.y-P),b=[];b.push(new SuperMap.Geometry.Point(f.x,f.y)),b.push(new SuperMap.Geometry.Point(g.x,g.y)),b.push(new SuperMap.Geometry.Point(M.x,M.y)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,r);var m=new SuperMap.Geometry.Point(h.x,h.y+P),d=new SuperMap.Geometry.Point(h.x-c,h.y-P),v=new SuperMap.Geometry.Point(h.x+c,h.y-P),O=[];O.push(new SuperMap.Geometry.Point(m.x,m.y)),O.push(new SuperMap.Geometry.Point(d.x,d.y)),O.push(new SuperMap.Geometry.Point(v.x,v.y)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,O,r);var U=new SuperMap.Geometry.Point(y.x,y.y+P),L=new SuperMap.Geometry.Point(y.x-c,y.y-P),w=new SuperMap.Geometry.Point(y.x+c,y.y-P),V=[];V.push(new SuperMap.Geometry.Point(U.x,U.y)),V.push(new SuperMap.Geometry.Point(L.x,L.y)),V.push(new SuperMap.Geometry.Point(w.x,w.y)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,V,r),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol17500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17401=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,a=[],r=0;r<e.length;r++)l>e[r].x&&(l=e[r].x),o<e[r].x&&(o=e[r].x),i>e[r].y&&(i=e[r].y),n<e[r].y&&(n=e[r].y),a.push(e[r]);for(var s=(o-l)/5,p=.15*s,u=[],c=0;c<360;c+=18){var P=SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(0,0),p,p,c);u.push(P)}for(var S=0,h=l;h<o;h+=s)for(var y=i;y<n;y+=s){var f=new SuperMap.Geometry.Point(h,y);if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(a,f))if(0===S){S++;for(var g=[],M=0;M<u.length;M++){var b=new SuperMap.Geometry.Point(f.x+u[M].x,f.y+u[M].y);g.push(b)}g.push(g[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{fillColorLimit:!0,fillColor:"#ffff00",surroundLineFlag:!1,fillLimit:!0,fillOpacity:1,lineTypeLimit:!0});var m=[];m.push(g[10]),m.push(new SuperMap.Geometry.Point(g[10].x-.5*p,g[10].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m);var d=[];d.push(g[0]),d.push(new SuperMap.Geometry.Point(g[0].x+.5*p,g[10].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d)}else 1===S?(S++,null!=this.subSymbols[0]&&this.computeSubSymbol(this.subSymbols[0],f,2*p,0)):(S=0,null!=this.subSymbols[1]&&this.computeSubSymbol(this.subSymbols[1],f,3*p,0))}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol17401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17400=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=e[0].x,i=e[0].x,n=e[0].y,a=e[0].y,r=[],s=0;s<e.length;s++)o>e[s].x&&(o=e[s].x),i<e[s].x&&(i=e[s].x),n>e[s].y&&(n=e[s].y),a<e[s].y&&(a=e[s].y),r.push(e[s]);for(var p=(i-o)/5,u=.2*p,c=[],P=0;P<360;P+=18){var S=SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(0,0),u,u,P);c.push(S)}for(var h=0,y=o;y<i;y+=p)for(var f=n;f<a;f+=p){var g,M=new SuperMap.Geometry.Point(y,f);if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(r,M))0===h?(h=0,this.subSymbols.length>0&&(g=.015*l,this.computeSubSymbol(this.subSymbols[0],M,g,0)),h++):(h=0,this.subSymbols.length>0&&(g=.022*l,this.computeSubSymbol(this.subSymbols[1],M,g,0)))}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol17400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o,i,n=this.scaleValues[0]*e,a=t[0],r=t[1],s=180*SuperMap.Plot.PlottingUtil.radian(a,r)/Math.PI;o=SuperMap.Plot.PlottingUtil.paraLine(t,n,!0),i=SuperMap.Plot.PlottingUtil.paraLine(t,n,!1);var p=.15*e,u=SuperMap.Plot.PlottingUtil.circlePoint(o[0],p,p,s+165),c=SuperMap.Plot.PlottingUtil.circlePoint(i[0],p,p,s-165),P=SuperMap.Plot.PlottingUtil.circlePoint(o[o.length-1],p,p,s+15),S=SuperMap.Plot.PlottingUtil.circlePoint(i[i.length-1],p,p,s-15),h=SuperMap.Plot.PlottingUtil.linePnt(o[0],o[o.length-1],3*e/11),y=SuperMap.Plot.PlottingUtil.linePnt(o[0],o[o.length-1],4*e/11),f=SuperMap.Plot.PlottingUtil.linePnt(o[0],o[o.length-1],7*e/11),g=SuperMap.Plot.PlottingUtil.linePnt(o[0],o[o.length-1],8*e/11),M=[];M.push(u),M.push(o[0]),M.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),(M=[]).push(y),M.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),(M=[]).push(g),M.push(o[o.length-1]),M.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var b=SuperMap.Plot.PlottingUtil.linePnt(i[0],i[i.length-1],3*e/11),m=SuperMap.Plot.PlottingUtil.linePnt(i[0],i[i.length-1],4*e/11),d=SuperMap.Plot.PlottingUtil.linePnt(i[0],i[i.length-1],7*e/11),v=SuperMap.Plot.PlottingUtil.linePnt(i[0],i[i.length-1],8*e/11),O=[];if(O.push(c),O.push(i[0]),O.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),(O=[]).push(m),O.push(d),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),(O=[]).push(v),O.push(i[i.length-1]),O.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),90<s&&s<270){var U=a;a=r,r=U,s=180*SuperMap.Plot.PlottingUtil.radian(a,r)/Math.PI}var L=new SuperMap.Geometry.Point(.25*e,n+.2*e),w=new SuperMap.Geometry.Point(.35*e,n+.2*e+.1*e),V=new SuperMap.Geometry.Point(.35*e,n+.2*e-.1*e),_=SuperMap.Plot.PlottingUtil.coordinateTrans(a,L,s),T=SuperMap.Plot.PlottingUtil.coordinateTrans(a,w,s),A=SuperMap.Plot.PlottingUtil.coordinateTrans(a,V,s),E=[];E.push(new SuperMap.Geometry.Point(T.x,T.y)),E.push(new SuperMap.Geometry.Point(_.x,_.y)),E.push(new SuperMap.Geometry.Point(A.x,A.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,E);var x=new SuperMap.Geometry.Point(.35*e,n+.2*e),Y=new SuperMap.Geometry.Point(.4*e,n+.2*e+.05*e),j=new SuperMap.Geometry.Point(.4*e,n+.2*e-.05*e),C=SuperMap.Plot.PlottingUtil.coordinateTrans(a,x,s),I=SuperMap.Plot.PlottingUtil.coordinateTrans(a,Y,s),G=SuperMap.Plot.PlottingUtil.coordinateTrans(a,j,s);(E=[]).push(new SuperMap.Geometry.Point(I.x,I.y)),E.push(new SuperMap.Geometry.Point(C.x,C.y)),E.push(new SuperMap.Geometry.Point(G.x,G.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,E);var B=new SuperMap.Geometry.Point(.7*e,n+.2*e),R=new SuperMap.Geometry.Point(.8*e,n+.2*e+.1*e),N=new SuperMap.Geometry.Point(.8*e,n+.2*e-.1*e),D=SuperMap.Plot.PlottingUtil.coordinateTrans(a,B,s),k=SuperMap.Plot.PlottingUtil.coordinateTrans(a,R,s),z=SuperMap.Plot.PlottingUtil.coordinateTrans(a,N,s);(E=[]).push(new SuperMap.Geometry.Point(k.x,k.y)),E.push(new SuperMap.Geometry.Point(D.x,D.y)),E.push(new SuperMap.Geometry.Point(z.x,z.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,E);var F=new SuperMap.Geometry.Point(.8*e,n+.2*e),K=new SuperMap.Geometry.Point(.85*e,n+.2*e+.05*e),W=new SuperMap.Geometry.Point(.85*e,n+.2*e-.05*e),q=SuperMap.Plot.PlottingUtil.coordinateTrans(a,F,s),J=SuperMap.Plot.PlottingUtil.coordinateTrans(a,K,s),H=SuperMap.Plot.PlottingUtil.coordinateTrans(a,W,s);(E=[]).push(new SuperMap.Geometry.Point(J.x,J.y)),E.push(new SuperMap.Geometry.Point(q.x,q.y)),E.push(new SuperMap.Geometry.Point(H.x,H.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,E);var Q=new SuperMap.Geometry.Point(o[0].x,o[0].y);Q.isScalePoint=!0,Q.tag=0,this.scalePoints.push(Q),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=l[0],a=l[1],r=SuperMap.Plot.PlottingUtil.projectPoint(e,n,a),s=SuperMap.Plot.PlottingUtil.distance(e,r);this.scaleValues[0]=s/o}}}}]),e}();SuperMap.Plot.AlgoSymbol16900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=this.scaleValues[1]*e,n=new SuperMap.Geometry.Point(t[0].x,t[0].y),a=new SuperMap.Geometry.Point(t[1].x,t[1].y),r=180*SuperMap.Plot.PlottingUtil.radian(n,a)/Math.PI,s=SuperMap.Plot.PlottingUtil.circlePoint(n,o,o,r+90),p=SuperMap.Plot.PlottingUtil.circlePoint(n,i,i,r+90),u=SuperMap.Plot.PlottingUtil.circlePoint(a,o,o,r+90),c=SuperMap.Plot.PlottingUtil.circlePoint(a,i,i,r+90),P=[];P.push(p),P.push(s),P.push(u),P.push(c),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,SuperMap.Plot.PlottingUtil.clonePoints(P)),(P=[]).push(p),P.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,SuperMap.Plot.PlottingUtil.clonePoints(P)),(P=[]).push(c),P.push(t[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,SuperMap.Plot.PlottingUtil.clonePoints(P));var S=new SuperMap.Geometry.Point(s.x,s.y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S);var h=new SuperMap.Geometry.Point(p.x,p.y);h.isScalePoint=!0,h.tag=1,this.scalePoints.push(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(this.isEdit=!0,!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;if(n<this.scaleValues[1])return;this.scaleValues[0]=n}else if(1==t){var a=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;if(this.scaleValues[0]<a)return;this.scaleValues[1]=a}}}}]),e}();SuperMap.Plot.AlgoSymbol16700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){if(this.init(),this.controlPoints.length>=this.minEditPts){var t,e=[];if(2===this.controlPoints.length){for(var l=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]),o=this.scaleValues[0]*l,i=SuperMap.Plot.PlottingUtil.parallel(this.controlPoints,o/2),n=SuperMap.Plot.PlottingUtil.parallel(this.controlPoints,-o/2),a=180*SuperMap.Plot.PlottingUtil.radian(this.controlPoints[0],this.controlPoints[1])/Math.PI,r=[],s=a+90;s<=a+270;s+=10)t=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],o/2,o/2,s),r.push(t);for(var p=[],u=a-90;u<=a+90;u+=10)t=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[1],o/2,o/2,u),p.push(t);e=(e=(e=(e=e.concat(r)).concat(n)).concat(p)).concat(i)}else this.controlPoints.length<=3?e=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,this.controlPoints):this.controlPoints.length>3&&!0===this.polylineConnectLocationPoint?e=this.controlPoints:(this.controlPoints.push(this.controlPoints[0]),e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(this.controlPoints));e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var c=e[0].x,P=e[0].x,S=e[0].y,h=e[0].y;for(s=0;s<e.length;s++)c>e[s].x&&(c=e[s].x),P<e[s].x&&(P=e[s].x),S>e[s].y&&(S=e[s].y),h<e[s].y&&(h=e[s].y);for(var y=new SuperMap.Geometry.Point((P+c)/2,(h+S)/2),f=(P-c)/5,g={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1},M=!0,b=y.x,m=y.x;M;){M=!1;for(var d,v,O,U=[],L=[],w=new SuperMap.Geometry.Point(b,y.y),V=SuperMap.Plot.PlottingUtil.circlePoint(w,10,10,45),_=SuperMap.Plot.PlottingUtil.circlePoint(w,10,10,135),T=0;T<e.length-1;T++)(v=SuperMap.Plot.PlottingUtil.intersectLines(w,V,e[T],e[T+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(v.intersectPoint,e[T],e[T+1])&&U.push(v.intersectPoint),(O=SuperMap.Plot.PlottingUtil.intersectLines(w,_,e[T],e[T+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(O.intersectPoint,e[T],e[T+1])&&L.push(O.intersectPoint);if(1<U.length){U=this.sortPts2D(U);for(var A=0;A<U.length-1;A++)if(t=new SuperMap.Geometry.Point((U[A].x+U[A+1].x)/2,(U[A].y+U[A+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,t)){var E=[];E.push(U[A]),E.push(U[A+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,E,g,!0)}}if(1<L.length){L=this.sortPts2D(L);for(var x=0;x<L.length-1;x++)t=new SuperMap.Geometry.Point((L[x].x+L[x+1].x)/2,(L[x].y+L[x+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,t)&&((d=[]).push(L[x]),d.push(L[x+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d,g,!0))}(U.length>0||L.length>0)&&(M=!0),U=[],L=[];for(var Y=new SuperMap.Geometry.Point(m,y.y),j=SuperMap.Plot.PlottingUtil.circlePoint(Y,5,5,45),C=SuperMap.Plot.PlottingUtil.circlePoint(Y,5,5,135),I=0;I<e.length-1;I++)(v=SuperMap.Plot.PlottingUtil.intersectLines(Y,j,e[I],e[I+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(v.intersectPoint,e[I],e[I+1])&&U.push(v.intersectPoint),(O=SuperMap.Plot.PlottingUtil.intersectLines(Y,C,e[I],e[I+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(O.intersectPoint,e[I],e[I+1])&&L.push(O.intersectPoint);if(1<U.length){U=this.sortPts2D(U);for(var G=0;G<U.length-1;G+=2)t=new SuperMap.Geometry.Point((U[G].x+U[G+1].x)/2,(U[G].y+U[G+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,t)&&((d=[]).push(U[G]),d.push(U[G+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d,g,!0))}if(1<L.length){L=this.sortPts2D(L);for(var B=0;B<L.length-1;B++)t=new SuperMap.Geometry.Point((L[B].x+L[B+1].x)/2,(L[B].y+L[B+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,t)&&((d=[]).push(L[B]),d.push(L[B+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d,g,!0))}(U.length>0||L.length>0)&&(M=!0),b-=f,m+=f}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e,l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=e):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMap.Plot.AlgoSymbol16500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16203=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());for(var o=this.scaleValues[0]*e,i=this.scaleValues[1]*e,n=.01*e,a=SuperMap.Plot.PlottingUtil.polylineDistance(l),r=0,s={surroundLineFlag:!1,fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},p=n,u=0;p<=a;p+=i,u++){r=p+n;var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,r);if(-1===c.index)return;for(var P=SuperMap.Plot.PlottingUtil.radian(c.pt,l[c.index+1])*SuperMap.Plot.PlottingUtil.RTOD,S=this.getSubSymbolPts(o),h=[],y=0,f=S.length;y<f;y++)h.push(SuperMap.Plot.PlottingUtil.coordinateTrans(c.pt,S[y],P));if(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,s),0===u){var g=new SuperMap.Geometry.Point((h[0].x+h[1].x)/2,(h[0].y+h[1].y)/2);this.addScalePoint(g,0)}else 1===u&&this.addScalePoint(c.pt,1);this.finish()}}}},{key:"getSubSymbolPts",value:function(t){var e=.5*t,l=[];return l.push(new SuperMap.Geometry.Point(.5*e,2*e)),l.push(new SuperMap.Geometry.Point(.5*-e,2*e)),l.push(new SuperMap.Geometry.Point(.5*-e,-2*e)),l.push(new SuperMap.Geometry.Point(.5*e,-2*e)),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);i=SuperMap.Plot.PlottingUtil.clearSamePts(i);var n=.01*o;if(0===t){var a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,n);if(-1===a.index)return;var r=SuperMap.Plot.PlottingUtil.distance(e,a.pt);this.scaleValues[0]=r/o}else if(1===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,n);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i);if(-1===p.index)return;for(var u=0,c=s.index+1;c<p.index;c++)u+=SuperMap.Plot.PlottingUtil.distance(i[c],i[c+1]);u+=SuperMap.Plot.PlottingUtil.distance(i[p.index],p.pt),u-=n,this.scaleValues[1]=u/o,u>o-o*this.scaleValues[0]-n&&(this.scaleValues[1]=(o-o*this.scaleValues[0]-n)/o)}}}}]),e}();SuperMap.Plot.AlgoSymbol16203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o,i,n=this.scaleValues[0]*e;o=SuperMap.Plot.PlottingUtil.paraLine(t,n,!0),i=SuperMap.Plot.PlottingUtil.paraLine(t,n,!1);var a=new SuperMap.Geometry.Point(o[0].x,o[0].y);a.isScalePoint=!0,a.tag=0,this.scalePoints.push(a),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);var r=new SuperMap.Geometry.Point(t[0].x,t[0].y),s=new SuperMap.Geometry.Point(t[1].x,t[1].y),p=180*SuperMap.Plot.PlottingUtil.radian(r,s)/Math.PI,u=new SuperMap.Geometry.Point(.3*e,0),c=SuperMap.Plot.PlottingUtil.coordinateTrans(r,u,p),P=new SuperMap.Geometry.Point(0,.4*n),S=new SuperMap.Geometry.Point(0,.2*n),h=SuperMap.Plot.PlottingUtil.coordinateTrans(c,P,p),y=SuperMap.Plot.PlottingUtil.coordinateTrans(c,S,p),f=[];f.push(h),f.push(y),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,f);var g=new SuperMap.Geometry.Point(0,.2*n),M=new SuperMap.Geometry.Point(0,-.4*n),b=SuperMap.Plot.PlottingUtil.coordinateTrans(c,g,p),m=SuperMap.Plot.PlottingUtil.coordinateTrans(c,M,p);(f=[]).push(b),f.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var d=new SuperMap.Geometry.Point(.2*n,-.2*n),v=new SuperMap.Geometry.Point(-.2*n,-.6*n),O=SuperMap.Plot.PlottingUtil.coordinateTrans(c,d,p),U=SuperMap.Plot.PlottingUtil.coordinateTrans(c,v,p);(f=[]).push(O),f.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var L=new SuperMap.Geometry.Point(-.2*n,-.2*n),w=new SuperMap.Geometry.Point(.2*n,-.6*n),V=SuperMap.Plot.PlottingUtil.coordinateTrans(c,L,p),_=SuperMap.Plot.PlottingUtil.coordinateTrans(c,w,p);(f=[]).push(V),f.push(_),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var T=new SuperMap.Geometry.Point(.7*e,0),A=SuperMap.Plot.PlottingUtil.coordinateTrans(r,T,p),E=SuperMap.Plot.PlottingUtil.coordinateTrans(A,P,p),x=SuperMap.Plot.PlottingUtil.coordinateTrans(A,S,p);(f=[]).push(E),f.push(x),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,f);var Y=SuperMap.Plot.PlottingUtil.coordinateTrans(A,g,p),j=SuperMap.Plot.PlottingUtil.coordinateTrans(A,M,p);(f=[]).push(Y),f.push(j),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var C=SuperMap.Plot.PlottingUtil.coordinateTrans(A,d,p),I=SuperMap.Plot.PlottingUtil.coordinateTrans(A,v,p);(f=[]).push(C),f.push(I),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var G=SuperMap.Plot.PlottingUtil.coordinateTrans(A,L,p),B=SuperMap.Plot.PlottingUtil.coordinateTrans(A,w,p);(f=[]).push(G),f.push(B),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;this.scaleValues[0]=n}}}}]),e}();SuperMap.Plot.AlgoSymbol16202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues.push(.02),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(.01)):3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.paraLine(l,.5*o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(l,.5*o,!1);i=SuperMap.Plot.PlottingUtil.clearSamePts(i),n=SuperMap.Plot.PlottingUtil.clearSamePts(n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);for(var a=e*this.scaleValues[1],r=e*this.scaleValues[3],s=0,p=SuperMap.Plot.PlottingUtil.polylineDistance(l),u=r,c=0;u<=p-r;u+=a,c++){s=u+r;var P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,s);if(-1!==P.index){var S=new SuperMap.Geometry.Point(P.pt.x,P.pt.y+.5*o),h=[];h.push(P.pt),h.push(S),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,h),0===c?this.addScalePoint(S):1===c&&this.addScalePoint(P.pt)}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,a=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(a=SuperMap.Plot.PlottingUtil.clearSamePts(a),0==t){n=o*this.scaleValues[3];var r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(a,n);if(-1===r.index)return;var s=2*SuperMap.Plot.PlottingUtil.distance(e,r.pt);this.scaleValues[0]=s/o}else if(1===t){n=o*this.scaleValues[3];var p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(a,n);if(-1===p.index)return;var u=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,a);if(-1==u.index)return;for(var c=SuperMap.Plot.PlottingUtil.distance(p.pt,a[p.index+1]),P=p.index+1;P<u.index;P++)c+=SuperMap.Plot.PlottingUtil.distance(a[P],a[P+1]);c+=SuperMap.Plot.PlottingUtil.distance(a[u.index],u.pt),this.scaleValues[1]=c/o}}}}]),e}();SuperMap.Plot.AlgoSymbol16201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=this.getSubSymbolScaleValue();this.isEdit||(this.scaleValues[0]=.5*o);var i=this.scaleValues[0]*e,n=SuperMap.Plot.PlottingUtil.paraLine(l,.5*i,!0),a=SuperMap.Plot.PlottingUtil.paraLine(l,.5*i,!1);n=SuperMap.Plot.PlottingUtil.clearSamePts(n),a=SuperMap.Plot.PlottingUtil.clearSamePts(a),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);for(var r=e*this.scaleValues[1],s=.5*i,p=SuperMap.Plot.PlottingUtil.polylineDistance(l),u=s,c=0;u<p;u+=r,c++){var P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,u);if(-1!==P.index){var S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,l[P.index+1],P.pt),h=[];h.push(S.pntLeft),h.push(S.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h),0===c?this.addScalePoint(S.pntRight,0):1===c&&this.addScalePoint(P.pt,1)}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,a=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(a=SuperMap.Plot.PlottingUtil.clearSamePts(a),0==t){n=.5*(o*this.scaleValues[0]);var r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(a,n);if(-1===r.index)return;var s=SuperMap.Plot.PlottingUtil.distance(e,r.pt);this.scaleValues[0]=s/o}else if(1===t){n=.5*(o*this.scaleValues[0]);var p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(a,n);if(-1===p.index)return;var u=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,a);if(-1==u.index)return;for(var c=SuperMap.Plot.PlottingUtil.distance(p.pt,a[p.index+1]),P=p.index+1;P<u.index;P++)c+=SuperMap.Plot.PlottingUtil.distance(a[P],a[P+1]);c+=SuperMap.Plot.PlottingUtil.distance(a[u.index],u.pt),this.scaleValues[1]=c/o}}}}]),e}();SuperMap.Plot.AlgoSymbol16200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16100=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){if(this.init(),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts)this.calAssistantLine();else{var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMap.Plot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t);t.push(t[0]);for(var l=!0,o=e.x,i=e.x+.8,n={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1};l;){l=!1;for(var a,r,s,p,u,c,P=[],S=[],h=new SuperMap.Geometry.Point(o,e.y),y=SuperMap.Plot.PlottingUtil.circlePoint(h,10,10,45),f=SuperMap.Plot.PlottingUtil.circlePoint(h,10,10,135),g=0;g<t.length-1;g++)(s=SuperMap.Plot.PlottingUtil.intersectLines(h,y,t[g],t[g+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,t[g],t[g+1])&&P.push(s.intersectPoint),(p=SuperMap.Plot.PlottingUtil.intersectLines(h,f,t[g],t[g+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t[g],t[g+1])&&S.push(p.intersectPoint);if(1<P.length){u=[],u=this.sortPts2D(P);for(var M=0;M<u.length-1;M++)a=new SuperMap.Geometry.Point((u[M].x+u[M+1].x)/2,(u[M].y+u[M+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(t,a)&&((r=[]).push(u[M]),r.push(u[M+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,n,!0))}if(1<S.length){c=[],c=this.sortPts2D(S);for(var b=0;b<c.length-1;b++)a=new SuperMap.Geometry.Point((c[b].x+c[b+1].x)/2,(c[b].y+c[b+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(t,a)&&((r=[]).push(c[b]),r.push(c[b+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,n,!0))}(P.length>0||S.length>0)&&(l=!0),P=[],S=[];for(var m=new SuperMap.Geometry.Point(i,e.y),d=SuperMap.Plot.PlottingUtil.circlePoint(m,10,10,45),v=SuperMap.Plot.PlottingUtil.circlePoint(m,10,10,135),O=0;O<t.length-1;O++)(s=SuperMap.Plot.PlottingUtil.intersectLines(m,d,t[O],t[O+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,t[O],t[O+1])&&P.push(s.intersectPoint),(p=SuperMap.Plot.PlottingUtil.intersectLines(m,v,t[O],t[O+1])).isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t[O],t[O+1])&&S.push(p.intersectPoint);if(1<P.length){u=[],u=this.sortPts2D(P);for(var U=0;U<u.length-1;U++)a=new SuperMap.Geometry.Point((u[U].x+u[U+1].x)/2,(u[U].y+u[U+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(t,a)&&((r=[]).push(u[U]),r.push(u[U+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,n,!0))}if(1<S.length){c=[],c=this.sortPts2D(S);for(var L=0;L<c.length-1;L++)a=new SuperMap.Geometry.Point((c[L].x+c[L+1].x)/2,(c[L].y+c[L+1].y)/2),SuperMap.Plot.PlottingUtil.ptIsInPolygon(t,a)&&((r=[]).push(c[L]),r.push(c[L+1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,n,!0))}(P.length>0||S.length>0)&&(l=!0),o-=.8,i+=.8}this.finish()}}}},{key:"sortPts2D",value:function(t){for(var e,l=0;l<t.length;l++)for(var o=0;o<t.length-1-l;o++)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)?t[o].y>t[o+1].y&&(e=t[o],t[o]=t[o+1],t[o+1]=tempPt11):t[o].x>t[o+1].x&&(e=t[o],t[o]=t[o+1],t[o+1]=e);return t}}]),e}();SuperMap.Plot.AlgoSymbol16100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16001=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=.05*SuperMap.Plot.PlottingUtil.distance(e,l),i=SuperMap.Plot.PlottingUtil.paraLine(t,.5*o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,.5*o,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);for(var a=0,r=0;r<i.length-1;r++)a+=SuperMap.Plot.PlottingUtil.distance(i[r],i[r+1]);for(var s,p,u,c,P,S,h=a*this.getSubSymbolScaleValue()*.5,y=6*h,f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},g=h;g<=a-h/2;g+=y)-1!==(s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,g)).index&&(p=180*SuperMap.Plot.PlottingUtil.radian(i[s.index],i[s.index+1])/Math.PI,u=SuperMap.Plot.PlottingUtil.circlePoint(s.pt,h,h,p+90),c=SuperMap.Plot.PlottingUtil.circlePoint(s.pt,.25*h,.25*h,p),P=SuperMap.Plot.PlottingUtil.circlePoint(s.pt,.25*h,.25*h,p+180),(S=[]).push(u),S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,f));for(var M=h;M<=a-h/2;M+=y)-1!==(s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,M)).index&&(p=180*SuperMap.Plot.PlottingUtil.radian(n[s.index],n[s.index+1])/Math.PI,u=SuperMap.Plot.PlottingUtil.circlePoint(s.pt,h,h,p+270),c=SuperMap.Plot.PlottingUtil.circlePoint(s.pt,.25*h,.25*h,p),P=SuperMap.Plot.PlottingUtil.circlePoint(s.pt,.25*h,.25*h,p+180),(S=[]).push(u),S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,f));this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol16001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=.05*SuperMap.Plot.PlottingUtil.distance(e,l),i=SuperMap.Plot.PlottingUtil.paraLine(t,.5*o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,.5*o,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var a=[];a=this.scaleValues[0]<0?a.concat(n):a.concat(i);for(var r=0,s=0;s<a.length-1;s++)r+=SuperMap.Plot.PlottingUtil.distance(a[s],a[s+1]);for(var p=this.getSubSymbolScaleValue(),u=r*p*.5,c=r*p*.125,P=.1*r,S=r*p*.5,h=0;h<=r;h+=P){var y=SuperMap.Plot.PlottingUtil.findPointInPolyLine(a,h+S);if(-1!==y.index){var f,g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(u,a[y.index],y.pt);f=this.scaleValues[0]>0?new SuperMap.Geometry.Point(g.pntLeft.x,g.pntLeft.y):new SuperMap.Geometry.Point(g.pntRight.x,g.pntRight.y);var M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(c,f,y.pt),b=[];if(b.push(M.pntRight),b.push(f),b.push(M.pntLeft),0===h){var m=new SuperMap.Geometry.Point(f.x,f.y);m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0})}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],e);this.scaleValues[0]=o?-1:1}}}]),e}();SuperMap.Plot.AlgoSymbol16000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(1),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);for(var l=0,o=0;o<t.length-1;o++)l+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);var i=l*this.scaleValues[0],n=l*this.scaleValues[2],a=!1;a=0===this.scaleValues[0];for(var r=0,s=0;s<e.length-1;s++)r+=SuperMap.Plot.PlottingUtil.distance(e[s],e[s+1]);if(0!==r){for(var p=0;p<=r;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(-1!==u.index){var c=[],P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);a?c.push(P.pntRight):c.push(P.pntLeft);var S=p+n,h=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,S);if(-1!==h.index){var y=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[h.index+1],h.pt);a?c.push(y.pntLeft):c.push(y.pntRight),Math.abs(p)<1e-6&&(this.addScalePoint(c[0],0),this.addScalePoint(h.pt,1)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c)}}}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){var n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,o[1],o[0]),a=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,n.pntRight,n.pntLeft),r=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,l[0]);this.scaleValues[0]=r/i;var s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[1]=s?1:0}else{for(var p,u=-1,c=0,P=o.length-1;c<P;c++){var S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[c],o[c+1]);if(S.isOnline){p=S.projectPoint,u=c;break}}if(-1===u)return;for(var h=[],y=0,f=u;y<=f;y++)h.push(o[y]);h.push(p);var g=SuperMap.Plot.PlottingUtil.polylineDistance(h);this.scaleValues[2]=g/i}}}}]),e}();SuperMap.Plot.AlgoSymbol15900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15806=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.06),l.scaleValues.push(1),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(t.length>=this.minEditPts){this.scalePoints=[];var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=.6*i,a=this.scaleValues[2]*o,r=0===this.scaleValues[1],s=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===s)return;for(var p=[],u=0;u<=s;u+=a){var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u);if(!(c.index<0)){var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt);if(r?p.push(P.pntRight):p.push(P.pntLeft),!((c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.65*a)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,e[c.index+1],c.pt),r?p.push(P.pntRight):p.push(P.pntLeft),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.8*a)).index<0||(p.push(c.pt),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.5*a)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt),r?p.push(P.pntLeft):p.push(P.pntRight),c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.2*a),p.push(c.pt),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.35*a)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,e[c.index+1],c.pt),r?p.push(P.pntRight):p.push(P.pntLeft),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+a)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt),r?p.push(P.pntRight):p.push(P.pntLeft),!(Math.abs(u)<=1e-6)))))))){this.scalePoints=[];var S=new SuperMap.Geometry.Point(p[0].x,p[0].y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S),(S=new SuperMap.Geometry.Point(c.pt.x,c.pt.y)).isScalePoint=!0,S.tag=1,this.scalePoints.push(S)}}}var h=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(p);SuperMap.Plot.PlottingUtil.clearSamePts(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o,i,n=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),a=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){i=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,n[1],n[0]),o=SuperMap.Plot.PlottingUtil.pointProjectToSegment(new SuperMap.Geometry.Point(e.x,e.y),i.pntRight,i.pntLeft);var r=SuperMap.Plot.PlottingUtil.distance(o.projectPoint,l[0])/a;this.scaleValues[0]=r;var s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(n[0],n[1],new SuperMap.Geometry.Point(e.x,e.y));this.scaleValues[1]=s?1:0}else{for(var p,u=-1,c=0;c<n.length-1;c++)if((o=SuperMap.Plot.PlottingUtil.pointProjectToSegment(new SuperMap.Geometry.Point(e.x,e.y),n[c],n[c+1])).isOnline){p=o.projectPoint,u=c;break}if(-1===u)return void(this.scaleValues[2]=.05);for(var P=[],S=0;S<=u;S++)P.push(n[S]);P.push(p);var h=SuperMap.Plot.PlottingUtil.polylineDistance(P);this.scaleValues[2]=h/a}}}}]),e}();SuperMap.Plot.AlgoSymbol15806=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15805=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(c.pntRight):s.push(c.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var P=new SuperMap.Geometry.Point(s[0].x,s[0].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}else Math.abs(2*n-p)<=1e-6&&((P=new SuperMap.Geometry.Point(u.pt.x,u.pt.y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P));a=!a}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var S=s.length,h=0,y=45*Math.PI/180,f=45*Math.PI/180,g=0;g<S-1;g+=2){var M=[],b=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.3,s[g],s[g+1]);M.push(b);var m=new SuperMap.Geometry.Point(s[g].x,s[g].y),d=new SuperMap.Geometry.Point(s[g+1].x,s[g+1].y);h=SuperMap.Plot.PlottingUtil.distance(m,d);var v=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.6,s[g],s[g+1]),O=new SuperMap.Geometry.Point(v.x,v.y);O=SuperMap.Plot.PlottingUtil.rotateAngle(b,y,v),M.push(O);var U=.15*h;v=SuperMap.Plot.PlottingUtil.linePnt(M[1],M[0],U);var L=new SuperMap.Geometry.Point(v.x,v.y);SuperMap.Plot.PlottingUtil.rotateAngle(O,f,L),M.push(L);var w=new SuperMap.Geometry.Point(M[1].x-M[0].x+M[2].x,M[1].y-M[0].y+M[2].y);M.push(w),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15805=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15804=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.029615),l.scaleValues.push(1),l.scaleValues.push(.12)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(c.pntRight):s.push(c.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var P=new SuperMap.Geometry.Point(s[0].x,s[0].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}else Math.abs(2*n-p)<=1e-6&&((P=new SuperMap.Geometry.Point(u.pt.x,u.pt.y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P));a=!a}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var S=s.length,h=0,y=0;y<S-1;++y){var f=new SuperMap.Geometry.Point(s[y].x,s[y].y),g=new SuperMap.Geometry.Point(s[y+1].x,s[y+1].y);h=.3*SuperMap.Plot.PlottingUtil.distance(f,g);var M=[],b=new SuperMap.Geometry.Point(.5*(f.x+g.x),.5*(f.y+g.y)),m=SuperMap.Plot.PlottingUtil.dirAngle(f,g)*SuperMap.Plot.PlottingUtil.RTOD,d=SuperMap.Plot.PlottingUtil.circlePoint(b,h,h,m+90),v=1.5*h,O=SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,m+260),U=SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,m+280);M.push(O),M.push(d),M.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15803=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(c.pntRight):s.push(c.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var P=new SuperMap.Geometry.Point(s[0].x,s[0].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}else Math.abs(2*n-p)<=1e-6&&((P=new SuperMap.Geometry.Point(u.pt.x,u.pt.y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P));a=!a}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var S=s.length,h=0,y=0;y<S-1;++y){var f=new SuperMap.Geometry.Point(s[y].x,s[y].y),g=new SuperMap.Geometry.Point(s[y+1].x,s[y+1].y);h=.3*SuperMap.Plot.PlottingUtil.distance(f,g);var M=[],b=[];if(y!==S-2){var m=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*h,s[y],s[y+1]);M.push(m.pntLeft),M.push(m.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M)}if(0!==y){var d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*h,s[y+1],s[y]);b.push(d.pntLeft),b.push(d.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b)}}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s,p=[],u=0;u<=r;u+=n){var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u);if(!(c.index<0)){var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt);if(a?p.push(P.pntRight):p.push(P.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var S=new SuperMap.Geometry.Point(p[0].x,p[0].y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S)}else Math.abs(2*n-u)<=1e-6&&((S=new SuperMap.Geometry.Point(c.pt.x,c.pt.y)).isScalePoint=!0,S.tag=1,this.scalePoints.push(S));a=!a}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);for(var h=p.length,y=0,f=0;f<h-1;++f){var g=new SuperMap.Geometry.Point(p[f].x,p[f].y),M=new SuperMap.Geometry.Point(p[f+1].x,p[f+1].y);y=.3*SuperMap.Plot.PlottingUtil.distance(g,M);var b=[],m=[],d=[],v=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.35,p[f],p[f+1]);s=new SuperMap.Geometry.Point((p[f].x+p[f+1].x)/2,(p[f].y+p[f+1].y)/2);var O=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*y,p[f],s);m.push(O.pntLeft,O.pntRight);var U=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*y,p[f],v);b.push(U.pntLeft,U.pntRight),d.push(new SuperMap.Geometry.Point(2*s.x-U.pntLeft.x,2*s.y-U.pntLeft.y)),d.push(new SuperMap.Geometry.Point(2*s.x-U.pntRight.x,2*s.y-U.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=new SuperMap.Geometry.Point(0,0),p=[],u=0;u<=r;u+=n){var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u);if(!(c.index<0)){var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt);if(a?p.push(P.pntRight):p.push(P.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var S=new SuperMap.Geometry.Point(p[0].x,p[0].y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S)}else Math.abs(2*n-u)<=1e-6&&((S=new SuperMap.Geometry.Point(c.pt.x,c.pt.y)).isScalePoint=!0,S.tag=1,this.scalePoints.push(S));a=!a}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);for(var h=p.length,y=0,f=0;f<h-1;++f){var g=new SuperMap.Geometry.Point(p[f].x,p[f].y),M=new SuperMap.Geometry.Point(p[f+1].x,p[f+1].y);y=.3*SuperMap.Plot.PlottingUtil.distance(g,M);var b=[],m=[],d=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.35,p[f],p[f+1]);s=new SuperMap.Geometry.Point((p[f].x+p[f+1].x)/2,(p[f].y+p[f+1].y)/2);var v=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*y,p[f],d);b.push(v.pntLeft),b.push(v.pntRight),m.push(new SuperMap.Geometry.Point(2*s.x-v.pntLeft.x,2*s.y-v.pntLeft.y)),m.push(new SuperMap.Geometry.Point(2*s.x-v.pntRight.x,2*s.y-v.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.04),l.scaleValues.push(1),l.scaleValues.push(.12)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,a=!1;a=0===this.scaleValues[1];var r=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==r){for(var s=[],p=0;p<=r;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(a?s.push(c.pntRight):s.push(c.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var P=new SuperMap.Geometry.Point(s[0].x,s[0].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}else Math.abs(2*n-p)<=1e-6&&((P=new SuperMap.Geometry.Point(u.pt.x,u.pt.y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P));a=!a}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var S=s.length,h=0,y=0;y<S-1;++y){var f=new SuperMap.Geometry.Point(s[y].x,s[y].y),g=new SuperMap.Geometry.Point(s[y+1].x,s[y+1].y);h=.3*SuperMap.Plot.PlottingUtil.distance(f,g);var M=[],b=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.5,s[y],s[y+1]),m=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*h,s[y],b);M.push(m.pntLeft),M.push(m.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){var n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,o[1],o[0]),a=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,n.pntRight,n.pntLeft),r=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,l[0]);this.scaleValues[0]=r/i;var s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[1]=s?1:0}else{for(var p,u=-1,c=0,P=o.length-1;c<P;c++){var S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[c],o[c+1]);if(S.isOnline){p=S.projectPoint,u=c;break}}if(-1===u)return void(this.scaleValues[2]=.05);for(var h=[],y=0,f=u;y<=f;y++)h.push(o[y]);h.push(p);var g=SuperMap.Plot.PlottingUtil.polylineDistance(h);this.scaleValues[2]=g/i}}}}]),e}();SuperMap.Plot.AlgoSymbol15800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(parseFloat(.1732)),l.scaleValues.push(.1),l.scaleValues.push(1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[1].x,t[1].y),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0]*o,n=this.scaleValues[1]*o,a=this.scaleValues[2],r=null;if(1===a){var s=SuperMap.Plot.PlottingUtil.linePnt(l,e,o+i);r=new SuperMap.Geometry.Point(s.x,s.y)}else s=SuperMap.Plot.PlottingUtil.linePnt(l,e,o-i),r=new SuperMap.Geometry.Point(s.x,s.y);var p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*n,t[0],r),u=[];u.push(p.pntRight),u.push(t[0]),u.push(p.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var c=[],P=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(1===a){var S=new SuperMap.Geometry.Point(2*P.x-p.pntLeft.x,2*P.y-p.pntLeft.y);c.push(S),c.push(t[1]);var h=new SuperMap.Geometry.Point(2*P.x-p.pntRight.x,2*P.y-p.pntRight.y);c.push(h)}else S=new SuperMap.Geometry.Point(2*P.x-p.pntRight.x,2*P.y-p.pntRight.y),c.push(S),c.push(t[1]),h=new SuperMap.Geometry.Point(2*P.x-p.pntLeft.x,2*P.y-p.pntLeft.y),c.push(h);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol15202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15201=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol15201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(.185)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var l=0,o=0,i=e.length-1;o<i;o++)l+=SuperMap.Plot.PlottingUtil.distance(e[o],e[o+1]);for(var n=0,a=0,r=t.length-1;a<r;a++)n+=SuperMap.Plot.PlottingUtil.distance(t[a],t[a+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());for(var s=this.scaleValues[0]*n,p=this.scaleValues[1],u=this.scaleValues[2]*n,c=.3*u,P=u;P<l;P+=u){var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e);if(-1===S.index)return void this.finish();var h=P+c,y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h,e);if(-1===y.index)return void this.finish();var f=[],g=[];f.push(S.pts);var M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[S.index],S.pts);0===p?f.push(new SuperMap.Geometry.Point(M.pntLeft.x,M.pntLeft.y)):f.push(new SuperMap.Geometry.Point(M.pntRight.x,M.pntRight.y)),g.push(y.pts);var b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[y.index],y.pts);if(0===p?g.push(new SuperMap.Geometry.Point(b.pntLeft.x,b.pntLeft.y)):g.push(new SuperMap.Geometry.Point(b.pntRight.x,b.pntRight.y)),u===P){this.scalePoints=[];var m=new SuperMap.Geometry.Point(f[1].x,f[1].y);m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m),(m=new SuperMap.Geometry.Point(f[0].x,f[0].y)).isScalePoint=!0,m.tag=1,this.scalePoints.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;for(var o=0,i=0,n=l.length-1;i<n;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var a=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),r=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(a,o*this.scaleValues[2]);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.distance(s.pt,r)/o,u=SuperMap.Plot.PlottingUtil.pointIsRightToLine(a[0],a[1],e);this.scaleValues[1]=u?1:0,this.scaleValues[0]=p}else if(1===t){for(var c=0,P=-1,S=[],h=0,y=a.length-1;h<y;h++){var f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,a[h],a[h+1]);if(f.isOnline){var g=SuperMap.Plot.PlottingUtil.distance(f.projectPoint,this.controlPoints[1]);0==c?(c=g,P=h,S=e):g<c&&(c=g,P=h,S=e)}}if(-1==P)return;for(var M=0,b=0,m=P-1;b<m;b++)M+=SuperMap.Plot.PlottingUtil.distance(a[b],a[b+1]);var d=(M+=SuperMap.Plot.PlottingUtil.distance(S,a[P]))/o;d>.7&&(d=.7),this.scaleValues[2]=d}}}}]),e}();SuperMap.Plot.AlgoSymbol15200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol13700=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e;if(2===t.length)e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t);else if(3===t.length){var l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=new SuperMap.Geometry.Point(t[2].x,t[2].y),n=SuperMap.Plot.PlottingUtil.distance(o,i);if(0>=n)return;this.scaleValues=[];var a=SuperMap.Plot.PlottingUtil.distance(l,o)/n;this.scaleValues.push(a);var r=180*SuperMap.Plot.PlottingUtil.radian(l,o)/Math.PI;r>90?r-=90:r=270+r,this.scaleValues.push(r*(Math.PI/180));var s=180*SuperMap.Plot.PlottingUtil.radian(l,i)/Math.PI;s>90?s-=90:s=270+s,this.scaleValues.push(s*(Math.PI/180)),e=this.scaleValues[0]*n;var p=this.scaleValues[1]*(180/Math.PI)+90,u=this.scaleValues[2]*(180/Math.PI)+90;p<u&&(p+=360);for(var c,P=[],S=p;S>=u;S-=4)c=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,S),P.push(c);S!=u&&(c=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,u),P.push(c)),this.controlPoints[2]=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P)}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol13700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12502=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol12500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.03));for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var i=this.scaleValues[1]*e,n=o*e,a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,n);if(-1!==a.index){for(var r,s=a.pt,p=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[s,new SuperMap.Geometry.Point(s.x+i,s.y)]),u=0;u<t.length-1;u++){var c,P=t[u];r=t[u+1];var S=SuperMap.Plot.PlottingUtil.distance(s,P),h=SuperMap.Plot.PlottingUtil.distance(s,r);if(!(S<i&&h<i))if(S>i&&h<i||S<i&&h>i){var y;y=S>i?P:r,(c=this.getLineAddCircleIntersectPts(P,r,p)).length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c[0],y])}else{var f=SuperMap.Plot.PlottingUtil.projectPoint(s,P,r);if(SuperMap.Plot.PlottingUtil.distance(s,f)>=i)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,r]);else if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(f,P,r)){if((c=this.getLineAddCircleIntersectPts(P,r,p)).length>0){c.unshift(P),c.push(r);for(var g=0;g<c.length-1;g++)this.isLineInCircle(c[g],c[g+1],s,i)||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c[g],c[g+1]])}}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,r])}}var M=0;c&&(M=SuperMap.Plot.PlottingUtil.radian(s,c[c.length-1])*SuperMap.Plot.PlottingUtil.RTOD);var b=[];r=SuperMap.Plot.PlottingUtil.circlePoint(s,-i,-i,M),b.push(r,s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var m=SuperMap.Plot.PlottingUtil.radian(r,s)*SuperMap.Plot.PlottingUtil.RTOD,d=[],v=SuperMap.Plot.PlottingUtil.circlePoint(s,.8*i,.8*i,m+170),O=SuperMap.Plot.PlottingUtil.circlePoint(s,.8*i,.8*i,m-170);d.push(v),d.push(O),d.push(s);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[s,new SuperMap.Geometry.Point(s.x+i,s.y)]),this.addScalePoint(s,0),this.addScalePoint(new SuperMap.Geometry.Point(s.x+i,s.y),1),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2);return o>SuperMap.Plot.PlottingUtil.distance(i,l)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,l){var o=l.slice();o[0].x===o[o.length-1].x&&o[0].y===o[o.length-1].y||o.push(o[0]);for(var i,n=[],a=0;a<o.length-1;a++){var r=o[a],s=o[a+1],p=SuperMap.Plot.PlottingUtil.intersectLines(t,e,r,s);p.isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t,e)&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,r,s)&&n.push(p.intersectPoint)}for(var u=0;u<n.length-1;u++)SuperMap.Plot.PlottingUtil.isSamePt(n[u],n[u+1])&&(n.splice(u,1),u--);if(t.x>e.x)for(var c=0;c<n.length&&c!=n.length-1;c++)n[c].x<n[c+1].x&&(i=n[c],n[c]=n[c+1],n[c+1]=i);else if(t.x<e.x)for(var P=0;P<n.length&&P!=n.length-1;P++)n[P].x>n[P+1].x&&(i=n[P],n[P]=n[P+1],n[P+1]=i);else if(t.y>e.y)for(var S=0;S<n.length&&S!=n.length-1;S++)n[S].y<n[S+1].y&&(i=n[S],n[S]=n[S+1],n[S+1]=i);else if(t.y<e.y)for(var h=0;h<n.length&&h!=n.length-1;h++)n[h].y>n[h+1].y&&(i=n[h],n[h]=n[h+1],n[h+1]=i);return n}}]),e}();SuperMap.Plot.AlgoSymbol12502=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.03),l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){var e=this.getSubSymbolScaleValue();this.scaleValues[0]=e,this.scaleValues[1]=.5*e,this.scaleValues[3]=.5*e}var l=this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2],n=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);n=SuperMap.Plot.PlottingUtil.clearSamePts(n);var a=this.GetCurvePts(t,l,o);if(0!==a.pt.length){var r=SuperMap.Plot.PlottingUtil.polylineDistance(n)*i,s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,r);if(-1!==s.index){for(var p=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[3],u=[],c=0;c<360;c+=12)u.push(SuperMap.Plot.PlottingUtil.circlePoint(s.pt,p,p,c));u.push(u[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);for(var P=[],S=[],h=0;h<a.pt.length;h++)SuperMap.Plot.PlottingUtil.ptIsInPolygon(u,a.pt[h])?S.length>1&&(P.push(S),S=[]):S.push(a.pt[h]);S.length>1&&P.push(S);for(var y=0;y<P.length;y++)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P[y]);var f=new SuperMap.Geometry.Point(a.pt[0].x,a.pt[0].y);f.isScalePoint=!0,f.tag=0,this.scalePoints.push(f);var g=new SuperMap.Geometry.Point(a.scalePt.x,a.scalePt.y);g.isScalePoint=!0,g.tag=1,this.scalePoints.push(g);var M=new SuperMap.Geometry.Point(s.pt.x,s.pt.y);M.isScalePoint=!0,M.tag=2,this.scalePoints.push(M);var b=SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(s.pt.x,s.pt.y),p,p,0),m=new SuperMap.Geometry.Point(b.x,b.y);m.isScalePoint=!0,m.tag=3,this.scalePoints.push(m),this.finish()}else this.finish()}else this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(null!=e&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(4>this.scaleValues.length)return;var o,i,n,a,r,s=SuperMap.Plot.PlottingUtil.polylineDistance(l),p=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),u=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var c=new SuperMap.Geometry.Point(l[0].x,l[0].y),P=SuperMap.Plot.PlottingUtil.distance(c,u);i=2*P/s,this.scaleValues[1]=i}else if(1===t)c=new SuperMap.Geometry.Point(l[0].x,l[0].y),o=(P=SuperMap.Plot.PlottingUtil.distance(c,u))/s,this.scaleValues[0]=o;else if(2==t){var S=-1,h=0;r=new SuperMap.Geometry.Point(0,0),o=this.scaleValues[0],i=this.scaleValues[1];for(var y=0;y<p.length-1;y++){var f=p[y],g=p[y+1],M=SuperMap.Plot.PlottingUtil.projectPoint(u,f,g);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(M,f,g)){var b=SuperMap.Plot.PlottingUtil.distance(u,M);-1==S?(S=y,r=M,h=b):h>b&&(S=y,r=M,h=b)}}if(-1==S||S>p.length-1)return;a=SuperMap.Plot.PlottingUtil.polylineDistance(p);for(var m=[],d=0;d<S;d++)m.push(p[d]);m.push(r);var v=SuperMap.Plot.PlottingUtil.polylineDistance(m);if(v<0||v>a)return;n=v/a,this.scaleValues[2]=n}else if(3===t){o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2];var O=(a=SuperMap.Plot.PlottingUtil.polylineDistance(p))*n;if(-1===(r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(p,O)).index)return;var U=SuperMap.Plot.PlottingUtil.distance(r.pt,e)/s;U>.4&&(U=.4),this.scaleValues[3]=U}}}},{key:"GetCurvePts",value:function(t,e,l){for(var o,i=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),n=SuperMap.Plot.PlottingUtil.polylineDistance(i),a=n*e,r=n*l/2,s=[],p=[],u=i[0],c=!1,P=i[0],S=1;S<i.length;S++){var h=i[S],y=SuperMap.Plot.PlottingUtil.distance(u,h);if(!(y<a&&S!==i.length-1)){for(var f,g=parseInt(y/a),M=0;M<g;M++){f=SuperMap.Plot.PlottingUtil.linePnt(u,h,a),c||(o=f,c=!0);var b=this.GetCosPts2D(u,f,a,r);s=p.length>1&&0===M?this.ClearCurvePts2D(P,u,h,p,b,s):s.concat(b),p=(p=[]).concat(b),P=u,u=f}S===i.length-1&&(f=i[i.length-1],b=this.GetCosPts2D(u,f,a,r),s=p.length>1&&b.length>1?this.ClearCurvePts2D(P,u,h,p,b,s):s.concat(b))}}return{pt:s,scalePt:o}}},{key:"GetCosPts2D",value:function(t,e,l,o){for(var i=[],n=SuperMap.Plot.PlottingUtil.distance(t,e),a=l/30,r=0;r<n;r+=a){var s=r*(2*Math.PI/l),p=o*Math.cos(s),u=new SuperMap.Geometry.Point(r,p),c=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,P=SuperMap.Plot.PlottingUtil.coordinateTrans(t,u,c);i.push(P)}return i}},{key:"ClearCurvePts2D",value:function(t,e,l,o,i,n){for(var a=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,r=180*SuperMap.Plot.PlottingUtil.radian(e,t)/Math.PI-a;r<=0;)r+=360;var s=r/2,p=l;p=SuperMap.Plot.PlottingUtil.rotateAngle(e,s*Math.PI/180,p);for(var u=SuperMap.Plot.PlottingUtil.linePnt(e,p,1),c=0,P=0;P<o.length;P++)if(SuperMap.Plot.PlottingUtil.pointIsRightToLine(e,u,o[P])){c=P;break}if(0!=c)for(var S=0;S<o.length-c;S++)n.slice(S,n.length-1);for(var h=0;h<i.length;h++)SuperMap.Plot.PlottingUtil.pointIsRightToLine(e,u,i[h])&&n.push(i[h]);return n}}]),e}();SuperMap.Plot.AlgoSymbol12501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.03));var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var o=this.scaleValues[1]*e,i=l*e,n=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,i);if(-1!==n.index){for(var a=n.pt,r=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[a,new SuperMap.Geometry.Point(a.x+o,a.y)]),s=0;s<t.length-1;s++){var p,u=t[s],c=t[s+1],P=SuperMap.Plot.PlottingUtil.distance(a,u),S=SuperMap.Plot.PlottingUtil.distance(a,c);if(!(P<o&&S<o))if(P>o&&S<o||P<o&&S>o){var h;h=P>o?u:c,(p=this.getLineAddCircleIntersectPts(u,c,r)).length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p[0],h])}else{var y=SuperMap.Plot.PlottingUtil.projectPoint(a,u,c);if(SuperMap.Plot.PlottingUtil.distance(a,y)>=o)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c]);else if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(y,u,c)){if((p=this.getLineAddCircleIntersectPts(u,c,r)).length>0){p.unshift(u),p.push(c);for(var f=0;f<p.length-1;f++)this.isLineInCircle(p[f],p[f+1],a,o)||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p[f],p[f+1]])}}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c])}}this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[a,new SuperMap.Geometry.Point(a.x+o,a.y)]),this.scalePoints=[];var g=a;g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g);var M=new SuperMap.Geometry.Point(a.x+o,a.y);M.isScalePoint=!0,M.tag=1,this.scalePoints.push(M),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2);return o>SuperMap.Plot.PlottingUtil.distance(i,l)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,l){var o=l.slice();o[0].x===o[o.length-1].x&&o[0].y===o[o.length-1].y||o.push(o[0]);for(var i,n=[],a=0;a<o.length-1;a++){var r=o[a],s=o[a+1],p=SuperMap.Plot.PlottingUtil.intersectLines(t,e,r,s);p.isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t,e)&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,r,s)&&n.push(p.intersectPoint)}for(var u=0;u<n.length-1;u++)SuperMap.Plot.PlottingUtil.isSamePt(n[u],n[u+1])&&(n.splice(u,1),u--);if(t.x>e.x)for(var c=0;c<n.length&&c!=n.length-1;c++)n[c].x<n[c+1].x&&(i=n[c],n[c]=n[c+1],n[c+1]=i);else if(t.x<e.x)for(var P=0;P<n.length&&P!=n.length-1;P++)n[P].x>n[P+1].x&&(i=n[P],n[P]=n[P+1],n[P+1]=i);else if(t.y>e.y)for(var S=0;S<n.length&&S!=n.length-1;S++)n[S].y<n[S+1].y&&(i=n[S],n[S]=n[S+1],n[S+1]=i);else if(t.y<e.y)for(var h=0;h<n.length&&h!=n.length-1;h++)n[h].y>n[h+1].y&&(i=n[h],n[h]=n[h+1],n[h+1]=i);return n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){for(var i=0,n=-1,a=null,r=0;r<l.length-1;r++){var s=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l[r],l[r+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.projectPoint,l[r],l[r+1])){var p=SuperMap.Plot.PlottingUtil.distance(s.projectPoint,e);0==i?(i=p,n=r,a=s.projectPoint):p<i&&(i=p,n=r,a=s.projectPoint)}}if(-1==n)return;for(var u=0,c=0;c<n;c++)u+=SuperMap.Plot.PlottingUtil.distance(l[c],l[c+1]);var P=(u+=SuperMap.Plot.PlottingUtil.distance(a,l[n]))/o;P>1&&(P=1),this.scaleValues[0]=P}if(1===t){var S=this.scaleValues[0]*o,h=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,S);if(-1===h.index)return;var y=SuperMap.Plot.PlottingUtil.distance(h.pt,e)/o;y>.4&&(y=.4),this.scaleValues[1]=y}}}}]),e}();SuperMap.Plot.AlgoSymbol12500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol4021102=e.AlgoSymbol4021101=e.AlgoSymbol6020404=e.AlgoSymbol6020403=e.AlgoSymbol4022102=e.AlgoSymbol4022101=e.AlgoSymbol4022100=e.AlgoSymbol4020402=e.AlgoSymbol4020401=e.AlgoSymbol4020303=e.AlgoSymbol4011101=e.AlgoSymbol4011100=e.AlgoSymbol4010905=e.AlgoSymbol4010801=e.AlgoSymbol4010800=e.AlgoSymbol3032000=e.AlgoSymbol3020901=e.AlgoSymbol3010304=e.AlgoSymbol3010303=e.AlgoSymbol6020402=e.AlgoSymbol6020401=e.AlgoSymbol6020400=e.AlgoSymbol3010302=void 0,e.AlgoSymbol3010301=e.AlgoSymbol3010108=e.AlgoSymbol3010107=e.AlgoSymbol3010106=e.AlgoSymbol3010105=e.AlgoSymbol3010104=e.AlgoSymbol3010103=e.AlgoSymbol3010102=e.AlgoSymbol2890001=e.AlgoSymbol2350001=e.AlgoSymbol44400=e.AlgoSymbol44300=e.AlgoSymbol44200=e.AlgoSymbol44100=e.AlgoSymbol43500=e.AlgoSymbol42700=e.AlgoSymbol42500=e.AlgoSymbol42400=e.AlgoSymbol42200=e.AlgoSymbol41202=e.AlgoSymbol41201=e.AlgoSymbol41200=e.AlgoSymbol41100=e.AlgoSymbol40900=e.AlgoSymbol40101=e.AlgoSymbol40100=e.AlgoSymbol40000=e.AlgoSymbol39802=e.AlgoSymbol39801=e.AlgoSymbol39800=e.AlgoSymbol39600=e.AlgoSymbol39500=e.AlgoSymbol39101=e.AlgoSymbol39000=e.AlgoSymbol38700=e.AlgoSymbol38600=e.AlgoSymbol37700=e.AlgoSymbol37601=e.AlgoSymbol37600=e.AlgoSymbol37301=e.AlgoSymbol37300=e.AlgoSymbol37200=e.AlgoSymbol37100=e.AlgoSymbol36800=e.AlgoSymbol36700=e.AlgoSymbol36600=e.AlgoSymbol36401=e.AlgoSymbol36400=e.AlgoSymbol35500=e.AlgoSymbol35304=e.AlgoSymbol35200=e.AlgoSymbol35000=e.AlgoSymbol34902=e.AlgoSymbol34901=e.AlgoSymbol34900=e.AlgoSymbol34801=e.AlgoSymbol34800=e.AlgoSymbol34700=e.AlgoSymbol34501=e.AlgoSymbol34500=e.AlgoSymbol34400=e.AlgoSymbol34300=e.AlgoSymbol33400=e.AlgoSymbol32900=e.AlgoSymbol32300=e.AlgoSymbol31803=e.AlgoSymbol31601=e.AlgoSymbol31600=e.AlgoSymbol31401=e.AlgoSymbol31400=e.AlgoSymbol31304=e.AlgoSymbol31303=e.AlgoSymbol31302=e.AlgoSymbol31301=e.AlgoSymbol31300=e.AlgoSymbol30102=e.AlgoSymbol30800=e.AlgoSymbol30201=e.AlgoSymbol30200=e.AlgoSymbol30100=e.AlgoSymbol30002=e.AlgoSymbol30001=e.AlgoSymbol30000=e.AlgoSymbol29903=e.AlgoSymbol29800=e.AlgoSymbol29401=e.AlgoSymbol29103=e.AlgoSymbol29101=e.AlgoSymbol29100=e.AlgoSymbol29003=e.AlgoSymbol29002=e.AlgoSymbol29001=e.AlgoSymbol29000=e.AlgoSymbol28900=e.AlgoSymbol28400=e.AlgoSymbol28301=e.AlgoSymbol28300=e.AlgoSymbol28201=e.AlgoSymbol28200=e.AlgoSymbol28100=void 0,e.AlgoSymbol28000=e.AlgoSymbol27902=e.AlgoSymbol27901=e.AlgoSymbol27900=e.AlgoSymbol27701=e.AlgoSymbol27700=e.AlgoSymbol27300=e.AlgoSymbol27100=e.AlgoSymbol26800=e.AlgoSymbol26700=e.AlgoSymbol26601=e.AlgoSymbol26600=e.AlgoSymbol26503=e.AlgoSymbol26502=e.AlgoSymbol26501=e.AlgoSymbol26500=e.AlgoSymbol26400=e.AlgoSymbol25901=e.AlgoSymbol25900=e.AlgoSymbol25801=e.AlgoSymbol25800=e.AlgoSymbol25701=e.AlgoSymbol25700=e.AlgoSymbol25601=e.AlgoSymbol25600=e.AlgoSymbol25503=e.AlgoSymbol25502=e.AlgoSymbol25501=e.AlgoSymbol25500=e.AlgoSymbol25400=e.AlgoSymbol25301=e.AlgoSymbol25300=e.AlgoSymbol25202=e.AlgoSymbol25201=e.AlgoSymbol25200=e.AlgoSymbol25101=e.AlgoSymbol25100=e.AlgoSymbol25000=e.AlgoSymbol24700=e.AlgoSymbol23902=e.AlgoSymbol23901=e.AlgoSymbol23700=e.AlgoSymbol23600=e.AlgoSymbol23500=e.AlgoSymbol23400=e.AlgoSymbol22200=e.AlgoSymbol22103=e.AlgoSymbol22000=e.AlgoSymbol21900=e.AlgoSymbol21800=e.AlgoSymbol21600=e.AlgoSymbol21504=e.AlgoSymbol21503=e.AlgoSymbol21502=e.AlgoSymbol21501=e.AlgoSymbol21500=e.AlgoSymbol21401=e.AlgoSymbol21400=e.AlgoSymbol20301=e.AlgoSymbol20300=e.AlgoSymbol17806=e.AlgoSymbol17805=e.AlgoSymbol17804=e.AlgoSymbol17803=e.AlgoSymbol17802=e.AlgoSymbol17801=e.AlgoSymbol17800=e.AlgoSymbol17704=e.AlgoSymbol17703=e.AlgoSymbol17700=e.AlgoSymbol17600=e.AlgoSymbol17501=e.AlgoSymbol17500=e.AlgoSymbol17401=e.AlgoSymbol17400=e.AlgoSymbol16900=e.AlgoSymbol16700=e.AlgoSymbol16500=e.AlgoSymbol16203=e.AlgoSymbol16202=e.AlgoSymbol16201=e.AlgoSymbol16200=e.AlgoSymbol16100=e.AlgoSymbol16001=e.AlgoSymbol16000=e.AlgoSymbol15900=e.AlgoSymbol15806=e.AlgoSymbol15805=e.AlgoSymbol15804=e.AlgoSymbol15803=e.AlgoSymbol15802=e.AlgoSymbol15801=e.AlgoSymbol15800=e.AlgoSymbol15202=e.AlgoSymbol15201=e.AlgoSymbol15200=e.AlgoSymbol13700=e.AlgoSymbol12502=e.AlgoSymbol12501=e.AlgoSymbol12500=void 0;var o=l(222),i=l(221),n=l(220),a=l(219),r=l(218),s=l(217),p=l(216),u=l(215),c=l(214),P=l(213),S=l(212),h=l(211),y=l(210),f=l(209),g=l(208),M=l(207),b=l(206),m=l(205),d=l(204),v=l(203),O=l(202),U=l(201),L=l(200),w=l(199),V=l(198),_=l(197),T=l(196),A=l(195),E=l(194),x=l(193),Y=l(192),j=l(191),C=l(190),I=l(189),G=l(188),B=l(187),R=l(186),N=l(185),D=l(184),k=l(183),z=l(182),F=l(181),K=l(180),W=l(179),q=l(178),J=l(177),H=l(176),Q=l(175),X=l(174),Z=l(173),$=l(172),tt=l(171),et=l(170),lt=l(169),ot=l(168),it=l(167),nt=l(166),at=l(165),rt=l(164),st=l(163),pt=l(162),ut=l(161),ct=l(160),Pt=l(159),St=l(158),ht=l(157),yt=l(156),ft=l(155),gt=l(154),Mt=l(153),bt=l(152),mt=l(151),dt=l(150),vt=l(149),Ot=l(148),Ut=l(147),Lt=l(146),wt=l(145),Vt=l(144),_t=l(143),Tt=l(142),At=l(141),Et=l(140),xt=l(139),Yt=l(138),jt=l(137),Ct=l(136),It=l(135),Gt=l(134),Bt=l(133),Rt=l(132),Nt=l(131),Dt=l(130),kt=l(129),zt=l(128),Ft=l(127),Kt=l(126),Wt=l(125),qt=l(124),Jt=l(123),Ht=l(122),Qt=l(121),Xt=l(120),Zt=l(119),$t=l(118),te=l(117),ee=l(116),le=l(115),oe=l(114),ie=l(113),ne=l(112),ae=l(111),re=l(110),se=l(109),pe=l(108),ue=l(107),ce=l(106),Pe=l(105),Se=l(104),he=l(103),ye=l(102),fe=l(101),ge=l(100),Me=l(99),be=l(98),me=l(97),de=l(96),ve=l(95),Oe=l(94),Ue=l(93),Le=l(92),we=l(91),Ve=l(90),_e=l(89),Te=l(88),Ae=l(87),Ee=l(86),xe=l(85),Ye=l(84),je=l(83),Ce=l(82),Ie=l(81),Ge=l(80),Be=l(79),Re=l(78),Ne=l(77),De=l(76),ke=l(75),ze=l(74),Fe=l(73),Ke=l(72),We=l(71),qe=l(70),Je=l(69),He=l(68),Qe=l(67),Xe=l(66),Ze=l(65),$e=l(64),tl=l(63),el=l(62),ll=l(61),ol=l(60),il=l(59),nl=l(58),al=l(57),rl=l(56),sl=l(55),pl=l(54),ul=l(53),cl=l(52),Pl=l(51),Sl=l(50),hl=l(49),yl=l(48),fl=l(47),gl=l(46),Ml=l(45),bl=l(44),ml=l(43),dl=l(42),vl=l(41),Ol=l(40),Ul=l(39),Ll=l(38),wl=l(37),Vl=l(36),_l=l(35),Tl=l(34),Al=l(33),El=l(32),xl=l(31),Yl=l(30),jl=l(29),Cl=l(28),Il=l(27),Gl=l(26),Bl=l(25),Rl=l(24),Nl=l(23),Dl=l(22),kl=l(21),zl=l(20),Fl=l(19),Kl=l(18),Wl=l(17),ql=l(16),Jl=l(15),Hl=l(14),Ql=l(13),Xl=l(12),Zl=l(11),$l=l(10),to=l(9),eo=l(8),lo=l(7),oo=l(6),io=l(5),no=l(4),ao=l(3),ro=l(2),so=l(1),po=l(0);e.AlgoSymbol12500=o.AlgoSymbol12500,e.AlgoSymbol12501=i.AlgoSymbol12501,e.AlgoSymbol12502=n.AlgoSymbol12502,e.AlgoSymbol13700=a.AlgoSymbol13700,e.AlgoSymbol15200=r.AlgoSymbol15200,e.AlgoSymbol15201=s.AlgoSymbol15201,e.AlgoSymbol15202=p.AlgoSymbol15202,e.AlgoSymbol15800=u.AlgoSymbol15800,e.AlgoSymbol15801=c.AlgoSymbol15801,e.AlgoSymbol15802=P.AlgoSymbol15802,e.AlgoSymbol15803=S.AlgoSymbol15803,e.AlgoSymbol15804=h.AlgoSymbol15804,e.AlgoSymbol15805=y.AlgoSymbol15805,e.AlgoSymbol15806=f.AlgoSymbol15806,e.AlgoSymbol15900=g.AlgoSymbol15900,e.AlgoSymbol16000=M.AlgoSymbol16000,e.AlgoSymbol16001=b.AlgoSymbol16001,e.AlgoSymbol16100=m.AlgoSymbol16100,e.AlgoSymbol16200=d.AlgoSymbol16200,e.AlgoSymbol16201=v.AlgoSymbol16201,e.AlgoSymbol16202=O.AlgoSymbol16202,e.AlgoSymbol16203=U.AlgoSymbol16203,e.AlgoSymbol16500=L.AlgoSymbol16500,e.AlgoSymbol16700=w.AlgoSymbol16700,e.AlgoSymbol16900=V.AlgoSymbol16900,e.AlgoSymbol17400=_.AlgoSymbol17400,e.AlgoSymbol17401=T.AlgoSymbol17401,e.AlgoSymbol17500=A.AlgoSymbol17500,e.AlgoSymbol17501=E.AlgoSymbol17501,e.AlgoSymbol17600=x.AlgoSymbol17600,e.AlgoSymbol17700=Y.AlgoSymbol17700,e.AlgoSymbol17703=j.AlgoSymbol17703,e.AlgoSymbol17704=C.AlgoSymbol17704,e.AlgoSymbol17800=I.AlgoSymbol17800,e.AlgoSymbol17801=G.AlgoSymbol17801,e.AlgoSymbol17802=B.AlgoSymbol17802,e.AlgoSymbol17803=R.AlgoSymbol17803,e.AlgoSymbol17804=N.AlgoSymbol17804,e.AlgoSymbol17805=D.AlgoSymbol17805,e.AlgoSymbol17806=k.AlgoSymbol17806,e.AlgoSymbol20300=z.AlgoSymbol20300,e.AlgoSymbol20301=F.AlgoSymbol20301,e.AlgoSymbol21400=K.AlgoSymbol21400,e.AlgoSymbol21401=W.AlgoSymbol21401,e.AlgoSymbol21500=q.AlgoSymbol21500,e.AlgoSymbol21501=J.AlgoSymbol21501,e.AlgoSymbol21502=H.AlgoSymbol21502,e.AlgoSymbol21503=Q.AlgoSymbol21503,e.AlgoSymbol21504=X.AlgoSymbol21504,e.AlgoSymbol21600=Z.AlgoSymbol21600,e.AlgoSymbol21800=$.AlgoSymbol21800,e.AlgoSymbol21900=tt.AlgoSymbol21900,e.AlgoSymbol22000=et.AlgoSymbol22000,e.AlgoSymbol22103=lt.AlgoSymbol22103,e.AlgoSymbol22200=ot.AlgoSymbol22200,e.AlgoSymbol23400=it.AlgoSymbol23400,e.AlgoSymbol23500=nt.AlgoSymbol23500,e.AlgoSymbol23600=at.AlgoSymbol23600,e.AlgoSymbol23700=rt.AlgoSymbol23700,e.AlgoSymbol23901=st.AlgoSymbol23901,e.AlgoSymbol23902=pt.AlgoSymbol23902,e.AlgoSymbol24700=ut.AlgoSymbol24700,e.AlgoSymbol25000=ct.AlgoSymbol25000,e.AlgoSymbol25100=Pt.AlgoSymbol25100,e.AlgoSymbol25101=St.AlgoSymbol25101,e.AlgoSymbol25200=ht.AlgoSymbol25200,e.AlgoSymbol25201=yt.AlgoSymbol25201,e.AlgoSymbol25202=ft.AlgoSymbol25202,e.AlgoSymbol25300=gt.AlgoSymbol25300,e.AlgoSymbol25301=Mt.AlgoSymbol25301,e.AlgoSymbol25400=bt.AlgoSymbol25400,e.AlgoSymbol25500=mt.AlgoSymbol25500,e.AlgoSymbol25501=dt.AlgoSymbol25501,e.AlgoSymbol25502=vt.AlgoSymbol25502,e.AlgoSymbol25503=Ot.AlgoSymbol25503,e.AlgoSymbol25600=Ut.AlgoSymbol25600,e.AlgoSymbol25601=Lt.AlgoSymbol25601,e.AlgoSymbol25700=wt.AlgoSymbol25700,e.AlgoSymbol25701=Vt.AlgoSymbol25701,e.AlgoSymbol25800=_t.AlgoSymbol25800,e.AlgoSymbol25801=Tt.AlgoSymbol25801,e.AlgoSymbol25900=At.AlgoSymbol25900,e.AlgoSymbol25901=Et.AlgoSymbol25901,e.AlgoSymbol26400=xt.AlgoSymbol26400,e.AlgoSymbol26500=Yt.AlgoSymbol26500,e.AlgoSymbol26501=jt.AlgoSymbol26501,e.AlgoSymbol26502=Ct.AlgoSymbol26502,e.AlgoSymbol26503=It.AlgoSymbol26503,e.AlgoSymbol26600=Gt.AlgoSymbol26600,e.AlgoSymbol26601=Bt.AlgoSymbol26601,e.AlgoSymbol26700=Rt.AlgoSymbol26700,e.AlgoSymbol26800=Nt.AlgoSymbol26800,e.AlgoSymbol27100=Dt.AlgoSymbol27100,e.AlgoSymbol27300=kt.AlgoSymbol27300,e.AlgoSymbol27700=zt.AlgoSymbol27700,e.AlgoSymbol27701=Ft.AlgoSymbol27701,e.AlgoSymbol27900=Kt.AlgoSymbol27900,e.AlgoSymbol27901=Wt.AlgoSymbol27901,e.AlgoSymbol27902=qt.AlgoSymbol27902,e.AlgoSymbol28000=Jt.AlgoSymbol28000,e.AlgoSymbol28100=Ht.AlgoSymbol28100,e.AlgoSymbol28200=Qt.AlgoSymbol28200,e.AlgoSymbol28201=Xt.AlgoSymbol28201,e.AlgoSymbol28300=Zt.AlgoSymbol28300,e.AlgoSymbol28301=$t.AlgoSymbol28301,e.AlgoSymbol28400=te.AlgoSymbol28400,e.AlgoSymbol28900=ee.AlgoSymbol28900,e.AlgoSymbol29000=le.AlgoSymbol29000,e.AlgoSymbol29001=oe.AlgoSymbol29001,e.AlgoSymbol29002=ie.AlgoSymbol29002,e.AlgoSymbol29003=ne.AlgoSymbol29003,e.AlgoSymbol29100=ae.AlgoSymbol29100,e.AlgoSymbol29101=re.AlgoSymbol29101,e.AlgoSymbol29103=se.AlgoSymbol29103,e.AlgoSymbol29401=pe.AlgoSymbol29401,e.AlgoSymbol29800=ue.AlgoSymbol29800,e.AlgoSymbol29903=ce.AlgoSymbol29903,e.AlgoSymbol30000=Pe.AlgoSymbol30000,e.AlgoSymbol30001=Se.AlgoSymbol30001,e.AlgoSymbol30002=he.AlgoSymbol30002,e.AlgoSymbol30100=ye.AlgoSymbol30100,e.AlgoSymbol30200=fe.AlgoSymbol30200,e.AlgoSymbol30201=ge.AlgoSymbol30201,e.AlgoSymbol30800=Me.AlgoSymbol30800,e.AlgoSymbol30102=be.AlgoSymbol30102,e.AlgoSymbol31300=me.AlgoSymbol31300,e.AlgoSymbol31301=de.AlgoSymbol31301,e.AlgoSymbol31302=ve.AlgoSymbol31302,e.AlgoSymbol31303=Oe.AlgoSymbol31303,e.AlgoSymbol31304=Ue.AlgoSymbol31304,e.AlgoSymbol31400=Le.AlgoSymbol31400,e.AlgoSymbol31401=we.AlgoSymbol31401,e.AlgoSymbol31600=Ve.AlgoSymbol31600,e.AlgoSymbol31601=_e.AlgoSymbol31601,e.AlgoSymbol31803=Te.AlgoSymbol31803,e.AlgoSymbol32300=Ae.AlgoSymbol32300,e.AlgoSymbol32900=Ee.AlgoSymbol32900,e.AlgoSymbol33400=xe.AlgoSymbol33400,e.AlgoSymbol34300=Ye.AlgoSymbol34300,e.AlgoSymbol34400=je.AlgoSymbol34400,e.AlgoSymbol34500=Ce.AlgoSymbol34500,e.AlgoSymbol34501=Ie.AlgoSymbol34501,e.AlgoSymbol34700=Ge.AlgoSymbol34700,e.AlgoSymbol34800=Be.AlgoSymbol34800,e.AlgoSymbol34801=Re.AlgoSymbol34801,e.AlgoSymbol34900=Ne.AlgoSymbol34900,e.AlgoSymbol34901=De.AlgoSymbol34901,e.AlgoSymbol34902=ke.AlgoSymbol34902,e.AlgoSymbol35000=ze.AlgoSymbol35000,e.AlgoSymbol35200=Fe.AlgoSymbol35200,e.AlgoSymbol35304=Ke.AlgoSymbol35304,e.AlgoSymbol35500=We.AlgoSymbol35500,e.AlgoSymbol36400=qe.AlgoSymbol36400,e.AlgoSymbol36401=Je.AlgoSymbol36401,e.AlgoSymbol36600=He.AlgoSymbol36600,e.AlgoSymbol36700=Qe.AlgoSymbol36700,e.AlgoSymbol36800=Xe.AlgoSymbol36800,e.AlgoSymbol37100=Ze.AlgoSymbol37100,e.AlgoSymbol37200=$e.AlgoSymbol37200,e.AlgoSymbol37300=tl.AlgoSymbol37300,e.AlgoSymbol37301=el.AlgoSymbol37301,e.AlgoSymbol37600=ll.AlgoSymbol37600,e.AlgoSymbol37601=ol.AlgoSymbol37601,e.AlgoSymbol37700=il.AlgoSymbol37700,e.AlgoSymbol38600=nl.AlgoSymbol38600,e.AlgoSymbol38700=al.AlgoSymbol38700,e.AlgoSymbol39000=rl.AlgoSymbol39000,e.AlgoSymbol39101=sl.AlgoSymbol39101,e.AlgoSymbol39500=pl.AlgoSymbol39500,e.AlgoSymbol39600=ul.AlgoSymbol39600,e.AlgoSymbol39800=cl.AlgoSymbol39800,e.AlgoSymbol39801=Pl.AlgoSymbol39801,e.AlgoSymbol39802=Sl.AlgoSymbol39802,e.AlgoSymbol40000=hl.AlgoSymbol40000,e.AlgoSymbol40100=yl.AlgoSymbol40100,e.AlgoSymbol40101=fl.AlgoSymbol40101,e.AlgoSymbol40900=gl.AlgoSymbol40900,e.AlgoSymbol41100=Ml.AlgoSymbol41100,e.AlgoSymbol41200=bl.AlgoSymbol41200,e.AlgoSymbol41201=ml.AlgoSymbol41201,e.AlgoSymbol41202=dl.AlgoSymbol41202,e.AlgoSymbol42200=vl.AlgoSymbol42200,e.AlgoSymbol42400=Ol.AlgoSymbol42400,e.AlgoSymbol42500=Ul.AlgoSymbol42500,e.AlgoSymbol42700=Ll.AlgoSymbol42700,e.AlgoSymbol43500=wl.AlgoSymbol43500,e.AlgoSymbol44100=Vl.AlgoSymbol44100,e.AlgoSymbol44200=_l.AlgoSymbol44200,e.AlgoSymbol44300=Tl.AlgoSymbol44300,e.AlgoSymbol44400=Al.AlgoSymbol44400,e.AlgoSymbol2350001=El.AlgoSymbol2350001,e.AlgoSymbol2890001=xl.AlgoSymbol2890001,e.AlgoSymbol3010102=Yl.AlgoSymbol3010102,e.AlgoSymbol3010103=jl.AlgoSymbol3010103,e.AlgoSymbol3010104=Cl.AlgoSymbol3010104,e.AlgoSymbol3010105=Il.AlgoSymbol3010105,e.AlgoSymbol3010106=Gl.AlgoSymbol3010106,e.AlgoSymbol3010107=Bl.AlgoSymbol3010107,e.AlgoSymbol3010108=Rl.AlgoSymbol3010108,e.AlgoSymbol3010301=Nl.AlgoSymbol3010301,e.AlgoSymbol3010302=Dl.AlgoSymbol3010302,e.AlgoSymbol6020400=kl.AlgoSymbol6020400,e.AlgoSymbol6020401=zl.AlgoSymbol6020401,e.AlgoSymbol6020402=Fl.AlgoSymbol6020402,e.AlgoSymbol3010303=Kl.AlgoSymbol3010303,e.AlgoSymbol3010304=Wl.AlgoSymbol3010304,e.AlgoSymbol3020901=ql.AlgoSymbol3020901,e.AlgoSymbol3032000=Jl.AlgoSymbol3032000,e.AlgoSymbol4010800=Hl.AlgoSymbol4010800,e.AlgoSymbol4010801=Ql.AlgoSymbol4010801,e.AlgoSymbol4010905=Xl.AlgoSymbol4010905,e.AlgoSymbol4011100=Zl.AlgoSymbol4011100,e.AlgoSymbol4011101=$l.AlgoSymbol4011101,e.AlgoSymbol4020303=to.AlgoSymbol4020303,e.AlgoSymbol4020401=eo.AlgoSymbol4020401,e.AlgoSymbol4020402=lo.AlgoSymbol4020402,e.AlgoSymbol4022100=oo.AlgoSymbol4022100,e.AlgoSymbol4022101=io.AlgoSymbol4022101,e.AlgoSymbol4022102=no.AlgoSymbol4022102,e.AlgoSymbol6020403=ao.AlgoSymbol6020403,e.AlgoSymbol6020404=ro.AlgoSymbol6020404,e.AlgoSymbol4021101=so.AlgoSymbol4021101,e.AlgoSymbol4021102=po.AlgoSymbol4021102},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JBAlgoSymbolFactory=void 0,l(223);e.JBAlgoSymbolFactory=SuperMap.Plot.JBAlgoSymbolFactory=SuperMap.Plot.JBAlgoSymbolFactory||{};SuperMap.Plot.JBAlgoSymbolFactory.getAlgoSymbol=function(t,e,l){if(100!==t)return new SuperMap.Plot.AlgoSymbol(l);switch(e){case 12500:return new SuperMap.Plot.AlgoSymbol12500(l);case 12501:return new SuperMap.Plot.AlgoSymbol12501(l);case 12502:return new SuperMap.Plot.AlgoSymbol12502(l);case 13700:return new SuperMap.Plot.AlgoSymbol13700(l);case 15200:return new SuperMap.Plot.AlgoSymbol15200(l);case 15201:case 23800:return new SuperMap.Plot.AlgoSymbol15201(l);case 15202:return new SuperMap.Plot.AlgoSymbol15202(l);case 15800:return new SuperMap.Plot.AlgoSymbol15800(l);case 15801:return new SuperMap.Plot.AlgoSymbol15801(l);case 15802:return new SuperMap.Plot.AlgoSymbol15802(l);case 15803:return new SuperMap.Plot.AlgoSymbol15803(l);case 15804:return new SuperMap.Plot.AlgoSymbol15804(l);case 15805:return new SuperMap.Plot.AlgoSymbol15805(l);case 15806:return new SuperMap.Plot.AlgoSymbol15806(l);case 15900:return new SuperMap.Plot.AlgoSymbol15900(l);case 16e3:return new SuperMap.Plot.AlgoSymbol16000(l);case 16001:return new SuperMap.Plot.AlgoSymbol16001(l);case 16100:return new SuperMap.Plot.AlgoSymbol16100(l);case 16200:return new SuperMap.Plot.AlgoSymbol16200(l);case 16201:return new SuperMap.Plot.AlgoSymbol16201(l);case 16202:return new SuperMap.Plot.AlgoSymbol16202(l);case 16203:return new SuperMap.Plot.AlgoSymbol16203(l);case 16500:return new SuperMap.Plot.AlgoSymbol16500(l);case 16700:return new SuperMap.Plot.AlgoSymbol16700(l);case 16900:return new SuperMap.Plot.AlgoSymbol16900(l);case 17400:return new SuperMap.Plot.AlgoSymbol17400(l);case 17401:return new SuperMap.Plot.AlgoSymbol17401(l);case 17500:return new SuperMap.Plot.AlgoSymbol17500(l);case 17501:return new SuperMap.Plot.AlgoSymbol17501(l);case 17600:return new SuperMap.Plot.AlgoSymbol17600(l);case 17700:return new SuperMap.Plot.AlgoSymbol17700(l);case 17703:return new SuperMap.Plot.AlgoSymbol17703(l);case 17704:return new SuperMap.Plot.AlgoSymbol17704(l);case 17800:return new SuperMap.Plot.AlgoSymbol17800(l);case 17801:return new SuperMap.Plot.AlgoSymbol17801(l);case 17802:return new SuperMap.Plot.AlgoSymbol17802(l);case 17803:return new SuperMap.Plot.AlgoSymbol17803(l);case 17804:return new SuperMap.Plot.AlgoSymbol17804(l);case 17805:return new SuperMap.Plot.AlgoSymbol17805(l);case 17806:return new SuperMap.Plot.AlgoSymbol17806(l);case 20300:return new SuperMap.Plot.AlgoSymbol20300(l);case 20301:return new SuperMap.Plot.AlgoSymbol20301(l);case 21401:return new SuperMap.Plot.AlgoSymbol21401(l);case 21500:return new SuperMap.Plot.AlgoSymbol21500(l);case 21501:return new SuperMap.Plot.AlgoSymbol21501(l);case 21502:return new SuperMap.Plot.AlgoSymbol21502(l);case 21503:return new SuperMap.Plot.AlgoSymbol21503(l);case 21504:return new SuperMap.Plot.AlgoSymbol21504(l);case 21600:return new SuperMap.Plot.AlgoSymbol21600(l);case 21800:return new SuperMap.Plot.AlgoSymbol21800(l);case 21900:return new SuperMap.Plot.AlgoSymbol21900(l);case 22e3:return new SuperMap.Plot.AlgoSymbol22000(l);case 22103:return new SuperMap.Plot.AlgoSymbol22103(l);case 22200:return new SuperMap.Plot.AlgoSymbol22200(l);case 23400:return new SuperMap.Plot.AlgoSymbol23400(l);case 23500:return new SuperMap.Plot.AlgoSymbol23500(l);case 2350001:return new SuperMap.Plot.AlgoSymbol2350001(l);case 23600:return new SuperMap.Plot.AlgoSymbol23600(l);case 23700:return new SuperMap.Plot.AlgoSymbol23700(l);case 23901:return new SuperMap.Plot.AlgoSymbol23901(l);case 23902:return new SuperMap.Plot.AlgoSymbol23902(l);case 24700:return new SuperMap.Plot.AlgoSymbol24700(l);case 25e3:return new SuperMap.Plot.AlgoSymbol25000(l);case 25100:return new SuperMap.Plot.AlgoSymbol25100(l);case 25101:return new SuperMap.Plot.AlgoSymbol25101(l);case 25200:return new SuperMap.Plot.AlgoSymbol25200(l);case 21400:case 25201:return new SuperMap.Plot.AlgoSymbol25201(l);case 25202:return new SuperMap.Plot.AlgoSymbol25202(l);case 25300:return new SuperMap.Plot.AlgoSymbol25300(l);case 25301:return new SuperMap.Plot.AlgoSymbol25301(l);case 25400:return new SuperMap.Plot.AlgoSymbol25400(l);case 25500:return new SuperMap.Plot.AlgoSymbol25500(l);case 25501:return new SuperMap.Plot.AlgoSymbol25501(l);case 25502:return new SuperMap.Plot.AlgoSymbol25502(l);case 25503:return new SuperMap.Plot.AlgoSymbol25503(l);case 25600:return new SuperMap.Plot.AlgoSymbol25600(l);case 25601:return new SuperMap.Plot.AlgoSymbol25601(l);case 25700:return new SuperMap.Plot.AlgoSymbol25700(l);case 25701:return new SuperMap.Plot.AlgoSymbol25701(l);case 25800:return new SuperMap.Plot.AlgoSymbol25800(l);case 25801:return new SuperMap.Plot.AlgoSymbol25801(l);case 25900:return new SuperMap.Plot.AlgoSymbol25900(l);case 25901:return new SuperMap.Plot.AlgoSymbol25901(l);case 26400:return new SuperMap.Plot.AlgoSymbol26400(l);case 26500:return new SuperMap.Plot.AlgoSymbol26500(l);case 26501:return new SuperMap.Plot.AlgoSymbol26501(l);case 26502:return new SuperMap.Plot.AlgoSymbol26502(l);case 26503:return new SuperMap.Plot.AlgoSymbol26503(l);case 26600:return new SuperMap.Plot.AlgoSymbol26600(l);case 26601:return new SuperMap.Plot.AlgoSymbol26601(l);case 26700:return new SuperMap.Plot.AlgoSymbol26700(l);case 26800:return new SuperMap.Plot.AlgoSymbol26800(l);case 27100:return new SuperMap.Plot.AlgoSymbol27100(l);case 27300:return new SuperMap.Plot.AlgoSymbol27300(l);case 27700:return new SuperMap.Plot.AlgoSymbol27700(l);case 27701:return new SuperMap.Plot.AlgoSymbol27701(l);case 27900:return new SuperMap.Plot.AlgoSymbol27900(l);case 27901:return new SuperMap.Plot.AlgoSymbol27901(l);case 27902:return new SuperMap.Plot.AlgoSymbol27902(l);case 28e3:return new SuperMap.Plot.AlgoSymbol28000(l);case 28100:return new SuperMap.Plot.AlgoSymbol28100(l);case 28200:return new SuperMap.Plot.AlgoSymbol28200(l);case 28201:return new SuperMap.Plot.AlgoSymbol28201(l);case 28300:return new SuperMap.Plot.AlgoSymbol28300(l);case 28301:return new SuperMap.Plot.AlgoSymbol28301(l);case 28400:return new SuperMap.Plot.AlgoSymbol28400(l);case 28900:return new SuperMap.Plot.AlgoSymbol28900(l);case 29e3:return new SuperMap.Plot.AlgoSymbol29000(l);case 29001:return new SuperMap.Plot.AlgoSymbol29001(l);case 29002:return new SuperMap.Plot.AlgoSymbol29002(l);case 29003:return new SuperMap.Plot.AlgoSymbol29003(l);case 29100:return new SuperMap.Plot.AlgoSymbol29100(l);case 29101:return new SuperMap.Plot.AlgoSymbol29101(l);case 29103:return new SuperMap.Plot.AlgoSymbol29103(l);case 29401:return new SuperMap.Plot.AlgoSymbol29401(l);case 29800:return new SuperMap.Plot.AlgoSymbol29800(l);case 29903:return new SuperMap.Plot.AlgoSymbol29903(l);case 3e4:return new SuperMap.Plot.AlgoSymbol30000(l);case 30001:return new SuperMap.Plot.AlgoSymbol30001(l);case 30002:return new SuperMap.Plot.AlgoSymbol30002(l);case 30100:case 4020400:return new SuperMap.Plot.AlgoSymbol30100(l);case 30200:return new SuperMap.Plot.AlgoSymbol30200(l);case 30201:return new SuperMap.Plot.AlgoSymbol30201(l);case 30800:return new SuperMap.Plot.AlgoSymbol30800(l);case 30102:return new SuperMap.Plot.AlgoSymbol30102(l);case 31300:return new SuperMap.Plot.AlgoSymbol31300(l);case 31301:return new SuperMap.Plot.AlgoSymbol31301(l);case 31302:return new SuperMap.Plot.AlgoSymbol31302(l);case 31303:return new SuperMap.Plot.AlgoSymbol31303(l);case 31304:return new SuperMap.Plot.AlgoSymbol31304(l);case 31400:return new SuperMap.Plot.AlgoSymbol31400(l);case 31401:return new SuperMap.Plot.AlgoSymbol31401(l);case 31600:return new SuperMap.Plot.AlgoSymbol31600(l);case 31601:return new SuperMap.Plot.AlgoSymbol31601(l);case 31803:return new SuperMap.Plot.AlgoSymbol31803(l);case 32300:return new SuperMap.Plot.AlgoSymbol32300(l);case 32900:return new SuperMap.Plot.AlgoSymbol32900(l);case 33400:return new SuperMap.Plot.AlgoSymbol33400(l);case 34300:return new SuperMap.Plot.AlgoSymbol34300(l);case 34400:return new SuperMap.Plot.AlgoSymbol34400(l);case 34500:return new SuperMap.Plot.AlgoSymbol34500(l);case 34501:return new SuperMap.Plot.AlgoSymbol34501(l);case 34700:return new SuperMap.Plot.AlgoSymbol34700(l);case 34800:return new SuperMap.Plot.AlgoSymbol34800(l);case 34801:return new SuperMap.Plot.AlgoSymbol34801(l);case 34900:return new SuperMap.Plot.AlgoSymbol34900(l);case 34901:return new SuperMap.Plot.AlgoSymbol34901(l);case 34902:return new SuperMap.Plot.AlgoSymbol34902(l);case 35e3:return new SuperMap.Plot.AlgoSymbol35000(l);case 35200:return new SuperMap.Plot.AlgoSymbol35200(l);case 35304:return new SuperMap.Plot.AlgoSymbol35304(l);case 35500:return new SuperMap.Plot.AlgoSymbol35500(l);case 36400:return new SuperMap.Plot.AlgoSymbol36400(l);case 36401:return new SuperMap.Plot.AlgoSymbol36401(l);case 36600:return new SuperMap.Plot.AlgoSymbol36600(l);case 36700:return new SuperMap.Plot.AlgoSymbol36700(l);case 36800:return new SuperMap.Plot.AlgoSymbol36800(l);case 37100:return new SuperMap.Plot.AlgoSymbol37100(l);case 37200:return new SuperMap.Plot.AlgoSymbol37200(l);case 37300:return new SuperMap.Plot.AlgoSymbol37300(l);case 37301:return new SuperMap.Plot.AlgoSymbol37301(l);case 37600:return new SuperMap.Plot.AlgoSymbol37600(l);case 37601:return new SuperMap.Plot.AlgoSymbol37601(l);case 37700:return new SuperMap.Plot.AlgoSymbol37700(l);case 38600:return new SuperMap.Plot.AlgoSymbol38600(l);case 38700:return new SuperMap.Plot.AlgoSymbol38700(l);case 39e3:return new SuperMap.Plot.AlgoSymbol39000(l);case 39101:return new SuperMap.Plot.AlgoSymbol39101(l);case 39500:return new SuperMap.Plot.AlgoSymbol39500(l);case 39600:return new SuperMap.Plot.AlgoSymbol39600(l);case 39800:return new SuperMap.Plot.AlgoSymbol39800(l);case 39801:return new SuperMap.Plot.AlgoSymbol39801(l);case 39802:return new SuperMap.Plot.AlgoSymbol39802(l);case 4e4:return new SuperMap.Plot.AlgoSymbol40000(l);case 40100:return new SuperMap.Plot.AlgoSymbol40100(l);case 40101:return new SuperMap.Plot.AlgoSymbol40101(l);case 40900:return new SuperMap.Plot.AlgoSymbol40900(l);case 41100:return new SuperMap.Plot.AlgoSymbol41100(l);case 41200:return new SuperMap.Plot.AlgoSymbol41200(l);case 41201:return new SuperMap.Plot.AlgoSymbol41201(l);case 41202:return new SuperMap.Plot.AlgoSymbol41202(l);case 42200:return new SuperMap.Plot.AlgoSymbol42200(l);case 42400:return new SuperMap.Plot.AlgoSymbol42400(l);case 42500:return new SuperMap.Plot.AlgoSymbol42500(l);case 42700:return new SuperMap.Plot.AlgoSymbol42700(l);case 43500:return new SuperMap.Plot.AlgoSymbol43500(l);case 44100:return new SuperMap.Plot.AlgoSymbol44100(l);case 44200:return new SuperMap.Plot.AlgoSymbol44200(l);case 44300:return new SuperMap.Plot.AlgoSymbol44300(l);case 44400:return new SuperMap.Plot.AlgoSymbol44400(l);case 2890001:return new SuperMap.Plot.AlgoSymbol2890001(l);case 3010301:return new SuperMap.Plot.AlgoSymbol3010301(l);case 3010302:return new SuperMap.Plot.AlgoSymbol3010302(l);case 3010303:return new SuperMap.Plot.AlgoSymbol3010303(l);case 3010304:return new SuperMap.Plot.AlgoSymbol3010304(l);case 3010102:return new SuperMap.Plot.AlgoSymbol3010102(l);case 3010103:return new SuperMap.Plot.AlgoSymbol3010103(l);case 3010104:return new SuperMap.Plot.AlgoSymbol3010104(l);case 3010105:return new SuperMap.Plot.AlgoSymbol3010105(l);case 3010106:return new SuperMap.Plot.AlgoSymbol3010106(l);case 3010107:return new SuperMap.Plot.AlgoSymbol3010107(l);case 3010108:return new SuperMap.Plot.AlgoSymbol3010108(l);case 3020901:return new SuperMap.Plot.AlgoSymbol3020901(l);case 3032e3:return new SuperMap.Plot.AlgoSymbol3032000(l);case 4010800:return new SuperMap.Plot.AlgoSymbol4010800(l);case 4010801:return new SuperMap.Plot.AlgoSymbol4010801(l);case 4010905:return new SuperMap.Plot.AlgoSymbol4010905(l);case 4011100:return new SuperMap.Plot.AlgoSymbol4011100(l);case 4011101:return new SuperMap.Plot.AlgoSymbol4011101(l);case 4020303:return new SuperMap.Plot.AlgoSymbol4020303(l);case 4020401:return new SuperMap.Plot.AlgoSymbol4020401(l);case 4020402:return new SuperMap.Plot.AlgoSymbol4020402(l);case 4021101:return new SuperMap.Plot.AlgoSymbol4021101(l);case 4021102:return new SuperMap.Plot.AlgoSymbol4021102(l);case 4022100:return new SuperMap.Plot.AlgoSymbol4022100(l);case 4022101:return new SuperMap.Plot.AlgoSymbol4022101(l);case 4022102:return new SuperMap.Plot.AlgoSymbol4022102(l);case 6020400:return new SuperMap.Plot.AlgoSymbol6020400(l);case 6020401:return new SuperMap.Plot.AlgoSymbol6020401(l);case 6020402:return new SuperMap.Plot.AlgoSymbol6020402(l);case 6020403:return new SuperMap.Plot.AlgoSymbol6020403(l);case 6020404:return new SuperMap.Plot.AlgoSymbol6020404(l);default:return new SuperMap.Plot.AlgoSymbol(l)}},SuperMap.Plot.JBAlgoSymbolFactory.isAccessServer=function(t,e){if(100!==t)return!0;switch(e){case 12500:case 12501:case 12502:case 13700:case 15200:case 15201:case 15202:case 15800:case 15801:case 15802:case 15803:case 15804:case 15805:case 15806:case 15900:case 16e3:case 16001:case 16100:case 16200:case 16201:case 16202:case 16203:case 16500:case 16700:case 16900:case 17400:case 17401:case 17500:case 17501:case 17600:case 17700:case 17703:case 17704:case 17800:case 17801:case 17802:case 17803:case 17804:case 17805:case 17806:case 20300:case 20301:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21800:case 21900:case 22e3:case 22103:case 22200:case 23400:case 23500:case 23600:case 23700:case 23800:case 23901:case 23902:case 24700:case 25e3:case 25100:case 25101:case 25200:case 25201:case 25202:case 25300:case 25301:case 25400:case 25500:case 25501:case 25502:case 25503:case 25600:case 25601:case 25700:case 25701:case 25800:case 25801:case 25900:case 25901:case 26400:case 26500:case 26501:case 26502:case 26503:case 26600:case 26601:case 26700:case 26800:case 27100:case 27300:case 27700:case 27701:case 27900:case 27901:case 27902:case 28e3:case 28100:case 28200:case 28201:case 28300:case 28301:case 28400:case 28900:case 29e3:case 29001:case 29002:case 29003:case 29100:case 29101:case 29103:case 29401:case 29800:case 29903:case 3e4:case 30001:case 30002:case 30100:case 30200:case 30201:case 30800:case 30102:case 31300:case 31301:case 31302:case 31303:case 31304:case 31400:case 31401:case 31600:case 31601:case 31803:case 32300:case 32900:case 33400:case 34300:case 34400:case 34500:case 34501:case 34700:case 34800:case 34801:case 34900:case 34901:case 34902:case 35e3:case 35200:case 35304:case 35500:case 36400:case 36401:case 36600:case 36700:case 36800:case 37100:case 37200:case 37300:case 37301:case 37600:case 37601:case 37700:case 38600:case 38700:case 39e3:case 39101:case 39500:case 39600:case 39800:case 39801:case 39802:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 4e4:case 40100:case 40101:case 40900:case 41100:case 41200:case 41201:case 41202:case 42200:case 42400:case 42500:case 42700:case 43500:case 44100:case 44200:case 44300:case 44400:case 2350001:case 2890001:case 3010301:case 3010302:case 3010303:case 3010304:case 3020901:case 3032e3:case 4010800:case 4010801:case 4010905:case 4011100:case 4011101:case 4020303:case 4020400:case 4020401:case 4020402:case 4022100:case 4022101:case 4022102:case 6020400:case 6020401:case 6020402:case 6020403:case 6020404:case 4021101:case 4021102:return!1;default:return!0}},SuperMap.Plot.JBAlgoSymbolFactory.getSymbolWayType=function(t,e){if(100!==t)return SuperMap.Plot.AddPoint_WayType.UNKNOWN;switch(e){case 15200:case 15201:case 16203:case 17703:case 17704:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21900:case 22e3:case 22103:case 23800:case 24700:case 25201:case 25400:case 26500:case 26501:case 26502:case 26600:case 28900:case 29e3:case 29003:case 29903:case 3e4:case 30001:case 30002:case 30100:case 30102:case 30200:case 30201:case 30800:case 31803:case 33400:case 34900:case 34901:case 34902:case 35e3:case 36400:case 42200:case 44200:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 16500:case 17400:case 17401:case 17500:case 17501:case 23400:case 23500:case 23600:case 23700:case 27300:case 28200:case 28300:case 28400:case 37600:case 37601:case 37700:case 39e3:case 40100:case 40101:case 42400:case 2350001:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022100:case 4022101:case 4022102:case 39101:case 44300:case 22200:case 27701:return SuperMap.Plot.AddPoint_WayType.CURVE;case 12500:case 12502:case 16100:case 20300:case 25501:case 25502:case 26503:case 25503:case 25601:case 25801:case 25901:case 32900:case 34700:case 35200:case 36401:case 41200:case 41201:case 41202:case 42700:case 44400:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}},SuperMap.Plot.JBAlgoSymbolFactory.getDefaultSubSymbols=function(t,e){var l=[];if(100!==t)return l;switch(e){case 17400:case 17401:return l.push(new SuperMap.Plot.SubSymbol(100,17300)),l.push(new SuperMap.Plot.SubSymbol(100,17301)),l;case 21501:case 26502:return l.push(new SuperMap.Plot.SubSymbol(100,19700)),l;case 21502:return l.push(new SuperMap.Plot.SubSymbol(100,6803)),l;case 22103:case 26501:return l.push(new SuperMap.Plot.SubSymbol(100,22100)),l;case 21503:return l.push(new SuperMap.Plot.SubSymbol(100,7900)),l;case 21504:return l.push(new SuperMap.Plot.SubSymbol(100,8404)),l;case 22e3:return l.push(new SuperMap.Plot.SubSymbol(100,1e3)),l;case 23500:return l.push(new SuperMap.Plot.SubSymbol(100,1300)),l;case 23600:return l.push(new SuperMap.Plot.SubSymbol(100,800)),l.push(new SuperMap.Plot.SubSymbol(100,800)),l;case 25300:return l.push(new SuperMap.Plot.SubSymbol(100,6302)),l.push(new SuperMap.Plot.SubSymbol(100,7900)),l;case 25301:return l.push(new SuperMap.Plot.SubSymbol(100,300)),l.push(new SuperMap.Plot.SubSymbol(100,6200)),l;case 25503:return l.push(new SuperMap.Plot.SubSymbol(100,8402)),l;case 26700:return l.push(new SuperMap.Plot.SubSymbol(100,4500)),l;case 27100:return l.push(new SuperMap.Plot.SubSymbol(100,7700)),l;case 27300:return l.push(new SuperMap.Plot.SubSymbol(100,1500)),l;case 3032e3:return l.push(new SuperMap.Plot.SubSymbol(100,1500)),l.push(new SuperMap.Plot.SubSymbol(100,1500)),l;case 28300:return l.push(new SuperMap.Plot.SubSymbol(100,18600)),l;case 28301:return l.push(new SuperMap.Plot.SubSymbol(100,18600)),l.push(new SuperMap.Plot.SubSymbol(100,18600)),l;case 28400:return l.push(new SuperMap.Plot.SubSymbol(100,4801)),l;case 29001:return l.push(new SuperMap.Plot.SubSymbol(100,5200)),l.push(new SuperMap.Plot.SubSymbol(100,5200)),l;case 29002:return l.push(new SuperMap.Plot.SubSymbol(100,600)),l.push(new SuperMap.Plot.SubSymbol(100,5300)),l;case 23901:case 23902:return l.push(new SuperMap.Plot.SubSymbol(100,4800)),l;case 31600:case 31601:return l.push(new SuperMap.Plot.SubSymbol(100,700)),l;case 29903:case 4021101:return l.push(new SuperMap.Plot.SubSymbol(100,600)),l;case 32900:return l.push(new SuperMap.Plot.SubSymbol(100,6700)),l;case 35200:return l.push(new SuperMap.Plot.SubSymbol(100,6803)),l;case 37700:return l.push(new SuperMap.Plot.SubSymbol(100,37800)),l;case 3010107:return l.push(new SuperMap.Plot.SubSymbol(100,800)),l;case 3010108:return l.push(new SuperMap.Plot.SubSymbol(100,4600)),l;case 4010800:return l.push(new SuperMap.Plot.SubSymbol(100,1300)),l;case 4010801:case 4022100:case 4022101:case 4022102:case 4021102:return l.push(new SuperMap.Plot.SubSymbol(100,8400)),l;case 31303:case 31302:return l.push(new SuperMap.Plot.SubSymbol(100,4400)),l;case 4010905:return l.push(new SuperMap.Plot.SubSymbol(100,700)),l;case 31803:return l.push(new SuperMap.Plot.SubSymbol(100,8402)),l;case 34400:return l.push(new SuperMap.Plot.SubSymbol(100,6202)),l;case 34501:return l.push(new SuperMap.Plot.SubSymbol(100,8403)),l;case 35304:return l.push(new SuperMap.Plot.SubSymbol(100,35301)),l;case 36401:return l.push(new SuperMap.Plot.SubSymbol(100,7200)),l;case 36600:return l.push(new SuperMap.Plot.SubSymbol(100,300)),l;case 37100:return l.push(new SuperMap.Plot.SubSymbol(100,8e3)),l;case 37200:return l.push(new SuperMap.Plot.SubSymbol(100,7101)),l;case 37600:case 37601:case 38600:case 38700:return l.push(new SuperMap.Plot.SubSymbol(100,4600)),l;case 39e3:return l.push(new SuperMap.Plot.SubSymbol(100,9300)),l.push(new SuperMap.Plot.SubSymbol(100,9300)),l.push(new SuperMap.Plot.SubSymbol(100,9300)),l;case 39101:return l.push(new SuperMap.Plot.SubSymbol(100,39100)),l;case 39500:case 39600:return l.push(new SuperMap.Plot.SubSymbol(100,8700)),l;case 39800:case 39801:case 39802:case 4e4:return l.push(new SuperMap.Plot.SubSymbol(100,8900)),l;case 36700:return l.push(new SuperMap.Plot.SubSymbol(100,300)),l;case 42200:return l.push(new SuperMap.Plot.SubSymbol(100,20901)),l;case 4011100:return l.push(new SuperMap.Plot.SubSymbol(100,4e3)),l.push(new SuperMap.Plot.SubSymbol(100,4001)),l;case 4011101:return l.push(new SuperMap.Plot.SubSymbol(100,700)),l.push(new SuperMap.Plot.SubSymbol(100,700)),l;case 2350001:return l.push(new SuperMap.Plot.SubSymbol(100,7900)),l.push(new SuperMap.Plot.SubSymbol(100,1300)),l;case 2890001:return l.push(new SuperMap.Plot.SubSymbol(100,4003)),l;default:return l}},SuperMap.Plot.JBAlgoSymbolFactory.getMinEditPts=function(t,e){if(100!==t)return 0;switch(e){case 12500:case 12501:case 12502:case 13700:case 15200:case 15201:case 15202:case 15800:case 15801:case 15802:case 15803:case 15804:case 15805:case 15806:case 15900:case 16e3:case 16001:case 16200:case 16201:case 16202:case 16203:case 16500:case 16700:case 16900:case 17400:case 17401:case 17500:case 17501:case 17600:case 17700:case 17703:case 17704:case 17800:case 17801:case 17802:case 17803:case 17804:case 17805:case 17806:case 20300:case 20301:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21800:case 21900:case 22e3:case 22103:case 22200:case 23400:case 23500:case 23600:case 23700:case 23800:case 23901:case 23902:case 24700:case 25e3:case 25100:case 25101:case 25201:case 25202:case 25300:case 25301:case 25400:case 26400:case 26500:case 26501:case 26502:case 26503:case 26600:case 26601:case 26700:case 26800:case 27100:case 27300:case 27700:case 27701:case 27900:case 27901:case 27902:case 28e3:case 28100:case 28200:case 28201:case 28300:case 28301:case 28400:case 28900:case 29e3:case 29001:case 29002:case 29003:case 29100:case 29101:case 29103:case 29401:case 29903:case 41100:case 44100:case 43500:case 42500:case 39500:case 37301:case 37300:case 37200:case 37100:case 36800:case 36600:case 35500:case 34801:case 34800:case 34501:case 34500:case 34400:case 34300:case 31600:case 31601:case 31401:case 31400:case 31304:case 31303:case 31302:case 31301:case 31300:case 44200:case 41200:case 41201:case 41202:case 31803:case 30800:case 30201:case 30200:case 44300:case 42400:case 42200:case 40900:case 40100:case 40101:case 4e4:case 39802:case 39801:case 39800:case 39600:case 39101:case 39e3:case 38600:case 37700:case 37601:case 37600:case 36700:case 36401:case 36400:case 35304:case 35200:case 35e3:case 34700:case 33400:case 30100:case 30102:case 30002:case 30001:case 3e4:case 38700:case 32300:case 42700:case 34902:case 34901:case 34900:case 32900:case 2350001:case 2890001:case 3032e3:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 3020901:case 4021101:case 4021102:case 4010800:case 4010801:case 4011100:case 4011101:case 4022101:case 4022102:case 4020303:case 4020400:case 4020401:case 4020402:case 4022100:case 4010905:case 6020400:case 6020401:case 6020402:case 6020403:case 6020404:return 2;case 16100:case 25200:case 25500:case 25501:case 25502:case 25503:case 25600:case 25601:case 25700:case 25701:case 25800:case 25801:case 25900:case 25901:case 29800:case 44400:return 3;default:return 0}},SuperMap.Plot.JBAlgoSymbolFactory.getMaxEditPts=function(t,e){if(100!==t)return 0;switch(e){case 15202:case 16202:case 20301:case 16700:case 16900:case 17600:case 25e3:case 25100:case 25101:case 25300:case 25301:case 27100:case 27700:case 27900:case 27901:case 27902:case 28100:case 28201:case 28301:case 44100:case 43500:case 42500:case 39500:case 37301:case 37300:case 37200:case 37100:case 36800:case 36600:case 35500:case 34801:case 34800:case 34501:case 34500:case 34400:case 34300:case 31600:case 31601:case 31401:case 31400:case 31304:case 31303:case 31302:case 31301:case 31300:case 21800:case 26700:case 29401:return 2;case 13700:case 17800:case 17801:case 17802:case 17803:case 17804:case 17805:case 17806:case 23901:case 23902:case 38700:case 26800:case 29001:case 29002:case 32300:case 29101:case 29100:case 4010905:case 6020400:case 6020401:case 6020402:case 6020403:case 29e3:return 3;case 28e3:return 4;case 16201:case 17400:case 17401:case 17500:case 17501:case 22200:case 23400:case 23500:case 2350001:case 23600:case 23700:case 23800:case 25200:case 27300:case 27701:case 28400:case 44300:case 42400:case 42200:case 40900:case 40100:case 40101:case 4e4:case 39802:case 39801:case 39800:case 39600:case 39101:case 39e3:case 38600:case 37700:case 37601:case 37600:case 36700:case 36401:case 36400:case 35304:case 35200:case 35e3:case 34700:case 33400:case 30100:case 30102:case 30002:case 30001:case 3e4:case 29903:case 29800:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022101:case 4022102:case 4020303:case 4020400:case 4020401:case 4020402:case 4022100:case 16500:return 30;case 42700:case 34902:case 34901:case 34900:case 32900:case 6020404:return 512;case 12500:case 12501:case 12502:case 16e3:case 16001:case 16100:case 16200:case 16203:case 17700:case 17703:case 17704:case 21900:case 22e3:case 22103:case 25201:case 25202:case 24700:case 25400:case 25500:case 25501:case 25502:case 25503:case 25600:case 25601:case 25700:case 25701:case 25800:case 25801:case 25900:case 25901:case 28900:case 2890001:case 44400:case 44200:case 41200:case 41201:case 41202:case 31803:case 30800:case 30201:case 30200:case 4021102:case 29103:case 28300:case 28200:case 29003:return 1e3;case 15200:case 15201:case 15800:case 15801:case 15802:case 15803:case 15804:case 15805:case 15806:case 15900:case 20300:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 26400:case 26500:case 26501:case 26502:case 26503:case 26600:case 26601:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 3020901:case 4021101:case 41100:return 9999;default:return 0}},SuperMap.Plot.JBAlgoSymbolFactory.getDefaultStyle=function(t,e){var l={};if(100===t)switch(e){case 34800:case 34801:case 22200:case 28e3:case 28100:case 28200:case 28201:case 44400:l.color=l.strokeColor="#0000ff";break;case 42500:case 42700:l.color=l.strokeColor="#00ff00";break;case 42400:l.color=l.strokeColor="#006600"}return l},SuperMap.Plot.JBAlgoSymbolFactory.zoomInCalSymbol=function(){return!1}},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JBAlgoSymbolFactory=void 0;var o=l(224);e.JBAlgoSymbolFactory=o.JBAlgoSymbolFactory}]);

/***/ }),
/* 2 */
/***/ (function(module, exports) {

/*!
 * 
 *          iclient-plot-algorithms-wj.(http://iclient.supermap.io)
 *          Copyright© 2000 - 2020 SuperMap Software Co.Ltd
 *          version: v10.1.0-beta
 *         
 */!function(t){var e={};function l(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,l),i.l=!0,i.exports}l.m=t,l.c=e,l.d=function(t,e,o){l.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},l.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(l.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)l.d(o,i,function(e){return t[e]}.bind(null,i));return o},l.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="",l(l.s=190)}([function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6030601=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0]*e,o=t[0].clone(),i=t[1].clone(),n=SuperMap.Plot.PlottingUtil.linePnt(i,o,e+.2*e),r=SuperMap.Plot.PlottingUtil.linePnt(o,i,e+.2*e),a=1.5*l,s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,i,n),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,o,r),u=SuperMap.Plot.PlottingUtil.paraLine(t,l,!0),c=SuperMap.Plot.PlottingUtil.paraLine(t,l,!1),P=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],3*e/11),S=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],4*e/11),h=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],7*e/11),y=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],8*e/11),f=[];f.push(s.pntRight),f.push(u[0]),f.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var g=[];g.push(S),g.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g);var b=[];b.push(y),b.push(u[u.length-1]),b.push(p.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var M=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],3*e/11),m=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],4*e/11),d=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],7*e/11),v=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],8*e/11),O=[];O.push(s.pntLeft),O.push(c[0]),O.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O);var U=[];U.push(m),U.push(d),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U);var L=[];L.push(v),L.push(c[c.length-1]),L.push(p.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L);var w=new SuperMap.Geometry.Point((s.pntLeft.x+s.pntRight.x)/2,(s.pntLeft.y+s.pntRight.y)/2),_=new SuperMap.Geometry.Point((P.x+M.x)/2,(P.y+M.y)/2),V=[];V.push(w),V.push(_),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V);var A=SuperMap.Plot.PlottingUtil.radian(w,_)*SuperMap.Plot.PlottingUtil.RTOD,T=SuperMap.Plot.PlottingUtil.distance(w,_),E=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8,w,_),x=SuperMap.Plot.PlottingUtil.circlePoint(E,.025*T,.025*T,A+90),j=SuperMap.Plot.PlottingUtil.circlePoint(E,.025*T,.025*T,A-90),C=[];C.push(x),C.push(j),C.push(_);var Y={fillLimit:!0,fill:!0};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,C,Y);var I=new SuperMap.Geometry.Point((p.pntLeft.x+p.pntRight.x)/2,(p.pntLeft.y+p.pntRight.y)/2),B=new SuperMap.Geometry.Point((y.x+v.x)/2,(y.y+v.y)/2),R=[];R.push(I),R.push(B),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,R);var G=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8,I,B),N=SuperMap.Plot.PlottingUtil.circlePoint(G,.025*T,.025*T,A+90),D=SuperMap.Plot.PlottingUtil.circlePoint(G,.025*T,.025*T,A-90),k=[];k.push(N),k.push(D),k.push(B),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,k,Y),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol6030601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6031001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=this.subSymbols[0].symbolData.symbolSize.x;var o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMap.Plot.PlottingUtil.radian(a.pts,r.pts)*SuperMap.Plot.PlottingUtil.RTOD+270,p=60*SuperMap.Plot.PlottingUtil.distance(r.pts,a.pts)/l,u=new SuperMap.Geometry.Point(2*a.pts.x-r.pts.x,2*a.pts.y-r.pts.y),c=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,s),P=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,s-180);if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&(this.computeSubSymbol(this.subSymbols[0],a.pts,p,s-90),this.computeSubSymbol(this.subSymbols[1],c,p,s-90),this.computeSubSymbol(this.subSymbols[2],P,p,s-90)),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMap.Plot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i),r=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(-1===n.index&&3===t&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMap.Plot.PlottingUtil.clonePoints(i);a.splice(0,n.index+1),a.unshift(n.pt);var s=SuperMap.Plot.PlottingUtil.polylineDistance(a);r<s&&(s=r),this.scaleValues[t+1]=(r-s)/r,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMap.Plot.AlgoSymbol6031001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6030501=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=.05*SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.paraLine(t,e,!0),o=SuperMap.Plot.PlottingUtil.paraLine(t,e,!1),i=l[0],n=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,l[0],l[1]),r=[];r.push(i),r.push(n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);var a=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2+.2/3,l[0],l[1]),s=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3,l[0],l[1]),p=[];p.push(a),p.push(s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);var u=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3*2,l[0],l[1]),c=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(3*.2+.2/3*2,l[0],l[1]),P=[];P.push(u),P.push(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8,l[0],l[1]),h=l[1],y=[];y.push(S),y.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var f=o[0],g=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,o[0],o[1]),b=[];b.push(f),b.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var M=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2+.2/3,o[0],o[1]),m=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3,o[0],o[1]),d=[];d.push(M),d.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3*2,o[0],o[1]),O=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(3*.2+.2/3*2,o[0],o[1]),U=[];U.push(v),U.push(O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U);var L=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8,o[0],o[1]),w=o[1],_=[];_.push(L),_.push(w),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_);var V=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,t[0],t[1]),A=t[0].clone(),T=[];T.push(V),T.push(A),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T);var E=SuperMap.Plot.PlottingUtil.radian(V,A)*SuperMap.Plot.PlottingUtil.RTOD,x=SuperMap.Plot.PlottingUtil.distance(V,A),j=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,V,A),C=SuperMap.Plot.PlottingUtil.circlePoint(j,.025*x,.025*x,E+90),Y=SuperMap.Plot.PlottingUtil.circlePoint(j,.025*x,.025*x,E-90),I=[];I.push(C),I.push(Y),I.push(V);var B={fillLimit:!0,fill:!0};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,I,B);var R=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,t[1],t[0]),G=t[1].clone(),N=[];N.push(R),N.push(G),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,N);var D=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,R,G),k=SuperMap.Plot.PlottingUtil.circlePoint(D,.025*x,.025*x,E+90),z=SuperMap.Plot.PlottingUtil.circlePoint(D,.025*x,.025*x,E-90),F=[];F.push(k),F.push(z),F.push(R),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,F,B),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol6030501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030107=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="练",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol6030107=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030106=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="沙",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol6030106=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030105=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="石",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol6030105=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030104=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="催",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol6030104=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030103=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="砌",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol6030103=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030102=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="浇",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol6030102=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol6030101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="挖",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol6030101=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5020802=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],r=this.scaleValues[2],a=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*r,l.y+o*a);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,c=SuperMap.Plot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),n=SuperMap.Plot.PlottingUtil.polylineDistance(l),r=0,a=0;if(0===t)r=(e.x-i.x)/n,this.scaleValues[2]=r,a=(e.y-i.y)/n,this.scaleValues[3]=a;else if(1===t){r=this.scaleValues[2],a=this.scaleValues[3];var s=new SuperMap.Geometry.Point(i.x+n*r,i.y+n*a),p=SuperMap.Plot.PlottingUtil.distance(s,e);this.scaleValues[0]=p/n}}}}]),e}();SuperMap.Plot.AlgoSymbol5020802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5035205=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t);this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue()/3);var o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],r=new SuperMap.Geometry.Point(l.x+e*o,l.y+e*i),a=new SuperMap.Geometry.Point(r.x-4*n,r.y),s=new SuperMap.Geometry.Point(r.x-4*n,r.y-n/2),p=[];p.push(a),p.push(s);var u={lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,u);var c=new SuperMap.Geometry.Point(r.x-4*n,r.y),P=new SuperMap.Geometry.Point(r.x-n,r.y),S=[];S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,u),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,2*n,0);var h=new SuperMap.Geometry.Point(r.x+4*n,r.y),y=new SuperMap.Geometry.Point(r.x+n,r.y),f=[];f.push(h),f.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f,u);var g=new SuperMap.Geometry.Point(r.x+4*n,r.y+n/2),b=new SuperMap.Geometry.Point(r.x+4*n,r.y),M=[];M.push(g),M.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M,u),this.addScalePoint(r,0);var m=SuperMap.Plot.PlottingUtil.circlePoint(r,2*n,2*n,90);this.addScalePoint(m,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=0,r=0;if(0===t&&(n=(e.x-i.x)/o,this.scaleValues[0]=n,r=(e.y-i.y)/o,this.scaleValues[1]=r),1===t){n=this.scaleValues[0],r=this.scaleValues[1];var a=new SuperMap.Geometry.Point(i.x+o*n,i.y+o*r),s=SuperMap.Plot.PlottingUtil.distance(a,e);this.scaleValues[2]=s/2/o}}}}]),e}();SuperMap.Plot.AlgoSymbol5035205=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5035203=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);t.splice(0,2),t.unshift(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=l*this.scaleValues[4],i=l*this.scaleValues[5],n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(o,t),r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t),a=SuperMap.Plot.PlottingUtil.radian(r.pts,n.pts)*SuperMap.Plot.PlottingUtil.RTOD,s=SuperMap.Plot.PlottingUtil.distance(n.pts,r.pts),p=r.pts.clone(),u=new SuperMap.Geometry.Point(0,.1*s),c=new SuperMap.Geometry.Point(.4*s,.1*s),P=new SuperMap.Geometry.Point(.4*s,-.1*s),S=new SuperMap.Geometry.Point(0,-.1*s),h=SuperMap.Plot.PlottingUtil.coordinateTrans(p,u,a),y=SuperMap.Plot.PlottingUtil.coordinateTrans(p,c,a),f=SuperMap.Plot.PlottingUtil.coordinateTrans(p,P,a),g=SuperMap.Plot.PlottingUtil.coordinateTrans(p,S,a),b=[];b.push(h),b.push(y),b.push(f),b.push(g),b.push(h);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var M=new SuperMap.Geometry.Point(.05*s,0),m=new SuperMap.Geometry.Point(.15*s,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(p,M,a),v=SuperMap.Plot.PlottingUtil.coordinateTrans(p,m,a),O=[];O.push(d),O.push(v);var U={lineTypeLimit:!0,surroundLineLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O,U);var L=new SuperMap.Geometry.Point(.1*s,.05*s),w=new SuperMap.Geometry.Point(.1*s,-.05*s),_=SuperMap.Plot.PlottingUtil.coordinateTrans(p,L,a),V=SuperMap.Plot.PlottingUtil.coordinateTrans(p,w,a),A=[];A.push(_),A.push(V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,U);var T=new SuperMap.Geometry.Point(.25*s,.05*s),E=new SuperMap.Geometry.Point(.35*s,.05*s),x=SuperMap.Plot.PlottingUtil.coordinateTrans(p,T,a),j=SuperMap.Plot.PlottingUtil.coordinateTrans(p,E,a),C=[];C.push(x),C.push(j),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C,U);var Y=new SuperMap.Geometry.Point(.3*s,.05*s),I=new SuperMap.Geometry.Point(.3*s,-.05*s),B=SuperMap.Plot.PlottingUtil.coordinateTrans(p,Y,a),R=SuperMap.Plot.PlottingUtil.coordinateTrans(p,I,a),G=[];G.push(B),G.push(R),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,G,U);var N=new SuperMap.Geometry.Point(.25*s,-.05*s),D=new SuperMap.Geometry.Point(.35*s,-.05*s),k=SuperMap.Plot.PlottingUtil.coordinateTrans(p,N,a),z=SuperMap.Plot.PlottingUtil.coordinateTrans(p,D,a),F=[];F.push(k),F.push(z),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,F,U);var W=new SuperMap.Geometry.Point(.4*s,0),K=new SuperMap.Geometry.Point(.8*s,0),J=SuperMap.Plot.PlottingUtil.coordinateTrans(p,W,a),q=SuperMap.Plot.PlottingUtil.coordinateTrans(p,K,a),Z=[];Z.push(J),Z.push(q),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,Z,U);var X=new SuperMap.Geometry.Point(.7*s,.025*s),H=new SuperMap.Geometry.Point(.7*s,-.025*s),Q=SuperMap.Plot.PlottingUtil.coordinateTrans(p,X,a),$=SuperMap.Plot.PlottingUtil.coordinateTrans(p,H,a),tt=[];tt.push(q),tt.push(Q),tt.push($);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,tt,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0,fill:!0}),n.pts.isScalePoint=!0,n.pts.tag=this.scalePoints.length,this.scalePoints.push(n.pts.clone()),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone()),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMap.Plot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i),r=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(-1===n.index&&3===t&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMap.Plot.PlottingUtil.clonePoints(i);a.splice(0,n.index+1),a.unshift(n.pt);var s=SuperMap.Plot.PlottingUtil.polylineDistance(a);r<s&&(s=r),this.scaleValues[t+1]=(r-s)/r,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMap.Plot.AlgoSymbol5035203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5035202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=this.subSymbols[0].symbolData.symbolSize.x;var o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMap.Plot.PlottingUtil.radian(a.pts,r.pts)*SuperMap.Plot.PlottingUtil.RTOD+270,p=60*SuperMap.Plot.PlottingUtil.distance(r.pts,a.pts)/l;if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],a.pts,p,s-90),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMap.Plot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i),r=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(-1===n.index&&3===t&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMap.Plot.PlottingUtil.clonePoints(i);a.splice(0,n.index+1),a.unshift(n.pt);var s=SuperMap.Plot.PlottingUtil.polylineDistance(a);r<s&&(s=r),this.scaleValues[t+1]=(r-s)/r,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMap.Plot.AlgoSymbol5035202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5035201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(1e3),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[1]=2*this.getSubSymbolScaleValue());var o=l*this.scaleValues[1],i=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,o);if(-1!==i.index){var n=t[0].clone(),r=i.pt,a=SuperMap.Plot.PlottingUtil.radian(n,r)*SuperMap.Plot.PlottingUtil.RTOD,s=[];s.push(i.pt);for(var p=i.index+1;p<e.length;p++)s.push(e[p]);this.addArrow(s);var u=.3*o,c=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(2/3*.5,t[0],i.pt);if(this.subSymbols.length>0){this.computeSubSymbol(this.subSymbols[0],c,u,a);var P=SuperMap.Plot.PlottingUtil.circlePoint(t[0],2.1*u,2.1*u,a),S=SuperMap.Plot.PlottingUtil.circlePoint(t[0],3*u,3*u,a),h=[];h.push(P),h.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var y=SuperMap.Plot.PlottingUtil.circlePoint(S,.2*u,.2*u,a),f=SuperMap.Plot.PlottingUtil.circlePoint(S,.05*u,.05*u,a+90),g=SuperMap.Plot.PlottingUtil.circlePoint(S,.05*u,.05*u,a+270),b=[];b.push(y),b.push(f),b.push(g);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{fillLimit:!0,fill:!0})}var M=SuperMap.Plot.PlottingUtil.circlePoint(n,o,o,a+90);this.addScalePoint(M,0),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=l[0].clone(),n=e.clone(),r=SuperMap.Plot.PlottingUtil.distance(n,i);if(0===t){var a=r/o;a<=.06&&(a=.06),a>=.15&&(a=.15),this.scaleValues[1]=a}}}}]),e}();SuperMap.Plot.AlgoSymbol5035201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5034801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=t[0].clone(),o=t[1].clone();e=2==t.length?o:t[2].clone();var i=new SuperMap.Geometry.Point((l.x+o.x)/2,(l.y+o.y)/2),n=SuperMap.Plot.PlottingUtil.distance(i,e),r=.5*n,a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,i,e),s=a.pntLeft,p=a.pntRight,u=!(i.x>e.x),c=[];u?(c.push(l),c.push(s)):(c.push(l),c.push(p)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var P=[];u?(P.push(o),P.push(p)):(P.push(o),P.push(s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S,h,y,f,g,b=.37*n,M=SuperMap.Plot.PlottingUtil.linePnt(i,e,b),m=.09*n,d=[];d.push(M),d.push(new SuperMap.Geometry.Point(M.x,M.y+m)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,d,{lineTypeLimit:!0}),u?(h=(S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(m,i,M)).pntLeft,y=(S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*m,i,M)).pntLeft,f=(S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(m,h,y)).pntRight,g=S.pntLeft):(h=(S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(m,i,M)).pntRight,y=(S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*m,i,M)).pntRight,f=(S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(m,h,y)).pntRight,g=S.pntLeft);var v=[];v.push(h),v.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v,{lineTypeLimit:!0});var O=[];O.push(f),O.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O,{lineTypeLimit:!0}),this.addText("催",M,m,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol5034801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5034203=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=.5*l,i=l*this.getSubSymbolScaleValue()*1.5,n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(o,e);if(n.bfind){var r=n.pts.clone(),a=e[n.index].clone(),s=e[n.index+1].clone(),p=SuperMap.Plot.PlottingUtil.radian(a,s)*SuperMap.Plot.PlottingUtil.RTOD,u=SuperMap.Plot.PlottingUtil.circlePoint(r,i,i,p+90),c=[];c.push(n.pts),c.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{lineTypeLimit:!0});var P=SuperMap.Plot.PlottingUtil.radian(r,u)*SuperMap.Plot.PlottingUtil.RTOD,S=new SuperMap.Geometry.Point(-.2*i,.05*i),h=new SuperMap.Geometry.Point(-.2*i,-.05*i),y=SuperMap.Plot.PlottingUtil.coordinateTrans(u,S,P),f=SuperMap.Plot.PlottingUtil.coordinateTrans(u,h,P),g=[];g.push(u),g.push(y),g.push(f);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{lineTypeLimit:!0,fillLimit:!0,fill:!0});var b=new SuperMap.Geometry.Point(0,-.6*i),M=SuperMap.Plot.PlottingUtil.coordinateTrans(r,b,p);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],M,i,p-90),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol5034203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5034202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],r=o*this.scaleValues[2],a=o*this.scaleValues[3],s=new SuperMap.Geometry.Point(l.x+r,l.y+a),p=o*n,u=new SuperMap.Geometry.Point(s.x-.5*p,s.y);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],u,p,0);var c=new SuperMap.Geometry.Point(s.x+.5*p,s.y),P=SuperMap.Plot.PlottingUtil.circlePoint(c,.3*p,.3*p,-90),S=SuperMap.Plot.PlottingUtil.circlePoint(c,.5*p,.5*p,90),h=[];h.push(P),h.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var y=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*p,.2*p,-90),f=SuperMap.Plot.PlottingUtil.circlePoint(P,.05*p,.05*p,0),g=SuperMap.Plot.PlottingUtil.circlePoint(P,.05*p,.05*p,180),b=[];b.push(y),b.push(f),b.push(g);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{fillLimit:!0,fill:!0});var M=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,180);this.addScalePoint(M,0),this.addScalePoint(s,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),n=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===n)return;var r=0,a=0,s=0,p=0;if(0===t){r=n*(s=this.scaleValues[2]),a=n*(p=this.scaleValues[3]);var u=new SuperMap.Geometry.Point(i.x+r,i.y+a),c=SuperMap.Plot.PlottingUtil.distance(e,u);this.scaleValues[0]=c/n}else 1===t&&(s=(r=e.x-i.x)/n,p=(a=e.y-i.y)/n,this.scaleValues[2]=s,this.scaleValues[3]=p)}}}]),e}();SuperMap.Plot.AlgoSymbol5034202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5034201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],r=o*this.scaleValues[2],a=o*this.scaleValues[3],s=new SuperMap.Geometry.Point(l.x+r,l.y+a),p=o*n,u=new SuperMap.Geometry.Point(s.x-.5*p,s.y);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],u,p,0);var c=new SuperMap.Geometry.Point(s.x+.5*p,s.y),P=SuperMap.Plot.PlottingUtil.circlePoint(c,.5*p,.5*p,-90),S=SuperMap.Plot.PlottingUtil.circlePoint(c,.3*p,.3*p,90),h=[];h.push(P),h.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var y=SuperMap.Plot.PlottingUtil.circlePoint(S,.2*p,.2*p,90),f=SuperMap.Plot.PlottingUtil.circlePoint(S,.05*p,.05*p,0),g=SuperMap.Plot.PlottingUtil.circlePoint(S,.05*p,.05*p,180),b=[];b.push(y),b.push(f),b.push(g);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{fillLimit:!0,fill:!0});var M=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,180);this.addScalePoint(M,0),this.addScalePoint(s,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),n=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===n)return;var r=0,a=0,s=0,p=0;if(0===t){s=n*(r=this.scaleValues[2]),p=n*(a=this.scaleValues[3]);var u=new SuperMap.Geometry.Point(i.x+s,i.y+p),c=SuperMap.Plot.PlottingUtil.distance(e,u);this.scaleValues[0]=c/n}else 1===t&&(r=(s=e.x-i.x)/n,a=(p=e.y-i.y)/n,this.scaleValues[2]=r,this.scaleValues[3]=a)}}}]),e}();SuperMap.Plot.AlgoSymbol5034201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5033803=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0]*o,n=SuperMap.Plot.PlottingUtil.linePnt(e,l,.5*o),r=SuperMap.Plot.PlottingUtil.linePnt(n,e,i),a=SuperMap.Plot.PlottingUtil.linePnt(n,l,i),s=[];s.push(t[0]),s.push(r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);var p=[];p.push(a),p.push(t[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);var u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],t[0]),c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[0],t[1]),P=[];P.push(u.pntRight),P.push(u.pntLeft);var S={lineTypeLimit:!0,surroundLineLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,S);var h=[];h.push(c.pntRight),h.push(c.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,S);var y=[];y.push(t[0]),y.push(r);var f=[];f.push(a),f.push(t[1]);var g=SuperMap.Plot.PlottingUtil.paraLine(y,i,!0),b=SuperMap.Plot.PlottingUtil.paraLine(y,i,!1),M=SuperMap.Plot.PlottingUtil.paraLine(f,i,!0),m=SuperMap.Plot.PlottingUtil.paraLine(f,i,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m);var d=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,2*i,d),this.addScalePoint(u.pntRight,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;i>.48&&(i=.48),this.scaleValues[0]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol5033803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5033802=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0]*o,n=SuperMap.Plot.PlottingUtil.linePnt(e,l,.5*o),r=SuperMap.Plot.PlottingUtil.linePnt(n,e,i),a=SuperMap.Plot.PlottingUtil.linePnt(n,l,i),s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],t[0]),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[0],t[1]),u=[];u.push(s.pntRight),u.push(s.pntLeft);var c={lineTypeLimit:!0,surroundLineLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,c);var P=[];P.push(p.pntRight),P.push(p.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,c);var S=[];S.push(t[0]),S.push(r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=[];h.push(a),h.push(t[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var y=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,2*i,y-90),this.addScalePoint(s.pntLeft,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;i>.48&&(i=.48),this.scaleValues[0]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol5033802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5033001=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=.5*l,i=l*this.getSubSymbolScaleValue()/1.2,n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(o,e);if(n.bfind){var r=n.pts.clone(),a=e[n.index].clone(),s=e[n.index+1].clone(),p=SuperMap.Plot.PlottingUtil.radian(a,s)*SuperMap.Plot.PlottingUtil.RTOD,u=SuperMap.Plot.PlottingUtil.circlePoint(r,i,i,p+90),c=SuperMap.Plot.PlottingUtil.circlePoint(r,i,i,p+270),P=[];P.push(n.pts),P.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0});var S=SuperMap.Plot.PlottingUtil.radian(r,u)*SuperMap.Plot.PlottingUtil.RTOD,h=SuperMap.Plot.PlottingUtil.circlePoint(u,i,i,S+30),y=[];y.push(u),y.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var f=SuperMap.Plot.PlottingUtil.radian(u,h)*SuperMap.Plot.PlottingUtil.RTOD,g=new SuperMap.Geometry.Point(-.2*i,.05*i),b=new SuperMap.Geometry.Point(-.2*i,-.05*i),M=SuperMap.Plot.PlottingUtil.coordinateTrans(h,g,f),m=SuperMap.Plot.PlottingUtil.coordinateTrans(h,b,f),d=[];d.push(h),d.push(M),d.push(m);var v={fillLimit:!0,fill:!0};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,v);var O=SuperMap.Plot.PlottingUtil.circlePoint(u,i,i,S+330),U=[];U.push(u),U.push(O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U);var L=SuperMap.Plot.PlottingUtil.radian(u,O)*SuperMap.Plot.PlottingUtil.RTOD,w=SuperMap.Plot.PlottingUtil.coordinateTrans(O,g,L),_=SuperMap.Plot.PlottingUtil.coordinateTrans(O,b,L),V=[];V.push(O),V.push(w),V.push(_),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,V,v),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],c,i,p+270),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol5033001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5032003=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(90),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[2]=2*o}var i=l*this.scaleValues[0],n=this.scaleValues[1],r=l*this.scaleValues[2],a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,e);if(a.bfind){var s=a.pts.clone(),p=e[a.index].clone(),u=e[a.index+1].clone(),c=SuperMap.Plot.PlottingUtil.radian(p,u)*SuperMap.Plot.PlottingUtil.RTOD,P=SuperMap.Plot.PlottingUtil.circlePoint(s,r,r,c+n),S=[];S.push(a.pts),S.push(P);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0,surroundLineLimit:!0});var h=SuperMap.Plot.PlottingUtil.radian(s,P)*SuperMap.Plot.PlottingUtil.RTOD,y=new SuperMap.Geometry.Point(-.2*r,.05*r),f=new SuperMap.Geometry.Point(-.2*r,-.05*r),g=SuperMap.Plot.PlottingUtil.coordinateTrans(P,y,h),b=SuperMap.Plot.PlottingUtil.coordinateTrans(P,f,h),M=[];M.push(P),M.push(g),M.push(b);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,{lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fill:!0});var m=.3*r,d=.6*r,v=i-d;v<0&&(v=0);var O=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(v,e);if(O.bfind){var U=[];U.push(O.pts);for(var L=O.index;L>=0;L--)U.push(e[L]);var w=[];w.push(O.pts);for(var _=O.index+1;_<e.length;_++)w.push(e[_]);var V=.6*m,A=[];if(U.length>1){var T=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,U);if(T.bfind){(A=[]).push(T.pts);for(var E=T.index+1;E<U.length;E++)A.push(U[E]);U=[],A.length>1&&(U=U.concat(A))}}if(U.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U),w.length>1){var x=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,w);if(x.bfind){(A=[]).push(x.pts);for(var j=x.index+1;j<w.length;j++)A.push(w[j]);w=[],A.length>1&&(w=w.concat(A))}}var C=i+d;C>l&&(C=l),C=l-C;for(var Y=[],I=w.length-1;I>=0;I--)Y.push(w[I]);var B=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(C,Y);if(B.bfind){var R=[];R.push(B.pts);for(var G=B.index;G>=0;G--)R.push(Y[G]);var N=[];N.push(B.pts);for(var D=B.index+1;D<Y.length;D++)N.push(Y[D]);if(R.length>1){var k=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,R);if(k.bfind){(A=[]).push(k.pts);for(var z=k.index+1;z<R.length;z++)A.push(R[z]);R=[],A.length>1&&(R=R.concat(A))}}if(R.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,R),N.length>1){var F=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,N);if(F.bfind){(A=[]).push(F.pts);for(var W=F.index+1;W<N.length;W++)A.push(N[W]);N=[],A.length>1&&(N=N.concat(A))}}if(N.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,N),this.subSymbols.length>0){if(null!==this.subSymbols[0].symbolData)for(var K=0;K<this.subSymbols[0].symbolData.innerCells.length;K++)34===this.subSymbols[0].symbolData.innerCells[K].type&&this.subSymbols[0].symbolData.innerCells.splice(K,1);this.computeSubSymbol(this.subSymbols[0],O.pts,1.2*m,c-90),this.computeSubSymbol(this.subSymbols[1],B.pts,1.2*m,c-90)}this.addScalePoint(a.pts,0),this.addScalePoint(P,1),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(0>t||1<t)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=[],r=0;r<o.length;r++)n.push(o[r]);for(var a=-1,s=new SuperMap.Geometry.Point(0,0),p=0,u=0;u<n.length-1;u++){var c=[];c.push(n[u]),c.push(n[u+1]);var P=SuperMap.Plot.PlottingUtil.projectPoint(e,n[u],n[u+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(P,c).isOnPolyLine){var S=SuperMap.Plot.PlottingUtil.distance(e,P);-1===a?(a=u,s=P,p=S):p>S&&(a=u,s=P,p=S)}}if(-1===a||a>n.length-1)return;for(var h=0,y=0;y<a;y++){var f=o[y].clone(),g=o[y+1].clone();h+=SuperMap.Plot.PlottingUtil.distance(f,g)}var b=o[a].clone();if((h+=SuperMap.Plot.PlottingUtil.distance(b,s))<0||h>i)return;this.scaleValues[0]=h/i}if(1===t){var M=i*this.scaleValues[0],m=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(M,o);if(!m.bfind)return;var d=m.pts.clone(),v=new SuperMap.Geometry.Point(o[m.index].x,o[m.index].y),O=new SuperMap.Geometry.Point(o[m.index+1].x,o[m.index+1].y),U=SuperMap.Plot.PlottingUtil.radian(v,O)*SuperMap.Plot.PlottingUtil.RTOD,L=SuperMap.Plot.PlottingUtil.radian(d,e)*SuperMap.Plot.PlottingUtil.RTOD;this.scaleValues[1]=L-U;var w=SuperMap.Plot.PlottingUtil.distance(d,e);this.scaleValues[2]=w/i}}}}]),e}();SuperMap.Plot.AlgoSymbol5032003=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5031401=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=e*this.scaleValues[0],o=.1*l,i=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],o),n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l/2,t[0],i),r=n.pntRight,a=n.pntLeft,s=[];s.push(r),s.push(t[0]),s.push(a);var p=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(s);p=SuperMap.Plot.PlottingUtil.clearSamePts(p);var u={lineColorLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0,strokeColor:"#0000ff",color:"#0000ff"};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,u);var c=SuperMap.Plot.PlottingUtil.paraLine(s,e,!1),P=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(c);P=SuperMap.Plot.PlottingUtil.clearSamePts(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,u),this.addScalePoint(r,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=2*SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;i<.4&&(i=.4),this.scaleValues[0]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol5031401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5030301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=180*SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,a=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.8*a,r);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p)}var P=e[0],S=e[1],h=e[e.length-2],y=e[e.length-1],f=.3*a,g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f,S,P),b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f,h,y),M=g.pntLeft,m=b.pntLeft,d=[];d.push(P),d.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=[];v.push(y),v.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v);var O=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),U=SuperMap.Plot.PlottingUtil.circlePoint(O.pts,l*this.scaleValues[0],l*this.scaleValues[0],r+90);this.addScalePoint(U,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol5030301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5022301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){4>this.scaleValues.length&&(this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=1.5*this.getDefaultSubSymbolSize();this.subSymbolScaleValue=i/o,this.subSymbolScaleValue>.2&&(this.subSymbolScaleValue=.2),this.scaleValues[0]=this.subSymbolScaleValue}var n=this.scaleValues[0],r=this.scaleValues[2],a=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*r,l.y+o*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,o*n,0);for(var u=0;u<this.components.length;u++)this.components[u].style.strokeColor="#0000FF",this.components[u].style.lineColorLimit=!0,this.components[u].style.strokeOpacity=1,this.components[u].style.color="#0000FF",this.components[u].style.opacity=1;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e),this.addScalePoint(p);var c=SuperMap.Plot.PlottingUtil.circlePoint(p,s,s,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),n=SuperMap.Plot.PlottingUtil.polylineDistance(l),r=0,a=0;if(0===t)r=(e.x-i.x)/n,this.scaleValues[2]=r,a=(e.y-i.y)/n,this.scaleValues[3]=a;else if(1===t){r=this.scaleValues[2],a=this.scaleValues[3];var s=new SuperMap.Geometry.Point(i.x+n*r,i.y+n*a),p=SuperMap.Plot.PlottingUtil.distance(s,e);this.scaleValues[0]=p/n}}}}]),e}();SuperMap.Plot.AlgoSymbol5022301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5022002=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.05),l.scaleValues.push(90)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.05),this.scaleValues.push(90));var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[1]=o}var i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2],a=l*i,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,c=n*l,P=u,S=new SuperMap.Geometry.Point(c,-.5*c),h=new SuperMap.Geometry.Point(c,.5*c),y=new SuperMap.Geometry.Point(-c,.5*c),f=new SuperMap.Geometry.Point(-c,-.5*c),g=SuperMap.Plot.PlottingUtil.coordinateTrans(P,S,r),b=SuperMap.Plot.PlottingUtil.coordinateTrans(P,h,r),M=SuperMap.Plot.PlottingUtil.coordinateTrans(P,y,r),m=SuperMap.Plot.PlottingUtil.coordinateTrans(P,f,r);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[g,b,M,m,g]);var d=new SuperMap.Geometry.Point(.5*c,.5*c),v=new SuperMap.Geometry.Point(.5*c,-.5*c),O=SuperMap.Plot.PlottingUtil.coordinateTrans(P,v,r),U=SuperMap.Plot.PlottingUtil.coordinateTrans(P,d,r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O,U]);var L=new SuperMap.Geometry.Point(0,.5*c),w=new SuperMap.Geometry.Point(0,-.5*c),_=SuperMap.Plot.PlottingUtil.coordinateTrans(P,L,r),V=SuperMap.Plot.PlottingUtil.coordinateTrans(P,w,r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[_,V]);var A=new SuperMap.Geometry.Point(c,0),T=new SuperMap.Geometry.Point(2*c,0),E=SuperMap.Plot.PlottingUtil.coordinateTrans(P,A,r),x=SuperMap.Plot.PlottingUtil.coordinateTrans(P,T,r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[E,x]);var j=new SuperMap.Geometry.Point(2*c,.15*c),C=new SuperMap.Geometry.Point(2*c,-.15*c),Y=new SuperMap.Geometry.Point(2.6*c,0),I=SuperMap.Plot.PlottingUtil.coordinateTrans(P,j,r),B=SuperMap.Plot.PlottingUtil.coordinateTrans(P,C,r),R=SuperMap.Plot.PlottingUtil.coordinateTrans(P,Y,r);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[I,B,R],{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#FF0000",strokeOpacity:1,color:"#FF0000",opacity:1,surroundLineLimit:!0,fillLimit:!0,fill:!0});var G,N=[],D=[];for(G=0;G<=p;G++)N.push(e[G]);for(N.push(u),D.push(u),G=p+1;G<e.length;G++)D.push(e[G]);var k=1.2*c;if(a>k){var z=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a-k,N);if(z.bfind){var F=z.pts,W=z.index,K=[];for(G=0;G<=W;G++)K.push(N[G]);K.push(F),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,K)}}if(l-a>k){var J=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(k,D);if(J.bfind){var q=J.pts,Z=J.index;for((K=[]).push(q),G=Z+1;G<D.length;G++)K.push(D[G]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,K)}}this.scalePoints=[],this.addScalePoint(u),this.addScalePoint(x),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=e.clone(),r=-1,a=0,s=0;s<o.length-1;s++){var p=[];p.push(o[s]),p.push(o[s+1]);var u=SuperMap.Plot.PlottingUtil.projectPoint(n,o[s],o[s+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(u,p).isOnPolyLine){var c=SuperMap.Plot.PlottingUtil.distance(n,u);-1===r?(r=s,a=c):a>c&&(r=s,a=c)}}if(-1===r)return SuperMap.Plot.PlottingUtil.distance(n,o[0])>SuperMap.Plot.PlottingUtil.distance(n,o[o.length-1])?void(r=o.length-1):void(r=0);var P=0;if(0===r)P=SuperMap.Plot.PlottingUtil.distance(o[0],u);else for(var S=0;S<r;S++)P+=SuperMap.Plot.PlottingUtil.distance(o[S],o[S+1]);if(P<0||P>i)return;this.scaleValues[0]=P/i}else if(1===t){var h=this.scaleValues[0]*i,y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h,o);if(!y.bfind)return;var f=y.pts,g=SuperMap.Plot.PlottingUtil.distance(f,e)/i;g>.5&&(g=.5),this.scaleValues[1]=g;var b=SuperMap.Plot.PlottingUtil.radian(f,e)*SuperMap.Plot.PlottingUtil.RTOD;this.scaleValues[2]=b+90}}}}]),e}();SuperMap.Plot.AlgoSymbol5022002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5022001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.05),l.scaleValues.push(180)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.05),this.scaleValues.push(180));var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[1]=o}var i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2],a=l*i,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,c=n*l*.5,P=new SuperMap.Geometry.Point(0,0),S=new SuperMap.Geometry.Point(.5*c,0),h=new SuperMap.Geometry.Point(0,c),y=[],f=SuperMap.Plot.PlottingUtil.coordinateTrans(u,P,r);y.push(f);var g=SuperMap.Plot.PlottingUtil.coordinateTrans(u,S,r);y.push(g);var b=SuperMap.Plot.PlottingUtil.coordinateTrans(u,h,r);y.push(b),this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,y);var M=new SuperMap.Geometry.Point(0,-2*c),m=new SuperMap.Geometry.Point(.15*c,-1.6*c),d=new SuperMap.Geometry.Point(-.15*c,-1.6*c),v=SuperMap.Plot.PlottingUtil.coordinateTrans(u,M,r),O=SuperMap.Plot.PlottingUtil.coordinateTrans(u,m,r),U=SuperMap.Plot.PlottingUtil.coordinateTrans(u,d,r),L=[];L.push(v),L.push(O),L.push(U);var w={surroundLineFlag:!1,fillLimit:!0,fill:!0};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,L,w);var _=new SuperMap.Geometry.Point(0,-c),V=SuperMap.Plot.PlottingUtil.coordinateTrans(u,_,r);(L=[]).push(V),L.push(v.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L,w);var A,T=[],E=[];for(A=0;A<=p;A++)T.push(e[A]);for(T.push(u),E.push(u),A=p+1;A<e.length;A++)E.push(e[A]);var x=1.2*c;if(a>x){var j=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a-x,T);if(j.bfind){var C=j.pts,Y=j.index,I=[];for(A=0;A<=Y;A++)I.push(T[A]);I.push(C),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,I)}}if(l-a>x){var B=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(x,E);if(B.bfind){var R=B.pts,G=B.index;for((I=[]).push(R),A=G+1;A<E.length;A++)I.push(E[A]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,I)}}R=void 0===R?e[e.length-1]:R,C=void 0===C?e[0]:C;var N=SuperMap.Plot.PlottingUtil.radian(C,R)*SuperMap.Plot.PlottingUtil.RTOD;this.addText("ZD0",u,x,N+90),this.scalePoints=[],this.addScalePoint(u),this.addScalePoint(v),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=e.clone(),r=-1,a=0,s=0;s<o.length-1;s++){var p=[];p.push(o[s]),p.push(o[s+1]);var u=SuperMap.Plot.PlottingUtil.projectPoint(n,o[s],o[s+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(u,p).isOnPolyLine){var c=SuperMap.Plot.PlottingUtil.distance(n,u);-1===r?(r=s,a=c):a>c&&(r=s,a=c)}}if(-1===r)return SuperMap.Plot.PlottingUtil.distance(n,o[0])>SuperMap.Plot.PlottingUtil.distance(n,o[o.length-1])?void(r=o.length-1):void(r=0);var P=0;if(0===r)P=SuperMap.Plot.PlottingUtil.distance(o[0],u);else for(var S=0;S<r;S++)P+=SuperMap.Plot.PlottingUtil.distance(o[S],o[S+1]);if(P<0||P>i)return;this.scaleValues[0]=P/i}else if(1===t){var h=this.scaleValues[0]*i,y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h,o);if(!y.bfind)return;var f=y.pts,g=SuperMap.Plot.PlottingUtil.distance(f,e)/i;g>.5&&(g=.5),this.scaleValues[1]=g;var b=SuperMap.Plot.PlottingUtil.radian(f,e)*SuperMap.Plot.PlottingUtil.RTOD;this.scaleValues[2]=b+90}}}}]),e}();SuperMap.Plot.AlgoSymbol5022001=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5021803=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.125),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.125),this.scaleValues.push(0));var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l,o,i=SuperMap.Plot.PlottingUtil.polylineDistance(e),n=this.getDefaultSubSymbolSize()/i;(n>.3||n<=0)&&(n=.3);var r=1.5*n;2===t.length?(this.isEdit||(this.scaleValues[3]=this.scaleValues[2]+r),l=this.scaleValues[2],o=this.scaleValues[3]):(SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[4],0)&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.125)),this.isEdit||(this.scaleValues[4]=this.scaleValues[3]+r),l=this.scaleValues[3],o=this.scaleValues[4]);var a=i*l,s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.pts,u=i*o;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(u,e)).bfind){var c=s.index,P=s.pts,S=new SuperMap.Geometry.Point(p.x,p.y),h=new SuperMap.Geometry.Point(P.x,P.y),y=SuperMap.Plot.PlottingUtil.radian(S,h)*SuperMap.Plot.PlottingUtil.RTOD,f=[];f.push(P);for(var g=c+1;g<e.length;g++)f.push(e[g]);this.addArrow(f);var b=SuperMap.Plot.PlottingUtil.distance(S,h);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],S,b,y),this.scalePoints=[],this.addScalePoint(P);var M=SuperMap.Plot.PlottingUtil.circlePoint(S,b/2,b/2,y+90);this.addScalePoint(M),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=0,r=0;if(2===l.length?(n=this.scaleValues[2],r=this.scaleValues[3]):(n=this.scaleValues[3],r=this.scaleValues[4]),0===t){for(var a=r-n,s=e.clone(),p=[],u=0;u<o.length;u++)p.push(o[u].clone());for(var c,P=-1,S=0,h=0;h<p.length-1;h++){var y=[];y.push(p[h]),y.push(p[h+1]);var f=SuperMap.Plot.PlottingUtil.projectPoint(s,p[h],p[h+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(f,y).isOnPolyLine){var g=SuperMap.Plot.PlottingUtil.distance(s,f);-1===P?(P=h,c=f,S=g):S>g&&(P=h,c=f,S=g)}}if(-1===P||P>p.length-1)return;for(var b=0,M=0;M<P;M++)b+=SuperMap.Plot.PlottingUtil.distance(o[M],o[M+1]);if((b+=SuperMap.Plot.PlottingUtil.distance(o[P],c))<0||b>i)return;var m=b/i;if(m>.7||m-a<0)return;2===l.length?(this.scaleValues[2]=m-a,this.scaleValues[3]=m):(this.scaleValues[3]=m-a,this.scaleValues[4]=m)}else if(1===t){var d=i*n,v=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(d,o);if(!v.bfind)return;var O=v.pts,U=(2*SuperMap.Plot.PlottingUtil.distance(O,e)+d)/i;if(.7<U)return;2===l.length?this.scaleValues[3]=U:this.scaleValues[4]=U}}}}]),e}();SuperMap.Plot.AlgoSymbol5021803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol5010401=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.2));var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=.5*e,o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=SuperMap.Plot.PlottingUtil.radian(o,i)*SuperMap.Plot.PlottingUtil.RTOD,r=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,n+90),a=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,n+270),s=SuperMap.Plot.PlottingUtil.circlePoint(r,l,l,n),p=SuperMap.Plot.PlottingUtil.circlePoint(a,l,l,n),u=[];u.push(p),u.push(a),u.push(r),u.push(s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var c=SuperMap.Plot.PlottingUtil.circlePoint(i,e,e,n+90),P=SuperMap.Plot.PlottingUtil.circlePoint(i,e,e,n+270),S=SuperMap.Plot.PlottingUtil.circlePoint(c,l,l,n+180),h=SuperMap.Plot.PlottingUtil.circlePoint(P,l,l,n+180);(u=[]).push(S),u.push(c),u.push(P),u.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var y=.4*SuperMap.Plot.PlottingUtil.distance(o,i),f=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),g=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD;this.addText("JZ",f,y,g),this.addScalePoint(r),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol5010401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4030401=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),!(this.controlPoints.length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=t[0].clone(),o=t[1].clone(),i=SuperMap.Plot.PlottingUtil.radian(l,o)*SuperMap.Plot.PlottingUtil.RTOD,n=SuperMap.Plot.PlottingUtil.circlePoint(l,e,e,i+90),r=SuperMap.Plot.PlottingUtil.circlePoint(l,e,e,i+270),a=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,i+90),s=r,p=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,i+270),u=n,c=a,P=SuperMap.Plot.PlottingUtil.distance(u,c),S=SuperMap.Plot.PlottingUtil.distance(s,p),h=SuperMap.Plot.PlottingUtil.distance(u,s),y=SuperMap.Plot.PlottingUtil.distance(c,p),f=SuperMap.Plot.PlottingUtil.linePnt(u,c,.4*P),g=SuperMap.Plot.PlottingUtil.linePnt(u,c,.6*P),b=SuperMap.Plot.PlottingUtil.linePnt(u,s,.4*h),M=SuperMap.Plot.PlottingUtil.linePnt(u,s,.6*h),m=SuperMap.Plot.PlottingUtil.linePnt(c,p,.4*y),d=SuperMap.Plot.PlottingUtil.linePnt(c,p,.6*y),v=SuperMap.Plot.PlottingUtil.linePnt(s,p,.2*S),O=SuperMap.Plot.PlottingUtil.linePnt(s,p,.25*S),U=SuperMap.Plot.PlottingUtil.linePnt(s,p,.75*S),L=SuperMap.Plot.PlottingUtil.linePnt(s,p,.8*S),w=[];w.push(g),w.push(c),w.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w);var _=[];_.push(d),_.push(p),_.push(L),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_);var V=[];V.push(U),V.push(O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V);var A=[];A.push(v),A.push(s),A.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A);var T=[];T.push(b),T.push(u),T.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T);var E=SuperMap.Plot.PlottingUtil.radian(f,g)*SuperMap.Plot.PlottingUtil.RTOD,x=new SuperMap.Geometry.Point((f.x+g.x)/2,(f.y+g.y)/2),j=SuperMap.Plot.PlottingUtil.distance(f,g);this.addText("警",x,j,E),this.addScalePoint(n,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.controlPoints.length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol4030401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4030303=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="疏",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol4030301),e}();SuperMap.Plot.AlgoSymbol4030303=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4030302=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="劝",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol4030301),e}();SuperMap.Plot.AlgoSymbol4030302=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol4030301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l.subText="标",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,a,r);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);var P=SuperMap.Plot.PlottingUtil.polylineDistance(p);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p)}var S=this.subText,h=.15*P,y=new SuperMap.Geometry.Point(i.endPt.x+h/2,i.endPt.y-h/2),f=r;this.addText(S,y,h,f);var g=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),b=SuperMap.Plot.PlottingUtil.circlePoint(g.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r+90);this.addScalePoint(b,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol4030301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3002501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t),this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=new SuperMap.Geometry.Point(l.x+1,l.y),i=[];t.push(t[0].clone());for(var n=0;n<t.length-1;n++){var r=SuperMap.Plot.PlottingUtil.intersectLines(l,o,t[n],t[n+1]);r.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(r.intersectPoint,t[n],t[n+1])&&i.push(r.intersectPoint))}if(!(0>=i.length)){var a=i[0].clone(),s=i[0].clone();for(n=0;n<i.length;n++)a.x>i[n].x&&(a=i[n].clone()),s.x<i[n].x&&(s=i[n].clone());var p=SuperMap.Plot.PlottingUtil.distance(s,a),u=new SuperMap.Geometry.Point(l.x-.25*p,a.y),c=e*this.scaleValues[0],P=e*this.scaleValues[0],S=P+c,h=new SuperMap.Geometry.Point(u.x,u.y+S),y=new SuperMap.Geometry.Point(h.x+c,h.y),f=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,y),g=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,h);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[g,f]);var b=new SuperMap.Geometry.Point(u.x,u.y+.8*P),M=new SuperMap.Geometry.Point(u.x-P,u.y-P),m=new SuperMap.Geometry.Point(u.x+P,u.y-P),d=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,b.clone()),v=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,M.clone()),O=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,m.clone()),U=[];U.push(d),U.push(v),U.push(O),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,U);var L=new SuperMap.Geometry.Point(u.x-.5*P,u.y-P),w=new SuperMap.Geometry.Point(M.x,M.y-2*c),_=new SuperMap.Geometry.Point(u.x+.5*P,u.y-P),V=new SuperMap.Geometry.Point(m.x,m.y-2*c),A=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,L),T=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,w),E=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,_),x=SuperMap.Plot.PlottingUtil.rotateAngle(u,Math.PI/2,V),j=[];j.push(A),j.push(T);var C=[];C.push(E),C.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,j),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C),this.addText("踏",l,2*P,0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol3002501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3002005=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],r=new SuperMap.Geometry.Point(l.x+e*o,l.y+e*i),a=new SuperMap.Geometry.Point(r.x+1,r.y),s=[];t.push(t[0].clone());for(var p=0;p<t.length-1;p++){var u=SuperMap.Plot.PlottingUtil.intersectLines(r,a,t[p],t[p+1]);u.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint,t[p],t[p+1])&&s.push(u.intersectPoint))}if(0>=s.length)this.finish();else{var c=s[0].clone(),P=s[0].clone();for(p=0;p<s.length;p++)c.x>s[p].x&&(c=s[p].clone()),P.x<s[p].x&&(P=s[p].clone());var S=[],h=new SuperMap.Geometry.Point(r.x-n/2,c.y);h.x<=P.x&&h.x>=c.x&&((S=[]).push(c),S.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S));var y=new SuperMap.Geometry.Point(r.x+n/2,P.y);y.x<=P.x&&y.x>=c.x&&((S=[]).push(P),S.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S)),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,n,0),this.addScalePoint(r,0);var f=SuperMap.Plot.PlottingUtil.circlePoint(r,n/2,n/2,90);this.addScalePoint(f,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),n=e,r=0,a=0;if(0===t){if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,n))return;r=(n.x-i.x)/o,this.scaleValues[0]=r,a=(n.y-i.y)/o,this.scaleValues[1]=a}if(1===t){r=this.scaleValues[0],a=this.scaleValues[1];var s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=2*SuperMap.Plot.PlottingUtil.distance(n,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol3002005=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3002004=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(2>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),i=this.scaleValues[0],n=this.scaleValues[1],r=l*this.scaleValues[2],a=new SuperMap.Geometry.Point(o.x+l*i,o.y+l*n),s=new SuperMap.Geometry.Point(a.x+1,a.y),p=[];e.push(e[0].clone());for(var u=0;u<e.length-1;u++){var c=SuperMap.Plot.PlottingUtil.intersectLines(a,s,e[u],e[u+1]);c.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(c.intersectPoint,e[u],e[u+1])&&p.push(c.intersectPoint))}if(0>=p.length)this.finish();else{var P=p[0].clone(),S=p[0].clone();for(u=0;u<p.length;u++)P.x>p[u].x&&(P=p[u].clone()),S.x<p[u].x&&(S=p[u].clone());var h=[],y=new SuperMap.Geometry.Point(a.x-r/2,P.y);y.x<=S.x&&y.x>=P.x&&((h=[]).push(P),h.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h));var f=new SuperMap.Geometry.Point(a.x+r/2,S.y);f.x<=S.x&&f.x>=P.x&&((h=[]).push(S),h.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h));var g=SuperMap.Plot.PlottingUtil.radian(y,f)*SuperMap.Plot.PlottingUtil.RTOD;this.addText("火",a,r,g),this.addScalePoint(a,0);var b=SuperMap.Plot.PlottingUtil.circlePoint(a,r/2,r/2,90);this.addScalePoint(b,1),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),n=e,r=0,a=0;if(0===t){if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,n))return;r=(n.x-i.x)/o,this.scaleValues[0]=r,a=(n.y-i.y)/o,this.scaleValues[1]=a}if(1===t){r=this.scaleValues[0],a=this.scaleValues[1];var s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=2*SuperMap.Plot.PlottingUtil.distance(n,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol3002004=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3002002=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],r=new SuperMap.Geometry.Point(l.x+e*o,l.y+e*i),a=new SuperMap.Geometry.Point(r.x+1,r.y),s=[];t.push(t[0].clone());for(var p=0;p<t.length-1;p++){var u=SuperMap.Plot.PlottingUtil.intersectLines(r,a,t[p],t[p+1]);u.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint,t[p],t[p+1])&&s.push(u.intersectPoint))}if(0>=s.length)this.finish();else{var c=s[0].clone(),P=s[0].clone();for(p=0;p<s.length;p++)c.x>s[p].x&&(c=s[p].clone()),P.x<s[p].x&&(P=s[p].clone());var S=new SuperMap.Geometry.Point(r.x-n/2,c.y),h=new SuperMap.Geometry.Point(r.x+n/2,P.y),y=SuperMap.Plot.PlottingUtil.radian(S,h)*SuperMap.Plot.PlottingUtil.RTOD;this.addText("HX",r,n,y),this.addScalePoint(r,0);var f=SuperMap.Plot.PlottingUtil.circlePoint(r,n/2,n/2,90);this.addScalePoint(f,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),n=e,r=0,a=0;if(0===t){if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,n))return;r=(n.x-i.x)/o,this.scaleValues[0]=r,a=(n.y-i.y)/o,this.scaleValues[1]=a}if(1===t){r=this.scaleValues[0],a=this.scaleValues[1];var s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=2*SuperMap.Plot.PlottingUtil.distance(n,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol3002002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3002001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="震",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol3002001=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3001302=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=.1*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],Math.sqrt(3)*e/4),o=SuperMap.Plot.PlottingUtil.clonePoints(t);o.splice(t.length-1,1),o.push(l);var i=SuperMap.Plot.PlottingUtil.paraLine(o,.25*e,!0),n={lineColorLimit:!0,strokeColor:"#00C000",color:"#00C000"},r=SuperMap.Plot.PlottingUtil.paraLine(o,.25*e,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i,n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,n);var a=SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],e),s=new SuperMap.Geometry.Point(a.x,a.y),p=new SuperMap.Geometry.Point(a.x,a.y);s=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],1/6*Math.PI,s),p=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],11/6*Math.PI,p);var u=[];u.push(s),u.push(t[t.length-1]),u.push(p),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,n),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol3001302=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3001301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.5),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=.1*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],Math.sqrt(3)*e/4),i=SuperMap.Plot.PlottingUtil.polylineDistance(t),n=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],i*l),r=SuperMap.Plot.PlottingUtil.linePnt(n,t[0],2*e),a=SuperMap.Plot.PlottingUtil.linePnt(n,t[1],2*e),s=[];s.push(t[0]),s.push(r);var p=[];p.push(a),p.push(o);var u=SuperMap.Plot.PlottingUtil.paraLine(s,.25*e,!0),c=SuperMap.Plot.PlottingUtil.paraLine(s,.25*e,!1),P=SuperMap.Plot.PlottingUtil.paraLine(p,.25*e,!0),S=SuperMap.Plot.PlottingUtil.paraLine(p,.25*e,!1);if(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S),this.subSymbols.length>0){var h=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,y=.5*SuperMap.Plot.PlottingUtil.distance(r,a);this.computeSubSymbol(this.subSymbols[0],n,y,h+180)}var f=SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],e),g=new SuperMap.Geometry.Point(f.x,f.y),b=new SuperMap.Geometry.Point(f.x,f.y);g=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],1/6*Math.PI,g),b=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],11/6*Math.PI,b);var M=[];M.push(g),M.push(t[t.length-1]),M.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol3001301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3001105=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=this.scaleValues[0],l=this.scaleValues[1],o=this.scaleValues[2],i=SuperMap.Plot.PlottingUtil.getOutRectangleDis(t);if(0!==i){if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[2]=n/i}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),a=new SuperMap.Geometry.Point(r.x+e*i,r.y+l*i),s=o*i;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,s,0),this.addText("盗",a,s,0),this.addScalePoint(a,0);var p=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.getOutRectangleDis(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=new SuperMap.Geometry.Point(e.x,e.y);if(0===t&&(this.scaleValues[0]=(n.x-i.x)/o,this.scaleValues[1]=(n.y-i.y)/o),1===t){var r=this.scaleValues[0],a=this.scaleValues[1],s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=SuperMap.Plot.PlottingUtil.distance(e,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol3001105=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3001104=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=this.scaleValues[0],l=this.scaleValues[1],o=this.scaleValues[2],i=SuperMap.Plot.PlottingUtil.getOutRectangleDis(t);if(0!==i){if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[2]=n/i}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),a=new SuperMap.Geometry.Point(r.x+e*i,r.y+l*i),s=o*i;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,s,0),this.addText("私",a,s,0),this.addScalePoint(a,0);var p=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.getOutRectangleDis(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=new SuperMap.Geometry.Point(e.x,e.y);if(0===t&&(this.scaleValues[0]=(n.x-i.x)/o,this.scaleValues[1]=(n.y-i.y)/o),1===t){var r=this.scaleValues[0],a=this.scaleValues[1],s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=SuperMap.Plot.PlottingUtil.distance(e,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol3001104=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3001103=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="骚",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3001101),e}();SuperMap.Plot.AlgoSymbol3001103=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3001102=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="暴",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3001101),e}();SuperMap.Plot.AlgoSymbol3001102=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3001101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(-.04),l.scaleValues.push(-.175),l.scaleValues.push(.1)),l.subText="集",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.getOutRectangleDis(t);if(0!==e){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t);this.addText(this.subText,l,.3*e,0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol3001101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3000809=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=.8*SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],n,a,r+180),this.computeSubSymbol(this.subSymbols[1],n,.5*a,r+180));for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),S=SuperMap.Plot.PlottingUtil.circlePoint(P.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r+90);this.addScalePoint(S,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol3000809=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3000808=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=.8*SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,a,r+180);var s=[],p=new SuperMap.Geometry.Point(0,0);p.x=-a/6,p.y=a/3;var u=new SuperMap.Geometry.Point(0,0),c=SuperMap.Plot.PlottingUtil.rotateAngle(u,r*SuperMap.Plot.PlottingUtil.DTOR,p),P=new SuperMap.Geometry.Point(c.x+n.x,c.y+n.y);p.x=a/6,p.y=a/3;var S=SuperMap.Plot.PlottingUtil.rotateAngle(u,r*SuperMap.Plot.PlottingUtil.DTOR,p),h=new SuperMap.Geometry.Point(S.x+n.x,S.y+n.y);p.x=0,p.y=-a/3;var y=SuperMap.Plot.PlottingUtil.rotateAngle(u,r*SuperMap.Plot.PlottingUtil.DTOR,p),f=new SuperMap.Geometry.Point(y.x+n.x,y.y+n.y);s.push(P),s.push(h),s.push(f);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,{fillLimit:!0,fill:!0});for(var g=[],b=[],M=0;M<=i.startIndex;M++)g.push(e[M]);if(g.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g),i.endIndex<=e.length){b.push(i.endPt);for(var m=i.endIndex+1;m<=e.length-1;m++)b.push(e[m]);this.addArrow(b)}var d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),v=SuperMap.Plot.PlottingUtil.circlePoint(d.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r+90);this.addScalePoint(v,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol3000808=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3000807=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=.8*SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],n,.05*a,r+90),this.computeSubSymbol(this.subSymbols[1],n,a,r+180));for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),S=SuperMap.Plot.PlottingUtil.circlePoint(P.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r+90);this.addScalePoint(S,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol3000807=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3000806=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3000804),e}();SuperMap.Plot.AlgoSymbol3000806=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3000805=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3000804),e}();SuperMap.Plot.AlgoSymbol3000805=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3000804=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3000801),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=.8*SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,a,r+180);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),S=SuperMap.Plot.PlottingUtil.circlePoint(P.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r+90);this.addScalePoint(S,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol3000804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3000803=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3000801),e}();SuperMap.Plot.AlgoSymbol3000803=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3000802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol3000801),e}();SuperMap.Plot.AlgoSymbol3000802=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3000801=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=.8*SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,a,r);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),S=SuperMap.Plot.PlottingUtil.circlePoint(P.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r+90);this.addScalePoint(S,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol3000801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2122301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.5),l.scaleValues.push(.4)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=e*this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2]*e,n=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],e*o),r=SuperMap.Plot.PlottingUtil.distance(t[1],n),a=SuperMap.Plot.PlottingUtil.linePnt(t[1],n,r+.45*i),s=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],e-r+.45*i),p=2*l,u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,t[1],a),c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,t[0],s),P=SuperMap.Plot.PlottingUtil.paraLine(t,l,!0),S=SuperMap.Plot.PlottingUtil.paraLine(t,l,!1),h=e-r-i/2,y=SuperMap.Plot.PlottingUtil.linePnt(P[0],P[P.length-1],h),f=SuperMap.Plot.PlottingUtil.linePnt(P[0],P[P.length-1],h+.2*i),g=SuperMap.Plot.PlottingUtil.linePnt(P[0],P[P.length-1],h+.8*i),b=SuperMap.Plot.PlottingUtil.linePnt(P[0],P[P.length-1],h+i),M={fillLimit:!0},m=[];m.push(P[0]),m.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m,M);var d=[];d.push(u.pntRight),d.push(f),d.push(g),d.push(c.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d,M);var v=[];v.push(b),v.push(P[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v,M);var O=SuperMap.Plot.PlottingUtil.linePnt(S[0],S[S.length-1],h),U=SuperMap.Plot.PlottingUtil.linePnt(S[0],S[S.length-1],h+.2*i),L=SuperMap.Plot.PlottingUtil.linePnt(S[0],S[S.length-1],h+.8*i),w=SuperMap.Plot.PlottingUtil.linePnt(S[0],S[S.length-1],h+i),_=[];_.push(S[0]),_.push(O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_,M);var V=[];V.push(u.pntLeft),V.push(U),V.push(L),V.push(c.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V,M);var A=[];A.push(w),A.push(S[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,M);var T=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(l/2,y,P[0]);this.addScalePoint(T.pntLeft,0),this.addScalePoint(n,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(l[0],e);if(0===t&&(this.scaleValues[0]=i/o),1===t){var n=i/o;n>.8?n=.8:n<.2&&(n=.2),this.scaleValues[1]=n}}}}]),e}();SuperMap.Plot.AlgoSymbol2122301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2122101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.subSymbols.length&&(l.subSymbols=SuperMap.Plot.WJAlgoSymbolFactory.getDefaultSubSymbols(l.libID,l.code)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(2>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL,e);for(var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=e[0].x,i=e[0].x,n=e[0].y,r=e[0].y,a=[],s=0;s<e.length;s++)o>e[s].x&&(o=e[s].x),i<e[s].x&&(i=e[s].x),n>e[s].y&&(n=e[s].y),r<e[s].y&&(r=e[s].y),a.push(e[s]);var p=(i-o)/5;p>10&&(p=10);for(var u=.2*p,c=[],P=0;P<360;P+=18){var S=SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(0,0),u,u,P);c.push(S)}for(var h=0,y=o;y<i;y+=p)for(var f=n;f<r;f+=p){var g=new SuperMap.Geometry.Point(y,f);if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(a,g))if(0===h){h++;for(var b=[],M=0;M<c.length;M++){var m=new SuperMap.Geometry.Point(g.x+c[M].x,g.y+c[M].y);b.push(m)}b.push(b[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b);var d=[];d.push(b[10]),d.push(new SuperMap.Geometry.Point(b[10].x-.5*u,b[10].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=[];v.push(b[0]),v.push(new SuperMap.Geometry.Point(b[0].x+.5*u,b[10].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v)}else 1===h?(h++,null!==this.subSymbols[0]&&this.computeSubSymbol(this.subSymbols[0],g,.015*l,0)):(h=0,null!==this.subSymbols[1]&&this.computeSubSymbol(this.subSymbols[1],g,.015*l,0))}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol2122101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol2121602=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="障",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol2121601),e}();SuperMap.Plot.AlgoSymbol2121602=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2121601=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(1),l.subText="遥",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=SuperMap.Plot.PlottingUtil.distance(e,l);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);for(var i=SuperMap.Plot.PlottingUtil.polylineDistance(t),n=50*this.getSubSymbolScaleValue(),r=i*n*.02,a=i*n*.005,s=.1*i,p=.1*o,u=0;u<=i;u+=s){var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,u+p);if(-1!==c.index){var P,S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,t[c.index],c.pt);P=this.scaleValues[0]>0?new SuperMap.Geometry.Point(S.pntLeft.x,S.pntLeft.y):new SuperMap.Geometry.Point(S.pntRight.x,S.pntRight.y);var h=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,P,c.pt),y=[];if(y.push(h.pntRight),y.push(P),y.push(h.pntLeft),0===u){var f=new SuperMap.Geometry.Point(P.x,P.y);f.isScalePoint=!0,f.tag=0,this.scalePoints.push(f)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}}var g=SuperMap.Plot.PlottingUtil.radian(t[t.length-2],t[t.length-1])*SuperMap.Plot.PlottingUtil.RTOD,b=.1*i,M=SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2]),m=SuperMap.Plot.PlottingUtil.linePnt(t[t.length-2],t[t.length-1],.5*b+M);this.addText(this.subText,m,b,g),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],e);this.scaleValues[0]=o?-1:1}}}]),e}();SuperMap.Plot.AlgoSymbol2121601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol2121507=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="复",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol2121505),e}();SuperMap.Plot.AlgoSymbol2121507=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol2121506=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="墩",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol2121505),e}();SuperMap.Plot.AlgoSymbol2121506=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2121504=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=SuperMap.Plot.PlottingUtil.distance(e,l),i=o*this.scaleValues[0],n=SuperMap.Plot.PlottingUtil.linePnt(e,l,.5*o),r=SuperMap.Plot.PlottingUtil.linePnt(n,e,2*i),a=SuperMap.Plot.PlottingUtil.linePnt(n,l,2*i),s=[];s.push(t[0],r);var p=[];p.push(a,t[1]);var u=SuperMap.Plot.PlottingUtil.paraLine(s,i,!0),c=SuperMap.Plot.PlottingUtil.paraLine(s,i,!1),P=SuperMap.Plot.PlottingUtil.paraLine(p,i,!0),S=SuperMap.Plot.PlottingUtil.paraLine(p,i,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD,y=.5*SuperMap.Plot.PlottingUtil.distance(r,a);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],n,y,h),this.addScalePoint(u[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;i>.24&&(i=.24),this.scaleValues[0]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol2121504=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2092101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var o=this.scaleValues[1]*e,i=l*e,n=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,i);if(-1!==n.index){for(var r,a=n.pt,s=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[a,new SuperMap.Geometry.Point(a.x+o,a.y)]),p=0;p<t.length-1;p++){var u=t[p],c=t[p+1],P=SuperMap.Plot.PlottingUtil.distance(a,u),S=SuperMap.Plot.PlottingUtil.distance(a,c);if(!(P<o&&S<o))if(P>o&&S<o||P<o&&S>o){var h;h=P>o?u:c;var y=this.getLineAddCircleIntersectPts(u,c,s);y.length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[y[0],h])}else{var f=SuperMap.Plot.PlottingUtil.projectPoint(a,u,c);if(SuperMap.Plot.PlottingUtil.distance(a,f)>=o)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c]);else if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(f,u,c)){var g=this.getLineAddCircleIntersectPts(u,c,s);if(g.length>0){g.unshift(u),g.push(c);for(var b=0;b<g.length-1;b++)this.isLineInCircle(g[b],g[b+1],a,o)||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[g[b],g[b+1]])}}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c])}}if(this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[a,new SuperMap.Geometry.Point(a.x+o,a.y)]),r=n.index>=t.length-1?SuperMap.Plot.PlottingUtil.radian(t[t.length-2],t[t.length-1])*SuperMap.Plot.PlottingUtil.RTOD:SuperMap.Plot.PlottingUtil.radian(t[n.index],t[n.index+1])*SuperMap.Plot.PlottingUtil.RTOD,this.subSymbols.length>0){if(null!==this.subSymbols[0].symbolData)for(var M=0;M<this.subSymbols[0].symbolData.innerCells.length;M++)26===this.subSymbols[0].symbolData.innerCells[M].type&&this.subSymbols[0].symbolData.innerCells.splice(M,1);this.computeSubSymbol(this.subSymbols[0],a,o,r)}this.scalePoints=[];var m=a;m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m);var d=new SuperMap.Geometry.Point(a.x+o,a.y);d.isScalePoint=!0,d.tag=1,this.scalePoints.push(d),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2);return o>SuperMap.Plot.PlottingUtil.distance(i,l)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,l){var o=l.slice();o[0].x===o[o.length-1].x&&o[0].y===o[o.length-1].y||o.push(o[0]);for(var i=[],n=0;n<o.length-1;n++){var r=o[n],a=o[n+1],s=SuperMap.Plot.PlottingUtil.intersectLines(t,e,r,a);s.isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,t,e)&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.intersectPoint,r,a)&&i.push(s.intersectPoint)}for(var p=0;p<i.length-1;p++)SuperMap.Plot.PlottingUtil.isSamePt(i[p],i[p+1])&&(i.splice(p,1),p--);if(t.x>e.x){for(var u=0;u<i.length&&u!==i.length-1;u++)if(i[u].x<i[u+1].x){var c=i[u];i[u]=i[u+1],i[u+1]=c}}else if(t.x<e.x){for(var P=0;P<i.length&&P!==i.length-1;P++)if(i[P].x>i[P+1].x){var S=i[P];i[P]=i[P+1],i[P+1]=S}}else if(t.y>e.y){for(var h=0;h<i.length&&h!==i.length-1;h++)if(i[h].y<i[h+1].y){var y=i[h];i[h]=i[h+1],i[h+1]=y}}else if(t.y<e.y)for(var f=0;f<i.length&&f!==i.length-1;f++)if(i[f].y>i[f+1].y){var g=i[f];i[f]=i[f+1],i[f+1]=g}return i}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){for(var i=0,n=-1,r=null,a=0;a<l.length-1;a++){var s=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l[a],l[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.projectPoint,l[a],l[a+1])){var p=SuperMap.Plot.PlottingUtil.distance(s.projectPoint,e);0===i?(i=p,n=a,r=s.projectPoint):p<i&&(i=p,n=a,r=s.projectPoint)}}if(-1===n)return;for(var u=0,c=0;c<n;c++)u+=SuperMap.Plot.PlottingUtil.distance(l[c],l[c+1]);var P=(u+=SuperMap.Plot.PlottingUtil.distance(r,l[n]))/o;P>1&&(P=1),this.scaleValues[0]=P}if(1===t){var S=this.scaleValues[0]*o,h=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,S);if(-1===h.index)return;var y=SuperMap.Plot.PlottingUtil.distance(h.pt,e)/o;y>.4&&(y=.4),this.scaleValues[1]=y}}}}]),e}();SuperMap.Plot.AlgoSymbol2092101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2091503=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.03),l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){var e=this.getSubSymbolScaleValue();this.scaleValues[0]=e,this.scaleValues[1]=.5*e,this.scaleValues[3]=.5*e}var l=this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2],n=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);n=SuperMap.Plot.PlottingUtil.clearSamePts(n);var r=this.GetCurvePts(t,l,o);if(0!==r.pt.length){var a=SuperMap.Plot.PlottingUtil.polylineDistance(n)*i,s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,a);if(-1!==s.index){for(var p=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[3],u=[],c=0;c<360;c+=12)u.push(SuperMap.Plot.PlottingUtil.circlePoint(s.pt,p,p,c));u.push(u[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);for(var P=[],S=[],h=0;h<r.pt.length;h++)SuperMap.Plot.PlottingUtil.ptIsInPolygon(u,r.pt[h])?S.length>1&&(P.push(S),S=[]):S.push(r.pt[h]);S.length>1&&P.push(S);for(var y=0;y<P.length;y++)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P[y]);var f=[],g=new SuperMap.Geometry.Point(s.pt.x-p,s.pt.y),b=new SuperMap.Geometry.Point(s.pt.x+.5*p,s.pt.y);f.push(g,b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var M=[],m=SuperMap.Plot.PlottingUtil.circlePoint(b,.3*p,.3*p,157.5),d=SuperMap.Plot.PlottingUtil.circlePoint(b,.3*p,.3*p,202.5);M.push(m),M.push(d),M.push(b);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0});var v=new SuperMap.Geometry.Point(r.pt[0].x,r.pt[0].y);v.isScalePoint=!0,v.tag=0,this.scalePoints.push(v);var O=new SuperMap.Geometry.Point(r.scalePt.x,r.scalePt.y);O.isScalePoint=!0,O.tag=1,this.scalePoints.push(O);var U=new SuperMap.Geometry.Point(s.pt.x,s.pt.y);U.isScalePoint=!0,U.tag=2,this.scalePoints.push(U);var L=SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(s.pt.x,s.pt.y),p,p,0),w=new SuperMap.Geometry.Point(L.x,L.y);w.isScalePoint=!0,w.tag=3,this.scalePoints.push(w),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(4>this.scaleValues.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),n=SuperMap.Plot.PlottingUtil.polylineDistance(i),r=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var a=l[0],s=SuperMap.Plot.PlottingUtil.distance(a,r);this.scaleValues[1]=2*s/o}else if(1===t)a=l[0],s=SuperMap.Plot.PlottingUtil.distance(a,r),this.scaleValues[0]=s/o;else if(2===t){for(var p=-1,u=0,c=new SuperMap.Geometry.Point(0,0),P=0;P<i.length-1;P++){var S=i[P],h=i[P+1],y=SuperMap.Plot.PlottingUtil.projectPoint(r,S,h);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(y,S,h)){var f=SuperMap.Plot.PlottingUtil.distance(r,y);-1===p?(p=P,c=y,u=f):u>f&&(p=P,c=y,u=f)}}if(-1===p||p>i.length-1)return;for(var g=[],b=0;b<p;b++)g.push(i[b]);g.push(c);var M=SuperMap.Plot.PlottingUtil.polylineDistance(g);if(M<0||M>n)return;this.scaleValues[2]=M/n}else if(3===t){var m=n*this.scaleValues[2],d=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,m);if(-1===d.index)return;var v=SuperMap.Plot.PlottingUtil.distance(d.pt,e);this.scaleValues[3]=v/o}}}},{key:"GetCurvePts",value:function(t,e,l){for(var o,i=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),n=SuperMap.Plot.PlottingUtil.polylineDistance(i),r=n*e,a=n*l/2,s=[],p=[],u=i[0],c=!1,P=i[0],S=1;S<i.length;S++){var h=i[S],y=SuperMap.Plot.PlottingUtil.distance(u,h);if(!(y<r&&S!==i.length-1)){for(var f,g=parseInt(y/r),b=0;b<g;b++){f=SuperMap.Plot.PlottingUtil.linePnt(u,h,r),c||(o=f,c=!0);var M=this.GetCosPts2D(u,f,r,a);s=p.length>1&&0===b?this.ClearCurvePts2D(P,u,h,p,M,s):s.concat(M),p=(p=[]).concat(M),P=u,u=f}S===i.length-1&&(f=i[i.length-1],M=this.GetCosPts2D(u,f,r,a),s=p.length>1&&M.length>1?this.ClearCurvePts2D(P,u,h,p,M,s):s.concat(M))}}return{pt:s,scalePt:o}}},{key:"GetCosPts2D",value:function(t,e,l,o){for(var i=[],n=SuperMap.Plot.PlottingUtil.distance(t,e),r=l/30,a=0;a<n;a+=r){var s=a*(2*Math.PI/l),p=o*Math.cos(s),u=new SuperMap.Geometry.Point(a,p),c=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,P=SuperMap.Plot.PlottingUtil.coordinateTrans(t,u,c);i.push(P)}return i}},{key:"ClearCurvePts2D",value:function(t,e,l,o,i,n){for(var r=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,a=180*SuperMap.Plot.PlottingUtil.radian(e,t)/Math.PI-r;a<=0;)a+=360;var s=a/2,p=l;p=SuperMap.Plot.PlottingUtil.rotateAngle(e,s*Math.PI/180,p);for(var u=SuperMap.Plot.PlottingUtil.linePnt(e,p,1),c=0,P=0;P<o.length;P++)if(SuperMap.Plot.PlottingUtil.pointIsRightToLine(e,u,o[P])){c=P;break}if(0!=c)for(var S=0;S<o.length-c;S++)n.slice(S,n.length-1);for(var h=0;h<i.length;h++)SuperMap.Plot.PlottingUtil.pointIsRightToLine(e,u,i[h])&&n.push(i[h]);return n}}]),e}();SuperMap.Plot.AlgoSymbol2091503=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60310=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=this.subSymbols[0].symbolData.symbolSize.x;var o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMap.Plot.PlottingUtil.radian(a.pts,r.pts)*SuperMap.Plot.PlottingUtil.RTOD+270,p=100*SuperMap.Plot.PlottingUtil.distance(r.pts,a.pts)/l;if(null==this.subSymbols.length)return;if(null!=this.subSymbols[0].code){this.computeSubSymbol(this.subSymbols[0],a.pts,p,s-90);var u=SuperMap.Plot.PlottingUtil.circlePoint(a.pts,p,p,s+90),c=SuperMap.Plot.PlottingUtil.circlePoint(a.pts,2*p,2*p,s+90),P=[];P.push(u),P.push(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S=SuperMap.Plot.PlottingUtil.circlePoint(c,.2*p,.2*p,s+90),h=SuperMap.Plot.PlottingUtil.circlePoint(c,.05*p,.05*p,s),y=SuperMap.Plot.PlottingUtil.circlePoint(c,.05*p,.05*p,s+180),f=[];f.push(S),f.push(h),f.push(y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{fillLimit:!0,fill:!0})}r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMap.Plot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i),r=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(3===t&&null==n.pt&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMap.Plot.PlottingUtil.clonePoints(i);a.splice(0,n.index+1),a.unshift(n.pt);var s=SuperMap.Plot.PlottingUtil.polylineDistance(a);r<s&&(s=r),this.scaleValues[t+1]=(r-s)/r,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMap.Plot.AlgoSymbol60310=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60306=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0]*e,o=t[0].clone(),i=t[1].clone(),n=SuperMap.Plot.PlottingUtil.linePnt(i,o,e+.2*e),r=SuperMap.Plot.PlottingUtil.linePnt(o,i,e+.2*e),a=1.5*l,s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,i,n),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,o,r),u=SuperMap.Plot.PlottingUtil.paraLine(t,l,!0),c=SuperMap.Plot.PlottingUtil.paraLine(t,l,!1),P=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],3*e/11),S=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],4*e/11),h=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],7*e/11),y=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],8*e/11),f=[];f.push(s.pntRight),f.push(u[0]),f.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var g=[];g.push(S),g.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g);var b=[];b.push(y),b.push(u[u.length-1]),b.push(p.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var M=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],3*e/11),m=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],4*e/11),d=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],7*e/11),v=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],8*e/11),O=[];O.push(s.pntLeft),O.push(c[0]),O.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O);var U=[];U.push(m),U.push(d),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U);var L=[];L.push(v),L.push(c[c.length-1]),L.push(p.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol60306=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60305=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=.05*SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.paraLine(t,e,!0),o=SuperMap.Plot.PlottingUtil.paraLine(t,e,!1),i=l[0],n=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,l[0],l[1]),r=[];r.push(i),r.push(n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);var a=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2+.2/3,l[0],l[1]),s=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3,l[0],l[1]),p=[];p.push(a),p.push(s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);var u=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3*2,l[0],l[1]),c=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(3*.2+.2/3*2,l[0],l[1]),P=[];P.push(u),P.push(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8,l[0],l[1]),h=l[1],y=[];y.push(S),y.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var f=o[0],g=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,o[0],o[1]),b=[];b.push(f),b.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var M=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2+.2/3,o[0],o[1]),m=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3,o[0],o[1]),d=[];d.push(M),d.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.4+.2/3*2,o[0],o[1]),O=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(3*.2+.2/3*2,o[0],o[1]),U=[];U.push(v),U.push(O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U);var L=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.8,o[0],o[1]),w=o[1],_=[];_.push(L),_.push(w),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_);var V=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(1/3,t[0],t[1]),A=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(1/3*2,t[0],t[1]),T=[];T.push(V),T.push(A),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T);var E=SuperMap.Plot.PlottingUtil.radian(V,A)*SuperMap.Plot.PlottingUtil.RTOD,x=SuperMap.Plot.PlottingUtil.distance(V,A),j=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.2,V,A),C=SuperMap.Plot.PlottingUtil.circlePoint(j,.025*x,.025*x,E+90),Y=SuperMap.Plot.PlottingUtil.circlePoint(j,.025*x,.025*x,E-90),I=[];I.push(C),I.push(Y),I.push(V);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,I,{fillLimit:!0,fill:!0}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol60305=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol60304=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l.subText="隧",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol2121505),e}();SuperMap.Plot.AlgoSymbol60304=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol2121505=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l.subText="火",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],l=t[1],o=SuperMap.Plot.PlottingUtil.distance(e,l),i=o*this.scaleValues[0],n=SuperMap.Plot.PlottingUtil.linePnt(e,l,.5*o),r=SuperMap.Plot.PlottingUtil.linePnt(n,e,2*i),a=SuperMap.Plot.PlottingUtil.linePnt(n,l,2*i),s=[];s.push(t[0],r);var p=[];p.push(a,t[1]);var u=SuperMap.Plot.PlottingUtil.paraLine(s,i,!0),c=SuperMap.Plot.PlottingUtil.paraLine(s,i,!1),P=SuperMap.Plot.PlottingUtil.paraLine(p,i,!0),S=SuperMap.Plot.PlottingUtil.paraLine(p,i,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=this.subText,y=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD,f=new SuperMap.Geometry.Point(n.x,n.y),g=SuperMap.Plot.PlottingUtil.distance(r,a);this.addText(h,f,g,y),this.addScalePoint(u[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0===t){var i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;i>.24&&(i=.24),this.scaleValues[0]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol2121505=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol60301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="爆",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30020),e}();SuperMap.Plot.AlgoSymbol60301=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60205=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(90),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[2]=2*o}var i=l*this.scaleValues[0],n=this.scaleValues[1],r=l*this.scaleValues[2],a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,e);if(a.bfind){var s=a.pts.clone(),p=e[a.index].clone(),u=e[a.index+1].clone(),c=SuperMap.Plot.PlottingUtil.radian(p,u)*SuperMap.Plot.PlottingUtil.RTOD,P=SuperMap.Plot.PlottingUtil.circlePoint(s,r,r,c+n),S=[];S.push(a.pts),S.push(P);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0,surroundLineLimit:!0});var h=SuperMap.Plot.PlottingUtil.radian(s,P)*SuperMap.Plot.PlottingUtil.RTOD,y=new SuperMap.Geometry.Point(-.2*r,.05*r),f=new SuperMap.Geometry.Point(-.2*r,-.05*r),g=SuperMap.Plot.PlottingUtil.coordinateTrans(P,y,h),b=SuperMap.Plot.PlottingUtil.coordinateTrans(P,f,h),M=[];M.push(P),M.push(g),M.push(b);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,{lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fill:!0});var m=.3*r,d=.6*r,v=i-d;v<0&&(v=0);var O=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(v,e);if(O.bfind){var U=[];U.push(O.pts);for(var L=O.index;L>=0;L--)U.push(e[L]);var w=[];w.push(O.pts);for(var _=O.index+1;_<e.length;_++)w.push(e[_]);var V=.6*m,A=[];if(U.length>1){var T=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,U);if(T.bfind){(A=[]).push(T.pts);for(var E=T.index+1;E<U.length;E++)A.push(U[E]);U=[],A.length>1&&(U=U.concat(A))}}if(U.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U),w.length>1){var x=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,w);if(x.bfind){(A=[]).push(x.pts);for(var j=x.index+1;j<w.length;j++)A.push(w[j]);w=[],A.length>1&&(w=w.concat(A))}}var C=i+d;C>l&&(C=l),C=l-C;for(var Y=[],I=w.length-1;I>=0;I--)Y.push(w[I]);var B=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(C,Y);if(B.bfind){var R=[];R.push(B.pts);for(var G=B.index;G>=0;G--)R.push(Y[G]);var N=[];N.push(B.pts);for(var D=B.index+1;D<Y.length;D++)N.push(Y[D]);if(R.length>1){var k=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,R);if(k.bfind){(A=[]).push(k.pts);for(var z=k.index+1;z<R.length;z++)A.push(R[z]);R=[],A.length>1&&(R=R.concat(A))}}if(R.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,R),N.length>1){var F=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(V,N);if(F.bfind){(A=[]).push(F.pts);for(var W=F.index+1;W<N.length;W++)A.push(N[W]);N=[],A.length>1&&(N=N.concat(A))}}N.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,N),this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],O.pts,m,c+n+180,.3),this.computeSubSymbol(this.subSymbols[1],B.pts,m,c+n+180,.3)),this.addScalePoint(a.pts,0),this.addScalePoint(P,1),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(0>t||1<t)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=[],r=0;r<o.length;r++)n.push(o[r]);for(var a=-1,s=new SuperMap.Geometry.Point(0,0),p=0,u=0;u<n.length-1;u++){var c=[];c.push(n[u]),c.push(n[u+1]);var P=SuperMap.Plot.PlottingUtil.projectPoint(e,n[u],n[u+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(P,c).isOnPolyLine){var S=SuperMap.Plot.PlottingUtil.distance(e,P);-1===a?(a=u,s=P,p=S):p>S&&(a=u,s=P,p=S)}}if(-1===a||a>n.length-1)return;for(var h=0,y=0;y<a;y++){var f=o[y].clone(),g=o[y+1].clone();h+=SuperMap.Plot.PlottingUtil.distance(f,g)}var b=o[a].clone();if((h+=SuperMap.Plot.PlottingUtil.distance(b,s))<0||h>i)return;this.scaleValues[0]=h/i}if(1===t){var M=i*this.scaleValues[0],m=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(M,o);if(!m.bfind)return;var d=m.pts.clone(),v=new SuperMap.Geometry.Point(o[m.index].x,o[m.index].y),O=new SuperMap.Geometry.Point(o[m.index+1].x,o[m.index+1].y),U=SuperMap.Plot.PlottingUtil.radian(v,O)*SuperMap.Plot.PlottingUtil.RTOD,L=SuperMap.Plot.PlottingUtil.radian(d,e)*SuperMap.Plot.PlottingUtil.RTOD;this.scaleValues[1]=L-U;var w=SuperMap.Plot.PlottingUtil.distance(d,e);this.scaleValues[2]=w/i}}}}]),e}();SuperMap.Plot.AlgoSymbol60205=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol60203=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length===this.minEditPts){for(var e=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t),l=[],o=0;o<e.length;o++)l.push(e[o]);if(!(l.length<4)){var i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=SuperMap.Plot.PlottingUtil.distance(l[1],l[2]),r=0;r=i<n?.2*i:.2*n;var a=SuperMap.Plot.PlottingUtil.findPointInLine(l[0],l[1],.5*i-.5*r),s=SuperMap.Plot.PlottingUtil.findPointInLine(l[0],l[1],.5*i+.5*r),p=SuperMap.Plot.PlottingUtil.findPointInLine(l[1],l[2],.5*n-.5*r),u=SuperMap.Plot.PlottingUtil.findPointInLine(l[1],l[2],.5*n+.5*r),c=SuperMap.Plot.PlottingUtil.findPointInLine(l[2],l[3],.5*i-.5*r),P=SuperMap.Plot.PlottingUtil.findPointInLine(l[2],l[3],.5*i+.5*r),S=SuperMap.Plot.PlottingUtil.findPointInLine(l[3],l[0],.5*n-.5*r),h=SuperMap.Plot.PlottingUtil.findPointInLine(l[3],l[0],.5*n+.5*r),y=[];y.push(h),y.push(l[0]),y.push(a),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var f=[];f.push(s),f.push(l[1]),f.push(p),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var g=[];g.push(u),g.push(l[2]),g.push(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g);var b=[];b.push(P),b.push(l[3]),b.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var M=new SuperMap.Geometry.Point((l[0].x+l[2].x)/2,(l[0].y+l[2].y)/2);this.addText("避",M,3*r,0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol60203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50352=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=this.subSymbols[0].symbolData.symbolSize.x;var o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMap.Plot.PlottingUtil.radian(a.pts,r.pts)*SuperMap.Plot.PlottingUtil.RTOD+270,p=60*SuperMap.Plot.PlottingUtil.distance(r.pts,a.pts)/l,u=new SuperMap.Geometry.Point((a.pts.x+r.pts.x)/2,(r.pts.y+a.pts.y)/2);if(null==this.subSymbols.length)return;if(null!=this.subSymbols[0].code){this.computeSubSymbol(this.subSymbols[0],u,p,s+90);var c=SuperMap.Plot.PlottingUtil.circlePoint(a.pts,p,p,s+90),P=SuperMap.Plot.PlottingUtil.circlePoint(a.pts,2*p,2*p,s+90),S=[];S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*p,.2*p,s+90),y=SuperMap.Plot.PlottingUtil.circlePoint(P,.05*p,.05*p,s),f=SuperMap.Plot.PlottingUtil.circlePoint(P,.05*p,.05*p,s+180),g=[];g.push(h),g.push(y),g.push(f);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,{fillLimit:!0,fill:!0})}r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMap.Plot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i),r=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(-1===n.index&&3===t&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMap.Plot.PlottingUtil.clonePoints(i);a.splice(0,n.index+1),a.unshift(n.pt);var s=SuperMap.Plot.PlottingUtil.polylineDistance(a);r<s&&(s=r),this.scaleValues[t+1]=(r-s)/r,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMap.Plot.AlgoSymbol50352=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50342=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],r=o*this.scaleValues[2],a=o*this.scaleValues[3],s=new SuperMap.Geometry.Point(l.x+r,l.y+a),p=o*n;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,p,0);var u=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,180);this.addScalePoint(u,0),this.addScalePoint(s,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),n=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===n)return;var r=0,a=0,s=0,p=0;if(0===t){s=n*(r=this.scaleValues[2]),p=n*(a=this.scaleValues[3]);var u=new SuperMap.Geometry.Point(i.x+s,i.y+p),c=SuperMap.Plot.PlottingUtil.distance(e,u)/n;this.scaleValues[0]=c}else 1===t&&(r=(s=e.x-i.x)/n,a=(p=e.y-i.y)/n,this.scaleValues[2]=r,this.scaleValues[3]=a)}}}]),e}();SuperMap.Plot.AlgoSymbol50342=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50308=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05),l.scaleValues.push(-1.5)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit||3===this.scaleValues.length){this.scaleValues=[];for(var e=0;e<t.length;e++)this.scaleValues.push(0);var l=this.getSubSymbolScaleValue();this.scaleValues.push(.8*l),this.scaleValues.push(l),this.scaleValues.push(-1.5)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var o,i=SuperMap.Plot.PlottingUtil.polylineDistance(t),n=this.scaleValues.length,r=i*this.scaleValues[n-3],a=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),s=new SuperMap.Geometry.Point(a.x+r,a.y),p=[];p.push(a),p.push(s),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,p,{fillLimit:!0,fill:!0,fillColorLimit:!0,fillColor:"#141313",fillOpacity:1});var u=this.scaleValues[0];if(0===u)o=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,t[1],t[0]).pntRight;else if(1===u)o=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,t[1],t[0]).pntLeft;else{if(2!==u)return;o=t[0]}var c=[];c.push(t[0]),c.push(o),this.addScalePoint(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,null,!0);var P,S=[];if(t.length>this.minEditPts){for(var h=1;h<t.length-1;h++){var y,f=this.scaleValues[h],g=null,b=null,M=null,m=0,d=0,v=0;if(0===f){for(g=t[h],b=t[h+1],M=t[h-1],m=SuperMap.Plot.PlottingUtil.radian(g,b)*SuperMap.Plot.PlottingUtil.RTOD,d=SuperMap.Plot.PlottingUtil.radian(g,M)*SuperMap.Plot.PlottingUtil.RTOD-m;d<0;)d+=360;v=d/2;var O=t[h+1].clone();O=SuperMap.Plot.PlottingUtil.rotateAngle(g,v*Math.PI/180,O),y=SuperMap.Plot.PlottingUtil.linePnt(g,O,r)}else if(1===f){for(g=t[h],b=t[h+1],M=t[h-1],m=SuperMap.Plot.PlottingUtil.radian(g,b)*SuperMap.Plot.PlottingUtil.RTOD,d=SuperMap.Plot.PlottingUtil.radian(g,M)*SuperMap.Plot.PlottingUtil.RTOD-m;d<0;)d+=360;v=180-d/2;var U=t[h-1].clone();O=SuperMap.Plot.PlottingUtil.rotateAngle(g,v*Math.PI/180,U),y=SuperMap.Plot.PlottingUtil.linePnt(g,U,r)}else{if(2!==f)continue;y=t[h]}S.push(t[h]),S.push(y),this.addScalePoint(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,null,!0)}var L=t.length,w=this.scaleValues[L-1],_=0,V=0,A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,t[L-2],t[L-1]),T=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*r,t[L-2],t[L-1]);if(0===w)_=A.pntLeft,V=T.pntLeft;else if(1===w)_=A.pntRight,V=T.pntRight;else{if(2!==w)return;_=t[L-1].clone(),V=t[L-1].clone()}(S=[]).push(t[L-1]),S.push(_),this.addScalePoint(_),this.addScalePoint(V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,null,!0)}else{var E=this.scaleValues[1];if(A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,t[0],t[1]),T=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*r,t[0],t[1]),0===E)_=A.pntLeft,V=T.pntLeft;else if(1===E)_=A.pntRight,V=T.pntRight;else{if(2!==E)return;_=t[1].clone(),V=t[1].clone()}(S=[]).push(t[1]),S.push(_),this.addScalePoint(_),this.addScalePoint(V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,null,!0)}var x=this.scaleValues.length,j=this.scaleValues[x-2],C=Math.abs(i*j),Y=this.scaleValues[x-1],I=Math.abs(r*Y),B=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,C);if(-1!==B.index){var R=B.index,G=B.pt;P=Y>=0?(A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,t[R],G)).pntRight:(A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I,t[R],G)).pntLeft;var N=SuperMap.Plot.PlottingUtil.linePnt(G,P,I),D=.3*I,k=SuperMap.Plot.PlottingUtil.linePnt(N,G,D),z=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3*D,N,k),F=z.pntLeft,W=z.pntRight;(S=[]).push(G),S.push(N),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,null,!0),(S=[]).push(F),S.push(N),S.push(W);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0),this.addScalePoint(N),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=l.length,n=e;if(t>=0&&t<i){var r=!1,a=null,s=null;r=0===t?SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t],l[t+1],n):t===i-1?SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],n):SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],l[t+1])!==(a=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t-1],l[t],n))?a:(s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[t],l[t+1],n))===a?a:s,this.scaleValues[t]=r?1:0}else if(t===i){var p=SuperMap.Plot.PlottingUtil.distance(l[i-1],n)/2;this.scaleValues[t]=p/o}else if(t===i+1||t===i+2){for(var u=-1,c=0,P=new SuperMap.Geometry.Point(0,0),S=0;S<l.length-1;S++){var h=[];h.push(l[S]),h.push(l[S+1]);var y=SuperMap.Plot.PlottingUtil.projectPoint(n,l[S],l[S+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(y,h).isOnPolyLine){var f=SuperMap.Plot.PlottingUtil.distance(n,y);-1===u?(u=S,P=y,c=f):c>f&&(u=S,P=y,c=f)}}if(-1===u||u>l.length-1)return;for(var g=0,b=0;b<u;b++){var M=l[b],m=l[b+1];g+=SuperMap.Plot.PlottingUtil.distance(M,m)}var d=l[u];if((g+=SuperMap.Plot.PlottingUtil.distance(d,P))<0||g>o)return;this.scaleValues[i+1]=g/o;var v,O=this.scaleValues.length,U=o*this.scaleValues[O-3];v=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[u],l[u+1],n)?c/U:-Math.abs(c/U),this.scaleValues[i+2]=v}}}}]),e}();SuperMap.Plot.AlgoSymbol50308=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50226=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.088259),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),!(this.controlPoints.length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),i=this.scaleValues[0],n=this.scaleValues[2],r=this.scaleValues[3];o.x=o.x+n*l,o.y=o.y+r*l;var a=new SuperMap.Geometry.Point(.5*l*i,0),s=new SuperMap.Geometry.Point(-.5*l*i,0),p=SuperMap.Plot.PlottingUtil.coordinateTrans(o,a,0),u=SuperMap.Plot.PlottingUtil.coordinateTrans(o,s,0),c=[];c.push(p),c.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c);var P=new SuperMap.Geometry.Point(.8*l*i,0),S=new SuperMap.Geometry.Point(-.8*l*i,0),h=SuperMap.Plot.PlottingUtil.coordinateTrans(o,P,0),y=SuperMap.Plot.PlottingUtil.coordinateTrans(o,S,0);this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],h,18*i,90),this.computeSubSymbol(this.subSymbols[0],y,18*i,90));var f=SuperMap.Plot.PlottingUtil.circlePoint(o,i*l,i*l,180);this.addScalePoint(f,0),this.addScalePoint(o,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.controlPoints.length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0===t){n.x=n.x+this.scaleValues[2]*i,n.y=n.y+this.scaleValues[3]*i;var r=SuperMap.Plot.PlottingUtil.distance(e,n)/i;this.scaleValues[0]=r}if(1===t){var a=(e.x-n.x)/i;this.scaleValues[2]=a;var s=(e.y-n.y)/i;this.scaleValues[3]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol50226=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50225=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t);this.isEdit||(this.subSymbolScaleValue=this.getDefaultSubSymbolSize()/e,this.subSymbolScaleValue>.2&&(this.subSymbolScaleValue=.2),this.scaleValues[0]=this.subSymbolScaleValue);var o=this.scaleValues[0],i=this.scaleValues[2],n=this.scaleValues[3],r=e*o,a=new SuperMap.Geometry.Point(l.x+e*i,l.y+e*n);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,r,0),this.addScalePoint(a,0);var s=SuperMap.Plot.PlottingUtil.circlePoint(a,r,r,90);this.addScalePoint(s,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=0,r=0;if(0===t&&(n=(e.x-i.x)/o,this.scaleValues[2]=n,r=(e.y-i.y)/o,this.scaleValues[3]=r),1===t){n=this.scaleValues[2],r=this.scaleValues[3];var a=new SuperMap.Geometry.Point(i.x+o*n,i.y+o*r),s=SuperMap.Plot.PlottingUtil.distance(a,e);this.scaleValues[0]=s/2/o}}}}]),e}();SuperMap.Plot.AlgoSymbol50225=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50223=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.088259),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.088259),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],r=this.scaleValues[2],a=this.scaleValues[3];l.x=l.x+r*o,l.y=l.y+a*o;var s=new SuperMap.Geometry.Point(.25*o*n,.25*o*n),p=new SuperMap.Geometry.Point(0,.5*o*n),u=new SuperMap.Geometry.Point(-.25*o*n,.25*o*n),c=SuperMap.Plot.PlottingUtil.coordinateTrans(l,s,0),P=SuperMap.Plot.PlottingUtil.coordinateTrans(l,p,0),S=SuperMap.Plot.PlottingUtil.coordinateTrans(l,u,0);this.addCell(SuperMap.Plot.SymbolType.ARCSYMBOL,[c,P,S],{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0});var h=new SuperMap.Geometry.Point(0,-.3*o*n),y=SuperMap.Plot.PlottingUtil.coordinateTrans(l,h,0);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c,y,S],{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0}),this.scalePoints=[];var f=SuperMap.Plot.PlottingUtil.circlePoint(l,n*o*.5,n*o*.5,180);this.addScalePoint(f,0),this.addScalePoint(l,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),n=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){i.x=i.x+this.scaleValues[2]*n,i.y=i.y+this.scaleValues[3]*n;var r=SuperMap.Plot.PlottingUtil.distance(e,i)/n;this.scaleValues[0]=r}else if(1===t){var a=(e.x-i.x)/n;this.scaleValues[2]=a;var s=(e.y-i.y)/n;this.scaleValues[3]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol50223=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol50108=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=2*i}var n=this.scaleValues[0],r=this.scaleValues[2],a=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*r,l.y+o*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0);for(var u=0;u<this.components.length;u++)this.components[u].style.strokeColor="#0000ff",this.components[u].style.lineColorLimit=!0,this.components[u].style.strokeOpacity=1,this.components[u].style.color="#0000ff",this.components[u].style.opacity=1;this.addScalePoint(p);var c=s,P=SuperMap.Plot.PlottingUtil.circlePoint(p,c,c,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),n=SuperMap.Plot.PlottingUtil.polylineDistance(l),r=0,a=0;if(0===t)r=(e.x-i.x)/n,this.scaleValues[2]=r,a=(e.y-i.y)/n,this.scaleValues[3]=a;else if(1===t){r=this.scaleValues[2],a=this.scaleValues[3];var s=new SuperMap.Geometry.Point(i.x+n*r,i.y+n*a),p=SuperMap.Plot.PlottingUtil.distance(s,e);this.scaleValues[0]=p/n}}}}]),e}();SuperMap.Plot.AlgoSymbol50108=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40304=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),!(this.controlPoints.length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=.5*e,o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l,t);if(-1!==o.index){for(var i=[],n=0;n<o.index+1;n++)i.push(t[n]);var r=[],a=.1*e,s=.5*a,p=.05*e;if(l-SuperMap.Plot.PlottingUtil.polylineDistance(i)>=p){var u=SuperMap.Plot.PlottingUtil.linePnt(o.pts,t[o.index],p);i.push(u),this.ComputeDashLine(a,s,i);var c=SuperMap.Plot.PlottingUtil.linePnt(o.pts,t[o.index],p);r.push(c);for(var P=o.index+1;P<t.length;++P)r.push(t[P]);this.ComputeDashLine(a,s,r)}else{for(var S=-1,h=i.length-1;h>=0;h--){var y=new SuperMap.Geometry.Point(i[h].x,i[h].y),f=new SuperMap.Geometry.Point(o.pts.x,o.pts.y),g=SuperMap.Plot.PlottingUtil.distance(y,f);if(g>p){S=h;break}}if(-1==S)return;i.splice(S+1,i.length-1-S),u=SuperMap.Plot.PlottingUtil.linePnt(o.pts,t[S],p),i.push(u),this.ComputeDashLine(a,s,i);for(var b=-1,M=i.length-1;M<t.length;M++)if(y=new SuperMap.Geometry.Point(t[M].x,t[M].y),f=new SuperMap.Geometry.Point(o.pts.x,o.pts.y),(g=SuperMap.Plot.PlottingUtil.distance(y,f))>p){b=M;break}if(-1==b)return;c=SuperMap.Plot.PlottingUtil.linePnt(o.pts,t[b],p),r.push(c);for(var m=b+1;m<t.length;++m)r.push(t[m]);this.ComputeDashLine(a,s,r)}var d=u.clone(),v=c.clone(),O=SuperMap.Plot.PlottingUtil.radian(d,v)*SuperMap.Plot.PlottingUtil.RTOD,U=SuperMap.Plot.PlottingUtil.distance(d,v),L=new SuperMap.Geometry.Point((u.x+c.x)/2,(u.y+c.y)/2);this.addText("警",L,U,O),this.finish()}}}},{key:"ComputeDashLine",value:function(t,e,l){for(var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.clonePoints(l),n=o/7,r=0;r<7;r++){var a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,n);if(-1!==a.index){if(0!=r%2){for(var s=[],p=0;p<a.index+1;p++)s.push(i[p].clone());s.push(a.pt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}var u=[];u.push(a.pt);for(var c=a.index+1;c<i.length;c++)u.push(i[c]);i=(i=[]).concat(u)}}i.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}}]),e}();SuperMap.Plot.AlgoSymbol40304=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40302=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t);this.isEdit||(this.subSymbolScaleValue=this.getDefaultSubSymbolSize()/e,this.subSymbolScaleValue>.2&&(this.subSymbolScaleValue=.2),this.scaleValues[2]=this.subSymbolScaleValue/3);var o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],r=new SuperMap.Geometry.Point(l.x+e*o,l.y+e*i),a=new SuperMap.Geometry.Point(r.x-4*n,r.y),s=new SuperMap.Geometry.Point(r.x-4*n,r.y-n/2),p=[];p.push(a),p.push(s);var u={lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,u);var c=new SuperMap.Geometry.Point(r.x-4*n,r.y),P=new SuperMap.Geometry.Point(r.x-n,r.y),S=[];S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,u),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,2*n,0);var h=new SuperMap.Geometry.Point(r.x+4*n,r.y),y=new SuperMap.Geometry.Point(r.x+n,r.y),f=[];f.push(h),f.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f,u);var g=new SuperMap.Geometry.Point(r.x+4*n,r.y+n/2),b=new SuperMap.Geometry.Point(r.x+4*n,r.y),M=[];M.push(g),M.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M,u),this.addScalePoint(r,0);var m=SuperMap.Plot.PlottingUtil.circlePoint(r,2*n,2*n,90);this.addScalePoint(m,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=0,r=0;if(0===t&&(n=(e.x-i.x)/o,this.scaleValues[0]=n,r=(e.y-i.y)/o,this.scaleValues[1]=r),1===t){n=this.scaleValues[0],r=this.scaleValues[1];var a=new SuperMap.Geometry.Point(i.x+o*n,i.y+o*r),s=SuperMap.Plot.PlottingUtil.distance(a,e);this.scaleValues[2]=s/2/o}}}}]),e}();SuperMap.Plot.AlgoSymbol40302=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40104=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],r=new SuperMap.Geometry.Point(l.x+e*o,l.y+e*i),a=new SuperMap.Geometry.Point(r.x+1,r.y),s=[];t.push(t[0].clone());for(var p=0;p<t.length-1;p++){var u=SuperMap.Plot.PlottingUtil.intersectLines(r,a,t[p],t[p+1]);u.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint,t[p],t[p+1])&&s.push(u.intersectPoint))}if(0>=s.length)this.finish();else{var c=s[0].clone(),P=s[0].clone();for(p=0;p<s.length;p++)c.x>s[p].x&&(c=s[p].clone()),P.x<s[p].x&&(P=s[p].clone());var S=new SuperMap.Geometry.Point(r.x-n/2,c.y),h=new SuperMap.Geometry.Point(r.x+n/2,P.y),y=SuperMap.Plot.PlottingUtil.radian(S,h)*SuperMap.Plot.PlottingUtil.RTOD;this.addText("缉",r,n,y),this.addScalePoint(r,0);var f=SuperMap.Plot.PlottingUtil.circlePoint(r,n/2,n/2,90);this.addScalePoint(f,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),n=e,r=0,a=0;if(0===t){if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,n))return;r=(n.x-i.x)/o,this.scaleValues[0]=r,a=(n.y-i.y)/o,this.scaleValues[1]=a}if(1===t){r=this.scaleValues[0],a=this.scaleValues[1];var s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=2*SuperMap.Plot.PlottingUtil.distance(n,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol40104=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30026=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t),this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=new SuperMap.Geometry.Point(l.x+1,l.y),i=[];t.push(t[0].clone());for(var n=0;n<t.length-1;n++){var r=SuperMap.Plot.PlottingUtil.intersectLines(l,o,t[n],t[n+1]);r.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(r.intersectPoint,t[n],t[n+1])&&i.push(r.intersectPoint))}if(!(0>=i.length)){var a=i[0].clone(),s=i[0].clone();for(n=0;n<i.length;n++)a.x>i[n].x&&(a=i[n].clone()),s.x<i[n].x&&(s=i[n].clone());var p=SuperMap.Plot.PlottingUtil.distance(s,a),u=new SuperMap.Geometry.Point(l.x-.25*p,a.y),c=e*this.scaleValues[0],P=e*this.scaleValues[0],S=P+c,h=new SuperMap.Geometry.Point(u.x,u.y+S);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[h,new SuperMap.Geometry.Point(h.x+c,h.y)]);var y=new SuperMap.Geometry.Point(u.x,u.y+.8*P),f=new SuperMap.Geometry.Point(u.x-P,u.y-P),g=new SuperMap.Geometry.Point(u.x+P,u.y-P),b=[];b.push(y),b.push(f),b.push(g),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b);var M=new SuperMap.Geometry.Point(u.x-.5*P,u.y-P),m=new SuperMap.Geometry.Point(f.x,f.y-2*c),d=new SuperMap.Geometry.Point(u.x+.5*P,u.y-P),v=new SuperMap.Geometry.Point(g.x,g.y-2*c),O=[];O.push(M),O.push(m);var U=[];U.push(d),U.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U),this.addText("灾",l,2*P,0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol30026=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30025=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t);this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());var o=new SuperMap.Geometry.Point(l.x+1,l.y),i=[];t.push(t[0].clone());for(var n=0;n<t.length-1;n++){var r=SuperMap.Plot.PlottingUtil.intersectLines(l,o,t[n],t[n+1]);r.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(r.intersectPoint,t[n],t[n+1])&&i.push(r.intersectPoint))}if(!(0>=i.length)){var a=i[0].clone(),s=i[0].clone();for(n=0;n<i.length;n++)a.x>i[n].x&&(a=i[n].clone()),s.x<i[n].x&&(s=i[n].clone());var p=SuperMap.Plot.PlottingUtil.distance(s,a),u=new SuperMap.Geometry.Point(l.x-.25*p,a.y),c=e*this.scaleValues[0],P=e*this.scaleValues[0],S=P+c,h=new SuperMap.Geometry.Point(u.x,u.y+S);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[h,new SuperMap.Geometry.Point(h.x+c,h.y)]);var y=new SuperMap.Geometry.Point(u.x,u.y+.8*P),f=new SuperMap.Geometry.Point(u.x-P,u.y-P),g=new SuperMap.Geometry.Point(u.x+P,u.y-P),b=[];b.push(y),b.push(f),b.push(g),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,b);var M=new SuperMap.Geometry.Point(u.x-.5*P,u.y-P),m=new SuperMap.Geometry.Point(f.x,f.y-2*c),d=new SuperMap.Geometry.Point(u.x+.5*P,u.y-P),v=new SuperMap.Geometry.Point(g.x,g.y-2*c),O=[];O.push(M),O.push(m);var U=[];U.push(d),U.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U),this.addText("滞",l,2*P,0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol30025=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30020=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l.subText="水",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(this.controlPoints.length<3)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=this.scaleValues[0],i=this.scaleValues[1],n=e*this.scaleValues[2],r=new SuperMap.Geometry.Point(l.x+e*o,l.y+e*i),a=new SuperMap.Geometry.Point(r.x+1,r.y),s=[];t.push(t[0].clone());for(var p=0;p<t.length-1;p++){var u=SuperMap.Plot.PlottingUtil.intersectLines(r,a,t[p],t[p+1]);u.isIntersectLines&&(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(u.intersectPoint,t[p],t[p+1])&&s.push(u.intersectPoint))}if(0>=s.length)this.finish();else{var c=s[0].clone(),P=s[0].clone();for(p=0;p<s.length;p++)c.x>s[p].x&&(c=s[p].clone()),P.x<s[p].x&&(P=s[p].clone());var S=[],h=new SuperMap.Geometry.Point(r.x-n/2,c.y);h.x<=P.x&&h.x>=c.x&&((S=[]).push(c),S.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S));var y=new SuperMap.Geometry.Point(r.x+n/2,P.y);y.x<=P.x&&y.x>=c.x&&((S=[]).push(P),S.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S));var f=SuperMap.Plot.PlottingUtil.radian(h,y)*SuperMap.Plot.PlottingUtil.RTOD;this.addText(this.subText,r,n,f),this.addScalePoint(r,0);var g=SuperMap.Plot.PlottingUtil.circlePoint(r,n/2,n/2,90);this.addScalePoint(g,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),n=0,r=0,a=e;if(0===t){if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,a))return;n=(a.x-i.x)/o,this.scaleValues[0]=n,r=(a.y-i.y)/o,this.scaleValues[1]=r}if(1===t){n=this.scaleValues[0],r=this.scaleValues[1];var s=new SuperMap.Geometry.Point(i.x+n*o,i.y+r*o),p=2*SuperMap.Plot.PlottingUtil.distance(a,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol30020=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30014=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=.1*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),o=this.textContent.length*l/2.5,i=.5*(e-o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t);if(-1!==n.index){var r=SuperMap.Plot.PlottingUtil.clonePoints(t);r.splice(n.index+1,t.length-n.index-1),r.push(n.pts);var a={lineColorLimit:!0,strokeColor:"#0000ff",color:"#0000ff"},s=SuperMap.Plot.PlottingUtil.paraLine(r,.25*l,!0),p=SuperMap.Plot.PlottingUtil.paraLine(r,.25*l,!1),u=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i+o,t);if(-1!==u.index){var c=SuperMap.Plot.PlottingUtil.clonePoints(t);c.splice(0,u.index+1),c.splice(0,0,u.pts);var P=SuperMap.Plot.PlottingUtil.paraLine(c,.25*l,!0),S=SuperMap.Plot.PlottingUtil.paraLine(c,.25*l,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s,a),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,a),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,a),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,a);var h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*e,t),y=SuperMap.Plot.PlottingUtil.radian(n.pts,u.pts)*SuperMap.Plot.PlottingUtil.RTOD;this.addText("(XX)",h.pts,o,y),this.finish()}}}}}]),e}();SuperMap.Plot.AlgoSymbol30014=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30013=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=.1*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],Math.sqrt(3)*e/4),o=SuperMap.Plot.PlottingUtil.clonePoints(t);o.splice(t.length-1,1),o.push(l);var i=SuperMap.Plot.PlottingUtil.paraLine(o,.25*e,!0),n={lineColorLimit:!0,strokeColor:"#0000ff",color:"#0000ff"},r=SuperMap.Plot.PlottingUtil.paraLine(o,.25*e,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i,n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r,n);var a=SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],e),s=new SuperMap.Geometry.Point(a.x,a.y),p=new SuperMap.Geometry.Point(a.x,a.y);s=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],1/6*Math.PI,s),p=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],11/6*Math.PI,p);var u=[];u.push(s),u.push(t[t.length-1]),u.push(p),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,n),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol30013=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30012=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=this.scaleValues[0],l=this.scaleValues[1],o=this.scaleValues[2],i=SuperMap.Plot.PlottingUtil.getOutRectangleDis(t);if(0!==i){if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[2]=n/i}var r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),a=new SuperMap.Geometry.Point(r.x+e*i,r.y+l*i),s=o*i;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,s,0),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t),this.addScalePoint(a,0);var p=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.getOutRectangleDis(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=new SuperMap.Geometry.Point(e.x,e.y);if(0===t&&(this.scaleValues[0]=(n.x-i.x)/o,this.scaleValues[1]=(n.y-i.y)/o),1===t){var r=this.scaleValues[0],a=this.scaleValues[1],s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=SuperMap.Plot.PlottingUtil.distance(e,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol30012=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30011=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init(),2===this.controlPoints.length&&this.calAssistantLine();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts||0!==SuperMap.Plot.PlottingUtil.getOutRectangleDis(t)&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t),this.finish())}}]),e}();SuperMap.Plot.AlgoSymbol30011=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30010=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(-.1),l.scaleValues.push(-.1),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=this.scaleValues[0],l=this.scaleValues[1],o=this.scaleValues[2],i=SuperMap.Plot.PlottingUtil.getOutRectangleDis(t);if(0!==i){if(!this.isEdit){var n=this.getSubSymbolScaleValue()*SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);this.scaleValues[2]=n/i}t.length===this.minEditPts?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),a=new SuperMap.Geometry.Point(r.x+e*i,r.y+l*i),s=o*i;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,s,0),this.addText("?",r,.3*i,0,"#0000ff"),this.addScalePoint(a,0);var p=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.getOutRectangleDis(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0===o)return;var n=new SuperMap.Geometry.Point(e.x,e.y);if(0===t&&(this.scaleValues[0]=(n.x-i.x)/o,this.scaleValues[1]=(n.y-i.y)/o),1===t){var r=this.scaleValues[0],a=this.scaleValues[1],s=new SuperMap.Geometry.Point(i.x+r*o,i.y+a*o),p=SuperMap.Plot.PlottingUtil.distance(e,s);this.scaleValues[2]=p/o}}}}]),e}();SuperMap.Plot.AlgoSymbol30010=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30009=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(-.04),l.scaleValues.push(-.175),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=l*this.scaleValues[0],i=e[e.length-1];if(e.length>2){for(var n=-1,r=e.length-2;r>=0;r--)if(o<SuperMap.Plot.PlottingUtil.distance(i,e[r])){n=r;break}e.splice(n+1,e.length-n),e.push(i)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var a=e[e.length-2],s=e[e.length-1],p=o,u=180*SuperMap.Plot.PlottingUtil.radian(a,s)/Math.PI,c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+157.5),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+202.5),S=[];S.push(c),S.push(i),S.push(P);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0);var h=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(.8*p,s,a),y=SuperMap.Plot.PlottingUtil.circlePoint(h,p,p,u+90),f=SuperMap.Plot.PlottingUtil.circlePoint(h,p,p,u-90),g=[];g.push(y),g.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g);var b=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(1.2*p,s,a),M=SuperMap.Plot.PlottingUtil.circlePoint(b,p,p,u+90),m=SuperMap.Plot.PlottingUtil.circlePoint(b,p,p,u-90),d=[];d.push(M),d.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol30009=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30008=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=l*this.scaleValues[0],i=e[e.length-1];if(e.length>2){for(var n=-1,r=e.length-2;r>=0;r--)if(o<SuperMap.Plot.PlottingUtil.distance(i,e[r])){n=r;break}e.splice(n+1,e.length-n),e.push(i)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var a=e[e.length-2],s=e[e.length-1],p=o,u=180*SuperMap.Plot.PlottingUtil.radian(a,s)/Math.PI,c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+157.5),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+202.5),S=[];S.push(c),S.push(i),S.push(P);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol30008=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21221=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL,e);for(var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=e[0].x,i=e[0].x,n=e[0].y,r=e[0].y,a=[],s=0;s<e.length;s++)o>e[s].x&&(o=e[s].x),i<e[s].x&&(i=e[s].x),n>e[s].y&&(n=e[s].y),r<e[s].y&&(r=e[s].y),a.push(e[s]);for(var p=(i-o)/5,u=.2*p,c=[],P=0;P<360;P+=18){var S=SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(0,0),u,u,P);c.push(S)}for(var h=0,y=o;y<i;y+=p)for(var f=n;f<r;f+=p){var g=new SuperMap.Geometry.Point(y,f);if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(a,g))if(0===h){if(h=0,this.subSymbols.length>0){var b=.015*l;this.computeSubSymbol(this.subSymbols[0],g,b,0),!0===this.subSymbols[0].fillLimit&&(this.subSymbols[0].fillColor="#332323")}h++}else if(h=0,this.subSymbols.length>0){var M=.015*l;this.computeSubSymbol(this.subSymbols[1],g,M,0)}}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol21221=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21216=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=.05*e,o=SuperMap.Plot.PlottingUtil.paraLine(t,.5*l,!0);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);var i=[];i=i.concat(o);for(var n=SuperMap.Plot.PlottingUtil.polylineDistance(i),r=50*this.getSubSymbolScaleValue(),a=n*r*.02,s=n*r*.005,p=.1*n,u=.1*e,c=0;c<=n;c+=p){var P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,c+u);if(-1!==P.index){var S,h=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,i[P.index],P.pt);S=this.scaleValues[0]>0?new SuperMap.Geometry.Point(h.pntLeft.x,h.pntLeft.y):new SuperMap.Geometry.Point(h.pntRight.x,h.pntRight.y);var y=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,S,P.pt),f=[];if(f.push(y.pntRight),f.push(S),f.push(y.pntLeft),0===c){var g=new SuperMap.Geometry.Point(S.x,S.y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],e);this.scaleValues[0]=o?-1:1}}}]),e}();SuperMap.Plot.AlgoSymbol21216=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol3020901=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.125)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(2==t.length){var l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=SuperMap.Plot.PlottingUtil.distance(l,o),n=180*SuperMap.Plot.PlottingUtil.radian(l,o)/Math.PI,r=SuperMap.Plot.PlottingUtil.circlePoint(l,i,i,n+60);e.push(t[0]),e.push(o),e.push(r),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e)}else{this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);for(var a=0;a<t.length;a++)e.push(t[a])}var s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),p=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var u=this.scaleValues[0],c=this.scaleValues[1],P=this.scaleValues[2],S=new SuperMap.Geometry.Point(s.x+p*u,s.y+p*c),h=p*P;0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],S,h,0),this.addScalePoint(S.clone());var y=SuperMap.Plot.PlottingUtil.circlePoint(S,.5*h,.5*h,90);this.addScalePoint(y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];if(2==l.length){var i=new SuperMap.Geometry.Point(l[0].x,l[0].y),n=new SuperMap.Geometry.Point(l[1].x,l[1].y),r=SuperMap.Plot.PlottingUtil.distance(i,n),a=180*SuperMap.Plot.PlottingUtil.radian(i,n)/Math.PI,s=SuperMap.Plot.PlottingUtil.circlePoint(i,r,r,a+60);o.push(l[0]),o.push(n),o.push(s),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o)}else{this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var p=0;p<l.length;p++)o.push(l[p])}var u=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),c=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)this.scaleValues[0]=(e.x-u.x)/c,this.scaleValues[1]=(e.y-u.y)/c;else if(1===t){var P=new SuperMap.Geometry.Point(u.x+c*this.scaleValues[0],u.y+c*this.scaleValues[1]),S=2*SuperMap.Plot.PlottingUtil.distance(e,P)/c;S<.5&&(this.scaleValues[2]=S)}}}}]),e}();SuperMap.Plot.AlgoSymbol3020901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010304=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="协",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21600),e}();SuperMap.Plot.AlgoSymbol3010304=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010303=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="出",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21600),e}();SuperMap.Plot.AlgoSymbol3010303=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol3010301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="调",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21600),e}();SuperMap.Plot.AlgoSymbol3010301=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.4*i}var n=l*this.scaleValues[0],r=l*this.scaleValues[2],a=l*this.scaleValues[3],s=new SuperMap.Geometry.Point(o.x+r,o.y+a),p=.6*n,u=new SuperMap.Geometry.Point(s.x+n,s.y),c=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,0),P=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,180),S=[];S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0});var h=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,90),y=SuperMap.Plot.PlottingUtil.circlePoint(u,p,p,270);(S=[]).push(h),S.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0});var f=new SuperMap.Geometry.Point(s.x-n,s.y),g=SuperMap.Plot.PlottingUtil.circlePoint(f,.5*n,.5*n,270),b=SuperMap.Plot.PlottingUtil.circlePoint(f,n,n,240),M=SuperMap.Plot.PlottingUtil.circlePoint(f,n,n,90),m=SuperMap.Plot.PlottingUtil.circlePoint(f,n,n,300);(S=[]).push(g),S.push(b),S.push(M),S.push(m),S.push(g),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0}),this.scalePoints=[];var d=SuperMap.Plot.PlottingUtil.circlePoint(s,n,n,0);this.addScalePoint(d),this.addScalePoint(s),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var r=i*this.scaleValues[2],a=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+r,n.y+a),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol40100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol37700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol23500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],r=this.scaleValues[2],a=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*r,l.y+o*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,c=SuperMap.Plot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(c),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol37700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.05),this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue()),2==t.length?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=e*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],l,o,0),this.scalePoints=[];var i=SuperMap.Plot.PlottingUtil.circlePoint(l,o,o,90);this.addScalePoint(i),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var n=SuperMap.Plot.PlottingUtil.distance(e,i)/o;this.scaleValues[0]=n}}}}]),e}();SuperMap.Plot.AlgoSymbol35200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol35000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.03),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues[0]=.03),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=e[0],n=e[1],r=e[e.length-1],a=e[e.length-2],s=SuperMap.Plot.PlottingUtil.radian(i,n)*SuperMap.Plot.PlottingUtil.RTOD,p=SuperMap.Plot.PlottingUtil.radian(a,r)*SuperMap.Plot.PlottingUtil.RTOD,u=this.scaleValues[0],c=l*u,P=SuperMap.Plot.PlottingUtil.circlePoint(i,c,c,s+90),S=SuperMap.Plot.PlottingUtil.circlePoint(i,c,c,s+270),h=[];h.push(P),h.push(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(S);var y=SuperMap.Plot.PlottingUtil.circlePoint(r,c,c,p+90),f=SuperMap.Plot.PlottingUtil.circlePoint(r,c,c,p+270);(h=[]).push(y),h.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0});var g,b,M=t.length;if(this.scaleValues.length<=M){for(this.scaleValues=[],this.scaleValues.push(u),b=1/M,g=0;g<M-1;g++)this.scaleValues.push(b*(g+1));this.scaleValues.push(u)}for(g=0;g<M-1;g++){var m=(b=this.scaleValues[g+1])*l,d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(m,e);if(!d.bfind)return;var v=d.pts,O=d.index,U=l*this.getSubSymbolScaleValue(),L=.3*U,w=SuperMap.Plot.PlottingUtil.radian(e[O],e[O+1])*SuperMap.Plot.PlottingUtil.RTOD,_=new SuperMap.Geometry.Point(U,-L),V=new SuperMap.Geometry.Point(-U,-L),A=new SuperMap.Geometry.Point(-U,0),T=new SuperMap.Geometry.Point(U,0),E=SuperMap.Plot.PlottingUtil.coordinateTrans(v,_,w),x=SuperMap.Plot.PlottingUtil.coordinateTrans(v,V,w),j=SuperMap.Plot.PlottingUtil.coordinateTrans(v,A,w),C=SuperMap.Plot.PlottingUtil.coordinateTrans(v,T,w);(h=[]).push(E),h.push(x),h.push(j),h.push(C),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,{lineTypeLimit:!0,fillLimit:!0,fill:!0}),this.addScalePoint(v)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>=this.scalePoints.length)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0==t){var r=(i=SuperMap.Plot.PlottingUtil.distance(e,l[0]))/n;this.scaleValues[0]=r}else{var a,s=e,p=[];for(a=0;a<o.length;a++)p.push(o[a]);var u=-1,c=0,P=new SuperMap.Geometry.Point(0,0);for(a=0;a<p.length-1;a++){var S=[];S.push(p[a]),S.push(p[a+1]);var h=SuperMap.Plot.PlottingUtil.projectPoint(s,p[a],p[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(h,S).isOnPolyLine){var y=SuperMap.Plot.PlottingUtil.distance(s,h);-1==u?(u=a,P=h,c=y):c>y&&(u=a,P=h,c=y)}}if(-1==u||u>p.length-1)return;for(i=0,a=0;a<u;a++)i+=SuperMap.Plot.PlottingUtil.distance(o[a],o[a+1]);if((i+=SuperMap.Plot.PlottingUtil.distance(o[u],P))<0||i>n)return;var f=i/n;this.scaleValues[t]=f}}}}]),e}();SuperMap.Plot.AlgoSymbol35000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol44100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.105263),l.scaleValues.push(.181818),l.scaleValues.push(.285714),l.scaleValues.push(.285714)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(.285714),this.scaleValues.push(.105263),this.scaleValues.push(.181818),this.scaleValues.push(.285714),this.scaleValues.push(.285714));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),r=new SuperMap.Geometry.Point(0,o*i),a=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*a),u=new SuperMap.Geometry.Point(o*(1-s),o*a),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD,g=[];g.push(r),g.push(p),g.push(S),g.push(y),g.push(h),g.push(u),g.push(n);for(var b=[],M=0;M<g.length;M++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[M],f);b.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var d=[],v=.06*o,O=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v,l,e),U=O.pntRight,L=O.pntLeft;d.push(U),d.push(L),v=.15*o;var w=new SuperMap.Geometry.Point(v,0),_=SuperMap.Plot.PlottingUtil.coordinateTrans(e,w,f);d.push(_),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,fillLimit:!0,fill:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(b[0]),this.addScalePoint(b[1]),this.addScalePoint(b[2]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),r=l[1].clone(),a=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(a,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMap.Plot.PlottingUtil.projectPoint(a,n,r);var p=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMap.Plot.PlottingUtil.projectPoint(a,n,r);var c=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[2]=c;var P=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[4]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol44100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],r=this.scaleValues[2],a=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*r,l.y+o*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,c=SuperMap.Plot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),a=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-r.x)/a,this.scaleValues[2]=i,n=(e.y-r.y)/a,this.scaleValues[3]=n;else if(1===t){i=this.scaleValues[2],n=this.scaleValues[3];var s=new SuperMap.Geometry.Point(r.x+a*i,r.y+a*n),p=SuperMap.Plot.PlottingUtil.distance(s,e)/a;this.scaleValues[0]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol42200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(0!=e){var l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2];2===t.length?this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMap.Geometry.Point(a.x+i*e,a.y+n*e),p=r*e,u=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,270),c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,30),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,150),S=[];S.push(u),S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{fill:!1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var h=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(h),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),a=e;if(0==t)i=(a.x-r.x)/o,this.scaleValues[0]=i,n=(a.y-r.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(r.x+i*o,r.y+n*o),p=SuperMap.Plot.PlottingUtil.distance(a,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol41202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(0!==e){var l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2];2===t.length?this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMap.Geometry.Point(a.x+i*e,a.y+n*e),p=r*e,u=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90),c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,210),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,330),S=[];S.push(u),S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{fill:!1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var h=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(h),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),a=e;if(0==t)i=(a.x-r.x)/o,this.scaleValues[0]=i,n=(a.y-r.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(r.x+i*o,r.y+n*o),p=SuperMap.Plot.PlottingUtil.distance(a,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol41201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=-.25,l.scaleValues[1]=.1,l.scaleValues[2]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues[0]=-.25,this.scaleValues[1]=.1,this.scaleValues[2]=.05);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);if(!this.isEdit){var o=this.getSubSymbolScaleValue()*l;this.scaleValues[2]=.35*o/e}var i=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2];2===t.length?this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);var a=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),s=new SuperMap.Geometry.Point(a.x+i*e,a.y+n*e),p=r*e,u=new SuperMap.Geometry.Point(s.x,s.y),c=new SuperMap.Geometry.Point(s.x-p,s.y-p),P=new SuperMap.Geometry.Point(s.x+p,s.y-p),S=new SuperMap.Geometry.Point(s.x-p,s.y+p),h=new SuperMap.Geometry.Point(s.x+p,s.y+p),y=[];y.push(u),y.push(c),y.push(P),y.push(u),y.push(S),y.push(h),y.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(s);var f=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,90);this.addScalePoint(f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]);if(0==o)return;var i,n,r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l),a=e;if(0==t)i=(a.x-r.x)/o,this.scaleValues[0]=i,n=(a.y-r.y)/o,this.scaleValues[1]=n;else if(1==t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(r.x+i*o,r.y+n*o),p=SuperMap.Plot.PlottingUtil.distance(a,s)/o;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol41200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol41100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.5),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&this.scaleValues.push(.5);var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=e/l/2,i=.1*e;this.isEdit||(this.scaleValues[0]=o);var n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]-.4*e,t);if(n.bfind){var r=n.pts,a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]+.4*e,t);if(a.bfind){var s=a.pts,p=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]-.3*e,t);if(p.bfind){var u=p.pts,c=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0]+.3*e,t);if(c.bfind){var P=c.pts,S=0,h=0,y=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(r,t);y.isOnPolyLine&&(S=y.index);var f=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(s,t);f.isOnPolyLine&&(h=f.index);var g=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l*this.scaleValues[0],t);if(g.bfind){var b=g.pts,M=[];if(M.push(u),S!==h)for(var m=S+1;m<=h;m++)M.push(t[m]);M.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);for(var d=[],v=0;v<=n.index;v++)d.push(t[v]);d.push(r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var O=[];if(a.index<=t.length){O.push(s);for(var U=a.index+1;U<=t.length-1;U++)O.push(t[U])}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O);for(var L=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(b,M),w=0,_=0;_<L.index;_++)w+=SuperMap.Plot.PlottingUtil.distance(M[_],M[_+1]);w+=SuperMap.Plot.PlottingUtil.distance(b,M[L.index]);var V=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(w-.1,M);if(V.bfind){var A=V.pts,T=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.42*e,A,b),E=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.48*e,A,b),x=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.6*e,A,b),j=T.pntLeft,C=E.pntLeft,Y=x.pntLeft;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[b,j]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[C,Y]);var I=SuperMap.Plot.PlottingUtil.polylineDistance([C,Y]),B=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3*I,C,Y).pntRight;if(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[Y,B]),t.length>this.minEditPts){for(var R,G,N,D,k,z,F,W,K,J=1;J<t.length-1;J++){for(R=t[J],G=t[J+1],N=t[J-1],k=180*SuperMap.Plot.PlottingUtil.radian(R,G)/Math.PI,z=180*SuperMap.Plot.PlottingUtil.radian(R,N)/Math.PI-k;z<0;)z+=360;D=z/2,F=t[J+1].clone(),F=SuperMap.Plot.PlottingUtil.rotateAngle(R,D*Math.PI/180,F),W=SuperMap.Plot.PlottingUtil.linePnt(R,F,i),(K=[]).push(t[J]),K.push(W),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,K,null,!0)}var q=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[t.length-2],t[t.length-1]),Z=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],t[0]),X=q.pntLeft,H=Z.pntRight;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],H]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[t.length-1],X])}else{var Q=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[0],t[1]),$=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,t[1],t[0]),tt=Q.pntLeft,et=$.pntRight;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],et]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[1],tt])}this.addScalePoint(b,0),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(l.length<this.minEditPts)return;for(var i=-1,n=0,r=new SuperMap.Geometry.Point(0,0),a=0;a<l.length-1;a++){var s=[];s.push(l[a]),s.push(l[a+1]);var p=SuperMap.Plot.PlottingUtil.projectPoint(e,l[a],l[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(p,s).isOnPolyLine){var u=SuperMap.Plot.PlottingUtil.distance(e,p);-1===i?(i=a,r=p,n=u):n>u&&(i=a,r=p,n=u)}}if(-1===i||i>l.length-1)return;for(var c=0,P=0;P<i;P++)c+=SuperMap.Plot.PlottingUtil.distance(l[P],l[P+1]);var S=l[i];if((c+=SuperMap.Plot.PlottingUtil.distance(S,r))<0||c>o)return;var h=c/o,y=SuperMap.Plot.PlottingUtil.distance(l[0],l[1])/o;h<.4*y&&(h=.4*y),h>1-.4*y&&(h=1-.4*y),this.scaleValues[0]=h}}}]),e}();SuperMap.Plot.AlgoSymbol41100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40101=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[0]=.2*i}var n=l*this.scaleValues[0],r=l*this.scaleValues[2],a=l*this.scaleValues[3],s=new SuperMap.Geometry.Point(o.x+r,o.y+a),p=[];p.push(s),p.push(new SuperMap.Geometry.Point(s.x+n,s.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,p,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});for(var u=18*n,c=new SuperMap.Geometry.Point(s.x+u,s.y),P=[],S=135;S<180;S+=3)P.push(SuperMap.Plot.PlottingUtil.circlePoint(c,u,u,S));P.push(SuperMap.Plot.PlottingUtil.circlePoint(c,u,u,180)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var h=SuperMap.Plot.PlottingUtil.circlePoint(s,n,n,0);this.addScalePoint(h),this.addScalePoint(s),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=[];if(o=3>=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),0>(o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var r=i*this.scaleValues[2],a=i*this.scaleValues[3],s=new SuperMap.Geometry.Point(n.x+r,n.y+a),p=SuperMap.Plot.PlottingUtil.distance(e,s)/i;this.scaleValues[0]=p}else if(1==t){var u=(e.x-n.x)/i,c=(e.y-n.y)/i;this.scaleValues[2]=u,this.scaleValues[3]=c}}}}]),e}();SuperMap.Plot.AlgoSymbol40101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol40900=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[],l=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(t.length<3)e.push(t[0]),e.push(t[1]);else{var o=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=o.scaleValues;for(var i=0;i<o.scalePoints.length;i++)this.addScalePoint(o.scalePoints[i]);e=o.beizerPoints}SuperMap.Plot.PlottingUtil.clearSamePts(e);var n=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.isEdit||(this.scaleValues.push(.5),this.scaleValues.push(this.getSubSymbolScaleValue())),!(e.length<=0)){var r;r=2==t.length?0:t.length-1;var a=n*this.scaleValues[4*r],s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var p=s.index,u=s.pts,c=l*this.scaleValues[4*r+1],P=a-c,S=a+c;if((s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var h,y=s.pts,f=[];if(0==(p=s.index))f.push(e[0]);else for(h=0;h<p;h++)f.push(e[h]);if(f.push(y),(s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e)).bfind){var g=s.pts;p=s.index;var b=[];for(b.push(g),h=p+1;h<e.length;h++)b.push(e[h]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[u,g]);var M=l*this.scaleValues[4*r+1]/1.667;if(!(f.length<2)){var m=f[0],d=f[1],v=SuperMap.Plot.PlottingUtil.radian(m,d)*SuperMap.Plot.PlottingUtil.RTOD,O=SuperMap.Plot.PlottingUtil.circlePoint(m,M,M,v+90),U=SuperMap.Plot.PlottingUtil.circlePoint(m,M,M,v+270),L=[];if(L.push(O),L.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L),!(b.length<2)){var w=b[b.length-1],_=b[b.length-2],V=SuperMap.Plot.PlottingUtil.radian(w,_)*SuperMap.Plot.PlottingUtil.RTOD,A=SuperMap.Plot.PlottingUtil.circlePoint(w,M,M,V+90),T=SuperMap.Plot.PlottingUtil.circlePoint(w,M,M,V+270);(L=[]).push(A),L.push(T),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,L),this.addScalePoint(u),this.addScalePoint(O),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(n,0))return;if(2*(l.length-1)==t||2==l.length&&0==t){var r,a=e,s=[];for(r=0;r<o.length;r++)s.push(o[r]);var p,u=-1,c=0;for(r=0;r<s.length-1;r++){var P=[];P.push(s[r]),P.push(s[r+1]);var S=SuperMap.Plot.PlottingUtil.projectPoint(a,s[r],s[r+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(S,P).isOnPolyLine){var h=SuperMap.Plot.PlottingUtil.distance(a,S);-1==u?(u=r,p=S,c=h):c>h&&(u=r,p=S,c=h)}}if(-1==u||u>s.length-1)return;var y=0;for(r=0;r<u;r++){var f=o[r],g=o[r+1];y+=SuperMap.Plot.PlottingUtil.distance(f,g)}var b=o[u];if((y+=SuperMap.Plot.PlottingUtil.distance(b,p))<0||y>n)return;var M=y/n;if(M>.8||M<.2)return;2==l.length?this.scaleValues[0]=M:this.scaleValues[2*t]=M}else if(2*l.length-1==t||2==l.length&&1==t){var m=1.667*SuperMap.Plot.PlottingUtil.distance(e,l[0])/i;2==l.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var d=-1;d=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var v=(e.x-l[d].x)/i,O=(e.y-l[d].y)/i;this.scaleValues[2*t]=v,this.scaleValues[2*t+1]=O}}}}]),e}();SuperMap.Plot.AlgoSymbol40900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol32300=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=t[0],o=t[1];e=2==t.length?o:t[2];var i=new SuperMap.Geometry.Point((l.x+o.x)/2,(l.y+o.y)/2),n=SuperMap.Plot.PlottingUtil.distance(i,e),r=.5*n,a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,i,e),s=a.pntLeft,p=a.pntRight,u=!(i.x>e.x),c=[];u?(c.push(l),c.push(s)):(c.push(l),c.push(p)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var P=[];u?(P.push(o),P.push(p)):(P.push(o),P.push(s)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var S,h,y,f,g=.37*n,b=SuperMap.Plot.PlottingUtil.linePnt(i,e,g),M=.09*n,m=[];m.push(b),m.push(new SuperMap.Geometry.Point(b.x,b.y+M)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,m,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE}),u?(S=(a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M,i,b)).pntLeft,h=(a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*M,i,b)).pntLeft,y=(a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M,S,h)).pntRight,f=a.pntLeft):(S=(a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M,i,b)).pntRight,h=(a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*M,i,b)).pntRight,y=(a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M,S,h)).pntRight,f=a.pntLeft);var d=[];d.push(S),d.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE});var v=[];v.push(y),v.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol32300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31401=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol31400),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t);var e=0;e=Math.abs(t[1].x-t[0].x)<Math.abs(t[1].y-t[0].y)?.1*Math.abs(t[1].x-t[0].x):.1*Math.abs(t[1].y-t[0].y);var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),o=new SuperMap.Geometry.Point(l.x-e,l.y-e),i=new SuperMap.Geometry.Point(l.x+e,l.y-3*e),n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[o,i],n,!0);var r=new SuperMap.Geometry.Point(l.x-e,l.y+e),a=new SuperMap.Geometry.Point(l.x-3*e,l.y+3*e);this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[r,a],n,!0);var s=new SuperMap.Geometry.Point(l.x+e,l.y+e),p=new SuperMap.Geometry.Point(l.x+3*e,l.y+3*e);this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[s,p],n,!0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31400=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,t);var e=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t),l=0;l=Math.abs(t[1].x-t[0].x)<Math.abs(t[1].y-t[0].y)?.1*Math.abs(t[1].x-t[0].x):.1*Math.abs(t[1].y-t[0].y);var o=new SuperMap.Geometry.Point(e.x-l,e.y-l),i=new SuperMap.Geometry.Point(e.x+l,e.y+l);this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,[o,i],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31301=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol31300),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[0],t[1]),n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[i.pntLeft,i.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[n.pntLeft,n.pntRight]);var r=[],a=3*o;r.push(t[0]),r.push(t[1]);for(var s=SuperMap.Plot.PlottingUtil.paraLine(r,a,!0),p=SuperMap.Plot.PlottingUtil.paraLine(r,a,!1),u=[],c=0;c<s.length;c++)u.push(s[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,s[1],s[0]),S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,s[0],s[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P.pntLeft,P.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[S.pntLeft,S.pntRight]);for(var h=[],y=0;y<p.length;y++)h.push(p[y]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var f=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,p[1],p[0]),g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,p[0],p[1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[f.pntLeft,f.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[g.pntLeft,g.pntRight]),this.addScalePoint(n.pntRight,0),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol31301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol31300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[0],t[1]),n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[i.pntLeft,i.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[n.pntLeft,n.pntRight]),this.addScalePoint(n.pntRight,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0===t){var n=l[0],r=e,a=SuperMap.Plot.PlottingUtil.distance(r,n)/o;this.scaleValues[0]=a}}}}]),e}();SuperMap.Plot.AlgoSymbol31300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.125),l.scaleValues.push(Math.PI/2)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);t=SuperMap.Plot.PlottingUtil.clearSamePts(t);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);if(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.125),this.scaleValues.push(Math.PI/2)),3===this.scaleValues.length&&this.scaleValues.push(this.getSubSymbolScaleValue()),!(t.length<this.minEditPts)){for(var l=0,o=0;o<t.length-1;o++)l+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/l;(i>.3||i<=0)&&(i=.3),this.scaleValues[1]=i,this.scaleValues[3]=i}var n=this.scaleValues[1],r=180*this.scaleValues[2]/Math.PI,a=l*this.scaleValues[0],s=l*this.scaleValues[3],p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,a);if(-1!==p.index){var u=p.pt,c=e[p.index],P=e[p.index+1],S=SuperMap.Plot.PlottingUtil.radian(c,P)*SuperMap.Plot.PlottingUtil.RTOD,h=SuperMap.Plot.PlottingUtil.circlePoint(u,s,s,S+r);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p.pt,h]);var y,f=SuperMap.Plot.PlottingUtil.radian(u,h)*SuperMap.Plot.PlottingUtil.RTOD,g=l*n;0<this.subSymbols.length&&(y=SuperMap.Plot.PlottingUtil.circlePoint(u,s,s,S+r+180),this.computeSubSymbol(this.subSymbols[0],y,.8*g,S+r-180),this.addScalePoint(SuperMap.Plot.PlottingUtil.circlePoint(y,.5*g,.5*g,S+r+90),1)),y=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+30);var b=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+33),M=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt([h,y,b]);M=SuperMap.Plot.PlottingUtil.clearSamePts(M);var m=SuperMap.Plot.PlottingUtil.polylineDistance(M),d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.9*m,M);if(-1!==d.index){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M.slice(0,d.index));var v=SuperMap.Plot.PlottingUtil.radian(h,y)*SuperMap.Plot.PlottingUtil.RTOD,O=new SuperMap.Geometry.Point(-.2*s,.05*s),U=new SuperMap.Geometry.Point(-.2*s,-.05*s),L=SuperMap.Plot.PlottingUtil.coordinateTrans(y,O,v+17),w=SuperMap.Plot.PlottingUtil.coordinateTrans(y,U,v+17),_={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[y,L,w],_);var V=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+330),A=SuperMap.Plot.PlottingUtil.circlePoint(h,s,s,f+327),T=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt([h,V,A]);T=SuperMap.Plot.PlottingUtil.clearSamePts(T),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T.slice(0,d.index));var E=SuperMap.Plot.PlottingUtil.radian(h,V)*SuperMap.Plot.PlottingUtil.RTOD,x=SuperMap.Plot.PlottingUtil.coordinateTrans(V,O,E-17),j=SuperMap.Plot.PlottingUtil.coordinateTrans(V,U,E-17);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[V,x,j],_),this.addScalePoint(u,0),this.addScalePoint(h,2),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,r,a,s,p=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(p=SuperMap.Plot.PlottingUtil.clearSamePts(p),0===t){for(var u=[],c=0;c<p.length;c++)u.push(new SuperMap.Geometry.Point(p[c].x,p[c].y));for(var P=-1,S=0,h=new SuperMap.Geometry.Point(0,0),y=0;y<u.length-1;y++){var f=[];f.push(u[y]),f.push(u[y+1]);var g=SuperMap.Plot.PlottingUtil.projectPoint(e,u[y],u[y+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(g,f).index){var b=SuperMap.Plot.PlottingUtil.distance(e,g);-1==P?(P=y,h=g,S=b):S>b&&(P=y,h=g,S=b)}}if(-1==P||P>u.length-1)return;for(var M=0,m=0;m<P;m++)M+=SuperMap.Plot.PlottingUtil.distance(p[m],p[m+1]);if((M+=SuperMap.Plot.PlottingUtil.distance(p[P],h))<0||M>o)return;var d=M/o;this.scaleValues[0]=d}else if(1===t){var v=SuperMap.Plot.PlottingUtil.findPointInPolyLine(p,o*this.scaleValues[0]);if(-1===v.index)return;n=v.pt,r=p[v.index],a=p[v.index+1],s=SuperMap.Plot.PlottingUtil.radian(r,a)*SuperMap.Plot.PlottingUtil.RTOD;var O=o*this.scaleValues[3],U=SuperMap.Plot.PlottingUtil.circlePoint(n,O,O,s+this.scaleValues[2]*SuperMap.Plot.PlottingUtil.RTOD+180),L=SuperMap.Plot.PlottingUtil.distance(U,e)/o*2;this.scaleValues[1]=L}else if(2===t){var w=o*this.scaleValues[0],_=SuperMap.Plot.PlottingUtil.findPointInPolyLine(p,w);if(-1===_.index)return;n=_.pt,r=p[_.index],a=p[_.index+1],s=SuperMap.Plot.PlottingUtil.radian(r,a);var V=SuperMap.Plot.PlottingUtil.radian(n,e)-s;this.scaleValues[2]=V}}}}]),e}();SuperMap.Plot.AlgoSymbol30800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30201=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30200),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1)),3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l),0==this.scaleValues.length?(this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.05)):3==this.scaleValues.length&&(this.scaleValues[3]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[1]=2*this.getSubSymbolScaleValue(),this.scaleValues[3]=.5*this.getSubSymbolScaleValue());var o=e*this.scaleValues[1],i=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,o);if(-1!==i.index){var n=t[0],r=i.pt,a=SuperMap.Plot.PlottingUtil.radian(n,r)*SuperMap.Plot.PlottingUtil.RTOD,s=new SuperMap.Geometry.Point(0,.1*o),p=new SuperMap.Geometry.Point(.4*o,.1*o),u=new SuperMap.Geometry.Point(.4*o,-.1*o),c=new SuperMap.Geometry.Point(0,-.1*o),P=SuperMap.Plot.PlottingUtil.coordinateTrans(n,s,a),S=SuperMap.Plot.PlottingUtil.coordinateTrans(n,p,a),h=SuperMap.Plot.PlottingUtil.coordinateTrans(n,u,a),y=SuperMap.Plot.PlottingUtil.coordinateTrans(n,c,a),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,S,h,y,P],f);var g=new SuperMap.Geometry.Point(.3*o,.1*o),b=new SuperMap.Geometry.Point(.3*o,-.1*o),M=SuperMap.Plot.PlottingUtil.coordinateTrans(n,g,a),m=SuperMap.Plot.PlottingUtil.coordinateTrans(n,b,a);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[M,m],f);var d=new SuperMap.Geometry.Point(.4*o,0),v=new SuperMap.Geometry.Point(.8*o,0),O=SuperMap.Plot.PlottingUtil.coordinateTrans(n,d,a),U=SuperMap.Plot.PlottingUtil.coordinateTrans(n,v,a);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[O,U],f);var L=new SuperMap.Geometry.Point(.7*o,.025*o),w=new SuperMap.Geometry.Point(.7*o,-.025*o),_=SuperMap.Plot.PlottingUtil.coordinateTrans(n,L,a),V=SuperMap.Plot.PlottingUtil.coordinateTrans(n,w,a);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[U,_,V],f);var A=[];A.push(i.pt);for(var T=i.index+1;T<l.length;T++)A.push(l[T]);this.addArrow(A,this.scaleValues[3]),this.components[this.components.length-2].style.strokeDashstyle="dash",this.components[this.components.length-2].style.lineSymbolID=1,this.components[this.components.length-2].style.lineTypeLimit=!0;var E=SuperMap.Plot.PlottingUtil.circlePoint(n,o,o,a+90);this.addScalePoint(E,0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol30201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(1e3),l.scaleValues.push(.2),l.scaleValues.push(.1),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length?(this.scaleValues.push(1e3),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.05)):3==this.scaleValues.length&&(this.scaleValues[3]=.5*this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[1]=2*this.getSubSymbolScaleValue(),this.scaleValues[3]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=e*this.scaleValues[1],i=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,o);if(-1!==i.index){var n=t[0],r=i.pt,a=SuperMap.Plot.PlottingUtil.radian(n,r)*SuperMap.Plot.PlottingUtil.RTOD,s=new SuperMap.Geometry.Point(0,.1*o),p=new SuperMap.Geometry.Point(.4*o,.1*o),u=new SuperMap.Geometry.Point(.4*o,-.1*o),c=new SuperMap.Geometry.Point(0,-.1*o),P=SuperMap.Plot.PlottingUtil.coordinateTrans(n,s,a),S=SuperMap.Plot.PlottingUtil.coordinateTrans(n,p,a),h=SuperMap.Plot.PlottingUtil.coordinateTrans(n,u,a),y=SuperMap.Plot.PlottingUtil.coordinateTrans(n,c,a),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,S,h,y,P],f);var g=.1*o,b=new SuperMap.Geometry.Point(.3*o,0),M=SuperMap.Plot.PlottingUtil.circlePoint(b,g,g,135),m=SuperMap.Plot.PlottingUtil.circlePoint(b,g,g,225),d=SuperMap.Plot.PlottingUtil.coordinateTrans(n,b,a),v=SuperMap.Plot.PlottingUtil.coordinateTrans(n,M,a),O=SuperMap.Plot.PlottingUtil.coordinateTrans(n,m,a);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[v,d,O],f);var U=new SuperMap.Geometry.Point(.9*o,0),L=SuperMap.Plot.PlottingUtil.coordinateTrans(n,U,a);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[d,L],f);var w=new SuperMap.Geometry.Point(.8*o,.025*o),_=new SuperMap.Geometry.Point(.8*o,-.025*o),V=SuperMap.Plot.PlottingUtil.coordinateTrans(n,w,a),A=SuperMap.Plot.PlottingUtil.coordinateTrans(n,_,a);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[L,V,A],f);var T=[];T.push(i.pt);for(var E=i.index+1;E<l.length;E++)T.push(l[E]);this.addArrow(T,this.scaleValues[3]),this.components[this.components.length-2].style.strokeDashstyle="dash",this.components[this.components.length-2].style.lineSymbolID=1,this.components[this.components.length-2].style.lineTypeLimit=!0;var x=SuperMap.Plot.PlottingUtil.circlePoint(n,o,o,a+90);this.addScalePoint(x,0),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n=l[0],r=e,a=SuperMap.Plot.PlottingUtil.distance(r,n);if(0===t){var s=a/o;if(.06>s||.3<s)return;this.scaleValues[1]=s}}}}]),e}();SuperMap.Plot.AlgoSymbol30200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.069485),l.scaleValues.push(.15),l.scaleValues.push(.1),l.scaleValues.push(1.731025),l.scaleValues.push(2.076877)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.isEdit||(this.scaleValues[2]=this.getSubSymbolScaleValue());var i=e*this.scaleValues[0],n=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.RTOD,r=e*this.scaleValues[2],a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==a.index){var s=a.pt,p=a.index,u=s,c=o[p],P=o[p+1],S=SuperMap.Plot.PlottingUtil.radian(c,P)*SuperMap.Plot.PlottingUtil.RTOD,h=SuperMap.Plot.PlottingUtil.circlePoint(u,1.5*r,1.5*r,S+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,h]);var y=SuperMap.Plot.PlottingUtil.radian(u,h)*SuperMap.Plot.PlottingUtil.RTOD,f=new SuperMap.Geometry.Point(-.2*r,.05*r),g=new SuperMap.Geometry.Point(-.2*r,-.05*r),b=SuperMap.Plot.PlottingUtil.coordinateTrans(h,f,y),M=SuperMap.Plot.PlottingUtil.coordinateTrans(h,g,y);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[h,b,M],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var m=new SuperMap.Geometry.Point(.6*r,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(u,m,y),v=.4*r*this.scaleValues[5],O=.4*r*this.scaleValues[6],U=new SuperMap.Geometry.Point(0,-.9*(v-.25*O)),L=new SuperMap.Geometry.Point(0,.9*(v-.25*O)),w=SuperMap.Plot.PlottingUtil.coordinateTrans(d,U,y),_=SuperMap.Plot.PlottingUtil.coordinateTrans(d,L,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[w,_]);var V=new SuperMap.Geometry.Point(0,v),A=SuperMap.Plot.PlottingUtil.coordinateTrans(d,V,y),T=new SuperMap.Geometry.Point(0,.25*O),E=new SuperMap.Geometry.Point(.5*O,0),x=new SuperMap.Geometry.Point(0,-.25*O),j=new SuperMap.Geometry.Point(-.5*O,0),C=SuperMap.Plot.PlottingUtil.coordinateTrans(A,T,y),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(A,E,y),I=SuperMap.Plot.PlottingUtil.coordinateTrans(A,x,y),B=SuperMap.Plot.PlottingUtil.coordinateTrans(A,j,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[C,Y,I,B,C]);var R=new SuperMap.Geometry.Point(0,-v),G=SuperMap.Plot.PlottingUtil.coordinateTrans(d,R,y),N=SuperMap.Plot.PlottingUtil.coordinateTrans(G,T,y),D=SuperMap.Plot.PlottingUtil.coordinateTrans(G,E,y),k=SuperMap.Plot.PlottingUtil.coordinateTrans(G,x,y),z=SuperMap.Plot.PlottingUtil.coordinateTrans(G,j,y);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[N,D,k,z,N]),this.addScalePoint(s,0),this.addScalePoint(h,1);var F=new SuperMap.Geometry.Point(0,-v),W=SuperMap.Plot.PlottingUtil.coordinateTrans(d,F,y);this.addScalePoint(W,2),this.addScalePoint(B,3),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,r,a,s,p,u,c,P,S,h=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(h=SuperMap.Plot.PlottingUtil.clearSamePts(h),0===t){for(var y=[],f=0;f<h.length;f++)y.push(new SuperMap.Geometry.Point(h[f].x,h[f].y));for(var g=-1,b=0,M=new SuperMap.Geometry.Point(0,0),m=0;m<y.length-1;m++){var d=[];d.push(y[m]),d.push(y[m+1]);var v=SuperMap.Plot.PlottingUtil.projectPoint(e,y[m],y[m+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(v,d).index){var O=SuperMap.Plot.PlottingUtil.distance(e,v);-1==g?(g=m,M=v,b=O):b>O&&(g=m,M=v,b=O)}}if(-1==g||g>y.length-1)return;n=0;for(var U=0;U<g;U++)n+=SuperMap.Plot.PlottingUtil.distance(h[U],h[U+1]);if((n+=SuperMap.Plot.PlottingUtil.distance(h[g],M))<0||n>o)return;var L=n/o;this.scaleValues[0]=L}else if(1===t){r=o*this.scaleValues[0];var w=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,r);if(-1===w.index)return;a=w.pt,s=h[w.index],p=h[w.index+1],u=SuperMap.Plot.PlottingUtil.radian(s,p);var _=(S=SuperMap.Plot.PlottingUtil.radian(a,e))-u;this.scaleValues[1]=_;var V=(n=SuperMap.Plot.PlottingUtil.distance(a,e))/o/1.5;this.scaleValues[2]=V}else if(2===t){if(r=o*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,r)).index)return;P=a.pt,s=h[a.index],p=h[a.index+1],u=180*SuperMap.Plot.PlottingUtil.radian(s,p)/Math.PI;var A=SuperMap.Plot.PlottingUtil.circlePoint(P,.4*n,.4*n,u+c),T=SuperMap.Plot.PlottingUtil.distance(e,A)/(.4*n);this.scaleValues[5]=T}else if(3===t){if(r=o*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,n=o*this.scaleValues[2],-1===(a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(h,r)).index)return;P=a.pt,s=h[a.index],p=h[a.index+1],S=(u=180*SuperMap.Plot.PlottingUtil.radian(s,p)/Math.PI)+c;var E=new SuperMap.Geometry.Point(.6*n,0),x=SuperMap.Plot.PlottingUtil.coordinateTrans(P,E,S),j=.4*n*this.scaleValues[5],C=new SuperMap.Geometry.Point(0,j),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(x,C,S),I=2*SuperMap.Plot.PlottingUtil.distance(Y,e)/(.4*n);this.scaleValues[6]=I}}}}]),e}();SuperMap.Plot.AlgoSymbol30100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30002=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30001),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getSubSymbolScaleValue();this.scaleValues[2]=o,this.scaleValues[4]=o}var i=l*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI,r=l*this.scaleValues[2],a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==a.index){var s=a.pt,p=new SuperMap.Geometry.Point(e[a.index].x,e[a.index].y),u=new SuperMap.Geometry.Point(e[a.index+1].x,e[a.index+1].y),c=180*SuperMap.Plot.PlottingUtil.radian(p,u)/Math.PI,P=SuperMap.Plot.PlottingUtil.circlePoint(s,r,r,c+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,P]);var S=180*SuperMap.Plot.PlottingUtil.radian(s,P)/Math.PI,h=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*r,.2*r,S-157.5),y=SuperMap.Plot.PlottingUtil.circlePoint(P,.2*r,.2*r,S+157.5);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,h,y],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});for(var f=4.5*(l*this.scaleValues[4])*Math.sin(Math.PI/8),g=this.getLeftSubSymbolPts(f),b=e[0].clone(),M=-1,m=null,d=1;d<e.length;d++)if(SuperMap.Plot.PlottingUtil.distance(b,e[d])>.5*f){M=d-1,m=SuperMap.Plot.PlottingUtil.linePnt(b,e[d],.5*f);break}-1===M&&(M=e.length-1,m=e[e.length-1]);var v=null;if(null!==m){for(var O=180*SuperMap.Plot.PlottingUtil.radian(b,m)/Math.PI,U=[],L=0;L<g.length;L++)U.push(SuperMap.Plot.PlottingUtil.coordinateTrans(b,g[L],O));v=U[3].clone(),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U)}for(var w=this.getRightSubSymbolPts(f),_=e[e.length-1].clone(),V=-1,A=null,T=e.length-2;T>=0;T--)if(SuperMap.Plot.PlottingUtil.distance(_,e[T])>.5*f){V=T,A=SuperMap.Plot.PlottingUtil.linePnt(_,e[T],.5*f);break}if(-1===V&&(V=0,A=e[0]),null!==A){for(var E=180*SuperMap.Plot.PlottingUtil.radian(_,A)/Math.PI,x=[],j=0;j<w.length;j++)x.push(SuperMap.Plot.PlottingUtil.coordinateTrans(_,w[j],E));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,x)}if(M<=V){var C=[];C.push(m);for(var Y=M+1;Y<=V;Y++)C.push(e[Y]);C.push(A),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,C)}this.addScalePoint(s),this.addScalePoint(P),null!==v&&this.addScalePoint(v),this.finish()}}}},{key:"getRightSubSymbolPts",value:function(t){var e=.25*t,l=[];return l.push(new SuperMap.Geometry.Point(0,2*e)),l.push(new SuperMap.Geometry.Point(2*e,2*e)),l.push(new SuperMap.Geometry.Point(2*e,-e)),l.push(new SuperMap.Geometry.Point(0,-2*e)),l.push(new SuperMap.Geometry.Point(0,2*e)),l}}]),e}();SuperMap.Plot.AlgoSymbol30002=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol30000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(Math.PI/2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);var i=e*this.scaleValues[0],n=180*this.scaleValues[1]/Math.PI;if(!this.isEdit){var r=this.getSubSymbolScaleValue();this.scaleValues[2]=r}var a=e*this.scaleValues[2],s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i);if(-1!==s.index){var p=s.pt,u=new SuperMap.Geometry.Point(o[s.index].x,o[s.index].y),c=new SuperMap.Geometry.Point(o[s.index+1].x,o[s.index+1].y),P=180*SuperMap.Plot.PlottingUtil.radian(u,c)/Math.PI,S=SuperMap.Plot.PlottingUtil.circlePoint(p,a,a,P+n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p,S]);var h=180*SuperMap.Plot.PlottingUtil.radian(p,S)/Math.PI,y=new SuperMap.Geometry.Point(-.2*a,.05*a),f=new SuperMap.Geometry.Point(-.2*a,-.05*a),g=SuperMap.Plot.PlottingUtil.coordinateTrans(S,y,h),b=SuperMap.Plot.PlottingUtil.coordinateTrans(S,f,h);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,g,b],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0}),this.addScalePoint(p,0),this.addScalePoint(S,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var r=-1,a=0,s=new SuperMap.Geometry.Point(0,0),p=0;p<o.length-1;p++){var u=[];u.push(o[p]),u.push(o[p+1]);var c=SuperMap.Plot.PlottingUtil.projectPoint(e,o[p],o[p+1]);if(-1!==SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(c,u).index){var P=SuperMap.Plot.PlottingUtil.distance(e,c);-1==r?(r=p,s=c,a=P):a>P&&(r=p,s=c,a=P)}}if(-1==r||r>o.length-1)return;i=0;for(var S=0;S<r;S++)i+=SuperMap.Plot.PlottingUtil.distance(o[S],o[S+1]);if((i+=SuperMap.Plot.PlottingUtil.distance(o[r],s))<0||i>n)return;var h=i/n;this.scaleValues[0]=h}else if(1===t){var y=n*this.scaleValues[0],f=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,y);if(-1===f.index)return;var g=f.pt,b=o[f.index],M=o[f.index+1],m=SuperMap.Plot.PlottingUtil.radian(b,M),d=SuperMap.Plot.PlottingUtil.radian(g,e)-m;this.scaleValues[1]=d;var v=(i=SuperMap.Plot.PlottingUtil.distance(g,e))/n;this.scaleValues[2]=v}}}}]),e}();SuperMap.Plot.AlgoSymbol30000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 10!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.2),l.scaleValues.push(.2),l.scaleValues.push(.4),l.scaleValues.push(.4),l.scaleValues.push(.1),l.scaleValues.push(.2),l.scaleValues.push(.1),l.scaleValues.push(.2),l.scaleValues.push(1),l.scaleValues.push(1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var o,i,n=e*this.scaleValues[4],r=e*this.scaleValues[5],a=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),s=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],a+r);o=0===this.scaleValues[8]?SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,t[1],s).pntRight:SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,t[1],s).pntLeft;var p=e*this.scaleValues[6],u=e*this.scaleValues[7],c=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],a+u);i=0===this.scaleValues[9]?SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,t[0],c).pntLeft:SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,t[0],c).pntRight;var P=[];P.push(new SuperMap.Geometry.Point(o.x,o.y)),P.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),P.push(new SuperMap.Geometry.Point(t[1].x,t[1].y)),P.push(new SuperMap.Geometry.Point(i.x,i.y));var S=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(P);S=SuperMap.Plot.PlottingUtil.clearSamePts(S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S),this.addScalePoint(o,3),this.addScalePoint(i,4),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.projectPoint(e,l[0],l[1]);if(t<=2&&SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments),3===t){var n=SuperMap.Plot.PlottingUtil.distance(e,i)/o,r=SuperMap.Plot.PlottingUtil.distance(i,l[0])/o;this.scaleValues[4]=n,this.scaleValues[5]=r,SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],e)?this.scaleValues[8]=1:this.scaleValues[8]=0}if(4===t){var a=SuperMap.Plot.PlottingUtil.distance(e,i)/o,s=SuperMap.Plot.PlottingUtil.distance(i,l[1])/o;this.scaleValues[6]=a,this.scaleValues[7]=s,SuperMap.Plot.PlottingUtil.pointIsRightToLine(l[0],l[1],e)?this.scaleValues[9]=1:this.scaleValues[9]=0}}}}]),e}();SuperMap.Plot.AlgoSymbol29800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.3),l.scaleValues.push(1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.3),this.scaleValues.push(1)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var e,l,o=t[0].clone(),i=t[1].clone(),n=SuperMap.Plot.PlottingUtil.distance(o,i),r=this.scaleValues[0],a=this.scaleValues[1];if(SuperMap.Plot.PlottingUtil.equalFuzzy(1,a))e=SuperMap.Plot.PlottingUtil.radian(o,i)+270*SuperMap.Plot.PlottingUtil.DTOR;else e=SuperMap.Plot.PlottingUtil.radian(o,i)+90*SuperMap.Plot.PlottingUtil.DTOR,l=o,o=i,i=l;var s=n*r*.67,p=SuperMap.Plot.PlottingUtil.circlePoint(o,s,s,e*SuperMap.Plot.PlottingUtil.RTOD);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,n*r,e*SuperMap.Plot.PlottingUtil.RTOD);var u=SuperMap.Plot.PlottingUtil.circlePoint(i,s,s,e*SuperMap.Plot.PlottingUtil.RTOD);this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],u,n*r,e*SuperMap.Plot.PlottingUtil.RTOD),this.scalePoints=[];var c=e*SuperMap.Plot.PlottingUtil.RTOD,P=n*r,S=t[0].clone(),h=SuperMap.Plot.PlottingUtil.circlePoint(S,P,P,c);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=(l=SuperMap.Plot.PlottingUtil.clearSamePts(l))[0].clone(),i=l[1].clone(),n=e.clone(),r=SuperMap.Plot.PlottingUtil.distance(o,i),a=SuperMap.Plot.PlottingUtil.plumbLineLen(n,o,i)/r;if(a<0||SuperMap.Plot.PlottingUtil.equalFuzzy(a,0))return;this.scaleValues[0]=a,SuperMap.Plot.PlottingUtil.pointIsRightToLine(o,i,n)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}]),e}();SuperMap.Plot.AlgoSymbol28301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue());var i=l*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],o,i,0),this.scalePoints=[];var n=SuperMap.Plot.PlottingUtil.circlePoint(o,i,i,0);this.addScalePoint(n),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=[];o=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var r=SuperMap.Plot.PlottingUtil.distance(e,n)/i;this.scaleValues[0]=r}}}}]),e}();SuperMap.Plot.AlgoSymbol28300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28200=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol28200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.349066)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[1].x,t[1].y),o=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,i=0,n=0;n<t.length-1;n++)i+=SuperMap.Plot.PlottingUtil.distance(e,l);var r=this.scaleValues[0]*i;this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[e,new SuperMap.Geometry.Point(e.x+r,e.y)],{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var a=180*this.scaleValues[1]/Math.PI,s=SuperMap.Plot.PlottingUtil.circlePoint(e,i,i,o-a),p=SuperMap.Plot.PlottingUtil.circlePoint(e,i,i,o+a);this.addCell(SuperMap.Plot.SymbolType.ARCSYMBOL,[s,l,p],{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[0],t[1]],{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE},!0);var u=SuperMap.Plot.PlottingUtil.circlePoint(e,r,r,o-90);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,s],{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});var c=SuperMap.Plot.PlottingUtil.circlePoint(e,r,r,o+90);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c,p],{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c],{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE},!0);var P=SuperMap.Plot.PlottingUtil.circlePoint(e,r,r,o+180);this.addScalePoint(new SuperMap.Geometry.Point(P.x,P.y),0),this.addScalePoint(p,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=new SuperMap.Geometry.Point(l[0].x,l[0].y),i=new SuperMap.Geometry.Point(l[1].x,l[1].y),n=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,r=SuperMap.Plot.PlottingUtil.distance(o,i);if(0===t){var a=SuperMap.Plot.PlottingUtil.distance(o,e)/r;this.scaleValues[0]=a}if(1===t){var s=180*SuperMap.Plot.PlottingUtil.radian(o,e)/Math.PI,p=Math.abs(s-n);if(p>270&&p<360&&(p=360-p),p>90)return;this.scaleValues[1]=p*Math.PI/180}}}}]),e}();SuperMap.Plot.AlgoSymbol28100=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.349066)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l,o,i,n,r,a,s=this.scaleValues[1]*SuperMap.Plot.PlottingUtil.RTOD,p=new SuperMap.Geometry.Point(t[0].x,t[0].y),u=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),c=SuperMap.Plot.PlottingUtil.radian(p,u)*SuperMap.Plot.PlottingUtil.RTOD,P=new SuperMap.Geometry.Point(0,0);if(2<=t.length){for(e=[],l=new SuperMap.Geometry.Point(t[1].x,t[1].y),o=SuperMap.Plot.PlottingUtil.distance(p,l),i=0,i=c-s;i<c+s;i+=3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i));SuperMap.Plot.PlottingUtil.equalFuzzy(i,c+s)&&(i=c+s,e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i))),(n=[]).push(t[0]);for(var S=0;S<e.length;S++)n.push(new SuperMap.Geometry.Point(e[S].x,e[S].y));n.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),r=SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,c),P=new SuperMap.Geometry.Point(r.x,r.y),(a=[]).push(t[0]),a.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER})}var h=new SuperMap.Geometry.Point(0,0);if(3<=t.length){for(e=[],l=new SuperMap.Geometry.Point(t[2].x,t[2].y),o=SuperMap.Plot.PlottingUtil.distance(p,l),i=0,i=c-s;i<c+s;i+=3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i));SuperMap.Plot.PlottingUtil.equalFuzzy(i,c+s)&&(i=c+s,e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i)));var y=[];if(0==e.length)return void(y.length>0&&(y=[]));(n=[]).push(t[0]);for(var f=0;f<e.length;f++)n.push(new SuperMap.Geometry.Point(e[f].x,e[f].y));n.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER});for(var g=new SuperMap.Geometry.Point(t[1].x,t[1].y),b=SuperMap.Plot.PlottingUtil.distance(p,g)*this.scaleValues[0],M=[],m=90;m<=270;m+=3)M.push(SuperMap.Plot.PlottingUtil.circlePoint(p,b,b,c+m));n=[];for(var d=M.length-1;d>=0;d--)n.push(new SuperMap.Geometry.Point(M[d].x,M[d].y));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),(n=[]).push(new SuperMap.Geometry.Point(M[0].x,M[0].y)),n.push(new SuperMap.Geometry.Point(e[e.length-1].x,e[e.length-1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),(n=[]).push(new SuperMap.Geometry.Point(e[0].x,e[0].y)),n.push(new SuperMap.Geometry.Point(M[M.length-1].x,M[M.length-1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),r=SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,c),h=new SuperMap.Geometry.Point(r.x,r.y),(a=[]).push(P),a.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER})}var v=new SuperMap.Geometry.Point(0,0);if(4<=t.length){for(e=[],l=new SuperMap.Geometry.Point(t[3].x,t[3].y),o=SuperMap.Plot.PlottingUtil.distance(p,l),i=0,i=c-s;i<=c+s;i+=3)e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i));SuperMap.Plot.PlottingUtil.equalFuzzy(i,c+s)&&(i=c+s,e.push(SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,i))),(n=[]).push(t[0]);for(var O=0;O<e.length;O++)n.push(new SuperMap.Geometry.Point(e[O].x,e[O].y));n.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER}),r=SuperMap.Plot.PlottingUtil.circlePoint(p,o,o,c),v=new SuperMap.Geometry.Point(r.x,r.y),(a=[]).push(h),a.push(v),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.INNER})}if(3>t.length)this.addScalePoint(t[0]);else{var U=SuperMap.Plot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0],L=SuperMap.Plot.PlottingUtil.circlePoint(p,U,U,c+180);this.addScalePoint(L,0)}var w=SuperMap.Plot.PlottingUtil.distance(t[0],t[t.length-1]),_=SuperMap.Plot.PlottingUtil.circlePoint(p,w,w,c+s);this.addScalePoint(_,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l,o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMap.Plot.PlottingUtil.clearSamePts(o),0==t){if(3>o.length)return;var i=new SuperMap.Geometry.Point(o[0].x,o[0].y),n=new SuperMap.Geometry.Point(e.x,e.y),r=SuperMap.Plot.PlottingUtil.distance(i,n),a=new SuperMap.Geometry.Point(o[1].x,o[1].y);if((l=r/SuperMap.Plot.PlottingUtil.distance(i,a))>=2.5)return;this.scaleValues[0]=l}else if(1==t){var s=new SuperMap.Geometry.Point(o[0].x,o[0].y),p=new SuperMap.Geometry.Point(o[o.length-1].x,o[o.length-1].y),u=SuperMap.Plot.PlottingUtil.radian(s,p),c=new SuperMap.Geometry.Point(e.x,e.y);if(l=SuperMap.Plot.PlottingUtil.radian(s,c)-u,(l=Math.abs(l))>Math.PI/2&&l<3*Math.PI/2)return;l>3*Math.PI/2&&l<=2*Math.PI&&(l=2*Math.PI-l),this.scaleValues[1]=Math.abs(l)}}}}]),e}();SuperMap.Plot.AlgoSymbol28000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26601=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);for(var l,o,i=SuperMap.Plot.PlottingUtil.polylineDistance(e),n=.1*i,r=.5*n,a=this.computeDashLine(n,r,e),s=.01*i,p=0;p<a.length;p++)l=SuperMap.Plot.PlottingUtil.paraLine(a[p],s,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),o=SuperMap.Plot.PlottingUtil.paraLine(a[p],s,!1),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);this.finish()}}},{key:"computeDashLine",value:function(t,e,l){for(var o,i,n=[],r=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=l[0].clone(),s=1,p=0,u=!0,c=!0;p<r;){var P;(i=[]).push(a),p+=t;var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,l);if(P=S.index,o=S.pts,!(u=S.bfind))break;if(s<P)for(var h=s;h<P;h++)i.push(l[h]);i.push(o),n.push(i),p+=e;var y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(p,l);if(P=y.index,a=y.pts,s=P+1,!(c=y.bfind))break}if(!u){(i=[]).push(a);for(var f=s;f<l.length;f++)i.push(l[f]);2===i.length&&0===SuperMap.Plot.PlottingUtil.distance(i[0],i[1])||n.push(i)}if(!c){var g=l[l.length-1],b=SuperMap.Plot.PlottingUtil.distance(o,g);if(b*=.01,!SuperMap.Plot.PlottingUtil.equalFuzzy(b,0)){var M=SuperMap.Plot.PlottingUtil.linePnt(g,o,b);(i=[]).push(M),i.push(g),n.push(i)}}return n}}]),e}();SuperMap.Plot.AlgoSymbol26601=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26600=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=.1*SuperMap.Plot.PlottingUtil.polylineDistance(e),o=.5*l;this.computeDashLine(l,o,e),this.finish()}}},{key:"computeDashLine",value:function(t,e,l){for(var o,i,n=SuperMap.Plot.PlottingUtil.polylineDistance(l),r=l[0].clone(),a=1,s=0,p=!0,u=!0;s<n;){var c;(i=[]).push(r),s+=t;var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,l);if(c=P.index,o=P.pts,!(p=P.bfind))break;if(a<c)for(var S=a;S<c;S++)i.push(l[S]);i.push(o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),s+=e;var h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,l);if(c=h.index,r=h.pts,a=c+1,!(u=h.bfind))break}if(!p){(i=[]).push(r);for(var y=a;y<l.length;y++)i.push(l[y]);2===i.length&&0===SuperMap.Plot.PlottingUtil.distance(i[0],i[1])||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}if(!u){var f=l[l.length-1],g=SuperMap.Plot.PlottingUtil.distance(o,f);if(g*=.01,!SuperMap.Plot.PlottingUtil.equalFuzzy(g,0)){var b=SuperMap.Plot.PlottingUtil.linePnt(f,o,g);(i=[]).push(b),i.push(f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}}}}]),e}();SuperMap.Plot.AlgoSymbol26600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,l/2);if(-1!==o.index){var i=o.pt,n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=n;var r=1.5*this.scaleValues[0]*l,a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[o.index],i),s=[];s.push(a.pntLeft),s.push(i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s,null,!0),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol26500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5));for(var i=this.getLinePts(e,this.scaleValues[0]),n=this.getLinePts(e,1.2*this.scaleValues[0]),r=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt),a=[],s=[],p=0;p<=n.startIndex;p++)a.push(e[p]);if(a.push(n.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),n.endIndex<=e.length){s.push(n.endPt);for(var u=n.endIndex+1;u<=e.length-1;u++)s.push(e[u]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}var c=e[0],P=e[1],S=e[e.length-2],h=e[e.length-1],y=.3*r,f=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y,P,c),g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(y,S,h),b=f.pntLeft,M=g.pntLeft,m=[];m.push(c),m.push(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m);var d=[];d.push(h),d.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,O=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),U=new SuperMap.Geometry.Point(.1*r,0),L=new SuperMap.Geometry.Point(.5*r,0),w=SuperMap.Plot.PlottingUtil.coordinateTrans(O,U,v),_=SuperMap.Plot.PlottingUtil.coordinateTrans(O,L,v),V=[];V.push(w),V.push(_);var A={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V,A);var T=new SuperMap.Geometry.Point(.35*r,0),E=SuperMap.Plot.PlottingUtil.circlePoint(T,.2*r,.2*r,135),x=SuperMap.Plot.PlottingUtil.circlePoint(T,.2*r,.2*r,225),j=SuperMap.Plot.PlottingUtil.coordinateTrans(O,T,v),C=SuperMap.Plot.PlottingUtil.coordinateTrans(O,E,v),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(O,x,v);(V=[]).push(C),V.push(j),V.push(Y),A={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0},this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V,A);var I=new SuperMap.Geometry.Point(-.1*r,0),B=new SuperMap.Geometry.Point(-.5*r,-.15*r),R=new SuperMap.Geometry.Point(-.5*r,.15*r),G=SuperMap.Plot.PlottingUtil.coordinateTrans(O,I,v),N=SuperMap.Plot.PlottingUtil.coordinateTrans(O,B,v),D=SuperMap.Plot.PlottingUtil.coordinateTrans(O,R,v);(V=[]).push(G),V.push(N),V.push(D),V.push(G),A={surroundLineFlag:!1,lineTypeLimit:!0,fillLimit:!0},this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V,A);var k=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),z=SuperMap.Plot.PlottingUtil.circlePoint(k.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,v);this.addScalePoint(z,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol25400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.222222),l.scaleValues.push(.5),l.scaleValues.push(.5),l.scaleValues.push(.5)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.222222),this.scaleValues.push(.5),this.scaleValues.push(.5),this.scaleValues.push(.5));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),r=new SuperMap.Geometry.Point(0,o*i),a=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*a),u=new SuperMap.Geometry.Point(o*(1-s),o*a),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l),g=[];g.push(n),g.push(p),g.push(S),g.push(y),g.push(h),g.push(u),g.push(r);for(var b=[],M=0;M<g.length;M++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[M],f*SuperMap.Plot.PlottingUtil.RTOD);b.push(m)}for(var d=[],v=b.length-1;v>=0;--v)d.push(b[v]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d),this.scalePoints=[];var O=b[0].clone();O.isScalePoint=!0,O.tag=0,this.scalePoints.push(O);var U=b[1].clone();U.isScalePoint=!0,U.tag=1,this.scalePoints.push(U);var L=b[2].clone();L.isScalePoint=!0,L.tag=2,this.scalePoints.push(L),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),r=l[1].clone(),a=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(a,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMap.Plot.PlottingUtil.projectPoint(a,n,r);var p=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMap.Plot.PlottingUtil.projectPoint(a,n,r);var c=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[2]=c;var P=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[4]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol25000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 6!==l.scaleValues.length&&(l.scaleValues=[],l.scaleValues.push(.05),l.scaleValues.push(.148),l.scaleValues.push(.4),l.scaleValues.push(.312),l.scaleValues.push(.2),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments);var e=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(t.splice(0,2),t.unshift(e),this.subSymbols.length>0){var l;if(null==this.subSymbols[0].symbolData)return;l=Math.max(this.subSymbols[0].symbolData.symbolSize.x,this.subSymbols[0].symbolData.symbolSize.y);var o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=o*this.scaleValues[4],n=o*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,t),a=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,t),s=SuperMap.Plot.PlottingUtil.radian(a.pts,r.pts)*SuperMap.Plot.PlottingUtil.RTOD+270,p=100*SuperMap.Plot.PlottingUtil.distance(r.pts,a.pts)/l,u=new SuperMap.Geometry.Point((a.pts.x+r.pts.x)/2,(r.pts.y+a.pts.y)/2);if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],u,p,s),r.pts.isScalePoint=!0,r.pts.tag=this.scalePoints.length,this.scalePoints.push(r.pts.clone()),a.pts.isScalePoint=!0,a.pts.tag=this.scalePoints.length,this.scalePoints.push(a.pts.clone())}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<2)return;if(this.scaleValues.length<6&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2),this.scaleValues.push(.01)),t<=2)SuperMap.Plot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var o=new SuperMap.Geometry.Point((l[0].x+l[1].x)/2,(l[0].y+l[1].y)/2),i=SuperMap.Plot.PlottingUtil.clonePoints(l);i.splice(0,2),i.unshift(o);var n=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i),r=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(3===t&&null==n.pt&&(n.pt=o.clone()),-1==n.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMap.Plot.PlottingUtil.clonePoints(i);a.splice(0,n.index+1),a.unshift(n.pt);var s=SuperMap.Plot.PlottingUtil.polylineDistance(a);r<s&&(s=r),this.scaleValues[t+1]=(r-s)/r,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5)}}}}}]),e}();SuperMap.Plot.AlgoSymbol25200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29103=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol29100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=[];o=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var i=0;i<4;i++){var n=i*(o.length-1)/4,r=new SuperMap.Geometry.Point(o[n].x,o[n].y),a=new SuperMap.Geometry.Point(o[n+1].x,o[n+1].y),s=new SuperMap.Geometry.Point((r.x+a.x)/2,(r.y+a.y)/2),p=180*SuperMap.Plot.PlottingUtil.radian(s,a)/Math.PI,u=e*this.scaleValues[0]/2,c=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p),P=SuperMap.Plot.PlottingUtil.circlePoint(s,4*u,4*u,p+270),S=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p+180);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,P,S],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0})}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol29103=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29101=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol29100),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var l=[];l=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);for(var o=0;o<4;o++){var i=o*(l.length-1)/4,n=new SuperMap.Geometry.Point(l[i].x,l[i].y),r=new SuperMap.Geometry.Point(l[i+1].x,l[i+1].y),a=new SuperMap.Geometry.Point((n.x+r.x)/2,(n.y+r.y)/2),s=SuperMap.Plot.PlottingUtil.radian(a,r)*SuperMap.Plot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,u=SuperMap.Plot.PlottingUtil.circlePoint(a,p,p,s),c=SuperMap.Plot.PlottingUtil.circlePoint(a,4*p,4*p,s+270),P=SuperMap.Plot.PlottingUtil.circlePoint(a,p,p,s+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c,P])}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol29101=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol29000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=t.length,o=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),i=SuperMap.Plot.PlottingUtil.radian(t[0],t[1])*SuperMap.Plot.PlottingUtil.RTOD,n=[];2==l?(e=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t),n.push.apply(n,e)):3==l&&(e=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),n=n.concat(e));var r,a=new SuperMap.Geometry.Point(.8*o,.1*o),s=new SuperMap.Geometry.Point(1.2*o,.1*o),p=new SuperMap.Geometry.Point(1.2*o,.1*-o),u=new SuperMap.Geometry.Point(.9*o,.1*-o),c=[];c.push(a),c.push(s),c.push(p),c.push(u);var P=[],S=0;for(S=0;S<4;S++)r=SuperMap.Plot.PlottingUtil.coordinateTrans(t[0],c[S],i),P.push(r);var h=new SuperMap.Geometry.Point(-.8*o,.1*o),y=new SuperMap.Geometry.Point(-1.2*o,.1*o),f=new SuperMap.Geometry.Point(-1.1*o,.1*-o),g=new SuperMap.Geometry.Point(-.8*o,.1*-o);(c=[]).push(h),c.push(y),c.push(f),c.push(g);var b=[];for(S=0;S<4;S++)r=SuperMap.Plot.PlottingUtil.coordinateTrans(t[0],c[S],i),b.push(r);var M,m=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],3*o),d=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],2*o),v=[];for(S=0;S<n.length-1;S++){var O=SuperMap.Plot.PlottingUtil.intersectLines(n[S],n[S+1],m,d);O.isIntersectLines&&(M=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(O.intersectPoint,n)).isOnPolyLine&&v.push(O.intersectPoint)}if(!(0>=v.length)&&(M=SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(v[0],n)).isOnPolyLine){var U=[];for(S=M.index+1;S<n.length;S++)U.push(n[S]);for(S=0;S<=M.index;S++)U.push(n[S]);var L=[],w=[];SuperMap.Plot.PlottingUtil.ptIsInPolygon(P,v[0])?(L.push.apply(L,P),w.push.apply(w,b)):(L.push.apply(L,b),w.push.apply(w,P));var _=[],V=[];for(M=-1,S=0;S<U.length;S++)if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(L,U[S])){if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(w,U[S])){M=S;break}_.push(U[S])}if(-1!==M)for(S=M;S<U.length;S++)if(!SuperMap.Plot.PlottingUtil.ptIsInPolygon(w,U[S])){if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(L,U[S]))break;V.push(U[S])}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,_),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V),this.addLine(_),this.addLine(V),this.finish()}}}},{key:"addLine",value:function(t){for(var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=0;l<t.length-2;l++){var o=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.02*e,t);if(-1!==o.index){var i=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*e,t);if(-1!==i.index){var n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.92*e,t);if(-1!==n.index&&(l===o.index||l===o.index+1||l===n.index||l===n.index+1||l===i.index||l===i.index+1)){var r=SuperMap.Plot.PlottingUtil.radian(t[l+1],t[l])*SuperMap.Plot.PlottingUtil.RTOD,a=SuperMap.Plot.PlottingUtil.circlePoint(t[l+1],.02*e,.02*e,r+90);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[t[l+1],a])}}}}}}]),e}();SuperMap.Plot.AlgoSymbol29000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol28900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5)),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var i=e[0],n=e[1],r=e[e.length-2],a=e[e.length-1],s=l*this.scaleValues[0]*.6,p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,n,i),u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,r,a),c=p.pntLeft,P=u.pntRight,S=[];S.push(i),S.push(c);for(var h=new SuperMap.Geometry.Point((i.x+c.x)/2,(i.y+c.y)/2),y=SuperMap.Plot.PlottingUtil.polylineDistance(S)/2,f=[],g=180*SuperMap.Plot.PlottingUtil.radian(n,i)/Math.PI,b=270+g;b<=360+g;b+=3)f.push(SuperMap.Plot.PlottingUtil.circlePoint(h,y,y,b));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var M=[];M.push(a),M.push(P);var m=[];m.push(a),m.push(P);for(var d=new SuperMap.Geometry.Point((a.x+P.x)/2,(a.y+P.y)/2),v=SuperMap.Plot.PlottingUtil.polylineDistance(m)/2,O=[],U=180*SuperMap.Plot.PlottingUtil.radian(a,P)/Math.PI,L=90+U;L<=180+U;L+=3)O.push(SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,L));this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol28900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23902=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.2),l.scaleValues.push(.5),l.scaleValues.push(.125),l.scaleValues.push(90)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l,o,i,n=[];if(2==t.length){e=t[0],l=t[1];var r=SuperMap.Plot.PlottingUtil.distance(e,l);i=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,o=SuperMap.Plot.PlottingUtil.circlePoint(e,r,r,i+60),n.push(e),n.push(o),n.push(l)}else n=n.concat(t);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n),n.push(n[0]);var a=SuperMap.Plot.PlottingUtil.polylineDistance(n),s=this.scaleValues[0],p=this.scaleValues[1],u=this.scaleValues[2],c=this.scaleValues[4],P=a*s;e=n[0],l=n[1],o=n[2];var S,h=a*p,y=180*SuperMap.Plot.PlottingUtil.InnerAngle(e,l,o)/Math.PI*u,f=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,g=f-y,b=f+y,M=SuperMap.Plot.PlottingUtil.circlePoint(e,h,h,g),m=SuperMap.Plot.PlottingUtil.circlePoint(e,h,h,b);S=SuperMap.Plot.PlottingUtil.ptIsInPolygon(n,M)?M:m;var d=a*this.scaleValues[3];i=c,0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],S,d,i-90);var v=SuperMap.Plot.PlottingUtil.circlePoint(e,P,P,f+180);this.addScalePoint(v),this.addScalePoint(S);var O=SuperMap.Plot.PlottingUtil.circlePoint(S,.5*d,.5*d,i);this.addScalePoint(O),this.createArcPts(n,P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,r,a,s,p,u=[];2==l.length?(o=l[0],i=l[1],a=SuperMap.Plot.PlottingUtil.distance(o,i),r=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,n=SuperMap.Plot.PlottingUtil.circlePoint(o,a,a,r+60),u.push(o),u.push(i),u.push(n)):u=u.concat(l),o=u[0],i=u[1],n=u[2],u.push(u[0]);var c=SuperMap.Plot.PlottingUtil.polylineDistance(u),P=e;if(0===t)a=SuperMap.Plot.PlottingUtil.distance(P,u[0]),this.scaleValues[0]=a/c;else if(1===t){s=SuperMap.Plot.PlottingUtil.distance(P,u[0])/c,this.scaleValues[1]=s,r=180*SuperMap.Plot.PlottingUtil.InnerAngle(o,i,n)/Math.PI,0<=(p=180*SuperMap.Plot.PlottingUtil.InnerAngle(o,i,P)/Math.PI/r)&&1>=p&&(this.scaleValues[2]=p)}else if(2===t){s=this.scaleValues[1],p=this.scaleValues[2];var S,h=c*s,y=180*SuperMap.Plot.PlottingUtil.InnerAngle(o,i,n)/Math.PI*p,f=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,g=f-y,b=f+y,M=SuperMap.Plot.PlottingUtil.circlePoint(o,h,h,g),m=SuperMap.Plot.PlottingUtil.circlePoint(o,h,h,b);S=SuperMap.Plot.PlottingUtil.ptIsInPolygon(u,M)?M:m;var d=2*SuperMap.Plot.PlottingUtil.distance(P,S)/c;this.scaleValues[3]=d;var v=180*SuperMap.Plot.PlottingUtil.radian(S,P)/Math.PI;this.scaleValues[4]=v}}}},{key:"ComputeSubSymbolPt",value:function(t,e,l,o){var i,n,r=l[0],a=l[1],s=l[2],p=SuperMap.Plot.PlottingUtil.plumbLineLen(s,r,a)*t,u=SuperMap.Plot.PlottingUtil.plumbLineLen(a,r,s)*e,c=[];if(SuperMap.Plot.PlottingUtil.pointIsRightToLine(r,a,o)?((i=[]).push(r),i.push(a),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!1)):((i=[]).push(r),i.push(a),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!0)),SuperMap.Plot.PlottingUtil.pointIsRightToLine(r,s,o)?((i=[]).push(r),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!1)):((i=[]).push(r),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!0)),2>c.length||2>n.length)return o;var P=SuperMap.Plot.PlottingUtil.intersectLines(c[0],c[1],n[0],n[1]);return P.isIntersectLines?P.intersectPoint:o}},{key:"createArcPts",value:function(t,e){for(var l=[],o=[],i=0;i<t.length;i++)o.push(e),l.push([{Start:0,End:360}]);for(var n=0;n<t.length;n++)if(0!==l[n].length&&(0!==l[n][0].Start||0!==l[n][0].End))for(var r=n+1;r<t.length;r++)if(0!==l[r].length&&(0!==l[r][0].Start||0!==l[r][0].End)){var a=SuperMap.Plot.PlottingUtil.distance(t[n],t[r]);if(a<o[n]+o[r])if(a>Math.abs(o[n]-o[r]))for(var s=0;s<2;s++){var p,u,c;0==s?(c=n,p=SuperMap.Plot.PlottingUtil.radian(t[n],t[r])*SuperMap.Plot.PlottingUtil.RTOD,u=Math.acos((a*a+o[n]*o[n]-o[r]*o[r])/(2*a*o[n]))*SuperMap.Plot.PlottingUtil.RTOD):(c=r,p=SuperMap.Plot.PlottingUtil.radian(t[r],t[n])*SuperMap.Plot.PlottingUtil.RTOD,u=Math.acos((a*a+o[r]*o[r]-o[n]*o[n])/(2*a*o[r]))*SuperMap.Plot.PlottingUtil.RTOD);var P=p-u,S=p+u,h=P<0&&S>0||P>360||S>360;P=this.adjustAngle(P),S=this.adjustAngle(S);for(var y=l[c].length-1;y>=0;y--)if(h){if(S>l[c][y].End||SuperMap.Plot.PlottingUtil.equalFuzzy(S,l[c][y].End)){l[c].splice(y,1);continue}if(S>l[c][y].Start&&(l[c][y].Start=S),P<l[c][y].Start||SuperMap.Plot.PlottingUtil.equalFuzzy(P,l[c][y].Start)){l[c].splice(y,1);continue}P<l[c][y].End&&(l[c][y].End=P)}else if(P<l[c][y].Start&&S>l[c][y].End)l[c].splice(y,1);else if(P>l[c][y].Start&&S<l[c][y].End)l[c].push({Start:l[c][y].Start,End:P}),l[c].push({Start:S,End:l[c][y].End}),l[c].splice(y,1);else{if(P>l[c][y].End)continue;if(P>l[c][y].Start&&(l[c][y].End=P),S<l[c][y].Start)continue;S<l[c][y].End&&(l[c][y].Start=S)}}else{if(o[n]<o[r]){l[n][0].Start=0,l[n][0].End=0;break}l[r][0].Start=0,l[r][0].End=0}}for(var f=0;f<t.length;f++)if(0!==l[f].length&&(0!==l[f][0].Start||0!==l[f][0].End))for(var g=l[f].length-1;g>=0;g--){for(var b=this.adjustAngle(l[f][g].Start),M=this.adjustAngle(l[f][g].End);M<b;)M+=360;for(var m=[],d=(M-b)/72,v=b;v<M+d/2;v+=d){var O=t[f].x+o[f]*Math.cos(v*SuperMap.Plot.PlottingUtil.DTOR),U=t[f].y+o[f]*Math.sin(v*SuperMap.Plot.PlottingUtil.DTOR);m.push(new SuperMap.Geometry.Point(O,U))}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m)}}},{key:"adjustAngle",value:function(t){for(;t>360;)t-=360;for(;t<0;)t+=360;return t}},{key:"GetCirclePts",value:function(t,e,l,o){var i=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,n=180*SuperMap.Plot.PlottingUtil.radian(t,l)/Math.PI,r=i;n>i&&(r=n);for(var a=[],s=r;s<360+r;s+=4)90==s&&(s=91),a.push(SuperMap.Plot.PlottingUtil.circlePoint(t,o,o,s));return a.push[0],a}},{key:"CreatArc",value:function(t,e,l){for(var o=[],i=[],n=0;n<t.length;n++){var r=t[n];SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,r)||SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,r)?(i.length>1&&o.push(i),i=[]):i.push(r)}i.length>1&&o.push(i);for(var a=0;a<o.length;a++){var s=o[a];this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}}},{key:"GetArcPts3D",value:function(t,e,l){for(var o=[],i=[],n=0;n<t.length;n++){var r=t[n];SuperMap.Plot.PlottingUtil.ptIsInPolygon(e,r)||SuperMap.Plot.PlottingUtil.ptIsInPolygon(l,r)?(i.length>1&&o.push(i),i=[]):i.push(r)}i.length>1&&o.push(i);for(var a=[],s=0;s<o.length;s++)a=a.concat(o[s]);return a}},{key:"sortPts",value:function(t,e){t=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e);for(var l=0;l<e.length;l++)for(var o=e[l],i=180*SuperMap.Plot.PlottingUtil.radian(t,o)/Math.PI,n=0;n<e.length;n++){var r=e[n],a=180*SuperMap.Plot.PlottingUtil.radian(t,r)/Math.PI;if(i>a){var s=new SuperMap.Geometry.Point(o.x,o.y);o=new SuperMap.Geometry.Point(r.x,r.y),r=new SuperMap.Geometry.Point(s.x,s.y),i=a,e[l]=o,e[n]=r}}return e}}]),e}();SuperMap.Plot.AlgoSymbol23902=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23901=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.333333),l.scaleValues.push(.333333),l.scaleValues.push(.125),l.scaleValues.push(90)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e,l=[];if(2==t.length){var o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=SuperMap.Plot.PlottingUtil.distance(o,i);e=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI;var r=SuperMap.Plot.PlottingUtil.circlePoint(o,n,n,e+60);l.push(t[0]),l.push(i),l.push(r),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l)}else{this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t);for(var a=0;a<t.length;a++)l.push(t[a])}var s=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(l);l.push(l[0]);var p=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(!this.isEdit){var u=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.scaleValues[2]=2*u*this.getSubSymbolScaleValue()/p}var c=this.scaleValues[0],P=this.scaleValues[1],S=this.scaleValues[2],h=this.scaleValues[3],y=this.ComputeSubSymbolPt(c,P,l,s),f=p*S,g=y;e=h-90,0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],g,f,e),this.addScalePoint(g);var b=SuperMap.Plot.PlottingUtil.circlePoint(y,f,f,h);this.addScalePoint(b),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o,i,n,r=[];if(2==l.length){o=l[0],i=l[1];var a=SuperMap.Plot.PlottingUtil.distance(o,i),s=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI;n=SuperMap.Plot.PlottingUtil.circlePoint(o,a,a,s+60),r.push(o),r.push(i),r.push(n)}else r=r.concat(l);o=r[0],i=r[1],n=r[2];var p=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(r);r.push(r[0]);var u=SuperMap.Plot.PlottingUtil.polylineDistance(r),c=e;if(0==t){var P=SuperMap.Plot.PlottingUtil.plumbLineLen(n,o,i),S=SuperMap.Plot.PlottingUtil.plumbLineLen(i,o,n),h=SuperMap.Plot.PlottingUtil.plumbLineLen(c,o,i)/P,y=SuperMap.Plot.PlottingUtil.plumbLineLen(c,o,n)/S;h>1&&(h=1),y>1&&(y=1),this.scaleValues[0]=h,this.scaleValues[1]=y}else if(1==t){var f=this.scaleValues[0],g=this.scaleValues[1],b=this.ComputeSubSymbolPt(f,g,r,p),M=SuperMap.Plot.PlottingUtil.distance(b,c)/u;this.scaleValues[2]=M;var m=180*SuperMap.Plot.PlottingUtil.radian(b,c)/Math.PI;this.scaleValues[3]=m}}}},{key:"ComputeSubSymbolPt",value:function(t,e,l,o){var i,n,r=l[0],a=l[1],s=l[2],p=SuperMap.Plot.PlottingUtil.plumbLineLen(s,r,a)*t,u=SuperMap.Plot.PlottingUtil.plumbLineLen(a,r,s)*e,c=[];if(SuperMap.Plot.PlottingUtil.pointIsRightToLine(r,a,o)?((i=[]).push(r),i.push(a),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!1)):((i=[]).push(r),i.push(a),c=SuperMap.Plot.PlottingUtil.paraLine(i,p,!0)),SuperMap.Plot.PlottingUtil.pointIsRightToLine(r,s,o)?((i=[]).push(r),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!1)):((i=[]).push(r),i.push(s),n=SuperMap.Plot.PlottingUtil.paraLine(i,u,!0)),2>c.length||2>n.length)return o;var P=SuperMap.Plot.PlottingUtil.intersectLines(c[0],c[1],n[0],n[1]);return P.isIntersectLines?P.intersectPoint:o}}]),e}();SuperMap.Plot.AlgoSymbol23901=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol23800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<3&&(this.scaleValues=[],this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{fillLimit:!0,fill:!1,surroundLineFlag:!1});var l=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=this.getDefaultSubSymbolSize()/o;(i>.2||i<=0)&&(i=.2),this.scaleValues[0]=i}var n=this.scaleValues[0],r=this.scaleValues[2],a=this.scaleValues[3],s=o*n,p=new SuperMap.Geometry.Point(l.x+o*r,l.y+o*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,s,0),this.addScalePoint(p);var u=s,c=SuperMap.Plot.PlottingUtil.circlePoint(p,u,u,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),a=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-r.x)/a,this.scaleValues[2]=i,n=(e.y-r.y)/a,this.scaleValues[3]=n;else if(1===t){i=this.scaleValues[2],n=this.scaleValues[3];var s=new SuperMap.Geometry.Point(r.x+a*i,r.y+a*n),p=SuperMap.Plot.PlottingUtil.distance(s,e)/a;this.scaleValues[0]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol23500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol23400=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e),this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var l=this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2],n=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(e),r=SuperMap.Plot.PlottingUtil.polylineDistance(t),a=r*i,s=new SuperMap.Geometry.Point(n.x+r*l,n.y+r*o);if(this.subSymbols.length>0){if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],s,a,0),this.addScalePoint(s);var p=SuperMap.Plot.PlottingUtil.circlePoint(s,a,a,0);this.addScalePoint(p)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var o=[];o=3>=l.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,l):l.length>3&&!0===this.polylineConnectLocationPoint?l:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n,r=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(o),a=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t)i=(e.x-r.x)/a,this.scaleValues[0]=i,n=(e.y-r.y)/a,this.scaleValues[1]=n;else if(1===t){i=this.scaleValues[0],n=this.scaleValues[1];var s=new SuperMap.Geometry.Point(r.x+a*i,r.y+a*n),p=SuperMap.Plot.PlottingUtil.distance(s,e)/a;this.scaleValues[2]=p}}}}]),e}();SuperMap.Plot.AlgoSymbol23400=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol22000=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.03):1===this.scaleValues.length&&(this.scaleValues[1]=.02),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=.6*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.8*a,r);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p)}var P=e[0],S=e[1],h=e[e.length-2],y=e[e.length-1],f=l*this.scaleValues[1],g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f,S,P),b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f,h,y),M=g.pntLeft,m=b.pntLeft,d=[];d.push(P),d.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d);var v=[];v.push(y),v.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v);var O=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),U=SuperMap.Plot.PlottingUtil.circlePoint(O.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r);this.addScalePoint(U,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol22000=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.2),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.2));var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],l=.5*e,o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,r=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,n+90),a=SuperMap.Plot.PlottingUtil.circlePoint(o,e,e,n+270),s=SuperMap.Plot.PlottingUtil.circlePoint(r,l,l,n),p=SuperMap.Plot.PlottingUtil.circlePoint(a,l,l,n),u=[];u.push(p),u.push(a),u.push(r),u.push(s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var c=SuperMap.Plot.PlottingUtil.circlePoint(i,e,e,n+90),P=SuperMap.Plot.PlottingUtil.circlePoint(i,e,e,n+270),S=SuperMap.Plot.PlottingUtil.circlePoint(c,l,l,n+180),h=SuperMap.Plot.PlottingUtil.circlePoint(P,l,l,n+180);(u=[]).push(S),u.push(c),u.push(P),u.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),this.addScalePoint(r),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol21800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21600=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.05)),l.subText="",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(SuperMap.Plot.PlottingUtil.clearSamePts(t),!(t.length<this.minEditPts)){1==this.scaleValues.length&&this.scaleValues.push(this.getSubSymbolScaleValue()),this.isEdit||(this.scaleValues[0]=.6*this.getSubSymbolScaleValue(),this.scaleValues[1]=this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);for(var l=0,o=0;o<e.length-1;o++)l+=SuperMap.Plot.PlottingUtil.distance(e[o],e[o+1]);var i=.5*l,n=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,i);if(-1!==n.index){for(var r=n.pt,a=[],s=0,p=0;p<n.index+1;p++)a.push(e[p]),p>0&&(s+=SuperMap.Plot.PlottingUtil.distance(a[p],a[p-1]));var u,c,P=i-s,S=l*this.scaleValues[1],h=[];if(P>=S){u=SuperMap.Plot.PlottingUtil.linePnt(r,e[n.index],S),a.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),c=SuperMap.Plot.PlottingUtil.linePnt(r,e[n.index+1],S),h.push(c);for(var y=e.length,f=n.index+1;f<y;++f)h.push(e[f]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}else{for(var g,b,M=-1,m=a.length-1;m>=0;m--)if(g=new SuperMap.Geometry.Point(a[m].x,a[m].y),b=new SuperMap.Geometry.Point(r.x,r.y),SuperMap.Plot.PlottingUtil.distance(g,b)>S){M=m;break}if(-1==M)return;a.splice(M+1,a.length-1-M),u=SuperMap.Plot.PlottingUtil.linePnt(r,e[M],S),a.push(u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);for(var d=-1,v=n.index;v<e.length;v++)if(g=new SuperMap.Geometry.Point(e[v].x,e[v].y),b=new SuperMap.Geometry.Point(r.x,r.y),SuperMap.Plot.PlottingUtil.distance(g,b)>S){d=v;break}if(-1==d)return;c=SuperMap.Plot.PlottingUtil.linePnt(r,e[d],S),h.push(c);for(var O=d+1;O<e.length;++O)h.push(e[O]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}if(!(a.length<2)){for(var U=0,L=0;L<t.length-1;L++)U+=SuperMap.Plot.PlottingUtil.distance(t[L],t[L+1]);var w=U*this.scaleValues[0],_=new SuperMap.Geometry.Point(a[0].x,a[0].y),V=new SuperMap.Geometry.Point(a[1].x,a[1].y),A=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(w,V,_),T=[];if(T.push(A.pntLeft),T.push(A.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T),!(h.length<2)){var E=new SuperMap.Geometry.Point(h[h.length-1].x,h[h.length-1].y),x=new SuperMap.Geometry.Point(h[h.length-2].x,h[h.length-2].y),j=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(w,x,E);(T=[]).push(j.pntLeft),T.push(j.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T);var C=u,Y=c,I=180*SuperMap.Plot.PlottingUtil.radian(C,Y)/Math.PI,B=SuperMap.Plot.PlottingUtil.distance(C,Y),R=new SuperMap.Geometry.Point((u.x+c.x)/2,(u.y+c.y)/2),G=this.subText;this.addText(G,R,B,I),this.addScalePoint(A.pntLeft),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[0])/o;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol21600=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21504=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21501),o(e,[{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-90)}}]),e}();SuperMap.Plot.AlgoSymbol21504=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21503=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21501),o(e,[{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-90)}}]),e}();SuperMap.Plot.AlgoSymbol21503=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol21502=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol21501),e}();SuperMap.Plot.AlgoSymbol21502=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.02):1===this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue()),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[1]=.5*this.getSubSymbolScaleValue()}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);this.addSubSymbols(n,a,r);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p,this.scaleValues[1])}var P=l*this.scaleValues[0]*.5,S=SuperMap.Plot.PlottingUtil.circlePoint(n,P,P,r+90);this.addScalePoint(S,0),this.finish()}}},{key:"addSubSymbols",value:function(t,e,l){this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],t,.8*e,l-180)}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol21501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05,l.scaleValues[1]=.05,l.scaleValues[2]=.01,l.scaleValues[3]=.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues[0]=.05,this.scaleValues[1]=.02,this.scaleValues[2]=.01,this.scaleValues[3]=.02):1===this.scaleValues.length&&(this.scaleValues.push(.02),this.scaleValues.push(.01),this.scaleValues.push(.25*this.getSubSymbolScaleValue())),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o,this.scaleValues[3]=.5*o}for(var i=this.getLinePts(e,this.scaleValues[0]),n=[],r=[],a=0;a<=i.startIndex;a++)n.push(e[a]);if(n.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),i.endIndex<=e.length){r.push(i.endPt);for(var s=i.endIndex+1;s<=e.length-1;s++)r.push(e[s]);this.addArrow(r,this.scaleValues[this.scaleValues.length-1])}var p,u,c,P,S,h,y,f,g,b,M,m,d,v=i.startPt.clone(),O=i.endPt.clone(),U=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),L=SuperMap.Plot.PlottingUtil.distance(v,O),w=SuperMap.Plot.PlottingUtil.radian(v,O)*SuperMap.Plot.PlottingUtil.RTOD;p=new SuperMap.Geometry.Point(0,0),u=new SuperMap.Geometry.Point(0,0),c=new SuperMap.Geometry.Point(0,0),P=new SuperMap.Geometry.Point(0,0),S=new SuperMap.Geometry.Point(0,0),h=new SuperMap.Geometry.Point(0,0),y=new SuperMap.Geometry.Point(0,0),f=new SuperMap.Geometry.Point(0,0),g=new SuperMap.Geometry.Point(0,0),b=new SuperMap.Geometry.Point(0,0),M=new SuperMap.Geometry.Point(0,0),m=new SuperMap.Geometry.Point(0,0),d=new SuperMap.Geometry.Point(0,0),v.x>=O.x?(p.x=.25*L,p.y=.25*-L,u.x=.5*-L,u.y=.25*-L,c.x=.5*-L,c.y=.25*L,P.x=.5*L,P.y=.25*L,S.x=.5*L,S.y=0,h.x=.25*-L,h.y=.125*-L,y.x=0,y.y=.125*L,f.x=0,f.y=.125*-L,g.x=.25*L,g.y=.2*L,b.x=.25*-L,b.y=.25*-L,M.x=.375*-L,M.y=.5*-L,m.x=.02*-L,m.y=.25*-L,d.x=.1*L,d.y=.5*-L):(p.x=.25*L,p.y=.25*L,u.x=.5*-L,u.y=.25*L,c.x=.5*-L,c.y=.25*-L,P.x=.5*L,P.y=.25*-L,S.x=.5*L,S.y=0,h.x=.25*L,h.y=.125*-L,y.x=0,y.y=.125*L,f.x=0,f.y=.125*-L,g.x=.25*-L,g.y=.125*L,b.x=.25*-L,b.y=.25*L,M.x=.375*-L,M.y=.5*L,m.x=.02*L,m.y=.25*L,d.x=.15*L,d.y=.5*L);var _=[],V=[],A=[],T=[],E=[],x=SuperMap.Plot.PlottingUtil.coordinateTrans(U,p,w),j=SuperMap.Plot.PlottingUtil.coordinateTrans(U,u,w),C=SuperMap.Plot.PlottingUtil.coordinateTrans(U,c,w),Y=SuperMap.Plot.PlottingUtil.coordinateTrans(U,P,w),I=SuperMap.Plot.PlottingUtil.coordinateTrans(U,S,w),B=SuperMap.Plot.PlottingUtil.coordinateTrans(U,h,w),R=SuperMap.Plot.PlottingUtil.coordinateTrans(U,y,w),G=SuperMap.Plot.PlottingUtil.coordinateTrans(U,f,w),N=SuperMap.Plot.PlottingUtil.coordinateTrans(U,g,w),D=SuperMap.Plot.PlottingUtil.coordinateTrans(U,b,w),k=SuperMap.Plot.PlottingUtil.coordinateTrans(U,M,w),z=SuperMap.Plot.PlottingUtil.coordinateTrans(U,m,w),F=SuperMap.Plot.PlottingUtil.coordinateTrans(U,d,w);_.push(x),_.push(j),_.push(C),_.push(Y),_.push(I),V.push(B),V.push(R),V.push(G),V.push(N),A.push(D),A.push(k),T.push(z),T.push(F),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,_,null,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V,null,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,A,null,!0),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,T,null,!0);var W=.3*SuperMap.Plot.PlottingUtil.distance(G,N),K=SuperMap.Plot.PlottingUtil.linePnt(N,G,W),J=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.3*W,N,K);E.push(J.pntLeft),E.push(N),E.push(J.pntRight);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,E,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var q=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),Z=SuperMap.Plot.PlottingUtil.circlePoint(q.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,w+90);this.addScalePoint(Z,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol21900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues.push(.02),this.scaleValues.push(.1),this.scaleValues.push(0)):3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);if(e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addArrow(e,this.scaleValues[this.scaleValues.length-1]),0!==SuperMap.Plot.PlottingUtil.polylineDistance(e)){if(!this.isEdit){var l=this.getSubSymbolScaleValue();this.scaleValues[0]=.5*l,this.scaleValues[this.scaleValues.length-1]=.5*this.getSubSymbolScaleValue()}for(var o=this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.polylineDistance(t),n=o*i,r=this.scaleValues[1]*i,a=0,s=.01*i,p=s,u=0;p<=i;p+=r,u++){a=p+s;var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,a);if(-1===c.index)return;var P=[],S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,e[c.index],c.pt);P.push(new SuperMap.Geometry.Point(S.pntLeft.x,S.pntLeft.y)),P.push(new SuperMap.Geometry.Point(S.pntRight.x,S.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),0===u?this.addScalePoint(P[0],0):1===u&&this.addScalePoint(c.pt,1)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=.01*i;if(0===t){var r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,n);if(-1===r.index)return;var a=SuperMap.Plot.PlottingUtil.distance(e,r.pt);this.scaleValues[0]=a/i}else if(1===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,n);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,o);if(-1===p.index)return;for(var u=0,c=s.index+1;c<p.index;c++)u+=SuperMap.Plot.PlottingUtil.distance(o[c],o[c+1]);u+=SuperMap.Plot.PlottingUtil.distance(o[p.index],p.pt),u-=n,this.scaleValues[1]=u/i,this.scaleValues[1]>.93&&(this.scaleValues[1]=.93)}}}}]),e}();SuperMap.Plot.AlgoSymbol21500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol21401=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.03),l.scaleValues.push(.4),l.scaleValues.push(0),l.scaleValues.push(.02)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues=[],this.scaleValues.push(.03),this.scaleValues.push(.4),this.scaleValues.push(0)):3===this.scaleValues.length&&this.scaleValues.push(.02);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e),o=this.scaleValues[1],i=l*(1-o)*.5,n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(i,e);if(n.bfind){this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(),this.scaleValues[this.scaleValues.length-1]=.5*this.getSubSymbolScaleValue());var r,a=this.scaleValues[0],s=SuperMap.Plot.PlottingUtil.polylineDistance(t)*a,p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[n.index],n.pts),u=this.scaleValues[2];1===u?r=new SuperMap.Geometry.Point(p.pntRight.x,p.pntRight.y):0===u&&(r=new SuperMap.Geometry.Point(p.pntLeft.x,p.pntLeft.y));var c=[];c.push(r),c.push(n.pts);var P;this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c,{lineTypeLimit:!0});var S=l*(.5+.5*o),h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(S,e);if(h.bfind){var y=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[h.index],h.pts);1===u?P=new SuperMap.Geometry.Point(y.pntRight.x,y.pntRight.y):0===u&&(P=new SuperMap.Geometry.Point(y.pntLeft.x,y.pntLeft.y)),this.addArrow(e,this.scaleValues[this.scaleValues.length-1]),this.addScalePoint(P,0);var f=[];f.push(P),f.push(h.pts);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,f,{lineTypeLimit:!0}),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l,!1);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=i*(.5+.5*this.scaleValues[1]),r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n,o);if(!r.bfind)return;var a,s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,o[r.index],r.pts),p=SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[r.index],o[r.index+1],e);this.scaleValues[2]=p?0:1,a=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y),new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y));var u=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,new SuperMap.Geometry.Point(r.pts.x,r.pts.y));this.scaleValues[0]=u/i}}}]),e}();SuperMap.Plot.AlgoSymbol21401=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol25201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=l*this.scaleValues[0],i=e[e.length-1];if(e.length>2){for(var n=-1,r=e.length-2;r>=0;r--)if(o<SuperMap.Plot.PlottingUtil.distance(i,e[r])){n=r;break}e.splice(n+1,e.length-n),e.push(i)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);var a=e[e.length-2],s=e[e.length-1],p=o,u=180*SuperMap.Plot.PlottingUtil.radian(a,s)/Math.PI,c=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+157.5),P=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u+202.5),S=[];S.push(c),S.push(i),S.push(P);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},!0);var h=SuperMap.Plot.PlottingUtil.circlePoint(s,p,p,u);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.distance(e,l[l.length-1])/o;if(i>.2)return;this.scaleValues[0]=i}}}]),e}();SuperMap.Plot.AlgoSymbol25201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol42500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.285714),l.scaleValues.push(.285714),l.scaleValues.push(.5),l.scaleValues.push(.333333),l.scaleValues.push(.333333)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.285714),this.scaleValues.push(.285714),this.scaleValues.push(.5),this.scaleValues.push(.333333));var e=t[0].clone(),l=t[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0],n=new SuperMap.Geometry.Point(0,-o*i),r=new SuperMap.Geometry.Point(0,o*i),a=this.scaleValues[1],s=this.scaleValues[3],p=new SuperMap.Geometry.Point(o*(1-s),-o*a),u=new SuperMap.Geometry.Point(o*(1-s),o*a),c=this.scaleValues[2],P=this.scaleValues[4],S=new SuperMap.Geometry.Point(o*(1-P),-o*c),h=new SuperMap.Geometry.Point(o*(1-P),o*c),y=new SuperMap.Geometry.Point(o,0),f=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD,g=[];g.push(r),g.push(u),g.push(h),g.push(y),g.push(S),g.push(p),g.push(n);for(var b=[],M=0;M<g.length;M++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[M],f);b.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var d,v,O,U=!0;e.x>l.x&&(U=!1);var L,w=(O=.1*o)+(v=.12*o/2);d=1==U?(L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(w,l,e)).pntRight:(L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(w,l,e)).pntLeft;var _,V,A,T,E,x,j,C,Y=[];Y.push(d),Y.push(new SuperMap.Geometry.Point(d.x+v,d.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,Y),1==U?(_=(L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.85*O,l,e)).pntRight,T=L.pntLeft,V=(L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O,_,T)).pntRight,A=L.pntLeft):(_=(L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.85*O,l,e)).pntLeft,T=L.pntRight,V=(L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O,_,T)).pntLeft,A=L.pntRight),(Y=[]).push(_),Y.push(V),Y.push(A),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,Y,{fillLimit:!0,fill:!0,lineTypeLimit:!0}),L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*v,V,A),C=1==U?L.pntRight:L.pntLeft,L=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(2*v,A,V),x=1==U?L.pntLeft:L.pntRight;var I=SuperMap.Plot.PlottingUtil.intersectLines(_,x,A,V);I.isIntersectLines&&(E=I.intersectPoint,(I=SuperMap.Plot.PlottingUtil.intersectLines(_,C,A,V)).isIntersectLines&&(j=I.intersectPoint,(Y=[]).push(E),Y.push(x),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,Y),(Y=[]).push(j),Y.push(C),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,Y),this.scalePoints=[],this.addScalePoint(b[0]),this.addScalePoint(b[1]),this.addScalePoint(b[2]),this.finish()))}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o,i=SuperMap.Plot.PlottingUtil.distance(l[0],l[1]),n=l[0].clone(),r=l[1].clone(),a=e.clone();if(0==t){var s=SuperMap.Plot.PlottingUtil.distance(a,n)/i;this.scaleValues[0]=s}else if(1==t){o=SuperMap.Plot.PlottingUtil.projectPoint(a,n,r);var p=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[1]=p;var u=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[3]=u}else if(2==t){o=SuperMap.Plot.PlottingUtil.projectPoint(a,n,r);var c=SuperMap.Plot.PlottingUtil.distance(o,a)/i;this.scaleValues[2]=c;var P=SuperMap.Plot.PlottingUtil.distance(o,r)/i;this.scaleValues[4]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol42500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol26501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues[0]=.05),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5)),!this.isEdit){var o=this.getDefaultSubSymbolSize()/l;(o>.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var i=this.getLinePts(e,this.scaleValues[0]),n=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),r=180*SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,a=SuperMap.Plot.PlottingUtil.distance(i.startPt,i.endPt);0<this.subSymbols.length&&this.computeSubSymbol(this.subSymbols[0],n,.8*a,r);for(var s=[],p=[],u=0;u<=i.startIndex;u++)s.push(e[u]);if(s.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s),i.endIndex<=e.length){p.push(i.endPt);for(var c=i.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p)}var P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*l,e),S=SuperMap.Plot.PlottingUtil.circlePoint(P.pts,l*this.scaleValues[0]*.5,l*this.scaleValues[0]*.5,r);this.addScalePoint(S,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol26501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol20301=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues.length!==this.minEditPts&&(this.scaleValues=[],this.scaleValues.push(.2),this.scaleValues.push(0)),this.components.length=0,this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,this.controlPoints);var e,l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=new SuperMap.Geometry.Point(t[0].x,t[0].y),i=new SuperMap.Geometry.Point(t[1].x,t[1].y),n=180*SuperMap.Plot.PlottingUtil.radian(o,i)/Math.PI,r=new SuperMap.Geometry.Point((o.x+i.x)/2,(o.y+i.y)/2),a=this.scaleValues[0]*l;e=0==this.scaleValues[1]?SuperMap.Plot.PlottingUtil.circlePoint(r,a,a,n+90):SuperMap.Plot.PlottingUtil.circlePoint(r,a,a,n+270);var s={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0};this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[r,e]);var p=.02*SuperMap.Plot.PlottingUtil.distance(t[0],t[t.length-1]),u=new SuperMap.Geometry.Point((o.x+r.x)/2,(o.y+r.y)/2),c=[u,new SuperMap.Geometry.Point(u.x,u.y+p)];this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c,s,!0);var P=new SuperMap.Geometry.Point((i.x+r.x)/2,(i.y+r.y)/2);c=[P,new SuperMap.Geometry.Point(P.x,P.y+p)],this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,c,s,!0);var S=new SuperMap.Geometry.Point(e.x,e.y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;var o=new SuperMap.Geometry.Point(l[0].x,l[0].y),i=new SuperMap.Geometry.Point(l[1].x,l[1].y),n=SuperMap.Plot.PlottingUtil.distance(o,i);if(0===n)return;var r=new SuperMap.Geometry.Point((o.x+i.x)/2,(o.y+i.y)/2);if(0===t){var a=SuperMap.Plot.PlottingUtil.distance(e,r)/n;this.scaleValues[0]=a,SuperMap.Plot.PlottingUtil.pointIsRightToLine(o,i,e)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}}]),e}();SuperMap.Plot.AlgoSymbol20301=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol20300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){1!==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.1)),this.components.length=0,this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,this.controlPoints);var e=this.scaleValues[0],l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=l*e,i=.01*l;o<2*i&&(i=.5*o);for(var n={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},r=0,a=o;a<l-i;a+=o){var s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,t);if(s.bfind){var p=s.pts,u=[];u.push(p);var c=SuperMap.Plot.PlottingUtil.circlePoint(p,i,i,90);if(u.push(c),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,u,n),0===r){var P=new SuperMap.Geometry.Point(p.x,p.y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}r++}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.minEditPts>l.length)return;for(var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=-1,n=0,r=new SuperMap.Geometry.Point(0,0),a=0;a<l.length-1;a++){var s,p=[];p.push(l[a]),p.push(l[a+1]);var u=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l[a],l[a+1]);if(u.isOnline&&(s=u.projectPoint),!u.isOnline&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(e,l[a],l[a+1])&&(s=e),void 0===s)return;if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLines(s,p).isOnPolyLine){var c=SuperMap.Plot.PlottingUtil.distance(e,s);-1===i?(i=a,r=s,n=c):n>c&&(i=a,r=s,n=c)}}if(-1===i||i>l.length-1)return;for(var P=0,S=0;S<i;S++){var h=new SuperMap.Geometry.Point(l[S].x,l[S].y),y=new SuperMap.Geometry.Point(l[S+1].x,l[S+1].y);P+=SuperMap.Plot.PlottingUtil.distance(h,y)}var f=new SuperMap.Geometry.Point(l[i].x,l[i].y);if((P+=SuperMap.Plot.PlottingUtil.distance(f,r))<0||P>o)return;var g=P/o;g>.95?g=.95:g<.1&&(g=.1),this.scaleValues[0]=g}}}]),e}();SuperMap.Plot.AlgoSymbol20300=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17806=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17804),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1));var e,l,o,i,n,r=this.scaleValues[0],a=this.scaleValues[1],s=this.scaleValues[2],p=0,u=0;if(t.length==this.minEditPts){this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t),l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y);var c=SuperMap.Plot.PlottingUtil.distance(l,o);p=2*c,e=new SuperMap.Geometry.Point(l.x+p*r,l.y+p*a);var P=2*c*s/.28/2;u=P,i=SuperMap.Plot.PlottingUtil.circlePoint(e,P,P,0),(n=[]).push(e.clone()),n.push(i.clone()),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,n)}else{this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=new SuperMap.Geometry.Point(t[2].x,t[2].y),p=SuperMap.Plot.PlottingUtil.distance(l,o)+SuperMap.Plot.PlottingUtil.distance(l,i),e=new SuperMap.Geometry.Point(l.x+p*r,l.y+p*a);var S=p*s/.21/2,h=p*s/.38/2;u=S;var y=SuperMap.Plot.PlottingUtil.circlePoint(e,S,S,0),f=SuperMap.Plot.PlottingUtil.circlePoint(e,h,h,90);(n=[]).push(e.clone()),n.push(y.clone()),n.push(f.clone()),this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,n)}this.scalePoints=[];var g=new SuperMap.Geometry.Point(e.x+.1*p,e.y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g);var b=SuperMap.Plot.PlottingUtil.circlePoint(e,u,u,90);b.isScalePoint=!0,b.tag=1,this.scalePoints.push(b),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,r=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),a=(r=SuperMap.Plot.PlottingUtil.clearSamePts(r))[0].clone(),s=0;if(0==(s=2==r.length?2*SuperMap.Plot.PlottingUtil.distance(r[0],r[1]):SuperMap.Plot.PlottingUtil.distance(r[0],r[1])+SuperMap.Plot.PlottingUtil.distance(r[0],r[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*s-a.x)/s,this.scaleValues[0]=l,o=(e.y-a.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMap.Geometry.Point(a.x+s*l,a.y+s*o);n=SuperMap.Plot.PlottingUtil.distance(p,e),i=.1,i=2===r.length?.56*n/s:.42*n/s,this.scaleValues[2]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol17806=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17805=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17804),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1)),t.length==this.minEditPts?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=0;if(0!=(l=t.length==this.minEditPts?2*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]):SuperMap.Plot.PlottingUtil.distance(t[0],t[1])+SuperMap.Plot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],r=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),a=3*(l*n),s=new SuperMap.Geometry.Point(-.5*a,.3*a),p=new SuperMap.Geometry.Point(-.5*a,-.3*a),u=new SuperMap.Geometry.Point(.5*a,-.3*a),c=new SuperMap.Geometry.Point(.5*a,.3*a),P=SuperMap.Plot.PlottingUtil.coordinateTrans(r,s,0),S=SuperMap.Plot.PlottingUtil.coordinateTrans(r,p,0),h=SuperMap.Plot.PlottingUtil.coordinateTrans(r,u,0),y=SuperMap.Plot.PlottingUtil.coordinateTrans(r,c,0),f=[];f.push(P.clone()),f.push(S.clone()),f.push(h.clone()),f.push(y.clone()),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,f);var g=new SuperMap.Geometry.Point(-.3*a,.3*a),b=new SuperMap.Geometry.Point(-.3*a,.5*a),M=SuperMap.Plot.PlottingUtil.coordinateTrans(r,g,0),m=SuperMap.Plot.PlottingUtil.coordinateTrans(r,b,0);(f=[]).push(M.clone()),f.push(m.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var d=new SuperMap.Geometry.Point(-.3*a,-.3*a),v=new SuperMap.Geometry.Point(-.3*a,-.5*a),O=SuperMap.Plot.PlottingUtil.coordinateTrans(r,d,0),U=SuperMap.Plot.PlottingUtil.coordinateTrans(r,v,0);(f=[]).push(O.clone()),f.push(U.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var L=new SuperMap.Geometry.Point(.3*a,.3*a),w=new SuperMap.Geometry.Point(.3*a,.5*a),_=SuperMap.Plot.PlottingUtil.coordinateTrans(r,L,0),V=SuperMap.Plot.PlottingUtil.coordinateTrans(r,w,0);(f=[]).push(_.clone()),f.push(V.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var A=new SuperMap.Geometry.Point(.3*a,-.3*a),T=new SuperMap.Geometry.Point(.3*a,-.5*a),E=SuperMap.Plot.PlottingUtil.coordinateTrans(r,A,0),x=SuperMap.Plot.PlottingUtil.coordinateTrans(r,T,0);(f=[]).push(E.clone()),f.push(x.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.scalePoints=[];var j=new SuperMap.Geometry.Point(r.x+.1*a,r.y);j.isScalePoint=!0,j.tag=0,this.scalePoints.push(j);var C=SuperMap.Plot.PlottingUtil.circlePoint(r,.5*a,.5*a,90);C.isScalePoint=!0,C.tag=1,this.scalePoints.push(C),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol17805=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17804=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.1)),t.length==this.minEditPts?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=0;if(0!=(l=t.length==this.minEditPts?2*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]):SuperMap.Plot.PlottingUtil.distance(t[0],t[1])+SuperMap.Plot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],r=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),a=l*n,s=3*a,p=new SuperMap.Geometry.Point(-.5*s,.5*a),u=new SuperMap.Geometry.Point(.5*s,.5*a),c=SuperMap.Plot.PlottingUtil.coordinateTrans(r,p,0),P=SuperMap.Plot.PlottingUtil.coordinateTrans(r,u,0),S=[];S.push(c.clone()),S.push(P.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var h=new SuperMap.Geometry.Point(-.5*s,-.5*a),y=new SuperMap.Geometry.Point(.5*s,-.5*a),f=SuperMap.Plot.PlottingUtil.coordinateTrans(r,h,0),g=SuperMap.Plot.PlottingUtil.coordinateTrans(r,y,0);(S=[]).push(f.clone()),S.push(g.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var b=new SuperMap.Geometry.Point(-.1*s,.5*a),M=new SuperMap.Geometry.Point(-.15*s,-.5*a),m=SuperMap.Plot.PlottingUtil.coordinateTrans(r,b,0),d=SuperMap.Plot.PlottingUtil.coordinateTrans(r,M,0);(S=[]).push(m.clone()),S.push(d.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S);var v=new SuperMap.Geometry.Point(.15*s,.5*a),O=new SuperMap.Geometry.Point(.1*s,-.5*a),U=SuperMap.Plot.PlottingUtil.coordinateTrans(r,v,0),L=SuperMap.Plot.PlottingUtil.coordinateTrans(r,O,0);(S=[]).push(U.clone()),S.push(L.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S),this.scalePoints=[];var w=new SuperMap.Geometry.Point(r.x+.1*s,r.y);w.isScalePoint=!0,w.tag=0,this.scalePoints.push(w);var _=SuperMap.Plot.PlottingUtil.circlePoint(r,.5*s,.5*s,90);_.isScalePoint=!0,_.tag=1,this.scalePoints.push(_),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,r=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),a=(r=SuperMap.Plot.PlottingUtil.clearSamePts(r))[0].clone(),s=0;if(0==(s=2==r.length?2*SuperMap.Plot.PlottingUtil.distance(r[0],r[1]):SuperMap.Plot.PlottingUtil.distance(r[0],r[1])+SuperMap.Plot.PlottingUtil.distance(r[0],r[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*n-a.x)/s,this.scaleValues[0]=l,o=(e.y-a.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMap.Geometry.Point(a.x+s*l,a.y+s*o);i=2*(n=SuperMap.Plot.PlottingUtil.distance(p,e))/s/3,this.scaleValues[2]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol17804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17803=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(0),l.scaleValues.push(0),l.scaleValues.push(.2)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(.2)),2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=0;if(0!=(l=2==t.length?2*SuperMap.Plot.PlottingUtil.distance(t[0],t[1]):SuperMap.Plot.PlottingUtil.distance(t[0],t[1])+SuperMap.Plot.PlottingUtil.distance(t[0],t[2]))){var o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2],r=new SuperMap.Geometry.Point(e.x+l*o,e.y+l*i),a=l*n,s=new SuperMap.Geometry.Point(-.5*a,.25*a),p=new SuperMap.Geometry.Point(-.4*a,.125*a),u=new SuperMap.Geometry.Point(.4*a,.125*a),c=new SuperMap.Geometry.Point(.5*a,.25*a),P=SuperMap.Plot.PlottingUtil.coordinateTrans(r,s,0),S=SuperMap.Plot.PlottingUtil.coordinateTrans(r,p,0),h=SuperMap.Plot.PlottingUtil.coordinateTrans(r,u,0),y=SuperMap.Plot.PlottingUtil.coordinateTrans(r,c,0),f=[];f.push(P.clone()),f.push(S.clone()),f.push(h.clone()),f.push(y.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var g=new SuperMap.Geometry.Point(-.5*a,-.25*a),b=new SuperMap.Geometry.Point(-.4*a,-.125*a),M=new SuperMap.Geometry.Point(.4*a,-.125*a),m=new SuperMap.Geometry.Point(.5*a,-.25*a),d=SuperMap.Plot.PlottingUtil.coordinateTrans(r,g,0),v=SuperMap.Plot.PlottingUtil.coordinateTrans(r,b,0),O=SuperMap.Plot.PlottingUtil.coordinateTrans(r,M,0),U=SuperMap.Plot.PlottingUtil.coordinateTrans(r,m,0);(f=[]).push(d.clone()),f.push(v.clone()),f.push(O.clone()),f.push(U.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.scalePoints=[];var L=new SuperMap.Geometry.Point(r.x+.1*a,r.y);L.isScalePoint=!0,L.tag=0,this.scalePoints.push(L);var w=SuperMap.Plot.PlottingUtil.circlePoint(r,.25*a,.25*a,90);w.isScalePoint=!0,w.tag=1,this.scalePoints.push(w),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l,o,i,n,r=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),a=(r=SuperMap.Plot.PlottingUtil.clearSamePts(r))[0].clone(),s=0;if(0==(s=2==r.length?2*SuperMap.Plot.PlottingUtil.distance(r[0],r[1]):SuperMap.Plot.PlottingUtil.distance(r[0],r[1])+SuperMap.Plot.PlottingUtil.distance(r[0],r[2])))return;if(0==t)n=(i=this.scaleValues[2])*s,l=(e.x-.1*n-a.x)/s,this.scaleValues[0]=l,o=(e.y-a.y)/s,this.scaleValues[1]=o;else if(1==t){l=this.scaleValues[0],o=this.scaleValues[1];var p=new SuperMap.Geometry.Point(a.x+s*l,a.y+s*o);i=4*(n=SuperMap.Plot.PlottingUtil.distance(p,e))/s,this.scaleValues[2]=i}}}}]),e}();SuperMap.Plot.AlgoSymbol17803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),o=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD);var i=SuperMap.Plot.PlottingUtil.distance(e,l),n=[],r=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),a=SuperMap.Plot.PlottingUtil.circlePoint(e,.08*i,.08*i,o+90),s=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),p=SuperMap.Plot.PlottingUtil.circlePoint(e,.08*i,.08*i,o+270);n.push(r.clone()),n.push(a.clone()),n.push(s.clone()),n.push(p.clone()),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,n);var u=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),c=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180);(n=[]).push(u.clone()),n.push(c.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var P=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),S=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(n=[]).push(P.clone()),n.push(S.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var h=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),y=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(n=[]).push(h.clone()),n.push(y.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var f=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),g=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(n=[]).push(f.clone()),n.push(g.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol17802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),o=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD);var i=SuperMap.Plot.PlottingUtil.distance(e,l),n=[],r=SuperMap.Plot.PlottingUtil.circlePoint(e,.1*i,.1*i,0);n.push(t[0].clone()),n.push(r.clone()),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,n);var a=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),s=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180);(n=[]).push(a.clone()),n.push(s.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var p=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o+180),u=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(n=[]).push(p.clone()),n.push(u.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var c=SuperMap.Plot.PlottingUtil.circlePoint(e,.15*i,.15*i,o),P=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(n=[]).push(c.clone()),n.push(P.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var S=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),h=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(n=[]).push(S.clone()),n.push(h.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol17801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17800=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[t.length-1].x,t[t.length-1].y),o=0;2==t.length?this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t):(this.addCell(SuperMap.Plot.SymbolType.ELLIPSESYMBOL,t),o=SuperMap.Plot.PlottingUtil.radian(e,l)*SuperMap.Plot.PlottingUtil.RTOD);var i=SuperMap.Plot.PlottingUtil.distance(e,l),n=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o+180),r=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o+180),a=[];a.push(n.clone()),a.push(r.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);var s=SuperMap.Plot.PlottingUtil.circlePoint(e,.1*i,.1*i,o+180),p=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o+180);(a=[]).push(s.clone()),a.push(p.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);var u=SuperMap.Plot.PlottingUtil.circlePoint(e,.1*i,.1*i,o),c=SuperMap.Plot.PlottingUtil.circlePoint(e,.58*i,.58*i,o);(a=[]).push(u.clone()),a.push(c.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);var P=SuperMap.Plot.PlottingUtil.circlePoint(e,.78*i,.78*i,o),S=SuperMap.Plot.PlottingUtil.circlePoint(e,1.26*i,1.26*i,o);(a=[]).push(P.clone()),a.push(S.clone()),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol17800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol17704=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="急",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol17703),e}();SuperMap.Plot.AlgoSymbol17704=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17703=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return l.subText="加",l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);this.isEdit||(this.scaleValues=[]);var o=[];if(this.scalePoints=[],t.length<3)o.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),o.push(new SuperMap.Geometry.Point(t[1].x,t[1].y));else{var i=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=i.scaleValues;for(var n=0;n<i.scalePoints.length;n++)this.addScalePoint(i.scalePoints[n]);o=i.beizerPoints}if(!(o.length<2)){var r=e/2;if(-1!==SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,r).index){var a,s;if(a=2==t.length?0:t.length-1,this.isEdit)s=this.scaleValues[4*a]*e,isNaN(s)&&(s=Math.abs(this.scaleValues[4*a-1]*e));else{var p=.5*this.getSubSymbolScaleValue();s=p*e,this.scaleValues.push(p)}var u=r-s,c=r+s,P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,u);if(-1!==P.index){var S=P.pt;this.addScalePoint(new SuperMap.Geometry.Point(S.x,S.y));var h=[];if(0==P.index)h.push(o[0]);else for(var y=0;y<P.index;y++)h.push(o[y]);h.push(S);var f=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,c);if(-1!==f.index){var g=f.pt,b=[];b.push(g);for(var M=f.index+1;M<o.length;M++)b.push(o[M]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var m=h[h.length-1],d=b[0],v=180*SuperMap.Plot.PlottingUtil.radian(m,d)/Math.PI,O=SuperMap.Plot.PlottingUtil.distance(m,d),U=new SuperMap.Geometry.Point((m.x+d.x)/2,(m.y+d.y)/2),L=this.subText;this.addText(L,U,O,v),this.finish()}}}}}}},{key:"computeBeizer",value:function(t,e){var l,o,i,n=[];if(this.scalePoints=[],this.isEdit){(i=[]).push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),i.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),l=this.scaleValues[0],o=this.scaleValues[1];var r=t[0].x+e*l,a=t[0].y+e*o;i.push(new SuperMap.Geometry.Point(r,a)),this.addScalePoint(new SuperMap.Geometry.Point(r,a));for(var s=1;s<t.length-1;s++)i.push(new SuperMap.Geometry.Point(t[s].x,t[s].y)),l=this.scaleValues[4*s-2],o=this.scaleValues[4*s-1],r=t[s].x+e*l,a=t[s].y+e*o,i.push(new SuperMap.Geometry.Point(r,a)),this.addScalePoint(new SuperMap.Geometry.Point(r,a)),l=this.scaleValues[4*s],o=this.scaleValues[4*s+1],r=t[s].x+e*l,a=t[s].y+e*o,i.push(new SuperMap.Geometry.Point(r,a)),this.addScalePoint(new SuperMap.Geometry.Point(r,a));var p=t.length-1;i.push(new SuperMap.Geometry.Point(t[p].x,t[p].y)),l=this.scaleValues[4*p-2],o=this.scaleValues[4*p-1],r=t[p].x+e*l,a=t[p].y+e*o,i.push(new SuperMap.Geometry.Point(r,a)),this.addScalePoint(new SuperMap.Geometry.Point(r,a)),i.push(new SuperMap.Geometry.Point(t[p].x,t[p].y)),n=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(i)}else{if(this.scaleValues=[],i=[],(i=SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(t)).length<3)return n;var u=i[2].x-i[0].x,c=i[2].y-i[0].y;l=u/e,o=c/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMap.Geometry.Point(i[2].x,i[2].y));for(var P=1;P<t.length-1;P++){l=(u=i[3*P+1].x-i[3*P].x)/e,o=(c=i[3*P+1].y-i[3*P].y)/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMap.Geometry.Point(i[3*P+1].x,i[3*P+1].y));var S=(i[3*P+2].x-i[3*P].x)/e,h=(i[3*P+2].y-i[3*P].y)/e;this.scaleValues.push(S),this.scaleValues.push(h),this.addScalePoint(new SuperMap.Geometry.Point(i[3*P+2].x,i[3*P+2].y))}l=(u=i[3*(t.length-1)+1].x-i[3*(t.length-1)].x)/e,o=(c=i[3*(t.length-1)+1].y-i[3*(t.length-1)].y)/e,this.scaleValues.push(l),this.scaleValues.push(o),this.addScalePoint(new SuperMap.Geometry.Point(i[3*(t.length-1)+1].x,i[3*(t.length-1)+1].y)),n=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(i)}return n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMap.Plot.PlottingUtil.clearSamePts(l),t<0||t>2*l.length-2)return;for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(2*(l.length-1)==t||2==l.length){for(var n=this.computeBeizer(l,o),r=0,a=0;a<n.length-1;a++)r+=SuperMap.Plot.PlottingUtil.distance(n[a],n[a+1]);var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,r/2);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.distance(e,s.pt)/o;p>.45&&(p=.45),2==l.length?this.scaleValues[0]=p:this.scaleValues[2*t]=p}else{var u=-1;u=t%2==0?t/2:(t+1)/2;var c=(e.x-l[u].x)/o,P=(e.y-l[u].y)/o;this.scaleValues[2*t]=c,this.scaleValues[2*t+1]=P}}}}]),e}();SuperMap.Plot.AlgoSymbol17703=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.02),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);0===this.scaleValues.length&&this.scaleValues.push(.02),this.isEdit||(this.scaleValues[0]=.2*this.getSubSymbolScaleValue());var l=e*this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.paraLine(o,l,!0),n=SuperMap.Plot.PlottingUtil.paraLine(o,l,!1);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);for(var r={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},a=this.getDashLinePts(n,5*l),s=0;s<a.length;s++){var p=a[s];this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,r)}this.finish()}}},{key:"getDashLinePts",value:function(t,e){var l=[],o=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(e>o)return l;for(var i=SuperMap.Plot.PlottingUtil.clonePoints(t),n=2*parseInt(o/(1.5*e)),r=0;r<n;r++){var a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,e);if(-1!==a.index){if(0==r%2){for(var s=[],p=0;p<a.index+1;p++)s.push(i[p].clone());s.push(a.pt),l.push(s)}var u=[];u.push(a.pt);for(var c=a.index+1;c<i.length;c++)u.push(i[c]);i=(i=[]).concat(u)}}return i.length>0&&l.push(i),l}}]),e}();SuperMap.Plot.AlgoSymbol17700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17501=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=this.controlPoints.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,r=0;r<e.length;r++)l>e[r].x&&(l=e[r].x),o<e[r].x&&(o=e[r].x),i>e[r].y&&(i=e[r].y),n<e[r].y&&(n=e[r].y);var a=new SuperMap.Geometry.Point((o+l)/2,(n+i)/2),s=.33*(o-l),p=.1*(n-i),u=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,0),c=SuperMap.Plot.PlottingUtil.circlePoint(a,s,s,180),P=[];P.push(new SuperMap.Geometry.Point(u.x,u.y)),P.push(new SuperMap.Geometry.Point(c.x,c.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var S=new SuperMap.Geometry.Point(a.x-3*s/7,a.y+p),h=SuperMap.Plot.PlottingUtil.circlePoint(S,p,p,60),y=SuperMap.Plot.PlottingUtil.circlePoint(S,p,p,120);(P=[]).push(new SuperMap.Geometry.Point(h.x,h.y)),P.push(new SuperMap.Geometry.Point(S.x,S.y)),P.push(new SuperMap.Geometry.Point(y.x,y.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var f=new SuperMap.Geometry.Point(a.x+3*s/7,a.y+p),g=SuperMap.Plot.PlottingUtil.circlePoint(f,p,p,60),b=SuperMap.Plot.PlottingUtil.circlePoint(f,p,p,120);(P=[]).push(new SuperMap.Geometry.Point(g.x,g.y)),P.push(new SuperMap.Geometry.Point(f.x,f.y)),P.push(new SuperMap.Geometry.Point(b.x,b.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol17501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol17500=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];if(e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMap.Plot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var l=e[0].x,o=e[0].x,i=e[0].y,n=e[0].y,r=0;r<e.length;r++)l>e[r].x&&(l=e[r].x),o<e[r].x&&(o=e[r].x),i>e[r].y&&(i=e[r].y),n<e[r].y&&(n=e[r].y);var a={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},s=new SuperMap.Geometry.Point((o+l)/2,(n+i)/2),p=o-l,u=n-i,c=.1*p,P=.1*u,S=new SuperMap.Geometry.Point(s.x,s.y+P),h=new SuperMap.Geometry.Point(s.x-c,s.y-P),y=new SuperMap.Geometry.Point(s.x+c,s.y-P);c=.03*p,P=.03*u;var f=new SuperMap.Geometry.Point(S.x,S.y+P),g=new SuperMap.Geometry.Point(S.x-c,S.y-P),b=new SuperMap.Geometry.Point(S.x+c,S.y-P),M=[];M.push(new SuperMap.Geometry.Point(f.x,f.y)),M.push(new SuperMap.Geometry.Point(g.x,g.y)),M.push(new SuperMap.Geometry.Point(b.x,b.y)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,a);var m=new SuperMap.Geometry.Point(h.x,h.y+P),d=new SuperMap.Geometry.Point(h.x-c,h.y-P),v=new SuperMap.Geometry.Point(h.x+c,h.y-P),O=[];O.push(new SuperMap.Geometry.Point(m.x,m.y)),O.push(new SuperMap.Geometry.Point(d.x,d.y)),O.push(new SuperMap.Geometry.Point(v.x,v.y)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,O,a);var U=new SuperMap.Geometry.Point(y.x,y.y+P),L=new SuperMap.Geometry.Point(y.x-c,y.y-P),w=new SuperMap.Geometry.Point(y.x+c,y.y-P),_=[];_.push(new SuperMap.Geometry.Point(U.x,U.y)),_.push(new SuperMap.Geometry.Point(L.x,L.y)),_.push(new SuperMap.Geometry.Point(w.x,w.y)),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,_,a),this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol17500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16700=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.2),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0]*e,i=this.scaleValues[1]*e,n=new SuperMap.Geometry.Point(t[0].x,t[0].y),r=new SuperMap.Geometry.Point(t[1].x,t[1].y),a=180*SuperMap.Plot.PlottingUtil.radian(n,r)/Math.PI,s=SuperMap.Plot.PlottingUtil.circlePoint(n,o,o,a+90),p=SuperMap.Plot.PlottingUtil.circlePoint(n,i,i,a+90),u=SuperMap.Plot.PlottingUtil.circlePoint(r,o,o,a+90),c=SuperMap.Plot.PlottingUtil.circlePoint(r,i,i,a+90),P=[];P.push(p),P.push(s),P.push(u),P.push(c),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,SuperMap.Plot.PlottingUtil.clonePoints(P)),(P=[]).push(p),P.push(t[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,SuperMap.Plot.PlottingUtil.clonePoints(P)),(P=[]).push(c),P.push(t[1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,SuperMap.Plot.PlottingUtil.clonePoints(P));var S=new SuperMap.Geometry.Point(s.x,s.y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S);var h=new SuperMap.Geometry.Point(p.x,p.y);h.isScalePoint=!0,h.tag=1,this.scalePoints.push(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(this.isEdit=!0,!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;if(n<this.scaleValues[1])return;this.scaleValues[0]=n}else if(1==t){var r=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;if(this.scaleValues[0]<r)return;this.scaleValues[1]=r}}}}]),e}();SuperMap.Plot.AlgoSymbol16700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16203=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue());for(var o=this.scaleValues[0]*e,i=this.scaleValues[1]*e,n=.01*e,r=SuperMap.Plot.PlottingUtil.polylineDistance(l),a=0,s={surroundLineFlag:!1,fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},p=n,u=0;p<=r;p+=i,u++){a=p+n;var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,a);if(-1===c.index)return;for(var P=SuperMap.Plot.PlottingUtil.radian(c.pt,l[c.index+1])*SuperMap.Plot.PlottingUtil.RTOD,S=this.getSubSymbolPts(o),h=[],y=0,f=S.length;y<f;y++)h.push(SuperMap.Plot.PlottingUtil.coordinateTrans(c.pt,S[y],P));if(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,s),0===u){var g=new SuperMap.Geometry.Point((h[0].x+h[1].x)/2,(h[0].y+h[1].y)/2);this.addScalePoint(g,0)}else 1===u&&this.addScalePoint(c.pt,1);this.finish()}}}},{key:"getSubSymbolPts",value:function(t){var e=.5*t,l=[];return l.push(new SuperMap.Geometry.Point(.5*e,2*e)),l.push(new SuperMap.Geometry.Point(.5*-e,2*e)),l.push(new SuperMap.Geometry.Point(.5*-e,-2*e)),l.push(new SuperMap.Geometry.Point(.5*e,-2*e)),l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=SuperMap.Plot.PlottingUtil.polylineDistance(l),i=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);i=SuperMap.Plot.PlottingUtil.clearSamePts(i);var n=.01*o;if(0===t){var r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,n);if(-1===r.index)return;var a=SuperMap.Plot.PlottingUtil.distance(e,r.pt);this.scaleValues[0]=a/o}else if(1===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(i,n);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,i);if(-1===p.index)return;for(var u=0,c=s.index+1;c<p.index;c++)u+=SuperMap.Plot.PlottingUtil.distance(i[c],i[c+1]);u+=SuperMap.Plot.PlottingUtil.distance(i[p.index],p.pt),u-=n,this.scaleValues[1]=u/o,u>o-o*this.scaleValues[0]-n&&(this.scaleValues[1]=(o-o*this.scaleValues[0]-n)/o)}}}}]),e}();SuperMap.Plot.AlgoSymbol16203=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o,i,n=this.scaleValues[0]*e;o=SuperMap.Plot.PlottingUtil.paraLine(t,n,!0),i=SuperMap.Plot.PlottingUtil.paraLine(t,n,!1);var r=new SuperMap.Geometry.Point(o[0].x,o[0].y);r.isScalePoint=!0,r.tag=0,this.scalePoints.push(r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);var a=new SuperMap.Geometry.Point(t[0].x,t[0].y),s=new SuperMap.Geometry.Point(t[1].x,t[1].y),p=180*SuperMap.Plot.PlottingUtil.radian(a,s)/Math.PI,u=new SuperMap.Geometry.Point(.3*e,0),c=SuperMap.Plot.PlottingUtil.coordinateTrans(a,u,p),P=new SuperMap.Geometry.Point(0,.4*n),S=new SuperMap.Geometry.Point(0,.2*n),h=SuperMap.Plot.PlottingUtil.coordinateTrans(c,P,p),y=SuperMap.Plot.PlottingUtil.coordinateTrans(c,S,p),f=[];f.push(h),f.push(y),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,f);var g=new SuperMap.Geometry.Point(0,.2*n),b=new SuperMap.Geometry.Point(0,-.4*n),M=SuperMap.Plot.PlottingUtil.coordinateTrans(c,g,p),m=SuperMap.Plot.PlottingUtil.coordinateTrans(c,b,p);(f=[]).push(M),f.push(m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var d=new SuperMap.Geometry.Point(.2*n,-.2*n),v=new SuperMap.Geometry.Point(-.2*n,-.6*n),O=SuperMap.Plot.PlottingUtil.coordinateTrans(c,d,p),U=SuperMap.Plot.PlottingUtil.coordinateTrans(c,v,p);(f=[]).push(O),f.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var L=new SuperMap.Geometry.Point(-.2*n,-.2*n),w=new SuperMap.Geometry.Point(.2*n,-.6*n),_=SuperMap.Plot.PlottingUtil.coordinateTrans(c,L,p),V=SuperMap.Plot.PlottingUtil.coordinateTrans(c,w,p);(f=[]).push(_),f.push(V),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var A=new SuperMap.Geometry.Point(.7*e,0),T=SuperMap.Plot.PlottingUtil.coordinateTrans(a,A,p),E=SuperMap.Plot.PlottingUtil.coordinateTrans(T,P,p),x=SuperMap.Plot.PlottingUtil.coordinateTrans(T,S,p);(f=[]).push(E),f.push(x),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,f);var j=SuperMap.Plot.PlottingUtil.coordinateTrans(T,g,p),C=SuperMap.Plot.PlottingUtil.coordinateTrans(T,b,p);(f=[]).push(j),f.push(C),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var Y=SuperMap.Plot.PlottingUtil.coordinateTrans(T,d,p),I=SuperMap.Plot.PlottingUtil.coordinateTrans(T,v,p);(f=[]).push(Y),f.push(I),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var B=SuperMap.Plot.PlottingUtil.coordinateTrans(T,L,p),R=SuperMap.Plot.PlottingUtil.coordinateTrans(T,w,p);(f=[]).push(B),f.push(R),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);if(0==t){var n=SuperMap.Plot.PlottingUtil.distance(l[0],e)/o;this.scaleValues[0]=n}}}}]),e}();SuperMap.Plot.AlgoSymbol16202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16201=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0),l.scaleValues.push(.01)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length?(this.scaleValues.push(.02),this.scaleValues.push(.1),this.scaleValues.push(0),this.scaleValues.push(.01)):3===this.scaleValues.length&&this.scaleValues.push(.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l),this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());var o=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.paraLine(l,.5*o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(l,.5*o,!1);i=SuperMap.Plot.PlottingUtil.clearSamePts(i),n=SuperMap.Plot.PlottingUtil.clearSamePts(n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);for(var r=e*this.scaleValues[1],a=e*this.scaleValues[3],s=0,p=SuperMap.Plot.PlottingUtil.polylineDistance(l),u=a,c=0;u<=p-a;u+=r,c++){s=u+a;var P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,s);if(-1!==P.index){var S=new SuperMap.Geometry.Point(P.pt.x,P.pt.y+.5*o),h=[];h.push(P.pt),h.push(S),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,h),0===c?this.addScalePoint(S):1===c&&this.addScalePoint(P.pt)}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,r=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(r=SuperMap.Plot.PlottingUtil.clearSamePts(r),0==t){n=o*this.scaleValues[3];var a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,n);if(-1===a.index)return;var s=2*SuperMap.Plot.PlottingUtil.distance(e,a.pt);this.scaleValues[0]=s/o}else if(1===t){n=o*this.scaleValues[3];var p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,n);if(-1===p.index)return;var u=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,r);if(-1==u.index)return;for(var c=SuperMap.Plot.PlottingUtil.distance(p.pt,r[p.index+1]),P=p.index+1;P<u.index;P++)c+=SuperMap.Plot.PlottingUtil.distance(r[P],r[P+1]);c+=SuperMap.Plot.PlottingUtil.distance(r[u.index],u.pt),this.scaleValues[1]=c/o}}}}]),e}();SuperMap.Plot.AlgoSymbol16201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol16200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(.1),l.scaleValues.push(0)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var o=this.getSubSymbolScaleValue();this.isEdit||(this.scaleValues[0]=.5*o);var i=this.scaleValues[0]*e,n=SuperMap.Plot.PlottingUtil.paraLine(l,.5*i,!0),r=SuperMap.Plot.PlottingUtil.paraLine(l,.5*i,!1);n=SuperMap.Plot.PlottingUtil.clearSamePts(n),r=SuperMap.Plot.PlottingUtil.clearSamePts(r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);for(var a=e*this.scaleValues[1],s=.5*i,p=SuperMap.Plot.PlottingUtil.polylineDistance(l),u=s,c=0;u<p;u+=a,c++){var P=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,u);if(-1!==P.index){var S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,l[P.index+1],P.pt),h=[];h.push(S.pntLeft),h.push(S.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h),0===c?this.addScalePoint(S.pntRight,0):1===c&&this.addScalePoint(P.pt,1)}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);for(var o=0,i=0;i<l.length-1;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var n,r=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l);if(r=SuperMap.Plot.PlottingUtil.clearSamePts(r),0==t){n=.5*(o*this.scaleValues[0]);var a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,n);if(-1===a.index)return;var s=SuperMap.Plot.PlottingUtil.distance(e,a.pt);this.scaleValues[0]=s/o}else if(1===t){n=.5*(o*this.scaleValues[0]);var p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,n);if(-1===p.index)return;var u=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,r);if(-1==u.index)return;for(var c=SuperMap.Plot.PlottingUtil.distance(p.pt,r[p.index+1]),P=p.index+1;P<u.index;P++)c+=SuperMap.Plot.PlottingUtil.distance(r[P],r[P+1]);c+=SuperMap.Plot.PlottingUtil.distance(r[u.index],u.pt),this.scaleValues[1]=c/o}}}}]),e}();SuperMap.Plot.AlgoSymbol16200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15900=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.02),l.scaleValues.push(1),l.scaleValues.push(.05)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);for(var l=0,o=0;o<t.length-1;o++)l+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);var i=l*this.scaleValues[0],n=l*this.scaleValues[2],r=!1;r=0===this.scaleValues[0];for(var a=0,s=0;s<e.length-1;s++)a+=SuperMap.Plot.PlottingUtil.distance(e[s],e[s+1]);if(0!==a){for(var p=0;p<=a;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(-1!==u.index){var c=[],P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);r?c.push(P.pntRight):c.push(P.pntLeft);var S=p+n,h=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,S);if(-1!==h.index){var y=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[h.index+1],h.pt);r?c.push(y.pntLeft):c.push(y.pntRight),Math.abs(p)<1e-6&&(this.addScalePoint(c[0],0),this.addScalePoint(h.pt,1)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c)}}}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){var n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,o[1],o[0]),r=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,n.pntRight,n.pntLeft),a=SuperMap.Plot.PlottingUtil.distance(r.projectPoint,l[0]);this.scaleValues[0]=a/i;var s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[1]=s?1:0}else{for(var p,u=-1,c=0,P=o.length-1;c<P;c++){var S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[c],o[c+1]);if(S.isOnline){p=S.projectPoint,u=c;break}}if(-1===u)return;for(var h=[],y=0,f=u;y<=f;y++)h.push(o[y]);h.push(p);var g=SuperMap.Plot.PlottingUtil.polylineDistance(h);this.scaleValues[2]=g/i}}}}]),e}();SuperMap.Plot.AlgoSymbol15900=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15806=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.06),l.scaleValues.push(1),l.scaleValues.push(.1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(t.length>=this.minEditPts){this.scalePoints=[];var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=.6*i,r=this.scaleValues[2]*o,a=0===this.scaleValues[1],s=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0===s)return;for(var p=[],u=0;u<=s;u+=r){var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u);if(!(c.index<0)){var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt);if(a?p.push(P.pntRight):p.push(P.pntLeft),!((c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.65*r)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,e[c.index+1],c.pt),a?p.push(P.pntRight):p.push(P.pntLeft),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.8*r)).index<0||(p.push(c.pt),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.5*r)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt),a?p.push(P.pntLeft):p.push(P.pntRight),c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.2*r),p.push(c.pt),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+.35*r)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,e[c.index+1],c.pt),a?p.push(P.pntRight):p.push(P.pntLeft),(c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u+r)).index<0||(P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt),a?p.push(P.pntRight):p.push(P.pntLeft),!(Math.abs(u)<=1e-6)))))))){this.scalePoints=[];var S=new SuperMap.Geometry.Point(p[0].x,p[0].y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S),(S=new SuperMap.Geometry.Point(c.pt.x,c.pt.y)).isScalePoint=!0,S.tag=1,this.scalePoints.push(S)}}}var h=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(p);SuperMap.Plot.PlottingUtil.clearSamePts(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o,i,n=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),r=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){i=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,n[1],n[0]),o=SuperMap.Plot.PlottingUtil.pointProjectToSegment(new SuperMap.Geometry.Point(e.x,e.y),i.pntRight,i.pntLeft);var a=SuperMap.Plot.PlottingUtil.distance(o.projectPoint,l[0])/r;this.scaleValues[0]=a;var s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(n[0],n[1],new SuperMap.Geometry.Point(e.x,e.y));this.scaleValues[1]=s?1:0}else{for(var p,u=-1,c=0;c<n.length-1;c++)if((o=SuperMap.Plot.PlottingUtil.pointProjectToSegment(new SuperMap.Geometry.Point(e.x,e.y),n[c],n[c+1])).isOnline){p=o.projectPoint,u=c;break}if(-1===u)return void(this.scaleValues[2]=.05);for(var P=[],S=0;S<=u;S++)P.push(n[S]);P.push(p);var h=SuperMap.Plot.PlottingUtil.polylineDistance(P);this.scaleValues[2]=h/r}}}}]),e}();SuperMap.Plot.AlgoSymbol15806=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15804=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.029615),l.scaleValues.push(1),l.scaleValues.push(.12)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,r=!1;r=0===this.scaleValues[1];var a=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==a){for(var s=[],p=0;p<=a;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(r?s.push(c.pntRight):s.push(c.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var P=new SuperMap.Geometry.Point(s[0].x,s[0].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}else Math.abs(2*n-p)<=1e-6&&((P=new SuperMap.Geometry.Point(u.pt.x,u.pt.y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P));r=!r}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var S=s.length,h=0,y=0;y<S-1;++y){var f=new SuperMap.Geometry.Point(s[y].x,s[y].y),g=new SuperMap.Geometry.Point(s[y+1].x,s[y+1].y);h=.3*SuperMap.Plot.PlottingUtil.distance(f,g);var b=[],M=new SuperMap.Geometry.Point(.5*(f.x+g.x),.5*(f.y+g.y)),m=SuperMap.Plot.PlottingUtil.dirAngle(f,g)*SuperMap.Plot.PlottingUtil.RTOD,d=SuperMap.Plot.PlottingUtil.circlePoint(M,h,h,m+90),v=1.5*h,O=SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,m+260),U=SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,m+280);b.push(O),b.push(d),b.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15804=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15803=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,r=!1;r=0===this.scaleValues[1];var a=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==a){for(var s=[],p=0;p<=a;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(r?s.push(c.pntRight):s.push(c.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var P=new SuperMap.Geometry.Point(s[0].x,s[0].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}else Math.abs(2*n-p)<=1e-6&&((P=new SuperMap.Geometry.Point(u.pt.x,u.pt.y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P));r=!r}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var S=s.length,h=0,y=0;y<S-1;++y){var f=new SuperMap.Geometry.Point(s[y].x,s[y].y),g=new SuperMap.Geometry.Point(s[y+1].x,s[y+1].y);h=.3*SuperMap.Plot.PlottingUtil.distance(f,g);var b=[],M=[];if(y!==S-2){var m=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*h,s[y],s[y+1]);b.push(m.pntLeft),b.push(m.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b)}if(0!==y){var d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*h,s[y+1],s[y]);M.push(d.pntLeft),M.push(d.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M)}}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15803=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15802=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,r=!1;r=0===this.scaleValues[1];var a=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==a){for(var s,p=[],u=0;u<=a;u+=n){var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u);if(!(c.index<0)){var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt);if(r?p.push(P.pntRight):p.push(P.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var S=new SuperMap.Geometry.Point(p[0].x,p[0].y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S)}else Math.abs(2*n-u)<=1e-6&&((S=new SuperMap.Geometry.Point(c.pt.x,c.pt.y)).isScalePoint=!0,S.tag=1,this.scalePoints.push(S));r=!r}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);for(var h=p.length,y=0,f=0;f<h-1;++f){var g=new SuperMap.Geometry.Point(p[f].x,p[f].y),b=new SuperMap.Geometry.Point(p[f+1].x,p[f+1].y);y=.3*SuperMap.Plot.PlottingUtil.distance(g,b);var M=[],m=[],d=[],v=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.35,p[f],p[f+1]);s=new SuperMap.Geometry.Point((p[f].x+p[f+1].x)/2,(p[f].y+p[f+1].y)/2);var O=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*y,p[f],s);m.push(O.pntLeft,O.pntRight);var U=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*y,p[f],v);M.push(U.pntLeft,U.pntRight),d.push(new SuperMap.Geometry.Point(2*s.x-U.pntLeft.x,2*s.y-U.pntLeft.y)),d.push(new SuperMap.Geometry.Point(2*s.x-U.pntRight.x,2*s.y-U.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15802=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15801=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,r=!1;r=0===this.scaleValues[1];var a=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==a){for(var s=new SuperMap.Geometry.Point(0,0),p=[],u=0;u<=a;u+=n){var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u);if(!(c.index<0)){var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[c.index+1],c.pt);if(r?p.push(P.pntRight):p.push(P.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var S=new SuperMap.Geometry.Point(p[0].x,p[0].y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S)}else Math.abs(2*n-u)<=1e-6&&((S=new SuperMap.Geometry.Point(c.pt.x,c.pt.y)).isScalePoint=!0,S.tag=1,this.scalePoints.push(S));r=!r}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);for(var h=p.length,y=0,f=0;f<h-1;++f){var g=new SuperMap.Geometry.Point(p[f].x,p[f].y),b=new SuperMap.Geometry.Point(p[f+1].x,p[f+1].y);y=.3*SuperMap.Plot.PlottingUtil.distance(g,b);var M=[],m=[],d=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.35,p[f],p[f+1]);s=new SuperMap.Geometry.Point((p[f].x+p[f+1].x)/2,(p[f].y+p[f+1].y)/2);var v=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*y,p[f],d);M.push(v.pntLeft),M.push(v.pntRight),m.push(new SuperMap.Geometry.Point(2*s.x-v.pntLeft.x,2*s.y-v.pntLeft.y)),m.push(new SuperMap.Geometry.Point(2*s.x-v.pntRight.x,2*s.y-v.pntRight.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15801=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15800=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.04),l.scaleValues.push(1),l.scaleValues.push(.12)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var l=this.scaleValues[0],o=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=l*o,n=this.scaleValues[2]*o*.5,r=!1;r=0===this.scaleValues[1];var a=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==a){for(var s=[],p=0;p<=a;p+=n){var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,p);if(!(u.index<0)){var c=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[u.index+1],u.pt);if(r?s.push(c.pntRight):s.push(c.pntLeft),Math.abs(p)<=1e-6){this.scalePoints=[];var P=new SuperMap.Geometry.Point(s[0].x,s[0].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P)}else Math.abs(2*n-p)<=1e-6&&((P=new SuperMap.Geometry.Point(u.pt.x,u.pt.y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P));r=!r}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);for(var S=s.length,h=0,y=0;y<S-1;++y){var f=new SuperMap.Geometry.Point(s[y].x,s[y].y),g=new SuperMap.Geometry.Point(s[y+1].x,s[y+1].y);h=.3*SuperMap.Plot.PlottingUtil.distance(f,g);var b=[],M=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(.5,s[y],s[y+1]),m=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*h,s[y],M);b.push(m.pntLeft),b.push(m.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;var o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),i=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){var n=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(1,o[1],o[0]),r=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,n.pntRight,n.pntLeft),a=SuperMap.Plot.PlottingUtil.distance(r.projectPoint,l[0]);this.scaleValues[0]=a/i;var s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[1]=s?1:0}else{for(var p,u=-1,c=0,P=o.length-1;c<P;c++){var S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[c],o[c+1]);if(S.isOnline){p=S.projectPoint,u=c;break}}if(-1===u)return void(this.scaleValues[2]=.05);for(var h=[],y=0,f=u;y<=f;y++)h.push(o[y]);h.push(p);var g=SuperMap.Plot.PlottingUtil.polylineDistance(h);this.scaleValues[2]=g/i}}}}]),e}();SuperMap.Plot.AlgoSymbol15800=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15202=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(parseFloat(.1732)),l.scaleValues.push(.1),l.scaleValues.push(1)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var e=new SuperMap.Geometry.Point(t[0].x,t[0].y),l=new SuperMap.Geometry.Point(t[1].x,t[1].y),o=SuperMap.Plot.PlottingUtil.distance(e,l),i=this.scaleValues[0]*o,n=this.scaleValues[1]*o,r=this.scaleValues[2],a=null;if(1===r){var s=SuperMap.Plot.PlottingUtil.linePnt(l,e,o+i);a=new SuperMap.Geometry.Point(s.x,s.y)}else s=SuperMap.Plot.PlottingUtil.linePnt(l,e,o-i),a=new SuperMap.Geometry.Point(s.x,s.y);var p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.5*n,t[0],a),u=[];u.push(p.pntRight),u.push(t[0]),u.push(p.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);var c=[],P=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);if(1===r){var S=new SuperMap.Geometry.Point(2*P.x-p.pntLeft.x,2*P.y-p.pntLeft.y);c.push(S),c.push(t[1]);var h=new SuperMap.Geometry.Point(2*P.x-p.pntRight.x,2*P.y-p.pntRight.y);c.push(h)}else S=new SuperMap.Geometry.Point(2*P.x-p.pntRight.x,2*P.y-p.pntRight.y),c.push(S),c.push(t[1]),h=new SuperMap.Geometry.Point(2*P.x-p.pntLeft.x,2*P.y-p.pntLeft.y),c.push(h);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol15202=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15201=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol15201=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol15200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.05),l.scaleValues.push(0),l.scaleValues.push(.185)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var l=0,o=0,i=e.length-1;o<i;o++)l+=SuperMap.Plot.PlottingUtil.distance(e[o],e[o+1]);for(var n=0,r=0,a=t.length-1;r<a;r++)n+=SuperMap.Plot.PlottingUtil.distance(t[r],t[r+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());for(var s=this.scaleValues[0]*n,p=this.scaleValues[1],u=this.scaleValues[2]*n,c=.3*u,P=u;P<l;P+=u){var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e);if(-1===S.index)return void this.finish();var h=P+c,y=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h,e);if(-1===y.index)return void this.finish();var f=[],g=[];f.push(S.pts);var b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[S.index],S.pts);0===p?f.push(new SuperMap.Geometry.Point(b.pntLeft.x,b.pntLeft.y)):f.push(new SuperMap.Geometry.Point(b.pntRight.x,b.pntRight.y)),g.push(y.pts);var M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[y.index],y.pts);if(0===p?g.push(new SuperMap.Geometry.Point(M.pntLeft.x,M.pntLeft.y)):g.push(new SuperMap.Geometry.Point(M.pntRight.x,M.pntRight.y)),u===P){this.scalePoints=[];var m=new SuperMap.Geometry.Point(f[1].x,f[1].y);m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m),(m=new SuperMap.Geometry.Point(f[0].x,f[0].y)).isScalePoint=!0,m.tag=1,this.scalePoints.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;for(var o=0,i=0,n=l.length-1;i<n;i++)o+=SuperMap.Plot.PlottingUtil.distance(l[i],l[i+1]);var r=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),a=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,o*this.scaleValues[2]);if(-1===s.index)return;var p=SuperMap.Plot.PlottingUtil.distance(s.pt,a)/o,u=SuperMap.Plot.PlottingUtil.pointIsRightToLine(r[0],r[1],e);this.scaleValues[1]=u?1:0,this.scaleValues[0]=p}else if(1===t){for(var c=0,P=-1,S=[],h=0,y=r.length-1;h<y;h++){var f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[h],r[h+1]);if(f.isOnline){var g=SuperMap.Plot.PlottingUtil.distance(f.projectPoint,this.controlPoints[1]);0==c?(c=g,P=h,S=e):g<c&&(c=g,P=h,S=e)}}if(-1==P)return;for(var b=0,M=0,m=P-1;M<m;M++)b+=SuperMap.Plot.PlottingUtil.distance(r[M],r[M+1]);var d=(b+=SuperMap.Plot.PlottingUtil.distance(S,r[P]))/o;d>.7&&(d=.7),this.scaleValues[2]=d}}}}]),e}();SuperMap.Plot.AlgoSymbol15200=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol13700=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e;if(2===t.length)e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,t);else if(3===t.length){var l=new SuperMap.Geometry.Point(t[0].x,t[0].y),o=new SuperMap.Geometry.Point(t[1].x,t[1].y),i=new SuperMap.Geometry.Point(t[2].x,t[2].y),n=SuperMap.Plot.PlottingUtil.distance(o,i);if(0>=n)return;this.scaleValues=[];var r=SuperMap.Plot.PlottingUtil.distance(l,o)/n;this.scaleValues.push(r);var a=180*SuperMap.Plot.PlottingUtil.radian(l,o)/Math.PI;a>90?a-=90:a=270+a,this.scaleValues.push(a*(Math.PI/180));var s=180*SuperMap.Plot.PlottingUtil.radian(l,i)/Math.PI;s>90?s-=90:s=270+s,this.scaleValues.push(s*(Math.PI/180)),e=this.scaleValues[0]*n;var p=this.scaleValues[1]*(180/Math.PI)+90,u=this.scaleValues[2]*(180/Math.PI)+90;p<u&&(p+=360);for(var c,P=[],S=p;S>=u;S-=4)c=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,S),P.push(c);S!=u&&(c=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,u),P.push(c)),this.controlPoints[2]=SuperMap.Plot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,u),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P)}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol13700=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12502=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol12500),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.03));for(var e=0,l=0;l<t.length-1;l++)e+=SuperMap.Plot.PlottingUtil.distance(t[l],t[l+1]);var o=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var i=this.scaleValues[1]*e,n=o*e,r=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,n);if(-1!==r.index){for(var a,s=r.pt,p=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[s,new SuperMap.Geometry.Point(s.x+i,s.y)]),u=0;u<t.length-1;u++){var c,P=t[u];a=t[u+1];var S=SuperMap.Plot.PlottingUtil.distance(s,P),h=SuperMap.Plot.PlottingUtil.distance(s,a);if(!(S<i&&h<i))if(S>i&&h<i||S<i&&h>i){var y;y=S>i?P:a,(c=this.getLineAddCircleIntersectPts(P,a,p)).length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c[0],y])}else{var f=SuperMap.Plot.PlottingUtil.projectPoint(s,P,a);if(SuperMap.Plot.PlottingUtil.distance(s,f)>=i)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,a]);else if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(f,P,a)){if((c=this.getLineAddCircleIntersectPts(P,a,p)).length>0){c.unshift(P),c.push(a);for(var g=0;g<c.length-1;g++)this.isLineInCircle(c[g],c[g+1],s,i)||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[c[g],c[g+1]])}}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P,a])}}var b=0;c&&(b=SuperMap.Plot.PlottingUtil.radian(s,c[c.length-1])*SuperMap.Plot.PlottingUtil.RTOD);var M=[];a=SuperMap.Plot.PlottingUtil.circlePoint(s,-i,-i,b),M.push(a,s),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M);var m=SuperMap.Plot.PlottingUtil.radian(a,s)*SuperMap.Plot.PlottingUtil.RTOD,d=[],v=SuperMap.Plot.PlottingUtil.circlePoint(s,.8*i,.8*i,m+170),O=SuperMap.Plot.PlottingUtil.circlePoint(s,.8*i,.8*i,m-170);d.push(v),d.push(O),d.push(s);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[s,new SuperMap.Geometry.Point(s.x+i,s.y)]),this.addScalePoint(s,0),this.addScalePoint(new SuperMap.Geometry.Point(s.x+i,s.y),1),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2);return o>SuperMap.Plot.PlottingUtil.distance(i,l)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,l){var o=l.slice();o[0].x===o[o.length-1].x&&o[0].y===o[o.length-1].y||o.push(o[0]);for(var i,n=[],r=0;r<o.length-1;r++){var a=o[r],s=o[r+1],p=SuperMap.Plot.PlottingUtil.intersectLines(t,e,a,s);p.isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t,e)&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,a,s)&&n.push(p.intersectPoint)}for(var u=0;u<n.length-1;u++)SuperMap.Plot.PlottingUtil.isSamePt(n[u],n[u+1])&&(n.splice(u,1),u--);if(t.x>e.x)for(var c=0;c<n.length&&c!=n.length-1;c++)n[c].x<n[c+1].x&&(i=n[c],n[c]=n[c+1],n[c+1]=i);else if(t.x<e.x)for(var P=0;P<n.length&&P!=n.length-1;P++)n[P].x>n[P+1].x&&(i=n[P],n[P]=n[P+1],n[P+1]=i);else if(t.y>e.y)for(var S=0;S<n.length&&S!=n.length-1;S++)n[S].y<n[S+1].y&&(i=n[S],n[S]=n[S+1],n[S+1]=i);else if(t.y<e.y)for(var h=0;h<n.length&&h!=n.length-1;h++)n[h].y>n[h+1].y&&(i=n[h],n[h]=n[h+1],n[h+1]=i);return n}}]),e}();SuperMap.Plot.AlgoSymbol12502=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12501=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.1),l.scaleValues.push(.03),l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){var e=this.getSubSymbolScaleValue();this.scaleValues[0]=e,this.scaleValues[1]=.5*e,this.scaleValues[3]=.5*e}var l=this.scaleValues[0],o=this.scaleValues[1],i=this.scaleValues[2],n=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);n=SuperMap.Plot.PlottingUtil.clearSamePts(n);var r=this.GetCurvePts(t,l,o);if(0!==r.pt.length){var a=SuperMap.Plot.PlottingUtil.polylineDistance(n)*i,s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,a);if(-1!==s.index){for(var p=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[3],u=[],c=0;c<360;c+=12)u.push(SuperMap.Plot.PlottingUtil.circlePoint(s.pt,p,p,c));u.push(u[0]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u);for(var P=[],S=[],h=0;h<r.pt.length;h++)SuperMap.Plot.PlottingUtil.ptIsInPolygon(u,r.pt[h])?S.length>1&&(P.push(S),S=[]):S.push(r.pt[h]);S.length>1&&P.push(S);for(var y=0;y<P.length;y++)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P[y]);var f=new SuperMap.Geometry.Point(r.pt[0].x,r.pt[0].y);f.isScalePoint=!0,f.tag=0,this.scalePoints.push(f);var g=new SuperMap.Geometry.Point(r.scalePt.x,r.scalePt.y);g.isScalePoint=!0,g.tag=1,this.scalePoints.push(g);var b=new SuperMap.Geometry.Point(s.pt.x,s.pt.y);b.isScalePoint=!0,b.tag=2,this.scalePoints.push(b);var M=SuperMap.Plot.PlottingUtil.circlePoint(new SuperMap.Geometry.Point(s.pt.x,s.pt.y),p,p,0),m=new SuperMap.Geometry.Point(M.x,M.y);m.isScalePoint=!0,m.tag=3,this.scalePoints.push(m),this.finish()}else this.finish()}else this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(null!=e&&!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((l=SuperMap.Plot.PlottingUtil.clearSamePts(l)).length<this.minEditPts)return;if(4>this.scaleValues.length)return;var o,i,n,r,a,s=SuperMap.Plot.PlottingUtil.polylineDistance(l),p=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(l),u=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var c=new SuperMap.Geometry.Point(l[0].x,l[0].y),P=SuperMap.Plot.PlottingUtil.distance(c,u);i=2*P/s,this.scaleValues[1]=i}else if(1===t)c=new SuperMap.Geometry.Point(l[0].x,l[0].y),o=(P=SuperMap.Plot.PlottingUtil.distance(c,u))/s,this.scaleValues[0]=o;else if(2==t){var S=-1,h=0;a=new SuperMap.Geometry.Point(0,0),o=this.scaleValues[0],i=this.scaleValues[1];for(var y=0;y<p.length-1;y++){var f=p[y],g=p[y+1],b=SuperMap.Plot.PlottingUtil.projectPoint(u,f,g);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(b,f,g)){var M=SuperMap.Plot.PlottingUtil.distance(u,b);-1==S?(S=y,a=b,h=M):h>M&&(S=y,a=b,h=M)}}if(-1==S||S>p.length-1)return;r=SuperMap.Plot.PlottingUtil.polylineDistance(p);for(var m=[],d=0;d<S;d++)m.push(p[d]);m.push(a);var v=SuperMap.Plot.PlottingUtil.polylineDistance(m);if(v<0||v>r)return;n=v/r,this.scaleValues[2]=n}else if(3===t){o=this.scaleValues[0],i=this.scaleValues[1],n=this.scaleValues[2];var O=(r=SuperMap.Plot.PlottingUtil.polylineDistance(p))*n;if(-1===(a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(p,O)).index)return;var U=SuperMap.Plot.PlottingUtil.distance(a.pt,e)/s;U>.4&&(U=.4),this.scaleValues[3]=U}}}},{key:"GetCurvePts",value:function(t,e,l){for(var o,i=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),n=SuperMap.Plot.PlottingUtil.polylineDistance(i),r=n*e,a=n*l/2,s=[],p=[],u=i[0],c=!1,P=i[0],S=1;S<i.length;S++){var h=i[S],y=SuperMap.Plot.PlottingUtil.distance(u,h);if(!(y<r&&S!==i.length-1)){for(var f,g=parseInt(y/r),b=0;b<g;b++){f=SuperMap.Plot.PlottingUtil.linePnt(u,h,r),c||(o=f,c=!0);var M=this.GetCosPts2D(u,f,r,a);s=p.length>1&&0===b?this.ClearCurvePts2D(P,u,h,p,M,s):s.concat(M),p=(p=[]).concat(M),P=u,u=f}S===i.length-1&&(f=i[i.length-1],M=this.GetCosPts2D(u,f,r,a),s=p.length>1&&M.length>1?this.ClearCurvePts2D(P,u,h,p,M,s):s.concat(M))}}return{pt:s,scalePt:o}}},{key:"GetCosPts2D",value:function(t,e,l,o){for(var i=[],n=SuperMap.Plot.PlottingUtil.distance(t,e),r=l/30,a=0;a<n;a+=r){var s=a*(2*Math.PI/l),p=o*Math.cos(s),u=new SuperMap.Geometry.Point(a,p),c=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,P=SuperMap.Plot.PlottingUtil.coordinateTrans(t,u,c);i.push(P)}return i}},{key:"ClearCurvePts2D",value:function(t,e,l,o,i,n){for(var r=180*SuperMap.Plot.PlottingUtil.radian(e,l)/Math.PI,a=180*SuperMap.Plot.PlottingUtil.radian(e,t)/Math.PI-r;a<=0;)a+=360;var s=a/2,p=l;p=SuperMap.Plot.PlottingUtil.rotateAngle(e,s*Math.PI/180,p);for(var u=SuperMap.Plot.PlottingUtil.linePnt(e,p,1),c=0,P=0;P<o.length;P++)if(SuperMap.Plot.PlottingUtil.pointIsRightToLine(e,u,o[P])){c=P;break}if(0!=c)for(var S=0;S<o.length-c;S++)n.slice(S,n.length-1);for(var h=0;h<i.length;h++)SuperMap.Plot.PlottingUtil.pointIsRightToLine(e,u,i[h])&&n.push(i[h]);return n}}]),e}();SuperMap.Plot.AlgoSymbol12501=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol12500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&(l.scaleValues.push(.5),l.scaleValues.push(.03)),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0===this.scaleValues.length&&(this.scaleValues.push(.5),this.scaleValues.push(.03));var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0];this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());var o=this.scaleValues[1]*e,i=l*e,n=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,i);if(-1!==n.index){for(var r=n.pt,a=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[r,new SuperMap.Geometry.Point(r.x+o,r.y)]),s=0;s<t.length-1;s++){var p,u=t[s],c=t[s+1],P=SuperMap.Plot.PlottingUtil.distance(r,u),S=SuperMap.Plot.PlottingUtil.distance(r,c);if(!(P<o&&S<o))if(P>o&&S<o||P<o&&S>o){var h;h=P>o?u:c,(p=this.getLineAddCircleIntersectPts(u,c,a)).length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p[0],h])}else{var y=SuperMap.Plot.PlottingUtil.projectPoint(r,u,c);if(SuperMap.Plot.PlottingUtil.distance(r,y)>=o)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c]);else if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(y,u,c)){if((p=this.getLineAddCircleIntersectPts(u,c,a)).length>0){p.unshift(u),p.push(c);for(var f=0;f<p.length-1;f++)this.isLineInCircle(p[f],p[f+1],r,o)||this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p[f],p[f+1]])}}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,c])}}this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[r,new SuperMap.Geometry.Point(r.x+o,r.y)]),this.scalePoints=[];var g=r;g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g);var b=new SuperMap.Geometry.Point(r.x+o,r.y);b.isScalePoint=!0,b.tag=1,this.scalePoints.push(b),this.finish()}}}},{key:"isLineInCircle",value:function(t,e,l,o){var i=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2);return o>SuperMap.Plot.PlottingUtil.distance(i,l)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,l){var o=l.slice();o[0].x===o[o.length-1].x&&o[0].y===o[o.length-1].y||o.push(o[0]);for(var i,n=[],r=0;r<o.length-1;r++){var a=o[r],s=o[r+1],p=SuperMap.Plot.PlottingUtil.intersectLines(t,e,a,s);p.isIntersectLines&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,t,e)&&SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.intersectPoint,a,s)&&n.push(p.intersectPoint)}for(var u=0;u<n.length-1;u++)SuperMap.Plot.PlottingUtil.isSamePt(n[u],n[u+1])&&(n.splice(u,1),u--);if(t.x>e.x)for(var c=0;c<n.length&&c!=n.length-1;c++)n[c].x<n[c+1].x&&(i=n[c],n[c]=n[c+1],n[c+1]=i);else if(t.x<e.x)for(var P=0;P<n.length&&P!=n.length-1;P++)n[P].x>n[P+1].x&&(i=n[P],n[P]=n[P+1],n[P+1]=i);else if(t.y>e.y)for(var S=0;S<n.length&&S!=n.length-1;S++)n[S].y<n[S+1].y&&(i=n[S],n[S]=n[S+1],n[S+1]=i);else if(t.y<e.y)for(var h=0;h<n.length&&h!=n.length-1;h++)n[h].y>n[h+1].y&&(i=n[h],n[h]=n[h+1],n[h+1]=i);return n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var l=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),o=SuperMap.Plot.PlottingUtil.polylineDistance(l);if(0===t){for(var i=0,n=-1,r=null,a=0;a<l.length-1;a++){var s=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l[a],l[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(s.projectPoint,l[a],l[a+1])){var p=SuperMap.Plot.PlottingUtil.distance(s.projectPoint,e);0==i?(i=p,n=a,r=s.projectPoint):p<i&&(i=p,n=a,r=s.projectPoint)}}if(-1==n)return;for(var u=0,c=0;c<n;c++)u+=SuperMap.Plot.PlottingUtil.distance(l[c],l[c+1]);var P=(u+=SuperMap.Plot.PlottingUtil.distance(r,l[n]))/o;P>1&&(P=1),this.scaleValues[0]=P}if(1===t){var S=this.scaleValues[0]*o,h=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,S);if(-1===h.index)return;var y=SuperMap.Plot.PlottingUtil.distance(h.pt,e)/o;y>.4&&(y=.4),this.scaleValues[1]=y}}}}]),e}();SuperMap.Plot.AlgoSymbol12500=i},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol6030601=e.AlgoSymbol6031001=e.AlgoSymbol6030501=e.AlgoSymbol6030107=e.AlgoSymbol6030106=e.AlgoSymbol6030105=e.AlgoSymbol6030104=e.AlgoSymbol6030103=e.AlgoSymbol6030102=e.AlgoSymbol6030101=e.AlgoSymbol5020802=e.AlgoSymbol5035205=e.AlgoSymbol5035203=e.AlgoSymbol5035202=e.AlgoSymbol5035201=e.AlgoSymbol5034801=e.AlgoSymbol5034203=e.AlgoSymbol5034202=e.AlgoSymbol5034201=e.AlgoSymbol5033803=e.AlgoSymbol5033802=e.AlgoSymbol5033001=e.AlgoSymbol5032003=e.AlgoSymbol5031401=e.AlgoSymbol5030301=e.AlgoSymbol5022301=e.AlgoSymbol5022002=e.AlgoSymbol5022001=e.AlgoSymbol5021803=e.AlgoSymbol5010401=e.AlgoSymbol4030401=e.AlgoSymbol4030303=e.AlgoSymbol4030302=e.AlgoSymbol4030301=e.AlgoSymbol3002501=e.AlgoSymbol3002005=e.AlgoSymbol3002004=e.AlgoSymbol3002002=e.AlgoSymbol3002001=e.AlgoSymbol3001302=e.AlgoSymbol3001301=e.AlgoSymbol3001105=e.AlgoSymbol3001104=e.AlgoSymbol3001103=e.AlgoSymbol3001102=e.AlgoSymbol3001101=e.AlgoSymbol3000809=e.AlgoSymbol3000808=e.AlgoSymbol3000807=e.AlgoSymbol3000806=e.AlgoSymbol3000805=e.AlgoSymbol3000804=e.AlgoSymbol3000803=e.AlgoSymbol3000802=e.AlgoSymbol3000801=e.AlgoSymbol2122301=e.AlgoSymbol2122101=e.AlgoSymbol2121602=e.AlgoSymbol2121601=e.AlgoSymbol2121507=e.AlgoSymbol2121506=e.AlgoSymbol2121504=e.AlgoSymbol2092101=e.AlgoSymbol2091503=e.AlgoSymbol60310=e.AlgoSymbol60306=e.AlgoSymbol60305=e.AlgoSymbol60304=e.AlgoSymbol2121505=e.AlgoSymbol60301=e.AlgoSymbol60205=e.AlgoSymbol60203=e.AlgoSymbol50352=e.AlgoSymbol50342=e.AlgoSymbol50308=e.AlgoSymbol50226=e.AlgoSymbol50225=e.AlgoSymbol50223=e.AlgoSymbol50108=e.AlgoSymbol40304=e.AlgoSymbol40302=e.AlgoSymbol40104=e.AlgoSymbol30026=e.AlgoSymbol30025=e.AlgoSymbol30020=e.AlgoSymbol30014=e.AlgoSymbol30013=e.AlgoSymbol30012=void 0,e.AlgoSymbol30011=e.AlgoSymbol30010=e.AlgoSymbol30009=e.AlgoSymbol30008=e.AlgoSymbol21221=e.AlgoSymbol21216=e.AlgoSymbol3020901=e.AlgoSymbol3010304=e.AlgoSymbol3010303=e.AlgoSymbol3010301=e.AlgoSymbol40100=e.AlgoSymbol37700=e.AlgoSymbol35200=e.AlgoSymbol35000=e.AlgoSymbol44100=e.AlgoSymbol42200=e.AlgoSymbol41202=e.AlgoSymbol41201=e.AlgoSymbol41200=e.AlgoSymbol41100=e.AlgoSymbol40101=e.AlgoSymbol40900=e.AlgoSymbol32300=e.AlgoSymbol31401=e.AlgoSymbol31400=e.AlgoSymbol31301=e.AlgoSymbol31300=e.AlgoSymbol30800=e.AlgoSymbol30201=e.AlgoSymbol30200=e.AlgoSymbol30100=e.AlgoSymbol30002=e.AlgoSymbol30000=e.AlgoSymbol29800=e.AlgoSymbol28301=e.AlgoSymbol28300=e.AlgoSymbol28200=e.AlgoSymbol28100=e.AlgoSymbol28000=e.AlgoSymbol26601=e.AlgoSymbol26600=e.AlgoSymbol26500=e.AlgoSymbol25400=e.AlgoSymbol25000=e.AlgoSymbol25200=e.AlgoSymbol29103=e.AlgoSymbol29101=e.AlgoSymbol29000=e.AlgoSymbol28900=e.AlgoSymbol23902=e.AlgoSymbol23901=e.AlgoSymbol23800=e.AlgoSymbol23500=e.AlgoSymbol23400=e.AlgoSymbol22000=e.AlgoSymbol21800=e.AlgoSymbol21600=e.AlgoSymbol21504=e.AlgoSymbol21503=e.AlgoSymbol21502=e.AlgoSymbol21501=e.AlgoSymbol21900=e.AlgoSymbol21500=e.AlgoSymbol21401=e.AlgoSymbol25201=e.AlgoSymbol42500=e.AlgoSymbol26501=e.AlgoSymbol20301=e.AlgoSymbol20300=e.AlgoSymbol17806=e.AlgoSymbol17805=e.AlgoSymbol17804=e.AlgoSymbol17803=e.AlgoSymbol17802=e.AlgoSymbol17801=e.AlgoSymbol17800=e.AlgoSymbol17704=e.AlgoSymbol17703=e.AlgoSymbol17700=e.AlgoSymbol17501=e.AlgoSymbol17500=e.AlgoSymbol16700=e.AlgoSymbol16203=e.AlgoSymbol16202=e.AlgoSymbol16201=e.AlgoSymbol16200=e.AlgoSymbol15900=e.AlgoSymbol15806=e.AlgoSymbol15804=e.AlgoSymbol15803=e.AlgoSymbol15802=e.AlgoSymbol15801=e.AlgoSymbol15800=e.AlgoSymbol15202=e.AlgoSymbol15201=e.AlgoSymbol15200=e.AlgoSymbol13700=e.AlgoSymbol12502=e.AlgoSymbol12501=e.AlgoSymbol12500=void 0;var o=l(187),i=l(186),n=l(185),r=l(184),a=l(183),s=l(182),p=l(181),u=l(180),c=l(179),P=l(178),S=l(177),h=l(176),y=l(175),f=l(174),g=l(173),b=l(172),M=l(171),m=l(170),d=l(169),v=l(168),O=l(167),U=l(166),L=l(165),w=l(164),_=l(163),V=l(162),A=l(161),T=l(160),E=l(159),x=l(158),j=l(157),C=l(156),Y=l(155),I=l(154),B=l(153),R=l(152),G=l(151),N=l(150),D=l(149),k=l(148),z=l(147),F=l(146),W=l(145),K=l(144),J=l(143),q=l(142),Z=l(141),X=l(140),H=l(139),Q=l(138),$=l(137),tt=l(136),et=l(135),lt=l(134),ot=l(133),it=l(132),nt=l(131),rt=l(130),at=l(129),st=l(128),pt=l(127),ut=l(126),ct=l(125),Pt=l(124),St=l(123),ht=l(122),yt=l(121),ft=l(120),gt=l(119),bt=l(118),Mt=l(117),mt=l(116),dt=l(115),vt=l(114),Ot=l(113),Ut=l(112),Lt=l(111),wt=l(110),_t=l(109),Vt=l(108),At=l(107),Tt=l(106),Et=l(105),xt=l(104),jt=l(103),Ct=l(102),Yt=l(101),It=l(100),Bt=l(99),Rt=l(98),Gt=l(97),Nt=l(96),Dt=l(95),kt=l(94),zt=l(93),Ft=l(92),Wt=l(91),Kt=l(90),Jt=l(89),qt=l(88),Zt=l(87),Xt=l(86),Ht=l(85),Qt=l(84),$t=l(83),te=l(82),ee=l(81),le=l(80),oe=l(79),ie=l(78),ne=l(77),re=l(76),ae=l(75),se=l(74),pe=l(73),ue=l(72),ce=l(71),Pe=l(70),Se=l(69),he=l(68),ye=l(67),fe=l(66),ge=l(65),be=l(64),Me=l(63),me=l(62),de=l(61),ve=l(60),Oe=l(59),Ue=l(58),Le=l(57),we=l(56),_e=l(55),Ve=l(54),Ae=l(53),Te=l(52),Ee=l(51),xe=l(50),je=l(49),Ce=l(48),Ye=l(47),Ie=l(46),Be=l(45),Re=l(44),Ge=l(43),Ne=l(42),De=l(41),ke=l(40),ze=l(39),Fe=l(38),We=l(37),Ke=l(36),Je=l(35),qe=l(34),Ze=l(33),Xe=l(32),He=l(31),Qe=l(30),$e=l(29),tl=l(28),el=l(27),ll=l(26),ol=l(25),il=l(24),nl=l(23),rl=l(22),al=l(21),sl=l(20),pl=l(19),ul=l(18),cl=l(17),Pl=l(16),Sl=l(15),hl=l(14),yl=l(13),fl=l(12),gl=l(11),bl=l(10),Ml=l(9),ml=l(8),dl=l(7),vl=l(6),Ol=l(5),Ul=l(4),Ll=l(3),wl=l(2),_l=l(1),Vl=l(0);e.AlgoSymbol12500=o.AlgoSymbol12500,e.AlgoSymbol12501=i.AlgoSymbol12501,e.AlgoSymbol12502=n.AlgoSymbol12502,e.AlgoSymbol13700=r.AlgoSymbol13700,e.AlgoSymbol15200=a.AlgoSymbol15200,e.AlgoSymbol15201=s.AlgoSymbol15201,e.AlgoSymbol15202=p.AlgoSymbol15202,e.AlgoSymbol15800=u.AlgoSymbol15800,e.AlgoSymbol15801=c.AlgoSymbol15801,e.AlgoSymbol15802=P.AlgoSymbol15802,e.AlgoSymbol15803=S.AlgoSymbol15803,e.AlgoSymbol15804=h.AlgoSymbol15804,e.AlgoSymbol15806=y.AlgoSymbol15806,e.AlgoSymbol15900=f.AlgoSymbol15900,e.AlgoSymbol16200=g.AlgoSymbol16200,e.AlgoSymbol16201=b.AlgoSymbol16201,e.AlgoSymbol16202=M.AlgoSymbol16202,e.AlgoSymbol16203=m.AlgoSymbol16203,e.AlgoSymbol16700=d.AlgoSymbol16700,e.AlgoSymbol17500=v.AlgoSymbol17500,e.AlgoSymbol17501=O.AlgoSymbol17501,e.AlgoSymbol17700=U.AlgoSymbol17700,e.AlgoSymbol17703=L.AlgoSymbol17703,e.AlgoSymbol17704=w.AlgoSymbol17704,e.AlgoSymbol17800=_.AlgoSymbol17800,e.AlgoSymbol17801=V.AlgoSymbol17801,e.AlgoSymbol17802=A.AlgoSymbol17802,e.AlgoSymbol17803=T.AlgoSymbol17803,e.AlgoSymbol17804=E.AlgoSymbol17804,e.AlgoSymbol17805=x.AlgoSymbol17805,e.AlgoSymbol17806=j.AlgoSymbol17806,e.AlgoSymbol20300=C.AlgoSymbol20300,e.AlgoSymbol20301=Y.AlgoSymbol20301,e.AlgoSymbol26501=I.AlgoSymbol26501,e.AlgoSymbol42500=B.AlgoSymbol42500,e.AlgoSymbol25201=R.AlgoSymbol25201,e.AlgoSymbol21401=G.AlgoSymbol21401,e.AlgoSymbol21500=N.AlgoSymbol21500,e.AlgoSymbol21900=D.AlgoSymbol21900,e.AlgoSymbol21501=k.AlgoSymbol21501,e.AlgoSymbol21502=z.AlgoSymbol21502,e.AlgoSymbol21503=F.AlgoSymbol21503,e.AlgoSymbol21504=W.AlgoSymbol21504,e.AlgoSymbol21600=K.AlgoSymbol21600,e.AlgoSymbol21800=J.AlgoSymbol21800,e.AlgoSymbol22000=q.AlgoSymbol22000,e.AlgoSymbol23400=Z.AlgoSymbol23400,e.AlgoSymbol23500=X.AlgoSymbol23500,e.AlgoSymbol23800=H.AlgoSymbol23800,e.AlgoSymbol23901=Q.AlgoSymbol23901,e.AlgoSymbol23902=$.AlgoSymbol23902,e.AlgoSymbol28900=tt.AlgoSymbol28900,e.AlgoSymbol29000=et.AlgoSymbol29000,e.AlgoSymbol29101=lt.AlgoSymbol29101,e.AlgoSymbol29103=ot.AlgoSymbol29103,e.AlgoSymbol25200=it.AlgoSymbol25200,e.AlgoSymbol25000=nt.AlgoSymbol25000,e.AlgoSymbol25400=rt.AlgoSymbol25400,e.AlgoSymbol26500=at.AlgoSymbol26500,e.AlgoSymbol26600=st.AlgoSymbol26600,e.AlgoSymbol26601=pt.AlgoSymbol26601,e.AlgoSymbol28000=ut.AlgoSymbol28000,e.AlgoSymbol28100=ct.AlgoSymbol28100,e.AlgoSymbol28200=Pt.AlgoSymbol28200,e.AlgoSymbol28300=St.AlgoSymbol28300,e.AlgoSymbol28301=ht.AlgoSymbol28301,e.AlgoSymbol29800=yt.AlgoSymbol29800,e.AlgoSymbol30000=ft.AlgoSymbol30000,e.AlgoSymbol30002=gt.AlgoSymbol30002,e.AlgoSymbol30100=bt.AlgoSymbol30100,e.AlgoSymbol30200=Mt.AlgoSymbol30200,e.AlgoSymbol30201=mt.AlgoSymbol30201,e.AlgoSymbol30800=dt.AlgoSymbol30800,e.AlgoSymbol31300=vt.AlgoSymbol31300,e.AlgoSymbol31301=Ot.AlgoSymbol31301,e.AlgoSymbol31400=Ut.AlgoSymbol31400,e.AlgoSymbol31401=Lt.AlgoSymbol31401,e.AlgoSymbol32300=wt.AlgoSymbol32300,e.AlgoSymbol40900=_t.AlgoSymbol40900,e.AlgoSymbol40101=Vt.AlgoSymbol40101,e.AlgoSymbol41100=At.AlgoSymbol41100,e.AlgoSymbol41200=Tt.AlgoSymbol41200,e.AlgoSymbol41201=Et.AlgoSymbol41201,e.AlgoSymbol41202=xt.AlgoSymbol41202,e.AlgoSymbol42200=jt.AlgoSymbol42200,e.AlgoSymbol44100=Ct.AlgoSymbol44100,e.AlgoSymbol35000=Yt.AlgoSymbol35000,e.AlgoSymbol35200=It.AlgoSymbol35200,e.AlgoSymbol37700=Bt.AlgoSymbol37700,e.AlgoSymbol40100=Rt.AlgoSymbol40100,e.AlgoSymbol3010301=Gt.AlgoSymbol3010301,e.AlgoSymbol3010303=Nt.AlgoSymbol3010303,e.AlgoSymbol3010304=Dt.AlgoSymbol3010304,e.AlgoSymbol3020901=kt.AlgoSymbol3020901,e.AlgoSymbol21216=zt.AlgoSymbol21216,e.AlgoSymbol21221=Ft.AlgoSymbol21221,e.AlgoSymbol30008=Wt.AlgoSymbol30008,e.AlgoSymbol30009=Kt.AlgoSymbol30009,e.AlgoSymbol30010=Jt.AlgoSymbol30010,e.AlgoSymbol30011=qt.AlgoSymbol30011,e.AlgoSymbol30012=Zt.AlgoSymbol30012,e.AlgoSymbol30013=Xt.AlgoSymbol30013,e.AlgoSymbol30014=Ht.AlgoSymbol30014,e.AlgoSymbol30020=Qt.AlgoSymbol30020,e.AlgoSymbol30025=$t.AlgoSymbol30025,e.AlgoSymbol30026=te.AlgoSymbol30026,e.AlgoSymbol40104=ee.AlgoSymbol40104,e.AlgoSymbol40302=le.AlgoSymbol40302,e.AlgoSymbol40304=oe.AlgoSymbol40304,e.AlgoSymbol50108=ie.AlgoSymbol50108,e.AlgoSymbol50223=ne.AlgoSymbol50223,e.AlgoSymbol50225=re.AlgoSymbol50225,e.AlgoSymbol50226=ae.AlgoSymbol50226,e.AlgoSymbol50308=se.AlgoSymbol50308,e.AlgoSymbol50342=pe.AlgoSymbol50342,e.AlgoSymbol50352=ue.AlgoSymbol50352,e.AlgoSymbol60203=ce.AlgoSymbol60203,e.AlgoSymbol60205=Pe.AlgoSymbol60205,e.AlgoSymbol60301=Se.AlgoSymbol60301,e.AlgoSymbol2121505=he.AlgoSymbol2121505,e.AlgoSymbol60304=ye.AlgoSymbol60304,e.AlgoSymbol60305=fe.AlgoSymbol60305,e.AlgoSymbol60306=ge.AlgoSymbol60306,e.AlgoSymbol60310=be.AlgoSymbol60310,e.AlgoSymbol2091503=Me.AlgoSymbol2091503,e.AlgoSymbol2092101=me.AlgoSymbol2092101,e.AlgoSymbol2121504=de.AlgoSymbol2121504,e.AlgoSymbol2121506=ve.AlgoSymbol2121506,e.AlgoSymbol2121507=Oe.AlgoSymbol2121507,e.AlgoSymbol2121601=Ue.AlgoSymbol2121601,e.AlgoSymbol2121602=Le.AlgoSymbol2121602,e.AlgoSymbol2122101=we.AlgoSymbol2122101,e.AlgoSymbol2122301=_e.AlgoSymbol2122301,e.AlgoSymbol3000801=Ve.AlgoSymbol3000801,e.AlgoSymbol3000802=Ae.AlgoSymbol3000802,e.AlgoSymbol3000803=Te.AlgoSymbol3000803,e.AlgoSymbol3000804=Ee.AlgoSymbol3000804,e.AlgoSymbol3000805=xe.AlgoSymbol3000805,e.AlgoSymbol3000806=je.AlgoSymbol3000806,e.AlgoSymbol3000807=Ce.AlgoSymbol3000807,e.AlgoSymbol3000808=Ye.AlgoSymbol3000808,e.AlgoSymbol3000809=Ie.AlgoSymbol3000809,e.AlgoSymbol3001101=Be.AlgoSymbol3001101,e.AlgoSymbol3001102=Re.AlgoSymbol3001102,e.AlgoSymbol3001103=Ge.AlgoSymbol3001103,e.AlgoSymbol3001104=Ne.AlgoSymbol3001104,e.AlgoSymbol3001105=De.AlgoSymbol3001105,e.AlgoSymbol3001301=ke.AlgoSymbol3001301,e.AlgoSymbol3001302=ze.AlgoSymbol3001302,e.AlgoSymbol3002001=Fe.AlgoSymbol3002001,e.AlgoSymbol3002002=We.AlgoSymbol3002002,e.AlgoSymbol3002004=Ke.AlgoSymbol3002004,e.AlgoSymbol3002005=Je.AlgoSymbol3002005,e.AlgoSymbol3002501=qe.AlgoSymbol3002501,e.AlgoSymbol4030301=Ze.AlgoSymbol4030301,e.AlgoSymbol4030302=Xe.AlgoSymbol4030302,e.AlgoSymbol4030303=He.AlgoSymbol4030303,e.AlgoSymbol4030401=Qe.AlgoSymbol4030401,e.AlgoSymbol5010401=$e.AlgoSymbol5010401,e.AlgoSymbol5021803=tl.AlgoSymbol5021803,e.AlgoSymbol5022001=el.AlgoSymbol5022001,e.AlgoSymbol5022002=ll.AlgoSymbol5022002,e.AlgoSymbol5022301=ol.AlgoSymbol5022301,e.AlgoSymbol5030301=il.AlgoSymbol5030301,e.AlgoSymbol5031401=nl.AlgoSymbol5031401,e.AlgoSymbol5032003=rl.AlgoSymbol5032003,e.AlgoSymbol5033001=al.AlgoSymbol5033001,e.AlgoSymbol5033802=sl.AlgoSymbol5033802,e.AlgoSymbol5033803=pl.AlgoSymbol5033803,e.AlgoSymbol5034201=ul.AlgoSymbol5034201,e.AlgoSymbol5034202=cl.AlgoSymbol5034202,e.AlgoSymbol5034203=Pl.AlgoSymbol5034203,e.AlgoSymbol5034801=Sl.AlgoSymbol5034801,e.AlgoSymbol5035201=hl.AlgoSymbol5035201,e.AlgoSymbol5035202=yl.AlgoSymbol5035202,e.AlgoSymbol5035203=fl.AlgoSymbol5035203,e.AlgoSymbol5035205=gl.AlgoSymbol5035205,e.AlgoSymbol5020802=bl.AlgoSymbol5020802,e.AlgoSymbol6030101=Ml.AlgoSymbol6030101,e.AlgoSymbol6030102=ml.AlgoSymbol6030102,e.AlgoSymbol6030103=dl.AlgoSymbol6030103,e.AlgoSymbol6030104=vl.AlgoSymbol6030104,e.AlgoSymbol6030105=Ol.AlgoSymbol6030105,e.AlgoSymbol6030106=Ul.AlgoSymbol6030106,e.AlgoSymbol6030107=Ll.AlgoSymbol6030107,e.AlgoSymbol6030501=wl.AlgoSymbol6030501,e.AlgoSymbol6031001=_l.AlgoSymbol6031001,e.AlgoSymbol6030601=Vl.AlgoSymbol6030601},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WJAlgoSymbolFactory=void 0,l(188);e.WJAlgoSymbolFactory=SuperMap.Plot.WJAlgoSymbolFactory=SuperMap.Plot.WJAlgoSymbolFactory||{};SuperMap.Plot.WJAlgoSymbolFactory.getAlgoSymbol=function(t,e,l){if(123===t)switch(e){case 20915:return new SuperMap.Plot.AlgoSymbol12500(l);case 2091501:return new SuperMap.Plot.AlgoSymbol12501(l);case 2091502:return new SuperMap.Plot.AlgoSymbol12502(l);case 2091503:return new SuperMap.Plot.AlgoSymbol2091503(l);case 2092101:return new SuperMap.Plot.AlgoSymbol2092101(l);case 21003:return new SuperMap.Plot.AlgoSymbol13700(l);case 21207:return new SuperMap.Plot.AlgoSymbol15200(l);case 2120701:return new SuperMap.Plot.AlgoSymbol15201(l);case 2120702:return new SuperMap.Plot.AlgoSymbol15202(l);case 21213:return new SuperMap.Plot.AlgoSymbol15800(l);case 2121301:return new SuperMap.Plot.AlgoSymbol15801(l);case 2121302:return new SuperMap.Plot.AlgoSymbol15802(l);case 2121303:return new SuperMap.Plot.AlgoSymbol15803(l);case 2121304:return new SuperMap.Plot.AlgoSymbol15804(l);case 2121305:return new SuperMap.Plot.AlgoSymbol15806(l);case 21214:return new SuperMap.Plot.AlgoSymbol15900(l);case 21215:return new SuperMap.Plot.AlgoSymbol16200(l);case 2121501:return new SuperMap.Plot.AlgoSymbol16201(l);case 2121502:return new SuperMap.Plot.AlgoSymbol16202(l);case 2121503:return new SuperMap.Plot.AlgoSymbol16203(l);case 2121504:return new SuperMap.Plot.AlgoSymbol2121504(l);case 2121505:return new SuperMap.Plot.AlgoSymbol2121505(l);case 2121506:return new SuperMap.Plot.AlgoSymbol2121506(l);case 2121507:return new SuperMap.Plot.AlgoSymbol2121507(l);case 21216:return new SuperMap.Plot.AlgoSymbol21216(l);case 2121601:return new SuperMap.Plot.AlgoSymbol2121601(l);case 2121602:return new SuperMap.Plot.AlgoSymbol2121602(l);case 21218:return new SuperMap.Plot.AlgoSymbol16700(l);case 21221:return new SuperMap.Plot.AlgoSymbol21221(l);case 2122101:return new SuperMap.Plot.AlgoSymbol2122101(l);case 21222:return new SuperMap.Plot.AlgoSymbol17500(l);case 2122201:return new SuperMap.Plot.AlgoSymbol17501(l);case 21223:return new SuperMap.Plot.AlgoSymbol17700(l);case 2122301:return new SuperMap.Plot.AlgoSymbol2122301(l);case 2122303:return new SuperMap.Plot.AlgoSymbol17703(l);case 2122304:return new SuperMap.Plot.AlgoSymbol17704(l);case 21224:return new SuperMap.Plot.AlgoSymbol17800(l);case 2122401:return new SuperMap.Plot.AlgoSymbol17801(l);case 2122402:return new SuperMap.Plot.AlgoSymbol17802(l);case 2122403:return new SuperMap.Plot.AlgoSymbol17803(l);case 2122404:return new SuperMap.Plot.AlgoSymbol17804(l);case 2122405:return new SuperMap.Plot.AlgoSymbol17805(l);case 2122406:return new SuperMap.Plot.AlgoSymbol17806(l);case 21605:return new SuperMap.Plot.AlgoSymbol20300(l);case 2160501:return new SuperMap.Plot.AlgoSymbol20301(l);case 30008:return new SuperMap.Plot.AlgoSymbol30008(l);case 3000801:return new SuperMap.Plot.AlgoSymbol3000801(l);case 3000802:return new SuperMap.Plot.AlgoSymbol3000802(l);case 3000803:return new SuperMap.Plot.AlgoSymbol3000803(l);case 3000804:return new SuperMap.Plot.AlgoSymbol3000804(l);case 3000805:return new SuperMap.Plot.AlgoSymbol3000805(l);case 3000806:return new SuperMap.Plot.AlgoSymbol3000806(l);case 3000807:return new SuperMap.Plot.AlgoSymbol3000807(l);case 3000808:return new SuperMap.Plot.AlgoSymbol3000808(l);case 3000809:return new SuperMap.Plot.AlgoSymbol3000809(l);case 30009:return new SuperMap.Plot.AlgoSymbol30009(l);case 30010:return new SuperMap.Plot.AlgoSymbol30010(l);case 30011:return new SuperMap.Plot.AlgoSymbol30011(l);case 3001101:return new SuperMap.Plot.AlgoSymbol3001101(l);case 3001102:return new SuperMap.Plot.AlgoSymbol3001102(l);case 3001103:return new SuperMap.Plot.AlgoSymbol3001103(l);case 3001104:return new SuperMap.Plot.AlgoSymbol3001104(l);case 3001105:return new SuperMap.Plot.AlgoSymbol3001105(l);case 30012:return new SuperMap.Plot.AlgoSymbol30012(l);case 30013:return new SuperMap.Plot.AlgoSymbol30013(l);case 50106:return new SuperMap.Plot.AlgoSymbol21900(l);case 3001301:return new SuperMap.Plot.AlgoSymbol3001301(l);case 3001302:return new SuperMap.Plot.AlgoSymbol3001302(l);case 30014:return new SuperMap.Plot.AlgoSymbol30014(l);case 30018:return new SuperMap.Plot.AlgoSymbol42500(l);case 30020:return new SuperMap.Plot.AlgoSymbol30020(l);case 3002001:return new SuperMap.Plot.AlgoSymbol3002001(l);case 3002002:return new SuperMap.Plot.AlgoSymbol3002002(l);case 3002004:return new SuperMap.Plot.AlgoSymbol3002004(l);case 3002005:return new SuperMap.Plot.AlgoSymbol3002005(l);case 30025:return new SuperMap.Plot.AlgoSymbol30025(l);case 5010301:return new SuperMap.Plot.AlgoSymbol3010301(l);case 50108:return new SuperMap.Plot.AlgoSymbol50108(l);case 5010303:return new SuperMap.Plot.AlgoSymbol3010303(l);case 5010304:return new SuperMap.Plot.AlgoSymbol3010304(l);case 5010401:return new SuperMap.Plot.AlgoSymbol5010401(l);case 5020801:return new SuperMap.Plot.AlgoSymbol3020901(l);case 5020802:return new SuperMap.Plot.AlgoSymbol5020802(l);case 5021803:return new SuperMap.Plot.AlgoSymbol5021803(l);case 5022001:return new SuperMap.Plot.AlgoSymbol5022001(l);case 5022002:return new SuperMap.Plot.AlgoSymbol5022002(l);case 50223:return new SuperMap.Plot.AlgoSymbol50223(l);case 5022301:return new SuperMap.Plot.AlgoSymbol5022301(l);case 3002501:return new SuperMap.Plot.AlgoSymbol3002501(l);case 30026:return new SuperMap.Plot.AlgoSymbol30026(l);case 40104:return new SuperMap.Plot.AlgoSymbol40104(l);case 40301:case 4030101:case 4030102:case 4030103:case 4030104:return new SuperMap.Plot.AlgoSymbol22000(l);case 40302:case 4030201:case 4030202:case 4030203:case 4030204:return new SuperMap.Plot.AlgoSymbol40302(l);case 40303:return new SuperMap.Plot.AlgoSymbol26501(l);case 4030301:return new SuperMap.Plot.AlgoSymbol4030301(l);case 4030302:return new SuperMap.Plot.AlgoSymbol4030302(l);case 4030303:return new SuperMap.Plot.AlgoSymbol4030303(l);case 40304:return new SuperMap.Plot.AlgoSymbol40304(l);case 4030401:return new SuperMap.Plot.AlgoSymbol4030401(l);case 50101:return new SuperMap.Plot.AlgoSymbol25201(l);case 5010101:return new SuperMap.Plot.AlgoSymbol21401(l);case 50102:return new SuperMap.Plot.AlgoSymbol21500(l);case 5010202:return new SuperMap.Plot.AlgoSymbol21502(l);case 5010203:return new SuperMap.Plot.AlgoSymbol21503(l);case 5010204:return new SuperMap.Plot.AlgoSymbol21504(l);case 50103:case 5010302:return new SuperMap.Plot.AlgoSymbol21600(l);case 50104:return new SuperMap.Plot.AlgoSymbol21800(l);case 50107:case 5010701:return new SuperMap.Plot.AlgoSymbol22000(l);case 50208:return new SuperMap.Plot.AlgoSymbol23400(l);case 50209:return new SuperMap.Plot.AlgoSymbol23500(l);case 50210:return new SuperMap.Plot.AlgoSymbol23800(l);case 50212:case 5021101:return new SuperMap.Plot.AlgoSymbol23901(l);case 5021102:return new SuperMap.Plot.AlgoSymbol23902(l);case 50220:return new SuperMap.Plot.AlgoSymbol28900(l);case 50221:return new SuperMap.Plot.AlgoSymbol29000(l);case 50225:return new SuperMap.Plot.AlgoSymbol50225(l);case 50226:return new SuperMap.Plot.AlgoSymbol50226(l);case 50222:return new SuperMap.Plot.AlgoSymbol29101(l);case 5022201:return new SuperMap.Plot.AlgoSymbol29103(l);case 50227:return new SuperMap.Plot.AlgoSymbol35200(l);case 50301:return new SuperMap.Plot.AlgoSymbol1004(l);case 5030101:return new SuperMap.Plot.AlgoSymbol25200(l);case 5030102:return new SuperMap.Plot.AlgoSymbol25201(l);case 50302:return new SuperMap.Plot.AlgoSymbol25000(l);case 50303:return new SuperMap.Plot.AlgoSymbol25400(l);case 5030301:return new SuperMap.Plot.AlgoSymbol5030301(l);case 50308:return new SuperMap.Plot.AlgoSymbol50308(l);case 50309:return new SuperMap.Plot.AlgoSymbol26500(l);case 50310:return new SuperMap.Plot.AlgoSymbol26600(l);case 5031001:return new SuperMap.Plot.AlgoSymbol26601(l);case 50312:return new SuperMap.Plot.AlgoSymbol28000(l);case 50313:return new SuperMap.Plot.AlgoSymbol28100(l);case 50314:return new SuperMap.Plot.AlgoSymbol28200(l);case 5031401:return new SuperMap.Plot.AlgoSymbol5031401(l);case 50315:return new SuperMap.Plot.AlgoSymbol28300(l);case 5031501:return new SuperMap.Plot.AlgoSymbol28301(l);case 50316:return new SuperMap.Plot.AlgoSymbol29800(l);case 50317:return new SuperMap.Plot.AlgoSymbol1006(l);case 50320:return new SuperMap.Plot.AlgoSymbol30000(l);case 5010201:return new SuperMap.Plot.AlgoSymbol21501(l);case 5032001:case 5032002:return new SuperMap.Plot.AlgoSymbol30002(l);case 50321:case 5032101:case 5032102:return new SuperMap.Plot.AlgoSymbol30100(l);case 50322:return new SuperMap.Plot.AlgoSymbol30200(l);case 5032201:return new SuperMap.Plot.AlgoSymbol30201(l);case 50330:case 50331:return new SuperMap.Plot.AlgoSymbol30800(l);case 5032003:return new SuperMap.Plot.AlgoSymbol5032003(l);case 5033001:return new SuperMap.Plot.AlgoSymbol5033001(l);case 50338:return new SuperMap.Plot.AlgoSymbol31300(l);case 5033801:return new SuperMap.Plot.AlgoSymbol31301(l);case 5033802:return new SuperMap.Plot.AlgoSymbol5033802(l);case 5033803:return new SuperMap.Plot.AlgoSymbol5033803(l);case 50339:return new SuperMap.Plot.AlgoSymbol31400(l);case 5033901:return new SuperMap.Plot.AlgoSymbol31401(l);case 50342:return new SuperMap.Plot.AlgoSymbol50342(l);case 5034201:return new SuperMap.Plot.AlgoSymbol5034201(l);case 5034202:return new SuperMap.Plot.AlgoSymbol5034202(l);case 5034203:return new SuperMap.Plot.AlgoSymbol5034203(l);case 50348:return new SuperMap.Plot.AlgoSymbol32300(l);case 5034801:return new SuperMap.Plot.AlgoSymbol5034801(l);case 50352:return new SuperMap.Plot.AlgoSymbol50352(l);case 5035201:return new SuperMap.Plot.AlgoSymbol5035201(l);case 5035202:return new SuperMap.Plot.AlgoSymbol5035202(l);case 5035203:return new SuperMap.Plot.AlgoSymbol5035203(l);case 5035204:return new SuperMap.Plot.AlgoSymbol21501(l);case 5035205:return new SuperMap.Plot.AlgoSymbol5035205(l);case 60203:return new SuperMap.Plot.AlgoSymbol60203(l);case 60205:return new SuperMap.Plot.AlgoSymbol60205(l);case 60301:return new SuperMap.Plot.AlgoSymbol60301(l);case 6030101:return new SuperMap.Plot.AlgoSymbol6030101(l);case 6030102:return new SuperMap.Plot.AlgoSymbol6030102(l);case 6030103:return new SuperMap.Plot.AlgoSymbol6030103(l);case 6030104:return new SuperMap.Plot.AlgoSymbol6030104(l);case 6030105:return new SuperMap.Plot.AlgoSymbol6030105(l);case 6030106:return new SuperMap.Plot.AlgoSymbol6030106(l);case 6030107:return new SuperMap.Plot.AlgoSymbol6030107(l);case 60304:return new SuperMap.Plot.AlgoSymbol60304(l);case 60305:return new SuperMap.Plot.AlgoSymbol60305(l);case 6030501:return new SuperMap.Plot.AlgoSymbol6030501(l);case 60306:return new SuperMap.Plot.AlgoSymbol60306(l);case 6030601:return new SuperMap.Plot.AlgoSymbol6030601(l);case 60310:return new SuperMap.Plot.AlgoSymbol60310(l);case 6031001:return new SuperMap.Plot.AlgoSymbol6031001(l);case 70109:return new SuperMap.Plot.AlgoSymbol40900(l);case 70201:return new SuperMap.Plot.AlgoSymbol41100(l);case 70202:return new SuperMap.Plot.AlgoSymbol41200(l);case 7020201:return new SuperMap.Plot.AlgoSymbol41201(l);case 7020202:return new SuperMap.Plot.AlgoSymbol41202(l);case 80202:return new SuperMap.Plot.AlgoSymbol42200(l);case 90105:return new SuperMap.Plot.AlgoSymbol35000(l);case 90107:return new SuperMap.Plot.AlgoSymbol35200(l);case 90305:return new SuperMap.Plot.AlgoSymbol37700(l);case 90404:return new SuperMap.Plot.AlgoSymbol40100(l);case 9040401:return new SuperMap.Plot.AlgoSymbol40101(l);case 90507:return new SuperMap.Plot.AlgoSymbol44100(l);default:return new SuperMap.Plot.AlgoSymbol(l)}},SuperMap.Plot.WJAlgoSymbolFactory.isAccessServer=function(t,e){if(123!==t)return!0;switch(e){case 20915:case 2091501:case 2091502:case 2091503:case 2092101:case 21003:case 21207:case 2120701:case 2120702:case 21213:case 2121301:case 2121302:case 2121303:case 2121304:case 2121305:case 21214:case 21215:case 2121501:case 2121502:case 2121503:case 2121504:case 2121505:case 2121506:case 2121507:case 21216:case 2121601:case 2121602:case 21218:case 21221:case 2122101:case 21222:case 2122201:case 21223:case 2122301:case 2122303:case 2122304:case 21224:case 2122401:case 2122402:case 2122403:case 2122404:case 2122405:case 2122406:case 21605:case 2160501:case 30008:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 30009:case 30010:case 30011:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30012:case 30013:case 3001301:case 3001302:case 30014:case 30018:case 30020:case 3002001:case 3002002:case 3002004:case 3002005:case 30025:case 5010301:case 5010303:case 5010304:case 5010401:case 50108:case 50106:case 5020802:case 5021803:case 5022001:case 5022002:case 50223:case 5022301:case 3002501:case 30026:case 40104:case 40301:case 4030101:case 4030102:case 4030103:case 4030104:case 40302:case 4030201:case 4030202:case 4030203:case 4030204:case 40303:case 4030301:case 4030302:case 4030303:case 40304:case 4030401:case 50101:case 5010101:case 50102:case 5010201:case 5010202:case 5010203:case 5010204:case 50103:case 5010302:case 50104:case 50107:case 5010701:case 50208:case 50209:case 50210:case 5021101:case 5021102:case 50212:case 50220:case 50221:case 50222:case 50225:case 50226:case 5022201:case 50227:case 50301:case 5030101:case 5030102:case 50302:case 50303:case 5030301:case 50308:case 50309:case 50310:case 5031001:case 50312:case 50313:case 50314:case 5031401:case 50315:case 5031501:case 50316:case 50317:case 50320:case 5032001:case 5032002:case 5032003:case 50321:case 5032101:case 5032102:case 50322:case 5032201:case 50330:case 5033001:case 50338:case 5033801:case 5033802:case 5033803:case 50339:case 5033901:case 50342:case 5034201:case 5034202:case 5034203:case 50348:case 5034801:case 50352:case 5035201:case 5035202:case 5035203:case 5035204:case 5035205:case 60203:case 60205:case 60301:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 60304:case 60305:case 6030501:case 60306:case 6030601:case 60310:case 6031001:case 70109:case 70201:case 70202:case 7020201:case 7020202:case 80202:case 90105:case 90107:case 90305:case 90404:case 9040401:case 9050301:case 90507:return!1;default:return!0}},SuperMap.Plot.WJAlgoSymbolFactory.getSymbolWayType=function(t,e){if(123!==t)return SuperMap.Plot.AddPoint_WayType.UNKNOWN;switch(e){case 21003:case 21207:case 2120701:case 2121503:case 21218:case 30008:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 30009:case 5021803:case 5022001:case 5022002:case 40301:case 4030101:case 4030102:case 4030103:case 4030104:case 40303:case 4030301:case 4030302:case 4030303:case 50101:case 5010101:case 50102:case 5010201:case 5010202:case 5010203:case 5010204:case 50103:case 5010301:case 5010302:case 5010303:case 5010304:case 50107:case 5010701:case 50210:case 50220:case 50221:case 50225:case 5030102:case 50303:case 5030301:case 50309:case 50320:case 5032001:case 5032002:case 5032003:case 50321:case 5032101:case 5032102:case 50322:case 5032201:case 50330:case 5033001:case 5034203:case 5035201:case 5035204:case 60205:case 90105:return SuperMap.Plot.AddPoint_WayType.CURVE;case 20915:case 2091502:case 2092101:case 2120702:case 21216:case 2121601:case 2121602:case 21605:case 30010:case 30011:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30012:case 30020:case 3002001:case 3002002:case 3002005:case 30025:case 3002501:case 30026:case 40104:case 40302:case 4030201:case 4030202:case 4030203:case 4030204:case 50227:case 5035205:case 60301:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 70202:case 7020201:case 7020202:case 90107:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}},SuperMap.Plot.WJAlgoSymbolFactory.getDefaultSubSymbols=function(t,e){var l=[];if(123!==t)return l;switch(e){case 2092101:return l.push(new SuperMap.Plot.SubSymbol(123,20921)),l;case 80202:return l.push(new SuperMap.Plot.SubSymbol(123,2170201)),l;case 21221:case 2122101:return l.push(new SuperMap.Plot.SubSymbol(123,21220)),l.push(new SuperMap.Plot.SubSymbol(123,2122001)),l;case 3000801:return l.push(new SuperMap.Plot.SubSymbol(123,3000106)),l;case 50209:return l.push(new SuperMap.Plot.SubSymbol(100,1300)),l;case 3000802:return l.push(new SuperMap.Plot.SubSymbol(123,3000107)),l;case 3000803:return l.push(new SuperMap.Plot.SubSymbol(123,3000108)),l;case 3000804:return l.push(new SuperMap.Plot.SubSymbol(123,20303)),l;case 3000805:case 3000808:case 3001301:case 4030103:case 4030202:case 5020802:case 5010201:case 2121504:case 50108:return l.push(new SuperMap.Plot.SubSymbol(123,21601)),l;case 3000806:return l.push(new SuperMap.Plot.SubSymbol(123,20404)),l;case 3000807:return l.push(new SuperMap.Plot.SubSymbol(123,2010103)),l.push(new SuperMap.Plot.SubSymbol(123,21601)),l;case 3000809:return l.push(new SuperMap.Plot.SubSymbol(123,21601)),l.push(new SuperMap.Plot.SubSymbol(123,30006)),l;case 30010:return l.push(new SuperMap.Plot.SubSymbol(123,10305)),l;case 3001104:case 3001105:return l.push(new SuperMap.Plot.SubSymbol(123,20404)),l;case 30012:return l.push(new SuperMap.Plot.SubSymbol(123,30006)),l;case 3002005:return l.push(new SuperMap.Plot.SubSymbol(123,21305)),l;case 40301:return l.push(new SuperMap.Plot.SubSymbol(123,40201)),l;case 5021803:return l.push(new SuperMap.Plot.SubSymbol(123,50218)),l;case 50225:return l.push(new SuperMap.Plot.SubSymbol(123,10103)),l;case 50226:return l.push(new SuperMap.Plot.SubSymbol(123,10103)),l.push(new SuperMap.Plot.SubSymbol(123,10103)),l;case 5032003:return l.push(new SuperMap.Plot.SubSymbol(123,20304)),l.push(new SuperMap.Plot.SubSymbol(123,20301)),l;case 5030301:case 5022301:case 5033001:case 5034201:case 5034202:case 50342:return l.push(new SuperMap.Plot.SubSymbol(123,10104)),l;case 5033802:return l.push(new SuperMap.Plot.SubSymbol(123,20202)),l;case 5033803:return l.push(new SuperMap.Plot.SubSymbol(123,20203)),l;case 5034203:return l.push(new SuperMap.Plot.SubSymbol(123,2050302)),l;case 50352:return l.push(new SuperMap.Plot.SubSymbol(123,50231)),l;case 5035202:return l.push(new SuperMap.Plot.SubSymbol(123,21227)),l;case 5035205:return l.push(new SuperMap.Plot.SubSymbol(123,2050308)),l;case 4030101:return l.push(new SuperMap.Plot.SubSymbol(123,2030303)),l;case 4030102:case 4030201:return l.push(new SuperMap.Plot.SubSymbol(123,20303)),l;case 4030104:case 4030203:return l.push(new SuperMap.Plot.SubSymbol(123,20401)),l;case 4030204:return l.push(new SuperMap.Plot.SubSymbol(123,10104)),l;case 40302:case 40303:case 4030301:case 4030302:case 4030303:return l.push(new SuperMap.Plot.SubSymbol(123,40201)),l;case 5010202:return l.push(new SuperMap.Plot.SubSymbol(123,2040301)),l;case 5010203:return l.push(new SuperMap.Plot.SubSymbol(123,20501)),l;case 5010204:return l.push(new SuperMap.Plot.SubSymbol(123,20503)),l;case 50107:return l.push(new SuperMap.Plot.SubSymbol(123,10105)),l;case 5010701:return l.push(new SuperMap.Plot.SubSymbol(123,5010503)),l;case 5021101:case 5021102:case 50212:return l.push(new SuperMap.Plot.SubSymbol(123,2020301)),l;case 50227:return l.push(new SuperMap.Plot.SubSymbol(123,10103)),l;case 5030101:return l.push(new SuperMap.Plot.SubSymbol(123,2050302)),l;case 50315:return l.push(new SuperMap.Plot.SubSymbol(123,21302)),l;case 5031501:return l.push(new SuperMap.Plot.SubSymbol(123,21302)),l.push(new SuperMap.Plot.SubSymbol(123,21302)),l;case 5032001:return l.push(new SuperMap.Plot.SubSymbol(123,20301)),l.push(new SuperMap.Plot.SubSymbol(123,20301)),l;case 5032002:return l.push(new SuperMap.Plot.SubSymbol(123,20304)),l.push(new SuperMap.Plot.SubSymbol(123,20304)),l;case 5035201:return l.push(new SuperMap.Plot.SubSymbol(123,50231)),l;case 5035204:return l.push(new SuperMap.Plot.SubSymbol(123,2040106)),l;case 60205:return l.push(new SuperMap.Plot.SubSymbol(123,21503)),l.push(new SuperMap.Plot.SubSymbol(123,21501)),l;case 60310:return l.push(new SuperMap.Plot.SubSymbol(123,5023103)),l;case 6031001:return l.push(new SuperMap.Plot.SubSymbol(123,2122701)),l.push(new SuperMap.Plot.SubSymbol(123,2122702)),l.push(new SuperMap.Plot.SubSymbol(123,2122703)),l;case 90107:return l.push(new SuperMap.Plot.SubSymbol(123,2040301)),l;case 90305:return l.push(new SuperMap.Plot.SubSymbol(123,50304)),l;default:return l}},SuperMap.Plot.WJAlgoSymbolFactory.getMinEditPts=function(t,e){if(123!==t)return 0;switch(e){case 20915:case 21003:case 21207:case 21213:case 21214:case 21215:case 21216:case 21218:case 21221:case 21222:case 21223:case 21224:case 21605:case 30008:case 30009:case 30010:case 30013:case 30014:case 30018:case 40301:case 40303:case 40304:case 50101:case 50102:case 50103:case 50104:case 50106:case 50107:case 50108:case 50208:case 50209:case 50210:case 50212:case 50220:case 50221:case 50222:case 50223:case 50226:case 50302:case 50303:case 50308:case 50309:case 50310:case 50312:case 50313:case 50314:case 50315:case 50320:case 50322:case 50330:case 50331:case 50338:case 50339:case 50342:case 50348:case 60203:case 60205:case 60304:case 60305:case 60306:case 70109:case 70201:case 70202:case 80202:case 90105:case 90107:case 90305:case 90404:case 90507:case 2091501:case 2091502:case 2091503:case 2092101:case 2120701:case 2120702:case 2121301:case 2121302:case 2121303:case 2121304:case 2121305:case 2121501:case 2121502:case 2121503:case 2121504:case 2121505:case 2121506:case 2121507:case 2121601:case 2121602:case 2122101:case 2122201:case 2122301:case 2122303:case 2122304:case 2122401:case 2122402:case 2122403:case 2122404:case 2122405:case 2122406:case 2160501:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 3001301:case 3001302:case 3002004:case 4030101:case 4030102:case 4030103:case 4030104:case 4030301:case 4030302:case 4030303:case 4030401:case 5010101:case 5010201:case 5010202:case 5010203:case 5010204:case 5010301:case 5010302:case 5010303:case 5010304:case 5010401:case 5010701:case 5020802:case 5021101:case 5021102:case 5021803:case 5022001:case 5022002:case 5022201:case 5022301:case 5030102:case 5030301:case 5031001:case 5031401:case 5031501:case 5032001:case 5032002:case 5032003:case 5032201:case 5033001:case 5033801:case 5033802:case 5033803:case 5033901:case 5034201:case 5034202:case 5034203:case 5034801:case 5035201:case 5035203:case 5035204:case 6030501:case 6030601:case 7020201:case 7020202:case 9040401:return 2;case 30011:case 30012:case 30020:case 30025:case 30026:case 40104:case 40302:case 50225:case 50227:case 50301:case 50316:case 50317:case 50352:case 60301:case 60310:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 3002001:case 3002002:case 3002005:case 3002501:case 4030201:case 4030202:case 4030203:case 4030204:case 5020801:case 5030101:case 5035202:case 5035205:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 6031001:return 3;default:return 0}},SuperMap.Plot.WJAlgoSymbolFactory.getMaxEditPts=function(t,e){if(123!==t)return 0;switch(e){case 21218:case 30018:case 50104:case 50302:case 50313:case 50338:case 50339:case 60203:case 60304:case 60305:case 60306:case 70201:case 90507:case 2120702:case 2121502:case 2121504:case 2121505:case 2121506:case 2121507:case 2122301:case 2160501:case 3001301:case 4030401:case 5010401:case 5031401:case 5031501:case 5033801:case 5033802:case 5033803:case 5033901:case 6030501:case 6030601:return 2;case 21003:case 21224:case 50212:case 50221:case 50222:case 50348:case 2122401:case 2122402:case 2122403:case 2122404:case 2122405:case 2122406:case 2021101:case 2021102:case 5022201:case 5034801:return 3;case 50312:case 50317:return 4;case 21221:case 21222:case 50225:case 50226:case 50316:case 50320:case 50322:case 2122101:case 2122201:case 5020801:case 5032001:case 5032002:case 5032003:case 5032201:return 30;case 50227:case 50352:case 60310:case 5022001:case 5022002:case 5030101:case 5035202:case 5035203:case 6031001:return 512;case 20915:case 21213:case 21214:case 21215:case 21216:case 21223:case 21605:case 30008:case 30010:case 30011:case 30012:case 30020:case 30025:case 30026:case 40104:case 40301:case 40302:case 40303:case 50101:case 50102:case 50106:case 50107:case 50108:case 50209:case 50210:case 50220:case 50223:case 50303:case 50309:case 50315:case 50330:case 50331:case 60301:case 70202:case 80202:case 2091501:case 2091502:case 2091503:case 2120701:case 2121301:case 2121302:case 2121303:case 2121304:case 2121305:case 2121501:case 2121503:case 2121601:case 2121602:case 2122303:case 2122304:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 3002001:case 3002002:case 3002004:case 3002005:case 3002501:case 4030101:case 4030102:case 4030103:case 4030104:case 4030201:case 4030202:case 4030203:case 4030204:case 5010101:case 5010701:case 5020802:case 5022301:case 5030102:case 5030301:case 5035205:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 7020201:case 7020202:return 1e3;case 21207:case 30009:case 30013:case 30014:case 40304:case 50103:case 50208:case 50301:case 50308:case 50310:case 50314:case 50342:case 60205:case 70109:case 90105:case 90107:case 90305:case 90404:case 2092101:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 3001302:case 4030301:case 4030302:case 4030303:case 5010201:case 5010202:case 5010203:case 5010204:case 5010301:case 5010302:case 5010303:case 5010304:case 5021803:case 5031001:case 5033001:case 5034201:case 5034202:case 5034203:case 5035201:case 5035204:case 9040401:return 9999;default:return 0}},SuperMap.Plot.WJAlgoSymbolFactory.getDefaultStyle=function(t,e){var l={};if(123===t)switch(e){case 50108:case 3000808:case 30012:case 3000801:case 3001101:case 30011:case 30013:case 30010:case 3001104:case 30014:case 30009:case 30008:l.color=l.strokeColor="#0000ff";break;case 3001302:case 40104:l.color=l.strokeColor="#048e24";break;case 30025:l.color=l.strokeColor="#00ff00";break;case 3002501:l.color=l.strokeColor="#00c000"}return l},SuperMap.Plot.WJAlgoSymbolFactory.zoomInCalSymbol=function(){return!1}},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WJAlgoSymbolFactory=void 0;var o=l(189);e.WJAlgoSymbolFactory=o.WJAlgoSymbolFactory}]);

/***/ }),
/* 3 */
/***/ (function(module, exports) {

/*!
 * 
 *          iclient-plot-algorithms-yj.(http://iclient.supermap.io)
 *          Copyright© 2000 - 2020 SuperMap Software Co.Ltd
 *          version: v10.1.0-beta
 *         
 */!function(t){var e={};function o(l){if(e[l])return e[l].exports;var i=e[l]={i:l,l:!1,exports:{}};return t[l].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,l){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:l})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(l,i,function(e){return t[e]}.bind(null,i));return l},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=14)}([function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol610100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.05),o.scaleValues.push(.01)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(),this.scaleValues[1]=.0625*this.getSubSymbolScaleValue());for(var o=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=o*this.scaleValues[0],i=o*this.scaleValues[1],n=e[0],r=0,a=1;a<e.length;a++){var p=e[a],u=SuperMap.Plot.PlottingUtil.distance(n,p);switch(r%4){case 0:if(u>=l){var s=SuperMap.Plot.PlottingUtil.findPointInLine(n,p,l);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[n,s]),n=s,r++,a--}break;case 1:case 3:var P=3*i;if(u>P)n=SuperMap.Plot.PlottingUtil.findPointInLine(n,p,P),r++,a--;break;case 2:if(u>2*i){var c=SuperMap.Plot.PlottingUtil.findPointInLine(n,p,2*i);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[new SuperMap.Geometry.Point(.5*(n.x+c.x),.5*(n.y+c.y)),c],{fillLimit:!0,fill:!0}),n=c,r++,a--}}}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol610100=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol530200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues[0]=.05,o.scaleValues[1]=.05),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=this.getSubSymbolScaleValue(),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var l=e*this.scaleValues[0],i=this.getLinePts(o,this.scaleValues[0],5/14),n=this.getLinePts(o,this.scaleValues[0],9/14),r=new SuperMap.Geometry.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMap.Plot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI;this.createSubSymbol(r,l,a);var p=new SuperMap.Geometry.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),u=180*SuperMap.Plot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI;this.createSubSymbol(p,l,u);var s=SuperMap.Plot.PlottingUtil.circlePoint(p,.5*l,.5*l,u+90);this.addScalePoint(s);for(var P=[],c=[],S=[],y=0;y<=i.startIndex;y++)P.push(o[y]);if(P.push(i.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),i.endIndex<=n.startIndex){c.push(i.endPt);for(var h=i.endIndex+1;h<=n.startIndex;h++)c.push(o[h]);c.push(n.startPt),2===o.length&&SuperMap.Plot.PlottingUtil.distance(o[0],i.endPt)<=SuperMap.Plot.PlottingUtil.distance(o[0],n.startPt)&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c),o.length>2&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c)}S.push(n.endPt);for(var f=n.endIndex+1;f<o.length;f++)S.push(o[f]);this.addArrow(S,this.scaleValues[1]),this.finish()}}},{key:"createSubSymbol",value:function(t,e,o){var l=this.getSubSymbolPts1(e);this.createSubSymbol1(t,e,o,l);var i=this.getSubSymbolPts2(e);this.createSubSymbol2(t,e,o,i)}},{key:"createSubSymbol2",value:function(t,e,o,l){for(var i=[],n=0;n<l.length;n++){var r=SuperMap.Plot.PlottingUtil.coordinateTrans(t,l[n],o);i.push(r)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i)}},{key:"createSubSymbol1",value:function(t,e,o,l){for(var i=[],n=0;n<l.length;n++){var r=SuperMap.Plot.PlottingUtil.coordinateTrans(t,l[n],o);i.push(r)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,i)}},{key:"getSubSymbolPts1",value:function(t){var e=t/2,o=[];return o.push(new SuperMap.Geometry.Point(2*e,0)),o.push(new SuperMap.Geometry.Point(0,e)),o.push(new SuperMap.Geometry.Point(-2*e,0)),o.push(new SuperMap.Geometry.Point(0,-e)),o}},{key:"getSubSymbolPts2",value:function(t){var e=t/2,o=[];return o.push(new SuperMap.Geometry.Point(-e,e)),o.push(new SuperMap.Geometry.Point(e,e)),o}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(9*i/14,l),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;r<=.3&&(this.scaleValues[0]=r)}}}]),e}();SuperMap.Plot.AlgoSymbol530200=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol530100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues[0]=.05,o.scaleValues[1]=.05),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(o),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var l=this.getLinePts(e,this.scaleValues[0]),i=new SuperMap.Geometry.Point((l.startPt.x+l.endPt.x)/2,(l.startPt.y+l.endPt.y)/2),n=180*SuperMap.Plot.PlottingUtil.radian(l.startPt,l.endPt)/Math.PI,r=SuperMap.Plot.PlottingUtil.distance(l.startPt,l.endPt);if(0<this.subSymbols.length)this.computeSubSymbol(this.subSymbols[0],i,r,n-90);else{var a=new SuperMap.Geometry.Point(-.5*r,.25*r),p=new SuperMap.Geometry.Point(-.5*r,-.25*r),u=SuperMap.Plot.PlottingUtil.coordinateTrans(i,a,n),s=SuperMap.Plot.PlottingUtil.coordinateTrans(i,p,n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[u,s]);var P=new SuperMap.Geometry.Point(-.5*r,.125*r),c=new SuperMap.Geometry.Point(.25*r,.125*r),S=new SuperMap.Geometry.Point(.5*r,0),y=new SuperMap.Geometry.Point(.25*r,-.125*r),h=new SuperMap.Geometry.Point(-.5*r,-.125*r),f=SuperMap.Plot.PlottingUtil.coordinateTrans(i,P,n),g=SuperMap.Plot.PlottingUtil.coordinateTrans(i,c,n),M=SuperMap.Plot.PlottingUtil.coordinateTrans(i,S,n),b=SuperMap.Plot.PlottingUtil.coordinateTrans(i,y,n),m=SuperMap.Plot.PlottingUtil.coordinateTrans(i,h,n);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[f,g,M,b,m])}for(var d=[],v=[],O=0;O<=l.startIndex;O++)d.push(e[O]);if(d.push(l.startPt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,d),l.endIndex<=e.length){v.push(l.endPt);for(var U=l.endIndex+1;U<=e.length-1;U++)v.push(e[U]);this.addDovetailArrow(v,this.scaleValues[1])}var w=SuperMap.Plot.PlottingUtil.circlePoint(i,.5*r,.5*r,n+90);this.addScalePoint(w,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,l),r=2*SuperMap.Plot.PlottingUtil.distance(n.pts,e)/i;this.scaleValues[0]=r<=.5?r:.5}}}]),e}();SuperMap.Plot.AlgoSymbol530100=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol520500=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.02),o.scaleValues.push(.01)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue(o),this.scaleValues[1]=.15*this.getSubSymbolScaleValue(o));var l=.5*o,i=180*SuperMap.Plot.PlottingUtil.radian(t[0],t[1])/Math.PI,n=o*this.scaleValues[0],r=Math.sqrt(n*n+n*n)+n/2,a=l-r,p=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e).pts,u=this.computeXPts(p,n,e,i),s=[];s.push(new SuperMap.Geometry.Point(u[0].x,u[0].y)),s.push(new SuperMap.Geometry.Point(u[1].x,u[1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);var P=[];P.push(new SuperMap.Geometry.Point(u[2].x,u[2].y)),P.push(new SuperMap.Geometry.Point(u[3].x,u[3].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var c=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l,e).pts,S=this.computeXPts(c,n,e,i),y=[];y.push(new SuperMap.Geometry.Point(S[0].x,S[0].y)),y.push(new SuperMap.Geometry.Point(S[1].x,S[1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var h=[];h.push(new SuperMap.Geometry.Point(S[2].x,S[2].y)),h.push(new SuperMap.Geometry.Point(S[3].x,S[3].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var f=l+r,g=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(f,e).pts,M=this.computeXPts(g,n,e,i),b=[];b.push(new SuperMap.Geometry.Point(M[0].x,M[0].y)),b.push(new SuperMap.Geometry.Point(M[1].x,M[1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var m=[];m.push(new SuperMap.Geometry.Point(M[2].x,M[2].y)),m.push(new SuperMap.Geometry.Point(M[3].x,M[3].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m);var d=l-2*r,v=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(d,e);if(v.bfind){for(var O=v.index,U=v.pts,w=[],L=0;L<=O;L++)w.push(e[L]);w.push(U);var _=o*this.scaleValues[1];this.computeDashLines(w,_)}var x=l+2*r,A=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(x,e);if(A.bfind){var Y=A.index,V=A.pts,E=[];if(Y<=e.length){E.push(V);for(var T=Y+1;T<=e.length-1;T++)E.push(e[T])}this.computeDashLines(E,_)}var j=SuperMap.Plot.PlottingUtil.circlePoint(t[0],r,r,90);this.addScalePoint(j,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=.5*SuperMap.Plot.PlottingUtil.distance(o[0],e)/i;n>=.12&&(n=.12),this.scaleValues[0]=n}}},{key:"computeXPts",value:function(t,e,o,l){var i=[],n=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+45),r=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+225);i.push(n),i.push(r);var a=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+135),p=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+315);return i.push(a),i.push(p),i}},{key:"computeDashLines",value:function(t,e){for(var o=this.computeDashLine(2*e,2*e,t),l=.5*e,i=0;i<o.length;i++){var n=o[i];if(!((n=SuperMap.Plot.PlottingUtil.clearSamePts(n)).length<=1)){var r=new SuperMap.Geometry.Point(n[0].x,n[0].y),a=new SuperMap.Geometry.Point(n[n.length-1].x,n[n.length-1].y),p=180*SuperMap.Plot.PlottingUtil.radian(r,a)/Math.PI,u=SuperMap.Plot.PlottingUtil.circlePoint(r,l,l,p+90),s=SuperMap.Plot.PlottingUtil.circlePoint(r,l,l,p+270),P=SuperMap.Plot.PlottingUtil.circlePoint(a,l,l,p+90),c=SuperMap.Plot.PlottingUtil.circlePoint(a,l,l,p+270),S=[];S.push(u),S.push(s),S.push(c),S.push(P),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{fillLimit:!0,fill:!0})}}}}]),e}();SuperMap.Plot.AlgoSymbol520500=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol520300=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.05),o.scaleValues.push(.05)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length?(this.scaleValues[0]=.05,this.scaleValues[1]=.05):1==this.scaleValues.length&&(this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!1);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.8*this.getSubSymbolScaleValue(o),this.scaleValues[1]=.5*this.getSubSymbolScaleValue());var l=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,.3*o);if(-1!==l.index){var i=l.pt,n=l.index,r=o*this.scaleValues[0]*.5,a=SuperMap.Plot.PlottingUtil.radian(i,e[n+1])*SuperMap.Plot.PlottingUtil.RTOD,p=SuperMap.Plot.PlottingUtil.circlePoint(i,r,r,a+90),u=SuperMap.Plot.PlottingUtil.circlePoint(i,r,r,a-90),s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,i,p),P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,i,u);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s.pntLeft,s.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[P.pntLeft,P.pntRight]);var c=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,.6*o);if(-1!==c.index){var S=c.pt,y=c.index,h=SuperMap.Plot.PlottingUtil.radian(S,e[y+1])*SuperMap.Plot.PlottingUtil.RTOD,f=SuperMap.Plot.PlottingUtil.circlePoint(S,r,r,h+90),g=SuperMap.Plot.PlottingUtil.circlePoint(S,r,r,h-90),M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,S,f),b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,S,g);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[M.pntLeft,M.pntRight]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[b.pntLeft,b.pntRight]),this.addDovetailArrow(e,this.scaleValues[1]),this.addScalePoint(g,0),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.6*i,l);if(!n.bfind)return;var r=2*SuperMap.Plot.PlottingUtil.distance(e,n.pts);this.scaleValues[0]=r/i}}}]),e}();SuperMap.Plot.AlgoSymbol520300=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol520200=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol520100),l(e,[{key:"computeSubSymbol",value:function(t,e){var o=.5*e,l=[];l.push(t),l.push(new SuperMap.Geometry.Point(t.x+o,t.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,l);var i=.6*o,n=SuperMap.Plot.PlottingUtil.circlePoint(t,i,i,60),r=new SuperMap.Geometry.Point(t.x-.3*o,t.y),a=SuperMap.Plot.PlottingUtil.circlePoint(t,i,i,240),p=new SuperMap.Geometry.Point(t.x+.3*o,t.y),u=[];u.push(n),u.push(r),u.push(t),u.push(p),u.push(a),u.push(t),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,u,{fillLimit:!0,fill:!0})}}]),e}();SuperMap.Plot.AlgoSymbol520200=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol520100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.5),o.scaleValues.push(.03)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[1]=this.getSubSymbolScaleValue());for(var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=this.scaleValues[1]*e,l=this.scaleValues[0]*e,i=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,l).pt,n=[],r=0;r<t.length;r++){if(r===t.length-1){n.push(t[r]);break}n.push(t[r]);var a=[];if(this.intersectLineAndCircle(t[r],t[r+1],i,o,a))for(var p=0;p<a.length;p++)n.push(a[p])}for(var u=[],s=0;s<n.length;s++){if(s===n.length-1){0!==u.length&&(u.push(n[s]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),u=[]);break}this.isLineInCircle(n[s],n[s+1],i,o)?0!==u.length&&(u.push(n[s]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u),u=[]):u.push(n[s])}this.computeSubSymbol(i,2*o),this.addScalePoint(i);var P=new SuperMap.Geometry.Point(i.x+o,i.y);SuperMap.Plot.PlottingUtil.rotateAngle(i,30,P),this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){for(var i=0,n=-1,r=null,a=0;a<o.length-1;a++){var p=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[a],o[a+1]);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(p.projectPoint,o[a],o[a+1])){var u=SuperMap.Plot.PlottingUtil.distance(p.projectPoint,e);0===i?(i=u,n=a,r=p.projectPoint):u<i&&(i=u,n=a,r=p.projectPoint)}}if(-1===n)return;for(var s=0,P=0;P<n;P++)s+=SuperMap.Plot.PlottingUtil.distance(o[P],o[P+1]);var c=(s+=SuperMap.Plot.PlottingUtil.distance(r,o[n]))/l;c>1&&(c=1),this.scaleValues[0]=c}if(1===t){var S=this.scaleValues[0]*l,y=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,S);if(-1===y.index)return;var h=SuperMap.Plot.PlottingUtil.distance(y.pt,e)/l;h>.4&&(h=.4),this.scaleValues[1]=h}}}},{key:"intersectLineAndCircle",value:function(t,e,o,l,i){for(var n=!1,r=SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[o,new SuperMap.Geometry.Point(o.x+l,o.y)]),a=0;a<r.length-1;a++){var p=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.intersectLineSegs(t,e,r[a],r[a+1],p)&&(n=!0,i.push(p))}if(t.x>e.x){for(var u=0;u<i.length&&u!==i.length-1;u++)if(i[u].x<i[u+1].x){var s=i[u];i[u]=i[u+1],i[u+1]=s}}else if(t.x<e.x){for(var P=0;P<i.length&&P!==i.length-1;P++)if(i[P].x>i[P+1].x){var c=i[P];i[P]=i[P+1],i[P+1]=c}}else if(t.y>e.y){for(var S=0;S<i.length&&S!==i.length-1;S++)if(i[S].y<i[S+1].y){var y=i[S];i[S]=i[S+1],i[S+1]=y}}else if(t.y<e.y)for(var h=0;h<i.length&&h!==i.length-1;h++)if(i[h].y>i[h+1].y){var f=i[h];i[h]=i[h+1],i[h+1]=f}return n}},{key:"isLineInCircle",value:function(t,e,o,l){var i=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2);return SuperMap.Plot.PlottingUtil.distance(i,o)<l}},{key:"computeSubSymbol",value:function(t,e){var o=.5*e,l=[];l.push(t),l.push(new SuperMap.Geometry.Point(t.x+o,t.y)),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,l);var i=[];i.push(new SuperMap.Geometry.Point(t.x-o,t.y)),i.push(new SuperMap.Geometry.Point(t.x+o,t.y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);var n=new SuperMap.Geometry.Point(t.x+.75*o,t.y),r=.8*o,a=SuperMap.Plot.PlottingUtil.circlePoint(n,r,r,155),p=SuperMap.Plot.PlottingUtil.circlePoint(n,r,r,205),u=[];u.push(a);var s=r*(Math.cos(25*SuperMap.Plot.PlottingUtil.DTOR)-Math.cos(75*SuperMap.Plot.PlottingUtil.DTOR));u.push(new SuperMap.Geometry.Point(n.x-s,n.y)),u.push(p),u.push(n),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,u,{fillLimit:!0,fill:!0})}}]),e}();SuperMap.Plot.AlgoSymbol520100=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol510100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.0375),o.scaleValues.push(.025)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.3*this.getSubSymbolScaleValue(o),this.scaleValues[1]=.35*this.getSubSymbolScaleValue());var l=.5*o,i=180*SuperMap.Plot.PlottingUtil.radian(t[0],t[1])/Math.PI,n=o*this.scaleValues[0],r=Math.sqrt(n*n+n*n)+n/2,a=l-r,p=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,e).pts,u=this.computeXPts(p,n,e,i),s=[];s.push(new SuperMap.Geometry.Point(u[0].x,u[0].y)),s.push(new SuperMap.Geometry.Point(u[1].x,u[1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s);var P=[];P.push(new SuperMap.Geometry.Point(u[2].x,u[2].y)),P.push(new SuperMap.Geometry.Point(u[3].x,u[3].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var c=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(l,e).pts,S=this.computeXPts(c,n,e,i),y=[];y.push(new SuperMap.Geometry.Point(S[0].x,S[0].y)),y.push(new SuperMap.Geometry.Point(S[1].x,S[1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var h=[];h.push(new SuperMap.Geometry.Point(S[2].x,S[2].y)),h.push(new SuperMap.Geometry.Point(S[3].x,S[3].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h);var f=l+r,g=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(f,e).pts,M=this.computeXPts(g,n,e,i),b=[];b.push(new SuperMap.Geometry.Point(M[0].x,M[0].y)),b.push(new SuperMap.Geometry.Point(M[1].x,M[1].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var m=[];m.push(new SuperMap.Geometry.Point(M[2].x,M[2].y)),m.push(new SuperMap.Geometry.Point(M[3].x,M[3].y)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m);for(var d=l-2*r,v=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(d,e),O=v.index,U=v.pts,w=[],L=0;L<=O;L++)w.push(e[L]);w.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w);var _=l+2*r,x=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(_,e),A=x.index,Y=x.pts,V=[];if(A<=e.length){V.push(Y);for(var E=A+1;E<=e.length-1;E++)V.push(e[E])}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V);var T=e[0],j=e[1],I=e[e.length-2],C=e[e.length-1],B=o*this.scaleValues[1],G=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(B,j,T),N=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(B,I,C),D=[];D.push(T),D.push(G.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,D);var R=[];R.push(C),R.push(N.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,R);var k=SuperMap.Plot.PlottingUtil.circlePoint(t[0],r,r,90);this.addScalePoint(k,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var l=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMap.Plot.PlottingUtil.clearSamePts(l);var i=SuperMap.Plot.PlottingUtil.polylineDistance(l),n=.5*SuperMap.Plot.PlottingUtil.distance(o[0],e)/i;n>=.12&&(n=.12),this.scaleValues[0]=n}}},{key:"computeXPts",value:function(t,e,o,l){var i=[],n=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+45),r=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+225);i.push(n),i.push(r);var a=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+135),p=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,l+315);return i.push(a),i.push(p),i}}]),e}();SuperMap.Plot.AlgoSymbol510100=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol29101=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol29100),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var o=[];o=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var l=0;l<4;l++){var i=l*(o.length-1)/4,n=new SuperMap.Geometry.Point(o[i].x,o[i].y),r=new SuperMap.Geometry.Point(o[i+1].x,o[i+1].y),a=new SuperMap.Geometry.Point((n.x+r.x)/2,(n.y+r.y)/2),p=SuperMap.Plot.PlottingUtil.radian(a,r)*SuperMap.Plot.PlottingUtil.RTOD,u=this.scaleValues[0]*e/2,s=SuperMap.Plot.PlottingUtil.circlePoint(a,u,u,p),P=SuperMap.Plot.PlottingUtil.circlePoint(a,4*u,4*u,p+270),c=SuperMap.Plot.PlottingUtil.circlePoint(a,u,u,p+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,P,c])}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol29101=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol29100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.05),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues[0]=.25*this.getSubSymbolScaleValue());var o=[];o=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var l=0;l<4;l++){var i=Math.floor(l*o.length/4),n=new SuperMap.Geometry.Point(o[i].x,o[i].y),r=new SuperMap.Geometry.Point(o[i+1].x,o[i+1].y),a=new SuperMap.Geometry.Point((n.x+r.x)/2,(n.y+r.y)/2),p=SuperMap.Plot.PlottingUtil.radian(r,a)*SuperMap.Plot.PlottingUtil.RTOD,u=this.scaleValues[0]*e/2,s=SuperMap.Plot.PlottingUtil.circlePoint(a,u,u,p),P=SuperMap.Plot.PlottingUtil.circlePoint(a,4*u,4*u,p+270),c=SuperMap.Plot.PlottingUtil.circlePoint(a,u,u,p+180);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[s,P,c],{lineTypeLimit:!0,surroundLineLimit:!0})}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol29100=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol15200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.05),o.scaleValues.push(0),o.scaleValues.push(.185)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var o=0,l=0,i=e.length-1;l<i;l++)o+=SuperMap.Plot.PlottingUtil.distance(e[l],e[l+1]);for(var n=0,r=0,a=t.length-1;r<a;r++)n+=SuperMap.Plot.PlottingUtil.distance(t[r],t[r+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());for(var p=this.scaleValues[0]*n,u=this.scaleValues[1],s=this.scaleValues[2]*n,P=.3*s,c=s;c<o;c+=s){var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(c,e);if(-1===S.index)return void this.finish();var y=c+P,h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(y,e);if(-1===h.index)return void this.finish();var f=[],g=[];f.push(S.pts);var M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,e[S.index],S.pts);0===u?f.push(new SuperMap.Geometry.Point(M.pntLeft.x,M.pntLeft.y)):f.push(new SuperMap.Geometry.Point(M.pntRight.x,M.pntRight.y)),g.push(h.pts);var b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(p,e[h.index],h.pts);if(0===u?g.push(new SuperMap.Geometry.Point(b.pntLeft.x,b.pntLeft.y)):g.push(new SuperMap.Geometry.Point(b.pntRight.x,b.pntRight.y)),s===c){this.scalePoints=[];var m=new SuperMap.Geometry.Point(f[1].x,f[1].y);m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m),(m=new SuperMap.Geometry.Point(f[0].x,f[0].y)).isScalePoint=!0,m.tag=1,this.scalePoints.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;for(var l=0,i=0,n=o.length-1;i<n;i++)l+=SuperMap.Plot.PlottingUtil.distance(o[i],o[i+1]);var r=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),a=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,l*this.scaleValues[2]);if(-1===p.index)return;var u=SuperMap.Plot.PlottingUtil.distance(p.pt,a)/l,s=SuperMap.Plot.PlottingUtil.pointIsRightToLine(r[0],r[1],e);this.scaleValues[1]=s?1:0,this.scaleValues[0]=u}else if(1===t){for(var P=0,c=-1,S=[],y=0,h=r.length-1;y<h;y++){var f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[y],r[y+1]);if(f.isOnline){var g=SuperMap.Plot.PlottingUtil.distance(f.projectPoint,this.controlPoints[1]);0==P?(P=g,c=y,S=e):g<P&&(P=g,c=y,S=e)}}if(-1==c)return;for(var M=0,b=0,m=c-1;b<m;b++)M+=SuperMap.Plot.PlottingUtil.distance(r[b],r[b+1]);var d=(M+=SuperMap.Plot.PlottingUtil.distance(S,r[c]))/l;d>.7&&(d=.7),this.scaleValues[2]=d}}}}]),e}();SuperMap.Plot.AlgoSymbol15200=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol15804=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.029615),o.scaleValues.push(1),o.scaleValues.push(.12)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol15800),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=this.scaleValues[0],l=SuperMap.Plot.PlottingUtil.polylineDistance(t),i=o*l,n=this.scaleValues[2]*l*.5,r=!1;r=0===this.scaleValues[1];var a=SuperMap.Plot.PlottingUtil.polylineDistance(e);if(0!==a){for(var p=[],u=0;u<=a;u+=n){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,u);if(!(s.index<0)){var P=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i,e[s.index+1],s.pt);if(r?p.push(P.pntRight):p.push(P.pntLeft),Math.abs(u)<=1e-6){this.scalePoints=[];var c=new SuperMap.Geometry.Point(p[0].x,p[0].y);c.isScalePoint=!0,c.tag=0,this.scalePoints.push(c)}else Math.abs(2*n-u)<=1e-6&&((c=new SuperMap.Geometry.Point(s.pt.x,s.pt.y)).isScalePoint=!0,c.tag=1,this.scalePoints.push(c));r=!r}}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p);for(var S=p.length,y=0,h=0;h<S-1;++h){var f=new SuperMap.Geometry.Point(p[h].x,p[h].y),g=new SuperMap.Geometry.Point(p[h+1].x,p[h+1].y);y=.3*SuperMap.Plot.PlottingUtil.distance(f,g);var M=[],b=new SuperMap.Geometry.Point(.5*(f.x+g.x),.5*(f.y+g.y)),m=SuperMap.Plot.PlottingUtil.dirAngle(f,g)*SuperMap.Plot.PlottingUtil.RTOD,d=SuperMap.Plot.PlottingUtil.circlePoint(b,y,y,m+90),v=1.5*y,O=SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,m+260),U=SuperMap.Plot.PlottingUtil.circlePoint(d,v,v,m+280);M.push(O),M.push(d),M.push(U),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M)}this.finish()}}}}]),e}();SuperMap.Plot.AlgoSymbol15804=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol610100=e.AlgoSymbol530200=e.AlgoSymbol530100=e.AlgoSymbol520500=e.AlgoSymbol520300=e.AlgoSymbol520200=e.AlgoSymbol520100=e.AlgoSymbol510100=e.AlgoSymbol29101=e.AlgoSymbol29100=e.AlgoSymbol15200=e.AlgoSymbol15804=void 0;var l=o(11),i=o(10),n=o(9),r=o(8),a=o(7),p=o(6),u=o(5),s=o(4),P=o(3),c=o(2),S=o(1),y=o(0);e.AlgoSymbol15804=l.AlgoSymbol15804,e.AlgoSymbol15200=i.AlgoSymbol15200,e.AlgoSymbol29100=n.AlgoSymbol29100,e.AlgoSymbol29101=r.AlgoSymbol29101,e.AlgoSymbol510100=a.AlgoSymbol510100,e.AlgoSymbol520100=p.AlgoSymbol520100,e.AlgoSymbol520200=u.AlgoSymbol520200,e.AlgoSymbol520300=s.AlgoSymbol520300,e.AlgoSymbol520500=P.AlgoSymbol520500,e.AlgoSymbol530100=c.AlgoSymbol530100,e.AlgoSymbol530200=S.AlgoSymbol530200,e.AlgoSymbol610100=y.AlgoSymbol610100},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YJAlgoSymbolFactory=void 0,o(12);e.YJAlgoSymbolFactory=SuperMap.Plot.YJAlgoSymbolFactory=SuperMap.Plot.YJAlgoSymbolFactory||{};SuperMap.Plot.YJAlgoSymbolFactory.getAlgoSymbol=function(t,e,o){if(999!==t)return new SuperMap.Plot.AlgoSymbol(o);switch(e){case 510100:return new SuperMap.Plot.AlgoSymbol510100(o);case 510200:return new SuperMap.Plot.AlgoSymbol15804(o);case 520100:return new SuperMap.Plot.AlgoSymbol520100(o);case 520200:return new SuperMap.Plot.AlgoSymbol520200(o);case 520300:return new SuperMap.Plot.AlgoSymbol520300(o);case 520400:return new SuperMap.Plot.AlgoSymbol15200(o);case 520500:return new SuperMap.Plot.AlgoSymbol520500(o);case 530100:return new SuperMap.Plot.AlgoSymbol530100(o);case 530200:return new SuperMap.Plot.AlgoSymbol530200(o);case 610100:return new SuperMap.Plot.AlgoSymbol610100(o);case 610200:return new SuperMap.Plot.AlgoSymbol29100(o);case 610300:return new SuperMap.Plot.AlgoSymbol29101(o);default:return new SuperMap.Plot.AlgoSymbol(o)}},SuperMap.Plot.YJAlgoSymbolFactory.isAccessServer=function(t,e){if(999!==t)return!0;switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:case 610200:case 610300:return!1;default:return!0}},SuperMap.Plot.YJAlgoSymbolFactory.getSymbolWayType=function(t,e){if(999===t)switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:case 610200:case 610300:return SuperMap.Plot.AddPoint_WayType.CURVE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}},SuperMap.Plot.YJAlgoSymbolFactory.getDefaultSubSymbols=function(){return[]},SuperMap.Plot.YJAlgoSymbolFactory.getMinEditPts=function(t,e){if(999!==t)return 0;switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:case 610200:case 610300:return 2;default:return 0}},SuperMap.Plot.YJAlgoSymbolFactory.getMaxEditPts=function(t,e){if(999!==t)return 0;switch(e){case 510100:case 510200:case 520100:case 520200:case 520300:case 520400:case 520500:case 530100:case 530200:case 610100:return 9999;case 610200:case 610300:return 3;default:return 0}},SuperMap.Plot.YJAlgoSymbolFactory.getDefaultStyle=function(){return{}},SuperMap.Plot.YJAlgoSymbolFactory.zoomInCalSymbol=function(){return!1}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YJAlgoSymbolFactory=void 0;var l=o(13);e.YJAlgoSymbolFactory=l.YJAlgoSymbolFactory}]);

/***/ }),
/* 4 */
/***/ (function(module, exports) {

/*!
 * 
 *          iclient-plot-webgl.(http://iclient.supermap.io)
 *          Copyright© 2000 - 2020 SuperMap Software Co.Ltd
 *          version: v10.1.0-beta
 *         
 */!function(t){var e={};function o(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=t,o.c=e,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(i,n,function(e){return t[e]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=125)}([function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e.SuperMap=window.SuperMap=window.SuperMap||{}).Widgets=window.SuperMap.Widgets||{}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Util=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=o(0);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                               * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                               * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/o(2);var l,r,a;e.Util=n.SuperMap.Util=n.SuperMap.Util||{};n.SuperMap.Util.extend=function(t,e){if(t=t||{},e){for(var o in e){var i=e[o];void 0!==i&&(t[o]=i)}!("function"==typeof window.Event&&e instanceof window.Event)&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&(t.toString=e.toString)}return t},n.SuperMap.Util.copy=function(t,e){var o;if(t=t||{},e)for(var i in t)void 0!==(o=e[i])&&(t[i]=o)},n.SuperMap.Util.reset=function(t){for(var e in t=t||{})if(t.hasOwnProperty(e)){if("object"===i(t[e])&&t[e]instanceof Array){for(var o in t[e])t[e][o].destroy&&t[e][o].destroy();t[e].length=0}else"object"===i(t[e])&&t[e]instanceof Object&&t[e].destroy&&t[e].destroy();t[e]=null}},n.SuperMap.Util.getElement=function(){for(var t=[],e=0,o=arguments.length;e<o;e++){var i=arguments[e];if("string"==typeof i&&(i=document.getElementById(i)),1===arguments.length)return i;t.push(i)}return t},n.SuperMap.Util.isElement=function(t){return!(!t||1!==t.nodeType)},n.SuperMap.Util.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},n.SuperMap.Util.removeItem=function(t,e){for(var o=t.length-1;o>=0;o--)t[o]===e&&t.splice(o,1);return t},n.SuperMap.Util.indexOf=function(t,e){if(null==t)return-1;if("function"==typeof t.indexOf)return t.indexOf(e);for(var o=0,i=t.length;o<i;o++)if(t[o]===e)return o;return-1},n.SuperMap.Util.modifyDOMElement=function(t,e,o,i,n,l,r,a){e&&(t.id=e),o&&(t.style.left=o.x+"px",t.style.top=o.y+"px"),i&&(t.style.width=i.w+"px",t.style.height=i.h+"px"),n&&(t.style.position=n),l&&(t.style.border=l),r&&(t.style.overflow=r),parseFloat(a)>=0&&parseFloat(a)<1?(t.style.filter="alpha(opacity="+100*a+")",t.style.opacity=a):1===parseFloat(a)&&(t.style.filter="",t.style.opacity="")},n.SuperMap.Util.applyDefaults=function(t,e){t=t||{};var o="function"==typeof window.Event&&e instanceof window.Event;for(var i in e)(void 0===t[i]||!o&&e.hasOwnProperty&&e.hasOwnProperty(i)&&!t.hasOwnProperty(i))&&(t[i]=e[i]);return!o&&e&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&!t.hasOwnProperty("toString")&&(t.toString=e.toString),t},n.SuperMap.Util.getParameterString=function(t){var e=[];for(var o in t){var n=t[o];if(null!=n&&"function"!=typeof n){var l;if("object"===(void 0===n?"undefined":i(n))&&n.constructor===Array){for(var r,a=[],s=0,u=n.length;s<u;s++)r=n[s],a.push(encodeURIComponent(null===r||void 0===r?"":r));l=a.join(",")}else l=encodeURIComponent(n);e.push(encodeURIComponent(o)+"="+l)}}return e.join("&")},n.SuperMap.Util.urlAppend=function(t,e){var o=t;if(e){var i=(t+" ").split(/[?&]/);o+=" "===i.pop()?e:i.length?"&"+e:"?"+e}return o},n.SuperMap.Util.DEFAULT_PRECISION=14,n.SuperMap.Util.toFloat=function(t,e){return null==e&&(e=n.SuperMap.Util.DEFAULT_PRECISION),"number"!=typeof t&&(t=parseFloat(t)),0===e?t:parseFloat(t.toPrecision(e))},n.SuperMap.Util.rad=function(t){return t*Math.PI/180},n.SuperMap.Util.getParameters=function(t){t=null===t||void 0===t?window.location.href:t;var e="";if(n.SuperMap.String.contains(t,"?")){var o=t.indexOf("?")+1,i=n.SuperMap.String.contains(t,"#")?t.indexOf("#"):t.length;e=t.substring(o,i)}for(var l={},r=e.split(/[&;]/),a=0,s=r.length;a<s;++a){var u=r[a].split("=");if(u[0]){var p=u[0];try{p=decodeURIComponent(p)}catch(t){p=unescape(p)}var c=(u[1]||"").replace(/\+/g," ");try{c=decodeURIComponent(c)}catch(t){c=unescape(c)}1==(c=c.split(",")).length&&(c=c[0]),l[p]=c}}return l},n.SuperMap.Util.lastSeqID=0,n.SuperMap.Util.createUniqueID=function(t){return null==t&&(t="id_"),n.SuperMap.Util.lastSeqID+=1,t+n.SuperMap.Util.lastSeqID},n.SuperMap.INCHES_PER_UNIT={inches:1,ft:12,mi:63360,m:39.3701,km:39370.1,dd:4374754,yd:36},n.SuperMap.INCHES_PER_UNIT.in=n.SuperMap.INCHES_PER_UNIT.inches,n.SuperMap.INCHES_PER_UNIT.degrees=n.SuperMap.INCHES_PER_UNIT.dd,n.SuperMap.INCHES_PER_UNIT.nmi=1852*n.SuperMap.INCHES_PER_UNIT.m,n.SuperMap.METERS_PER_INCH=.0254000508001016,n.SuperMap.Util.extend(n.SuperMap.INCHES_PER_UNIT,{Inch:n.SuperMap.INCHES_PER_UNIT.inches,Meter:1/n.SuperMap.METERS_PER_INCH,Foot:.3048006096012192/n.SuperMap.METERS_PER_INCH,IFoot:.3048/n.SuperMap.METERS_PER_INCH,ClarkeFoot:.3047972651151/n.SuperMap.METERS_PER_INCH,SearsFoot:.30479947153867626/n.SuperMap.METERS_PER_INCH,GoldCoastFoot:.3047997101815088/n.SuperMap.METERS_PER_INCH,IInch:.0254/n.SuperMap.METERS_PER_INCH,MicroInch:254e-7/n.SuperMap.METERS_PER_INCH,Mil:2.54e-8/n.SuperMap.METERS_PER_INCH,Centimeter:.01/n.SuperMap.METERS_PER_INCH,Kilometer:1e3/n.SuperMap.METERS_PER_INCH,Yard:.9144018288036576/n.SuperMap.METERS_PER_INCH,SearsYard:.914398414616029/n.SuperMap.METERS_PER_INCH,IndianYard:.9143985307444408/n.SuperMap.METERS_PER_INCH,IndianYd37:.91439523/n.SuperMap.METERS_PER_INCH,IndianYd62:.9143988/n.SuperMap.METERS_PER_INCH,IndianYd75:.9143985/n.SuperMap.METERS_PER_INCH,IndianFoot:.30479951/n.SuperMap.METERS_PER_INCH,IndianFt37:.30479841/n.SuperMap.METERS_PER_INCH,IndianFt62:.3047996/n.SuperMap.METERS_PER_INCH,IndianFt75:.3047995/n.SuperMap.METERS_PER_INCH,Mile:1609.3472186944373/n.SuperMap.METERS_PER_INCH,IYard:.9144/n.SuperMap.METERS_PER_INCH,IMile:1609.344/n.SuperMap.METERS_PER_INCH,NautM:1852/n.SuperMap.METERS_PER_INCH,"Lat-66":110943.31648893273/n.SuperMap.METERS_PER_INCH,"Lat-83":110946.25736872235/n.SuperMap.METERS_PER_INCH,Decimeter:.1/n.SuperMap.METERS_PER_INCH,Millimeter:.001/n.SuperMap.METERS_PER_INCH,Dekameter:10/n.SuperMap.METERS_PER_INCH,Decameter:10/n.SuperMap.METERS_PER_INCH,Hectometer:100/n.SuperMap.METERS_PER_INCH,GermanMeter:1.0000135965/n.SuperMap.METERS_PER_INCH,CaGrid:.999738/n.SuperMap.METERS_PER_INCH,ClarkeChain:20.1166194976/n.SuperMap.METERS_PER_INCH,GunterChain:20.11684023368047/n.SuperMap.METERS_PER_INCH,BenoitChain:20.116782494375872/n.SuperMap.METERS_PER_INCH,SearsChain:20.11676512155/n.SuperMap.METERS_PER_INCH,ClarkeLink:.201166194976/n.SuperMap.METERS_PER_INCH,GunterLink:.2011684023368047/n.SuperMap.METERS_PER_INCH,BenoitLink:.20116782494375873/n.SuperMap.METERS_PER_INCH,SearsLink:.2011676512155/n.SuperMap.METERS_PER_INCH,Rod:5.02921005842012/n.SuperMap.METERS_PER_INCH,IntnlChain:20.1168/n.SuperMap.METERS_PER_INCH,IntnlLink:.201168/n.SuperMap.METERS_PER_INCH,Perch:5.02921005842012/n.SuperMap.METERS_PER_INCH,Pole:5.02921005842012/n.SuperMap.METERS_PER_INCH,Furlong:201.1684023368046/n.SuperMap.METERS_PER_INCH,Rood:3.778266898/n.SuperMap.METERS_PER_INCH,CapeFoot:.3047972615/n.SuperMap.METERS_PER_INCH,Brealey:375/n.SuperMap.METERS_PER_INCH,ModAmFt:.304812252984506/n.SuperMap.METERS_PER_INCH,Fathom:1.8288/n.SuperMap.METERS_PER_INCH,"NautM-UK":1853.184/n.SuperMap.METERS_PER_INCH,"50kilometers":5e4/n.SuperMap.METERS_PER_INCH,"150kilometers":15e4/n.SuperMap.METERS_PER_INCH}),n.SuperMap.Util.extend(n.SuperMap.INCHES_PER_UNIT,{mm:n.SuperMap.INCHES_PER_UNIT.Meter/1e3,cm:n.SuperMap.INCHES_PER_UNIT.Meter/100,dm:100*n.SuperMap.INCHES_PER_UNIT.Meter,km:1e3*n.SuperMap.INCHES_PER_UNIT.Meter,kmi:n.SuperMap.INCHES_PER_UNIT.nmi,fath:n.SuperMap.INCHES_PER_UNIT.Fathom,ch:n.SuperMap.INCHES_PER_UNIT.IntnlChain,link:n.SuperMap.INCHES_PER_UNIT.IntnlLink,"us-in":n.SuperMap.INCHES_PER_UNIT.inches,"us-ft":n.SuperMap.INCHES_PER_UNIT.Foot,"us-yd":n.SuperMap.INCHES_PER_UNIT.Yard,"us-ch":n.SuperMap.INCHES_PER_UNIT.GunterChain,"us-mi":n.SuperMap.INCHES_PER_UNIT.Mile,"ind-yd":n.SuperMap.INCHES_PER_UNIT.IndianYd37,"ind-ft":n.SuperMap.INCHES_PER_UNIT.IndianFt37,"ind-ch":20.11669506/n.SuperMap.METERS_PER_INCH}),n.SuperMap.DOTS_PER_INCH=96,n.SuperMap.Util.normalizeScale=function(t){return t>1?1/t:t},n.SuperMap.Util.getResolutionFromScale=function(t,e){var o;t&&(null==e&&(e="degrees"),o=1/(n.SuperMap.Util.normalizeScale(t)*n.SuperMap.INCHES_PER_UNIT[e]*n.SuperMap.DOTS_PER_INCH));return o},n.SuperMap.Util.getScaleFromResolution=function(t,e){return null==e&&(e="degrees"),t*n.SuperMap.INCHES_PER_UNIT[e]*n.SuperMap.DOTS_PER_INCH},n.SuperMap.IS_GECKO=-1===(l=navigator.userAgent.toLowerCase()).indexOf("webkit")&&-1!==l.indexOf("gecko"),n.SuperMap.Browser=function(){var t,e="",o="",i="pc",n=navigator.userAgent.toLowerCase();return n.indexOf("msie")>-1||n.indexOf("trident")>-1&&n.indexOf("rv")>-1?(e="msie",t=n.match(/msie ([\d.]+)/)||n.match(/rv:([\d.]+)/)):n.indexOf("chrome")>-1?(e="chrome",t=n.match(/chrome\/([\d.]+)/)):n.indexOf("firefox")>-1?(e="firefox",t=n.match(/firefox\/([\d.]+)/)):n.indexOf("opera")>-1?(e="opera",t=n.match(/version\/([\d.]+)/)):n.indexOf("safari")>-1&&(e="safari",t=n.match(/version\/([\d.]+)/)),o=t?t[1]:"",n.indexOf("ipad")>-1||n.indexOf("ipod")>-1||n.indexOf("iphone")>-1?i="apple":n.indexOf("android")>-1&&(o=(t=n.match(/version\/([\d.]+)/))?t[1]:"",i="android"),{name:e,version:o,device:i}}(),n.SuperMap.Util.getBrowser=function(){return n.SuperMap.Browser},n.SuperMap.Util.isSupportCanvas=(r=!0,a=n.SuperMap.Util.getBrowser(),document.createElement("canvas").getContext?("firefox"===a.name&&parseFloat(a.version)<5&&(r=!1),"safari"===a.name&&parseFloat(a.version)<4&&(r=!1),"opera"===a.name&&parseFloat(a.version)<10&&(r=!1),"msie"===a.name&&parseFloat(a.version)<9&&(r=!1)):r=!1,r),n.SuperMap.Util.supportCanvas=function(){return n.SuperMap.Util.isSupportCanvas},n.SuperMap.INCHES_PER_UNIT.degree=n.SuperMap.INCHES_PER_UNIT.dd,n.SuperMap.INCHES_PER_UNIT.meter=n.SuperMap.INCHES_PER_UNIT.m,n.SuperMap.INCHES_PER_UNIT.foot=n.SuperMap.INCHES_PER_UNIT.ft,n.SuperMap.INCHES_PER_UNIT.inch=n.SuperMap.INCHES_PER_UNIT.inches,n.SuperMap.INCHES_PER_UNIT.mile=n.SuperMap.INCHES_PER_UNIT.mi,n.SuperMap.INCHES_PER_UNIT.kilometer=n.SuperMap.INCHES_PER_UNIT.km,n.SuperMap.INCHES_PER_UNIT.yard=n.SuperMap.INCHES_PER_UNIT.yd,n.SuperMap.Util.isInTheSameDomain=function(t){if(!t)return!0;var e=t.indexOf("//"),o=document.location.toString(),i=o.indexOf("//");if(-1===e)return!0;var n,l=n=t.substring(0,e),r=o.substring(i+2);i=r.indexOf("/");var a=r.indexOf(":"),s=r.substring(0,i),u=document.location.protocol;if(-1!==a||(s+=":"+("http:"===u.toLowerCase()?80:443)),u.toLowerCase()!==l.toLowerCase())return!1;var p=(l=t.substring(e+2)).indexOf(":");e=l.indexOf("/");var c,y=l.substring(0,e);return-1!==p?c=l.substring(0,p):(c=l.substring(0,e),y+=":"+("http:"===n.toLowerCase()?80:443)),c===document.domain&&y===s},n.SuperMap.Util.calculateDpi=function(t,e,o,i,n){if(t&&e&&o){var l,r=t.getWidth(),a=t.getHeight(),s=e.w,u=e.h;if(n=n||6378137,"degree"===(i=i||"degrees").toLowerCase()||"degrees"===i.toLowerCase()||"dd"===i.toLowerCase()){var p=r/s,c=a/u;l=254/(p>c?p:c)/o/(2*Math.PI*n/360)/1e4}else{l=254/(r/s)/o/1e4}return l}},n.SuperMap.Util.toJSON=function(t){var e=t;if(null==e)return null;switch(e.constructor){case String:return e=(e=(e=(e=(e=(e=(e='"'+e.replace(/(["\\])/g,"\\$1")+'"').replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace("<","&lt;")).replace(">","&gt;")).replace(/%/g,"%25")).replace(/&/g,"%26");case Array:for(var o=[],l=0,r=e.length;l<r;l++)o.push(n.SuperMap.Util.toJSON(e[l]));return"["+o.join(",")+"]";case Number:return isFinite(e)?String(e):null;case Boolean:return String(e);case Date:return"{'__type':\"System.DateTime\",'Year':"+e.getFullYear()+",'Month':"+(e.getMonth()+1)+",'Day':"+e.getDate()+",'Hour':"+e.getHours()+",'Minute':"+e.getMinutes()+",'Second':"+e.getSeconds()+",'Millisecond':"+e.getMilliseconds()+",'TimezoneOffset':"+e.getTimezoneOffset()+"}";default:if(null!=e.toJSON&&"function"==typeof e.toJSON)return e.toJSON();if("object"===(void 0===e?"undefined":i(e))){if(e.length){for(var a=[],s=0,u=e.length;s<u;s++)a.push(n.SuperMap.Util.toJSON(e[s]));return"["+a.join(",")+"]"}var p=[];for(var c in e)"function"!=typeof e[c]&&"CLASS_NAME"!==c&&"parent"!==c&&p.push("'"+c+"':"+n.SuperMap.Util.toJSON(e[c]));return p.length>0?"{"+p.join(",")+"}":"{}"}return e.toString()}},n.SuperMap.Util.getResolutionFromScaleDpi=function(t,e,o,i){return i=i||6378137,o=o||"",t>0&&e>0?(t=n.SuperMap.Util.normalizeScale(t),"degree"===o.toLowerCase()||"degrees"===o.toLowerCase()||"dd"===o.toLowerCase()?254/e/t/(2*Math.PI*i/360)/1e4:254/e/t/1e4):-1},n.SuperMap.Util.getScaleFromResolutionDpi=function(t,e,o,i){return i=i||6378137,o=o||"",t>0&&e>0?"degree"===o.toLowerCase()||"degrees"===o.toLowerCase()||"dd"===o.toLowerCase()?254/e/t/(2*Math.PI*i/360)/1e4:254/e/t/1e4:-1},n.SuperMap.Util.transformResult=function(t){return t.responseText&&"string"==typeof t.responseText&&(t=JSON.parse(t.responseText)),t},n.SuperMap.Util.copyAttributes=function(t,e){if(t=t||{},e)for(var o in e){var i=e[o];void 0!==i&&"CLASS_NAME"!==o&&"function"!=typeof i&&(t[o]=i)}return t},n.SuperMap.Util.copyAttributesWithClip=function(t,e,o){if(t=t||{},e)for(var i in e){var n=!1;if(o&&o.length)for(var l=0,r=o.length;l<r;l++)if(i===o[l]){n=!0;break}if(!0!==n){var a=e[i];void 0!==a&&"CLASS_NAME"!==i&&"function"!=typeof a&&(t[i]=a)}}return t},n.SuperMap.Util.cloneObject=function(t){if(null===t||"object"!==(void 0===t?"undefined":i(t)))return t;if(t instanceof Date){var e=new Date;return e.setTime(t.getTime()),e}if(t instanceof Array)return t.slice(0);if(t instanceof Object){var o={};for(var l in t)t.hasOwnProperty(l)&&(o[l]=n.SuperMap.Util.cloneObject(t[l]));return o}throw new Error("Unable to copy obj! Its type isn't supported.")},n.SuperMap.Util.lineIntersection=function(t,e,o,i){var l,r,a=null,s=(i.x-o.x)*(t.y-o.y)-(i.y-o.y)*(t.x-o.x),u=(e.x-t.x)*(t.y-o.y)-(e.y-t.y)*(t.x-o.x),p=(i.y-o.y)*(e.x-t.x)-(i.x-o.x)*(e.y-t.y);if(0!=p)r=u/p,a=(l=s/p)>=0&&r<=1&&l<=1&&r>=0?new n.SuperMap.Geometry.Point(t.x+l*(e.x-t.x),t.y+l*(e.y-t.y)):"No Intersection";else if(0==s&&0==u){var c=Math.max(t.y,e.y),y=Math.min(t.y,e.y),h=Math.max(t.x,e.x),P=Math.min(t.x,e.x);a=(o.y>=y&&o.y<=c||i.y>=y&&i.y<=c)&&o.x>=P&&o.x<=h||i.x>=P&&i.x<=h?"Coincident":"Parallel"}else a="Parallel";return a},n.SuperMap.Util.getTextBounds=function(t,e,o){document.body.appendChild(o),o.style.width="auto",o.style.height="auto",t.fontSize&&(o.style.fontSize=t.fontSize),t.fontFamily&&(o.style.fontFamily=t.fontFamily),t.fontWeight&&(o.style.fontWeight=t.fontWeight),o.style.position="relative",o.style.visibility="hidden",o.style.display="inline-block",o.innerHTML=e;var i=o.clientWidth,n=o.clientHeight;return document.body.removeChild(o),{textWidth:i,textHeight:n}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayExt=e.FunctionExt=e.NumberExt=e.StringExt=void 0;var i=o(0);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                           * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                           * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
i.SuperMap.inherit=function(t,e){var o,n,l,r=function(){};for(r.prototype=e.prototype,t.prototype=new r,o=2,n=arguments.length;o<n;o++)"function"==typeof(l=arguments[o])&&(l=l.prototype),i.SuperMap.Util.extend(t.prototype,l)},i.SuperMap.mixin=function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];for(var i=function t(o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=0;i<e.length;i++)r(this,new e[i](o))},n=0;n<e.length;n++){var l=e[n];r(i,l),r(i.prototype,l.prototype),r(i.prototype,new l)}return i;function r(t,e){var o=Object.getOwnPropertyNames(e);Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(e)));for(var i=0;i<o.length;i++){var n=o[i];if("constructor"!==n&&"prototype"!==n&&"name"!==n&&"length"!==n){var l=Object.getOwnPropertyDescriptor(e,n);window.ActiveXObject?Object.defineProperty(t,n,l||{}):Object.defineProperty(t,n,l)}}}};e.StringExt=i.SuperMap.String={startsWith:function(t,e){return 0==t.indexOf(e)},contains:function(t,e){return-1!=t.indexOf(e)},trim:function(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},camelize:function(t){for(var e=t.split("-"),o=e[0],i=1,n=e.length;i<n;i++){var l=e[i];o+=l.charAt(0).toUpperCase()+l.substring(1)}return o},format:function(t,e,o){e||(e=window);return t.replace(i.SuperMap.String.tokenRegEx,function(t,i){for(var n,l=i.split(/\.+/),r=0;r<l.length;r++)0==r&&(n=e),n=n[l[r]];return"function"==typeof n&&(n=o?n.apply(null,o):n()),void 0===n?"undefined":n})},tokenRegEx:/\$\{([\w.]+?)\}/g,numberRegEx:/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/,isNumeric:function(t){return i.SuperMap.String.numberRegEx.test(t)},numericIf:function(t){return i.SuperMap.String.isNumeric(t)?parseFloat(t):t}};var n=e.NumberExt=i.SuperMap.Number={decimalSeparator:".",thousandsSeparator:",",limitSigDigs:function(t,e){var o=0;return e>0&&(o=parseFloat(t.toPrecision(e))),o},format:function(t,e,o,n){e=void 0!==e?e:0,o=void 0!==o?o:i.SuperMap.Number.thousandsSeparator,n=void 0!==n?n:i.SuperMap.Number.decimalSeparator,null!=e&&(t=parseFloat(t.toFixed(e)));var l=t.toString().split(".");1===l.length&&null==e&&(e=0);var r,a=l[0];if(o)for(var s=/(-?[0-9]+)([0-9]{3})/;s.test(a);)a=a.replace(s,"$1"+o+"$2");if(0==e)r=a;else{var u=l.length>1?l[1]:"0";null!=e&&(u+=new Array(e-u.length+1).join("0")),r=a+n+u}return r}};Number.prototype.limitSigDigs||(Number.prototype.limitSigDigs=function(t){return n.limitSigDigs(this,t)});e.FunctionExt=i.SuperMap.Function={bind:function(t,e){var o=Array.prototype.slice.apply(arguments,[2]);return function(){var i=o.concat(Array.prototype.slice.apply(arguments,[0]));return t.apply(e,i)}},bindAsEventListener:function(t,e){return function(o){return t.call(e,o||window.event)}},False:function(){return!1},True:function(){return!0},Void:function(){}},e.ArrayExt=i.SuperMap.Array={filter:function(t,e,o){var i=[];if(Array.prototype.filter)i=t.filter(e,o);else{var n=t.length;if("function"!=typeof e)throw new TypeError;for(var l=0;l<n;l++)if(l in t){var r=t[l];e.call(o,r,l,t)&&i.push(r)}}return i}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicAlgoSymbolFactory=void 0,o(61);e.BasicAlgoSymbolFactory=SuperMap.Plot.BasicAlgoSymbolFactory=SuperMap.Plot.BasicAlgoSymbolFactory||{};SuperMap.Plot.BasicAlgoSymbolFactory.getAlgoSymbol=function(t,e,o){if(0===t)switch(e){case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:return new SuperMap.Plot.GeoTooltipBox(o);case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:return new SuperMap.Plot.GeoTooltipBoxM(o);case SuperMap.Plot.SymbolType.PATHTEXT:return new SuperMap.Plot.PathText(o);case SuperMap.Plot.SymbolType.ARROWLINE:return new SuperMap.Plot.ArrowLine(o);case SuperMap.Plot.SymbolType.CURVEEIGHT:return new SuperMap.Plot.CurveEight(o);case SuperMap.Plot.SymbolType.RUNWAY:return new SuperMap.Plot.Runway(o);case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:return new SuperMap.Plot.ConcentricCircle(o);case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:return new SuperMap.Plot.CombinationalCircle(o);case SuperMap.Plot.SymbolType.FREECURVE:return new SuperMap.Plot.FreeCurve(o);case SuperMap.Plot.SymbolType.REGULARPOLYGON:return new SuperMap.Plot.RegularPolygon(o);case SuperMap.Plot.SymbolType.BRACESYMBOL:return new SuperMap.Plot.Brace(o);case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:return new SuperMap.Plot.Trapezoid(o);case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:return new SuperMap.Plot.SymbolTextBox(o);case SuperMap.Plot.SymbolType.NODECHAIN:return new SuperMap.Plot.NodeChain(o);case SuperMap.Plot.SymbolType.LINERELATION:return new SuperMap.Plot.LineRelation(o);case SuperMap.Plot.SymbolType.LINEMARKING:return new SuperMap.Plot.LineMarking(o);case SuperMap.Plot.SymbolType.POLYGONREGION:return new SuperMap.Plot.PolygonRegion(o);case SuperMap.Plot.SymbolType.WIRE:return new SuperMap.Plot.Wire(o);case SuperMap.Plot.SymbolType.LINEARARROW:return new SuperMap.Plot.LinearArrow(o);case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:return new SuperMap.Plot.Polybezier(o);case SuperMap.Plot.SymbolType.NEWPIESYMBOL:return new SuperMap.Plot.NewPie(o);case SuperMap.Plot.SymbolType.NEWARCSYMBOL:return new SuperMap.Plot.NewArc(o);default:return new SuperMap.Plot.AlgoSymbol(o)}else if(22===t)switch(e){case 1001:return new SuperMap.Plot.AlgoSymbol1001(o);case 1002:return new SuperMap.Plot.AlgoSymbol1002(o);case 1003:return new SuperMap.Plot.AlgoSymbol1003(o);case 1004:return new SuperMap.Plot.AlgoSymbol1004(o);case 1005:return new SuperMap.Plot.AlgoSymbol1005(o);case 1006:return new SuperMap.Plot.AlgoSymbol1006(o);case 1007:return new SuperMap.Plot.AlgoSymbol1007(o);case 1008:return new SuperMap.Plot.AlgoSymbol1008(o);case 1009:return new SuperMap.Plot.AlgoSymbol1009(o);case 1010:return new SuperMap.Plot.AlgoSymbol1010(o);case 1011:return new SuperMap.Plot.AlgoSymbol1011(o);case 1012:return new SuperMap.Plot.AlgoSymbol1012(o);case 1013:return new SuperMap.Plot.AlgoSymbol1013(o);case 1014:return new SuperMap.Plot.AlgoSymbol1014(o);case 1015:return new SuperMap.Plot.AlgoSymbol1015(o);case 1016:return new SuperMap.Plot.AlgoSymbol1016(o);case 1017:return new SuperMap.Plot.AlgoSymbol1017(o);case 1018:return new SuperMap.Plot.AlgoSymbol1018(o);case 1019:return new SuperMap.Plot.AlgoSymbol1019(o);case 1020:return new SuperMap.Plot.AlgoSymbol1020(o);case 1021:return new SuperMap.Plot.AlgoSymbol1021(o);case 1022:return new SuperMap.Plot.AlgoSymbol1022(o);default:return null}else{if(421!==t)return null;switch(e){case 311:return new SuperMap.Plot.AlgoSymbol1004(o);case 315:return new SuperMap.Plot.AlgoSymbol315(o);case 317:return new SuperMap.Plot.AlgoSymbol1006(o);case 318:return new SuperMap.Plot.AlgoSymbol1002(o);case 319:return new SuperMap.Plot.AlgoSymbol15200(o);case 320:return new SuperMap.Plot.AlgoSymbol320(o);case 321:return new SuperMap.Plot.AlgoSymbol321(o);case 322:return new SuperMap.Plot.AlgoSymbol322(o);default:return null}}},SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMap.Plot.AddPoint_WayType.POLYLINE;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMap.Plot.AddPoint_WayType.CURVE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}else if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMap.Plot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:case 1017:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}},SuperMap.Plot.BasicAlgoSymbolFactory.isAccessServer=function(t,e){if(0===t||22===t)return!1;if(421!==t)return!0;switch(e){case 311:case 317:case 318:case 315:case 319:case 320:case 321:case 322:return!1;default:return!0}},SuperMap.Plot.BasicAlgoSymbolFactory.getDefaultSubSymbols=function(){return[]},SuperMap.Plot.BasicAlgoSymbolFactory.getMinEditPts=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.TEXTSYMBOL:case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:return 1;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.KIDNEY:case SuperMap.Plot.SymbolType.ARROWLINE:case SuperMap.Plot.SymbolType.BRACESYMBOL:case SuperMap.Plot.SymbolType.CURVEEIGHT:case SuperMap.Plot.SymbolType.FREECURVE:case SuperMap.Plot.SymbolType.LINEMARKING:case SuperMap.Plot.SymbolType.LINERELATION:case SuperMap.Plot.SymbolType.NODECHAIN:case SuperMap.Plot.SymbolType.PATHTEXT:case SuperMap.Plot.SymbolType.REGULARPOLYGON:case SuperMap.Plot.SymbolType.RUNWAY:case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:case SuperMap.Plot.SymbolType.WIRE:case SuperMap.Plot.SymbolType.LINEARARROW:return 2;case SuperMap.Plot.SymbolType.ARCSYMBOL:case SuperMap.Plot.SymbolType.CHORDSYMBOL:case SuperMap.Plot.SymbolType.PIESYMBOL:case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:case SuperMap.Plot.SymbolType.PARALLELOGRAM:case SuperMap.Plot.SymbolType.PARALLELLINE:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMap.Plot.SymbolType.POLYGONREGION:case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:case SuperMap.Plot.SymbolType.NEWARCSYMBOL:case SuperMap.Plot.SymbolType.NEWPIESYMBOL:return 3}else if(22===t)switch(e){case 1001:case 1003:case 1005:case 1007:case 1008:case 1009:case 1011:case 1012:case 1013:case 1014:case 1015:case 1016:case 1017:case 1019:case 1020:case 1022:return 2;case 1002:case 1004:case 1006:case 1010:case 1018:case 1021:return 3}else if(421===t)switch(e){case 319:case 320:case 321:return 2;case 311:case 315:case 317:case 318:case 322:return 3}},SuperMap.Plot.BasicAlgoSymbolFactory.getMaxEditPts=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.TEXTSYMBOL:return 1;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:case SuperMap.Plot.SymbolType.BRACESYMBOL:case SuperMap.Plot.SymbolType.LINEMARKING:case SuperMap.Plot.SymbolType.LINERELATION:case SuperMap.Plot.SymbolType.RUNWAY:case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:case SuperMap.Plot.SymbolType.LINEARARROW:return 2;case SuperMap.Plot.SymbolType.ARCSYMBOL:case SuperMap.Plot.SymbolType.CHORDSYMBOL:case SuperMap.Plot.SymbolType.PIESYMBOL:case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:case SuperMap.Plot.SymbolType.PARALLELOGRAM:case SuperMap.Plot.SymbolType.KIDNEY:case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:case SuperMap.Plot.SymbolType.CURVEEIGHT:case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:case SuperMap.Plot.SymbolType.NEWARCSYMBOL:case SuperMap.Plot.SymbolType.NEWPIESYMBOL:return 3;case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.PARALLELLINE:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMap.Plot.SymbolType.ARROWLINE:case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:case SuperMap.Plot.SymbolType.FREECURVE:case SuperMap.Plot.SymbolType.NODECHAIN:case SuperMap.Plot.SymbolType.PATHTEXT:case SuperMap.Plot.SymbolType.POLYGONREGION:case SuperMap.Plot.SymbolType.REGULARPOLYGON:case SuperMap.Plot.SymbolType.WIRE:return 9999}else if(22===t)switch(e){case 1003:case 1019:case 1020:case 1022:return 2;case 1006:case 1021:return 4;case 1001:case 1002:case 1004:case 1005:case 1007:case 1008:case 1009:case 1010:case 1011:case 1012:case 1013:case 1014:case 1015:case 1016:case 1017:case 1018:return 99999}else if(421===t)switch(e){case 320:return 2;case 317:return 4;case 311:case 315:case 318:case 319:case 321:case 322:return 99999}},SuperMap.Plot.BasicAlgoSymbolFactory.getDefaultStyle=function(t,e){var o={};if(421===t)switch(e){case 320:case 321:o.color=o.strokeColor="#000000";break;case 322:o.color=o.strokeColor="#bc744d"}return o},SuperMap.Plot.BasicAlgoSymbolFactory.zoomInCalSymbol=function(){if(22!==libID)return!1;switch(code){case 1012:case 1013:case 1014:case 1015:return!0;default:return!1}},SuperMap.Plot.BasicAlgoSymbolFactory.zoomCalSymbol=function(){return!1},SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolName=function(t,e){var o="";if(0===t)switch(e){case SuperMap.Plot.SymbolType.TEXTSYMBOL:o="文本";break;case SuperMap.Plot.SymbolType.CIRCLESYMBOL:o="圆";break;case SuperMap.Plot.SymbolType.RECTANGLESYMBOL:o="矩形";break;case SuperMap.Plot.SymbolType.ARCSYMBOL:o="弧线";break;case SuperMap.Plot.SymbolType.CHORDSYMBOL:o="弓形";break;case SuperMap.Plot.SymbolType.PIESYMBOL:o="扇形";break;case SuperMap.Plot.SymbolType.ELLIPSESYMBOL:o="椭圆";break;case SuperMap.Plot.SymbolType.PARALLELOGRAM:o="平行四边形";break;case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:o="多边形";break;case SuperMap.Plot.SymbolType.POLYLINESYMBOL:o="折线";break;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:o="贝赛尔曲线";break;case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:o="闭合贝塞尔曲线";break;case SuperMap.Plot.SymbolType.PARALLELLINE:o="平行线";break;case SuperMap.Plot.SymbolType.KIDNEY:o="集结地";break;case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:o="注记指示框";break;case SuperMap.Plot.SymbolType.ARROWLINE:o="箭头线";break;case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:o="组合圆";break;case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:o="同心圆";break;case SuperMap.Plot.SymbolType.CURVEEIGHT:o="八字形";break;case SuperMap.Plot.SymbolType.FREECURVE:o="自由线";break;case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:o="多角标注框";break;case SuperMap.Plot.SymbolType.LINEMARKING:o="线型标注";break;case SuperMap.Plot.SymbolType.LINERELATION:o="对象间连线";break;case SuperMap.Plot.SymbolType.NODECHAIN:o="节点链";break;case SuperMap.Plot.SymbolType.PATHTEXT:o="沿线注记";break;case SuperMap.Plot.SymbolType.POLYGONREGION:o="多边形区域管理";break;case SuperMap.Plot.SymbolType.RUNWAY:o="跑道线";break;case SuperMap.Plot.SymbolType.SYMBOLTEXTBOX:o="标注框";break;case SuperMap.Plot.SymbolType.REGULARPOLYGON:o="正多边形";break;case SuperMap.Plot.SymbolType.BRACESYMBOL:o="大括号";break;case SuperMap.Plot.SymbolType.TRAPEZOIDSYMBOL:o="梯形";break;case SuperMap.Plot.SymbolType.WIRE:o="铁丝网";break;case SuperMap.Plot.SymbolType.LINEARARROW:o="直线箭头";case SuperMap.Plot.SymbolType.NEWPIESYMBOL:o="扇形";case SuperMap.Plot.SymbolType.NEWARCSYMBOL:o="弧线"}return o}},function(t,e,o){"use strict";var i,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FetchRequest=e.getRequestTimeout=e.setRequestTimeout=e.isCORS=e.setCORS=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                               * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                               * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/o(123),o(118);var n,l=o(117),r=(n=l)&&n.__esModule?n:{default:n},a=o(0),s=o(1);var u=window.fetch,p=(e.setCORS=a.SuperMap.setCORS=function(t){a.SuperMap.CORS=t},e.isCORS=a.SuperMap.isCORS=function(){return void 0!=a.SuperMap.CORS?a.SuperMap.CORS:window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest}),c=(e.setRequestTimeout=a.SuperMap.setRequestTimeout=function(t){return a.SuperMap.RequestTimeout=t},e.getRequestTimeout=a.SuperMap.getRequestTimeout=function(){return a.SuperMap.RequestTimeout||45e3});e.FetchRequest=a.SuperMap.FetchRequest={commit:function(t,e,o,i){switch(t=t?t.toUpperCase():t){case"GET":return this.get(e,o,i);case"POST":return this.post(e,o,i);case"PUT":return this.put(e,o,i);case"DELETE":return this.delete(e,o,i);default:return this.get(e,o,i)}},supportDirectRequest:function(t,e){return s.Util.isInTheSameDomain(t)||p()||e.proxy},get:function(t,e,o){o=o||{};if(t=this._processUrl(t,o),t=s.Util.urlAppend(t,this._getParameterString(e||{})),!this.supportDirectRequest(t,o)){var i={url:t=t.replace(".json",".jsonp"),data:e};return a.SuperMap.Util.RequestJSONPPromise.GET(i)}return this.urlIsLong(t)?this._postSimulatie("GET",t.substring(0,t.indexOf("?")-1),e,o):this._fetch(t,e,o,"GET")},delete:function(t,e,o){o=o||{};if(t=this._processUrl(t,o),t=s.Util.urlAppend(t,this._getParameterString(e||{})),!this.supportDirectRequest(t,o)){t=t.replace(".json",".jsonp");var i={url:t+="&_method=DELETE",data:e};return a.SuperMap.Util.RequestJSONPPromise.DELETE(i)}return this.urlIsLong(t)?this._postSimulatie("DELETE",t.substring(0,t.indexOf("?")-1),e,o):this._fetch(t,e,o,"DELETE")},post:function(t,e,o){if(o=o||{},!this.supportDirectRequest(t,o)){t=t.replace(".json",".jsonp");var i={url:t+="&_method=POST",data:e};return a.SuperMap.Util.RequestJSONPPromise.POST(i)}return this._fetch(this._processUrl(t,o),e,o,"POST")},put:function(t,e,o){if(o=o||{},t=this._processUrl(t,o),!this.supportDirectRequest(t,o)){t=t.replace(".json",".jsonp");var i={url:t+="&_method=PUT",data:e};return a.SuperMap.Util.RequestJSONPPromise.DELETE(i)}return this._fetch(t,e,o,"PUT")},urlIsLong:function(t){for(var e=0,o=null,i=0,n=t.length;i<n;i++)(o=t.charCodeAt(i))<127?e++:128<=o&&o<=2047?e+=2:2048<=o&&o<=65535&&(e+=3);return!(e<2e3)},_postSimulatie:function(t,e,o,i){return e+=(e.indexOf("?")>-1?"&":"?")+"_method="+t,"string"!=typeof o&&(o=JSON.stringify(o)),this.post(e,o,i)},_processUrl:function(t,e){if(this._isMVTRequest(t))return t;if(-1===t.indexOf(".json")&&!e.withoutFormatSuffix)if(t.indexOf("?")<0)t+=".json";else{var o=t.split("?");2===o.length&&(t=o[0]+".json?"+o[1])}return e&&e.proxy&&("function"==typeof e.proxy?t=e.proxy(t):(t=decodeURIComponent(t),t=e.proxy+encodeURIComponent(t))),t},_fetch:function(t,e,o,i){return(o=o||{}).headers=o.headers||{},o.headers["Content-Type"]||(o.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8"),o.timeout?this._timeout(o.timeout,u(t,{method:i,headers:o.headers,body:"PUT"===i||"POST"===i?e:void 0,credentials:o.withCredentials?"include":"omit",mode:"cors",timeout:c()}).then(function(t){return t})):u(t,{method:i,body:"PUT"===i||"POST"===i?e:void 0,headers:o.headers,credentials:o.withCredentials?"include":"omit",mode:"cors",timeout:c()}).then(function(t){return t})},_fetchJsonp:function(t,e){return e=e||{},(0,r.default)(t,{method:"GET",timeout:e.timeout}).then(function(t){return t})},_timeout:function(t,e){return new Promise(function(o,i){setTimeout(function(){i(new Error("timeout"))},t),e.then(o,i)})},_getParameterString:function(t){var e=[];for(var o in t){var n=t[o];if(null!=n&&"function"!=typeof n){var l;if("object"===(void 0===n?"undefined":i(n))&&n.constructor===Array){for(var r,a=[],s=0,u=n.length;s<u;s++)r=n[s],a.push(encodeURIComponent(null===r||void 0===r?"":r));l="["+a.join(",")+"]"}else l=encodeURIComponent(n);e.push(encodeURIComponent(o)+"="+l)}}return e.join("&")},_isMVTRequest:function(t){return t.indexOf(".mvt")>-1||t.indexOf(".pbf")>-1}};a.SuperMap.Util.RequestJSONPPromise={limitLength:1500,queryKeys:[],queryValues:[],supermap_callbacks:{},addQueryStrings:function(t){for(var e in t){this.queryKeys.push(e),"string"!=typeof t[e]&&(t[e]=a.SuperMap.Util.toJSON(t[e]));var o=encodeURIComponent(t[e]);this.queryValues.push(o)}},issue:function(t){for(var e=this,o=e.getUid(),i=t.url,n=[],l=new Promise(function(t){e.supermap_callbacks[o]=function(i){delete e.supermap_callbacks[o],t(i)}}),r=i,a=0,s=e.queryKeys?e.queryKeys.length:0,u=0;u<s;u++)if(r.length+e.queryKeys[u].length+2>=e.limitLength){if(0==a)return!1;n.push(r),r=i,a=0,u--}else if(r.length+e.queryKeys[u].length+2+e.queryValues[u].length>e.limitLength)for(var p=e.queryValues[u];p.length>0;){var c=e.limitLength-r.length-e.queryKeys[u].length-2;r.indexOf("?")>-1?r+="&":r+="?";var y=p.substring(0,c);"%"===y.substring(c-1,c)?(c-=1,y=p.substring(0,c)):"%"===y.substring(c-2,c-1)&&(c-=2,y=p.substring(0,c)),r+=e.queryKeys[u]+"="+y,p=p.substring(c),y.length>0&&(n.push(r),r=i,a=0)}else a++,r.indexOf("?")>-1?r+="&":r+="?",r+=e.queryKeys[u]+"="+e.queryValues[u];return n.push(r),e.send(n,"SuperMap.Util.RequestJSONPPromise.supermap_callbacks["+o+"]",t&&t.proxy),l},getUid:function(){return 1e3*(new Date).getTime()+Math.floor(1e17*Math.random())},send:function(t,e,o){var i=t.length;if(i>0)for(var n=(new Date).getTime(),l=0;l<i;l++){var a=t[l];a.indexOf("?")>-1?a+="&":a+="?",a+="sectionCount="+i,a+="&sectionIndex="+l,a+="&jsonpUserID="+n,o&&(a=decodeURIComponent(a),a=o+encodeURIComponent(a)),(0,r.default)(a,{jsonpCallbackFunction:e,timeout:3e4})}},GET:function(t){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings(t.params),this.issue(t)},POST:function(t){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings({requestEntity:t.data}),this.issue(t)},PUT:function(t){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings({requestEntity:t.data}),this.issue(t)},DELETE:function(t){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings({requestEntity:t.data}),this.issue(t)}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbolFactory=void 0,o(3);e.AlgoSymbolFactory=SuperMap.Plot.AlgoSymbolFactory=SuperMap.Plot.AlgoSymbolFactory||{};SuperMap.Plot.AlgoSymbolFactory.getAlgoSymbol=function(t){var e=t.libID,o=t.code;return 0!==e&&22!==e&&421!==e||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===e&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getAlgoSymbol(e,o,t):123===e&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getAlgoSymbol(e,o,t):999===e&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getAlgoSymbol(e,o,t):null:SuperMap.Plot.BasicAlgoSymbolFactory.getAlgoSymbol(e,o,t)},SuperMap.Plot.AlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMap.Plot.SymbolType.POLYLINESYMBOL:case SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMap.Plot.AddPoint_WayType.POLYLINE;case SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL:case SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMap.Plot.AddPoint_WayType.CURVE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMap.Plot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}if(100===t)switch(e){case 15200:case 15201:case 16203:case 17703:case 17704:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21600:case 21900:case 22e3:case 22103:case 23800:case 24700:case 25201:case 25400:case 25601:case 25801:case 25901:case 26500:case 26501:case 26502:case 26503:case 26600:case 28900:case 29e3:case 29003:case 29903:case 3e4:case 30001:case 30002:case 30100:case 30102:case 30200:case 30201:case 30800:case 31803:case 33400:case 34900:case 34901:case 34902:case 35e3:case 36400:case 44200:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 16500:case 17400:case 17401:case 17500:case 17501:case 23400:case 23500:case 23600:case 23700:case 27300:case 28200:case 28300:case 28400:case 37600:case 37601:case 37700:case 39e3:case 40100:case 40101:case 42400:case 2350001:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022100:case 4022101:case 4022102:case 39101:case 44300:case 22200:case 27701:return SuperMap.Plot.AddPoint_WayType.CURVE;case 12500:case 12502:case 16100:case 20300:case 25501:case 25502:case 25503:case 32900:case 34700:case 35200:case 36401:case 41200:case 41201:case 41202:case 42700:case 44400:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}if(123===t)switch(e){case 21003:case 21207:case 2120701:case 2121503:case 21218:case 30008:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 30009:case 5021803:case 5022001:case 5022002:case 40301:case 4030101:case 4030102:case 4030103:case 4030104:case 40303:case 4030301:case 4030302:case 4030303:case 50101:case 5010101:case 50102:case 5010201:case 5010202:case 5010203:case 5010204:case 50103:case 5010301:case 5010302:case 5010303:case 5010304:case 50107:case 5010701:case 50210:case 50220:case 50221:case 50225:case 5030102:case 50303:case 5030301:case 50309:case 50320:case 5032001:case 5032002:case 5032003:case 50321:case 5032101:case 5032102:case 50322:case 5032201:case 50330:case 5033001:case 5034203:case 5035201:case 5035204:case 60205:case 90105:return SuperMap.Plot.AddPoint_WayType.CURVE;case 20915:case 2091502:case 2092101:case 2120702:case 21216:case 2121601:case 2121602:case 21605:case 30010:case 30011:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 30012:case 30020:case 3002001:case 3002002:case 3002005:case 30025:case 3002501:case 30026:case 40104:case 40302:case 4030201:case 4030202:case 4030203:case 4030204:case 50227:case 5035205:case 60301:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 70202:case 7020201:case 7020202:case 90107:return SuperMap.Plot.AddPoint_WayType.POLYLINE;default:return SuperMap.Plot.AddPoint_WayType.UNKNOWN}},SuperMap.Plot.AlgoSymbolFactory.isAccessServer=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.isAccessServer(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.isAccessServer(t,e):999!==t||void 0===SuperMap.Plot.YJAlgoSymbolFactory||SuperMap.Plot.YJAlgoSymbolFactory.isAccessServer(t,e):SuperMap.Plot.BasicAlgoSymbolFactory.isAccessServer(t,e)},SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols=function(t,e){return 100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getDefaultSubSymbols(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getDefaultSubSymbols(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getDefaultSubSymbols(t,e):[]},SuperMap.Plot.AlgoSymbolFactory.getMinEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getMinEditPts(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getMinEditPts(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getMinEditPts(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.getMinEditPts(t,e)},SuperMap.Plot.AlgoSymbolFactory.getMaxEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getMaxEditPts(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getMaxEditPts(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getMaxEditPts(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.getMaxEditPts(t,e)},SuperMap.Plot.AlgoSymbolFactory.getDefaultStyle=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.getDefaultStyle(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.getDefaultStyle(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.getDefaultStyle(t,e):{}:SuperMap.Plot.BasicAlgoSymbolFactory.getDefaultStyle(t,e)},SuperMap.Plot.AlgoSymbolFactory.getSymbolName=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?"":SuperMap.Plot.BasicAlgoSymbolFactory.getSymbolName(t,e)},SuperMap.Plot.AlgoSymbolFactory.canPolylineConnect=function(t,e){if(100!==t)return!1;switch(e){case 16500:case 17400:case 17401:case 17500:case 17501:case 23400:case 23500:case 23600:case 23700:case 27300:case 28200:case 28300:case 28400:case 37600:case 37601:case 37700:case 39e3:case 40100:case 40101:case 42200:case 42400:case 2350001:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022100:case 4022101:case 4022102:return!0;default:return!1}},SuperMap.Plot.AlgoSymbolFactory.zoomInCalSymbol=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMap.Plot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMap.Plot.JBAlgoSymbolFactory?SuperMap.Plot.JBAlgoSymbolFactory.zoomInCalSymbol(t,e):123===t&&void 0!==SuperMap.Plot.WJAlgoSymbolFactory?SuperMap.Plot.WJAlgoSymbolFactory.zoomInCalSymbol(t,e):999===t&&void 0!==SuperMap.Plot.YJAlgoSymbolFactory?SuperMap.Plot.YJAlgoSymbolFactory.zoomInCalSymbol(t,e):0:SuperMap.Plot.BasicAlgoSymbolFactory.zoomInCalSymbol(t,e)},SuperMap.Plot.AlgoSymbolFactory.zoomCalSymbol=function(t,e){if((0===t||22===t||421===t)&&void 0!==SuperMap.Plot.BasicAlgoSymbolFactory)return SuperMap.Plot.BasicAlgoSymbolFactory.zoomCalSymbol(t,e);if(100===t)switch(e){case 28e3:case 28100:case 28200:case 28201:case 32300:return!0;default:return!1}else{if(123!==t||void 0===SuperMap.Plot.WJAlgoSymbolFactory)return!1;switch(e){case 50312:case 50313:case 50314:case 50348:return!0;default:return!1}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol322=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.025),o.scaleValues.push(.085)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue()),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,t),SuperMap.Plot.PlottingUtil.equalFuzzy(t[0].x,t[t.length-1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[0].y,t[t.length-1].y)||t.push(t[0]);for(var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=this.scaleValues[0]*e,i=-1*SuperMap.Plot.PlottingUtil.innerOutlineDir(t),n=this.scaleValues[1]*e,l=.3*n,r=n;r<e;r+=n){var a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,r);if(-1===a.index)return void this.finish();var s=r+l,u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,s);if(-1===u.index)return void this.finish();var p=[],c=[];p.push(a.pt);var y=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[a.index],a.pt);1===i?p.push(new SuperMap.Geometry.Point(y.pntLeft.x,y.pntLeft.y)):p.push(new SuperMap.Geometry.Point(y.pntRight.x,y.pntRight.y)),c.push(u.pt);var h=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[u.index],u.pt);if(1===i?c.push(new SuperMap.Geometry.Point(h.pntLeft.x,h.pntLeft.y)):c.push(new SuperMap.Geometry.Point(h.pntRight.x,h.pntRight.y)),n===r){this.scalePoints=[];var P=new SuperMap.Geometry.Point(p[1].x,p[1].y);P.isScalePoint=!0,P.tag=0,this.scalePoints.push(P),(P=new SuperMap.Geometry.Point(p[0].x,p[0].y)).isScalePoint=!0,P.tag=1,this.scalePoints.push(P)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;SuperMap.Plot.PlottingUtil.equalFuzzy(o[0].x,o[o.length-1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(o[0].y,o[o.length-1].y)||o.push(o[0]);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var l=SuperMap.Plot.PlottingUtil.findPointInPolyLine(o,i*this.scaleValues[1]);if(-1===l.index)return;var r=SuperMap.Plot.PlottingUtil.distance(l.pt,n)/i;this.scaleValues[0]=r}else if(1===t){for(var a=0,s=-1,u=null,p=0,c=o.length-1;p<c;p++){var y=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[p],o[p+1]);if(y.isOnline)if(null==u)s=p,u=y.projectPoint,a=SuperMap.Plot.PlottingUtil.distance(e,u);else{var h=SuperMap.Plot.PlottingUtil.distance(e,u);h<a&&(s=p,u=y.projectPoint,a=h)}}if(-1==s)return;for(var P=0,f=0,S=s-1;f<S;f++)P+=SuperMap.Plot.PlottingUtil.distance(o[f],o[f+1]);var g=(P+=SuperMap.Plot.PlottingUtil.distance(o[s],u))/i;g>.3&&(g=.3),this.scaleValues[1]=g}}}}]),e}();SuperMap.Plot.AlgoSymbol322=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol321=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.02),o.scaleValues.push(.1),o.scaleValues.push(0)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=this.getSubSymbolScaleValue();this.isEdit||(this.scaleValues[0]=.5*i);var n=this.scaleValues[0]*e,l=SuperMap.Plot.PlottingUtil.paraLine(o,.5*n,!0),r=SuperMap.Plot.PlottingUtil.paraLine(o,.5*n,!1);l=SuperMap.Plot.PlottingUtil.clearSamePts(l),r=SuperMap.Plot.PlottingUtil.clearSamePts(r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r);for(var a=e*this.scaleValues[1],s=.5*n,u=SuperMap.Plot.PlottingUtil.polylineDistance(o),p=s,c=0;p<u;p+=a,c++){var y=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,p);if(-1!==y.index){var h=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,l[y.index+1],y.pt),P=[];P.push(h.pntRight),P.push(y.pt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var f=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,p);if(-1!==f.index){var S=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,r[f.index+1],f.pt);(P=[]).push(f.pt),P.push(S.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P),0===c?this.addScalePoint(h.pntRight,0):1===c&&this.addScalePoint(y.pt,1)}}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);for(var i=0,n=0;n<o.length-1;n++)i+=SuperMap.Plot.PlottingUtil.distance(o[n],o[n+1]);var l,r=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);if(r=SuperMap.Plot.PlottingUtil.clearSamePts(r),0==t){l=.5*(i*this.scaleValues[0]);var a=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,l);if(-1===a.index)return;var s=SuperMap.Plot.PlottingUtil.distance(e,a.pt);this.scaleValues[0]=s/i}else if(1===t){l=.5*(i*this.scaleValues[0]);var u=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,l);if(-1===u.index)return;var p=SuperMap.Plot.PlottingUtil.projectPtOnPolyLine(e,r);if(-1==p.index)return;for(var c=SuperMap.Plot.PlottingUtil.distance(u.pt,r[u.index+1]),y=u.index+1;y<p.index;y++)c+=SuperMap.Plot.PlottingUtil.distance(r[y],r[y+1]);c+=SuperMap.Plot.PlottingUtil.distance(r[p.index],p.pt),this.scaleValues[1]=c/i}}}}]),e}();SuperMap.Plot.AlgoSymbol321=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol320=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.1),o.scaleValues.push(.1)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){for(var e=0,o=0;o<t.length-1;o++)e+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);var i,n,l=this.scaleValues[0]*e,r=t[0],a=t[1],s=180*SuperMap.Plot.PlottingUtil.radian(r,a)/Math.PI;i=SuperMap.Plot.PlottingUtil.paraLine(t,l,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,l,!1);var u=.15*e,p=SuperMap.Plot.PlottingUtil.circlePoint(i[0],u,u,s+165),c=SuperMap.Plot.PlottingUtil.circlePoint(n[0],u,u,s-165),y=SuperMap.Plot.PlottingUtil.circlePoint(i[i.length-1],u,u,s+15),h=SuperMap.Plot.PlottingUtil.circlePoint(n[n.length-1],u,u,s-15),P=[];P.push(p),P.push(i[0]),P.push(i[i.length-1]),P.push(y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P);var f=[];f.push(c),f.push(n[0]),f.push(n[n.length-1]),f.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var S=new SuperMap.Geometry.Point(i[0].x,i[0].y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);for(var i=0,n=0;n<o.length-1;n++)i+=SuperMap.Plot.PlottingUtil.distance(o[n],o[n+1]);if(0==t){var l=o[0],r=o[1],a=SuperMap.Plot.PlottingUtil.projectPoint(e,l,r),s=SuperMap.Plot.PlottingUtil.distance(e,a);this.scaleValues[0]=s/i}}}}]),e}();SuperMap.Plot.AlgoSymbol320=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol15200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.05),o.scaleValues.push(0),o.scaleValues.push(.185)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var o=0,i=0,n=e.length-1;i<n;i++)o+=SuperMap.Plot.PlottingUtil.distance(e[i],e[i+1]);for(var l=0,r=0,a=t.length-1;r<a;r++)l+=SuperMap.Plot.PlottingUtil.distance(t[r],t[r+1]);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue());for(var s=this.scaleValues[0]*l,u=this.scaleValues[1],p=this.scaleValues[2]*l,c=.3*p,y=p;y<o;y+=p){var h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(y,e);if(-1===h.index)return void this.finish();var P=y+c,f=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(P,e);if(-1===f.index)return void this.finish();var S=[],g=[];S.push(h.pts);var d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[h.index],h.pts);0===u?S.push(new SuperMap.Geometry.Point(d.pntLeft.x,d.pntLeft.y)):S.push(new SuperMap.Geometry.Point(d.pntRight.x,d.pntRight.y)),g.push(f.pts);var M=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,e[f.index],f.pts);if(0===u?g.push(new SuperMap.Geometry.Point(M.pntLeft.x,M.pntLeft.y)):g.push(new SuperMap.Geometry.Point(M.pntRight.x,M.pntRight.y)),p===y){this.scalePoints=[];var m=new SuperMap.Geometry.Point(S[1].x,S[1].y);m.isScalePoint=!0,m.tag=0,this.scalePoints.push(m),(m=new SuperMap.Geometry.Point(S[0].x,S[0].y)).isScalePoint=!0,m.tag=1,this.scalePoints.push(m)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;for(var i=0,n=0,l=o.length-1;n<l;n++)i+=SuperMap.Plot.PlottingUtil.distance(o[n],o[n+1]);var r=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),a=new SuperMap.Geometry.Point(e.x,e.y);if(0===t){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(r,i*this.scaleValues[2]);if(-1===s.index)return;var u=SuperMap.Plot.PlottingUtil.distance(s.pt,a)/i,p=SuperMap.Plot.PlottingUtil.pointIsRightToLine(r[0],r[1],e);this.scaleValues[1]=p?1:0,this.scaleValues[0]=u}else if(1===t){for(var c=0,y=-1,h=[],P=0,f=r.length-1;P<f;P++){var S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[P],r[P+1]);if(S.isOnline){var g=SuperMap.Plot.PlottingUtil.distance(S.projectPoint,this.controlPoints[1]);0==c?(c=g,y=P,h=e):g<c&&(c=g,y=P,h=e)}}if(-1==y)return;for(var d=0,M=0,m=y-1;M<m;M++)d+=SuperMap.Plot.PlottingUtil.distance(r[M],r[M+1]);var v=(d+=SuperMap.Plot.PlottingUtil.distance(h,r[y]))/i;v>.7&&(v=.7),this.scaleValues[2]=v}}}}]),e}();SuperMap.Plot.AlgoSymbol15200=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol315=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0!==o.scaleValues.length&&(o.scaleValues=[],o.scaleValues.push(.2),o.scaleValues.push(.2),o.scaleValues.push(.4),o.scaleValues.push(.4),o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(1),o.scaleValues.push(1)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol315",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){for(var e=0,o=0;o<t.length-1;o++)e+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);SuperMap.Plot.AlgoSymbol1004.prototype.applyUse.apply(this,arguments),this.scaleValues.length<9&&(this.scaleValues=[],this.scaleValues.push(.2),this.scaleValues.push(.2),this.scaleValues.push(.4),this.scaleValues.push(.4),this.scaleValues.push(.1),this.scaleValues.push(.2),this.scaleValues.push(.1),this.scaleValues.push(.2),this.scaleValues.push(1),this.scaleValues.push(1));var i,n=e*this.scaleValues[4],l=e*this.scaleValues[5],r=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),a=SuperMap.Plot.PlottingUtil.linePnt(t[1],t[0],r+l);i=(this.scaleValues[8],SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,t[1],a));var s,u=e*this.scaleValues[6],p=e*this.scaleValues[7],c=SuperMap.Plot.PlottingUtil.linePnt(t[0],t[1],r+p);s=(this.scaleValues[9],SuperMap.Plot.PlottingUtil.getSidePointsOfLine(u,t[0],c));var y=[];y.push(new SuperMap.Geometry.Point(i.pntLeft.x,i.pntLeft.y)),y.push(new SuperMap.Geometry.Point(t[0].x,t[0].y)),y.push(new SuperMap.Geometry.Point(t[1].x,t[1].y)),y.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y));var h=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(y);h=SuperMap.Plot.PlottingUtil.clearSamePts(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h),this.addScalePoint(i.pntLeft,3),this.addScalePoint(s.pntRight,4)}}},{key:"modifyPoint",value:function(t,o){if(!0===o.isScalePoint){var i=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);i=SuperMap.Plot.PlottingUtil.clearSamePts(i);var n=SuperMap.Plot.PlottingUtil.polylineDistance(i),l=SuperMap.Plot.PlottingUtil.projectPoint(o,i[0],i[1]);if(t<=2&&(SuperMap.Plot.AlgoSymbol1004.prototype.modifyPoint.apply(this,arguments),function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"modifyPoint",this).call(this,t,o)),3===t){var r=SuperMap.Plot.PlottingUtil.distance(o,l)/n,a=SuperMap.Plot.PlottingUtil.distance(l,i[0])/n;this.scaleValues[4]=r,this.scaleValues[5]=a,SuperMap.Plot.PlottingUtil.pointIsRightToLine(i[0],i[1],o)?this.scaleValues[8]=1:this.scaleValues[8]=0}if(4===t){var s=SuperMap.Plot.PlottingUtil.distance(o,l)/n,u=SuperMap.Plot.PlottingUtil.distance(l,i[1])/n;this.scaleValues[6]=s,this.scaleValues[7]=u,SuperMap.Plot.PlottingUtil.pointIsRightToLine(i[0],i[1],o)?this.scaleValues[9]=1:this.scaleValues[9]=0}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol315=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1022=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.05),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1022",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=e*this.scaleValues[0],i=SuperMap.Plot.PlottingUtil.paraLine(t,o,!0),n=SuperMap.Plot.PlottingUtil.paraLine(t,o,!1),l=SuperMap.Plot.PlottingUtil.findPointInLine(i[0],i[1],.6*e),r=SuperMap.Plot.PlottingUtil.findPointInLine(i[0],i[1],.5*e),a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.1*e,i[0],r).pntLeft;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[a,l,i[1]],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0});var s=SuperMap.Plot.PlottingUtil.findPointInLine(n[0],n[1],.4*e),u=SuperMap.Plot.PlottingUtil.findPointInLine(n[0],n[1],.5*e),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(.1*e,n[0],u).pntRight;this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[p,s,n[0]],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[n[1],n[0]]),this.addScalePoint(i[0],0),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t){var n=SuperMap.Plot.PlottingUtil.distance(o[0],e)/i;this.scaleValues[0]=n}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1022=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1021=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.25),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1021",o.QIANJI_RATE1=9,o.QIANJI_RATE2=20,o.QIANJI_RATE4=5,o.QIANJI_RATE3=1/3,o.QIANJI_TAIL_RATE1=8,o.QIANJI_TAIL_RATE2=3,o.QIANJI_TAIL_RATE3=.6,o.SV1_Default=.25,o.SV1_MinValue=0,o.SV1_MaxValue=.5,o.DEFAULT_ARROW_TAIL_POS=.4,o.SCALE_VALUE_COUNT=1,o.MIN_LEN_LeftToRightCenter=1e-7,o.SCALE_AT=1/3,o.SCALE_ATAJ=1/7,o.SCALE_ATAE=1/3,o.SCALE_AW=2/3,o.SCALE_ATAJctrlDefSide=.8,o.SCALE_ATAJctrlSameSide=2/3,o.SCALE_MM_LEFT=.25,o.SCALE_MM_RIGHT=.75,o.BEZIER_K1=1/3,o.QIANJI_OPERATE_RATE1=1,o.m_dMaxDis=0,o.m_bIsAnimation=!1,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clearSamePts(t),this.components.length=0,this.m_scalePoints.length=0,t.length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<3)){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=this.arrowMeshs(e);o.LeftArowHead.unshift(o.LeftArowLeftBody[0][o.LeftArowLeftBody[0].length-1]),o.RightArowHead.unshift(o.RightArowLeftBody[o.RightArowLeftBody.length-1]),o.LeftArowLeftBody[0].push(o.LeftArowHead[0]),o.RightArowLeftBody.push(o.RightArowHead[0]),o.shapePts.push(o.shapePts[0]);var i=SuperMap.Plot.PlottingUtil.polylineDistance(o.LeftArowLeftBody[0]),n=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*i,o.LeftArowLeftBody[0]),l=[],r=[];if(n.bfind)for(var a=0;a<=n.index;a++)l.push(o.LeftArowLeftBody[0][a]);var s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*i,o.LeftArowLeftBody[0]);if(s.bfind)for(var u=s.index;u<o.LeftArowLeftBody[0].length-1;u++)r.push(o.LeftArowLeftBody[0][u]);var p=SuperMap.Plot.PlottingUtil.polylineDistance(o.RightArowLeftBody),c=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*p,o.RightArowLeftBody),y=[],h=[];if(c.bfind)for(var P=0;P<=c.index;P++)y.push(o.RightArowLeftBody[P]);var f=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*p,o.RightArowLeftBody);if(f.bfind)for(var S=f.index;S<o.RightArowLeftBody.length-1;S++)h.push(o.RightArowLeftBody[S]);var g=SuperMap.Plot.PlottingUtil.polylineDistance(o.RightArowRightBody),d=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*g,o.RightArowRightBody),M=[],m=[];if(d.bfind)for(var v=0;v<=d.index;v++)M.push(o.RightArowRightBody[v]);var b=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.5*g,o.RightArowRightBody);if(b.bfind)for(var T=b.index;T<o.RightArowRightBody.length-1;T++)m.push(o.RightArowRightBody[T]);o.shapePts.length>0&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.shapePts,{strokeWidth:0,weight:0,lineWidthLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.LeftArowHead,{lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.LeftArowRightBody),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.RightArowHead,{lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m)),this.scalePoints=[];for(var L=0;L<this.m_scalePoints.length;L++)this.m_scalePoints[L].isScalePoint=!0,this.m_scalePoints[L].tag=L,this.scalePoints.push(this.m_scalePoints[L]);this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i,n=SuperMap.Plot.PlottingUtil.operateControlPoints(o),l=new SuperMap.Geometry.Point((n[0].x+n[1].x)/2,(n[0].y+n[1].y)/2),r=new SuperMap.Geometry.Point((n[2].x+n[3].x)/2,(n[2].y+n[3].y)/2),a=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,l,r);if(a.isOnline){var s=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,l),u=SuperMap.Plot.PlottingUtil.distance(l,r);(i=SuperMap.Plot.PlottingUtil.equalFuzzy(s,0)?this.SV1_MinValue:s/u)>this.SV1_MaxValue&&(i=this.SV1_MaxValue)}else i=SuperMap.Plot.PlottingUtil.distance(a.projectPoint,l)<SuperMap.Plot.PlottingUtil.distance(a.projectPoint,r)?this.SV1_MinValue:this.SV1_MaxValue;this.scaleValues=[],this.scaleValues.push(i)}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=new SuperMap.Plot.Path2D,o=[];o=this.m_bIsAnimation&&4===t.length?SuperMap.Plot.PlottingUtil.clonePoints(t):SuperMap.Plot.PlottingUtil.operateControlPoints(t);var i=this.scaleValues[0],n=SuperMap.Plot.PlottingUtil.distance(o[0],o[3]),l=SuperMap.Plot.PlottingUtil.distance(o[1],o[2]),r=o[1].clone(),a=.5*(o[0].x+o[3].x),s=.5*(o[0].y+o[3].y),u=new SuperMap.Geometry.Point(a,s),p=.5*(o[1].x+o[2].x),c=.5*(o[1].y+o[2].y),y=new SuperMap.Geometry.Point(p,c),h=SuperMap.Plot.PlottingUtil.distance(u,y);h<this.MIN_LEN_LeftToRightCenter&&(h=this.MIN_LEN_LeftToRightCenter),u.x=a+n*(a-p)/(h*this.QIANJI_RATE1),u.y=s+n*(s-c)/(h*this.QIANJI_RATE1),y.x=p+l*(p-a)/(h*this.QIANJI_RATE1),y.y=c+l*(c-s)/(h*this.QIANJI_RATE1);var P=new SuperMap.Geometry.Point(0,0),f=new SuperMap.Geometry.Point(0,0);P.x=a+n*(a-p)/(h*this.QIANJI_RATE2),P.y=s+n*(s-c)/(h*this.QIANJI_RATE2),f.x=p+l*(p-a)/(h*this.QIANJI_RATE2),f.y=c+l*(c-s)/(h*this.QIANJI_RATE2);var S=new SuperMap.Geometry.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),g=new SuperMap.Geometry.Point((o[2].x+o[3].x)/2,(o[2].y+o[3].y)/2),d=o[3].x-(o[3].x-u.x)*this.SCALE_AT,M=o[3].y-(o[3].y-u.y)*this.SCALE_AT,m=o[2].x-(o[2].x-y.x)*this.SCALE_AT,v=o[2].y-(o[2].y-y.y)*this.SCALE_AT,b=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0);T.x=d-(M-o[3].y)*this.SCALE_ATAJ,T.y=M+(d-o[3].x)*this.SCALE_ATAJ,b.x=d+(M-o[3].y)*this.SCALE_ATAJ,b.y=M-(d-o[3].x)*this.SCALE_ATAJ,A.x=m-(v-o[2].y)*this.SCALE_ATAJ,A.y=v+(m-o[2].x)*this.SCALE_ATAJ,L.x=m+(v-o[2].y)*this.SCALE_ATAJ,L.y=v-(m-o[2].x)*this.SCALE_ATAJ;var O=new SuperMap.Geometry.Point(0,0),E=new SuperMap.Geometry.Point(0,0),w=new SuperMap.Geometry.Point(0,0),x=new SuperMap.Geometry.Point(0,0);O.x=3*b.x-2*d-(o[3].x-d)*this.SCALE_ATAE,O.y=3*b.y-2*M-(o[3].y-M)*this.SCALE_ATAE,E.x=3*T.x-2*d-(o[3].x-d)*this.SCALE_ATAE,E.y=3*T.y-2*M-(o[3].y-M)*this.SCALE_ATAE,w.x=3*L.x-2*m-(o[2].x-m)*this.SCALE_ATAE,w.y=3*L.y-2*v-(o[2].y-v)*this.SCALE_ATAE,x.x=3*A.x-2*m-(o[2].x-m)*this.SCALE_ATAE,x.y=3*A.y-2*v-(o[2].y-v)*this.SCALE_ATAE,u.x=a+n*(a-p)/(h*this.QIANJI_RATE4),u.y=s+n*(s-c)/(h*this.QIANJI_RATE4),y.x=p+l*(p-a)/(h*this.QIANJI_RATE4),y.y=c+l*(c-s)/(h*this.QIANJI_RATE4);var C=new SuperMap.Geometry.Point(0,0);C.x=o[0].x+(u.x-o[0].x)*this.SCALE_AW,C.y=o[0].y+(u.y-o[0].y)*this.SCALE_AW;var R=new SuperMap.Geometry.Point(0,0);R.x=o[1].x+(y.x-o[1].x)*this.SCALE_AW,R.y=o[1].y+(y.y-o[1].y)*this.SCALE_AW;var I=new SuperMap.Geometry.Point(0,0);I.x=b.x+(u.x-b.x)*this.SCALE_ATAJctrlSameSide,I.y=b.y+(u.y-b.y)*this.SCALE_ATAJctrlSameSide;var _=new SuperMap.Geometry.Point(0,0);_.x=A.x+(y.x-A.x)*this.SCALE_ATAJctrlSameSide,_.y=A.y+(y.y-A.y)*this.SCALE_ATAJctrlSameSide;var U=new SuperMap.Geometry.Point(0,0);U.x=T.x+(P.x-T.x)*this.SCALE_ATAJctrlDefSide,U.y=T.y+(P.y-T.y)*this.SCALE_ATAJctrlDefSide;var N=new SuperMap.Geometry.Point(0,0);N.x=L.x+(f.x-L.x)*this.SCALE_ATAJctrlDefSide,N.y=L.y+(f.y-L.y)*this.SCALE_ATAJctrlDefSide;var D=new SuperMap.Geometry.Point(0,0);D.x=S.x+(g.x-S.x)*i,D.y=S.y+(g.y-S.y)*i,this.m_scalePoints.push(new SuperMap.Geometry.Point(D.x,D.y));var B=new SuperMap.Geometry.Point(0,0),k=new SuperMap.Geometry.Point(0,0);B.x=o[0].x+(o[3].x-o[0].x)*i,B.y=o[0].y+(o[3].y-o[0].y)*i,k.x=o[1].x+(o[2].x-o[1].x)*i,k.y=o[1].y+(o[2].y-o[1].y)*i,B.x=B.x+(D.x-B.x)*this.QIANJI_RATE3,B.y=B.y+(D.y-B.y)*this.QIANJI_RATE3,k.x=k.x+(D.x-k.x)*this.QIANJI_RATE3,k.y=k.y+(D.y-k.y)*this.QIANJI_RATE3;var G=[];G.push(o[0].clone()),G.push(C.clone()),G.push(I.clone()),G.push(b.clone()),e.MoveTo(G[0]),e.CurveTo(G[1],G[2],G[3]);var V,Y=[],j=[],F=[],z=[],W=[],H=[],q=[];for(e.ToSubPathPolygons(q),Y.push(q[0]),V=q[0].length,e.LineTo(O),e.LineTo(o[3]),e.LineTo(E),(G=[]).push(T),G.push(U),G.push(B),G.push(D),e.LineTo(G[0]),q=[],e.ToSubPathPolygons(q);V<q[0].length;V++)j.push(q[0][V]);for(V=q[0].length,e.CurveTo(G[1],G[2],G[3]),q=[],e.ToSubPathPolygons(q);V<q[0].length;V++)F.push(q[0][V]);for(V=q[0].length,(G=[]).push(k),G.push(N),G.push(L),e.CurveTo(G[0],G[1],G[2]),q=[],e.ToSubPathPolygons(q);V<q[0].length;V++)z.push(q[0][V]);for(V=q[0].length,e.LineTo(w),e.LineTo(o[2]),e.LineTo(x),(G=[]).push(A),G.push(_),G.push(R),G.push(r),e.LineTo(G[0]),q=[],e.ToSubPathPolygons(q);V<q[0].length;V++)W.push(q[0][V]);for(V=q[0].length,e.CurveTo(G[1],G[2],G[3]),q=[],e.ToSubPathPolygons(q);V<q[0].length;V++)H.push(q[0][V]);return q=[],e.ToSubPathPolygons(q),{shapePts:q[0],LeftArowLeftBody:Y,LeftArowHead:j,LeftArowRightBody:F,ArowMidBody:[],RightArowLeftBody:z,RightArowHead:W,RightArowRightBody:H}}}]),e}();SuperMap.Plot.AlgoSymbol1021=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1020=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.5),o.scaleValues.push(.222222),o.scaleValues.push(.5),o.scaleValues.push(.5),o.scaleValues.push(.5)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1020",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.222222),this.scaleValues.push(.5),this.scaleValues.push(.5),this.scaleValues.push(.5));var e=t[0].clone(),o=t[1].clone(),i=SuperMap.Plot.PlottingUtil.distance(e,o),n=this.scaleValues[0],l=new SuperMap.Geometry.Point(0,-i*n),r=new SuperMap.Geometry.Point(0,i*n),a=this.scaleValues[1],s=this.scaleValues[3],u=new SuperMap.Geometry.Point(i*(1-s),-i*a),p=new SuperMap.Geometry.Point(i*(1-s),i*a),c=this.scaleValues[2],y=this.scaleValues[4],h=new SuperMap.Geometry.Point(i*(1-y),-i*c),P=new SuperMap.Geometry.Point(i*(1-y),i*c),f=new SuperMap.Geometry.Point(i,0),S=SuperMap.Plot.PlottingUtil.radian(e,o),g=SuperMap.Plot.PlottingUtil.distance(l,u),d=SuperMap.Plot.PlottingUtil.findPointInLine(l,u,.3*g),M=SuperMap.Plot.PlottingUtil.findPointInLine(l,u,.4*g),m=SuperMap.Plot.PlottingUtil.distance(p,r),v=SuperMap.Plot.PlottingUtil.findPointInLine(p,r,.6*m),b=SuperMap.Plot.PlottingUtil.findPointInLine(p,r,.7*m),T=[];T.push(l),T.push(d),T.push(M),T.push(u),T.push(h),T.push(f),T.push(P),T.push(p),T.push(v),T.push(b),T.push(r);for(var L=[],A=0;A<T.length;A++){var O=SuperMap.Plot.PlottingUtil.coordinateTrans(e,T[A],S*SuperMap.Plot.PlottingUtil.RTOD);L.push(O)}for(var E=[],w=L.length-1;w>=0;--w)E.push(L[w]);var x=SuperMap.Plot.PlottingUtil.clonePoints(E);x.push(x[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,x,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[E[0],E[1]]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[E[2],E[3]]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[E[3],E[4],E[5],E[6],E[7]],{lineTypeLimit:!0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[E[7],E[8]]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[E[9],E[10]]),this.scalePoints=[];var C=L[0].clone();C.isScalePoint=!0,C.tag=0,this.scalePoints.push(C);var R=L[3].clone();R.isScalePoint=!0,R.tag=1,this.scalePoints.push(R);var I=L[4].clone();I.isScalePoint=!0,I.tag=2,this.scalePoints.push(I),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.distance(o[0],o[1]),n=o[0].clone(),l=o[1].clone(),r=e.clone();if(0==t){var a=SuperMap.Plot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=a}else if(1==t){var s=SuperMap.Plot.PlottingUtil.projectPoint(r,n,l),u=SuperMap.Plot.PlottingUtil.distance(s,r)/i;this.scaleValues[1]=u;var p=SuperMap.Plot.PlottingUtil.distance(s,l)/i;this.scaleValues[3]=p}else if(2==t){var c=SuperMap.Plot.PlottingUtil.projectPoint(r,n,l),y=SuperMap.Plot.PlottingUtil.distance(c,r)/i;this.scaleValues[2]=y;var h=SuperMap.Plot.PlottingUtil.distance(c,l)/i;this.scaleValues[4]=h}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1020=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1019=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.5),o.scaleValues.push(.222222),o.scaleValues.push(.5),o.scaleValues.push(.5),o.scaleValues.push(.5)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1019",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){0==this.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.222222),this.scaleValues.push(.5),this.scaleValues.push(.5),this.scaleValues.push(.5));var e=t[0].clone(),o=t[1].clone(),i=SuperMap.Plot.PlottingUtil.distance(e,o),n=this.scaleValues[0],l=new SuperMap.Geometry.Point(0,-i*n),r=new SuperMap.Geometry.Point(0,i*n),a=this.scaleValues[1],s=this.scaleValues[3],u=new SuperMap.Geometry.Point(i*(1-s),-i*a),p=new SuperMap.Geometry.Point(i*(1-s),i*a),c=this.scaleValues[2],y=this.scaleValues[4],h=new SuperMap.Geometry.Point(i*(1-y),-i*c),P=new SuperMap.Geometry.Point(i*(1-y),i*c),f=new SuperMap.Geometry.Point(i,0),S=SuperMap.Plot.PlottingUtil.radian(e,o),g=[];g.push(l),g.push(u),g.push(h),g.push(f),g.push(P),g.push(p),g.push(r),g.push(l);for(var d=[],M=0;M<g.length;M++){var m=SuperMap.Plot.PlottingUtil.coordinateTrans(e,g[M],S*SuperMap.Plot.PlottingUtil.RTOD);d.push(m)}for(var v=[],b=d.length-1;b>=0;--b)v.push(d[b]);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,v,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[v[2],v[1],v[7],v[6]],{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[v[6],v[5],v[4],v[3],v[2]],{lineTypeLimit:!0,surroundLineFlag:!1}),this.scalePoints=[];var T=d[0].clone();T.isScalePoint=!0,T.tag=0,this.scalePoints.push(T);var L=d[1].clone();L.isScalePoint=!0,L.tag=1,this.scalePoints.push(L);var A=d[2].clone();A.isScalePoint=!0,A.tag=2,this.scalePoints.push(A),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o);var i=SuperMap.Plot.PlottingUtil.distance(o[0],o[1]),n=o[0].clone(),l=o[1].clone(),r=e.clone();if(0==t){var a=SuperMap.Plot.PlottingUtil.distance(r,n)/i;this.scaleValues[0]=a}else if(1==t){var s=SuperMap.Plot.PlottingUtil.projectPoint(r,n,l),u=SuperMap.Plot.PlottingUtil.distance(s,r)/i;this.scaleValues[1]=u;var p=SuperMap.Plot.PlottingUtil.distance(s,l)/i;this.scaleValues[3]=p}else if(2==t){var c=SuperMap.Plot.PlottingUtil.projectPoint(r,n,l),y=SuperMap.Plot.PlottingUtil.distance(c,r)/i;this.scaleValues[2]=y;var h=SuperMap.Plot.PlottingUtil.distance(c,l)/i;this.scaleValues[4]=h}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1019=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1018=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.MAX_ARRAY_SIZE=128,o.sv1_DefaultAtLenDivAbLen=0,o.sv2_DefaultAjWidthDivAtLen=.148,o.sv3_DefaultAeWidthDivAtLen=.4,o.sv4_DefaultAeLenDivAtLen=.312,o.sv_AtScaleParameter=1.5,o.sv_AtLenDivAtWidth=1.35,o.sv_AtWidthDivAwWidth=.5,o.sv_defaultAwLenDivAbLen=.15,0===o.scaleValues.length&&(o.scaleValues.push(o.sv1_DefaultAtLenDivAbLen),o.scaleValues.push(o.sv2_DefaultAjWidthDivAtLen),o.scaleValues.push(o.sv3_DefaultAeWidthDivAtLen),o.scaleValues.push(o.sv4_DefaultAeLenDivAtLen)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1018",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init(),this.applyUse()}},{key:"applyUse",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<3)){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=this.arrowMeshs(e),i=SuperMap.Plot.PlottingUtil.clonePoints(o.shapePts);(i=SuperMap.Plot.PlottingUtil.clearSamePts(i)).push(i[0]);var n=SuperMap.Plot.PlottingUtil.clearSamePts(o.leftBodyPts),l=SuperMap.Plot.PlottingUtil.clearSamePts(o.rightBodyPts),r=SuperMap.Plot.PlottingUtil.clearSamePts(o.arrowHeadPts);if(0!=o.shapePts.length){var a=SuperMap.Plot.PlottingUtil.polylineDistance(n),s=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.4*a,n),u=[],p=[],c=[];if(s.bfind)for(var y=0;y<=s.index;y++)u.push(n[y]);var h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.45*a,n),P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.8*a,n);if(h.bfind&&P.bfind)for(var f=h.index;f<=P.index;f++)p.push(n[f]);var S=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.85*a,n);if(S.bfind)for(var g=S.index;g<n.length;g++)c.push(n[g]);var d=SuperMap.Plot.PlottingUtil.polylineDistance(l),M=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.15*d,l),m=[],v=[],b=[];if(M.bfind)for(var T=0;T<=M.index;T++)m.push(l[T]);var L=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.2*d,l),A=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.55*d,l);if(L.bfind&&A.bfind)for(var O=L.index;O<=A.index;O++)v.push(l[O]);var E=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(.6*d,l);if(E.bfind)for(var w=E.index;w<l.length;w++)b.push(l[w]);var x=SuperMap.Plot.PlottingUtil.clonePoints(r);x.splice(0,0,n[n.length-1]),x.push(l[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,i,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,v,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,x,{surroundLineFlag:!1,lineTypeLimit:!0});var C=this.updateScalePoints(e);if(this.scalePoints=[],3!=C.length)C=[];else for(var R=0;R<C.length;R++)C[R].isScalePoint=!0,C[R].tag=R,this.scalePoints.push(C[R]);this.finish()}else this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.scaleValues.length<4&&(this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen));var i=o.length;if(i<=2)return;var n,l,r,a,s=this.operateCtrlPts(o);i=s.length,i--;var u=this.calcScaleValueCount(o.length);if(this.scaleValues.length<u){var p=this.calcDefaultScaleValues(i);n=p[0],l=p[1],r=p[2],a=p[3]}else n=this.scaleValues[0],l=this.scaleValues[1],r=this.scaleValues[2],a=this.scaleValues[3];for(var c=SuperMap.Plot.PlottingUtil.polylineDistance(o),y=[],h=0;h<this.scalePoints.length;h++)y.push(this.scalePoints[h].clone());if(0==y.length)return;y[t]=e.clone();var P,f,S=i-1;P=i<=3?new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2):s[S-1].clone();var g,d,M,m,v,b,T=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,P,s[S],s[S+1],L,A),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,s[i],s[i-1],A,T),f=T.clone();var O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[i],f,y[2]);g=O.dLen1,O.dLen2,0==g&&(g=.1),d=g,n=(g/=a+1)/c,1==t?(m=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[i],f,y[1])).dLen1,r=(v=O.dLen2)/g,a=(m-g)/g):0==t?(g=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[i],f,y[0])).dLen1,l=(M=O.dLen2)/g,(b=SuperMap.Plot.PlottingUtil.distance(s[i],s[i-1]))<2*g&&(g=.5*b),m=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[i],f,y[1])).dLen1,r=(v=O.dLen2)/g,(a=(d-g)/g)<.1&&(r=v/(g=d/(1+(a=.1))),l=M/g),n=g/c):2==t&&(n=g/c),M=g*l,(b=SuperMap.Plot.PlottingUtil.distance(s[i],s[i-1]))<2*g&&(M=(g=.5*b)*l,n=g/c),this.scaleValues[0]=n,this.scaleValues[1]=l,this.scaleValues[2]=r,this.scaleValues[3]=a}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],i=[],n=[],l=SuperMap.Plot.PlottingUtil.clonePoints(t),r=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(l,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),a=r.arrowTouLen,s=r.leftBodyPts,u=r.rightBodyPts;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var p=[];p.push(s[s.length-1]),p.push(u[u.length-1]);var c=[];c.push(this.scaleValues[2]),c.push(this.scaleValues[3]),c.push(0),c.push(0);for(var y=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(l,p,c,a,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),h=0;h<s.length;h++)e.push(s[h]),o.push(s[h]);for(var P=0;P<y.length;P++)e.push(y[P]),n.push(y[P]);for(var f=u.length-1;f>=0;f--)e.push(u[f]),i.push(u[f])}return{shapePts:e,leftBodyPts:o,rightBodyPts:i,arrowHeadPts:n}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var i=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)){var n=this.operateCtrlPts(t);e=n.length,e--;for(var l=[],r=0;r<this.scaleValues.length;r++)l.push(this.scaleValues[r]);var a=this.genArrowBodyPts(i,n,l),s=a.ArrowBodyCenterPts,u=this.genAtPts(e,s,l,a.ArrowTouLen),p=this.calc3rdScalePt(e,s,l,a.ArrowTouLen);return o.push(new SuperMap.Geometry.Point(a.LeftBodyPtsTemp[e].x,a.LeftBodyPtsTemp[e].y)),o.push(new SuperMap.Geometry.Point(u[2].x,u[2].y)),o.push(new SuperMap.Geometry.Point(p.x,p.y)),o}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,i=((e[0].y+e[1].y)/2+e[2].y)/2,n=new SuperMap.Geometry.Point(o,i),l=e[2];e[2]=n,e.push(l)}return e}},{key:"genArrowBodyPts",value:function(t,e,o){var i,n,l,r=[],a=[],s=[],u=[],p=[],c=[],y=e.length;if(y--,o.length<this.calcScaleValueCount(y)){var h=this.calcDefaultScaleValues(y);n=h[0],l=h[1]}else n=o[0],l=o[1];var P=SuperMap.Plot.PlottingUtil.clonePoints(e),f=(P[0].x+P[1].x)/2,S=(P[0].y+P[1].y)/2,g=Math.abs(f-P[2].x),d=Math.abs(S-P[2].y),M=0;if(g>0&&d>0){var m=1/(f-P[2].x),v=-1/(S-P[2].y),b=1*P[2].y/(S-P[2].y)-1*P[2].x/(f-P[2].x);M=Math.abs(m*P[0].x+v*P[0].y+b)/Math.sqrt(m*m+v*v)}else d<=1e-4?M=Math.abs(S-P[1].y):g<=1e-4&&(M=Math.abs(f-P[1].x));var T=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M,P[2],new SuperMap.Geometry.Point(f,S)),L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(P[1],P[2],P[0]);L?(r[1]=P[1],a[1]=P[0]):(r[1]=P[0],a[1]=P[1]),P[1]=new SuperMap.Geometry.Point((P[0].x+P[1].x)/2,(P[0].y+P[1].y)/2);var A=Math.sqrt((T.pntLeft.x-T.pntRight.x)*(T.pntLeft.x-T.pntRight.x)+(T.pntLeft.y-T.pntRight.y)*(T.pntLeft.y-T.pntRight.y))*this.sv_AtWidthDivAwWidth,O=(i=A*this.sv_AtLenDivAtWidth)*l;SuperMap.Plot.PlottingUtil.equalFuzzy(n,0)||(O=(i=t*n)*l);var E,w,x=SuperMap.Plot.PlottingUtil.distance(P[y],P[y-1]),C=2*i;x<C&&(O=(i=x/2)*l),P.push(P[y].clone()),E=0,w=0;var R=0,I=[];for(R=2;R<=y;R++)E+=SuperMap.Plot.PlottingUtil.distance(P[R],P[R-1]);for(E-=i,R=2;R<=y-1;R++)w+=SuperMap.Plot.PlottingUtil.distance(P[R],P[R-1]),I[R]=O+(A-O)*Math.pow((E-w)/E,this.sv_AtScaleParameter);I[y]=O;var _,U,N=new SuperMap.Geometry.Point(0,0),D=new SuperMap.Geometry.Point(0,0),B=new SuperMap.Geometry.Point(0,0);for(R=2;R<=y-1;R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,P[R-1],P[R],P[R+1],D,B),R==y-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,P[y],P[y-1],B,N),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I[R],D,P[R]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(B,D,_.pntRight))?(r[R]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),a[R]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)):(r[R]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),a[R]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));for(Math.sqrt(1*(P[y].x-N.x)*(P[y].x-N.x)+1*(P[y].y-N.y)*(P[y].y-N.y))>0&&(P[y]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(i,P[y],N)),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O,P[y+1],P[y]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(P[y],P[y+1],_.pntLeft))?(a[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),r[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y)):(a[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),r[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)),R=2;R<y;R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[R-1],r[R],r[R+1],D,B),s[R]=new SuperMap.Geometry.Point(D.x,D.y),u[R]=new SuperMap.Geometry.Point(B.x,B.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[R-1],a[R],a[R+1],D,B),p[R]=new SuperMap.Geometry.Point(D.x,D.y),c[R]=new SuperMap.Geometry.Point(B.x,B.y),2==R&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],s[2],N),u[R]=new SuperMap.Geometry.Point(N.x,N.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],p[2],N),c[R]=new SuperMap.Geometry.Point(N.x,N.y)),R==y-1&&(C=(x=SuperMap.Plot.PlottingUtil.distance(r[y],r[y-1]))/3,(U=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(C,P[y],P[y+1])).x+=r[y].x-P[y].x,U.y+=r[y].y-P[y].y,C=(x=A-O)*Math.pow(C/E,this.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(C,r[y],U),s[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),C=(x=SuperMap.Plot.PlottingUtil.distance(a[y],a[y-1]))/3,(U=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(C,P[y],P[y+1])).x+=a[y].x-P[y].x,U.y+=a[y].y-P[y].y,C=(x=A-O)*Math.pow(C/E,this.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(C,a[y],U),p[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));return{ArrowBodyCenterPts:SuperMap.Plot.PlottingUtil.clonePoints(P),LeftBodyPtsTemp:r,RightBodyPtsTemp:a,LeftBodyPtsLeftCtrlPts:s,LeftBodyPtsRightCtrlPts:u,RightBodyPtsLeftCtrlPts:p,RightBodyPtsRightCtrlPts:c,ArrowTouLen:i}}},{key:"calcScaleValueCount",value:function(){return 4}},{key:"calcDefaultScaleValues",value:function(){var t=[];return t.push(this.sv1_DefaultAtLenDivAbLen),t.push(this.sv2_DefaultAjWidthDivAtLen),t.push(this.sv3_DefaultAeWidthDivAtLen),t.push(this.sv4_DefaultAeLenDivAtLen),t}},{key:"genAtPts",value:function(t,e,o,i){var n=o[2],l=[],r=i*o[3],a=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(r,e[t],e[t+1]);r=i*n;var s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[t+1],a);return l.push(new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y)),l.push(e[t+1]),l.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y)),l}},{key:"calc3rdScalePt",value:function(t,e,o,i){var n=i*o[3];return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(n,e[t],e[t+1])}}]),e}();SuperMap.Plot.AlgoSymbol1018=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1017=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(0),o.scaleValues.push(.3),o.scaleValues.push(.3)),o.CLASS_NAME="SuperMap.Geometry.AlgoSymbol1017",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){this.scalePoints=[];var e=SuperMap.Plot.PlottingUtil.clonePoints(t);this.isEdit||(this.scaleValues[0]=1.5*this.getSubSymbolScaleValue());var o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(e,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL),i=o.arrowTouLen,n=o.leftBodyPts,l=o.rightBodyPts,r=[];r.push(n[n.length-1]),r.push(l[l.length-1]);var a=[];a.push(this.scaleValues[3]),a.push(this.scaleValues[4]),a.push(this.scaleValues[0]),a.push(this.scaleValues[1]);var s=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(e,r,a,i,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),u=[];u=(u=u.concat(n)).concat(s);for(var p=l.length-1;p>=0;p--)u.push(l[p]);u.push(u[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,u,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1});for(var c=SuperMap.Plot.PlottingUtil.clonePoints(n),y=[],h=l.length-1;h>=0;h--)y.push(l[h]);y=y.concat(c),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,y);var P=SuperMap.Plot.PlottingUtil.clonePoints(s);P.push(l[l.length-1]),P.splice(0,0,n[n.length-1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0});var f=new SuperMap.Geometry.Point((r[0].x+r[1].x)/2,(r[0].y+r[1].y)/2),S=new SuperMap.Geometry.Point(f.x,f.y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S);var g=new SuperMap.Geometry.Point(n[n.length-1].x,n[n.length-1].y);g.isScalePoint=!0,g.tag=1,this.scalePoints.push(g);var d=new SuperMap.Geometry.Point(s[0].x,s[0].y);d.isScalePoint=!0,d.tag=2,this.scalePoints.push(d),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMap.Geometry.Point(this.scalePoints[0].x,this.scalePoints[0].y),i=new SuperMap.Geometry.Point(this.scalePoints[1].x,this.scalePoints[1].y),n=new SuperMap.Geometry.Point(this.scalePoints[2].x,this.scalePoints[2].y),l=this.scaleValues[0],r=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);r=SuperMap.Plot.PlottingUtil.clearSamePts(r);var a=SuperMap.Plot.PlottingUtil.polylineDistance(r),s=a*l;if(0==t){var u=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[r.length-2],r[r.length-1]),p=u.projectPoint;if(u.isOnline){var c=SuperMap.Plot.PlottingUtil.distance(p,r[r.length-1]);this.scaleValues[0]=c/a}}else if(1==t){var y=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,i,n).projectPoint,h=SuperMap.Plot.PlottingUtil.distance(y,o);this.scaleValues[1]=h/s}else if(2==t){var P=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,r[1],n).projectPoint,f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(P,o,r[1]),S=f.projectPoint,g=SuperMap.Plot.PlottingUtil.distance(S,o);!1===f.isOnline&&(this.scaleValues[4]=g/s)}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1017=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1016=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.arrowHeadType=t.arrowHeadType?t.arrowHeadType:0,o.arrowBodyType=t.arrowBodyType?t.arrowBodyType:0,o.arrowTailType=t.arrowTailType?t.arrowTailType:0,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1016",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fillStyle:0,lineTypeLimit:!0};this.scaleValues[0]=this.getSubSymbolScaleValue();var o,i=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],n=2*Math.sqrt(i*i/3)/1.4,l=Math.sqrt(i*i/3),r=!1;this.arrowBodyType===SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL?o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,i,this.arrowBodyType,r):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE||this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID?(r=!0,o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,i,this.arrowBodyType,r)):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE?o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,i,this.arrowBodyType,r):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW?(r=!0,o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,n,this.arrowBodyType,r)):this.arrowHeadType===SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL?(r=!0,o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,l,this.arrowBodyType,r)):o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,0,this.arrowBodyType,r);var a=[];this.arrowBodyType===SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL?(a.push(t[t.length-1]),a.push(t[t.length-2])):r?(a.push(t[t.length-1]),a.push(o[o.length-1])):(a.push(o[o.length-1]),a.push(o[o.length-2]));var s,u=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(a,i,this.arrowHeadType);if(o.length>1)if(this.arrowBodyType!==SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL)this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);else for(var p=0,c=o.length-1;p<c;p+=2){var y=SuperMap.Plot.PlottingUtil.distance(o[p+1],o[p]),h=180*SuperMap.Plot.PlottingUtil.radian(o[p+1],o[p])/Math.PI,P=SuperMap.Plot.PlottingUtil.circlePoint(o[p+1],.3*y,.3*y,h+30),f=SuperMap.Plot.PlottingUtil.circlePoint(o[p+1],.3*y,.3*y,h+330),S=SuperMap.Plot.PlottingUtil.circlePoint(o[p],.3*y,.3*y,h+30),g=SuperMap.Plot.PlottingUtil.circlePoint(o[p],.3*y,.3*y,h+330),d=[];d.push(P,o[p+1],f,g,o[p],S),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,d,e)}s=this.arrowBodyType===SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER?SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine([o[0],o[1]],i,this.arrowTailType):SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine([t[0],t[1]],i,this.arrowTailType);var M=SuperMap.Plot.SymbolType.POLYLINESYMBOL;this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL&&this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID&&this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE&&this.arrowHeadType!==SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW||(M=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL),u.length>1&&this.addCell(M,u,e),s.length>1&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}}}]),e}();SuperMap.Plot.AlgoSymbol1016=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=e.AlgoSymbol1015=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1015",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1009),e}();SuperMap.Plot.AlgoSymbol1015=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=e.AlgoSymbol1014=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1014",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1008),e}();SuperMap.Plot.AlgoSymbol1014=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=e.AlgoSymbol1013=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1013",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1007),e}();SuperMap.Plot.AlgoSymbol1013=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=e.AlgoSymbol1012=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSymbolDefaultPixelSize=15,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1012",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1005),e}();SuperMap.Plot.AlgoSymbol1012=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1011=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.sv1_DefaultAtLenDivAbLen=0,o.sv2_DefaultAjWidthDivAtLen=.148,o.sv3_DefaultAeWidthDivAtLen=.4,o.sv4_DefaultAeLenDivAtLen=.312,o.sv_arrowTailWidth=.05,5!==o.scaleValues.length&&(o.scaleValues=[],o.scaleValues.push(o.sv1_DefaultAtLenDivAbLen),o.scaleValues.push(o.sv2_DefaultAjWidthDivAtLen),o.scaleValues.push(o.sv3_DefaultAeWidthDivAtLen),o.scaleValues.push(o.sv4_DefaultAeLenDivAtLen),o.scaleValues.push(o.sv_arrowTailWidth)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1011",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol1004),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<2)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(0!==e){var o=e*this.scaleValues[4],i=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);void 0!==t[0].z&&(i.pntLeft.z=t[0].z,i.pntRight.z=t[0].z),this.controlPoints=[],this.controlPoints.push(i.pntLeft),this.controlPoints.push(i.pntRight);for(var n=1;n<t.length;n++)this.controlPoints.push(t[n].clone());for(var l=[],r=0;r<this.scaleValues.length;r++)l.push(this.scaleValues[r]);this.scaleValues=[];for(var a=0;a<l.length-1;a++)this.scaleValues.push(l[a]);SuperMap.Plot.AlgoSymbol1004.prototype.calculateParts.apply(this,arguments);var s=i.pntRight.clone();s.isScalePoint=!0,s.tag=3,this.addScalePoint(s),this.controlPoints=SuperMap.Plot.PlottingUtil.clonePoints(t),this.scaleValues=[];for(var u=0;u<l.length;u++)this.scaleValues.push(l[u])}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(o.length<2)return;this.scaleValues.length<5&&(this.scaleValues=[],this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen),this.scaleValues.push(this.sv_arrowTailWidth));var i,n=o[0].clone(),l=SuperMap.Plot.PlottingUtil.polylineDistance(o),r=l*this.scaleValues[4],a=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,o[1],o[0]);(o=[]).push(a.pntLeft),o.push(a.pntRight);for(var s=1;s<this.controlPoints.length;s++)o.push(this.controlPoints[s].clone());var u,p,c,y,h,P=o.length,f=this.operateCtrlPts(o);P=f.length,P--;var S=this.calcScaleValueCount(o.length);if(S++,this.scaleValues.length<S){var g=this.calcDefaultScaleValues(P);u=g[0],p=g[1],c=g[2],y=g[3],h=this.sv_arrowTailWidth}else u=this.scaleValues[0],p=this.scaleValues[1],c=this.scaleValues[2],y=this.scaleValues[3],h=this.scaleValues[4];i=SuperMap.Plot.PlottingUtil.polylineDistance(o);for(var d=[],M=0;M<this.scalePoints.length;M++)d.push(this.scalePoints[M].clone());if(0===d.length)return;d[t]=e.clone();var m,v,b=P-1;m=P<=3?new SuperMap.Geometry.Point((f[0].x+f[1].x)/2,(f[0].y+f[1].y)/2):f[b-1].clone();var T,L,A,O,E,w,x=new SuperMap.Geometry.Point(0,0),C=new SuperMap.Geometry.Point(0,0),R=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,m,f[b],f[b+1],C,R),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,f[P],f[P-1],R,x),v=x.clone();var I=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(f[P],v,d[2]);if(T=I.dLen1,I.dLen2,0===T&&(T=.1),L=T,u=(T/=y+1)/i,1===t)O=(I=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(f[P],v,d[1])).dLen1,c=(E=I.dLen2)/T,y=(O-T)/T;else if(0===t)T=(I=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(f[P],v,d[0])).dLen1,p=(A=I.dLen2)/T,(w=SuperMap.Plot.PlottingUtil.distance(f[P],f[P-1]))<2*T&&(T=.5*w),O=(I=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(f[P],v,d[1])).dLen1,c=(E=I.dLen2)/T,(y=(L-T)/T)<.1&&(c=E/(T=L/(1+(y=.1))),p=A/T),u=T/i;else if(2===t)u=T/i;else{h=SuperMap.Plot.PlottingUtil.distance(e,n)/l}A=T*p,(w=SuperMap.Plot.PlottingUtil.distance(f[P],f[P-1]))<2*T&&(A=(T=.5*w)*p,u=T/i),this.scaleValues[0]=u,this.scaleValues[1]=p,this.scaleValues[2]=c,this.scaleValues[3]=y,this.scaleValues[4]=h}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],i=[],n=[],l=SuperMap.Plot.PlottingUtil.clonePoints(t),r=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(l,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),a=r.arrowTouLen,s=r.leftBodyPts,u=r.rightBodyPts;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var p=[];p.push(s[s.length-1]),p.push(u[u.length-1]);var c=[];c.push(this.scaleValues[2]),c.push(this.scaleValues[3]),c.push(0),c.push(0);for(var y=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(l,p,c,a,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),h=0;h<s.length;h++)e.push(s[h]),o.push(s[h]);for(var P=0;P<y.length;P++)e.push(y[P]),n.push(y[P]);for(var f=u.length-1;f>=0;f--)e.push(u[f]),i.push(u[f])}return{shapePts:e,leftBodyPts:o,rightBodyPts:i,arrowHeadPts:n}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var i=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)){var n=this.operateCtrlPts(t);e=n.length,e--;for(var l=[],r=0;r<this.scaleValues.length;r++)l.push(this.scaleValues[r]);var a=this.genArrowBodyPts(i,n,l),s=a.ArrowBodyCenterPts,u=this.genAtPts(e,s,l,a.ArrowTouLen),p=this.calc3rdScalePt(e,s,l,a.ArrowTouLen);return o.push(new SuperMap.Geometry.Point(a.LeftBodyPtsTemp[e].x,a.LeftBodyPtsTemp[e].y)),o.push(new SuperMap.Geometry.Point(u[2].x,u[2].y)),o.push(new SuperMap.Geometry.Point(p.x,p.y)),o}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,i=((e[0].y+e[1].y)/2+e[2].y)/2,n=new SuperMap.Geometry.Point(o,i),l=e[2];e[2]=n,e.push(l)}return e}},{key:"genArrowBodyPts",value:function(t,e,o){var i,n,l,r=[],a=[],s=[],u=[],p=[],c=[],y=e.length;if(y--,o.length<this.calcScaleValueCount(y)){var h=this.calcDefaultScaleValues(y);n=h[0],l=h[1]}else n=o[0],l=o[1];var P=SuperMap.Plot.PlottingUtil.clonePoints(e),f=(P[0].x+P[1].x)/2,S=(P[0].y+P[1].y)/2,g=Math.abs(f-P[2].x),d=Math.abs(S-P[2].y),M=0;if(g>0&&d>0){var m=1/(f-P[2].x),v=-1/(S-P[2].y),b=1*P[2].y/(S-P[2].y)-1*P[2].x/(f-P[2].x);M=Math.abs(m*P[0].x+v*P[0].y+b)/Math.sqrt(m*m+v*v)}else d<=1e-4?M=Math.abs(S-P[1].y):g<=1e-4&&(M=Math.abs(f-P[1].x));var T=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M,P[2],new SuperMap.Geometry.Point(f,S)),L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(P[1],P[2],P[0]);L?(r[1]=P[1],a[1]=P[0]):(r[1]=P[0],a[1]=P[1]),P[1]=new SuperMap.Geometry.Point((P[0].x+P[1].x)/2,(P[0].y+P[1].y)/2);var A=Math.sqrt((T.pntLeft.x-T.pntRight.x)*(T.pntLeft.x-T.pntRight.x)+(T.pntLeft.y-T.pntRight.y)*(T.pntLeft.y-T.pntRight.y))*this.sv_AtWidthDivAwWidth,O=(i=A*this.sv_AtLenDivAtWidth)*l;SuperMap.Plot.PlottingUtil.equalFuzzy(n,0)||(O=(i=t*n)*l);var E,w,x=SuperMap.Plot.PlottingUtil.distance(P[y],P[y-1]),C=2*i;x<C&&(O=(i=x/2)*l),P.push(P[y].clone()),E=0,w=0;var R=0,I=[];for(R=2;R<=y;R++)E+=SuperMap.Plot.PlottingUtil.distance(P[R],P[R-1]);for(E-=i,R=2;R<=y-1;R++)w+=SuperMap.Plot.PlottingUtil.distance(P[R],P[R-1]),I[R]=O+(A-O)*Math.pow((E-w)/E,this.sv_AtScaleParameter);I[y]=O;var _,U,N=new SuperMap.Geometry.Point(0,0),D=new SuperMap.Geometry.Point(0,0),B=new SuperMap.Geometry.Point(0,0);for(R=2;R<=y-1;R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,P[R-1],P[R],P[R+1],D,B),R===y-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,P[y],P[y-1],B,N),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I[R],D,P[R]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(B,D,_.pntRight))?(r[R]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),a[R]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)):(r[R]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),a[R]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));for(Math.sqrt(1*(P[y].x-N.x)*(P[y].x-N.x)+1*(P[y].y-N.y)*(P[y].y-N.y))>0&&(P[y]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(i,P[y],N)),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O,P[y+1],P[y]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(P[y],P[y+1],_.pntLeft))?(a[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),r[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y)):(a[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),r[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)),R=2;R<y;R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[R-1],r[R],r[R+1],D,B),s[R]=new SuperMap.Geometry.Point(D.x,D.y),u[R]=new SuperMap.Geometry.Point(B.x,B.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[R-1],a[R],a[R+1],D,B),p[R]=new SuperMap.Geometry.Point(D.x,D.y),c[R]=new SuperMap.Geometry.Point(B.x,B.y),2===R&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],s[2],N),u[R]=new SuperMap.Geometry.Point(N.x,N.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],p[2],N),c[R]=new SuperMap.Geometry.Point(N.x,N.y)),R===y-1&&(C=(x=SuperMap.Plot.PlottingUtil.distance(r[y],r[y-1]))/3,(U=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(C,P[y],P[y+1])).x+=r[y].x-P[y].x,U.y+=r[y].y-P[y].y,C=(x=A-O)*Math.pow(C/E,this.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(C,r[y],U),s[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),C=(x=SuperMap.Plot.PlottingUtil.distance(a[y],a[y-1]))/3,(U=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(C,P[y],P[y+1])).x+=a[y].x-P[y].x,U.y+=a[y].y-P[y].y,C=(x=A-O)*Math.pow(C/E,this.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(C,a[y],U),p[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));return{ArrowBodyCenterPts:SuperMap.Plot.PlottingUtil.clonePoints(P),LeftBodyPtsTemp:r,RightBodyPtsTemp:a,LeftBodyPtsLeftCtrlPts:s,LeftBodyPtsRightCtrlPts:u,RightBodyPtsLeftCtrlPts:p,RightBodyPtsRightCtrlPts:c,ArrowTouLen:i}}},{key:"calcScaleValueCount",value:function(){return 4}},{key:"calcDefaultScaleValues",value:function(){var t=[];return t.push(this.sv1_DefaultAtLenDivAbLen),t.push(this.sv2_DefaultAjWidthDivAtLen),t.push(this.sv3_DefaultAeWidthDivAtLen),t.push(this.sv4_DefaultAeLenDivAtLen),t}},{key:"genAtPts",value:function(t,e,o,i){var n=o[2],l=[],r=i*o[3],a=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(r,e[t],e[t+1]);r=i*n;var s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[t+1],a);return l.push(new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y)),l.push(e[t+1]),l.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y)),l}},{key:"calc3rdScalePt",value:function(t,e,o,i){var n=i*o[3];return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(n,e[t],e[t+1])}}]),e}();SuperMap.Plot.AlgoSymbol1011=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1010=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(0),o.scaleValues.push(.148),o.scaleValues.push(.4),o.scaleValues.push(.312),o.scaleValues.push(.2)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1010",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.arrowMeshs(t);if(SuperMap.Plot.PlottingUtil.clearSamePts(e.shapePts),0!==e.shapePts.length){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.shapePts,{surroundLineFlag:!1}),this.scalePoints=[];for(var o=0;o<e.m_scalePoints.length;o++)this.addScalePoint(e.m_scalePoints[o])}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);this.scaleValues.length<4&&(this.scaleValues.push(0),this.scaleValues.push(.148),this.scaleValues.push(.4),this.scaleValues.push(.312),this.scaleValues.push(.2));var i,n,l,r,a=o.length;if(a<=2)return;this.scaleValues.length<4?(i=0,n=.148,l=.4,r=.312):(i=this.scaleValues[0],n=this.scaleValues[1],l=this.scaleValues[2],r=this.scaleValues[3]);var s=SuperMap.Plot.PlottingUtil.polylineDistance(o),u=this.operateCtrlPts(o);a=u.length,a--;for(var p=[],c=0;c<this.scalePoints.length;c++)p.push(this.scalePoints[c].clone());if(0===p.length)return;if(p[t]=e.clone(),3===t){var y=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(o,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),h=new SuperMap.Geometry.Point(.5*(y.leftBodyPts[0].x+y.rightBodyPts[0].x),.5*(y.leftBodyPts[0].y+y.rightBodyPts[0].y)),P=SuperMap.Plot.PlottingUtil.distance(y.leftBodyPts[0],y.rightBodyPts[0]);this.scaleValues[4]=SuperMap.Plot.PlottingUtil.distance(h,e)/P}else{var f,S,g=a-1;f=a<=3?new SuperMap.Geometry.Point((u[0].x+u[1].x)/2,(u[0].y+u[1].y)/2):u[g-1].clone();var d,M,m,v,b,T,L=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0),O=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,f,u[g],u[g+1],A,O),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,u[a],u[a-1],O,L),S=L.clone();var E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[a],S,p[2]);d=E.dLen1,E.dLen2,0===d&&(d=.1),M=d,i=(d/=r+1)/s,1===t?(v=(E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[a],S,p[1])).dLen1,l=(b=E.dLen2)/d,r=(v-d)/d):0===t?(d=(E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[a],S,p[0])).dLen1,n=(m=E.dLen2)/d,(T=SuperMap.Plot.PlottingUtil.distance(u[a],u[a-1]))<2*d&&(d=.5*T),v=(E=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(u[a],S,p[1])).dLen1,l=(b=E.dLen2)/d,(r=(M-d)/d)<.1&&(l=b/(d=M/(1+(r=.1))),n=m/d),i=d/s):2===t&&(i=d/s),m=d*n,(T=SuperMap.Plot.PlottingUtil.distance(u[a],u[a-1]))<2*d&&(m=(d=.5*T)*n,i=d/s),this.scaleValues[0]=i,this.scaleValues[1]=n,this.scaleValues[2]=l,this.scaleValues[3]=r}}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],i=[],n=[],l=[],r=[],a=SuperMap.Plot.PlottingUtil.clonePoints(t),s=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(a,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),u=s.arrowTouLen,p=s.leftBodyPts,c=s.rightBodyPts;if(a=s.OpectrlPoints,!SuperMap.Plot.PlottingUtil.equalFuzzy(u,0)){var y=[];y.push(p[p.length-1]),y.push(c[c.length-1]);var h=[];h.push(this.scaleValues[2]),h.push(this.scaleValues[3]),h.push(0),h.push(0);var P=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(a,y,h,u,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),f=[];f.push(p[0]),f.push(c[0]);for(var S,g=SuperMap.Plot.ArrowToolkit.generateArrowTailShapePts(t,f,this.scaleValues[4],SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL_POLYBODY),d=0;d<p.length;d++)e.push(p[d]),o.push(p[d]);for(var M=0;M<P.length;M++)e.push(P[M]),n.push(P[M]);for(var m=c.length-1;m>=0;m--)e.push(c[m]),i.push(c[m]);for(var v=1;v<g.length;v++)e.push(g[v]),l.push(g[v]);var b=a.length;b-=2;var T=u*this.scaleValues[3];S=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(T,a[b],a[b+1]);var L=new SuperMap.Geometry.Point(o[o.length-1].x,o[o.length-1].y);L.isScalePoint=!0,L.tag=0,r.push(L),(L=new SuperMap.Geometry.Point(n[0].x,n[0].y)).isScalePoint=!0,L.tag=1,r.push(L),(L=new SuperMap.Geometry.Point(S.x,S.y)).isScalePoint=!0,L.tag=2,r.push(L),(L=new SuperMap.Geometry.Point(g[1].x,g[1].y)).isScalePoint=!0,L.tag=3,r.push(L)}return{shapePts:e,leftBodyPts:o,rightBodyPts:i,arrowHeadPts:n,arrowTailPts:l,m_scalePoints:r}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,i=((e[0].y+e[1].y)/2+e[2].y)/2,n=new SuperMap.Geometry.Point(o,i),l=e[2];e[2]=n,e.push(l)}return e}}]),e}();SuperMap.Plot.AlgoSymbol1010=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1009=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1009",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=!1;void 0!==t[0].z&&(e=!0),this.scaleValues[0]=this.getSubSymbolScaleValue();var o=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,0,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE,!1),n=[];n.push(i[i.length-1]),n.push(i[i.length-2]);var l=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(n,o,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE),r=[];r.push(i[0]),r.push(i[1]);var a=SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine(r,o,SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL);if(e){for(var s=t.length,u=[],p=[],c=[],y=0;y<s;++y)u.push({x:t[y].x,y:t[y].y,z:t[y].z});var h,P={x:t[s-1].x,y:t[s-1].y,z:t[s-1].z},f={x:t[s-2].x,y:t[s-2].y,z:t[s-2].z};h=this.ComputeZValue(i[s-1],P,f),u.push({x:i[s-1].x,y:i[s-1].y,z:h});for(var S=0;S<l.length;++S)h=this.ComputeZValue(l[S],P,f),p.push({x:l[S].x,y:l[S].y,z:h});for(var g={x:t[1].x,y:t[1].y,z:t[1].z},d={x:t[0].x,y:t[0].y,z:t[0].z},M=0;M<a.length;++M)h=this.ComputeZValue(a[M],g,d),c.push({x:a[M].x,y:a[M].y,z:h});this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,p),0!==c.length&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c)}else{this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i,{surroundLineFlag:!1}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l),0!==a.length&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a)}}}}]),e}();SuperMap.Plot.AlgoSymbol1009=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1008=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1008",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues[0]=this.getSubSymbolScaleValue();var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],o=Math.sqrt(e*e/3),i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,o,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER,!0),n=[];n.push(t[t.length-1]),n.push(i[i.length-1]);var l=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(n,e,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL);i.push(t[t.length-1]),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);l.length>0&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{surroundLineFlag:!1,fillLimit:!0,fill:!0,lineTypeLimit:!0})}}}]),e}();SuperMap.Plot.AlgoSymbol1008=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1007=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1007",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=!1;void 0!==t[0].z&&(e=!0),this.scaleValues[0]=this.getSubSymbolScaleValue();var o=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],i=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,o,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE,!0),n=[];n.push(t[t.length-1]),n.push(i[i.length-1]);var l=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(n,o,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID);if(e){for(var r=t.length,a=[],s=[],u=0;u<r;++u)a.push({x:i[u].x,y:i[u].y,z:t[u].z});var p={x:t[r-1].x,y:t[r-1].y,z:t[r-1].z},c={x:t[r-2].x,y:t[r-2].y,z:t[r-2].z},y=this.ComputeZValue(i[r-1],p,c);a[r-1].z=y;for(var h=0;h<l.length;++h){var P=this.ComputeZValue(l[h],p,c);s.push({x:l[h].x,y:l[h].y,z:P})}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a);s.length>0&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}else{this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i);l.length>0&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0})}}}}]),e}();SuperMap.Plot.AlgoSymbol1007=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1006=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.QIANJI_RATE1=9,o.QIANJI_RATE2=20,o.QIANJI_RATE4=5,o.QIANJI_RATE3=1/3,o.QIANJI_TAIL_RATE1=8,o.QIANJI_TAIL_RATE2=3,o.QIANJI_TAIL_RATE3=.6,o.SV1_Default=.25,o.SV1_MinValue=0,o.SV1_MaxValue=.5,o.DEFAULT_ARROW_TAIL_POS=.4,o.SCALE_VALUE_COUNT=1,o.MIN_LEN_LeftToRightCenter=1e-7,o.SCALE_AT=1/3,o.SCALE_ATAJ=1/7,o.SCALE_ATAE=1/3,o.SCALE_AW=2/3,o.SCALE_ATAJctrlDefSide=.8,o.SCALE_ATAJctrlSameSide=2/3,o.SCALE_MM_LEFT=.25,o.SCALE_MM_RIGHT=.75,o.BEZIER_K1=1/3,o.QIANJI_OPERATE_RATE1=1,0===o.scaleValues.length&&o.scaleValues.push(o.SV1_Default),o.m_dMaxDis=0,o.m_bIsAnimation=!1,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1006",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init(),this.m_scalePoints=[];var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=e.length,i=!1;void 0!==e[0].z&&(i=!0);var n=this.arrowMeshs(t);if(i){for(var l=[],r=0;r<o;r++)l.push(e[r]);var a=n.LeftArowLeftBody,s=n.LeftArowHead,u=n.LeftArowRightBody,p=n.RightArowLeftBody,c=n.RightArowHead,y=n.RightArowRightBody;if(0==a.length)return!1;var h=[],P=[],f=[];if(3==l.length)a[0].x==l[0].x&&a[0].y==l[0].y?(P.push(l[0]),P.push(l[2]),f.push(l[1]),f.push(l[2])):(P.push(l[1]),P.push(l[2]),f.push(l[0]),f.push(l[2]));else{if(4!=l.length)return!1;a[0].x==l[0].x&&a[0].y==l[0].y?(P.push(l[0]),f.push(l[1])):(P.push(l[1]),f.push(l[0])),s[1].x==l[2].x&&s[1].y==l[2].y?(P.push(l[2]),f.push(l[3])):(P.push(l[3]),f.push(l[2]))}var S=new SuperMap.Geometry.Point;S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(a[a.length-1],{x:P[0].x,y:P[0].y},{x:P[1].x,y:P[1].y}).projectPoint;var g=this.ComputeZValue(S,P[1],P[0]),d=[];this.ComputeHeight(a,d,P[0].z,g),h=h.concat(d);for(var M=0;M<s.length;M++){S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(s[M],{x:P[0].x,y:P[0].y},{x:P[1].x,y:P[1].y}).projectPoint;var m=this.ComputeZValue(S,P[1],P[0]);h.push({x:s[M].x,y:s[M].y,z:m})}S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(u[0],{x:P[0].x,y:P[0].y},{x:P[1].x,y:P[1].y}).projectPoint,this.ComputeZValue(S,P[1],P[0]),S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(u[u.length-1],{x:P[0].x,y:P[0].y},{x:P[1].x,y:P[1].y}).projectPoint;var v=this.ComputeZValue(S,P[1],P[0]);S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(p[0],{x:f[0].x,y:f[0].y},{x:f[1].x,y:f[1].y}).projectPoint;var b=(this.ComputeZValue(S,f[1],f[0])+v)/2,T=[];this.ComputeHeight(u,T,g,b),h=h.concat(T),S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(p[p.length-1],{x:f[0].x,y:f[0].y},{x:f[1].x,y:f[1].y}).projectPoint;var L=this.ComputeZValue(S,f[1],f[0]),A=[];this.ComputeHeight(p,A,b,L),h=h.concat(A);for(var O=0;O<c.length;O++){S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(c[O],{x:f[0].x,y:f[0].y},{x:f[1].x,y:f[1].y}).projectPoint;var E=this.ComputeZValue(S,f[1],f[0]);h.push({x:c[O].x,y:c[O].y,z:E})}S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(y[0],{x:f[0].x,y:f[0].y},{x:f[1].x,y:f[1].y}).projectPoint;var w=this.ComputeZValue(S,f[1],f[0]),x=[];this.ComputeHeight(y,x,w,f[0].z),(h=h.concat(x)).length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,h,{surroundLineFlag:!1}),this.m_scalePoints.length>0&&(this.m_scalePoints[0]={x:this.m_scalePoints[0].x,y:this.m_scalePoints[0].y,z:b});for(var C=0;C<this.m_scalePoints.length;C++)this.m_scalePoints[C].isScalePoint=!0,this.m_scalePoints[C].tag=C,this.addScalePoint(this.m_scalePoints[C]);return!0}var R=n.shapePts;R.length>0&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,R,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,R,{surroundLineFlag:!1})),this.scalePoints=[];for(var I=0;I<this.m_scalePoints.length;I++)this.m_scalePoints[I].isScalePoint=!0,this.m_scalePoints[I].tag=I,this.addScalePoint(this.m_scalePoints[I])}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o,i=SuperMap.Plot.PlottingUtil.operateControlPoints(this.controlPoints),n=new SuperMap.Geometry.Point((i[0].x+i[1].x)/2,(i[0].y+i[1].y)/2),l=new SuperMap.Geometry.Point((i[2].x+i[3].x)/2,(i[2].y+i[3].y)/2),r=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,n,l);if(r.isOnline){var a=SuperMap.Plot.PlottingUtil.distance(r.projectPoint,n),s=SuperMap.Plot.PlottingUtil.distance(n,l);(o=SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)?this.SV1_MinValue:a/s)>this.SV1_MaxValue&&(o=this.SV1_MaxValue)}else o=SuperMap.Plot.PlottingUtil.distance(r.projectPoint,n)<SuperMap.Plot.PlottingUtil.distance(r.projectPoint,l)?this.SV1_MinValue:this.SV1_MaxValue;this.scaleValues=[],this.scaleValues.push(o)}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=new SuperMap.Plot.Path2D,o=[];this.m_bIsAnimation&&4==t.length?o=SuperMap.Plot.PlottingUtil.clonePoints(t):(o=SuperMap.Plot.PlottingUtil.operateControlPoints(t),void 0!==t[0].z&&(o[o.length-1].z=o[o.length-2].z));var i=this.scaleValues[0],n=SuperMap.Plot.PlottingUtil.distance(o[0],o[3]),l=SuperMap.Plot.PlottingUtil.distance(o[1],o[2]),r=o[1].clone(),a=.5*(o[0].x+o[3].x),s=.5*(o[0].y+o[3].y),u=new SuperMap.Geometry.Point(a,s),p=.5*(o[1].x+o[2].x),c=.5*(o[1].y+o[2].y),y=new SuperMap.Geometry.Point(p,c),h=SuperMap.Plot.PlottingUtil.distance(u,y);h<this.MIN_LEN_LeftToRightCenter&&(h=this.MIN_LEN_LeftToRightCenter),u.x=a+n*(a-p)/(h*this.QIANJI_RATE1),u.y=s+n*(s-c)/(h*this.QIANJI_RATE1),y.x=p+l*(p-a)/(h*this.QIANJI_RATE1),y.y=c+l*(c-s)/(h*this.QIANJI_RATE1);var P=new SuperMap.Geometry.Point(0,0),f=new SuperMap.Geometry.Point(0,0);P.x=a+n*(a-p)/(h*this.QIANJI_RATE2),P.y=s+n*(s-c)/(h*this.QIANJI_RATE2),f.x=p+l*(p-a)/(h*this.QIANJI_RATE2),f.y=c+l*(c-s)/(h*this.QIANJI_RATE2);var S=new SuperMap.Geometry.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),g=new SuperMap.Geometry.Point((o[2].x+o[3].x)/2,(o[2].y+o[3].y)/2),d=o[3].x-(o[3].x-u.x)*this.SCALE_AT,M=o[3].y-(o[3].y-u.y)*this.SCALE_AT,m=o[2].x-(o[2].x-y.x)*this.SCALE_AT,v=o[2].y-(o[2].y-y.y)*this.SCALE_AT,b=new SuperMap.Geometry.Point(0,0),T=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0);T.x=d-(M-o[3].y)*this.SCALE_ATAJ,T.y=M+(d-o[3].x)*this.SCALE_ATAJ,b.x=d+(M-o[3].y)*this.SCALE_ATAJ,b.y=M-(d-o[3].x)*this.SCALE_ATAJ,A.x=m-(v-o[2].y)*this.SCALE_ATAJ,A.y=v+(m-o[2].x)*this.SCALE_ATAJ,L.x=m+(v-o[2].y)*this.SCALE_ATAJ,L.y=v-(m-o[2].x)*this.SCALE_ATAJ;var O=new SuperMap.Geometry.Point(0,0),E=new SuperMap.Geometry.Point(0,0),w=new SuperMap.Geometry.Point(0,0),x=new SuperMap.Geometry.Point(0,0);O.x=3*b.x-2*d-(o[3].x-d)*this.SCALE_ATAE,O.y=3*b.y-2*M-(o[3].y-M)*this.SCALE_ATAE,E.x=3*T.x-2*d-(o[3].x-d)*this.SCALE_ATAE,E.y=3*T.y-2*M-(o[3].y-M)*this.SCALE_ATAE,w.x=3*L.x-2*m-(o[2].x-m)*this.SCALE_ATAE,w.y=3*L.y-2*v-(o[2].y-v)*this.SCALE_ATAE,x.x=3*A.x-2*m-(o[2].x-m)*this.SCALE_ATAE,x.y=3*A.y-2*v-(o[2].y-v)*this.SCALE_ATAE,u.x=a+n*(a-p)/(h*this.QIANJI_RATE4),u.y=s+n*(s-c)/(h*this.QIANJI_RATE4),y.x=p+l*(p-a)/(h*this.QIANJI_RATE4),y.y=c+l*(c-s)/(h*this.QIANJI_RATE4);var C=new SuperMap.Geometry.Point(0,0);C.x=o[0].x+(u.x-o[0].x)*this.SCALE_AW,C.y=o[0].y+(u.y-o[0].y)*this.SCALE_AW;var R=new SuperMap.Geometry.Point(0,0);R.x=o[1].x+(y.x-o[1].x)*this.SCALE_AW,R.y=o[1].y+(y.y-o[1].y)*this.SCALE_AW;var I=new SuperMap.Geometry.Point(0,0);I.x=b.x+(u.x-b.x)*this.SCALE_ATAJctrlSameSide,I.y=b.y+(u.y-b.y)*this.SCALE_ATAJctrlSameSide;var _=new SuperMap.Geometry.Point(0,0);_.x=A.x+(y.x-A.x)*this.SCALE_ATAJctrlSameSide,_.y=A.y+(y.y-A.y)*this.SCALE_ATAJctrlSameSide;var U=new SuperMap.Geometry.Point(0,0);U.x=T.x+(P.x-T.x)*this.SCALE_ATAJctrlDefSide,U.y=T.y+(P.y-T.y)*this.SCALE_ATAJctrlDefSide;var N=new SuperMap.Geometry.Point(0,0);N.x=L.x+(f.x-L.x)*this.SCALE_ATAJctrlDefSide,N.y=L.y+(f.y-L.y)*this.SCALE_ATAJctrlDefSide;var D=new SuperMap.Geometry.Point(0,0);D.x=S.x+(g.x-S.x)*i,D.y=S.y+(g.y-S.y)*i,this.m_scalePoints.push(new SuperMap.Geometry.Point(D.x,D.y));var B=new SuperMap.Geometry.Point(0,0),k=new SuperMap.Geometry.Point(0,0);B.x=o[0].x+(o[3].x-o[0].x)*i,B.y=o[0].y+(o[3].y-o[0].y)*i,k.x=o[1].x+(o[2].x-o[1].x)*i,k.y=o[1].y+(o[2].y-o[1].y)*i,B.x=B.x+(D.x-B.x)*this.QIANJI_RATE3,B.y=B.y+(D.y-B.y)*this.QIANJI_RATE3,k.x=k.x+(D.x-k.x)*this.QIANJI_RATE3,k.y=k.y+(D.y-k.y)*this.QIANJI_RATE3;var G=[];G.push(o[0].clone()),G.push(C.clone()),G.push(I.clone()),G.push(b.clone()),e.MoveTo(G[0]),e.CurveTo(G[1],G[2],G[3]);var V,Y,j=[],F=[],z=[],W=[],H=[],q=[];for(e.ToSubPathPolygons(q),V=q[0],Y=q[0].length,e.LineTo(O),e.LineTo(o[3]),e.LineTo(E),(G=[]).push(T),G.push(U),G.push(B),G.push(D),e.LineTo(G[0]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)j.push(q[0][Y]);for(Y=q[0].length,e.CurveTo(G[1],G[2],G[3]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)F.push(q[0][Y]);for(Y=q[0].length,(G=[]).push(k),G.push(N),G.push(L),e.CurveTo(G[0],G[1],G[2]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)z.push(q[0][Y]);for(Y=q[0].length,e.LineTo(w),e.LineTo(o[2]),e.LineTo(x),(G=[]).push(A),G.push(_),G.push(R),G.push(r),e.LineTo(G[0]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)W.push(q[0][Y]);for(Y=q[0].length,e.CurveTo(G[1],G[2],G[3]),q=[],e.ToSubPathPolygons(q);Y<q[0].length;Y++)H.push(q[0][Y]);return q=[],e.ToSubPathPolygons(q),{shapePts:q[0],LeftArowLeftBody:V,LeftArowHead:j,LeftArowRightBody:F,RightArowLeftBody:z,RightArowHead:W,RightArowRightBody:H}}}]),e}();SuperMap.Plot.AlgoSymbol1006=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1005=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.1),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1005",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.scaleValues[0]=this.getSubSymbolScaleValue();var e=SuperMap.Plot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],o=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,e,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER,!1),i=[];i.push(o[o.length-1]),i.push(o[o.length-2]);var n=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(i,e,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o),n.length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n)}}}]),e}();SuperMap.Plot.AlgoSymbol1005=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1004=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.MAX_ARRAY_SIZE=128,o.sv1_DefaultAtLenDivAbLen=0,o.sv2_DefaultAjWidthDivAtLen=.148,o.sv3_DefaultAeWidthDivAtLen=.4,o.sv4_DefaultAeLenDivAtLen=.312,o.sv_AtScaleParameter=1.5,o.sv_AtLenDivAtWidth=1.35,o.sv_AtWidthDivAwWidth=.5,o.sv_defaultAwLenDivAbLen=.15,0===o.scaleValues.length&&(o.scaleValues.push(o.sv1_DefaultAtLenDivAbLen),o.scaleValues.push(o.sv2_DefaultAjWidthDivAtLen),o.scaleValues.push(o.sv3_DefaultAeWidthDivAtLen),o.scaleValues.push(o.sv4_DefaultAeLenDivAtLen)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1004",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init(),this.applyUse()}},{key:"applyUse",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.arrowMeshs(t);SuperMap.Plot.PlottingUtil.clearSamePts(e.shapePts);var o=SuperMap.Plot.PlottingUtil.clonePoints(t),i=o.length,n=!1;if(void 0!==o[0].z&&(n=!0),n){for(var l=e.leftBodyPts,r=e.rightBodyPts,a=e.arrowHeadPts,s=e.shapePts,u=[],p=0;p<s.length;p++)u.push({x:s[p].x,y:s[p].y,z:0});if(0==s.length)return!1;var c=this.updateScalePoints(t);if(this.scalePoints=[],3!=c.length)c=[];else for(var y=0;y<c.length;y++)c[y].isScalePoint=!0,c[y].tag=y,this.addScalePoint(c[y]);var h=[],P={x:(o[0].x+o[1].x)/2,y:(o[0].y+o[1].y)/2},f={x:(l[l.length-1].x+r[0].x)/2,y:(l[l.length-1].y+r[0].y)/2},S=this.ComputeZValue(f,o[i-1],o[i-2]),g=0,d=0;l[0].x==o[0].x&&l[0].y==o[0].y?(g=o[0].z,d=o[1].z):(g=o[1].z,d=o[0].z),h.push({x:P.x,y:P.y,z:g});for(var M=2;M<i-1;M++)h.push(o[M]);h.push({x:f.x,y:f.y,z:S});var m=[];this.ComputeBeizerZValueByDis(h,l,m),(h=[]).push({x:f.x,y:f.y,z:S});for(var v=i-2;v>=2;v--)h.push(o[v]);h.push({x:P.x,y:P.y,z:d});var b=[];this.ComputeBeizerZValueByDis(h,r,b);for(var T=[],L=0;L<a.length;L++){var A=this.ComputeZValue(a[L],o[i-1],o[i-2]);T.push({x:a[L].x,y:a[L].y,z:A})}if(m.length>0&&b.length>0&&T.length>0){u=(u=(u=(u=[]).concat(m)).concat(T)).concat(b),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u,{surroundLineFlag:!1});for(var O=[],E=0;E<c.length;E++){var w=this.ComputeZValue(c[E],o[i-1],o[i-2]),x=new SuperMap.Geometry.Point(c[E].x,c[E].y);x.z=w,O.push(x)}3!=c.length?this.scalePoints=[]:this.scalePoints=this.scalePoints.concat(O)}}else{if(0==e.shapePts.length)return;if(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.shapePts,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e.shapePts,{surroundLineFlag:!1}),c=this.updateScalePoints(t),this.scalePoints=[],3!=c.length)c=[];else for(var C=0;C<c.length;C++)c[C].isScalePoint=!0,c[C].tag=C,this.addScalePoint(c[C])}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.scaleValues.length<4&&(this.scaleValues.push(this.sv1_DefaultAtLenDivAbLen),this.scaleValues.push(this.sv2_DefaultAjWidthDivAtLen),this.scaleValues.push(this.sv3_DefaultAeWidthDivAtLen),this.scaleValues.push(this.sv4_DefaultAeLenDivAtLen));var i=o.length;if(i<=2)return;var n,l,r,a,s=this.operateCtrlPts(o);i=s.length,i--;var u=this.calcScaleValueCount(o.length);if(this.scaleValues.length<u){var p=this.calcDefaultScaleValues(i);n=p[0],l=p[1],r=p[2],a=p[3]}else n=this.scaleValues[0],l=this.scaleValues[1],r=this.scaleValues[2],a=this.scaleValues[3];for(var c=SuperMap.Plot.PlottingUtil.polylineDistance(o),y=[],h=0;h<this.scalePoints.length;h++)y.push(this.scalePoints[h].clone());if(0==y.length)return;y[t]=e.clone();var P,f,S=i-1;P=i<=3?new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2):s[S-1].clone();var g,d,M,m,v,b,T=new SuperMap.Geometry.Point(0,0),L=new SuperMap.Geometry.Point(0,0),A=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,P,s[S],s[S+1],L,A),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,s[i],s[i-1],A,T),f=T.clone();var O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[i],f,y[2]);g=O.dLen1,O.dLen2,0==g&&(g=.1),d=g,n=(g/=a+1)/c,1==t?(m=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[i],f,y[1])).dLen1,r=(v=O.dLen2)/g,a=(m-g)/g):0==t?(g=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[i],f,y[0])).dLen1,l=(M=O.dLen2)/g,(b=SuperMap.Plot.PlottingUtil.distance(s[i],s[i-1]))<2*g&&(g=.5*b),m=(O=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(s[i],f,y[1])).dLen1,r=(v=O.dLen2)/g,(a=(d-g)/g)<.1&&(r=v/(g=d/(1+(a=.1))),l=M/g),n=g/c):2==t&&(n=g/c),M=g*l,(b=SuperMap.Plot.PlottingUtil.distance(s[i],s[i-1]))<2*g&&(M=(g=.5*b)*l,n=g/c),this.scaleValues[0]=n,this.scaleValues[1]=l,this.scaleValues[2]=r,this.scaleValues[3]=a}}},{key:"arrowMeshs",value:function(t){var e=[],o=[],i=[],n=[],l=SuperMap.Plot.PlottingUtil.clonePoints(t),r=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(l,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER),a=r.arrowTouLen,s=r.leftBodyPts,u=r.rightBodyPts;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var p=[];p.push(s[s.length-1]),p.push(u[u.length-1]);var c=[];c.push(this.scaleValues[2]),c.push(this.scaleValues[3]),c.push(0),c.push(0);for(var y=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(l,p,c,a,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR),h=0;h<s.length;h++)e.push(s[h]),o.push(s[h]);for(var P=0;P<y.length;P++)e.push(y[P]),n.push(y[P]);for(var f=u.length-1;f>=0;f--)e.push(u[f]),i.push(u[f])}return{shapePts:e,leftBodyPts:o,rightBodyPts:i,arrowHeadPts:n}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var i=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(!SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)){var n=this.operateCtrlPts(t);e=n.length,e--;for(var l=[],r=0;r<this.scaleValues.length;r++)l.push(this.scaleValues[r]);var a=this.genArrowBodyPts(i,n,l),s=a.ArrowBodyCenterPts,u=this.genAtPts(e,s,l,a.ArrowTouLen),p=this.calc3rdScalePt(e,s,l,a.ArrowTouLen);return o.push(new SuperMap.Geometry.Point(a.LeftBodyPtsTemp[e].x,a.LeftBodyPtsTemp[e].y)),o.push(new SuperMap.Geometry.Point(u[2].x,u[2].y)),o.push(new SuperMap.Geometry.Point(p.x,p.y)),o}}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,i=((e[0].y+e[1].y)/2+e[2].y)/2,n=new SuperMap.Geometry.Point(o,i),l=e[2];e[2]=n,e.push(l)}return e}},{key:"genArrowBodyPts",value:function(t,e,o){var i,n,l,r=[],a=[],s=[],u=[],p=[],c=[],y=e.length;if(y--,o.length<this.calcScaleValueCount(y)){var h=this.calcDefaultScaleValues(y);n=h[0],l=h[1]}else n=o[0],l=o[1];var P=SuperMap.Plot.PlottingUtil.clonePoints(e),f=(P[0].x+P[1].x)/2,S=(P[0].y+P[1].y)/2,g=Math.abs(f-P[2].x),d=Math.abs(S-P[2].y),M=0;if(g>0&&d>0){var m=1/(f-P[2].x),v=-1/(S-P[2].y),b=1*P[2].y/(S-P[2].y)-1*P[2].x/(f-P[2].x);M=Math.abs(m*P[0].x+v*P[0].y+b)/Math.sqrt(m*m+v*v)}else d<=1e-4?M=Math.abs(S-P[1].y):g<=1e-4&&(M=Math.abs(f-P[1].x));var T=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(M,P[2],new SuperMap.Geometry.Point(f,S)),L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(P[1],P[2],P[0]);L?(r[1]=P[1],a[1]=P[0]):(r[1]=P[0],a[1]=P[1]),P[1]=new SuperMap.Geometry.Point((P[0].x+P[1].x)/2,(P[0].y+P[1].y)/2);var A=Math.sqrt((T.pntLeft.x-T.pntRight.x)*(T.pntLeft.x-T.pntRight.x)+(T.pntLeft.y-T.pntRight.y)*(T.pntLeft.y-T.pntRight.y))*this.sv_AtWidthDivAwWidth,O=(i=A*this.sv_AtLenDivAtWidth)*l;SuperMap.Plot.PlottingUtil.equalFuzzy(n,0)||(O=(i=t*n)*l);var E,w,x=SuperMap.Plot.PlottingUtil.distance(P[y],P[y-1]),C=2*i;x<C&&(O=(i=x/2)*l),P.push(P[y].clone()),E=0,w=0;var R=0,I=[];for(R=2;R<=y;R++)E+=SuperMap.Plot.PlottingUtil.distance(P[R],P[R-1]);for(E-=i,R=2;R<=y-1;R++)w+=SuperMap.Plot.PlottingUtil.distance(P[R],P[R-1]),I[R]=O+(A-O)*Math.pow((E-w)/E,this.sv_AtScaleParameter);I[y]=O;var _,U,N=new SuperMap.Geometry.Point(0,0),D=new SuperMap.Geometry.Point(0,0),B=new SuperMap.Geometry.Point(0,0);for(R=2;R<=y-1;R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,P[R-1],P[R],P[R+1],D,B),R==y-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,P[y],P[y-1],B,N),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(I[R],D,P[R]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(B,D,_.pntRight))?(r[R]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),a[R]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)):(r[R]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),a[R]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));for(Math.sqrt(1*(P[y].x-N.x)*(P[y].x-N.x)+1*(P[y].y-N.y)*(P[y].y-N.y))>0&&(P[y]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(i,P[y],N)),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(O,P[y+1],P[y]),(L=SuperMap.Plot.PlottingUtil.pointIsRightToLine(P[y],P[y+1],_.pntLeft))?(a[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),r[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y)):(a[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y),r[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y)),R=2;R<y;R++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[R-1],r[R],r[R+1],D,B),s[R]=new SuperMap.Geometry.Point(D.x,D.y),u[R]=new SuperMap.Geometry.Point(B.x,B.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,a[R-1],a[R],a[R+1],D,B),p[R]=new SuperMap.Geometry.Point(D.x,D.y),c[R]=new SuperMap.Geometry.Point(B.x,B.y),2==R&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],s[2],N),u[R]=new SuperMap.Geometry.Point(N.x,N.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,a[1],a[2],p[2],N),c[R]=new SuperMap.Geometry.Point(N.x,N.y)),R==y-1&&(C=(x=SuperMap.Plot.PlottingUtil.distance(r[y],r[y-1]))/3,(U=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(C,P[y],P[y+1])).x+=r[y].x-P[y].x,U.y+=r[y].y-P[y].y,C=(x=A-O)*Math.pow(C/E,this.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(C,r[y],U),s[y]=new SuperMap.Geometry.Point(_.pntLeft.x,_.pntLeft.y),C=(x=SuperMap.Plot.PlottingUtil.distance(a[y],a[y-1]))/3,(U=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(C,P[y],P[y+1])).x+=a[y].x-P[y].x,U.y+=a[y].y-P[y].y,C=(x=A-O)*Math.pow(C/E,this.sv_AtScaleParameter),_=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(C,a[y],U),p[y]=new SuperMap.Geometry.Point(_.pntRight.x,_.pntRight.y));return{ArrowBodyCenterPts:SuperMap.Plot.PlottingUtil.clonePoints(P),LeftBodyPtsTemp:r,RightBodyPtsTemp:a,LeftBodyPtsLeftCtrlPts:s,LeftBodyPtsRightCtrlPts:u,RightBodyPtsLeftCtrlPts:p,RightBodyPtsRightCtrlPts:c,ArrowTouLen:i}}},{key:"calcScaleValueCount",value:function(){return 4}},{key:"calcDefaultScaleValues",value:function(){var t=[];return t.push(this.sv1_DefaultAtLenDivAbLen),t.push(this.sv2_DefaultAjWidthDivAtLen),t.push(this.sv3_DefaultAeWidthDivAtLen),t.push(this.sv4_DefaultAeLenDivAtLen),t}},{key:"genAtPts",value:function(t,e,o,i){var n=o[2],l=[],r=i*o[3],a=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(r,e[t],e[t+1]);r=i*n;var s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(r,e[t+1],a);return l.push(new SuperMap.Geometry.Point(s.pntLeft.x,s.pntLeft.y)),l.push(e[t+1]),l.push(new SuperMap.Geometry.Point(s.pntRight.x,s.pntRight.y)),l}},{key:"calc3rdScalePt",value:function(t,e,o,i){var n=i*o[3];return SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(n,e[t],e[t+1])}}]),e}();SuperMap.Plot.AlgoSymbol1004=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1003=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.3),o.scaleValues.push(.28),o.scaleValues.push(.433333),o.scaleValues.push(.53),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1003",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length;if(e>=this.minEditPts){if(SuperMap.Plot.PlottingUtil.equalFuzzy(this.controlPoints[0].x,this.controlPoints[1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(this.controlPoints[0].y,this.controlPoints[1].y))return;var o=SuperMap.Plot.PlottingUtil.clonePoints(t),i=!1;void 0!==o[0].z&&(i=!0);var n=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_TRAPEZOID),l=n.arrowTouLen,r=n.leftBodyPts,a=n.rightBodyPts,s=[];s.push(r[r.length-1]),s.push(a[a.length-1]);var u=[];u.push(this.scaleValues[3]),u.push(this.scaleValues[4]),u.push(0),u.push(0);var p=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(t,s,u,l,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),c=[];c=(c=c.concat(r)).concat(p);for(var y=a.length-1;y>=0;y--)c.push(a[y]);if(c.push(r[0]),i){for(var h=[],P={x:o[1].x,y:o[1].y,z:o[1].z},f={x:o[0].x,y:o[0].y,z:o[0].z},S=0;S<c.length;S++){var g=this.ComputeZValue(c[S],P,f);h.push({x:c[S].x,y:c[S].y,z:g})}var d=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),M=new SuperMap.Geometry.Point(d.x,d.y);M.isScalePoint=!0,M.tag=0,this.addScalePoint(M);var m=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);m.isScalePoint=!0,m.tag=1,this.addScalePoint(m);var v=new SuperMap.Geometry.Point(p[0].x,p[0].y);v.isScalePoint=!0,v.tag=2,this.addScalePoint(v);for(var b={x:o[e-1].x,y:o[e-1].y,z:o[e-1].z},T={x:o[e-2].x,y:o[e-2].y,z:o[e-2].z},L=[],A=0;A<this.scalePoints.length;A++){var O={x:this.scalePoints[A].x,y:this.scalePoints[A].y},E=this.ComputeZValue(O,b,T);L.push({x:O.x,y:O.y,z:E})}this.scalePoints=L,this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h)}else{var w=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),x=new SuperMap.Geometry.Point(w.x,w.y);x.isScalePoint=!0,x.tag=0,this.addScalePoint(x);var C=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);C.isScalePoint=!0,C.tag=1,this.addScalePoint(C);var R=new SuperMap.Geometry.Point(p[0].x,p[0].y);R.isScalePoint=!0,R.tag=2,this.addScalePoint(R),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,c)}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMap.Geometry.Point(this.scalePoints[0].x,this.scalePoints[0].y),i=new SuperMap.Geometry.Point(this.scalePoints[1].x,this.scalePoints[1].y),n=new SuperMap.Geometry.Point(this.scalePoints[2].x,this.scalePoints[2].y),l=this.scaleValues[0],r=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints),a=r*l;if(0==t){var s=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[0],this.controlPoints[1]),u=s.projectPoint;if(s.isOnline){var p=SuperMap.Plot.PlottingUtil.distance(u,this.controlPoints[1]);this.scaleValues[0]=p/r}}else if(1==t){var c=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,i,n).projectPoint,y=SuperMap.Plot.PlottingUtil.distance(c,o),h=a*this.scaleValues[1];this.scaleValues[1]=y/a,this.scaleValues[2]=(a*this.scaleValues[2]+y-h)/a}else if(2==t){var P=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[1],n).projectPoint,f=SuperMap.Plot.PlottingUtil.pointProjectToSegment(P,o,this.controlPoints[1]),S=f.projectPoint,g=SuperMap.Plot.PlottingUtil.distance(S,o);!0===f.inOnline?this.scaleValues[4]=-g/a:this.scaleValues[4]=g/a}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1003=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1002=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.MIN_GEOPT_COUNT=2,o.MAX_GEOPT_COUNT=1024,o.SV1_defaultATLenDivABLen=0,o.SV2_defaultAYPosScale=.65,o.SV_AJCtrl=.6,o.SV_ArrowWoCtrl=.6,o.SV2_DefaultAJWidDiviedByATLen=.148,o.SV3_DefaultAEWidDividedByATLen=.4,o.SV4_DefaultAELenDividedByATLen=.3,o.SV_ATScaleParameter=1.25,o.SV_ATLenDividedByATWid=1.35,o.SV_ATWidDividedByArrowWeiWid=.5,o.AB_VERTEX_COUNT=4,o.MIN_PTCOUNT_PERARROW=3,o.ATL_DIV_AWW=.7,o.ATL_DIV_ABL=.12,o.ATL_DIV_ABL_1=.18,o.DEFAULT_ARROW_TAIL_POS=.12,o.DUOJIANTOU_TAIL_RATE_1=8,o.DUOJIANTOU_TAIL_RATE_2=3,o.DUOJIANTOU_TAIL_RATE_3=.6,o.AB_CTRLPT_RATE1=0,o.AB_CTRLPT_RATE2=3,o.AB_CTRLPT_RATE3=.5,o.MIN_SCALEVALUE=.1,o.MAX_SCALEVALUE=1,o.m_scalePoints=null,o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1002",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init(),this.m_scalePoints=[];var t=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=this.operateCtrlPts(t),o=e.length,i=Math.floor(o/this.MIN_PTCOUNT_PERARROW),n=this.scaleValues.length;if(n<2*i-1){0==n&&(this.scaleValues.push(this.SV1_defaultATLenDivABLen),n++);for(var l=2*i-1-n,r=0;r<l;r+=2)this.scaleValues.splice(n/2+1,0,this.SV1_defaultATLenDivABLen),this.scaleValues.splice(this.scaleValues.length,0,this.SV2_defaultAYPosScale)}else if(n>2*i-1){for(var a=0;a<i;a++)this.scaleValues.push(this.SV1_defaultATLenDivABLen);for(var s=0;s<i-1;s++)this.scaleValues.push(this.SV2_defaultAYPosScale)}var u=this.arrowMeshs(e);SuperMap.Plot.PlottingUtil.clearSamePts(u.shapePts);var p=!1;if(void 0!==t[0].z&&(p=!0),p){var c=this.operateCtrlPts3D(t),y=u.arrLeftPts2D,h=u.arrRightPts2D,P=u.arrHeadPts2D;if(i!=y.length&&i!=h.length&&i!=P.length)return!1;for(var f=[],S=0;S<i;S++){for(var g=[],d=3*S;d<3*(S+1)&&d<c.length;d++)g.push(c[d]);f.push(g)}for(var M=[],m=[],v=[],b=0;b<i;b++)if(!(2>f[b].length)){for(var T=y[b][y[b].length-1],L=h[b][0],A=new SuperMap.Geometry.Point(.5*(T.x+L.x),.5*(T.y+L.y)),O=f[b][f[b].length-1],E=f[b][f[b].length-2],w=this.ComputeZValue(A,O,E),x={x:A.x,y:A.y,z:w},C=[],R=[],I=0;I<f[b].length-1;I++)if(0==b)R.push(f[b][I]);else{var _={x:f[b][I].x,y:f[b][I].y,z:.5*(f[b][I].z+f[b-1][I].z)};R.push(_)}R.push(x),this.ComputeBeizerZValueByDis(R,y[b],C),M.push(C),C=[];var U=[];U.push(x);for(var N=f[b].length-2;N>=0;N--)if(b==i-1)U.push(f[b][N]);else{var D={x:f[b][N].x,y:f[b][N].y,z:.5*(f[b][N].z+f[b+1][N].z)};U.push(D)}this.ComputeBeizerZValueByDis(U,h[b],C),m.push(C),C=[];for(var B=P[b],k=0;k<B.length;k++){var G=this.ComputeZValue(B[k],O,E);C.push({x:B[k].x,y:B[k].y,z:G})}v.push(C)}for(var V=[],Y=0;Y<i;Y++)V=(V=(V=V.concat(M[Y])).concat(v[Y])).concat(m[Y]);return SuperMap.Plot.PlottingUtil.clearSamePts(V),u.shapePts.length>0&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V,{surroundLineFlag:!1}),this.scalePoints=this.scalePoints.concat(this.m_scalePoints),!0}u.shapePts.length>0&&(this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,u.shapePts,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u.shapePts,{surroundLineFlag:!1})),this.scalePoints=[];for(var j=0;j<this.m_scalePoints.length;j++)this.m_scalePoints[j].isScalePoint=!0,this.m_scalePoints[j].tag=j,this.addScalePoint(this.m_scalePoints[j])}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=this.operateCtrlPts(this.controlPoints),i=o.length,n=Math.floor(i/this.MIN_PTCOUNT_PERARROW),l=0;if(t<n){var r=[],a=t*this.MIN_PTCOUNT_PERARROW;r[0]=o[a],r[1]=o[a+1],r[2]=o[a+2];var s=SuperMap.Plot.PlottingUtil.polylineDistance(r),u=new SuperMap.Geometry.Point(0,0),p=new SuperMap.Geometry.Point(0,0),c=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,r[0],r[1],r[2],u,p),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,r[2],r[1],p,c),l=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(r[2],c,e).dLen1/(this.SV4_DefaultAELenDividedByATLen+1)/s}else{var y=[],h=[],P=(t-n)*this.MIN_PTCOUNT_PERARROW;y[0]=o[P],y[1]=o[P+1],y[2]=o[P+2];var f=(t-n+1)*this.MIN_PTCOUNT_PERARROW;h[0]=o[f],h[1]=o[f+1],h[2]=o[f+2];var S=new SuperMap.Geometry.Point(0,0),g=new SuperMap.Geometry.Point(0,0),d=new SuperMap.Geometry.Point(0,0);S.x=.5*(y[2].x+h[2].x),g.x=.5*(y[1].x+h[1].x),d.x=.5*(y[0].x+h[0].x),S.y=.5*(y[2].y+h[2].y),g.y=.5*(y[1].y+h[1].y),d.y=.5*(y[0].y+h[0].y);var M=SuperMap.Plot.PlottingUtil.distance(S,g),m=SuperMap.Plot.PlottingUtil.distance(d,g),v=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(S,g,e),b=v.dLen1;l=b<M?b/(M+m):((b=(v=SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen(g,d,e)).dLen1)+M)/(M+m)}l>this.MAX_SCALEVALUE?l=this.MAX_SCALEVALUE:l<this.MIN_SCALEVALUE&&(l=this.MIN_SCALEVALUE),this.scaleValues[t]=l}this.calculateParts()}},{key:"arrowMeshs",value:function(t){var e=[],o=[],i=[],n=new SuperMap.Plot.Path2D,l=t.length,r=Math.floor(l/this.MIN_PTCOUNT_PERARROW),a=this.generateAWWidth(r,t),s=[],u=[],p=0,c=0,y=0,h=[];for(c=0,y=0;c<r;c++,y+=this.MIN_PTCOUNT_PERARROW){h[0]=t[y],h[1]=t[y+1],h[2]=t[y+2],p=this.scaleValues[c];var P=this.generateArrowBodyPts(h,a[c],p);p=P.dATLenDivABLen,s[c]=P.arrowBodyPts,u.push(p)}var f=[],S=0,g=0,d=0,M=[],m=[];for(c=0;c<r-1;c++,g+=this.MIN_PTCOUNT_PERARROW){d=g+this.MIN_PTCOUNT_PERARROW,M[0]=t[g],M[1]=t[g+1],M[2]=t[g+2],m[0]=t[d],m[1]=t[d+1],m[2]=t[d+2],S=this.scaleValues[r+c];var v=this.generateAYPts(M,s[c],m,s[c+1],S);f.push(v.arrowLeftYaoPts),f.push(v.arrowRightYaoPts)}var b=[],T=s[0],L=[],A=0,O=[];n.MoveTo(T[0]),n.CurveTo(T[1],T[2],T[3]),n.CurveTo(T[4],T[5],T[6]),n.ToSubPathPolygons(L),e.push(L[0]),A=L[0].length;for(var E=7;E<10;E++)n.LineTo(T[E]);for(L=[],n.ToSubPathPolygons(L);A<L[0].length;A++)O.push(L[0][A]);for(i.push(O),b.push(T[0]),b.push(t[0]),c=1,y=this.MIN_PTCOUNT_PERARROW;c<r;c++,y+=this.MIN_PTCOUNT_PERARROW){var w=s[c],x=c+c-2,C=f[x];for(n.LineTo(C[0]),n.CurveTo(C[1],C[2],C[3]),L=[],O=[],n.ToSubPathPolygons(L);A<L[0].length;A++)O.push(L[0][A]);o.push(O);var R=f[x+1];for(n.CurveTo(R[1],R[2],R[3]),L=[],O=[],n.ToSubPathPolygons(L);A<L[0].length;A++)O.push(L[0][A]);e.push(O);for(var I=7;I<10;I++)n.LineTo(w[I]);for(L=[],O=[],n.ToSubPathPolygons(L);A<L[0].length;A++)O.push(L[0][A]);i.push(O),b.push(t[y].clone())}var _=s[r-1];for(n.LineTo(_[10]),n.CurveTo(_[11],_[12],_[13]),n.CurveTo(_[14],_[15],_[16]),L=[],O=[],n.ToSubPathPolygons(L);A<L[0].length;A++)O.push(L[0][A]);o.push(O),b.push(_[16]);var U=[];return n.ToSubPathPolygons(U),{shapePts:U[0],arrLeftPts2D:e,arrRightPts2D:o,arrHeadPts2D:i}}},{key:"operateCtrlPts",value:function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=e.length,i=Math.floor(o/this.MIN_PTCOUNT_PERARROW),n=o%this.MIN_PTCOUNT_PERARROW,l=new SuperMap.Geometry.Point;if(2==n&&(l.x=.5*(e[o-2].x+e[o-1].x),l.y=.5*(e[o-2].y+e[o-1].y),l.x==e[o-1].x&&l.y==e[o-1].y||(e.push(e[o-1].clone()),e[o-1]=l,o++,i++)),o>3)for(var r=i-1,a=0,s=r;a<r;s--,a++)for(var u=s*this.MIN_PTCOUNT_PERARROW,p=0;p<u;p+=this.MIN_PTCOUNT_PERARROW){if(!SuperMap.Plot.PlottingUtil.isRight(e[p+3],e[p+1],e[p+2])){var c=e[p];e[p]=e[p+3],e[p+3]=c,c=e[p+1],e[p+1]=e[p+4],e[p+4]=c,c=e[p+2],e[p+2]=e[p+5],e[p+5]=c}}return e}},{key:"operateCtrlPts3D",value:function(t){var e=t,o=e.length,i=Math.floor(o/this.MIN_PTCOUNT_PERARROW),n={x:0,y:0,z:0};if(2==o%3&&(n.x=.5*(e[o-2].x+e[o-1].x),n.y=.5*(e[o-2].y+e[o-1].y),n.z=.5*(e[o-2].z+e[o-1].z),n.x==e[o-1].x&&n.y==e[o-1].y&&n.z==e[o-1].z||(e.push(e[o-1]),e[o-1]=n,o++,i++)),o>3)for(var l=i-1,r=0,a=l;r<l;a--,r++)for(var s=3*a,u=0;u<s;u+=3){if(!SuperMap.Plot.PlottingUtil.isRight(e[u+3],e[u+1],e[u+2])){var p=e[u];e[u]=e[u+3],e[u+3]=p,p=e[u+1],e[u+1]=e[u+4],e[u+4]=p,p=e[u+2],e[u+2]=e[u+5],e[u+5]=p}}return e}},{key:"generateAWWidth",value:function(t,e){var o=[];if(t>0)if(1==t)o.push(0);else{var i=SuperMap.Plot.PlottingUtil.distance(e[0],e[this.MIN_PTCOUNT_PERARROW]);o.push(i);for(var n=1,l=this.MIN_PTCOUNT_PERARROW;n<t-1;n++,l+=this.MIN_PTCOUNT_PERARROW){i=.5*(SuperMap.Plot.PlottingUtil.distance(e[l-this.MIN_PTCOUNT_PERARROW],e[l])+SuperMap.Plot.PlottingUtil.distance(e[l],e[l+this.MIN_PTCOUNT_PERARROW])),o.push(i)}i=SuperMap.Plot.PlottingUtil.distance(e[l-this.MIN_PTCOUNT_PERARROW],e[l]),o.push(i)}return o}},{key:"generateArrowBodyPts",value:function(t,e,o){var i=[],n=[],l=[],r=[],a=[],s=[],u=[],p=t.length-1;if(p<2)return{dATLenDivABLen:o=0,arrowBodyPts:i};var c=o,y=this.SV2_DefaultAJWidDiviedByATLen,h=this.SV3_DefaultAEWidDividedByATLen,P=this.SV4_DefaultAELenDividedByATLen,f=SuperMap.Plot.PlottingUtil.clonePoints(t),S=SuperMap.Plot.PlottingUtil.polylineDistance(f),g=0==e?S*this.ATL_DIV_ABL_1:(S+e)*this.ATL_DIV_ABL,d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(g,f[1],f[0]);n[1]=d.pntLeft.clone(),l[1]=d.pntRight.clone();var M=0;M=SuperMap.Plot.PlottingUtil.equalFuzzy(c,0,1e-14)?g*this.ATL_DIV_AWW:S*c;var m=SuperMap.Plot.PlottingUtil.distance(f[1],f[2]);M+M>m&&(M=.5*m);var v=M*y;f.push(f[p].clone());var b,T=0;b=S-M;var L=[],A=0;for(A=2;A<=p;A++)T+=SuperMap.Plot.PlottingUtil.distance(f[A-1],f[A-2]),SuperMap.Plot.PlottingUtil.equalFuzzy(b,0,1e-14)?L[A]=0:SuperMap.Plot.PlottingUtil.equalFuzzy(b-T,0,1e-14)?L[A]=v:L[A]=v+(g-v)*Math.pow((b-T)/b,this.SV_ATScaleParameter);L[p+1]=v;var O=new SuperMap.Geometry.Point(0,0),E=new SuperMap.Geometry.Point(0,0),w=new SuperMap.Geometry.Point(0,0);for(A=2;A<=p;A++){SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,f[A-2],f[A-1],f[A],E,w),p==A&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,f[p],f[p-1],w,O);var x=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L[A],E,f[A-1]);l[A]=x.pntLeft,n[A]=x.pntRight}var C,R,I=O.clone();if(SuperMap.Plot.PlottingUtil.distance(f[p],I)>0){var _=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(M,f[p],O);f[p]=_.clone()}for(d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v,f[p+1],f[p]),n[p+1]=d.pntLeft,l[p+1]=d.pntRight,A=2;A<=p;A++)SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,n[A-1],n[A],n[A+1],E,w),r[A]=E.clone(),a[A]=w.clone(),SuperMap.Plot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,l[A-1],l[A],l[A+1],E,w),s[A]=E.clone(),u[A]=w.clone();SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,n[1],n[2],r[2],O),a[1]=O.clone(),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,l[1],l[2],s[2],O),u[1]=O.clone();R=SuperMap.Plot.PlottingUtil.distance(n[p+1],n[p])*(1/3),(C=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,f[p],f[p+1])).x+=n[p+1].x-f[p].x,C.y+=n[p+1].y-f[p].y,R=(g-v)*Math.pow(R/b,this.SV_ATScaleParameter+.3),d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,n[p+1],C),r[p+1]=d.pntLeft.clone(),R=SuperMap.Plot.PlottingUtil.distance(l[p+1],l[p])*(1/3),(C=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(R,f[p],f[p+1])).x+=l[p+1].x-f[p].x,C.y+=l[p+1].y-f[p].y,R=(g-v)*Math.pow(R/b,this.SV_ATScaleParameter+.3),d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(R,l[p+1],C),s[p+1]=d.pntRight.clone();var U=[],N=M*P,D=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(N,f[p],f[p+1]);this.m_scalePoints.push(D.clone()),N=M*h,d=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(N,f[p+1],D),U.push(d.pntRight),U.push(f[p+1]),U.push(d.pntLeft);var B=[];for(B.push(n[p+1]),A=p;A>=1;A--)B.push(r[A+1]),B.push(a[A]),B.push(n[A]);var k=[];for(A=1;A<=p;A++)k.push(l[A]),k.push(u[A]),k.push(s[A+1]);k.push(l[p+1]),i.push.apply(i,k),i.push.apply(i,U),i.push.apply(i,B),o=M/S;var G=[];for(A=B.length-1;A>=0;A--)G.push(B[A]);return{dATLenDivABLen:o,arrowBodyPts:i}}},{key:"generateAYPts",value:function(t,e,o,i,n){var l=new SuperMap.Geometry.Point(.5*(t[2].x+o[2].x),.5*(t[2].y+o[2].y)),r=new SuperMap.Geometry.Point(.5*(t[1].x+o[1].x),.5*(t[1].y+o[1].y)),a=new SuperMap.Geometry.Point(.5*(t[0].x+o[0].x),.5*(t[0].y+o[0].y)),s=SuperMap.Plot.PlottingUtil.distance(l,r),u=SuperMap.Plot.PlottingUtil.distance(a,r),p=n*(s+u),c=new SuperMap.Geometry.Point(0,0),y=new SuperMap.Geometry.Point(0,0),h=new SuperMap.Geometry.Point(0,0);if(p>s){p=s+u-p,c=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(p,a,r);var P=SuperMap.Plot.PlottingUtil.distance(t[1],t[0]),f=SuperMap.Plot.PlottingUtil.distance(o[1],o[0]);P=P*p/u,y=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(P,t[0],t[1]),f=f*p/u,h=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(f,o[0],o[1])}else{c=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(p,l,r);var S=SuperMap.Plot.PlottingUtil.distance(t[1],t[2]),g=SuperMap.Plot.PlottingUtil.distance(o[1],o[2]);S=S*p/s,y=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(S,t[2],t[1]),g=g*p/s,h=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(g,o[2],o[1])}this.m_scalePoints.push(c.clone());var d=this.SV_ArrowWoCtrl*SuperMap.Plot.PlottingUtil.distance(c,y),M=this.SV_ArrowWoCtrl*SuperMap.Plot.PlottingUtil.distance(c,h),m=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(d,c,y),v=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(M,c,h),b=e[11].clone(),T=e[10].clone(),L=i[5].clone(),A=i[6].clone(),O=SuperMap.Plot.PlottingUtil.intersectLines(T,b,c,y),E=SuperMap.Plot.PlottingUtil.distance(O.intersectPoint,T),w=SuperMap.Plot.PlottingUtil.distance(T,c);E=E>w?this.SV_AJCtrl*w:this.SV_AJCtrl*E;var x=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(E,T,b);b=x.clone(),e[11]=x.clone(),O=SuperMap.Plot.PlottingUtil.intersectLines(A,L,c,h),E=(E=SuperMap.Plot.PlottingUtil.distance(O.intersectPoint,A))>(w=SuperMap.Plot.PlottingUtil.distance(A,c))?this.SV_AJCtrl*w:this.SV_AJCtrl*E,L=(x=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(E,A,L)).clone(),i[5]=x.clone();var C=[];C.push(T),C.push(b),C.push(m),C.push(c);var R=[];return R.push(c),R.push(v),R.push(L),R.push(A),{arrowLeftYaoPts:C,arrowRightYaoPts:R}}}]),e}();SuperMap.Plot.AlgoSymbol1002=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol1001=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.1),o.scaleValues.push(.2),o.scaleValues.push(0),o.scaleValues.push(.3),o.scaleValues.push(.08)),o.CLASS_NAME="SuperMap.Plot.AlgoSymbol1001",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length;if(e>=this.minEditPts){this.scalePoints=[];var o=SuperMap.Plot.PlottingUtil.clonePoints(t),i=!1;void 0!==o[0].z&&(i=!0);var n=SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL),l=n.arrowTouLen,r=n.leftBodyPts,a=n.rightBodyPts,s=[];s.push(r[r.length-1]),s.push(a[a.length-1]);var u=[];u.push(this.scaleValues[3]),u.push(this.scaleValues[4]),u.push(this.scaleValues[0]),u.push(this.scaleValues[1]);var p=SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts(t,s,u,l,SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),c=[];if(i){for(var y=[],h=[],P=[],f=0;f<e-1;f++)h.push({x:r[f].x,y:r[f].y,z:o[f].z}),P.push({x:a[f].x,y:a[f].y,z:o[f].z});var S={x:o[e-2].x,y:o[e-2].y,z:o[e-2].z},g={x:o[e-1].x,y:o[e-1].y,z:o[e-1].z},d=this.ComputeZValue(r[e-1],g,S);h.push({x:r[e-1].x,y:r[e-1].y,z:d});var M=this.ComputeZValue(a[e-1],g,S);P.push({x:a[e-1].x,y:a[e-1].y,z:M});for(var m=0;m<p.length;m++){var v=this.ComputeZValue(p[m],g,S);y.push({x:p[m].x,y:p[m].y,z:v})}c=(c=c.concat(h)).concat(y);for(var b=P.length-1;b>=0;b--)c.push(P[b]);var T=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),L=new SuperMap.Geometry.Point(T.x,T.y);L.isScalePoint=!0,L.tag=0,this.addScalePoint(L);var A=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);A.isScalePoint=!0,A.tag=1,this.addScalePoint(A);var O=new SuperMap.Geometry.Point(p[0].x,p[0].y);O.isScalePoint=!0,O.tag=2,this.addScalePoint(O);for(var E=0;E<this.scalePoints.length;E++){var w=new SuperMap.Geometry.Point(this.scalePoints[E].x,this.scalePoints[E].y);this.scalePoints[E].z=this.ComputeZValue(w,g,S)}}else{c=(c=c.concat(r)).concat(p);for(var x=a.length-1;x>=0;x--)c.push(a[x]);var C=new SuperMap.Geometry.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),R=new SuperMap.Geometry.Point(C.x,C.y);R.isScalePoint=!0,R.tag=0,this.addScalePoint(R);var I=new SuperMap.Geometry.Point(r[r.length-1].x,r[r.length-1].y);I.isScalePoint=!0,I.tag=1,this.addScalePoint(I);var _=new SuperMap.Geometry.Point(p[0].x,p[0].y);_.isScalePoint=!0,_.tag=2,this.addScalePoint(_)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:0,weight:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,c)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=new SuperMap.Geometry.Point(this.scalePoints[0].x,this.scalePoints[0].y),i=new SuperMap.Geometry.Point(this.scalePoints[1].x,this.scalePoints[1].y),n=new SuperMap.Geometry.Point(this.scalePoints[2].x,this.scalePoints[2].y),l=this.scaleValues[0],r=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints),a=r*l;if(0==t){var s=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[this.controlPoints.length-2],this.controlPoints[this.controlPoints.length-1]),u=s.projectPoint;if(s.isOnline){var p=SuperMap.Plot.PlottingUtil.distance(u,this.controlPoints[this.controlPoints.length-1]);this.scaleValues[0]=p/r}}else if(1==t){var c=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,i,n).projectPoint,y=SuperMap.Plot.PlottingUtil.distance(c,o);this.scaleValues[1]=y/a}else if(2==t){var h=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,this.controlPoints[1],n).projectPoint,P=SuperMap.Plot.PlottingUtil.pointProjectToSegment(h,o,this.controlPoints[1]),f=P.projectPoint,S=SuperMap.Plot.PlottingUtil.distance(f,o);!0===P.inOnline?this.scaleValues[4]=-S/a:this.scaleValues[4]=S/a}}this.calculateParts()}}]),e}();SuperMap.Plot.AlgoSymbol1001=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.NewArc=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.CLASS_NAME="SuperMap.Plot.NewArc",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"destroy",value:function(){(function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),o=SuperMap.Plot.PlottingUtil.radian(t[0],t[1]),i=SuperMap.Plot.PlottingUtil.radian(t[0],t[2]),n=Math.abs(i-o)/72,l=SuperMap.Plot.Primitives.getArcSpatialData(t[0],e,e,0,o,i,n);0!==l.length&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l)}}}]),e}();SuperMap.Plot.NewArc=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.NewPie=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.CLASS_NAME="SuperMap.Plot.NewPie",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"destroy",value:function(){(function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),o=SuperMap.Plot.PlottingUtil.radian(t[0],t[1]),i=SuperMap.Plot.PlottingUtil.radian(t[0],t[2]),n=Math.abs(i-o)/72,l=[];l.push(t[0]),(l=l.concat(SuperMap.Plot.Primitives.getArcSpatialData(t[0],e,e,0,o,i,n))).push(t[0]),0!==l.length&&this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,l)}}}]),e}();SuperMap.Plot.NewPie=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.Polybezier=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues=[]),this.scalePoints=[];var e=[];if(t.length<3)e.push(t[0]),e.push(t[1]);else{var o=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,t,this.scaleValues);this.scaleValues=o.scaleValues;for(var i=0;i<o.scalePoints.length;i++)this.addScalePoint(o.scalePoints[i]);e=o.beizerPoints}SuperMap.Plot.PlottingUtil.clearSamePts(e),e.length<=0||(this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.finish())}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMap.Plot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var i=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);i=SuperMap.Plot.PlottingUtil.clearSamePts(i);var n=SuperMap.Plot.PlottingUtil.polylineDistance(o),l=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(SuperMap.Plot.PlottingUtil.equalFuzzy(n,0)||SuperMap.Plot.PlottingUtil.equalFuzzy(l,0))return;var r=-1;r=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var a=(e.x-o[r].x)/n,s=(e.y-o[r].y)/n;this.scaleValues[2*t]=a,this.scaleValues[2*t+1]=s}}}]),e}();SuperMap.Plot.Polybezier=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.LinearArrow=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(15),o.scaleValues.push(7.5),o.scaleValues.push(0),o.scaleValues.push(15),o.scaleValues.push(7.5),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.LinearArrow",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){if(this.init(),!(null==this.controlPoints||this.controlPoints.length<this.minEditPts)){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(this.scalePoints=[],this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t),!SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[0],0)&&!SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[1],0)){var e=this.scaleValues[0]*(this.style.weight||this.style.strokeWidth),o=this.scaleValues[1]*(this.style.weight||this.style.strokeWidth),i=this.getLonLatDistanceFromPixel(e),n=this.getLonLatDistanceFromPixel(o),l=SuperMap.Plot.PlottingUtil.findPointInLine(t[0],t[1],i),r=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(n,t[1],l),a=[];if(a.push(r.pntLeft),a.push(t[0]),a.push(r.pntRight),this.addScalePoint(r.pntLeft,0),SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[2],0))this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,{fillLimit:!0,fill:!0}),this.addScalePoint(l,1);else if(SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[2],1))this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,a),this.addScalePoint(t[0],1);else{var s=i*this.scaleValues[2],u=SuperMap.Plot.PlottingUtil.findPointInLine(l,t[0],s);a.push(u),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,a,{fillLimit:!0,fill:!0}),this.addScalePoint(u,1)}}if(!SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[3],0)&&!SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[4],0)){var p=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),c=this.scaleValues[4]*(this.style.weight||this.style.strokeWidth),y=this.getLonLatDistanceFromPixel(p),h=this.getLonLatDistanceFromPixel(c),P=SuperMap.Plot.PlottingUtil.findPointInLine(t[1],t[0],y),f=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(h,t[0],P),S=[];if(S.push(f.pntLeft),S.push(t[1]),S.push(f.pntRight),this.addScalePoint(f.pntLeft,2),SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[5],0))this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{fillLimit:!0,fill:!0}),this.addScalePoint(P,3);else if(SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[5],1))this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,S),this.addScalePoint(t[1],3);else{var g=y*this.scaleValues[5],d=SuperMap.Plot.PlottingUtil.findPointInLine(P,t[1],g);S.push(d),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{fillLimit:!0,fill:!0}),this.addScalePoint(d,3)}}this.finish()}}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMap.Plot.PlottingUtil.clearSamePts(o),0===t){var i=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[0],o[1]);if(i.isOnline){var n=this.scaleValues[0]*(this.style.weight||this.style.strokeWidth),l=this.getLonLatDistanceFromPixel(n),r=l*this.scaleValues[2],a=SuperMap.Plot.PlottingUtil.findPointInLine(o[0],o[1],l),s=SuperMap.Plot.PlottingUtil.findPointInLine(a,o[0],r);l=SuperMap.Plot.PlottingUtil.distance(o[0],i.projectPoint),n=this.getPixelDistanceFromLonLat(l),this.scaleValues[0]=n/(this.style.weight||this.style.strokeWidth);var u=SuperMap.Plot.PlottingUtil.distance(e,i.projectPoint),p=this.getPixelDistanceFromLonLat(u);this.scaleValues[1]=p/(this.style.weight||this.style.strokeWidth),r=SuperMap.Plot.PlottingUtil.distance(s,i.projectPoint),this.scaleValues[2]=r/l}}else if(1===t){var c=this.scaleValues[0]*(this.style.weight||this.style.strokeWidth),y=this.getLonLatDistanceFromPixel(c),h=SuperMap.Plot.PlottingUtil.findPointInLine(o[0],o[1],y),P=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,h,o[0]);if(P.isOnline){var f=SuperMap.Plot.PlottingUtil.distance(h,P.projectPoint);this.scaleValues[2]=f/y,this.scaleValues[2]<0?this.scaleValues[2]=0:this.scaleValues[2]>1&&(this.scaleValues[2]=1)}}else if(2===t){var S=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,o[0],o[1]);if(S.isOnline){var g=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),d=this.getLonLatDistanceFromPixel(g),M=d*this.scaleValues[5],m=SuperMap.Plot.PlottingUtil.findPointInLine(o[1],o[0],d),v=SuperMap.Plot.PlottingUtil.findPointInLine(m,o[1],M);d=SuperMap.Plot.PlottingUtil.distance(o[1],S.projectPoint),g=this.getPixelDistanceFromLonLat(d),this.scaleValues[3]=g/(this.style.weight||this.style.strokeWidth);var b=SuperMap.Plot.PlottingUtil.distance(e,S.projectPoint),T=this.getPixelDistanceFromLonLat(b);this.scaleValues[4]=T/(this.style.weight||this.style.strokeWidth),M=SuperMap.Plot.PlottingUtil.distance(v,S.projectPoint),this.scaleValues[5]=M/d}}else if(3===t){var L=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),A=this.getLonLatDistanceFromPixel(L),O=SuperMap.Plot.PlottingUtil.findPointInLine(o[1],o[0],A),E=SuperMap.Plot.PlottingUtil.pointProjectToSegment(e,O,o[1]);if(E.isOnline){var w=SuperMap.Plot.PlottingUtil.distance(O,E.projectPoint);this.scaleValues[5]=w/A,this.scaleValues[5]<0?this.scaleValues[5]=0:this.scaleValues[5]>1&&(this.scaleValues[5]=1)}}}this.calculateParts()}}]),e}();SuperMap.Plot.LinearArrow=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.Wire=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.05),o.CLASS_NAME="SuperMap.Plot.Wire",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.isEdit||(this.scaleValues[0]=2*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e);for(var i=o*this.scaleValues[0],n=o*this.scaleValues[0]/2,l=SuperMap.Plot.PlottingUtil.clonePoints(e),r=parseInt((o-n)/i),a=0;a<=r&&!(n+i*a>o);a++){var s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(l,n+i*a);if(-1!==s.index){var u=new SuperMap.Geometry.Point(s.pt.x,s.pt.y),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(i/2,e[s.index],u);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[p.pntLeft,p.pntRight])}}this.finish()}}}]),e}();SuperMap.Plot.Wire=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0};var l=e.PolygonRegion=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return void 0===o.scaleValues[0]&&(o.scaleValues[0]=0),void 0===o.scaleValues[1]&&(o.scaleValues[1]=0),o.CLASS_NAME="SuperMap.Plot.PolygonRegion",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"destroy",value:function(){n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(null!=(t=SuperMap.Plot.PlottingUtil.clearSamePts(t))&&t.length>=this.minEditPts){if(this.addCell(32,t,{surroundLineFlag:!1}),this.textContent&&null!=this.textContent&&this.textContent.length>0){var e=[];this.scaleValues[1]>t.length&&(this.scaleValues[1]=0);var o={labelRotation:0,surroundLineFlag:!1,labelAlign:"lt"};if(0===this.scaleValues[1])e=[SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t)];else{var i=null,n=null;this.scaleValues[1]===t.length?(i=t[t.length-1],n=t[0]):(i=t[this.scaleValues[1]-1],n=t[this.scaleValues[1]]),o.labelRotation=-SuperMap.Plot.PlottingUtil.radian(i,n)/Math.PI*180;var l=this.scaleValues[0]*SuperMap.Plot.PlottingUtil.distance(i,n);e=[SuperMap.Plot.PlottingUtil.findPoint(i,n,l,0)]}this.addCell(34,e,o,this.textContent);var r=new SuperMap.Geometry.Point(e[0].x,e[0].y);r.isScalePoint=!0,r.tag=0,this.scalePoints=[],this.addScalePoint(r)}}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine()}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){for(var o=0,i=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[0]),n=1;n<this.controlPoints.length;n++){var l=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[n]);l<i&&(i=l,o=n)}var r=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);(r=SuperMap.Plot.PlottingUtil.clearSamePts(r)).push(r[0].clone());var a=SuperMap.Plot.PlottingUtil.computePointToLineMinDis(e,r);if(-1===a.minDis)this.scaleValues[1]=o+1,this.offsetX=0,this.offsetY=0;else{var s=SuperMap.Plot.PlottingUtil.projectPoint(e,r[a.index],r[a.index+1]),u=SuperMap.Plot.PlottingUtil.distance(e,s),p=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(this.controlPoints),c=SuperMap.Plot.PlottingUtil.distance(e,p);if(c<u&&c<i)this.scaleValues[1]=0,this.scaleValues[0]=0;else if(i<u&&i<c)this.scaleValues[1]=o+1,this.scaleValues[0]=0;else if(u<i&&u<c){this.scaleValues[1]=a.index+1;var y=null,h=null;this.scaleValues[1]===this.controlPoints.length?(y=this.controlPoints[this.controlPoints.length-1],h=this.controlPoints[0]):(y=this.controlPoints[this.scaleValues[1]-1],h=this.controlPoints[this.scaleValues[1]]);var P=SuperMap.Plot.PlottingUtil.distance(s,y),f=SuperMap.Plot.PlottingUtil.distance(y,h);this.scaleValues[0]=P/f}}}this.calculateParts()}},{key:"parseSymbolData",value:function(){n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"parseSymbolData",this).call(this),this.symbolData&&(this.scaleValues[1]=this.symbolData.annotationPosition)}},{key:"setSymbolData",value:function(){n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setSymbolData",this).call(this),this.symbolData&&(this.symbolData.annotationPosition=this.scaleValues[1])}}]),e}();SuperMap.Plot.PolygonRegion=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.LineRelation=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.subSectionCount=t.subSectionCount?t.subSectionCount:10,o.CLASS_NAME="SuperMap.Plot.LineRelation",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"destroy",value:function(){this.subSectionCount=null,function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();for(var t=0;t<this.controlPoints.length;t++)this.controlPoints[t].tag=t;var e=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);null!==e&&e.length>=this.minEditPts&&this.computeLine(e)}},{key:"computeLine",value:function(t){this.components.length=0;var e=t[0],o=t[t.length-1];this.subSectionCount<=1&&(this.subSectionCount=10);var i=SuperMap.Plot.PlottingUtil.distance(e,o)/(2*this.subSectionCount-1);if(this.lineRelationType===SuperMap.Plot.LineRelationType.SOLID)this.addCell(24,t,{surroundLineFlag:!1});else if(this.lineRelationType===SuperMap.Plot.LineRelationType.DASH)for(var n=0;n<this.subSectionCount;n++){var l=SuperMap.Plot.PlottingUtil.findPoint(e,o,2*n*i,0),r=SuperMap.Plot.PlottingUtil.findPoint(e,o,(2*n+1)*i,0);this.addCell(24,[l,r],{surroundLineFlag:!1})}else if(this.lineRelationType===SuperMap.Plot.LineRelationType.ARROW)for(var a=0;a<this.subSectionCount;a++){var s=SuperMap.Plot.PlottingUtil.findPoint(e,o,2*a*i,0),u=SuperMap.Plot.PlottingUtil.findPoint(e,o,(2*a+1)*i,0),p=SuperMap.Plot.PlottingUtil.findPoint(u,s,i,60),c=SuperMap.Plot.PlottingUtil.findPoint(u,s,i,-60);this.addCell(24,[p,u,c],{surroundLineFlag:!1})}}}]),e}();SuperMap.Plot.LineRelation=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.LineMarking=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.islocationCircle=!!t.islocationCircle&&t.islocationCircle,o.textBoxType=t.textBoxType?t.textBoxType:SuperMap.Plot.TextBoxType.RECTBOX,0===o.scaleValues.length&&(o.scaleValues.push(.126),o.scaleValues.push(0),o.scaleValues.push(0),o.scaleValues.push(4)),o.CLASS_NAME="SuperMap.Plot.LineMarking",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"destroy",value:function(){this.islocationCircle=null,this.textBoxType=null,function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init(),this.controlPoints=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),this.controlPoints=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints);var t=this.scaleValues[0];if(!(t<0||t>1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,i,n;this.scalePoints=[];var l=[];this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,i=this.controlPoints[1].x):(e=this.controlPoints[1].x,i=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(n=this.controlPoints[0].y,o=this.controlPoints[1].y):(n=this.controlPoints[1].y,o=this.controlPoints[0].y),l.push(new SuperMap.Geometry.Point(e,n)),l.push(new SuperMap.Geometry.Point(e,o)),l.push(new SuperMap.Geometry.Point(i,o)),l.push(new SuperMap.Geometry.Point(i,n)),!1===this.isEdit&&(this.scaleValues[1]=e+.1*(i-e),this.scaleValues[2]=n+-.3*(o-n));var r=this.getAction(this.scaleValues[1],this.scaleValues[2],e,o,i,n),a=new SuperMap.Geometry.Point(this.scaleValues[1],this.scaleValues[2]);if(this.textBoxType===SuperMap.Plot.TextBoxType.RECTBOX||this.textBoxType===SuperMap.Plot.TextBoxType.LINEBOX){var s=[];switch(r){case 0:this.addScalePoint(a);break;case 1:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(e,o-(o-n)*t)),s.push(a);break;case 2:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(i-(i-e)*t,o)),s.push(a);break;case 3:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(i,o-(o-n)*t)),s.push(a);break;case 4:this.addScalePoint(a),s.push(new SuperMap.Geometry.Point(i-(i-e)*t,n)),s.push(a)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,s)}if(0!==l.length&&this.textBoxType===SuperMap.Plot.TextBoxType.RECTBOX)this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l);else if(0!==l.length&&this.textBoxType===SuperMap.Plot.TextBoxType.LINEBOX){var u=[];switch(r){case 0:break;case 1:u=(u=u.concat(l[0])).concat(l[1]);break;case 2:u=(u=u.concat(l[1])).concat(l[2]);break;case 3:u=(u=u.concat(l[2])).concat(l[3]);break;case 4:u=(u=u.concat(l[3])).concat(l[0])}0!==u.length?this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,u):this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,this.controlPoints)}this.islocationCircle&&this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[a,new SuperMap.Geometry.Point(a.x-.05,a.y-.05)]),this.annotationContent(e,o,i,n)}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,this.controlPoints);this.finish()}}},{key:"modifyPoint",value:function(t,e){!0===e.isScalePoint&&(this.scaleValues[1]=e.x,this.scaleValues[2]=e.y),this.calculateParts()}},{key:"getAction",value:function(t,e,o,i,n,l){var r=(i-l)/(n-o);return t<o?e>i?Math.abs((e-i)/(t-o))>r?2:1:e<l&&Math.abs((e-l)/(t-o))>r?4:1:t>n?e>i?Math.abs((e-i)/(t-n))>r?2:3:e<l&&Math.abs((e-l)/(t-n))>r?4:3:e>i?2:e<l?4:0}}]),e}();SuperMap.Plot.LineMarking=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.PathText=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.relLineText=t.relLineText?t.relLineText:0,o.showPathLine=!t.showPathLine||t.showPathLine,o.showPathLineArrow=!!t.showPathLineArrow&&t.showPathLineArrow,o.isCurve=!!t.isCurve&&t.isCurve,o.isAvoid=!!t.isAvoid&&t.isAvoid,o.textToLineDistance=t.textToLineDistance?t.textToLineDistance:0,o.CLASS_NAME="SuperMap.Plot.PathText",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){if(this.init(),null!==this.controlPoints&&0!==this.controlPoints.length&&!(this.controlPoints.length<this.minEditPts)){SuperMap.Util.isArray(this.textContent)||(this.textContent=[this.textContent]);var t=[];if(t=this.isCurve?SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(this.controlPoints):SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),this.relLineText===SuperMap.Plot.RelLineText.ONBOTHLINE){this.relLineText=SuperMap.Plot.RelLineText.ONRIGHTLINE;var e=this.getTextPathPts(t,!1);this.computeText(e,this.textContent[0],t),this.relLineText=SuperMap.Plot.RelLineText.ONLEFTLINE;var o=this.showPathLine;this.showPathLine=!1;var i=this.getTextPathPts(t,!0);this.textContent.length>1?this.computeText(i,this.textContent[1],t):this.computeText(i,this.textContent[0],t),this.relLineText=SuperMap.Plot.RelLineText.ONBOTHLINE,this.showPathLine=o}else{var n=[];n=this.relLineText===SuperMap.Plot.RelLineText.ONRIGHTLINE?this.getTextPathPts(t,!1):this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?this.getTextPathPts(t,!0):t,this.computeText(n,this.textContent[0],t)}this.finish()}}},{key:"getTextPathPts",value:function(t,e){t=SuperMap.Plot.PlottingUtil.clearSamePts(t);var o=this.getLonLatDistanceFromPixel(this.textToLineDistance);if(0>=o)return SuperMap.Plot.PlottingUtil.clonePoints(t);var i=SuperMap.Plot.PlottingUtil.paraLine(t,o,e);return SuperMap.Plot.PlottingUtil.clearSamePts(i)}},{key:"computeText",value:function(t,e,o){if(!(t.length<2)){for(var i=e.length,n=t,l=n.length,r=0,a=0;a<n.length-1;a++)r+=SuperMap.Plot.PlottingUtil.distance(n[a],n[a+1]);var s={index:-1,pt:n[0]},u=0,p=0,c=0,y=180/Math.PI,h=this.getTextBounds(this.style,e),P="lm";P=this.relLineText===SuperMap.Plot.RelLineText.ONLINE?"lm":this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?"lb":"lt",(u=(r-h.getWidth())/2)<=0&&(u=0);for(var f=[],S=0;S<i;S++){var g=this.getTextBounds(this.style,e.charAt(S));f.push(new SuperMap.Bounds(0,-h.getHeight(),g.getWidth(),0))}for(var d,M=!1,m=!1,v=0,b=0,T=[];p<=u&&c<l-1;)c++,p+=SuperMap.Plot.PlottingUtil.distance(n[c-1],n[c]);var L=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,u),A=SuperMap.Plot.PlottingUtil.radian(n[c-1],n[c])*y;A>180&&(A-=360),A<-180&&(A+=360),A>90&&A<=180?(v=-180,M=!0,m=!0):A>-180&&A<-90&&(v=180,M=!0,m=!0),!0,0!=v?this.relLineText===SuperMap.Plot.RelLineText.ONLINE||(P=this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?"lt":"lb"):this.relLineText===SuperMap.Plot.RelLineText.ONLINE||(P=this.relLineText===SuperMap.Plot.RelLineText.ONLEFTLINE?"lb":"lt");for(var O=0;O<i&&!(u>r);O++){var E=O;for(m&&(E=i-O-1),b=(d=f[E]).getWidth(),M&&(u+=b);p<=u&&c<l-1;)c++,p+=SuperMap.Plot.PlottingUtil.distance(n[c-1],n[c]);var w=(A=SuperMap.Plot.PlottingUtil.radian(n[c-1],n[c])*y)+v;if((s=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,u)).index<0)break;d.add(s.pt.x,s.pt.y);var x=e.charAt(E),C={};C.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,C.textContent=x,C.positionPoints=[s.pt],C.style={surroundLineFlag:!1,labelAlign:P,labelRotation:-w},T.push(C),M||(u+=b)}var R=SuperMap.Plot.PlottingUtil.findPointInPolyLine(n,u);if(this.showPathLine){if(this.relLineText===SuperMap.Plot.RelLineText.ONLINE&&this.isAvoid){if(L.index>=0){for(var I=[],_=0;_<=L.index;_++)I.push(o[_]);I.push(L.pt),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,I)}if(R.index>=0){var U=[];U.push(R.pt);for(var N=R.index+1;N<o.length;N++)U.push(o[N]);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U)}}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,o);this.showPathLineArrow&&this.addArrow(o)}for(var D=0;D<T.length;D++)this.components.push(T[D])}}},{key:"addArrow",value:function(t){if(t.length<2)return t;var e=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints)*(this.isEdit,null==this.getSubSymbolScaleValue()?.05:.5*this.getSubSymbolScaleValue()),o=t[t.length-1];if(t.length>2){for(var i=-1,n=t.length-2;n>=0;n--)if(e<SuperMap.Plot.PlottingUtil.distance(o,t[n])){i=n;break}t.splice(i+1,t.length-i),t.push(o)}var l=t[t.length-2],r=t[t.length-1],a=e;if(void 0===l)return t;if(!(SuperMap.Plot.PlottingUtil.distance(l,r)<e)){var s=SuperMap.Plot.PlottingUtil.radian(l,r)*SuperMap.Plot.PlottingUtil.RTOD,u=SuperMap.Plot.PlottingUtil.circlePoint(r,a,a,s+157.5),p=SuperMap.Plot.PlottingUtil.circlePoint(r,a,a,s+202.5);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[u,t[t.length-1],p],{surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0,fill:!0})}}}]),e}();SuperMap.Plot.PathText=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.CurveEight=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.CLASS_NAME="SuperMap.Plot.CurveEight",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"destroy",value:function(){(function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints&&null!==this.controlPoints&&!(this.minEditPts>this.controlPoints.length))if(2===this.controlPoints.length){var t=this.controlPoints[0].clone(),e=this.controlPoints[1].clone(),o=SuperMap.Plot.PlottingUtil.distance(t,e)/2,i=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,n=new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2),l=SuperMap.Plot.PlottingUtil.circlePoint(n,o,o,i+90),r=SuperMap.Plot.PlottingUtil.circlePoint(n,3*o,3*o,i+90);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[l,new SuperMap.Geometry.Point(l.x+o,l.y)]),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[r,new SuperMap.Geometry.Point(r.x+o,r.y)])}else{var a=this.controlPoints[0].clone(),s=this.controlPoints[1].clone(),u=this.controlPoints[2].clone(),p=0;p=SuperMap.Plot.PlottingUtil.isRight(u,a,s)?180*SuperMap.Plot.PlottingUtil.radian(s,a)/Math.PI+90:180*SuperMap.Plot.PlottingUtil.radian(a,s)/Math.PI+90;var c=SuperMap.Plot.PlottingUtil.distance(a,s)/2,y=new SuperMap.Geometry.Point((a.x+s.x)/2,(a.y+s.y)/2),h=SuperMap.Plot.PlottingUtil.circlePoint(y,c,c,p),P=SuperMap.Plot.PlottingUtil.plumbLineLen(u,a,s);if(P<=4*c){var f=SuperMap.Plot.PlottingUtil.circlePoint(y,3*c,3*c,p);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[h,new SuperMap.Geometry.Point(h.x+c,h.y)]),this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[f,new SuperMap.Geometry.Point(f.x+c,f.y)])}else{for(var S=SuperMap.Plot.PlottingUtil.circlePoint(y,P-c,P-c,p),g=180*Math.acos(c/(P-2*c))/Math.PI,d=p-g,M=p-180+g,m=p-180-g+360,v=[],b=p+g-360;b<=d;b+=4){var T=SuperMap.Plot.PlottingUtil.circlePoint(h,c,c,b);v.push(T)}var L=SuperMap.Plot.PlottingUtil.circlePoint(h,c,c,d);v.push(L);for(var A=[],O=M;O<m;O+=4){var E=SuperMap.Plot.PlottingUtil.circlePoint(S,c,c,O);A.push(E)}var w=SuperMap.Plot.PlottingUtil.circlePoint(S,c,c,m);A.push(w);var x=[];x=x.concat(v);for(var C=A.length-1;C>=0;C--)x.push(A[C]);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,x)}}}}]),e}();SuperMap.Plot.CurveEight=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.Runway=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.2),o.CLASS_NAME="SuperMap.Plot.Runway",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"destroy",value:function(){(function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints.length>=this.minEditPts){for(var t=this.controlPoints[0],e=this.controlPoints[1],o=SuperMap.Plot.PlottingUtil.distance(t,e),i=this.scaleValues[0]*o,n=SuperMap.Plot.PlottingUtil.parallel(this.controlPoints,i/2),l=SuperMap.Plot.PlottingUtil.parallel(this.controlPoints,-i/2),r=180*SuperMap.Plot.PlottingUtil.radian(t,e)/Math.PI,a=[],s=r+90;s<=r+270;s+=10){var u=SuperMap.Plot.PlottingUtil.circlePoint(t,i/2,i/2,s);a.push(u)}for(var p=[],c=r-90;c<=r+90;c+=10){var y=SuperMap.Plot.PlottingUtil.circlePoint(e,i/2,i/2,c);p.push(y)}var h=[];(h=(h=(h=(h=h.concat(a)).concat(l)).concat(p)).concat(n)).push(h[0]),this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,h);var P=new SuperMap.Geometry.Point(a[0].x,a[0].y);this.addScalePoint(P)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint&&0==t){var o=SuperMap.Plot.PlottingUtil.distance(e,this.controlPoints[0]),i=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);this.scaleValues[0]=2*o/i}this.calculateParts()}}]),e}();SuperMap.Plot.Runway=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.NodeChain=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(0),o.scaleValues[1]=.1),o.CLASS_NAME="SuperMap.Plot.NodeChain",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"destroy",value:function(){(function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){if(this.init(),this.controlPoints&&null!==this.controlPoints){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t),this.isEdit||(this.scaleValues[1]=.25*this.getSubSymbolScaleValue());var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=e*this.scaleValues[0],i=e*this.scaleValues[1];if(0<this.subSymbols.length&&null!==this.subSymbols[0]&&void 0!==this.subSymbols[0])if(this.subSymbols[0].code>0)for(var n=0;n<t.length;n++){var l=new SuperMap.Geometry.Point(t[n].x,t[n].y+o);this.computeSubSymbol(this.subSymbols[0],l,2*i,0)}else this.addCircles(t,o,i);else this.addCircles(t,o,i);var r=new SuperMap.Geometry.Point(t[0].x,t[0].y+o);this.addScalePoint(r);var a=SuperMap.Plot.PlottingUtil.circlePoint(r,i,i,90);this.addScalePoint(a)}}}},{key:"addCircles",value:function(t,e,o){for(var i={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},n=0;n<t.length;n++){var l=new SuperMap.Geometry.Point(t[n].x,t[n].y+e),r=this.getCirclePts(l,o);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,r,i)}}},{key:"getCirclePts",value:function(t,e){for(var o=[],i=0;i<=360;i+=12){var n=SuperMap.Plot.PlottingUtil.circlePoint(t,e,e,i);o.push(n)}return o}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMap.Plot.PlottingUtil.clearSamePts(o)).length<this.minEditPts)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(0===t)this.scaleValues[0]=(e.y-o[0].y)/i;else if(1===t){var n=SuperMap.Plot.PlottingUtil.distance(e,o[0]);this.scaleValues[1]=n/i}}this.calculateParts()}}]),e}();SuperMap.Plot.NodeChain=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.FreeCurve=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.CLASS_NAME="SuperMap.Plot.FreeCurve",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){if(this.init(),!(null==this.controlPoints||this.controlPoints.length<this.minEditPts)){this.scalePoints=[];var t=[];if(this.controlPoints.length<3)t.push(this.controlPoints[0]),t.push(this.controlPoints[1]);else{if(!this.isEdit){var e=this.getLonLatFromPixel(0,0),o=this.getLonLatFromPixel(100,100),i=Math.abs(e.lon-o.lon),n=this.reSample(this.controlPoints,i/50);n.length<3&&(n=this.controlPoints),this.controlPoints=[],this.controlPoints=this.controlPoints.concat(n)}var l=SuperMap.Plot.PlottingUtil.computeBeizerPoints(this.isEdit,this.controlPoints,this.scaleValues);l.scalePoints=SuperMap.Plot.PlottingUtil.clearSamePts(l.scalePoints),l.scaleValues=SuperMap.Plot.PlottingUtil.clearSamePts(l.scaleValues),this.scaleValues=l.scaleValues;for(var r=0,a=l.scalePoints.length;r<a;r++){var s=l.scalePoints[r];s.isScalePoint=!0,s.tag=r,this.addScalePoint(s)}t=SuperMap.Plot.PlottingUtil.clonePoints(l.beizerPoints)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(2>o.length)return;var i=SuperMap.Plot.PlottingUtil.polylineDistance(o),n=-1;n=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var l=(e.x-o[n].x)/i,r=(e.y-o[n].y)/i;this.scaleValues[2*t]=l,this.scaleValues[2*t+1]=r}this.calculateParts()}},{key:"reSample",value:function(t,e){var o=[];if(null==t||e<0)return o;var i=t.length;if(i>2){var n=new SuperMap.Geometry.Point(0,0),l=0,r=0,a=0,s=2*Math.PI;n=t[0],o.push(n);for(var u=!1,p=!1,c=!1,y=1;y<i;y++)if(r=Math.sqrt((t[y].y-n.y)*(t[y].y-n.y)+(t[y].x-n.x)*(t[y].x-n.x)),SuperMap.Plot.PlottingUtil.equalFuzzy(0,r))u&&(n=t[y-1],y--,o.push(n),a=0,s=2*Math.PI,u=!1,p=!1,c=!1);else{var h=(t[y].x-n.x)/r,P=(t[y].y-n.y)/r;if(l=P>0||SuperMap.Plot.PlottingUtil.equalFuzzy(0,P)?Math.acos(h):2*Math.PI-Math.acos(h),s>2*Math.PI&&l+2*Math.PI<s?(l+=2*Math.PI,a<0&&(a+=2*Math.PI)):a<0&&l-2*Math.PI>a&&(l-=2*Math.PI,s>2*Math.PI&&(s-=2*Math.PI)),l>a&&l<s||SuperMap.Plot.PlottingUtil.equalFuzzy(0,l-a)||SuperMap.Plot.PlottingUtil.equalFuzzy(0,l-s)){var f=Math.atan(e/r);p?a<l-f&&(a=l-f):(p=!0,a=l-f),c?s>l+f&&(s=l+f):(c=!0,s=l+f),u=!0}else n=t[y-1],y--,o.push(n),a=0,s=2*Math.PI,u=!1,p=!1,c=!1}return o.push(t[i-1]),o}return o}},{key:"reSampleByAngle",value:function(t,e){var o=[],i=t.length;if(null==t||i<=0||e<=0)return o;for(var n=t,l=i,r=!1;SuperMap.Plot.PlottingUtil.equalFuzzy(n[0].x,n[l-1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(n[0].y,n[l-1].y);){if((l-=1)<=0)return o;r=!0}var a,s,u=[];for(a=0;a<l;a++)u.push(0);for(u[0]=1,u[l-1]=1,s=0,a=1;a<l-1;a++)if(SuperMap.Plot.PlottingUtil.distance(n[s],n[a])>1e-10&&SuperMap.Plot.PlottingUtil.distance(n[s],n[a+1])>1e-10){var p=180*SuperMap.Plot.PlottingUtil.InnerAngle(n[a],n[s],n[a+1])/Math.PI;p>e&&p<180-e&&(u[a]=1,s++)}var c=0;for(a=0;a<l;a++)1==u[a]&&c++;if(c>0){for(r&&c++,o=[],s=0,a=0;a<l;a++)1==u[a]&&(o[s++]=n[a]);return r&&(o[s]=o[0]),o}return o}}]),e}();SuperMap.Plot.FreeCurve=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.CombinationalCircle=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.angleRange=[],o.defaultRadius=t.defaultRadius?t.defaultRadius:60,o.CLASS_NAME="SuperMap.Plot.CombinationalCircle",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){if(this.init(),this.controlPoints=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints),!(null==this.controlPoints||this.controlPoints.length<1)){var t=this.getCircleLonLat(this.controlPoints[0],this.defaultRadius);this.angleRange=[];for(var e=0;e<this.controlPoints.length;e++)null==this.scaleValues[e]&&(this.scaleValues[e]=t),this.angleRange.push([{Start:0,End:360}]);for(var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),i=0;i<o.length;i++)if(0!==this.angleRange[i].length&&(0!==this.angleRange[i][0].Start||0!==this.angleRange[i][0].End))for(var n=i+1;n<o.length;n++)if(0!==this.angleRange[n].length&&(0!==this.angleRange[n][0].Start||0!==this.angleRange[n][0].End)){var l=SuperMap.Plot.PlottingUtil.distance(o[i],o[n]);if(l<this.scaleValues[i]+this.scaleValues[n])if(l>Math.abs(this.scaleValues[i]-this.scaleValues[n]))for(var r=0;r<2;r++){var a,s,u;0==r?(u=i,a=SuperMap.Plot.PlottingUtil.radian(o[i],o[n])*SuperMap.Plot.PlottingUtil.RTOD,s=Math.acos((l*l+this.scaleValues[i]*this.scaleValues[i]-this.scaleValues[n]*this.scaleValues[n])/(2*l*this.scaleValues[i]))*SuperMap.Plot.PlottingUtil.RTOD):(u=n,a=SuperMap.Plot.PlottingUtil.radian(o[n],o[i])*SuperMap.Plot.PlottingUtil.RTOD,s=Math.acos((l*l+this.scaleValues[n]*this.scaleValues[n]-this.scaleValues[i]*this.scaleValues[i])/(2*l*this.scaleValues[n]))*SuperMap.Plot.PlottingUtil.RTOD);var p=a-s,c=a+s,y=p<0&&c>0||p>360||c>360;p=this.adjustAngle(p),c=this.adjustAngle(c);for(var h=this.angleRange[u].length-1;h>=0;h--)if(y){if(c>this.angleRange[u][h].End||SuperMap.Plot.PlottingUtil.equalFuzzy(c,this.angleRange[u][h].End)){this.angleRange[u].splice(h,1);continue}if(c>this.angleRange[u][h].Start&&(this.angleRange[u][h].Start=c),p<this.angleRange[u][h].Start||SuperMap.Plot.PlottingUtil.equalFuzzy(p,this.angleRange[u][h].Start)){this.angleRange[u].splice(h,1);continue}p<this.angleRange[u][h].End&&(this.angleRange[u][h].End=p)}else if(p<this.angleRange[u][h].Start&&c>this.angleRange[u][h].End)this.angleRange[u].splice(h,1);else if(p>this.angleRange[u][h].Start&&c<this.angleRange[u][h].End)this.angleRange[u].push({Start:this.angleRange[u][h].Start,End:p}),this.angleRange[u].push({Start:c,End:this.angleRange[u][h].End}),this.angleRange[u].splice(h,1);else{if(p>this.angleRange[u][h].End)continue;if(p>this.angleRange[u][h].Start&&(this.angleRange[u][h].End=p),c<this.angleRange[u][h].Start)continue;c<this.angleRange[u][h].End&&(this.angleRange[u][h].Start=c)}}else{if(this.scaleValues[i]<this.scaleValues[n]){this.angleRange[i][0].Start=0,this.angleRange[i][0].End=0;break}this.angleRange[n][0].Start=0,this.angleRange[n][0].End=0}}for(var P=[],f=0;f<o.length;f++)if(0!==this.angleRange[f].length&&(0!==this.angleRange[f][0].Start||0!==this.angleRange[f][0].End))for(var S=this.angleRange[f].length-1;S>=0;S--){for(var g=this.adjustAngle(this.angleRange[f][S].Start),d=this.adjustAngle(this.angleRange[f][S].End);d<g;)d+=360;if(d-g==360)this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[o[f],new SuperMap.Geometry.Point(o[f].x,o[f].y+this.scaleValues[f])]);else{for(var M=[],m=(d-g)/72,v=g;v<d+m/2;v+=m){var b=o[f].x+this.scaleValues[f]*Math.cos(v*SuperMap.Plot.PlottingUtil.DTOR),T=o[f].y+this.scaleValues[f]*Math.sin(v*SuperMap.Plot.PlottingUtil.DTOR);M.push(new SuperMap.Geometry.Point(b,T))}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,M),P.push(M)}}for(var L=[];0!==P.length;){var A=P[0];P.splice(0,1),void 0!==(A=this.generatePolygon(P,A))&&L.push(A)}for(var O=[],E=0;E<L.length;E++)O.push(L[E]);for(var w=O.length-1;w>=0;w--)for(var x=0;x<O[w].length;x++){for(var C in O)if(parseInt(C)!==w){var R=O[C];if(SuperMap.Plot.PlottingUtil.ptIsInPolygon(R,O[w][x])){var I=w,_=parseInt(C);O[_].push(O[_][0]),O[I].push(O[I][0]),O[_]=O[_].concat(O[I]),O.splice(I,1);break}}if(!isNaN(I)&&!isNaN(_))break}for(var U=0;U<O.length;U++){var N={type:SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,positionPoints:O[U],style:{surroundLineFlag:!1,lineWidthLimit:!0,weight:0,strokeWidth:0}};this.components.splice(0,0,N)}for(var D=0;D<o.length;D++){var B=new SuperMap.Geometry.Point(o[D].x+this.scaleValues[D],o[D].y);B.isScalePoint=!0,B.tag=D,this.addScalePoint(B)}}}},{key:"generatePolygon",value:function(t,e){if(0===t.length||SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].x,e[e.length-1].x,1e-7)&&SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].y,e[e.length-1].y,1e-7))return e;for(var o,i=e[e.length-1],n=0;n<t.length;n++)if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][0].x,i.x,1e-7)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][0].y,i.y,1e-7)){if(e=e.concat(t[n]),t.splice(n,1),void 0!==(o=this.generatePolygon(t,e))&&0!==o.length)return o}else if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][t[n].length-1].x,i.x,1e-7)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[n][t[n].length-1].y,i.y,1e-7)){for(var l=t[n].length-1;l>=0;l--)e.push(t[n][l]);if(t.splice(n,1),void 0!==(o=this.generatePolygon(t,e))&&0!==o.length)return o}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>=this.controlPoints.length)return;var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),i=SuperMap.Plot.PlottingUtil.distance(o[t],e);this.scaleValues[t]=i}this.calculateParts()}},{key:"adjustAngle",value:function(t){for(;t>360;)t-=360;for(;t<0;)t+=360;return t}},{key:"getCircleLonLat",value:function(t,e){return null===this.map?2*this.getDefaultSubSymbolSize():this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map?((o=this.map.latLngToLayerPoint(L.latLng(t.y,t.x))).x+=e,this.map.layerPointToLatLng(L.point(o.x,o.y)).lng-t.x):this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map?((o=this.map.getPixelFromLonLat(new SuperMap.LonLat(t.x,t.y))).x+=e,this.map.getLonLatFromPixel(new SuperMap.Pixel(o.x,o.y)).lon-t.x):void 0;var o}}]),e}();SuperMap.Plot.CombinationalCircle=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.ConcentricCircle=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return void 0===o.scaleValues[0]&&(o.scaleValues[0]=0),void 0===o.scaleValues[1]&&(o.scaleValues[1]=360),o.CLASS_NAME="SuperMap.Plot.ConcentricCircle",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!(null==(t=SuperMap.Plot.PlottingUtil.clearSamePts(t))||t.length<2)){for(2==t.length&&t.push(t[1].clone());this.scaleValues[0]>360;)this.scaleValues[0]-=360;for(;this.scaleValues[0]<0;)this.scaleValues[0]+=360;for(;this.scaleValues[1]>360;)this.scaleValues[1]-=360;for(;this.scaleValues[1]<0;)this.scaleValues[1]+=360;for(;this.scaleValues[1]<=this.scaleValues[0];)this.scaleValues[1]+=360;SuperMap.Plot.PlottingUtil.equalFuzzy(this.scaleValues[1],this.scaleValues[0])&&(this.scaleValues[1]+=360);for(var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]),o=SuperMap.Plot.PlottingUtil.distance(t[0],t[2]),i=[],n=[],l=Math.PI/180,r=(this.scaleValues[1]-this.scaleValues[0])/72,a=this.scaleValues[0];a<this.scaleValues[1]+r/2;a+=r){var s=t[0].x+e*Math.cos(a*l),u=t[0].y+e*Math.sin(a*l),p=t[0].x+o*Math.cos(a*l),c=t[0].y+o*Math.sin(a*l);i.push(new SuperMap.Geometry.Point(s,u)),n.push(new SuperMap.Geometry.Point(p,c))}for(var y=[],h=0;h<i.length;h++)y.push(i[h]);for(var P=n.length-1;P>=0;P--)y.push(n[P]);this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,{surroundLineFlag:!1,lineWidthLimit:!0,weight:0,strokeWidth:0}),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n);var f=t[0].x+e/2*Math.cos(this.scaleValues[0]*l),S=t[0].y+e/2*Math.sin(this.scaleValues[0]*l),g=t[0].x+o/2*Math.cos(this.scaleValues[1]*l),d=t[0].y+o/2*Math.sin(this.scaleValues[1]*l),M=new SuperMap.Geometry.Point(f,S);M.isScalePoint=!0,M.tag=0,this.addScalePoint(M);var m=new SuperMap.Geometry.Point(g,d);m.isScalePoint=!0,m.tag=1,this.addScalePoint(m)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){for(var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),i=180*SuperMap.Plot.PlottingUtil.radian(o[0],e)/Math.PI;i>360;)i-=360;for(;i<0;)i+=360;0==t?this.scaleValues[0]=i:1==t&&(this.scaleValues[1]=i)}this.calculateParts()}}]),e}();SuperMap.Plot.ConcentricCircle=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.SymbolTextBox=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.roundBox=!!t.roundBox&&t.roundBox,o.textBoxType=t.textBoxType?t.textBoxType:SuperMap.Plot.TextBoxType.WITHTIPBOX,0===o.scaleValues.length&&(o.scaleValues.push(.126),o.scaleValues.push(0),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.SymbolTextBox",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"destroy",value:function(){this.roundBox=null,this.textBoxType=null,function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=this.scaleValues[0];if(!(t<0||t>1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,i,n;this.scalePoints=[];var l=[];this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,i=this.controlPoints[1].x):(e=this.controlPoints[1].x,i=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(n=this.controlPoints[0].y,o=this.controlPoints[1].y):(n=this.controlPoints[1].y,o=this.controlPoints[0].y);var r=1,a=2,s=3,u=4;if(this.roundBox){var p=Math.max(e,i),c=Math.min(e,i),y=Math.max(o,n),h=Math.min(o,n),P=.1*Math.min(Math.abs(e-i),Math.abs(o-n)),f=new SuperMap.Geometry.Point(c+P,h+P),S=new SuperMap.Geometry.Point(c+P,y-P),g=new SuperMap.Geometry.Point(p-P,y-P),d=new SuperMap.Geometry.Point(p-P,h+P),M=this.calculateArc(f,P,3*Math.PI/2,Math.PI,-1,180),m=this.calculateArc(S,P,Math.PI,Math.PI/2,-1,180),v=this.calculateArc(g,P,Math.PI/2,0,-1,180),b=this.calculateArc(d,P,2*Math.PI,3*Math.PI/2,-1,180);r=M.length,a=M.length+m.length,s=M.length+m.length+v.length,u=M.length+m.length+v.length+b.length,l=M.concat(m,v,b)}else l.push(new SuperMap.Geometry.Point(e,n)),l.push(new SuperMap.Geometry.Point(e,o)),l.push(new SuperMap.Geometry.Point(i,o)),l.push(new SuperMap.Geometry.Point(i,n));this.isEdit||(this.scaleValues[1]=e+.1*(i-e),this.scaleValues[2]=n+-.3*(o-n));var T=new SuperMap.Geometry.Point(this.scaleValues[1],this.scaleValues[2]),L=this.getAction(this.scaleValues[1],this.scaleValues[2],e,o,i,n);if(this.textBoxType===SuperMap.Plot.TextBoxType.WITHTIPBOX)switch(this.addScalePoint(T,0),L){case 0:break;case 1:this.addScalePoint(new SuperMap.Geometry.Point(e,o-(o-n)*t)),l.splice(r,0,new SuperMap.Geometry.Point(e,o-(o-n)*t)),l.splice(r,0,T),l.splice(r,0,new SuperMap.Geometry.Point(e,n+(o-n)*t));break;case 2:this.addScalePoint(new SuperMap.Geometry.Point(i-(i-e)*t,o)),l.splice(a,0,new SuperMap.Geometry.Point(i-(i-e)*t,o)),l.splice(a,0,T),l.splice(a,0,new SuperMap.Geometry.Point(e+(i-e)*t,o));break;case 3:this.addScalePoint(new SuperMap.Geometry.Point(i,o-(o-n)*t)),l.splice(s,0,new SuperMap.Geometry.Point(i,n+(o-n)*t)),l.splice(s,0,T),l.splice(s,0,new SuperMap.Geometry.Point(i,o-(o-n)*t));break;case 4:this.addScalePoint(new SuperMap.Geometry.Point(i-(i-e)*t,n)),l.splice(u,0,new SuperMap.Geometry.Point(e+(i-e)*t,n)),l.splice(u,0,T),l.splice(u,0,new SuperMap.Geometry.Point(i-(i-e)*t,n))}if(0!==l.length)if(this.textBoxType===SuperMap.Plot.TextBoxType.NONEBOX){this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{surroundLineFlag:!1,weight:0,lineWidthLimit:!0})}else this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l)}else this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.addCell(SuperMap.Plot.SymbolType.RECTANGLESYMBOL,this.controlPoints);this.annotationContent(e,o,i,n),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint)if(0===t)this.scaleValues[1]=e.x,this.scaleValues[2]=e.y;else if(1===t){var o,i,n,l,r,a,s=this.scalePoints[0];this.controlPoints[0].x<this.controlPoints[1].x?(o=this.controlPoints[0].x,n=this.controlPoints[1].x):(o=this.controlPoints[1].x,n=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(l=this.controlPoints[0].y,i=this.controlPoints[1].y):(l=this.controlPoints[1].y,i=this.controlPoints[0].y),r=this.scaleValues[1],a=this.scaleValues[2];var u=(i-l)/(n-o),p=.25;switch(r<o?a>i?Math.abs((a-i)/(r-o))>u?2:1:a<l&&Math.abs((a-l)/(r-o))>u?4:1:r>n?a>i?Math.abs((a-i)/(r-n))>u?2:3:a<l&&Math.abs((a-l)/(r-n))>u?4:3:a>i?2:a<l?4:0){case 1:case 3:var c=s.y+(e.y-s.y);c>i&&(c=i),c<(i+l)/2&&(c=(i+l)/2),p=1-2*(i-c)/(i-l);break;case 2:case 4:var y=s.x+(e.x-s.x);y>n&&(y=n),y<(o+n)/2&&(y=(o+n)/2),p=1-2*(n-y)/(n-o)}p<0&&(p=0),p>1&&(p=1),this.scaleValues[0]=p}this.calculateParts()}},{key:"calculateArc",value:function(t,e,o,i,n,l){(!n||1!=n&&-1!=n)&&(n=-1),l||(l=360);for(var r=Math.PI/l/2,a=r*n,s=Math.abs(i-o),u=[],p=o,c=0;c<s;c+=r){var y=new SuperMap.Geometry.Point(Math.cos(p)*e+t.x,Math.sin(p)*e+t.y);u.push(y),p=(p=(p+=a)<0?p+2*Math.PI:p)>2*Math.PI?p-2*Math.PI:p}return u}},{key:"getAction",value:function(t,e,o,i,n,l){var r=(i-l)/(n-o);return t<o?e>i?Math.abs((e-i)/(t-o))>r?2:1:e<l&&Math.abs((e-l)/(t-o))>r?4:1:t>n?e>i?Math.abs((e-i)/(t-n))>r?2:3:e<l&&Math.abs((e-l)/(t-n))>r?4:3:e>i?2:e<l?4:0}}]),e}();SuperMap.Plot.SymbolTextBox=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.GeoTooltipBoxM=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(0),o.scaleValues.push(0),o.scaleValues.push(0),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.GeoTooltipBoxM",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"destroy",value:function(){(function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destory",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=this.minEditPts){var e,o,i,n;t[0].x<t[1].x?(e=t[0].x,i=t[1].x):(e=t[1].x,i=t[0].x),t[0].y<t[1].y?(n=t[0].y,o=t[1].y):(n=t[1].y,o=t[0].y),this.scalePoints=[];var l=[];l.push(new SuperMap.Geometry.Point(e,n)),l.push(new SuperMap.Geometry.Point(e,o)),l.push(new SuperMap.Geometry.Point(i,o)),l.push(new SuperMap.Geometry.Point(i,n)),this.isEdit||(this.scaleValues[0]=e,this.scaleValues[1]=n-.3*(o-n),this.scaleValues[2]=e+.5*(i-e),this.scaleValues[3]=n-.3*(o-n));for(var r=[],a=[],s=0;s<this.scaleValues.length/2;s++)r.push(this.getAction(this.scaleValues[2*s],this.scaleValues[2*s+1],e,o,i,n)),a.push(new SuperMap.Geometry.Point(this.scaleValues[2*s],this.scaleValues[2*s+1]));for(var u,p,c,y,h=a.length,P=[],f=[],S=[],g=[],d=[],M=0;M<r.length;M++)0===r[M]&&P.push(a[M]),1===r[M]&&f.push(a[M]),2===r[M]&&S.push(a[M]),3===r[M]&&g.push(a[M]),4===r[M]&&d.push(a[M]);var m=r.slice();m.sort();var v=new SuperMap.Geometry.Point(0,0);if(m[0]===m[m.length-1]&&0!==m[0]){var b=[];switch(m[0]){case 0:break;case 1:u=1/(2*f.length+1);for(var T=new SuperMap.Geometry.Point,L=0;L<2*f.length;L++)T=new SuperMap.Geometry.Point(e,n+(o-n)*u*(L+1)),b.unshift(T);break;case 2:p=1/(2*S.length+1);for(var A=new SuperMap.Geometry.Point,O=0;O<2*S.length;O++)A=new SuperMap.Geometry.Point(e+(i-e)*p*(O+1),o),b.unshift(A);break;case 3:c=1/(2*g.length+1);for(var E=new SuperMap.Geometry.Point,w=0;w<2*g.length;w++)E=new SuperMap.Geometry.Point(i,n+(o-n)*c*(w+1)),b.push(E);break;case 4:y=1/(2*d.length+1);for(var x=new SuperMap.Geometry.Point,C=0;C<2*d.length;C++)x=new SuperMap.Geometry.Point(e+(i-e)*y*(C+1),n),b.push(x)}for(var R=0;R<h;R++)for(var I=0;I<h;I++){var _=SuperMap.Plot.PlottingUtil.intersectLineSegs(b[2*R+1],a[R],b[2*I],a[I],v);if(_&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,b[2*R+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,b[2*R+1].y)&&(_=!1),_){var U=a[I].clone();a[I]=a[R],a[R]=U}}for(var N=0;N<h;N++)l.splice(m[0],0,b[2*N]),l.splice(m[0],0,a[N]),l.splice(m[0],0,b[2*N+1])}else{for(var D,B,k=[],G=[],V=[],Y=[],j=0;j<r.length;j++)switch(r[j]){case 0:break;case 1:u=1/(2*f.length+1);for(var F=0;F<2*f.length;F++){var z=new SuperMap.Geometry.Point(e,n+(o-n)*u*(F+1));k.unshift(z)}for(var W=0;W<f.length;W++)for(var H=1;H<f.length;H++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(k[2*W+1],f[W],k[2*H],f[H],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,k[2*W+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,k[2*W+1].y)&&(D=!1),D&&(B=f[H].clone(),f[H]=f[W],f[W]=B);break;case 2:p=1/(2*S.length+1);for(var q=0;q<2*S.length;q++){var X=new SuperMap.Geometry.Point(e+(i-e)*p*(q+1),o);G.unshift(X)}for(var J=0;J<S.length;J++)for(var K=1;K<S.length;K++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(G[2*J+1],S[J],G[2*K],S[K],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,G[2*J+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,G[2*J+1].y)&&(D=!1),D&&(B=S[K].clone(),S[K]=S[J],S[J]=B);break;case 3:c=1/(2*g.length+1);for(var Q=0;Q<2*g.length;Q++){var Z=new SuperMap.Geometry.Point(i,n+(o-n)*c*(Q+1));V.push(Z)}for(var $=0;$<g.length;$++)for(var tt=1;tt<g.length;tt++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(V[2*$+1],g[$],V[2*tt],g[tt],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,V[2*$+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,V[2*$+1].y)&&(D=!1),D&&(B=g[tt].clone(),g[tt]=g[$],g[$]=B);break;case 4:y=1/(2*d.length+1);for(var et=0;et<2*d.length;et++){var ot=new SuperMap.Geometry.Point(e+(i-e)*y*(et+1),n);Y.push(ot)}for(var it=0;it<d.length;it++)for(var nt=1;nt<d.length;nt++)(D=SuperMap.Plot.PlottingUtil.intersectLineSegs(Y[2*it+1],d[it],Y[2*nt],d[nt],v))&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.x,Y[2*it+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(v.y,Y[2*it+1].y)&&(D=!1),D&&(B=d[nt].clone(),d[nt]=d[it],d[it]=B)}for(var lt=0;lt<d.length;lt++)l.splice(4,0,Y[2*lt]),l.splice(4,0,d[lt]),l.splice(4,0,Y[2*lt+1]);for(var rt=0;rt<g.length;rt++)l.splice(3,0,V[2*rt]),l.splice(3,0,g[rt]),l.splice(3,0,V[2*rt+1]);for(var at=0;at<S.length;at++)l.splice(2,0,G[2*at]),l.splice(2,0,S[at]),l.splice(2,0,G[2*at+1]);for(var st=0;st<f.length;st++)l.splice(1,0,k[2*st]),l.splice(1,0,f[st]),l.splice(1,0,k[2*st+1])}for(var ut=0;ut<a.length;ut++)this.addScalePoint(a[ut],ut)}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l),this.annotationContent(e,o,i,n),this.finish()}},{key:"modifyPoint",value:function(t,e){!0===e.isScalePoint&&(null==t&&void 0===t||(this.scaleValues[2*t]=e.x,this.scaleValues[2*t+1]=e.y)),this.calculateParts()}},{key:"getAction",value:function(t,e,o,i,n,l){var r=(i-l)/(n-o);return t<o?e>i?Math.abs((e-i)/(t-o))>r?2:1:e<l&&Math.abs((e-l)/(t-o))>r?4:1:t>n?e>i?Math.abs((e-i)/(t-n))>r?2:3:e<l&&Math.abs((e-l)/(t-n))>r?4:3:e>i?2:e<l?4:0}}]),e}();SuperMap.Plot.GeoTooltipBoxM=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.GeoTooltipBox=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(.126),o.CLASS_NAME="SuperMap.Plot.GeoTooltipBox",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"destroy",value:function(){(function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"calculateParts",value:function(){this.init();var t=this.scaleValues[0];if(!(t<0||t>1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,i,n,l,r;this.controlPoints[2]&&(this.controlPoints[2].isFixedPos=!0),this.controlPoints[0].x<this.controlPoints[1].x?(e=this.controlPoints[0].x,i=this.controlPoints[1].x):(e=this.controlPoints[1].x,i=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(n=this.controlPoints[0].y,o=this.controlPoints[1].y):(n=this.controlPoints[1].y,o=this.controlPoints[0].y),l=this.controlPoints[2].x,r=this.controlPoints[2].y;var a=0,s=(o-n)/(i-e);a=l<e?r>o?Math.abs((r-o)/(l-e))>s?2:1:r<n&&Math.abs((r-n)/(l-e))>s?4:1:l>i?r>o?Math.abs((r-o)/(l-i))>s?2:3:r<n&&Math.abs((r-n)/(l-i))>s?4:3:r>o?2:r<n?4:0,this.scalePoints=[];var u=[];switch(u.push(new SuperMap.Geometry.Point(e,n)),u.push(new SuperMap.Geometry.Point(e,o)),u.push(new SuperMap.Geometry.Point(i,o)),u.push(new SuperMap.Geometry.Point(i,n)),a){case 0:break;case 1:this.addScalePoint(new SuperMap.Geometry.Point(e,o-(o-n)*t)),u.splice(a,0,new SuperMap.Geometry.Point(e,o-(o-n)*t)),u.splice(a,0,this.controlPoints[2].clone()),u.splice(a,0,new SuperMap.Geometry.Point(e,n+(o-n)*t));break;case 2:this.addScalePoint(new SuperMap.Geometry.Point(i-(i-e)*t,o)),u.splice(a,0,new SuperMap.Geometry.Point(i-(i-e)*t,o)),u.splice(a,0,this.controlPoints[2].clone()),u.splice(a,0,new SuperMap.Geometry.Point(e+(i-e)*t,o));break;case 3:this.addScalePoint(new SuperMap.Geometry.Point(i,o-(o-n)*t)),u.splice(a,0,new SuperMap.Geometry.Point(i,n+(o-n)*t)),u.splice(a,0,this.controlPoints[2].clone()),u.splice(a,0,new SuperMap.Geometry.Point(i,o-(o-n)*t));break;case 4:this.addScalePoint(new SuperMap.Geometry.Point(i-(i-e)*t,n)),u.splice(a,0,new SuperMap.Geometry.Point(e+(i-e)*t,n)),u.splice(a,0,this.controlPoints[2].clone()),u.splice(a,0,new SuperMap.Geometry.Point(i-(i-e)*t,n))}this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,u),this.annotationContent(e,o,i,n)}this.finish()}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint&&0==t){var o,i,n,l,r,a,s=this.scalePoints[0];this.controlPoints[0].x<this.controlPoints[1].x?(o=this.controlPoints[0].x,n=this.controlPoints[1].x):(o=this.controlPoints[1].x,n=this.controlPoints[0].x),this.controlPoints[0].y<this.controlPoints[1].y?(l=this.controlPoints[0].y,i=this.controlPoints[1].y):(l=this.controlPoints[1].y,i=this.controlPoints[0].y),r=this.controlPoints[2].x,a=this.controlPoints[2].y;var u=(i-l)/(n-o),p=.25;switch(r<o?a>i?Math.abs((a-i)/(r-o))>u?2:1:a<l&&Math.abs((a-l)/(r-o))>u?4:1:r>n?a>i?Math.abs((a-i)/(r-n))>u?2:3:a<l&&Math.abs((a-l)/(r-n))>u?4:3:a>i?2:a<l?4:0){case 1:case 3:var c=s.y+(e.y-s.y);c>i&&(c=i),c<(i+l)/2&&(c=(i+l)/2),p=1-2*(i-c)/(i-l);break;case 2:case 4:var y=s.x+(e.x-s.x);y>n&&(y=n),y<(o+n)/2&&(y=(o+n)/2),p=1-2*(n-y)/(n-o)}p<0&&(p=0),p>1&&(p=1),this.scaleValues[0]=p}this.calculateParts()}}]),e}();SuperMap.Plot.GeoTooltipBox=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.Trapezoid=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.CLASS_NAME="SuperMap.Plot.Trapezoid",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length>=2&&t.length<this.minEditPts&&this.calAssistantLine(),!(t.length<this.minEditPts)){var e=[],o=t[0],i=t[1],n=t[2],l=new SuperMap.Geometry.Point(0,0);this.GetPointsByTrapezoid(1,n,i,o,l),e.push(o),e.push(i),e.push(n),e.push(l);var r=SuperMap.Plot.PlottingUtil.intersectLines(o,i,n,l),a=r.intersectPoint;r.isIntersectLines&&(a.x>o.x&&a.x<i.x||a.y>o.y&&a.y<i.y||a.x<o.x&&a.x>i.x||a.y<o.y&&a.y>i.y)&&(e[0]=l,e[3]=o),4==e.length&&this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e)}}},{key:"GetPointsByTrapezoid",value:function(t,e,o,i,n){var l=e.x,r=e.y,a=o.x,s=o.y,u=i.x,p=i.y,c=0,y=0,h=0,P=0;if(SuperMap.Plot.PlottingUtil.equalFuzzy(Math.abs(r-s),0))c=l+a-u,y=p;else if(SuperMap.Plot.PlottingUtil.equalFuzzy(Math.abs(l-a),0))c=u,y=r+s-p;else{var f=1*(r-s)/(l-a),S=p-f*u;y=f*(c=((s+r)/2+(l+a)/(2*f)-S)/(f+1/f))+S,c=2*c-u,y=2*y-p}var g=Math.sqrt(1*(l-a)*(l-a)+1*(r-s)*(r-s)),d=Math.sqrt(1*(l-c)*(l-c)+1*(r-y)*(r-y));g>0?(h=l+(a-l)*d/g,P=r+(s-r)*d/g):(h=l,P=r);var M=h+(c-h)*t,m=P+(y-P)*t;n.x=M,n.y=m}}]),e}();SuperMap.Plot.Trapezoid=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.Brace=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.1),o.scaleValues.push(.1)),o.CLASS_NAME="SuperMap.Plot.Brace",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=t[0],o=t[1],i=SuperMap.Plot.PlottingUtil.distance(e,o);this.scaleValues.length<2&&(this.scaleValues=[],this.scaleValues.push(.1),this.scaleValues.push(.1));for(var n=this.scaleValues[0],l=this.scaleValues[1],r=new SuperMap.Geometry.Point(i*n,i*n),a=new SuperMap.Geometry.Point(i*(.5-l/2),0),s=new SuperMap.Geometry.Point(.5*i,-i*l),u=new SuperMap.Geometry.Point(i*(.5+l/2),0),p=new SuperMap.Geometry.Point(i*(1-n),i*n),c=[],y=180*Math.PI/180,h=270*Math.PI/180,P=3*Math.PI/180,f=y;f<=h;f+=P){var S=new SuperMap.Geometry.Point(r.x+i*n,r.y);S=SuperMap.Plot.PlottingUtil.rotateAngle(r,f,S),c.push(S)}c.push(a),c.push(s),c.push(u),y=270*Math.PI/180,h=360*Math.PI/180;for(var g=y;g<=h;g+=P){var d=new SuperMap.Geometry.Point(p.x+i*n,p.y);d=SuperMap.Plot.PlottingUtil.rotateAngle(p,g,d),c.push(d)}for(var M=SuperMap.Plot.PlottingUtil.radian(e,o),m=[],v=0;v<c.length;v++){var b=new SuperMap.Geometry.Point(c[v].x+e.x,c[v].y+e.y);b=SuperMap.Plot.PlottingUtil.rotateAngle(e,M,b),m.push(b)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,m),this.scalePoints=[];var T=new SuperMap.Geometry.Point(i*n,0),L=new SuperMap.Geometry.Point(T.x+e.x,T.y+e.y);(L=SuperMap.Plot.PlottingUtil.rotateAngle(e,M,L)).isScalePoint=!0,L.tag=0,this.addScalePoint(L);var A=new SuperMap.Geometry.Point(s.x+e.x,s.y+e.y);SuperMap.Plot.PlottingUtil.rotateAngle(e,M,A),A.isScalePoint=!0,A.tag=1,this.addScalePoint(A)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),i=SuperMap.Plot.PlottingUtil.distance(o[0],o[1]);if(0==t){var n=SuperMap.Plot.PlottingUtil.distance(o[0],e)/i;n>0&&n<.4&&(this.scaleValues[0]=n)}else if(1==t){var l=new SuperMap.Geometry.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),r=SuperMap.Plot.PlottingUtil.distance(e,l)/i;0<r&&.2>r&&(this.scaleValues[1]=r)}}this.calculateParts()}}]),e}();SuperMap.Plot.Brace=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.RegularPolygon=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&o.scaleValues.push(1),o.CLASS_NAME="SuperMap.Plot.RegularPolygon",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){if(this.init(),!(this.controlPoints.length<this.minEditPts)){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints),e=this.controlPoints.length+1,o=2*Math.PI/e;if(!this.isEdit){var i=this.controlPoints[this.controlPoints.length-1],n=new SuperMap.Geometry.Point(this.controlPoints[this.controlPoints.length-1].x,this.controlPoints[this.controlPoints.length-1].y);SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o,n),this.scaleValues[0]=SuperMap.Plot.PlottingUtil.distance(t[0],this.calculateMidPt(i,n))/SuperMap.Plot.PlottingUtil.distance(t[0],t[t.length-1])}var l=[],r=this.controlPoints[this.controlPoints.length-1].clone();l.push(r.clone()),r=SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o/2,r);var a=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(this.scaleValues[0],this.controlPoints[0],r);l.push(a);for(var s=1;s<e;s++)r=SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o/2,r),l.push(r.clone()),r=SuperMap.Plot.PlottingUtil.rotateAngle(this.controlPoints[0],o/2,r),a=SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(this.scaleValues[0],this.controlPoints[0],r),l.push(a);var u=l[1];this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{surroundLineFlag:!1,fill:!1}),this.addScalePoint(u),this.finish()}}},{key:"calculateMidPt",value:function(t,e){return new SuperMap.Geometry.Point((t.x+e.x)/2,(t.y+e.y)/2)}},{key:"modifyPoint",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[this.controlPoints.length-1]),i=this.scalePoints[0],n=SuperMap.Plot.PlottingUtil.projectPoint(e,this.controlPoints[0],i),l=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],n);this.scaleValues[0]=l/o}this.calculateParts()}}]),e}();SuperMap.Plot.RegularPolygon=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.ArrowLine=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.arrowAngle=t.arrowAngle?t.arrowAngle:45,0===o.scaleValues.length&&(o.scaleValues.push(.3),o.scaleValues.push(0),o.scaleValues.push(0)),o.CLASS_NAME="SuperMap.Plot.ArrowLine",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),i(e,[{key:"calculateParts",value:function(){if(this.init(),!(null==this.controlPoints||this.controlPoints.length<this.minEditPts)){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);t=SuperMap.Plot.PlottingUtil.clearSamePts(t);var e=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);e=SuperMap.Plot.PlottingUtil.clearSamePts(e);var o=SuperMap.Plot.PlottingUtil.polylineDistance(e);this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(o));var i,n=this.scaleValues[0]*o,l=this.arrowAngle*Math.PI/180/2,r=(i=e.length>2?SuperMap.Plot.PlottingUtil.radian(e[e.length-1],e[e.length-2]):SuperMap.Plot.PlottingUtil.radian(e[1],e[0]))-l,a=e[e.length-1].x+n*Math.cos(r),s=e[e.length-1].y+n*Math.sin(r),u=new SuperMap.Geometry.Point(a,s),p=i+l,c=e[e.length-1].x+n*Math.cos(p),y=e[e.length-1].y+n*Math.sin(p),h=new SuperMap.Geometry.Point(c,y),P=[];P.push(u),P.push(e[e.length-1].clone()),P.push(h);var f={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},S=SuperMap.Plot.PlottingUtil.radian(e[0],e[1]);r=S-l,a=e[0].x+n*Math.cos(r),s=e[0].y+n*Math.sin(r),u=new SuperMap.Geometry.Point(a,s),p=S+l,c=e[0].x+n*Math.cos(p),y=e[0].y+n*Math.sin(p),h=new SuperMap.Geometry.Point(c,y);var g=[];g.push(u),g.push(e[0].clone()),g.push(h);var d=this.scaleValues[1]===SuperMap.Plot.ArrowLineType.DOUBLELINE?SuperMap.Plot.SymbolType.POLYLINESYMBOL:SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,M=this.scaleValues[2]===SuperMap.Plot.ArrowLineType.DOUBLELINE?SuperMap.Plot.SymbolType.POLYLINESYMBOL:SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL;this.scaleValues[1]===SuperMap.Plot.ArrowLineType.DOUBLELINE?this.addCell(d,g,f):this.scaleValues[1]===SuperMap.Plot.ArrowLineType.TRIANGLESOLID&&this.addCell(d,g,f),this.scaleValues[2]===SuperMap.Plot.ArrowLineType.DOUBLELINE?this.addCell(M,P,f):this.scaleValues[2]===SuperMap.Plot.ArrowLineType.TRIANGLESOLID&&this.addCell(M,P,f),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}]),e}();SuperMap.Plot.ArrowLine=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.AlgoSymbol=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.style=null,this.libID=e.libID?e.libID:0,this.code=e.code?e.code:0,this.maxEditPts=e.maxEditPts?e.maxEditPts:SuperMap.Plot.AlgoSymbolFactory.getMaxEditPts(e.libID,e.code),this.minEditPts=e.minEditPts?e.minEditPts:SuperMap.Plot.AlgoSymbolFactory.getMinEditPts(e.libID,e.code),this.isEdit=!!e.isEdit&&e.isEdit,this.controlPoints=e.controlPoints?e.controlPoints:[],this.scalePoints=e.scalePoints?e.scalePoints:[],this.scaleValues=e.scaleValues?e.scaleValues:[],this.subSymbols=e.subSymbols?e.subSymbols:SuperMap.Plot.AlgoSymbolFactory.getDefaultSubSymbols(e.libID,e.code),this.polylineConnectLocationPoint=!!e.polylineConnectLocationPoint&&e.polylineConnectLocationPoint,this.style=e.style?e.style:SuperMap.Plot.PlottingUtil.copyAttributes(this.style,SuperMap.Plot.AlgoSymbolFactory.getDefaultStyle(e.libID,e.code)),this.textContent=e.textContent?e.textContent:"",this.map=e.map?e.map:null,this.scene=e.scene?e.scene:null,this.subSymbolDefaultPixelSize=e.subSymbolDefaultPixelSize?e.subSymbolDefaultPixelSize:30,this.components=[],this.symbolType=0===this.libID?this.code:2}return i(t,[{key:"addScalePoint",value:function(t,e){if(null!=t){void 0!==e&&null!==e||(e=this.scalePoints.length);var o=new SuperMap.Geometry.Point(t.x,t.y);o.isScalePoint=!0,o.tag=e,this.scalePoints.push(o)}}},{key:"setOptions",value:function(t){if(t)for(var e in this)t[e]&&(this[e]=t[e])}},{key:"getAlgorithmResult",value:function(t){t.components=this.components,t.scalePoints=this.scalePoints,t.scaleValues=this.scaleValues}}]),i(t,[{key:"destroy",value:function(){this.minEditPts=null,this.maxEditPts=null,this.controlPoints.length=0,this.controlPoints=null,this.scalePoints.length=0,this.scalePoints=null,this.scaleValues.length=0,this.scaleValues=null,this.subSymbols.length=0,this.subSymbols=null,this.subSymbolSize=0,this.components=null,this.style=null}},{key:"init",value:function(){if(this.components.length=0,this.scalePoints.length=0,this.controlPoints.length>=2&&this.controlPoints.length<this.minEditPts&&this.calAssistantLine(),this.maxEditPts<this.controlPoints.length&&this.symbolType!==SuperMap.Plot.SymbolType.ELLIPSESYMBOL){var t=this.controlPoints.shift(),e=this.controlPoints.pop();this.controlPoints=[],this.controlPoints.push(t,e)}}},{key:"finish",value:function(){}},{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clearSamePts(this.controlPoints);if(t=SuperMap.Plot.PlottingUtil.clonePoints(t),this.controlPoints.length>=this.minEditPts){var e={textContent:this.textContent,type:this.symbolType,surroundLineFlag:!1,positionPoints:t,style:{}};if(e.type===SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL&&e.positionPoints.push(e.positionPoints[0]),this.symbolType===SuperMap.Plot.SymbolType.PARALLELLINE){if(this.controlPoints&&this.controlPoints.length>=3){var o=!1;void 0!==this.controlPoints[0].z&&(o=!0);var i=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);SuperMap.Plot.PlottingUtil.isRight(this.controlPoints[0],this.controlPoints[1],this.controlPoints[2])&&(i=-i);for(var n=[],l=1;l<this.controlPoints.length;l++)n.push(this.controlPoints[l].clone());var r=SuperMap.Plot.PlottingUtil.parallel(n,i);if(this.controlPoints[0].x=r[0].x,this.controlPoints[0].y=r[0].y,o)for(var a=0;a<n.length;a++)r[a].z=n[a].z;this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,r)}}else this.components.push(e)}}},{key:"modifyPoint",value:function(t,e){this.computeScaleValues(t,e),this.calculateParts()}},{key:"computeScaleValues",value:function(){}},{key:"getLonLatDistanceFromPixel",value:function(t){if(null===this.map)return 0;var e,o;if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var i=this.map.layerPointToLatLng(L.point(0,0)),n=this.map.layerPointToLatLng(L.point(t,0));e=new SuperMap.Geometry.Point(i.lng,i.lat),o=new SuperMap.Geometry.Point(n.lng,n.lat)}else if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){i=this.map.getLonLatFromPixel(new SuperMap.Pixel(0,0)),n=this.map.getLonLatFromPixel(new SuperMap.Pixel(t,0));e=new SuperMap.Geometry.Point(i.lon,i.lat),o=new SuperMap.Geometry.Point(n.lon,n.lat)}return SuperMap.Plot.PlottingUtil.distance(e,o)}},{key:"getPixelDistanceFromLonLat",value:function(t){if(null===this.map)return 0;var e,o;if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var i=this.map.latLngToLayerPoint(L.latLng(0,0)),n=this.map.latLngToLayerPoint(L.latLng(t,0));e=new SuperMap.Geometry.Point(i.x,i.y),o=new SuperMap.Geometry.Point(n.x,n.y)}else if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){i=this.map.getPixelFromLonLat(new SuperMap.LonLat(0,0)),n=this.map.getPixelFromLonLat(new SuperMap.LonLat(t,0));e=new SuperMap.Geometry.Point(i.x,i.y),o=new SuperMap.Geometry.Point(n.x,n.y)}return SuperMap.Plot.PlottingUtil.distance(e,o)}},{key:"getPixelFromLonLat",value:function(t,e){if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var o=this.map.latLngToLayerPoint(L.latLng(e,t));return{x:o.x,y:o.y}}if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){var i=this.map.getPixelFromLonLat(new SuperMap.LonLat(t,e));return{x:i.x,y:i.y}}}},{key:"getLonLatFromPixel",value:function(t,e){if(this.map&&"undefined"!=typeof L&&void 0!==L.Map&&this.map instanceof L.Map){var o=this.map.layerPointToLatLng(L.point(t,e));return{lon:o.lng,lat:o.lat}}if(this.map&&"undefined"!=typeof SuperMap&&void 0!==SuperMap.Map&&this.map instanceof SuperMap.Map){var i=this.map.getLonLatFromPixel(new SuperMap.Pixel(t,e));return{lon:i.lon,lat:i.lat}}}},{key:"pixelBoundsToLonLat",value:function(t){var e=this.getLonLatFromPixel(t.left,t.top),o=this.getLonLatFromPixel(t.right,t.bottom);return new SuperMap.Bounds(e.lon,o.lat,o.lon,e.lat)}},{key:"annotationContent",value:function(t,e,o,i){var n=this.textContent;if(0!==n.length){var l=n.split("\n");n="";var r=0,a={};SuperMap.Util.copyAttributes(a,this.style),a.fontSize<12&&(a.fontSize=12);for(var s=0;s<l.length;s++){r++;var u=l[s],p=SuperMap.Plot.PlottingUtil.getTextWidth(a,u),c=this.getPixelFromLonLat(t,e),y=this.getPixelFromLonLat(o,i),h=parseFloat(Math.abs(y.x-c.x)),P=parseFloat(Math.abs(c.y-y.y)),f=0;if(a.weight?f=parseFloat(a.fontSize)+2*a.weight+.2*parseFloat(a.fontSize)+r:this.style.strokeWidth&&(f=parseFloat(a.fontSize)+2*a.strokeWidth+.2*parseFloat(a.fontSize)+r),f>P)break;if(p>=h){var S=u.split("");u="";for(var g="",d=S.length,M=0;M<d;M++){if(g+=S[M],SuperMap.Plot.PlottingUtil.getTextWidth(a,g)>=h){var m=S[M];if(S[M]="\n",r++,a.weight?f=parseFloat(a.fontSize)*r+r+2*a.weight+.2*parseFloat(a.fontSize):this.style.strokeWidth&&(f=parseFloat(a.fontSize)*r+r+2*a.strokeWidth+.2*parseFloat(a.fontSize)),!(f<P)){0===n.length?n=u:(n+="\n",n+=u);break}S[M]+=m,g=m}u+=S[M],M===d-1&&(0===n.length?n=u:(n+="\n",n+=u))}}else 0===n.length?n=u:(n+="\n",n+=u)}if(0!==n.length){var v=a.labelAlign,b=0,T=0;"l"===v[0]?b=t:"r"===v[0]?b=o:"c"===v[0]&&(b=(t+o)/2),"t"===v[1]?T=e:"b"===v[1]?T=i:"m"===v[1]&&(T=(e+i)/2);var L=new SuperMap.Geometry.Point(b,T),A={};A.positionPoints=[L],A.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,A.textContent=n,A.style={surroundLineFlag:!1,labelAlign:v},this.components.push(A)}}}},{key:"addCell",value:function(t,e,o,i){if(t&&e){var n={};n.type=t,n.textContent=i,n.positionPoints=e,n.style=null==o?{surroundLineFlag:!1}:o,this.components.push(n)}}},{key:"addText",value:function(t,e,o,i,n){if(t&&e){var l={};l.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,l.textContent=t,l.positionPoints=[e];var r=o/t.length/2;l.style={},l.style.surroundLineFlag=!1,l.style.labelRotation=-i,l.style.fontSize=r,l.style.fontColor=void 0===n?"#000000":n,l.style.fontSizeLimit=!0,l.style.sizeFixed=!1,l.style.labelAlign="cm",l.style.label=t,this.components.push(l)}}},{key:"getLinePts",value:function(t,e,o){var i=new Object;if(e>.5)return i.startIndex=0,i.startPt=t[0],i.endIndex=t.length-1,i.endPt=t[t.length-1],i;null==o&&(o=.5);var n=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n*(o-e),t),r=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(n*(o+e),t);return i.startIndex=l.index,i.startPt=l.pts,i.endIndex=r.index,i.endPt=r.pts,i}},{key:"computeDashLine",value:function(t,e,o){var i=[],n=SuperMap.Plot.PlottingUtil.polylineDistance(o);if(n<=0)return[];for(var l,r=o[0],a=1,s=0,u=!0,p=!0;s<n;){var c,y=[];y.push(r),s+=t;var h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,o);if(c=h.index,l=h.pts,!(u=h.bfind))break;if(a<c)for(var P=a;P<c;P++)y.push(o[P]);y.push(l),i.push(y),s+=e;var f=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(s,o);if(c=f.index,r=f.pts,a=c+1,!(p=f.bfind))break}if(!u){var S=[];S.push(r);for(var g=a;g<o.length;g++)S.push(o[g]);2===S.length&&SuperMap.Plot.PlottingUtil.equalFuzzy(SuperMap.Plot.PlottingUtil.distance(S[0],S[1]),0)||i.push(S)}if(!p){var d=o[o.length-1],M=SuperMap.Plot.PlottingUtil.distance(l,d);if(M*=.01,!SuperMap.Plot.PlottingUtil.equalFuzzy(M,0)){var m=SuperMap.Plot.PlottingUtil.linePnt(d,l,M),v=[];v.push(m),v.push(d),i.push(v)}}return i}},{key:"addArrow",value:function(t,e){if(t.length<2)return t;var o,i=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);void 0===e&&(e=(this.isEdit,.5*this.getSubSymbolScaleValue()));var n=t.slice();o=i*e;var l,r=t[t.length-1],a=o*Math.cos(.125*Math.PI);if(t.length>2){for(var s=-1,u=t.length-2;u>=0;u--)if(o<SuperMap.Plot.PlottingUtil.distance(r,t[u])){s=u;break}t.splice(s+1,t.length-s),t.push(r)}if(t.length>1){SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>a&&(l=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(a,[t[t.length-1],t[t.length-2]])).bfind&&(t.splice(t.length-1,1),t.push(l.pts)),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var p=t[t.length-1],c=r,y=o;if(void 0===p)return t;var h=SuperMap.Plot.PlottingUtil.radian(p,c)*SuperMap.Plot.PlottingUtil.RTOD,P=SuperMap.Plot.PlottingUtil.circlePoint(c,y,y,h+157.5),f=SuperMap.Plot.PlottingUtil.circlePoint(c,y,y,h+202.5),S={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,r,f],S)}else this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,n)}},{key:"addDovetailArrow",value:function(t,e){if(t.length<2)return t;var o,i=SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);void 0===e&&(e=(this.isEdit,.5*this.getSubSymbolScaleValue())),o=i*e;var n=t[t.length-1];if(t.length>2){for(var l=-1,r=t.length-2;r>=0;r--)if(o<SuperMap.Plot.PlottingUtil.distance(n,t[r])){l=r;break}t.splice(l+1,t.length-l),t.push(n)}this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,t);var a=t[t.length-2],s=t[t.length-1],u=o;if(void 0===a)return t;if(!(SuperMap.Plot.PlottingUtil.distance(a,s)<o)){var p=SuperMap.Plot.PlottingUtil.radian(a,s)*SuperMap.Plot.PlottingUtil.RTOD,c=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p+157.5),y=SuperMap.Plot.PlottingUtil.circlePoint(s,u,u,p+202.5),h=SuperMap.Plot.PlottingUtil.circlePoint(s,.5*u,.5*u,p+180),P=[];P.push(c),P.push(t[t.length-1]),P.push(y),P.push(h);var f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMap.Plot.AlgoSurroundLineType.NONE};this.addCell(SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,P,f)}}},{key:"getDefaultSubSymbolSize",value:function(){var t=0;if(this.map){var e=this.getLonLatFromPixel(0,0),o=this.getLonLatFromPixel(this.subSymbolDefaultPixelSize,0),i=new SuperMap.Geometry.Point(e.lon,e.lat),n=new SuperMap.Geometry.Point(o.lon,o.lat);t=SuperMap.Plot.PlottingUtil.distance(i,n)}if(0===t){if(0!==this.subSymbolSize)return this.subSymbolSize;for(var l=0,r=0;r<this.controlPoints.length-1;r++)l+=SuperMap.Plot.PlottingUtil.distance(this.controlPoints[r],this.controlPoints[r+1]);t=.3*l}return t}},{key:"getTextBounds",value:function(t,e){" "===e&&(e="_");var o=document.createElement("span");document.body.appendChild(o),o.style.width="auto",o.style.height="auto",t.fontSize&&(o.style.fontSize=new String(t.fontSize)+"px"),t.fontFamily&&(o.style.fontFamily=t.fontFamily),t.fontWeight&&(o.style.fontWeight=t.fontWeight),o.style.position="absolute",o.style.visibility="hidden",o.innerHTML=e;var i=new SuperMap.Bounds(o.clientLeft,o.clientTop+o.clientHeight-6,o.clientLeft+o.clientWidth,o.clientTop+4),n=this.pixelBoundsToLonLat(i);return document.body.removeChild(o),n}},{key:"calAssistantLine",value:function(){var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);this.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL&&(t.splice(1,0,new SuperMap.Geometry.Point(this.controlPoints[1].x,this.controlPoints[0].y)),t.push(new SuperMap.Geometry.Point(this.controlPoints[0].x,this.controlPoints[1].y)),t.push(new SuperMap.Geometry.Point(this.controlPoints[0].x,this.controlPoints[0].y)));var e={type:24,surroundLineFlag:!1,positionPoints:t,style:{color:"#0000ff",opacity:1,weight:1,dashArray:"5, 5",strokeColor:"#0000ff",strokeOpacity:1,strokeWidth:1,strokeDashstyle:"dash",lineColorLimit:!0,lineTypeLimit:!0,lineWidthLimit:!0,surroundLineFlag:!1}};this.components.push(e)}},{key:"getSubSymbolScaleValue",value:function(t,e){var o=0;o=t&&!SuperMap.Plot.PlottingUtil.equalFuzzy(t,0)?t:SuperMap.Plot.PlottingUtil.polylineDistance(this.controlPoints);var i=this.getDefaultSubSymbolSize()/o;return void 0===e&&(e=.3),(i>e||i<=0)&&(i=e),i}},{key:"computeSubSymbol",value:function(t,e,o,i,n,l){if(null==t.symbolData||null==t.symbolData.innerCells)return null;void 0===n&&(n=0),void 0===l&&(l=0);for(var r=SuperMap.Plot.AnalysisSymbol.analysisSymbolCells(t.symbolData,!0),a=0,s=0,u=0,p=0,c=0;c<r.length;c++){null!=r[c].polybezierClose&&(r[c].type===SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL||r[c].type===SuperMap.Plot.SymbolType.POLYBEZIERCLOSESYMBOL?(r[c].type,SuperMap.Plot.SymbolType.POLYBEZIERSYMBOL,r[c].positionPoints=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(r[c].positionPoints),r[c].isClosed&&r[c].positionPoints[0]!==r[c].positionPoints[symbolCell.positionPoints.length-1]&&r[c].positionPoints.push(r[c].positionPoints[0])):r[c].type===SuperMap.Plot.SymbolType.KIDNEY&&(r[c].positionPoints=SuperMap.Plot.Primitives.getSpatialData(r[c].type,r[c].positionPoints)));for(var y=SuperMap.Plot.Primitives.getSpatialData(r[c].type,r[c].positionPoints,r[c].textContent,0,r[c].isCalculate),h=0,P=y.length;h<P;h++)a<y[h].x&&(a=y[h].x),s<y[h].y&&(s=y[h].y),u>y[h].x&&(u=y[h].x),p>y[h].y&&(p=y[h].y)}var f=new SuperMap.Geometry.Point(a,s),S=new SuperMap.Geometry.Point(u,p),g=(f.y-S.y)/o,d=(f.x-S.x)/o,M=d>g?d:g,m=new SuperMap.Geometry.Point(.5*(f.x+S.x),.5*(f.y+S.y));m.x+=n*(f.x-S.x),m.y+=l*(f.y-S.y);for(var v=0,b=r.length;v<b;v++){for(var T=0,L=r[v].positionPoints.length;T<L;T++)r[v].positionPoints[T].x-=m.x,r[v].positionPoints[T].y-=m.y,r[v].positionPoints[T].x/=M,r[v].positionPoints[T].y/=M,SuperMap.Plot.PlottingUtil.rotateAngle(new SuperMap.Geometry.Point(0,0),i*Math.PI/180,r[v].positionPoints[T]),r[v].positionPoints[T].x+=e.x,r[v].positionPoints[T].y+=e.y;r[v].type===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(r[v].style.fontSize/=10*M,r[v].style.labelRotation=-i,r[v].style.sizeFixed=!1),r[v].isCalculate=!1,r[v].style.surroundLineType=0,r[v].style.surroundLineLimit=!0,this.components.push(r[v])}return r}},{key:"ComputeZValue",value:function(t,e,o){var i=SuperMap.Plot.PlottingUtil.pointProjectToSegment(t,e,o),n=new SuperMap.Geometry.Point(i.projectPoint.x,i.projectPoint.y),l=SuperMap.Plot.PlottingUtil.distance(e,o),r=SuperMap.Plot.PlottingUtil.distance(e,t),a=SuperMap.Plot.PlottingUtil.distance(o,t);if(!i.isOnline){if(r>=l)return o.z;if(a>=l)return e.z}return n.x!=e.x&&e.x!=o.x?e.z+(n.x-e.x)/(e.x-o.x)*(e.z-o.z):n.y!=e.y&&e.y!=o.y?e.z+(n.y-e.y)/(e.y-o.y)*(e.z-o.z):0==(r=SuperMap.Plot.PlottingUtil.distance(e,n))?e.z:e.z-(e.z-o.z)*(r/l)}},{key:"ComputeBeizerZValueByDis",value:function(t,e,o){if(t.length<2)return!1;for(var i=[],n=0;n<t.length;n++)i.push({x:t[n].x,y:t[n].y});var l=SuperMap.Plot.PlottingUtil.polylineDistance(i);if(0==l)return!1;var r=SuperMap.Plot.PlottingUtil.polylineDistance(e),a=[];a.push(i[0]);for(var s=-1,u=0,p=e[0],c=1;c<i.length;c++){a.push(i[c]);var y=SuperMap.Plot.PlottingUtil.polylineDistance(a)/l,h=r*y,P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(h,e),f=P.index,S=P.pts;if(P.bfind){for(var g=t[c-1].z,d=t[c].z,M=r*(y-u),m=0,v=++s;v<=f;v++){var b=g+(d-g)*((m+=v==s?SuperMap.Plot.PlottingUtil.distance(p,e[v]):SuperMap.Plot.PlottingUtil.distance(e[v-1],e[v]))/M);o.push({x:e[v].x,y:e[v].y,z:b})}s=f}u=y,p=S}for(var T=s+1;T<e.length;T++)o.push({x:e[T].x,y:e[T].y,z:t[t.length-1].z});return!0}},{key:"ComputeHeight",value:function(t,e,o,i){if(o!=i){if(0!=t.length)if(1==t.length)e.push({x:t[0].x,y:t[0].y,z:o});else if(2==t.length)e.push({x:t[0].x,y:t[0].y,z:o}),e.push({x:t[1].x,y:t[1].y,z:i});else{var n=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(0!=n){var l=[];l.push(t[0]),e.push({x:t[0].x,y:t[0].y,z:o});for(var r=1;r<t.length-1;r++){l.push(t[r]);var a=o+(i-o)*SuperMap.Plot.PlottingUtil.polylineDistance(l)/n;e.push({x:t[r].x,y:t[r].y,z:a})}e.push({x:t[t.length-1].x,y:t[t.length-1].y,z:i})}else for(var s=0;s<t.length;s++)e.push({x:t[s].x,y:t[s].y,z:o})}}else for(var u=0;u<t.length;u++)e.push({x:t[u].x,y:t[u].y,z:o})}}]),t}();SuperMap.Plot.AlgoSymbol=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.ArrowToolkit=SuperMap.Plot.ArrowToolkit=SuperMap.Plot.ArrowToolkit||{};SuperMap.Plot.ArrowToolkit.ConstValue={MAX_ARRAY_SIZE:128,sv_AtScaleParameter:1.5,sv_AtLenDivAtWidth:1.35,sv_AtWidthDivAwWidth:.5,DUOJIANTOU_TAIL_RATE_1:8,DUOJIANTOU_TAIL_RATE_2:3,DUOJIANTOU_TAIL_RATE_3:.6},SuperMap.Plot.ArrowToolkit.ArrowTailType={ARROWTAIL_NONE:0,ARROWTAIL_LINE:1,ARROWTAIL_CURVE:2,ARROWTAIL_COATTAIL:3,ARROWTAIL_COATTAIL_POLYBODY:4},SuperMap.Plot.ArrowToolkit.ArrowHeadType={ARROWHEAD_POLYLINE:0,ARROWHEAD_TRIANGLE:1,ARROWHEAD_COATTAIL:2,ARROWHEAD_TRIANGLE_SOLID:3,ARROWHEAD_COATTAIL_HOLLOW:6,ARROWHEAD_WITH_EAR:4,ARROWHEAD_WITHOUT_EAR:5},SuperMap.Plot.ArrowToolkit.ArrowBodyType={ARROWBODY_POLYLINE:0,ARROWBODY_POLYBEZIER:1,ARROWBODY_COATTAIL:5,ARROWBODY_PARALLEL:2,ARROWBODY_TRAPEZOID:3,ARROWBODY_MULTIPOLYBEZIER:4},SuperMap.Plot.ArrowToolkit.parallel=function(t,e){var o={leftParallelPts:[],rightParallelPts:[]};return 1===t.length||2===t.length&&t[0].x===t[1].x&&t[0].y===t[1].y?o:(o.leftParallelPts=SuperMap.Plot.PlottingUtil.parallel(t,e),o.rightParallelPts=SuperMap.Plot.PlottingUtil.parallel(t,-e),o)},SuperMap.Plot.ArrowToolkit.trapezoid=function(t,e,o){var i={leftParallelPts:[],rightParallelPts:[]};if(1===t.length||2===t.length&&t[0].x===t[1].x&&t[0].y===t[1].y)return i;for(var n=0;n<t.length-1;n++){t[n].x===t[n+1].x&&t[n].y===t[n+1].y&&(i.leftParallelPts.push(i.leftParallelPts[i.leftParallelPts.length-1]),i.rightParallelPts.push(i.rightParallelPts[i.rightParallelPts.length-1]));var l=t[n+1];l=SuperMap.Plot.PlottingUtil.rotate(t[n],0,1,l),i.leftParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[n],l,e)),l=t[n],l=SuperMap.Plot.PlottingUtil.rotate(t[n+1],0,-1,l),i.leftParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[n+1],l,o)),l=t[n+1],l=SuperMap.Plot.PlottingUtil.rotate(t[n],0,-1,l),i.rightParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[n],l,e)),l=t[n],l=SuperMap.Plot.PlottingUtil.rotate(t[n+1],0,1,l),i.rightParallelPts.push(SuperMap.Plot.PlottingUtil.findPointInLine(t[n+1],l,o))}return i},SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePts=function(t,e,o){var i={};switch(o){case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL:case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_TRAPEZOID:var n=e[0],l=e[1],r=e[2],a=SuperMap.Plot.PlottingUtil.equalFuzzy(r,0);if(!a&&t.length>2){var s=t.length;t.splice(2,s-2)}var u=SuperMap.Plot.PlottingUtil.polylineDistance(t);i.arrowTouLen=u*n;for(var p=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,u-i.arrowTouLen).pt,c=[],y=i.arrowTouLen*r,h=i.arrowTouLen*l,P=t.length-1,f=0;f<P;f++)c.push(t[f]);c.push(p);var S={leftParallelPts:[],rightParallelPts:[]};S=!0===a?SuperMap.Plot.ArrowToolkit.parallel(c,h):SuperMap.Plot.ArrowToolkit.trapezoid(c,y,h);var g=t[t.length-1];t[t.length-1]=p,t.push(g);i.leftBodyPts=S.leftParallelPts,i.rightBodyPts=S.rightParallelPts,i.OpectrlPoints=null;break;case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_MULTIPOLYBEZIER:var d=SuperMap.Plot.PlottingUtil.polylineDistance(t);if(0==d)return;var M=SuperMap.Plot.ArrowToolkit.OperateCtrlPts(t),m=M.length;m--;var v=SuperMap.Plot.ArrowToolkit.generateMultiBezier(M,m,e,d);t=[];for(var b=0;b<M.length;b++)t.push(M[b]);i.arrowTouLen=v.arrowTouLen,i.leftBodyPts=v.leftBodyPts,i.rightBodyPts=v.rightBodyPts,i.OpectrlPoints=M}return i},SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePts=function(t,e,o,i,n){var l=[];switch(n){case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR:case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR:var r=o[0],a=o[1],s=0,u=0;3==o.length&&(s=o[2]),4==o.length&&(s=o[2],u=o[3]);var p=0;if(!SuperMap.Plot.PlottingUtil.equalFuzzy(s,0)&&!SuperMap.Plot.PlottingUtil.equalFuzzy(u,0)){var c=SuperMap.Plot.PlottingUtil.clonePoints(t);c.splice(c.length-1,1),p=SuperMap.Plot.PlottingUtil.polylineDistance(c)*s*u}var y=new SuperMap.Geometry.Point((e[0].x+e[1].x)/2,(e[0].y+e[1].y)/2);if(SuperMap.Plot.PlottingUtil.equalFuzzy(a,0)){var h=i*r,P=t[t.length-1];return P=SuperMap.Plot.PlottingUtil.rotate(y,0,1,P),l.push(SuperMap.Plot.PlottingUtil.findPointInLine(y,P,h)),l.push(t[t.length-1]),P=t[t.length-1],P=SuperMap.Plot.PlottingUtil.rotate(y,0,-1,P),l.push(SuperMap.Plot.PlottingUtil.findPointInLine(y,P,h)),l}var f=i*a,S=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(f,y,t[t.length-1]);f=i*r,f+=p;var g=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(f,t[t.length-1],S),d=g.pntLeft,M=g.pntRight,m=t[t.length-1];return l.push(M),l.push(m),l.push(d),l}},SuperMap.Plot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine=function(t,e,o,i){var n=[];if(2>t.length)return n;var l,r=SuperMap.Plot.PlottingUtil.polylineDistance(t),a=SuperMap.Plot.PlottingUtil.equalFuzzy(e,0);switch(o){case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE:n=n.concat(t),i&&!a&&SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(l=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,r-e),n.splice(n.length-1,1),n.push(l.pt));break;case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER:if(2==t.length)n=n.concat(t),i&&!a&&SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(l=SuperMap.Plot.PlottingUtil.findPointInPolyLine(t,r-e),n.splice(n.length-1,1),n.push(l.pt));else{var s=SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);if(a)n=n.concat(s);else{var u=s[s.length-1];if(!a&&(e<SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2])||SuperMap.Plot.PlottingUtil.equalFuzzy(SuperMap.Plot.PlottingUtil.distance(t[t.length-1],t[t.length-2]),e,1e-7))){for(var p=s.length-1;p>1;p--){if(!(e>SuperMap.Plot.PlottingUtil.distance(u,s[p]))){var c=SuperMap.Plot.PlottingUtil.findPoint(u,s[p],e,0);s.push(c),n=s;break}s.splice(p,1)}i||n.push(u)}else n=n.concat(s)}}break;case SuperMap.Plot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL:var y=e;if(y>r)return n;for(var h,P,f=Math.ceil(r/(1.4*y)),S=0,g=[],d=0;d<f;d++)h=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(y*S,t),P=SuperMap.Plot.PlottingUtil.getPtsIndexByDistance(y*(S+1),t),h.bfind&&P.bfind&&(g.push(h.pts),g.push(P.pts)),S=1.4*(d+1);n=g}return n},SuperMap.Plot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine=function(t,e,o){var i=[];if(2>t.length)return i;switch(o){case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE:var n=t[0],l=t[1],r=SuperMap.Plot.PlottingUtil.distance(n,l);if(SuperMap.Plot.PlottingUtil.equalFuzzy(r,e,1e-7)||r>e){var a=SuperMap.Plot.PlottingUtil.findPoint(n,l,e,0),s=e*Math.tan(.125*Math.PI),u=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(s,t[0],a);i.push(u.pntLeft),i.push(t[0]),i.push(u.pntRight)}break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE:break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID:var p=t[0],c=t[1],y=SuperMap.Plot.PlottingUtil.distance(p,c);if(SuperMap.Plot.PlottingUtil.equalFuzzy(y,e,1e-7)||y>e){var h=e*Math.tan(.125*Math.PI),P=SuperMap.Plot.PlottingUtil.findPoint(p,c,e,0),f=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(h,t[0],P);i.push(f.pntLeft),i.push(p),i.push(f.pntRight),i.push(f.pntLeft)}break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL:var S=t[0],g=2*Math.sqrt(e*e/3),d=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(SuperMap.Plot.PlottingUtil.equalFuzzy(g/2,d,1e-7)||d>g/2){var M=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],g,20),m=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],g,-20),v=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],g/2,0);i.push(S),i.push(M),i.push(v),i.push(m),i.push(S)}break;case SuperMap.Plot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW:var b=[],T=t[0],L=2*Math.sqrt(e*e/3),A=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(SuperMap.Plot.PlottingUtil.equalFuzzy(L/1.4,A,1e-7)||A>L/1.4){var O=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],L,20),E=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],L,-20),w=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],L/1.4,0);b.push(T),b.push(O),b.push(w),b.push(E),b.push(T);var x=new SuperMap.Geometry.Point((b[0].x+b[1].x)/2,(b[0].y+b[1].y)/2),C=new SuperMap.Geometry.Point((b[3].x+b[4].x)/2,(b[3].y+b[4].y)/2),R=new SuperMap.Geometry.Point((x.x+C.x)/2,(x.y+C.y)/2),I=.75*SuperMap.Plot.PlottingUtil.distance(x,C)/2,_=SuperMap.Plot.PlottingUtil.findPointInLine(R,x,I),U=SuperMap.Plot.PlottingUtil.findPointInLine(R,C,I);i.push(b[0]),i.push(_),i.push(b[1]),i.push(b[2]),i.push(b[3]),i.push(U),i.push(b[4])}}return i},SuperMap.Plot.ArrowToolkit.generateArrowTailShapePts=function(t,e,o,i){for(var n=e.length,l=[],r=0,a=0;a<t.length-1;a++)r+=SuperMap.Plot.PlottingUtil.distance(t[a],t[a+1]);var s=r*o;switch(i){case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_NONE:break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_LINE:var u=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,90),p=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,-90);l.push(u),l.push(p);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_CURVE:var c=new SuperMap.Geometry.Point(.5*(e[0].x+e[n-1].x),.5*(e[0].y+e[n-1].y)),y=SuperMap.Plot.PlottingUtil.distance(e[0],e[n-1]),h=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(y*o,c,t[t.length-1]),P=new SuperMap.Geometry.Point(0,0),f=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrianglePoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_1,SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_2,e[0],h,e[n-1],P,f);var S=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_3,e[0],h,P,S);var g=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(SuperMap.Plot.ArrowToolkit.ConstValue.DUOJIANTOU_TAIL_RATE_3,e[n-1],h,f,g);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL:var d=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,157.5),M=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],s,-157.5);l.push(d),l.push(t[0]),l.push(M);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL_POLYBODY:var m=new SuperMap.Geometry.Point(.5*(e[0].x+e[n-1].x),.5*(e[0].y+e[n-1].y)),v=SuperMap.Plot.PlottingUtil.distance(e[0],e[n-1]),b=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(v*o,e[0],m);l.push(e[n-1]),l.push(b.pntLeft),l.push(e[0])}return l},SuperMap.Plot.ArrowToolkit.generateArrowTailShapePtsBySingleLine=function(t,e,o){var i=[];switch(o){case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_NONE:break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_LINE:var n=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,90),l=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,-90);i.push(n),i.push(l);break;case SuperMap.Plot.ArrowToolkit.ArrowTailType.ARROWTAIL_COATTAIL:var r=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,157.5),a=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,-157.5);i.push(r),i.push(t[0]),i.push(a)}return i},SuperMap.Plot.ArrowToolkit.OperateCtrlPts=function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t);if(3==e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,i=((e[0].y+e[1].y)/2+e[2].y)/2,n=new SuperMap.Geometry.Point(o,i),l=e[2].clone();e[2]=n,e.push(l)}return e},SuperMap.Plot.ArrowToolkit.generateMultiBezier=function(t,e,o,i){var n=0,l=[],r=[],a=[],s=[],u=[],p=[],c=o[0],y=o[1],h=(t[0].x+t[1].x)/2,P=(t[0].y+t[1].y)/2,f=Math.abs(h-t[2].x),S=Math.abs(P-t[2].y),g=0;if(f>0&&S>0){var d=1/(h-t[2].x),M=-1/(P-t[2].y),m=1*t[2].y/(P-t[2].y)-1*t[2].x/(h-t[2].x);g=Math.abs(d*t[0].x+M*t[0].y+m)/Math.sqrt(d*d+M*M)}else S<=1e-4?g=Math.abs(P-t[1].y):f<=1e-4&&(g=Math.abs(h-t[1].x));var v=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(g,t[2],new SuperMap.Geometry.Point(h,P)),b=SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[1],t[2],t[0]);b?(l[1]=t[1],r[1]=t[0]):(l[1]=t[0],r[1]=t[1]),t[1]=new SuperMap.Geometry.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);var T=Math.sqrt((v.pntLeft.x-v.pntRight.x)*(v.pntLeft.x-v.pntRight.x)+(v.pntLeft.y-v.pntRight.y)*(v.pntLeft.y-v.pntRight.y))*SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtWidthDivAwWidth,L=(n=T*SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtLenDivAtWidth)*y;SuperMap.Plot.PlottingUtil.equalFuzzy(c,0)||(L=(n=i*c)*y);var A,O,E=SuperMap.Plot.PlottingUtil.distance(t[e],t[e-1]),w=2*n;E<w&&(L=(n=E/2)*y),t.push(t[e]),A=0,O=0;var x=0,C=[];for(x=2;x<=e;x++)A+=SuperMap.Plot.PlottingUtil.distance(t[x],t[x-1]);for(A-=n,x=2;x<=e-1;x++)O+=SuperMap.Plot.PlottingUtil.distance(t[x],t[x-1]),C[x]=L+(T-L)*Math.pow((A-O)/A,SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter);C[e]=L;var R,I,_=new SuperMap.Geometry.Point(0,0),U=new SuperMap.Geometry.Point(0,0),N=new SuperMap.Geometry.Point(0,0);for(x=2;x<=e-1;x++)SuperMap.Plot.PlottingUtil.getTrianglePoints(0,3,t[x-1],t[x],t[x+1],U,N),x==e-1&&SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,t[e],t[e-1],N,_),R=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(C[x],U,t[x]),(b=SuperMap.Plot.PlottingUtil.pointIsRightToLine(N,U,R.pntRight))?(l[x]=new SuperMap.Geometry.Point(R.pntRight.x,R.pntRight.y),r[x]=new SuperMap.Geometry.Point(R.pntLeft.x,R.pntLeft.y)):(l[x]=new SuperMap.Geometry.Point(R.pntLeft.x,R.pntLeft.y),r[x]=new SuperMap.Geometry.Point(R.pntRight.x,R.pntRight.y));for(Math.sqrt(1*(t[e].x-_.x)*(t[e].x-_.x)+1*(t[e].y-_.y)*(t[e].y-_.y))>0&&(t[e]=SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale(n,t[e],_)),R=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(L,t[e+1],t[e]),(b=SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[e],t[e+1],R.pntLeft))?(r[e]=new SuperMap.Geometry.Point(R.pntLeft.x,R.pntLeft.y),l[e]=new SuperMap.Geometry.Point(R.pntRight.x,R.pntRight.y)):(r[e]=new SuperMap.Geometry.Point(R.pntRight.x,R.pntRight.y),l[e]=new SuperMap.Geometry.Point(R.pntLeft.x,R.pntLeft.y)),x=2;x<e;x++)SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,l[x-1],l[x],l[x+1],U,N),a[x]=new SuperMap.Geometry.Point(U.x,U.y),s[x]=new SuperMap.Geometry.Point(N.x,N.y),SuperMap.Plot.PlottingUtil.getTrianglePoints(3,3,r[x-1],r[x],r[x+1],U,N),u[x]=new SuperMap.Geometry.Point(U.x,U.y),p[x]=new SuperMap.Geometry.Point(N.x,N.y),2==x&&(SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,l[1],l[2],a[2],_),s[1]=new SuperMap.Geometry.Point(_.x,_.y),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.5,r[1],r[2],u[2],_),p[1]=new SuperMap.Geometry.Point(_.x,_.y)),x==e-1&&(w=(E=SuperMap.Plot.PlottingUtil.distance(l[e],l[e-1]))/3,(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(w,t[e],t[e+1])).x+=l[e].x-t[e].x,I.y+=l[e].y-t[e].y,w=(E=T-L)*Math.pow(w/A,SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter),R=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(w,l[e],I),a[e]=new SuperMap.Geometry.Point(R.pntLeft.x,R.pntLeft.y),w=(E=SuperMap.Plot.PlottingUtil.distance(r[e],r[e-1]))/3,(I=SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale(w,t[e],t[e+1])).x+=r[e].x-t[e].x,I.y+=r[e].y-t[e].y,w=(E=T-L)*Math.pow(w/A,SuperMap.Plot.ArrowToolkit.ConstValue.sv_AtScaleParameter),R=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(w,r[e],I),u[e]=new SuperMap.Geometry.Point(R.pntRight.x,R.pntRight.y));return{arrowTouLen:n,leftBodyPts:SuperMap.Plot.ArrowToolkit.genArrowBody(e,l,a,s),rightBodyPts:SuperMap.Plot.ArrowToolkit.genArrowBody(e,r,u,p)}},SuperMap.Plot.ArrowToolkit.genArrowBody=function(t,e,o,i){var n=new SuperMap.Plot.Path2D;if(!(t<2)){n.MoveTo(e[1]);for(var l=1;l<=t-1;l++)n.CubicTo(i[l],o[l+1],e[l+1]);var r=[];return n.ToSubPathPolygons(r),r[0]}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.Path2DData=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e){this.cStart=e.cStart,this.fillRule=e.fillRule,this.require_StartNewFigure=e.require_StartNewFigure,this.isBoundsDirty=e.isBoundsDirty,this.bounds=new SuperMap.Bounds(e.bounds.left,e.bounds.bottom,e.bounds.right,e.bounds.top),this.ref=1,this.elements=[];for(var o=0;o<e.elements.length;o++)this.elements.push(e.elements[o].clone())}else this.ref=1,this.bounds=new SuperMap.Bounds(0,0,0,0),this.elements=[];this.CLASS_NAME="SuperMap.Plot.Path2DData"}return i(t,[{key:"IsClosed",value:function(){var t=this.elements[this.cStart],e=this.elements[this.elements.length-1];return t.GetX()==e.GetX()&&t.GetY()==e.GetY()}},{key:"Close",value:function(){this.require_StartNewFigure=!0;var t=this.elements[this.cStart],e=this.elements[this.elements.length-1];t!=e&&(t.Equal(e)?e.SetPosition(t.GetX(),t.GetY()):this.elements.push(new SuperMap.Plot.Element(t.GetX(),t.GetY(),SuperMap.Plot.ElementType.LineToElement)))}},{key:"MaybeStartNewFigure",value:function(){if(this.require_StartNewFigure){var t=this.elements[this.elements.length-1].clone();t.SetType(0),this.elements.push(t),this.require_StartNewFigure=!1}}}]),t}();SuperMap.Plot.Path2DData=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.Element=function(){function t(e,o,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.m_x=e,this.m_y=o,this.m_type=i,this.CLASS_NAME="SuperMap.Plot.Element"}return i(t,[{key:"GetX",value:function(){return this.m_x}},{key:"GetY",value:function(){return this.m_y}},{key:"GetType",value:function(){return this.m_type}},{key:"GetPosition",value:function(){return SuperMap.Geometry.Point(this.m_x,this.m_y)}},{key:"SetPosition",value:function(t,e){this.m_x=t,this.m_y=e}},{key:"SetType",value:function(t){this.m_type=t}},{key:"IsCurveTo",value:function(){return 2==this.m_type}},{key:"IsLineTo",value:function(){return 1==this.m_type}},{key:"IsMoveTo",value:function(){return 0==this.m_type}},{key:"Equal",value:function(t){return SuperMap.Plot.PlottingUtil.equalFuzzy(this.m_x,t.m_x,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(this.m_y,t.m_y,1e-10)&&this.m_type==t.m_type}},{key:"clone",value:function(){return new SuperMap.Plot.Path2D.Element(this.m_x,this.m_y,this.m_type)}}]),t}();SuperMap.Plot.Element=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.Path2D=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.m_pData=null,this.CLASS_NAME="SuperMap.Plot.Path2D"}return i(t,[{key:"MoveTo",value:function(t){this.ensureData(),this.detach();var e=this.getDataPtr();if(e.require_StartNewFigure=!1,0==e.elements[e.elements.length-1].GetType())e.elements[e.elements.length-1].SetPosition(t.x,t.y);else{var o=new SuperMap.Plot.Element(t.x,t.y,0);e.elements.push(o)}e.cStart=e.elements.length-1}},{key:"LineTo",value:function(t){this.ensureData(),this.detach();var e=this.getDataPtr();if(e.MaybeStartNewFigure(),e.elements[e.elements.length-1].GetX()!=t.x||e.elements[e.elements.length-1].GetY()!=t.y){var o=new SuperMap.Plot.Element(t.x,t.y,1);e.elements.push(o)}}},{key:"CurveTo",value:function(t,e,o){this.ensureData(),this.detach();var i=this.getDataPtr();if(i.elements[i.elements.length-1].GetX()!=t.x||i.elements[i.elements.length-1].GetY()!=t.y||t.x!=e.x||t.y!=e.y||e.x!=o.x||e.y!=o.y){i.MaybeStartNewFigure();var n=new SuperMap.Plot.Element(t.x,t.y,2),l=new SuperMap.Plot.Element(e.x,e.y,3),r=new SuperMap.Plot.Element(o.x,o.y,3);i.elements.push(n),i.elements.push(l),i.elements.push(r)}}},{key:"CubicTo",value:function(t,e,o){this.ensureData(),this.detach();var i=this.getDataPtr();if(i.elements[i.elements.length-1].GetX()!=t.x||i.elements[i.elements.length-1].GetY()!=t.y||t.x!=e.x||t.y!=e.y||e.x!=o.x||e.y!=o.y){i.MaybeStartNewFigure();var n=new SuperMap.Plot.Element(t.x,t.y,2),l=new SuperMap.Plot.Element(e.x,e.y,3),r=new SuperMap.Plot.Element(o.x,o.y,3);i.elements.push(n),i.elements.push(l),i.elements.push(r)}}},{key:"ToSubPathPolygons",value:function(t){var e,o,i=this.getDataPtr();if(this.IsEmpty())return!1;for(var n=[],l=this.GetElementCount(),r=0;r<l;r++){var a=i.elements[r];switch(a.GetType()){case 0:n.length>1&&t.push(n),n=[],e=a.GetX(),o=a.GetY(),n.push(new SuperMap.Geometry.Point(e,o));break;case 1:e=a.GetX(),o=a.GetY(),n.push(new SuperMap.Geometry.Point(e,o));break;case 2:if(3!=i.elements[r+1].GetType()||3!=i.elements[r+1].GetType())break;for(var s=i.elements[r-1].GetX(),u=i.elements[r-1].GetY(),p=a.GetX(),c=a.GetY(),y=i.elements[r+1].GetX(),h=i.elements[r+1].GetY(),P=i.elements[r+2].GetX(),f=i.elements[r+2].GetY(),S=0;S<=1;S+=.03125){var g=S*S,d=g*S,M=1-3*S+3*g-d,m=3*(S-2*g+d),v=3*(g-d),b=d;n.push(new SuperMap.Geometry.Point(M*s+m*p+v*y+b*P,M*u+m*c+v*h+b*f))}r+=2}}return n.length>1&&t.push(n),!0}},{key:"ensureData",value:function(){null==this.m_pData&&this.ensureData_helper()}},{key:"ensureData_helper",value:function(){var t=new SuperMap.Plot.Path2DData,e=new SuperMap.Plot.Element(0,0,0);t.elements.push(e),null==this.m_pData||this.mtDeRef(this.m_pData.ref)||(this.m_pData=null),this.m_pData=t}},{key:"detach",value:function(){1!=this.m_pData.ref&&this.detach_helper(),this.setBoundsDirty(!0)}},{key:"detach_helper",value:function(){var t=new SuperMap.Plot.Path2DData;null==this.m_pData||this.mtDeRef(this.m_pData.ref)||(this.m_pData=null),this.m_pData=t}},{key:"setBoundsDirty",value:function(t){this.getDataPtr().isBoundsDirty=t}},{key:"getDataPtr",value:function(){return this.m_pData}},{key:"IsEmpty",value:function(){if(null==this.m_pData)return!0;var t=this.m_pData.elements.length;return 0==t||1==t&&0==this.m_pData.elements[0].GetType()}},{key:"GetElementCount",value:function(){return null!=this.m_pData?this.m_pData.elements.length:0}}],[{key:"mtRef",value:function(t){return 0!=++t}},{key:"mtDeRef",value:function(t){return 0!=--t}}]),t}();SuperMap.Plot.Path2D=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbol322=e.AlgoSymbol321=e.AlgoSymbol320=e.AlgoSymbol15200=e.AlgoSymbol315=e.AlgoSymbol1022=e.AlgoSymbol1021=e.AlgoSymbol1020=e.AlgoSymbol1019=e.AlgoSymbol1018=e.AlgoSymbol1017=e.AlgoSymbol1016=e.AlgoSymbol1015=e.AlgoSymbol1014=e.AlgoSymbol1013=e.AlgoSymbol1012=e.AlgoSymbol1011=e.AlgoSymbol1010=e.AlgoSymbol1009=e.AlgoSymbol1008=e.AlgoSymbol1007=e.AlgoSymbol1006=e.AlgoSymbol1005=e.AlgoSymbol1004=e.AlgoSymbol1003=e.AlgoSymbol1002=e.AlgoSymbol1001=e.NewArc=e.NewPie=e.Polybezier=e.LinearArrow=e.Wire=e.PolygonRegion=e.LineRelation=e.LineMarking=e.PathText=e.CurveEight=e.Runway=e.NodeChain=e.FreeCurve=e.CombinationalCircle=e.ConcentricCircle=e.SymbolTextBox=e.GeoTooltipBoxM=e.GeoTooltipBox=e.Trapezoid=e.Brace=e.RegularPolygon=e.ArrowLine=e.AlgoSymbol=e.ArrowToolkit=e.Path2DData=e.Element=e.Path2D=void 0;var i=o(60),n=o(59),l=o(58),r=o(57),a=o(56),s=o(55),u=o(54),p=o(53),c=o(52),y=o(51),h=o(50),P=o(49),f=o(48),S=o(47),g=o(46),d=o(45),M=o(44),m=o(43),v=o(42),b=o(41),T=o(40),L=o(39),A=o(38),O=o(37),E=o(36),w=o(35),x=o(34),C=o(33),R=o(32),I=o(31),_=o(30),U=o(29),N=o(28),D=o(27),B=o(26),k=o(25),G=o(24),V=o(23),Y=o(22),j=o(21),F=o(20),z=o(19),W=o(18),H=o(17),q=o(16),X=o(15),J=o(14),K=o(13),Q=o(12),Z=o(11),$=o(10),tt=o(9),et=o(8),ot=o(7);e.Path2D=i.Path2D,e.Element=n.Element,e.Path2DData=l.Path2DData,e.ArrowToolkit=r.ArrowToolkit,e.AlgoSymbol=a.AlgoSymbol,e.ArrowLine=s.ArrowLine,e.RegularPolygon=u.RegularPolygon,e.Brace=p.Brace,e.Trapezoid=c.Trapezoid,e.GeoTooltipBox=y.GeoTooltipBox,e.GeoTooltipBoxM=h.GeoTooltipBoxM,e.SymbolTextBox=P.SymbolTextBox,e.ConcentricCircle=f.ConcentricCircle,e.CombinationalCircle=S.CombinationalCircle,e.FreeCurve=g.FreeCurve,e.NodeChain=d.NodeChain,e.Runway=M.Runway,e.CurveEight=m.CurveEight,e.PathText=v.PathText,e.LineMarking=b.LineMarking,e.LineRelation=T.LineRelation,e.PolygonRegion=L.PolygonRegion,e.Wire=A.Wire,e.LinearArrow=O.LinearArrow,e.Polybezier=E.Polybezier,e.NewPie=w.NewPie,e.NewArc=x.NewArc,e.AlgoSymbol1001=C.AlgoSymbol1001,e.AlgoSymbol1002=R.AlgoSymbol1002,e.AlgoSymbol1003=I.AlgoSymbol1003,e.AlgoSymbol1004=_.AlgoSymbol1004,e.AlgoSymbol1005=U.AlgoSymbol1005,e.AlgoSymbol1006=N.AlgoSymbol1006,e.AlgoSymbol1007=D.AlgoSymbol1007,e.AlgoSymbol1008=B.AlgoSymbol1008,e.AlgoSymbol1009=k.AlgoSymbol1009,e.AlgoSymbol1010=G.AlgoSymbol1010,e.AlgoSymbol1011=V.AlgoSymbol1011,e.AlgoSymbol1012=Y.AlgoSymbol1012,e.AlgoSymbol1013=j.AlgoSymbol1013,e.AlgoSymbol1014=F.AlgoSymbol1014,e.AlgoSymbol1015=z.AlgoSymbol1015,e.AlgoSymbol1016=W.AlgoSymbol1016,e.AlgoSymbol1017=H.AlgoSymbol1017,e.AlgoSymbol1018=q.AlgoSymbol1018,e.AlgoSymbol1019=X.AlgoSymbol1019,e.AlgoSymbol1020=J.AlgoSymbol1020,e.AlgoSymbol1021=K.AlgoSymbol1021,e.AlgoSymbol1022=Q.AlgoSymbol1022,e.AlgoSymbol315=Z.AlgoSymbol315,e.AlgoSymbol15200=$.AlgoSymbol15200,e.AlgoSymbol320=tt.AlgoSymbol320,e.AlgoSymbol321=et.AlgoSymbol321,e.AlgoSymbol322=ot.AlgoSymbol322},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbolFactory=e.BasicAlgoSymbolFactory=void 0;var i=o(3),n=o(6);e.BasicAlgoSymbolFactory=i.BasicAlgoSymbolFactory,e.AlgoSymbolFactory=n.AlgoSymbolFactory},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AddPoint_WayType=SuperMap.Plot.AddPoint_WayType={UNKNOWN:0,POLYLINE:1,CURVE:2}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.RouteNodePrimitives=SuperMap.Plot.RouteNodePrimitives=SuperMap.Plot.RouteNodePrimitives||{};SuperMap.Plot.RouteNodePrimitives={initialize:function(){},rendezvousPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="会",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},expandingPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="展",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},volleyPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="齐",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},standbyPoint_Outer:function(t,e){var o=[],i=new SuperMap.Geometry.Point(0,0),n=new SuperMap.Geometry.Point(0,30);t||(t=90);var l=new Object;l.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,l.positionPoints=[];for(var r=t+10;r<170+t;r+=10){var a=SuperMap.Plot.PlottingUtil.findPoint(i,n,30,r);l.positionPoints.push(a)}l.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(l);var s=l.positionPoints[l.positionPoints.length-1],u=l.positionPoints[l.positionPoints.length-2],p=SuperMap.Plot.PlottingUtil.findPoint(s,u,9,22.5),c=SuperMap.Plot.PlottingUtil.findPoint(s,u,9,-22.5),y=new Object;y.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,y.positionPoints=[],y.positionPoints.push(p),y.positionPoints.push(s.clone()),y.positionPoints.push(c),y.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(y);var h=new Object;h.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,h.positionPoints=[];for(var P=190+t;P<350+t;P+=10){var f=SuperMap.Plot.PlottingUtil.findPoint(i,n,30,P);h.positionPoints.push(f)}h.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(h);var S=h.positionPoints[h.positionPoints.length-1],g=h.positionPoints[h.positionPoints.length-2],d=SuperMap.Plot.PlottingUtil.findPoint(S,g,9,22.5),M=SuperMap.Plot.PlottingUtil.findPoint(S,g,9,-22.5),m=new Object;m.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,m.positionPoints=[],m.positionPoints.push(d),m.positionPoints.push(S.clone()),m.positionPoints.push(M),m.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(m);for(var v=0;v<o.length;v++)for(var b=0;b<o[v].positionPoints.length;b++){var T=e*(Math.PI/180);SuperMap.Plot.PlottingUtil.rotateAngle(i,T,o[v].positionPoints[b])}return o},standbyPoint_Inner:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-20,0)),e.positionPoints.push(new SuperMap.Geometry.Point(20,10)),e.positionPoints.push(new SuperMap.Geometry.Point(20,-10)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e);var o=new Object;o.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(-5,0)),o.positionPoints.push(new SuperMap.Geometry.Point(17,0)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(o);var i=new Object;return i.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,i.positionPoints=[],i.positionPoints.push(new SuperMap.Geometry.Point(-2,1.5)),i.positionPoints.push(new SuperMap.Geometry.Point(-5,0)),i.positionPoints.push(new SuperMap.Geometry.Point(-2,-1.5)),i.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(i),t},supplyPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.textContent="补",o.style={surroundLineFlag:!1,fontSize:14,fontSizeLimit:!0},o.style.labelAlign="cm",t.push(o),t.push(e),t},takeoffPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-15,25)),e.positionPoints.push(new SuperMap.Geometry.Point(15,25)),e.positionPoints.push(new SuperMap.Geometry.Point(15,-25)),e.positionPoints.push(new SuperMap.Geometry.Point(0,-35)),e.positionPoints.push(new SuperMap.Geometry.Point(-15,-25)),e.positionPoints.push(new SuperMap.Geometry.Point(-15,25)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},initialPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-30,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-30,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},visualInitalPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-30,0)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},lanchPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.positionPoints.push(new SuperMap.Geometry.Point(20,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-20,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},turningPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},aimingPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(20,30)),e.positionPoints.push(new SuperMap.Geometry.Point(-20,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},targetPoint:function(){var t=[],e=new Object;return e.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.positionPoints.push(new SuperMap.Geometry.Point(30,-30)),e.positionPoints.push(new SuperMap.Geometry.Point(-30,-30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t},eightSpiralPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(30,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(-30,0)),o.positionPoints.push(new SuperMap.Geometry.Point(0,0)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t.push(o),t},happyValleyPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(-30,20)),e.positionPoints.push(new SuperMap.Geometry.Point(30,20)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;o.type=SuperMap.Plot.SymbolType.POLYLINESYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(30,-20)),o.positionPoints.push(new SuperMap.Geometry.Point(-30,-20)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var i=new Object;i.type=SuperMap.Plot.SymbolType.ARCSYMBOL,i.positionPoints=[],i.positionPoints.push(new SuperMap.Geometry.Point(-30,20)),i.positionPoints.push(new SuperMap.Geometry.Point(-50,0)),i.positionPoints.push(new SuperMap.Geometry.Point(-30,-20)),i.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var n=new Object;return n.type=SuperMap.Plot.SymbolType.ARCSYMBOL,n.positionPoints=[],n.positionPoints.push(new SuperMap.Geometry.Point(30,20)),n.positionPoints.push(new SuperMap.Geometry.Point(50,0)),n.positionPoints.push(new SuperMap.Geometry.Point(30,-20)),n.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(e),t.push(o),t.push(i),t.push(n),t},attackPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(0,20)),o.positionPoints.push(new SuperMap.Geometry.Point(20,-20)),o.positionPoints.push(new SuperMap.Geometry.Point(-20,-20)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(o),t.push(e),t},suppressPoint:function(){var t=[],e=new Object;e.type=SuperMap.Plot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMap.Geometry.Point(0,0)),e.positionPoints.push(new SuperMap.Geometry.Point(0,30)),e.style={surroundLineFlag:!1,fontSize:14};var o=new Object;return o.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMap.Geometry.Point(-15,15)),o.positionPoints.push(new SuperMap.Geometry.Point(15,15)),o.positionPoints.push(new SuperMap.Geometry.Point(15,-15)),o.positionPoints.push(new SuperMap.Geometry.Point(-15,-15)),o.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},t.push(o),t.push(e),t},getRouteNodeCells:function(t,e,o){switch(t){case SuperMap.Plot.RouteNodeType.RENDEZVOUS:return this.rendezvousPoint();case SuperMap.Plot.RouteNodeType.EXPANDING:return this.expandingPoint();case SuperMap.Plot.RouteNodeType.VOLLEY:return this.volleyPoint();case SuperMap.Plot.RouteNodeType.STANDBY:return e?this.standbyPoint_Inner():this.standbyPoint_Outer(null,o);case SuperMap.Plot.RouteNodeType.SUPPLY:return this.supplyPoint();case SuperMap.Plot.RouteNodeType.TAKEOFF:return this.takeoffPoint();case SuperMap.Plot.RouteNodeType.INITIAL:return this.initialPoint();case SuperMap.Plot.RouteNodeType.VISUALINITAL:return this.visualInitalPoint();case SuperMap.Plot.RouteNodeType.LANCH:case SuperMap.Plot.RouteNodeType.WEAPONLAUNCH:return this.lanchPoint();case SuperMap.Plot.RouteNodeType.TURNING:case SuperMap.Plot.RouteNodeType.COMMONROUTE:return this.turningPoint();case SuperMap.Plot.RouteNodeType.AIMING:return this.aimingPoint();case SuperMap.Plot.RouteNodeType.TARGET:return this.targetPoint();case SuperMap.Plot.RouteNodeType.ATTACK:return this.attackPoint();case SuperMap.Plot.RouteNodeType.SUPPRESS:return this.suppressPoint();case SuperMap.Plot.RouteNodeType.EIGHTSPIRAL:return this.eightSpiralPoint();case SuperMap.Plot.RouteNodeType.HAPPYVALLEY:return this.happyValleyPoint();default:return[]}},getRouteNodeNameByType:function(t){switch(t){case SuperMap.Plot.RouteNodeType.RENDEZVOUS:return"会合点";case SuperMap.Plot.RouteNodeType.EXPANDING:return"展开点";case SuperMap.Plot.RouteNodeType.VOLLEY:return"齐射点";case SuperMap.Plot.RouteNodeType.STANDBY:return"待机点";case SuperMap.Plot.RouteNodeType.SUPPLY:return"补给点";case SuperMap.Plot.RouteNodeType.TAKEOFF:return"起飞点";case SuperMap.Plot.RouteNodeType.INITIAL:return"初始点";case SuperMap.Plot.RouteNodeType.VISUALINITAL:return"可视化初始点";case SuperMap.Plot.RouteNodeType.LANCH:return"发射点";case SuperMap.Plot.RouteNodeType.WEAPONLAUNCH:return"武器发射点";case SuperMap.Plot.RouteNodeType.TURNING:return"转弯点";case SuperMap.Plot.RouteNodeType.COMMONROUTE:return"普通航路点";case SuperMap.Plot.RouteNodeType.AIMING:return"目标瞄准点";case SuperMap.Plot.RouteNodeType.TARGET:return"目标点";case SuperMap.Plot.RouteNodeType.ATTACK:return"攻击点";case SuperMap.Plot.RouteNodeType.SUPPRESS:return"压制点";case SuperMap.Plot.RouteNodeType.EIGHTSPIRAL:return"八字盘旋点";case SuperMap.Plot.RouteNodeType.HAPPYVALLEY:return"跑马圈点";default:return""}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.Primitives=SuperMap.Plot.Primitives=SuperMap.Plot.Primitives||{};SuperMap.Plot.Primitives={nSegmentCount:72,initialize:function(t){t&&t.nSegmentCount&&(this.nSegmentCount=t.nSegmentCount)},polyline:function(t){return t},parallelline:function(t){if(t&&t.length>=3){var e=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);SuperMap.Plot.PlottingUtil.isRight(t[0],t[1],t[2])&&(e=-e);for(var o=[],i=1;i<t.length;i++)o.push(t[i].clone());var n=SuperMap.Plot.PlottingUtil.parallel(o,e);return t[0].x=n[0].x,t[0].y=n[0].y,[o,n]}return[]},kidney:function(t,e){if(t){var o=[];return o=e?this.getKendyShapePts(t):t,SuperMap.Plot.PlottingUtil.clearSamePts(o),o}},bezier:function(t,e){if(t){var o=[];return o=e?SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t):t,SuperMap.Plot.PlottingUtil.clearSamePts(o),o}},loopbezier:function(t,e){if(t){t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y||t.push(t[0]);var o=[];return o=e?SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t):t,SuperMap.Plot.PlottingUtil.clearSamePts(o),o}},parallelogram:function(t){if(t&&t.length>=3){var e=t[0].x+(t[2].x-t[1].x),o=t[0].y+(t[2].y-t[1].y),i=new SuperMap.Geometry.Point(e,o),n=[];return n.push.apply(n,t),n.push(i),n.push(n[0]),n}},polygon:function(t){if(t&&t.length>2)return t},circle:function(t){if(t&&2===t.length){for(var e=t[0],o=t[1],i=[],n=Math.sqrt((o.x-e.x)*(o.x-e.x)+(o.y-e.y)*(o.y-e.y)),l=360/this.nSegmentCount,r=0;r<this.nSegmentCount;r++){var a=(r*l+1)*Math.PI/180,s=new SuperMap.Geometry.Point(Math.cos(a)*n+e.x,Math.sin(a)*n+e.y);i[r]=s}return i}},rectangle:function(t){if(t&&2===t.length){var e=t[0],o=t[1],i=e.clone();return[i,new SuperMap.Geometry.Point(o.x,e.y),o.clone(),new SuperMap.Geometry.Point(e.x,o.y),i]}},sector:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var o=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,i=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(i.push(e.pntCenter),0!==i.length)return i}},lune:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var o=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,i=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(0!==i.length)return i}},arc:function(t){if(t&&t.length>=3){var e=this.getArcInfo(t[0],t[1],t[2]);e.dStartAngle*=Math.PI/180,e.dEndAngle*=Math.PI/180;var o=(e.dEndAngle-e.dStartAngle)/this.nSegmentCount,i=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(0!==i.length)return i}},ellipse:function(t,e,o,i,n){if(!0===o){if((!i||null==i)&&t&&t.length>=3&&(i=SuperMap.Plot.PlottingUtil.distance(t[0],t[1])),(!n||null==n)&&t&&t.length>=3){var l=SuperMap.Plot.PlottingUtil.projectPoint(t[2],t[0],t[1]);n=SuperMap.Plot.PlottingUtil.distance(l,t[2])}}else n=SuperMap.Plot.PlottingUtil.distance(t[0],t[2]),i=SuperMap.Plot.PlottingUtil.distance(t[0],t[1]);if(e&&null!=e?e*=Math.PI/180:e=SuperMap.Plot.PlottingUtil.radian(t[0],t[1]),t&&t.length>0){var r=2*Math.PI,a=r/this.nSegmentCount,s=this.getArcSpatialData(t[0],i,n,e,0,r,a);if(!0===o){var u=Math.sin(e),p=Math.cos(e);t[2].x>t[1].x?(t[2].x=t[0].x-n*u,t[2].y=t[0].y+n*p):(t[2].x=t[0].x+n*u,t[2].y=t[0].y-n*p)}return s}},getArcSpatialData:function(t,e,o,i,n,l,r){var a=[];if(Math.abs(r)<1e-9)return a;for(;l<n;)l+=2*Math.PI;for(;l>n+2*Math.PI;)n+=2*Math.PI;var s=Math.cos(i)*e,u=Math.sin(i)*e,p=Math.cos(i)*o,c=Math.sin(i)*o,y=this.calcEllipseRadian(n,e,o),h=this.calcEllipseRadian(l,e,o);h-y<1e-5&&(h+=2*Math.PI);var P=Math.round(Math.abs((h-y)/r)+1);if(P<2)return a;for(var f=0;f<P-1;y+=r,f++){f===P-2&&(y=l);var S=t.x+s*Math.cos(y)-c*Math.sin(y),g=t.y+u*Math.cos(y)+p*Math.sin(y);a.push(new SuperMap.Geometry.Point(S,g))}return 0>a.length&&(a[a.length-1].x=t.x+s*Math.cos(h)-c*Math.sin(h),a[a.length-1].y=t.y+u*Math.cos(h)+p*Math.sin(h)),a},getArcInfo:function(t,e,o){var i={};i.pntCenter=new SuperMap.Geometry.Point(0,0),i.dRadius=0,i.dStartAngle=0,i.dEndAngle=0;var n=e.x-t.x,l=e.y-t.y;if(Math.abs(n)<1e-9){var r={},a={};r.x=(e.x+t.x)/2,r.y=(e.y+t.y)/2,a.x=(e.x+o.x)/2,a.y=(e.y+o.y)/2;var s=0;Math.abs(o.x-e.x)>=1e-9&&(s=(o.y-e.y)/(o.x-e.x)),i.pntCenter.y=r.y,Math.abs(s)<1e-9?i.pntCenter.x=a.x:i.pntCenter.x=a.x-s*(r.y-a.y)}else{var u={},p={};u.x=(e.x+t.x)/2,u.y=(e.y+t.y)/2,p.x=(e.x+o.x)/2,p.y=(e.y+o.y)/2;var c=l/n,y=1;Math.abs(c)<1e-9?(i.pntCenter.x=u.x,Math.abs(o.x-e.x<1e-9)?i.pntCenter.y=p.y:i.pntCenter.y=-(o.x-e.x)/(o.y-e.y)*(i.pntCenter.x-p.x)+p.y):Math.abs(o.x-e.x)<1e-9?(i.pntCenter.y=p.y,i.pntCenter.x=-c*(i.pntCenter.y-u.y)+u.x):(y=(o.y-e.y)/(o.x-e.x),i.pntCenter.x=(c*y*(u.y-p.y)+y*u.x-c*p.x)/(y-c),i.pntCenter.y=(p.x-u.x+y*p.y-c*u.y)/(y-c))}var h=Math.atan2(t.y-i.pntCenter.y,t.x-i.pntCenter.x),P=Math.atan2(o.y-i.pntCenter.y,o.x-i.pntCenter.x);if(SuperMap.Plot.PlottingUtil.isCounterClockwise(t,e,o)){for(;h>=2*Math.PI;)h-=2*Math.PI;for(;h<0;)h+=2*Math.PI;for(;P>2*Math.PI;)P-=2*Math.PI;for(;P<h;)P+=2*Math.PI}else{for(;P>=2*Math.PI;)P-=2*Math.PI;for(;P<0;)P+=2*Math.PI;for(;h>2*Math.PI;)h-=2*Math.PI;for(;P>h;)h+=2*Math.PI;var f=h;h=P,P=f}return i.dRadius=Math.sqrt((i.pntCenter.x-t.x)*(i.pntCenter.x-t.x)+(i.pntCenter.y-t.y)*(i.pntCenter.y-t.y)),i.dEndAngle=180*P/Math.PI,i.dStartAngle=180*h/Math.PI,i},calcEllipseRadian:function(t,e,o){var i=t,n=e*Math.sin(t),l=o*Math.cos(t),r=Math.atan2(n,l);if(t>Math.PI)for(;i>Math.PI;)i-=2*Math.PI,r+=2*Math.PI;else if(t<-Math.PI)for(;i<-Math.PI;)i+=2*Math.PI,r-=2*Math.PI;return r},getKendyShapePts:function(t){var e=[];if(2>(t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length)return e;var o=this.calcShapePoints(t);if(12!=o.length)return e;o.push(o[0]),o.push(o[1]),o.splice(0,1);for(var i=0;i<o.length-3;i+=3){var n;n=this.getBezierPtsWithScalePts(o[i],o[i+1],o[i+2],o[i+3]),e=e.concat(n)}return e},calcShapePoints:function(t){var e=[],o=[],i=t.length;if(0!==i){if(1!==i){if(2==i){var n=this.calcProtudeC3(t[0],t[1]);o.push(t[0]),o.push(t[1]),o.push(n)}else if(o.push(t[0]),o.push(t[1]),o.push(t[2]),(SuperMap.Plot.PlottingUtil.isSamePt(t[0],t[2])||SuperMap.Plot.PlottingUtil.isSamePt(t[1],t[2]))&&(e.push(t[0]),e.push(t[1])),SuperMap.Plot.PlottingUtil.isSamePt(t[0],t[1]))return e.push(t[0]),void e.push(t[2]);o=this.reNormalizeKidneyCtrlPoints(o);var l=new SuperMap.Geometry.Point(0,0),r=new SuperMap.Geometry.Point(0,0);l.x=.5*(o[0].x+o[1].x),l.y=.5*(o[0].y+o[1].y),r.x=l.x-.1*(o[2].x-l.x),r.y=l.y-.1*(o[2].y-l.y);var a=this.GetPtsByTriangle(3,0,o[1],o[0],r);e.push(a.pr),e.push(r),e.push(a.pl);var s=this.GetPtsByTriangle(4,2,o[2],o[0],o[1]);e.push(s.pr),e.push(o[1]),e.push(s.pl);var u=this.GetPtsByTriangle(2,0,o[0],o[1],o[2]);e.push(u.pr),e.push(o[2]),e.push(u.pl);var p=this.GetPtsByTriangle(4,1,o[1],o[2],o[0]);return e.push(p.pr),e.push(o[0]),e.push(p.pl),e}e.push(t[0])}},calcProtudeC3:function(t,e){var o,i=new SuperMap.Geometry.Point(0,0);return i.x=.5*(t.x+e.x),i.y=.5*(t.y+e.y),o=SuperMap.Plot.PlottingUtil.distance(e,t)/2.7,this.GetPointsOfNormal(o,t,i).pt3},GetPointsOfNormal:function(t,e,o){var i,n=new SuperMap.Geometry.Point(0,0),l=new SuperMap.Geometry.Point(0,0),r=new SuperMap.Geometry.Point(0,0);return 0==(i=SuperMap.Plot.PlottingUtil.distance(e,o))?(r.y=0,r.x=t):(r.x=t*(e.x-o.x)/i,r.y=t*(e.y-o.y)/i),n.x=-r.y+o.x,n.y=r.x+o.y,l.x=r.y+o.x,l.y=-r.x+o.y,{pt3:n,pt4:l}},reNormalizeKidneyCtrlPoints:function(t){var e=[];e.push(new SuperMap.Geometry.Point(0,0)),e.push(new SuperMap.Geometry.Point(0,0)),e.push(new SuperMap.Geometry.Point(0,0));var o=t.length;if(o<2)return e;if(2==o)e[0]=t[0],e[1]=t[1],e[2]=this.calcProtudeC3(t[0],t[1]);else{var i,n,l,r=t[0],a=t[1],s=t[2];if(i=SuperMap.Plot.PlottingUtil.distance(a,r),n=SuperMap.Plot.PlottingUtil.distance(s,a),l=SuperMap.Plot.PlottingUtil.distance(r,s),n>=i&&n>=l){var u=r.clone();r=s.clone(),s=u.clone()}else if(l>=i&&l>=n){var p=s.clone();s=a.clone(),a=p.clone()}if(!SuperMap.Plot.PlottingUtil.isRight(s,r,a)){var c=r.clone();r=a.clone(),a=c.clone()}e[0]=r,e[1]=a,e[2]=s}return e},GetPtsByTriangle:function(t,e,o,i,n){var l=new SuperMap.Geometry.Point(0,0),r=0,a=0;return r=SuperMap.Plot.PlottingUtil.distance(n,o),a=SuperMap.Plot.PlottingUtil.distance(i,n),1==e&&(r*=2),2==e&&(a*=2),l.x=(r*i.x+a*o.x)/(r+a),l.y=(r*i.y+a*o.y)/(r+a),{pl:this.GetWhichPtOfNormal(t,o,l,n),pr:this.GetWhichPtOfNormal(t,i,l,n)}},GetWhichPtOfNormal:function(t,e,o,i){var n=0;n=SuperMap.Plot.PlottingUtil.distance(i,e)/t;var l=this.GetPointsOfNormal(n,o,i);return SuperMap.Plot.PlottingUtil.distance(e,l.pt4)>=(n=SuperMap.Plot.PlottingUtil.distance(e,l.pt3))?l.pt3:l.pt4},getBezierPtsWithScalePts:function(t,e,o,i){var n=[],l=t.x,r=t.y,a=e.x,s=e.y,u=o.x,p=o.y,c=i.x,y=i.y;if(SuperMap.Plot.PlottingUtil.equalFuzzy(l,a,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,s,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(u,c,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(p,y,1e-10))n.push(new SuperMap.Geometry.Point(l,r)),n.push(new SuperMap.Geometry.Point(u,p));else for(var h=0;h<=1;h+=.03125){var P,f,S,g,d=h*h,M=d*h;P=1-3*h+3*d-M,f=3*(h-2*d+M),S=3*(d-M),g=M;var m=new SuperMap.Geometry.Point(P*l+f*a+S*u+g*c,P*r+f*s+S*p+g*y);n.push(m)}return n},getSpatialData:function(t,e,o,i){switch(null==i&&(i=!0),t){case 24:return this.polyline(e);case 390:return this.kidney(e,i);case 590:return this.bezier(e,i);case 360:return this.loopbezier(e,i);case 28:return this.parallelogram(e);case 32:return this.polygon(e);case 29:return this.circle(e);case 26:return this.rectangle(e);case 380:return this.sector(e);case 370:return this.lune(e);case 44:return this.arc(e);case 31:return this.ellipse(e,o,i);case 48:return this.parallelline(e);default:return e}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.PlottingUtil=SuperMap.Plot.PlottingUtil=SuperMap.Plot.PlottingUtil||{};SuperMap.Plot.PlottingUtil.DEFAULT_PRECISION=14,SuperMap.Plot.PlottingUtil.DPI=96,SuperMap.Plot.PlottingUtil.RTOD=57.29577951308232,SuperMap.Plot.PlottingUtil.DTOR=.017453292519943295,SuperMap.Plot.PlottingUtil.dirAngle=function(t,e){var o,i,n,l;o=e.x,i=e.y,n=o-t.x,l=i-t.y;var r=Math.atan2(l,n);return r<0&&(r+=2*Math.PI),r},SuperMap.Plot.PlottingUtil.generateUuid=function(){for(var t=[],e=0;e<36;e++)t[e]="0123456789abcdef".substr(Math.floor(16*Math.random()),1);return t[14]="4",t[19]="0123456789abcdef".substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")},SuperMap.Plot.PlottingUtil.cloneObject=function(t){return JSON.parse(JSON.stringify(t))},SuperMap.Plot.PlottingUtil.colorRGBA=function(t,e){var o=t.substring(1,3),i=parseInt(o,16),n=t.substring(3,5),l=parseInt(n,16),r=t.substring(5);return"rgba("+i+","+l+","+parseInt(r,16)+","+e+")"},SuperMap.Plot.PlottingUtil.colorRGBToString=function(t){var e=t.red.toString(16);e.length<2&&(e="0"+e);var o=t.green.toString(16);o.length<2&&(o="0"+o);var i=t.blue.toString(16);return i.length<2&&(i="0"+i),"#"+e+o+i},SuperMap.Plot.PlottingUtil.colorStringToRGB=function(t){var e={},o=t.substring(1,3);e.red=parseInt(o,16);var i=t.substring(3,5);e.green=parseInt(i,16);var n=t.substring(5);return e.blue=parseInt(n,16),e},SuperMap.Plot.PlottingUtil.decimalToHex=function(t){for(var e=t.toString(16);e.length<8;)e="0"+e;var o=e.substring(0,2),i=e.substring(2,4),n=e.substring(4,6);return{color:"#"+e.substring(6)+n+i,alpha:parseInt(o,16)/255}},SuperMap.Plot.PlottingUtil.hexToDecimal=function(t,e){var o=t.substring(1,3),i=t.substring(3,5),n=t.substring(5),l=parseInt(n+i+o,16),r=Math.round(255*e).toString(16);return parseInt(r+"000000",16)+l},SuperMap.Plot.PlottingUtil.getAlign=function(t){return"TOPLEFT"===t?"lt":"TOPCENTER"===t?"ct":"TOPRIGHT"===t?"rt":"BOTTOMLEFT"===t?"lb":"BOTTOMCENTER"===t?"cb":"BOTTOMRIGHT"===t?"rb":"MIDDLELEFT"===t?"lm":"MIDDLECENTER"===t?"cm":"MIDDLERIGHT"===t?"rm":"lt"},SuperMap.Plot.PlottingUtil.trim=function(t){return null==t?"":t.replace(/(^\s*)|(\s*$)/g,"")},SuperMap.Plot.PlottingUtil.getTextWidth=function(t,e){" "===e&&(e="_");var o=document.createElement("span");document.body.appendChild(o),o.style.width="auto",o.style.height="auto",t.fontSize&&(o.style.fontSize=new String(t.fontSize)+"px"),t.fontFamily&&(o.style.fontFamily=t.fontFamily),t.fontWeight&&(o.style.fontWeight=t.fontWeight),o.style.position="absolute",o.style.visibility="hidden",o.style.display="inline-block",o.innerHTML=e;var i=o.clientWidth,n=e.length;return void 0===t.fontSpace&&void 0===t.fontPercent||(0!==t.fontSpace&&100!==t.fontPercent&&void 0!==t.fontSpace||void 0!==t.fontPercent?i=t.fontPercent/100*i+t.fontSpace*(t.fontPercent/100)*(n-1):0===t.fontSpace&&100!==t.fontPercent&&void 0!==t.fontPercent?i=t.fontPercent/100*i:0!==t.fontSpace&&100===t.fontPercent&&void 0!==t.fontSpace&&(i+=t.fontSpace*(n-1))),document.body.removeChild(o),i},SuperMap.Plot.PlottingUtil.getTextCount=function(t){for(var e=0,o=0,i=0;i<t.length;i++)t.charCodeAt(i)>255?e++:o++;return e+o/2},SuperMap.Plot.PlottingUtil.toJSON=function(t){var e=t;if(null==e)return null;switch(e.constructor){case String:return e=(e=(e=(e=(e=(e=(e='"'+e.replace(/(["\\])/g,"\\$1")+'"').replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace("<","&lt;")).replace(">","&gt;")).replace(/%/g,"%2525")).replace(/&/g,"%26");case Array:for(var o=[],n=0,l=e.length;n<l;n++)o.push(SuperMap.Plot.PlottingUtil.toJSON(e[n]));return"["+o.join(",")+"]";case Number:return isFinite(e)?String(e):null;case Boolean:return String(e);case Date:return"{'__type':\"System.DateTime\",'Year':"+e.getFullYear()+",'Month':"+(e.getMonth()+1)+",'Day':"+e.getDate()+",'Hour':"+e.getHours()+",'Minute':"+e.getMinutes()+",'Second':"+e.getSeconds()+",'Millisecond':"+e.getMilliseconds()+",'TimezoneOffset':"+e.getTimezoneOffset()+"}";default:if(null!=e.toJSON&&"function"==typeof e.toJSON)return e.toJSON();if("object"===(void 0===e?"undefined":i(e))){if(e.length){for(var r=[],a=0,s=e.length;a<s;a++)r.push(SuperMap.Plot.PlottingUtil.toJSON(e[a]));return"["+r.join(",")+"]"}var u=[];for(var p in e)"function"!=typeof e[p]&&"CLASS_NAME"!==p&&"parent"!==p&&u.push('"'+p+'":'+SuperMap.Plot.PlottingUtil.toJSON(e[p]));return u.length>0?"{"+u.join(",")+"}":"{}"}return e.toString()}},SuperMap.Plot.PlottingUtil.copyFeature=function(t){var e=null;if(null!=t&&t.geometry){var o=t.geometry.clone();e=new SuperMap.Feature.Vector(o),t.style&&(e.style=SuperMap.Plot.PlottingUtil.copyAttributes(e.style,t.style)),o.feature=e,o.calculateParts()}return e},SuperMap.Plot.PlottingUtil.getSurroundLinePts=function(t,e){for(var o=[],i=[],n=0;n<t.length-1;n++){var l,r,a=[];if(!SuperMap.Plot.PlottingUtil.equalFuzzy(t[n].x,t[n+1].x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t[n].y,t[n+1].y)){a.push(t[n]),a.push(t[n+1]);var s=SuperMap.Plot.PlottingUtil.parallel(a,e);if(l=s[0],r=s[1],0!=o.length){var u=SuperMap.Plot.PlottingUtil.intersectLines(l,r,o[0],o[1]);if(u.isIntersectLines){var p=u.intersectPoint,c=SuperMap.Plot.PlottingUtil.distance(l,r);SuperMap.Plot.PlottingUtil.distance(p,r)>2*c?i.push(r):(i[i.length-1]=p,i.push(r))}else i.push(r)}else i.push(l),i.push(r);(o=[]).push(i[i.length-2]),o.push(i[i.length-1])}}if(t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y&&1<i.length){var y=SuperMap.Plot.PlottingUtil.intersectLines(i[0],i[1],i[i.length-2],i[i.length-1]);if(y.isIntersectLines){var h=y.intersectPoint;i[i.length-1]=h,i[0]=h}}return i},SuperMap.Plot.PlottingUtil.copyFontStyle=function(t,e){void 0===t.labelAlign&&void 0!==e.labelAlign&&(t.labelAlign=e.labelAlign),!0!==t.fontSizeLimit&&(void 0!==e.fontSize&&(t.fontSize=e.fontSize),void 0!==e.fontWeight&&(t.fontWeight=e.fontWeight),void 0!==e.fontStyle&&(t.fontStyle=e.fontStyle),void 0!==e.fontSpace&&(t.fontSpace=e.fontSpace),void 0!==e.fontPercent&&(t.fontPercent=e.fontPercent)),t.strokeWidth=e.strokeWidth},SuperMap.Plot.PlottingUtil.getDataFromServer=function(t,e,o,n,l,r,a,s){var u=void 0;if(void 0!==r&&(u=r),"undefined"!=typeof SuperMap&&void 0!==SuperMap.GetSymbolInfoService){var p=new SuperMap.GetSymbolInfoService(t);p.events.on({processCompleted:a,processFailed:s,scope:u});var c=new SuperMap.GetSymbolInfoParameters;c.libID=e,c.code=o,l&&SuperMap.Plot.PlottingUtil.extend(c,l),n&&null!=n&&(SuperMap.Plot.PlottingUtil.isArray(n)||(n=[n]),c.inputPoints=n),p.processAsync(c)}else if(void 0!==("undefined"==typeof SuperMap?"undefined":i(SuperMap))&&void 0!==i(SuperMap.REST)&&void 0!==i(SuperMap.REST.GetSymbolInfoService)){var y=new SuperMap.REST.GetSymbolInfoService(t);y.events.on({processCompleted:a,processFailed:s,scope:u});var h=new SuperMap.REST.GetSymbolInfoParameters;if(h.libID=e,h.code=o,l&&SuperMap.Plot.PlottingUtil.extend(h,l),n&&null!=n&&(SuperMap.Plot.PlottingUtil.isArray(n)||(n=[n]),h.inputPoints=n),l&&l.credential){var P=l.credential;y.processAsync(h,P)}else y.processAsync(h)}},SuperMap.Plot.PlottingUtil.innerOutlineDir=function(t){function e(t,e){function o(t){var e=Math.atan2(t.y,t.x);return e<0&&(e+=2*Math.PI),e}var i=o(e)-o(t);return i<-Math.PI&&(i+=2*Math.PI),i>Math.PI&&(i-=2*Math.PI),i}if(t.length<3)return 1;for(var o=0,i={x:0,y:0},n={x:0,y:0},l=2;l<t.length;l++)n.x=t[l].x-t[l-1].x,n.y=t[l].y-t[l-1].y,i.x=t[l-1].x-t[l-2].x,i.y=t[l-1].y-t[l-2].y,o+=e(i,n);return n.x=t[1].x-t[0].x,n.y=t[1].y-t[0].y,i.x=t[0].x-t[t.length-1].x,i.y=t[0].y-t[t.length-1].y,(o+=e(i,n))>=0?-1:1},SuperMap.Plot.PlottingUtil.isNear=function(t,e){return e||(e=SuperMap.Plot.PlottingUtil.TORLERANCE_STATIC),t<e&&t>-e},SuperMap.Plot.PlottingUtil.equalFuzzy=function(t,e,o){return o||(o=1e-18),Math.abs(t-e)<=o},SuperMap.Plot.PlottingUtil.intersectLines=function(t,e,o,i){var n={isIntersectLines:!1};if(t.x===e.x&&t.y===e.y||o.x===i.x&&o.y===i.y)return n;var l=e.x-t.x,r=e.y-t.y,a=i.x-o.x,s=i.y-o.y,u=l*s-a*r;if(SuperMap.Plot.PlottingUtil.isNear(u))return n;var p=(l*(t.y-o.y)-r*(t.x-o.x))/u,c=new SuperMap.Geometry.Point(0,0);return c.x=p*a+o.x,c.y=p*s+o.y,n.isIntersectLines=!0,n.intersectPoint=c,n},SuperMap.Plot.PlottingUtil.getEnvelopePoints=function(t){function e(t,e){if(t.length!==e.length)return!1;for(var o=0;o<t.length;o++)if(t[o].x!==e[o].x||t[o].y!==e[o].y)return!1;return!0}function o(t,e,o){for(var i=0;i<t.length;i++)if(t[i].containsPoint(e))return o.index=i,!0;return!1}function i(t,e,o){for(var i=t.components[0].components,n=new SuperMap.Geometry.Point(0,0),l=0;l<i.length-1;l++)if(SuperMap.Plot.PlottingUtil.intersectLineSegs(e,o,i[l],i[l+1],n))return n;return null}function n(t,e){if(0===t.length||SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].x,e[e.length-1].x,.5)&&SuperMap.Plot.PlottingUtil.equalFuzzy(e[0].y,e[e.length-1].y,.5))return e;for(var o=e[e.length-1],i=0;i<t.length;i++)if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][0].x,o.x,.5)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][0].y,o.y,.5)){e=e.concat(t[i]),t.splice(i,1);var l=n(t,e);if(void 0!==l&&0!==l.length)return l}else if(SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][t[i].length-1].x,o.x,.5)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[i][t[i].length-1].y,o.y,.5)){for(var r=t[i].length-1;r>=0;r--)e.push(t[i][r]);t.splice(i,1);var a=n(t,e);if(void 0!==a&&0!==a.length)return a}return e}if(SuperMap.Plot.PlottingUtil.isArray(t)||(t=[t]),0===t.length)return[];if(1===t.length)return t[0];for(var l=0;l<t.length;l++)for(var r=l+1;r<t.length;)e(t[l],t[r])?t.splice(r,1):r++;for(var a=[],s=0;s<t.length;s++)a.push(new SuperMap.Geometry.Polygon([new SuperMap.Geometry.LinearRing(t[s])]));for(var u=[],p=0;p<t.length;p++){var c=[],y=[],h=-1,P=-1,f=a.slice();f.splice(p,1);for(var S={},g=0;g<t[p].length;g++)if(o(f,t[p][g],S)){if(0!==y.length){var d=i(a[S.index],t[p][g-1],t[p][g]);d&&d!==t[p][g-1]&&d!==t[p][g]&&y.push(d),c.push(y),y=[]}}else{if(0===g&&(h=c.length),g===t[p].length-1&&(P=c.length),0===y.length&&void 0!==S.index){var M=i(a[S.index],t[p][g-1],t[p][g]);M&&M!==t[p][g-1]&&M!==t[p][g]&&y.push(M)}y.push(t[p][g].clone())}if(0!==y.length&&c.push(y),h<c.length&&P<c.length&&h!==P){for(var m=0;m<c[h].length;m++)c[P].push(c[h][m]);c.splice(h,1)}u=u.concat(c)}for(var v=[];0!==u.length;){var b=u[0];u.splice(0,1);var T=n(u,b);void 0!==T&&(b=T),b.length>2&&v.push(b)}return v},SuperMap.Plot.PlottingUtil.isRight=function(t,e,o){var i=e,n=o,l=e,r=t;return(n.x-i.x)*(r.y-l.y)-(r.x-l.x)*(n.y-i.y)<0},SuperMap.Plot.PlottingUtil.radian=function(t,e){var o,i,n=0;return o=e.x-t.x,i=e.y-t.y,(n=Math.atan2(i,o))<0&&(n+=2*Math.PI),n},SuperMap.Plot.PlottingUtil.findBisectorPoint=function(t,e,o,i){var n=SuperMap.Plot.PlottingUtil.radian(e,t),l=(n+SuperMap.Plot.PlottingUtil.radian(e,o))/2,r=Math.cos(l-n+Math.PI/2),a=i;SuperMap.Plot.PlottingUtil.isNear(r,.15)||(a=i/r);var s=e.x+a*Math.cos(l),u=e.y+a*Math.sin(l);return new SuperMap.Geometry.Point(s,u)},SuperMap.Plot.PlottingUtil.findPoint=function(t,e,o,i){if(t===e||Math.abs(o)<1e-18)return t;var n=SuperMap.Plot.PlottingUtil.radian(t,e)+i*Math.PI/180,l=t.x+o*Math.cos(n),r=t.y+o*Math.sin(n);return new SuperMap.Geometry.Point(l,r)},SuperMap.Plot.PlottingUtil.isSameQuadrant=function(t,e,o,i){var n=(e.x-t.x)*(i.x-o.x),l=(e.y-t.y)*(i.y-o.y);return!(Math.abs(n)<1e-18&&Math.abs(l)<1e-18)&&((n>0||Math.abs(n)<1e-18)&&(l>0||Math.abs(l)<1e-18))},SuperMap.Plot.PlottingUtil.isCross=function(t,e,o,i){var n=new SuperMap.Geometry.Point(0,0);return!(!SuperMap.Plot.PlottingUtil.intersectLineSegs(t,e,o,i,n)||n==t||n===e||n===o||n==i)},SuperMap.Plot.PlottingUtil.intersectLineSegs=function(t,e,o,i,n){if(SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,e.y))return n.x=t.x,n.y=t.y,!1;if(SuperMap.Plot.PlottingUtil.equalFuzzy(o.x,i.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(o.y,i.y))return n.x=o.x,n.y=o.y,!1;var l=0,r=0;if(l=t.x>e.x?t.x:e.x,r=t.x<e.x?t.x:e.x,o.x-l>1e-16&&i.x-l>1e-16||o.x-r<-1e-16&&i.x-r<-1e-16)return!1;if(l=t.y>e.y?t.y:e.y,r=t.y<e.y?t.y:e.y,o.y-l>1e-16&&i.y-l>1e-16||o.y-r<-1e-16&&i.y-r<-1e-16)return!1;var a=e.x-t.x,s=e.y-t.y,u=i.x-o.x,p=i.y-o.y,c=t.x-o.x,y=t.y-o.y,h=a*p-u*s,P=h;if(Math.abs(a)>1e-18&&Math.abs(u)>1e-18&&(P/=a*u),Math.abs(P)<1e-18)return t===o?(n.x=t.x,n.y=t.y,!SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,i)):e===i?(n.x=e.x,n.y=e.y,!SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,i)):t===i?(n.x=t.x,n.y=t.y,SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,i)):e===o&&(n.x=e.x,n.y=e.y,SuperMap.Plot.PlottingUtil.isSameQuadrant(t,e,o,i));var f=(a*y-s*c)/h,S=(u*y-p*c)/h;return!(f<0&&(Math.abs(f*u)>1e-16||Math.abs(f*p)>1e-16))&&(!(f>1&&(Math.abs((f-1)*u)>1e-16||Math.abs((f-1)*p)>1e-16))&&(!(S<0&&(Math.abs(S*a)>1e-16||Math.abs(S*s)>1e-16))&&(!(S>1&&(Math.abs((S-1)*a)>1e-16||Math.abs((S-1)*s)>1e-16))&&(Math.abs(f)<1e-18?(n.x=o.x,n.y=o.y,!0):Math.abs(f-1)<1e-18?(n.x=i.x,n.y=i.y,!0):Math.abs(S)<1e-18?(n.x=t.x,n.y=t.y,!0):Math.abs(S-1)<1e-18?(n.x=e.x,n.y=e.y,!0):!(f<0&&(Math.abs(f*u)>1e-16||Math.abs(f*p)>1e-16))&&(!(f>1&&(Math.abs((f-1)*u)>1e-16||Math.abs((f-1)*p)>1e-16))&&(!(S<0&&(Math.abs(S*a)>1e-16||Math.abs(S*s)>1e-16))&&(!(S>1&&(Math.abs((S-1)*a)>1e-16||Math.abs((S-1)*s)>1e-16))&&(n.x=f*u+o.x,n.y=f*p+o.y,!0))))))))},SuperMap.Plot.PlottingUtil.parallel=function(t,e){var o=[],i=t.length;if(!t||null==t||t.length<2)return o;var n=!1;t.length>3&&t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y&&(n=!0),n?(o[0]=SuperMap.Plot.PlottingUtil.findBisectorPoint(t[t.length-2],t[0],t[1],e),o[t.length-1]=o[0]):(o[0]=SuperMap.Plot.PlottingUtil.findPoint(t[0],t[1],e,90),o[t.length-1]=SuperMap.Plot.PlottingUtil.findPoint(t[t.length-1],t[t.length-2],-e,90));for(var l=t[0],r=t[1],a=t[1],s=1;s<t.length-1;s++)if(r=t[s],t[s]!==t[s-1]&&(l=t[s-1]),t[s]!==t[s+1]){a=t[s+1];var u=SuperMap.Plot.PlottingUtil.findBisectorPoint(l,r,a,e);SuperMap.Plot.PlottingUtil.isCross(l,o[s-1],r,u)&&(u=o[s-1]),o[s]=u}else{for(var p=s;p<i-1;){if(t[p]!==t[p+1]){a=t[p+1];break}p++}if(p<i-1){var c=SuperMap.Plot.PlottingUtil.FindBisectorPoint(l,r,a,e);for(SuperMap.Plot.PlottingUtil.isCross(l,o[s-1],r,c)&&(c=o[s-1]);s<p;)o[s]=c,s++;s=p-1}}return o},SuperMap.Plot.PlottingUtil.distance=function(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))},SuperMap.Plot.PlottingUtil.projectPoint=function(t,e,o){if(e===o)return e;var i=new SuperMap.Geometry.Point(0,0),n=o.x-e.x,l=e.y-o.y,r=n*n,a=l*l,s=n*l,u=n*n+l*l;return i.x=(s*(e.y-t.y)+e.x*a+t.x*r)/u,i.y=(s*(e.x-t.x)+e.y*r+t.y*a)/u,i},SuperMap.Plot.PlottingUtil.pointToLineDis=function(t,e,o){var i=SuperMap.Plot.PlottingUtil.projectPoint(t,e,o);return SuperMap.Plot.PlottingUtil.distance(t,i)},SuperMap.Plot.PlottingUtil.pointToPloyLineDis=function(t,e,o){if(e===o)return SuperMap.Plot.PlottingUtil.distance(t,e);var i=(e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y),n=(o.x-t.x)*(o.x-t.x)+(o.y-t.y)*(o.y-t.y),l=(e.x-o.x)*(e.x-o.x)+(e.y-o.y)*(e.y-o.y),r=(i+l-n)/(2*l);r<0?r=0:r>1&&(r=1);var a=(o.x-e.x)*r+e.x,s=(o.y-e.y)*r+e.y,u=(a-t.x)*(a-t.x)+(s-t.y)*(s-t.y);return Math.sqrt(u)},SuperMap.Plot.PlottingUtil.isCounterClockwise=function(t,e,o){return(o.x-e.x)*(t.y-e.y)-(t.x-e.x)*(o.y-e.y)>0},SuperMap.Plot.PlottingUtil.clearSamePts=function(t){for(var e=t.length,o=0;o<e-1;)SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].x,t[o+1].x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t[o].y,t[o+1].y)?(t.splice(o,1),e--):o++;return t},SuperMap.Plot.PlottingUtil.getBeizerCtrlPt=function(t){var e=[],o=t.length;if(o<3)for(var i=0;i<o;++i)e[i]=t[i].clone();else{for(var n=0,l=0;l<3*o-2;l+=3)e[l]=t[n].clone(),e[l+1]=new SuperMap.Geometry.Point(0,0),e[l+2]=new SuperMap.Geometry.Point(0,0),n++;for(var r=1;r<o-1;r++)SuperMap.Plot.PlottingUtil.getTrianglePoints(8,3,t[r-1],t[r],t[r+1],e[3*r+1],e[3*r+2]);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.6,e[0],e[3],e[4],e[2]),SuperMap.Plot.PlottingUtil.getTrapezoidPoints(.6,e[3*o-3],e[3*o-6],e[3*o-4],e[3*o-2]),e[1]=t[0].clone(),e[3*o-1]=t[o-1].clone()}return e},SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt=function(t,e){var o=t.slice();!0===e&&o.push(o[0]);var i=SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(o);return SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(i)},SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt=function(t){var e=t.length,o=[];if(t.length<3)for(var i=0;i<e;i++)o[i]=t[i].clone();else for(var n=0;n<e;n+=3)if(!(n+4>=e)){var l=t[n].x,r=t[n].y,a=t[n+2].x,s=t[n+2].y,u=t[n+4].x,p=t[n+4].y,c=t[n+3].x,y=t[n+3].y;if(SuperMap.Plot.PlottingUtil.equalFuzzy(l,a,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,s,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(u,c,1e-10)&&SuperMap.Plot.PlottingUtil.equalFuzzy(p,y,1e-10))o.push(new SuperMap.Geometry.Point(l,r)),o.push(new SuperMap.Geometry.Point(u,p));else for(var h=0;h<=1;h+=.03125){var P,f,S,g,d=h*h,M=d*h;P=1-3*h+3*d-M,f=3*(h-2*d+M),S=3*(d-M),g=M;var m=new SuperMap.Geometry.Point(P*l+f*a+S*u+g*c,P*r+f*s+S*p+g*y);o.push(m)}}return o},SuperMap.Plot.PlottingUtil.computeBeizerPoints0=function(t,e,o){var i=SuperMap.Plot.PlottingUtil.polylineDistance(e),n=[],l=[],r=[];if(t){l.push(e[0]);var a=o[0],s=o[1],u=e[0].x+i*a,p=e[0].y+i*s;l.push(new SuperMap.Geometry.Point(u,p)),n.push(new SuperMap.Geometry.Point(u,p));for(var c=1;c<e.length-1;c++){var y=o[4*c-2],h=o[4*c-1],P=e[c].x+i*y,f=e[c].y+i*h;l.push(new SuperMap.Geometry.Point(P,f)),n.push(new SuperMap.Geometry.Point(P,f)),l.push(new SuperMap.Geometry.Point(e[c].x,e[c].y)),y=o[4*c],h=o[4*c+1],P=e[c].x+i*y,f=e[c].y+i*h,l.push(new SuperMap.Geometry.Point(P,f)),n.push(new SuperMap.Geometry.Point(P,f))}var S=e.length-1;a=o[4*S-2],s=o[4*S-1],u=e[S].x+i*a,p=e[S].y+i*s,l.push(new SuperMap.Geometry.Point(u,p)),n.push(new SuperMap.Geometry.Point(u,p)),l.push(new SuperMap.Geometry.Point(e[S].x,e[S].y)),l.push(new SuperMap.Geometry.Point(e[S].x,e[S].y)),l.push(new SuperMap.Geometry.Point(e[S].x,e[S].y)),r=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(l)}else{o=[];var g=(l=SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(e))[1].x-l[0].x,d=l[1].y-l[0].y,M=g/i,m=d/i;o.push(M),o.push(m),n.push(l[1]);for(var v=1;v<e.length-1;v++){var b=(l[3*v-1].x-l[3*v].x)/i,T=(l[3*v-1].y-l[3*v].y)/i;o.push(b),o.push(T),n.push(l[3*v-1]);var L=(l[3*v+1].x-l[3*v].x)/i,A=(l[3*v+1].y-l[3*v].y)/i;o.push(L),o.push(A),n.push(l[3*v+1])}M=(g=l[3*(e.length-1)-1].x-l[3*(e.length-1)].x)/i,m=(d=l[3*(e.length-1)-1].y-l[3*(e.length-1)].y)/i,o.push(M),o.push(m),n.push(l[3*(e.length-1)-1]),r=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(l)}return{scalePoints:n,scaleValues:o,beizerPoints:r}},SuperMap.Plot.PlottingUtil.computeBeizerPoints=function(t,e,o){var i=SuperMap.Plot.PlottingUtil.polylineDistance(e),n=[],l=[],r=[];if(t){l.push(new SuperMap.Geometry.Point(e[0].x,e[0].y)),l.push(new SuperMap.Geometry.Point(e[0].x,e[0].y));var a=o[0],s=o[1],u=e[0].x+i*a,p=e[0].y+i*s;l.push(new SuperMap.Geometry.Point(u,p)),n.push(new SuperMap.Geometry.Point(u,p));for(var c=1;c<e.length-1;c++){l.push(new SuperMap.Geometry.Point(e[c].x,e[c].y));var y=o[4*c-2],h=o[4*c-1],P=e[c].x+i*y,f=e[c].y+i*h;l.push(new SuperMap.Geometry.Point(P,f)),n.push(new SuperMap.Geometry.Point(P,f)),y=o[4*c],h=o[4*c+1],P=e[c].x+i*y,f=e[c].y+i*h,l.push(new SuperMap.Geometry.Point(P,f)),n.push(new SuperMap.Geometry.Point(P,f))}var S=e.length-1;l.push(new SuperMap.Geometry.Point(e[S].x,e[S].y)),a=o[4*S-2],s=o[4*S-1],u=e[S].x+i*a,p=e[S].y+i*s,l.push(new SuperMap.Geometry.Point(u,p)),n.push(new SuperMap.Geometry.Point(u,p)),l.push(new SuperMap.Geometry.Point(e[S].x,e[S].y)),r=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(l)}else{o=[];var g=(l=SuperMap.Plot.PlottingUtil.getBeizerCtrlPt(e))[2].x-l[0].x,d=l[2].y-l[0].y,M=g/i,m=d/i;o.push(M),o.push(m),n.push(l[2]);for(var v=1;v<e.length-1;v++){var b=(l[3*v+1].x-l[3*v].x)/i,T=(l[3*v+1].y-l[3*v].y)/i;o.push(b),o.push(T),n.push(l[3*v+1]);var L=(l[3*v+2].x-l[3*v].x)/i,A=(l[3*v+2].y-l[3*v].y)/i;o.push(L),o.push(A),n.push(l[3*v+2])}M=(g=l[3*(e.length-1)+1].x-l[3*(e.length-1)].x)/i,m=(d=l[3*(e.length-1)+1].y-l[3*(e.length-1)].y)/i,o.push(M),o.push(m),n.push(l[3*(e.length-1)+1]),r=SuperMap.Plot.PlottingUtil.generateBeizerPointsWithCtrlPt(l)}return{scalePoints:n,scaleValues:o,beizerPoints:r}},SuperMap.Plot.PlottingUtil.getTrianglePoints=function(t,e,o,i,n,l,r){var a=o.x,s=o.y,u=i.x,p=i.y,c=n.x,y=n.y;SuperMap.Plot.PlottingUtil.getPointsByTriangle(t,e,a,s,u,p,c,y,l,r)},SuperMap.Plot.PlottingUtil.getPointsByTriangle=function(t,e,o,i,n,l,r,a,s,u){var p=n+(r-o),c=l+(a-i),y=0,h=0;if(o==r)y=o,h=c;else if(i==a)y=p,h=i;else{var P=1*(a-i)/(r-o),f=i-o*P;h=P*(y=(c+p/P-f)/(P+1/P))+f}var S=Math.sqrt(1*(n-p)*(n-p)+1*(l-c)*(l-c)),g=Math.sqrt(1*(o-n)*(o-n)+1*(i-l)*(i-l)),d=Math.sqrt(1*(n-r)*(n-r)+1*(l-a)*(l-a)),M=0;p=y+(p-y)*(M=g+d?1+(d-g)*t/(d+g):1),c=h+(c-h)*M,0==S&&(S=1),s.x=n+(n-p)*g/(e*S),s.y=l+(l-c)*g/(e*S),u.x=n+(p-n)*d/(e*S),u.y=l+(c-l)*d/(e*S)},SuperMap.Plot.PlottingUtil.getTrapezoidPoints=function(t,e,o,i,n){var l=e.x,r=e.y,a=o.x,s=o.y,u=i.x,p=i.y;return SuperMap.Plot.PlottingUtil.getPointsByTrapezoid(t,l,r,a,s,u,p,n)},SuperMap.Plot.PlottingUtil.getPointsByTrapezoid=function(t,e,o,i,n,l,r,a){var s=0,u=0,p=0,c=0;if(0==Math.abs(o-n))s=e+i-l,u=r;else if(0==Math.abs(e-i))s=l,u=o+n-r;else{var y=1*(o-n)/(e-i),h=r-y*l;u=y*(s=((n+o)/2+(e+i)/(2*y)-h)/(y+1/y))+h,s=2*s-l,u=2*u-r}var P=Math.sqrt(1*(e-i)*(e-i)+1*(o-n)*(o-n)),f=Math.sqrt(1*(e-s)*(e-s)+1*(o-u)*(o-u));return P>0?(p=e+(i-e)*f/P,c=o+(n-o)*f/P):(p=e,c=o),a.x=p+(s-p)*t,a.y=c+(u-c)*t,a},SuperMap.Plot.PlottingUtil.pointIsOnPolyLine=function(t,e,o){if(SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,e.y)||SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,o.x)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,o.y))return!0;var i=t.x-e.x,n=t.y-e.y,l=t.x-o.x,r=t.y-o.y,a=(i*l+n*r)/(Math.sqrt(i*i+n*n)*Math.sqrt(l*l+r*r));return!!SuperMap.Plot.PlottingUtil.equalFuzzy(a,-1,.1)},SuperMap.Plot.PlottingUtil.pointIsOnPolyLines=function(t,e){if(!e||0===e.length)return{isOnPolyLine:!1,index:-1};for(var o=!1,i=-1,n=0;n<e.length-1;n++)if(o=SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(t,e[n],e[n+1])){i=n;break}return{isOnPolyLine:o,index:i}},SuperMap.Plot.PlottingUtil.computePointToLineMinDis=function(t,e){for(var o=-1,i=-1,n=0;n<e.length-1;n++){var l=e[n],r=e[n+1],a=SuperMap.Plot.PlottingUtil.projectPoint(t,l,r);if(SuperMap.Plot.PlottingUtil.pointIsOnPolyLine(a,l,r)){var s=SuperMap.Plot.PlottingUtil.distance(t,a);o<0?(o=s,i&&(i=n)):o>s&&(o=s,i=n)}}return i&&o<0&&(i=-1),{minDis:o,index:i}},SuperMap.Plot.PlottingUtil.findPointInLine=function(t,e,o){if(t===e||Math.abs(o)<1e-18)return t;var i=e.x-t.x,n=e.y-t.y,l=o/Math.sqrt(i*i+n*n),r=t.x+i*l,a=t.y+n*l;return new SuperMap.Geometry.Point(r,a)},SuperMap.Plot.PlottingUtil.operateControlPoints=function(t){var e=t,o=e.length;if(3==o){var i=new SuperMap.Geometry.Point(0,0);SuperMap.Plot.PlottingUtil.getTrapezoidPoints(1,t[0],t[1],t[2],i),e.push(i)}if(o>4&&(e.splice(4,o-4),o=e.length),SuperMap.Plot.PlottingUtil.pointIsRightToLine(t[0],t[1],e[2])){var n=e[0];e[0]=e[1],e[1]=n}if(!SuperMap.Plot.PlottingUtil.pointIsRightToVerticle(e[0],e[1],e[2])){var l=e[2];e[2]=e[3],e[3]=l}return e},SuperMap.Plot.PlottingUtil.pointIsRightToLine=function(t,e,o){return(e.x-t.x)*(o.y-t.y)-(o.x-t.x)*(e.y-t.y)<0},SuperMap.Plot.PlottingUtil.pointIsRightToVerticle=function(t,e,o){var i=new SuperMap.Geometry.Point(.5*(e.x+t.x),.5*(e.y+t.y)),n=new SuperMap.Geometry.Point(e.x-t.x,e.y-t.y),l=new SuperMap.Geometry.Point(o.x-i.x,o.y-i.y);return n.x*l.x+n.y*l.y>0},SuperMap.Plot.PlottingUtil.linePnt=function(t,e,o){var i=SuperMap.Plot.PlottingUtil.distance(t,e);if(0==i)return t;var n=o/i;return SuperMap.Plot.PlottingUtil.findPointOnLineByRatio(n,t,e)},SuperMap.Plot.PlottingUtil.findPointOnLineByRatio=function(t,e,o){var i=new SuperMap.Geometry.Point(0,0);return i.x=e.x+(o.x-e.x)*t,i.y=e.y+(o.y-e.y)*t,i},SuperMap.Plot.PlottingUtil.rotateAngle=function(t,e,o){var i=e,n=Math.cos(i),l=Math.sin(i),r=o.x-t.x,a=o.y-t.y;return o.x=r*n-a*l+t.x,o.y=r*l+a*n+t.y,o},SuperMap.Plot.PlottingUtil.resize=function(t,e,o){return o.x=t.x+e*(o.x-t.x),o.y=t.y+e*(o.y-t.y),o},SuperMap.Plot.PlottingUtil.findPointInPolyLine=function(t,e){if(e<0||t.length<2)return{index:-1,pt:null};if(Math.abs(e)<1e-18)return{index:0,pt:t[0]};for(var o=0,i=0;i<t.length-1;i++)if((o+=SuperMap.Plot.PlottingUtil.distance(t[i],t[i+1]))>e||SuperMap.Plot.PlottingUtil.equalFuzzy(o,e)){var n=o-e,l=t[i+1],r=t[i],a=n/SuperMap.Plot.PlottingUtil.distance(l,r),s=new SuperMap.Geometry.Point(0,0);return s.x=l.x+(r.x-l.x)*a,s.y=l.y+(r.y-l.y)*a,{index:i,pt:s}}return{index:-1,pt:null}},SuperMap.Plot.PlottingUtil.polylineDistance=function(t){if(0===t.length)return 0;for(var e=0,o=0;o<t.length-1;o++)e+=SuperMap.Plot.PlottingUtil.distance(t[o],t[o+1]);return e},SuperMap.Plot.PlottingUtil.rotate=function(t,e,o,i){var n=i.x-t.x,l=i.y-t.y,r=n*e-l*o+t.x,a=n*o+l*e+t.y;return new SuperMap.Geometry.Point(r,a)},SuperMap.Plot.PlottingUtil.getIncentrePointOnSegmentByScale=function(t,e,o){var i=e.x,n=e.y,l=o.x,r=o.y,a=Math.sqrt(1*(i-l)*(i-l)+1*(n-r)*(n-r)),s=0,u=0;return 0==a?(s=i,u=n):(s=i+(l-i)*t/a,u=n+(r-n)*t/a),new SuperMap.Geometry.Point(s,u)},SuperMap.Plot.PlottingUtil.getExcentrePointOnSegmentByScale=function(t,e,o){var i=e.x,n=e.y,l=o.x,r=o.y,a=0,s=0,u=Math.sqrt(1*(i-l)*(i-l)+1*(n-r)*(n-r));return 0===u?(a=i,s=n):(a=i+(i-l)*t/u,s=n+(n-r)*t/u),new SuperMap.Geometry.Point(a,s)},SuperMap.Plot.PlottingUtil.getSidePointsOfLine=function(t,e,o){var i=e.x,n=e.y,l=o.x,r=o.y,a=Math.sqrt(1*(i-l)*(i-l)+1*(n-r)*(n-r)),s=0,u=0;0==a?(u=0,s=t):(s=t*(i-l)/a,u=t*(n-r)/a);var p=-u+l,c=+s+r,y=+u+l,h=-s+r;return{pntLeft:new SuperMap.Geometry.Point(y,h),pntRight:new SuperMap.Geometry.Point(p,c)}},SuperMap.Plot.PlottingUtil.pointProjectToSegment=function(t,e,o){var i=0,n=0,l=0,r=1,a=void 0,s=void 0;if(n=e.x!==t.x?(e.y-t.y)/(e.x-t.x):1.7976931348623157e308,l=o.x!==t.x?(o.y-t.y)/(o.x-t.x):1.7976931348623157e308,i=o.y!==e.y?(o.x-e.x)/(e.y-o.y):1.7976931348623157e308,(a=e.x>=t.x&&e.y>=t.y?1:e.x<t.x&&e.y>t.y?2:e.x<=t.x&&e.y<=t.y?3:4)==(s=o.x>t.x&&o.y>t.y?1:o.x<t.x&&o.y>t.y?2:o.x<t.x&&o.y<t.y?3:4))(n<i&&l<i||n>i&&l>i)&&(r=0);else switch(a){case 1:(4==s&&n<i||2==s&&n>i)&&(r=0);break;case 2:(1==s&&n<i||3==s&&n>i)&&(r=0);break;case 3:(2==s&&n<i||4==s&&n>i)&&(r=0);break;case 4:(3==s&&n<i||1==s&&n>i)&&(r=0)}var u=new SuperMap.Geometry.Point(0,0);return SuperMap.Plot.PlottingUtil.equalFuzzy(i-1.7976931348623157e308,0)?(u.x=t.x,u.y=e.y):SuperMap.Plot.PlottingUtil.equalFuzzy(i,0)?(u.x=e.x,u.y=t.y):(u.x=(i*(e.y-t.y)+i*i*t.x+e.x)/(i*i+1),u.y=t.y+i*(u.x-t.x)),{isOnline:1===r,projectPoint:u}},SuperMap.Plot.PlottingUtil.coordinateTrans=function(t,e,o){var i=SuperMap.Plot.PlottingUtil.distance(new SuperMap.Geometry.Point(0,0),e),n=SuperMap.Plot.PlottingUtil.radian(new SuperMap.Geometry.Point(0,0),e)+o*Math.PI/180,l=i*Math.cos(n)+t.x,r=i*Math.sin(n)+t.y;return new SuperMap.Geometry.Point(l,r)},SuperMap.Plot.PlottingUtil.triangleHeightAndPartBottomLen=function(t,e,o){var i=void 0,n=void 0,l=(o.x-e.x)*(o.x-e.x)+(o.y-e.y)*(o.y-e.y),r=Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y)),a=Math.sqrt((t.x-o.x)*(t.x-o.x)+(t.y-o.y)*(t.y-o.y));if(0==a||0==r)i=0,n=0;else if(0==l)i=r,n=0;else{var s=(r*r+a*a-l)/2/r/a,u=0;s>=1?(s=1,u=0):u=Math.sqrt(1-s*s),i=a*s,n=a*u}return{dLen1:i,dLen2:n}},SuperMap.Plot.PlottingUtil.paraLine=function(t,e,o){var i=[];if(2>t.length)return i;if(o){var n=t[1].clone();n=SuperMap.Plot.PlottingUtil.rotateAngle(t[0],Math.PI/2,n),i.push(SuperMap.Plot.PlottingUtil.linePnt(t[0],n,e));for(var l=1;l<t.length-1;l++)if(!SuperMap.Plot.PlottingUtil.equalFuzzy(t[l].x,t[l+1].x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t[l].y,t[l+1].y)){for(var r=SuperMap.Plot.PlottingUtil.radian(t[l],t[l+1]),a=SuperMap.Plot.PlottingUtil.radian(t[l],t[l-1])-r;a<0;)a+=2*Math.PI;var s=a/2,u=void 0;u=s>Math.PI/2?s-Math.PI/2:Math.PI/2-s;var p=e/Math.cos(u);n=t[l+1].clone(),n=SuperMap.Plot.PlottingUtil.rotateAngle(t[l],s,n),i.push(SuperMap.Plot.PlottingUtil.linePnt(t[l],n,p))}n=t[t.length-2].clone(),n=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],-1*Math.PI/2,n),i.push(SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],n,e))}else{var c=t[1].clone();c=SuperMap.Plot.PlottingUtil.rotateAngle(t[0],-Math.PI/2,c),i.push(SuperMap.Plot.PlottingUtil.linePnt(t[0],c,e));for(var y=1;y<t.length-1;y++)if(!SuperMap.Plot.PlottingUtil.equalFuzzy(t[y].x,t[y+1].x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t[y].y,t[y+1].y)){for(var h=SuperMap.Plot.PlottingUtil.radian(t[y],t[y+1]),P=SuperMap.Plot.PlottingUtil.radian(t[y],t[y-1])-h;P<0;)P+=2*Math.PI;var f=Math.PI-P/2,S=void 0;S=f>Math.PI/2?f-Math.PI/2:Math.PI/2-f;var g=e/Math.cos(S);c=t[y-1].clone(),c=SuperMap.Plot.PlottingUtil.rotateAngle(t[y],f,c),i.push(SuperMap.Plot.PlottingUtil.linePnt(t[y],c,g))}c=t[t.length-2].clone(),c=SuperMap.Plot.PlottingUtil.rotateAngle(t[t.length-1],Math.PI/2,c),i.push(SuperMap.Plot.PlottingUtil.linePnt(t[t.length-1],c,e))}return i},SuperMap.Plot.PlottingUtil.circlePoint=function(t,e,o,i){i*=Math.PI/180;var n=t.x+e*Math.cos(i),l=t.y+o*Math.sin(i);return new SuperMap.Geometry.Point(n,l)},SuperMap.Plot.PlottingUtil.getPolygonCenterPt=function(t){if(!t||0===t.length)return null;for(var e=0,o=0,i=0;i<t.length;i++)e+=t[i].x,o+=t[i].y;return new SuperMap.Geometry.Point(e/t.length,o/t.length)},SuperMap.Plot.PlottingUtil.ptIsInPolygon=function(t,e){if(!t||0===t.length)return!1;for(var o=0,i=t.length,n=0;n<i;n++){var l=t[n],r=t[(n+1)%i];if(l.y!==r.y){var a=l.y<r.y?l.y:r.y,s=l.y>r.y?l.y:r.y;if(!(e.y<a||e.y>s))(e.y-l.y)*(r.x-l.x)/(r.y-l.y)+l.x>e.x&&o++}}return o%2==1},SuperMap.Plot.PlottingUtil.projectPtOnPolyLine=function(t,e){if(2>e.length)return{index:-1,pt:null};for(var o=0;o<e.length-1;o++){var i=SuperMap.Plot.PlottingUtil.pointProjectToSegment(t,e[o],e[o+1]);if(i.isOnline)return{index:o,pt:i.projectPoint}}return{index:-1,pt:null}},SuperMap.Plot.PlottingUtil.isPloyClockwise=function(t){var e=SuperMap.Plot.PlottingUtil.clonePoints(t),o=e.length;if(!(o<3)){var i=e[0].y*(e[o-1].x-e[1].x);e.push(e[0].clone());for(var n=1;n<o;++n)i+=e[n].y*(e[n-1].x-e[n+1].x);return i>0?0:1}},SuperMap.Plot.PlottingUtil.isSamePt=function(t,e){return!(!SuperMap.Plot.PlottingUtil.equalFuzzy(t.x,e.x)||!SuperMap.Plot.PlottingUtil.equalFuzzy(t.y,e.y))},SuperMap.Plot.PlottingUtil.getPtsIndexByDistance=function(t,e){var o=SuperMap.Plot.PlottingUtil.findPointInPolyLine(e,t);return{index:o.index,pts:o.pt,bfind:-1!==o.index}},SuperMap.Plot.PlottingUtil.ptInBounds=function(t,e){return t.x>e.left&&t.x<e.right&&t.y<e.top&&t.y>e.bottom},SuperMap.Plot.PlottingUtil.InnerAngle=function(t,e,o){if(t==e||t==o)return 0;var i=SuperMap.Plot.PlottingUtil.distance(t,e),n=SuperMap.Plot.PlottingUtil.distance(t,o),l=SuperMap.Plot.PlottingUtil.distance(e,o),r=(i*i+n*n-l*l)/(2*i*n);return r>1&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,1)?r=1:r<1&&SuperMap.Plot.PlottingUtil.equalFuzzy(r,-1)&&(r=-1),Math.acos(r)},SuperMap.Plot.PlottingUtil.plumbLineLen=function(t,e,o){return SuperMap.Plot.PlottingUtil.distance(t,e)*Math.sin(SuperMap.Plot.PlottingUtil.InnerAngle(e,t,o))},SuperMap.Plot.PlottingUtil.paraPolygon=function(t,e,o){var i=[],n=SuperMap.Plot.PlottingUtil.clonePoints(t),l=n.length;if(l<2)return i;var r=new SuperMap.Geometry.Point(0,0);if(o){if(l<3)r=n[1].clone(),SuperMap.Plot.PlottingUtil.rotateAngle(n[0],Math.PI,r),i.push(SuperMap.Plot.PlottingUtil.linePnt(n[0],r,e));else{for(var a=SuperMap.Plot.PlottingUtil.radian(n[0],n[1]),s=SuperMap.Plot.PlottingUtil.radian(n[0],n[n.length-1])-a;s<0;)s+=2*Math.PI;var u=s/2,p=void 0;p=u>Math.PI/2?u-Math.PI/2:Math.PI/2-u;var c=e/Math.cos(p);r=n[1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(n[0],u,r),i.push(SuperMap.Plot.PlottingUtil.linePnt(n[0],r,c))}for(var y=1;y<l-1;y++){for(var h=SuperMap.Plot.PlottingUtil.radian(n[y],n[y+1]),P=SuperMap.Plot.PlottingUtil.radian(n[y],n[y-1])-h;P<0;)P+=2*Math.PI;var f=P/2,S=void 0;S=f>Math.PI/2?f-Math.PI/2:Math.PI/2-f;var g=e/Math.cos(S);r=n[y+1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(n[y],f,r),i.push(SuperMap.Plot.PlottingUtil.linePnt(n[y],r,g))}if(l<3)r=n[l-2].clone(),SuperMap.Plot.PlottingUtil.rotateAngle(n[l-1],0,r),i.push(SuperMap.Plot.PlottingUtil.linePnt(n[l-1],r,e));else{for(var d=SuperMap.Plot.PlottingUtil.radian(n[l-1],n[0]),M=SuperMap.Plot.PlottingUtil.radian(n[l-1],n[l-2])-d;M<0;)M+=2*Math.PI;var m=M/2,v=void 0;v=m>Math.PI/2?m-Math.PI/2:Math.PI/2-m;var b=e/Math.cos(v);r=n[0].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(n[l-1],m,r),i.push(SuperMap.Plot.PlottingUtil.linePnt(n[l-1],r,b))}}else{if(l<3){var T=n[1].clone();SuperMap.Plot.PlottingUtil.rotateAngle(n[0],0,T),i.push(SuperMap.Plot.PlottingUtil.linePnt(n[0],T,e))}else{for(var L=SuperMap.Plot.PlottingUtil.radian(n[0],n[1]),A=SuperMap.Plot.PlottingUtil.radian(n[0],n[l-1])-L;A<0;)A+=2*Math.PI;var O=Math.PI-A/2,E=void 0;E=O>Math.PI/2?O-Math.PI/2:Math.PI/2-O;var w=e/Math.cos(E);r=n[l-1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(n[0],O,r),i.push(SuperMap.Plot.PlottingUtil.linePnt(n[0],r,w))}for(var x=1;x<l-1;x++){for(var C=SuperMap.Plot.PlottingUtil.radian(n[x],n[x+1]),R=SuperMap.Plot.PlottingUtil.radian(n[x],n[x-1])-C;R<0;)R+=2*Math.PI;var I=Math.PI-R/2,_=void 0;_=I>Math.PI/2?I-Math.PI/2:Math.PI/2-I;var U=e/Math.cos(_);r=n[x-1].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(n[x],I,r),i.push(SuperMap.Plot.PlottingUtil.linePnt(n[x],r,U))}if(l<3)r=n[l-2].clone(),SuperMap.Plot.PlottingUtil.rotateAngle(n[l-1],Math.PI,r),i.push(SuperMap.Plot.PlottingUtil.linePnt(n[l-1],r,e));else{for(var N=SuperMap.Plot.PlottingUtil.radian(n[l-1],n[0]),D=SuperMap.Plot.PlottingUtil.radian(n[l-1],n[l-2])-N;D<0;)D+=2*Math.PI;var B=Math.PI-D/2,k=void 0;k=B>Math.PI/2?B-Math.PI/2:Math.PI/2-B;var G=e/Math.cos(k);r=n[l-2].clone(),r=SuperMap.Plot.PlottingUtil.rotateAngle(n[l-1],B,r),i.push(SuperMap.Plot.PlottingUtil.linePnt(n[l-1],r,G))}}return i},SuperMap.Plot.PlottingUtil.getOutRectangleDis=function(t){if(2>t.length)return 0;for(var e=t[0].x,o=t[0].x,i=t[0].y,n=t[0].y,l=1;l<t.length;l++)e<t[l].x&&(e=t[l].x),o>t[l].x&&(o=t[l].x),i<t[l].y&&(i=t[l].y),n>t[l].y&&(n=t[l].y);return SuperMap.Plot.PlottingUtil.distance(new SuperMap.Geometry.Point(e,i),new SuperMap.Geometry.Point(o,n))},SuperMap.Plot.PlottingUtil.clonePoints=function(t){var e=[];if(void 0===t||null===t)return e;if(SuperMap.Plot.PlottingUtil.isArray(t)||(t=[t]),t&&null!=t)for(var o=0;o<t.length;o++)void 0!==t[o]&&null!==t[o]&&e.push(t[o].clone());return e},SuperMap.Plot.PlottingUtil.extend=function(t,e){if("function"==typeof SuperMap.Util.extend)return SuperMap.Util.extend(t,e);if(t=t||{},e){for(var o in e){var i=e[o];void 0!==i&&(t[o]=i)}!("function"==typeof window.Event&&e instanceof window.Event)&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&(t.toString=e.toString)}return t},SuperMap.Plot.PlottingUtil.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},SuperMap.Plot.PlottingUtil.indexOf=function(t,e){if(null==t)return-1;if("function"==typeof t.indexOf)return t.indexOf(e);for(var o=0,i=t.length;o<i;o++)if(t[o]===e)return o;return-1},SuperMap.Plot.PlottingUtil.copyAttributes=function(t,e){if(t=t||{},e)for(var o in e){var i=e[o];void 0!==i&&"CLASS_NAME"!==o&&"function"!=typeof i&&(t[o]=i)}return t},SuperMap.Plot.PlottingUtil.cloneObject=function(t){if(null===t||"object"!==(void 0===t?"undefined":i(t)))return t;if(t instanceof Date){var e=new Date;return e.setTime(t.getTime()),e}if(t instanceof Array)return t.slice(0);if(t instanceof Object){var o={};for(var n in t)t.hasOwnProperty(n)&&(o[n]=SuperMap.Plot.PlottingUtil.cloneObject(t[n]));return o}throw new Error("Unable to copy obj! Its type isn't supported.")},SuperMap.Plot.PlottingUtil.rad=function(t){return t*Math.PI/180},SuperMap.Plot.PlottingUtil.deg=function(t){return 180*t/Math.PI},SuperMap.Plot.PlottingUtil.VincentyConstants={a:6378137,b:6356752.3142,f:1/298.257223563},SuperMap.Plot.PlottingUtil.distVincenty=function(t,e){var o,i,n,l=SuperMap.Plot.PlottingUtil.VincentyConstants,r=l.a,a=l.b,s=l.f;"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng&&e instanceof L.LatLng?(o=SuperMap.Plot.PlottingUtil.rad(e.lng-t.lng),i=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(t.lat))),n=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(e.lat)))):(o=SuperMap.Plot.PlottingUtil.rad(e.lon-t.lon),i=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(t.lat))),n=Math.atan((1-s)*Math.tan(SuperMap.Plot.PlottingUtil.rad(e.lat))));for(var u=Math.sin(i),p=Math.cos(i),c=Math.sin(n),y=Math.cos(n),h=o,P=2*Math.PI,f=20;Math.abs(h-P)>1e-12&&--f>0;){var S=Math.sin(h),g=Math.cos(h),d=Math.sqrt(y*S*(y*S)+(p*c-u*y*g)*(p*c-u*y*g));if(0==d)return 0;var M=u*c+p*y*g,m=Math.atan2(d,M),v=Math.asin(p*y*S/d),b=Math.cos(v)*Math.cos(v),T=M-2*u*c/b,A=s/16*b*(4+s*(4-3*b));P=h,h=o+(1-A)*s*Math.sin(v)*(m+A*d*(T+A*M*(2*T*T-1)))}if(0==f)return NaN;var O=b*(r*r-a*a)/(a*a),E=O/1024*(256+O*(O*(74-47*O)-128));return(a*(1+O/16384*(4096+O*(O*(320-175*O)-768)))*(m-E*d*(T+E/4*(M*(2*T*T-1)-E/6*T*(4*d*d-3)*(4*T*T-3))))).toFixed(3)/1e3},SuperMap.Plot.PlottingUtil.destinationVincenty=function(t,e,o){var i,n,l=SuperMap.Plot.PlottingUtil,r=l.VincentyConstants,a=r.a,s=r.b,u=r.f;"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng?(i=t.lng,n=t.lat):(i=t.lon,n=t.lat);for(var p=o,c=l.rad(e),y=Math.sin(c),h=Math.cos(c),P=(1-u)*Math.tan(l.rad(n)),f=1/Math.sqrt(1+P*P),S=P*f,g=Math.atan2(P,h),d=f*y,M=1-d*d,m=M*(a*a-s*s)/(s*s),v=1+m/16384*(4096+m*(m*(320-175*m)-768)),b=m/1024*(256+m*(m*(74-47*m)-128)),T=p/(s*v),A=2*Math.PI;Math.abs(T-A)>1e-12;){var O=Math.cos(2*g+T),E=Math.sin(T),w=Math.cos(T);A=T,T=p/(s*v)+b*E*(O+b/4*(w*(2*O*O-1)-b/6*O*(4*E*E-3)*(4*O*O-3)))}var x=S*E-f*w*h,C=Math.atan2(S*w+f*E*h,(1-u)*Math.sqrt(d*d+x*x)),R=u/16*M*(4+u*(4-3*M)),I=Math.atan2(E*y,f*w-S*E*h)-(1-R)*u*d*(T+R*E*(O+R*w*(2*O*O-1)));return"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng?L.latLng(l.deg(C),i+l.deg(I)):new SuperMap.LonLat(i+l.deg(I),l.deg(C))}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.AnalysisSymbol=SuperMap.Plot.AnalysisSymbol=SuperMap.Plot.AnalysisSymbol||{};SuperMap.Plot.AnalysisSymbol.analysisBasicInfo=function(t){var e=new Object;return e.libID=t.libID,e.code=t.code,e.symbolType=t.symbolType,e.symbolName=t.symbolName,e.textContent=t.textContent,e.minEditPts=t.algoMinEditPts,e.maxEditPts=t.algoMaxEditPts,e.surroundLineType=t.surroundLineType,e},SuperMap.Plot.AnalysisSymbol.analysisDotBasicInfo=function(t){var e=SuperMap.Plot.PlottingUtil.DPI,o=new Object;o.anchorPoint=new SuperMap.Geometry.Point(t.anchorPoint.x,t.anchorPoint.y);var i=0,n=0;return void 0!==t.symbolSizeInLib?(i=Math.round(t.symbolSizeInLib.x*e/25.4/10),n=Math.round(t.symbolSizeInLib.y*e/25.4/10)):(i=Math.round(t.symbolSize.x*e/25.4/10),n=Math.round(t.symbolSize.y*e/25.4/10)),o.symbolSizeInLib=new SuperMap.Size(i,n),o.symbolSizeInLib.w=i,o.symbolSizeInLib.h=n,o.middleMarkBounds=new SuperMap.Bounds(t.middleMarkBounds.leftBottom.x,t.middleMarkBounds.leftBottom.y,t.middleMarkBounds.rightTop.x,t.middleMarkBounds.rightTop.y),o},SuperMap.Plot.AnalysisSymbol.analysisAlgoBasicInfo=function(t,e){var o=new Object;if(o.subSymbols=[],o.scalePoints=[],o.scaleValues=[],e&&t.subSymbols)for(var i=0;i<t.subSymbols.length;i++)o.subSymbols.push(new SuperMap.Plot.SubSymbol(t.libID,t.subSymbols[i]));if(t.scalePoints){o.scalePoints=[];for(var n=0;n<t.scalePoints.length;n++){var l=new SuperMap.Geometry.Point(t.scalePoints[n].x,t.scalePoints[n].y);l.tag=n,l.isScalePoint=!0,o.scalePoints.push(l)}}if(t.scaleValues)for(var r=0;r<t.scaleValues.length;r++)o.scaleValues.push(t.scaleValues[r]);return o},SuperMap.Plot.AnalysisSymbol.analysisSymbolCells=function(t,e){var o=[];if(t&&(function(t,o){if(t.innerCells&&t.innerCells.length)for(var i=0;i<t.innerCells.length;i++){var n=t.innerCells[i];if(t.symbolIsCanFill&&n.type!==SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL){var l=new Object,r=SuperMap.Plot.AnalysisSymbol.getStyle(t,e);l.type=32,l.style={fillSymbolID:r.fillSymbolID,fillColor:r.fillColor,fillOpacity:r.fillOpacity,strokeOpacity:0,strokeWidth:0,fillLimit:!1,lineColorLimit:!0,lineWidthLimit:!0},l.positionPoints=[];for(var a=0;a<n.positionPoints.length;a++){var s=new SuperMap.Geometry.Point(n.positionPoints[a].x,n.positionPoints[a].y);l.positionPoints.push(s)}o.push(l)}}}(t,o),t.innerCells)){var i=t.innerCells;if(0!==i.length)for(var n=0;n<i.length;n++)o.push(SuperMap.Plot.AnalysisSymbol.analysisInnerCell(i[n],e))}return o},SuperMap.Plot.AnalysisSymbol.analysisInnerCell=function(t,e){var o=new Object;if(o.positionPoints=[],t){if(void 0!==t.polybezierClose&&(o.polybezierClose=t.polybezierClose),o.type=t.type,o.surroundLineFlag=t.surroundLineFlag,o.textContent=t.textContent,o.style=SuperMap.Plot.AnalysisSymbol.getStyle(t,e),null!=t.positionPoints)for(var i=t.positionPoints,n=0;n<i.length;n++){var l=new SuperMap.Geometry.Point(i[n].x,i[n].y);o.positionPoints.push(l)}if(o.style.lineColorLimit=t.lineColorLimit,o.style.lineTypeLimit=t.lineTypeLimit,o.style.lineWidthLimit=t.lineWidthLimit,o.style.fillLimit=t.fillLimit,o.style.fillColorLimit=t.fillColorLimit,o.style.fontColorLimit=t.fontColorLimit,o.style.surroundLineLimit=t.surroundLineLimit,o.style.surroundLineFlag=t.surroundLineFlag,o.style.surroundLineType=t.surroundLineType,34==t.type?o.style.fontColorLimit=!0:o.style.fontColorLimit=t.fontColorLimit,o.type===SuperMap.Plot.SymbolType.RECTANGLESYMBOL){var r=o.positionPoints[0],a=o.positionPoints[1],s=r.clone(),u=new SuperMap.Geometry.Point(a.x,r.y),p=a.clone(),c=new SuperMap.Geometry.Point(r.x,a.y);o.positionPoints=[],o.positionPoints.push(s),o.positionPoints.push(u),o.positionPoints.push(p),o.positionPoints.push(c),o.type=SuperMap.Plot.SymbolType.ARBITRARYPOLYGONSYMBOL}o.type===SuperMap.Plot.SymbolType.TEXTSYMBOL&&(o.style.fontSizeLimit=!0)}return o},SuperMap.Plot.AnalysisSymbol.getStyle=function(t,e){function o(t){var e=t.red.toString(16);e.length<2&&(e="0"+e);var o=t.green.toString(16);o.length<2&&(o="0"+o);var i=t.blue.toString(16);return i.length<2&&(i="0"+i),"#"+e+o+i}function i(t){return"TOPLEFT"===t?"lt":"TOPCENTER"===t?"ct":"TOPRIGHT"===t?"rt":"BOTTOMLEFT"===t?"lb":"BOTTOMCENTER"===t?"cb":"BOTTOMRIGHT"===t?"rb":"MIDDLELEFT"===t?"lm":"MIDDLECENTER"===t?"cm":"MIDDLERIGHT"===t?"rm":0===t?"lt":1===t?"ct":2===t?"rt":6===t?"lb":7===t?"cb":8===t?"rb":3===t?"lm":4===t?"cm":5===t?"rm":"lt"}var n=SuperMap.Plot.PlottingUtil.DPI,l={};return t.style?(e?(l.fillSymbolID=t.style.fillSymbolID,l.fillSymbolID||(l.fill=t.style.fill)):(!1===t.style.fill?t.style.fillSymbolID=1:!0===t.style.fill&&(t.style.fillSymbolID=0),l.fillSymbolID=t.style.fillSymbolID),void 0!==t.style.strokeGradientMode&&null!=t.style.strokeGradientMode?1===t.style.strokeGradientMode?l.strokeGradientMode="LINEAR":2===t.style.strokeGradientMode?l.strokeGradientMode="RADIAL":"LINEAR"!==t.style.strokeGradientMode&&"RADIAL"!==t.style.strokeGradientMode&&(l.strokeGradientMode="NONE"):l.strokeGradientMode="NONE",t.style.strokeBackColor?void 0!==t.style.strokeBackColor.red?(l.strokeBackColor=o(t.style.strokeBackColor),l.strokeBackOpacity=(t.style.strokeBackColor.alpha/255).toFixed(2)):(l.strokeBackColor=t.style.strokeBackColor,l.strokeBackOpacity=t.style.strokeBackOpacity):t.style.fillBackColor&&(void 0!==t.style.fillBackColor.red?(l.strokeBackColor=o(t.style.fillBackColor),l.strokeBackOpacity=(t.style.fillBackColor.alpha/255).toFixed(2)):(l.strokeBackColor=t.style.strokeBackColor,l.strokeBackOpacity=t.style.strokeBackOpacity)),void 0!==t.style.fillGradientMode&&null!=t.style.fillGradientMode&&(1===t.style.fillGradientMode?l.fillGradientMode="LINEAR":2===t.style.fillGradientMode?l.fillGradientMode="RADIAL":"LINEAR"!==t.style.fillGradientMode&&"RADIAL"!==t.style.fillGradientMode&&(l.fillGradientMode="NONE")),null!=t.style.fillGradientAngle&&void 0!==t.style.fillGradientAngle?l.fillAngle=t.style.fillGradientAngle:void 0!==t.style.fillAngle&&null!=t.style.fillAngle&&(l.fillAngle=t.style.fillAngle),void 0!==t.style.fillGradientOffsetRatioX&&null!=t.style.fillGradientOffsetRatioX?l.fillCenterOffsetX=t.style.fillGradientOffsetRatioX/100:void 0!==t.style.fillCenterOffsetX&&null!=t.style.fillCenterOffsetX&&(l.fillCenterOffsetX=t.style.fillCenterOffsetX/100),void 0!==t.style.fillGradientOffsetRatioY&&null!=t.style.fillGradientOffsetRatioY?l.fillCenterOffsetY=t.style.fillGradientOffsetRatioY/100:void 0!==t.style.fillCenterOffsetY&&null!=t.style.fillCenterOffsetY&&(l.fillCenterOffsetY=t.style.fillCenterOffsetY/100),void 0!==t.style.fillForeColor&&(l.fillColor=o(t.style.fillForeColor)),void 0!==t.style.fillOpaqueRate&&(l.fillOpacity=(t.style.fillOpaqueRate/100).toFixed(2),100!==t.style.fillOpaqueRate||1===t.style.fillGradientMode&&2===t.style.fillGradientMode||(l.fillOpacity=(t.style.fillForeColor.alpha/255).toFixed(2))),void 0!==t.style.fillBackColor&&(void 0!==t.style.fillBackColor.red?l.fillBackColor=o(t.style.fillBackColor):l.fillBackColor=t.style.fillBackColor),0===t.style.fillBackOpaque?l.fillBackOpacity=0:t.style.fillBackColor&&t.style.fillBackColor.alpha?l.fillBackOpacity=(t.style.fillBackColor.alpha/255).toFixed(2):l.fillBackOpacity=t.style.fillBackOpacity,void 0!==t.style.lineColor&&(!0===e?(l.color=o(t.style.lineColor),l.opacity=(t.style.lineColor.alpha/255).toFixed(2)):(l.strokeColor=o(t.style.lineColor),l.strokeOpacity=(t.style.lineColor.alpha/255).toFixed(2))),!0===e?void 0!==t.style.lineWidth?l.weight=Math.ceil(t.style.lineWidth*n/25.4):l.weight=t.style.strokeWidth:void 0!==t.style.lineWidth?l.strokeWidth=Math.ceil(t.style.lineWidth*n/25.4):l.strokeWidth=t.style.strokeWidth,e?(l.lineSymbolID=t.style.lineSymbolID,l.lineSymbolID||(l.dashArray=t.style.dashArray),!l.dashArray&&t.style.strokeDashstyle&&("dash"===t.style.strokeDashstyle?l.lineSymbolID=1:"dot"===t.style.strokeDashstyle?l.lineSymbolID=2:"dashdot"===t.style.strokeDashstyle?l.lineSymbolID=3:l.lineSymbolID=0)):1===t.style.lineSymbolID?l.strokeDashstyle="dash":2===t.style.lineSymbolID?l.strokeDashstyle="dot":3===t.style.lineSymbolID?l.strokeDashstyle="dashdot":t.style.strokeDashstyle?l.strokeDashstyle=t.style.strokeDashstyle:l.strokeDashstyle="solid",t.textStyle2D&&null!=t.textStyle2D?(void 0!==t.textStyle2D.sizeFixed&&(l.sizeFixed=t.textStyle2D.sizeFixed),void 0!==t.textStyle2D.fontName&&(l.fontFamily=t.textStyle2D.fontName),void 0!==t.textStyle2D.fontHeight&&(l.fontSize=Math.ceil(t.textStyle2D.fontHeight*n/25.4)),void 0!==t.textStyle2D.foreColor&&(l.fontColor=o(t.textStyle2D.foreColor)),void 0!==t.textStyle2D.align&&(l.labelAlign=i(t.textStyle2D.align)),void 0!==t.textStyle2D.rotation&&(l.labelRotation=-t.textStyle2D.rotation),void 0!==t.textStyle2D.bold&&(l.fontWeight=-t.textStyle2D.bold),l.labelXOffset=0,l.labelYOffset=0):t.textStyle&&null!=t.textStyle&&(void 0!==t.textStyle.sizeFixed&&(l.sizeFixed=t.textStyle.sizeFixed),void 0!==t.textStyle.fontName&&(l.fontFamily=t.textStyle.fontName),void 0!==t.textStyle.fontHeight&&(l.sizeFixed?l.fontSize=Math.ceil(t.textStyle.fontHeight*n/25.4):l.fontSize=t.textStyle.fontHeight),void 0!==t.textStyle.foreColor&&(l.fontColor=o(t.textStyle.foreColor)),void 0!==t.textStyle.align&&(l.labelAlign=i(t.textStyle.align)),void 0!==t.textStyle.rotation&&(l.labelRotation=-t.textStyle.rotation),void 0!==t.textStyle.bold&&(l.fontWeight=-t.textStyle.bold),l.labelXOffset=0,l.labelYOffset=0),void 0!==t.style.fontOpacity&&(l.fontOpacity=t.style.fontOpacity),void 0!==t.style.fontStroke?l.fontStroke=t.style.fontStroke:t.textStyle2D&&void 0!==t.textStyle2D.outline&&(l.fontStroke=t.textStyle2D.outline),void 0!==t.style.fontStrokeColor?l.fontStrokeColor=t.style.fontStrokeColor:t.textStyle2D&&void 0!==t.textStyle2D.backColor&&(l.fontStrokeColor=o(t.textStyle2D.backColor)),void 0!==l.fontStrokeWidth&&(l.fontStrokeWidth=t.style.fontStrokeWidth),void 0!==t.style.fontBackground&&(l.fontBackground=t.style.fontBackground),void 0!==t.style.fontBackgroundColor&&(l.fontBackgroundColor=t.style.fontBackgroundColor),void 0!==t.style.fontShadow&&(l.fontShadow=t.style.fontShadow),void 0!==t.style.fontShadowColor&&(l.fontShadowColor=t.style.fontShadowColor),void 0!==t.style.fontShadowOffsetX&&(l.fontShadowOffsetX=t.style.fontShadowOffsetX),void 0!==t.style.fontShadowOffsetY&&(l.fontShadowOffsetY=t.style.fontShadowOffsetY),void 0!==t.style.fontSpace&&(l.fontSpace=t.style.fontSpace),void 0!==t.style.fontPercent&&(l.fontPercent=t.style.fontPercent),void 0!==t.style.fontWeight&&(l.fontWeight=t.style.fontWeight),void 0!==t.style.fontStyle&&(l.fontStyle=t.style.fontStyle),void 0!==t.surroundLineColor&&null!=t.surroundLineColor&&(l.surroundLineColor=o(t.surroundLineColor),l.surroundLineColorOpacity=(t.surroundLineColor.alpha/255).toFixed(2)),void 0!==t.surroundLineWidth2D&&null!=t.surroundLineWidth2D?l.surroundLineWidth=Math.round(t.surroundLineWidth2D*n/25.4):void 0!==t.surroundLineWidth&&null!=t.surroundLineWidth&&(l.surroundLineWidth=Math.round(t.surroundLineWidth*n/25.4)),null!=t.style.graphicWidth&&(l.graphicWidth=t.style.graphicWidth),null!=t.style.graphicHeight&&(l.graphicHeight=t.style.graphicHeight),null!=t.style.graphicOpacity&&(l.graphicOpacity=t.style.graphicOpacity),null!=t.style.graphicXOffset&&(l.graphicXOffset=t.style.graphicXOffset),null!=t.style.graphicYOffset&&(l.graphicYOffset=t.style.graphicYOffset),!1===t.visibility?l.display="none":l.display="display",l):l},SuperMap.Plot.AnalysisSymbol.setStyle=function(t,e,o){var i=SuperMap.Plot.PlottingUtil.DPI;if(null!=e)return e.style||(e.style={}),e.textStyle2D||(e.textStyle2D={}),o?(e.style.fillSymbolID=t.fillSymbolID,e.style.fillSymbolID||(e.style.fill=t.fill)):(!1===t.fill?t.fillSymbolID=1:!0===t.fill&&(t.fillSymbolID=0),e.style.fillSymbolID=t.fillSymbolID),t.fillGradientMode&&(e.style.fillGradientMode=t.fillGradientMode),t.fillGradientMode&&("LINEAR"===t.fillGradientMode?e.style.fillGradientMode=1:"RADIAL"===t.fillGradientMode?e.style.fillGradientMode=2:e.style.fillGradientMode=0),t.strokeGradientMode&&("LINEAR"===t.strokeGradientMode?e.style.strokeGradientMode=1:"RADIAL"===t.strokeGradientMode?e.style.strokeGradientMode=2:e.style.strokeGradientMode=0),t.strokeBackColor&&(e.style.strokeBackColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.strokeBackColor)),t.strokeBackOpacity&&(e.style.strokeBackColor.alpha=255*t.strokeBackOpacity),null!=t.fillAngle&&void 0!==t.fillAngle&&(e.style.fillAngle=t.fillAngle,e.style.fillGradientAngle=t.fillAngle),null!=t.fillCenterOffsetX&&void 0!==t.fillCenterOffsetX&&(e.style.fillCenterOffsetX=100*t.fillCenterOffsetX,e.style.fillGradientOffsetRatioX=100*t.fillCenterOffsetX),null!=t.fillCenterOffsetY&&void 0!==t.fillCenterOffsetY&&(e.style.fillCenterOffsetY=100*t.fillCenterOffsetY,e.style.fillGradientOffsetRatioY=100*t.fillCenterOffsetY),t.fillColor&&(e.style.fillForeColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fillColor)),void 0!==t.fillOpacity&&null!=t.fillOpacity&&(e.style.fillOpaqueRate=100*t.fillOpacity,e.style.fillForeColor.alpha=255),t.fillBackColor&&(e.style.fillBackColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fillBackColor)),void 0!==t.fillBackOpacity&&null!=t.fillBackOpacity&&(0===t.fillBackOpacity?(e.style.fillBackOpaque=0,e.style.fillBackColor.alpha=255):e.style.fillBackColor&&(e.style.fillBackOpaque=1,e.style.fillBackColor.alpha=255*t.fillBackOpacity)),!0===o&&t.color?e.style.lineColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.color):t.strokeColor&&(e.style.lineColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.strokeColor)),!0===o&&null!=t.opacity&&void 0!==t.opacity?(e.style.lineColor.alpha=255*t.opacity,e.style.lineColor.alpha<1&&(e.style.lineColor.alpha=1)):null!=t.strokeOpacity&&void 0!==t.strokeOpacity&&(e.style.lineColor.alpha=255*t.strokeOpacity,e.style.lineColor.alpha<1&&(e.style.lineColor.alpha=1)),!0===o&&t.weight?e.style.lineWidth=25.4*t.weight/i:t.strokeWidth&&(e.style.lineWidth=25.4*t.strokeWidth/i),o?(e.style.lineSymbolID=t.lineSymbolID,e.style.lineSymbolID||(e.style.dashArray=t.dashArray)):"dot"===t.strokeDashstyle?e.style.lineSymbolID=2:"dash"===t.strokeDashstyle||"longdash"===t.strokeDashstyle?e.style.lineSymbolID=1:"dashdot"===t.strokeDashstyle||"longdashdot"===t.strokeDashstyle?e.style.lineSymbolID=3:e.style.lineSymbolID=0,t.fontFamily&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.fontName=t.fontFamily:e.textStyle&&null!=e.textStyle&&(e.textStyle.fontName=t.fontFamily)),null!=t.sizeFixed&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.sizeFixed=t.sizeFixed:e.textStyle&&null!=e.textStyle&&(e.textStyle.sizeFixed=t.sizeFixed)),t.fontSize&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.fontHeight=25.4*t.fontSize/i:e.textStyle&&null!=e.textStyle&&(t.sizeFixed?e.textStyle.fontHeight=25.4*t.fontSize/i:e.textStyle.fontHeight=t.fontSize)),t.fontWeight&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.bold=t.fontWeight:e.textStyle&&null!=e.textStyle&&(e.textStyle.bold=t.fontWeight)),t.fontColor&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.foreColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontColor):e.textStyle&&null!=e.textStyle&&(e.textStyle.foreColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontColor))),t.labelRotation&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.rotation=-t.labelRotation:e.textStyle&&null!=e.textStyle&&(e.textStyle.rotation=-t.labelRotation)),void 0!==t.fontOpacity&&(e.style.fontOpacity=t.fontOpacity),void 0!==t.fontStroke&&(e.textStyle2D.outline=t.fontStroke),void 0!==t.fontStrokeColor&&(e.textStyle2D.backColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.fontStrokeColor)),void 0!==t.fontStrokeWidth&&(e.style.fontStrokeWidth=t.fontStrokeWidth),void 0!==t.fontBackground&&(e.style.fontBackground=t.fontBackground),void 0!==t.fontBackgroundColor&&(e.style.fontBackgroundColor=t.fontBackgroundColor),void 0!==t.fontShadow&&(e.style.fontShadow=t.fontShadow),void 0!==t.fontShadowColor&&(e.style.fontShadowColor=t.fontShadowColor),void 0!==t.fontShadowOffsetX&&(e.style.fontShadowOffsetX=t.fontShadowOffsetX),void 0!==t.fontShadowOffsetY&&(e.style.fontShadowOffsetY=t.fontShadowOffsetY),void 0!==t.fontSpace&&(e.style.fontSpace=t.fontSpace),void 0!==t.fontPercent&&(e.style.fontPercent=t.fontPercent),void 0!==t.fontWeight&&(e.style.fontWeight=t.fontWeight),void 0!==t.fontStyle&&(e.style.fontStyle=t.fontStyle),t.surroundLineColor&&(e.surroundLineColor=SuperMap.Plot.PlottingUtil.colorStringToRGB(t.surroundLineColor)),null!=t.surroundLineColorOpacity&&void 0!==t.surroundLineColorOpacity&&(e.surroundLineColor.alpha=255*t.surroundLineColorOpacity),t.surroundLineWidth&&(e.surroundLineWidth2D=25.4*t.surroundLineWidth/i),void 0!==t.labelAlign&&("lt"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=0:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=0):"ct"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=1:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=1):"rt"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=2:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=2):"lb"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=6:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=6):"cb"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=7:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=7):"rb"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=8:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=8):"lm"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=3:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=3):"cm"===t.labelAlign?e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=4:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=4):"rm"===t.labelAlign&&(e.textStyle2D&&null!=e.textStyle2D?e.textStyle2D.align=5:e.textStyle&&null!=e.textStyle&&(e.textStyle.align=5))),null!=t.graphicWidth&&(e.style.graphicWidth=t.graphicWidth),null!=t.graphicHeight&&(e.style.graphicHeight=t.graphicHeight),null!=t.graphicOpacity&&(e.style.graphicOpacity=t.graphicOpacity),null!=t.graphicXOffset&&(e.style.graphicXOffset=t.graphicXOffset),null!=t.graphicYOffset&&(e.style.graphicYOffset=t.graphicYOffset),t.display&&"none"===t.display?e.visibility=!1:e.visibility=!0,t},SuperMap.Plot.AnalysisSymbol.mergeDefaultStyleToFeature=function(t,e,o){var i=void 0,n=void 0;i=t.style,n=!0!==o?t.geometry:t,e&&!0===e.defaultFlag&&!1===n.isEdit&&(n.surroundLineType=e.surroundLineType,i.surroundLineColor=e.surroundLineColor,i.surroundLineWidth=e.surroundLineWidth,i.surroundLineColorOpacity=e.surroundLineColorOpacity,i.fillBackColor=e.fillBackColor,i.fillBackOpacity=e.fillBackOpacity,i.fillGradientMode=e.fillGradientMode,i.fillCenterOffsetX=e.fillCenterOffsetX,i.fillCenterOffsetY=e.fillCenterOffsetY,i.fillAngle=e.fillAngle,!0===o?(i.color=e.lineColor,i.weight=e.lineWidth,i.opacity=e.lineOpacity,i.lineSymbolID=e.lineType,i.lineCap=e.lineCap,i.lineJoin=e.lineJoin):(i.strokeColor=e.lineColor,i.strokeWidth=e.lineWidth,i.strokeOpacity=e.lineOpacity,i.strokeDashstyle=e.lineType,i.strokeLinecap=e.lineCap,i.strokeLinejoin=e.lineJoin),i.fillSymbolID=e.fillSymbolID,i.fillColor=e.fillColor,i.fillOpacity=e.fillOpacity,i.fontColor=e.fontColor,i.fontOpacity=e.fontOpacity,i.fontSize=e.fontSize,i.fontFamily=e.fontFamily,i.fontWeight=e.fontWeight,i.fontStyle=e.fontStyle,i.fontStroke=e.fontStroke,i.fontStrokeColor=e.fontStrokeColor,i.fontStrokeWidth=e.fontStrokeWidth,i.fontBackground=e.fontBackground,i.fontBackgroundColor=e.fontBackgroundColor,i.fontShadow=e.fontShadow,i.fontShadowColor=e.fontShadowColor,i.fontShadowOffsetX=e.fontShadowOffsetX,i.fontShadowOffsetY=e.fontShadowOffsetY,i.fontSpace=e.fontSpace,i.fontPercent=e.fontPercent,i.strokeGradientMode=e.strokeGradientMode,i.strokeBackColor=e.strokeBackColor,i.strokeBackOpacity=e.strokeBackOpacity)},SuperMap.Plot.AnalysisSymbol.mergeSymbolDataAndServerData=function(t,e){t.hasOwnProperty("algoMinEditPts")||(t.algoMinEditPts=e.algoMinEditPts),t.hasOwnProperty("algoMaxEditPts")||(t.algoMaxEditPts=e.algoMaxEditPts),t.hasOwnProperty("innerCells")||(t.innerCells=SuperMap.Util.cloneObject(e.innerCells)),t.hasOwnProperty("symbolRanks")||(t.symbolRanks=SuperMap.Util.cloneObject(e.symbolRanks)),t.hasOwnProperty("symbolSizeInLib")||(t.symbolSizeInLib=SuperMap.Util.cloneObject(e.symbolSize)),t.hasOwnProperty("middleMarkExist")||(t.middleMarkExist=SuperMap.Util.cloneObject(e.middleMarkExist)),t.hasOwnProperty("middleMarkBounds")||(t.middleMarkBounds=SuperMap.Util.cloneObject(e.middleMarkBounds)),t.hasOwnProperty("anchorPoint")||(t.anchorPoint=SuperMap.Util.cloneObject(e.anchorPoint))},SuperMap.Plot.AnalysisSymbol.setSymbolData=function(t,e,o){null==e&&(e={}),e.hasOwnProperty("type")||(e.type="GRAPHICOBJECT"),e.hasOwnProperty("version")||(e.version=2),e.isEdit=!0,e.uuid=t.uuid,e.associatedUuid=t.associatedUuid,e.hasOwnProperty("rotate2D")?e.rotate2D.x=t.dRotate:e.rotate2D={x:t.dRotate,y:0,z:0},e.hasOwnProperty("scale2D")?e.scale2D.x=t.dScale:e.scale2D={x:t.dScale,y:0,z:0},e.libID=t.libID,e.code=t.code,e.algoMaxEditPts=t.maxEditPts,e.algoMinEditPts=t.minEditPts,e.symbolType=t.symbolType,e.symbolName=t.symbolName,e.annotationPosition=t.annotationPosition?t.annotationPosition:t.textPosition,e.textContent=t.textContent,e.textDisplay=t.textDisplay,e.scaleByMap=t.scaleByMap,e.resolution=t.resolution,e.isLocked=t.isLocked,e.note=t.note,e.custom=t.custom,e.subSymbols=[];for(var i=0;i<t.subSymbols.length;i++){var n=t.subSymbols[i];e.subSymbols.push({libID:n.libID,code:n.code,symbolData:n.symbolData,textContent:n.textContent,totalNum:n.totalNum})}e.extendProperty=[];for(var l=t.getExtendProperty().getPropertyCount(),r=0;r<l;r++){var a=t.getExtendProperty().getPropertyByIndex(r);e.extendProperty.push({key:a.key,value:a.value})}e.avoidRegions=[];for(var s=0;s<t.avoidRegions.length;s++){var u={};o?SuperMap.Plot.AnalysisSymbol.setStyle(t.avoidRegions[s].style,u,o):SuperMap.Plot.AnalysisSymbol.setStyle(t.avoidRegions[s].feature.style,u,o),e.avoidRegions.push([t.avoidRegions[s].getSymbolData(),u])}if(!0===o?SuperMap.Plot.AnalysisSymbol.setStyle(t.style,e,o):null!=t.feature&&SuperMap.Plot.AnalysisSymbol.setStyle(t.feature.style,e),t.symbolType===SuperMap.Plot.SymbolType.AIRROUTE||t.symbolType===SuperMap.Plot.SymbolType.NAVYROUTE||t.symbolType===SuperMap.Plot.SymbolType.MISSILEROUTE){for(var p in e.routeNodes=[],t.routeNodes)e.routeNodes.push(t.routeNodes[p].setSymbolData());e.arrRoutePts=t.arrRoutePts,o||SuperMap.Plot.AnalysisSymbol.setStyle(t.lineStyle,e)}else if(t.symbolType===SuperMap.Plot.SymbolType.GROUPOBJECT||t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP||t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT){if(e.subAssociatedUuids=t.subAssociatedUuids,e.subFeatures=[],o)for(var c=0;c<t.subObjects.length;c++)e.subFeatures.push(t.subObjects[c].getSymbolData());else for(var y=0;y<t.components.length;y++)e.subFeatures.push(t.components[y].geometry.getSymbolData());0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP?e.ratio=t.ratio:0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT?(e.colNum=t.colNum,e.speceDis=t.speceDis,e.isShowTooltip=t.isShowTooltip):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT&&(e.colNum=t.colNum,e.speceDis=t.speceDis)}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT){var h=[];for(var P in t.symbolTexts)h.push(t.symbolTexts[P].setSymbolData());e.symbolTexts=h,e.addFrame=t.addFrame}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT1)e.space=t.space,e.offsetX=t.offsetX,e.offsetY=t.offsetY;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.TRAJECTORY)e.trajectoryType=t.trajectoryType,e.trajectoryLength=t.trajectoryLength,e.showTrackingLine=t.showTrackingLine,e.showTrackingPoint=t.showTrackingPoint,e.trackingPointRadius=t.trackingPointRadius,e.saveTrackingPoint=t.saveTrackingPoint;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITE){if(e.hasOwnProperty("scaleValues"))for(var f=0;f<t.scaleValues.length;f++)e.scaleValues.length>f?e.scaleValues[f]=t.scaleValues[f]:e.scaleValues.push(t.scaleValues[f]);else e.scaleValues=[],e.scaleValues=t.scaleValues;e.visible=t.visible,e.orbitPoints=t.orbitPoints}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS)e.timeWindows=t.timeWindows;else{var S=void 0;S=!0===o?L.Util.latLngsToSuperMapPoints(t.getLatLngs()):t.controlPoints,e.localePoints=[];var g=S.length;t.symbolType===SuperMap.Plot.SymbolType.ELLIPSESYMBOL&&(g=3);for(var d=0;d<g;d++)e.localePoints.push({x:S[d].x,y:S[d].y,z:0});if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINERELATION)e.endAssociatedUuid=t.endAssociatedUuid,e.lineRelationType=t.lineRelationType,e.startAssociatedUuid=t.startAssociatedUuid,e.subSectionCount=t.subSectionCount;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PICTURE)e.path=t.path;else if(t.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL){e.surroundLineType=t.surroundLineType,e.symbolRank=t.symbolRank,e.negativeImage=t.negativeImage,e.space=25.4*t.space*10/SuperMap.Plot.PlottingUtil.DPI,e.flagTextSize=t.flagTextSize,e.maxScale=t.maxScale,e.minScale=t.minScale,e.actualScale=t.actualScale,void 0!==t.fontSize&&(e.fontSize=t.fontSize),void 0!==t.strokeWidth&&(e.strokeWidth=t.strokeWidth);var M=25.4*t.symbolSize.w*10/SuperMap.Plot.PlottingUtil.DPI,m=25.4*t.symbolSize.h*10/SuperMap.Plot.PlottingUtil.DPI;e.symbolSize={x:M,y:m};var v=25.4*t.symbolSizeInLib.w*10/SuperMap.Plot.PlottingUtil.DPI,b=25.4*t.symbolSizeInLib.h*10/SuperMap.Plot.PlottingUtil.DPI;if(e.symbolSizeInLib={x:v,y:b},e.positionOffset=t.positionOffset,e.positionOffsetType=t.positionOffsetType,e.positionOffsetX=t.positionOffsetX,e.positionOffsetY=t.positionOffsetY,!1===t.widthHeightLimit||!0===t.widthHeightLimit?e.limitWidthHeight=t.widthHeightLimit:e.limitWidthHeight=t.limitWidthHeight,e.symbolTexts=[],null!=t.symbolTexts&&0!=t.symbolTexts.length)for(var T=0;T<t.symbolTexts.length;T++)e.symbolTexts.push(t.symbolTexts[T].setSymbolData());if(e.bloodVolumes=[],null!=t.bloodVolumes&&0!=t.bloodVolumes.length)for(var A=0;A<t.bloodVolumes.length;A++)e.bloodVolumes.push(t.bloodVolumes[A].setSymbolData());if(e.pictureFrames=[],null!=t.pictureFrames&&0!=t.pictureFrames.length)for(var O=0;O<t.pictureFrames.length;O++)e.pictureFrames.push(t.pictureFrames[O].setSymbolData());null!=t.trajectory&&(e.trajectory=t.trajectory.setSymbolData())}else{if(e.surroundLineType=t.surroundLineType,e.hasOwnProperty("scaleValues"))for(var E=0;E<t.scaleValues.length;E++)e.scaleValues.length>E?e.scaleValues[E]=t.scaleValues[E]:e.scaleValues.push(t.scaleValues[E]);else e.scaleValues=[],e.scaleValues=t.scaleValues;e.subSymbolScaleValue=t.subSymbolScaleValue,e.baseScale=t.baseScale,e.strokeWidth=t.strokeWidth,e.polylineConnectLocationPoint=t.polylineConnectLocationPoint,22===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ALGOSYMBOL?(e.arrowHeadType=t.arrowHeadType,e.arrowBodyType=t.arrowBodyType,e.arrowTailType=t.arrowTailType):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARROWLINE?e.arrowAngle=t.arrowAngle:0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE?e.defaultRadius=t.defaultRadius:0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.CONCENTRICCIRCLE||(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINEMARKING?(e.islocationCircle=t.islocationCircle,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXTBOX?(e.roundBox=t.roundBox,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PATHTEXT?(e.isAvoid=t.isAvoid,e.isCurve=t.isCurve,e.relLineText=t.relLineText,e.showPathLine=t.showPathLine,e.textToLineDistance=t.textToLineDistance,e.showPathLineArrow=t.showPathLineArrow):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARCREGION&&(o?(e.centerPoint={x:t.centerPoint.lng,y:t.centerPoint.lat},e.circlePts=t.circlePts,e.spatialAnalystUrl=t.spatialAnalystUrl):e.centerPoint=t.centerPoint,e.endAngle=t.endAngle,e.radius=t.radius,e.radiusPosAngle=t.radiusPosAngle,e.startAngle=t.startAngle,e.textPosition=t.textPosition,e.radiusLineType=t.radiusLineType,e.radiusText=t.radiusText))}}t.symbolData=e},SuperMap.Plot.AnalysisSymbol.parseSymbolData=function(t,e,o){if(null!=e){if(void 0!==e.isEdit&&(t.isEdit=e.isEdit),e.hasOwnProperty("version")&&(t.version=e.version),t.libID=parseInt(e.libID),t.code=parseInt(e.code),t.maxEditPts=parseInt(e.algoMaxEditPts),t.minEditPts=parseInt(e.algoMinEditPts),t.symbolType=e.symbolType,t.symbolName=e.symbolName,t.textContent=e.textContent,void 0!==e.dScale?t.dScale=e.dScale:void 0!==e.scale2D&&(t.dScale=e.scale2D.x),void 0!==e.dRotate?t.dRotate=e.dRotate:void 0!==e.rotate2D&&(t.dRotate=e.rotate2D.x),void 0!==e.resolution&&(t.resolution=e.resolution),void 0!==e.uuid&&(t.uuid=e.uuid),void 0!==e.associatedUuid&&(t.associatedUuid=e.associatedUuid),void 0!==e.textDisplay&&(t.textDisplay=e.textDisplay),void 0!==e.annotationPosition&&(o?t.annotationPosition=e.annotationPosition:t.textPosition=e.annotationPosition),void 0!==e.scaleByMap&&(t.scaleByMap=e.scaleByMap),void 0!==e.isLocked&&(t.isLocked=e.isLocked),void 0!==e.note&&(t.note=e.note),void 0!==e.custom&&(t.custom=e.custom),e.extendProperty)for(var i=0;i<e.extendProperty.length;i++){var n=e.extendProperty[i];t.extendProperty.addProperty(n.key,n.value)}if(e.hasOwnProperty("subSymbols")&&null!=e.subSymbols){t.subSymbols=[];for(var l=0;l<e.subSymbols.length;l++){var r=e.subSymbols[l].libID;void 0===r&&(r=t.libID);var a=e.subSymbols[l].code;if(void 0!==a){var s={};void 0!==e.subSymbols[l].textContent&&(s.textContent=e.subSymbols[l].textContent),void 0!==e.subSymbols[l].totalNum&&(s.totalNum=e.subSymbols[l].totalNum),void 0!==e.subSymbols[l].symbolData&&(s.symbolData=e.subSymbols[l].symbolData),t.subSymbols.push(new SuperMap.Plot.SubSymbol(r,a,s))}}}if(e.avoidRegions&&0!==e.avoidRegions.length)for(var u=0;u<e.avoidRegions.length;u++){var p={libID:0,code:SuperMap.Plot.SymbolType.AVOIDREGION,map:t.map,symbolData:e.avoidRegions[u][0]},c=null;if(o)(c=L.supermap.plotting.avoidRegion(0,SuperMap.Plot.SymbolType.AVOIDREGION,[],p)).style=SuperMap.Plot.AnalysisSymbol.getStyle(t.symbolData.avoidRegions[u][1],!0);else{c=new SuperMap.Geometry.AvoidRegion(p);var y=new SuperMap.Feature.Vector(c);y.style=SuperMap.Plot.AnalysisSymbol.getStyle(e.avoidRegions[u][1],o),c.feature=y,c.calculateParts()}t.avoidRegions.push(c)}if(!0===o&&(t.style=SuperMap.Plot.AnalysisSymbol.getStyle(e,!0)),t.symbolType===SuperMap.Plot.SymbolType.AIRROUTE||t.symbolType===SuperMap.Plot.SymbolType.NAVYROUTE||t.symbolType===SuperMap.Plot.SymbolType.MISSILEROUTE){for(var h in t.routeNodes=[],e.routeNodes){var P=new SuperMap.Plot.RouteNode;t.routeNodes.push(P.parseSymbolData(e.routeNodes[h]))}t.arrRoutePts=[];for(var f=0;f<e.arrRoutePts.length;f++){for(var S=[],g=0;g<e.arrRoutePts[f].length;g++)e.arrRoutePts[f][g].hasOwnProperty("lat")&&e.arrRoutePts[f][g].hasOwnProperty("lng")?S.push(new SuperMap.Geometry.Point(e.arrRoutePts[f][g].lng,e.arrRoutePts[f][g].lat)):void 0===e.arrRoutePts[f][g].x&&void 0===e.arrRoutePts[f][g].y||S.push(new SuperMap.Geometry.Point(e.arrRoutePts[f][g].x,e.arrRoutePts[f][g].y));o&&(S=L.Util.superMapPointsToLatLngs(S)),t.arrRoutePts.push(S)}o||(t.lineStyle=SuperMap.Plot.AnalysisSymbol.getStyle(e,!1))}else if(t.symbolType===SuperMap.Plot.SymbolType.GROUPOBJECT||t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP||t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT||t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT){if(t.subAssociatedUuids=e.subAssociatedUuids,o){for(var d=[],M=0;M<e.subFeatures.length;M++){var m=e.subFeatures[M];m.uuid=SuperMap.Plot.PlottingUtil.generateUuid();var v=L.supermap.plotting.PlottingObject.createSymbol(m.libID,m.code,null,{symbolData:m});d.push(v)}t.subObjects=d}else for(var b=0;b<e.subFeatures.length;b++){var T=e.subFeatures[b],A=SuperMap.Geometry.PlottingGeometry.createFeature(T.libID,T.code,null,{symbolData:T,map:t.map});A.geometry.ownGroupObj=t,t.components.push(A)}0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.FLAGGROUP?(t.ratio=e.ratio,t.subFeatures=e.subFeatures):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.AIRDEPLOYMENT?(t.colNum=e.colNum,t.speceDis=e.speceDis,t.isShowTooltip=e.isShowTooltip):0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.NAVYDEPLOYMENT&&(t.colNum=e.colNum,t.speceDis=e.speceDis)}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT){t.addFrame=e.addFrame,t.symbolTexts=[];for(var O=0,E=e.symbolTexts.length;O<E;O++){var w=new SuperMap.Plot.SymbolText;w.parseSymbolData(e.symbolTexts[O]),t.symbolTexts.push(w)}}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXT1)void 0!==e.space&&(t.space=e.space),void 0!==e.offsetX&&(t.offsetX=e.offsetX),void 0!==e.offsetY&&(t.offsetY=e.offsetY);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.TRAJECTORY)void 0!==e.trajectoryType&&(t.trajectoryType=e.trajectoryType),void 0!==e.trajectoryLength&&(t.trajectoryLength=e.trajectoryLength),void 0!==e.showTrackingLine&&(t.showTrackingLine=e.showTrackingLine),void 0!==e.showTrackingPoint&&(t.showTrackingPoint=e.showTrackingPoint),void 0!==e.trackingPointRadius&&(t.trackingPointRadius=e.trackingPointRadius),void 0!==e.saveTrackingPoint&&(t.saveTrackingPoint=e.saveTrackingPoint);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITE){if(e.scaleValues&&0!==e.scaleValues.length){t.scaleValues=[];for(var x=0;x<e.scaleValues.length;x++)t.scaleValues.push(e.scaleValues[x])}if(e.subSymbol&&(t.subSymbols=[e.subSymbol]),t.visible=e.visible,e.orbitPoints){t.orbitPoints=[];for(var C=0;C<e.orbitPoints.length;C++)t.orbitPoints.push(new SuperMap.Plot.OrbitPoint(e.orbitPoints[C].x,e.orbitPoints[C].y,e.orbitPoints[C].z,e.orbitPoints[C].number,e.orbitPoints[C].time))}}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SATELLITETIMEWINDOWS){t.timeWindows=e.timeWindows;for(var R=0;R<t.timeWindows.length;R++)"Time"!==e.type&&"Number"!==e.type||(t.timeWindows[R].type=e.type)}else{if(e.localePoints){t.controlPoints=[];for(var I=0;I<e.localePoints.length;I++)t.controlPoints.push(new SuperMap.Geometry.Point(e.localePoints[I].x,e.localePoints[I].y));!0===o&&(t.latLngs=L.Util.superMapPointsToLatLngs(t.controlPoints),delete t.controlPoints)}if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINERELATION)t.endAssociatedUuid=e.endAssociatedUuid,t.lineRelationType=e.lineRelationType,t.startAssociatedUuid=e.startAssociatedUuid,t.subSectionCount=e.subSectionCount;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PICTURE)t.path=e.path;else if(t.symbolType===SuperMap.Plot.SymbolType.DOTSYMBOL){t.surroundLineType=e.surroundLineType,t.symbolRank=e.symbolRank,t.negativeImage=e.negativeImage;var _=SuperMap.Plot.AnalysisSymbol.analysisDotBasicInfo(e);if(t.anchorPoint=_.anchorPoint,t.symbolSizeInLib=_.symbolSizeInLib,t.middleMarkBounds=_.middleMarkBounds,void 0!==e.actualScale&&(t.actualScale=e.actualScale),void 0!==e.limitWidthHeight&&(t.limitWidthHeight=e.limitWidthHeight),void 0!==e.fontSize&&(t.fontSize=e.fontSize),void 0!==e.strokeWidth&&(t.strokeWidth=e.strokeWidth),void 0!==e.space&&(t.space=e.space*SuperMap.Plot.PlottingUtil.DPI/25.4/10),void 0!==e.flagTextSize&&(t.flagTextSize=e.flagTextSize),void 0!==e.maxScale&&(t.maxScale=e.maxScale),void 0!==e.minScale&&(t.minScale=e.minScale),!1!==t.isEdit){var U={x:0,y:0};-1===e.symbolSize.x&&-1===e.symbolSize.x?(U.x=e.symbolSizeInLib.x*SuperMap.Plot.PlottingUtil.DPI/25.4/10,U.y=e.symbolSizeInLib.y*SuperMap.Plot.PlottingUtil.DPI/25.4/10):(U.x=e.symbolSize.x*SuperMap.Plot.PlottingUtil.DPI/25.4/10,U.y=e.symbolSize.y*SuperMap.Plot.PlottingUtil.DPI/25.4/10),t.setSymbolSize(U.x,U.y)}if(void 0!==e.positionOffset&&null!==e.positionOffset&&(t.positionOffset=e.positionOffset),void 0!==e.positionOffsetType&&null!==e.positionOffsetType&&(t.positionOffsetType=e.positionOffsetType),void 0!==e.positionOffsetX&&null!==e.positionOffsetX&&(t.positionOffsetX=e.positionOffsetX),void 0!==e.positionOffsetY&&null!==e.positionOffsetY&&(t.positionOffsetY=e.positionOffsetY),null!=e.symbolTexts&&0!==e.symbolTexts.length){t.symbolTexts=[];for(var N=0;N<e.symbolTexts.length;N++){var D=new SuperMap.Plot.SymbolText;D.parseSymbolData(e.symbolTexts[N]),t.symbolTexts.push(D)}}if(null!=e.bloodVolumes&&0!==e.bloodVolumes.length){t.bloodVolumes=[];for(var B=0;B<e.bloodVolumes.length;B++){var k=new SuperMap.Plot.BloodVolume;k.parseSymbolData(e.bloodVolumes[B]),t.bloodVolumes.push(k)}}if(null!=e.pictureFrames&&0!==e.pictureFrames.length){t.pictureFrames=[];for(var G=0;G<e.pictureFrames.length;G++){var V=new SuperMap.Plot.PictureFrame;V.parseSymbolData(e.pictureFrames[G]),t.pictureFrames.push(V)}}if(null!=e.trajectory){var Y=new SuperMap.Plot.Trajectory;Y.parseSymbolData(e.trajectory),t.trajectory=Y}}else{if(t.surroundLineType=e.surroundLineType,e.scaleValues&&0!==e.scaleValues.length){t.scaleValues=[];for(var j=0;j<e.scaleValues.length;j++)t.scaleValues.push(e.scaleValues[j])}if(void 0!==e.strokeWidth&&null!==e.strokeWidth&&(t.strokeWidth=e.strokeWidth),void 0!==e.baseScale&&null!==e.baseScale&&(t.baseScale=e.baseScale),void 0!==e.polylineConnectLocationPoint&&null!==e.polylineConnectLocationPoint&&(t.polylineConnectLocationPoint=e.polylineConnectLocationPoint),22===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ALGOSYMBOL)void 0!==e.arrowHeadType&&null!==e.arrowHeadType&&(t.arrowHeadType=e.arrowHeadType),void 0!==e.arrowBodyType&&null!==e.arrowBodyType&&(t.arrowBodyType=e.arrowBodyType),void 0!==e.arrowTailType&&null!==e.arrowTailType&&(t.arrowTailType=e.arrowTailType);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARROWLINE)t.arrowAngle=e.arrowAngle,void 0!==e.arrowTypeStart&&(t.scaleValues[1]=e.arrowTypeStart),void 0!==e.arrowTypeEnd&&(t.scaleValues[2]=e.arrowTypeEnd);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE){if(e.radius&&0!==e.radius.length&&0===t.scaleValues.length)for(var F=0;F<e.radius.length;F++)t.scaleValues.push(e.radius[F])}else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.CONCENTRICCIRCLE)t.symbolData.hasOwnProperty("startAngle")&&(t.scaleValues[0]=t.symbolData.startAngle),t.symbolData.hasOwnProperty("endAngle")&&(t.scaleValues[1]=t.symbolData.endAngle);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.LINEMARKING)void 0!==e.islocationCircle&&null!==e.islocationCircle&&(t.islocationCircle=e.islocationCircle),void 0!==e.textBoxType&&null!==e.textBoxType&&(t.textBoxType=e.textBoxType),e.tipPoint&&(this.scaleValues[1]=e.tipPoint.x,this.scaleValues[2]=e.tipPoint.y);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.SYMBOLTEXTBOX)void 0!==e.roundBox&&null!==e.roundBox&&(t.roundBox=e.roundBox),void 0!==e.textBoxType&&null!==e.textBoxType&&(t.textBoxType=e.textBoxType),e.tipPoint&&(this.scaleValues[1]=e.tipPoint.x,this.scaleValues[2]=e.tipPoint.y);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM)e.tipPoint1&&(this.scaleValues[0]=e.tipPoint1.x,this.scaleValues[1]=e.tipPoint1.y),e.tipPoint2&&(this.scaleValues[2]=e.tipPoint2.x,this.scaleValues[3]=e.tipPoint2.y);else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.PATHTEXT)t.isAvoid=e.isAvoid,t.isCurve=e.isCurve,t.relLineText=e.relLineText,t.showPathLine=e.showPathLine,t.textToLineDistance=e.textToLineDistance,t.showPathLineArrow=e.showPathLineArrow;else if(0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.ARCREGION){if(o){if(t.centerPoint=L.latLng(e.centerPoint.y,e.centerPoint.x),t.symbolData.circlePts){for(var z=[],W=0;W<e.circlePts.length;W++)z.push(new SuperMap.Geometry.Point(e.circlePts[W].x,e.circlePts[W].y));0!==z.length&&(t.circlePts=z)}t.spatialAnalystUrl=e.spatialAnalystUrl}else t.centerPoint=new SuperMap.Geometry.Point(e.centerPoint.x,e.centerPoint.y);t.endAngle=e.endAngle,t.radius=e.radius,t.radiusPosAngle=e.radiusPosAngle,t.startAngle=e.startAngle,t.textPosition=e.textPosition,t.radiusLineType=e.radiusLineType,t.radiusText=e.radiusText}else 0===t.libID&&t.symbolType===SuperMap.Plot.SymbolType.POLYGONREGION&&(t.symbolData.hasOwnProperty("textPosition")?t.scaleValues[1]=t.symbolData.textPosition:void 0===t.scaleValues[1]&&(t.scaleValues[1]=t.symbolData.annotationPosition))}}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AddPoint_WayType=e.RouteNodePrimitives=e.Primitives=e.PlottingUtil=e.AnalysisSymbol=void 0;var i=o(67),n=o(66),l=o(65),r=o(64),a=o(63);e.AnalysisSymbol=i.AnalysisSymbol,e.PlottingUtil=n.PlottingUtil,e.Primitives=l.Primitives,e.RouteNodePrimitives=r.RouteNodePrimitives,e.AddPoint_WayType=a.AddPoint_WayType},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.CalculateSVGGradient=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.feature=e}return i(t,[{key:"destroy",value:function(){this.feature=null}},{key:"createGradient",value:function(){var t=!1;this.feature.layer._renderer._container.defs||(this.feature.layer._renderer._container.defs=L.SVG.create("defs"),t=!0);var e=null;"LINEAR"===this.feature.style.fillGradientMode&&(e=document.getElementById("linearGradient_"+this.feature.uuid)),"RADIAL"===this.feature.style.fillGradientMode&&(e=document.getElementById("radialGradient_"+this.feature.uuid));var o=this.createGradientDirection();for("LINEAR"===this.feature.style.fillGradientMode?((e=null===e?L.SVG.create("linearGradient"):e).setAttributeNS(null,"x1",o.x1),e.setAttributeNS(null,"y1",o.y1),e.setAttributeNS(null,"x2",o.x2),e.setAttributeNS(null,"y2",o.y2)):"RADIAL"===this.feature.style.fillGradientMode&&((e=null===e?L.SVG.create("radialGradient"):e).setAttributeNS(null,"cx",o.cx),e.setAttributeNS(null,"cy",o.cy),e.setAttributeNS(null,"fx",o.fx),e.setAttributeNS(null,"fy",o.fy),e.setAttributeNS(null,"r",o.r));e.hasChildNodes();)e.removeChild(e.firstChild);for(var i=0,n=o.colors.length;i<n;i++){var l=L.SVG.create("stop");l.setAttributeNS(null,"offset",o.colors[i].offset),l.setAttributeNS(null,"style","stop-color:"+SuperMap.Plot.PlottingUtil.colorRGBA(o.colors[i].color,o.colors[i].opacity)),e.appendChild(l)}return 0===e.id.length&&e.setAttributeNS(null,"id",e.tagName+"_"+this.feature.uuid),this.feature.layer._renderer._container.defs.appendChild(e),t&&this.feature.layer._renderer._container.appendChild(this.feature.layer._renderer._container.defs),e.id}},{key:"createTextureFill",value:function(t){var e=!1;this.feature.layer._renderer._container.defs||(this.feature.layer._renderer._container.defs=L.SVG.create("defs"),e=!0);var o=document.getElementById("patternFill_"+this.feature.uuid);function i(t){var e="";return 2===t.fillID?e="rotate(-45)":3===t.fillID||6===t.fillID?e="rotate(0)":4===t.fillID||5===t.fillID?e="rotate(45)":7===t.fillID&&(e="rotate(90)"),e}function n(t,e,o){var i=L.SVG.create("path");i.setAttributeNS(null,"d",t),i.setAttributeNS(null,"stroke",o.color),i.setAttributeNS(null,"stroke-width","2"),i.setAttributeNS(null,"stroke-linecap","square"),i.setAttributeNS(null,"stroke-opacity",o.opacity),e.appendChild(i)}function l(t,e,o){var i=L.SVG.create("polygon");i.setAttributeNS(null,"points",t),i.setAttributeNS(null,"fill",o.color),i.setAttributeNS(null,"fill-opacity",o.opacity),e.appendChild(i)}return o?(o.setAttributeNS(null,"patternTransform",i(t[0]).toString()),3===t[0].fillID||6===t[0].fillID||7===t[0].fillID?(o.setAttributeNS(null,"width",7.3),o.setAttributeNS(null,"height",7.3),o.childNodes[0].setAttributeNS(null,"points","0 0 0 7.3 7.3 7.3 7.3 0"),o.childNodes[1].setAttributeNS(null,"d","M 7.3 0 L 0 0")):(o.setAttributeNS(null,"width",5.4),o.setAttributeNS(null,"height",5.4),o.childNodes[0].setAttributeNS(null,"points","0 0 0 5.4 5.4 5.4 5.4 0"),o.childNodes[1].setAttributeNS(null,"d","M 5.4 0 L 0 0")),o.childNodes[0].setAttributeNS(null,"fill",t[1].color),o.childNodes[0].setAttributeNS(null,"fill-opacity",t[1].opacity),o.childNodes[1].setAttributeNS(null,"stroke",t[0].color),o.childNodes[1].setAttributeNS(null,"stroke-opacity",t[0].opacity),3===t[0].fillID||4===t[0].fillID?(o.childNodes[2]&&(o.childNodes[2].setAttributeNS(null,"stroke",t[0].color),o.childNodes[2].setAttributeNS(null,"stroke-opacity",t[0].opacity)),3===t[0].fillID?null===o&&n("M 0 7.3 L 0 0",o,t[0]):4===t[0].fillID&&null===o&&n("M 0 5.4 L 0 0",o,t[0])):o.childNodes[2]&&o.removeChild(o.childNodes[2]),0===o.id.length&&o.setAttributeNS(null,"id","patternFill_"+this.feature.uuid),o.id):((o=null===o?L.SVG.create("pattern"):o).setAttributeNS(null,"x",0),o.setAttributeNS(null,"y",0),3===t[0].fillID||6===t[0].fillID||7===t[0].fillID?(o.setAttributeNS(null,"width",7.3),o.setAttributeNS(null,"height",7.3)):(o.setAttributeNS(null,"width",5.4),o.setAttributeNS(null,"height",5.4)),o.setAttributeNS(null,"patternUnits","userSpaceOnUse"),o.setAttributeNS(null,"patternTransform",i(t[0]).toString()),3===t[0].fillID||6===t[0].fillID||7===t[0].fillID?(l("0 0 0 7.3 7.3 7.3 7.3 0",o,t[1]),n("M 7.3 0 L 0 0",o,t[0])):(l("0 0 0 5.4 5.4 5.4 5.4 0",o,t[1]),n("M 5.4 0 L 0 0",o,t[0])),4===t[0].fillID?n("M 0 5.4 L 0 0",o,t[0]):3===t[0].fillID&&n("M 0 7.3 L 0 0",o,t[0]),this.feature.layer._renderer._container.defs.appendChild(o),e&&this.feature.layer._renderer._container.appendChild(this.feature.layer._renderer._container.defs),0===o.id.length&&o.setAttributeNS(null,"id","patternFill_"+this.feature.uuid),o.id)}},{key:"createFillMode",value:function(t){if(void 0!==this.feature.style.fillSymbolID)if(t.fill=this.feature.style.fill,t.fillSymbolID=this.feature.style.fillSymbolID,0===this.feature.style.fillSymbolID||1===this.feature.style.fillSymbolID||!0===this.feature.style.fill||!1===this.feature.style.fill)0===this.feature.style.fillSymbolID?t.fill=!0:1===this.feature.style.fillSymbolID&&(t.fill=!1),t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity;else if(this.feature.style.fillColor!==this.feature.style.fillBackColor||this.feature.style.fillBackOpacity>0&&this.feature.style.fillBackOpacity<1){var e=[];e.push({fillID:this.feature.style.fillSymbolID,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity},{fillID:this.feature.style.fillSymbolID,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillBackOpacity}),this.feature._map.getRenderer(this.feature.layer)instanceof L.SVG?(t.fillOpacity=1,t.fillColor="url(#"+this.createTextureFill(e)+")",t.fill=t.fillColor):new SuperMap.Plot.CalculateCanvasGradient(this.feature,this.feature.getBounds()).createTextureFill(e)}else t.fill=!0,t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity;else t.fill=this.feature.style.fill,t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity}},{key:"createGradientDirection",value:function(){var t=[];if("LINEAR"===this.feature.style.fillGradientMode){if(null!==this.feature.style.fillCenterOffsetX&&void 0!==this.feature.style.fillCenterOffsetX&&(0===this.feature.style.fillAngle||180===this.feature.style.fillAngle?(t.push({offset:0,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}),t.push({offset:this.feature.style.fillCenterOffsetX,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity})):90===this.feature.style.fillAngle||270===this.feature.style.fillAngle?(t.push({offset:0,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}),t.push({offset:this.feature.style.fillCenterOffsetY,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity})):(t.push({offset:0,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}),t.push({offset:this.feature.style.fillCenterOffsetX/2*(Math.sqrt(2)/2)*Math.abs(Math.sin(this.feature.style.fillAngle*Math.PI/180)),color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity}))),this.feature.style.fillAngle>=360&&(this.feature.style.fillAngle=0),0===this.feature.style.fillAngle)return{x1:0,y1:0,x2:1,y2:0,colors:t};if(90===this.feature.style.fillAngle)return{x1:0,y1:1,x2:0,y2:0,colors:t};if(180===this.feature.style.fillAngle)return{x1:1,y1:0,x2:0,y2:0,colors:t};if(270===this.feature.style.fillAngle)return{x1:0,y1:0,x2:0,y2:1,colors:t};if(0<this.feature.style.fillAngle&&this.feature.style.fillAngle<=45)return{x1:0,y1:1,x2:1,y2:(1-Math.tan(this.feature.style.fillAngle*Math.PI/180))/2,colors:t};if(45<this.feature.style.fillAngle&&this.feature.style.fillAngle<90)return{x1:0,y1:1,x2:(1-Math.tan((this.feature.style.fillAngle-45)*Math.PI/180))/2,y2:0,colors:t};if(90<this.feature.style.fillAngle&&this.feature.style.fillAngle<=135)return{x1:1,y1:1,x2:Math.tan((this.feature.style.fillAngle-90)*Math.PI/180)/2,y2:0,colors:t};if(135<this.feature.style.fillAngle&&this.feature.style.fillAngle<180)return{x1:1,y1:1,x2:0,y2:Math.tan((this.feature.style.fillAngle-135)*Math.PI/180)/2,colors:t};if(180<this.feature.style.fillAngle&&this.feature.style.fillAngle<=225)return{x1:1,y1:0,x2:0,y2:Math.tan((this.feature.style.fillAngle-180)*Math.PI/180)/2,colors:t};if(225<this.feature.style.fillAngle&&this.feature.style.fillAngle<270)return{x1:1,y1:0,x2:Math.tan((this.feature.style.fillAngle-225)*Math.PI/180)/2,y2:0,colors:t};if(270<this.feature.style.fillAngle&&this.feature.style.fillAngle<=315)return{x1:0,y1:0,x2:1-Math.tan((this.feature.style.fillAngle-270)*Math.PI/180)/2,y2:1,colors:t};if(315<this.feature.style.fillAngle&&this.feature.style.fillAngle<360)return{x1:0,y1:0,x2:1,y2:Math.tan((this.feature.style.fillAngle-315)*Math.PI/180)/2,colors:t}}else if("RADIAL"===this.feature.style.fillGradientMode)if(null!==this.feature.style.fillCenterOffsetX&&void 0!==this.feature.style.fillCenterOffsetX&&null!==this.feature.style.fillCenterOffsetY&&void 0!==this.feature.style.fillCenterOffsetY&&(t.push({offset:0,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity}),this.feature.style.fillColor,this.feature.style.fillBackColor,t.push({offset:1,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillOpacity})),this.feature.style.fillCenterOffsetX<=.5&&this.feature.style.fillCenterOffsetX>=0||this.feature.style.fillCenterOffsetX<=0&&this.feature.style.fillCenterOffsetX>=-1){if(this.feature.style.fillCenterOffsetY>=0&&this.feature.style.fillCenterOffsetY<=.5||this.feature.style.fillCenterOffsetY>=-.5&&this.feature.style.fillCenterOffsetY<=0)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.5*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.5&&this.feature.style.fillCenterOffsetY<=.8||this.feature.style.fillCenterOffsetY>=-.8&&this.feature.style.fillCenterOffsetY<=-.5)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.8*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.8&&this.feature.style.fillCenterOffsetY<=1||this.feature.style.fillCenterOffsetY>=-1&&this.feature.style.fillCenterOffsetY<=-.8)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t}}else if(this.feature.style.fillCenterOffsetX<=.8&&this.feature.style.fillCenterOffsetX>.5||this.feature.style.fillCenterOffsetX<=-.5&&this.feature.style.fillCenterOffsetX>=-.8){if(this.feature.style.fillCenterOffsetY>=0&&this.feature.style.fillCenterOffsetY<=.5||this.feature.style.fillCenterOffsetY>=-.5&&this.feature.style.fillCenterOffsetY<=0)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.8*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.5&&this.feature.style.fillCenterOffsetY<=.8||this.feature.style.fillCenterOffsetY>=-.8&&this.feature.style.fillCenterOffsetY<=-.5)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:.8*Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.8&&this.feature.style.fillCenterOffsetY<=1||this.feature.style.fillCenterOffsetY>=-1&&this.feature.style.fillCenterOffsetY<=-.8)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t}}else if(this.feature.style.fillCenterOffsetX<=1&&this.feature.style.fillCenterOffsetX>.8||this.feature.style.fillCenterOffsetX<=-.8&&this.feature.style.fillCenterOffsetX>=-1){if(this.feature.style.fillCenterOffsetY>=0&&this.feature.style.fillCenterOffsetY<=.5||this.feature.style.fillCenterOffsetY>=-.5&&this.feature.style.fillCenterOffsetY<=0)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.5&&this.feature.style.fillCenterOffsetY<=.8||this.feature.style.fillCenterOffsetY>=-.8&&this.feature.style.fillCenterOffsetY<=-.5)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t};if(this.feature.style.fillCenterOffsetY>=.8&&this.feature.style.fillCenterOffsetY<=1||this.feature.style.fillCenterOffsetY>=-1&&this.feature.style.fillCenterOffsetY<=-.8)return{cx:.5,cy:.5,fx:.5+this.feature.style.fillCenterOffsetX,fy:.5-this.feature.style.fillCenterOffsetY,r:Math.sqrt(2),colors:t}}}}]),t}();SuperMap.Plot.CalculateSVGGradient=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.CalculateCanvasGradient=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.feature=e,this._bounds=o}return i(t,[{key:"destroy",value:function(){this.feature=null}},{key:"getContext",value:function(){return this.feature._map.getRenderer(this.feature.layer)._ctx}},{key:"calculateObjectByBounds",value:function(){var t=this.feature._map.latLngToLayerPoint(L.latLng(this._bounds.getNorth(),this._bounds.getWest())),e=this.feature._map.latLngToLayerPoint(L.latLng(this._bounds.getSouth(),this._bounds.getEast())),o=this.feature._map.latLngToLayerPoint(L.latLng(this._bounds.getCenter()));if(t.x!==e.x||t.y!==e.y){var i=Math.max(t.x,e.x),n=Math.max(t.y,e.y),l=Math.min(t.x,e.x),r=Math.min(t.y,e.y);return{ptMinX:l,ptMinY:r,width:Math.abs(i-l),height:Math.abs(n-r),center:o,r:Math.abs(t.x-e.x)>Math.abs(e.y-e.y)?Math.abs(t.x-e.x):Math.abs(t.y-e.y)}}}},{key:"createGradient",value:function(){var t=null;if(this.getContext()instanceof CanvasRenderingContext2D){var e=this.calculateObjectByBounds();if("LINEAR"===this.feature.style.fillGradientMode){var o=this.getGradientDirection(this.feature.style.fillAngle);if(t=this.getContext().createLinearGradient(e.ptMinX+e.width*o.x1,e.ptMinY+e.height*o.y1,e.ptMinX+e.width*o.x2,e.ptMinY+e.height*o.y2),0===this.feature.style.fillCenterOffsetX&&0===this.feature.style.fillCenterOffsetY)t.addColorStop(0,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity)),t.addColorStop(1,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity));else{var i=this.feature.style.fillAngle;0===i||180===i||90===i||270===i?(t.addColorStop(0,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity)),0!==i&&180!==i||t.addColorStop(this.feature.style.fillCenterOffsetX,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity)),90!==i&&270!==i||t.addColorStop(this.feature.style.fillCenterOffsetY,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity)),t.addColorStop(1,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity))):(t.addColorStop(0,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity)),t.addColorStop(this.feature.style.fillCenterOffsetX>=this.feature.style.fillCenterOffsetY?this.feature.style.fillCenterOffsetX:this.feature.style.fillCenterOffsetY*Math.cos(this.feature.style.fillAngle*Math.PI/180),SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity)),t.addColorStop(1,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity)))}}if("RADIAL"===this.feature.style.fillGradientMode){var n=this.feature.style.fillCenterOffsetX*e.r,l=this.feature.style.fillCenterOffsetY*e.r,r=e.r/Math.sqrt(2)+Math.abs(n)>e.r/Math.sqrt(2)+Math.abs(l)?e.r/Math.sqrt(2)+Math.abs(n):e.r/Math.sqrt(2)+Math.abs(l);(t=this.getContext().createRadialGradient(e.center.x+n,e.center.y-l,0,e.center.x+n,e.center.y-l,r)).addColorStop(0,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillColor,this.feature.style.fillOpacity)),this.feature.style.fillColor,this.feature.style.fillBackColor,t.addColorStop(1,SuperMap.Plot.PlottingUtil.colorRGBA(this.feature.style.fillBackColor,this.feature.style.fillOpacity))}return t}}},{key:"createTextureFill",value:function(t){if(0!==t.length){var e=document.createElement("canvas");document.body.appendChild(e);var o=e.getContext("2d");e.width=8,e.height=8;var i=e.width,n=e.height,l=SuperMap.Plot.PlottingUtil.colorStringToRGB(t[0].color);o.strokeStyle="rgba("+l.red+","+l.green+","+l.blue+","+t[0].opacity+")",o.lineWidth=1;var r=SuperMap.Plot.PlottingUtil.colorStringToRGB(t[1].color);switch(o.fillStyle="rgba("+r.red+","+r.green+","+r.blue+","+t[1].opacity+")",o.fillRect(0,0,e.width,e.height),o.beginPath(),t[0].fillID){case 0:case 1:break;case 2:o.moveTo(0,n),o.lineTo(i,0);break;case 3:o.moveTo(0,0),o.lineTo(i,0),o.moveTo(0,0),o.lineTo(0,n);break;case 4:o.moveTo(0,n),o.lineTo(i,0),o.moveTo(0,0),o.lineTo(i,n);break;case 5:o.moveTo(0,0),o.lineTo(i,n);break;case 6:o.moveTo(0,0),o.lineTo(i,0);break;case 7:o.moveTo(0,0),o.lineTo(0,n)}o.closePath(),o.stroke(),o.fill();var a=o.createPattern(e,"repeat");return document.body.removeChild(e),a}}},{key:"createFillMode",value:function(t){if(void 0!==this.feature.style.fillSymbolID)if(t.fill=this.feature.style.fill,t.fillSymbolID=this.feature.style.fillSymbolID,0===this.feature.style.fillSymbolID||1===this.feature.style.fillSymbolID||!0===this.feature.style.fill||!1===this.feature.style.fill)0===this.feature.style.fillSymbolID?t.fill=!0:1===this.feature.style.fillSymbolID&&(t.fill=!1),t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity;else if(this.feature.style.fillColor!==this.feature.style.fillBackColor||this.feature.style.fillBackOpacity>0&&this.feature.style.fillBackOpacity<1){var e=[];e.push({fillID:this.feature.style.fillSymbolID,color:this.feature.style.fillColor,opacity:this.feature.style.fillOpacity},{fillID:this.feature.style.fillSymbolID,color:this.feature.style.fillBackColor,opacity:this.feature.style.fillBackOpacity}),t.fill=!0,t.fillColor=this.createTextureFill(e),t.fillOpacity=this.feature.style.fillColor}else t.fill=!0,t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity;else t.fill=this.feature.style.fill,t.fillColor=this.feature.style.fillColor,t.fillOpacity=this.feature.style.fillOpacity}},{key:"getGradientDirection",value:function(t){var e=function(t){return{x:Math.cos(t),y:Math.sin(t)}},o=function(t){return t*Math.PI/180},i=e(o(180-t%360)),n=e(o(360-t%360)),l=Math.pow(2,-52);return(i.x<=0||Math.abs(i.x)<=l)&&(i.x=0),(i.y<=0||Math.abs(i.y)<=l)&&(i.y=0),(n.x<=0||Math.abs(n.x)<=l)&&(n.x=0),(n.y<=0||Math.abs(n.y)<=l)&&(n.y=0),{x1:i.x,y1:i.y,x2:n.x,y2:n.y}}}]),t}();SuperMap.Plot.CalculateCanvasGradient=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CalculateSVGGradient=e.CalculateCanvasGradient=void 0;var i=o(70),n=o(69);e.CalculateCanvasGradient=i.CalculateCanvasGradient,e.CalculateSVGGradient=n.CalculateSVGGradient},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=e.TransactionInfo=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.layer=e.layer?e.layer:null,this.feature=e.feature?e.feature:null,this.uuid=e.uuid?e.uuid:null,this.functionName=e.functionName?e.functionName:null,this.undoParams=e.undoParams?e.undoParams:null,this.redoParams=e.redoParams?e.redoParams:null,this.propertyName=e.propertyName?e.propertyName:null,this.undoValue=e.undoValue?e.undoValue:null,this.redoValue=e.redoValue?e.redoValue:null,this.CLASS_NAME="SuperMap.Plot.TransactionInfo"};SuperMap.Plot.TransactionInfo=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.Transaction=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.transType=e.transType?e.transType:SuperMap.Plot.TransactionType.EDIT,this.transInfos=[],this.CLASS_NAME="SuperMap.Plot.Transaction"}return i(t,[{key:"destroy",value:function(){this.transInfos=null,this.transType=null}}]),t}();SuperMap.Plot.Transaction=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.TowardNode=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.routeNodeId=e.routeNodeId?e.routeNodeId:null,this.relLineText=e.relLineText?e.relLineText:SuperMap.Plot.RelLineText.ONLEFTLINE,this.index=e.index?e.index:0,this.textContent=e.textContent?e.textContent:null,this.offsetX=e.offsetX?e.offsetX:null,this.offsetY=e.offsetY?e.offsetY:null,this.style=e.style?e.style:{fontSize:12,fontFamily:"Microsoft YaHei"},this.CLASS_NAME="SuperMap.Plot.TowardNode"}return i(t,[{key:"destroy",value:function(){this.routeNodeId=null,this.relLineText=null,this.textContent=null,this.style=null}},{key:"clone",value:function(){return new t({routeNodeId:this.routeNodeId,relLineText:this.relLineText,textContent:this.textContent,style:SuperMap.Util.cloneObject(this.style)})}},{key:"parseSymbolData",value:function(t){return this.routeNodeId=t.routeNodeId,this.relLineText=t.relLineText,this.index=t.index,this.textContent=t.textContent,this.offsetX=t.offsetX,this.offsetY=t.offsetY,this.style=SuperMap.Plot.AnalysisSymbol.getStyle(t,!0),this}},{key:"setSymbolData",value:function(){var t={};return t.routeNodeId=this.routeNodeId,t.relLineText=this.relLineText,t.index=this.index,t.textContent=this.textContent,t.offsetX=this.offsetX,t.offsetY=this.offsetY,SuperMap.Util.applyDefaults(this.style,L.supermap.plotting.PlottingObject.prototype._defaultStyle),SuperMap.Plot.AnalysisSymbol.setStyle(this.style,t,!0),t}}]),t}();SuperMap.Plot.TowardNode=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.TimeWindowParameter=function(){function t(e,o,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.startOrbitPoint=e,this.endOrbitPoint=o,this.type=i,this.CLASS_NAME="SuperMap.Plot.TimeWindowParameter"}return i(t,[{key:"destroy",value:function(){this.startOrbitPoint=null,this.endOrbitPoint=null,this.type=null}}]),t}();SuperMap.Plot.TimeWindowParameter=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.Trajectory=function(){function t(e,o,i,n,l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),l=l||{},this.latlngs=[],this.trajectoryLength=e,null==this.trajectoryLength&&(this.trajectoryLength=15),this.showTrackingLine=o,null==this.showTrackingLine&&(this.showTrackingLine=!0),this.showTrackingPoint=i,null==this.showTrackingPoint&&(this.showTrackingPoint=!1),this.saveTrackingPoint=null!=l.saveTrackingPoint&&l.saveTrackingPoint,this.trackingPointStyle=null!=l.trackingPointStyle?l.trackingPointStyle:0,this.trackingPointRadius=null!=l.trackingPointRadius?l.trackingPointRadius:2,this.style={color:"#ff0000",opacity:1,weight:1},null!=n&&(this.style=SuperMap.Util.copyAttributes(this.style,n)),this.CLASS_NAME="SuperMap.Plot.Trajectory"}return i(t,[{key:"addLatLng",value:function(t){this.latlngs.length>0&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.lat,this.latlngs[this.latlngs.length-1].lat)&&SuperMap.Plot.PlottingUtil.equalFuzzy(t.lng,this.latlngs[this.latlngs.length-1].lng)||(!1===this.saveTrackingPoint&&-1!==this.trajectoryLength&&this.trajectoryLength>0?this.latlngs.length<this.trajectoryLength?this.latlngs.push(L.latLng(t.lat,t.lng)):(this.latlngs.splice(0,this.latlngs.length-this.trajectoryLength+1),this.latlngs.push(L.latLng(t.lat,t.lng))):-1!==this.trajectoryLength&&!0!==this.saveTrackingPoint||this.latlngs.push(L.latLng(t.lat,t.lng)))}},{key:"getDisplayLatLngs",value:function(t){var e=[];if("none"===this.style.display)return e;var o=[],i=0;this.trajectoryLength>0&&this.latlngs.length>this.trajectoryLength&&(i+=this.latlngs.length-this.trajectoryLength);for(var n=i;n<this.latlngs.length&&!t.contains(this.latlngs[n]);n++)if(!0===this.showTrackingLine&&n!==this.latlngs.length-1){0===o.length&&(o.push(t.getNorthWest()),o.push(t.getNorthEast()),o.push(t.getSouthEast()),o.push(t.getSouthWest()),o.push(t.getNorthWest()));for(var l=!1,r=0;r<o.length-1;r++)if(SuperMap.Plot.PlottingUtil.isCross(this.latlngs[n],this.latlngs[n+1],o[r],o[r+1])){l=!0;break}if(l)break}var a=i;for(n>i&&(a=n),n=a;n<this.latlngs.length;n++)e.push(this.latlngs[n]);return e}},{key:"generateUuidKey",value:function(){return this.trackingPointStyle.toString()+"_"+this.trackingPointRadius.toString()+"_"+this.style.color+"_"+this.style.weight.toString()}},{key:"destroy",value:function(){this.latlngs.length=0,this.trajectoryLength=null,this.showTrackingLine=null,this.showTrackingPoint=null,this.saveTrackingPoint=null,this.style=null}},{key:"clone",value:function(){var t={saveTrackingPoint:this.saveTrackingPoint},e={};return e=SuperMap.Util.copyAttributes(e,this.style),new SuperMap.Plot.Trajectory(this.trajectoryLength,this.showTrackingLine,this.showTrackingPoint,e,t)}},{key:"setSymbolData",value:function(){var t={};return t.trajectoryLength=this.trajectoryLength,t.showTrackingLine=this.showTrackingLine,t.showTrackingPoint=this.showTrackingPoint,t.saveTrackingPoint=this.saveTrackingPoint,SuperMap.Plot.AnalysisSymbol.setStyle(this.style,t,!0),t}},{key:"parseSymbolData",value:function(t){return this.trajectoryLength=t.trajectoryLength,this.showTrackingLine=t.showTrackingLine,this.showTrackingPoint=t.showTrackingPoint,this.saveTrackingPoint=t.saveTrackingPoint,SuperMap.Plot.AnalysisSymbol.getStyle(symbolTextData,!0),this}}]),t}();SuperMap.Plot.Trajectory=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.PictureFrame=function(){function t(e,o,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i=i||{},this.path=e,this.position=o,void 0!==this.position&&null!==this.position||(this.position=SuperMap.Plot.Position.TOP),this.offsetX=i.offsetX?i.offsetX:0,this.offsetY=i.offsetY?i.offsetY:0,this.width=i.width?i.width:32,this.height=i.height?i.height:32,this.CLASS_NAME="SuperMap.Plot.PictureFrame"}return i(t,[{key:"destroy",value:function(){this.path=null,this.position=null,this.offsetX=null,this.offsetY=null,this.width=null,this.height=null}},{key:"clone",value:function(){var t={offsetX:this.offsetX,offsetY:this.offsetY,width:this.width,height:this.height};return new SuperMap.Plot.PictureFrame(this.path,this.position,t)}},{key:"setSymbolData",value:function(){var t={};return t.path=this.path,t.position=this.position,t.offsetX=this.offsetX,t.offsetY=this.offsetY,t.width=this.width,t.height=this.height,t}},{key:"parseSymbolData",value:function(t){return this.path=t.path,this.position=t.position,null!=t.offsetX&&(this.offsetX=t.offsetX),null!=t.offsetY&&(this.offsetY=t.offsetY),null!=t.width&&(this.width=t.width),null!=t.height&&(this.height=t.height),this}}]),t}();SuperMap.Plot.PictureFrame=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.BloodVolume=function(){function t(e,o,i,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=n||{},this.volume=e,this.position=o,void 0!==this.position&&null!==this.position||(this.position=SuperMap.Plot.Position.TOP),this.offsetX=n.offsetX?n.offsetX:0,this.offsetY=n.offsetY?n.offsetY:0,this.width=n.width?n.width:null,this.height=n.height?n.height:null,this.style={display:"display",color:"#808080",opacity:1,weight:4,remainingVolumeColor:"#00ff00",remainingVolumeOpacity:.8,consumeVolumeColor:"#000000",consumeVolumeOpacity:.8},null!=i&&(this.style=SuperMap.Util.copyAttributes(this.style,i)),this.CLASS_NAME="SuperMap.Plot.BloodVolume"}return i(t,[{key:"destroy",value:function(){this.volume=null,this.position=null,this.offsetX=null,this.offsetY=null,this.width=null,this.height=null,this.style=null}},{key:"clone",value:function(){var t={offsetX:this.offsetX,offsetY:this.offsetY,width:this.width,height:this.height},e={};return e=SuperMap.Util.copyAttributes(e,this.style),new SuperMap.Plot.BloodVolume(this.volume,this.position,e,t)}},{key:"setSymbolData",value:function(){var t={};return t.volume=this.volume,t.position=this.position,t.offsetX=this.offsetX,t.offsetY=this.offsetY,t.width=this.width,t.height=this.height,null!=this.style&&(t.style={},null!=this.style.display&&(t.style.display=this.style.display),null!=this.style.color&&(t.style.color=this.style.color),null!=this.style.opacity&&(t.style.opacity=this.style.opacity),null!=this.style.weight&&(t.style.weight=this.style.weight),null!=this.style.remainingVolumeColor&&(t.style.remainingVolumeColor=this.style.remainingVolumeColor),null!=this.style.remainingVolumeOpacity&&(t.style.remainingVolumeOpacity=this.style.remainingVolumeOpacity),null!=this.style.consumeVolumeColor&&(t.style.consumeVolumeColor=this.style.consumeVolumeColor),this.style.consumeVolumeOpacity&&(t.style.consumeVolumeOpacity=this.style.consumeVolumeOpacity)),t}},{key:"parseSymbolData",value:function(t){return this.volume=t.volume,this.position=t.position,this.offsetX=t.offsetX,this.offsetY=t.offsetY,null!=t.width&&(this.width=t.width),null!=t.height&&(this.height=t.height),null!=t.style&&(null==this.style&&(this.style={}),null!=t.style.display&&(this.style.display=t.style.display),null!=t.style.color&&(this.style.color=t.style.color),null!=t.style.opacity&&(this.style.opacity=t.style.opacity),null!=t.style.weight&&(this.style.weight=t.style.weight),null!=t.style.remainingVolumeColor&&(this.style.remainingVolumeColor=t.style.remainingVolumeColor),null!=t.style.remainingVolumeOpacity&&(this.style.remainingVolumeOpacity=t.style.remainingVolumeOpacity),null!=t.style.consumeVolumeColor&&(this.style.consumeVolumeColor=t.style.consumeVolumeColor),t.style.consumeVolumeOpacity&&(this.style.consumeVolumeOpacity=t.style.consumeVolumeOpacity)),this}}]),t}();SuperMap.Plot.BloodVolume=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.SymbolText=function(){function t(e,o,i,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=n||{},this.textContent=e,this.textPosition=o,void 0!==this.textPosition&&null!==this.textPosition||(this.textPosition=0),this.offsetX=n.offsetX?n.offsetX:0,this.offsetY=n.offsetY?n.offsetY:0,this.border=null!=n.border&&n.border,this.showRelationLine=null==n.showRelationLine||n.showRelationLine,this.paddingX=n.paddingX?n.paddingX:0,this.paddingY=n.paddingY?n.paddingY:0,this.style={display:"display",color:"#ff0000",lineSymbolID:0,opacity:"1.00",weight:2,lineCap:"square",lineJoin:"square",surroundLineColor:"#ffff00",surroundLineColorOpacity:"1.00",surroundLineWidth:4,fillSymbolID:1,fillColor:"#ff0000",fillOpacity:"0.31",fillBackColor:"#ff0000",fillBackOpacity:"1.00",fillGradientMode:"NONE",fontColor:"#000000",fontFamily:"Microsoft YaHei",fontSize:"12",fontStroke:!1,fontStrokeColor:"#ff0000",fontStrokeWidth:"2px",fontBackground:!1,fontBackgroundColor:"#ff0000",fontShadow:!1,fontShadowColor:"#ff0000",fontShadowOffsetX:0,fontShadowOffsetY:0,fontSpace:0,fontPercent:100,sizeFixed:!0,labelAlign:"lt",labelRotation:-0,labelXOffset:0,labelYOffset:0,fillAngle:0,fillCenterOffsetX:0,fillCenterOffsetY:0},null!=i&&(this.style=SuperMap.Util.copyAttributes(this.style,i)),this.lineStyle={color:"#ff0000",lineSymbolID:0,opacity:1,weight:2},null!=n.lineStyle&&(this.lineStyle=SuperMap.Util.copyAttributes(this.lineStyle,n.lineStyle)),this.CLASS_NAME="SuperMap.Plot.SymbolText"}return i(t,[{key:"destroy",value:function(){this.textContent=null,this.textPosition=null,this.offsetX=null,this.offsetY=null,this.border=null,this.paddingX=null,this.paddingY=null,this.showRelationLine=null,this.style=null,this.lineStyle=null}},{key:"clone",value:function(){var t={offsetX:this.offsetX,offsetY:this.offsetY,border:this.border,paddingX:this.paddingX,paddingY:this.paddingY,showRelationLine:this.showRelationLine},e={};e=SuperMap.Util.copyAttributes(e,this.style);var o=new SuperMap.Plot.SymbolText(this.textContent,this.textPosition,e,t),i={};return i=SuperMap.Util.copyAttributes(i,this.lineStyle),o.lineStyle=i,o}},{key:"setSymbolData",value:function(){var t={};return t.textContent=this.textContent,t.textPosition=this.textPosition,t.offsetX=this.offsetX,t.offsetY=this.offsetY,t.border=this.border,t.paddingX=this.paddingX,t.paddingY=this.paddingY,t.showRelationLine=this.showRelationLine,null!=this.lineStyle&&(t.lineStyle={},null!=this.lineStyle.color&&(t.lineStyle.color=this.lineStyle.color),null!=this.lineStyle.lineSymbolID&&(t.lineStyle.lineSymbolID=this.lineStyle.lineSymbolID),null!=this.lineStyle.dashArray&&(t.lineStyle.dashArray=this.lineStyle.dashArray),null!=this.lineStyle.opacity&&(t.lineStyle.opacity=this.lineStyle.opacity),null!=this.lineStyle.weight&&(t.lineStyle.weight=this.lineStyle.weight)),SuperMap.Plot.AnalysisSymbol.setStyle(this.style,t,!0),t}},{key:"parseSymbolData",value:function(t){return this.textContent=t.textContent,this.textPosition=t.textPosition,this.offsetX=t.offsetX,this.offsetY=t.offsetY,null!=t.border&&(this.border=t.border),null!=t.paddingX&&(this.paddingX=t.paddingX),null!=t.paddingY&&(this.paddingY=t.paddingY),null!=t.showRelationLine&&(this.showRelationLine=t.showRelationLine),null!=t.lineStyle&&(null==this.lineStyle&&(this.lineStyle=null),null!=t.lineStyle.color&&(this.lineStyle.color=t.lineStyle.color),null!=t.lineStyle.lineSymbolID&&(this.lineStyle.lineSymbolID=t.lineStyle.lineSymbolID),null!=t.lineStyle.dashArray&&(this.lineStyle.dashArray=t.lineStyle.dashArray),null!=t.lineStyle.opacity&&(this.lineStyle.opacity=t.lineStyle.opacity),null!=t.lineStyle.weight&&(this.lineStyle.weight=t.lineStyle.weight)),SuperMap.Plot.AnalysisSymbol.getStyle(t,!0),this}}]),t}();SuperMap.Plot.SymbolText=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.SubSymbol=function(){function t(e,o,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i=i||{},this.libID=e,this.code=o,this.symbolData=i.symbolData?i.symbolData:null,this.textContent=i.textContent?i.textContent:null,this.totalNum=i.totalNum?i.totalNum:null,this.CLASS_NAME="SuperMap.Plot.SubSymbol"}return i(t,[{key:"destroy",value:function(){this.libID=null,this.code=null,this.symbolData=null,this.totalNum=null}},{key:"clone",value:function(){var t=new SuperMap.Plot.SubSymbol(this.libID,this.code);return t.symbolData={},t.symbolData=SuperMap.Util.copyAttributes(t.symbolData,this.symbolData),t.textContent=this.textContent,t.totalNum=this.totalNum,t}}]),t}();SuperMap.Plot.SubSymbol=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.SMLInfoStruct=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e&&(this.SMLName=e.SMLName,this.SMLDesc=e.SMLDesc,this.SMLSeclevel=e.SMLSeclevel,this.SMLDepat=e.SMLDepat,this.SMLAuthor=e.SMLAuthor,this.SMLTime=e.SMLTime),this.CLASS_NAME="SuperMap.Plot.SMLInfoStruct"}return i(t,[{key:"destroy",value:function(){this.SMLName="",this.SMLDesc="",this.SMLAuthor="",this.SMLSeclevel="",this.SMLDepat="",this.SMLTime=""}},{key:"fromJSON",value:function(t){this.SMLName=t.SMLName,this.SMLDesc=t.SMLDesc,this.SMLSeclevel=t.SMLSeclevel,this.SMLDepat=t.SMLDepat,this.SMLAuthor=t.SMLAuthor,this.SMLTime=t.SMLTime}},{key:"toJSON",value:function(){return'{"SMLName":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLName)+',"SMLDesc":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLDesc)+',"SMLSeclevel":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLSeclevel)+',"SMLDepat":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLDepat)+',"SMLAuthor":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLAuthor)+',"SMLTime":'+SuperMap.Plot.PlottingUtil.toJSON(this.SMLTime)+"}"}}]),t}();SuperMap.Plot.SMLInfoStruct=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.SitDataStruct=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.smlInfo=e.smlInfo?e.smlInfo:null,this.mapInfo=e.mapInfo?e.mapInfo:null,this.layerDatas=e.layerDatas?e.layerDatas:null,this.CLASS_NAME="SuperMap.Plot.SitDataStruct"}return i(t,[{key:"destroy",value:function(){this.smlInfo=null,this.mapInfo=null,this.layerDatas=null}}]),t}();SuperMap.Plot.SitDataStruct=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.RouteNode=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.id=e.id?e.id:SuperMap.Plot.PlottingUtil.generateUuid(),this.x=e.x?e.x:null,this.y=e.y?e.y:null,this.z=e.z?e.z:null,this.type=e.type?e.type:null,this.name=e.name?e.name:null,this.rotate=e.rotate?e.rotate:0,this.towardNodes=e.towardNodes?e.towardNodes:[],this.style=e.style?e.style:{},0===Object.keys(this.style).length&&(this.style=SuperMap.Util.cloneObject(L.supermap.plotting.PlottingObject.prototype._defaultStyle)),this.CLASS_NAME="SuperMap.Plot.RouteNode"}return i(t,[{key:"destroy",value:function(){this.type=null,this.position=null,this.name=null,this.id=null,this.rotate=null,this.towardNodes&&null!==this.towardNodes||(this.towardNodes=null);for(var t=0;t<this.towardNodes.length;t++)this.towardNodes[t].destroy();this.towardNodes=null}},{key:"clone",value:function(){var e=new t({id:this.id,type:this.type,name:this.name,rotate:this.rotate,towardNodes:this.towardNodes});return e.positionPoint=this.positionPoint.clone(),e.style={},e.style=SuperMap.Util.copyAttributes(e.style,this.style),e}},{key:"parseSymbolData",value:function(t){for(var e in this.id=t.id,this.type=t.type,this.name=t.name,this.rotate=t.rotate,t.positionPoint?(this.x=t.positionPoint.x,this.y=t.positionPoint.y,this.z=t.positionPoint.z):(this.x=t.x,this.y=t.y,this.z=t.z),this.style=SuperMap.Plot.AnalysisSymbol.getStyle(t,!0),t.towardNodes){var o=new SuperMap.Plot.TowardNode;this.towardNodes.push(o.parseSymbolData(t.towardNodes[e]))}return this}},{key:"setSymbolData",value:function(){var t={};for(var e in t.id=this.id,t.type=this.type,t.name=this.name,t.rotate=this.rotate,t.x=this.x,t.y=this.y,t.z=this.z,SuperMap.Plot.AnalysisSymbol.setStyle(this.style,t,!0),t.towardNodes=[],this.towardNodes)t.towardNodes.push(this.towardNodes[e].setSymbolData());return t}}]),t}();SuperMap.Plot.RouteNode=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.Property=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e&&(this.key=e),o&&(this.value=o),this.CLASS_NAME="SuperMap.Plot.Property"}return i(t,[{key:"setKey",value:function(t){this.key=t}},{key:"getKey",value:function(){return this.key}},{key:"setValue",value:function(t){this.value=t}},{key:"getValue",value:function(){return this.value}},{key:"destroy",value:function(){this.key=null,this.value=null}},{key:"clone",value:function(){return new SuperMap.Plot.Property(this.key,this.value)}}]),t}();SuperMap.Plot.Property=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.OrbitPoint=function(){function t(e,o,i,n,l){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=parseFloat(e),this.y=parseFloat(o),(i||0==i)&&(this.z=parseFloat(i)),n&&(this.number=n),l&&(this.time=l),this.CLASS_NAME="SuperMap.Plot.OrbitPoint"}return i(t,[{key:"destroy",value:function(){this.x=null,this.y=null,this.z=null,this.index=null,this.time=null}},{key:"clone",value:function(t){return null==t&&(t=new SuperMap.Plot.OrbitPoint(this.x,this.y,this.z)),SuperMap.Util.applyDefaults(t,this),t}}]),t}();SuperMap.Plot.OrbitPoint=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.MapInfoStruct=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.zoom=e.zoom?e.zoom:null,this.centerX=e.centerX?e.centerX:null,this.centerY=e.centerY?e.centerY:null,this.CLASS_NAME="SuperMap.Plot.MapInfoStruct"}return i(t,[{key:"destroy",value:function(){this.zoom=null,this.centerX=null,this.centerY=null}},{key:"fromJSON",value:function(t){void 0!==t.zoom&&(this.zoom=t.zoom),void 0!==t.centerX&&(this.centerX=t.centerX),void 0!==t.centerY&&(this.centerY=t.centerY)}},{key:"toJSON",value:function(){return'{"zoom":'+SuperMap.Plot.PlottingUtil.toJSON(this.zoom)+',"centerX":'+SuperMap.Plot.PlottingUtil.toJSON(this.centerX)+',"centerY":'+SuperMap.Plot.PlottingUtil.toJSON(this.centerY)+"}"}}]),t}();SuperMap.Plot.MapInfoStruct=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.LayerDataStruct=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.layerName=e.layerName?e.layerName:null,this.spatialAnalystUrl=e.spatialAnalystUrl?e.spatialAnalystUrl:null,this.useCanvas2=!!e.useCanvas2&&e.useCanvas2,this.useCanvas=!!e.useCanvas&&e.useCanvas,this.features=e.features?e.features:null,this.CLASS_NAME="SuperMap.Plot.LayerDataStruct"}return i(t,[{key:"destroy",value:function(){this.layerName=null,this.spatialAnalystUrl=null,this.useCanvas2=null,this.useCanvas=null,this.features=null}},{key:"toJSON",value:function(){for(var t=[],e=0;e<this.features.length;e++)t.push(this.features[e].getSymbolData());return'{"layerName":'+SuperMap.Plot.PlottingUtil.toJSON(this.layerName)+', "spatialAnalystUrl":'+SuperMap.Plot.PlottingUtil.toJSON(this.spatialAnalystUrl)+', "useCanvas2":'+SuperMap.Plot.PlottingUtil.toJSON(this.useCanvas2)+', "useCanvas":'+SuperMap.Plot.PlottingUtil.toJSON(this.useCanvas)+', "isEditable":'+SuperMap.Plot.PlottingUtil.toJSON(this.isEditable)+', "isLocked":'+SuperMap.Plot.PlottingUtil.toJSON(this.isLocked)+', "visibility":'+SuperMap.Plot.PlottingUtil.toJSON(this.visibility)+',"features":'+SuperMap.Plot.PlottingUtil.toJSON(t)+"}"}}]),t}();SuperMap.Plot.LayerDataStruct=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.ExtendProperty=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.properties=e.properties?e.properties:[],this.CLASS_NAME="SuperMap.Plot.ExtendProperty"}return i(t,[{key:"addProperty",value:function(t,e){var o=this.findProperty(t);return null==o?this.properties.push(new SuperMap.Plot.Property(t,e)):o.setValue(e),!0}},{key:"deleteProperty",value:function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].key===t)return this.properties.slice(e,1),!0;return!1}},{key:"findProperty",value:function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].key===t)return this.properties[e];return null}},{key:"getPropertyValue",value:function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].key===t)return this.properties[e].value;return null}},{key:"getPropertyByIndex",value:function(t){return t<this.properties.length?this.properties[t]:null}},{key:"getPropertyCount",value:function(){return this.properties.length}},{key:"destroy",value:function(){this.properties=null}}]),t}();SuperMap.Plot.ExtendProperty=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.DefaultStyle=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.lineColor=e.lineColor?e.lineColor:"#ff0000",this.lineWidth=e.lineWidth?e.lineWidth:2,this.lineType=e.lineType?e.lineType:0,this.lineOpacity=e.lineOpacity?e.lineOpacity:1,this.lineCap=e.lineCap?e.lineCap:"round",this.flagTextSize=e.flagTextSize?e.flagTextSize:60,this.maxScale=e.maxScale?e.maxScale:5,this.minScale=e.minScale?e.minScale:1,this.dotSymbolSize=e.dotSymbolSize?e.dotSymbolSize:40,this.dotTextSpace=e.dotTextSpace?e.dotTextSpace:7,this.scaleByMap=!!e.scaleByMap&&e.scaleByMap,this.fillColor=e.fillColor?e.fillColor:"#ff0000",this.fillOpacity=e.fillOpacity?e.fillOpacity:.31,this.fontColor=e.fontColor?e.fontColor:"#000000",this.fontOpacity=e.fontOpacity?e.fontOpacity:1,this.fontStroke=!!e.fontStroke&&e.fontStroke,this.fontStrokeColor=e.fontStrokeColor?e.fontStrokeColor:"#ff0000",this.fontStrokeWidth=e.fontStrokeWidth?e.fontStrokeWidth:"2px",this.fontBackground=!!e.fontBackground&&e.fontBackground,this.fontBackgroundColor=e.fontBackgroundColor?e.fontBackgroundColor:"#ff0000",this.fontShadow=!!e.fontShadow&&e.fontShadow,this.fontShadowColor=e.fontShadowColor?e.fontShadowColor:"#ff0000",this.fontShadowOffsetX=e.fontShadowOffsetX?e.fontShadowOffsetX:0,this.fontShadowOffsetY=e.fontShadowOffsetY?e.fontShadowOffsetY:0,this.fontSize=e.fontSize?e.fontSize:14,this.fontSpace=e.fontSpace?e.fontSpace:0,this.fontPercent=e.fontPercent?e.fontPercent:100,this.fontFamily=e.fontFamily?e.fontFamily:"微软雅黑",this.fontWeight=e.fontWeight?e.fontWeight:"bold",this.fontStyle=e.fontStyle?e.fontStyle:"",this.surroundLineType=e.surroundLineType?e.surroundLineType:0,this.surroundLineColor=e.surroundLineColor?e.surroundLineColor:"#ffff00",this.surroundLineWidth=e.surroundLineWidth?e.surroundLineWidth:4,this.surroundLineColorOpacity=e.surroundLineColorOpacity?e.surroundLineColorOpacity:1,this.fontStyle=e.fontStyle?e.fontStyle:"",this.fillBackColor=e.fillBackColor?e.fillBackColor:"#ff0000",this.fillBackOpacity=e.fillBackOpacity?e.fillBackOpacity:1,this.fillGradientMode=e.fillGradientMode?e.fillGradientMode:"NONE",this.fillCenterOffsetX=e.fillCenterOffsetX?e.fillCenterOffsetX:0,this.fillCenterOffsetY=e.fillCenterOffsetY?e.fillCenterOffsetY:0,this.fillAngle=e.fillAngle?e.fillAngle:0,this.fillSymbolID=e.fillSymbolID?e.fillSymbolID:1,this.defaultFlag=!!e.defaultFlag&&e.defaultFlag,this.CLASS_NAME="SuperMap.Plot.DefaultStyle",this.parserConfiguration()}return i(t,[{key:"parserConfiguration",value:function(){"undefined"!=typeof DefaultStyleConfiguration&&("undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.flagTextSize&&(this.flagTextSize=parseFloat(DefaultStyleConfiguration.flagTextSize)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.maxScale&&(this.maxScale=parseFloat(DefaultStyleConfiguration.maxScale)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.minScale&&(this.minScale=parseFloat(DefaultStyleConfiguration.minScale)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.dotSymbolSize&&(this.dotSymbolSize=parseFloat(DefaultStyleConfiguration.dotSymbolSize)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.dotTextSpace&&(this.dotTextSpace=parseFloat(DefaultStyleConfiguration.dotTextSpace)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.scaleByMap&&(this.scaleByMap=DefaultStyleConfiguration.scaleByMap),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeWidth&&(this.lineWidth=parseFloat(DefaultStyleConfiguration.strokeWidth)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeColor&&(this.lineColor=DefaultStyleConfiguration.strokeColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeOpacity&&(this.lineOpacity=parseFloat(DefaultStyleConfiguration.strokeOpacity)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeDashstyle&&(this.lineType=DefaultStyleConfiguration.strokeDashstyle),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.strokeLinecap&&(this.lineCap=DefaultStyleConfiguration.strokeLinecap),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillColor&&(this.fillColor=DefaultStyleConfiguration.fillColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillOpacity&&(this.fillOpacity=parseFloat(DefaultStyleConfiguration.fillOpacity)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontColor&&(this.fontColor=DefaultStyleConfiguration.fontColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontOpacity&&(this.fontOpacity=parseFloat(DefaultStyleConfiguration.fontOpacity)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStroke&&(this.fontStroke=DefaultStyleConfiguration.fontStroke),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStrokeColor&&(this.fontStrokeColor=DefaultStyleConfiguration.fontStrokeColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStrokeWidth&&(this.fontStrokeWidth=parseFloat(DefaultStyleConfiguration.fontStrokeWidth)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontBackground&&(this.fontBackground=DefaultStyleConfiguration.fontBackground),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontBackgroundColor&&(this.fontBackgroundColor=DefaultStyleConfiguration.fontBackgroundColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadow&&(this.fontShadow=DefaultStyleConfiguration.fontShadow),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadowColor&&(this.fontShadowColor=DefaultStyleConfiguration.fontShadowColor),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadowOffsetX&&(this.fontShadowOffsetX=DefaultStyleConfiguration.fontShadowOffsetX),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontShadowOffsetY&&(this.fontShadowOffsetY=DefaultStyleConfiguration.fontShadowOffsetY),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontSpace&&(this.fontSpace=parseInt(DefaultStyleConfiguration.fontSpace)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontPercent&&(this.fontPercent=parseFloat(DefaultStyleConfiguration.fontPercent)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontSize&&(this.fontSize=parseFloat(DefaultStyleConfiguration.fontSize)),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontFamily&&(this.fontFamily=DefaultStyleConfiguration.fontFamily),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontWeight&&(this.fontWeight=DefaultStyleConfiguration.fontWeight),"undefined"==typeof DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fontStyle&&(this.fontStyle=DefaultStyleConfiguration.fontStyle),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineType&&(this.surroundLineType=parseFloat(DefaultStyleConfiguration.surroundLineType)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineColor&&(this.surroundLineColor=DefaultStyleConfiguration.surroundLineColor),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineWidth&&(this.surroundLineWidth=parseFloat(DefaultStyleConfiguration.surroundLineWidth)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.surroundLineColorOpacity&&(this.surroundLineColorOpacity=parseFloat(DefaultStyleConfiguration.surroundLineColorOpacity)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillBackColor&&(this.fillBackColor=DefaultStyleConfiguration.fillBackColor),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillBackOpacity&&(this.fillBackOpacity=parseFloat(DefaultStyleConfiguration.fillBackOpacity)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillGradientMode&&(this.fillGradientMode=DefaultStyleConfiguration.fillGradientMode),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillAngle&&(this.fillAngle=parseFloat(DefaultStyleConfiguration.fillAngle)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillCenterOffsetX&&(this.fillCenterOffsetX=parseFloat(DefaultStyleConfiguration.fillCenterOffsetX)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillCenterOffsetY&&(this.fillCenterOffsetY=parseFloat(DefaultStyleConfiguration.fillCenterOffsetY)),DefaultStyleConfiguration&&void 0!==DefaultStyleConfiguration.fillSymbolID&&(this.fillSymbolID=parseFloat(DefaultStyleConfiguration.fillSymbolID)))}},{key:"destroy",value:function(){this.lineColor=null,this.lineWidth=null,this.dotSymbolSize=null,this.lineType=null,this.defaultFlag=null,this.flagTextSize=null,this.maxScale=null,this.minScale=null,this.dotTextSpace=null,this.scaleByMap=null,this.lineOpacity=null,this.lineCap=null,this.fillColor=null,this.fillOpacity=null,this.fontColor=null,this.fontOpacity=null,this.fontSize=null,this.fontFamily=null,this.fontWeight=null,this.fontStyle=null,this.fontPercent=null,this.fontSpace=null,this.surroundLineType=null,this.surroundLineColor=null,this.surroundLineWidth=null,this.surroundLineColorOpacity=null,this.fillBackColor=null,this.fillBackOpacity=null,this.fillGradientMode=null,this.fillAngle=null,this.fillCenterOffsetX=null,this.fillCenterOffsetY=null,this.fillSymbolID=null}}]),t}();SuperMap.Plot.DefaultStyle=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransactionInfo=e.Transaction=e.TowardNode=e.TimeWindowParameter=e.Trajectory=e.PictureFrame=e.BloodVolume=e.SymbolText=e.SubSymbol=e.SMLInfoStruct=e.SitDataStruct=e.RouteNode=e.Property=e.OrbitPoint=e.MapInfoStruct=e.LayerDataStruct=e.ExtendProperty=e.DefaultStyle=void 0;var i=o(89),n=o(88),l=o(87),r=o(86),a=o(85),s=o(84),u=o(83),p=o(82),c=o(81),y=o(80),h=o(79),P=o(78),f=o(77),S=o(76),g=o(75),d=o(74),M=o(73),m=o(72);e.DefaultStyle=i.DefaultStyle,e.ExtendProperty=n.ExtendProperty,e.LayerDataStruct=l.LayerDataStruct,e.MapInfoStruct=r.MapInfoStruct,e.OrbitPoint=a.OrbitPoint,e.Property=s.Property,e.RouteNode=u.RouteNode,e.SitDataStruct=p.SitDataStruct,e.SMLInfoStruct=c.SMLInfoStruct,e.SubSymbol=y.SubSymbol,e.SymbolText=h.SymbolText,e.BloodVolume=P.BloodVolume,e.PictureFrame=f.PictureFrame,e.Trajectory=S.Trajectory,e.TimeWindowParameter=g.TimeWindowParameter,e.TowardNode=d.TowardNode,e.Transaction=M.Transaction,e.TransactionInfo=m.TransactionInfo},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.GetSymbolInfoService=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o=o||{};var i,n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,o)),l=n;return i=l.url.substr(l.url.length-1,1),l.url+="/"==i?"graphicObject.json?":"/graphicObject.json?",n.CLASS_NAME="SuperMap.GetSymbolInfoService",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.PlotCommonServiceBase),i(e,[{key:"destroy",value:function(){(function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(t){if(t){var e,o=this;e=SuperMap.GetSymbolInfoParameters.toUrlParameters(t),o.url+=e,t.dynamicToken&&(o.url+="&dynamicToken="+t.dynamicToken),"MSIE"===SuperMap.Browser.name.toUpperCase()&&(o.url=encodeURI(o.url)),o.request({method:"GET",params:null,scope:o,success:o.myServiceProcessCompleted,failure:o.serviceProcessFailed})}}},{key:"myServiceProcessCompleted",value:function(t){null!=(t=SuperMap.Util.transformResult(t))&&null!=t.textStyle2D&&null!=t.textStyle2D.fontHeight&&(t.textStyle2D.fontHeight=3),this.events.triggerEvent("processCompleted",{result:t})}}]),e}();SuperMap.GetSymbolInfoService=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.GetSymbolInfoParameters=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.libID=e.libID,this.code=e.code,this.inputPoints=e.inputPoints?e.inputPoints:null,this.symbolRank=e.symbolRank?e.symbolRank:0,this.negativeImage=!!e.negativeImage&&e.negativeImage,this.surroundLineType=e.surroundLineType?e.surroundLineType:0,this.subSymbols=e.subSymbols?e.subSymbols:null,this.scaleValues=e.scaleValues?e.scaleValues:null,this.scalePoints=e.scalePoints?e.scalePoints:null,this.newScalePoint=e.newScalePoint?e.newScalePoint:null,this.newScalePointIndex=e.newScalePointIndex?e.newScalePointIndex:0,this.CLASS_NAME="SuperMap.GetSymbolInfoParameters"}return i(t,[{key:"destroy",value:function(){var t=this;t.libID=null,t.code=null,t.inputPoints=null,t.symbolRank=null,t.negativeImage=null,t.surroundLineType=null,t.subSymbols=null,t.scaleValues=null,t.scalePoints=null,t.newScalePoint=null,t.newScalePointIndex=null}}],[{key:"toUrlParameters",value:function(t){if(t&&null!==t.libID&&null!==t.code){var e="libID="+encodeURIComponent(t.libID)+"&code="+encodeURIComponent(t.code);if(t.inputPoints&&null!==t.inputPoints&&0!==t.inputPoints.length){for(var o="[",i=0;i<t.inputPoints.length;i++)i===t.inputPoints.length-1?o+='{"x":'+t.inputPoints[i].x+', "y":'+t.inputPoints[i].y+"}]":o+='{"x":'+t.inputPoints[i].x+', "y":'+t.inputPoints[i].y+"},";e+="&inputPoints="+encodeURIComponent(o)}if(t.scalePoints&&null!==t.scalePoints&&0!==t.scalePoints.length){for(var n="[",l=0;l<t.scalePoints.length;l++)l===t.scalePoints.length-1?n+='{"x":'+t.scalePoints[l].x+', "y":'+t.scalePoints[l].y+"}]":n+='{"x":'+t.scalePoints[l].x+', "y":'+t.scalePoints[l].y+"},";e+="&scalePoints="+encodeURIComponent(n)}if(t.scaleValues&&null!==t.scaleValues&&0!==t.scaleValues.length){for(var r="[",a=0;a<t.scaleValues.length;a++)a===t.scaleValues.length-1?r+=t.scaleValues[a]+"]":r+=t.scaleValues[a]+",";e+="&scaleValues="+encodeURIComponent(r)}if(t.subSymbols&&null!==t.subSymbols&&0!==t.subSymbols.length){for(var s="[",u=0;u<t.subSymbols.length;u++)u===t.subSymbols.length-1?s+=t.subSymbols[u].code+"]":s+=t.subSymbols[u].code+",";e+="&subSymbols="+encodeURIComponent(s)}return t.newScalePoint&&null!==t.newScalePoint&&(e+="&newScalePoint="+encodeURIComponent('{"x":'+t.newScalePoint.x+', "y":'+t.newScalePoint.y+"}")),t.newScalePointIndex&&null!==t.newScalePointIndex&&(e+="&newScalePointIndex="+encodeURIComponent(t.newScalePointIndex)),t.symbolRank&&null!==t.symbolRank&&(e+="&symbolRank="+encodeURIComponent(t.symbolRank)),t.negativeImage&&null!==t.negativeImage&&(e+="&negativeImage="+encodeURIComponent(t.negativeImage)),t.surroundLineType&&null!==t.surroundLineType&&(e+="&surroundLineType="+encodeURIComponent(t.surroundLineType)),e}}}]),t}();SuperMap.GetSymbolInfoParameters=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.GetSMLInfosService=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,o));(o=o||{})&&SuperMap.Util.extend(i,o);var n,l=i;return l.events=new SuperMap.Events(l,null,l.EVENT_TYPES,!0),l.eventListeners instanceof Object&&l.events.on(l.eventListeners),n=l.url.substr(l.url.length-1,1),l.url+="/"==n?"smlInfos":"/smlInfos",l.url+=".json",i.CLASS_NAME="SuperMap.GetSMLInfosService",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.PlotCommonServiceBase),i(e,[{key:"destroy",value:function(){(function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(t){if(t){var e=this;e.url+=SuperMap.GetSMLInfosParameters.toUrlParameters(t),e.request({method:"GET",data:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}}]),e}();SuperMap.GetSMLInfosService=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.GetSMLInfosParameters=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.start=e.start,this.count=e.count?e.count:null,this.CLASS_NAME="SuperMap.GetSMLInfosParameters"}return i(t,[{key:"destroy",value:function(){this.start=null,this.count=null}}],[{key:"toUrlParameters",value:function(t){if(t){var e="";return null!==t.start&&(e="?start="+encodeURIComponent(t.start)),!t.count||null===t.count&&0===t.count||(e+="&count="+encodeURIComponent(t.count)),e}}}]),t}();SuperMap.GetSMLInfosParameters=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.GetLibInfoService=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,o));(o=o||{})&&SuperMap.Util.extend(i,o);var n,l=i;return n=l.url.substr(l.url.length-1,1),l.url+="/"==n?"symbolLibs/":"/symbolLibs/",i.CLASS_NAME="SuperMap.GetLibInfoService",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.PlotCommonServiceBase),i(e,[{key:"destroy",value:function(){(function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(t){var e=this;t&&null!==t.libID&&(e.libID=t.libID),e.url+=e.libID,e.url+=".json",e.request({method:"GET",data:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}]),e}();SuperMap.GetLibInfoService=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.GetLibInfoParameter=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.libID=e.libID,this.CLASS_NAME="SuperMap.GetLibInfoParameter"}return i(t,[{key:"destroy",value:function(){this.libID=null}}]),t}();SuperMap.GetLibInfoParameter=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.GetLibIDsService=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,o));(o=o||{})&&SuperMap.Util.extend(i,o);var n,l=i;return n=l.url.substr(l.url.length-1,1),l.url+="/"==n?"symbolLibs.json?":"/symbolLibs.json?",i.CLASS_NAME="SuperMap.GetLibIDsService",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.PlotCommonServiceBase),i(e,[{key:"destroy",value:function(){(function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(){this.request({method:"GET",data:null,scope:this,success:this.serviceProcessCompleted,failure:this.serviceProcessFailed})}}]),e}();SuperMap.GetLibIDsService=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.EditSmlFileService=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,o));(o=o||{})&&SuperMap.Util.extend(i,o);var n=i;return n.events=new SuperMap.Events(n,null,n.EVENT_TYPES,!0),n.eventListeners instanceof Object&&n.events.on(n.eventListeners),i.CLASS_NAME="SuperMap.EditSmlFileService",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.PlotCommonServiceBase),i(e,[{key:"destroy",value:function(){(function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(t){if(t){var e=this,o=t.method,i=e.url.substr(e.url.length-1,1);e.url+="/"==i?"smlInfos/":"/smlInfos/",e.url+=t.smlFileName+".json",e.url+="?isCover="+t.isCover;var n=null;t.method&&"POST"===t.method&&(n=SuperMap.EditSmlFileParameters.toJsonParameters(t)),e.request({method:o,data:n,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}}]),e}();SuperMap.EditSmlFileService=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.EditSmlFileParameters=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{},this.method=e.method?e.method:"POST",this.sitData=e.sitData?e.sitData:null,this.smlFileName=e.smlFileName?e.smlFileName:"",this.isCover=!!e.isCover&&e.isCover,this.CLASS_NAME="SuperMap.EditSmlFileParameters"}return i(t,[{key:"destroy",value:function(){this.method="POST",this.sitData=null,this.isCover=!1,this.smlFileName=""}}],[{key:"toJsonParameters",value:function(t){if(t)return SuperMap.Plot.PlottingUtil.toJSON(t.sitData)}}]),t}();SuperMap.EditSmlFileParameters=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}();var n=e.PlotCommonServiceBase=function(t){function e(t,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,o));return i.CLASS_NAME="SuperMap.PlotCommonServiceBase",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.CommonServiceBase),i(e,[{key:"destroy",value:function(){(function t(e,o,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var l=Object.getPrototypeOf(e);return null===l?void 0:t(l,o,i)}if("value"in n)return n.value;var r=n.get;return void 0!==r?r.call(i):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"_commit",value:function(t){"POST"!==t.method&&"PUT"!==t.method||(t.params&&(t.url=SuperMap.Util.urlAppend(t.url,SuperMap.Util.getParameterString(t.params||{}))),t.params=t.data),SuperMap.FetchRequest.commit(t.method,t.url,t.params,{headers:t.headers,withCredentials:t.withCredentials,timeout:t.async?0:null,proxy:t.proxy}).then(function(t){return t.text()}).then(function(e){var o=(new SuperMap.Format.JSON).read(e);(o||(o={error:e}),o.error)?(t.scope?SuperMap.Function.bind(t.failure,t.scope):t.failure)(o.error):(o.succeed=void 0==o.succeed||o.succeed,(t.scope?SuperMap.Function.bind(t.success,t.scope):t.success)(o))})}}]),e}();SuperMap.PlotCommonServiceBase=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GetSymbolInfoService=e.GetSymbolInfoParameters=e.GetSMLInfosService=e.GetSMLInfosParameters=e.GetLibInfoService=e.GetLibInfoParameter=e.GetLibIDsService=e.EditSmlFileService=e.EditSmlFileParameters=e.PlotCommonServiceBase=void 0;var i=o(100),n=o(99),l=o(98),r=o(97),a=o(96),s=o(95),u=o(94),p=o(93),c=o(92),y=o(91);e.PlotCommonServiceBase=i.PlotCommonServiceBase,e.EditSmlFileParameters=n.EditSmlFileParameters,e.EditSmlFileService=l.EditSmlFileService,e.GetLibIDsService=r.GetLibIDsService,e.GetLibInfoParameter=a.GetLibInfoParameter,e.GetLibInfoService=s.GetLibInfoService,e.GetSMLInfosParameters=u.GetSMLInfosParameters,e.GetSMLInfosService=p.GetSMLInfosService,e.GetSymbolInfoParameters=c.GetSymbolInfoParameters,e.GetSymbolInfoService=y.GetSymbolInfoService},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=SuperMap.Plot.GOAnimationType={ANIMATION_UNKNOWN:-1,ANIMATION_WAY:0,ANIMATION_BLINK:1,ANIMATION_ATTRIBUTE:2,ANIMATION_SHOW:3,ANIMATION_ROTATE:4,ANIMATION_SCALE:5,ANIMATION_GROW:6};e.GOAnimationType=i;var n=SuperMap.Plot.BlinkAnimationBlinkStyle={Blink_Frequency:0,Blink_Number:1};e.BlinkAnimationBlinkStyle=n;var l=SuperMap.Plot.BlinkAnimationReplaceStyle={Replace_NoColor:0,Replace_Color:1};e.BlinkAnimationReplaceStyle=l;var r=SuperMap.Plot.RotateDirection={ClockWise:0,AntiClockWise:1};e.RotateDirection=r;var a=SuperMap.Plot.WayPathType={POLYLINE:0,CURVE:1};e.WayPathType=a;var s=SuperMap.Plot.GOAnimationState={UNKNOWN:0,PLAYING:1,PAUSE:2,STOP:3,RESET:4};e.GOAnimationState=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GOAnimationState=e.WayPathType=e.RotateDirection=e.BlinkAnimationReplaceStyle=e.BlinkAnimationBlinkStyle=e.GOAnimationType=void 0;var i=o(102);e.GOAnimationType=i.GOAnimationType,e.BlinkAnimationBlinkStyle=i.BlinkAnimationBlinkStyle,e.BlinkAnimationReplaceStyle=i.BlinkAnimationReplaceStyle,e.RotateDirection=i.RotateDirection,e.WayPathType=i.WayPathType,e.GOAnimationState=i.GOAnimationState},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.Event=SuperMap.Plot.Event=SuperMap.Plot.Event||{};SuperMap.Plot.Event.beforefeatureadded="beforefeatureadded",SuperMap.Plot.Event.featureadded="featureadded",SuperMap.Plot.Event.beforefeaturesselected="beforefeaturesselected",SuperMap.Plot.Event.featuresselected="featuresselected",SuperMap.Plot.Event.beforefeaturesunselected="beforefeaturesunselected",SuperMap.Plot.Event.featuresunselected="featuresunselected",SuperMap.Plot.Event.beforefeaturesmodified="beforefeaturesmodified",SuperMap.Plot.Event.featuresmodified="featuresmodified",SuperMap.Plot.Event.beforefeaturesremoved="beforefeaturesremoved",SuperMap.Plot.Event.featuresremoved="featuresremoved",SuperMap.Plot.Event.beforefeaturesadded="beforefeaturesadded",SuperMap.Plot.Event.featuresadded="featuresadded",SuperMap.Plot.Event.movingtargetsselected="featuresselected",SuperMap.Plot.Event.movingtargetsunselected="featuresunselected",SuperMap.Plot.Event.movingtargetcontextmenu="featurecontextmenu",SuperMap.Plot.Event.initializecompleted="initializecompleted",SuperMap.Plot.Event.cachecompleted="cachecompleted",SuperMap.Plot.Event.reseteditmarkersvalues="reseteditmarkersvalues",SuperMap.Plot.Event.reseteditmarkers="reseteditmarkers"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var i=o(104);e.Event=i.Event},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=SuperMap.Plot.ArrowTailType={ARROWTAIL_NONE:0,ARROWTAIL_LINE:1,ARROWTAIL_CURVE:2,ARROWTAIL_COATTAIL:3,ARROWTAIL_COATTAIL_POLYBODY:4};e.ArrowTailType=i;var n=SuperMap.Plot.ArrowHeadType={ARROWHEAD_POLYLINE:0,ARROWHEAD_TRIANGLE:1,ARROWHEAD_COATTAIL:2,ARROWHEAD_TRIANGLE_SOLID:3,ARROWHEAD_WITH_EAR:4,ARROWHEAD_WITHOUT_EAR:5,ARROWHEAD_COATTAIL_HOLLOW:6};e.ArrowHeadType=n;var l=SuperMap.Plot.ArrowBodyType={ARROWBODY_POLYLINE:0,ARROWBODY_POLYBEZIER:1,ARROWBODY_PARALLEL:2,ARROWBODY_TRAPEZOID:3,ARROWBODY_MULTIPOLYBEZIER:4,ARROWBODY_COATTAIL:5};e.ArrowBodyType=l;var r=SuperMap.Plot.SymbolType={DOTSYMBOL:1,ALGOSYMBOL:2,TEXTSYMBOL:34,ELLIPSESYMBOL:31,CIRCLESYMBOL:29,RECTANGLESYMBOL:26,ARBITRARYPOLYGONSYMBOL:32,POLYLINESYMBOL:24,PARALLELOGRAM:28,ARCSYMBOL:44,NEWARCSYMBOL:4401,REGULARPOLYGON:410,CHORDSYMBOL:370,PIESYMBOL:380,NEWPIESYMBOL:3801,KIDNEY:390,POLYBEZIERSYMBOL:590,PARALLELLINE:48,BRACESYMBOL:400,ANNOFRAMESYMBOL:320,ANNOFRAMESYMBOLM:321,TRAPEZOIDSYMBOL:350,POLYBEZIERCLOSESYMBOL:360,GROUPOBJECT:1e3,LINERELATION:1001,INTERFERENCEBEAM:1002,POLYGONREGION:1003,ARCREGION:1004,AIRROUTE:1005,NAVYROUTE:1006,MISSILEROUTE:1007,NAVYDEPLOYMENT:1008,AIRDEPLOYMENT:1009,SATELLITE:1010,SATELLITETIMEWINDOWS:1011,SYMBOLTEXT:1012,RUNWAY:1013,CURVEEIGHT:1014,ROUTENODE:1015,ARROWLINE:1016,PATHTEXT:1017,LITERATESIGN:1018,CONCENTRICCIRCLE:1019,FLAGGROUP:1020,SYMBOLTEXT1:1021,COMBINATIONALCIRCLE:1022,FREECURVE:1023,SYMBOLTEXTBOX:1024,NODECHAIN:1025,LINEMARKING:1026,AVOIDREGION:1027,WIRE:1028,LINEARARROW:1029,PICTURE:3e3};e.SymbolType=r;var a=SuperMap.Plot.LineRelationType={SOLID:0,DASH:1,ARROW:2};e.LineRelationType=a;var s=SuperMap.Plot.AlgoSurroundLineType={NONE:0,INNER:1,OUT:2,ALL:3};e.AlgoSurroundLineType=s;var u=SuperMap.Plot.RouteNodeType={RENDEZVOUS:"RENDEZVOUS",EXPANDING:"EXPANDING",VOLLEY:"VOLLEY",STANDBY:"STANDBY",SUPPLY:"SUPPLY",TAKEOFF:"TAKEOFF",INITIAL:"INITIAL",VISUALINITAL:"VISUALINITAL",LANCH:"LANCH",TURNING:"TURNING",AIMING:"AIMING",COMMONROUTE:"COMMONROUTE",WEAPONLAUNCH:"WEAPONLAUNCH",TARGET:"TARGET",ATTACK:"ATTACK",SUPPRESS:"SUPPRESS",EIGHTSPIRAL:"EIGHTSPIRAL",HAPPYVALLEY:"HAPPYVALLEY"};e.RouteNodeType=u;var p=SuperMap.Plot.RelLineText={ONLINE:0,ONLEFTLINE:1,ONRIGHTLINE:2,ONBOTHLINE:3};e.RelLineText=p;var c=SuperMap.Plot.RadiusLineType={NONE:0,SOLID:1,ARROW:2};e.RadiusLineType=c;var y=SuperMap.Plot.Position={TOP:4,BOTTOM:5,LEFT:6,RIGHT:7};e.Position=y;var h=SuperMap.Plot.AnnoPosition={LEFTTOP:0,LEFTBOTTOM:1,RIGHTTOP:2,RIGHTBOTTOM:3,TOP:4,BOTTOM:5,LEFT:6,RIGHT:7,MIDDLE:8,ANCHOR:9};e.AnnoPosition=h;var P=SuperMap.Plot.ArrowLineType={DOUBLELINE:0,TRIANGLESOLID:1,NONE:2};e.ArrowLineType=P;var f=SuperMap.Plot.TextBoxType={WITHTIPBOX:0,RECTBOX:1,LINEBOX:2,NONEBOX:3};e.TextBoxType=f;var S=SuperMap.Plot.PositionOffsetType={LINE:0,GRADIENTLINE:1};e.PositionOffsetType=S;var g=SuperMap.Plot.AlignType={LEFT:0,RIGHT:1,UP:2,DOWN:3,VERTICALCENTER:4,HORIZONTALCENTER:5};e.AlignType=g;var d=SuperMap.Plot.EditMode={ADDCONTROLPOINT:0,EDITCONTROLPOINT:1,EDITCIRCUMRECTANGLE:2,REMOVECONTROLPOINT:3};e.EditMode=d,SuperMap.Plot.EqualLargeType={WIDTH:0,HEIGHT:1,SAME:2},SuperMap.Plot.UniformDistributionType={LEVEL:0,VERTICAL:1};var M=SuperMap.Plot.TransactionType={CREATE:0,EDIT:1,REMOVE:2};e.TransactionType=M},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=e.SuperMap=window.SuperMap=window.SuperMap||{};e.Plot=i.Plot=i.Plot||{}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CalculateSVGGradient=e.CalculateCanvasGradient=e.TransactionInfo=e.Transaction=e.TowardNode=e.TimeWindowParameter=e.PictureFrame=e.BloodVolume=e.SymbolText=e.SubSymbol=e.SMLInfoStruct=e.SitDataStruct=e.RouteNode=e.Property=e.OrbitPoint=e.MapInfoStruct=e.LayerDataStruct=e.ExtendProperty=e.DefaultStyle=e.GetSymbolInfoService=e.GetSymbolInfoParameters=e.GetSMLInfosService=e.GetSMLInfosParameters=e.GetLibInfoService=e.GetLibInfoParameter=e.GetLibIDsService=e.EditSmlFileService=e.EditSmlFileParameters=e.PlotCommonServiceBase=e.GOAnimationType=e.Event=e.EditMode=e.AlignType=e.PositionOffsetType=e.TextBoxType=e.ArrowLineType=e.AnnoPosition=e.RadiusLineType=e.RelLineText=e.RouteNodeType=e.AlgoSurroundLineType=e.LineRelationType=e.SymbolType=e.Plot=void 0;var i=o(107),n=o(106),l=o(105),r=o(103),a=o(101),s=o(90),u=o(71);e.Plot=i.Plot,e.SymbolType=n.SymbolType,e.LineRelationType=n.LineRelationType,e.AlgoSurroundLineType=n.AlgoSurroundLineType,e.RouteNodeType=n.RouteNodeType,e.RelLineText=n.RelLineText,e.RadiusLineType=n.RadiusLineType,e.AnnoPosition=n.AnnoPosition,e.ArrowLineType=n.ArrowLineType,e.TextBoxType=n.TextBoxType,e.PositionOffsetType=n.PositionOffsetType,e.AlignType=n.AlignType,e.EditMode=n.EditMode,e.Event=l.Event,e.GOAnimationType=r.GOAnimationType,e.PlotCommonServiceBase=a.PlotCommonServiceBase,e.EditSmlFileParameters=a.EditSmlFileParameters,e.EditSmlFileService=a.EditSmlFileService,e.GetLibIDsService=a.GetLibIDsService,e.GetLibInfoParameter=a.GetLibInfoParameter,e.GetLibInfoService=a.GetLibInfoService,e.GetSMLInfosParameters=a.GetSMLInfosParameters,e.GetSMLInfosService=a.GetSMLInfosService,e.GetSymbolInfoParameters=a.GetSymbolInfoParameters,e.GetSymbolInfoService=a.GetSymbolInfoService,e.DefaultStyle=s.DefaultStyle,e.ExtendProperty=s.ExtendProperty,e.LayerDataStruct=s.LayerDataStruct,e.MapInfoStruct=s.MapInfoStruct,e.OrbitPoint=s.OrbitPoint,e.Property=s.Property,e.RouteNode=s.RouteNode,e.SitDataStruct=s.SitDataStruct,e.SMLInfoStruct=s.SMLInfoStruct,e.SubSymbol=s.SubSymbol,e.SymbolText=s.SymbolText,e.BloodVolume=s.BloodVolume,e.PictureFrame=s.PictureFrame,e.TimeWindowParameter=s.TimeWindowParameter,e.TowardNode=s.TowardNode,e.Transaction=s.Transaction,e.TransactionInfo=s.TransactionInfo,e.CalculateCanvasGradient=u.CalculateCanvasGradient,e.CalculateSVGGradient=u.CalculateSVGGradient},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Format=void 0;var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=o(0),l=o(1);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var r=e.Format=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=null,this.keepData=!1,l.Util.extend(this,e),this.options=e,this.CLASS_NAME="SuperMap.Format"}return i(t,[{key:"destroy",value:function(){}},{key:"read",value:function(t){}},{key:"write",value:function(t){}}]),t}();n.SuperMap.Format=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSONFormat=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),l=o(0),r=o(109);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
var a=e.JSONFormat=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.indent="    ",o.space=" ",o.newline="\n",o.level=0,o.pretty=!1,o.nativeJSON=!(!window.JSON||"function"!=typeof JSON.parse||"function"!=typeof JSON.stringify),o.CLASS_NAME="SuperMap.Format.JSON",o.serialize={object:function(t){if(null==t)return"null";if(t.constructor===Date)return this.serialize.date.apply(this,[t]);if(t.constructor===Array)return this.serialize.array.apply(this,[t]);var e,o,i,n=["{"];this.level+=1;var l=!1;for(e in t)t.hasOwnProperty(e)&&(o=this.write.apply(this,[e,this.pretty]),i=this.write.apply(this,[t[e],this.pretty]),null!=o&&null!=i&&(l&&n.push(","),n.push(this.writeNewline(),this.writeIndent(),o,":",this.writeSpace(),i),l=!0));return this.level-=1,n.push(this.writeNewline(),this.writeIndent(),"}"),n.join("")},array:function(t){var e,o=["["];this.level+=1;for(var i=0,n=t.length;i<n;++i)null!=(e=this.write.apply(this,[t[i],this.pretty]))&&(i>0&&o.push(","),o.push(this.writeNewline(),this.writeIndent(),e));return this.level-=1,o.push(this.writeNewline(),this.writeIndent(),"]"),o.join("")},string:function(t){var e={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return/["\\\x00-\x1f]/.test(t)?'"'+t.replace(/([\x00-\x1f\\"])/g,function(t,o){var i=e[o];return i||(i=o.charCodeAt(),"\\u00"+Math.floor(i/16).toString(16)+(i%16).toString(16))})+'"':'"'+t+'"'},number:function(t){return isFinite(t)?String(t):"null"},boolean:function(t){return String(t)},date:function(t){function e(t){return t<10?"0"+t:t}return'"'+t.getFullYear()+"-"+e(t.getMonth()+1)+"-"+e(t.getDate())+"T"+e(t.getHours())+":"+e(t.getMinutes())+":"+e(t.getSeconds())+'"'}},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Format),n(e,[{key:"read",value:function(t,e){var o;if(this.nativeJSON)try{o=JSON.parse(t,e)}catch(t){}return this.keepData&&(this.data=o),o}},{key:"write",value:function(t,e){this.pretty=!!e;var o=null,n=void 0===t?"undefined":i(t);if(this.serialize[n])try{o=!this.pretty&&this.nativeJSON?JSON.stringify(t):this.serialize[n].apply(this,[t])}catch(t){}return o}},{key:"writeIndent",value:function(){var t=[];if(this.pretty)for(var e=0;e<this.level;++e)t.push(this.indent);return t.join("")}},{key:"writeNewline",value:function(){return this.pretty?this.newline:""}},{key:"writeSpace",value:function(){return this.pretty?this.space:""}}]),e}();l.SuperMap.Format.JSON=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GetFeatureMode=e.AggregationQueryBuilderType=e.AggregationType=e.TopologyValidatorRule=e.SummaryType=e.StatisticAnalystMode=e.AnalystSizeUnit=e.AnalystAreaUnit=e.ClipAnalystMode=e.ChartType=e.ClientType=e.Exponent=e.VariogramMode=e.InterpolationAlgorithmType=e.SearchMode=e.PixelFormat=e.StatisticMode=e.UGCLayerType=e.LayerType=e.ColorSpaceType=e.GridType=e.TransferPreference=e.TransferTactic=e.EditType=e.DataReturnMode=e.SurfaceAnalystMethod=e.SmoothMethod=e.OutputType=e.OverlayOperationType=e.BufferEndType=e.TurnType=e.SupplyCenterType=e.SideType=e.DirectionType=e.LabelOverLengthMode=e.LabelBackShape=e.AlongLineDirection=e.FillGradientMode=e.TextAlignment=e.ColorGradientType=e.ThemeType=e.RangeMode=e.GraduatedMode=e.GraphAxesTextDisplayMode=e.ThemeGraphType=e.ThemeGraphTextFormat=e.EngineType=e.BufferRadiusUnit=e.Unit=e.MeasureMode=e.SpatialRelationType=e.SpatialQueryMode=e.JoinType=e.QueryOption=e.GeometryType=e.ServerType=e.DataFormat=void 0;var i=o(0),n=i.SuperMap.DataFormat={GEOJSON:"GEOJSON",ISERVER:"ISERVER"};
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
    * This program are made available under the terms of the Apache License, Version 2.0
    * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
e.DataFormat=n;var l=i.SuperMap.ServerType={ISERVER:"ISERVER",IPORTAL:"IPORTAL",ONLINE:"ONLINE"};e.ServerType=l;var r=i.SuperMap.GeometryType={LINE:"LINE",LINEM:"LINEM",POINT:"POINT",REGION:"REGION",ELLIPSE:"ELLIPSE",CIRCLE:"CIRCLE",TEXT:"TEXT",RECTANGLE:"RECTANGLE",UNKNOWN:"UNKNOWN"};e.GeometryType=r;var a=i.SuperMap.QueryOption={ATTRIBUTE:"ATTRIBUTE",ATTRIBUTEANDGEOMETRY:"ATTRIBUTEANDGEOMETRY",GEOMETRY:"GEOMETRY"};e.QueryOption=a;var s=i.SuperMap.JoinType={INNERJOIN:"INNERJOIN",LEFTJOIN:"LEFTJOIN"};e.JoinType=s;var u=i.SuperMap.SpatialQueryMode={CONTAIN:"CONTAIN",CROSS:"CROSS",DISJOINT:"DISJOINT",IDENTITY:"IDENTITY",INTERSECT:"INTERSECT",NONE:"NONE",OVERLAP:"OVERLAP",TOUCH:"TOUCH",WITHIN:"WITHIN"};e.SpatialQueryMode=u;var p=i.SuperMap.SpatialRelationType={CONTAIN:"CONTAIN",INTERSECT:"INTERSECT",WITHIN:"WITHIN"};e.SpatialRelationType=p;var c=i.SuperMap.MeasureMode={DISTANCE:"DISTANCE",AREA:"AREA"};e.MeasureMode=c;var y=i.SuperMap.Unit={METER:"METER",KILOMETER:"KILOMETER",MILE:"MILE",YARD:"YARD",DEGREE:"DEGREE",MILLIMETER:"MILLIMETER",CENTIMETER:"CENTIMETER",INCH:"INCH",DECIMETER:"DECIMETER",FOOT:"FOOT",SECOND:"SECOND",MINUTE:"MINUTE",RADIAN:"RADIAN"};e.Unit=y;var h=i.SuperMap.BufferRadiusUnit={CENTIMETER:"CENTIMETER",DECIMETER:"DECIMETER",FOOT:"FOOT",INCH:"INCH",KILOMETER:"KILOMETER",METER:"METER",MILE:"MILE",MILLIMETER:"MILLIMETER",YARD:"YARD"};e.BufferRadiusUnit=h;var P=i.SuperMap.EngineType={IMAGEPLUGINS:"IMAGEPLUGINS",OGC:"OGC",ORACLEPLUS:"ORACLEPLUS",SDBPLUS:"SDBPLUS",SQLPLUS:"SQLPLUS",UDB:"UDB"};e.EngineType=P;var f=i.SuperMap.ThemeGraphTextFormat={CAPTION:"CAPTION",CAPTION_PERCENT:"CAPTION_PERCENT",CAPTION_VALUE:"CAPTION_VALUE",PERCENT:"PERCENT",VALUE:"VALUE"};e.ThemeGraphTextFormat=f;var S=i.SuperMap.ThemeGraphType={AREA:"AREA",BAR:"BAR",BAR3D:"BAR3D",LINE:"LINE",PIE:"PIE",PIE3D:"PIE3D",POINT:"POINT",RING:"RING",ROSE:"ROSE",ROSE3D:"ROSE3D",STACK_BAR:"STACK_BAR",STACK_BAR3D:"STACK_BAR3D",STEP:"STEP"};e.ThemeGraphType=S;var g=i.SuperMap.GraphAxesTextDisplayMode={ALL:"ALL",NONE:"NONE",YAXES:"YAXES"};e.GraphAxesTextDisplayMode=g;var d=i.SuperMap.GraduatedMode={CONSTANT:"CONSTANT",LOGARITHM:"LOGARITHM",SQUAREROOT:"SQUAREROOT"};e.GraduatedMode=d;var M=i.SuperMap.RangeMode={CUSTOMINTERVAL:"CUSTOMINTERVAL",EQUALINTERVAL:"EQUALINTERVAL",LOGARITHM:"LOGARITHM",QUANTILE:"QUANTILE",SQUAREROOT:"SQUAREROOT",STDDEVIATION:"STDDEVIATION"};e.RangeMode=M;var m=i.SuperMap.ThemeType={DOTDENSITY:"DOTDENSITY",GRADUATEDSYMBOL:"GRADUATEDSYMBOL",GRAPH:"GRAPH",LABEL:"LABEL",RANGE:"RANGE",UNIQUE:"UNIQUE"};e.ThemeType=m;var v=i.SuperMap.ColorGradientType={BLACK_WHITE:"BLACKWHITE",BLUE_BLACK:"BLUEBLACK",BLUE_RED:"BLUERED",BLUE_WHITE:"BLUEWHITE",CYAN_BLACK:"CYANBLACK",CYAN_BLUE:"CYANBLUE",CYAN_GREEN:"CYANGREEN",CYAN_WHITE:"CYANWHITE",GREEN_BLACK:"GREENBLACK",GREEN_BLUE:"GREENBLUE",GREEN_ORANGE_VIOLET:"GREENORANGEVIOLET",GREEN_RED:"GREENRED",GREEN_WHITE:"GREENWHITE",PINK_BLACK:"PINKBLACK",PINK_BLUE:"PINKBLUE",PINK_RED:"PINKRED",PINK_WHITE:"PINKWHITE",RAIN_BOW:"RAINBOW",RED_BLACK:"REDBLACK",RED_WHITE:"REDWHITE",SPECTRUM:"SPECTRUM",TERRAIN:"TERRAIN",YELLOW_BLACK:"YELLOWBLACK",YELLOW_BLUE:"YELLOWBLUE",YELLOW_GREEN:"YELLOWGREEN",YELLOW_RED:"YELLOWRED",YELLOW_WHITE:"YELLOWWHITE"};e.ColorGradientType=v;var b=i.SuperMap.TextAlignment={TOPLEFT:"TOPLEFT",TOPCENTER:"TOPCENTER",TOPRIGHT:"TOPRIGHT",BASELINELEFT:"BASELINELEFT",BASELINECENTER:"BASELINECENTER",BASELINERIGHT:"BASELINERIGHT",BOTTOMLEFT:"BOTTOMLEFT",BOTTOMCENTER:"BOTTOMCENTER",BOTTOMRIGHT:"BOTTOMRIGHT",MIDDLELEFT:"MIDDLELEFT",MIDDLECENTER:"MIDDLECENTER",MIDDLERIGHT:"MIDDLERIGHT"};e.TextAlignment=b;var T=i.SuperMap.FillGradientMode={NONE:"NONE",LINEAR:"LINEAR",RADIAL:"RADIAL",CONICAL:"CONICAL",SQUARE:"SQUARE"};e.FillGradientMode=T;var L=i.SuperMap.AlongLineDirection={NORMAL:"ALONG_LINE_NORMAL",LB_TO_RT:"LEFT_BOTTOM_TO_RIGHT_TOP",LT_TO_RB:"LEFT_TOP_TO_RIGHT_BOTTOM",RB_TO_LT:"RIGHT_BOTTOM_TO_LEFT_TOP",RT_TO_LB:"RIGHT_TOP_TO_LEFT_BOTTOM"};e.AlongLineDirection=L;var A=i.SuperMap.LabelBackShape={DIAMOND:"DIAMOND",ELLIPSE:"ELLIPSE",MARKER:"MARKER",NONE:"NONE",RECT:"RECT",ROUNDRECT:"ROUNDRECT",TRIANGLE:"TRIANGLE"};e.LabelBackShape=A;var O=i.SuperMap.LabelOverLengthMode={NEWLINE:"NEWLINE",NONE:"NONE",OMIT:"OMIT"};e.LabelOverLengthMode=O;var E=i.SuperMap.DirectionType={EAST:"EAST",NONE:"NONE",NORTH:"NORTH",SOURTH:"SOURTH",WEST:"WEST"};e.DirectionType=E;var w=i.SuperMap.SideType={LEFT:"LEFT",MIDDLE:"MIDDLE",NONE:"NONE",RIGHT:"RIGHT"};e.SideType=w;var x=i.SuperMap.SupplyCenterType={FIXEDCENTER:"FIXEDCENTER",NULL:"NULL",OPTIONALCENTER:"OPTIONALCENTER"};e.SupplyCenterType=x;var C=i.SuperMap.TurnType={AHEAD:"AHEAD",BACK:"BACK",END:"END",LEFT:"LEFT",NONE:"NONE",RIGHT:"RIGHT"};e.TurnType=C;var R=i.SuperMap.BufferEndType={FLAT:"FLAT",ROUND:"ROUND"};e.BufferEndType=R;var I=i.SuperMap.OverlayOperationType={CLIP:"CLIP",ERASE:"ERASE",IDENTITY:"IDENTITY",INTERSECT:"INTERSECT",UNION:"UNION",UPDATE:"UPDATE",XOR:"XOR"};e.OverlayOperationType=I;var _=i.SuperMap.OutputType={INDEXEDHDFS:"INDEXEDHDFS",UDB:"UDB",MONGODB:"MONGODB",PG:"PG"};e.OutputType=_;var U=i.SuperMap.SmoothMethod={BSPLINE:"BSPLINE",POLISH:"POLISH"};e.SmoothMethod=U;var N=i.SuperMap.SurfaceAnalystMethod={ISOLINE:"ISOLINE",ISOREGION:"ISOREGION"};e.SurfaceAnalystMethod=N;var D=i.SuperMap.DataReturnMode={DATASET_AND_RECORDSET:"DATASET_AND_RECORDSET",DATASET_ONLY:"DATASET_ONLY",RECORDSET_ONLY:"RECORDSET_ONLY"};e.DataReturnMode=D;var B=i.SuperMap.EditType={ADD:"add",UPDATE:"update",DELETE:"delete"};e.EditType=B;var k=i.SuperMap.TransferTactic={LESS_TIME:"LESS_TIME",LESS_TRANSFER:"LESS_TRANSFER",LESS_WALK:"LESS_WALK",MIN_DISTANCE:"MIN_DISTANCE"};e.TransferTactic=k;var G=i.SuperMap.TransferPreference={BUS:"BUS",SUBWAY:"SUBWAY",NO_SUBWAY:"NO_SUBWAY",NONE:"NONE"};e.TransferPreference=G;var V=i.SuperMap.GridType={CROSS:"CROSS",GRID:"GRID",POINT:"POINT"};e.GridType=V;var Y=i.SuperMap.ColorSpaceType={CMYK:"CMYK",RGB:"RGB"};e.ColorSpaceType=Y;var j=i.SuperMap.LayerType={UGC:"UGC",WMS:"WMS",WFS:"WFS",CUSTOM:"CUSTOM"};e.LayerType=j;var F=i.SuperMap.UGCLayerType={THEME:"THEME",VECTOR:"VECTOR",GRID:"GRID",IMAGE:"IMAGE"};e.UGCLayerType=F;var z=i.SuperMap.StatisticMode={AVERAGE:"AVERAGE",MAX:"MAX",MIN:"MIN",STDDEVIATION:"STDDEVIATION",SUM:"SUM",VARIANCE:"VARIANCE"};e.StatisticMode=z;var W=i.SuperMap.PixelFormat={BIT16:"BIT16",BIT32:"BIT32",BIT64:"BIT64",SINGLE:"SINGLE",DOUBLE:"DOUBLE",UBIT1:"UBIT1",UBIT4:"UBIT4",UBIT8:"UBIT8",UBIT24:"UBIT24",UBIT32:"UBIT32"};e.PixelFormat=W;var H=i.SuperMap.SearchMode={KDTREE_FIXED_COUNT:"KDTREE_FIXED_COUNT",KDTREE_FIXED_RADIUS:"KDTREE_FIXED_RADIUS",NONE:"NONE",QUADTREE:"QUADTREE"};e.SearchMode=H;var q=i.SuperMap.InterpolationAlgorithmType={KRIGING:"KRIGING",SimpleKriging:"SimpleKriging",UniversalKriging:"UniversalKriging"};e.InterpolationAlgorithmType=q;var X=i.SuperMap.VariogramMode={EXPONENTIAL:"EXPONENTIAL",GAUSSIAN:"GAUSSIAN",SPHERICAL:"SPHERICAL"};e.VariogramMode=X;var J=i.SuperMap.Exponent={EXP1:"EXP1",EXP2:"EXP2"};e.Exponent=J;var K=i.SuperMap.ClientType={IP:"IP",REFERER:"Referer",REQUESTIP:"RequestIP",NONE:"NONE",SERVER:"SERVER",WEB:"WEB"};e.ClientType=K;var Q=i.SuperMap.ChartType={BAR:"Bar",BAR3D:"Bar3D",CIRCLE:"Circle",PIE:"Pie",POINT:"Point",LINE:"Line",RING:"Ring"};e.ChartType=Q;var Z=i.SuperMap.ClipAnalystMode={CLIP:"clip",INTERSECT:"intersect"};e.ClipAnalystMode=Z;var $=i.SuperMap.AnalystAreaUnit={SQUAREMETER:"SquareMeter",SQUAREKILOMETER:"SquareKiloMeter",HECTARE:"Hectare",ARE:"Are",ACRE:"Acre",SQUAREFOOT:"SquareFoot",SQUAREYARD:"SquareYard",SQUAREMILE:"SquareMile"};e.AnalystAreaUnit=$;var tt=i.SuperMap.AnalystSizeUnit={METER:"Meter",KILOMETER:"Kilometer",YARD:"Yard",FOOT:"Foot",MILE:"Mile"};e.AnalystSizeUnit=tt;var et=i.SuperMap.StatisticAnalystMode={MAX:"max",MIN:"min",AVERAGE:"average",SUM:"sum",VARIANCE:"variance",STDDEVIATION:"stdDeviation"};e.StatisticAnalystMode=et;var ot=i.SuperMap.SummaryType={SUMMARYMESH:"SUMMARYMESH",SUMMARYREGION:"SUMMARYREGION"};e.SummaryType=ot;var it=i.SuperMap.TopologyValidatorRule={REGIONNOOVERLAP:"REGIONNOOVERLAP",REGIONNOOVERLAPWITH:"REGIONNOOVERLAPWITH",REGIONCONTAINEDBYREGION:"REGIONCONTAINEDBYREGION",REGIONCOVEREDBYREGION:"REGIONCOVEREDBYREGION",LINENOOVERLAP:"LINENOOVERLAP",LINENOOVERLAPWITH:"LINENOOVERLAPWITH",POINTNOIDENTICAL:"POINTNOIDENTICAL"};e.TopologyValidatorRule=it;var nt=i.SuperMap.AggregationType={GEOHASH_GRID:"geohash_grid",FILTER:"filter"};e.AggregationType=nt;var lt=i.SuperMap.AggregationQueryBuilderType={GEO_BOUNDING_BOX:"geo_bounding_box"};e.AggregationQueryBuilderType=lt;var rt=i.SuperMap.GetFeatureMode={BOUNDS:"BOUNDS",BUFFER:"BUFFER",ID:"ID",SPATIAL:"SPATIAL",SQL:"SQL"};e.GetFeatureMode=rt},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SecurityManager=void 0;var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=o(0),l=o(1),r=o(5);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var a=e.SecurityManager=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"generateToken",value:function(t,e){var o=this.servers[t];if(o)return r.FetchRequest.post(o.tokenServiceUrl,JSON.stringify(e.toJSON())).then(function(t){return t.text()})}},{key:"registerServers",value:function(t){this.servers=this.servers||{},l.Util.isArray(t)||(t=[t]);for(var e=0;e<t.length;e++){var o=t[e];this.servers[o.server]=o}}},{key:"registerToken",value:function(t,e){if(this.tokens=this.tokens||{},t&&e){var o=this._getTokenStorageKey(t);this.tokens[o]=e}}},{key:"registerKey",value:function(t,e){if(this.keys=this.keys||{},t&&!(t.length<1)&&e){t=l.Util.isArray(t)?t:[t];for(var o=0;o<t.length;o++){var i=this._getUrlRestString(t[0])||t[0];this.keys[i]=e}}}},{key:"getServerInfo",value:function(t){return this.servers=this.servers||{},this.servers[t]}},{key:"getToken",value:function(t){if(t){this.tokens=this.tokens||{};var e=this._getTokenStorageKey(t);return this.tokens[e]}}},{key:"getKey",value:function(t){this.keys=this.keys||{};var e=this._getUrlRestString(t)||t;return this.keys[e]}},{key:"loginiServer",value:function(t,e,o,i){t+="/"===t.substr(t.length-1,1)?"services/security/login.json":"/services/security/login.json";var n={username:e&&e.toString(),password:o&&o.toString(),rememberme:i};n=JSON.stringify(n);return r.FetchRequest.post(t,n,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}).then(function(t){return t.json()})}},{key:"logoutiServer",value:function(t){t+="/"===t.substr(t.length-1,1)?"services/security/logout":"/services/security/logout";return r.FetchRequest.get(t,"",{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withoutFormatSuffix:!0}).then(function(){return!0}).catch(function(){return!1})}},{key:"loginOnline",value:function(e,o){var i=t.SSO+"/login?service="+e;this._open(i,o)}},{key:"loginiPortal",value:function(t,e,o){t+="/"===t.substr(t.length-1,1)?"web/login.json":"/web/login.json";var i={username:e&&e.toString(),password:o&&o.toString()};i=JSON.stringify(i);return r.FetchRequest.post(t,i,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0}).then(function(t){return t.json()})}},{key:"logoutiPortal",value:function(t){t+="/"===t.substr(t.length-1,1)?"services/security/logout":"/services/security/logout";return r.FetchRequest.get(t,"",{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0,withoutFormatSuffix:!0}).then(function(){return!0}).catch(function(){return!1})}},{key:"loginManager",value:function(t,e,o){if(l.Util.isInTheSameDomain(t)){var i="/"===t.substr(t.length-1,1)?t+"icloud/security/tokens.json":t+"/icloud/security/tokens.json",n=e||{},a={username:n.userName&&n.userName.toString(),password:n.password&&n.password.toString()};a=JSON.stringify(a);var s=this;return r.FetchRequest.post(i,a,{headers:{Accept:"*/*","Content-Type":"application/json"}}).then(function(t){t.text().then(function(t){return s.imanagerToken=t,t})})}var u=!o||o.isNewTab;this._open(t,u)}},{key:"destroyAllCredentials",value:function(){this.keys=null,this.tokens=null,this.servers=null}},{key:"destroyToken",value:function(t){if(t){var e=this._getTokenStorageKey(t);this.tokens=this.tokens||{},this.tokens[e]&&delete this.tokens[e]}}},{key:"destroyKey",value:function(t){if(t){this.keys=this.keys||{};var e=this._getUrlRestString(t)||t;this.keys[e]&&delete this.keys[e]}}},{key:"_open",value:function(t,e){e=null==e||e;var o=window.screen.availWidth/2-this.INNER_WINDOW_WIDTH/2,i=window.screen.availHeight/2-this.INNER_WINDOW_HEIGHT/2,n="height="+this.INNER_WINDOW_HEIGHT+", width="+this.INNER_WINDOW_WIDTH+",top="+i+", left="+o+",toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no";e?window.open(t,"login"):window.open(t,"login",n)}},{key:"_getTokenStorageKey",value:function(t){var e=t.match(/(.*?):\/\/([^\/]+)/i);return e?e[0]:t}},{key:"_getUrlRestString",value:function(t){if(!t)return t;var e=t.match(/http:\/\/(.*\/rest)/i);return e?e[0]:t}}]),t}();a.INNER_WINDOW_WIDTH=600,a.INNER_WINDOW_HEIGHT=600,a.SSO="https://sso.supermap.com",a.ONLINE="http://www.supermapol.com",n.SuperMap.SecurityManager=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Credential=void 0;var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=o(0);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=e.Credential=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.value=e||"",this.name=o||"token",this.CLASS_NAME="SuperMap.Credential"}return i(t,[{key:"getUrlParameters",value:function(){return this.name+"="+this.value}},{key:"getValue",value:function(){return this.value}},{key:"destroy",value:function(){this.value=null,this.name=null}}]),t}();l.CREDENTIAL=null,n.SuperMap.Credential=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var i=o(0),n=o(1),l=e.Event=i.SuperMap.Event={observers:!1,KEY_SPACE:32,KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(t){return t.target||t.srcElement},isSingleTouch:function(t){return t.touches&&1===t.touches.length},isMultiTouch:function(t){return t.touches&&t.touches.length>1},isLeftClick:function(t){return t.which&&1===t.which||t.button&&1===t.button},isRightClick:function(t){return t.which&&3===t.which||t.button&&2===t.button},stop:function(t,e){e||(t.preventDefault?t.preventDefault():t.returnValue=!1),t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},findElement:function(t,e){for(var o=i.SuperMap.Event.element(t);o.parentNode&&(!o.tagName||o.tagName.toUpperCase()!=e.toUpperCase());)o=o.parentNode;return o},observe:function(t,e,o,i){var l=n.Util.getElement(t);if(i=i||!1,"keypress"===e&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||l.attachEvent)&&(e="keydown"),this.observers||(this.observers={}),!l._eventCacheID){var r="eventCacheID_";l.id&&(r=l.id+"_"+r),l._eventCacheID=n.Util.createUniqueID(r)}var a=l._eventCacheID;this.observers[a]||(this.observers[a]=[]),this.observers[a].push({element:l,name:e,observer:o,useCapture:i}),l.addEventListener?l.addEventListener(e,o,i):l.attachEvent&&l.attachEvent("on"+e,o)},stopObservingElement:function(t){var e=n.Util.getElement(t)._eventCacheID;this._removeElementObservers(i.SuperMap.Event.observers[e])},_removeElementObservers:function(t){if(t)for(var e=t.length-1;e>=0;e--){var o=t[e],n=new Array(o.element,o.name,o.observer,o.useCapture);i.SuperMap.Event.stopObserving.apply(this,n)}},stopObserving:function(t,e,o,l){l=l||!1;var r=n.Util.getElement(t),a=r._eventCacheID;"keypress"===e&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||r.detachEvent)&&(e="keydown");var s=!1,u=i.SuperMap.Event.observers[a];if(u)for(var p=0;!s&&p<u.length;){var c=u[p];if(c.name===e&&c.observer===o&&c.useCapture===l){u.splice(p,1),0==u.length&&delete i.SuperMap.Event.observers[a],s=!0;break}p++}return s&&(r.removeEventListener?r.removeEventListener(e,o,l):r&&r.detachEvent&&r.detachEvent("on"+e,o)),s},unloadCache:function(){if(i.SuperMap.Event&&i.SuperMap.Event.observers){for(var t in i.SuperMap.Event.observers){var e=i.SuperMap.Event.observers[t];i.SuperMap.Event._removeElementObservers.apply(this,[e])}i.SuperMap.Event.observers=!1}},CLASS_NAME:"SuperMap.Event"};i.SuperMap.Event=l,i.SuperMap.Event.observe(window,"unload",i.SuperMap.Event.unloadCache,!1)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pixel=void 0;var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=o(0);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=e.Pixel=function(){function t(e,o,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=e?parseFloat(e):0,this.y=o?parseFloat(o):0,this.mode=i,this.CLASS_NAME="SuperMap.Pixel",n.SuperMap.Pixel.Mode={LeftTop:"lefttop",RightTop:"righttop",RightBottom:"rightbottom",LeftBottom:"leftbottom"}}return i(t,[{key:"toString",value:function(){return"x="+this.x+",y="+this.y}},{key:"clone",value:function(){return new t(this.x,this.y,this.mode)}},{key:"equals",value:function(t){var e=!1;return null!=t&&(e=this.x==t.x&&this.y==t.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(t.x)&&isNaN(t.y)),e}},{key:"distanceTo",value:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}},{key:"add",value:function(e,o){if(null==e||null==o)throw new TypeError("Pixel.add cannot receive null values");return new t(this.x+e,this.y+o)}},{key:"offset",value:function(t){var e=this.clone();return t&&(e=this.add(t.x,t.y)),e}},{key:"destroy",value:function(){this.x=null,this.y=null,this.mode=null}}]),t}();n.SuperMap.Pixel=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),l=o(0),r=o(115),a=o(114),s=o(2),u=o(1);var p=e.Events=function(){function t(e,o,i,n,l){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.BROWSER_EVENTS=["mouseover","mouseout","mousedown","mouseup","mousemove","click","dblclick","rightclick","dblrightclick","resize","focus","blur","touchstart","touchmove","touchend","keydown","MSPointerDown","MSPointerUp","pointerdown","pointerup","MSGestureStart","MSGestureChange","MSGestureEnd","contextmenu"],this.listeners={},this.object=e,this.element=null,this.eventTypes=[],this.eventHandler=null,this.fallThrough=n,this.includeXY=!1,this.extensions={},this.extensionCount={},this.clearMouseListener=null,u.Util.extend(this,l),null!=i)for(var r=0,a=i.length;r<a;r++)this.addEventType(i[r]);null!=o&&this.attachToElement(o),this.CLASS_NAME="SuperMap.Events"}return n(t,[{key:"destroy",value:function(){for(var t in this.extensions)"boolean"!=typeof this.extensions[t]&&this.extensions[t].destroy();this.extensions=null,this.element&&(a.Event.stopObservingElement(this.element),this.element.hasScrollEvent&&a.Event.stopObserving(window,"scroll",this.clearMouseListener)),this.element=null,this.listeners=null,this.object=null,this.eventTypes=null,this.fallThrough=null,this.eventHandler=null}},{key:"addEventType",value:function(t){this.listeners[t]||(this.eventTypes.push(t),this.listeners[t]=[])}},{key:"attachToElement",value:function(t){this.element?a.Event.stopObservingElement(this.element):(this.eventHandler=s.FunctionExt.bindAsEventListener(this.handleBrowserEvent,this),this.clearMouseListener=s.FunctionExt.bind(this.clearMouseCache,this)),this.element=t;for(var e=0,o=this.BROWSER_EVENTS.length;e<o;e++){var i=this.BROWSER_EVENTS[e];this.addEventType(i),a.Event.observe(t,i,this.eventHandler)}a.Event.observe(t,"dragstart",a.Event.stop)}},{key:"on",value:function(t){for(var e in t)"scope"!==e&&t.hasOwnProperty(e)&&this.register(e,t.scope,t[e])}},{key:"register",value:function(e,o,n,l){if(e in t&&!this.extensions[e]&&(this.extensions[e]=new t[e](this)),null!=n&&-1!==u.Util.indexOf(this.eventTypes,e)){null==o&&(o=this.object);var r=this.listeners[e];r||(r=[],this.listeners[e]=r,this.extensionCount[e]=0);var a={obj:o,func:n};l?(r.splice(this.extensionCount[e],0,a),"object"===(void 0===l?"undefined":i(l))&&l.extension&&this.extensionCount[e]++):r.push(a)}}},{key:"registerPriority",value:function(t,e,o){this.register(t,e,o,!0)}},{key:"un",value:function(t){for(var e in t)"scope"!==e&&t.hasOwnProperty(e)&&this.unregister(e,t.scope,t[e])}},{key:"unregister",value:function(t,e,o){null==e&&(e=this.object);var i=this.listeners[t];if(null!=i)for(var n=0,l=i.length;n<l;n++)if(i[n].obj===e&&i[n].func===o){i.splice(n,1);break}}},{key:"remove",value:function(t){null!=this.listeners[t]&&(this.listeners[t]=[])}},{key:"triggerEvent",value:function(t,e){var o=this.listeners[t];if(o&&0!=o.length){var i;null==e&&(e={}),e.object=this.object,e.element=this.element,e.type||(e.type=t);for(var n=0,l=(o=o.slice()).length;n<l;n++){var r=o[n];if(void 0!=(i=r.func.apply(r.obj,[e]))&&0==i)break}return this.fallThrough||a.Event.stop(e,!0),i}}},{key:"handleBrowserEvent",value:function(t){var e=t.type,o=this.listeners[e];if(o&&0!=o.length){var i=t.touches;if(i&&i[0]){for(var n,l=0,r=0,a=i.length,s=0;s<a;++s)l+=(n=i[s]).clientX,r+=n.clientY;t.clientX=l/a,t.clientY=r/a}this.includeXY&&(t.xy=this.getMousePosition(t)),this.triggerEvent(e,t)}}},{key:"clearMouseCache",value:function(){this.element.scrolls=null,this.element.lefttop=null;var t=document.body;t&&(0==t.scrollTop&&0==t.scrollLeft||!navigator.userAgent.match(/iPhone/i))&&(this.element.offsets=null)}},{key:"getMousePosition",value:function(t){if(this.includeXY?this.element.hasScrollEvent||(a.Event.observe(window,"scroll",this.clearMouseListener),this.element.hasScrollEvent=!0):this.clearMouseCache(),!this.element.scrolls){var e=u.Util.getViewportElement();this.element.scrolls=[e.scrollLeft,e.scrollTop]}return this.element.lefttop||(this.element.lefttop=[document.documentElement.clientLeft||0,document.documentElement.clientTop||0]),this.element.offsets||(this.element.offsets=u.Util.pagePosition(this.element)),new r.Pixel(t.clientX+this.element.scrolls[0]-this.element.offsets[0]-this.element.lefttop[0],t.clientY+this.element.scrolls[1]-this.element.offsets[1]-this.element.lefttop[1])}}]),t}();l.SuperMap.Events=p,l.SuperMap.Events.prototype.BROWSER_EVENTS=["mouseover","mouseout","mousedown","mouseup","mousemove","click","dblclick","rightclick","dblrightclick","resize","focus","blur","touchstart","touchmove","touchend","keydown","MSPointerDown","MSPointerUp","pointerdown","pointerup","MSGestureStart","MSGestureChange","MSGestureEnd","contextmenu"]},function(t,e,o){"use strict";var i,n,l;n=[e,t],void 0===(l="function"==typeof(i=function(t,e){var o={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function i(t){try{delete window[t]}catch(e){window[t]=void 0}}function n(t){var e=document.getElementById(t);document.getElementsByTagName("head")[0].removeChild(e)}e.exports=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],l=t,r=e.timeout||o.timeout,a=e.jsonpCallback||o.jsonpCallback,s=void 0;return new Promise(function(o,u){var p=e.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),c=a+"_"+p;window[p]=function(t){o({ok:!0,json:function(){return Promise.resolve(t)}}),s&&clearTimeout(s),n(c),i(p)},l+=-1===l.indexOf("?")?"?":"&";var y=document.createElement("script");y.setAttribute("src",""+l+a+"="+p),y.id=c,document.getElementsByTagName("head")[0].appendChild(y),s=setTimeout(function(){u(new Error("JSONP request to "+t+" timed out")),i(p),n(c)},r)})}})?i.apply(e,n):i)||(t.exports=l)},function(t,e,o){"use strict";!function(e){if(e.__disableNativeFetch||!e.fetch){a.prototype.append=function(t,e){t=l(t),e=r(e);var o=this.map[t];o||(o=[],this.map[t]=o),o.push(e)},a.prototype.delete=function(t){delete this.map[l(t)]},a.prototype.get=function(t){var e=this.map[l(t)];return e?e[0]:null},a.prototype.getAll=function(t){return this.map[l(t)]||[]},a.prototype.has=function(t){return this.map.hasOwnProperty(l(t))},a.prototype.set=function(t,e){this.map[l(t)]=[r(e)]},a.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(o){this.map[o].forEach(function(i){t.call(e,i,o,this)},this)},this)};var o={blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e},i=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];y.prototype.clone=function(){return new y(this)},c.call(y.prototype),c.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},P.error=function(){var t=new P(null,{status:0,statusText:""});return t.type="error",t};var n=[301,302,303,307,308];P.redirect=function(t,e){if(-1===n.indexOf(e))throw new RangeError("Invalid status code");return new P(null,{status:e,headers:{location:t}})},e.Headers=a,e.Request=y,e.Response=P,e.fetch=function(t,e){return new Promise(function(i,n){var l;l=y.prototype.isPrototypeOf(t)&&!e?t:new y(t,e);var r=new XMLHttpRequest;var s=!1;function u(){if(4===r.readyState){var t=1223===r.status?204:r.status;if(t<100||t>599){if(s)return;return s=!0,void n(new TypeError("Network request failed"))}var e={status:t,statusText:r.statusText,headers:function(t){var e=new a;return t.getAllResponseHeaders().trim().split("\n").forEach(function(t){var o=t.trim().split(":"),i=o.shift().trim(),n=o.join(":").trim();e.append(i,n)}),e}(r),url:"responseURL"in r?r.responseURL:/^X-Request-URL:/m.test(r.getAllResponseHeaders())?r.getResponseHeader("X-Request-URL"):void 0},o="response"in r?r.response:r.responseText;s||(s=!0,i(new P(o,e)))}}r.onreadystatechange=u,r.onload=u,r.onerror=function(){s||(s=!0,n(new TypeError("Network request failed")))},r.open(l.method,l.url,!0);try{"include"===l.credentials&&("withCredentials"in r?r.withCredentials=!0:console&&console.warn&&console.warn("withCredentials is not supported, you can ignore this warning"))}catch(t){console&&console.warn&&console.warn("set withCredentials error:"+t)}"responseType"in r&&o.blob&&(r.responseType="blob"),l.headers.forEach(function(t,e){r.setRequestHeader(e,t)}),r.send(void 0===l._bodyInit?null:l._bodyInit)})},e.fetch.polyfill=!0,void 0!==t&&t.exports&&(t.exports=e.fetch)}function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){this.map={},t instanceof a?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function s(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function u(t){return new Promise(function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}})}function p(t){var e=new FileReader;return e.readAsArrayBuffer(t),u(e)}function c(){return this.bodyUsed=!1,this._initBody=function(t,e){if(this._bodyInit=t,"string"==typeof t)this._bodyText=t;else if(o.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t,this._options=e;else if(o.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(t){if(!o.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t))throw new Error("unsupported BodyInit type")}else this._bodyText=""},o.blob?(this.blob=function(){var t=s(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(p)},this.text=function(){var t,e,o,i,n,l,r,a=s(this);if(a)return a;if(this._bodyBlob)return t=this._bodyBlob,e=this._options,o=new FileReader,i=e.headers.map["content-type"]?e.headers.map["content-type"].toString():"",n=/charset\=[0-9a-zA-Z\-\_]*;?/,l=t.type.match(n)||i.match(n),r=[t],l&&r.push(l[0].replace(/^charset\=/,"").replace(/;$/,"")),o.readAsText.apply(o,r),u(o);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var t=s(this);return t||Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(h)}),this.json=function(){return this.text().then(JSON.parse)},this}function y(t,e){var o,n,l=(e=e||{}).body;if(y.prototype.isPrototypeOf(t)){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new a(t.headers)),this.method=t.method,this.mode=t.mode,l||(l=t._bodyInit,t.bodyUsed=!0)}else this.url=t;if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new a(e.headers)),this.method=(o=e.method||this.method||"GET",n=o.toUpperCase(),i.indexOf(n)>-1?n:o),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&l)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(l,e)}function h(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),n=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(n))}}),e}function P(t,e){e||(e={}),this._initBody(t,e),this.type="default",this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof a?e.headers:new a(e.headers),this.url=e.url||""}}("undefined"!=typeof self?self:void 0)},function(t,e,o){"use strict";var i,n,l=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(i===setTimeout)return setTimeout(t,0);if((i===r||!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:r}catch(t){i=r}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,p=[],c=!1,y=-1;function h(){c&&u&&(c=!1,u.length?p=u.concat(p):y=-1,p.length&&P())}function P(){if(!c){var t=s(h);c=!0;for(var e=p.length;e;){for(u=p,p=[];++y<e;)u&&u[y].run();y=-1,e=p.length}u=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function S(){}l.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)e[o-1]=arguments[o];p.push(new f(t,e)),1!==p.length||c||s(P)},f.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=S,l.addListener=S,l.once=S,l.off=S,l.removeListener=S,l.removeAllListeners=S,l.emit=S,l.prependListener=S,l.prependOnceListener=S,l.listeners=function(t){return[]},l.binding=function(t){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,e,o){"use strict";(function(t,e){!function(t,o){if(!t.setImmediate){var i,n,l,r,a,s=1,u={},p=!1,c=t.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(t);y=y&&y.setTimeout?y:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick(function(){P(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,o=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=o,e}}()?t.MessageChannel?((l=new MessageChannel).port1.onmessage=function(t){P(t.data)},i=function(t){l.port2.postMessage(t)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,i=function(t){var e=c.createElement("script");e.onreadystatechange=function(){P(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):i=function(t){setTimeout(P,0,t)}:(r="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(r)&&P(+e.data.slice(r.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),i=function(e){t.postMessage(r+e,"*")}),y.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),o=0;o<e.length;o++)e[o]=arguments[o+1];var n={callback:t,args:e};return u[s]=n,i(s),s++},y.clearImmediate=h}function h(t){delete u[t]}function P(t){if(p)setTimeout(P,0,t);else{var e=u[t];if(e){p=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(o,i)}}(e)}finally{h(t),p=!1}}}}}("undefined"==typeof self?void 0===t?void 0:t:self)}).call(this,o(4),o(119))},function(t,e,o){"use strict";(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,n=Function.prototype.apply;function l(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new l(n.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new l(n.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},o(120),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||void 0,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||void 0}).call(this,o(4))},function(t,e,o){"use strict";(function(e){var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(i){var n=setTimeout;function l(){}function r(t){if("object"!==o(this))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(t,this)}function a(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,r._immediateFn(function(){var o=1===t._state?e.onFulfilled:e.onRejected;if(null!==o){var i;try{i=o(t._value)}catch(t){return void u(e.promise,t)}s(e.promise,i)}else(1===t._state?s:u)(e.promise,t._value)})):t._deferreds.push(e)}function s(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===(void 0===e?"undefined":o(e))||"function"==typeof e)){var i=e.then;if(e instanceof r)return t._state=3,t._value=e,void p(t);if("function"==typeof i)return void c((n=i,l=e,function(){n.apply(l,arguments)}),t)}t._state=1,t._value=e,p(t)}catch(e){u(t,e)}var n,l}function u(t,e){t._state=2,t._value=e,p(t)}function p(t){2===t._state&&0===t._deferreds.length&&r._immediateFn(function(){t._handled||r._unhandledRejectionFn(t._value)});for(var e=0,o=t._deferreds.length;e<o;e++)a(t,t._deferreds[e]);t._deferreds=null}function c(t,e){var o=!1;try{t(function(t){o||(o=!0,s(e,t))},function(t){o||(o=!0,u(e,t))})}catch(t){if(o)return;o=!0,u(e,t)}}r.prototype.catch=function(t){return this.then(null,t)},r.prototype.then=function(t,e){var o=new this.constructor(l);return a(this,new function(t,e,o){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=o}(t,e,o)),o},r.all=function(t){var e=Array.prototype.slice.call(t);return new r(function(t,i){if(0===e.length)return t([]);var n=e.length;function l(r,a){try{if(a&&("object"===(void 0===a?"undefined":o(a))||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){l(r,t)},i)}e[r]=a,0==--n&&t(e)}catch(t){i(t)}}for(var r=0;r<e.length;r++)l(r,e[r])})},r.resolve=function(t){return t&&"object"===(void 0===t?"undefined":o(t))&&t.constructor===r?t:new r(function(e){e(t)})},r.reject=function(t){return new r(function(e,o){o(t)})},r.race=function(t){return new r(function(e,o){for(var i=0,n=t.length;i<n;i++)t[i].then(e,o)})},r._immediateFn="function"==typeof e&&function(t){e(t)}||function(t){n(t,0)},r._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},r._setImmediateFn=function(t){r._immediateFn=t},r._setUnhandledRejectionFn=function(t){r._unhandledRejectionFn=t},void 0!==t&&t.exports?t.exports=r:i.Promise||(i.Promise=r)}(void 0)}).call(this,o(121).setImmediate)},function(t,e,o){"use strict";var i,n=o(122),l=(i=n)&&i.__esModule?i:{default:i};window.Promise=l.default},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommonServiceBase=void 0;var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=o(0),l=o(5),r=o(116),a=o(113),s=o(112),u=o(1),p=o(111),c=o(110),y=o(2);
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * This program are made available under the terms of the Apache License, Version 2.0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var h=e.CommonServiceBase=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=this;this.EVENT_TYPES=["processCompleted","processFailed"],this.events=null,this.eventListeners=null,this.url=null,this.urls=null,this.proxy=null,this.serverType=null,this.index=null,this.length=null,this.options=null,this.totalTimes=null,this.POLLING_TIMES=3,this._processSuccess=null,this._processFailed=null,this.isInTheSameDomain=null,this.withCredentials=!1,u.Util.isArray(e)?(i.urls=e,i.length=e.length,i.totalTimes=i.length,1===i.length?i.url=e[0]:(i.index=parseInt(Math.random()*i.length),i.url=e[i.index])):(i.totalTimes=1,i.url=e),u.Util.isArray(e)&&!i.isServiceSupportPolling()&&(i.url=e[0],i.totalTimes=1),i.serverType=i.serverType||p.ServerType.ISERVER,o=o||{},u.Util.extend(this,o),i.isInTheSameDomain=u.Util.isInTheSameDomain(i.url),i.events=new r.Events(i,null,i.EVENT_TYPES,!0),i.eventListeners instanceof Object&&i.events.on(i.eventListeners),this.CLASS_NAME="SuperMap.CommonServiceBase"}return i(t,[{key:"destroy",value:function(){var t=this;u.Util.isArray(t.urls)&&(t.urls=null,t.index=null,t.length=null,t.totalTimes=null),t.url=null,t.options=null,t._processSuccess=null,t._processFailed=null,t.isInTheSameDomain=null,t.EVENT_TYPES=null,t.events&&(t.events.destroy(),t.events=null),t.eventListeners&&(t.eventListeners=null)}},{key:"request",value:function(t){var e=this;t.url=t.url||e.url,t.proxy=t.proxy||e.proxy,t.withCredentials=void 0!=t.withCredentials?t.withCredentials:e.withCredentials,t.isInTheSameDomain=e.isInTheSameDomain;var o=this.getCredential(t.url);if(o){var i=t.url.substring(t.url.length-1,t.url.length);t.url.indexOf("?")>-1&&"?"===i?t.url+=o.getUrlParameters():t.url.indexOf("?")>-1&&"?"!==i?t.url+="&"+o.getUrlParameters():t.url+="?"+o.getUrlParameters()}e.calculatePollingTimes(),e._processSuccess=t.success,e._processFailed=t.failure,t.scope=e,t.success=e.getUrlCompleted,t.failure=e.getUrlFailed,e.options=t,e._commit(e.options)}},{key:"getCredential",value:function(t){var e=t,o=void 0,i=void 0;switch(this.serverType){case p.ServerType.IPORTAL:(o=(i=s.SecurityManager.getToken(e))?new a.Credential(i,"token"):null)||(o=(i=s.SecurityManager.getKey(e))?new a.Credential(i,"key"):null);break;case p.ServerType.ONLINE:o=(i=s.SecurityManager.getKey(e))?new a.Credential(i,"key"):null;break;default:o=(i=s.SecurityManager.getToken(e))?new a.Credential(i,"token"):null}return o}},{key:"getUrlCompleted",value:function(t){this._processSuccess(t)}},{key:"getUrlFailed",value:function(t){this.totalTimes>0?(this.totalTimes--,this.ajaxPolling()):this._processFailed(t)}},{key:"ajaxPolling",value:function(){var t=this,e=t.options.url,o=/^http:\/\/([a-z]{9}|(\d+\.){3}\d+):\d{0,4}/;t.index=parseInt(Math.random()*t.length),t.url=t.urls[t.index],e=e.replace(o,o.exec(t.url)[0]),t.options.url=e,t.options.isInTheSameDomain=u.Util.isInTheSameDomain(e),t._commit(t.options)}},{key:"calculatePollingTimes",value:function(){var t=this;t.times?t.totalTimes>t.POLLING_TIMES?t.times>t.POLLING_TIMES?t.totalTimes=t.POLLING_TIMES:t.totalTimes=t.times:t.times<t.totalTimes&&(t.totalTimes=t.times):t.totalTimes>t.POLLING_TIMES&&(t.totalTimes=t.POLLING_TIMES),t.totalTimes--}},{key:"isServiceSupportPolling",value:function(){return!("SuperMap.REST.ThemeService"===this.CLASS_NAME||"SuperMap.REST.EditFeaturesService"===this.CLASS_NAME)}},{key:"serviceProcessCompleted",value:function(t){t=u.Util.transformResult(t),this.events.triggerEvent("processCompleted",{result:t})}},{key:"serviceProcessFailed",value:function(t){var e=(t=u.Util.transformResult(t)).error||t;this.events.triggerEvent("processFailed",{error:e})}},{key:"_commit",value:function(t){"POST"!==t.method&&"PUT"!==t.method||(t.params&&(t.url=u.Util.urlAppend(t.url,u.Util.getParameterString(t.params||{}))),t.params=t.data),l.FetchRequest.commit(t.method,t.url,t.params,{headers:t.headers,withCredentials:t.withCredentials,timeout:t.async?0:null,proxy:t.proxy}).then(function(t){return t.text?t.text():t.json?t.json():t}).then(function(e){var o=e;("string"==typeof e&&(o=(new c.JSONFormat).read(e)),(!o||o.error||o.code>=300&&304!==o.code)&&(o=o&&o.error?{error:o.error}:{error:o}),o.error)?(t.scope?y.FunctionExt.bind(t.failure,t.scope):t.failure)(o):(o.succeed=void 0==o.succeed||o.succeed,(t.scope?y.FunctionExt.bind(t.success,t.scope):t.success)(o))})}}]),t}();n.SuperMap.CommonServiceBase=h},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlgoSymbolFactory=e.BasicAlgoSymbolFactory=e.AddPoint_WayType=e.Primitives=e.PlottingUtil=e.RouteNodePrimitives=e.AnalysisSymbol=e.TowardNode=e.TimeWindowParameter=e.SymbolText=e.SubSymbol=e.SMLInfoStruct=e.SitDataStruct=e.RouteNode=e.Property=e.OrbitPoint=e.MapInfoStruct=e.LayerDataStruct=e.ExtendProperty=e.DefaultStyle=e.GetSymbolInfoService=e.GetSymbolInfoParameters=e.GetSMLInfosService=e.GetSMLInfosParameters=e.GetLibInfoService=e.GetLibInfoParameter=e.GetLibIDsService=e.EditSmlFileService=e.EditSmlFileParameters=e.PlotCommonServiceBase=e.GOAnimationType=e.Event=e.EditMode=e.AlignType=e.PositionOffsetType=e.TextBoxType=e.ArrowLineType=e.AnnoPosition=e.RadiusLineType=e.RelLineText=e.RouteNodeType=e.AlgoSurroundLineType=e.LineRelationType=e.SymbolType=e.Plot=e.CommonServiceBase=void 0;var i=o(124),n=o(108),l=o(68),r=o(62);e.CommonServiceBase=i.CommonServiceBase,e.Plot=n.Plot,e.SymbolType=n.SymbolType,e.LineRelationType=n.LineRelationType,e.AlgoSurroundLineType=n.AlgoSurroundLineType,e.RouteNodeType=n.RouteNodeType,e.RelLineText=n.RelLineText,e.RadiusLineType=n.RadiusLineType,e.AnnoPosition=n.AnnoPosition,e.ArrowLineType=n.ArrowLineType,e.TextBoxType=n.TextBoxType,e.PositionOffsetType=n.PositionOffsetType,e.AlignType=n.AlignType,e.EditMode=n.EditMode,e.Event=n.Event,e.GOAnimationType=n.GOAnimationType,e.PlotCommonServiceBase=n.PlotCommonServiceBase,e.EditSmlFileParameters=n.EditSmlFileParameters,e.EditSmlFileService=n.EditSmlFileService,e.GetLibIDsService=n.GetLibIDsService,e.GetLibInfoParameter=n.GetLibInfoParameter,e.GetLibInfoService=n.GetLibInfoService,e.GetSMLInfosParameters=n.GetSMLInfosParameters,e.GetSMLInfosService=n.GetSMLInfosService,e.GetSymbolInfoParameters=n.GetSymbolInfoParameters,e.GetSymbolInfoService=n.GetSymbolInfoService,e.DefaultStyle=n.DefaultStyle,e.ExtendProperty=n.ExtendProperty,e.LayerDataStruct=n.LayerDataStruct,e.MapInfoStruct=n.MapInfoStruct,e.OrbitPoint=n.OrbitPoint,e.Property=n.Property,e.RouteNode=n.RouteNode,e.SitDataStruct=n.SitDataStruct,e.SMLInfoStruct=n.SMLInfoStruct,e.SubSymbol=n.SubSymbol,e.SymbolText=n.SymbolText,e.TimeWindowParameter=n.TimeWindowParameter,e.TowardNode=n.TowardNode,e.AnalysisSymbol=l.AnalysisSymbol,e.RouteNodePrimitives=l.RouteNodePrimitives,e.PlottingUtil=l.PlottingUtil,e.Primitives=l.Primitives,e.AddPoint_WayType=l.AddPoint_WayType,e.BasicAlgoSymbolFactory=r.BasicAlgoSymbolFactory,e.AlgoSymbolFactory=r.AlgoSymbolFactory}]);

/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {

__webpack_require__(4);
__webpack_require__(1);
__webpack_require__(2);
__webpack_require__(3);
__webpack_require__(0);



/***/ })
/******/ ]);