/******/ (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 SuperMapAlgoPlot = window.SuperMapAlgoPlot = window.SuperMapAlgoPlot || {}; /*** * @private * @type {{translate: SuperMap.PlotLang.translate}} */ SuperMapAlgoPlot.PlotLang = { /** * APIMethod: translate * 从当前语言字符串的字典查找key。 * getCode获取的值用来判断合适的字典。字典存储在 方法中。 * * Parameters: * key - {String} 字典中i18n字符串值的关键字. * context - {Object} 使用此参数。 * * Returns: * {String} 国际化的字符串。 */ translate: function (key, context) { var dictionary = SuperMapAlgoPlot.PlotLang["zh-CN"]; var message = dictionary && dictionary[key]; if (!message) { // Message not found, fall back to message key message = key; } if (context) { message = SuperMapAlgoPlot.String.format(message, context); } return message; } }; /** * @private * APIMethod: SuperMap.plotI18n * 的别名. 当前语言字符串的字典查找key。 * getCode获取的值用来判断合适的字典。字典存储在 方法中。 * * Parameters: * key - {String} 字典中i18n字符串值的关键字. * context - {Object} 使用此参数。 * * Returns: * {String} 国际化的字符串。 */ SuperMapAlgoPlot.plotI18n = SuperMapAlgoPlot.PlotLang.translate; /** * @private * */ SuperMapAlgoPlot.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': '_标签图层', "Distance": '距离', "Area": '面积:', "SpaceDistance": '空间距离', "VerticalHeight": '垂直高度', "LevelDistance": '水平距离', "SYMBOL_MODEL": '模型', "SYMBOL_POINT": '点图元', }; /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {!function(){var t={3172:function(t,e,o){"use strict";var n=o(5277);function r(t){var e=[1/0,1/0,-1/0,-1/0];return n.coordEach(t,function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]e?1:0}return function(o,n,r,i,l){!function e(o,n,r,i,l){for(;i>r;){if(i-r>600){var a=i-r+1,s=n-r+1,u=Math.log(a),p=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*p*(a-p)/a)*(s-a/2<0?-1:1),f=Math.max(r,Math.floor(n-s*p/a+c)),h=Math.min(i,Math.floor(n+(a-s)*p/a+c));e(o,n,f,h,l)}var g=o[n],P=r,y=i;for(t(o,r,n),l(o[i],g)>0&&t(o,r,i);P0;)y--}0===l(o[r],g)?t(o,r,y):t(o,++y,i),y<=n&&(r=y+1),n<=y&&(i=y-1)}}(o,n,r||0,i||o.length-1,l||e)}},"object"===l(e)?t.exports=i():void 0===(r="function"==typeof(n=i)?n.call(e,o,e,t):n)||(t.exports=r)},4889:function(t,e,o){"use strict";t.exports=r,t.exports.default=r;var n=o(2790);function r(t,e){if(!(this instanceof r))return new r(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function i(t,e,o){if(!o)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function P(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(t,e,o,r,i){for(var l,a=[e,o];a.length;)(o=a.pop())-(e=a.pop())<=r||(l=e+Math.ceil((o-e)/r/2)*r,n(t,l,e,o,i),a.push(e,l,l,o))}r.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,o=[],n=this.toBBox;if(!g(t,e))return o;for(var r,i,l,a,s=[];e;){for(r=0,i=e.children.length;r=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(r,i,e)},_split:function(t,e){var o=t[e],n=o.children.length,r=this._minEntries;this._chooseSplitAxis(o,r,n);var i=this._chooseSplitIndex(o,r,n),a=P(o.children.splice(i,o.children.length-i));a.height=o.height,a.leaf=o.leaf,l(o,this.toBBox),l(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(o,a)},_splitRoot:function(t,e){this.data=P([t,e]),this.data.height=t.height+1,this.data.leaf=!1,l(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,o){var n,r,i,l,s,u,p,f,h,g,P,y,S,d;for(u=p=1/0,n=e;n<=o-e;n++)r=a(t,0,n,this.toBBox),i=a(t,n,o,this.toBBox),h=r,g=i,void 0,void 0,void 0,void 0,P=Math.max(h.minX,g.minX),y=Math.max(h.minY,g.minY),S=Math.min(h.maxX,g.maxX),d=Math.min(h.maxY,g.maxY),l=Math.max(0,S-P)*Math.max(0,d-y),s=c(r)+c(i),l=e;r--)i=t.children[r],s(p,t.leaf?l(i):i),c+=f(p);return c},_adjustParentBBoxes:function(t,e,o){for(var n=o;n>=0;n--)s(e[n],t)},_condense:function(t){for(var e,o=t.length-1;o>=0;o--)0===t[o].children.length?o>0?(e=t[o-1].children).splice(e.indexOf(t[o]),1):this.clear():l(t[o],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},2264:function(t,e){"use strict";function o(t){"@babel/helpers - typeof";return(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})(t)}function n(t,e,o){void 0===o&&(o={});var n={type:"Feature"};return(0===o.id||o.id)&&(n.id=o.id),o.bbox&&(n.bbox=o.bbox),n.properties=e||{},n.geometry=t,n}function r(t,e,o){if(void 0===o&&(o={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!g(t[0])||!g(t[1]))throw new Error("coordinates must contain numbers");return n({type:"Point",coordinates:t},e,o)}function i(t,e,o){void 0===o&&(o={});for(var r=0,i=t;r=0))throw new Error("precision must be a positive number");var o=Math.pow(10,e||0);return Math.round(t*o)/o},e.radiansToLength=c,e.lengthToRadians=f,e.lengthToDegrees=function(t,e){return h(f(t,e))},e.bearingToAzimuth=function(t){var e=t%360;return e<0&&(e+=360),e},e.radiansToDegrees=h,e.degreesToRadians=function(t){return t%360*Math.PI/180},e.convertLength=function(t,e,o){if(void 0===e&&(e="kilometers"),void 0===o&&(o="kilometers"),!(t>=0))throw new Error("length must be a positive number");return c(f(t,e),o)},e.convertArea=function(t,o,n){if(void 0===o&&(o="meters"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("area must be a positive number");var r=e.areaFactors[o];if(!r)throw new Error("invalid original units");var i=e.areaFactors[n];if(!i)throw new Error("invalid final units");return t/r*i},e.isNumber=g,e.isObject=function(t){return!!t&&t.constructor===Object},e.validateBBox=function(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach(function(t){if(!g(t))throw new Error("bbox must only contain numbers")})},e.validateId=function(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(o(t)))throw new Error("id must be a number or a string")}},5277:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(2264);function r(t,e,o){if(null!==t)for(var n,i,l,a,s,u,p,c,f=0,h=0,g=t.type,P="FeatureCollection"===g,y="Feature"===g,S=P?t.features.length:1,d=0;du||h>p||g>c)return s=r,u=o,p=h,c=g,void(l=0);var P=n.lineString([s,r],t.properties);if(!1===e(P,o,i,g,l))return!1;l++,s=r})&&void 0}}})}function p(t,e){if(!t)throw new Error("geojson is required");s(t,function(t,o,r){if(null!==t.geometry){var i=t.geometry.type,l=t.geometry.coordinates;switch(i){case"LineString":if(!1===e(t,o,r,0,0))return!1;break;case"Polygon":for(var a=0;ae?1:0}return function(o,n,r,i,l){!function e(o,n,r,i,l){for(;i>r;){if(i-r>600){var a=i-r+1,s=n-r+1,u=Math.log(a),p=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*p*(a-p)/a)*(s-a/2<0?-1:1),f=Math.max(r,Math.floor(n-s*p/a+c)),h=Math.min(i,Math.floor(n+(a-s)*p/a+c));e(o,n,f,h,l)}var g=o[n],P=r,y=i;for(t(o,r,n),l(o[i],g)>0&&t(o,r,i);P0;)y--}0===l(o[r],g)?t(o,r,y):t(o,++y,i),y<=n&&(r=y+1),n<=y&&(i=y-1)}}(o,n,r||0,i||o.length-1,l||e)}},"object"===l(e)?t.exports=i():void 0===(r="function"==typeof(n=i)?n.call(e,o,e,t):n)||(t.exports=r)},1925:function(t,e,o){"use strict";t.exports=r,t.exports.default=r;var n=o(5619);function r(t,e){if(!(this instanceof r))return new r(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function i(t,e,o){if(!o)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function P(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(t,e,o,r,i){for(var l,a=[e,o];a.length;)(o=a.pop())-(e=a.pop())<=r||(l=e+Math.ceil((o-e)/r/2)*r,n(t,l,e,o,i),a.push(e,l,l,o))}r.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,o=[],n=this.toBBox;if(!g(t,e))return o;for(var r,i,l,a,s=[];e;){for(r=0,i=e.children.length;r=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(r,i,e)},_split:function(t,e){var o=t[e],n=o.children.length,r=this._minEntries;this._chooseSplitAxis(o,r,n);var i=this._chooseSplitIndex(o,r,n),a=P(o.children.splice(i,o.children.length-i));a.height=o.height,a.leaf=o.leaf,l(o,this.toBBox),l(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(o,a)},_splitRoot:function(t,e){this.data=P([t,e]),this.data.height=t.height+1,this.data.leaf=!1,l(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,o){var n,r,i,l,s,u,p,f,h,g,P,y,S,d;for(u=p=1/0,n=e;n<=o-e;n++)r=a(t,0,n,this.toBBox),i=a(t,n,o,this.toBBox),h=r,g=i,void 0,void 0,void 0,void 0,P=Math.max(h.minX,g.minX),y=Math.max(h.minY,g.minY),S=Math.min(h.maxX,g.maxX),d=Math.min(h.maxY,g.maxY),l=Math.max(0,S-P)*Math.max(0,d-y),s=c(r)+c(i),l=e;r--)i=t.children[r],s(p,t.leaf?l(i):i),c+=f(p);return c},_adjustParentBBoxes:function(t,e,o){for(var n=o;n>=0;n--)s(e[n],t)},_condense:function(t){for(var e,o=t.length-1;o>=0;o--)0===t[o].children.length?o>0?(e=t[o-1].children).splice(e.indexOf(t[o]),1):this.clear():l(t[o],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},8780:function(t,e,o){"use strict";var n=o(6893),r=o(3862),i=r(n("String.prototype.indexOf"));t.exports=function(t,e){var o=n(t,!!e);return"function"==typeof o&&i(t,".prototype.")>-1?r(o):o}},3862:function(t,e,o){"use strict";var n=o(5246),r=o(6893),i=r("%Function.prototype.apply%"),l=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||n.call(l,i),s=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),p=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}t.exports=function(t){var e=a(n,l,arguments);s&&u&&(s(e,"length").configurable&&u(e,"length",{value:1+p(0,t.length-(arguments.length-1))}));return e};var c=function(){return a(n,i,arguments)};u?u(t.exports,"apply",{value:c}):t.exports.apply=c},7523:function(t,e,o){"use strict";var n=o(2180),r=o(2798),i=o(1516),l=o(5081).orient2d;function a(t,e,o){e=Math.max(0,void 0===e?2:e),o=o||0;var r=function(t){for(var e=t[0],o=t[0],n=t[0],r=t[0],l=0;ln[0]&&(n=a),a[1]r[1]&&(r=a)}var s=[e,o,n,r],u=s.slice();for(l=0;l=2&&h(e[e.length-2],e[e.length-1],t[o])<=0;)e.pop();e.push(t[o])}for(var n=[],r=t.length-1;r>=0;r--){for(;n.length>=2&&h(n[n.length-2],n[n.length-1],t[r])<=0;)n.pop();n.push(t[r])}return n.pop(),e.pop(),e.concat(n)}(u)}(t),l=new n(16);l.toBBox=function(t){return{minX:t[0],minY:t[1],maxX:t[0],maxY:t[1]}},l.compareMinX=function(t,e){return t[0]-e[0]},l.compareMinY=function(t,e){return t[1]-e[1]},l.load(t);for(var a,u=[],p=0;pl||s.push({node:g,dist:P})}for(;s.length&&!s.peek().node.children;){var y=s.pop(),d=y.node,b=S(d,e,o),m=S(d,n,i);if(y.dist=e.minX&&t[0]<=e.maxX&&t[1]>=e.minY&&t[1]<=e.maxY}function f(t,e,o){for(var n,r,i,l,a=Math.min(t[0],e[0]),s=Math.min(t[1],e[1]),u=Math.max(t[0],e[0]),p=Math.max(t[1],e[1]),c=o.search({minX:a,minY:s,maxX:u,maxY:p}),f=0;f0!=h(n,r,l)>0&&h(i,l,n)>0!=h(i,l,r)>0)return!1;return!0}function h(t,e,o){return l(t[0],t[1],e[0],e[1],o[0],o[1])}function g(t){var e=t.p,o=t.next.p;return t.minX=Math.min(e[0],o[0]),t.minY=Math.min(e[1],o[1]),t.maxX=Math.max(e[0],o[0]),t.maxY=Math.max(e[1],o[1]),t}function P(t,e){var o={p:t,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return e?(o.next=e.next,o.prev=e,e.next.prev=o,e.next=o):(o.prev=o,o.next=o),o}function y(t,e){var o=t[0]-e[0],n=t[1]-e[1];return o*o+n*n}function S(t,e,o){var n=e[0],r=e[1],i=o[0]-n,l=o[1]-r;if(0!==i||0!==l){var a=((t[0]-n)*i+(t[1]-r)*l)/(i*i+l*l);a>1?(n=o[0],r=o[1]):a>0&&(n+=i*a,r+=l*a)}return(i=t[0]-n)*i+(l=t[1]-r)*l}function d(t,e,o,n,r,i,l,a){var s,u,p,c,f=o-t,h=n-e,g=l-r,P=a-i,y=t-r,S=e-i,d=f*f+h*h,b=f*g+h*P,m=g*g+P*P,v=f*y+h*S,M=g*y+P*S,A=d*m-b*b,O=A,_=A;0===A?(u=0,O=1,c=M,_=m):(c=d*M-b*v,(u=b*M-m*v)<0?(u=0,c=M,_=m):u>O&&(u=O,c=M+b,_=m)),c<0?(c=0,-v<0?u=0:-v>d?u=O:(u=-v,O=d)):c>_&&(c=_,-v+b<0?u=0:-v+b>d?u=O:(u=-v+b,O=d)),s=0===u?0:u/O;var L=(1-(p=0===c?0:c/_))*r+p*l-((1-s)*t+s*o),w=(1-p)*i+p*a-((1-s)*e+s*n);return L*L+w*w}function b(t,e){return t[0]===e[0]?t[1]-e[1]:t[0]-e[0]}r.default&&(r=r.default),t.exports=a,t.exports.default=a},6483:function(t,e,o){function n(t){"@babel/helpers - typeof";return(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})(t)}var r=o(3818),i=o(2755),l=o(4710),a=o(2975),s=o(7207),u=o(5052),p=Date.prototype.getTime;function c(t,e,o){var g=o||{};return!(g.strict?!l(t,e):t!==e)||(!t||!e||"object"!==n(t)&&"object"!==n(e)?g.strict?l(t,e):t==e:function(t,e,o){var l,g;if(n(t)!==n(e))return!1;if(f(t)||f(e))return!1;if(t.prototype!==e.prototype)return!1;if(i(t)!==i(e))return!1;var P=a(t),y=a(e);if(P!==y)return!1;if(P||y)return t.source===e.source&&s(t)===s(e);if(u(t)&&u(e))return p.call(t)===p.call(e);var S=h(t),d=h(e);if(S!==d)return!1;if(S||d){if(t.length!==e.length)return!1;for(l=0;l=0;l--)if(b[l]!=m[l])return!1;for(l=b.length-1;l>=0;l--)if(g=b[l],!c(t[g],e[g],o))return!1;return!0}(t,e,g))}function f(t){return null===t||void 0===t}function h(t){return!(!t||"object"!==n(t)||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}t.exports=c},7921:function(t,e,o){"use strict";function n(t){"@babel/helpers - typeof";return(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})(t)}var r=o(3818),i="function"==typeof Symbol&&"symbol"===n(Symbol("foo")),l=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=o(2579)(),p=s&&u,c=function(t,e,o,n){var r;e in t&&("function"!=typeof(r=n)||"[object Function]"!==l.call(r)||!n())||(p?s(t,e,{configurable:!0,enumerable:!1,value:o,writable:!0}):t[e]=o)},f=function(t,e){var o=arguments.length>2?arguments[2]:{},n=r(e);i&&(n=a.call(n,Object.getOwnPropertySymbols(e)));for(var l=0;l=this.minPts&&(e=this._mergeArrays(e,r))}1!==this._assigned[n]&&this._addToCluster(n,t)}},o.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},o.prototype._regionQuery=function(t){for(var e=[],o=0;o0){for(s=0;s=0);return t},e.prototype.assign=function(){for(var t,e=!1,o=this.dataset.length,n=0;n=this.minPts)return o}},i.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var o=[],n=0,r=this.dataset.length;nr&&(o=n):e80*n){i=a=t[0],l=s=t[1];for(var b=n;ba&&(a=c),f>s&&(s=f);g=0!==(g=Math.max(a-i,s-l))?32767/g:0}return r(S,d,n,i,l,g,0),d}function o(t,e,o,n,r){var i,l;if(r===L(t,e,o,n)>0)for(i=e;i=e;i-=n)l=A(i,t[i],t[i+1],l);return l&&S(l,l.next)&&(O(l),l=l.next),l}function n(t,e){if(!t)return t;e||(e=t);var o,n=t;do{if(o=!1,n.steiner||!S(n,n.next)&&0!==y(n.prev,n,n.next))n=n.next;else{if(O(n),(n=e=n.prev)===n.next)break;o=!0}}while(o||n!==e);return e}function r(t,e,o,u,p,c,h){if(t){!h&&c&&function(t,e,o,n){var r=t;do{0===r.z&&(r.z=f(r.x,r.y,e,o,n)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,o,n,r,i,l,a,s,u=1;do{for(o=t,t=null,i=null,l=0;o;){for(l++,n=o,a=0,e=0;e0||s>0&&n;)0!==a&&(0===s||!n||o.z<=n.z)?(r=o,o=o.nextZ,a--):(r=n,n=n.nextZ,s--),i?i.nextZ=r:t=r,r.prevZ=i,i=r;o=n}i.nextZ=null,u*=2}while(l>1)}(r)}(t,u,p,c);for(var g,P,y=t;t.prev!==t.next;)if(g=t.prev,P=t.next,c?l(t,u,p,c):i(t))e.push(g.i/o|0),e.push(t.i/o|0),e.push(P.i/o|0),O(t),t=P.next,y=P.next;else if((t=P)===y){h?1===h?r(t=a(n(t),e,o),e,o,u,p,c,2):2===h&&s(t,e,o,u,p,c):r(n(t),e,o,u,p,c,1);break}}}function i(t){var e=t.prev,o=t,n=t.next;if(y(e,o,n)>=0)return!1;for(var r=e.x,i=o.x,l=n.x,a=e.y,s=o.y,u=n.y,p=ri?r>l?r:l:i>l?i:l,h=a>s?a>u?a:u:s>u?s:u,P=n.next;P!==e;){if(P.x>=p&&P.x<=f&&P.y>=c&&P.y<=h&&g(r,a,i,s,l,u,P.x,P.y)&&y(P.prev,P,P.next)>=0)return!1;P=P.next}return!0}function l(t,e,o,n){var r=t.prev,i=t,l=t.next;if(y(r,i,l)>=0)return!1;for(var a=r.x,s=i.x,u=l.x,p=r.y,c=i.y,h=l.y,P=as?a>u?a:u:s>u?s:u,b=p>c?p>h?p:h:c>h?c:h,m=f(P,S,e,o,n),v=f(d,b,e,o,n),M=t.prevZ,A=t.nextZ;M&&M.z>=m&&A&&A.z<=v;){if(M.x>=P&&M.x<=d&&M.y>=S&&M.y<=b&&M!==r&&M!==l&&g(a,p,s,c,u,h,M.x,M.y)&&y(M.prev,M,M.next)>=0)return!1;if(M=M.prevZ,A.x>=P&&A.x<=d&&A.y>=S&&A.y<=b&&A!==r&&A!==l&&g(a,p,s,c,u,h,A.x,A.y)&&y(A.prev,A,A.next)>=0)return!1;A=A.nextZ}for(;M&&M.z>=m;){if(M.x>=P&&M.x<=d&&M.y>=S&&M.y<=b&&M!==r&&M!==l&&g(a,p,s,c,u,h,M.x,M.y)&&y(M.prev,M,M.next)>=0)return!1;M=M.prevZ}for(;A&&A.z<=v;){if(A.x>=P&&A.x<=d&&A.y>=S&&A.y<=b&&A!==r&&A!==l&&g(a,p,s,c,u,h,A.x,A.y)&&y(A.prev,A,A.next)>=0)return!1;A=A.nextZ}return!0}function a(t,e,o){var r=t;do{var i=r.prev,l=r.next.next;!S(i,l)&&d(i,r,r.next,l)&&v(i,l)&&v(l,i)&&(e.push(i.i/o|0),e.push(r.i/o|0),e.push(l.i/o|0),O(r),O(r.next),r=t=l),r=r.next}while(r!==t);return n(r)}function s(t,e,o,i,l,a){var s=t;do{for(var u=s.next.next;u!==s.prev;){if(s.i!==u.i&&P(s,u)){var p=M(s,u);return s=n(s,s.next),p=n(p,p.next),r(s,e,o,i,l,a,0),void r(p,e,o,i,l,a,0)}u=u.next}s=s.next}while(s!==t)}function u(t,e){return t.x-e.x}function p(t,e){var o=function(t,e){var o,n=e,r=t.x,i=t.y,l=-1/0;do{if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){var a=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=r&&a>l&&(l=a,o=n.x=n.x&&n.x>=p&&r!==n.x&&g(io.x||n.x===o.x&&c(o,n)))&&(o=n,h=s)),n=n.next}while(n!==u);return o}(t,e);if(!o)return e;var r=M(o,t);return n(r,r.next),n(o,o.next)}function c(t,e){return y(t.prev,t,e.prev)<0&&y(e.next,t,t.next)<0}function f(t,e,o,n,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-o)*r|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*r|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function h(t){var e=t,o=t;do{(e.x=(t-l)*(i-a)&&(t-l)*(n-a)>=(o-l)*(e-a)&&(o-l)*(i-a)>=(r-l)*(n-a)}function P(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var o=t;do{if(o.i!==t.i&&o.next.i!==t.i&&o.i!==e.i&&o.next.i!==e.i&&d(o,o.next,t,e))return!0;o=o.next}while(o!==t);return!1}(t,e)&&(v(t,e)&&v(e,t)&&function(t,e){var o=t,n=!1,r=(t.x+e.x)/2,i=(t.y+e.y)/2;do{o.y>i!=o.next.y>i&&o.next.y!==o.y&&r<(o.next.x-o.x)*(i-o.y)/(o.next.y-o.y)+o.x&&(n=!n),o=o.next}while(o!==t);return n}(t,e)&&(y(t.prev,t,e.prev)||y(t,e.prev,e))||S(t,e)&&y(t.prev,t,t.next)>0&&y(e.prev,e,e.next)>0)}function y(t,e,o){return(e.y-t.y)*(o.x-e.x)-(e.x-t.x)*(o.y-e.y)}function S(t,e){return t.x===e.x&&t.y===e.y}function d(t,e,o,n){var r=m(y(t,e,o)),i=m(y(t,e,n)),l=m(y(o,n,t)),a=m(y(o,n,e));return r!==i&&l!==a||(!(0!==r||!b(t,o,e))||(!(0!==i||!b(t,n,e))||(!(0!==l||!b(o,t,n))||!(0!==a||!b(o,e,n)))))}function b(t,e,o){return e.x<=Math.max(t.x,o.x)&&e.x>=Math.min(t.x,o.x)&&e.y<=Math.max(t.y,o.y)&&e.y>=Math.min(t.y,o.y)}function m(t){return t>0?1:t<0?-1:0}function v(t,e){return y(t.prev,t,t.next)<0?y(t,e,t.next)>=0&&y(t,t.prev,e)>=0:y(t,e,t.prev)<0||y(t,t.next,e)<0}function M(t,e){var o=new _(t.i,t.x,t.y),n=new _(e.i,e.x,e.y),r=t.next,i=e.prev;return t.next=e,e.prev=t,o.next=r,r.prev=o,n.next=o,o.prev=n,i.next=n,n.prev=i,n}function A(t,e,o,n){var r=new _(t,e,o);return n?(r.next=n.next,r.prev=n,n.next.prev=r,n.next=r):(r.prev=r,r.next=r),r}function O(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function _(t,e,o){this.i=t,this.x=e,this.y=o,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function L(t,e,o,n){for(var r=0,i=e,l=o-n;i0&&(n+=t[r-1].length,o.holes.push(n))}return o}},5929:function(t){"use strict";var e=Array.prototype.slice,o=Object.prototype.toString;t.exports=function(t){var n=this;if("function"!=typeof n||"[object Function]"!==o.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var r,i=e.call(arguments,1),l=Math.max(0,n.length-i.length),a=[],s=0;s=0&&(o=[].concat(t.slice(n,t.length),t.slice(1,n+1))),o},r.prototype.comparePath=function(t,e){var o=this;return t.every(function(t,e){return o.compareCoord(t,this[e])},e)},r.prototype.comparePolygon=function(t,e){if(this.compareLine(t.coordinates[0],e.coordinates[0],1,!0)){var o=t.coordinates.slice(1,t.coordinates.length),n=e.coordinates.slice(1,e.coordinates.length),r=this;return o.every(function(t){return this.some(function(e){return r.compareLine(t,e,1,!0)})},n)}return!1},r.prototype.compareFeature=function(t,e){return!(t.id!==e.id||!this.objectComparator(t.properties,e.properties)||!this.compareBBox(t,e))&&this.compare(t.geometry,e.geometry)},r.prototype.compareBBox=function(t,e){return!!(!t.bbox&&!e.bbox||t.bbox&&e.bbox&&this.compareCoord(t.bbox,e.bbox))},r.prototype.removePseudo=function(t){return t},t.exports=r},5075:function(t,e,o){var n=o(2180),r=o(2264),i=o(5277),l=o(3172).Z,a=i.featureEach,s=(i.coordEach,r.polygon,r.featureCollection);function u(t){var e=new n(t);return e.insert=function(t){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:l(t),n.prototype.insert.call(this,t)},e.load=function(t){var e=[];return Array.isArray(t)?t.forEach(function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:l(t),e.push(t)}):a(t,function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:l(t),e.push(t)}),n.prototype.load.call(this,e)},e.remove=function(t,e){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:l(t),n.prototype.remove.call(this,t,e)},e.clear=function(){return n.prototype.clear.call(this)},e.search=function(t){var e=n.prototype.search.call(this,this.toBBox(t));return s(e)},e.collides=function(t){return n.prototype.collides.call(this,this.toBBox(t))},e.all=function(){var t=n.prototype.all.call(this);return s(t)},e.toJSON=function(){return n.prototype.toJSON.call(this)},e.fromJSON=function(t){return n.prototype.fromJSON.call(this,t)},e.toBBox=function(t){var e;if(t.bbox)e=t.bbox;else if(Array.isArray(t)&&4===t.length)e=t;else if(Array.isArray(t)&&6===t.length)e=[t[0],t[1],t[3],t[4]];else if("Feature"===t.type)e=l(t);else{if("FeatureCollection"!==t.type)throw new Error("invalid geojson");e=l(t)}return{minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}},e}t.exports=u,t.exports.default=u},6893:function(t,e,o){"use strict";function n(t){"@babel/helpers - typeof";return(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})(t)}var r=SyntaxError,i=Function,l=TypeError,a=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var u=function(){throw new l},p=s?function(){try{return arguments.callee,u}catch(t){try{return s(arguments,"callee").get}catch(t){return u}}}():u,c=o(5990)(),f=Object.getPrototypeOf||function(t){return t.__proto__},h={},g="undefined"==typeof Uint8Array?void 0:f(Uint8Array),P={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":c?f([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?f(f([][Symbol.iterator]())):void 0,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":n(JSON))?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&c?f((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&c?f((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?f(""[Symbol.iterator]()):void 0,"%Symbol%":c?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":p,"%TypedArray%":g,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=o(5246),d=o(7751),b=S.call(Function.call,Array.prototype.concat),m=S.call(Function.apply,Array.prototype.splice),v=S.call(Function.call,String.prototype.replace),M=S.call(Function.call,String.prototype.slice),A=S.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,L=function(t,e){var o,n=t;if(d(y,n)&&(n="%"+(o=y[n])[0]+"%"),d(P,n)){var i=P[n];if(i===h&&(i=function t(e){var o;if("%AsyncFunction%"===e)o=a("async function () {}");else if("%GeneratorFunction%"===e)o=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)o=a("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(o=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var r=t("%AsyncGenerator%");r&&(o=f(r.prototype))}return P[e]=o,o}(n)),void 0===i&&!e)throw new l("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new r("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new l('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/g,t))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=function(t){var e=M(t,0,1),o=M(t,-1);if("%"===e&&"%"!==o)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===o&&"%"!==e)throw new r("invalid intrinsic syntax, expected opening `%`");var n=[];return v(t,O,function(t,e,o,r){n[n.length]=o?v(r,_,"$1"):e||t}),n}(t),n=o.length>0?o[0]:"",i=L("%"+n+"%",e),a=i.name,u=i.value,p=!1,c=i.alias;c&&(n=c[0],m(o,b([0,1],c)));for(var f=1,h=!0;f=o.length){var w=s(u,g);u=(h=!!w)&&"get"in w&&!("originalValue"in w.get)?w.get:u[g]}else h=d(u,g),u=u[g];h&&!p&&(P[a]=u)}}return u}},2579:function(t,e,o){"use strict";var n=o(6893)("%Object.defineProperty%",!0),r=function(){if(n)try{return n({},"a",{value:1}),!0}catch(t){return!1}return!1};r.hasArrayLengthDefineBug=function(){if(!r())return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=r},5990:function(t,e,o){"use strict";function n(t){"@babel/helpers - typeof";return(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})(t)}var r="undefined"!=typeof Symbol&&Symbol,i=o(3031);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"===n(r("foo"))&&("symbol"===n(Symbol("bar"))&&i())))}},3031:function(t){"use strict";function e(t){"@babel/helpers - typeof";return(e="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})(t)}t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===e(Symbol.iterator))return!0;var t={},o=Symbol("test"),n=Object(o);if("string"==typeof o)return!1;if("[object Symbol]"!==Object.prototype.toString.call(o))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(o in t[o]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==o)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,o))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,o);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},5994:function(t,e,o){"use strict";var n=o(3031);t.exports=function(){return n()&&!!Symbol.toStringTag}},7751:function(t,e,o){"use strict";var n=o(5246);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},2755:function(t,e,o){"use strict";function n(t){"@babel/helpers - typeof";return(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})(t)}var r=o(5994)(),i=o(8780)("Object.prototype.toString"),l=function(t){return!(r&&t&&"object"===n(t)&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},a=function(t){return!!l(t)||null!==t&&"object"===n(t)&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},s=function(){return l(arguments)}();l.isLegacyArguments=a,t.exports=s?l:a},5052:function(t,e,o){"use strict";function n(t){"@babel/helpers - typeof";return(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})(t)}var r=Date.prototype.getDay,i=Object.prototype.toString,l=o(5994)();t.exports=function(t){return"object"===n(t)&&null!==t&&(l?function(t){try{return r.call(t),!0}catch(t){return!1}}(t):"[object Date]"===i.call(t))}},2975:function(t,e,o){"use strict";function n(t){"@babel/helpers - typeof";return(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})(t)}var r,i,l,a,s=o(8780),u=o(5994)();if(u){r=s("Object.prototype.hasOwnProperty"),i=s("RegExp.prototype.exec"),l={};var p=function(){throw l};a={toString:p,valueOf:p},"symbol"===n(Symbol.toPrimitive)&&(a[Symbol.toPrimitive]=p)}var c=s("Object.prototype.toString"),f=Object.getOwnPropertyDescriptor;t.exports=u?function(t){if(!t||"object"!==n(t))return!1;var e=f(t,"lastIndex");if(!(e&&r(e,"value")))return!1;try{i(t,a)}catch(t){return t===l}}:function(t){return!(!t||"object"!==n(t)&&"function"!=typeof t)&&"[object RegExp]"===c(t)}},5535:function(t){"use strict";var e=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},o=0;o<10;o++)e["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,r){for(var i,l,a=function(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),s=1;s0&&!i.call(t,0))for(var y=0;y0)for(var S=0;S=0&&"[object Function]"===o.call(t.callee)),r}},7417:function(t){t.exports=function(t,e,o,n){var r=t[0],i=t[1],l=!1;void 0===o&&(o=0),void 0===n&&(n=e.length);for(var a=(n-o)/2,s=0,u=a-1;si!=h>i&&r<(f-p)*(i-c)/(h-c)+p&&(l=!l)}return l}},1516:function(t,e,o){var n=o(7417),r=o(2555);t.exports=function(t,e,o,i){return e.length>0&&Array.isArray(e[0])?r(t,e,o,i):n(t,e,o,i)},t.exports.nested=r,t.exports.flat=n},2555:function(t){t.exports=function(t,e,o,n){var r=t[0],i=t[1],l=!1;void 0===o&&(o=0),void 0===n&&(n=e.length);for(var a=n-o,s=0,u=a-1;si!=h>i&&r<(f-p)*(i-c)/(h-c)+p&&(l=!l)}return l}},2180:function(t,e,o){"use strict";function n(t,e,o,n,l){!function t(e,o,n,i,l){for(;i>n;){if(i-n>600){var a=i-n+1,s=o-n+1,u=Math.log(a),p=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*p*(a-p)/a)*(s-a/2<0?-1:1),f=Math.max(n,Math.floor(o-s*p/a+c)),h=Math.min(i,Math.floor(o+(a-s)*p/a+c));t(e,o,f,h,l)}var g=e[o],P=n,y=i;for(r(e,n,o),l(e[i],g)>0&&r(e,n,i);P0;)y--}0===l(e[n],g)?r(e,n,y):r(e,++y,i),y<=o&&(n=y+1),o<=y&&(i=y-1)}}(t,e,o||0,n||t.length-1,l||i)}function r(t,e,o){var n=t[e];t[e]=t[o],t[o]=n}function i(t,e){return te?1:0}function l(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o0&&void 0!==arguments[0]?arguments[0]:9;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}var e,o,n;return e=t,(o=[{key:"all",value:function(){return this._all(this.data,[])}},{key:"search",value:function(t){var e=this.data,o=[];if(!b(t,e))return o;for(var n=this.toBBox,r=[];e;){for(var i=0;i=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(n,r,e)}},{key:"_split",value:function(t,e){var o=t[e],n=o.children.length,r=this._minEntries;this._chooseSplitAxis(o,r,n);var i=this._chooseSplitIndex(o,r,n),l=m(o.children.splice(i,o.children.length-i));l.height=o.height,l.leaf=o.leaf,c(o,this.toBBox),c(l,this.toBBox),e?t[e-1].children.push(l):this._splitRoot(o,l)}},{key:"_splitRoot",value:function(t,e){this.data=m([t,e]),this.data.height=t.height+1,this.data.leaf=!1,c(this.data,this.toBBox)}},{key:"_chooseSplitIndex",value:function(t,e,o){for(var n,r,i,l,a,s,u,p=1/0,c=1/0,h=e;h<=o-e;h++){var g=f(t,0,h,this.toBBox),P=f(t,h,o,this.toBBox),S=(r=g,i=P,void 0,void 0,void 0,void 0,l=Math.max(r.minX,i.minX),a=Math.max(r.minY,i.minY),s=Math.min(r.maxX,i.maxX),u=Math.min(r.maxY,i.maxY),Math.max(0,s-l)*Math.max(0,u-a)),d=y(g)+y(P);S=e;p--){var c=t.children[p];h(l,t.leaf?r(c):c),a+=S(l)}return a}},{key:"_adjustParentBBoxes",value:function(t,e,o){for(var n=o;n>=0;n--)h(e[n],t)}},{key:"_condense",value:function(t){for(var e,o=t.length-1;o>=0;o--)0===t[o].children.length?o>0?(e=t[o-1].children).splice(e.indexOf(t[o]),1):this.clear():c(t[o],this.toBBox)}}])&&s(e.prototype,o),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function p(t,e,o){if(!o)return e.indexOf(t);for(var n=0;n=t.minX&&e.maxY>=t.minY}function m(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(t,e,o,r,i){for(var l=[e,o];l.length;)if(!((o=l.pop())-(e=l.pop())<=r)){var a=e+Math.ceil((o-e)/r/2)*r;n(t,a,e,o,i),l.push(e,a,a,o)}}},2095:function(t,e,o){"use strict";var n=o(659).functionsHaveConfigurableNames(),r=Object,i=TypeError;t.exports=function(){if(null!=this&&this!==r(this))throw new i("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.sticky&&(t+="y"),t},n&&Object.defineProperty&&Object.defineProperty(t.exports,"name",{value:"get flags"})},7207:function(t,e,o){"use strict";var n=o(7921),r=o(3862),i=o(2095),l=o(9266),a=o(5521),s=r(l());n(s,{getPolyfill:l,implementation:i,shim:a}),t.exports=s},9266:function(t,e,o){"use strict";var n=o(2095),r=o(7921).supportsDescriptors,i=Object.getOwnPropertyDescriptor;t.exports=function(){if(r&&"gim"===/a/gim.flags){var t=i(RegExp.prototype,"flags");if(t&&"function"==typeof t.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var e="",o={};if(Object.defineProperty(o,"hasIndices",{get:function(){e+="d"}}),Object.defineProperty(o,"sticky",{get:function(){e+="y"}}),"dy"===e)return t.get}}return n}},5521:function(t,e,o){"use strict";var n=o(7921).supportsDescriptors,r=o(9266),i=Object.getOwnPropertyDescriptor,l=Object.defineProperty,a=TypeError,s=Object.getPrototypeOf,u=/a/;t.exports=function(){if(!n||!s)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=r(),e=s(u),o=i(e,"flags");return o&&o.get===t||l(e,"flags",{configurable:!0,enumerable:!1,get:t}),t}},5081:function(t,e){var o,n,r,i;function l(t){"@babel/helpers - typeof";return(l="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})(t)}i=function(t){"use strict";var e=134217729;function o(t,e,o,n,r){var i,l,a,s,u=e[0],p=n[0],c=0,f=0;p>u==p>-u?(i=u,u=e[++c]):(i=p,p=n[++f]);var h=0;if(cu==p>-u?(a=i-((l=u+i)-u),u=e[++c]):(a=i-((l=p+i)-p),p=n[++f]),i=l,0!==a&&(r[h++]=a);cu==p>-u?(a=i-((l=i+u)-(s=l-i))+(u-s),u=e[++c]):(a=i-((l=i+p)-(s=l-i))+(p-s),p=n[++f]),i=l,0!==a&&(r[h++]=a);for(;c0!=g>0)return P;var y=Math.abs(h+g);return Math.abs(P)>=3.3306690738754716e-16*y?P:-function(t,n,u,p,c,f,h){var g,P,y,S,d,b,m,v,M,A,O,_,L,w,x,U,E,T,V=t-c,R=u-c,I=n-f,C=p-f;d=(x=(v=V-(m=(b=e*V)-(b-V)))*(A=C-(M=(b=e*C)-(b-C)))-((w=V*C)-m*M-v*M-m*A))-(O=x-(E=(v=I-(m=(b=e*I)-(b-I)))*(A=R-(M=(b=e*R)-(b-R)))-((U=I*R)-m*M-v*M-m*A))),r[0]=x-(O+d)+(d-E),d=(L=w-((_=w+O)-(d=_-w))+(O-d))-(O=L-U),r[1]=L-(O+d)+(d-U),d=(T=_+O)-_,r[2]=_-(T-d)+(O-d),r[3]=T;var j=function(t,e){for(var o=e[0],n=1;n<4;n++)o+=e[n];return o}(0,r),N=2.2204460492503146e-16*h;if(j>=N||-j>=N)return j;if(g=t-(V+(d=t-V))+(d-c),y=u-(R+(d=u-R))+(d-c),P=n-(I+(d=n-I))+(d-f),S=p-(C+(d=p-C))+(d-f),0===g&&0===P&&0===y&&0===S)return j;if(N=1.1093356479670487e-31*h+3.3306690738754706e-16*Math.abs(j),(j+=V*S+C*g-(I*y+R*P))>=N||-j>=N)return j;d=(x=(v=g-(m=(b=e*g)-(b-g)))*(A=C-(M=(b=e*C)-(b-C)))-((w=g*C)-m*M-v*M-m*A))-(O=x-(E=(v=P-(m=(b=e*P)-(b-P)))*(A=R-(M=(b=e*R)-(b-R)))-((U=P*R)-m*M-v*M-m*A))),s[0]=x-(O+d)+(d-E),d=(L=w-((_=w+O)-(d=_-w))+(O-d))-(O=L-U),s[1]=L-(O+d)+(d-U),d=(T=_+O)-_,s[2]=_-(T-d)+(O-d),s[3]=T;var D=o(4,r,4,s,i);d=(x=(v=V-(m=(b=e*V)-(b-V)))*(A=S-(M=(b=e*S)-(b-S)))-((w=V*S)-m*M-v*M-m*A))-(O=x-(E=(v=I-(m=(b=e*I)-(b-I)))*(A=y-(M=(b=e*y)-(b-y)))-((U=I*y)-m*M-v*M-m*A))),s[0]=x-(O+d)+(d-E),d=(L=w-((_=w+O)-(d=_-w))+(O-d))-(O=L-U),s[1]=L-(O+d)+(d-U),d=(T=_+O)-_,s[2]=_-(T-d)+(O-d),s[3]=T;var B=o(D,i,4,s,l);d=(x=(v=g-(m=(b=e*g)-(b-g)))*(A=S-(M=(b=e*S)-(b-S)))-((w=g*S)-m*M-v*M-m*A))-(O=x-(E=(v=P-(m=(b=e*P)-(b-P)))*(A=y-(M=(b=e*y)-(b-y)))-((U=P*y)-m*M-v*M-m*A))),s[0]=x-(O+d)+(d-E),d=(L=w-((_=w+O)-(d=_-w))+(O-d))-(O=L-U),s[1]=L-(O+d)+(d-U),d=(T=_+O)-_,s[2]=_-(T-d)+(O-d),s[3]=T;var Y=o(B,l,4,s,a);return a[Y-1]}(t,n,u,p,c,f,y)},t.orient2dfast=function(t,e,o,n,r,i){return(e-i)*(o-r)-(t-r)*(n-i)},Object.defineProperty(t,"__esModule",{value:!0})},"object"==l(e)?i(e):(n=[e],void 0===(r="function"==typeof(o=i)?o.apply(e,n):o)||(t.exports=r))},4113:function(t){"use strict";t.exports={eudist:function(t,e,o){for(var n=t.length,r=0,i=0;i0;n.length0;){var a=t[Math.floor(Math.random()*i)],s=l?a.join("_"):""+a;o[s]||(o[s]=!0,n.push(a))}if(n.length0,s=t[Math.floor(Math.random()*l)];a&&s.join("_");for(n.push(s);n.length0,d=[];if(o)r="kmrand"==o?l(t,e):"kmpp"==o?a(t,e):o;else for(var b={};r.length0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e,this.length=this.data.length,this.compare=o,this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)}var e,o,r;return e=t,(o=[{key:"push",value:function(t){this.data.push(t),this.length++,this._up(this.length-1)}},{key:"pop",value:function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}}},{key:"peek",value:function(){return this.data[0]}},{key:"_up",value:function(t){for(var e=this.data,o=this.compare,n=e[t];t>0;){var r=t-1>>1,i=e[r];if(o(n,i)>=0)break;e[t]=i,t=r}e[t]=n}},{key:"_down",value:function(t){for(var e=this.data,o=this.compare,n=this.length>>1,r=e[t];t=0)break;e[t]=l,t=i}e[t]=r}}])&&n(e.prototype,o),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function i(t,e){return te?1:0}}},e={};function o(n){var r=e[n];if(void 0!==r)return r.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,o),i.exports}o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){"use strict";function t(e){"@babel/helpers - typeof";return(t="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)}function e(t,e){for(var o=0;oSuperMapAlgoPlot.PlottingUtil.distance(r,o)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,o){var n=o.slice();n[0].x===n[n.length-1].x&&n[0].y===n[n.length-1].y||n.push(n[0]);for(var r,i=[],l=0;le.x)for(var c=0;ci[f+1].x&&(r=i[f],i[f]=i[f+1],i[f+1]=r);else if(t.y>e.y)for(var h=0;hi[g+1].y&&(r=i[g],i[g]=i[g+1],i[g+1]=r);return i}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){for(var r=0,i=-1,l=null,a=0;a1&&(f=1),this.scaleValues[0]=f}if(1===t){var h=this.scaleValues[0]*n,g=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,h);if(-1===g.index)return;var P=SuperMapAlgoPlot.PlottingUtil.distance(g.pt,e)/n;P>.4&&(P=.4),this.scaleValues[1]=P}}}}])&&e(o.prototype,i),l&&e(o,l),Object.defineProperty(o,"prototype",{writable:!1}),s}();function a(t){"@babel/helpers - typeof";return(a="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})(t)}function s(t,e){for(var o=0;o1&&(y.push(S),S=[]):S.push(a[d]);S.length>1&&y.push(S),S=[];for(var b=0;bthis.scaleValues.length)return;var n,r,i,l,a,s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),u=(SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),new SuperMapAlgoPlot.Point(e.x,e.y));if(0===t){var p=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),c=SuperMapAlgoPlot.PlottingUtil.distance(p,u);r=2*c/s,this.scaleValues[1]=r}else if(1===t)p=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),n=(c=SuperMapAlgoPlot.PlottingUtil.distance(p,u))/s,this.scaleValues[0]=n;else if(2==t){var f=-1,h=0;a=new SuperMapAlgoPlot.Point(0,0),n=this.scaleValues[0],r=this.scaleValues[1];(A=this.getCurvePts(o,n,r)).scalePt;for(var g=A.pt,P=0;Pb&&(f=P,a=d,h=b)}}if(-1==f||f>g.length-1)return;l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(g);for(var m=[],v=0;vl)return;i=M/l,this.scaleValues[2]=i}else if(3===t){n=this.scaleValues[0],r=this.scaleValues[1],i=this.scaleValues[2];(A=this.getCurvePts(o,n,r)).scalePt,g=A.pt;var A,O=(l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(g))*i;if(-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,O)).index)return;var _=SuperMapAlgoPlot.PlottingUtil.distance(a.pt,e)/s;_>.4&&(_=.4),this.scaleValues[3]=_}}}},{key:"getCurvePts",value:function(t,e,o){for(var n,r=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(r),l=i*e,a=i*o/2,s=[],u=[],p=r[0],c=!1,f=r[0],h=1;h1&&0===d?this.ClearCurvePts2D(f,p,g,u,b,s):s.concat(b),u=(u=[]).concat(b),f=p,p=y}h===r.length-1&&(y=r[r.length-1],b=this.GetCosPts2D(p,y,l,a),s=u.length>1&&b.length>1?this.ClearCurvePts2D(f,p,g,u,b,s):s.concat(b))}}return{pt:s,scalePt:n}}},{key:"GetCosPts2D",value:function(t,e,o,n){for(var r=[],i=SuperMapAlgoPlot.PlottingUtil.distance(t,e),l=o/30,a=0;a1-h&&(f=1-h),this.scaleValues[0]=f}if(1==t){var g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r*this.scaleValues[0],o),P=SuperMapAlgoPlot.PlottingUtil.distance(g.pts,e)/r;P>=.3&&(P=.3),this.scaleValues[0]

1-P/2?(this.scaleValues[0]

SuperMapAlgoPlot.PlottingUtil.distance(r,o)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,o){var n=o.slice();n[0].x===n[n.length-1].x&&n[0].y===n[n.length-1].y||n.push(n[0]);for(var r=[],i=0;ie.x){for(var p=0;pr[f+1].x){c=r[f];r[f]=r[f+1],r[f+1]=c}}else if(t.y>e.y){for(var h=0;hr[g+1].y){c=r[g];r[g]=r[g+1],r[g+1]=c}return r}}])&&g(e.prototype,o),n&&g(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function b(t){"@babel/helpers - typeof";return(b="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})(t)}function m(t,e){for(var o=0;o=i)return;this.scaleValues=[];var l=SuperMapAlgoPlot.PlottingUtil.distance(o,n)/i;this.scaleValues.push(l);var a=180*SuperMapAlgoPlot.PlottingUtil.radian(o,n)/Math.PI;a>90?a-=90:a=270+a,this.scaleValues.push(a*(Math.PI/180));var s=180*SuperMapAlgoPlot.PlottingUtil.radian(o,r)/Math.PI;s>90?s-=90:s=270+s,this.scaleValues.push(s*(Math.PI/180)),e=this.scaleValues[0]*i;var u=this.scaleValues[1]*(180/Math.PI)+90,p=this.scaleValues[2]*(180/Math.PI)+90;u=p;h-=4)c=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,h),f.push(c);h!=p&&(c=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,p),f.push(c)),this.controlPoints[2]=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,p),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f)}this.finish()}}}])&&m(e.prototype,o),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function _(t){"@babel/helpers - typeof";return(_="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})(t)}function L(t,e){for(var o=0;o.3||r<=0)&&(r=.3),this.scaleValues[2]=r,this.scaleValues[0]=.5*this.scaleValues[2]}for(var i=this.scaleValues[0]*n,l=this.scaleValues[1],a=this.scaleValues[2]*n,s=.5*i,u=o-2*a-2*s,p=a,c=0;c<2;c++){var f=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(p,e);if(-1!==f.index){var h=p+s,g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(h,e);if(-1!==g.index){var P=[],y=[];if(P.push(f.pts),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e[f.index].x,f.pts.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e[f.index].y,f.pts.y)&&f.index+1.7&&(y=.7),this.scaleValues[2]=y}}}}])&&L(e.prototype,o),n&&L(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function T(t){"@babel/helpers - typeof";return(T="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})(t)}function V(t,e){for(var o=0;o.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[2]=e}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=this.scaleValues[0],r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=n*r,l=this.scaleValues[2]*r,a=!1;if(a=0===this.scaleValues[1],0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(o)){for(var s=[],u=[],p=0,c=[],f=0;f0&&(c.push(o[f]),u.push(c),c=[]),p++),c.push(o[f]);for(var h=0;h=1)return;this.scaleValues[2]=y}}}}])&&G(e.prototype,o),n&&G(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function K(t){"@babel/helpers - typeof";return(K="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})(t)}function J(t,e){for(var o=0;o.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[2]=e}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=this.scaleValues[0],r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=n*r,l=this.scaleValues[2]*r,a=!1;if(a=0===this.scaleValues[1],0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(o)){for(var s=[],u=[],p=0,c=[],f=0;f0&&(c.push(o[f]),u.push(c),c=[]),p++),c.push(o[f]);for(var h=l,g=0;g.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[2]=e}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=this.scaleValues[0],r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=n*r,l=this.scaleValues[2]*r,a=!1;if(a=0===this.scaleValues[1],0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(o)){for(var s=[],u=[],p=0,c=[],f=0;f0&&(c.push(o[f]),u.push(c),c=[]),p++),c.push(o[f]);for(var h=l,g=0;g.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[2]=e}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=this.scaleValues[0],r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=n*r,l=this.scaleValues[2]*r,a=!1;if(a=0===this.scaleValues[1],0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(o)){for(var s=[],u=[],p=0,c=[],f=0;f0&&(c.push(o[f]),u.push(c),c=[]),p++),c.push(o[f]);for(var h=l,g=0;g0&&(e.scaleValues.push(.029615),e.scaleValues.push(1),e.scaleValues.push(.12)),e}return e=i,(o=[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[2]=e}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=this.scaleValues[0],r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=n*r,l=this.scaleValues[2]*r,a=!1;if(a=0===this.scaleValues[1],0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(o)){for(var s=[],u=[],p=0,c=[],f=0;f0&&(c.push(o[f]),u.push(c),c=[]),p++),c.push(o[f]);for(var h=l,g=0;g.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[2]=e}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=this.scaleValues[0],r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=n*r,l=this.scaleValues[2]*r,a=!1;if(a=0===this.scaleValues[1],0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(o)){for(var s=[],u=[],p=0,c=[],f=0;f0&&(c.push(o[f]),u.push(c),c=[]),p++),c.push(o[f]);for(var h=l,g=0;g=this.minEditPts){if(!this.isEdit){var e=this.getSubSymbolScaleValue();(e>.3||e<=0)&&(e=.3),this.scaleValues[0]=1.6*this.getSubSymbolScaleValue(),this.scaleValues[2]=this.getSubSymbolScaleValue()}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=this.scaleValues[0],r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=n*r,l=.6*i,a=this.scaleValues[2]*r,s=!1;s=0===this.scaleValues[1];var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===u)return;for(var p=[],c=0;c<=u;c+=a){var f=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,c);if(!(f.index<0)&&(p.push(f.pt),!((f=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,c+.65*a)).index<0))){var h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*l,o[f.index+1],f.pt);s?p.push(h.pntLeft):p.push(h.pntRight),(f=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,c+.8*a)).index<0||(h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*i,o[f.index+1],f.pt),s?p.push(h.pntLeft):p.push(h.pntRight),(f=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,c+.5*a)).index<0||(h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,o[f.index+1],f.pt),s?p.push(h.pntLeft):p.push(h.pntRight),(f=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,c+.2*a)).index<0||(h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*i,o[f.index+1],f.pt),s?p.push(h.pntLeft):p.push(h.pntRight),(f=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,c+.35*a)).index<0||(h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*l,o[f.index+1],f.pt),s?p.push(h.pntLeft):p.push(h.pntRight),(f=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,c+a)).index<0||(p.push(f.pt),c>=u&&p.push(o[o.length-1]))))))}}this.scalePoints=[];var g=new SuperMapAlgoPlot.Point(p[3].x,p[3].y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g);var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,a);-1!=P.index&&this.addScalePoint(P.pt);var y=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(p);SuperMapAlgoPlot.PlottingUtil.clearSamePts(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=1)return;this.scaleValues[2]=y}}}}])&&Lt(e.prototype,o),n&&Lt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Tt(t){"@babel/helpers - typeof";return(Tt="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})(t)}function Vt(t,e){for(var o=0;o0?new SuperMapAlgoPlot.Point(b.pntLeft.x,b.pntLeft.y):new SuperMapAlgoPlot.Point(b.pntRight.x,b.pntRight.y);var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(f,d,S.pt),v=[];if(v.push(m.pntRight),v.push(d),v.push(m.pntLeft),0===y){var M=new SuperMapAlgoPlot.Point(d.x,d.y);M.isScalePoint=!0,M.tag=0,this.scalePoints.push(M)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,v,{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 o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),n=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[0]=n?-1:1}}}])&&Dt(e.prototype,o),n&&Dt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function zt(t){"@babel/helpers - typeof";return(zt="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})(t)}function Gt(t,e){for(var o=0;o=2&&this.controlPoints.length0||h.length>0)&&(o=!0),f=[],h=[];for(var m=new SuperMapAlgoPlot.Point(r,e.y),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,10,10,45),M=SuperMapAlgoPlot.PlottingUtil.circlePoint(m,10,10,135),A=0;A0||h.length>0)&&(o=!0),n-=.8,r+=.8}this.finish()}}}},{key:"sortPts2D",value:function(t){for(var e,o=0;ot[n+1].y&&(e=t[n],t[n]=t[n+1],t[n+1]=tempPt11):t[n].x>t[n+1].x&&(e=t[n],t[n]=t[n+1],t[n+1]=e);return t}}])&&Jt(e.prototype,o),n&&Jt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ee(t){"@babel/helpers - typeof";return(ee="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})(t)}function oe(t,e){for(var o=0;o.9&&(this.scaleValues[1]=.9)}}}}])&&se(e.prototype,o),n&&se(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function he(t){"@babel/helpers - typeof";return(he="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})(t)}function ge(t,e){for(var o=0;on-n*this.scaleValues[0]-i&&(this.scaleValues[1]=(n-n*this.scaleValues[0]-i)/n)}}}}])&&me(e.prototype,o),n&&me(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function _e(t){"@babel/helpers - typeof";return(_e="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})(t)}function Le(t,e){for(var o=0;o=this.minEditPts){var t,e=[];if(2===this.controlPoints.length){for(var o=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]),n=this.scaleValues[0]*o,r=SuperMapAlgoPlot.PlottingUtil.parallel(this.controlPoints,n/2),i=SuperMapAlgoPlot.PlottingUtil.parallel(this.controlPoints,-n/2),l=180*SuperMapAlgoPlot.PlottingUtil.radian(this.controlPoints[0],this.controlPoints[1])/Math.PI,a=[],s=l+90;s<=l+270;s+=10)t=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],n/2,n/2,s),a.push(t);for(var u=[],p=l-90;p<=l+90;p+=10)t=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[1],n/2,n/2,p),u.push(t);e=(e=(e=(e=e.concat(a)).concat(i)).concat(u)).concat(r)}else this.controlPoints.length<=3?e=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,this.controlPoints):this.controlPoints.length>3&&!0===this.polylineConnectLocationPoint?e=this.controlPoints:(this.controlPoints.push(this.controlPoints[0]),e=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(this.controlPoints));e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var c=e[0].x,f=e[0].x,h=e[0].y,g=e[0].y;for(s=0;se[s].x&&(c=e[s].x),fe[s].y&&(h=e[s].y),g0||_.length>0)&&(d=!0),O=[],_=[];for(var R=new SuperMapAlgoPlot.Point(m,P.y),I=SuperMapAlgoPlot.PlottingUtil.circlePoint(R,5,5,45),C=SuperMapAlgoPlot.PlottingUtil.circlePoint(R,5,5,135),j=0;j0||_.length>0)&&(d=!0),b-=y,m+=y}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e,o=0;ot[n+1].y&&(e=t[n],t[n]=t[n+1],t[n+1]=e):t[n].x>t[n+1].x&&(e=t[n],t[n]=t[n+1],t[n+1]=e);return t}}])&&Le(e.prototype,o),n&&Le(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Te(t){"@babel/helpers - typeof";return(Te="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})(t)}function Ve(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),n=e[0].x,r=e[0].x,i=e[0].y,l=e[0].y,a=[],s=0;se[s].x&&(n=e[s].x),re[s].y&&(i=e[s].y),l0&&(S=.015*o,this.computeSubSymbol(this.subSymbols[0],d,S,0)),g++):(g=0,this.subSymbols.length>0&&(S=.022*o,this.computeSubSymbol(this.subSymbols[1],d,S,0)))}this.finish()}}}}])&&Ge(e.prototype,o),n&&Ge(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ke(t){"@babel/helpers - typeof";return(Ke="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})(t)}function Je(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=e[0].x,n=e[0].x,r=e[0].y,i=e[0].y,l=[],a=0;ae[a].x&&(o=e[a].x),ne[a].y&&(r=e[a].y),i=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=e[0].x,n=e[0].x,r=e[0].y,i=e[0].y,l=0;le[l].x&&(o=e[l].x),ne[l].y&&(r=e[l].y),i=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=e[0].x,n=e[0].x,r=e[0].y,i=e[0].y,l=0;le[l].x&&(o=e[l].x),ne[l].y&&(r=e[l].y),in)return o;for(var r=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),i=2*parseInt(n/(1.5*e)),l=0;l0&&o.push(r),o}}])&&vo(e.prototype,o),n&&vo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Lo(t){"@babel/helpers - typeof";return(Lo="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})(t)}function wo(t,e){for(var o=0;o2*o.length-2)return;for(var n=0,r=0;r.4&&(s=.4),this.isEdit=!0,2==o.length?this.scaleValues[0]=s:this.scaleValues[2*t]=s}else{var u=-1;u=t%2==0?t/2:(t+1)/2,this.isEdit=!0;var p=(e.x-o[u].x)/n,c=(e.y-o[u].y)/n;this.scaleValues[2*t]=p,this.scaleValues[2*t+1]=c}}}}])&&wo(e.prototype,o),n&&wo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Vo(t){"@babel/helpers - typeof";return(Vo="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})(t)}function Ro(t,e){for(var o=0;o.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[1]=.1*e}this.components.length=0,this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var o=this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),r=n*o,i=n*this.scaleValues[1];r<2*i&&(i=.5*r);for(var l={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},a=0,s=r;s(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length)return;for(var n,r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=-1,l=0,a=0;ap&&(i=a,n=u.projectPoint,l=p)}}if(-1==i||i>o.length-1)return;var c=0;for(a=0;ar)return;var P=c/r;this.scaleValues[0]=P}}}])&&xn(e.prototype,o),n&&xn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Rn(t){"@babel/helpers - typeof";return(Rn="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})(t)}function In(t,e){for(var o=0;oo.length)return;var n=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),r=new SuperMapAlgoPlot.Point(o[1].x,o[1].y),i=SuperMapAlgoPlot.PlottingUtil.distance(n,r);if(0===i)return;var l=new SuperMapAlgoPlot.Point((n.x+r.x)/2,(n.y+r.y)/2);if(0===t){var a=SuperMapAlgoPlot.PlottingUtil.distance(e,l)/i;this.scaleValues[0]=a,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(n,r,e)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}}])&&In(e.prototype,o),n&&In(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Bn(t){"@babel/helpers - typeof";return(Bn="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})(t)}function Yn(t,e){for(var o=0;o=2?this.addArrow(a[u],this.scaleValues[0]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[0]));var p=e[e.length-2],c=180*SuperMapAlgoPlot.PlottingUtil.radian(r,p)/Math.PI,f=o*this.scaleValues[0],h=SuperMapAlgoPlot.PlottingUtil.circlePoint(e[e.length-2],f,f,c+180);h.isScalePoint=!0,h.tag=0,this.scalePoints.push(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),i=o[o.length-1],l=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t){var a=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/r;if(.5=2?this.addArrow(y[d],this.scaleValues[4]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[4]));this.addScalePoint(c,0);var b=[];b.push(c),b.push(h.pts);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,b,{lineTypeLimit:!0,surroundLineLimit:!0});a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[4];var m=SuperMapAlgoPlot.PlottingUtil.linePnt(e[e.length-1],e[e.length-2],a);this.addScalePoint(m,0),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(0===t){for(var i=0,l=-1,a=0;a.3||o<=0)&&(o=.3),this.scaleValues[0]=.5*o,this.scaleValues[1]=o,this.scaleValues[this.scaleValues.length-1]=.5*this.getSubSymbolScaleValue()}for(var n=this.mergeDashLine(this.dashLines,[]),r=this.computeDashLine(n,e),i=0;i=2?this.addArrow(r[l],this.scaleValues[3]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[3]));for(var a=this.scaleValues[0],s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),u=a*s,p=this.scaleValues[1]*s,c=0,f=.01*s,h=f,g=0;h<=s;h+=p,g++){c=h+f;var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,c);if(-1===P.index)return;var y=[],S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,e[P.index],P.pt);y.push(new SuperMapAlgoPlot.Point(S.pntLeft.x,S.pntLeft.y)),y.push(new SuperMapAlgoPlot.Point(S.pntRight.x,S.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0}),0===g?this.addScalePoint(y[0],0):1===g&&this.addScalePoint(P.pt,1)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=.01*r;if(0===t){var l=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,i);if(-1===l.index)return;var a=SuperMapAlgoPlot.PlottingUtil.distance(e,l.pt);this.scaleValues[0]=a/r}else if(1===t){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,i);if(-1===s.index)return;var u=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,n);if(-1===u.index)return;for(var p=0,c=s.index+1;c.93&&(this.scaleValues[1]=.93)}}}}])&&Qn(e.prototype,o),n&&Qn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function nr(t){"@babel/helpers - typeof";return(nr="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})(t)}function rr(t,e){for(var o=0;o.3||o<=0)&&(o=.3),this.scaleValues[1]=o,this.scaleValues[2]=.5*o}var n=this.getLinePts(e,this.scaleValues[1],this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.dirAngle(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,l=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.addSubSymbols(r,l,i);for(var a=[],s=0;s<=n.startIndex;s++)a.push(e[s]);a.push(n.startPt);var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),p=[];p.push(0),p.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,n.startPt)/u),p.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,n.endPt)/u),p.push(1);for(var c=this.mergeDashLine(this.dashLines,p),f=this.computeDashLine(c,e),h=0;h0&&this.computeSubSymbol(this.subSymbols[0],t,e,o-180)}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length1-f-this.scaleValues[2]&&(c=1-f-this.scaleValues[2]),this.scaleValues[0]=c}else if(1===t){var h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r*this.scaleValues[0],n),g=SuperMapAlgoPlot.PlottingUtil.distance(h.pts,e)/r;g>=.3&&(g=.3),this.scaleValues[0]1-g-this.scaleValues[2]?(this.scaleValues[0]0&&this.computeSubSymbol(this.subSymbols[0],t,e,o-90)}}])&&yr(e.prototype,o),n&&yr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function vr(t){"@babel/helpers - typeof";return(vr="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})(t)}function Mr(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],t,e,o-90)}}])&&Mr(e.prototype,o),n&&Mr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function wr(t){"@babel/helpers - typeof";return(wr="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})(t)}function xr(t,e){for(var o=0;oo.length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n;this.scaleValues[0]=r}}}])&&xr(e.prototype,o),n&&xr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Rr(t){"@babel/helpers - typeof";return(Rr="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})(t)}function Ir(t,e){for(var o=0;oo.length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n;this.scaleValues[0]=r}}}])&&Ir(e.prototype,o),n&&Ir(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Br(t){"@babel/helpers - typeof";return(Br="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})(t)}function Yr(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[1]=n,this.scaleValues[2]=.5*n}var r=this.getLinePts(e,this.scaleValues[1],this.scaleValues[0]),i=[];i.push(0),i.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,r.startPt)/o),i.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,r.endPt)/o),i.push(1);for(var l=this.mergeDashLine(this.dashLines,i),a=this.computeDashLine(l,e),s=0;s=2?this.addArrow(a[u],this.scaleValues[this.scaleValues.length-1]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[2]));var p,c,f,h,g,P,y,S,d,b,m,v,M,A=r.startPt.clone(),O=r.endPt.clone(),_=new SuperMapAlgoPlot.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),L=SuperMapAlgoPlot.PlottingUtil.distance(A,O),w=SuperMapAlgoPlot.PlottingUtil.radian(A,O)*SuperMapAlgoPlot.PlottingUtil.RTOD;p=new SuperMapAlgoPlot.Point(0,0),c=new SuperMapAlgoPlot.Point(0,0),f=new SuperMapAlgoPlot.Point(0,0),h=new SuperMapAlgoPlot.Point(0,0),g=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0),y=new SuperMapAlgoPlot.Point(0,0),S=new SuperMapAlgoPlot.Point(0,0),d=new SuperMapAlgoPlot.Point(0,0),b=new SuperMapAlgoPlot.Point(0,0),m=new SuperMapAlgoPlot.Point(0,0),v=new SuperMapAlgoPlot.Point(0,0),M=new SuperMapAlgoPlot.Point(0,0),A.x>=O.x?(p.x=.25*L,p.y=.25*-L,c.x=.5*-L,c.y=.25*-L,f.x=.5*-L,f.y=.25*L,h.x=.5*L,h.y=.25*L,g.x=.5*L,g.y=0,P.x=.25*-L,P.y=.125*-L,y.x=0,y.y=.125*L,S.x=0,S.y=.125*-L,d.x=.25*L,d.y=.2*L,b.x=.25*-L,b.y=.25*-L,m.x=.375*-L,m.y=.5*-L,v.x=.02*-L,v.y=.25*-L,M.x=.1*L,M.y=.5*-L):(p.x=.25*L,p.y=.25*L,c.x=.5*-L,c.y=.25*L,f.x=.5*-L,f.y=.25*-L,h.x=.5*L,h.y=.25*-L,g.x=.5*L,g.y=0,P.x=.25*L,P.y=.125*-L,y.x=0,y.y=.125*L,S.x=0,S.y=.125*-L,d.x=.25*-L,d.y=.125*L,b.x=.25*-L,b.y=.25*L,m.x=.375*-L,m.y=.5*L,v.x=.02*L,v.y=.25*L,M.x=.15*L,M.y=.5*L);var x=[],U=[],E=[],T=[],V=[],R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,g,w),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,h,w),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,f,w),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,c,w),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,p,w),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,P,w),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,y,w),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,S,w),k=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,d,w),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,b,w),z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,m,w),G=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,v,w),q=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,M,w);x.push(R),x.push(I),x.push(C),x.push(j),x.push(N),U.push(D),U.push(B),U.push(Y),U.push(k),E.push(F),E.push(z),T.push(G),T.push(q),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,x,{lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,{lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,E,{lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T,{lineTypeLimit:!0,surroundLineLimit:!0},!0);var X=.3*SuperMapAlgoPlot.PlottingUtil.distance(Y,k),W=180*SuperMapAlgoPlot.PlottingUtil.dirAngle(k,Y)/Math.PI,H=.5*X,K=SuperMapAlgoPlot.PlottingUtil.circlePoint(k,H,H,W+15),J=SuperMapAlgoPlot.PlottingUtil.circlePoint(k,H,H,W-15);V.push(J),V.push(k),V.push(K);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,V,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},!0);var Z=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(o*this.scaleValues[0],e),Q=SuperMapAlgoPlot.PlottingUtil.circlePoint(Z.pts,.5*L,.5*L,w+90);this.addScalePoint(Z.pts,0),this.addScalePoint(Q,1);var $=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[2],tt=SuperMapAlgoPlot.PlottingUtil.linePnt(e[e.length-1],e[e.length-2],$);this.addScalePoint(tt,2),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length1-(f+this.scaleValues[2])&&(c=1-(f+this.scaleValues[2])),this.scaleValues[0]=c}else if(1==t){var h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r*this.scaleValues[0],n),g=SuperMapAlgoPlot.PlottingUtil.distance(h.pts,e)/r;g>=.3&&(g=.3),this.scaleValues[0]1-(g+this.scaleValues[2])?(this.scaleValues[0].3||n<=0)&&(n=.3),this.scaleValues[1]=n,this.scaleValues[2]=.6*this.getSubSymbolScaleValue()}var r=this.getLinePts(e,this.scaleValues[1],this.scaleValues[0]),i=new SuperMapAlgoPlot.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),l=SuperMapAlgoPlot.PlottingUtil.radian(r.startPt,r.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(r.startPt,r.endPt);0=0&&b[b.length-1].push(y);for(var m=0;m1-f&&(c=1-f),this.scaleValues[0]=c}else if(!0===e.isScalePoint&&1==t){var h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r*this.scaleValues[0],n),g=SuperMapAlgoPlot.PlottingUtil.distance(h.pts,e)/r;g>=.3&&(g=.3),this.scaleValues[0]1-g?(this.scaleValues[0]=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),0==this.dashLines.length)this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);else for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),0==this.dashLines.length)this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);else for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r0){if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],c,p,0),this.addScalePoint(c);var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,p,p,0);this.addScalePoint(f)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r,i,l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t)r=(e.x-l.x)/a,this.scaleValues[0]=r,i=(e.y-l.y)/a,this.scaleValues[1]=i;else if(1===t){r=this.scaleValues[0],i=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(l.x+a*r,l.y+a*i),u=SuperMapAlgoPlot.PlottingUtil.distance(s,e)/a;this.scaleValues[2]=u}}}}])&&pi(e.prototype,o),n&&pi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Pi(t){"@babel/helpers - typeof";return(Pi="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})(t)}function yi(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o={fillLimit:!0,fill:!1,surroundLineFlag:!1};if(0==this.dashLines.length)this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,o);else for(var n=this.mergeDashLine(this.dashLines,[]),r=this.computeDashLine(n,e),i=0;i.2||s<=0)&&(s=.2),this.scaleValues[0]=s}var u=this.scaleValues[0],p=this.scaleValues[2],c=this.scaleValues[3],f=a*u,h=new SuperMapAlgoPlot.Point(l.x+a*p,l.y+a*c);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],h,f,0),this.addScalePoint(h);var g=f,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,g,g,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r,i,l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t)r=(e.x-l.x)/a,this.scaleValues[2]=r,i=(e.y-l.y)/a,this.scaleValues[3]=i;else if(1===t){r=this.scaleValues[2],i=this.scaleValues[3];var s=new SuperMapAlgoPlot.Point(l.x+a*r,l.y+a*i),u=SuperMapAlgoPlot.PlottingUtil.distance(s,e)/a;this.scaleValues[0]=u}}}}])&&yi(e.prototype,o),n&&yi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function vi(t){"@babel/helpers - typeof";return(vi="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})(t)}function Mi(t,e){for(var o=0;othis.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=[];if(e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),0==this.dashLines.length)this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);else for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r0&&this.computeSubSymbol(this.subSymbols[0],y,M,A);var O=l*p,_=c;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],S,O,_),this.addScalePoint(y);var L=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,M,M,A);this.addScalePoint(L),this.addScalePoint(S);var w=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,O,O,_);this.addScalePoint(w),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengththis.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 n=[];n=3>=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r,i,l,a,s=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n),u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),p=e;if(0==t)r=(p.x-s.x)/u,this.scaleValues[6]=r,i=(p.y-s.y)/u,this.scaleValues[7]=i;else if(1==t){r=this.scaleValues[6],i=this.scaleValues[7];var c=new SuperMapAlgoPlot.Point(s.x+u*r,s.y+u*i),f=SuperMapAlgoPlot.PlottingUtil.distance(c,p)/u;this.scaleValues[0]=f;var h=180*SuperMapAlgoPlot.PlottingUtil.radian(c,p)/Math.PI;this.scaleValues[1]=h,this.scaleValues[2]=0<=h&&h<90?1:90<=h&&h<180?2:180<=h&&h<270?3:4}else if(2==t)l=(p.x-s.x)/u,this.scaleValues[8]=l,a=(p.y-s.y)/u,this.scaleValues[9]=a;else if(3==t){l=this.scaleValues[8],a=this.scaleValues[9];var g=new SuperMapAlgoPlot.Point(s.x+u*l,s.y+u*a),P=SuperMapAlgoPlot.PlottingUtil.distance(g,p)/u;this.scaleValues[3]=P;var y=180*SuperMapAlgoPlot.PlottingUtil.radian(g,p)/Math.PI;this.scaleValues[4]=y,this.scaleValues[5]=0<=y&&y<90?1:90<=y&&y<180?2:180<=y&&y<270?3:4}}}}])&&Mi(e.prototype,o),n&&Mi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function wi(t){"@babel/helpers - typeof";return(wi="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})(t)}function xi(t,e){for(var o=0;o=t.length?(e=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)):e=t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),0==this.dashLines.length)this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);else for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r.3||a<=0)&&(a=.3),this.scaleValues[0]=a}var s=l*this.scaleValues[0]*.15,u=[];u.push(new SuperMapAlgoPlot.Point(0,s)),u.push(new SuperMapAlgoPlot.Point(-s,0)),u.push(new SuperMapAlgoPlot.Point(0,-s));var p=[];p.push(new SuperMapAlgoPlot.Point(s,s)),p.push(new SuperMapAlgoPlot.Point(0,0)),p.push(new SuperMapAlgoPlot.Point(s,-s));for(var c=new SuperMapAlgoPlot.Point(-3*s,2*s),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(i,c,0),h=[],g=[],P=0;P<3;P++)h.push(new SuperMapAlgoPlot.Point(u[P].x+f.x,u[P].y+f.y)),g.push(new SuperMapAlgoPlot.Point(p[P].x+f.x,p[P].y+f.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0,surroundLineLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{lineTypeLimit:!0,surroundLineLimit:!0});for(var y=new SuperMapAlgoPlot.Point(3*s,2*s),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(i,y,0),d=[],b=[],m=0;m<3;m++)d.push(new SuperMapAlgoPlot.Point(u[m].x+S.x,u[m].y+S.y)),b.push(new SuperMapAlgoPlot.Point(p[m].x+S.x,p[m].y+S.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{lineTypeLimit:!0,surroundLineLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b,{lineTypeLimit:!0,surroundLineLimit:!0});var v=new SuperMapAlgoPlot.Point(-4*s,-2*s),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(i,v,0);d=[],b=[];for(var A=0;A<3;A++)d.push(new SuperMapAlgoPlot.Point(u[A].x+M.x,u[A].y+M.y)),b.push(new SuperMapAlgoPlot.Point(p[A].x+M.x,p[A].y+M.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{lineTypeLimit:!0,surroundLineLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b,{lineTypeLimit:!0,surroundLineLimit:!0});var O=new SuperMapAlgoPlot.Point(0,-2*s),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(i,O,0);d=[],b=[];for(var L=0;L<3;L++)d.push(new SuperMapAlgoPlot.Point(u[L].x+_.x,u[L].y+_.y)),b.push(new SuperMapAlgoPlot.Point(p[L].x+_.x,p[L].y+_.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{lineTypeLimit:!0,surroundLineLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b,{lineTypeLimit:!0,surroundLineLimit:!0});var w=new SuperMapAlgoPlot.Point(4*s,-2*s),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(i,w,0);d=[],b=[];for(var U=0;U<3;U++)d.push(new SuperMapAlgoPlot.Point(u[U].x+x.x,u[U].y+x.y)),b.push(new SuperMapAlgoPlot.Point(p[U].x+x.x,p[U].y+x.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{lineTypeLimit:!0,surroundLineLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b,{lineTypeLimit:!0,surroundLineLimit:!0}),this.finish()}}}])&&xi(e.prototype,o),n&&xi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ri(t){"@babel/helpers - typeof";return(Ri="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})(t)}function Ii(t,e){for(var o=0;oo.length)return;var n,r,i,l=[];if(2==o.length){n=o[0],r=o[1];var a=SuperMapAlgoPlot.PlottingUtil.distance(n,r),s=180*SuperMapAlgoPlot.PlottingUtil.radian(n,r)/Math.PI;i=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,a,a,s+60),l.push(n),l.push(r),l.push(i)}else l=l.concat(o);n=l[0],r=l[1],i=l[2];SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);l.push(l[0]);var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),p=e;if(0==t)this.scaleValues[0]=e;else if(1==t){var c=this.scaleValues[0],f=SuperMapAlgoPlot.PlottingUtil.distance(c,p)/u;this.scaleValues[2]=f;var h=180*SuperMapAlgoPlot.PlottingUtil.radian(c,p)/Math.PI;this.scaleValues[3]=h}}}},{key:"ComputeSubSymbolPt",value:function(t,e,o,n){var r,i,l=o[0],a=o[1],s=o[2],u=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(s,l,a)*t,p=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(a,l,s)*e,c=[];if(SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l,a,n)?((r=[]).push(l),r.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(r,u,!1)):((r=[]).push(l),r.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(r,u,!0)),SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l,s,n)?((r=[]).push(l),r.push(s),i=SuperMapAlgoPlot.PlottingUtil.paraLine(r,p,!1)):((r=[]).push(l),r.push(s),i=SuperMapAlgoPlot.PlottingUtil.paraLine(r,p,!0)),2>c.length||2>i.length)return n;var f=SuperMapAlgoPlot.PlottingUtil.intersectLines(c[0],c[1],i[0],i[1]);return f.isIntersectLines?f.intersectPoint:n}}])&&Yi(e.prototype,o),n&&Yi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function qi(t){"@babel/helpers - typeof";return(qi="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})(t)}function Xi(t,e){for(var o=0;oo.length)return;var n,r,i,l,a,s,u,p=[];2==o.length?(n=o[0],r=o[1],a=SuperMapAlgoPlot.PlottingUtil.distance(n,r),l=180*SuperMapAlgoPlot.PlottingUtil.radian(n,r)/Math.PI,i=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,a,a,l+60),p.push(n),p.push(r),p.push(i)):p=p.concat(o),n=p[0],r=p[1],i=p[2],p.push(p[0]);var c=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p),f=e;if(0===t)a=SuperMapAlgoPlot.PlottingUtil.distance(f,p[0]),this.scaleValues[0]=a/c;else if(1===t){s=SuperMapAlgoPlot.PlottingUtil.distance(f,p[0])/c,this.scaleValues[1]=s,l=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(n,r,i)/Math.PI,0<=(u=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(n,r,f)/Math.PI/l)&&1>=u&&(this.scaleValues[2]=u)}else if(2===t){s=this.scaleValues[1],u=this.scaleValues[2];var h,g=c*s,P=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(n,r,i)/Math.PI*u,y=180*SuperMapAlgoPlot.PlottingUtil.radian(n,r)/Math.PI,S=y-P,d=y+P,b=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,g,g,S),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,g,g,d);h=SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(p,b)?b:m;var v=2*SuperMapAlgoPlot.PlottingUtil.distance(f,h)/c;this.scaleValues[3]=v;var M=180*SuperMapAlgoPlot.PlottingUtil.radian(h,f)/Math.PI;this.scaleValues[4]=M}}}},{key:"ComputeSubSymbolPt",value:function(t,e,o,n){var r,i,l=o[0],a=o[1],s=o[2],u=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(s,l,a)*t,p=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(a,l,s)*e,c=[];if(SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l,a,n)?((r=[]).push(l),r.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(r,u,!1)):((r=[]).push(l),r.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(r,u,!0)),SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l,s,n)?((r=[]).push(l),r.push(s),i=SuperMapAlgoPlot.PlottingUtil.paraLine(r,p,!1)):((r=[]).push(l),r.push(s),i=SuperMapAlgoPlot.PlottingUtil.paraLine(r,p,!0)),2>c.length||2>i.length)return n;var f=SuperMapAlgoPlot.PlottingUtil.intersectLines(c[0],c[1],i[0],i[1]);return f.isIntersectLines?f.intersectPoint:n}},{key:"createArcPts",value:function(t,e){for(var o=[],n=[],r=0;rMath.abs(n[i]-n[l]))for(var s=0;s<2;s++){var u,p,c;0==s?(c=i,u=SuperMapAlgoPlot.PlottingUtil.radian(t[i],t[l])*SuperMapAlgoPlot.PlottingUtil.RTOD,p=Math.acos((a*a+n[i]*n[i]-n[l]*n[l])/(2*a*n[i]))*SuperMapAlgoPlot.PlottingUtil.RTOD):(c=l,u=SuperMapAlgoPlot.PlottingUtil.radian(t[l],t[i])*SuperMapAlgoPlot.PlottingUtil.RTOD,p=Math.acos((a*a+n[l]*n[l]-n[i]*n[i])/(2*a*n[l]))*SuperMapAlgoPlot.PlottingUtil.RTOD);var f=u-p,h=u+p,g=f<0&&h>0||f>360||h>360;f=this.adjustAngle(f),h=this.adjustAngle(h);for(var P=o[c].length-1;P>=0;P--)if(g){if(h>o[c][P].End||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(h,o[c][P].End)){o[c].splice(P,1);continue}if(h>o[c][P].Start&&(o[c][P].Start=h),fo[c][P].End)o[c].splice(P,1);else if(f>o[c][P].Start&&ho[c][P].End)continue;if(f>o[c][P].Start&&(o[c][P].End=f),h=0;S--){for(var d=this.adjustAngle(o[y][S].Start),b=this.adjustAngle(o[y][S].End);b360;)t-=360;for(;t<0;)t+=360;return t}},{key:"GetCirclePts",value:function(t,e,o,n){var r=180*SuperMapAlgoPlot.PlottingUtil.radian(t,e)/Math.PI,i=180*SuperMapAlgoPlot.PlottingUtil.radian(t,o)/Math.PI,l=r;i>r&&(l=i);for(var a=[],s=l;s<360+l;s+=4)90==s&&(s=91),a.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,n,n,s));return a.push[0],a}},{key:"CreatArc",value:function(t,e,o){for(var n=[],r=[],i=0;i1&&n.push(r),r=[]):r.push(l)}r.length>1&&n.push(r);for(var a=0;a1&&n.push(r),r=[]):r.push(l)}r.length>1&&n.push(r);for(var a=[],s=0;sa){var s=new SuperMapAlgoPlot.Point(n.x,n.y);n=new SuperMapAlgoPlot.Point(l.x,l.y),l=new SuperMapAlgoPlot.Point(s.x,s.y),r=a,e[o]=n,e[i]=l}}return e}}])&&Xi(e.prototype,o),n&&Xi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Zi(t){"@babel/helpers - typeof";return(Zi="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})(t)}function Qi(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[1]=l}var a=this.scaleValues[1]*SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),s=0,u=.3*i;this.ComputeDashLine(3*r/19,r/19,e);var p=e[1].clone(),c=e[0].clone(),f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,p,c),h=f.pntRight,g=f.pntLeft,P=[];P.push(g.clone()),P.push(h.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0,surroundLineLimit:!0});for(var y=3*u,S=e[0].clone(),d=0;d<=r;d+=y){s=d+2*u;var b=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,e);if(b.bfind){if(o=b.pts,b.index>=e.length)break;var m,v,M,A,O,_,L,w=[];if(w.push(S.clone()),w.push(o.clone()),0==d){var x=o.clone();x.isScalePoint=!0,x.tag=0,this.scalePoints.push(x);var U=h.clone();U.isScalePoint=!0,U.tag=1,this.scalePoints.push(U)}if(0==this.scaleValues[2]){m=new SuperMapAlgoPlot.Point((S.x+o.x)/2,(S.y+o.y)/2),v=S.clone(),M=m.clone(),c=o.clone();var E=(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,v,M)).pntLeft;A=SuperMapAlgoPlot.PlottingUtil.linePnt(m,v,.3*a),O=SuperMapAlgoPlot.PlottingUtil.linePnt(m,c,.3*a),0==d&&((_=E.clone()).isScalePoint=!0,_.tag=2,this.scalePoints.push(_)),(L=[]).push(E.clone()),L.push(A.clone()),L.push(O.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,L,{lineTypeLimit:!0,surroundLineLimit:!0})}else{m=new SuperMapAlgoPlot.Point((S.x+o.x)/2,(S.y+o.y)/2),v=S.clone(),M=m.clone(),c=o.clone();var T=(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,v,M)).pntRight;A=SuperMapAlgoPlot.PlottingUtil.linePnt(m,v,.3*u),O=SuperMapAlgoPlot.PlottingUtil.linePnt(m,c,.3*u),0==d&&((_=T.clone()).isScalePoint=!0,_.tag=2,this.scalePoints.push(_)),(L=[]).push(T.clone()),L.push(A.clone()),L.push(O.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,L,{lineTypeLimit:!0,surroundLineLimit:!0})}if(s=d+3*u,(b=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,e)).bfind){if(o=b.pts,!(b.index=0?this.scaleValues[2]=0:this.scaleValues[2]=1}}}},{key:"ComputeDashLine",value:function(t,e,o){for(var n,r,i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),l=o[0].clone(),a=1,s=0,u=!0,p=!0;s=0;--M)v.push(d[M]);for(var A=this.mergeDashLine(this.dashLines,[]),O=this.computeDashLine(A,[v[0],v[1]]),_=0;_=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n,r=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),i=o[0].clone(),l=o[1].clone(),a=e.clone();if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.distance(a,i)/r;this.scaleValues[0]=s}else if(1==t){n=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,i,l);var u=SuperMapAlgoPlot.PlottingUtil.distance(n,a)/r;this.scaleValues[1]=u;var p=SuperMapAlgoPlot.PlottingUtil.distance(n,l)/r;this.scaleValues[3]=p}else if(2==t){n=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,i,l);var c=SuperMapAlgoPlot.PlottingUtil.distance(n,a)/r;this.scaleValues[2]=c;var f=SuperMapAlgoPlot.PlottingUtil.distance(n,l)/r;this.scaleValues[4]=f}}}}])&&rl(e.prototype,o),n&&rl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ul(t){"@babel/helpers - typeof";return(ul="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})(t)}function pl(t,e){for(var o=0;o=0;--M)v.push(b[M]);for(var A=this.mergeDashLine(this.dashLines,[]),O=this.computeDashLine(A,[v[0],v[1]]),_=0;_=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n,r=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),i=o[0].clone(),l=o[1].clone(),a=e.clone();if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.distance(a,i)/r;this.scaleValues[0]=s}else if(1==t){n=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,i,l);var u=SuperMapAlgoPlot.PlottingUtil.distance(n,a)/r;this.scaleValues[1]=u;var p=SuperMapAlgoPlot.PlottingUtil.distance(n,l)/r;this.scaleValues[3]=p}else if(2==t){n=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,i,l);var c=SuperMapAlgoPlot.PlottingUtil.distance(n,a)/r;this.scaleValues[2]=c;var f=SuperMapAlgoPlot.PlottingUtil.distance(n,l)/r;this.scaleValues[4]=f}}}}])&&pl(e.prototype,o),n&&pl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Pl(t){"@babel/helpers - typeof";return(Pl="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})(t)}function yl(t,e){for(var o=0;o=0;--M)v.push(b[M]);for(var A=this.mergeDashLine(this.dashLines,[]),O=this.computeDashLine(A,[v[0],v[1]]),_=0;_=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n,r=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),i=o[0].clone(),l=o[1].clone(),a=e.clone();if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.distance(a,i)/r;this.scaleValues[0]=s}else if(1==t){n=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,i,l);var u=SuperMapAlgoPlot.PlottingUtil.distance(n,a)/r;this.scaleValues[1]=u;var p=SuperMapAlgoPlot.PlottingUtil.distance(n,l)/r;this.scaleValues[3]=p}else if(2==t){n=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,i,l);var c=SuperMapAlgoPlot.PlottingUtil.distance(n,a)/r;this.scaleValues[2]=c;var f=SuperMapAlgoPlot.PlottingUtil.distance(n,l)/r;this.scaleValues[4]=f}}}}])&&yl(e.prototype,o),n&&yl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function vl(t){"@babel/helpers - typeof";return(vl="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})(t)}function Ml(t,e){for(var o=0;o=2&&this.controlPoints.length0){var o;if(null==this.subSymbols[0].symbolData)return;o=Math.max(this.subSymbols[0].symbolData.symbolSize.x,this.subSymbols[0].symbolData.symbolSize.y);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),r=n*this.scaleValues[4],i=n*this.scaleValues[5],l=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,t),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,t),s=SuperMapAlgoPlot.PlottingUtil.radian(a.pts,l.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,u=100*SuperMapAlgoPlot.PlottingUtil.distance(l.pts,a.pts)/o,p=new SuperMapAlgoPlot.Point((a.pts.x+l.pts.x)/2,(l.pts.y+a.pts.y)/2);if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],p,u,s),l.pts.isScalePoint=!0,l.pts.tag=this.scalePoints.length,this.scalePoints.push(l.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 o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).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)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var n=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),r=SuperMapAlgoPlot.PlottingUtil.clonePoints(o);r.splice(0,2),r.unshift(n);var i=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,r),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(r);if(3===t&&null==i.pt&&(i.pt=n.clone()),-1==i.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMapAlgoPlot.PlottingUtil.clonePoints(r);a.splice(0,i.index+1),a.unshift(i.pt);var s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(a);l.5&&(this.scaleValues[4]=.5)}}}}}])&&Ml(e.prototype,o),n&&Ml(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function wl(t){"@babel/helpers - typeof";return(wl="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})(t)}function xl(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[0]=.5*n}var r=o*this.scaleValues[0],i=e[e.length-1];if(e.length>2){for(var l=-1,a=e.length-2;a>=0;a--)if(r=2?this.addArrow(u[c],this.scaleValues[0]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[0]));var f=e[e.length-2],h=e[e.length-1],g=(SuperMapAlgoPlot.PlottingUtil.radian(f,h),Math.PI,SuperMapAlgoPlot.PlottingUtil.polylineDistance(e)*this.scaleValues[0]),P=SuperMapAlgoPlot.PlottingUtil.findPoint(e[e.length-1],e[e.length-2],g,0);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(this.minEditPts>o.length)return;var i=.5*SuperMapAlgoPlot.PlottingUtil.distance(e,n[n.length-1])/r;if(.5=0;l--)i.push(r[l]);this.addScalePoint(i[i.length-1]);var a=i[0],s=o[o.length-1],u=SuperMapAlgoPlot.PlottingUtil.distance(a,s),p=.3*u,c=o[o.length-2],f=o[o.length-1],h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,c,f).pntLeft;c=i[1],f=i[0];var g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,c,f).pntRight,P=u;c=i[0],f=t[t.length-1];var y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(P,c,f).pntRight,S=[];S.push(h),S.push(y),S.push(g);var d=[];d=(d=d.concat(o)).concat(S);for(var b=i.length-1;b>=0;--b)d.push(i[b]);for(var m=this.mergeDashLine(this.dashLines,[]),v=this.computeDashLine(m,o),M=0;Mo.length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n;if(r>.5)return;this.scaleValues[0]=r}}}])&&Il(e.prototype,o),n&&Il(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Bl(t){"@babel/helpers - typeof";return(Bl="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})(t)}function Yl(t,e){for(var o=0;o=0;c--)p.push(i[c]);if((l=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(u,p)).bfind){var f=l.index,h=l.pts.clone(),g=[];g.push(h);for(var P=f+1;P0&&this.computeSubSymbol(this.subSymbols[0],A,u,M);var O=p[p.length-1].clone(),_=SuperMapAlgoPlot.PlottingUtil.circlePoint(O,.3*n,.3*n,M+30),L=SuperMapAlgoPlot.PlottingUtil.circlePoint(O,.3*n,.3*n,M+180),w=SuperMapAlgoPlot.PlottingUtil.circlePoint(O,.3*n,.3*n,M+330),x=SuperMapAlgoPlot.PlottingUtil.circlePoint(O,.3*n*.1,.3*n*.1,M+180);(g=[]).push(_),g.push(L),g.push(w),g.push(x);var U={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0};if(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,U,!0),e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(r),(l=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(e/2,r)).bfind){var E=l.index,T=l.pts.clone(),V=[];V.push(T);for(var R=E;R>=0;R--)V.push(r[R]);if((l=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(u,V)).bfind){var I=l.index,C=l.pts.clone(),j=[];j.push(C);for(var N=I+1;N0&&this.computeSubSymbol(this.subSymbols[1],G,u,z+90);var q=V[V.length-1].clone(),X=SuperMapAlgoPlot.PlottingUtil.circlePoint(q,.3*n,.3*n,M+30),W=SuperMapAlgoPlot.PlottingUtil.circlePoint(q,.3*n,.3*n,M+180),H=SuperMapAlgoPlot.PlottingUtil.circlePoint(q,.3*n,.3*n,M+330),K=SuperMapAlgoPlot.PlottingUtil.circlePoint(q,.3*n*.1,.3*n*.1,M+180);(g=[]).push(X),g.push(W),g.push(H),g.push(K),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,U,!0);var J=SuperMapAlgoPlot.PlottingUtil.linePnt(W,L,3*n),Z=SuperMapAlgoPlot.PlottingUtil.linePnt(L,W,3*n);(j=[]).push(J),j.push(Z),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,j,{surroundLineLimit:!0,lineTypeLimit:!0});var Q=SuperMapAlgoPlot.PlottingUtil.linePnt(S[S.length-1],D[D.length-1],3*n),$=SuperMapAlgoPlot.PlottingUtil.linePnt(D[D.length-1],S[S.length-1],3*n);(j=[]).push(Q),j.push($),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,j,{surroundLineLimit:!0,lineTypeLimit:!0}),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 o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n/2;r>=.45&&(r=.45),this.scaleValues[0]=r}}}])&&Yl(e.prototype,o),n&&Yl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ql(t){"@babel/helpers - typeof";return(ql="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})(t)}function Xl(t,e){for(var o=0;o=0;c--)p.push(i[c]);if((l=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(u,p)).bfind){var f=l.index,h=l.pts.clone(),g=[];g.push(h);for(var P=f+1;P0&&this.computeSubSymbol(this.subSymbols[0],A,u,M+90),e=SuperMapAlgoPlot.PlottingUtil.polylineDistance(r),(l=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(e/2,r)).bfind){var O=l.index,_=l.pts.clone(),L=[];L.push(_);for(var w=O;w>=0;w--)L.push(r[w]);if((l=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(u,L)).bfind){var x=l.index,U=l.pts.clone(),E=[];E.push(U);for(var T=x+1;T1&&this.computeSubSymbol(this.subSymbols[1],D,u,N);var B=SuperMapAlgoPlot.PlottingUtil.linePnt(p[p.length-1],L[L.length-1],3*n),Y=SuperMapAlgoPlot.PlottingUtil.linePnt(L[L.length-1],p[p.length-1],3*n);(E=[]).push(B),E.push(Y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,E,{surroundLineLimit:!0,lineTypeLimit:!0});var k=SuperMapAlgoPlot.PlottingUtil.linePnt(S[S.length-1],V[V.length-1],3*n),F=SuperMapAlgoPlot.PlottingUtil.linePnt(V[V.length-1],S[S.length-1],3*n);(E=[]).push(k),E.push(F),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,E,{surroundLineLimit:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(B.clone()),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n/2;r>=.4&&(r=.4),this.scaleValues[0]=r}}}])&&Xl(e.prototype,o),n&&Xl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Zl(t){"@babel/helpers - typeof";return(Zl="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})(t)}function Ql(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[1]=n,this.scaleValues[2]=.6*n}this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.05),this.scaleValues.push(.025));var r=this.getLinePts(e,this.scaleValues[1],this.scaleValues[0]),i=this.getLinePts(e,this.scaleValues[2],this.scaleValues[0]),l=SuperMapAlgoPlot.PlottingUtil.distance(r.startPt,r.endPt),a=e[0],s=e[1],u=e[e.length-2],p=e[e.length-1],c=o*this.scaleValues[2],f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(c,s,a),h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(c,u,p),g=f.pntLeft,P=h.pntLeft,y=[];y.push(p),y.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y);var S=[];S.push(g),S.push(a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S);var d=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),b=[];b.push(0),b.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,r.startPt)/d),b.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,r.endPt)/d),b.push(1);for(var m=this.mergeDashLine(this.dashLines,b),v=this.computeDashLine(m,e),M=0;M=.3&&(l=.3),this.scaleValues[0]1-l?(this.scaleValues[0]1-g&&(h=1-g),this.scaleValues[0]=h}else if(2==t){var P=SuperMapAlgoPlot.PlottingUtil.distance(e,n[0])/r;this.scaleValues[2]=P}else if(3==t){P=SuperMapAlgoPlot.PlottingUtil.distance(e,n[n.length-1])/r;this.scaleValues[2]=P}}}}])&&Ql(e.prototype,o),n&&Ql(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function na(t){"@babel/helpers - typeof";return(na="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})(t)}function ra(t,e){for(var o=0;ot[r].x&&(o=t[r].x),n.3||i<=0)&&(i=.3);var l=this.getSubSymbolScaleValue(n-o);(l>.3||l<=0)&&(l=.3),this.scaleValues[2]=.25*i,this.scaleValues[3]=.2*l}var a=(n-o)*this.scaleValues[3],s=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,a,!1);s.push(s[0]);var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(s),p=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,a,!0);p.push(p[0]);var c={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1};if(u>SuperMapAlgoPlot.PlottingUtil.polylineDistance(p)){var f=this.mergeDashLine(this.dashLines,[]),h=this.computeDashLine(f,s),g=this.mergeDashLine(this.dashLines,[]),P=this.computeDashLine(g,p);if(h.length>1)for(var y=0;y1)for(var S=0;S1)for(var d=0;d1)for(var b=0;b1)for(var i=0;i.3||s<=0)&&(s=.3),this.scaleValues[2]=.5*s}var u=this.scaleValues[0],p=this.scaleValues[1],c=this.scaleValues[2],f=new SuperMapAlgoPlot.Point(l.x+a*u,l.y+a*p),h=c*a,g=.25*h,P=[];P.push(new SuperMapAlgoPlot.Point(f.x-h,f.y+g)),P.push(new SuperMapAlgoPlot.Point(f.x+h,f.y+g)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0,surroundLineLimit:!0});var y=[];y.push(new SuperMapAlgoPlot.Point(f.x+h,f.y-g)),y.push(new SuperMapAlgoPlot.Point(f.x-h,f.y-g)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0});var S=[];S.push(new SuperMapAlgoPlot.Point(f.x+h,f.y+2*g)),S.push(new SuperMapAlgoPlot.Point(f.x+h,f.y-2*g)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0,surroundLineLimit:!0});var d=[];d.push(new SuperMapAlgoPlot.Point(f.x-h,f.y+2*g)),d.push(new SuperMapAlgoPlot.Point(f.x-h,f.y-2*g)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(f);var b=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,h,h,90);this.addScalePoint(b),this.finish()}}}])&&pa(e.prototype,o),n&&pa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Pa(t){"@babel/helpers - typeof";return(Pa="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})(t)}function ya(t,e){for(var o=0;o1)for(var i=0;i.3||s<=0)&&(s=.3),this.scaleValues[2]=s}var u=this.scaleValues[0],p=this.scaleValues[1],c=this.scaleValues[2],f=new SuperMapAlgoPlot.Point(l.x+a*u,l.y+a*p),h=c*a/2.5,g=.7*h,P=[];P.push(new SuperMapAlgoPlot.Point(f.x,f.y)),P.push(new SuperMapAlgoPlot.Point(f.x+h,f.y));var y={surroundLineFlag:!1,lineTypeLimit:!0,surroundLineLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,P,y);var S=[];S.push(new SuperMapAlgoPlot.Point(f.x+g,f.y-g/2)),S.push(new SuperMapAlgoPlot.Point(f.x-g,f.y-g/2)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,y);var d=[];d.push(new SuperMapAlgoPlot.Point(f.x,f.y-g/2)),d.push(new SuperMapAlgoPlot.Point(f.x,f.y+g)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,y);var b=[];b.push(new SuperMapAlgoPlot.Point(f.x-g/2,f.y-g/2)),b.push(new SuperMapAlgoPlot.Point(f.x-g,f.y+g/2)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b,y);var m=[];m.push(new SuperMapAlgoPlot.Point(f.x+g/2,f.y-g/2)),m.push(new SuperMapAlgoPlot.Point(f.x+g,f.y+g/2)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,y),this.scalePoints=[],this.addScalePoint(f.clone());var v=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,1.25*h,1.25*h,90);this.addScalePoint(v),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 o=this.controlPoints;if(2==o.length){var n=new SuperMapAlgoPlot.Point(o[1].x,o[1].y);SuperMapAlgoPlot.PlottingUtil.rotateAngle(o[0],Math.PI/3,n),o.push(n)}var r,i,l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0))return;if(0==t)r=(e.x-l.x)/a,this.scaleValues[0]=r,i=(e.y-l.y)/a,this.scaleValues[1]=i;else if(1==t){r=this.scaleValues[0],i=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(l.x+a*r,l.y+a*i),u=2*SuperMapAlgoPlot.PlottingUtil.distance(s,e)/a;this.scaleValues[2]=u}}}}])&&ya(e.prototype,o),n&&ya(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function va(t){"@babel/helpers - typeof";return(va="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})(t)}function Ma(t,e){for(var o=0;o1)for(var i=0;i0&&this.computeSubSymbol(this.subSymbols[0],c,2*f,0);var y=[];y.push(new SuperMapAlgoPlot.Point(c.x+4*f,c.y)),y.push(new SuperMapAlgoPlot.Point(c.x+f,c.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,g);var S=[];S.push(new SuperMapAlgoPlot.Point(c.x+4*f,c.y+f/2)),S.push(new SuperMapAlgoPlot.Point(c.x+4*f,c.y-f/2)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,g),this.scalePoints=[],this.addScalePoint(c.clone());var d=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,2*f,2*f,90);this.addScalePoint(d),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 o=this.controlPoints;if(2==o.length){var n=new SuperMapAlgoPlot.Point(o[1].x,o[1].y);SuperMapAlgoPlot.PlottingUtil.rotateAngle(o[0],Math.PI/3,n),o.push(n)}var r,i,l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0))return;if(0==t)r=(e.x-l.x)/a,this.scaleValues[0]=r,i=(e.y-l.y)/a,this.scaleValues[1]=i;else if(1==t){r=this.scaleValues[0],i=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(l.x+a*r,l.y+a*i),u=SuperMapAlgoPlot.PlottingUtil.distance(s,e)/2/a;this.scaleValues[2]=u}}}}])&&Ma(e.prototype,o),n&&Ma(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function wa(t){"@babel/helpers - typeof";return(wa="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})(t)}function xa(t,e){for(var o=0;ot[r].x&&(o=t[r].x),n.3||i<=0)&&(i=.3),(l>.3||l<=0)&&(l=.3),this.scaleValues[0]=i,this.scaleValues[1]=.2*l}var a=(n-o)*this.scaleValues[1],s=[],u=[],p=!0;t.length>2?SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(t[0],t[1],t[2])?(s=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,a,!1),u=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,a,!0)):(p=!1,s=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,a,!0),u=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,a,!1)):(s=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,a,!1),u=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,a,!0));var c={surroundLineFlag:!1,lineWidthLimit:!0,strokeWidth:1,weight:1};u.push(u[0]),s.push(s[0]);var f,h,g,P,y,S,d,b,m,v=this.mergeDashLine(this.dashLines,[]),M=this.computeDashLine(v,u),A=this.mergeDashLine(this.dashLines,[]),O=this.computeDashLine(A,s);if(M.length>1)for(var _=0;_1)for(var L=0;L1)for(var i=0;it[r].x&&(o=t[r].x),n2&&u.length>0){for(var p=[],c=0;c1)for(var S=0;S1)for(var d=0;d0&&(M=!0),x=[];for(var I=new SuperMapAlgoPlot.Point(O,b.y),C=SuperMapAlgoPlot.PlottingUtil.circlePoint(I,5,5,45),j=0;j0&&(M=!0),A-=m,O+=m}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),o=0;ot[n+1].y&&(e=t[n],t[n]=t[n+1],t[n+1]=e):t[n].x>t[n+1].x&&(e=t[n],t[n]=t[n+1],t[n+1]=e);return t}}])&&Ya(e.prototype,o),n&&Ya(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function qa(t){"@babel/helpers - typeof";return(qa="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})(t)}function Xa(t,e){for(var o=0;ot[r].x&&(o=t[r].x),n1)for(var u=0;u0&&(h=!0),v=[];for(var w=new SuperMapAlgoPlot.Point(P,p.y),x=SuperMapAlgoPlot.PlottingUtil.circlePoint(w,5,5,45),U=0;U0&&(h=!0),g-=f,P+=f}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),o=0;ot[n+1].y&&(e=t[n],t[n]=t[n+1],t[n+1]=e):t[n].x>t[n+1].x&&(e=t[n],t[n]=t[n+1],t[n+1]=e);return t}}])&&Xa(e.prototype,o),n&&Xa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Za(t){"@babel/helpers - typeof";return(Za="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})(t)}function Qa(t,e){for(var o=0;ot[r].x&&(o=t[r].x),n.3||m<=0)&&(m=.3);var i=this.getSubSymbolScaleValue(n-o);(i>.3||i<=0)&&(i=.3),this.scaleValues[2]=.25*m,this.scaleValues[3]=.2*i}var l=(n-o)*this.scaleValues[3],a=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,l,!0),s=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,l,!1);if(a.length>2&&s.length>0){for(var u=[],p=new SuperMapAlgoPlot.Point(0,0),c=0;c1)for(var d=0;d1)for(var b=0;b.3||m<=0)&&(m=.3),this.scaleValues[2]=m;var A=this.scaleValues[0],O=this.scaleValues[1],_=this.scaleValues[2],L=new SuperMapAlgoPlot.Point(v.x+M*A,v.y+M*O),w=_*M/2,x=[];x.push(new SuperMapAlgoPlot.Point(L.x,L.y)),x.push(new SuperMapAlgoPlot.Point(L.x,L.y+w));this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,x,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},!0);var U=[];U.push(new SuperMapAlgoPlot.Point(L.x-1.5*w,L.y+w)),U.push(new SuperMapAlgoPlot.Point(L.x+1.5*w,L.y+w)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,{lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addScalePoint(L);var E=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,w,w,90);this.addScalePoint(E),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(2==o.length){var n=new SuperMapAlgoPlot.Point(o[1].x,o[1].y);SuperMapAlgoPlot.PlottingUtil.rotateAngle(o[0],Math.PI/3,n),o.push(n)}if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var r,i,l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==l)return;if(0==t)r=(e.x-a.x)/l,this.scaleValues[0]=r,i=(e.y-a.y)/l,this.scaleValues[1]=i;else if(1==t){r=this.scaleValues[0],i=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(a.x+l*r,a.y+l*i),u=2*SuperMapAlgoPlot.PlottingUtil.distance(s,e)/l;this.scaleValues[2]=u}}}}])&&Qa(e.prototype,o),n&&Qa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ns(t){"@babel/helpers - typeof";return(ns="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})(t)}function rs(t,e){for(var o=0;o1)for(var i=0;i.3||s<=0)&&(s=.3),this.scaleValues[2]=s}var u=this.scaleValues[0],p=this.scaleValues[1],c=this.scaleValues[2],f=new SuperMapAlgoPlot.Point(l.x+a*u,l.y+a*p),h=c*a/2,g=[];g.push(new SuperMapAlgoPlot.Point(f.x,f.y)),g.push(new SuperMapAlgoPlot.Point(f.x,f.y+h));this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,g,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},!0);var P=[];P.push(new SuperMapAlgoPlot.Point(f.x-1.5*h,f.y+h)),P.push(new SuperMapAlgoPlot.Point(f.x+1.5*h,f.y+h)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addScalePoint(f);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,h,h,90);this.addScalePoint(y),this.finish()}}}])&&rs(e.prototype,o),n&&rs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function us(t){"@babel/helpers - typeof";return(us="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})(t)}function ps(t,e){for(var o=0;ot[r].x&&(o=t[r].x),n.3||i<=0)&&(i=.3);var l=this.getSubSymbolScaleValue(n-o);(l>.3||l<=0)&&(l=.3),this.scaleValues[2]=.25*i,this.scaleValues[3]=.2*l}var a=(n-o)*this.scaleValues[3],s=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,a,!0),u=SuperMapAlgoPlot.PlottingUtil.paraPolygon(t,a,!1);if(s.length>2&&u.length>0){for(var p=[],c=0;c1)for(var b=0;b1)for(var m=0;m1)for(var i=0;i.3||u<=0)&&(u=.3),this.scaleValues[2]=2*u}var p=this.scaleValues[0],c=this.scaleValues[1],f=this.scaleValues[2],h=new SuperMapAlgoPlot.Point(a.x+s*p,a.y+s*c),g=f*s/2,P=[];P.push(new SuperMapAlgoPlot.Point(h.x-g,h.y)),P.push(new SuperMapAlgoPlot.Point(h.x+g,h.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,l,!0);var y=.3*g,S=[];S.push(new SuperMapAlgoPlot.Point(h.x-g,h.y+y/2)),S.push(new SuperMapAlgoPlot.Point(h.x-g,h.y-y/2)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,l,!0);var d=[];d.push(new SuperMapAlgoPlot.Point(h.x+g,h.y+y/2)),d.push(new SuperMapAlgoPlot.Point(h.x+g,h.y-y/2)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,l,!0);var b=[];b.push(new SuperMapAlgoPlot.Point(h.x,h.y)),b.push(new SuperMapAlgoPlot.Point(h.x,h.y+1.5*y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b,l,!0);var m=[];m.push(new SuperMapAlgoPlot.Point(h.x-y/2,h.y)),m.push(new SuperMapAlgoPlot.Point(h.x-y,h.y+y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,l,!0);var v=[];v.push(new SuperMapAlgoPlot.Point(h.x+y/2,h.y)),v.push(new SuperMapAlgoPlot.Point(h.x+y,h.y+y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,l,!0),this.addScalePoint(h);var M=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,g,g,90);this.addScalePoint(M),this.finish()}}}])&&ys(e.prototype,o),n&&ys(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function vs(t){"@babel/helpers - typeof";return(vs="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})(t)}function Ms(t,e){for(var o=0;othis.minEditPts){for(var x,U,E,T,V,R=1;R=0?(S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(W,t[H],K)).pntRight:(S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(W,t[H],K)).pntLeft;var J=SuperMapAlgoPlot.PlottingUtil.linePnt(K,_,W),Z=.3*W,Q=SuperMapAlgoPlot.PlottingUtil.linePnt(J,K,Z);(S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.3*Z,J,Q)).pntLeft,S.pntRight;(M=[]).push(J),M.push(K),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,{surroundLineLimit:!0,lineTypeLimit:!0});var $=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(M,.3*W,this.arrowHeadType),tt=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL;this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL&&this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID&&this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE&&this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW||(tt=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL);this.addCell(tt,$,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addScalePoint(J),this.addScalePoint(u);var et=SuperMapAlgoPlot.PlottingUtil.radian(a.pt,s.pt)*SuperMapAlgoPlot.PlottingUtil.RTOD+90,ot=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,.5*i,.5*i,et);this.addScalePoint(ot),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n,r,i,l,a,s,u,p,c,f,h=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),g=o.length,P=e;if(t>=0&&tf&&(r=v,l=u,i=f));if(-1==r||r>o.length-1)return;p=0;for(var M=0;Mh)return;var _=p/h;this.scaleValues[g+1]=_;var L,w=this.scaleValues.length;n=h*this.scaleValues[w-5],L=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[r],o[r+1],P)?i/n:-Math.abs(i/n),this.scaleValues[g+2]=L}else if(t===g+2){r=-1,i=0,l=new SuperMapAlgoPlot.Point(0,0);for(var x=0;xf&&(r=x,l=u,i=f));if(-1===r||r>o.length-1)return;p=0;for(var U=0;Uh)return;.1*hp&&(this.scaleValues[this.scaleValues.length-2]=p/h)}else if(t===g+3){var E=this.scaleValues[this.scaleValues.length-2]*h;if(-1===(s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,E)).index)return;var T=2*SuperMapAlgoPlot.PlottingUtil.distance(s.pt,e)/h;T>.15&&(T=.15),this.scaleValues[this.scaleValues.length-1]=T}}}}])&&Ms(e.prototype,o),n&&Ms(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ws(t){"@babel/helpers - typeof";return(ws="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})(t)}function xs(t,e){for(var o=0;o.3||s<=0)&&(s=.3),this.scaleValues[0]=s;var u=1.5*this.scaleValues[0]*i,p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,e[l.index],a),c=[];c.push(p.pntLeft),c.push(a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,null,!0),this.finish()}}}}])&&xs(e.prototype,o),n&&xs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Rs(t){"@babel/helpers - typeof";return(Rs="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})(t)}function Is(t,e){for(var o=0;o.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.dirAngle(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,l=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);0.3||n<=0)&&(n=.3),this.scaleValues[0]=n}var r=this.getLinePts(e,this.scaleValues[0]),i=new SuperMapAlgoPlot.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),l=SuperMapAlgoPlot.PlottingUtil.dirAngle(r.startPt,r.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(r.startPt,r.endPt);0=0&&p[p.length-1].push(m);for(var c=0;c.5&&(l=.5),this.scaleValues[0]=l}}}}])&&Ys(e.prototype,o),n&&Ys(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function qs(t){"@babel/helpers - typeof";return(qs="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})(t)}function Xs(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[0]=n}var r=o*this.scaleValues[0],i=this.getLinePts(e,this.scaleValues[0]),l=SuperMapAlgoPlot.PlottingUtil.dirAngle(i.startPt,i.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),s=[];s.push(0),s.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,i.startPt)/a),s.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,i.endPt)/a),s.push(1);for(var u=this.mergeDashLine(this.dashLines,s),p=this.computeDashLine(u,e),c=0;c.5&&(l=.5),this.scaleValues[0]=l}}}}])&&Xs(e.prototype,o),n&&Xs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Zs(t){"@babel/helpers - typeof";return(Zs="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})(t)}function Qs(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],l,a,s),0===this.scaleValues[1]?this.addScalePoint(r[0]):this.addScalePoint(i[0]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===n)return;if(0===t){var r=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n;this.scaleValues[0]=r}}}}])&&pu(e.prototype,o),n&&pu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Pu(t){"@babel/helpers - typeof";return(Pu="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})(t)}function yu(t,e){for(var o=0;o=r)return;this.scaleValues=[];var i=SuperMapAlgoPlot.PlottingUtil.distance(e,o)/r;this.scaleValues.push(i);var l=SuperMapAlgoPlot.PlottingUtil.radian(e,o)*SuperMapAlgoPlot.PlottingUtil.RTOD;l>90?l-=90:l=270+l,this.scaleValues.push(l*SuperMapAlgoPlot.PlottingUtil.DTOR);var a=SuperMapAlgoPlot.PlottingUtil.radian(e,n)*SuperMapAlgoPlot.PlottingUtil.RTOD;a>90?a-=90:a=270+a,this.scaleValues.push(a*SuperMapAlgoPlot.PlottingUtil.DTOR);var s=this.scaleValues[0]*r,u=this.scaleValues[1]*SuperMapAlgoPlot.PlottingUtil.RTOD+90,p=this.scaleValues[2]*SuperMapAlgoPlot.PlottingUtil.RTOD+90;u=p;h-=4)c=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],s,s,h),f.push(c);h!=p&&(c=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],s,s,p),f.push(c)),f.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,f)}this.finish()}}}])&&yu(e.prototype,o),n&&yu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function vu(t){"@babel/helpers - typeof";return(vu="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})(t)}function Mu(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],c,.9*p,g-90),this.scalePoints=[],this.addScalePoint(s[s.length-1]);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,p,p,g+90);this.addScalePoint(y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var r=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n;this.scaleValues[0]=r}else if(1==t){var i=this.scaleValues[0]*n,l=SuperMapAlgoPlot.PlottingUtil.radian(o[0],o[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],i,i,90+l),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[1],i,i,90+l),u=new SuperMapAlgoPlot.Point((a.x+s.x)/2,(a.y+s.y)/2),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e)/n;p>=.8&&(p=.8),this.scaleValues[1]=p}}}}])&&Mu(e.prototype,o),n&&Mu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function wu(t){"@babel/helpers - typeof";return(wu="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})(t)}function xu(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=new SuperMapAlgoPlot.Point(n.x,0);if(!1===this.polylineConnectLocationPoint){for(var i=0,l=-1,a=0;a0;S--)p.push(P[S]);var d=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,h);if(-1===d.index)return;(P=[]).push(d.pt);for(var b=d.index+1;b0&&this.computeSubSymbol(this.subSymbols[0],r,u,0)}else{var m=t[0],v=t[1],M=SuperMapAlgoPlot.PlottingUtil.distance(m,v),A=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.2*M,[m,v]);if(-1===A.index)return;var O=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.4*M,[m,v]);if(-1===O.index)return;var _=[];_.push(t[0]),_.push(A.pts),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_),(_=[]).push(O.pts);for(var L=1;L0&&this.computeSubSymbol(this.subSymbols[0],w,.1*M,0)}this.finish()}}}])&&xu(e.prototype,o),n&&xu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ru(t){"@babel/helpers - typeof";return(Ru="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})(t)}function Iu(t,e){for(var o=0;o.03&&(e=.03),this.scaleValues[0]=.03}for(var o=0,n=0;n=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),r=SuperMapAlgoPlot.PlottingUtil.clearSamePts(r);for(var i=this.mergeDashLine(this.dashLines,[]),l=this.computeDashLine(i,r),a=0;a=0;h--)i.push(new SuperMapAlgoPlot.Point(e[h].x,e[h].y));i.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),l=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,n,n,c),f=new SuperMapAlgoPlot.Point(l.x,l.y),(a=[]).push(t[0]),a.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}var g=new SuperMapAlgoPlot.Point(0,0);if(3<=t.length){for(e=[],o=new SuperMapAlgoPlot.Point(t[2].x,t[2].y),n=SuperMapAlgoPlot.PlottingUtil.distance(u,o),r=0,r=c-s;r0&&(P=[]));(i=[]).push(t[0]);for(var y=e.length-1;y>=0;y--)i.push(new SuperMapAlgoPlot.Point(e[y].x,e[y].y));i.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});for(var S=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),d=SuperMapAlgoPlot.PlottingUtil.distance(u,S)*this.scaleValues[0],b=[],m=90;m<=270;m+=3)b.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(u,d,d,c+m));i=[];for(var v=b.length-1;v>=0;v--)i.push(new SuperMapAlgoPlot.Point(b[v].x,b[v].y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),(i=[]).push(new SuperMapAlgoPlot.Point(b[0].x,b[0].y)),i.push(new SuperMapAlgoPlot.Point(e[e.length-1].x,e[e.length-1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),(i=[]).push(new SuperMapAlgoPlot.Point(e[0].x,e[0].y)),i.push(new SuperMapAlgoPlot.Point(b[b.length-1].x,b[b.length-1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),l=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,n,n,c),g=new SuperMapAlgoPlot.Point(l.x,l.y),(a=[]).push(f),a.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}var M=new SuperMapAlgoPlot.Point(0,0);if(4<=t.length){for(e=[],o=new SuperMapAlgoPlot.Point(t[3].x,t[3].y),n=SuperMapAlgoPlot.PlottingUtil.distance(u,o),r=0,r=c-s;r<=c+s;r+=3)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(u,n,n,r));SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,c+s)&&(r=c+s,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(u,n,n,r))),(i=[]).push(t[0]);for(var A=e.length-1;A>=0;A--)i.push(new SuperMapAlgoPlot.Point(e[A].x,e[A].y));i.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),l=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,n,n,c),M=new SuperMapAlgoPlot.Point(l.x,l.y),(a=[]).push(g),a.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}if(3>t.length)this.addScalePoint(t[0]);else{var O=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0],_=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,O,O,c+180);this.addScalePoint(_,0)}var L=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[t.length-1]),w=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,L,L,c+s);this.addScalePoint(w,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o,n=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n),0==t){if(3>n.length)return;var r=new SuperMapAlgoPlot.Point(n[0].x,n[0].y),i=new SuperMapAlgoPlot.Point(e.x,e.y),l=SuperMapAlgoPlot.PlottingUtil.distance(r,i),a=new SuperMapAlgoPlot.Point(n[1].x,n[1].y);if((o=l/SuperMapAlgoPlot.PlottingUtil.distance(r,a))>=2.5)return;this.scaleValues[0]=o}else if(1==t){var s=new SuperMapAlgoPlot.Point(n[0].x,n[0].y),u=new SuperMapAlgoPlot.Point(n[n.length-1].x,n[n.length-1].y),p=SuperMapAlgoPlot.PlottingUtil.radian(s,u),c=new SuperMapAlgoPlot.Point(e.x,e.y);if(o=SuperMapAlgoPlot.PlottingUtil.radian(s,c)-p,(o=Math.abs(o))>Math.PI/2&&o<3*Math.PI/2)return;o>3*Math.PI/2&&o<=2*Math.PI&&(o=2*Math.PI-o),this.scaleValues[1]=Math.abs(o)}}}}])&&pp(e.prototype,o),n&&pp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Pp(t){"@babel/helpers - typeof";return(Pp="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})(t)}function yp(t,e){for(var o=0;o270&&u<360&&(u=360-u),u>90)return;this.scaleValues[1]=u*Math.PI/180}}}}])&&yp(e.prototype,o),n&&yp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function vp(t){"@babel/helpers - typeof";return(vp="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})(t)}function Mp(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var o={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER},n=this.mergeDashLine(this.dashLines,[]),r=this.computeDashLine(n,e),i=0;i=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r0&&this.computeSubSymbol(this.subSymbols[0],l,a,0),this.scalePoints=[];var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,a,a,0);this.addScalePoint(s),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=[];n=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n);if(0==t){var l=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/r;this.scaleValues[0]=l}}}}])&&Ip(e.prototype,o),n&&Ip(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Bp(t){"@babel/helpers - typeof";return(Bp="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})(t)}function Yp(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],u,i*l,e*SuperMapAlgoPlot.PlottingUtil.RTOD);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,s,s,e*SuperMapAlgoPlot.PlottingUtil.RTOD);this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],p,i*l,e*SuperMapAlgoPlot.PlottingUtil.RTOD),this.scalePoints=[];var c=e*SuperMapAlgoPlot.PlottingUtil.RTOD,f=i*l,h=t[0].clone(),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,f,f,c);this.addScalePoint(g),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),n=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o))[0].clone(),r=o[1].clone(),i=e.clone(),l=SuperMapAlgoPlot.PlottingUtil.distance(n,r),a=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(i,n,r)/l;if(a<0||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0))return;this.scaleValues[0]=a,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(n,r,i)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}])&&Yp(e.prototype,o),n&&Yp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function qp(t){"@babel/helpers - typeof";return(qp="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})(t)}function Xp(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),0==this.dashLines.length)this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);else for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r.3||a<=0)&&(a=.3),this.scaleValues[0]=2*a}var s=this.scaleValues[0],u=this.scaleValues[2],p=this.scaleValues[3],c=l*s,f=.5*SuperMapAlgoPlot.PlottingUtil.distance(t[0],i),h=new SuperMapAlgoPlot.Point(i.x+l*u-f,i.y+l*p);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],h,c,180),this.addScalePoint(h);var g=c,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,g,g,0);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r,i,l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),s=.5*SuperMapAlgoPlot.PlottingUtil.distance(o[0],l);if(0===t)r=(e.x+s-l.x)/a,this.scaleValues[2]=r,i=(e.y-l.y)/a,this.scaleValues[3]=i;else if(1===t){r=this.scaleValues[2],i=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(l.x-s+a*r,l.y+a*i),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e)/a;this.scaleValues[0]=p}}}}])&&Xp(e.prototype,o),n&&Xp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Zp(t){"@babel/helpers - typeof";return(Zp="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})(t)}function Qp(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[0]=n}var r=e[0],i=e[1],l=e[e.length-2],a=e[e.length-1],s=o*this.scaleValues[0]*.6,u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,i,r),p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,l,a),c=u.pntLeft,f=p.pntRight,h=[];h.push(r),h.push(c);for(var g=new SuperMapAlgoPlot.Point((r.x+c.x)/2,(r.y+c.y)/2),P=SuperMapAlgoPlot.PlottingUtil.polylineDistance(h)/2,y=[],S=180*SuperMapAlgoPlot.PlottingUtil.radian(i,r)/Math.PI,d=360+S;d>=270+S;d-=3)y.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(g,P,P,d));var b=[];b.push(a),b.push(f);var m=[];m.push(a),m.push(f);for(var v=new SuperMapAlgoPlot.Point((a.x+f.x)/2,(a.y+f.y)/2),M=SuperMapAlgoPlot.PlottingUtil.polylineDistance(m)/2,A=[],O=180*SuperMapAlgoPlot.PlottingUtil.radian(a,f)/Math.PI,_=180+O;_>=90+O;_-=3)A.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(v,M,M,_));var L=[];L=(L=(L=L.concat(y)).concat(e)).concat(A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,L),this.finish()}}}])&&Qp(e.prototype,o),n&&Qp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function nc(t){"@babel/helpers - typeof";return(nc="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})(t)}function rc(t,e){for(var o=0;o.3||r<=0)&&(r=.3),this.scaleValues[2]=r,this.scaleValues[0]=.5*this.scaleValues[2]}SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1]),SuperMapAlgoPlot.PlottingUtil.RTOD;for(var i=this.scaleValues[0]*n,l=this.scaleValues[1],a=this.scaleValues[2]*n,s=.5*i,u=(o-2*a-3*s)/2,p=a,c=0;c<3;c++){var f=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,p);if(-1==f.index)return;var h=p+s,g=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,h);if(-1==g.index)return;var P=[],y=[];if(P.push(f.pt),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e[f.index].x,f.pt.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e[f.index].y,f.pt.y)&&f.index+1.7&&(S=.7),this.scaleValues[2]=S}}}}])&&rc(e.prototype,o),n&&rc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function uc(t){"@babel/helpers - typeof";return(uc="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})(t)}function pc(t,e){for(var o=0;o1&&(this.computeSubSymbol(this.subSymbols[0],i,r,n),this.computeSubSymbol(this.subSymbols[1],l,r,n));var a,s=[];2==e?(a=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,t),s.push.apply(s,a)):3==e&&(a=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,t),s=s.concat(a)),s=SuperMapAlgoPlot.PlottingUtil.inverse(s);var u,p=new SuperMapAlgoPlot.Point(.8*o,.1*o),c=new SuperMapAlgoPlot.Point(1.2*o,.1*o),f=new SuperMapAlgoPlot.Point(1.2*o,.1*-o),h=new SuperMapAlgoPlot.Point(.9*o,.1*-o),g=[];g.push(p),g.push(c),g.push(f),g.push(h);var P=[],y=0;for(y=0;y<4;y++)u=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[0],g[y],n),P.push(u);var S=new SuperMapAlgoPlot.Point(-.8*o,.1*o),d=new SuperMapAlgoPlot.Point(-1.2*o,.1*o),b=new SuperMapAlgoPlot.Point(-1.1*o,.1*-o),m=new SuperMapAlgoPlot.Point(-.8*o,.1*-o);(g=[]).push(S),g.push(d),g.push(b),g.push(m);var v=[];for(y=0;y<4;y++)u=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(t[0],g[y],n),v.push(u);for(var M,A=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[0],3*o),O=SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],t[1],2*o),_=[],L=0;L=_.length)&&(M=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(_[0],s)).isOnPolyLine){var x=[];for(y=M.index+1;yo.length)return;if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),r=this.scaleValues[0],i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),l=r*i,a=.01*i,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,n);if(!s.bfind)return;var u=s.pts,p=s.index,c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(l,n[p],u).pntLeft,f=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,c,u),h=SuperMapAlgoPlot.PlottingUtil.distance(f,u),g=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(f,u,e);this.scaleValues[1]=g?1:0,this.scaleValues[0]=h/i}}}}])&&Ac(e.prototype,o),n&&Ac(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function xc(t){"@babel/helpers - typeof";return(xc="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})(t)}function Uc(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);for(var n=this.mergeDashLine(this.dashLines,[]),r=this.computeDashLine(n,o),i=0;i=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);for(var n=this.mergeDashLine(this.dashLines,[]),r=this.computeDashLine(n,o),i=0;i=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);for(var r=this.mergeDashLine(this.dashLines,[]),i=this.computeDashLine(r,n),l=0;l=2&&this.controlPoints.length.3||n<=0)&&(n=.3),this.scaleValues[0]=n,this.scaleValues[1]=this.getSubSymbolScaleValue(),this.scaleValues[2]=.5*this.getSubSymbolScaleValue()}var r=this.getLinePts(e,this.scaleValues[0],this.scaleValues[3]),i=SuperMapAlgoPlot.PlottingUtil.dirAngle(r.startPt,r.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,l=new SuperMapAlgoPlot.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.radian(r.startPt,r.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,s=SuperMapAlgoPlot.PlottingUtil.distance(r.startPt,r.endPt);02?this.addArrow(P[P.length-1],this.scaleValues[2]):this.addArrow(p,this.scaleValues[2]),p.length>=2){var d=o*this.scaleValues[1],b=.3*d,m=.8*d,v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(o-m,e),M=1.1*d,A=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(o-M,e),O=180*SuperMapAlgoPlot.PlottingUtil.radian(v.pts,A.pts)/Math.PI,_=SuperMapAlgoPlot.PlottingUtil.circlePoint(v.pts,b,b,O+90),L=SuperMapAlgoPlot.PlottingUtil.circlePoint(v.pts,b,b,O+270),w=SuperMapAlgoPlot.PlottingUtil.circlePoint(A.pts,b,b,O+90),x=SuperMapAlgoPlot.PlottingUtil.circlePoint(A.pts,b,b,O+270),U=[];U.push(_),U.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,{surroundLineLimit:!0,lineTypeLimit:!0}),(U=[]).push(w),U.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U,{surroundLineLimit:!0,lineTypeLimit:!0})}}var E=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(o*this.scaleValues[3],e),T=SuperMapAlgoPlot.PlottingUtil.circlePoint(E.pts,.5*s,.5*s,i+90);this.addScalePoint(E.pts,0),this.addScalePoint(T,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=a&&(l=a),this.scaleValues[0]=l}else if(!0===e.isScalePoint&&0===t){for(var s=0,u=-1,p=null,c=0;c1-2*this.scaleValues[0]&&(g=1-2*this.scaleValues[0]),this.scaleValues[3]=g}}}}])&&lf(e.prototype,o),n&&lf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function cf(t){"@babel/helpers - typeof";return(cf="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})(t)}function ff(t,e){for(var o=0;of&&(l=u,s=c,a=f)}}if(-1==l||l>n.length-1)return;r=0;for(var h=0;hi)return;var g=r/i;this.scaleValues[0]=g}else if(1===t){var P=i*this.scaleValues[0],y=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,P);if(-1===y.index)return;var S=y.pt,d=n[y.index],b=n[y.index+1],m=SuperMapAlgoPlot.PlottingUtil.radian(d,b),v=SuperMapAlgoPlot.PlottingUtil.radian(S,e)-m;this.scaleValues[1]=v;var M=(r=SuperMapAlgoPlot.PlottingUtil.distance(S,e))/i;this.scaleValues[2]=M}}}}])&&ff(e.prototype,o),n&&ff(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Sf(t){"@babel/helpers - typeof";return(Sf="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})(t)}function df(t,e){for(var o=0;o.2||n<=0)&&(n=.2),this.scaleValues[2]=n,this.scaleValues[4]=n}var r=o*this.scaleValues[0],i=180*this.scaleValues[1]/Math.PI,l=o*this.scaleValues[2],a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,r);if(-1!==a.index){var s=a.pt,u=new SuperMapAlgoPlot.Point(e[a.index].x,e[a.index].y),p=new SuperMapAlgoPlot.Point(e[a.index+1].x,e[a.index+1].y),c=SuperMapAlgoPlot.PlottingUtil.dirAngle(u,p)*SuperMapAlgoPlot.PlottingUtil.RTOD,f=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,l,l,c+i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,f],{surroundLineLimit:!0,lineTypeLimit:!0});var h=SuperMapAlgoPlot.PlottingUtil.dirAngle(s,f)*SuperMapAlgoPlot.PlottingUtil.RTOD,g=SuperMapAlgoPlot.PlottingUtil.findPoint(f,s,.15*l,0),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.2*l,.2*l,h-157.5),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.2*l,.2*l,h+157.5);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,f,y,g],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});var S=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.5,P,y),d=[];d.push(s),d.push(S);var b=SuperMapAlgoPlot.PlottingUtil.polylineDistance(d),m=b*this.scaleValues[5],v=b*this.scaleValues[0],M=(s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(d,v).pt,h);0f&&(l=u,s=c,a=f))}}if(-1===l||l>n.length-1)return;r=0;for(var h=0;hi)return;var g=r/i;this.scaleValues[0]=g}else if(1===t){var P=i*this.scaleValues[0],y=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,P);if(-1===y.index)return;var S=y.pt,d=n[y.index],b=n[y.index+1],m=SuperMapAlgoPlot.PlottingUtil.radian(d,b),v=SuperMapAlgoPlot.PlottingUtil.radian(S,e)-m;this.scaleValues[1]=v;var M=(r=SuperMapAlgoPlot.PlottingUtil.distance(S,e))/i;this.scaleValues[2]=M}else if(2===t){var A=2*SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/i;A>.35&&(A=.35),this.scaleValues[4]=A}}}},{key:"getLeftSubSymbolPts",value:function(t){var e=.25*t,o=[],n=new SuperMapAlgoPlot.Point(0,0),r=new SuperMapAlgoPlot.Point(e,-2*e),i=new SuperMapAlgoPlot.Point(2*e,0),l=new SuperMapAlgoPlot.Point(e,2*e);return o.push(n),o.push(r),o.push(i),o.push(l),o.push(n),o}},{key:"getRightSubSymbolPts",value:function(t){return this.getLeftSubSymbolPts(t)}}])&&df(e.prototype,o),n&&df(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Af(t){"@babel/helpers - typeof";return(Af="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})(t)}function Of(t,e){for(var o=0;o.2||n<=0)&&(n=.2),this.scaleValues[2]=n,this.scaleValues[4]=n}var r=o*this.scaleValues[0],i=180*this.scaleValues[1]/Math.PI,l=o*this.scaleValues[2],a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,r);if(-1!==a.index){var s=a.pt,u=new SuperMapAlgoPlot.Point(e[a.index].x,e[a.index].y),p=new SuperMapAlgoPlot.Point(e[a.index+1].x,e[a.index+1].y),c=180*SuperMapAlgoPlot.PlottingUtil.radian(u,p)/Math.PI,f=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,l,l,c+i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,f],{surroundLineLimit:!0,lineTypeLimit:!0});var h=180*SuperMapAlgoPlot.PlottingUtil.radian(s,f)/Math.PI,g=SuperMapAlgoPlot.PlottingUtil.findPoint(f,s,.15*l,0),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.2*l,.2*l,h-157.5),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.2*l,.2*l,h+157.5);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,f,y,g],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});var S=4.5*(o*this.scaleValues[4])*Math.sin(Math.PI/8),d=t[0],b=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,S);if(-1!=b.index){var m=SuperMapAlgoPlot.PlottingUtil.distance(d,b.pt);m*=.5;var v=new SuperMapAlgoPlot.Point(.5*m,0),M=new SuperMapAlgoPlot.Point(0,m),A=new SuperMapAlgoPlot.Point(-.5*m,0),O=new SuperMapAlgoPlot.Point(0,-m),_=SuperMapAlgoPlot.PlottingUtil.dirAngle(d,b.pt)*SuperMapAlgoPlot.PlottingUtil.RTOD,L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,v,_),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,M,_),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,A,_),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,O,_);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[L,w,x,U],{surroundLineLimit:!0,lineTypeLimit:!0});var E=t[t.length-1],T=o-S,V=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,T);if(-1!=V.index){S*=.5;var R=new SuperMapAlgoPlot.Point(.5*S,S),I=new SuperMapAlgoPlot.Point(.5*S,0),C=new SuperMapAlgoPlot.Point(.5*S,-.5*S),j=new SuperMapAlgoPlot.Point(-.5*S,-S),N=new SuperMapAlgoPlot.Point(-.5*S,S),D=SuperMapAlgoPlot.PlottingUtil.dirAngle(E,V.pt)*SuperMapAlgoPlot.PlottingUtil.RTOD,B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(E,R,D),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(E,I,D),k=[B,Y,SuperMapAlgoPlot.PlottingUtil.coordinateTrans(E,C,D),SuperMapAlgoPlot.PlottingUtil.coordinateTrans(E,j,D),SuperMapAlgoPlot.PlottingUtil.coordinateTrans(E,N,D)];this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,k,{surroundLineLimit:!0,lineTypeLimit:!0});var F=[];if(F.push(L),2!=e.length)for(var z=b.index;zthis.scaleValues.length||o.length<2||t<0||2f&&(u=p,a=c.projectPoint,s=f)}}if(-1==u||u>i.length-1)return;for(var h=0,g=0;gr)return;var d=h/r;this.scaleValues[0]=d}else if(1===t){var b=r*this.scaleValues[0],m=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,b);if(-1==m.index)return;var v=n[m.index],M=n[m.index+1],A=SuperMapAlgoPlot.PlottingUtil.dirAngle(v,M),O=SuperMapAlgoPlot.PlottingUtil.dirAngle(m.pt,e)-A;this.scaleValues[1]=O;var _=(h=SuperMapAlgoPlot.PlottingUtil.distance(m.pt,e))/r;this.scaleValues[2]=_}else if(2===t){var L=o[0],w=(h=SuperMapAlgoPlot.PlottingUtil.distance(L,e))/r;this.scaleValues[4]=2*w}}}])&&Of(e.prototype,o),n&&Of(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Uf(t){"@babel/helpers - typeof";return(Uf="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})(t)}function Ef(t,e){for(var o=0;oA&&(S=m,b=M,d=A)}}if(-1==S||S>P.length-1)return;i=0;for(var O=0;On)return;var _=i/n;this.scaleValues[0]=_}else if(1===t){l=n*this.scaleValues[0];var L=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,l);if(-1===L.index)return;a=L.pt,s=g[L.index],u=g[L.index+1],p=SuperMapAlgoPlot.PlottingUtil.radian(s,u);var w=(h=SuperMapAlgoPlot.PlottingUtil.radian(a,e))-p;this.scaleValues[1]=w;var x=(i=SuperMapAlgoPlot.PlottingUtil.distance(a,e))/n/1.5;this.scaleValues[2]=x}else if(2===t){if(l=n*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,i=n*this.scaleValues[2],-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,l)).index)return;f=a.pt,s=g[a.index],u=g[a.index+1],p=180*SuperMapAlgoPlot.PlottingUtil.radian(s,u)/Math.PI;var U=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.4*i,.4*i,p+c),E=SuperMapAlgoPlot.PlottingUtil.distance(e,U)/(.4*i);this.scaleValues[5]=E}else if(3===t){if(l=n*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,i=n*this.scaleValues[2],-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,l)).index)return;f=a.pt,s=g[a.index],u=g[a.index+1],h=(p=180*SuperMapAlgoPlot.PlottingUtil.radian(s,u)/Math.PI)+c;var T=new SuperMapAlgoPlot.Point(.6*i,0),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(f,T,h),R=.4*i*this.scaleValues[5],I=new SuperMapAlgoPlot.Point(0,R),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(V,I,h),j=2*SuperMapAlgoPlot.PlottingUtil.distance(C,e)/(.4*i);this.scaleValues[6]=j}}}}])&&Ef(e.prototype,o),n&&Ef(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Cf(t){"@babel/helpers - typeof";return(Cf="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})(t)}function jf(t,e){for(var o=0;o(u=a/n)||.3.9&&(m=.9),this.scaleValues[4]=m}}}}])&&jf(e.prototype,o),n&&jf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function kf(t){"@babel/helpers - typeof";return(kf="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})(t)}function Ff(t,e){for(var o=0;o.3||r<=0)&&(r=.3),this.scaleValues[1]=r,this.scaleValues[3]=r}var i=this.scaleValues[1],l=this.scaleValues[2]*SuperMapAlgoPlot.PlottingUtil.RTOD,a=o*this.scaleValues[0],s=o*this.scaleValues[3],u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,a);if(-1!==u.index){var p=u.pt,c=e[u.index],f=e[u.index+1],h=SuperMapAlgoPlot.PlottingUtil.radian(c,f)*SuperMapAlgoPlot.PlottingUtil.RTOD,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,s,s,h+l);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u.pt,g],{surroundLineLimit:!0,lineTypeLimit:!0});var P,y=SuperMapAlgoPlot.PlottingUtil.radian(p,g)*SuperMapAlgoPlot.PlottingUtil.RTOD,S=o*i;00&&-1!=this.subSymbols[0].code){var N=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.subSymbols[0],.5*S,.5*S,h+l+90);this.addScalePoint(N,0)}this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);for(var n=0,r=0;rd&&(f=P,g=S,h=d)}}if(-1==f||f>p.length-1)return;for(var b=0,m=0;mn)return;var v=b/n;this.scaleValues[0]=v}else if(2===t){var M=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(u,n*this.scaleValues[0]);if(-1===M.index)return;i=M.pt,l=u[M.index],a=u[M.index+1],s=SuperMapAlgoPlot.PlottingUtil.dirAngle(l,a)*SuperMapAlgoPlot.PlottingUtil.RTOD;var A=n*this.scaleValues[3],O=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,A,A,s+this.scaleValues[2]*SuperMapAlgoPlot.PlottingUtil.RTOD+180),_=SuperMapAlgoPlot.PlottingUtil.distance(O,e)/n*2;this.scaleValues[1]=_}else if(1===t){var L=n*this.scaleValues[0],w=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(u,L);if(-1===w.index)return;i=w.pt,l=u[w.index],a=u[w.index+1],s=SuperMapAlgoPlot.PlottingUtil.dirAngle(l,a)*SuperMapAlgoPlot.PlottingUtil.RTOD;var x=(SuperMapAlgoPlot.PlottingUtil.dirAngle(i,e)*SuperMapAlgoPlot.PlottingUtil.RTOD-s)*SuperMapAlgoPlot.PlottingUtil.DTOR;this.scaleValues[2]=x}}}}])&&Hf(e.prototype,o),n&&Hf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function $f(t){"@babel/helpers - typeof";return($f="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})(t)}function th(t,e){for(var o=0;ov&&(P=d,S=m,y=v)}}if(-1==P||P>g.length-1)return;i=0;for(var M=0;Mn)return;var A=i/n;this.scaleValues[0]=A}else if(1===t){l=n*this.scaleValues[0];var O=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,l);if(-1===O.index)return;s=a=O.pt,u=g[O.index],p=g[O.index+1],c=SuperMapAlgoPlot.PlottingUtil.radian(u,p);var _=SuperMapAlgoPlot.PlottingUtil.radian(s,e)-c;this.scaleValues[1]=_;var L=(i=SuperMapAlgoPlot.PlottingUtil.distance(a,e))/n;this.scaleValues[2]=L}else if(2===t){if(l=n*this.scaleValues[0],f=180*this.scaleValues[1]/Math.PI,i=n*this.scaleValues[2],-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,l)).index)return;s=a.pt,u=g[a.index],p=g[a.index+1],c=180*SuperMapAlgoPlot.PlottingUtil.radian(u,p)/Math.PI,h=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,i,i,c+f-180);var w=SuperMapAlgoPlot.PlottingUtil.distance(e,h)/(.4*i);this.scaleValues[5]=w}else if(3===t){if(l=n*this.scaleValues[0],f=180*this.scaleValues[1]/Math.PI,i=n*this.scaleValues[2],-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,l)).index)return;s=a.pt,u=g[a.index],p=g[a.index+1],c=180*SuperMapAlgoPlot.PlottingUtil.radian(u,p)/Math.PI,h=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,i,i,c+f-180);var x=.4*i*this.scaleValues[5],U=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,x,x,c+f+90),E=2*SuperMapAlgoPlot.PlottingUtil.distance(U,e)/(.4*i);if(this.scaleValues[5]-.25*E<=0)return;this.scaleValues[6]=E}}}}])&&th(e.prototype,o),n&&th(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ih(t){"@babel/helpers - typeof";return(ih="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})(t)}function lh(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],l,2*i,c),this.addScalePoint(s.pntRight),this.finish()}}}])&&dh(e.prototype,o),n&&dh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ah(t){"@babel/helpers - typeof";return(Ah="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})(t)}function Oh(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],r,2*n,A),this.addScalePoint(a.pntRight,0),this.finish()}}}])&&Oh(e.prototype,o),n&&Oh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Uh(t){"@babel/helpers - typeof";return(Uh="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})(t)}function Eh(t,e){for(var o=0;o.3||e<=0)&&(e=.3),this.scaleValues[0]=.5*e;this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t);var e,o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);((e=this.getSubSymbolScaleValue())>.3||e<=0)&&(e=.3);var n=Math.abs(t[1].x-t[0].x)*e*.5,r=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),i=new SuperMapAlgoPlot.Point(r.x-n,r.y+n),l=new SuperMapAlgoPlot.Point(r.x-3*n,r.y-n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[i,l],{surroundLineLimit:!0,lineTypeLimit:!0});var a=new SuperMapAlgoPlot.Point(r.x-n,r.y-n),s=new SuperMapAlgoPlot.Point(r.x-3*n,r.y+n);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[a,s],{surroundLineLimit:!0,lineTypeLimit:!0});var u=new SuperMapAlgoPlot.Point(r.x+n,r.y),p=new SuperMapAlgoPlot.Point(r.x+4*n,r.y),c=(SuperMapAlgoPlot.PlottingUtil.radian(u,p),SuperMapAlgoPlot.PlottingUtil.RTOD,o*this.scaleValues[0]*2),f=new SuperMapAlgoPlot.Point(r.x+o*this.scaleValues[1],r.y+o*this.scaleValues[2]);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],f,.8*c,0),this.addScalePoint(f);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,c/2,c/2,90);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.3||o<=0)&&(o=.3),this.scaleValues[2]=o}var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t),r=Math.abs(t[1].x-t[0].x)*this.getSubSymbolScaleValue()*.5,i=Math.abs(t[1].y-t[0].y)*this.getSubSymbolScaleValue()*.5;if(t[0].y>t[1].y){var l=new SuperMapAlgoPlot.Point(n.x,t[0].y),a=new SuperMapAlgoPlot.Point(n.x,t[0].y-i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[l,a],{surroundLineLimit:!0,lineTypeLimit:!0});var s=new SuperMapAlgoPlot.Point(n.x,t[1].y),u=new SuperMapAlgoPlot.Point(n.x,t[1].y+i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,u],{surroundLineLimit:!0,lineTypeLimit:!0})}else{var p=new SuperMapAlgoPlot.Point(n.x,t[1].y),c=new SuperMapAlgoPlot.Point(n.x,t[1].y-i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p,c],{surroundLineLimit:!0,lineTypeLimit:!0});var f=new SuperMapAlgoPlot.Point(n.x,t[0].y),h=new SuperMapAlgoPlot.Point(n.x,t[0].y+i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[f,h],{surroundLineLimit:!0,lineTypeLimit:!0})}if(t[0].x>t[1].x){var g=new SuperMapAlgoPlot.Point(t[0].x,n.y),P=new SuperMapAlgoPlot.Point(t[0].x-r,n.y);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[g,P],{surroundLineLimit:!0,lineTypeLimit:!0});var y=new SuperMapAlgoPlot.Point(t[1].x,n.y),S=new SuperMapAlgoPlot.Point(t[1].x+r,n.y);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[y,S],{surroundLineLimit:!0,lineTypeLimit:!0})}else{var d=new SuperMapAlgoPlot.Point(t[1].x,n.y),b=new SuperMapAlgoPlot.Point(t[1].x-r,n.y);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[d,b],{surroundLineLimit:!0,lineTypeLimit:!0});var m=new SuperMapAlgoPlot.Point(t[0].x,n.y),v=new SuperMapAlgoPlot.Point(t[0].x+r,n.y);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[m,v],{surroundLineLimit:!0,lineTypeLimit:!0})}this.addCell(SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL,t);var M=new SuperMapAlgoPlot.Point(n.x+e*this.scaleValues[0],n.y+e*this.scaleValues[1]),A=e*this.scaleValues[2];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],M,A,0),this.addScalePoint(M);var O=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,A/2,A/2,90);this.addScalePoint(O),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengtht[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}(t),i="Feature"===(n=e).type?n.geometry:n,l=i.type,a=e.bbox,s=i.coordinates;if(a&&!1===function(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}(r,a))return!1;"Polygon"===l&&(s=[s]);for(var u=!1,p=0;pt[1]!=u>t[1]&&t[0]<(s-l)*(t[1]-a)/(u-a)+l&&(n=!n)}return n}Object.prototype.hasOwnProperty;var dg=new ArrayBuffer(16);new Float64Array(dg),new Uint32Array(dg);o(4889);!function(){function t(t){this.points=t.points||[],this.duration=t.duration||1e4,this.sharpness=t.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=t.stepLength||60,this.length=this.points.length,this.delay=0;for(var e=0;et&&(e.push(n),o=r)}return e},t.prototype.vector=function(t){var e=this.pos(t+10),o=this.pos(t-10);return{angle:180*Math.atan2(e.y-o.y,e.x-o.x)/3.14,speed:Math.sqrt((o.x-e.x)*(o.x-e.x)+(o.y-e.y)*(o.y-e.y)+(o.z-e.z)*(o.z-e.z))}},t.prototype.pos=function(t){var e=t-this.delay;e<0&&(e=0),e>this.duration&&(e=this.duration-1);var o=e/this.duration;if(o>=1)return this.points[this.length-1];var n=Math.floor((this.points.length-1)*o);return function(t,e,o,n,r){var i=function(t){var e=t*t;return[e*t,3*e*(1-t),3*t*(1-t)*(1-t),(1-t)*(1-t)*(1-t)]}(t);return{x:r.x*i[0]+n.x*i[1]+o.x*i[2]+e.x*i[3],y:r.y*i[0]+n.y*i[1]+o.y*i[2]+e.y*i[3],z:r.z*i[0]+n.z*i[1]+o.z*i[2]+e.z*i[3]}}((this.length-1)*o-n,this.points[n],this.controls[n][1],this.controls[n+1][0],this.points[n+1])}}();var bg=function(t){return function(t,e){void 0===e&&(e={});var o=Number(t[0]),n=Number(t[1]),r=Number(t[2]),i=Number(t[3]);if(6===t.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var l=[o,n];return ag([[l,[r,n],[r,i],[o,i],l]],e.properties,{bbox:t,id:e.id})}(Pg(t))};o(8027);o(5075);o(1925);var mg=Math.PI/180,vg=180/Math.PI,Mg=function(t,e){this.lon=t,this.lat=e,this.x=mg*t,this.y=mg*e};Mg.prototype.view=function(){return String(this.lon).slice(0,4)+","+String(this.lat).slice(0,4)},Mg.prototype.antipode=function(){var t=-1*this.lat,e=this.lon<0?180+this.lon:-1*(180-this.lon);return new Mg(e,t)};var Ag=function(){this.coords=[],this.length=0};Ag.prototype.move_to=function(t){this.length++,this.coords.push(t)};var Og=function(t){this.properties=t||{},this.geometries=[]};Og.prototype.json=function(){if(this.geometries.length<=0)return{geometry:{type:"LineString",coordinates:null},type:"Feature",properties:this.properties};if(1===this.geometries.length)return{geometry:{type:"LineString",coordinates:this.geometries[0].coords},type:"Feature",properties:this.properties};for(var t=[],e=0;ef&&(P>p&&gp&&Ps&&(s=y)}var S=[];if(a&&s0&&Math.abs(m-o[b-1][0])>f){var v=parseFloat(o[b-1][0]),M=parseFloat(o[b-1][1]),A=parseFloat(o[b][0]),O=parseFloat(o[b][1]);if(v>-180&&v-180&&o[b-1][0]p&&v<180&&-180===A&&b+1p&&o[b-1][0]<180){d.push([180,o[b][1]]),b++,d.push([o[b][0],o[b][1]]);continue}if(vp){var _=v;v=A,A=_;var L=M;M=O,O=L}if(v>p&&A=180&&vp?180:-180,x]),(d=[]).push([o[b-1][0]>p?-180:180,x]),S.push(d)}else d=[],S.push(d);d.push([m,o[b][1]])}else d.push([o[b][0],o[b][1]])}}else{var U=[];S.push(U);for(var E=0;E0)-(n<0)||+n}function gP(t,e){return e.geometry.coordinates[0].every(function(e){return yg(lg(e),t)})}var PP=function(){function t(e){this.id=t.buildId(e),this.coordinates=e,this.innerEdges=[],this.outerEdges=[],this.outerEdgesSorted=!1}return t.buildId=function(t){return t.join(",")},t.prototype.removeInnerEdge=function(t){this.innerEdges=this.innerEdges.filter(function(e){return e.from.id!==t.from.id})},t.prototype.removeOuterEdge=function(t){this.outerEdges=this.outerEdges.filter(function(e){return e.to.id!==t.to.id})},t.prototype.addOuterEdge=function(t){this.outerEdges.push(t),this.outerEdgesSorted=!1},t.prototype.sortOuterEdges=function(){var t=this;this.outerEdgesSorted||(this.outerEdges.sort(function(e,o){var n=e.to,r=o.to;if(n.coordinates[0]-t.coordinates[0]>=0&&r.coordinates[0]-t.coordinates[0]<0)return 1;if(n.coordinates[0]-t.coordinates[0]<0&&r.coordinates[0]-t.coordinates[0]>=0)return-1;if(n.coordinates[0]-t.coordinates[0]==0&&r.coordinates[0]-t.coordinates[0]==0)return n.coordinates[1]-t.coordinates[1]>=0||r.coordinates[1]-t.coordinates[1]>=0?n.coordinates[1]-r.coordinates[1]:r.coordinates[1]-n.coordinates[1];var i=hP(t.coordinates,n.coordinates,r.coordinates);return i<0?1:i>0?-1:Math.pow(n.coordinates[0]-t.coordinates[0],2)+Math.pow(n.coordinates[1]-t.coordinates[1],2)-(Math.pow(r.coordinates[0]-t.coordinates[0],2)+Math.pow(r.coordinates[1]-t.coordinates[1],2))}),this.outerEdgesSorted=!0)},t.prototype.getOuterEdges=function(){return this.sortOuterEdges(),this.outerEdges},t.prototype.getOuterEdge=function(t){return this.sortOuterEdges(),this.outerEdges[t]},t.prototype.addInnerEdge=function(t){this.innerEdges.push(t)},t}(),yP=function(){function t(t,e){this.from=t,this.to=e,this.next=void 0,this.label=void 0,this.symetric=void 0,this.ring=void 0,this.from.addOuterEdge(this),this.to.addInnerEdge(this)}return t.prototype.getSymetric=function(){return this.symetric||(this.symetric=new t(this.to,this.from),this.symetric.symetric=this),this.symetric},t.prototype.deleteEdge=function(){this.from.removeOuterEdge(this),this.to.removeInnerEdge(this)},t.prototype.isEqual=function(t){return this.from.id===t.from.id&&this.to.id===t.to.id},t.prototype.toString=function(){return"Edge { "+this.from.id+" -> "+this.to.id+" }"},t.prototype.toLineString=function(){return sg([this.from.coordinates,this.to.coordinates])},t.prototype.compareTo=function(t){return hP(t.from.coordinates,t.to.coordinates,this.to.coordinates)},t}(),SP=function(){function t(){this.edges=[],this.polygon=void 0,this.envelope=void 0}return t.prototype.push=function(t){this.edges.push(t),this.polygon=this.envelope=void 0},t.prototype.get=function(t){return this.edges[t]},Object.defineProperty(t.prototype,"length",{get:function(){return this.edges.length},enumerable:!0,configurable:!0}),t.prototype.forEach=function(t){this.edges.forEach(t)},t.prototype.map=function(t){return this.edges.map(t)},t.prototype.some=function(t){return this.edges.some(t)},t.prototype.isValid=function(){return!0},t.prototype.isHole=function(){var t=this,e=this.edges.reduce(function(e,o,n){return o.from.coordinates[1]>t.edges[e].from.coordinates[1]&&(e=n),e},0),o=(0===e?this.length:e)-1,n=(e+1)%this.length,r=hP(this.edges[o].from.coordinates,this.edges[e].from.coordinates,this.edges[n].from.coordinates);return 0===r?this.edges[o].from.coordinates[0]>this.edges[n].from.coordinates[0]:r>0},t.prototype.toMultiPoint=function(){return ug(this.edges.map(function(t){return t.from.coordinates}))},t.prototype.toPolygon=function(){if(this.polygon)return this.polygon;var t=this.edges.map(function(t){return t.from.coordinates});return t.push(this.edges[0].from.coordinates),this.polygon=ag([t])},t.prototype.getEnvelope=function(){return this.envelope?this.envelope:this.envelope=bg(this.toPolygon())},t.findEdgeRingContaining=function(t,e){var o,n,r=t.getEnvelope();return e.forEach(function(e){var i,l,a,s,u,p,c=e.getEnvelope();if((n&&(o=n.getEnvelope()),l=r,a=(i=c).geometry.coordinates[0].map(function(t){return t[0]}),s=i.geometry.coordinates[0].map(function(t){return t[1]}),u=l.geometry.coordinates[0].map(function(t){return t[0]}),p=l.geometry.coordinates[0].map(function(t){return t[1]}),Math.max.apply(null,a)!==Math.max.apply(null,u)||Math.max.apply(null,s)!==Math.max.apply(null,p)||Math.min.apply(null,a)!==Math.min.apply(null,u)||Math.min.apply(null,s)!==Math.min.apply(null,p))&&gP(c,r)){for(var f=void 0,h=function(t){e.some(function(e){return o=t,n=e.from.coordinates,o[0]===n[0]&&o[1]===n[1];var o,n})||(f=t)},g=0,P=t.map(function(t){return t.from.coordinates});g=0;--i){var l=r[i],a=l.symetric,s=void 0,u=void 0;l.label===e&&(s=l),a.label===e&&(u=a),s&&u&&(u&&(n=u),s&&(n&&(n.next=s,n=void 0),o||(o=s)))}n&&(n.next=o)},t.prototype._findLabeledEdgeRings=function(){var t=[],e=0;return this.edges.forEach(function(o){if(!(o.label>=0)){t.push(o);var n=o;do{n.label=e,n=n.next}while(!o.isEqual(n));e++}}),t},t.prototype.getEdgeRings=function(){var t=this;this._computeNextCWEdges(),this.edges.forEach(function(t){t.label=void 0}),this._findLabeledEdgeRings().forEach(function(e){t._findIntersectionNodes(e).forEach(function(o){t._computeNextCCWEdges(o,e.label)})});var e=[];return this.edges.forEach(function(o){o.ring||e.push(t._findEdgeRing(o))}),e},t.prototype._findIntersectionNodes=function(t){var e=[],o=t,n=function(){var n=0;o.from.getOuterEdges().forEach(function(e){e.label===t.label&&++n}),n>1&&e.push(o.from),o=o.next};do{n()}while(!t.isEqual(o));return e},t.prototype._findEdgeRing=function(t){var e=t,o=new SP;do{o.push(e),e.ring=o,e=e.next}while(!t.isEqual(e));return o},t.prototype.removeNode=function(t){var e=this;t.getOuterEdges().forEach(function(t){return e.removeEdge(t)}),t.innerEdges.forEach(function(t){return e.removeEdge(t)}),delete this.nodes[t.id]},t.prototype.removeEdge=function(t){this.edges=this.edges.filter(function(e){return!e.isEqual(t)}),t.deleteEdge()}}();o(1577);o(8328);o(9917);function dP(t){for(var e=t,o=[];e.parent;)o.unshift(e),e=e.parent;return o}var bP={search:function(t,e,o,n){t.cleanDirty();var r=(n=n||{}).heuristic||bP.heuristics.manhattan,i=n.closest||!1,l=new MP(function(t){return t.f}),a=e;for(e.h=r(e,o),l.push(e);l.size()>0;){var s=l.pop();if(s===o)return dP(s);s.closed=!0;for(var u=t.neighbors(s),p=0,c=u.length;p0&&(this.content[0]=e,this.bubbleUp(0)),t},remove:function(t){var e=this.content.indexOf(t),o=this.content.pop();e!==this.content.length-1&&(this.content[e]=o,this.scoreFunction(o)0;){var o=(t+1>>1)-1,n=this.content[o];if(!(this.scoreFunction(e)0)){if(i/=f,f<0){if(i0){if(i>c)return;i>p&&(p=i)}if(i=n-s,f||!(i<0)){if(i/=f,f<0){if(i>c)return;i>p&&(p=i)}else if(f>0){if(i0)){if(i/=h,h<0){if(i0){if(i>c)return;i>p&&(p=i)}if(i=r-u,h||!(i<0)){if(i/=h,h<0){if(i>c)return;i>p&&(p=i)}else if(h>0){if(i0||c<1)||(p>0&&(t[0]=[s+p*f,u+p*h]),c<1&&(t[1]=[s+c*f,u+c*h]),!0)}}}}}function RP(t,e,o,n,r){var i=t[1];if(i)return!0;var l,a,s=t[0],u=t.left,p=t.right,c=u[0],f=u[1],h=p[0],g=p[1],P=(c+h)/2,y=(f+g)/2;if(g===f){if(P=n)return;if(c>h){if(s){if(s[1]>=r)return}else s=[P,o];i=[P,r]}else{if(s){if(s[1]1)if(c>h){if(s){if(s[1]>=r)return}else s=[(o-a)/l,o];i=[(r-a)/l,r]}else{if(s){if(s[1]=n)return}else s=[e,l*e+a];i=[n,l*n+a]}else{if(s){if(s[0]=-$P)){var h=s*s+u*u,g=p*p+c*c,P=(c*h-u*g)/f,y=(s*g-p*h)/f,S=DP.pop()||new function(){OP(this),this.x=this.y=this.arc=this.site=this.cy=null};S.arc=t,S.site=r,S.x=P+l,S.y=(S.cy=y+a)+Math.sqrt(P*P+y*y),t.circle=S;for(var d=null,b=JP._;b;)if(S.yQP)a=a.L;else{if(!((r=i-WP(a,l))>QP)){n>-QP?(e=a.P,o=a):r>-QP?(e=a,o=a.N):e=o=a;break}if(!a.R){e=a;break}a=a.R}!function(t){KP[t.index]={site:t,halfedges:[]}}(t);var s=FP(t);if(HP.insert(e,s),e||o){if(e===o)return YP(e),o=FP(e.site),HP.insert(s,o),s.edge=o.edge=UP(e.site,s.site),BP(e),void BP(o);if(o){YP(e),YP(o);var u=e.site,p=u[0],c=u[1],f=t[0]-p,h=t[1]-c,g=o.site,P=g[0]-p,y=g[1]-c,S=2*(f*y-h*P),d=f*f+h*h,b=P*P+y*y,m=[(y*d-h*b)/S+p,(f*b-P*d)/S+c];TP(o.edge,u,g,m),s.edge=UP(u,t,null,m),o.edge=UP(t,g,null,m),BP(e),BP(o)}else s.edge=UP(e.site,s.site)}}function XP(t,e){var o=t.site,n=o[0],r=o[1],i=r-e;if(!i)return n;var l=t.P;if(!l)return-1/0;var a=(o=l.site)[0],s=o[1],u=s-e;if(!u)return a;var p=a-n,c=1/i-1/u,f=p/u;return c?(-f+Math.sqrt(f*f-2*c*(p*p/(-2*u)-s+u/2+r-i/2)))/c+n:(n+a)/2}function WP(t,e){var o=t.N;if(o)return XP(o,e);var n=t.site;return n[1]===e?n[0]:1/0}var HP,KP,JP,ZP,QP=1e-6,$P=1e-12;function ty(t,e){return e[1]-t[1]||e[0]-t[0]}function ey(t,e){var o,n,r,i=t.sort(ty).pop();for(ZP=[],KP=new Array(t.length),HP=new xP,JP=new xP;;)if(r=NP,i&&(!r||i[1]QP||Math.abs(r[0][1]-r[1][1])>QP)||delete ZP[i]}(l,a,s,u),function(t,e,o,n){var r,i,l,a,s,u,p,c,f,h,g,P,y=KP.length,S=!0;for(r=0;rQP||Math.abs(P-f)>QP)&&(s.splice(a,0,ZP.push(EP(l,h,Math.abs(g-t)QP?[t,Math.abs(c-t)QP?[Math.abs(f-n)QP?[o,Math.abs(c-o)QP?[Math.abs(f-e)=a)return null;var s=t-r.site[0],u=e-r.site[1],p=s*s+u*u;do{r=i.cells[n=l],l=null,r.halfedges.forEach(function(o){var n=i.edges[o],a=n.left;if(a!==r.site&&a||(a=n.right)){var s=t-a[0],u=e-a[1],c=s*s+u*u;c0&&r[r.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]e?1:t0))break;if(null===e.right)break;if(o(t,e.right.key)>0){a=e.right;if(e.right=a.left,a.left=e,null===(e=a).right)break}r.right=e,r=e,e=e.right}}return r.right=e.left,i.left=e.right,e.left=n.right,e.right=n.left,e}function ly(t,e,o,n){var r=new ny(t,e);if(null===o)return r.left=r.right=null,r;var i=n(t,(o=iy(t,o,n)).key);return i<0?(r.left=o.left,r.right=o,o.left=null):i>=0&&(r.right=o.right,r.left=o,o.right=null),r}function ay(t,e,o){var n=null,r=null;if(e){var i=o((e=iy(t,e,o)).key,t);0===i?(n=e.left,r=e.right):i<0?(r=e.right,e.right=null,n=e):(n=e.left,e.left=null,r=e)}return{left:n,right:r}}var sy=function(){function t(t){void 0===t&&(t=ry),this._root=null,this._size=0,this._comparator=t}return t.prototype.insert=function(t,e){return this._size++,this._root=ly(t,e,this._root,this._comparator)},t.prototype.add=function(t,e){var o=new ny(t,e);null===this._root&&(o.left=o.right=null,this._size++,this._root=o);var n=this._comparator,r=iy(t,this._root,n),i=n(t,r.key);return 0===i?this._root=r:(i<0?(o.left=r.left,o.right=r,r.left=null):i>0&&(o.right=r.right,o.left=r,r.right=null),this._size++,this._root=o),this._root},t.prototype.remove=function(t){this._root=this._remove(t,this._root,this._comparator)},t.prototype._remove=function(t,e,o){var n;return null===e?null:0===o(t,(e=iy(t,e,o)).key)?(null===e.left?n=e.right:(n=iy(t,e.left,o)).right=e.right,this._size--,n):e},t.prototype.pop=function(){var t=this._root;if(t){for(;t.left;)t=t.left;return this._root=iy(t.key,this._root,this._comparator),this._root=this._remove(t.key,this._root,this._comparator),{key:t.key,data:t.data}}return null},t.prototype.findStatic=function(t){for(var e=this._root,o=this._comparator;e;){var n=o(t,e.key);if(0===n)return e;e=n<0?e.left:e.right}return null},t.prototype.find=function(t){return this._root&&(this._root=iy(t,this._root,this._comparator),0!==this._comparator(t,this._root.key))?null:this._root},t.prototype.contains=function(t){for(var e=this._root,o=this._comparator;e;){var n=o(t,e.key);if(0===n)return!0;e=n<0?e.left:e.right}return!1},t.prototype.forEach=function(t,e){for(var o=this._root,n=[],r=!1;!r;)null!==o?(n.push(o),o=o.left):0!==n.length?(o=n.pop(),t.call(e,o),o=o.right):r=!0;return this},t.prototype.range=function(t,e,o,n){for(var r=[],i=this._comparator,l=this._root;0!==r.length||l;)if(l)r.push(l),l=l.left;else{if(i((l=r.pop()).key,e)>0)break;if(i(l.key,t)>=0&&o.call(n,l))return this;l=l.right}return this},t.prototype.keys=function(){var t=[];return this.forEach(function(e){var o=e.key;return t.push(o)}),t},t.prototype.values=function(){var t=[];return this.forEach(function(e){var o=e.data;return t.push(o)}),t},t.prototype.min=function(){return this._root?this.minNode(this._root).key:null},t.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},t.prototype.minNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.left;)t=t.left;return t},t.prototype.maxNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.right;)t=t.right;return t},t.prototype.at=function(t){for(var e=this._root,o=!1,n=0,r=[];!o;)if(e)r.push(e),e=e.left;else if(r.length>0){if(e=r.pop(),n===t)return e;n++,e=e.right}else o=!0;return null},t.prototype.next=function(t){var e=this._root,o=null;if(t.right){for(o=t.right;o.left;)o=o.left;return o}for(var n=this._comparator;e;){var r=n(t.key,e.key);if(0===r)break;r<0?(o=e,e=e.left):e=e.right}return o},t.prototype.prev=function(t){var e=this._root,o=null;if(null!==t.left){for(o=t.left;o.right;)o=o.right;return o}for(var n=this._comparator;e;){var r=n(t.key,e.key);if(0===r)break;r<0?e=e.left:(o=e,e=e.right)}return o},t.prototype.clear=function(){return this._root=null,this._size=0,this},t.prototype.toList=function(){return function(t){var e=t,o=[],n=!1,r=new ny(null,null),i=r;for(;!n;)e?(o.push(e),e=e.left):o.length>0?e=(e=i=i.next=o.pop()).right:n=!0;return i.next=null,r.next}(this._root)},t.prototype.load=function(t,e,o){void 0===e&&(e=[]),void 0===o&&(o=!1);var n=t.length,r=this._comparator;if(o&&function t(e,o,n,r,i){if(n>=r)return;var l=e[n+r>>1];var a=n-1;var s=r+1;for(;;){do{a++}while(i(e[a],l)<0);do{s--}while(i(e[s],l)>0);if(a>=s)break;var u=e[a];e[a]=e[s],e[s]=u,u=o[a],o[a]=o[s],o[s]=u}t(e,o,n,s,i);t(e,o,s+1,r,i)}(t,e,0,n-1,r),null===this._root)this._root=function t(e,o,n,r){var i=r-n;if(i>0){var l=n+Math.floor(i/2),a=e[l],s=o[l],u=new ny(a,s);return u.left=t(e,o,n,l),u.right=t(e,o,l+1,r),u}return null}(t,e,0,n),this._size=n;else{var i=function(t,e,o){var n=new ny(null,null),r=n,i=t,l=e;for(;null!==i&&null!==l;)o(i.key,l.key)<0?(r.next=i,i=i.next):(r.next=l,l=l.next),r=r.next;null!==i?r.next=i:null!==l&&(r.next=l);return n.next}(this.toList(),function(t,e){for(var o=new ny(null,null),n=o,r=0;r0){var i=o+Math.floor(r/2),l=t(e,o,i),a=e.head;return a.left=l,e.head=e.head.next,a.right=t(e,i+1,n),a}return null}({head:i},0,n)}return this},t.prototype.isEmpty=function(){return null===this._root},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),t.prototype.toString=function(t){void 0===t&&(t=function(t){return String(t.key)});var e=[];return function t(e,o,n,r,i){if(e){r(o+(n?"└── ":"├── ")+i(e)+"\n");var l=o+(n?" ":"│ ");e.left&&t(e.left,l,!1,r,i),e.right&&t(e.right,l,!0,r,i)}}(this._root,"",!0,function(t){return e.push(t)},t),e.join("")},t.prototype.update=function(t,e,o){var n=this._comparator,r=ay(t,this._root,n),i=r.left,l=r.right;n(t,e)<0?l=ly(e,o,l,n):i=ly(e,o,i,n),this._root=function(t,e,o){return null===e?t:null===t?e:((e=iy(t.key,e,o)).left=t,e)}(i,l,n)},t.prototype.split=function(t){return ay(t,this._root,this._comparator)},t.prototype[Symbol.iterator]=function(){var t;return oy(this,function(e){switch(e.label){case 0:t=this.minNode(),e.label=1;case 1:return t?[4,t]:[3,3];case 2:return e.sent(),t=this.next(t),[3,1];case 3:return[2]}})},t}();function uy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function py(t,e){for(var o=0;oe.x?1:t.ye.y?1:0}}]),cy(t,[{key:"link",value:function(t){if(t.point===this.point)throw new Error("Tried to link already linked events");for(var e=t.point.events,o=0,n=e.length;o=0&&s>=0?lu?-1:0:i<0&&s<0?lu?1:0:si?1:0}}}]),t}(),wy=0,xy=function(){function t(e,o,n,r){uy(this,t),this.id=++wy,this.leftSE=e,e.segment=this,e.otherSE=o,this.rightSE=o,o.segment=this,o.otherSE=e,this.rings=n,this.windings=r}return cy(t,null,[{key:"compare",value:function(t,e){var o=t.leftSE.point.x,n=e.leftSE.point.x,r=t.rightSE.point.x,i=e.rightSE.point.x;if(il&&a>s)return-1;var p=t.comparePoint(e.leftSE.point);if(p<0)return 1;if(p>0)return-1;var c=e.comparePoint(t.rightSE.point);return 0!==c?c:-1}if(o>n){if(la&&l>u)return 1;var f=e.comparePoint(t.leftSE.point);if(0!==f)return f;var h=t.comparePoint(e.rightSE.point);return h<0?1:h>0?-1:1}if(la)return 1;if(ri){var P=t.comparePoint(e.rightSE.point);if(P<0)return 1;if(P>0)return-1}if(r!==i){var y=s-l,S=r-o,d=u-a,b=i-n;if(y>S&&db)return-1}return r>i?1:ru?1:t.ide.id?1:0}}]),cy(t,[{key:"replaceRightSE",value:function(t){this.rightSE=t,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var t=this.leftSE.point.y,e=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:te?t:e}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(t){return t.x===this.leftSE.point.x&&t.y===this.leftSE.point.y||t.x===this.rightSE.point.x&&t.y===this.rightSE.point.y}},{key:"comparePoint",value:function(t){if(this.isAnEndpoint(t))return 0;var e=this.leftSE.point,o=this.rightSE.point,n=this.vector();if(e.x===o.x)return t.x===e.x?0:t.x0&&a.swapEvents(),Ly.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),n&&(r.checkForConsuming(),i.checkForConsuming()),o}},{key:"swapEvents",value:function(){var t=this.rightSE;this.rightSE=this.leftSE,this.leftSE=t,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var e=0,o=this.windings.length;e0){var i=o;o=n,n=i}if(o.prev===n){var l=o;o=n,n=l}for(var a=0,s=n.rings.length;a0))throw new Error("Tried to create degenerate segment at [".concat(e.x,", ").concat(e.y,"]"));r=o,i=e,l=-1}return new t(new Ly(r,!0),new Ly(i,!1),[n],[l])}}]),t}(),Uy=function(){function t(e,o,n){if(uy(this,t),!Array.isArray(e)||0===e.length)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=o,this.isExterior=n,this.segments=[],"number"!=typeof e[0][0]||"number"!=typeof e[0][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var r=by.round(e[0][0],e[0][1]);this.bbox={ll:{x:r.x,y:r.y},ur:{x:r.x,y:r.y}};for(var i=r,l=1,a=e.length;lthis.bbox.ur.x&&(this.bbox.ur.x=s.x),s.y>this.bbox.ur.y&&(this.bbox.ur.y=s.y),i=s)}r.x===i.x&&r.y===i.y||this.segments.push(xy.fromRing(i,r,this))}return cy(t,[{key:"getSweepEvents",value:function(){for(var t=[],e=0,o=this.segments.length;ethis.bbox.ur.x&&(this.bbox.ur.x=i.bbox.ur.x),i.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=i.bbox.ur.y),this.interiorRings.push(i)}this.multiPoly=o}return cy(t,[{key:"getSweepEvents",value:function(){for(var t=this.exteriorRing.getSweepEvents(),e=0,o=this.interiorRings.length;ethis.bbox.ur.x&&(this.bbox.ur.x=i.bbox.ur.x),i.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=i.bbox.ur.y),this.polys.push(i)}this.isSubject=o}return cy(t,[{key:"getSweepEvents",value:function(){for(var t=[],e=0,o=this.polys.length;e0&&(t=n)}for(var r=t.segment.prevInResult(),i=r?r.prevInResult():null;;){if(!r)return null;if(!i)return r.ringOut;if(i.ringOut!==r.ringOut)return i.ringOut.enclosingRing()!==r.ringOut?r.ringOut:r.ringOut.enclosingRing();i=(r=i.prevInResult())?r.prevInResult():null}}}]),t}(),Ry=function(){function t(e){uy(this,t),this.exteriorRing=e,e.poly=this,this.interiorRings=[]}return cy(t,[{key:"addInterior",value:function(t){this.interiorRings.push(t),t.poly=this}},{key:"getGeom",value:function(){var t=[this.exteriorRing.getGeom()];if(null===t[0])return null;for(var e=0,o=this.interiorRings.length;e1&&void 0!==arguments[1]?arguments[1]:xy.compare;uy(this,t),this.queue=e,this.tree=new sy(o),this.segments=[]}return cy(t,[{key:"process",value:function(t){var e=t.segment,o=[];if(t.consumedBy)return t.isLeft?this.queue.remove(t.otherSE):this.tree.remove(e),o;var n=t.isLeft?this.tree.insert(e):this.tree.find(e);if(!n)throw new Error("Unable to find segment #".concat(e.id," ")+"[".concat(e.leftSE.point.x,", ").concat(e.leftSE.point.y,"] -> ")+"[".concat(e.rightSE.point.x,", ").concat(e.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var r=n,i=n,l=void 0,a=void 0;void 0===l;)null===(r=this.tree.prev(r))?l=null:void 0===r.key.consumedBy&&(l=r.key);for(;void 0===a;)null===(i=this.tree.next(i))?a=null:void 0===i.key.consumedBy&&(a=i.key);if(t.isLeft){var s=null;if(l){var u=l.getIntersection(e);if(null!==u&&(e.isAnEndpoint(u)||(s=u),!l.isAnEndpoint(u)))for(var p=this._splitSafely(l,u),c=0,f=p.length;c0?(this.tree.remove(e),o.push(t)):(this.segments.push(e),e.prev=l)}else{if(l&&a){var M=l.getIntersection(a);if(null!==M){if(!l.isAnEndpoint(M))for(var A=this._splitSafely(l,M),O=0,_=A.length;O<_;O++)o.push(A[O]);if(!a.isAnEndpoint(M))for(var L=this._splitSafely(a,M),w=0,x=L.length;wjy)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var b=new Cy(h),m=h.size,v=h.pop();v;){var M=v.key;if(h.size===m){var A=M.segment;throw new Error("Unable to pop() ".concat(M.isLeft?"left":"right"," SweepEvent ")+"[".concat(M.point.x,", ").concat(M.point.y,"] from segment #").concat(A.id," ")+"[".concat(A.leftSE.point.x,", ").concat(A.leftSE.point.y,"] -> ")+"[".concat(A.rightSE.point.x,", ").concat(A.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(h.size>jy)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(b.segments.length>Ny)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var O=b.process(M),_=0,L=O.length;_e.x?1:this.ye.y?1:0},Wy.prototype.clone=function(){},Wy.prototype.copy=function(){return new Wy(this)},Wy.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"},Wy.prototype.distance3D=function(t){var e=this.x-t.x,o=this.y-t.y,n=this.z-t.z;return Math.sqrt(e*e+o*o+n*n)},Wy.prototype.distance=function(t){var e=this.x-t.x,o=this.y-t.y;return Math.sqrt(e*e+o*o)},Wy.prototype.hashCode=function(){var t=17;return t=37*(t=37*t+Wy.hashCode(this.x))+Wy.hashCode(this.y)},Wy.prototype.setCoordinate=function(t){this.x=t.x,this.y=t.y,this.z=t.z},Wy.prototype.interfaces_=function(){return[zy,Gy,Xy]},Wy.prototype.getClass=function(){return Wy},Wy.hashCode=function(){if(1===arguments.length){var t=arguments[0],e=ky.doubleToLongBits(t);return Math.trunc((e^e)>>>32)}},Hy.DimensionalComparator.get=function(){return Ky},Hy.serialVersionUID.get=function(){return 0x5cbf2c235c7e5800},Hy.NULL_ORDINATE.get=function(){return ky.NaN},Hy.X.get=function(){return 0},Hy.Y.get=function(){return 1},Hy.Z.get=function(){return 2},Object.defineProperties(Wy,Hy);var Ky=function(t){if(this._dimensionsToTest=2,0===arguments.length);else if(1===arguments.length){var e=arguments[0];if(2!==e&&3!==e)throw new Yy("only 2 or 3 dimensions may be specified");this._dimensionsToTest=e}};Ky.prototype.compare=function(t,e){var o=t,n=e,r=Ky.compare(o.x,n.x);if(0!==r)return r;var i=Ky.compare(o.y,n.y);return 0!==i?i:this._dimensionsToTest<=2?0:Ky.compare(o.z,n.z)},Ky.prototype.interfaces_=function(){return[qy]},Ky.prototype.getClass=function(){return Ky},Ky.compare=function(t,e){return te?1:ky.isNaN(t)?ky.isNaN(e)?0:-1:ky.isNaN(e)?1:0};var Jy=function(){};Jy.prototype.create=function(){},Jy.prototype.interfaces_=function(){return[]},Jy.prototype.getClass=function(){return Jy};var Zy=function(){},Qy={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};Zy.prototype.interfaces_=function(){return[]},Zy.prototype.getClass=function(){return Zy},Zy.toLocationSymbol=function(t){switch(t){case Zy.EXTERIOR:return"e";case Zy.BOUNDARY:return"b";case Zy.INTERIOR:return"i";case Zy.NONE:return"-"}throw new Yy("Unknown location value: "+t)},Qy.INTERIOR.get=function(){return 0},Qy.BOUNDARY.get=function(){return 1},Qy.EXTERIOR.get=function(){return 2},Qy.NONE.get=function(){return-1},Object.defineProperties(Zy,Qy);var $y=function(t,e){return t.interfaces_&&t.interfaces_().indexOf(e)>-1},tS=function(){},eS={LOG_10:{configurable:!0}};tS.prototype.interfaces_=function(){return[]},tS.prototype.getClass=function(){return tS},tS.log10=function(t){var e=Math.log(t);return ky.isInfinite(e)?e:ky.isNaN(e)?e:e/tS.LOG_10},tS.min=function(t,e,o,n){var r=t;return eo?o:t}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var n=arguments[0],r=arguments[1],i=arguments[2];return ni?i:n}},tS.wrap=function(t,e){return t<0?e- -t%e:t%e},tS.max=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],o=arguments[2],n=t;return e>n&&(n=e),o>n&&(n=o),n}if(4===arguments.length){var r=arguments[0],i=arguments[1],l=arguments[2],a=arguments[3],s=r;return i>s&&(s=i),l>s&&(s=l),a>s&&(s=a),s}},tS.average=function(t,e){return(t+e)/2},eS.LOG_10.get=function(){return Math.log(10)},Object.defineProperties(tS,eS);var oS=function(t){this.str=t};oS.prototype.append=function(t){this.str+=t},oS.prototype.setCharAt=function(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)},oS.prototype.toString=function(t){return this.str};var nS=function(t){this.value=t};nS.prototype.intValue=function(){return this.value},nS.prototype.compareTo=function(t){return this.valuet?1:0},nS.isNaN=function(t){return Number.isNaN(t)};var rS=function(){};rS.isWhitespace=function(t){return t<=32&&t>=0||127===t},rS.toUpperCase=function(t){return t.toUpperCase()};var iS=function t(){if(this._hi=0,this._lo=0,0===arguments.length)this.init(0);else if(1===arguments.length){if("number"==typeof arguments[0]){var e=arguments[0];this.init(e)}else if(arguments[0]instanceof t){var o=arguments[0];this.init(o)}else if("string"==typeof arguments[0]){var n=arguments[0];t.call(this,t.parse(n))}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.init(r,i)}},lS={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};iS.prototype.le=function(t){return(this._hi9?(p=!0,c="9"):c="0"+u,l.append(c),o=o.subtract(iS.valueOf(u)).multiply(iS.TEN),p&&o.selfAdd(iS.TEN);var f=!0,h=iS.magnitude(o._hi);if(h<0&&Math.abs(h)>=a-s&&(f=!1),!f)break}return e[0]=n,l.toString()},iS.prototype.sqr=function(){return this.multiply(this)},iS.prototype.doubleValue=function(){return this._hi+this._lo},iS.prototype.subtract=function(){if(arguments[0]instanceof iS){var t=arguments[0];return this.add(t.negate())}if("number"==typeof arguments[0]){var e=arguments[0];return this.add(-e)}},iS.prototype.equals=function(){if(1===arguments.length){var t=arguments[0];return this._hi===t._hi&&this._lo===t._lo}},iS.prototype.isZero=function(){return 0===this._hi&&0===this._lo},iS.prototype.selfSubtract=function(){if(arguments[0]instanceof iS){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t._hi,-t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e,0)}},iS.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},iS.prototype.min=function(t){return this.le(t)?this:t},iS.prototype.selfDivide=function(){if(1===arguments.length){if(arguments[0]instanceof iS){var t=arguments[0];return this.selfDivide(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfDivide(e,0)}}else if(2===arguments.length){var o,n,r,i,l=arguments[0],a=arguments[1],s=null,u=null,p=null,c=null;return r=this._hi/l,c=(s=(p=iS.SPLIT*r)-(s=p-r))*(u=(c=iS.SPLIT*l)-(u=c-l))-(i=r*l)+s*(n=l-u)+(o=r-s)*u+o*n,c=r+(p=(this._hi-i-c+this._lo-r*a)/l),this._hi=c,this._lo=r-c+p,this}},iS.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"},iS.prototype.divide=function(){if(arguments[0]instanceof iS){var t,e,o,n,r=arguments[0],i=null,l=null,a=null,s=null;return o=this._hi/r._hi,i=(a=iS.SPLIT*o)-o,s=iS.SPLIT*r._hi,t=o-(i=a-i),l=s-r._hi,n=o*r._hi,s=i*(l=s-l)-n+i*(e=r._hi-l)+t*l+t*e,a=(this._hi-n-s+this._lo-o*r._lo)/r._hi,new iS(s=o+a,o-s+a)}if("number"==typeof arguments[0]){var u=arguments[0];return ky.isNaN(u)?iS.createNaN():iS.copy(this).selfDivide(u,0)}},iS.prototype.ge=function(t){return(this._hi>t._hi||this._hi===t._hi)&&this._lo>=t._lo},iS.prototype.pow=function(t){if(0===t)return iS.valueOf(1);var e=new iS(this),o=iS.valueOf(1),n=Math.abs(t);if(n>1)for(;n>0;)n%2==1&&o.selfMultiply(e),(n/=2)>0&&(e=e.sqr());else o=e;return t<0?o.reciprocal():o},iS.prototype.ceil=function(){if(this.isNaN())return iS.NaN;var t=Math.ceil(this._hi),e=0;return t===this._hi&&(e=Math.ceil(this._lo)),new iS(t,e)},iS.prototype.compareTo=function(t){var e=t;return this._hie._hi?1:this._loe._lo?1:0},iS.prototype.rint=function(){return this.isNaN()?this:this.add(.5).floor()},iS.prototype.setValue=function(){if(arguments[0]instanceof iS){var t=arguments[0];return this.init(t),this}if("number"==typeof arguments[0]){var e=arguments[0];return this.init(e),this}},iS.prototype.max=function(t){return this.ge(t)?this:t},iS.prototype.sqrt=function(){if(this.isZero())return iS.valueOf(0);if(this.isNegative())return iS.NaN;var t=1/Math.sqrt(this._hi),e=this._hi*t,o=iS.valueOf(e),n=this.subtract(o.sqr())._hi*(.5*t);return o.add(n)},iS.prototype.selfAdd=function(){if(1===arguments.length){if(arguments[0]instanceof iS){var t=arguments[0];return this.selfAdd(t._hi,t._lo)}if("number"==typeof arguments[0]){var e,o,n,r,i,l=arguments[0],a=null;return a=(n=this._hi+l)-(r=n-this._hi),o=(i=(a=l-r+(this._hi-a))+this._lo)+(n-(e=n+i)),this._hi=e+o,this._lo=o+(e-this._hi),this}}else if(2===arguments.length){var s,u,p,c,f=arguments[0],h=arguments[1],g=null,P=null,y=null;p=this._hi+f,u=this._lo+h,P=p-(y=p-this._hi),g=u-(c=u-this._lo),P=f-y+(this._hi-P),g=h-c+(this._lo-g);var S=(s=p+(y=P+u))+(y=g+(y+(p-s))),d=y+(s-S);return this._hi=S,this._lo=d,this}},iS.prototype.selfMultiply=function(){if(1===arguments.length){if(arguments[0]instanceof iS){var t=arguments[0];return this.selfMultiply(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfMultiply(e,0)}}else if(2===arguments.length){var o,n,r=arguments[0],i=arguments[1],l=null,a=null,s=null,u=null;l=(s=iS.SPLIT*this._hi)-this._hi,u=iS.SPLIT*r,l=s-l,o=this._hi-l,a=u-r;var p=(s=this._hi*r)+(u=l*(a=u-a)-s+l*(n=r-a)+o*a+o*n+(this._hi*i+this._lo*r)),c=u+(l=s-p);return this._hi=p,this._lo=c,this}},iS.prototype.selfSqr=function(){return this.selfMultiply(this)},iS.prototype.floor=function(){if(this.isNaN())return iS.NaN;var t=Math.floor(this._hi),e=0;return t===this._hi&&(e=Math.floor(this._lo)),new iS(t,e)},iS.prototype.negate=function(){return this.isNaN()?this:new iS(-this._hi,-this._lo)},iS.prototype.clone=function(){},iS.prototype.multiply=function(){if(arguments[0]instanceof iS){var t=arguments[0];return t.isNaN()?iS.createNaN():iS.copy(this).selfMultiply(t)}if("number"==typeof arguments[0]){var e=arguments[0];return ky.isNaN(e)?iS.createNaN():iS.copy(this).selfMultiply(e,0)}},iS.prototype.isNaN=function(){return ky.isNaN(this._hi)},iS.prototype.intValue=function(){return Math.trunc(this._hi)},iS.prototype.toString=function(){var t=iS.magnitude(this._hi);return t>=-3&&t<=20?this.toStandardNotation():this.toSciNotation()},iS.prototype.toStandardNotation=function(){var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),o=this.extractSignificantDigits(!0,e),n=e[0]+1,r=o;if("."===o.charAt(0))r="0"+o;else if(n<0)r="0."+iS.stringOfChar("0",-n)+o;else if(-1===o.indexOf(".")){var i=n-o.length;r=o+iS.stringOfChar("0",i)+".0"}return this.isNegative()?"-"+r:r},iS.prototype.reciprocal=function(){var t,e,o,n,r=null,i=null,l=null,a=null;o=1/this._hi,r=(l=iS.SPLIT*o)-o,a=iS.SPLIT*this._hi,t=o-(r=l-r),i=a-this._hi;var s=o+(l=(1-(n=o*this._hi)-(a=r*(i=a-i)-n+r*(e=this._hi-i)+t*i+t*e)-o*this._lo)/this._hi);return new iS(s,o-s+l)},iS.prototype.toSciNotation=function(){if(this.isZero())return iS.SCI_NOT_ZERO;var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),o=this.extractSignificantDigits(!1,e),n=iS.SCI_NOT_EXPONENT_CHAR+e[0];if("0"===o.charAt(0))throw new Error("Found leading zero: "+o);var r="";o.length>1&&(r=o.substring(1));var i=o.charAt(0)+"."+r;return this.isNegative()?"-"+i+n:i+n},iS.prototype.abs=function(){return this.isNaN()?iS.NaN:this.isNegative()?this.negate():new iS(this)},iS.prototype.isPositive=function(){return(this._hi>0||0===this._hi)&&this._lo>0},iS.prototype.lt=function(t){return(this._hit._hi||this._hi===t._hi)&&this._lo>t._lo},iS.prototype.isNegative=function(){return(this._hi<0||0===this._hi)&&this._lo<0},iS.prototype.trunc=function(){return this.isNaN()?iS.NaN:this.isPositive()?this.floor():this.ceil()},iS.prototype.signum=function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0},iS.prototype.interfaces_=function(){return[Xy,zy,Gy]},iS.prototype.getClass=function(){return iS},iS.sqr=function(t){return iS.valueOf(t).selfMultiply(t)},iS.valueOf=function(){if("string"==typeof arguments[0]){var t=arguments[0];return iS.parse(t)}if("number"==typeof arguments[0]){var e=arguments[0];return new iS(e)}},iS.sqrt=function(t){return iS.valueOf(t).sqrt()},iS.parse=function(t){for(var e=0,o=t.length;rS.isWhitespace(t.charAt(e));)e++;var n=!1;if(e=o);){var u=t.charAt(e);if(e++,rS.isDigit(u)){var p=u-"0";i.selfMultiply(iS.TEN),i.selfAdd(p),l++}else{if("."!==u){if("e"===u||"E"===u){var c=t.substring(e);try{s=nS.parseInt(c)}catch(e){throw e instanceof Error?new Error("Invalid exponent "+c+" in string "+t):e}break}throw new Error("Unexpected character '"+u+"' at position "+e+" in string "+t)}a=l}}var f=i,h=l-a-s;if(0===h)f=i;else if(h>0){var g=iS.TEN.pow(h);f=i.divide(g)}else if(h<0){var P=iS.TEN.pow(-h);f=i.multiply(P)}return n?f.negate():f},iS.createNaN=function(){return new iS(ky.NaN,ky.NaN)},iS.copy=function(t){return new iS(t)},iS.magnitude=function(t){var e=Math.abs(t),o=Math.log(e)/Math.log(10),n=Math.trunc(Math.floor(o));return 10*Math.pow(10,n)<=e&&(n+=1),n},iS.stringOfChar=function(t,e){for(var o=new oS,n=0;n0){if(i<=0)return aS.signum(l);n=r+i}else{if(!(r<0))return aS.signum(l);if(i>=0)return aS.signum(l);n=-r-i}var a=aS.DP_SAFE_EPSILON*n;return l>=a||-l>=a?aS.signum(l):2},aS.signum=function(t){return t>0?1:t<0?-1:0},sS.DP_SAFE_EPSILON.get=function(){return 1e-15},Object.defineProperties(aS,sS);var uS=function(){},pS={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};pS.X.get=function(){return 0},pS.Y.get=function(){return 1},pS.Z.get=function(){return 2},pS.M.get=function(){return 3},uS.prototype.setOrdinate=function(t,e,o){},uS.prototype.size=function(){},uS.prototype.getOrdinate=function(t,e){},uS.prototype.getCoordinate=function(){},uS.prototype.getCoordinateCopy=function(t){},uS.prototype.getDimension=function(){},uS.prototype.getX=function(t){},uS.prototype.clone=function(){},uS.prototype.expandEnvelope=function(t){},uS.prototype.copy=function(){},uS.prototype.getY=function(t){},uS.prototype.toCoordinateArray=function(){},uS.prototype.interfaces_=function(){return[Gy]},uS.prototype.getClass=function(){return uS},Object.defineProperties(uS,pS);var cS=function(){},fS=function(t){function e(){t.call(this,"Projective point not representable on the Cartesian plane.")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(cS),hS=function(){};hS.arraycopy=function(t,e,o,n,r){for(var i=0,l=e;lt._minx?this._minx:t._minx,o=this._miny>t._miny?this._miny:t._miny,n=this._maxx=this._minx&&e.getMaxX()<=this._maxx&&e.getMinY()>=this._miny&&e.getMaxY()<=this._maxy)}}else if(2===arguments.length){var o=arguments[0],n=arguments[1];return!this.isNull()&&(o>=this._minx&&o<=this._maxx&&n>=this._miny&&n<=this._maxy)}},PS.prototype.intersects=function(){if(1===arguments.length){if(arguments[0]instanceof PS){var t=arguments[0];return!this.isNull()&&!t.isNull()&&!(t._minx>this._maxx||t._maxxthis._maxy||t._maxythis._maxx||othis._maxy||nthis._maxx&&(this._maxx=e._maxx),e._minythis._maxy&&(this._maxy=e._maxy))}}else if(2===arguments.length){var o=arguments[0],n=arguments[1];this.isNull()?(this._minx=o,this._maxx=o,this._miny=n,this._maxy=n):(othis._maxx&&(this._maxx=o),nthis._maxy&&(this._maxy=n))}},PS.prototype.minExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return te._minx?1:this._minye._miny?1:this._maxxe._maxx?1:this._maxye._maxy?1:0},PS.prototype.translate=function(t,e){if(this.isNull())return null;this.init(this.getMinX()+t,this.getMaxX()+t,this.getMinY()+e,this.getMaxY()+e)},PS.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"},PS.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1},PS.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny},PS.prototype.maxExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t>e?t:e},PS.prototype.expandBy=function(){if(1===arguments.length){var t=arguments[0];this.expandBy(t,t)}else if(2===arguments.length){var e=arguments[0],o=arguments[1];if(this.isNull())return null;this._minx-=e,this._maxx+=e,this._miny-=o,this._maxy+=o,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}},PS.prototype.contains=function(){if(1===arguments.length){if(arguments[0]instanceof PS){var t=arguments[0];return this.covers(t)}if(arguments[0]instanceof Wy){var e=arguments[0];return this.covers(e)}}else if(2===arguments.length){var o=arguments[0],n=arguments[1];return this.covers(o,n)}},PS.prototype.centre=function(){return this.isNull()?null:new Wy((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},PS.prototype.init=function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof Wy){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof PS){var e=arguments[0];this._minx=e._minx,this._maxx=e._maxx,this._miny=e._miny,this._maxy=e._maxy}}else if(2===arguments.length){var o=arguments[0],n=arguments[1];this.init(o.x,n.x,o.y,n.y)}else if(4===arguments.length){var r=arguments[0],i=arguments[1],l=arguments[2],a=arguments[3];rt._maxx&&(e=this._minx-t._maxx);var o=0;return this._maxyt._maxy&&(o=this._miny-t._maxy),0===e?o:0===o?e:Math.sqrt(e*e+o*o)},PS.prototype.hashCode=function(){var t=17;return t=37*(t=37*(t=37*(t=37*t+Wy.hashCode(this._minx))+Wy.hashCode(this._maxx))+Wy.hashCode(this._miny))+Wy.hashCode(this._maxy)},PS.prototype.interfaces_=function(){return[zy,Xy]},PS.prototype.getClass=function(){return PS},PS.intersects=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],o=arguments[2];return o.x>=(t.xe.x?t.x:e.x)&&o.y>=(t.ye.y?t.y:e.y)}if(4===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],l=arguments[3],a=Math.min(i.x,l.x),s=Math.max(i.x,l.x),u=Math.min(n.x,r.x),p=Math.max(n.x,r.x);return!(u>s)&&(!(ps)&&!(pthis.getEdgeDistance(t,1)?(this._intLineIndex[t][0]=0,this._intLineIndex[t][1]=1):(this._intLineIndex[t][0]=1,this._intLineIndex[t][1]=0)}},_S.prototype.isProper=function(){return this.hasIntersection()&&this._isProper},_S.prototype.setPrecisionModel=function(t){this._precisionModel=t},_S.prototype.isInteriorIntersection=function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var t=arguments[0],e=0;er?n:r;else{var l=Math.abs(t.x-e.x),a=Math.abs(t.y-e.y);0!==(i=n>r?l:a)||t.equals(e)||(i=Math.max(l,a))}return OS.isTrue(!(0===i&&!t.equals(e)),"Bad distance calculation"),i},_S.nonRobustComputeEdgeDistance=function(t,e,o){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);return OS.isTrue(!(0===i&&!t.equals(e)),"Invalid distance calculation"),i},LS.DONT_INTERSECT.get=function(){return 0},LS.DO_INTERSECT.get=function(){return 1},LS.COLLINEAR.get=function(){return 2},LS.NO_INTERSECTION.get=function(){return 0},LS.POINT_INTERSECTION.get=function(){return 1},LS.COLLINEAR_INTERSECTION.get=function(){return 2},Object.defineProperties(_S,LS);var wS=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isInSegmentEnvelopes=function(t){var e=new PS(this._inputLines[0][0],this._inputLines[0][1]),o=new PS(this._inputLines[1][0],this._inputLines[1][1]);return e.contains(t)&&o.contains(t)},e.prototype.computeIntersection=function(){if(3!==arguments.length)return t.prototype.computeIntersection.apply(this,arguments);var e=arguments[0],o=arguments[1],n=arguments[2];if(this._isProper=!1,PS.intersects(o,n,e)&&0===ES.orientationIndex(o,n,e)&&0===ES.orientationIndex(n,o,e))return this._isProper=!0,(e.equals(o)||e.equals(n))&&(this._isProper=!1),this._result=t.POINT_INTERSECTION,null;this._result=t.NO_INTERSECTION},e.prototype.normalizeToMinimum=function(t,e,o,n,r){r.x=this.smallestInAbsValue(t.x,e.x,o.x,n.x),r.y=this.smallestInAbsValue(t.y,e.y,o.y,n.y),t.x-=r.x,t.y-=r.y,e.x-=r.x,e.y-=r.y,o.x-=r.x,o.y-=r.y,n.x-=r.x,n.y-=r.y},e.prototype.safeHCoordinateIntersection=function(t,o,n,r){var i=null;try{i=gS.intersection(t,o,n,r)}catch(l){if(!(l instanceof fS))throw l;i=e.nearestEndpoint(t,o,n,r)}return i},e.prototype.intersection=function(t,o,n,r){var i=this.intersectionWithNormalization(t,o,n,r);return this.isInSegmentEnvelopes(i)||(i=new Wy(e.nearestEndpoint(t,o,n,r))),null!==this._precisionModel&&this._precisionModel.makePrecise(i),i},e.prototype.smallestInAbsValue=function(t,e,o,n){var r=t,i=Math.abs(r);return Math.abs(e)1e-4&&hS.out.println("Distance = "+r.distance(i))},e.prototype.intersectionWithNormalization=function(t,e,o,n){var r=new Wy(t),i=new Wy(e),l=new Wy(o),a=new Wy(n),s=new Wy;this.normalizeToEnvCentre(r,i,l,a,s);var u=this.safeHCoordinateIntersection(r,i,l,a);return u.x+=s.x,u.y+=s.y,u},e.prototype.computeCollinearIntersection=function(e,o,n,r){var i=PS.intersects(e,o,n),l=PS.intersects(e,o,r),a=PS.intersects(n,r,e),s=PS.intersects(n,r,o);return i&&l?(this._intPt[0]=n,this._intPt[1]=r,t.COLLINEAR_INTERSECTION):a&&s?(this._intPt[0]=e,this._intPt[1]=o,t.COLLINEAR_INTERSECTION):i&&a?(this._intPt[0]=n,this._intPt[1]=e,!n.equals(e)||l||s?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):i&&s?(this._intPt[0]=n,this._intPt[1]=o,!n.equals(o)||l||a?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):l&&a?(this._intPt[0]=r,this._intPt[1]=e,!r.equals(e)||i||s?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):l&&s?(this._intPt[0]=r,this._intPt[1]=o,!r.equals(o)||i||a?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):t.NO_INTERSECTION},e.prototype.normalizeToEnvCentre=function(t,e,o,n,r){var i=t.xe.x?t.x:e.x,s=t.y>e.y?t.y:e.y,u=o.xn.x?o.x:n.x,f=o.y>n.y?o.y:n.y,h=((i>u?i:u)+(ap?l:p)+(s0&&l>0||i<0&&l<0)return t.NO_INTERSECTION;var a=ES.orientationIndex(n,r,e),s=ES.orientationIndex(n,r,o);return a>0&&s>0||a<0&&s<0?t.NO_INTERSECTION:0===i&&0===l&&0===a&&0===s?this.computeCollinearIntersection(e,o,n,r):(0===i||0===l||0===a||0===s?(this._isProper=!1,e.equals2D(n)||e.equals2D(r)?this._intPt[0]=e:o.equals2D(n)||o.equals2D(r)?this._intPt[0]=o:0===i?this._intPt[0]=new Wy(n):0===l?this._intPt[0]=new Wy(r):0===a?this._intPt[0]=new Wy(e):0===s&&(this._intPt[0]=new Wy(o))):(this._isProper=!0,this._intPt[0]=this.intersection(e,o,n,r)),t.POINT_INTERSECTION)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.nearestEndpoint=function(t,e,o,n){var r=t,i=ES.distancePointLine(t,o,n),l=ES.distancePointLine(e,o,n);return l0?o>0?-r:r:o>0?r:-r;if(0===e||0===o)return n>0?t>0?r:-r:t>0?-r:r;if(e>0?n>0?e<=n||(r=-r,i=t,t=o,o=i,i=e,e=n,n=i):e<=-n?(r=-r,o=-o,n=-n):(i=t,t=-o,o=i,i=e,e=-n,n=i):n>0?-e<=n?(r=-r,t=-t,e=-e):(i=-t,t=o,o=i,i=-e,e=n,n=i):e>=n?(t=-t,e=-e,o=-o,n=-n):(r=-r,i=-t,t=-o,o=i,i=-e,e=-n,n=i),t>0){if(!(o>0))return r;if(!(t<=o))return r}else{if(o>0)return-r;if(!(t>=o))return-r;r=-r,t=-t,o=-o}for(;;){if(o-=(l=Math.floor(o/t))*t,(n-=l*e)<0)return-r;if(n>e)return r;if(t>o+o){if(en+n)return-r;o=t-o,n=e-n,r=-r}if(0===n)return 0===o?0:-r;if(0===o)return r;if(t-=(l=Math.floor(t/o))*o,(e-=l*n)<0)return r;if(e>n)return-r;if(o>t+t){if(ne+e)return r;t=o-t,e=n-e,r=-r}if(0===e)return 0===t?0:r;if(0===t)return-r}};var US=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var t=arguments[0];this._p=t};US.prototype.countSegment=function(t,e){if(t.xn&&(o=e.x,n=t.x),this._p.x>=o&&this._p.x<=n&&(this._isPointOnSegment=!0),null}if(t.y>this._p.y&&e.y<=this._p.y||e.y>this._p.y&&t.y<=this._p.y){var r=t.x-this._p.x,i=t.y-this._p.y,l=e.x-this._p.x,a=e.y-this._p.y,s=xS.signOfDet2x2(r,i,l,a);if(0===s)return this._isPointOnSegment=!0,null;a0&&this._crossingCount++}},US.prototype.isPointInPolygon=function(){return this.getLocation()!==Zy.EXTERIOR},US.prototype.getLocation=function(){return this._isPointOnSegment?Zy.BOUNDARY:this._crossingCount%2==1?Zy.INTERIOR:Zy.EXTERIOR},US.prototype.isOnSegment=function(){return this._isPointOnSegment},US.prototype.interfaces_=function(){return[]},US.prototype.getClass=function(){return US},US.locatePointInRing=function(){if(arguments[0]instanceof Wy&&$y(arguments[1],uS)){for(var t=arguments[0],e=arguments[1],o=new US(t),n=new Wy,r=new Wy,i=1;i1||a<0||a>1)&&(r=!0)}}else r=!0;return r?tS.min(ES.distancePointLine(t,o,n),ES.distancePointLine(e,o,n),ES.distancePointLine(o,t,e),ES.distancePointLine(n,t,e)):0},ES.isPointInRing=function(t,e){return ES.locatePointInRing(t,e)!==Zy.EXTERIOR},ES.computeLength=function(t){var e=t.size();if(e<=1)return 0;var o=0,n=new Wy;t.getCoordinate(0,n);for(var r=n.x,i=n.y,l=1;lo.y&&(o=i,n=r)}var l=n;do{(l-=1)<0&&(l=e)}while(t[l].equals2D(o)&&l!==n);var a=n;do{a=(a+1)%e}while(t[a].equals2D(o)&&a!==n);var s=t[l],u=t[a];if(s.equals2D(o)||u.equals2D(o)||s.equals2D(u))return!1;var p=ES.computeOrientation(s,o,u),c=!1;return c=0===p?s.x>u.x:p>0,c},ES.locatePointInRing=function(t,e){return US.locatePointInRing(t,e)},ES.distancePointLinePerpendicular=function(t,e,o){var n=(o.x-e.x)*(o.x-e.x)+(o.y-e.y)*(o.y-e.y),r=((e.y-t.y)*(o.x-e.x)-(e.x-t.x)*(o.y-e.y))/n;return Math.abs(r)*Math.sqrt(n)},ES.computeOrientation=function(t,e,o){return ES.orientationIndex(t,e,o)},ES.distancePointLine=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];if(0===e.length)throw new Yy("Line array must contain at least one vertex");for(var o=t.distance(e[0]),n=0;n=1)return i.distance(a);var p=((l.y-i.y)*(a.x-l.x)-(l.x-i.x)*(a.y-l.y))/s;return Math.abs(p)*Math.sqrt(s)}},ES.isOnLine=function(t,e){for(var o=new wS,n=1;n0},YS.prototype.interfaces_=function(){return[NS]},YS.prototype.getClass=function(){return YS};var kS=function(){};kS.prototype.isInBoundary=function(t){return t>1},kS.prototype.interfaces_=function(){return[NS]},kS.prototype.getClass=function(){return kS};var FS=function(){};FS.prototype.isInBoundary=function(t){return 1===t},FS.prototype.interfaces_=function(){return[NS]},FS.prototype.getClass=function(){return FS};var zS=function(){};function GS(t){this.message=t||""}zS.prototype.add=function(){},zS.prototype.addAll=function(){},zS.prototype.isEmpty=function(){},zS.prototype.iterator=function(){},zS.prototype.size=function(){},zS.prototype.toArray=function(){},zS.prototype.remove=function(){},GS.prototype=new Error,GS.prototype.name="IndexOutOfBoundsException";var qS=function(){};qS.prototype.hasNext=function(){},qS.prototype.next=function(){},qS.prototype.remove=function(){};var XS=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(){},e.prototype.set=function(){},e.prototype.isEmpty=function(){},e}(zS);function WS(t){this.message=t||""}WS.prototype=new Error,WS.prototype.name="NoSuchElementException";var HS=function(t){function e(){t.call(this),this.array_=[],arguments[0]instanceof zS&&this.addAll(arguments[0])}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.ensureCapacity=function(){},e.prototype.interfaces_=function(){return[t,zS]},e.prototype.add=function(t){return 1===arguments.length?this.array_.push(t):this.array_.splice(arguments[0],arguments[1]),!0},e.prototype.clear=function(){this.array_=[]},e.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},e.prototype.set=function(t,e){var o=this.array_[t];return this.array_[t]=e,o},e.prototype.iterator=function(){return new KS(this)},e.prototype.get=function(t){if(t<0||t>=this.size())throw new GS;return this.array_[t]},e.prototype.isEmpty=function(){return 0===this.array_.length},e.prototype.size=function(){return this.array_.length},e.prototype.toArray=function(){for(var t=[],e=0,o=this.array_.length;e=1)if(this.get(this.size()-1).equals2D(r))return null;t.prototype.add.call(this,r)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var i=arguments[0],l=arguments[1];return this.add(i,l),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var a=arguments[0],s=arguments[1];if(arguments[2])for(var u=0;u=0;p--)this.add(a[p],s);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof Wy){var c=arguments[0],f=arguments[1];if(!arguments[2]){var h=this.size();if(h>0){if(c>0)if(this.get(c-1).equals2D(f))return null;if(cS&&(d=-1);for(var b=y;b!==S;b+=d)this.add(g[b],P);return!0}},e.prototype.closeRing=function(){this.size()>0&&this.add(new Wy(this.get(0)),!1)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},Object.defineProperties(e,o),e}(HS),ZS=function(){},QS={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};QS.ForwardComparator.get=function(){return $S},QS.BidirectionalComparator.get=function(){return td},QS.coordArrayType.get=function(){return new Array(0).fill(null)},ZS.prototype.interfaces_=function(){return[]},ZS.prototype.getClass=function(){return ZS},ZS.isRing=function(t){return!(t.length<4)&&!!t[0].equals2D(t[t.length-1])},ZS.ptNotInList=function(t,e){for(var o=0;o=t?e:[]},ZS.indexOf=function(t,e){for(var o=0;o0)&&(e=t[o]);return e},ZS.extract=function(t,e,o){e=tS.clamp(e,0,t.length);var n=(o=tS.clamp(o,-1,t.length))-e+1;o<0&&(n=0),e>=t.length&&(n=0),on.length)return 1;if(0===o.length)return 0;var r=ZS.compare(o,n);return ZS.isEqualReversed(o,n)?0:r},td.prototype.OLDcompare=function(t,e){var o=t,n=e;if(o.lengthn.length)return 1;if(0===o.length)return 0;for(var r=ZS.increasingDirection(o),i=ZS.increasingDirection(n),l=r>0?0:o.length-1,a=i>0?0:o.length-1,s=0;s0))return e.value;e=e.right}}return null},hd.prototype.put=function(t,e){if(null===this.root_)return this.root_={key:t,value:e,left:null,right:null,parent:null,color:ad,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var o,n,r=this.root_;do{if(o=r,(n=t.compareTo(r.key))<0)r=r.left;else{if(!(n>0)){var i=r.value;return r.value=e,i}r=r.right}}while(null!==r);var l={key:t,left:null,right:null,value:e,parent:o,color:ad,getValue:function(){return this.value},getKey:function(){return this.key}};return n<0?o.left=l:o.right=l,this.fixAfterInsertion(l),this.size_++,null},hd.prototype.fixAfterInsertion=function(t){for(t.color=1;null!=t&&t!==this.root_&&1===t.parent.color;)if(ud(t)===cd(ud(ud(t)))){var e=fd(ud(ud(t)));1===sd(e)?(pd(ud(t),ad),pd(e,ad),pd(ud(ud(t)),1),t=ud(ud(t))):(t===fd(ud(t))&&(t=ud(t),this.rotateLeft(t)),pd(ud(t),ad),pd(ud(ud(t)),1),this.rotateRight(ud(ud(t))))}else{var o=cd(ud(ud(t)));1===sd(o)?(pd(ud(t),ad),pd(o,ad),pd(ud(ud(t)),1),t=ud(ud(t))):(t===cd(ud(t))&&(t=ud(t),this.rotateRight(t)),pd(ud(t),ad),pd(ud(ud(t)),1),this.rotateLeft(ud(ud(t))))}this.root_.color=ad},hd.prototype.values=function(){var t=new HS,e=this.getFirstEntry();if(null!==e)for(t.add(e.value);null!==(e=hd.successor(e));)t.add(e.value);return t},hd.prototype.entrySet=function(){var t=new id,e=this.getFirstEntry();if(null!==e)for(t.add(e);null!==(e=hd.successor(e));)t.add(e);return t},hd.prototype.rotateLeft=function(t){if(null!=t){var e=t.right;t.right=e.left,null!=e.left&&(e.left.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.left===t?t.parent.left=e:t.parent.right=e,e.left=t,t.parent=e}},hd.prototype.rotateRight=function(t){if(null!=t){var e=t.left;t.left=e.right,null!=e.right&&(e.right.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.right===t?t.parent.right=e:t.parent.left=e,e.right=t,t.parent=e}},hd.prototype.getFirstEntry=function(){var t=this.root_;if(null!=t)for(;null!=t.left;)t=t.left;return t},hd.successor=function(t){if(null===t)return null;if(null!==t.right){for(var e=t.right;null!==e.left;)e=e.left;return e}for(var o=t.parent,n=t;null!==o&&n===o.right;)n=o,o=o.parent;return o},hd.prototype.size=function(){return this.size_};var gd=function(){};function Pd(){}function yd(){this.array_=[],arguments[0]instanceof zS&&this.addAll(arguments[0])}gd.prototype.interfaces_=function(){return[]},gd.prototype.getClass=function(){return gd},Pd.prototype=new rd,yd.prototype=new Pd,yd.prototype.contains=function(t){for(var e=0,o=this.array_.length;e=0;){var l=r.substring(0,i);n.add(l),i=(r=r.substring(i+o)).indexOf(e)}r.length>0&&n.add(r);for(var a=new Array(n.size()).fill(null),s=0;s0)for(var i=r;i0&&n.append(" ");for(var i=0;i0&&n.append(","),n.append(xd.toString(t.getOrdinate(r,i)))}return n.append(")"),n.toString()}},Ed.ensureValidRing=function(t,e){var o=e.size();return 0===o?e:o<=3?Ed.createClosedRing(t,e,4):e.getOrdinate(0,uS.X)===e.getOrdinate(o-1,uS.X)&&e.getOrdinate(0,uS.Y)===e.getOrdinate(o-1,uS.Y)?e:Ed.createClosedRing(t,e,o+1)},Ed.createClosedRing=function(t,e,o){var n=t.create(o,e.getDimension()),r=e.size();Ed.copy(e,0,n,0,r);for(var i=r;i0&&Ed.reverse(this._points),null}},e.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},e.prototype.getBoundaryDimension=function(){return this.isClosed()?bd.FALSE:0},e.prototype.isClosed=function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},e.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},e.prototype.getDimension=function(){return 1},e.prototype.getLength=function(){return ES.computeLength(this._points)},e.prototype.getNumPoints=function(){return this._points.size()},e.prototype.reverse=function(){var t=this._points.copy();return Ed.reverse(t),this.getFactory().createLineString(t)},e.prototype.compareToSameClass=function(){if(1===arguments.length){for(var t=arguments[0],e=0,o=0;e= 2)");this._points=t},e.prototype.isCoordinate=function(t){for(var e=0;e=1&&this.getCoordinateSequence().size()= 4)")},e.prototype.getGeometryType=function(){return"LinearRing"},e.prototype.copy=function(){return new e(this._points.copy(),this._factory)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},o.MINIMUM_VALID_SIZE.get=function(){return 4},o.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(e,o),e}(Td),Dd=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var o={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return RS.SORTINDEX_MULTIPOLYGON},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],o=arguments[1];return!!this.isEquivalentClass(e)&&t.prototype.equalsExact.call(this,e,o)}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return 1},e.prototype.getDimension=function(){return 2},e.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),o=0;o0?e.createPoint(o[0]):e.createPoint():t},Fd.prototype.interfaces_=function(){return[Bd.GeometryEditorOperation]},Fd.prototype.getClass=function(){return Fd};var zd=function(){};zd.prototype.edit=function(t,e){return t instanceof Nd?e.createLinearRing(this.edit(t.getCoordinateSequence(),t)):t instanceof Td?e.createLineString(this.edit(t.getCoordinateSequence(),t)):t instanceof Rd?e.createPoint(this.edit(t.getCoordinateSequence(),t)):t},zd.prototype.interfaces_=function(){return[Bd.GeometryEditorOperation]},zd.prototype.getClass=function(){return zd};var Gd=function(){if(this._dimension=3,this._coordinates=null,1===arguments.length){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var t=arguments[0];this._coordinates=new Array(t).fill(null);for(var e=0;e0){var t=new oS(17*this._coordinates.length);t.append("("),t.append(this._coordinates[0]);for(var e=1;e3&&(n=3),n<2?new Gd(o):new Gd(o,n)}},Xd.prototype.interfaces_=function(){return[Jy,Xy]},Xd.prototype.getClass=function(){return Xd},Xd.instance=function(){return Xd.instanceObject},Wd.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00},Wd.instanceObject.get=function(){return new Xd},Object.defineProperties(Xd,Wd);var Hd=function(t){function e(){t.call(this),this.map_=new Map}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return this.map_.get(t)||null},e.prototype.put=function(t,e){return this.map_.set(t,e),e},e.prototype.values=function(){for(var t=new HS,e=this.map_.values(),o=e.next();!o.done;)t.add(o.value),o=e.next();return t},e.prototype.entrySet=function(){var t=new id;return this.map_.entries().forEach(function(e){return t.add(e)}),t},e.prototype.size=function(){return this.map_.size()},e}(ed),Kd=function t(){if(this._modelType=null,this._scale=null,0===arguments.length)this._modelType=t.FLOATING;else if(1===arguments.length)if(arguments[0]instanceof Zd){var e=arguments[0];this._modelType=e,e===t.FIXED&&this.setScale(1)}else if("number"==typeof arguments[0]){var o=arguments[0];this._modelType=t.FIXED,this.setScale(o)}else if(arguments[0]instanceof t){var n=arguments[0];this._modelType=n._modelType,this._scale=n._scale}},Jd={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};Kd.prototype.equals=function(t){if(!(t instanceof Kd))return!1;var e=t;return this._modelType===e._modelType&&this._scale===e._scale},Kd.prototype.compareTo=function(t){var e=t,o=this.getMaximumSignificantDigits(),n=e.getMaximumSignificantDigits();return new nS(o).compareTo(new nS(n))},Kd.prototype.getScale=function(){return this._scale},Kd.prototype.isFloating=function(){return this._modelType===Kd.FLOATING||this._modelType===Kd.FLOATING_SINGLE},Kd.prototype.getType=function(){return this._modelType},Kd.prototype.toString=function(){var t="UNKNOWN";return this._modelType===Kd.FLOATING?t="Floating":this._modelType===Kd.FLOATING_SINGLE?t="Floating-Single":this._modelType===Kd.FIXED&&(t="Fixed (Scale="+this.getScale()+")"),t},Kd.prototype.makePrecise=function(){if("number"==typeof arguments[0]){var t=arguments[0];return ky.isNaN(t)?t:this._modelType===Kd.FLOATING_SINGLE?t:this._modelType===Kd.FIXED?Math.round(t*this._scale)/this._scale:t}if(arguments[0]instanceof Wy){var e=arguments[0];if(this._modelType===Kd.FLOATING)return null;e.x=this.makePrecise(e.x),e.y=this.makePrecise(e.y)}},Kd.prototype.getMaximumSignificantDigits=function(){var t=16;return this._modelType===Kd.FLOATING?t=16:this._modelType===Kd.FLOATING_SINGLE?t=6:this._modelType===Kd.FIXED&&(t=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),t},Kd.prototype.setScale=function(t){this._scale=Math.abs(t)},Kd.prototype.interfaces_=function(){return[Xy,zy]},Kd.prototype.getClass=function(){return Kd},Kd.mostPrecise=function(t,e){return t.compareTo(e)>=0?t:e},Jd.serialVersionUID.get=function(){return 0x6bee6404e9a25c00},Jd.maximumPreciseValue.get=function(){return 9007199254740992},Object.defineProperties(Kd,Jd);var Zd=function t(e){this._name=e||null,t.nameToTypeMap.put(e,this)},Qd={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};Zd.prototype.readResolve=function(){return Zd.nameToTypeMap.get(this._name)},Zd.prototype.toString=function(){return this._name},Zd.prototype.interfaces_=function(){return[Xy]},Zd.prototype.getClass=function(){return Zd},Qd.serialVersionUID.get=function(){return-552860263173159e4},Qd.nameToTypeMap.get=function(){return new Hd},Object.defineProperties(Zd,Qd),Kd.Type=Zd,Kd.FIXED=new Zd("FIXED"),Kd.FLOATING=new Zd("FLOATING"),Kd.FLOATING_SINGLE=new Zd("FLOATING SINGLE");var $d=function t(){this._precisionModel=new Kd,this._SRID=0,this._coordinateSequenceFactory=t.getDefaultCoordinateSequenceFactory(),0===arguments.length||(1===arguments.length?$y(arguments[0],Jy)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof Kd&&(this._precisionModel=arguments[0]):2===arguments.length?(this._precisionModel=arguments[0],this._SRID=arguments[1]):3===arguments.length&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},tb={serialVersionUID:{configurable:!0}};$d.prototype.toGeometry=function(t){return t.isNull()?this.createPoint(null):t.getMinX()===t.getMaxX()&&t.getMinY()===t.getMaxY()?this.createPoint(new Wy(t.getMinX(),t.getMinY())):t.getMinX()===t.getMaxX()||t.getMinY()===t.getMaxY()?this.createLineString([new Wy(t.getMinX(),t.getMinY()),new Wy(t.getMaxX(),t.getMaxY())]):this.createPolygon(this.createLinearRing([new Wy(t.getMinX(),t.getMinY()),new Wy(t.getMinX(),t.getMaxY()),new Wy(t.getMaxX(),t.getMaxY()),new Wy(t.getMaxX(),t.getMinY()),new Wy(t.getMinX(),t.getMinY())]),null)},$d.prototype.createLineString=function(t){return t?t instanceof Array?new Td(this.getCoordinateSequenceFactory().create(t),this):$y(t,uS)?new Td(t,this):void 0:new Td(this.getCoordinateSequenceFactory().create([]),this)},$d.prototype.createMultiLineString=function(){if(0===arguments.length)return new Od(null,this);if(1===arguments.length){var t=arguments[0];return new Od(t,this)}},$d.prototype.buildGeometry=function(t){for(var e=null,o=!1,n=!1,r=t.iterator();r.hasNext();){var i=r.next(),l=i.getClass();null===e&&(e=l),l!==e&&(o=!0),i.isGeometryCollectionOrDerived()&&(n=!0)}if(null===e)return this.createGeometryCollection();if(o||n)return this.createGeometryCollection($d.toGeometryArray(t));var a=t.iterator().next();if(t.size()>1){if(a instanceof Cd)return this.createMultiPolygon($d.toPolygonArray(t));if(a instanceof Td)return this.createMultiLineString($d.toLineStringArray(t));if(a instanceof Rd)return this.createMultiPoint($d.toPointArray(t));OS.shouldNeverReachHere("Unhandled class: "+a.getClass().getName())}return a},$d.prototype.createMultiPointFromCoords=function(t){return this.createMultiPoint(null!==t?this.getCoordinateSequenceFactory().create(t):null)},$d.prototype.createPoint=function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Wy){var t=arguments[0];return this.createPoint(null!==t?this.getCoordinateSequenceFactory().create([t]):null)}if($y(arguments[0],uS)){var e=arguments[0];return new Rd(e,this)}}},$d.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory},$d.prototype.createPolygon=function(){if(0===arguments.length)return new Cd(null,null,this);if(1===arguments.length){if($y(arguments[0],uS)){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof Array){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof Nd){var o=arguments[0];return this.createPolygon(o,null)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return new Cd(n,r,this)}},$d.prototype.getSRID=function(){return this._SRID},$d.prototype.createGeometryCollection=function(){if(0===arguments.length)return new Ad(null,this);if(1===arguments.length){var t=arguments[0];return new Ad(t,this)}},$d.prototype.createGeometry=function(t){return new Bd(this).edit(t,{edit:function(){if(2===arguments.length){var t=arguments[0];return this._coordinateSequenceFactory.create(t)}}})},$d.prototype.getPrecisionModel=function(){return this._precisionModel},$d.prototype.createLinearRing=function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLinearRing(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if($y(arguments[0],uS)){var e=arguments[0];return new Nd(e,this)}}},$d.prototype.createMultiPolygon=function(){if(0===arguments.length)return new Dd(null,this);if(1===arguments.length){var t=arguments[0];return new Dd(t,this)}},$d.prototype.createMultiPoint=function(){if(0===arguments.length)return new jd(null,this);if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return new jd(t,this)}if(arguments[0]instanceof Array){var e=arguments[0];return this.createMultiPoint(null!==e?this.getCoordinateSequenceFactory().create(e):null)}if($y(arguments[0],uS)){var o=arguments[0];if(null===o)return this.createMultiPoint(new Array(0).fill(null));for(var n=new Array(o.size()).fill(null),r=0;r=this.size())throw new Error;return this.array_[t]},ub.prototype.push=function(t){return this.array_.push(t),t},ub.prototype.pop=function(t){if(0===this.array_.length)throw new sb;return this.array_.pop()},ub.prototype.peek=function(){if(0===this.array_.length)throw new sb;return this.array_[this.array_.length-1]},ub.prototype.empty=function(){return 0===this.array_.length},ub.prototype.isEmpty=function(){return this.empty()},ub.prototype.search=function(t){return this.array_.indexOf(t)},ub.prototype.size=function(){return this.array_.length},ub.prototype.toArray=function(){for(var t=[],e=0,o=this.array_.length;e0&&this._minIndexthis._minCoord.y&&o.y>this._minCoord.y&&n===ES.CLOCKWISE&&(r=!0),r&&(this._minIndex=this._minIndex-1)},pb.prototype.getRightmostSideOfSegment=function(t,e){var o=t.getEdge().getCoordinates();if(e<0||e+1>=o.length)return-1;if(o[e].y===o[e+1].y)return-1;var n=lb.LEFT;return o[e].ythis._minCoord.x)&&(this._minDe=t,this._minIndex=o,this._minCoord=e[o])},pb.prototype.findRightmostEdgeAtNode=function(){var t=this._minDe.getNode().getEdges();this._minDe=t.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)},pb.prototype.findEdge=function(t){for(var e=t.iterator();e.hasNext();){var o=e.next();o.isForward()&&this.checkForRightmostCoordinate(o)}OS.isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===lb.LEFT&&(this._orientedDe=this._minDe.getSym())},pb.prototype.interfaces_=function(){return[]},pb.prototype.getClass=function(){return pb};var cb=function(t){function e(o,n){t.call(this,e.msgWithCoord(o,n)),this.pt=n?new Wy(n):null,this.name="TopologyException"}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getCoordinate=function(){return this.pt},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.msgWithCoord=function(t,e){return e?t:t+" [ "+e+" ]"},e}(MS),fb=function(){this.array_=[]};fb.prototype.addLast=function(t){this.array_.push(t)},fb.prototype.removeFirst=function(){return this.array_.shift()},fb.prototype.isEmpty=function(){return 0===this.array_.length};var hb=function(){this._finder=null,this._dirEdgeList=new HS,this._nodes=new HS,this._rightMostCoord=null,this._env=null,this._finder=new pb};hb.prototype.clearVisitedEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();){t.next().setVisited(!1)}},hb.prototype.getRightmostCoordinate=function(){return this._rightMostCoord},hb.prototype.computeNodeDepth=function(t){for(var e=null,o=t.getEdges().iterator();o.hasNext();){var n=o.next();if(n.isVisited()||n.getSym().isVisited()){e=n;break}}if(null===e)throw new cb("unable to find edge to compute depths at "+t.getCoordinate());t.getEdges().computeDepths(e);for(var r=t.getEdges().iterator();r.hasNext();){var i=r.next();i.setVisited(!0),this.copySymDepths(i)}},hb.prototype.computeDepth=function(t){this.clearVisitedEdges();var e=this._finder.getEdge();e.setEdgeDepths(lb.RIGHT,t),this.copySymDepths(e),this.computeDepths(e)},hb.prototype.create=function(t){this.addReachable(t),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()},hb.prototype.findResultEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();){var e=t.next();e.getDepth(lb.RIGHT)>=1&&e.getDepth(lb.LEFT)<=0&&!e.isInteriorAreaEdge()&&e.setInResult(!0)}},hb.prototype.computeDepths=function(t){var e=new id,o=new fb,n=t.getNode();for(o.addLast(n),e.add(n),t.setVisited(!0);!o.isEmpty();){var r=o.removeFirst();e.add(r),this.computeNodeDepth(r);for(var i=r.getEdges().iterator();i.hasNext();){var l=i.next().getSym();if(!l.isVisited()){var a=l.getNode();e.contains(a)||(o.addLast(a),e.add(a))}}}},hb.prototype.compareTo=function(t){var e=t;return this._rightMostCoord.xe._rightMostCoord.x?1:0},hb.prototype.getEnvelope=function(){if(null===this._env){for(var t=new PS,e=this._dirEdgeList.iterator();e.hasNext();)for(var o=e.next().getEdge().getCoordinates(),n=0;nthis.location.length){var e=new Array(3).fill(null);e[lb.ON]=this.location[lb.ON],e[lb.LEFT]=Zy.NONE,e[lb.RIGHT]=Zy.NONE,this.location=e}for(var o=0;o1&&t.append(Zy.toLocationSymbol(this.location[lb.LEFT])),t.append(Zy.toLocationSymbol(this.location[lb.ON])),this.location.length>1&&t.append(Zy.toLocationSymbol(this.location[lb.RIGHT])),t.toString()},gb.prototype.setLocations=function(t,e,o){this.location[lb.ON]=t,this.location[lb.LEFT]=e,this.location[lb.RIGHT]=o},gb.prototype.get=function(t){return t1},gb.prototype.isAnyNull=function(){for(var t=0;tthis._maxNodeDegree&&(this._maxNodeDegree=e),t=this.getNext(t)}while(t!==this._startDe);this._maxNodeDegree*=2},yb.prototype.addPoints=function(t,e,o){var n=t.getCoordinates();if(e){var r=1;o&&(r=0);for(var i=r;i=0;a--)this._pts.add(n[a])}},yb.prototype.isHole=function(){return this._isHole},yb.prototype.setInResult=function(){var t=this._startDe;do{t.getEdge().setInResult(!0),t=t.getNext()}while(t!==this._startDe)},yb.prototype.containsPoint=function(t){var e=this.getLinearRing();if(!e.getEnvelopeInternal().contains(t))return!1;if(!ES.isPointInRing(t,e.getCoordinates()))return!1;for(var o=this._holes.iterator();o.hasNext();){if(o.next().containsPoint(t))return!1}return!0},yb.prototype.addHole=function(t){this._holes.add(t)},yb.prototype.isShell=function(){return null===this._shell},yb.prototype.getLabel=function(){return this._label},yb.prototype.getEdges=function(){return this._edges},yb.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree},yb.prototype.getShell=function(){return this._shell},yb.prototype.mergeLabel=function(){if(1===arguments.length){var t=arguments[0];this.mergeLabel(t,0),this.mergeLabel(t,1)}else if(2===arguments.length){var e=arguments[0],o=arguments[1],n=e.getLocation(o,lb.RIGHT);if(n===Zy.NONE)return null;if(this._label.getLocation(o)===Zy.NONE)return this._label.setLocation(o,n),null}},yb.prototype.setShell=function(t){this._shell=t,null!==t&&t.addHole(this)},yb.prototype.toPolygon=function(t){for(var e=new Array(this._holes.size()).fill(null),o=0;o=2,"found partial label"),this.computeIM(t)},bb.prototype.isInResult=function(){return this._isInResult},bb.prototype.isVisited=function(){return this._isVisited},bb.prototype.interfaces_=function(){return[]},bb.prototype.getClass=function(){return bb};var mb=function(t){function e(){t.call(this),this._coord=null,this._edges=null;var e=arguments[0],o=arguments[1];this._coord=e,this._edges=o,this._label=new Pb(0,Zy.NONE)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isIncidentEdgeInResult=function(){for(var t=this.getEdges().getEdges().iterator();t.hasNext();){if(t.next().getEdge().isInResult())return!0}return!1},e.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},e.prototype.getCoordinate=function(){return this._coord},e.prototype.print=function(t){t.println("node "+this._coord+" lbl: "+this._label)},e.prototype.computeIM=function(t){},e.prototype.computeMergedLocation=function(t,e){var o=Zy.NONE;if(o=this._label.getLocation(e),!t.isNull(e)){var n=t.getLocation(e);o!==Zy.BOUNDARY&&(o=n)}return o},e.prototype.setLabel=function(){if(2!==arguments.length)return t.prototype.setLabel.apply(this,arguments);var e=arguments[0],o=arguments[1];null===this._label?this._label=new Pb(e,o):this._label.setLocation(e,o)},e.prototype.getEdges=function(){return this._edges},e.prototype.mergeLabel=function(){if(arguments[0]instanceof e){var t=arguments[0];this.mergeLabel(t._label)}else if(arguments[0]instanceof Pb)for(var o=arguments[0],n=0;n<2;n++){var r=this.computeMergedLocation(o,n);this._label.getLocation(n)===Zy.NONE&&this._label.setLocation(n,r)}},e.prototype.add=function(t){this._edges.insert(t),t.setNode(this)},e.prototype.setLabelBoundary=function(t){if(null===this._label)return null;var e=Zy.NONE;null!==this._label&&(e=this._label.getLocation(t));var o=null;switch(e){case Zy.BOUNDARY:o=Zy.INTERIOR;break;case Zy.INTERIOR:default:o=Zy.BOUNDARY}this._label.setLocation(t,o)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(bb),vb=function(){this.nodeMap=new hd,this.nodeFact=null;var t=arguments[0];this.nodeFact=t};vb.prototype.find=function(t){return this.nodeMap.get(t)},vb.prototype.addNode=function(){if(arguments[0]instanceof Wy){var t=arguments[0],e=this.nodeMap.get(t);return null===e&&(e=this.nodeFact.createNode(t),this.nodeMap.put(t,e)),e}if(arguments[0]instanceof mb){var o=arguments[0],n=this.nodeMap.get(o.getCoordinate());return null===n?(this.nodeMap.put(o.getCoordinate(),o),o):(n.mergeLabel(o),n)}},vb.prototype.print=function(t){for(var e=this.iterator();e.hasNext();){e.next().print(t)}},vb.prototype.iterator=function(){return this.nodeMap.values().iterator()},vb.prototype.values=function(){return this.nodeMap.values()},vb.prototype.getBoundaryNodes=function(t){for(var e=new HS,o=this.iterator();o.hasNext();){var n=o.next();n.getLabel().getLocation(t)===Zy.BOUNDARY&&e.add(n)}return e},vb.prototype.add=function(t){var e=t.getCoordinate();this.addNode(e).add(t)},vb.prototype.interfaces_=function(){return[]},vb.prototype.getClass=function(){return vb};var Mb=function(){},Ab={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};Mb.prototype.interfaces_=function(){return[]},Mb.prototype.getClass=function(){return Mb},Mb.isNorthern=function(t){return t===Mb.NE||t===Mb.NW},Mb.isOpposite=function(t,e){return t!==e&&2===(t-e+4)%4},Mb.commonHalfPlane=function(t,e){if(t===e)return t;if(2===(t-e+4)%4)return-1;var o=te?t:e)?3:o},Mb.isInHalfPlane=function(t,e){return e===Mb.SE?t===Mb.SE||t===Mb.SW:t===e||t===e+1},Mb.quadrant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new Yy("Cannot compute the quadrant for point ( "+t+", "+e+" )");return t>=0?e>=0?Mb.NE:Mb.SE:e>=0?Mb.NW:Mb.SW}if(arguments[0]instanceof Wy&&arguments[1]instanceof Wy){var o=arguments[0],n=arguments[1];if(n.x===o.x&&n.y===o.y)throw new Yy("Cannot compute the quadrant for two identical points "+o);return n.x>=o.x?n.y>=o.y?Mb.NE:Mb.SE:n.y>=o.y?Mb.NW:Mb.SW}},Ab.NE.get=function(){return 0},Ab.NW.get=function(){return 1},Ab.SW.get=function(){return 2},Ab.SE.get=function(){return 3},Object.defineProperties(Mb,Ab);var Ob=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,1===arguments.length){var t=arguments[0];this._edge=t}else if(3===arguments.length){var e=arguments[0],o=arguments[1],n=arguments[2];this._edge=e,this.init(o,n),this._label=null}else if(4===arguments.length){var r=arguments[0],i=arguments[1],l=arguments[2],a=arguments[3];this._edge=r,this.init(i,l),this._label=a}};Ob.prototype.compareDirection=function(t){return this._dx===t._dx&&this._dy===t._dy?0:this._quadrant>t._quadrant?1:this._quadrant2){i.linkDirectedEdgesForMinimalEdgeRings();var l=i.buildMinimalRings(),a=this.findShell(l);null!==a?(this.placePolygonHoles(a,l),e.add(a)):o.addAll(l)}else n.add(i)}return n},xb.prototype.containsPoint=function(t){for(var e=this._shellList.iterator();e.hasNext();){if(e.next().containsPoint(t))return!0}return!1},xb.prototype.buildMaximalEdgeRings=function(t){for(var e=new HS,o=t.iterator();o.hasNext();){var n=o.next();if(n.isInResult()&&n.getLabel().isArea()&&null===n.getEdgeRing()){var r=new db(n,this._geometryFactory);e.add(r),r.setInResult()}}return e},xb.prototype.placePolygonHoles=function(t,e){for(var o=e.iterator();o.hasNext();){var n=o.next();n.isHole()&&n.setShell(t)}},xb.prototype.getPolygons=function(){return this.computePolygons(this._shellList)},xb.prototype.findEdgeRingContaining=function(t,e){for(var o=t.getLinearRing(),n=o.getEnvelopeInternal(),r=o.getCoordinateN(0),i=null,l=null,a=e.iterator();a.hasNext();){var s=a.next(),u=s.getLinearRing(),p=u.getEnvelopeInternal();null!==i&&(l=i.getLinearRing().getEnvelopeInternal());var c=!1;p.contains(n)&&ES.isPointInRing(r,u.getCoordinates())&&(c=!0),c&&(null===i||l.contains(p))&&(i=s)}return i},xb.prototype.findShell=function(t){for(var e=0,o=null,n=t.iterator();n.hasNext();){var r=n.next();r.isHole()||(o=r,e++)}return OS.isTrue(e<=1,"found two shells in MinimalEdgeRing list"),o},xb.prototype.add=function(){if(1===arguments.length){var t=arguments[0];this.add(t.getEdgeEnds(),t.getNodes())}else if(2===arguments.length){var e=arguments[0],o=arguments[1];wb.linkResultDirectedEdges(o);var n=this.buildMaximalEdgeRings(e),r=new HS,i=this.buildMinimalEdgeRings(n,this._shellList,r);this.sortShellsAndHoles(i,this._shellList,r),this.placeFreeHoles(this._shellList,r)}},xb.prototype.interfaces_=function(){return[]},xb.prototype.getClass=function(){return xb};var Ub=function(){};Ub.prototype.getBounds=function(){},Ub.prototype.interfaces_=function(){return[]},Ub.prototype.getClass=function(){return Ub};var Eb=function(){this._bounds=null,this._item=null;var t=arguments[0],e=arguments[1];this._bounds=t,this._item=e};Eb.prototype.getItem=function(){return this._item},Eb.prototype.getBounds=function(){return this._bounds},Eb.prototype.interfaces_=function(){return[Ub,Xy]},Eb.prototype.getClass=function(){return Eb};var Tb=function(){this._size=null,this._items=null,this._size=0,this._items=new HS,this._items.add(null)};Tb.prototype.poll=function(){if(this.isEmpty())return null;var t=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),t},Tb.prototype.size=function(){return this._size},Tb.prototype.reorder=function(t){for(var e=null,o=this._items.get(t);2*t<=this._size&&((e=2*t)!==this._size&&this._items.get(e+1).compareTo(this._items.get(e))<0&&e++,this._items.get(e).compareTo(o)<0);t=e)this._items.set(t,this._items.get(e));this._items.set(t,o)},Tb.prototype.clear=function(){this._size=0,this._items.clear()},Tb.prototype.isEmpty=function(){return 0===this._size},Tb.prototype.add=function(t){this._items.add(null),this._size+=1;var e=this._size;for(this._items.set(0,t);t.compareTo(this._items.get(Math.trunc(e/2)))<0;e/=2)this._items.set(e,this._items.get(Math.trunc(e/2)));this._items.set(e,t)},Tb.prototype.interfaces_=function(){return[]},Tb.prototype.getClass=function(){return Tb};var Vb=function(){};Vb.prototype.visitItem=function(t){},Vb.prototype.interfaces_=function(){return[]},Vb.prototype.getClass=function(){return Vb};var Rb=function(){};Rb.prototype.insert=function(t,e){},Rb.prototype.remove=function(t,e){},Rb.prototype.query=function(){},Rb.prototype.interfaces_=function(){return[]},Rb.prototype.getClass=function(){return Rb};var Ib=function(){if(this._childBoundables=new HS,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._level=t}},Cb={serialVersionUID:{configurable:!0}};Ib.prototype.getLevel=function(){return this._level},Ib.prototype.size=function(){return this._childBoundables.size()},Ib.prototype.getChildBoundables=function(){return this._childBoundables},Ib.prototype.addChildBoundable=function(t){OS.isTrue(null===this._bounds),this._childBoundables.add(t)},Ib.prototype.isEmpty=function(){return this._childBoundables.isEmpty()},Ib.prototype.getBounds=function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds},Ib.prototype.interfaces_=function(){return[Ub,Xy]},Ib.prototype.getClass=function(){return Ib},Cb.serialVersionUID.get=function(){return 0x5a1e55ec41369800},Object.defineProperties(Ib,Cb);var jb=function(){};jb.reverseOrder=function(){return{compare:function(t,e){return e.compareTo(t)}}},jb.min=function(t){return jb.sort(t),t.get(0)},jb.sort=function(t,e){var o=t.toArray();e?dd.sort(o,e):dd.sort(o);for(var n=t.iterator(),r=0,i=o.length;rNb.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,t,e),null):(this.expand(this._boundable2,this._boundable1,t,e),null);if(o)return this.expand(this._boundable1,this._boundable2,t,e),null;if(n)return this.expand(this._boundable2,this._boundable1,t,e),null;throw new Yy("neither boundable is composite")},Nb.prototype.isLeaves=function(){return!(Nb.isComposite(this._boundable1)||Nb.isComposite(this._boundable2))},Nb.prototype.compareTo=function(t){var e=t;return this._distancee._distance?1:0},Nb.prototype.expand=function(t,e,o,n){for(var r=t.getChildBoundables().iterator();r.hasNext();){var i=r.next(),l=new Nb(i,e,this._itemDistance);l.getDistance()1,"Node capacity must be greater than 1"),this._nodeCapacity=o}},Bb={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};Db.prototype.getNodeCapacity=function(){return this._nodeCapacity},Db.prototype.lastNode=function(t){return t.get(t.size()-1)},Db.prototype.size=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){for(var t=0,e=arguments[0].getChildBoundables().iterator();e.hasNext();){var o=e.next();o instanceof Ib?t+=this.size(o):o instanceof Eb&&(t+=1)}return t}},Db.prototype.removeItem=function(t,e){for(var o=null,n=t.getChildBoundables().iterator();n.hasNext();){var r=n.next();r instanceof Eb&&r.getItem()===e&&(o=r)}return null!==o&&(t.getChildBoundables().remove(o),!0)},Db.prototype.itemsTree=function(){if(0===arguments.length){this.build();var t=this.itemsTree(this._root);return null===t?new HS:t}if(1===arguments.length){for(var e=arguments[0],o=new HS,n=e.getChildBoundables().iterator();n.hasNext();){var r=n.next();if(r instanceof Ib){var i=this.itemsTree(r);null!==i&&o.add(i)}else r instanceof Eb?o.add(r.getItem()):OS.shouldNeverReachHere()}return o.size()<=0?null:o}},Db.prototype.insert=function(t,e){OS.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new Eb(t,e))},Db.prototype.boundablesAtLevel=function(){if(1===arguments.length){var t=arguments[0],e=new HS;return this.boundablesAtLevel(t,this._root,e),e}if(3===arguments.length){var o=arguments[0],n=arguments[1],r=arguments[2];if(OS.isTrue(o>-2),n.getLevel()===o)return r.add(n),null;for(var i=n.getChildBoundables().iterator();i.hasNext();){var l=i.next();l instanceof Ib?this.boundablesAtLevel(o,l,r):(OS.isTrue(l instanceof Eb),-1===o&&r.add(l))}return null}},Db.prototype.query=function(){if(1===arguments.length){var t=arguments[0];this.build();var e=new HS;return this.isEmpty()?e:(this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.query(t,this._root,e),e)}if(2===arguments.length){var o=arguments[0],n=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),o)&&this.query(o,this._root,n)}else if(3===arguments.length)if($y(arguments[2],Vb)&&arguments[0]instanceof Object&&arguments[1]instanceof Ib)for(var r=arguments[0],i=arguments[1],l=arguments[2],a=i.getChildBoundables(),s=0;st&&(t=n)}}return t+1}},Db.prototype.createParentBoundables=function(t,e){OS.isTrue(!t.isEmpty());var o=new HS;o.add(this.createNode(e));var n=new HS(t);jb.sort(n,this.getComparator());for(var r=n.iterator();r.hasNext();){var i=r.next();this.lastNode(o).getChildBoundables().size()===this.getNodeCapacity()&&o.add(this.createNode(e)),this.lastNode(o).addChildBoundable(i)}return o},Db.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()},Db.prototype.interfaces_=function(){return[Xy]},Db.prototype.getClass=function(){return Db},Db.compareDoubles=function(t,e){return t>e?1:t0);for(var o=new HS,n=0;n0;){var c=p.poll(),f=c.getDistance();if(f>=s)break;c.isLeaves()?(s=f,u=c):c.expandToQueue(p,s)}return[u.getBoundable(0).getItem(),u.getBoundable(1).getItem()]}}else if(3===arguments.length){var h=arguments[0],g=arguments[1],P=arguments[2],y=new Eb(h,g),S=new Nb(this.getRoot(),y,P);return this.nearestNeighbour(S)[0]}},e.prototype.interfaces_=function(){return[Rb,Xy]},e.prototype.getClass=function(){return e},e.centreX=function(t){return e.avg(t.getMinX(),t.getMaxX())},e.avg=function(t,e){return(t+e)/2},e.centreY=function(t){return e.avg(t.getMinY(),t.getMaxY())},o.STRtreeNode.get=function(){return zb},o.serialVersionUID.get=function(){return 0x39920f7d5f261e0},o.xComparator.get=function(){return{interfaces_:function(){return[qy]},compare:function(o,n){return t.compareDoubles(e.centreX(o.getBounds()),e.centreX(n.getBounds()))}}},o.yComparator.get=function(){return{interfaces_:function(){return[qy]},compare:function(o,n){return t.compareDoubles(e.centreY(o.getBounds()),e.centreY(n.getBounds()))}}},o.intersectsOp.get=function(){return{interfaces_:function(){return[t.IntersectsOp]},intersects:function(t,e){return t.intersects(e)}}},o.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(e,o),e}(Db),zb=function(t){function e(){var e=arguments[0];t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.computeBounds=function(){for(var t=null,e=this.getChildBoundables().iterator();e.hasNext();){var o=e.next();null===t?t=new PS(o.getBounds()):t.expandToInclude(o.getBounds())}return t},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Ib),Gb=function(){};Gb.prototype.interfaces_=function(){return[]},Gb.prototype.getClass=function(){return Gb},Gb.relativeSign=function(t,e){return te?1:0},Gb.compare=function(t,e,o){if(e.equals2D(o))return 0;var n=Gb.relativeSign(e.x,o.x),r=Gb.relativeSign(e.y,o.y);switch(t){case 0:return Gb.compareValue(n,r);case 1:return Gb.compareValue(r,n);case 2:return Gb.compareValue(r,-n);case 3:return Gb.compareValue(-n,r);case 4:return Gb.compareValue(-n,-r);case 5:return Gb.compareValue(-r,-n);case 6:return Gb.compareValue(-r,n);case 7:return Gb.compareValue(n,-r)}return OS.shouldNeverReachHere("invalid octant value"),0},Gb.compareValue=function(t,e){return t<0?-1:t>0?1:e<0?-1:e>0?1:0};var qb=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var t=arguments[0],e=arguments[1],o=arguments[2],n=arguments[3];this._segString=t,this.coord=new Wy(e),this.segmentIndex=o,this._segmentOctant=n,this._isInterior=!e.equals2D(t.getCoordinate(o))};qb.prototype.getCoordinate=function(){return this.coord},qb.prototype.print=function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex)},qb.prototype.compareTo=function(t){var e=t;return this.segmentIndexe.segmentIndex?1:this.coord.equals2D(e.coord)?0:Gb.compare(this._segmentOctant,this.coord,e.coord)},qb.prototype.isEndPoint=function(t){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===t},qb.prototype.isInterior=function(){return this._isInterior},qb.prototype.interfaces_=function(){return[zy]},qb.prototype.getClass=function(){return qb};var Xb=function(){this._nodeMap=new hd,this._edge=null;var t=arguments[0];this._edge=t};Xb.prototype.getSplitCoordinates=function(){var t=new JS;this.addEndpoints();for(var e=this.iterator(),o=e.next();e.hasNext();){var n=e.next();this.addEdgeCoordinates(o,n,t),o=n}return t.toCoordinateArray()},Xb.prototype.addCollapsedNodes=function(){var t=new HS;this.findCollapsesFromInsertedNodes(t),this.findCollapsesFromExistingVertices(t);for(var e=t.iterator();e.hasNext();){var o=e.next().intValue();this.add(this._edge.getCoordinate(o),o)}},Xb.prototype.print=function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();){e.next().print(t)}},Xb.prototype.findCollapsesFromExistingVertices=function(t){for(var e=0;e=0?e>=0?o>=n?0:1:o>=n?7:6:e>=0?o>=n?3:2:o>=n?4:5}if(arguments[0]instanceof Wy&&arguments[1]instanceof Wy){var r=arguments[0],i=arguments[1],l=i.x-r.x,a=i.y-r.y;if(0===l&&0===a)throw new Yy("Cannot compute the octant for two identical points "+r);return Wb.octant(l,a)}};var Hb=function(){};Hb.prototype.getCoordinates=function(){},Hb.prototype.size=function(){},Hb.prototype.getCoordinate=function(t){},Hb.prototype.isClosed=function(){},Hb.prototype.setData=function(t){},Hb.prototype.getData=function(){},Hb.prototype.interfaces_=function(){return[]},Hb.prototype.getClass=function(){return Hb};var Kb=function(){};Kb.prototype.addIntersection=function(t,e){},Kb.prototype.interfaces_=function(){return[Hb]},Kb.prototype.getClass=function(){return Kb};var Jb=function(){this._nodeList=new Xb(this),this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};Jb.prototype.getCoordinates=function(){return this._pts},Jb.prototype.size=function(){return this._pts.length},Jb.prototype.getCoordinate=function(t){return this._pts[t]},Jb.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},Jb.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(t),this.getCoordinate(t+1))},Jb.prototype.setData=function(t){this._data=t},Jb.prototype.safeOctant=function(t,e){return t.equals2D(e)?0:Wb.octant(t,e)},Jb.prototype.getData=function(){return this._data},Jb.prototype.addIntersection=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];this.addIntersectionNode(t,e)}else if(4===arguments.length){var o=arguments[0],n=arguments[1],r=arguments[3],i=new Wy(o.getIntersection(r));this.addIntersection(i,n)}},Jb.prototype.toString=function(){return vS.toLineString(new Gd(this._pts))},Jb.prototype.getNodeList=function(){return this._nodeList},Jb.prototype.addIntersectionNode=function(t,e){var o=e,n=o+1;if(n=0&&o>=0?Math.max(e,o):e<=0&&o<=0?Math.max(e,o):0}if(arguments[0]instanceof Wy){var n=arguments[0];return ES.orientationIndex(this.p0,this.p1,n)}},Zb.prototype.toGeometry=function(t){return t.createLineString([this.p0,this.p1])},Zb.prototype.isVertical=function(){return this.p0.x===this.p1.x},Zb.prototype.equals=function(t){if(!(t instanceof Zb))return!1;var e=t;return this.p0.equals(e.p0)&&this.p1.equals(e.p1)},Zb.prototype.intersection=function(t){var e=new wS;return e.computeIntersection(this.p0,this.p1,t.p0,t.p1),e.hasIntersection()?e.getIntersection(0):null},Zb.prototype.project=function(){if(arguments[0]instanceof Wy){var t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new Wy(t);var e=this.projectionFactor(t),o=new Wy;return o.x=this.p0.x+e*(this.p1.x-this.p0.x),o.y=this.p0.y+e*(this.p1.y-this.p0.y),o}if(arguments[0]instanceof Zb){var n=arguments[0],r=this.projectionFactor(n.p0),i=this.projectionFactor(n.p1);if(r>=1&&i>=1)return null;if(r<=0&&i<=0)return null;var l=this.project(n.p0);r<0&&(l=this.p0),r>1&&(l=this.p1);var a=this.project(n.p1);return i<0&&(a=this.p0),i>1&&(a=this.p1),new Zb(l,a)}},Zb.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()},Zb.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},Zb.prototype.getCoordinate=function(t){return 0===t?this.p0:this.p1},Zb.prototype.distancePerpendicular=function(t){return ES.distancePointLinePerpendicular(t,this.p0,this.p1)},Zb.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)},Zb.prototype.midPoint=function(){return Zb.midPoint(this.p0,this.p1)},Zb.prototype.projectionFactor=function(t){if(t.equals(this.p0))return 0;if(t.equals(this.p1))return 1;var e=this.p1.x-this.p0.x,o=this.p1.y-this.p0.y,n=e*e+o*o;return n<=0?ky.NaN:((t.x-this.p0.x)*e+(t.y-this.p0.y)*o)/n},Zb.prototype.closestPoints=function(t){var e=this.intersection(t);if(null!==e)return[e,e];var o=new Array(2).fill(null),n=ky.MAX_VALUE,r=null,i=this.closestPoint(t.p0);n=i.distance(t.p0),o[0]=i,o[1]=t.p0;var l=this.closestPoint(t.p1);(r=l.distance(t.p1))0&&e<1?this.project(t):this.p0.distance(t)1||ky.isNaN(e))&&(e=1),e},Zb.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},Zb.prototype.isHorizontal=function(){return this.p0.y===this.p1.y},Zb.prototype.distance=function(){if(arguments[0]instanceof Zb){var t=arguments[0];return ES.distanceLineLine(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof Wy){var e=arguments[0];return ES.distancePointLine(e,this.p0,this.p1)}},Zb.prototype.pointAlong=function(t){var e=new Wy;return e.x=this.p0.x+t*(this.p1.x-this.p0.x),e.y=this.p0.y+t*(this.p1.y-this.p0.y),e},Zb.prototype.hashCode=function(){var t=ky.doubleToLongBits(this.p0.x);t^=31*ky.doubleToLongBits(this.p0.y);var e=Math.trunc(t)^Math.trunc(t>>32),o=ky.doubleToLongBits(this.p1.x);return o^=31*ky.doubleToLongBits(this.p1.y),e^(Math.trunc(o)^Math.trunc(o>>32))},Zb.prototype.interfaces_=function(){return[zy,Xy]},Zb.prototype.getClass=function(){return Zb},Zb.midPoint=function(t,e){return new Wy((t.x+e.x)/2,(t.y+e.y)/2)},Qb.serialVersionUID.get=function(){return 0x2d2172135f411c00},Object.defineProperties(Zb,Qb);var $b=function(){this.tempEnv1=new PS,this.tempEnv2=new PS,this._overlapSeg1=new Zb,this._overlapSeg2=new Zb};$b.prototype.overlap=function(){if(2===arguments.length);else if(4===arguments.length){var t=arguments[0],e=arguments[1],o=arguments[2],n=arguments[3];t.getLineSegment(e,this._overlapSeg1),o.getLineSegment(n,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}},$b.prototype.interfaces_=function(){return[]},$b.prototype.getClass=function(){return $b};var tm=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var t=arguments[0],e=arguments[1],o=arguments[2],n=arguments[3];this._pts=t,this._start=e,this._end=o,this._context=n};tm.prototype.getLineSegment=function(t,e){e.p0=this._pts[t],e.p1=this._pts[t+1]},tm.prototype.computeSelect=function(t,e,o,n){var r=this._pts[e],i=this._pts[o];if(n.tempEnv1.init(r,i),o-e==1)return n.select(this,e),null;if(!t.intersects(n.tempEnv1))return null;var l=Math.trunc((e+o)/2);e=t.length-1)return t.length-1;for(var n=Mb.quadrant(t[o],t[o+1]),r=e+1;ro.getId()&&(o.computeOverlaps(r,t),this._nOverlaps++),this._segInt.isDone())return null}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},o.SegmentOverlapAction.get=function(){return im},Object.defineProperties(e,o),e}(nm),im=function(t){function e(){t.call(this),this._si=null;var e=arguments[0];this._si=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.overlap=function(){if(4!==arguments.length)return t.prototype.overlap.apply(this,arguments);var e=arguments[0],o=arguments[1],n=arguments[2],r=arguments[3],i=e.getContext(),l=n.getContext();this._si.processIntersections(i,o,l,r)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}($b),lm=function t(){if(this._quadrantSegments=t.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=t.CAP_ROUND,this._joinStyle=t.JOIN_ROUND,this._mitreLimit=t.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=t.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.setQuadrantSegments(e)}else if(2===arguments.length){var o=arguments[0],n=arguments[1];this.setQuadrantSegments(o),this.setEndCapStyle(n)}else if(4===arguments.length){var r=arguments[0],i=arguments[1],l=arguments[2],a=arguments[3];this.setQuadrantSegments(r),this.setEndCapStyle(i),this.setJoinStyle(l),this.setMitreLimit(a)}},am={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};lm.prototype.getEndCapStyle=function(){return this._endCapStyle},lm.prototype.isSingleSided=function(){return this._isSingleSided},lm.prototype.setQuadrantSegments=function(t){this._quadrantSegments=t,0===this._quadrantSegments&&(this._joinStyle=lm.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=lm.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),t<=0&&(this._quadrantSegments=1),this._joinStyle!==lm.JOIN_ROUND&&(this._quadrantSegments=lm.DEFAULT_QUADRANT_SEGMENTS)},lm.prototype.getJoinStyle=function(){return this._joinStyle},lm.prototype.setJoinStyle=function(t){this._joinStyle=t},lm.prototype.setSimplifyFactor=function(t){this._simplifyFactor=t<0?0:t},lm.prototype.getSimplifyFactor=function(){return this._simplifyFactor},lm.prototype.getQuadrantSegments=function(){return this._quadrantSegments},lm.prototype.setEndCapStyle=function(t){this._endCapStyle=t},lm.prototype.getMitreLimit=function(){return this._mitreLimit},lm.prototype.setMitreLimit=function(t){this._mitreLimit=t},lm.prototype.setSingleSided=function(t){this._isSingleSided=t},lm.prototype.interfaces_=function(){return[]},lm.prototype.getClass=function(){return lm},lm.bufferDistanceError=function(t){var e=Math.PI/2/t;return 1-Math.cos(e/2)},am.CAP_ROUND.get=function(){return 1},am.CAP_FLAT.get=function(){return 2},am.CAP_SQUARE.get=function(){return 3},am.JOIN_ROUND.get=function(){return 1},am.JOIN_MITRE.get=function(){return 2},am.JOIN_BEVEL.get=function(){return 3},am.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8},am.DEFAULT_MITRE_LIMIT.get=function(){return 5},am.DEFAULT_SIMPLIFY_FACTOR.get=function(){return.01},Object.defineProperties(lm,am);var sm=function(t){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=ES.COUNTERCLOCKWISE,this._inputLine=t||null},um={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};sm.prototype.isDeletable=function(t,e,o,n){var r=this._inputLine[t],i=this._inputLine[e],l=this._inputLine[o];return!!this.isConcave(r,i,l)&&(!!this.isShallow(r,i,l,n)&&this.isShallowSampled(r,i,t,o,n))},sm.prototype.deleteShallowConcavities=function(){for(var t=1,e=this.findNextNonDeletedIndex(t),o=this.findNextNonDeletedIndex(e),n=!1;o=0;n--)this.addPt(t[n])},pm.prototype.isRedundant=function(t){if(this._ptList.size()<1)return!1;var e=this._ptList.get(this._ptList.size()-1);return t.distance(e)Math.PI;)t-=fm.PI_TIMES_2;for(;t<=-Math.PI;)t+=fm.PI_TIMES_2;return t},fm.angle=function(){if(1===arguments.length){var t=arguments[0];return Math.atan2(t.y,t.x)}if(2===arguments.length){var e=arguments[0],o=arguments[1],n=o.x-e.x,r=o.y-e.y;return Math.atan2(r,n)}},fm.isAcute=function(t,e,o){var n=t.x-e.x,r=t.y-e.y;return n*(o.x-e.x)+r*(o.y-e.y)>0},fm.isObtuse=function(t,e,o){var n=t.x-e.x,r=t.y-e.y;return n*(o.x-e.x)+r*(o.y-e.y)<0},fm.interiorAngle=function(t,e,o){var n=fm.angle(e,t),r=fm.angle(e,o);return Math.abs(r-n)},fm.normalizePositive=function(t){if(t<0){for(;t<0;)t+=fm.PI_TIMES_2;t>=fm.PI_TIMES_2&&(t=0)}else{for(;t>=fm.PI_TIMES_2;)t-=fm.PI_TIMES_2;t<0&&(t=0)}return t},fm.angleBetween=function(t,e,o){var n=fm.angle(e,t),r=fm.angle(e,o);return fm.diff(n,r)},fm.diff=function(t,e){var o=null;return(o=tMath.PI&&(o=2*Math.PI-o),o},fm.toRadians=function(t){return t*Math.PI/180},fm.getTurn=function(t,e){var o=Math.sin(e-t);return o>0?fm.COUNTERCLOCKWISE:o<0?fm.CLOCKWISE:fm.NONE},fm.angleBetweenOriented=function(t,e,o){var n=fm.angle(e,t),r=fm.angle(e,o)-n;return r<=-Math.PI?r+fm.PI_TIMES_2:r>Math.PI?r-fm.PI_TIMES_2:r},hm.PI_TIMES_2.get=function(){return 2*Math.PI},hm.PI_OVER_2.get=function(){return Math.PI/2},hm.PI_OVER_4.get=function(){return Math.PI/4},hm.COUNTERCLOCKWISE.get=function(){return ES.COUNTERCLOCKWISE},hm.CLOCKWISE.get=function(){return ES.CLOCKWISE},hm.NONE.get=function(){return ES.COLLINEAR},Object.defineProperties(fm,hm);var gm=function t(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new Zb,this._seg1=new Zb,this._offset0=new Zb,this._offset1=new Zb,this._side=0,this._hasNarrowConcaveAngle=!1;var e=arguments[0],o=arguments[1],n=arguments[2];this._precisionModel=e,this._bufParams=o,this._li=new wS,this._filletAngleQuantum=Math.PI/2/o.getQuadrantSegments(),o.getQuadrantSegments()>=8&&o.getJoinStyle()===lm.JOIN_ROUND&&(this._closingSegLengthFactor=t.MAX_CLOSING_SEG_LEN_FACTOR),this.init(n)},Pm={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};gm.prototype.addNextSegment=function(t,e){if(this._s0=this._s1,this._s1=this._s2,this._s2=t,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var o=ES.computeOrientation(this._s0,this._s1,this._s2),n=o===ES.CLOCKWISE&&this._side===lb.LEFT||o===ES.COUNTERCLOCKWISE&&this._side===lb.RIGHT;0===o?this.addCollinear(e):n?this.addOutsideTurn(o,e):this.addInsideTurn(o,e)},gm.prototype.addLineEndCap=function(t,e){var o=new Zb(t,e),n=new Zb;this.computeOffsetSegment(o,lb.LEFT,this._distance,n);var r=new Zb;this.computeOffsetSegment(o,lb.RIGHT,this._distance,r);var i=e.x-t.x,l=e.y-t.y,a=Math.atan2(l,i);switch(this._bufParams.getEndCapStyle()){case lm.CAP_ROUND:this._segList.addPt(n.p1),this.addFilletArc(e,a+Math.PI/2,a-Math.PI/2,ES.CLOCKWISE,this._distance),this._segList.addPt(r.p1);break;case lm.CAP_FLAT:this._segList.addPt(n.p1),this._segList.addPt(r.p1);break;case lm.CAP_SQUARE:var s=new Wy;s.x=Math.abs(this._distance)*Math.cos(a),s.y=Math.abs(this._distance)*Math.sin(a);var u=new Wy(n.p1.x+s.x,n.p1.y+s.y),p=new Wy(r.p1.x+s.x,r.p1.y+s.y);this._segList.addPt(u),this._segList.addPt(p)}},gm.prototype.getCoordinates=function(){return this._segList.getCoordinates()},gm.prototype.addMitreJoin=function(t,e,o,n){var r=!0,i=null;try{i=gS.intersection(e.p0,e.p1,o.p0,o.p1),(n<=0?1:i.distance(t)/Math.abs(n))>this._bufParams.getMitreLimit()&&(r=!1)}catch(t){if(!(t instanceof fS))throw t;i=new Wy(0,0),r=!1}r?this._segList.addPt(i):this.addLimitedMitreJoin(e,o,n,this._bufParams.getMitreLimit())},gm.prototype.addFilletCorner=function(t,e,o,n,r){var i=e.x-t.x,l=e.y-t.y,a=Math.atan2(l,i),s=o.x-t.x,u=o.y-t.y,p=Math.atan2(u,s);n===ES.CLOCKWISE?a<=p&&(a+=2*Math.PI):a>=p&&(a-=2*Math.PI),this._segList.addPt(e),this.addFilletArc(t,a,p,n,r),this._segList.addPt(o)},gm.prototype.addOutsideTurn=function(t,e){if(this._offset0.p1.distance(this._offset1.p0)0){var o=new Wy((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(o);var n=new Wy((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(n)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}},gm.prototype.createCircle=function(t){var e=new Wy(t.x+this._distance,t.y);this._segList.addPt(e),this.addFilletArc(t,0,2*Math.PI,-1,this._distance),this._segList.closeRing()},gm.prototype.addBevelJoin=function(t,e){this._segList.addPt(t.p1),this._segList.addPt(e.p0)},gm.prototype.init=function(t){this._distance=t,this._maxCurveSegmentError=t*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new pm,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(t*gm.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},gm.prototype.addCollinear=function(t){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===lm.JOIN_BEVEL||this._bufParams.getJoinStyle()===lm.JOIN_MITRE?(t&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,ES.CLOCKWISE,this._distance))},gm.prototype.closeRing=function(){this._segList.closeRing()},gm.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle},gm.prototype.interfaces_=function(){return[]},gm.prototype.getClass=function(){return gm},Pm.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return.001},Pm.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return.001},Pm.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6},Pm.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80},Object.defineProperties(gm,Pm);var ym=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var t=arguments[0],e=arguments[1];this._precisionModel=t,this._bufParams=e};ym.prototype.getOffsetCurve=function(t,e){if(this._distance=e,0===e)return null;var o=e<0,n=Math.abs(e),r=this.getSegGen(n);t.length<=1?this.computePointCurve(t[0],r):this.computeOffsetCurve(t,o,r);var i=r.getCoordinates();return o&&ZS.reverse(i),i},ym.prototype.computeSingleSidedBufferCurve=function(t,e,o){var n=this.simplifyTolerance(this._distance);if(e){o.addSegments(t,!0);var r=sm.simplify(t,-n),i=r.length-1;o.initSideSegments(r[i],r[i-1],lb.LEFT),o.addFirstSegment();for(var l=i-2;l>=0;l--)o.addNextSegment(r[l],!0)}else{o.addSegments(t,!1);var a=sm.simplify(t,n),s=a.length-1;o.initSideSegments(a[0],a[1],lb.LEFT),o.addFirstSegment();for(var u=2;u<=s;u++)o.addNextSegment(a[u],!0)}o.addLastSegment(),o.closeRing()},ym.prototype.computeRingBufferCurve=function(t,e,o){var n=this.simplifyTolerance(this._distance);e===lb.RIGHT&&(n=-n);var r=sm.simplify(t,n),i=r.length-1;o.initSideSegments(r[i-1],r[0],e);for(var l=1;l<=i;l++){var a=1!==l;o.addNextSegment(r[l],a)}o.closeRing()},ym.prototype.computeLineBufferCurve=function(t,e){var o=this.simplifyTolerance(this._distance),n=sm.simplify(t,o),r=n.length-1;e.initSideSegments(n[0],n[1],lb.LEFT);for(var i=2;i<=r;i++)e.addNextSegment(n[i],!0);e.addLastSegment(),e.addLineEndCap(n[r-1],n[r]);var l=sm.simplify(t,-o),a=l.length-1;e.initSideSegments(l[a],l[a-1],lb.LEFT);for(var s=a-2;s>=0;s--)e.addNextSegment(l[s],!0);e.addLastSegment(),e.addLineEndCap(l[1],l[0]),e.closeRing()},ym.prototype.computePointCurve=function(t,e){switch(this._bufParams.getEndCapStyle()){case lm.CAP_ROUND:e.createCircle(t);break;case lm.CAP_SQUARE:e.createSquare(t)}},ym.prototype.getLineCurve=function(t,e){if(this._distance=e,e<0&&!this._bufParams.isSingleSided())return null;if(0===e)return null;var o=Math.abs(e),n=this.getSegGen(o);if(t.length<=1)this.computePointCurve(t[0],n);else if(this._bufParams.isSingleSided()){var r=e<0;this.computeSingleSidedBufferCurve(t,r,n)}else this.computeLineBufferCurve(t,n);return n.getCoordinates()},ym.prototype.getBufferParameters=function(){return this._bufParams},ym.prototype.simplifyTolerance=function(t){return t*this._bufParams.getSimplifyFactor()},ym.prototype.getRingCurve=function(t,e,o){if(this._distance=o,t.length<=2)return this.getLineCurve(t,o);if(0===o)return ym.copyCoordinates(t);var n=this.getSegGen(o);return this.computeRingBufferCurve(t,e,n),n.getCoordinates()},ym.prototype.computeOffsetCurve=function(t,e,o){var n=this.simplifyTolerance(this._distance);if(e){var r=sm.simplify(t,-n),i=r.length-1;o.initSideSegments(r[i],r[i-1],lb.LEFT),o.addFirstSegment();for(var l=i-2;l>=0;l--)o.addNextSegment(r[l],!0)}else{var a=sm.simplify(t,n),s=a.length-1;o.initSideSegments(a[0],a[1],lb.LEFT),o.addFirstSegment();for(var u=2;u<=s;u++)o.addNextSegment(a[u],!0)}o.addLastSegment()},ym.prototype.getSegGen=function(t){return new gm(this._precisionModel,this._bufParams,t)},ym.prototype.interfaces_=function(){return[]},ym.prototype.getClass=function(){return ym},ym.copyCoordinates=function(t){for(var e=new Array(t.length).fill(null),o=0;or.getMaxY()||this.findStabbedSegments(t,n.getDirectedEdges(),e)}return e}if(3===arguments.length)if($y(arguments[2],XS)&&arguments[0]instanceof Wy&&arguments[1]instanceof _b)for(var i=arguments[0],l=arguments[1],a=arguments[2],s=l.getEdge().getCoordinates(),u=0;uthis._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)this._seg.p1.y||ES.computeOrientation(this._seg.p0,this._seg.p1,i)===ES.RIGHT)){var p=l.getDepth(lb.LEFT);this._seg.p0.equals(s[u])||(p=l.getDepth(lb.RIGHT));var c=new bm(this._seg,p);a.add(c)}}else if($y(arguments[2],XS)&&arguments[0]instanceof Wy&&$y(arguments[1],XS))for(var f=arguments[0],h=arguments[1],g=arguments[2],P=h.iterator();P.hasNext();){var y=P.next();y.isForward()&&this.findStabbedSegments(f,y,g)}},Sm.prototype.getDepth=function(t){var e=this.findStabbedSegments(t);return 0===e.size()?0:jb.min(e)._leftDepth},Sm.prototype.interfaces_=function(){return[]},Sm.prototype.getClass=function(){return Sm},dm.DepthSegment.get=function(){return bm},Object.defineProperties(Sm,dm);var bm=function(){this._upwardSeg=null,this._leftDepth=null;var t=arguments[0],e=arguments[1];this._upwardSeg=new Zb(t),this._leftDepth=e};bm.prototype.compareTo=function(t){var e=t;if(this._upwardSeg.minX()>=e._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=e._upwardSeg.minX())return-1;var o=this._upwardSeg.orientationIndex(e._upwardSeg);return 0!==o?o:0!==(o=-1*e._upwardSeg.orientationIndex(this._upwardSeg))?o:this._upwardSeg.compareTo(e._upwardSeg)},bm.prototype.compareX=function(t,e){var o=t.p0.compareTo(e.p0);return 0!==o?o:t.p1.compareTo(e.p1)},bm.prototype.toString=function(){return this._upwardSeg.toString()},bm.prototype.interfaces_=function(){return[zy]},bm.prototype.getClass=function(){return bm};var mm=function(t,e,o){this.p0=t||null,this.p1=e||null,this.p2=o||null};mm.prototype.area=function(){return mm.area(this.p0,this.p1,this.p2)},mm.prototype.signedArea=function(){return mm.signedArea(this.p0,this.p1,this.p2)},mm.prototype.interpolateZ=function(t){if(null===t)throw new Yy("Supplied point is null.");return mm.interpolateZ(t,this.p0,this.p1,this.p2)},mm.prototype.longestSideLength=function(){return mm.longestSideLength(this.p0,this.p1,this.p2)},mm.prototype.isAcute=function(){return mm.isAcute(this.p0,this.p1,this.p2)},mm.prototype.circumcentre=function(){return mm.circumcentre(this.p0,this.p1,this.p2)},mm.prototype.area3D=function(){return mm.area3D(this.p0,this.p1,this.p2)},mm.prototype.centroid=function(){return mm.centroid(this.p0,this.p1,this.p2)},mm.prototype.inCentre=function(){return mm.inCentre(this.p0,this.p1,this.p2)},mm.prototype.interfaces_=function(){return[]},mm.prototype.getClass=function(){return mm},mm.area=function(t,e,o){return Math.abs(((o.x-t.x)*(e.y-t.y)-(e.x-t.x)*(o.y-t.y))/2)},mm.signedArea=function(t,e,o){return((o.x-t.x)*(e.y-t.y)-(e.x-t.x)*(o.y-t.y))/2},mm.det=function(t,e,o,n){return t*n-e*o},mm.interpolateZ=function(t,e,o,n){var r=e.x,i=e.y,l=o.x-r,a=n.x-r,s=o.y-i,u=n.y-i,p=l*u-a*s,c=t.x-r,f=t.y-i,h=(u*c-a*f)/p,g=(-s*c+l*f)/p;return e.z+h*(o.z-e.z)+g*(n.z-e.z)},mm.longestSideLength=function(t,e,o){var n=t.distance(e),r=e.distance(o),i=o.distance(t),l=n;return r>l&&(l=r),i>l&&(l=i),l},mm.isAcute=function(t,e,o){return!!fm.isAcute(t,e,o)&&(!!fm.isAcute(e,o,t)&&!!fm.isAcute(o,t,e))},mm.circumcentre=function(t,e,o){var n=o.x,r=o.y,i=t.x-n,l=t.y-r,a=e.x-n,s=e.y-r,u=2*mm.det(i,l,a,s),p=mm.det(l,i*i+l*l,s,a*a+s*s),c=mm.det(i,i*i+l*l,a,a*a+s*s);return new Wy(n-p/u,r+c/u)},mm.perpendicularBisector=function(t,e){var o=e.x-t.x,n=e.y-t.y,r=new gS(t.x+o/2,t.y+n/2,1),i=new gS(t.x-n+o/2,t.y+o+n/2,1);return new gS(r,i)},mm.angleBisector=function(t,e,o){var n=e.distance(t),r=n/(n+e.distance(o)),i=o.x-t.x,l=o.y-t.y;return new Wy(t.x+r*i,t.y+r*l)},mm.area3D=function(t,e,o){var n=e.x-t.x,r=e.y-t.y,i=e.z-t.z,l=o.x-t.x,a=o.y-t.y,s=o.z-t.z,u=r*s-i*a,p=i*l-n*s,c=n*a-r*l,f=u*u+p*p+c*c,h=Math.sqrt(f)/2;return h},mm.centroid=function(t,e,o){var n=(t.x+e.x+o.x)/3,r=(t.y+e.y+o.y)/3;return new Wy(n,r)},mm.inCentre=function(t,e,o){var n=e.distance(o),r=t.distance(o),i=t.distance(e),l=n+r+i,a=(n*t.x+r*e.x+i*o.x)/l,s=(n*t.y+r*e.y+i*o.y)/l;return new Wy(a,s)};var vm=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new HS;var t=arguments[0],e=arguments[1],o=arguments[2];this._inputGeom=t,this._distance=e,this._curveBuilder=o};vm.prototype.addPoint=function(t){if(this._distance<=0)return null;var e=t.getCoordinates(),o=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(o,Zy.EXTERIOR,Zy.INTERIOR)},vm.prototype.addPolygon=function(t){var e=this._distance,o=lb.LEFT;this._distance<0&&(e=-this._distance,o=lb.RIGHT);var n=t.getExteriorRing(),r=ZS.removeRepeatedPoints(n.getCoordinates());if(this._distance<0&&this.isErodedCompletely(n,this._distance))return null;if(this._distance<=0&&r.length<3)return null;this.addPolygonRing(r,e,o,Zy.EXTERIOR,Zy.INTERIOR);for(var i=0;i0&&this.isErodedCompletely(l,-this._distance)||this.addPolygonRing(a,e,lb.opposite(o),Zy.INTERIOR,Zy.EXTERIOR)}},vm.prototype.isTriangleErodedCompletely=function(t,e){var o=new mm(t[0],t[1],t[2]),n=o.inCentre();return ES.distancePointLine(n,o.p0,o.p1)=Nd.MINIMUM_VALID_SIZE&&ES.isCCW(t)&&(i=r,l=n,o=lb.opposite(o));var a=this._curveBuilder.getRingCurve(t,o,e);this.addCurve(a,i,l)},vm.prototype.add=function(t){if(t.isEmpty())return null;t instanceof Cd?this.addPolygon(t):t instanceof Td?this.addLineString(t):t instanceof Rd?this.addPoint(t):t instanceof jd?this.addCollection(t):t instanceof Od?this.addCollection(t):t instanceof Dd?this.addCollection(t):t instanceof Ad&&this.addCollection(t)},vm.prototype.isErodedCompletely=function(t,e){var o=t.getCoordinates();if(o.length<4)return e<0;if(4===o.length)return this.isTriangleErodedCompletely(o,e);var n=t.getEnvelopeInternal(),r=Math.min(n.getHeight(),n.getWidth());return e<0&&2*Math.abs(e)>r},vm.prototype.addCollection=function(t){for(var e=0;e=this._max)throw new WS;var t=this._parent.getGeometryN(this._index++);return t instanceof Ad?(this._subcollectionIterator=new Am(t),this._subcollectionIterator.next()):t},Am.prototype.remove=function(){throw new Error(this.getClass().getName())},Am.prototype.hasNext=function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)},Am.prototype.interfaces_=function(){return[qS]},Am.prototype.getClass=function(){return Am},Am.isAtomic=function(t){return!(t instanceof Ad)};var Om=function(){this._geom=null;var t=arguments[0];this._geom=t};Om.prototype.locate=function(t){return Om.locate(t,this._geom)},Om.prototype.interfaces_=function(){return[Mm]},Om.prototype.getClass=function(){return Om},Om.isPointInRing=function(t,e){return!!e.getEnvelopeInternal().intersects(t)&&ES.isPointInRing(t,e.getCoordinates())},Om.containsPointInPolygon=function(t,e){if(e.isEmpty())return!1;var o=e.getExteriorRing();if(!Om.isPointInRing(t,o))return!1;for(var n=0;n=0;o--){var n=this._edgeList.get(o),r=n.getSym();null===e&&(e=r),null!==t&&r.setNext(t),t=n}e.setNext(t)},e.prototype.computeDepths=function(){if(1===arguments.length){var t=arguments[0],e=this.findIndex(t),o=t.getDepth(lb.LEFT),n=t.getDepth(lb.RIGHT),r=this.computeDepths(e+1,this._edgeList.size(),o);if(this.computeDepths(0,e,r)!==n)throw new cb("depth mismatch at "+t.getCoordinate())}else if(3===arguments.length){for(var i=arguments[0],l=arguments[1],a=arguments[2],s=i;s=0;r--){var i=this._resultAreaEdgeList.get(r),l=i.getSym();switch(null===e&&i.getEdgeRing()===t&&(e=i),n){case this._SCANNING_FOR_INCOMING:if(l.getEdgeRing()!==t)continue;o=l,n=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(i.getEdgeRing()!==t)continue;o.setNextMin(i),n=this._SCANNING_FOR_INCOMING}}n===this._LINKING_TO_OUTGOING&&(OS.isTrue(null!==e,"found null for first outgoing dirEdge"),OS.isTrue(e.getEdgeRing()===t,"unable to link last incoming dirEdge"),o.setNextMin(e))},e.prototype.getOutgoingDegree=function(){if(0===arguments.length){for(var t=0,e=this.iterator();e.hasNext();){e.next().isInResult()&&t++}return t}if(1===arguments.length){for(var o=arguments[0],n=0,r=this.iterator();r.hasNext();){r.next().getEdgeRing()===o&&n++}return n}},e.prototype.getLabel=function(){return this._label},e.prototype.findCoveredLineEdges=function(){for(var t=Zy.NONE,e=this.iterator();e.hasNext();){var o=e.next(),n=o.getSym();if(!o.isLineEdge()){if(o.isInResult()){t=Zy.INTERIOR;break}if(n.isInResult()){t=Zy.EXTERIOR;break}}}if(t===Zy.NONE)return null;for(var r=t,i=this.iterator();i.hasNext();){var l=i.next(),a=l.getSym();l.isLineEdge()?l.getEdge().setCovered(r===Zy.INTERIOR):(l.isInResult()&&(r=Zy.EXTERIOR),a.isInResult()&&(r=Zy.INTERIOR))}},e.prototype.computeLabelling=function(e){t.prototype.computeLabelling.call(this,e),this._label=new Pb(Zy.NONE);for(var o=this.iterator();o.hasNext();)for(var n=o.next().getEdge().getLabel(),r=0;r<2;r++){var i=n.getLocation(r);i!==Zy.INTERIOR&&i!==Zy.BOUNDARY||this._label.setLocation(r,Zy.INTERIOR)}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(_m),wm=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createNode=function(t){return new mb(t,new Lm)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Lb),xm=function t(){this._pts=null,this._orientation=null;var e=arguments[0];this._pts=e,this._orientation=t.orientation(e)};xm.prototype.compareTo=function(t){var e=t;return xm.compareOriented(this._pts,this._orientation,e._pts,e._orientation)},xm.prototype.interfaces_=function(){return[zy]},xm.prototype.getClass=function(){return xm},xm.orientation=function(t){return 1===ZS.increasingDirection(t)},xm.compareOriented=function(t,e,o,n){for(var r=e?1:-1,i=n?1:-1,l=e?t.length:-1,a=n?o.length:-1,s=e?0:t.length-1,u=n?0:o.length-1;;){var p=t[s].compareTo(o[u]);if(0!==p)return p;var c=(s+=r)===l,f=(u+=i)===a;if(c&&!f)return-1;if(!c&&f)return 1;if(c&&f)return 0}};var Um=function(){this._edges=new HS,this._ocaMap=new hd};Um.prototype.print=function(t){t.print("MULTILINESTRING ( ");for(var e=0;e0&&t.print(","),t.print("(");for(var n=o.getCoordinates(),r=0;r0&&t.print(","),t.print(n[r].x+" "+n[r].y);t.println(")")}t.print(") ")},Um.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next())},Um.prototype.findEdgeIndex=function(t){for(var e=0;e0||!e.coord.equals2D(n);r||o--;var i=new Array(o).fill(null),l=0;i[l++]=new Wy(t.coord);for(var a=t.segmentIndex+1;a<=e.segmentIndex;a++)i[l++]=this.edge.pts[a];return r&&(i[l]=e.coord),new Dm(i,new Pb(this.edge._label))},Rm.prototype.add=function(t,e,o){var n=new Vm(t,e,o),r=this._nodeMap.get(n);return null!==r?r:(this._nodeMap.put(n,n),n)},Rm.prototype.isIntersection=function(t){for(var e=this.iterator();e.hasNext();){if(e.next().coord.equals(t))return!0}return!1},Rm.prototype.interfaces_=function(){return[]},Rm.prototype.getClass=function(){return Rm};var Im=function(){};Im.prototype.getChainStartIndices=function(t){var e=0,o=new HS;o.add(new nS(e));do{var n=this.findChainEnd(t,e);o.add(new nS(n)),e=n}while(eo?e:o},Cm.prototype.getMinX=function(t){var e=this.pts[this.startIndex[t]].x,o=this.pts[this.startIndex[t+1]].x;return ee&&(n=1),this._depth[t][o]=n}}},jm.prototype.getDelta=function(t){return this._depth[t][lb.RIGHT]-this._depth[t][lb.LEFT]},jm.prototype.getLocation=function(t,e){return this._depth[t][e]<=0?Zy.EXTERIOR:Zy.INTERIOR},jm.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]},jm.prototype.add=function(){if(1===arguments.length)for(var t=arguments[0],e=0;e<2;e++)for(var o=1;o<3;o++){var n=t.getLocation(e,o);n!==Zy.EXTERIOR&&n!==Zy.INTERIOR||(this.isNull(e,o)?this._depth[e][o]=jm.depthAtLocation(n):this._depth[e][o]+=jm.depthAtLocation(n))}else if(3===arguments.length){var r=arguments[0],i=arguments[1];arguments[2]===Zy.INTERIOR&&this._depth[r][i]++}},jm.prototype.interfaces_=function(){return[]},jm.prototype.getClass=function(){return jm},jm.depthAtLocation=function(t){return t===Zy.EXTERIOR?0:t===Zy.INTERIOR?1:jm.NULL_VALUE},Nm.NULL_VALUE.get=function(){return-1},Object.defineProperties(jm,Nm);var Dm=function(t){function e(){if(t.call(this),this.pts=null,this._env=null,this.eiList=new Rm(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new jm,this._depthDelta=0,1===arguments.length){var o=arguments[0];e.call(this,o,null)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.pts=n,this._label=r}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDepth=function(){return this._depth},e.prototype.getCollapsedEdge=function(){var t=new Array(2).fill(null);return t[0]=this.pts[0],t[1]=this.pts[1],new e(t,Pb.toLineLabel(this._label))},e.prototype.isIsolated=function(){return this._isIsolated},e.prototype.getCoordinates=function(){return this.pts},e.prototype.setIsolated=function(t){this._isIsolated=t},e.prototype.setName=function(t){this._name=t},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var o=t;if(this.pts.length!==o.pts.length)return!1;for(var n=!0,r=!0,i=this.pts.length,l=0;l0?this.pts[0]:null;if(1===arguments.length){var t=arguments[0];return this.pts[t]}},e.prototype.print=function(t){t.print("edge "+this._name+": "),t.print("LINESTRING (");for(var e=0;e0&&t.print(","),t.print(this.pts[e].x+" "+this.pts[e].y);t.print(") "+this._label+" "+this._depthDelta)},e.prototype.computeIM=function(t){e.updateIM(this._label,t)},e.prototype.isCollapsed=function(){return!!this._label.isArea()&&(3===this.pts.length&&!!this.pts[0].equals(this.pts[2]))},e.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},e.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},e.prototype.getDepthDelta=function(){return this._depthDelta},e.prototype.getNumPoints=function(){return this.pts.length},e.prototype.printReverse=function(t){t.print("edge "+this._name+": ");for(var e=this.pts.length-1;e>=0;e--)t.print(this.pts[e]+" ");t.println("")},e.prototype.getMonotoneChainEdge=function(){return null===this._mce&&(this._mce=new Cm(this)),this._mce},e.prototype.getEnvelope=function(){if(null===this._env){this._env=new PS;for(var t=0;t0&&t.append(","),t.append(this.pts[e].x+" "+this.pts[e].y);return t.append(") "+this._label+" "+this._depthDelta),t.toString()},e.prototype.isPointwiseEqual=function(t){if(this.pts.length!==t.pts.length)return!1;for(var e=0;en||this._maxyi;if(l)return!1;var a=this.intersectsToleranceSquare(t,e);return OS.isTrue(!(l&&a),"Found bad envelope test"),a},zm.prototype.initCorners=function(t){this._minx=t.x-.5,this._maxx=t.x+.5,this._miny=t.y-.5,this._maxy=t.y+.5,this._corner[0]=new Wy(this._maxx,this._maxy),this._corner[1]=new Wy(this._minx,this._maxy),this._corner[2]=new Wy(this._minx,this._miny),this._corner[3]=new Wy(this._maxx,this._miny)},zm.prototype.intersects=function(t,e){return 1===this._scaleFactor?this.intersectsScaled(t,e):(this.copyScaled(t,this._p0Scaled),this.copyScaled(e,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))},zm.prototype.scale=function(t){return Math.round(t*this._scaleFactor)},zm.prototype.getCoordinate=function(){return this._originalPt},zm.prototype.copyScaled=function(t,e){e.x=this.scale(t.x),e.y=this.scale(t.y)},zm.prototype.getSafeEnvelope=function(){if(null===this._safeEnv){var t=zm.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new PS(this._originalPt.x-t,this._originalPt.x+t,this._originalPt.y-t,this._originalPt.y+t)}return this._safeEnv},zm.prototype.intersectsPixelClosure=function(t,e){return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),!!this._li.hasIntersection())))},zm.prototype.intersectsToleranceSquare=function(t,e){var o=!1,n=!1;return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!this._li.isProper()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),!!this._li.isProper()||(this._li.hasIntersection()&&(o=!0),this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),!!this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),!!this._li.isProper()||(!(!o||!n)||(!!t.equals(this._pt)||!!e.equals(this._pt))))))},zm.prototype.addSnappedNode=function(t,e){var o=t.getCoordinate(e),n=t.getCoordinate(e+1);return!!this.intersects(o,n)&&(t.addIntersection(this.getCoordinate(),e),!0)},zm.prototype.interfaces_=function(){return[]},zm.prototype.getClass=function(){return zm},Gm.SAFE_ENV_EXPANSION_FACTOR.get=function(){return.75},Object.defineProperties(zm,Gm);var qm=function(){this.tempEnv1=new PS,this.selectedSegment=new Zb};qm.prototype.select=function(){if(1===arguments.length);else if(2===arguments.length){var t=arguments[0],e=arguments[1];t.getLineSegment(e,this.selectedSegment),this.select(this.selectedSegment)}},qm.prototype.interfaces_=function(){return[]},qm.prototype.getClass=function(){return qm};var Xm=function(){this._index=null;var t=arguments[0];this._index=t},Wm={HotPixelSnapAction:{configurable:!0}};Xm.prototype.snap=function(){if(1===arguments.length){var t=arguments[0];return this.snap(t,null,-1)}if(3===arguments.length){var e=arguments[0],o=arguments[1],n=arguments[2],r=e.getSafeEnvelope(),i=new Hm(e,o,n);return this._index.query(r,{interfaces_:function(){return[Vb]},visitItem:function(t){t.select(r,i)}}),i.isNodeAdded()}},Xm.prototype.interfaces_=function(){return[]},Xm.prototype.getClass=function(){return Xm},Wm.HotPixelSnapAction.get=function(){return Hm},Object.defineProperties(Xm,Wm);var Hm=function(t){function e(){t.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var e=arguments[0],o=arguments[1],n=arguments[2];this._hotPixel=e,this._parentEdge=o,this._hotPixelVertexIndex=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isNodeAdded=function(){return this._isNodeAdded},e.prototype.select=function(){if(2!==arguments.length)return t.prototype.select.apply(this,arguments);var e=arguments[0],o=arguments[1],n=e.getContext();if(null!==this._parentEdge&&n===this._parentEdge&&o===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(n,o)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(qm),Km=function(){this._li=null,this._interiorIntersections=null;var t=arguments[0];this._li=t,this._interiorIntersections=new HS};Km.prototype.processIntersections=function(t,e,o,n){if(t===o&&e===n)return null;var r=t.getCoordinates()[e],i=t.getCoordinates()[e+1],l=o.getCoordinates()[n],a=o.getCoordinates()[n+1];if(this._li.computeIntersection(r,i,l,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var s=0;s=0;t--){try{this.bufferReducedPrecision(t)}catch(t){if(!(t instanceof cb))throw t;this._saveException=t}if(null!==this._resultGeometry)return null}throw this._saveException}if(1===arguments.length){var e=arguments[0],o=Zm.precisionScaleFactor(this._argGeom,this._distance,e),n=new Kd(o);this.bufferFixedPrecision(n)}},Zm.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var t=this._argGeom.getFactory().getPrecisionModel();t.getType()===Kd.FIXED?this.bufferFixedPrecision(t):this.bufferReducedPrecision()},Zm.prototype.setQuadrantSegments=function(t){this._bufParams.setQuadrantSegments(t)},Zm.prototype.bufferOriginalPrecision=function(){try{var t=new Bm(this._bufParams);this._resultGeometry=t.buffer(this._argGeom,this._distance)}catch(t){if(!(t instanceof MS))throw t;this._saveException=t}},Zm.prototype.getResultGeometry=function(t){return this._distance=t,this.computeGeometry(),this._resultGeometry},Zm.prototype.setEndCapStyle=function(t){this._bufParams.setEndCapStyle(t)},Zm.prototype.interfaces_=function(){return[]},Zm.prototype.getClass=function(){return Zm},Zm.bufferOp=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return new Zm(t).getResultGeometry(e)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof RS&&"number"==typeof arguments[1]){var o=arguments[0],n=arguments[1],r=arguments[2],i=new Zm(o);return i.setQuadrantSegments(r),i.getResultGeometry(n)}if(arguments[2]instanceof lm&&arguments[0]instanceof RS&&"number"==typeof arguments[1]){var l=arguments[0],a=arguments[1],s=arguments[2];return new Zm(l,s).getResultGeometry(a)}}else if(4===arguments.length){var u=arguments[0],p=arguments[1],c=arguments[2],f=arguments[3],h=new Zm(u);return h.setQuadrantSegments(c),h.setEndCapStyle(f),h.getResultGeometry(p)}},Zm.precisionScaleFactor=function(t,e,o){var n=t.getEnvelopeInternal(),r=tS.max(Math.abs(n.getMaxX()),Math.abs(n.getMaxY()),Math.abs(n.getMinX()),Math.abs(n.getMinY()))+2*(e>0?e:0),i=o-Math.trunc(Math.log(r)/Math.log(10)+1);return Math.pow(10,i)},Qm.CAP_ROUND.get=function(){return lm.CAP_ROUND},Qm.CAP_BUTT.get=function(){return lm.CAP_FLAT},Qm.CAP_FLAT.get=function(){return lm.CAP_FLAT},Qm.CAP_SQUARE.get=function(){return lm.CAP_SQUARE},Qm.MAX_PRECISION_DIGITS.get=function(){return 12},Object.defineProperties(Zm,Qm);var $m=function(){this._pt=[new Wy,new Wy],this._distance=ky.NaN,this._isNull=!0};$m.prototype.getCoordinates=function(){return this._pt},$m.prototype.getCoordinate=function(t){return this._pt[t]},$m.prototype.setMinimum=function(){if(1===arguments.length){var t=arguments[0];this.setMinimum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],o=arguments[1];if(this._isNull)return this.initialize(e,o),null;var n=e.distance(o);nthis._distance&&this.initialize(e,o,n)}},$m.prototype.interfaces_=function(){return[]},$m.prototype.getClass=function(){return $m};var tv=function(){};tv.prototype.interfaces_=function(){return[]},tv.prototype.getClass=function(){return tv},tv.computeDistance=function(){if(arguments[2]instanceof $m&&arguments[0]instanceof Td&&arguments[1]instanceof Wy)for(var t=arguments[0],e=arguments[1],o=arguments[2],n=t.getCoordinates(),r=new Zb,i=0;i0||this._isIn?Zy.INTERIOR:Zy.EXTERIOR)},av.prototype.interfaces_=function(){return[]},av.prototype.getClass=function(){return av};var sv=function t(){if(this._component=null,this._segIndex=null,this._pt=null,2===arguments.length){var e=arguments[0],o=arguments[1];t.call(this,e,t.INSIDE_AREA,o)}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._component=n,this._segIndex=r,this._pt=i}},uv={INSIDE_AREA:{configurable:!0}};sv.prototype.isInsideArea=function(){return this._segIndex===sv.INSIDE_AREA},sv.prototype.getCoordinate=function(){return this._pt},sv.prototype.getGeometryComponent=function(){return this._component},sv.prototype.getSegmentIndex=function(){return this._segIndex},sv.prototype.interfaces_=function(){return[]},sv.prototype.getClass=function(){return sv},uv.INSIDE_AREA.get=function(){return-1},Object.defineProperties(sv,uv);var pv=function(t){this._pts=t||null};pv.prototype.filter=function(t){t instanceof Rd&&this._pts.add(t)},pv.prototype.interfaces_=function(){return[vd]},pv.prototype.getClass=function(){return pv},pv.getPoints=function(){if(1===arguments.length){var t=arguments[0];return t instanceof Rd?jb.singletonList(t):pv.getPoints(t,new HS)}if(2===arguments.length){var e=arguments[0],o=arguments[1];return e instanceof Rd?o.add(e):e instanceof Ad&&e.apply(new pv(o)),o}};var cv=function(){this._locations=null;var t=arguments[0];this._locations=t};cv.prototype.filter=function(t){(t instanceof Rd||t instanceof Td||t instanceof Cd)&&this._locations.add(new sv(t,0,t.getCoordinate()))},cv.prototype.interfaces_=function(){return[vd]},cv.prototype.getClass=function(){return cv},cv.getLocations=function(t){var e=new HS;return t.apply(new cv(e)),e};var fv=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new av,this._minDistanceLocation=null,this._minDistance=ky.MAX_VALUE,2===arguments.length){var t=arguments[0],e=arguments[1];this._geom=[t,e],this._terminateDistance=0}else if(3===arguments.length){var o=arguments[0],n=arguments[1],r=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=o,this._geom[1]=n,this._terminateDistance=r}};fv.prototype.computeContainmentDistance=function(){if(0===arguments.length){var t=new Array(2).fill(null);if(this.computeContainmentDistance(0,t),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,t)}else if(2===arguments.length){var e=arguments[0],o=arguments[1],n=1-e,r=iv.getPolygons(this._geom[e]);if(r.size()>0){var i=cv.getLocations(this._geom[n]);if(this.computeContainmentDistance(i,r,o),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[n]=o[0],this._minDistanceLocation[e]=o[1],null}}else if(3===arguments.length)if(arguments[2]instanceof Array&&$y(arguments[0],XS)&&$y(arguments[1],XS)){for(var l=arguments[0],a=arguments[1],s=arguments[2],u=0;uthis._minDistance)return null;for(var n=t.getCoordinates(),r=e.getCoordinate(),i=0;ithis._minDistance)return null;for(var c=s.getCoordinates(),f=u.getCoordinates(),h=0;hthis._distance&&this.initialize(e,o,n)}},hv.prototype.interfaces_=function(){return[]},hv.prototype.getClass=function(){return hv};var gv=function(){};gv.prototype.interfaces_=function(){return[]},gv.prototype.getClass=function(){return gv},gv.computeDistance=function(){if(arguments[2]instanceof hv&&arguments[0]instanceof Td&&arguments[1]instanceof Wy)for(var t=arguments[0],e=arguments[1],o=arguments[2],n=new Zb,r=t.getCoordinates(),i=0;i1||t<=0)throw new Yy("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=t},Pv.prototype.compute=function(t,e){this.computeOrientedDistance(t,e,this._ptDist),this.computeOrientedDistance(e,t,this._ptDist)},Pv.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()},Pv.prototype.computeOrientedDistance=function(t,e,o){var n=new Sv(e);if(t.apply(n),o.setMaximum(n.getMaxPointDistance()),this._densifyFrac>0){var r=new dv(e,this._densifyFrac);t.apply(r),o.setMaximum(r.getMaxPointDistance())}},Pv.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()},Pv.prototype.interfaces_=function(){return[]},Pv.prototype.getClass=function(){return Pv},Pv.distance=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return new Pv(t,e).distance()}if(3===arguments.length){var o=arguments[0],n=arguments[1],r=arguments[2],i=new Pv(o,n);return i.setDensifyFraction(r),i.distance()}},yv.MaxPointDistanceFilter.get=function(){return Sv},yv.MaxDensifiedByFractionDistanceFilter.get=function(){return dv},Object.defineProperties(Pv,yv);var Sv=function(){this._maxPtDist=new hv,this._minPtDist=new hv,this._euclideanDist=new gv,this._geom=null;var t=arguments[0];this._geom=t};Sv.prototype.filter=function(t){this._minPtDist.initialize(),gv.computeDistance(this._geom,t,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Sv.prototype.getMaxPointDistance=function(){return this._maxPtDist},Sv.prototype.interfaces_=function(){return[jS]},Sv.prototype.getClass=function(){return Sv};var dv=function(){this._maxPtDist=new hv,this._minPtDist=new hv,this._geom=null,this._numSubSegs=0;var t=arguments[0],e=arguments[1];this._geom=t,this._numSubSegs=Math.trunc(Math.round(1/e))};dv.prototype.filter=function(t,e){if(0===e)return null;for(var o=t.getCoordinate(e-1),n=t.getCoordinate(e),r=(n.x-o.x)/this._numSubSegs,i=(n.y-o.y)/this._numSubSegs,l=0;lo){this._isValid=!1;var r=n.getCoordinates();this._errorLocation=r[1],this._errorIndicator=t.getFactory().createLineString(r),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+vS.toLineString(r[0],r[1])+")"}},bv.prototype.isValid=function(){var t=Math.abs(this._bufDistance),e=bv.MAX_DISTANCE_DIFF_FRAC*t;return this._minValidDistance=t-e,this._maxValidDistance=t+e,!(!this._input.isEmpty()&&!this._result.isEmpty())||(this._bufDistance>0?this.checkPositiveValid():this.checkNegativeValid(),bv.VERBOSE&&hS.out.println("Min Dist= "+this._minDistanceFound+" err= "+(1-this._minDistanceFound/this._bufDistance)+" Max Dist= "+this._maxDistanceFound+" err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)},bv.prototype.checkNegativeValid=function(){if(!(this._input instanceof Cd||this._input instanceof Dd||this._input instanceof Ad))return null;var t=this.getPolygonLines(this._input);if(this.checkMinimumDistance(t,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(t,this._result,this._maxValidDistance)},bv.prototype.getErrorIndicator=function(){return this._errorIndicator},bv.prototype.checkMinimumDistance=function(t,e,o){var n=new fv(t,e,o);if(this._minDistanceFound=n.distance(),this._minDistanceFound0&&t>e&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&t=2?null:this._distance>0?null:(this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),void this.report("ExpectedEmpty"))},vv.prototype.report=function(t){if(!vv.VERBOSE)return null;hS.out.println("Check "+t+": "+(this._isValid?"passed":"FAILED"))},vv.prototype.getErrorMessage=function(){return this._errorMsg},vv.prototype.interfaces_=function(){return[]},vv.prototype.getClass=function(){return vv},vv.isValidMsg=function(t,e,o){var n=new vv(t,e,o);return n.isValid()?null:n.getErrorMessage()},vv.isValid=function(t,e,o){return!!new vv(t,e,o).isValid()},Mv.VERBOSE.get=function(){return!1},Mv.MAX_ENV_DIFF_FRAC.get=function(){return.012},Object.defineProperties(vv,Mv);var Av=function(){this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};Av.prototype.getCoordinates=function(){return this._pts},Av.prototype.size=function(){return this._pts.length},Av.prototype.getCoordinate=function(t){return this._pts[t]},Av.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},Av.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:Wb.octant(this.getCoordinate(t),this.getCoordinate(t+1))},Av.prototype.setData=function(t){this._data=t},Av.prototype.getData=function(){return this._data},Av.prototype.toString=function(){return vS.toLineString(new Gd(this._pts))},Av.prototype.interfaces_=function(){return[Hb]},Av.prototype.getClass=function(){return Av};var Ov=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new HS,this._intersectionCount=0,this._keepIntersections=!0;var t=arguments[0];this._li=t,this._interiorIntersection=null};Ov.prototype.getInteriorIntersection=function(){return this._interiorIntersection},Ov.prototype.setCheckEndSegmentsOnly=function(t){this._isCheckEndSegmentsOnly=t},Ov.prototype.getIntersectionSegments=function(){return this._intSegments},Ov.prototype.count=function(){return this._intersectionCount},Ov.prototype.getIntersections=function(){return this._intersections},Ov.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},Ov.prototype.setKeepIntersections=function(t){this._keepIntersections=t},Ov.prototype.processIntersections=function(t,e,o,n){if(!this._findAllIntersections&&this.hasIntersection())return null;if(t===o&&e===n)return null;if(this._isCheckEndSegmentsOnly&&!(this.isEndSegment(t,e)||this.isEndSegment(o,n)))return null;var r=t.getCoordinates()[e],i=t.getCoordinates()[e+1],l=o.getCoordinates()[n],a=o.getCoordinates()[n+1];this._li.computeIntersection(r,i,l,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=r,this._intSegments[1]=i,this._intSegments[2]=l,this._intSegments[3]=a,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)},Ov.prototype.isEndSegment=function(t,e){return 0===e||e>=t.size()-2},Ov.prototype.hasIntersection=function(){return null!==this._interiorIntersection},Ov.prototype.isDone=function(){return!this._findAllIntersections&&null!==this._interiorIntersection},Ov.prototype.interfaces_=function(){return[Em]},Ov.prototype.getClass=function(){return Ov},Ov.createAllIntersectionsFinder=function(t){var e=new Ov(t);return e.setFindAllIntersections(!0),e},Ov.createAnyIntersectionFinder=function(t){return new Ov(t)},Ov.createIntersectionCounter=function(t){var e=new Ov(t);return e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e};var _v=function(){this._li=new wS,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var t=arguments[0];this._segStrings=t};_v.prototype.execute=function(){if(null!==this._segInt)return null;this.checkInteriorIntersections()},_v.prototype.getIntersections=function(){return this._segInt.getIntersections()},_v.prototype.isValid=function(){return this.execute(),this._isValid},_v.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},_v.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new Ov(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var t=new rm;if(t.setSegmentIntersector(this._segInt),t.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null},_v.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new cb(this.getErrorMessage(),this._segInt.getInteriorIntersection())},_v.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var t=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+vS.toLineString(t[0],t[1])+" and "+vS.toLineString(t[2],t[3])},_v.prototype.interfaces_=function(){return[]},_v.prototype.getClass=function(){return _v},_v.computeIntersections=function(t){var e=new _v(t);return e.setFindAllIntersections(!0),e.isValid(),e.getIntersections()};var Lv=function t(){this._nv=null;var e=arguments[0];this._nv=new _v(t.toSegmentStrings(e))};Lv.prototype.checkValid=function(){this._nv.checkValid()},Lv.prototype.interfaces_=function(){return[]},Lv.prototype.getClass=function(){return Lv},Lv.toSegmentStrings=function(t){for(var e=new HS,o=t.iterator();o.hasNext();){var n=o.next();e.add(new Av(n.getCoordinates(),n))}return e},Lv.checkValid=function(t){new Lv(t).checkValid()};var wv=function(t){this._mapOp=t};wv.prototype.map=function(t){for(var e=new HS,o=0;o0&&n<4&&!this._preserveType?this._factory.createLineString(o):this._factory.createLinearRing(o)},Ev.prototype.interfaces_=function(){return[]},Ev.prototype.getClass=function(){return Ev};var Tv=function t(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new Zb,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof Td&&"number"==typeof arguments[1]){var e=arguments[0],o=arguments[1];t.call(this,e.getCoordinates(),o)}else if(arguments[0]instanceof Array&&"number"==typeof arguments[1]){var n=arguments[0],r=arguments[1];this._srcPts=n,this._isClosed=t.isClosed(n),this._snapTolerance=r}};Tv.prototype.snapVertices=function(t,e){for(var o=this._isClosed?t.size()-1:t.size(),n=0;n=0&&t.add(i+1,new Wy(r),!1)}},Tv.prototype.findSegmentIndexToSnap=function(t,e){for(var o=ky.MAX_VALUE,n=-1,r=0;re&&(e=n)}return e}if(2===arguments.length){var r=arguments[0],i=arguments[1];return Math.min(Vv.computeOverlaySnapTolerance(r),Vv.computeOverlaySnapTolerance(i))}},Vv.computeSizeBasedSnapTolerance=function(t){var e=t.getEnvelopeInternal();return Math.min(e.getHeight(),e.getWidth())*Vv.SNAP_PRECISION_FACTOR},Vv.snapToSelf=function(t,e,o){return new Vv(t).snapToSelf(e,o)},Rv.SNAP_PRECISION_FACTOR.get=function(){return 1e-9},Object.defineProperties(Vv,Rv);var Iv=function(t){function e(e,o,n){t.call(this),this._snapTolerance=e||null,this._snapPts=o||null,this._isSelfSnap=void 0!==n&&n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.snapLine=function(t,e){var o=new Tv(t,this._snapTolerance);return o.setAllowSnappingToSourceVertices(this._isSelfSnap),o.snapTo(e)},e.prototype.transformCoordinates=function(t,e){var o=t.toCoordinateArray(),n=this.snapLine(o,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Ev),Cv=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};Cv.prototype.getCommon=function(){return ky.longBitsToDouble(this._commonBits)},Cv.prototype.add=function(t){var e=ky.doubleToLongBits(t);return this._isFirst?(this._commonBits=e,this._commonSignExp=Cv.signExpBits(this._commonBits),this._isFirst=!1,null):Cv.signExpBits(e)!==this._commonSignExp?(this._commonBits=0,null):(this._commonMantissaBitsCount=Cv.numCommonMostSigMantissaBits(this._commonBits,e),void(this._commonBits=Cv.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))))},Cv.prototype.toString=function(){if(1===arguments.length){var t=arguments[0],e=ky.longBitsToDouble(t),o="0000000000000000000000000000000000000000000000000000000000000000"+ky.toBinaryString(t),n=o.substring(o.length-64);return n.substring(0,1)+" "+n.substring(1,12)+"(exp) "+n.substring(12)+" [ "+e+" ]"}},Cv.prototype.interfaces_=function(){return[]},Cv.prototype.getClass=function(){return Cv},Cv.getBit=function(t,e){return 0!=(t&1<>52},Cv.zeroLowerBits=function(t,e){return t&~((1<=0;n--){if(Cv.getBit(t,n)!==Cv.getBit(e,n))return o;o++}return 52};var jv=function(){this._commonCoord=null,this._ccFilter=new Dv},Nv={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};jv.prototype.addCommonBits=function(t){var e=new Bv(this._commonCoord);t.apply(e),t.geometryChanged()},jv.prototype.removeCommonBits=function(t){if(0===this._commonCoord.x&&0===this._commonCoord.y)return t;var e=new Wy(this._commonCoord);e.x=-e.x,e.y=-e.y;var o=new Bv(e);return t.apply(o),t.geometryChanged(),t},jv.prototype.getCommonCoordinate=function(){return this._commonCoord},jv.prototype.add=function(t){t.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()},jv.prototype.interfaces_=function(){return[]},jv.prototype.getClass=function(){return jv},Nv.CommonCoordinateFilter.get=function(){return Dv},Nv.Translater.get=function(){return Bv},Object.defineProperties(jv,Nv);var Dv=function(){this._commonBitsX=new Cv,this._commonBitsY=new Cv};Dv.prototype.filter=function(t){this._commonBitsX.add(t.x),this._commonBitsY.add(t.y)},Dv.prototype.getCommonCoordinate=function(){return new Wy(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())},Dv.prototype.interfaces_=function(){return[jS]},Dv.prototype.getClass=function(){return Dv};var Bv=function(){this.trans=null;var t=arguments[0];this.trans=t};Bv.prototype.filter=function(t,e){var o=t.getOrdinate(e,0)+this.trans.x,n=t.getOrdinate(e,1)+this.trans.y;t.setOrdinate(e,0,o),t.setOrdinate(e,1,n)},Bv.prototype.isDone=function(){return!1},Bv.prototype.isGeometryChanged=function(){return!0},Bv.prototype.interfaces_=function(){return[Md]},Bv.prototype.getClass=function(){return Bv};var Yv=function(t,e){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=t,this._geom[1]=e,this.computeSnapTolerance()};Yv.prototype.selfSnap=function(t){return new Vv(t).snapTo(t,this._snapTolerance)},Yv.prototype.removeCommonBits=function(t){this._cbr=new jv,this._cbr.add(t[0]),this._cbr.add(t[1]);var e=new Array(2).fill(null);return e[0]=this._cbr.removeCommonBits(t[0].copy()),e[1]=this._cbr.removeCommonBits(t[1].copy()),e},Yv.prototype.prepareResult=function(t){return this._cbr.addCommonBits(t),t},Yv.prototype.getResultGeometry=function(t){var e=this.snap(this._geom),o=sM.overlayOp(e[0],e[1],t);return this.prepareResult(o)},Yv.prototype.checkValid=function(t){t.isValid()||hS.out.println("Snapped geometry is invalid")},Yv.prototype.computeSnapTolerance=function(){this._snapTolerance=Vv.computeOverlaySnapTolerance(this._geom[0],this._geom[1])},Yv.prototype.snap=function(t){var e=this.removeCommonBits(t);return Vv.snap(e[0],e[1],this._snapTolerance)},Yv.prototype.interfaces_=function(){return[]},Yv.prototype.getClass=function(){return Yv},Yv.overlayOp=function(t,e,o){return new Yv(t,e).getResultGeometry(o)},Yv.union=function(t,e){return Yv.overlayOp(t,e,sM.UNION)},Yv.intersection=function(t,e){return Yv.overlayOp(t,e,sM.INTERSECTION)},Yv.symDifference=function(t,e){return Yv.overlayOp(t,e,sM.SYMDIFFERENCE)},Yv.difference=function(t,e){return Yv.overlayOp(t,e,sM.DIFFERENCE)};var kv=function(t,e){this._geom=new Array(2).fill(null),this._geom[0]=t,this._geom[1]=e};kv.prototype.getResultGeometry=function(t){var e=null,o=!1,n=null;try{e=sM.overlayOp(this._geom[0],this._geom[1],t);o=!0}catch(t){if(!(t instanceof MS))throw t;n=t}if(!o)try{e=Yv.overlayOp(this._geom[0],this._geom[1],t)}catch(t){throw t instanceof MS?n:t}return e},kv.prototype.interfaces_=function(){return[]},kv.prototype.getClass=function(){return kv},kv.overlayOp=function(t,e,o){return new kv(t,e).getResultGeometry(o)},kv.union=function(t,e){return kv.overlayOp(t,e,sM.UNION)},kv.intersection=function(t,e){return kv.overlayOp(t,e,sM.INTERSECTION)},kv.symDifference=function(t,e){return kv.overlayOp(t,e,sM.SYMDIFFERENCE)},kv.difference=function(t,e){return kv.overlayOp(t,e,sM.DIFFERENCE)};var Fv=function(){this.mce=null,this.chainIndex=null;var t=arguments[0],e=arguments[1];this.mce=t,this.chainIndex=e};Fv.prototype.computeIntersections=function(t,e){this.mce.computeIntersectsForChain(this.chainIndex,t.mce,t.chainIndex,e)},Fv.prototype.interfaces_=function(){return[]},Fv.prototype.getClass=function(){return Fv};var zv=function t(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,2===arguments.length){var e=arguments[0],o=arguments[1];this._eventType=t.DELETE,this._xValue=e,this._insertEvent=o}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._eventType=t.INSERT,this._label=n,this._xValue=r,this._obj=i}},Gv={INSERT:{configurable:!0},DELETE:{configurable:!0}};zv.prototype.isDelete=function(){return this._eventType===zv.DELETE},zv.prototype.setDeleteEventIndex=function(t){this._deleteEventIndex=t},zv.prototype.getObject=function(){return this._obj},zv.prototype.compareTo=function(t){var e=t;return this._xValuee._xValue?1:this._eventTypee._eventType?1:0},zv.prototype.getInsertEvent=function(){return this._insertEvent},zv.prototype.isInsert=function(){return this._eventType===zv.INSERT},zv.prototype.isSameLabel=function(t){return null!==this._label&&this._label===t._label},zv.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex},zv.prototype.interfaces_=function(){return[zy]},zv.prototype.getClass=function(){return zv},Gv.INSERT.get=function(){return 1},Gv.DELETE.get=function(){return 2},Object.defineProperties(zv,Gv);var qv=function(){};qv.prototype.interfaces_=function(){return[]},qv.prototype.getClass=function(){return qv};var Xv=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var t=arguments[0],e=arguments[1],o=arguments[2];this._li=t,this._includeProper=e,this._recordIsolated=o};Xv.prototype.isTrivialIntersection=function(t,e,o,n){if(t===o&&1===this._li.getIntersectionNum()){if(Xv.isAdjacentSegments(e,n))return!0;if(t.isClosed()){var r=t.getNumPoints()-1;if(0===e&&n===r||0===n&&e===r)return!0}}return!1},Xv.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},Xv.prototype.setIsDoneIfProperInt=function(t){this._isDoneWhenProperInt=t},Xv.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},Xv.prototype.isBoundaryPointInternal=function(t,e){for(var o=e.iterator();o.hasNext();){var n=o.next().getCoordinate();if(t.isIntersection(n))return!0}return!1},Xv.prototype.hasProperIntersection=function(){return this._hasProper},Xv.prototype.hasIntersection=function(){return this._hasIntersection},Xv.prototype.isDone=function(){return this._isDone},Xv.prototype.isBoundaryPoint=function(t,e){return null!==e&&(!!this.isBoundaryPointInternal(t,e[0])||!!this.isBoundaryPointInternal(t,e[1]))},Xv.prototype.setBoundaryNodes=function(t,e){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=t,this._bdyNodes[1]=e},Xv.prototype.addIntersections=function(t,e,o,n){if(t===o&&e===n)return null;this.numTests++;var r=t.getCoordinates()[e],i=t.getCoordinates()[e+1],l=o.getCoordinates()[n],a=o.getCoordinates()[n+1];this._li.computeIntersection(r,i,l,a),this._li.hasIntersection()&&(this._recordIsolated&&(t.setIsolated(!1),o.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(t,e,o,n)||(this._hasIntersection=!0,!this._includeProper&&this._li.isProper()||(t.addIntersections(this._li,e,0),o.addIntersections(this._li,n,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))},Xv.prototype.interfaces_=function(){return[]},Xv.prototype.getClass=function(){return Xv},Xv.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)};var Wv=function(t){function e(){t.call(this),this.events=new HS,this.nOverlaps=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.prepareEvents=function(){jb.sort(this.events);for(var t=0;te||this._maxi?1:0},Jv.prototype.interfaces_=function(){return[qy]},Jv.prototype.getClass=function(){return Jv};var Zv=function(t){function e(){t.call(this),this._item=null;var e=arguments[0],o=arguments[1],n=arguments[2];this._min=e,this._max=o,this._item=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.query=function(t,e,o){if(!this.intersects(t,e))return null;o.visitItem(this._item)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Hv),Qv=function(t){function e(){t.call(this),this._node1=null,this._node2=null;var e=arguments[0],o=arguments[1];this._node1=e,this._node2=o,this.buildExtent(this._node1,this._node2)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.buildExtent=function(t,e){this._min=Math.min(t._min,e._min),this._max=Math.max(t._max,e._max)},e.prototype.query=function(t,e,o){if(!this.intersects(t,e))return null;null!==this._node1&&this._node1.query(t,e,o),null!==this._node2&&this._node2.query(t,e,o)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Hv),$v=function(){this._leaves=new HS,this._root=null,this._level=0};$v.prototype.buildTree=function(){jb.sort(this._leaves,new Hv.NodeComparator);for(var t=this._leaves,e=null,o=new HS;;){if(this.buildLevel(t,o),1===o.size())return o.get(0);e=t,t=o,o=e}},$v.prototype.insert=function(t,e,o){if(null!==this._root)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new Zv(t,e,o))},$v.prototype.query=function(t,e,o){this.init(),this._root.query(t,e,o)},$v.prototype.buildRoot=function(){if(null!==this._root)return null;this._root=this.buildTree()},$v.prototype.printNode=function(t){hS.out.println(vS.toLineString(new Wy(t._min,this._level),new Wy(t._max,this._level)))},$v.prototype.init=function(){if(null!==this._root)return null;this.buildRoot()},$v.prototype.buildLevel=function(t,e){this._level++,e.clear();for(var o=0;o=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,e[0]),this.insertBoundaryPoint(this._argIndex,e[e.length-1])},e.prototype.getInvalidPoint=function(){return this._invalidPoint},e.prototype.getBoundaryPoints=function(){for(var t=this.getBoundaryNodes(),e=new Array(t.size()).fill(null),o=0,n=t.iterator();n.hasNext();){var r=n.next();e[o++]=r.getCoordinate().copy()}return e},e.prototype.getBoundaryNodes=function(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},e.prototype.addSelfIntersectionNode=function(t,e,o){if(this.isBoundaryNode(t,e))return null;o===Zy.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(t,e):this.insertPoint(t,e,o)},e.prototype.addPolygonRing=function(t,e,o){if(t.isEmpty())return null;var n=ZS.removeRepeatedPoints(t.getCoordinates());if(n.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=n[0],null;var r=e,i=o;ES.isCCW(n)&&(r=o,i=e);var l=new Dm(n,new Pb(this._argIndex,Zy.BOUNDARY,r,i));this._lineEdgeMap.put(t,l),this.insertEdge(l),this.insertPoint(this._argIndex,n[0],Zy.BOUNDARY)},e.prototype.insertPoint=function(t,e,o){var n=this._nodes.addNode(e),r=n.getLabel();null===r?n._label=new Pb(t,o):r.setLocation(t,o)},e.prototype.createEdgeSetIntersector=function(){return new Wv},e.prototype.addSelfIntersectionNodes=function(t){for(var e=this._edges.iterator();e.hasNext();)for(var o=e.next(),n=o.getLabel().getLocation(t),r=o.eiList.iterator();r.hasNext();){var i=r.next();this.addSelfIntersectionNode(t,i.coord,n)}},e.prototype.add=function(){if(1!==arguments.length)return t.prototype.add.apply(this,arguments);var e=arguments[0];if(e.isEmpty())return null;if(e instanceof Dd&&(this._useBoundaryDeterminationRule=!1),e instanceof Cd)this.addPolygon(e);else if(e instanceof Td)this.addLineString(e);else if(e instanceof Rd)this.addPoint(e);else if(e instanceof jd)this.addCollection(e);else if(e instanceof Od)this.addCollection(e);else if(e instanceof Dd)this.addCollection(e);else{if(!(e instanceof Ad))throw new Error(e.getClass().getName());this.addCollection(e)}},e.prototype.addCollection=function(t){for(var e=0;e50?(null===this._areaPtLocator&&(this._areaPtLocator=new eM(this._parentGeom)),this._areaPtLocator.locate(t)):this._ptLocator.locate(t,this._parentGeom)},e.prototype.findEdge=function(){if(1===arguments.length){var e=arguments[0];return this._lineEdgeMap.get(e)}return t.prototype.findEdge.apply(this,arguments)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.determineBoundary=function(t,e){return t.isInBoundary(e)?Zy.BOUNDARY:Zy.INTERIOR},e}(wb),lM=function(){if(this._li=new wS,this._resultPrecisionModel=null,this._arg=null,1===arguments.length){var t=arguments[0];this.setComputationPrecision(t.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new iM(0,t)}else if(2===arguments.length){var e=arguments[0],o=arguments[1],n=NS.OGC_SFS_BOUNDARY_RULE;e.getPrecisionModel().compareTo(o.getPrecisionModel())>=0?this.setComputationPrecision(e.getPrecisionModel()):this.setComputationPrecision(o.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new iM(0,e,n),this._arg[1]=new iM(1,o,n)}else if(3===arguments.length){var r=arguments[0],i=arguments[1],l=arguments[2];r.getPrecisionModel().compareTo(i.getPrecisionModel())>=0?this.setComputationPrecision(r.getPrecisionModel()):this.setComputationPrecision(i.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new iM(0,r,l),this._arg[1]=new iM(1,i,l)}};lM.prototype.getArgGeometry=function(t){return this._arg[t].getGeometry()},lM.prototype.setComputationPrecision=function(t){this._resultPrecisionModel=t,this._li.setPrecisionModel(this._resultPrecisionModel)},lM.prototype.interfaces_=function(){return[]},lM.prototype.getClass=function(){return lM};var aM=function(){};aM.prototype.interfaces_=function(){return[]},aM.prototype.getClass=function(){return aM},aM.map=function(){if(arguments[0]instanceof RS&&$y(arguments[1],aM.MapOp)){for(var t=arguments[0],e=arguments[1],o=new HS,n=0;n=t.size()?null:t.get(e)},PM.union=function(t){return new PM(t).union()},yM.STRTREE_NODE_CAPACITY.get=function(){return 4},Object.defineProperties(PM,yM);var SM=function(){};function dM(){return new bM}function bM(){this.reset()}SM.prototype.interfaces_=function(){return[]},SM.prototype.getClass=function(){return SM},SM.union=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return sM.createEmptyResult(sM.UNION,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),kv.overlayOp(t,e,sM.UNION)},bM.prototype={constructor:bM,reset:function(){this.s=this.t=0},add:function(t){vM(mM,t,this.t),vM(this,mM.s,this.s),this.s?this.t+=mM.t:this.s=mM.t},valueOf:function(){return this.s}};var mM=new bM;function vM(t,e,o){var n=t.s=e+o,r=n-e,i=n-r;t.t=e-i+(o-r)}var MM=1e-6,AM=Math.PI,OM=AM/2,_M=AM/4,LM=2*AM,wM=AM/180,xM=Math.abs,UM=Math.atan,EM=Math.atan2,TM=Math.cos,VM=(Math.ceil,Math.exp),RM=(Math.floor,Math.log),IM=(Math.pow,Math.sin),CM=(Math.sign,Math.sqrt),jM=Math.tan;function NM(t){return t>1?OM:t<-1?-OM:Math.asin(t)}function DM(){}dM(),dM();function BM(t){var e=t[0],o=t[1],n=TM(o);return[n*TM(e),n*IM(e),IM(o)]}function YM(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function kM(t){var e=CM(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}dM();function FM(t,e){return[t>AM?t-LM:t<-AM?t+LM:t,e]}function zM(t,e,o,n){this.x=t,this.z=e,this.o=o,this.e=n,this.v=!1,this.n=this.p=null}function GM(t,e,o,n,r){var i,l,a=[],s=[];if(t.forEach(function(t){if(!(t.length-1<=0)){var e,o,n=t[0],l=t[e];if(l,xM(n[0]-p[0])=0;--i)r.point(u[i][0],p[1]);else n(f.x,f.p.x,-1,r);f.p}f.o.z,!h}while(!f.v);r.lineEnd()}}}function qM(t){if(t.length){for(var e,o,n=0,r=t[0];++ne?1:t>=e?0:NaN}FM.invert=FM;1===(WM=XM).length&&(HM=WM,WM=function(t,e){return XM(HM(t),e)});var WM,HM,KM=Array.prototype;KM.slice,KM.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var JM=dM();function ZM(t,e){var o=e[0],n=e[1],r=[IM(o),-TM(o),0],i=0,l=0;JM.reset();for(var a=0,s=t.length;a=0?1:-1,O=A*M,_=O>AM,L=g*m;if(JM.add(EM(L*A*IM(O),P*v+L*TM(O))),_?M+A*LM:M,_^f>=o^d>=o){var w=YM(BM(c),BM(S));kM(w);var x=YM(r,w);kM(x);var U=(_^M>=0?-1:1)*NM(x[2]);(n>U||n===U&&(w[0]||w[1]))&&(_^M>=0?1:-1)}}return(i<-MM||i1}function tA(t,e){return(t.x[0]<0?t[1]-OM-MM:OM-t[1])-(e.x[0]<0?e[1]-OM-MM:OM-e[1])}QM(4.5);function eA(t){return function(e){var o=new oA;for(var n in t)o[n]=t[n];return o.stream=e,o}}function oA(){}oA.prototype={constructor:oA,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};TM(30*wM);eA({point:function(t,e){this.stream.point(t*wM,e*wM)}});function nA(t){return function(e,o){var n=TM(e),r=TM(o),i=t(n*r);return[i*r*IM(e),i*IM(o)]}}function rA(t){return function(e,o){var n=CM(e*e+o*o),r=t(n),i=IM(r),l=TM(r);return[EM(e*i,n*l),NM(n&&o*i/n)]}}var iA=nA(function(t){return CM(2/(1+t))});iA.invert=rA(function(t){return 2*NM(t/2)});var lA=nA(function(t){return(t=(e=t)>1?0:e<-1?AM:Math.acos(e))&&t/IM(t);var e});function aA(t,e){return[t,RM(jM((OM+e)/2))]}function sA(t,e){return[t,e]}function uA(t,e){var o=TM(e),n=TM(t)*o;return[o*IM(t)/n,IM(e)/n]}function pA(t,e){var o=e*e,n=o*o;return[t*(.8707-.131979*o+n*(n*(.003971*o-.001529*n)-.013791)),e*(1.007226+o*(.015085+n*(.028874*o-.044475-.005916*n)))]}function cA(t,e){return[TM(e)*IM(t),IM(e)]}function fA(t,e){var o=TM(e),n=1+TM(t)*o;return[o*IM(t)/n,IM(e)/n]}function hA(t,e){return[RM(jM((OM+e)/2)),-t]}lA.invert=rA(function(t){return t}),aA.invert=function(t,e){return[t,2*UM(VM(e))-OM]},sA.invert=sA,uA.invert=rA(UM),pA.invert=function(t,e){var o,n=e,r=25;do{var i=n*n,l=i*i;n-=o=(n*(1.007226+i*(.015085+l*(.028874*i-.044475-.005916*l)))-e)/(1.007226+i*(.045255+l*(.259866*i-.311325-.005916*11*l)))}while(xM(o)>MM&&--r>0);return[t/(.8707+(i=n*n)*(i*(i*i*i*(.003971-.001529*i)-.013791)-.131979)),n]},cA.invert=rA(NM),fA.invert=rA(function(t){return 2*UM(t)}),hA.invert=function(t,e){return[-e,2*UM(VM(t))-OM]};function gA(t){"@babel/helpers - typeof";return(gA="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})(t)}function PA(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[1]=n,this.scaleValues[2]=n}var r=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);r=SuperMapAlgoPlot.PlottingUtil.clearSamePts(r);for(var i=this.mergeDashLine(this.dashLines,[]),l=this.computeDashLine(i,r),a=0;a0&&this.computeSubSymbol(this.subSymbols[0],_,O,y+u-180),this.addScalePoint(h,0),this.addScalePoint(S,0);var w=SuperMapAlgoPlot.PlottingUtil.circlePoint(_,.5*O,.5*O,y+u+90);this.addScalePoint(w,0),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengthh&&(i=s,a=f,l=h)}}if(-1==i||i>n.length-1)return;for(var g=0,P=0;Pr)return;var S=g/r;this.scaleValues[0]=S}else if(1==t){var d=r*this.scaleValues[0];if(-1==(v=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,d)).index)return;var b=SuperMapAlgoPlot.PlottingUtil.dirAngle(n[v.index],n[v.index+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,m=(SuperMapAlgoPlot.PlottingUtil.dirAngle(v.pt,e)*SuperMapAlgoPlot.PlottingUtil.RTOD-b)*SuperMapAlgoPlot.PlottingUtil.DTOR;this.scaleValues[3]=m}else if(2==t){m=this.scaleValues[3]*SuperMapAlgoPlot.PlottingUtil.RTOD;var v,M=r*this.scaleValues[0];g=r*this.scaleValues[1];if(-1==(v=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,M)).index)return;var A=SuperMapAlgoPlot.PlottingUtil.dirAngle(n[v.index],n[v.index+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,O=SuperMapAlgoPlot.PlottingUtil.circlePoint(v.pt,g,g,A+m+180),_=2*SuperMapAlgoPlot.PlottingUtil.distance(e,O)/r;this.scaleValues[2]=_}}}}])&&PA(e.prototype,o),n&&PA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function mA(t){"@babel/helpers - typeof";return(mA="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})(t)}function vA(t,e){for(var o=0;oe.x),c=[];p?(c.push(o),c.push(s)):(c.push(o),c.push(u)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});var f=[];p?(f.push(n),f.push(u)):(f.push(n),f.push(s)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});var h,g,P,y,S=.37*i,d=SuperMapAlgoPlot.PlottingUtil.linePnt(r,e,S),b=.09*i,m=[];m.push(d),m.push(new SuperMapAlgoPlot.Point(d.x,d.y+b)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,m,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE}),p?(h=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(b,r,d)).pntLeft,g=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*b,r,d)).pntLeft,P=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(b,h,g)).pntRight,y=a.pntLeft):(h=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(b,r,d)).pntRight,g=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*b,r,d)).pntRight,P=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(b,h,g)).pntRight,y=a.pntLeft);var v=[];v.push(h),v.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE});var M=[];M.push(P),M.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE}),this.finish()}}}])&&vA(e.prototype,o),n&&vA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function LA(t){"@babel/helpers - typeof";return(LA="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})(t)}function wA(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[0]=n}if(t.length>0&&t.length>2){var r=[];(r=r.concat(t)).push(r[0]);for(var i=this.mergeDashLine(this.dashLines,[]),l=this.computeDashLine(i,r),a=0;a0&&this.computeSubSymbol(this.subSymbols[0],u,p,f),this.addScalePoint(u,0);var P=new SuperMapAlgoPlot.Point(u.x,u.y),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,p,p,0);this.addScalePoint(y,1);var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,2*p,2*p,c);this.addScalePoint(S,2),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(2==(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length){var n=SuperMapAlgoPlot.PlottingUtil.rotateAngle(o[0],60*SuperMapAlgoPlot.PlottingUtil.DTOR,new SuperMapAlgoPlot.Point(o[1].x,o[1].y));o.push(n)}var r,i,l,a=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t&&(r=(e.x-a.x)/s,this.scaleValues[3]=r,i=(e.y-a.y)/s,this.scaleValues[4]=i),1===t){r=this.scaleValues[3],i=this.scaleValues[4],l=new SuperMapAlgoPlot.Point(a.x+r*s,a.y+i*s);var u=SuperMapAlgoPlot.PlottingUtil.distance(l,e)/s;this.scaleValues[0]=u}if(2===t){r=this.scaleValues[3],i=this.scaleValues[4],l=new SuperMapAlgoPlot.Point(a.x+r*s,a.y+i*s);var p=SuperMapAlgoPlot.PlottingUtil.radian(l,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[1]=p}}}}])&&wA(e.prototype,o),n&&wA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function VA(t){"@babel/helpers - typeof";return(VA="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})(t)}function RA(t,e){for(var o=0;o.3||r<=0)&&(r=.3),this.scaleValues[5]=r);var l=1.5*this.scaleValues[5];2==t.length?(this.isEdit||(this.scaleValues[3]=this.scaleValues[2]+l),o=this.scaleValues[2],n=this.scaleValues[3]):(SuperMapAlgoPlot.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]+l,((r=this.getDefaultSubSymbolSize()/i)>.3||r<=0)&&(r=.3),this.scaleValues[5]=r),o=this.scaleValues[3],n=this.scaleValues[4]);var a=i*o,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var u=s.index,p=s.pts,c=i*n;if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c,e)).bfind){for(var f=s.index,h=s.pts,g=new SuperMapAlgoPlot.Point(p.x,p.y),P=new SuperMapAlgoPlot.Point(h.x,h.y),y=SuperMapAlgoPlot.PlottingUtil.radian(g,P)*SuperMapAlgoPlot.PlottingUtil.RTOD,S=[],d=0;d<=u;d++)S.push(e[d]);for(S.push(p),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S),(S=[]).push(h),d=f+1;d=2?this.addArrow(m[M],.5*this.scaleValues[5]):this.addArrow([S[S.length-2],S[S.length-1]],.5*this.scaleValues[5]));var A=SuperMapAlgoPlot.PlottingUtil.distance(g,P),O=new SuperMapAlgoPlot.Point(2/3*A,.5/3*A),_=new SuperMapAlgoPlot.Point(0,.5/3*A),L=new SuperMapAlgoPlot.Point(0,-.5/3*A),w=new SuperMapAlgoPlot.Point(2/3*A,-.5/3*A),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(g,O,y),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(g,_,y),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(g,L,y),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(g,w,y);(S=[]).push(x),S.push(U),S.push(E),S.push(T),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{surroundLineLimit:!0,lineTypeLimit:!0});var V=A/3*2,R=SuperMapAlgoPlot.PlottingUtil.radian(P,x)*SuperMapAlgoPlot.PlottingUtil.RTOD,I=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,V,V,R),C=SuperMapAlgoPlot.PlottingUtil.radian(P,T)*SuperMapAlgoPlot.PlottingUtil.RTOD,j=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,V,V,C);(S=[]).push(I),S.push(h),S.push(j),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{surroundLineLimit:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(h);var N=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,A/2,A/2,y+90);this.addScalePoint(N),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r,i,l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),a=0,s=0;if(2==o.length?(a=this.scaleValues[2],s=this.scaleValues[3]):(a=this.scaleValues[3],s=this.scaleValues[4]),0==t){for(var u=s-a,p=e.clone(),c=[],f=0;fb&&(g=y,h=d,P=b)}}if(-1==g||g>c.length-1)return;r=0;for(var m=0;ml)return;if((i=r/l)>.7||i-u<0)return;2==o.length?(this.scaleValues[2]=i-u,this.scaleValues[3]=i):(this.scaleValues[3]=i-u,this.scaleValues[4]=i)}else if(1==t){r=l*a;var v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,n);if(!v.bfind)return;var M=v.pts;if(.7<(i=(2*SuperMapAlgoPlot.PlottingUtil.distance(M,e)+r)/l))return;2==o.length?this.scaleValues[3]=i:this.scaleValues[4]=i}}}}])&&RA(e.prototype,o),n&&RA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function DA(t){"@babel/helpers - typeof";return(DA="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})(t)}function BA(t,e){for(var o=0;o1&&(s=1);var u,p,c=e*s,f=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,c,c,r),h=[];h.push(t[0].clone()),h.push(f),u=SuperMapAlgoPlot.PlottingUtil.paraLine(h,a,!0),p=SuperMapAlgoPlot.PlottingUtil.paraLine(h,a,!1);var g,P=[];for(g=0;g0&&this.computeSubSymbol(this.subSymbols[0],d,S/2,r+180);for(var b=[],m=.1*c,v=[],M=0;M=O)){for(var _=m;_o.length)return;var n,r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);0==t?(n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],e)/r,this.scaleValues[0]=n):1==t&&(n=2*SuperMapAlgoPlot.PlottingUtil.distance(o[1],e)/r,this.scaleValues[1]=n)}}}])&&qA(e.prototype,o),n&&qA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function JA(t){"@babel/helpers - typeof";return(JA="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})(t)}function ZA(t,e){for(var o=0;o0){var d=.2*e,b=new SuperMapAlgoPlot.Point(t[1].x,t[1].y+d/2);this.computeSubSymbol(this.subSymbols[0],b,d,0)}this.finish()}}}])&&nO(e.prototype,o),n&&nO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function sO(t){"@babel/helpers - typeof";return(sO="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})(t)}function uO(t,e){for(var o=0;oo.length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0==t){var r=.5*n,i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,o).pts,l=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/n;l>.5&&(l=.5),this.scaleValues[0]=l}}}}])&&uO(e.prototype,o),n&&uO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function gO(t){"@babel/helpers - typeof";return(gO="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})(t)}function PO(t,e){for(var o=0;o=0;i--)l.push(e[i]);for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l),e=[],i=195;i<=345;i+=4)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(o,r,r,i));for(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,345)&&(i=345,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(o,r,r,i))),l=[],i=e.length-1;i>=0;i--)l.push(e[i]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l);var a=.8*r;(e=[]).push(new SuperMapAlgoPlot.Point(o.x-a,o.y)),e.push(new SuperMapAlgoPlot.Point(o.x+a,o.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0,surroundLineLimit:!0}),(e=[]).push(new SuperMapAlgoPlot.Point(o.x-.4*r,o.y)),e.push(new SuperMapAlgoPlot.Point(o.x-.4*r,o.y+.4*r)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0,surroundLineLimit:!0}),this.finish()}}}])&&PO(e.prototype,o),n&&PO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function mO(t){"@babel/helpers - typeof";return(mO="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})(t)}function vO(t,e){for(var o=0;o=0;i--)l.push(e[i]);for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l),e=[],i=195;i<=345;i+=4)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(o,r,r,i));for(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,345)&&(i=345,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(o,r,r,i))),l=[],i=e.length-1;i>=0;i--)l.push(e[i]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l);var a=2*this.scaleValues[0]*r;(e=[]).push(new SuperMapAlgoPlot.Point(o.x-a,o.y)),e.push(new SuperMapAlgoPlot.Point(o.x-.4*a,o.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0,surroundLineLimit:!0}),(e=[]).push(new SuperMapAlgoPlot.Point(o.x-.2*a,o.y)),e.push(new SuperMapAlgoPlot.Point(o.x+.4*a,o.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0,surroundLineLimit:!0}),(e=[]).push(new SuperMapAlgoPlot.Point(o.x+.6*a,o.y)),e.push(new SuperMapAlgoPlot.Point(o.x+a,o.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0,surroundLineLimit:!0}),(e=[]).push(new SuperMapAlgoPlot.Point(o.x-this.scaleValues[0]*r,o.y)),e.push(new SuperMapAlgoPlot.Point(o.x-this.scaleValues[0]*r,o.y+this.scaleValues[0]*r)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e,{lineTypeLimit:!0,surroundLineLimit:!0}),this.finish()}}}])&&vO(e.prototype,o),n&&vO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function LO(t){"@babel/helpers - typeof";return(LO="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})(t)}function wO(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[0]=n,this.scaleValues[1]=.5*n}for(var r=this.mergeDashLine(this.dashLines,[]),i=this.computeDashLine(r,e),l=0;l=2?this.addArrow(i[a],this.scaleValues[1]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[1]));var s=o*this.scaleValues[0],u=new SuperMapAlgoPlot.Point(e[0].x,e[0].y),p=new SuperMapAlgoPlot.Point(e[1].x,e[1].y),c=SuperMapAlgoPlot.PlottingUtil.radian(p,u)*SuperMapAlgoPlot.PlottingUtil.RTOD,f=new SuperMapAlgoPlot.Point(0,.5*s),h=new SuperMapAlgoPlot.Point(s,.5*s),g=new SuperMapAlgoPlot.Point(1.5*s,0),P=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,f,c),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,h,c),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(u,g,c);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[e[0],P,y,S],{lineTypeLimit:!0,surroundLineLimit:!0}),this.finish()}}}}])&&wO(e.prototype,o),n&&wO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function VO(t){"@babel/helpers - typeof";return(VO="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})(t)}function RO(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[1]=.5*l}var a,s=o*this.scaleValues[0],u=[];for(u.push(i),a=r;a>=0;a--)u.push(e[a]);if((n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,u)).bfind){var p=n.index,c=n.pts,f=[];for(a=u.length-1;a>p;a--)f.push(u[a]);f.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var h=[];for(h.push(i),a=r+1;a.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[1]=.5*l}var a,s=o*this.scaleValues[0],u=[];for(u.push(i),a=r;a>=0;a--)u.push(e[a]);if((n=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,u)).bfind){var p=n.index,c=n.pts,f=[];for(a=u.length-1;a>p;a--)f.push(u[a]);f.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var h=[];for(h.push(i),a=r+1;a.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var a=e[0],s=e[1],u=e[e.length-1],p=e[e.length-2],c=SuperMapAlgoPlot.PlottingUtil.radian(a,s)*SuperMapAlgoPlot.PlottingUtil.RTOD,f=SuperMapAlgoPlot.PlottingUtil.radian(p,u)*SuperMapAlgoPlot.PlottingUtil.RTOD,h=this.scaleValues[0],g=i*h,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,g,g,c+90),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,g,g,c+270),S=[];S.push(P),S.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(y);var d=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,g,g,f+90),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,g,g,f+270);(S=[]).push(d),S.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0,surroundLineLimit:!0});var m,v,M=t.length;if(this.scaleValues.length<=M){for(this.scaleValues=[],this.scaleValues.push(h),v=1/M,m=0;m=this.scalePoints.length)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r,i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0==t){var l=(r=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0]))/i;this.scaleValues[0]=l}else{var a,s=e,u=[];for(a=0;aP&&(p=a,f=g,c=P)}}if(-1==p||p>u.length-1)return;for(r=0,a=0;ai)return;var y=r/i;this.scaleValues[t]=y}}}}])&&qO(e.prototype,o),n&&qO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function JO(t){"@babel/helpers - typeof";return(JO="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})(t)}function ZO(t,e){for(var o=0;o.3||e<=0)&&(e=.3),this.scaleValues[0]=e}if(t.length>2){var o=t;o.push(t[0]);for(var n=this.mergeDashLine(this.dashLines,[]),r=this.computeDashLine(n,o),i=0;i0&&this.computeSubSymbol(this.subSymbols[0],a,s,0),this.scalePoints=[];var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,s,s,90);this.addScalePoint(u),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var i=.5*SuperMapAlgoPlot.PlottingUtil.distance(e,r)/n;this.scaleValues[0]=i}}}}])&&ZO(e.prototype,o),n&&ZO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function o_(t){"@babel/helpers - typeof";return(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})(t)}function n_(t,e){for(var o=0;o=this.scaleValues.length&&this.scaleValues.push(0);var g=this.scaleValues[2*(n+1)];2*(n+1)+1>=this.scaleValues.length&&this.scaleValues.push(1);var P=g;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[n],h,r,P);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,1.5*r,1.5*r,P+90);this.addScalePoint(y)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>this.scalePoints.length)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;if(0==t){for(var n=[],r=0;r(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}}}])&&n_(e.prototype,o),n&&n_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function s_(t){"@babel/helpers - typeof";return(s_="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})(t)}function u_(t,e){for(var o=0;othis.scalePoints.length)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){var r=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0]);this.scaleValues[0]=2*r/n}}}}])&&u_(e.prototype,o),n&&u_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function g_(t){"@babel/helpers - typeof";return(g_="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})(t)}function P_(t,e){for(var o=0;o.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[1]=.25*e}var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=.5*o,r=o*this.scaleValues[0],i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),l=i.index,a=i.pts,s=(i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n+r,t)).index;if(!(l<0||s<0)){var u;if(l!=s)(u=SuperMapAlgoPlot.PlottingUtil.distance(t[l+1],t[l]))<=2*r?(r=u/2,a.x=(t[l+1].x+t[l].x)/2,a.y=(t[l+1].y+t[l].y)/2):a=SuperMapAlgoPlot.PlottingUtil.linePnt(t[l+1],t[l],r);else if((u=SuperMapAlgoPlot.PlottingUtil.distance(t[l+1],t[l]))<=2*r)r=u/2,a.x=(t[l+1].x+t[l].x)/2,a.y=(t[l+1].y+t[l].y)/2;else SuperMapAlgoPlot.PlottingUtil.distance(t[l],a)0&&this.computeSubSymbol(this.subSymbols[0],a,.8*r,E-90),this.scalePoints=[];var T=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,r,r,E-90);this.addScalePoint(T),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=e,i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*n,o).pts,l=SuperMapAlgoPlot.PlottingUtil.distance(r,i)/n;l>.49&&(l=.49),this.scaleValues[0]=l}}}}])&&v_(e.prototype,o),n&&v_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function L_(t){"@babel/helpers - typeof";return(L_="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})(t)}function w_(t,e){for(var o=0;o.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[1]=e}var o,n=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),r=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,i=this.scaleValues[0],l=this.scaleValues[1],a=i*n,s=[],u=[];for(o=90;o<=270;o+=3)s.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],a,a,o+r));for(o=-90;o<=90;o+=3)u.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],a,a,o+r));this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,s.concat(u));var p=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),c=SuperMapAlgoPlot.PlottingUtil.dirAngle(s[0],u[u.length-1])*SuperMapAlgoPlot.PlottingUtil.RTOD,f=n*l;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,f,c+90),this.scalePoints=[],this.addScalePoint(s[s.length-1]);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,f,f,c+90);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var r=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n;this.scaleValues[0]=r}else if(1==t){var i=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),l=SuperMapAlgoPlot.PlottingUtil.distance(i,e)/n;l>=.8&&(l=.8),this.scaleValues[1]=l}}}}])&&w_(e.prototype,o),n&&w_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function V_(t){"@babel/helpers - typeof";return(V_="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})(t)}function R_(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[0]=n,this.scaleValues[1]=n,this.scaleValues[2]=.5*n}var r=this.getLinePts(e,this.scaleValues[0]),i=new SuperMapAlgoPlot.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),l=SuperMapAlgoPlot.PlottingUtil.dirAngle(r.startPt,r.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(r.startPt,r.endPt);01)for(var A=0;A1)for(var O=0;O=2){for(var r=-1,i=0;i.3||e<=0)&&(e=.3),this.scaleValues[0]=e}var o=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var n=.1*o,r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,t[1],t[0]),i=r.pntRight,l=r.pntLeft,a=(r=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(n,t[0],t[1])).pntRight,s=r.pntLeft,u=[];u.push(i),u.push(l),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,{lineTypeLimit:!0,surroundLineLimit:!0});var p=[];p.push(a),p.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0,surroundLineLimit:!0});var c=[];c.push(i),c.push(s);for(var f=SuperMapAlgoPlot.PlottingUtil.polylineDistance(c)/11,h=f,g=0,P=0,y=null,S=null,d=0;d<11;d++){if(0==d)g=0,y=i.clone();else{var b=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(h-f,c);if(!b.bfind)continue;g=b.index,y=b.pts}if(10==d)P=0,S=s.clone();else{if(!(b=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(h,c)).bfind)continue;P=b.index,S=b.pts}if(d%2==0){var m=[];m.push(y);for(var v=g+1;v<=P;v++)m.push(c[v]);m.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,{lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0})}h+=f}this.finish()}}}])&&B_(e.prototype,o),n&&B_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function G_(t){"@babel/helpers - typeof";return(G_="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})(t)}function q_(t,e){for(var o=0;o=90;e-=3)o=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],a,a,e+r),s.push(o);var u=[];for(e=90;e>=-90;e-=3)o=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],a,a,e+r),u.push(o);var p=n*l,c=new SuperMapAlgoPlot.Point((s[s.length-1].x+u[0].x)/2,(s[s.length-1].y+u[0].y)/2),f=SuperMapAlgoPlot.PlottingUtil.linePnt(s[s.length-1],u[0],.5*(n-1.2*p)),h=SuperMapAlgoPlot.PlottingUtil.linePnt(u[0],s[s.length-1],.5*(n-1.2*p)),g=[];g.push(h),(g=(g=g.concat(u)).concat(s)).push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var P=SuperMapAlgoPlot.PlottingUtil.dirAngle(h,f)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],c,p,P-90),this.scalePoints=[],this.addScalePoint(s[s.length-1]);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,p,p,P+90);this.addScalePoint(y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var r=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n;this.scaleValues[0]=r}else if(1==t){var i=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),l=SuperMapAlgoPlot.PlottingUtil.distance(i,e)/n;l>=.8&&(l=.8),this.scaleValues[1]=l}}}}])&&q_(e.prototype,o),n&&q_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function J_(t){"@babel/helpers - typeof";return(J_="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})(t)}function Z_(t,e){for(var o=0;o=90;e-=3)o=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],a,a,e+r),s.push(o);var u=[];for(e=90;e>=-90;e-=3)o=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],a,a,e+r),u.push(o);var p=n*l,c=new SuperMapAlgoPlot.Point((s[s.length-1].x+u[0].x)/2,(s[s.length-1].y+u[0].y)/2),f=SuperMapAlgoPlot.PlottingUtil.linePnt(s[s.length-1],u[0],.5*(n-1.2*p)),h=SuperMapAlgoPlot.PlottingUtil.linePnt(u[0],s[s.length-1],.5*(n-1.2*p)),g=SuperMapAlgoPlot.PlottingUtil.radian(h,f)*SuperMapAlgoPlot.PlottingUtil.RTOD,P=[];P.push(h),(P=(P=P.concat(u)).concat(s)).push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],c,p,g-90),this.scalePoints=[],this.addScalePoint(s[s.length-1]);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,p,p,g+90);this.addScalePoint(y),this.finish()}}}])&&Z_(e.prototype,o),n&&Z_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function oL(t){"@babel/helpers - typeof";return(oL="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})(t)}function nL(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[0]=.5*n,this.scaleValues[this.scaleValues.length-1]=.5*n}var r=o*this.scaleValues[1],i=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,r),l=i.index;if(-1!=l){var a=i.pt,s=o*this.scaleValues[0],u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,e[l],a),p=this.scaleValues[2],c=null;0==p?c=u.pntLeft:1==p&&(c=u.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[c,a],{fill:!1,fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});for(var f=this.mergeDashLine(this.dashLines,[]),h=this.computeDashLine(f,e),g=0;g=2?this.addArrow(h[P],this.scaleValues[3]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[3]));this.scalePoints=[],this.addScalePoint(c,0);s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[3];var y=SuperMapAlgoPlot.PlottingUtil.linePnt(e[e.length-1],e[e.length-2],s);this.addScalePoint(y),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(0==t){for(var i=-1,l=null,a=0;a=2?this.addArrow(P[S],this.scaleValues[3]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[3]));this.scalePoints=[],this.addScalePoint(i),this.addScalePoint(p),this.addScalePoint(s),this.addScalePoint(h);var d=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[3],b=SuperMapAlgoPlot.PlottingUtil.linePnt(e[e.length-1],e[e.length-2],d);this.addScalePoint(b),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(0==t){for(var i=0,l=-1,a=null,s=0;s=1-this.scaleValues[3]&&(c=1-this.scaleValues[3]),this.scaleValues[1]=c}else if(1==t){var c;for(i=0,l=-1,a=null,s=0;s=1-this.scaleValues[3]&&(c=1-this.scaleValues[3]),this.scaleValues[2]=c}else if(2==t){if(!(f=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(this.scaleValues[1]*r,n)).bfind)return;(h=SuperMapAlgoPlot.PlottingUtil.distance(f.pts,e)/r)<=.3&&(this.scaleValues[0]=h)}else if(3==t){var f,h;if(!(f=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(this.scaleValues[2]*r,n)).bfind)return;(h=SuperMapAlgoPlot.PlottingUtil.distance(f.pts,e)/r)<=.3&&(this.scaleValues[0]=h)}else if(4==t){var g=.5*SuperMapAlgoPlot.PlottingUtil.distance(e,o[o.length-1])/SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(.5=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r.15||a<=0)&&(a=.15),this.scaleValues[0]=a}var s=l*this.scaleValues[2],u=l*this.scaleValues[3],p=new SuperMapAlgoPlot.Point(i.x+s,i.y+u),c=l*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,c,0),this.scalePoints=[];var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,c,c,180);this.addScalePoint(f),this.addScalePoint(p),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),n=[];if(n=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n)).length)return;var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n);if(0==t){var l=r*this.scaleValues[2],a=r*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(i.x+l,i.y+a),u=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/r;this.scaleValues[0]=u}else if(1==t){var p=(e.x-i.x)/r,c=(e.y-i.y)/r;this.scaleValues[2]=p,this.scaleValues[3]=c}}}}])&&PL(e.prototype,o),n&&PL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function mL(t){"@babel/helpers - typeof";return(mL="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})(t)}function vL(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r.3||p<=0)&&(p=.3),this.scaleValues[0]=p}var c=i*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],u,c,90),this.scalePoints=[];var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,c,c,180);this.addScalePoint(f),this.addScalePoint(u),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),n=[];if(n=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n)).length)return;var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n);if(0==t){var l=r*this.scaleValues[2],a=r*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(i.x+l,i.y+a),u=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/r;this.scaleValues[0]=u}else if(1==t){var p=(e.x-i.x)/r,c=(e.y-i.y)/r;this.scaleValues[2]=p,this.scaleValues[3]=c}}}}])&&vL(e.prototype,o),n&&vL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function LL(t){"@babel/helpers - typeof";return(LL="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})(t)}function wL(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r.2||a<=0)&&(a=.2),this.scaleValues[0]=a}var s=this.scaleValues[0],u=this.scaleValues[2],p=this.scaleValues[3],c=l*s,f=new SuperMapAlgoPlot.Point(i.x+l*u,i.y+l*p);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],f,c,0),this.addScalePoint(f);var h=c,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,h,h,90);this.addScalePoint(g),this.finish()}}}])&&wL(e.prototype,o),n&&wL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function VL(t){"@babel/helpers - typeof";return(VL="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})(t)}function RL(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[0]=n,this.scaleValues[1]=n,this.scaleValues[2]=.5*n}var r=this.getLinePts(e,this.scaleValues[0]),i=new SuperMapAlgoPlot.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),l=180*SuperMapAlgoPlot.PlottingUtil.radian(r.startPt,r.endPt)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.distance(r.startPt,r.endPt);0=2?this.addArrow(p[f],this.scaleValues[2]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[2]));for(var h=[],g=0;g.3||i<=0)&&(i=.3),this.scaleValues[2]=i}var l=this.scaleValues[0],a=this.scaleValues[1],s=this.scaleValues[2],u=this.scaleValues[3],p=l*SuperMapAlgoPlot.PlottingUtil.RTOD,c=r-p,f=r+p,h=this.GetArcPts(c,f,e,n);if(!(2>h.length)){this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var g=n*s,P=r-90,y=n*u,S=SuperMapAlgoPlot.PlottingUtil.linePnt(e,o,y),d=SuperMapAlgoPlot.PlottingUtil.radian(S,o)*SuperMapAlgoPlot.PlottingUtil.RTOD-30,b=SuperMapAlgoPlot.PlottingUtil.distance(S,o),m=0,v=t[0].clone(),M=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,b,b,d),A=null;if(this.subSymbols.length>0&&null!=(A=this.computeSubSymbol(this.subSymbols[0],S,g,P,0,-.5)))for(var O=0;OA[O].positionPoints))for(var _=0;_SuperMapAlgoPlot.PlottingUtil.distance(S,v)&&(v=x),m++)}this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[v,M],{lineTypeLimit:!0,surroundLineLimit:!0});var U=SuperMapAlgoPlot.PlottingUtil.radian(M,v)*SuperMapAlgoPlot.PlottingUtil.RTOD,E=SuperMapAlgoPlot.PlottingUtil.distance(v,M),T=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,.1*E,.1*E,U-15),V=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,.1*E,.1*E,U+15),R=SuperMapAlgoPlot.PlottingUtil.findPoint(M,v,.08*E,0),I=[];I.push(T),I.push(M),I.push(V),I.push(R),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,I,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var C=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,n,n,f);this.addScalePoint(C);var j=SuperMapAlgoPlot.PlottingUtil.linePnt(S,o,n*s);if(this.addScalePoint(j),this.addScalePoint(S),3==t.length){var N=t[2],D=SuperMapAlgoPlot.PlottingUtil.distance(e,N),B=a*SuperMapAlgoPlot.PlottingUtil.RTOD,Y=r-B,k=r+B,F=this.GetArcPts(Y,k,e,D);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,F);var z=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,D,D,k);this.addScalePoint(z);var G=M,q=SuperMapAlgoPlot.PlottingUtil.distance(e,N)-n,X=SuperMapAlgoPlot.PlottingUtil.circlePoint(G,q,q,d);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[G,X],{lineTypeLimit:!0,surroundLineLimit:!0});var W=SuperMapAlgoPlot.PlottingUtil.circlePoint(X,.1*q,.1*q,U-15),H=SuperMapAlgoPlot.PlottingUtil.circlePoint(X,.1*q,.1*q,U+15),K=(R=SuperMapAlgoPlot.PlottingUtil.findPoint(X,G,.08*q,0),[]);K.push(W),K.push(X),K.push(H),K.push(R),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,K,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0})}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>3)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=e,r=o[0],i=o[1],l=SuperMapAlgoPlot.PlottingUtil.distance(r,i),a=SuperMapAlgoPlot.PlottingUtil.radian(r,i);if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.radian(r,n),u=Math.abs(s-a);this.scaleValues[0]=u}else if(1==t){var p=l*this.scaleValues[3],c=SuperMapAlgoPlot.PlottingUtil.linePnt(r,i,p),f=SuperMapAlgoPlot.PlottingUtil.distance(n,c)/l;this.scaleValues[2]=f}else if(2==t){var h=SuperMapAlgoPlot.PlottingUtil.distance(n,r)/l;if(h>=1)return;this.scaleValues[3]=h}else if(3==t){var g=SuperMapAlgoPlot.PlottingUtil.radian(r,n),P=Math.abs(g-a);this.scaleValues[1]=P}}}},{key:"GetArcPts",value:function(t,e,o,n){var r,i=[],l=0;for(l=e;l>=t;l-=4)r=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,n,n,l),i.push(r);return l!=t&&(r=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,n,n,t),i.push(r)),i}}])&&BL(e.prototype,o),n&&BL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function GL(t){"@babel/helpers - typeof";return(GL="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})(t)}function qL(t,e){for(var o=0;o.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[2]=1.6*e,this.scaleValues[3]=e,this.scaleValues[4]=-.8*e,this.scaleValues[5]=-.5*e,this.scaleValues[6]=e,this.scaleValues[7]=.8*e,this.scaleValues[8]=-.5*e}var o=this.scaleValues[1],n=this.scaleValues[2],r=this.scaleValues[4],i=this.scaleValues[5],l=this.scaleValues[7],a=this.scaleValues[8],s=[];if(s=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),s=SuperMapAlgoPlot.PlottingUtil.clearSamePts(s),!(this.minEditPts>s.length)){for(var u=this.mergeDashLine(this.dashLines,[]),p=this.computeDashLine(u,s),c=0;c0&&this.computeSubSymbol(this.subSymbols[0],g,S,0),this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],P,d,0),this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[2],y,b,0),this.addScalePoint(g);var m=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,S,S,180);this.addScalePoint(m),this.addScalePoint(P);var v=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,d,d,180);this.addScalePoint(v),this.addScalePoint(y);var M=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,b,b,180);this.addScalePoint(M),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),f=SuperMapAlgoPlot.PlottingUtil.clearSamePts(f),this.minEditPts>f.length)return;this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,f);var h=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),g=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t)r=(e.x-h.x)/g,this.scaleValues[1]=r,i=(e.y-h.y)/g,this.scaleValues[2]=i;else if(1===t){r=this.scaleValues[1],i=this.scaleValues[2];var P=new SuperMapAlgoPlot.Point(h.x+g*r,h.y+g*i);n=SuperMapAlgoPlot.PlottingUtil.distance(P,e)/g,this.scaleValues[0]=n}if(2===t)a=(e.x-h.x)/g,this.scaleValues[4]=a,s=(e.y-h.y)/g,this.scaleValues[5]=s;else if(3===t){a=this.scaleValues[4],s=this.scaleValues[5];var y=new SuperMapAlgoPlot.Point(h.x+g*a,h.y+g*s);l=SuperMapAlgoPlot.PlottingUtil.distance(y,e)/g,this.scaleValues[3]=l}if(4===t)p=(e.x-h.x)/g,this.scaleValues[7]=p,c=(e.y-h.y)/g,this.scaleValues[8]=c;else if(5===t){p=this.scaleValues[7],c=this.scaleValues[8];var S=new SuperMapAlgoPlot.Point(h.x+g*p,h.y+g*c);u=SuperMapAlgoPlot.PlottingUtil.distance(S,e)/g,this.scaleValues[6]=u}}}}])&&qL(e.prototype,o),n&&qL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function JL(t){"@babel/helpers - typeof";return(JL="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})(t)}function ZL(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r.1||a<=0)&&(a=.1),this.scaleValues[0]=a}var s=i*this.scaleValues[2],u=i*this.scaleValues[3],p=new SuperMapAlgoPlot.Point(l.x+s,l.y+u),c=i*this.scaleValues[0];this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,c,0),this.scalePoints=[];var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,c,c,180);this.addScalePoint(f),this.addScalePoint(p),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=[];if(n=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n)).length)return;var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n);if(0==t){var l=r*this.scaleValues[2],a=r*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(i.x+l,i.y+a),u=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/r;this.scaleValues[0]=u}else if(1==t){var p=(e.x-i.x)/r,c=(e.y-i.y)/r;this.scaleValues[2]=p,this.scaleValues[3]=c}}}}])&&ZL(e.prototype,o),n&&ZL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ow(t){"@babel/helpers - typeof";return(ow="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})(t)}function nw(t,e){for(var o=0;o=0;--M)v.push(d[M]);var A=[];A.push(d[0]),A.push(d[1]);for(var O=this.mergeDashLine(this.dashLines,[]),_=this.computeDashLine(O,A),L=0;L<_.length;L++)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_[L]);var w=[];w.push(d[d.length-2]),w.push(d[d.length-1]);for(var x=this.mergeDashLine(this.dashLines,[]),U=this.computeDashLine(x,w),E=0;E0&&this.computeSubSymbol(this.subSymbols[0],R,N,j),this.scalePoints=[],this.addScalePoint(d[d.length-1]),this.addScalePoint(d[d.length-2]),this.addScalePoint(d[d.length-3]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n,r=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),i=o[0].clone(),l=o[1].clone(),a=e.clone();if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.distance(a,i)/r;this.scaleValues[0]=s}else if(1==t){n=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,i,l);var u=SuperMapAlgoPlot.PlottingUtil.distance(n,a)/r;this.scaleValues[1]=u;var p=SuperMapAlgoPlot.PlottingUtil.distance(n,l)/r;this.scaleValues[3]=p}else if(2==t){n=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,i,l);var c=SuperMapAlgoPlot.PlottingUtil.distance(n,a)/r;this.scaleValues[2]=c;var f=SuperMapAlgoPlot.PlottingUtil.distance(n,l)/r;this.scaleValues[4]=f}}}}])&&nw(e.prototype,o),n&&nw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function sw(t){"@babel/helpers - typeof";return(sw="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})(t)}function uw(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[0]=n,this.scaleValues[1]=n,this.scaleValues[2]=.5*n}var r=this.getLinePts(e,this.scaleValues[0]),i=new SuperMapAlgoPlot.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),l=SuperMapAlgoPlot.PlottingUtil.dirAngle(r.startPt,r.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(r.startPt,r.endPt);0=2?this.addArrow(p[f],this.scaleValues[2]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[2]));for(var h=[],g=0;g2&&(r=t.length-1);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*r],a=i*this.scaleValues[4*r+1]/1.667,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l,e);if(s.bfind){var u=s.index,p=s.pts,c=3.6*a,f=l-c,h=l+c;if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(f,e)).bfind){var g,P=s.pts,y=[];if(0==(u=s.index))y.push(e[0]);else for(g=0;g0&&this.computeSubSymbol(this.subSymbols[0],v,m,b),!(y.length<2)){var M=y[0],A=y[1],O=SuperMapAlgoPlot.PlottingUtil.radian(M,A)*SuperMapAlgoPlot.PlottingUtil.RTOD,_=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,a,a,O+90),L=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,a,a,O+270),w=[];if(w.push(_),w.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w,{lineTypeLimit:!0,surroundLineLimit:!0}),!(d.length<2)){var x=d[d.length-1],U=d[d.length-2],E=SuperMapAlgoPlot.PlottingUtil.radian(x,U)*SuperMapAlgoPlot.PlottingUtil.RTOD,T=SuperMapAlgoPlot.PlottingUtil.circlePoint(x,a,a,E+90),V=SuperMapAlgoPlot.PlottingUtil.circlePoint(x,a,a,E+270);(w=[]).push(T),w.push(V),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w,{lineTypeLimit:!0,surroundLineLimit:!0});var R=SuperMapAlgoPlot.PlottingUtil.paraLine(e,a,!1),I=SuperMapAlgoPlot.PlottingUtil.polylineDistance(R)/11,C=I;for(g=0;g<11;g++)if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(C-I,R)).bfind){var j=s.index,N=s.pts;if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(C,R)).bfind){var D=s.pts,B=s.index;if(g%2==0){var Y=[];Y.push(N);for(var k=j+1;k<=B;k++)Y.push(R[k]);Y.push(D),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,Y,{surroundLineLimit:!0,lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1})}C+=I}}this.addScalePoint(p),this.addScalePoint(_),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0))return;if(2*(o.length-1)==t||2==o.length&&0==t){var l,a=e,s=[];for(l=0;lg&&(p=l,u=h,c=g)}}if(-1==p||p>s.length-1)return;var P=0;for(l=0;li)return;var b=P/i;if(b>.8||b<.2)return;2==o.length?this.scaleValues[0]=b:this.scaleValues[2*t]=b}else if(2*o.length-1==t||2==o.length&&1==t){var m=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/r;2==o.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var v=-1;v=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var M=(e.x-o[v].x)/r,A=(e.y-o[v].y)/r;this.scaleValues[2*t]=M,this.scaleValues[2*t+1]=A}}}}])&&Pw(e.prototype,o),n&&Pw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function mw(t){"@babel/helpers - typeof";return(mw="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})(t)}function vw(t,e){for(var o=0;o.3||i<=0)&&(i=.3),this.scaleValues.push(.5*i)}var l=0;l=2==t.length?0:t.length-1;var a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),u=s*this.scaleValues[4*l],p=a*this.scaleValues[4*l+1]/1.667,c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(u,e);if(c.bfind){c.index;var f=c.pts,h=3*p,g=u-h,P=u+h;if((c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,e)).bfind){var y=c.pts;if(c.index,(c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(P,e)).bfind){var S=c.pts;c.index;var d=[];d.push(0),d.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,y)/s),d.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,S)/s),d.push(1);for(var b=this.mergeDashLine(this.dashLines,d),m=this.computeDashLine(b,e),v=0;v0&&this.computeSubSymbol(this.subSymbols[0],O,A,M),!(r.length<2)){var _=r[0],L=r[1],w=SuperMapAlgoPlot.PlottingUtil.dirAngle(_,L)*SuperMapAlgoPlot.PlottingUtil.RTOD,x=SuperMapAlgoPlot.PlottingUtil.circlePoint(_,p,p,w+90),U=SuperMapAlgoPlot.PlottingUtil.circlePoint(_,p,p,w+270),E=[];if(E.push(x),E.push(U),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,E,{lineTypeLimit:!0,surroundLineLimit:!0}),!(r.length<2)){var T=r[r.length-1],V=r[r.length-2],R=SuperMapAlgoPlot.PlottingUtil.dirAngle(T,V)*SuperMapAlgoPlot.PlottingUtil.RTOD,I=SuperMapAlgoPlot.PlottingUtil.circlePoint(T,p,p,R+90),C=SuperMapAlgoPlot.PlottingUtil.circlePoint(T,p,p,R+270);(E=[]).push(I),E.push(C),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,E,{lineTypeLimit:!0,surroundLineLimit:!0}),this.addScalePoint(f),this.addScalePoint(x),this.finish()}}}}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0))return;if(2*(o.length-1)==t||2==o.length&&0==t){var l,a=e,s=[];for(l=0;lg&&(p=l,u=h,c=g)}}if(-1==p||p>s.length-1)return;var P=0;for(l=0;li)return;var b=P/i;if(b>.8||b<.2)return;2==o.length?this.scaleValues[0]=b:this.scaleValues[2*t]=b}else if(2*o.length-1==t||2==o.length&&1==t){var m=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/r;2==o.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var v=-1;v=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var M=(e.x-o[v].x)/r,A=(e.y-o[v].y)/r;this.scaleValues[2*t]=M,this.scaleValues[2*t+1]=A}}}}])&&vw(e.prototype,o),n&&vw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Lw(t){"@babel/helpers - typeof";return(Lw="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})(t)}function ww(t,e){for(var o=0;o2&&(r=t.length-1);var i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e)*this.scaleValues[4*r],a=i*this.scaleValues[4*r+1]/1.667,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(l,e);if(s.bfind){var u=s.index,p=s.pts,c=3*a,f=l-c,h=l+c;if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(f,e)).bfind){var g,P=s.pts,y=[];if(0==(u=s.index))y.push(e[0]);else for(g=0;g0&&this.computeSubSymbol(this.subSymbols[0],v,m,b),!(y.length<2)){var M=y[0],A=y[1],O=SuperMapAlgoPlot.PlottingUtil.radian(M,A)*SuperMapAlgoPlot.PlottingUtil.RTOD,_=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,a,a,O+90),L=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,a,a,O+270),w=[];if(w.push(_),w.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w,{lineTypeLimit:!0,surroundLineLimit:!0}),!(d.length<2)){var x=d[d.length-1],U=d[d.length-2],E=SuperMapAlgoPlot.PlottingUtil.radian(x,U)*SuperMapAlgoPlot.PlottingUtil.RTOD,T=SuperMapAlgoPlot.PlottingUtil.circlePoint(x,a,a,E+90),V=SuperMapAlgoPlot.PlottingUtil.circlePoint(x,a,a,E+270);(w=[]).push(T),w.push(V),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w,{lineTypeLimit:!0,surroundLineLimit:!0});var R=SuperMapAlgoPlot.PlottingUtil.paraLine(e,a,!1),I=SuperMapAlgoPlot.PlottingUtil.polylineDistance(R)/11,C=I;for(g=0;g<11;g++)if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(C-I,R)).bfind){var j=s.index,N=s.pts;if((s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(C,R)).bfind){var D=s.pts,B=s.index;if(g%2==0){var Y=[];Y.push(N);for(var k=j+1;k<=B;k++)Y.push(R[k]);Y.push(D),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,Y,{surroundLineLimit:!0,lineColorLimit:!0,strokeColor:"#000000",strokeOpacity:1,color:"#000000",opacity:1})}C+=I}}var F;F=SuperMapAlgoPlot.PlottingUtil.paraLine(e,3.5*a,!1),SuperMapAlgoPlot.PlottingUtil.clearSamePts(F);for(var z=this.mergeDashLine(this.dashLines,[]),G=this.computeDashLine(z,F),q=0;q2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0))return;if(2*(o.length-1)==t||2==o.length&&0==t){var l,a=e,s=[];for(l=0;lg&&(p=l,u=h,c=g)}}if(-1==p||p>s.length-1)return;var P=0;for(l=0;li)return;var b=P/i;if(b>.8||b<.2)return;2==o.length?this.scaleValues[0]=b:this.scaleValues[2*t]=b}else if(2*o.length-1==t||2==o.length&&1==t){var m=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/r;2==o.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var v=-1;v=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var M=(e.x-o[v].x)/r,A=(e.y-o[v].y)/r;this.scaleValues[2*t]=M,this.scaleValues[2*t+1]=A}}}}])&&ww(e.prototype,o),n&&ww(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Vw(t){"@babel/helpers - typeof";return(Vw="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})(t)}function Rw(t,e){for(var o=0;o.3||r<=0)&&(r=.3),this.scaleValues.push(.5*r)}var i=0;t.length>2&&(i=t.length-1);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),s=a*this.scaleValues[4*i],u=l*this.scaleValues[4*i+1]/1.667,p=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,e);if(p.bfind){var c=p.index,f=p.pts,h=3.6*u,g=s-h,P=s+h;if((p=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,e)).bfind){var y,S=p.pts,d=[];if(0==(c=p.index))d.push(e[0]);else for(y=0;y0){var k=this.computeSubSymbol(this.subSymbols[0],Y,B,D);if(null!=k)for(var F=0;F2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0))return;if(2*(o.length-1)==t||2==o.length&&0==t){var l,a=e,s=[];for(l=0;lg&&(p=l,u=h,c=g)}}if(-1==p||p>s.length-1)return;var P=0;for(l=0;li)return;var b=P/i;if(b>.9||b<.1)return;2==o.length?this.scaleValues[0]=b:this.scaleValues[2*t]=b}else if(2*o.length-1==t||2==o.length&&1==t){var m=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/r;m>=.3&&(m=.3),2==o.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var v=-1;v=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var M=(e.x-o[v].x)/r,A=(e.y-o[v].y)/r;this.scaleValues[2*t]=M,this.scaleValues[2*t+1]=A}}}}])&&Rw(e.prototype,o),n&&Rw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Dw(t){"@babel/helpers - typeof";return(Dw="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})(t)}function Bw(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r.3||a<=0)&&(a=.3),this.scaleValues[0]=.4*a}var s=i*this.scaleValues[0],u=i*this.scaleValues[2],p=i*this.scaleValues[3],c=new SuperMapAlgoPlot.Point(l.x+u,l.y+p),f=.6*s,h=new SuperMapAlgoPlot.Point(c.x+s,c.y),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,f,f,0),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,f,f,180),y=[];y.push(g),y.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0});var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,f,f,90),d=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,f,f,270);(y=[]).push(S),y.push(d),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0});var b=new SuperMapAlgoPlot.Point(c.x-s,c.y),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,.5*s,.5*s,270),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,s,s,240),M=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,s,s,90),A=SuperMapAlgoPlot.PlottingUtil.circlePoint(b,s,s,300);(y=[]).push(m),y.push(v),y.push(M),y.push(A),y.push(m),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var O=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,0);this.addScalePoint(O),this.addScalePoint(c),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),n=[];if(n=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n)).length)return;var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n);if(0==t){var l=r*this.scaleValues[2],a=r*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(i.x+l,i.y+a),u=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/r;this.scaleValues[0]=u}else if(1==t){var p=(e.x-i.x)/r,c=(e.y-i.y)/r;this.scaleValues[2]=p,this.scaleValues[3]=c}}}}])&&Bw(e.prototype,o),n&&Bw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Gw(t){"@babel/helpers - typeof";return(Gw="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})(t)}function qw(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r.3||a<=0)&&(a=.3),this.scaleValues[0]=.2*a}var s=i*this.scaleValues[0],u=i*this.scaleValues[2],p=i*this.scaleValues[3],c=new SuperMapAlgoPlot.Point(l.x+u,l.y+p),f=[];f.push(c),f.push(new SuperMapAlgoPlot.Point(c.x+s,c.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,f,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});for(var h=18*s,g=new SuperMapAlgoPlot.Point(c.x+h,c.y),P=[],y=135;y<180;y+=3)P.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(g,h,h,y));P.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(g,h,h,180)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,0);this.addScalePoint(S),this.addScalePoint(c),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),n=[];if(n=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n)).length)return;var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n);if(0==t){var l=r*this.scaleValues[2],a=r*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(i.x+l,i.y+a),u=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/r;this.scaleValues[0]=u}else if(1==t){var p=(e.x-i.x)/r,c=(e.y-i.y)/r;this.scaleValues[2]=p,this.scaleValues[3]=c}}}}])&&qw(e.prototype,o),n&&qw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Jw(t){"@babel/helpers - typeof";return(Jw="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})(t)}function Zw(t,e){for(var o=0;o2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0))return;if(2*(o.length-1)==t||2==o.length&&0==t){var l,a=e,s=[];for(l=0;lg&&(p=l,u=h,c=g)}}if(-1==p||p>s.length-1)return;var P=0;for(l=0;li)return;var b=P/i;if(b>.8||b<.2)return;2==o.length?this.scaleValues[0]=b:this.scaleValues[2*t]=b}else if(2*o.length-1==t||2==o.length&&1==t){var m=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/r;2==o.length?this.scaleValues[1]=m:this.scaleValues[2*t-1]=m}else{var v=-1;v=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var M=(e.x-o[v].x)/r,A=(e.y-o[v].y)/r;this.scaleValues[2*t]=M,this.scaleValues[2*t+1]=A}}}}])&&Zw(e.prototype,o),n&&Zw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ox(t){"@babel/helpers - typeof";return(ox="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})(t)}function nx(t,e){for(var o=0;othis.minEditPts){for(var D,B,Y,k,F,z,G,q,X,W=1;Wo.length-1)return;for(var u=0,p=0;pn)return;var f=u/n,h=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1])/n;f<.4*h&&(f=.4*h),f>1-.4*h&&(f=1-.4*h),this.scaleValues[0]=f}}}])&&nx(e.prototype,o),n&&nx(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function sx(t){"@babel/helpers - typeof";return(sx="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})(t)}function ux(t,e){for(var o=0;oo.length)return;var n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==n)return;var r,i,l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=e;if(0==t)r=(a.x-l.x)/n,this.scaleValues[0]=r,i=(a.y-l.y)/n,this.scaleValues[1]=i;else if(1==t){r=this.scaleValues[0],i=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(l.x+r*n,l.y+i*n),u=SuperMapAlgoPlot.PlottingUtil.distance(a,s)/n;this.scaleValues[2]=u}}}}])&&ux(e.prototype,o),n&&ux(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function gx(t){"@babel/helpers - typeof";return(gx="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})(t)}function Px(t,e){for(var o=0;oo.length)return;var n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==n)return;var r,i,l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=e;if(0==t)r=(a.x-l.x)/n,this.scaleValues[0]=r,i=(a.y-l.y)/n,this.scaleValues[1]=i;else if(1==t){r=this.scaleValues[0],i=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(l.x+r*n,l.y+i*n),u=SuperMapAlgoPlot.PlottingUtil.distance(a,s)/n;this.scaleValues[2]=u}}}}])&&Px(e.prototype,o),n&&Px(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function mx(t){"@babel/helpers - typeof";return(mx="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})(t)}function vx(t,e){for(var o=0;oo.length)return;var n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==n)return;var r,i,l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=e;if(0==t)r=(a.x-l.x)/n,this.scaleValues[0]=r,i=(a.y-l.y)/n,this.scaleValues[1]=i;else if(1==t){r=this.scaleValues[0],i=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(l.x+r*n,l.y+i*n),u=SuperMapAlgoPlot.PlottingUtil.distance(a,s)/n;this.scaleValues[2]=u}}}}])&&vx(e.prototype,o),n&&vx(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Lx(t){"@babel/helpers - typeof";return(Lx="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})(t)}function wx(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var o={fillLimit:!0,fill:!1,surroundLineFlag:!1},n=this.mergeDashLine(this.dashLines,[]),r=this.computeDashLine(n,e),i=0;i.2||s<=0)&&(s=.2),this.scaleValues[0]=s}var u=this.scaleValues[0],p=this.scaleValues[2],c=this.scaleValues[3],f=a*u,h=new SuperMapAlgoPlot.Point(l.x+a*p,l.y+a*c);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],h,f,0),this.addScalePoint(h);var g=f,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,g,g,90);this.addScalePoint(P),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r,i,l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t)r=(e.x-l.x)/a,this.scaleValues[2]=r,i=(e.y-l.y)/a,this.scaleValues[3]=i;else if(1===t){r=this.scaleValues[2],i=this.scaleValues[3];var s=new SuperMapAlgoPlot.Point(l.x+a*r,l.y+a*i),u=SuperMapAlgoPlot.PlottingUtil.distance(s,e)/a;this.scaleValues[0]=u}}}}])&&wx(e.prototype,o),n&&wx(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Vx(t){"@babel/helpers - typeof";return(Vx="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})(t)}function Rx(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r.3||a<=0)&&(a=.3),this.scaleValues[0]=.5*a}var s=i*this.scaleValues[0],u=i*this.scaleValues[2],p=i*this.scaleValues[3],c=[];c.push(new SuperMapAlgoPlot.Point(l.x+u,l.y+p)),c.push(new SuperMapAlgoPlot.Point(l.x+u+s,l.y+p)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,c,{fill:!1,surroundLineLimit:!0,lineTypeLimit:!0}),this.scalePoints=[],this.addScalePoint(new SuperMapAlgoPlot.Point(l.x+u+s,l.y+p)),this.addScalePoint(new SuperMapAlgoPlot.Point(l.x+u,l.y+p)),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=[];if(n=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n)).length)return;var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n);if(0==t){var l=r*this.scaleValues[2],a=r*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(i.x+l,i.y+a),u=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/r;this.scaleValues[0]=u}else if(1==t){var p=(e.x-i.x)/r,c=(e.y-i.y)/r;this.scaleValues[2]=p,this.scaleValues[3]=c}}}}])&&Rx(e.prototype,o),n&&Rx(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Dx(t){"@babel/helpers - typeof";return(Dx="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})(t)}function Bx(t,e){for(var o=0;oo.x&&(I=!1);var C,j=(R=.1*n)+(V=.12*n/2);T=1==I?(C=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(j,o,e)).pntRight:(C=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(j,o,e)).pntLeft;var N,D,B,Y,k,F,z,G,q=[];q.push(T),q.push(new SuperMapAlgoPlot.Point(T.x+V,T.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,q,{lineTypeLimit:!0,surroundLineLimit:!0}),1==I?(N=(C=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.85*R,o,e)).pntRight,Y=C.pntLeft,D=(C=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(R,N,Y)).pntRight,B=C.pntLeft):(N=(C=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.85*R,o,e)).pntLeft,Y=C.pntRight,D=(C=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(R,N,Y)).pntLeft,B=C.pntRight),(q=[]).push(N),q.push(D),q.push(B),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,q,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0}),C=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*V,D,B),G=1==I?C.pntRight:C.pntLeft,C=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*V,B,D),F=1==I?C.pntLeft:C.pntRight;var X=SuperMapAlgoPlot.PlottingUtil.intersectLines(N,F,B,D);X.isIntersectLines&&(k=X.intersectPoint,(X=SuperMapAlgoPlot.PlottingUtil.intersectLines(N,G,B,D)).isIntersectLines&&(z=X.intersectPoint,(q=[]).push(k),q.push(F),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,q,{lineTypeLimit:!0,surroundLineLimit:!0}),(q=[]).push(z),q.push(G),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,q,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(d[0]),this.addScalePoint(d[1]),this.addScalePoint(d[2]),this.finish()))}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n,r=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),i=o[0].clone(),l=o[1].clone(),a=e.clone();if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.distance(a,i)/r;this.scaleValues[0]=s}else if(1==t){n=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,i,l);var u=SuperMapAlgoPlot.PlottingUtil.distance(n,a)/r;this.scaleValues[1]=u;var p=SuperMapAlgoPlot.PlottingUtil.distance(n,l)/r;this.scaleValues[3]=p}else if(2==t){n=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,i,l);var c=SuperMapAlgoPlot.PlottingUtil.distance(n,a)/r;this.scaleValues[2]=c;var f=SuperMapAlgoPlot.PlottingUtil.distance(n,l)/r;this.scaleValues[4]=f}}}}])&&Bx(e.prototype,o),n&&Bx(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Gx(t){"@babel/helpers - typeof";return(Gx="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})(t)}function qx(t,e){for(var o=0;o=15;e-=5)n.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,e));for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),n=[],e=165;e>=105;e-=5)n.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,e));for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),n=[],e=255;e>=195;e-=5)n.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,e));for(this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n),n=[],e=345;e>=285;e-=5)n.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,e));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n);var r,i,l,a,s,u=.2*o,p=new SuperMapAlgoPlot.Point(t[0].x-u,t[0].y),c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,t[0],p);r=c.pntRight,i=c.pntLeft,l=(c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*u,r,i)).pntLeft;var f=new SuperMapAlgoPlot.Point(r.x+2*u,r.y);a=(c=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,r,f)).pntRight,s=c.pntLeft,(n=[]).push(l),n.push(i),n.push(r),n.push(s),n.push(a),n.push(r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0}),this.finish()}}}])&&Zx(e.prototype,o),n&&Zx(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function oU(t){"@babel/helpers - typeof";return(oU="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})(t)}function nU(t,e){for(var o=0;o=0;--M)v.push(d[M]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v);var A=[],O=.06*n,_=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O,o,e),L=_.pntRight,w=_.pntLeft;A.push(L),A.push(w),O=.15*n;var x=new SuperMapAlgoPlot.Point(O,0),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,x,y);A.push(U),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,A,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,fillLimit:!0,fill:!0,fillColorLimit:!0,fillColor:"#0000FF",fillOpacity:1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(d[d.length-1]),this.addScalePoint(d[d.length-2]),this.addScalePoint(d[d.length-3]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n,r=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),i=o[0].clone(),l=o[1].clone(),a=e.clone();if(0==t){var s=SuperMapAlgoPlot.PlottingUtil.distance(a,i)/r;this.scaleValues[0]=s}else if(1==t){n=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,i,l);var u=SuperMapAlgoPlot.PlottingUtil.distance(n,a)/r;this.scaleValues[1]=u;var p=SuperMapAlgoPlot.PlottingUtil.distance(n,l)/r;this.scaleValues[3]=p}else if(2==t){n=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,i,l);var c=SuperMapAlgoPlot.PlottingUtil.distance(n,a)/r;this.scaleValues[2]=c;var f=SuperMapAlgoPlot.PlottingUtil.distance(n,l)/r;this.scaleValues[4]=f}}}}])&&nU(e.prototype,o),n&&nU(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function sU(t){"@babel/helpers - typeof";return(sU="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})(t)}function uU(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[1]=n}var r=this.scaleValues[0],i=this.scaleValues[1],l=this.scaleValues[2],a=o*r,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(s.bfind){var u=s.pts,p=u,c=i*o,f=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a-.5*c,e),h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a+.5*c,e),g=f.pts,P=h.pts,y=f.index,S=h.index;l+=180*SuperMapAlgoPlot.PlottingUtil.dirAngle(g,P)/Math.PI;var d=new SuperMapAlgoPlot.Point(c,-.5*c),b=new SuperMapAlgoPlot.Point(c,.5*c),m=new SuperMapAlgoPlot.Point(-c,.5*c),v=new SuperMapAlgoPlot.Point(-c,-.5*c),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,d,l),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,b,l),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,m,l),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,v,l),L=[];L.push(M),L.push(A),L.push(O),L.push(_),L.push(M),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,L,{lineTypeLimit:!0,surroundLineLimit:!0});var w=new SuperMapAlgoPlot.Point(.5*c,-.2*c),x=new SuperMapAlgoPlot.Point(.7*c,.2*c),U=new SuperMapAlgoPlot.Point(.3*c,.2*c),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,w,l),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,U,l),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,x,l),R=[];R.push(E),R.push(T),R.push(V),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,R,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});var I=new SuperMapAlgoPlot.Point(c,0),C=new SuperMapAlgoPlot.Point(2.2*c,0),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,I,l),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,C,l);(R=[]).push(j),R.push(N),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,R,{lineTypeLimit:!0,surroundLineLimit:!0});var D=new SuperMapAlgoPlot.Point(2*c,.15*c),B=new SuperMapAlgoPlot.Point(2*c,-.15*c),Y=new SuperMapAlgoPlot.Point(2.6*c,0),k=new SuperMapAlgoPlot.Point(2.2*c,0),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,D,l),z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,B,l),G=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,Y,l),q=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p,k,l);(R=[]).push(F),R.push(G),R.push(z),R.push(q),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,R,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});var X,W=[],H=[];for(X=0;X<=y;X++)W.push(e[X]);for(W.push(g),H.push(P),X=S+1;X1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengthh&&(s=p,u=h)}}if(-1==s)return SuperMapAlgoPlot.PlottingUtil.distance(a,n[0])>SuperMapAlgoPlot.PlottingUtil.distance(a,n[n.length-1])?void(s=n.length-1):void(s=0);if(r=0,0===s)r=SuperMapAlgoPlot.PlottingUtil.distance(n[0],f);else for(var g=0;gl)return;i=r/l,this.scaleValues[0]=i}else if(1==t){r=this.scaleValues[0]*l;var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,n);if(!P.bfind)return;var y=P.pts;i=.5*SuperMapAlgoPlot.PlottingUtil.distance(y,e)/l,this.scaleValues[1]=i;for(var S,d,b=y,m=1.2*i,v=[],M=[],A=0;A=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=[];if(n=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n)).length)return;var r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n);if(0===t){var l=r*this.scaleValues[2],a=r*this.scaleValues[3],s=new SuperMapAlgoPlot.Point(i.x+l,i.y+a),u=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/r;this.scaleValues[0]=u}else if(1===t){var p=(e.x-i.x)/r,c=(e.y-i.y)/r;this.scaleValues[2]=p,this.scaleValues[3]=c}}}}])&&PU(e.prototype,o),n&&PU(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function mU(t){"@babel/helpers - typeof";return(mU="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})(t)}function vU(t,e){for(var o=0;o=h.length)){var y=h[0].clone(),S=h[0].clone();for(g=0;gh[g].x&&(y=h[g].clone()),S.x=y.x&&((d=[]).push(y),d.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{lineTypeLimit:!0,surroundLineLimit:!0}));var m=new SuperMapAlgoPlot.Point(c.x+p/2,S.y);m.x<=S.x&&m.x>=y.x&&((d=[]).push(S),d.push(m),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{lineTypeLimit:!0,surroundLineLimit:!0})),this.scalePoints=[];var v=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,p/2,p/2,90);if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(t,c))return this.addScalePoint(c,0),this.addScalePoint(v,1),c.xo.length)return;if(0===SuperMapAlgoPlot.PlottingUtil.getOutRectangleDis(o))return;var n,r,i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=e;if(0==t&&(n=(a.x-l.x)/i,this.scaleValues[0]=n,r=(a.y-l.y)/i,this.scaleValues[1]=r),1==t){n=this.scaleValues[0],r=this.scaleValues[1];var s=new SuperMapAlgoPlot.Point(l.x+n*i,l.y+r*i),u=2*SuperMapAlgoPlot.PlottingUtil.distance(a,s)/i;this.scaleValues[2]=u}}}}])&&vU(e.prototype,o),n&&vU(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function LU(t){"@babel/helpers - typeof";return(LU="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})(t)}function wU(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=new SuperMapAlgoPlot.Point(n.x,0);if(!1===this.polylineConnectLocationPoint){for(var i=0,l=-1,a=0;a0;S--)p.push(P[S]);var d=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,h);if(-1===d.index)return;(P=[]).push(d.pt);for(var b=d.index+1;b0&&this.computeSubSymbolC(this.subSymbols[0],r,u,0)}else{var m=t[0],v=t[1],M=SuperMapAlgoPlot.PlottingUtil.distance(m,v),A=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.2*M,[m,v]);if(-1===A.index)return;var O=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.4*M,[m,v]);if(-1===O.index)return;var _=[];_.push(t[0]),_.push(A.pts),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,_),(_=[]).push(O.pts);for(var L=1;L0&&this.computeSubSymbolC(this.subSymbols[0],w,.1*M,0)}this.finish()}}},{key:"computeSubSymbolC",value:function(t,e,o,n,r,i){if(null==t.symbolData||null==t.symbolData.innerCells)return null;void 0===r&&(r=0),void 0===i&&(i=0);for(var l=SuperMapAlgoPlot.AnalysisSymbol.analysisSymbolCells(t.symbolData,!0),a=0,s=0,u=0,p=0,c=0;cf[h].x&&(u=f[h].x),p>f[h].y&&(p=f[h].y)}var P=new SuperMapAlgoPlot.Point(a,s),y=new SuperMapAlgoPlot.Point(u,p),S=(P.y-y.y)/o,d=(P.x-y.x)/o,b=d>S?d:S,m=new SuperMapAlgoPlot.Point(.5*(P.x+y.x),.5*(P.y+y.y));m.x+=r*(P.x-y.x),m.y+=i*(P.y-y.y);for(var v=0,M=l.length;v=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=[];if(e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),0==this.dashLines.length)this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);else for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r0&&this.computeSubSymbol(this.subSymbols[0],y,d,b);var m=l*p,v=c;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],S,m,v),this.addScalePoint(y);var M=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,d,d,b);this.addScalePoint(M),this.addScalePoint(S);var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,m,m,v);this.addScalePoint(A),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengththis.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 n=[];n=3>=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r,i,l,a,s=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n),u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),p=e;if(0==t)r=(p.x-s.x)/u,this.scaleValues[6]=r,i=(p.y-s.y)/u,this.scaleValues[7]=i;else if(1==t){r=this.scaleValues[6],i=this.scaleValues[7];var c=new SuperMapAlgoPlot.Point(s.x+u*r,s.y+u*i),f=SuperMapAlgoPlot.PlottingUtil.distance(c,p)/u;this.scaleValues[0]=f;var h=180*SuperMapAlgoPlot.PlottingUtil.radian(c,p)/Math.PI;this.scaleValues[1]=h,this.scaleValues[2]=0<=h&&h<90?1:90<=h&&h<180?2:180<=h&&h<270?3:4}else if(2==t)l=(p.x-s.x)/u,this.scaleValues[8]=l,a=(p.y-s.y)/u,this.scaleValues[9]=a;else if(3==t){l=this.scaleValues[8],a=this.scaleValues[9];var g=new SuperMapAlgoPlot.Point(s.x+u*l,s.y+u*a),P=SuperMapAlgoPlot.PlottingUtil.distance(g,p)/u;this.scaleValues[3]=P;var y=180*SuperMapAlgoPlot.PlottingUtil.radian(g,p)/Math.PI;this.scaleValues[4]=y,this.scaleValues[5]=0<=y&&y<90?1:90<=y&&y<180?2:180<=y&&y<270?3:4}}}}])&&RU(e.prototype,o),n&&RU(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function DU(t){"@babel/helpers - typeof";return(DU="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})(t)}function BU(t,e){for(var o=0;ot[r].x&&(o=t[r].x),n0&&(h=!0),g-=f}if(""==!this.subText.toString()){var _=c,L=(n-o)*this.scaleValues[0],w=new SuperMapAlgoPlot.Point(_.x+L,_.y),x=new SuperMapAlgoPlot.Point((_.x+w.x)/2,(_.y+w.y)/2),U=this.subText;this.addText(U,x,L,0)}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),o=0;ot[n+1].y&&(e=t[n],t[n]=t[n+1],t[n+1]=e):t[n].x>t[n+1].x&&(e=t[n],t[n]=t[n+1],t[n+1]=e);return t}}])&&BU(e.prototype,o),n&&BU(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function GU(t){"@babel/helpers - typeof";return(GU="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})(t)}function qU(t,e){for(var o=0;ot[r].x&&(o=t[r].x),n0&&(u=!0),p-=s}if(""==!this.subText.toString()){var v=a,M=(n-o)*this.scaleValues[0],A=new SuperMapAlgoPlot.Point(v.x+M,v.y),O=new SuperMapAlgoPlot.Point((v.x+A.x)/2,(v.y+A.y)/2),_=this.subText;this.addText(_,O,M,0)}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),o=0;ot[n+1].y&&(e=t[n],t[n]=t[n+1],t[n+1]=e):t[n].x>t[n+1].x&&(e=t[n],t[n]=t[n+1],t[n+1]=e);return t}}])&&qU(e.prototype,o),n&&qU(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function JU(t){"@babel/helpers - typeof";return(JU="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})(t)}function ZU(t,e){for(var o=0;ot[r].x&&(o=t[r].x),n0&&(u=!0),p-=s}if(""==!this.subText.toString()){var v=a,M=(n-o)*this.scaleValues[0],A=new SuperMapAlgoPlot.Point(v.x+M,v.y),O=new SuperMapAlgoPlot.Point((v.x+A.x)/2,(v.y+A.y)/2),_=this.subText;this.addText(_,O,M,0)}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),o=0;ot[n+1].y&&(e=t[n],t[n]=t[n+1],t[n+1]=e):t[n].x>t[n+1].x&&(e=t[n],t[n]=t[n+1],t[n+1]=e);return t}}])&&ZU(e.prototype,o),n&&ZU(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function oE(t){"@babel/helpers - typeof";return(oE="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})(t)}function nE(t,e){for(var o=0;ot[r].x&&(o=t[r].x),n0&&(u=!0),p-=s}if(""==!this.subText.toString()){var v=a,M=(n-o)*this.scaleValues[0],A=new SuperMapAlgoPlot.Point(v.x+M,v.y),O=new SuperMapAlgoPlot.Point((v.x+A.x)/2,(v.y+A.y)/2),_=this.subText;this.addText(_,O,M,0)}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),o=0;ot[n+1].y&&(e=t[n],t[n]=t[n+1],t[n+1]=e):t[n].x>t[n+1].x&&(e=t[n],t[n]=t[n+1],t[n+1]=e);return t}}])&&nE(e.prototype,o),n&&nE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function sE(t){"@babel/helpers - typeof";return(sE="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})(t)}function uE(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[1]=n}var r=this.scaleValues[0],i=this.scaleValues[1],l=this.scaleValues[2],a=o*r,s=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(-1!==s.index){var u=o*i,p=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a-.5*u,e),c=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a+.5*u,e),f=p.pts,h=c.pts;p.index,c.index;l+=SuperMapAlgoPlot.PlottingUtil.dirAngle(f,h)*SuperMapAlgoPlot.PlottingUtil.RTOD;var g=f,P=h,y=new SuperMapAlgoPlot.Point((g.x+P.x)/2,(g.y+P.y)/2);s.x=y.x,s.y=y.y;var S=u,d=new SuperMapAlgoPlot.Point(.5*S,S),b=new SuperMapAlgoPlot.Point(.5*S,-S),m=new SuperMapAlgoPlot.Point(-.5*S,-S),v=new SuperMapAlgoPlot.Point(-.5*S,S),M=[],A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(y,d,l),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(y,b,l),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(y,m,l),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(y,v,l);M.push(A),M.push(O),M.push(_),M.push(L),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,{surroundLineLimit:!0,lineTypeLimit:!0});var w=new SuperMapAlgoPlot.Point(0,-2*S),x=new SuperMapAlgoPlot.Point(.15*S,-1.6*S),U=new SuperMapAlgoPlot.Point(-.15*S,-1.6*S),E=new SuperMapAlgoPlot.Point(0,-1.7*S),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(y,w,l),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(y,x,l),R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(y,U,l),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(y,E,l),C=[];C.push(V),C.push(T),C.push(R),C.push(I);var j={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,C,j);var N=new SuperMapAlgoPlot.Point(0,-S),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(y,N,l);(C=[]).push(D),C.push(T),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,C,{surroundLineLimit:!0,lineTypeLimit:!0}),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],y,1.5*S,l+90);var B=[];B.push(0),B.push(this.scaleValues[0]-.5*this.scaleValues[1]),B.push(this.scaleValues[0]+.5*this.scaleValues[1]),B.push(1);for(var Y=this.mergeDashLine(this.dashLines,B),k=this.computeDashLine(Y,e),F=0;F=270+W;K-=5)H.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(X,q,q,K));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,H),d=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(z,e[e.length-2],e[e.length-1]);for(var J=new SuperMapAlgoPlot.Point((e[e.length-1].x+d.pntRight.x)/2,(e[e.length-1].y+d.pntRight.y)/2),Z=SuperMapAlgoPlot.PlottingUtil.radian(e[e.length-1],d.pntRight)*SuperMapAlgoPlot.PlottingUtil.RTOD,Q=[],$=180+Z;$>=90+Z;$-=5)Q.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(J,q,q,$));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,Q),this.scalePoints=[],this.addScalePoint(y,0);var tt=new SuperMapAlgoPlot.Point(0,-2*u),et=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(y,tt,l);this.addScalePoint(et,1),this.finish()}}}},{key:"GetSymbolPt",value:function(){var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length(h*=.5)){u=SuperMapAlgoPlot.PlottingUtil.linePnt(l.pts,e[l.index],h),a.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a),p=SuperMapAlgoPlot.PlottingUtil.linePnt(l.pts,e[l.index+1],h),g.push(p);for(var P=e.length,y=l.index+1;y=0;d--)if(c=new SuperMapAlgoPlot.Point(a[d].x,a[d].y),f=new SuperMapAlgoPlot.Point(l.pts.x,l.pts.y),SuperMapAlgoPlot.PlottingUtil.distance(c,f)>h){S=d;break}if(-1===S)return;a.splice(S+1,a.length-1-S),u=SuperMapAlgoPlot.PlottingUtil.linePnt(l.pts,e[S],h),a.push(u);for(var b=-1,m=l.index;mh){b=m;break}if(-1===b)return;p=SuperMapAlgoPlot.PlottingUtil.linePnt(l.pts,e[b],h),g.push(p);for(var v=b+1;vy&&(p=h,f=P,c=y)}}if(-1===p||p>s.length-1)return;i=0;for(var S=0;S=v&&(l=v),l<=M&&(l=M),this.scaleValues[0]=l}else if(1===t){r=new SuperMapAlgoPlot.Point(e.x,e.y);var A=this.scaleValues[0],O=(this.scaleValues[1],a*A),_=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,O);if(_.index<0)return;l=(i=SuperMapAlgoPlot.PlottingUtil.distance(r,_.pt))/a;var L=this.scaleValues[0]<.4?this.scaleValues[0]:1-this.scaleValues[0];l>=L&&(l=L),this.scaleValues[1]=.5*l;var w=a*this.scaleValues[1],x=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,O-.5*w),U=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,O+.5*w),E=SuperMapAlgoPlot.PlottingUtil.dirAngle(_.pt,r)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[2]=E-270-SuperMapAlgoPlot.PlottingUtil.dirAngle(x.pt,U.pt)*SuperMapAlgoPlot.PlottingUtil.RTOD}}}}])&&uE(e.prototype,o),n&&uE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function gE(t){"@babel/helpers - typeof";return(gE="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})(t)}function PE(t,e){for(var o=0;o.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[3]=.5*e}SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=n*this.scaleValues[0],i=(this.scaleValues[1],this.scaleValues[2],this.getLinePts(o,this.scaleValues[0]/2,this.scaleValues[1])),l=this.getLinePts(o,this.scaleValues[0]/2,this.scaleValues[2]),a=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),s=180*SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI;this.createSubSymbol1(a,r,s);var u=new SuperMapAlgoPlot.Point((l.startPt.x+l.endPt.x)/2,(l.startPt.y+l.endPt.y)/2),p=180*SuperMapAlgoPlot.PlottingUtil.radian(l.startPt,l.endPt)/Math.PI;this.createSubSymbol2(u,r,p);var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,.5*r,.5*r,s+90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,.5*r,.5*r,p+90);this.scalePoints=[],this.addScalePoint(a,0),this.addScalePoint(u,0),this.addScalePoint(c,0),this.addScalePoint(f,0);var h=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[3],g=SuperMapAlgoPlot.PlottingUtil.linePnt(o[o.length-1],o[o.length-2],h);this.addScalePoint(g);var P=[];P.push(0),this.scaleValues[1]=2?this.addArrow(S[d],this.scaleValues[3]):this.addArrow([o[o.length-2],o[o.length-1]],this.scaleValues[3])),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S[d]);this.finish()}}},{key:"createSubSymbol1",value:function(t,e,o){var n=this.getSubSymbolPts(e);this.createSubSymbol(t,e,o,n)}},{key:"createSubSymbol2",value:function(t,e,o){var n=this.getSubSymbolPts(e);this.createSubSymbol(t,e,o,n)}},{key:"createSubSymbol",value:function(t,e,o,n){for(var r=[],i=0;i1-f/2-this.scaleValues[3]&&(c=1-f/2-this.scaleValues[3]),this.scaleValues[1]=c}else if(1==t){var c,f;for(i=0,l=-1,a=null,s=0;s1-f/2-this.scaleValues[3]&&(c=1-f/2-this.scaleValues[3]),this.scaleValues[2]=c}else if(2==t){var h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r*this.scaleValues[1],n),g=2*SuperMapAlgoPlot.PlottingUtil.distance(h.pts,e)/r;this.scaleValues[1]1-g/2-this.scaleValues[3]?(this.scaleValues[1]1-g/2-this.scaleValues[3]?(this.scaleValues[2].3||n<=0)&&(n=.3);var r=this.getSubSymbolScaleValue(o);(r>.3||r<=0)&&(r=.3),this.scaleValues[0]=.8*r,this.scaleValues[3]=.5*n}var i=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,o*this.scaleValues[1]);if(-1!==i.index){var l=i.pt,a=i.index,s=o*this.scaleValues[0]*.5,u=SuperMapAlgoPlot.PlottingUtil.radian(l,e[a+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,p=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,s,s,u+90),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,s,s,u-90),f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,l,p),h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,l,c),g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*s,p,l);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[f.pntLeft,f.pntRight],{lineTypeLimit:!0,surroundLineLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[h.pntLeft,h.pntRight],{lineTypeLimit:!0,surroundLineLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[g.pntLeft,g.pntRight],{lineTypeLimit:!0,surroundLineLimit:!0});var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,o*this.scaleValues[2]);if(-1!==P.index){var y=P.pt,S=P.index,d=SuperMapAlgoPlot.PlottingUtil.radian(y,e[S+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,b=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,s,s,d+90),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,s,s,d-90),v=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,y,b),M=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,y,m),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*s,b,y);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[v.pntLeft,v.pntRight],{lineTypeLimit:!0,surroundLineLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[M.pntLeft,M.pntRight],{lineTypeLimit:!0,surroundLineLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[A.pntLeft,A.pntRight],{lineTypeLimit:!0,surroundLineLimit:!0});var O=[];O.push(0),this.scaleValues[1]=2?this.addArrow(L[w],this.scaleValues[3]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[3])),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,L[w]);this.addScalePoint(l),this.addScalePoint(y);var x=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,2*s,2*s,d+90),U=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,2*s,2*s,d+90);this.addScalePoint(x),this.addScalePoint(U);var E=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[3],T=SuperMapAlgoPlot.PlottingUtil.linePnt(e[e.length-1],e[e.length-2],E);this.addScalePoint(T,0),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length1-h-this.scaleValues[3]&&(f=1-h-this.scaleValues[3]),this.scaleValues[1]=f}else if(1==t){i=0,l=-1,a=null;for(var p=0;p1-h-this.scaleValues[3]&&(f=1-h-this.scaleValues[3]),this.scaleValues[2]=f}else if(2==t){var g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r*this.scaleValues[1],n);(P=SuperMapAlgoPlot.PlottingUtil.distance(g.pts,e)/r)>=(y=.3)&&(P=y),this.scaleValues[1]1-P-this.scaleValues[3]?(this.scaleValues[1]=(y=.3)&&(P=y),this.scaleValues[2]1-P-this.scaleValues[3]?(this.scaleValues[2].3||n<=0)&&(n=.3);var r=this.getSubSymbolScaleValue(o);(r>.3||r<=0)&&(r=.3),this.scaleValues[1]=r,this.scaleValues[2]=.5*n}var i=this.getLinePts(e,this.scaleValues[1],this.scaleValues[0]),l=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),a=180*SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI,s=SuperMapAlgoPlot.PlottingUtil.distance(i.startPt,i.endPt);0=2?this.addArrow(f[g],this.scaleValues[2]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[2])),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f[g]);var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(o*this.scaleValues[0],e),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(P.pts,.5*s,.5*s,a+90);this.addScalePoint(P.pts,0),this.addScalePoint(y,0);var S=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[2],d=SuperMapAlgoPlot.PlottingUtil.linePnt(e[e.length-1],e[e.length-2],S);this.addScalePoint(d,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length1-f-this.scaleValues[2]&&(c=1-f-this.scaleValues[2]),this.scaleValues[0]=c}else if(1===t){var h=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r*this.scaleValues[0],n),g=SuperMapAlgoPlot.PlottingUtil.distance(h.pts,e)/r;g>=.3&&(g=.3),this.scaleValues[0]1-g-this.scaleValues[2]?(this.scaleValues[0]a&&(a+=360),!this.isEdit){var s=.5*this.getDefaultSubSymbolSize()/i;s>.1&&(s=.1),this.scaleValues[0]=s}var u=i*this.scaleValues[0],p=180*Math.atan(.5*u/i)/Math.PI,c=(a-l)/3,f=(a-l)/50,h=this.getArcPts(t[0],i,l,l+c-1.8*p,f);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var g=this.getArcPts(t[0],i,l+c+1.8*p,l+2*c-1.8*p,f);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var P=this.getArcPts(t[0],i,l+2*c+1.8*p,a,f);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var y=l+c+90,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,e,l+c);this.createSubSymbol(S,u,y);var d=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,e,l+2*c),b=l+2*c+90;this.createSubSymbol(d,u,b);var m=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e+u,e+u,l+c);this.addScalePoint(m),3===this.controlPoints.length&&(this.controlPoints[2]=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,e,a)),this.finish()}}},{key:"getArcPts",value:function(t,e,o,n,r){void 0!==r&&null!==r||(r=1);for(var i=[],l=n;l>o;l-=r){var a=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l);i.push(a)}var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,o);return i.push(s),i}},{key:"createSubSymbol",value:function(t,e,o){for(var n=this.getSubSymbolPts(e),r=0;ru&&(u+=360);var p=(u-s)/3,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],n,n,s+p),f=SuperMapAlgoPlot.PlottingUtil.distance(c,e)/a;f<=.6&&(this.scaleValues[0]=f)}}}])&&PT(e.prototype,o),n&&PT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function mT(t){"@babel/helpers - typeof";return(mT="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})(t)}function vT(t,e){for(var o=0;oo.length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n;this.scaleValues[0]=r}}}])&&BT(e.prototype,o),n&&BT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function GT(t){"@babel/helpers - typeof";return(GT="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})(t)}function qT(t,e){for(var o=0;othis.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?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o,n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var i=(o=1.5*this.getDefaultSubSymbolSize())/r;i>.2&&(i=.2),this.scaleValues[0]=i}var l=this.scaleValues[0],a=this.scaleValues[2],s=this.scaleValues[3];o=r*l;var u=new SuperMapAlgoPlot.Point(n.x+r*a,n.y+r*s);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],u,o,0);for(var p=0;pc.length||2>i.length)return n;var f=SuperMapAlgoPlot.PlottingUtil.intersectLines(c[0],c[1],i[0],i[1]);return f.isIntersectLines?f.intersectPoint:n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var n,r,i,l=[];if(2==o.length){n=o[0],r=o[1];var a=SuperMapAlgoPlot.PlottingUtil.distance(n,r),s=180*SuperMapAlgoPlot.PlottingUtil.radian(n,r)/Math.PI;i=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,a,a,s+60),l.push(n),l.push(r),l.push(i)}else l=l.concat(o);n=l[0],r=l[1],i=l[2];var u=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);l.push(l[0]);var p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),c=e;if(0==t){var f=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(i,n,r),h=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(r,n,i),g=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(c,n,r)/f,P=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(c,n,i)/h;g>1&&(g=1),P>1&&(P=1),this.scaleValues[0]=g,this.scaleValues[1]=P}else if(1==t){var y=this.scaleValues[0],S=this.scaleValues[1],d=this.ComputeSubSymbolPt(y,S,l,u),b=SuperMapAlgoPlot.PlottingUtil.distance(d,c)/p;this.scaleValues[2]=b;var m=SuperMapAlgoPlot.PlottingUtil.dirAngle(d,c)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[3]=m}}}}])&&PV(e.prototype,o),n&&PV(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function mV(t){"@babel/helpers - typeof";return(mV="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})(t)}function vV(t,e){for(var o=0;othis.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?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r0&&this.computeSubSymbol(this.subSymbols[0],y,M,A-90);var O=l*p,_=c;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],S,O,_-90),this.addScalePoint(y);var L=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,.5*M,.5*M,A);this.addScalePoint(L),this.addScalePoint(S);var w=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,.5*O,.5*O,_);this.addScalePoint(w),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengththis.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 n=[];n=3>=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r,i,l,a,s=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n),u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),p=e;if(0==t)r=(p.x-s.x)/u,this.scaleValues[6]=r,i=(p.y-s.y)/u,this.scaleValues[7]=i;else if(1==t){r=this.scaleValues[6],i=this.scaleValues[7];var c=new SuperMapAlgoPlot.Point(s.x+u*r,s.y+u*i),f=2*SuperMapAlgoPlot.PlottingUtil.distance(c,p)/u;this.scaleValues[0]=f;var h=180*SuperMapAlgoPlot.PlottingUtil.radian(c,p)/Math.PI;this.scaleValues[1]=h,this.scaleValues[2]=0<=h&&h<90?1:90<=h&&h<180?2:180<=h&&h<270?3:4}else if(2==t)l=(p.x-s.x)/u,this.scaleValues[8]=l,a=(p.y-s.y)/u,this.scaleValues[9]=a;else if(3==t){l=this.scaleValues[8],a=this.scaleValues[9];var g=new SuperMapAlgoPlot.Point(s.x+u*l,s.y+u*a),P=2*SuperMapAlgoPlot.PlottingUtil.distance(g,p)/u;this.scaleValues[3]=P;var y=180*SuperMapAlgoPlot.PlottingUtil.radian(g,p)/Math.PI;this.scaleValues[4]=y,this.scaleValues[5]=0<=y&&y<90?1:90<=y&&y<180?2:180<=y&&y<270?3:4}}}}])&&vV(e.prototype,o),n&&vV(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function LV(t){"@babel/helpers - typeof";return(LV="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})(t)}function wV(t,e){for(var o=0;othis.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?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r0&&this.computeSubSymbol(this.subSymbols[0],y,M,A+90);var O=l*p,_=c;this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],S,O,_+90),this.addScalePoint(y);var L=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,.5*M,.5*M,A);this.addScalePoint(L),this.addScalePoint(S);var w=SuperMapAlgoPlot.PlottingUtil.circlePoint(S,.5*O,.5*O,_);this.addScalePoint(w),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengththis.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 n=[];n=3>=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),n=SuperMapAlgoPlot.PlottingUtil.clearSamePts(n);var r,i,l,a,s=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(n),u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),p=e;if(0==t)r=(p.x-s.x)/u,this.scaleValues[6]=r,i=(p.y-s.y)/u,this.scaleValues[7]=i;else if(1==t){r=this.scaleValues[6],i=this.scaleValues[7];var c=new SuperMapAlgoPlot.Point(s.x+u*r,s.y+u*i),f=2*SuperMapAlgoPlot.PlottingUtil.distance(c,p)/u;this.scaleValues[0]=f;var h=180*SuperMapAlgoPlot.PlottingUtil.radian(c,p)/Math.PI;this.scaleValues[1]=h,this.scaleValues[2]=0<=h&&h<90?1:90<=h&&h<180?2:180<=h&&h<270?3:4}else if(2==t)l=(p.x-s.x)/u,this.scaleValues[8]=l,a=(p.y-s.y)/u,this.scaleValues[9]=a;else if(3==t){l=this.scaleValues[8],a=this.scaleValues[9];var g=new SuperMapAlgoPlot.Point(s.x+u*l,s.y+u*a),P=2*SuperMapAlgoPlot.PlottingUtil.distance(g,p)/u;this.scaleValues[3]=P;var y=180*SuperMapAlgoPlot.PlottingUtil.radian(g,p)/Math.PI;this.scaleValues[4]=y,this.scaleValues[5]=0<=y&&y<90?1:90<=y&&y<180?2:180<=y&&y<270?3:4}}}}])&&wV(e.prototype,o),n&&wV(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function VV(t){"@babel/helpers - typeof";return(VV="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})(t)}function RV(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[2]=1.5*n,this.scaleValues[4]=n}var r=o*this.scaleValues[4],i=this.scaleValues[0]-this.scaleValues[3];i<0&&(i=0);var l=this.scaleValues[0]+this.scaleValues[3];l>1&&(l=1);var a=this.getLinePts(e,this.scaleValues[4]/2,i),s=this.getLinePts(e,this.scaleValues[4]/2,l),u=new SuperMapAlgoPlot.Point((a.startPt.x+a.endPt.x)/2,(a.startPt.y+a.endPt.y)/2),p=SuperMapAlgoPlot.PlottingUtil.radian(a.startPt,a.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.createSubSymbol1(u,r,p);var c=new SuperMapAlgoPlot.Point((s.startPt.x+s.endPt.x)/2,(s.startPt.y+s.endPt.y)/2),f=SuperMapAlgoPlot.PlottingUtil.radian(s.startPt,s.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.createSubSymbol2(c,r,f);for(var h=[],g=[],P=[],y=0;y<=a.startIndex;y++)h.push(e[y]);if(h.push(a.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h),a.endIndex<=s.startIndex){g.push(a.endPt);for(var S=a.endIndex+1;S<=s.startIndex;S++)g.push(e[S]);g.push(s.startPt),2===e.length&&SuperMapAlgoPlot.PlottingUtil.distance(e[0],a.endPt)<=SuperMapAlgoPlot.PlottingUtil.distance(e[0],s.startPt)&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g),e.length>2&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g)}P.push(s.endPt);for(var d=s.endIndex+1;dp&&(r=P,l=s,i=p));if(-1==r||r>n.length-1)return;c=0;for(var y=0;yg)return;var S=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(this.scalePoints[0],n),d=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(this.scalePoints[3],n),b=0;S.index===d.index&&(b=SuperMapAlgoPlot.PlottingUtil.distance(this.scalePoints[0],this.scalePoints[3]));for(var m=d.index;mg-b-.5&&(c=g-b-.5),this.scaleValues[0]=c/g}else if(1===t){var v=g*this.scaleValues[0],M=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,v);if(-1===M.index)return;var A=n[M.index],O=n[M.index+1],_=SuperMapAlgoPlot.PlottingUtil.radian(A,O),L=SuperMapAlgoPlot.PlottingUtil.radian(M.pt,e);this.scaleValues[1]=L-_-Math.PI;var w=SuperMapAlgoPlot.PlottingUtil.distance(M.pt,e);this.scaleValues[2]=w/g}else if(2===t){r=-1,i=0,l=new SuperMapAlgoPlot.Point(0,0);for(var x=0;xp&&(r=x,l=s,i=p));if(-1!==r&&r<=n.length-1){c=0;for(var U=0;U0&&c1-T&&(V=1-T),this.scaleValues[3]=Math.abs(V-this.scaleValues[0])}}}else if(3===t){var R=(g=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o))*(f=this.scaleValues[0]-this.scaleValues[3]);-1!==(u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,R)).index&&((h=2*SuperMapAlgoPlot.PlottingUtil.distance(u.pt,e)/g)>f&&(h=f),this.scaleValues[4]=h)}}}}])&&RV(e.prototype,o),n&&RV(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function DV(t){"@babel/helpers - typeof";return(DV="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})(t)}function BV(t,e){for(var o=0;o.3||a<=0)&&(a=.3),this.scaleValues[2]=a}var s=e*this.scaleValues[0],u=this.scaleValues[1]*SuperMapAlgoPlot.PlottingUtil.RTOD,p=e*this.scaleValues[2],c=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,s);if(-1!==c.index){var f=c.index,h=c.pt,g=new SuperMapAlgoPlot.Point(n[f].x,n[f].y),P=new SuperMapAlgoPlot.Point(n[f+1].x,n[f+1].y),y=SuperMapAlgoPlot.PlottingUtil.dirAngle(g,P)*SuperMapAlgoPlot.PlottingUtil.RTOD,S=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,p/2,p/2,y+u),d=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,p,p,y+u+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[S,d],{surroundLineLimit:!0,lineTypeLimit:!0});var b=180*SuperMapAlgoPlot.PlottingUtil.radian(h,S)/Math.PI,m=new SuperMapAlgoPlot.Point(-.2*p,.05*p),v=new SuperMapAlgoPlot.Point(-.2*p,-.05*p),M=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,m,b),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(S,v,b),O=SuperMapAlgoPlot.PlottingUtil.findPoint(S,h,.15*p,0);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[M,S,A,O],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});var _=.4*p*this.scaleValues[5],L=.4*p*this.scaleValues[6],w=new SuperMapAlgoPlot.Point(0,-.9*(_-.25*L)),x=new SuperMapAlgoPlot.Point(0,.9*(_-.25*L)),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,w,b),E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,x,b);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[U,E],{surroundLineLimit:!0,lineTypeLimit:!0});var T=new SuperMapAlgoPlot.Point(0,-_),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,T,b),R=new SuperMapAlgoPlot.Point(.5*L,-.25*L),I=new SuperMapAlgoPlot.Point(-.25*L,-.25*L),C=new SuperMapAlgoPlot.Point(-.5*L,.25*L),j=new SuperMapAlgoPlot.Point(.5*L,.25*L),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(V,R,b),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(V,I,b),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(V,C,b),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(V,j,b);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[N,D,B,Y,N],{surroundLineLimit:!0,lineTypeLimit:!0});var k=new SuperMapAlgoPlot.Point(0,_),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,k,b),z=new SuperMapAlgoPlot.Point(0,.25*L),G=new SuperMapAlgoPlot.Point(.5*L,0),q=new SuperMapAlgoPlot.Point(0,-.25*L),X=new SuperMapAlgoPlot.Point(-.5*L,0),W=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(F,z,b),H=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(F,G,b),K=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(F,q,b),J=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(F,X,b);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[W,H,K,J,W],{surroundLineLimit:!0,lineTypeLimit:!0}),this.addScalePoint(h,0);var Z=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,p,p,y+u);this.addScalePoint(Z,1);var Q=new SuperMapAlgoPlot.Point(0,-_),$=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(d,Q,b);this.addScalePoint($,2);var tt=new SuperMapAlgoPlot.Point(-.5*L,0),et=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(F,tt,b);this.addScalePoint(et,3),this.finish()}}}}])&&qV(e.prototype,o),n&&qV(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function JV(t){"@babel/helpers - typeof";return(JV="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})(t)}function ZV(t,e){for(var o=0;othis.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?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r0&&this.computeSubSymbol(this.subSymbols[0],c,p,0);var f=new SuperMapAlgoPlot.Point(c.x+p,c.y+p/2),h=new SuperMapAlgoPlot.Point(c.x+p,c.y-p/2),g=.3*p,P=SuperMapAlgoPlot.PlottingUtil.radian(f,h)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,g,g,P+157.5),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,g,g,P+202.5),d=new SuperMapAlgoPlot.Point((y.x+S.x)/2,(y.y+S.y)/2),b=SuperMapAlgoPlot.PlottingUtil.findPoint(h,f,.25*p,0),m=[];m.push(f),m.push(d),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,{surroundLineLimit:!0,lineTypeLimit:!0});this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[y,h,S,b],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addScalePoint(c);var v=p,M=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,v,v,90);this.addScalePoint(M),this.finish(),this.finish()}}}])&&nR(e.prototype,o),n&&nR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function sR(t){"@babel/helpers - typeof";return(sR="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})(t)}function uR(t,e){for(var o=0;othis.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?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var o=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(o,e),r=0;r0&&this.computeSubSymbol(this.subSymbols[0],c,p,0);var f=new SuperMapAlgoPlot.Point(c.x+p,c.y+p/2),h=new SuperMapAlgoPlot.Point(c.x+p,c.y-p/2),g=.3*p,P=SuperMapAlgoPlot.PlottingUtil.radian(h,f)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,g,g,P+157.5),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,g,g,P+202.5),d=new SuperMapAlgoPlot.Point((y.x+S.x)/2,(y.y+S.y)/2),b=SuperMapAlgoPlot.PlottingUtil.findPoint(f,h,.25*p,0),m=[];m.push(h),m.push(d),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,{surroundLineLimit:!0,lineTypeLimit:!0});this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[y,f,S,b],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addScalePoint(c);var v=p,M=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,v,v,90);this.addScalePoint(M),this.finish(),this.finish()}}}])&&uR(e.prototype,o),n&&uR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function gR(t){"@babel/helpers - typeof";return(gR="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})(t)}function PR(t,e){for(var o=0;os&&(s+=360);var u=(s-a)/50,p=this.getArcPts(t[0],i,a,s,u),c=this.getArcPts(t[0],l,a,s,u);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0}),3===this.controlPoints.length&&(this.controlPoints[2]=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,e,s)),this.addScalePoint(new SuperMapAlgoPlot.Point(c[c.length-1].x,c[c.length-1].y),0),this.finish()}}},{key:"getArcPts",value:function(t,e,o,n,r){void 0!==r&&null!==r||(r=1);for(var i=[],l=o;l=1.01&&(this.scaleValues[0]=r)}}}])&&PR(e.prototype,o),n&&PR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function mR(t){"@babel/helpers - typeof";return(mR="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})(t)}function vR(t,e){for(var o=0;o.05&&(e=.05),this.scaleValues[0]=e}for(var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=Math.abs(o*this.scaleValues[0]),r=this.getDashLinePts(t,n),i={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},l=1,a=0;a0?p.pntLeft:p.pntRight,this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[c,s[0],s[1]],i)}else l--;r[a].length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s),l++}var f=180*SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])/Math.PI;this.scaleValues[0]>0?f+=90:f-=90;var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],2*n,2*n,f);this.addScalePoint(h),this.finish()}}},{key:"getDashLinePts",value:function(t,e){var o=[],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(e>n)return o;for(var r=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),i=2*parseInt(n/(1.5*e)),l=0;l0&&o.push(r),o}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=.05&&(r=.05),SuperMapAlgoPlot.PlottingUtil.isRight(e,o[0],o[1])&&(r=-r),this.scaleValues[0]=r}}}])&&vR(e.prototype,o),n&&vR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function LR(t){"@babel/helpers - typeof";return(LR="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})(t)}function wR(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[1]=n,this.scaleValues[3]=n}var r=this.scaleValues[1],i=this.scaleValues[2]*SuperMapAlgoPlot.PlottingUtil.RTOD,l=o*this.scaleValues[0],a=o*this.scaleValues[3],s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,l);if(-1!==s.index){var u=s.pt,p=e[s.index],c=e[s.index+1],f=SuperMapAlgoPlot.PlottingUtil.dirAngle(p,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,h=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,a,a,f+i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s.pt,h],{surroundLineLimit:!0,lineTypeLimit:!0});var g=SuperMapAlgoPlot.PlottingUtil.dirAngle(u,h)*SuperMapAlgoPlot.PlottingUtil.RTOD,P=o*r,y=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,a,a,f+i+180);00){var k=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,.5*P,.5*P,f+i+90);this.addScalePoint(k)}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);for(var n=0,r=0;rd&&(f=P,g=S,h=d)}}if(-1==f||f>p.length-1)return;for(var b=0,m=0;mn)return;var v=b/n;this.scaleValues[0]=v}else if(2===t){var M=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(u,n*this.scaleValues[0]);if(-1===M.index)return;i=M.pt,l=u[M.index],a=u[M.index+1],s=SuperMapAlgoPlot.PlottingUtil.dirAngle(l,a)*SuperMapAlgoPlot.PlottingUtil.RTOD;var A=n*this.scaleValues[3],O=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,A,A,s+this.scaleValues[2]*SuperMapAlgoPlot.PlottingUtil.RTOD+180),_=SuperMapAlgoPlot.PlottingUtil.distance(O,e)/n*2;this.scaleValues[1]=_}else if(1===t){var L=n*this.scaleValues[0],w=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(u,L);if(-1===w.index)return;i=w.pt,l=u[w.index],a=u[w.index+1],s=SuperMapAlgoPlot.PlottingUtil.dirAngle(l,a)*SuperMapAlgoPlot.PlottingUtil.RTOD;var x=(SuperMapAlgoPlot.PlottingUtil.dirAngle(i,e)*SuperMapAlgoPlot.PlottingUtil.RTOD-s)*SuperMapAlgoPlot.PlottingUtil.DTOR;this.scaleValues[2]=x}}}}])&&wR(e.prototype,o),n&&wR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function VR(t){"@babel/helpers - typeof";return(VR="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})(t)}function RR(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[1]=n,this.scaleValues[3]=n}var r=this.scaleValues[1],i=this.scaleValues[2]*SuperMapAlgoPlot.PlottingUtil.RTOD,l=o*this.scaleValues[0],a=o*this.scaleValues[3],s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,l);if(-1!==s.index){var u=s.pt,p=e[s.index],c=e[s.index+1],f=SuperMapAlgoPlot.PlottingUtil.dirAngle(p,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,h=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,a,a,f+i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s.pt,h],{surroundLineLimit:!0,lineTypeLimit:!0});var g=SuperMapAlgoPlot.PlottingUtil.dirAngle(u,h)*SuperMapAlgoPlot.PlottingUtil.RTOD,P=o*r,y=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,a,a,f+i+180);00){var k=SuperMapAlgoPlot.PlottingUtil.circlePoint(y,.5*P,.5*P,f+i+90);this.addScalePoint(k)}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);for(var n=0,r=0;rd&&(f=P,g=S,h=d)}}if(-1==f||f>p.length-1)return;for(var b=0,m=0;mn)return;var v=b/n;this.scaleValues[0]=v}else if(2===t){var M=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(u,n*this.scaleValues[0]);if(-1===M.index)return;i=M.pt,l=u[M.index],a=u[M.index+1],s=SuperMapAlgoPlot.PlottingUtil.dirAngle(l,a)*SuperMapAlgoPlot.PlottingUtil.RTOD;var A=n*this.scaleValues[3],O=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,A,A,s+this.scaleValues[2]*SuperMapAlgoPlot.PlottingUtil.RTOD+180),_=SuperMapAlgoPlot.PlottingUtil.distance(O,e)/n*2;this.scaleValues[1]=_}else if(1===t){var L=n*this.scaleValues[0],w=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(u,L);if(-1===w.index)return;i=w.pt,l=u[w.index],a=u[w.index+1],s=SuperMapAlgoPlot.PlottingUtil.dirAngle(l,a)*SuperMapAlgoPlot.PlottingUtil.RTOD;var x=(SuperMapAlgoPlot.PlottingUtil.dirAngle(i,e)*SuperMapAlgoPlot.PlottingUtil.RTOD-s)*SuperMapAlgoPlot.PlottingUtil.DTOR;this.scaleValues[2]=x}}}}])&&RR(e.prototype,o),n&&RR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function DR(t){"@babel/helpers - typeof";return(DR="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})(t)}function BR(t,e){for(var o=0;on)return o;for(var r=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),i=2*parseInt(n/(1.5*e)),l=0;l0&&o.push(r),o}}])&&BR(e.prototype,o),n&&BR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function GR(t){"@babel/helpers - typeof";return(GR="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})(t)}function qR(t,e){for(var o=0;on)return o;for(var r=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),i=2*parseInt(n/(1.5*e)),l=0;l0&&o.push(r),o}}])&&qR(e.prototype,o),n&&qR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();function JR(t){"@babel/helpers - typeof";return(JR="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})(t)}function ZR(t,e){for(var o=0;o(i*=this.scaleValues[6])?(c=SuperMapAlgoPlot.PlottingUtil.paraLine(u,i/2,!0),f=SuperMapAlgoPlot.PlottingUtil.paraLine(u,i/2,!1)):(c=SuperMapAlgoPlot.PlottingUtil.paraLine(u,h/2,!0),f=SuperMapAlgoPlot.PlottingUtil.paraLine(u,h/2,!1));var g=[];g.push(c[0]),g.push(c[c.length-1]),g.push(f[f.length-1]),g.push(f[0]);var P={surroundLineFlag:!1,fillLimit:!0,strokeColor:"#37CECE",fillColorLimit:!0,fillColor:"#37CECE",fill:!0,fillOpacity:.7,lineColorLimit:!0,color:"#37CECE",surroundLineLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,P);var y=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(g);P={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0};var S=SuperMapAlgoPlot.PlottingUtil.paraLine(n,o,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,P);for(var d=r*this.scaleValues[1],b=this.getDashLinePts(n,d),m=0;mn)return o;for(var r=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),i=2*parseInt(n/(1.5*e)),l=0;l0&&o.push(r),o}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length1&&(h=1),this.scaleValues[5]=h)}else this.scaleValues[5]=f/r;else if(1===t){l=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r*this.scaleValues[5],n),i=SuperMapAlgoPlot.PlottingUtil.distance(l.pts,e);var g=this.scaleValues[7]*r;this.scaleValues[6]=i/g}}}}])&&ZR(e.prototype,o),n&&ZR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();SuperMapAlgoPlot.AlgoSymbol1770501=eI;SuperMapAlgoPlot.JBAlgoSymbolFactory=SuperMapAlgoPlot.JBAlgoSymbolFactory||{};SuperMapAlgoPlot.JBAlgoSymbolFactory.getAlgoSymbol=function(t,e,o){if(100!==t)return new SuperMapAlgoPlot.AlgoSymbol(o);switch(e){case 12500:return new SuperMapAlgoPlot.AlgoSymbol12500(o);case 12501:return new SuperMapAlgoPlot.AlgoSymbol12501(o);case 12502:return new SuperMapAlgoPlot.AlgoSymbol12502(o);case 13700:return new SuperMapAlgoPlot.AlgoSymbol13700(o);case 15200:return new SuperMapAlgoPlot.AlgoSymbol15200(o);case 15201:case 23800:return new SuperMapAlgoPlot.AlgoSymbol23800(o);case 15202:return new SuperMapAlgoPlot.AlgoSymbol15202(o);case 15800:return new SuperMapAlgoPlot.AlgoSymbol15800(o);case 15801:return new SuperMapAlgoPlot.AlgoSymbol15801(o);case 15802:return new SuperMapAlgoPlot.AlgoSymbol15802(o);case 15803:return new SuperMapAlgoPlot.AlgoSymbol15803(o);case 15804:return new SuperMapAlgoPlot.AlgoSymbol15804(o);case 15805:return new SuperMapAlgoPlot.AlgoSymbol15805(o);case 15806:return new SuperMapAlgoPlot.AlgoSymbol15806(o);case 15900:return new SuperMapAlgoPlot.AlgoSymbol15900(o);case 16e3:return new SuperMapAlgoPlot.AlgoSymbol16000(o);case 16001:return new SuperMapAlgoPlot.AlgoSymbol16001(o);case 16100:return new SuperMapAlgoPlot.AlgoSymbol16100(o);case 16200:return new SuperMapAlgoPlot.AlgoSymbol16200(o);case 16201:return new SuperMapAlgoPlot.AlgoSymbol16201(o);case 16202:return new SuperMapAlgoPlot.AlgoSymbol16202(o);case 16203:return new SuperMapAlgoPlot.AlgoSymbol16203(o);case 16500:return new SuperMapAlgoPlot.AlgoSymbol16500(o);case 16700:return new SuperMapAlgoPlot.AlgoSymbol16700(o);case 16900:return new SuperMapAlgoPlot.AlgoSymbol16900(o);case 17400:return new SuperMapAlgoPlot.AlgoSymbol17400(o);case 17401:return new SuperMapAlgoPlot.AlgoSymbol17401(o);case 17500:return new SuperMapAlgoPlot.AlgoSymbol17500(o);case 17501:return new SuperMapAlgoPlot.AlgoSymbol17501(o);case 17600:return new SuperMapAlgoPlot.AlgoSymbol17600(o);case 17700:return new SuperMapAlgoPlot.AlgoSymbol17700(o);case 1770101:return new SuperMapAlgoPlot.AlgoSymbol1770101(o);case 1770201:return new SuperMapAlgoPlot.AlgoSymbol1770201(o);case 1770501:return new SuperMapAlgoPlot.AlgoSymbol1770501(o);case 17703:return new SuperMapAlgoPlot.AlgoSymbol17703(o);case 17704:return new SuperMapAlgoPlot.AlgoSymbol17704(o);case 17800:return new SuperMapAlgoPlot.AlgoSymbol17800(o);case 17801:return new SuperMapAlgoPlot.AlgoSymbol17801(o);case 17802:return new SuperMapAlgoPlot.AlgoSymbol17802(o);case 17803:return new SuperMapAlgoPlot.AlgoSymbol17803(o);case 17804:return new SuperMapAlgoPlot.AlgoSymbol17804(o);case 17805:return new SuperMapAlgoPlot.AlgoSymbol17805(o);case 17806:return new SuperMapAlgoPlot.AlgoSymbol17806(o);case 20300:return new SuperMapAlgoPlot.AlgoSymbol20300(o);case 20301:return new SuperMapAlgoPlot.AlgoSymbol20301(o);case 21401:return new SuperMapAlgoPlot.AlgoSymbol21401(o);case 21500:return new SuperMapAlgoPlot.AlgoSymbol21500(o);case 21501:return new SuperMapAlgoPlot.AlgoSymbol21501(o);case 21502:return new SuperMapAlgoPlot.AlgoSymbol21502(o);case 21503:return new SuperMapAlgoPlot.AlgoSymbol21503(o);case 21504:return new SuperMapAlgoPlot.AlgoSymbol21504(o);case 21600:return new SuperMapAlgoPlot.AlgoSymbol21600(o);case 21800:return new SuperMapAlgoPlot.AlgoSymbol21800(o);case 21900:return new SuperMapAlgoPlot.AlgoSymbol21900(o);case 22e3:return new SuperMapAlgoPlot.AlgoSymbol22000(o);case 22103:return new SuperMapAlgoPlot.AlgoSymbol22103(o);case 22200:return new SuperMapAlgoPlot.AlgoSymbol22200(o);case 23400:return new SuperMapAlgoPlot.AlgoSymbol23400(o);case 23500:return new SuperMapAlgoPlot.AlgoSymbol23500(o);case 2350001:return new SuperMapAlgoPlot.AlgoSymbol2350001(o);case 23600:return new SuperMapAlgoPlot.AlgoSymbol23600(o);case 23700:return new SuperMapAlgoPlot.AlgoSymbol23700(o);case 23901:return new SuperMapAlgoPlot.AlgoSymbol23901(o);case 23902:return new SuperMapAlgoPlot.AlgoSymbol23902(o);case 24700:return new SuperMapAlgoPlot.AlgoSymbol24700(o);case 25e3:return new SuperMapAlgoPlot.AlgoSymbol25000(o);case 25100:return new SuperMapAlgoPlot.AlgoSymbol25100(o);case 25101:return new SuperMapAlgoPlot.AlgoSymbol25101(o);case 25200:return new SuperMapAlgoPlot.AlgoSymbol25200(o);case 21400:return new SuperMapAlgoPlot.AlgoSymbol21400(o);case 25201:return new SuperMapAlgoPlot.AlgoSymbol25201(o);case 25202:return new SuperMapAlgoPlot.AlgoSymbol25202(o);case 25300:return new SuperMapAlgoPlot.AlgoSymbol25300(o);case 25301:return new SuperMapAlgoPlot.AlgoSymbol25301(o);case 25400:return new SuperMapAlgoPlot.AlgoSymbol25400(o);case 25500:return new SuperMapAlgoPlot.AlgoSymbol25500(o);case 25501:return new SuperMapAlgoPlot.AlgoSymbol25501(o);case 25502:return new SuperMapAlgoPlot.AlgoSymbol25502(o);case 25503:return new SuperMapAlgoPlot.AlgoSymbol25503(o);case 25600:return new SuperMapAlgoPlot.AlgoSymbol25600(o);case 25601:return new SuperMapAlgoPlot.AlgoSymbol25601(o);case 25700:return new SuperMapAlgoPlot.AlgoSymbol25700(o);case 25701:return new SuperMapAlgoPlot.AlgoSymbol25701(o);case 2570201:return new SuperMapAlgoPlot.AlgoSymbol2570201(o);case 2570301:return new SuperMapAlgoPlot.AlgoSymbol2570301(o);case 2570401:return new SuperMapAlgoPlot.AlgoSymbol2570401(o);case 2570501:return new SuperMapAlgoPlot.AlgoSymbol2570501(o);case 25800:return new SuperMapAlgoPlot.AlgoSymbol25800(o);case 25801:return new SuperMapAlgoPlot.AlgoSymbol25801(o);case 25900:return new SuperMapAlgoPlot.AlgoSymbol25900(o);case 25901:return new SuperMapAlgoPlot.AlgoSymbol25901(o);case 26400:return new SuperMapAlgoPlot.AlgoSymbol26400(o);case 26500:return new SuperMapAlgoPlot.AlgoSymbol26500(o);case 26501:return new SuperMapAlgoPlot.AlgoSymbol26501(o);case 26502:return new SuperMapAlgoPlot.AlgoSymbol26502(o);case 26503:return new SuperMapAlgoPlot.AlgoSymbol26503(o);case 26600:return new SuperMapAlgoPlot.AlgoSymbol26600(o);case 26601:return new SuperMapAlgoPlot.AlgoSymbol26601(o);case 26700:return new SuperMapAlgoPlot.AlgoSymbol26700(o);case 26800:return new SuperMapAlgoPlot.AlgoSymbol26800(o);case 27100:return new SuperMapAlgoPlot.AlgoSymbol27100(o);case 27300:return new SuperMapAlgoPlot.AlgoSymbol27300(o);case 2730101:return new SuperMapAlgoPlot.AlgoSymbol2730101(o);case 27700:return new SuperMapAlgoPlot.AlgoSymbol27700(o);case 27701:return new SuperMapAlgoPlot.AlgoSymbol27701(o);case 27900:return new SuperMapAlgoPlot.AlgoSymbol27900(o);case 27901:return new SuperMapAlgoPlot.AlgoSymbol27901(o);case 27902:return new SuperMapAlgoPlot.AlgoSymbol27902(o);case 28e3:return new SuperMapAlgoPlot.AlgoSymbol28000(o);case 28100:return new SuperMapAlgoPlot.AlgoSymbol28100(o);case 28200:return new SuperMapAlgoPlot.AlgoSymbol28200(o);case 28201:return new SuperMapAlgoPlot.AlgoSymbol28201(o);case 28300:return new SuperMapAlgoPlot.AlgoSymbol28300(o);case 28301:return new SuperMapAlgoPlot.AlgoSymbol28301(o);case 28400:return new SuperMapAlgoPlot.AlgoSymbol28400(o);case 28900:return new SuperMapAlgoPlot.AlgoSymbol28900(o);case 29e3:return new SuperMapAlgoPlot.AlgoSymbol29000(o);case 29001:return new SuperMapAlgoPlot.AlgoSymbol29001(o);case 29002:return new SuperMapAlgoPlot.AlgoSymbol29002(o);case 29003:return new SuperMapAlgoPlot.AlgoSymbol29003(o);case 29100:return new SuperMapAlgoPlot.AlgoSymbol29100(o);case 29101:return new SuperMapAlgoPlot.AlgoSymbol29101(o);case 29103:return new SuperMapAlgoPlot.AlgoSymbol29103(o);case 29401:return new SuperMapAlgoPlot.AlgoSymbol29401(o);case 29800:return new SuperMapAlgoPlot.AlgoSymbol29800(o);case 29903:return new SuperMapAlgoPlot.AlgoSymbol29903(o);case 3e4:return new SuperMapAlgoPlot.AlgoSymbol30000(o);case 30001:return new SuperMapAlgoPlot.AlgoSymbol30001(o);case 30002:return new SuperMapAlgoPlot.AlgoSymbol30002(o);case 30100:case 4020400:return new SuperMapAlgoPlot.AlgoSymbol30100(o);case 30200:return new SuperMapAlgoPlot.AlgoSymbol30200(o);case 30201:return new SuperMapAlgoPlot.AlgoSymbol30201(o);case 30800:return new SuperMapAlgoPlot.AlgoSymbol30800(o);case 30102:return new SuperMapAlgoPlot.AlgoSymbol30102(o);case 31300:return new SuperMapAlgoPlot.AlgoSymbol31300(o);case 31301:return new SuperMapAlgoPlot.AlgoSymbol31301(o);case 31302:return new SuperMapAlgoPlot.AlgoSymbol31302(o);case 31303:return new SuperMapAlgoPlot.AlgoSymbol31303(o);case 31304:return new SuperMapAlgoPlot.AlgoSymbol31304(o);case 31400:return new SuperMapAlgoPlot.AlgoSymbol31400(o);case 31401:return new SuperMapAlgoPlot.AlgoSymbol31401(o);case 31600:return new SuperMapAlgoPlot.AlgoSymbol31600(o);case 31601:return new SuperMapAlgoPlot.AlgoSymbol31601(o);case 31803:return new SuperMapAlgoPlot.AlgoSymbol31803(o);case 32300:return new SuperMapAlgoPlot.AlgoSymbol32300(o);case 32900:return new SuperMapAlgoPlot.AlgoSymbol32900(o);case 33400:return new SuperMapAlgoPlot.AlgoSymbol33400(o);case 34300:return new SuperMapAlgoPlot.AlgoSymbol34300(o);case 34400:return new SuperMapAlgoPlot.AlgoSymbol34400(o);case 34500:return new SuperMapAlgoPlot.AlgoSymbol34500(o);case 34501:return new SuperMapAlgoPlot.AlgoSymbol34501(o);case 34700:return new SuperMapAlgoPlot.AlgoSymbol34700(o);case 34800:return new SuperMapAlgoPlot.AlgoSymbol34800(o);case 34801:return new SuperMapAlgoPlot.AlgoSymbol34801(o);case 34900:return new SuperMapAlgoPlot.AlgoSymbol34900(o);case 34901:return new SuperMapAlgoPlot.AlgoSymbol34901(o);case 34902:return new SuperMapAlgoPlot.AlgoSymbol34902(o);case 35e3:return new SuperMapAlgoPlot.AlgoSymbol35000(o);case 35200:return new SuperMapAlgoPlot.AlgoSymbol35200(o);case 35304:return new SuperMapAlgoPlot.AlgoSymbol35304(o);case 35500:return new SuperMapAlgoPlot.AlgoSymbol35500(o);case 36400:return new SuperMapAlgoPlot.AlgoSymbol36400(o);case 36401:return new SuperMapAlgoPlot.AlgoSymbol36401(o);case 36600:return new SuperMapAlgoPlot.AlgoSymbol36600(o);case 36700:return new SuperMapAlgoPlot.AlgoSymbol36700(o);case 36800:return new SuperMapAlgoPlot.AlgoSymbol36800(o);case 37100:return new SuperMapAlgoPlot.AlgoSymbol37100(o);case 37200:return new SuperMapAlgoPlot.AlgoSymbol37200(o);case 37300:return new SuperMapAlgoPlot.AlgoSymbol37300(o);case 37301:return new SuperMapAlgoPlot.AlgoSymbol37301(o);case 37600:return new SuperMapAlgoPlot.AlgoSymbol37600(o);case 37601:return new SuperMapAlgoPlot.AlgoSymbol37601(o);case 37700:return new SuperMapAlgoPlot.AlgoSymbol37700(o);case 38600:return new SuperMapAlgoPlot.AlgoSymbol38600(o);case 38700:return new SuperMapAlgoPlot.AlgoSymbol38700(o);case 39e3:return new SuperMapAlgoPlot.AlgoSymbol39000(o);case 39101:return new SuperMapAlgoPlot.AlgoSymbol39101(o);case 39500:return new SuperMapAlgoPlot.AlgoSymbol39500(o);case 39600:return new SuperMapAlgoPlot.AlgoSymbol39600(o);case 39800:return new SuperMapAlgoPlot.AlgoSymbol39800(o);case 39801:return new SuperMapAlgoPlot.AlgoSymbol39801(o);case 39802:return new SuperMapAlgoPlot.AlgoSymbol39802(o);case 4e4:return new SuperMapAlgoPlot.AlgoSymbol40000(o);case 40100:return new SuperMapAlgoPlot.AlgoSymbol40100(o);case 40101:return new SuperMapAlgoPlot.AlgoSymbol40101(o);case 40900:return new SuperMapAlgoPlot.AlgoSymbol40900(o);case 41100:return new SuperMapAlgoPlot.AlgoSymbol41100(o);case 41200:return new SuperMapAlgoPlot.AlgoSymbol41200(o);case 41201:return new SuperMapAlgoPlot.AlgoSymbol41201(o);case 41202:return new SuperMapAlgoPlot.AlgoSymbol41202(o);case 42200:return new SuperMapAlgoPlot.AlgoSymbol42200(o);case 42400:return new SuperMapAlgoPlot.AlgoSymbol42400(o);case 42500:return new SuperMapAlgoPlot.AlgoSymbol42500(o);case 42700:return new SuperMapAlgoPlot.AlgoSymbol42700(o);case 43500:return new SuperMapAlgoPlot.AlgoSymbol43500(o);case 44100:return new SuperMapAlgoPlot.AlgoSymbol44100(o);case 44200:return new SuperMapAlgoPlot.AlgoSymbol44200(o);case 44300:return new SuperMapAlgoPlot.AlgoSymbol44300(o);case 44400:return new SuperMapAlgoPlot.AlgoSymbol44400(o);case 2890001:return new SuperMapAlgoPlot.AlgoSymbol2890001(o);case 3010301:return new SuperMapAlgoPlot.AlgoSymbol3010301(o);case 3010302:return new SuperMapAlgoPlot.AlgoSymbol3010302(o);case 3010303:return new SuperMapAlgoPlot.AlgoSymbol3010303(o);case 3010304:return new SuperMapAlgoPlot.AlgoSymbol3010304(o);case 3010102:return new SuperMapAlgoPlot.AlgoSymbol3010102(o);case 3010103:return new SuperMapAlgoPlot.AlgoSymbol3010103(o);case 3010104:return new SuperMapAlgoPlot.AlgoSymbol3010104(o);case 3010105:return new SuperMapAlgoPlot.AlgoSymbol3010105(o);case 3010106:return new SuperMapAlgoPlot.AlgoSymbol3010106(o);case 3010107:return new SuperMapAlgoPlot.AlgoSymbol3010107(o);case 3010108:return new SuperMapAlgoPlot.AlgoSymbol3010108(o);case 3020901:return new SuperMapAlgoPlot.AlgoSymbol3020901(o);case 3032e3:return new SuperMapAlgoPlot.AlgoSymbol3032000(o);case 4010800:return new SuperMapAlgoPlot.AlgoSymbol4010800(o);case 4010801:return new SuperMapAlgoPlot.AlgoSymbol4010801(o);case 4010905:return new SuperMapAlgoPlot.AlgoSymbol4010905(o);case 4011100:return new SuperMapAlgoPlot.AlgoSymbol4011100(o);case 4011101:return new SuperMapAlgoPlot.AlgoSymbol4011101(o);case 4020303:return new SuperMapAlgoPlot.AlgoSymbol4020303(o);case 4020401:return new SuperMapAlgoPlot.AlgoSymbol4020401(o);case 4020402:return new SuperMapAlgoPlot.AlgoSymbol4020402(o);case 4021101:return new SuperMapAlgoPlot.AlgoSymbol4021101(o);case 4021102:return new SuperMapAlgoPlot.AlgoSymbol4021102(o);case 4022100:return new SuperMapAlgoPlot.AlgoSymbol4022100(o);case 4022101:return new SuperMapAlgoPlot.AlgoSymbol4022101(o);case 4022102:return new SuperMapAlgoPlot.AlgoSymbol4022102(o);case 6020400:return new SuperMapAlgoPlot.AlgoSymbol6020400(o);case 6020401:return new SuperMapAlgoPlot.AlgoSymbol6020401(o);case 6020402:return new SuperMapAlgoPlot.AlgoSymbol6020402(o);case 6020403:return new SuperMapAlgoPlot.AlgoSymbol6020403(o);case 6020404:return new SuperMapAlgoPlot.AlgoSymbol6020404(o);default:return new SuperMapAlgoPlot.AlgoSymbol(o)}},SuperMapAlgoPlot.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 1770101:case 1770201:case 1770501: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 2570201:case 2570301:case 2570401:case 2570501: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 2730101: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}},SuperMapAlgoPlot.JBAlgoSymbolFactory.getSymbolWayType=function(t,e){if(100!==t)return SuperMapAlgoPlot.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 2730101: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 SuperMapAlgoPlot.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 SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}},SuperMapAlgoPlot.JBAlgoSymbolFactory.getDefaultSubSymbols=function(t,e){var o=[];if(100!==t)return o;switch(e){case 17400:case 17401:return o.push(new SuperMapAlgoPlot.SubSymbol(100,17300)),o.push(new SuperMapAlgoPlot.SubSymbol(100,17301)),o;case 21501:case 26502:return o.push(new SuperMapAlgoPlot.SubSymbol(100,19700)),o;case 21502:return o.push(new SuperMapAlgoPlot.SubSymbol(100,6803)),o;case 22103:case 26501:return o.push(new SuperMapAlgoPlot.SubSymbol(100,22100)),o;case 21503:return o.push(new SuperMapAlgoPlot.SubSymbol(100,7900)),o;case 21504:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8404)),o;case 22e3:return o.push(new SuperMapAlgoPlot.SubSymbol(100,1e3)),o;case 23500:return o.push(new SuperMapAlgoPlot.SubSymbol(100,1300)),o;case 23600:return o.push(new SuperMapAlgoPlot.SubSymbol(100,800)),o.push(new SuperMapAlgoPlot.SubSymbol(100,800)),o;case 25300:return o.push(new SuperMapAlgoPlot.SubSymbol(100,6302)),o.push(new SuperMapAlgoPlot.SubSymbol(100,7900)),o;case 25301:return o.push(new SuperMapAlgoPlot.SubSymbol(100,300)),o.push(new SuperMapAlgoPlot.SubSymbol(100,6200)),o;case 25503:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8402)),o;case 26400:return o.push(new SuperMapAlgoPlot.SubSymbol(100,3300)),o;case 26700:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4500)),o;case 27100:return o.push(new SuperMapAlgoPlot.SubSymbol(100,7700)),o;case 27300:return o.push(new SuperMapAlgoPlot.SubSymbol(100,1500)),o;case 2730101:return o.push(new SuperMap.Plot.SubSymbol(100,1500)),o;case 3032e3:return o.push(new SuperMapAlgoPlot.SubSymbol(100,1500)),o.push(new SuperMapAlgoPlot.SubSymbol(100,1500)),o;case 28300:return o.push(new SuperMapAlgoPlot.SubSymbol(100,18600)),o;case 28301:return o.push(new SuperMapAlgoPlot.SubSymbol(100,18600)),o.push(new SuperMapAlgoPlot.SubSymbol(100,18600)),o;case 28400:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4801)),o;case 29001:return o.push(new SuperMapAlgoPlot.SubSymbol(100,5200)),o.push(new SuperMapAlgoPlot.SubSymbol(100,5200)),o;case 29002:return o.push(new SuperMapAlgoPlot.SubSymbol(100,600)),o.push(new SuperMapAlgoPlot.SubSymbol(100,5300)),o;case 23901:case 23902:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4800)),o;case 31600:case 31601:return o.push(new SuperMapAlgoPlot.SubSymbol(100,700)),o;case 29903:case 4021101:return o.push(new SuperMapAlgoPlot.SubSymbol(100,600)),o;case 32900:return o.push(new SuperMapAlgoPlot.SubSymbol(100,6700)),o;case 35200:return o.push(new SuperMapAlgoPlot.SubSymbol(100,6803)),o;case 37700:return o.push(new SuperMapAlgoPlot.SubSymbol(100,37800)),o;case 3010107:return o.push(new SuperMapAlgoPlot.SubSymbol(100,800)),o;case 3010108:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4600)),o;case 4010800:return o.push(new SuperMapAlgoPlot.SubSymbol(100,1300)),o;case 4010801:case 4022100:case 4022101:case 4022102:case 4021102:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8400)),o;case 31303:case 31302:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4400)),o;case 4010905:return o.push(new SuperMapAlgoPlot.SubSymbol(100,700)),o;case 31803:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8402)),o;case 34400:return o.push(new SuperMapAlgoPlot.SubSymbol(100,6202)),o;case 34501:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8403)),o;case 35304:return o.push(new SuperMapAlgoPlot.SubSymbol(100,35301)),o;case 36401:return o.push(new SuperMapAlgoPlot.SubSymbol(100,7200)),o;case 36600:return o.push(new SuperMapAlgoPlot.SubSymbol(100,300)),o;case 37100:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8e3)),o;case 37200:return o.push(new SuperMapAlgoPlot.SubSymbol(100,7101)),o;case 37600:case 37601:case 38600:case 38700:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4600)),o;case 39e3:return o.push(new SuperMapAlgoPlot.SubSymbol(100,9300)),o.push(new SuperMapAlgoPlot.SubSymbol(100,9300)),o.push(new SuperMapAlgoPlot.SubSymbol(100,9300)),o;case 39101:return o.push(new SuperMapAlgoPlot.SubSymbol(100,39100)),o;case 39500:case 39600:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8700)),o;case 39800:case 39801:case 39802:case 4e4:return o.push(new SuperMapAlgoPlot.SubSymbol(100,8900)),o;case 36700:return o.push(new SuperMapAlgoPlot.SubSymbol(100,300)),o;case 42200:return o.push(new SuperMapAlgoPlot.SubSymbol(100,20901)),o;case 4011100:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4e3)),o.push(new SuperMapAlgoPlot.SubSymbol(100,4001)),o;case 4011101:return o.push(new SuperMapAlgoPlot.SubSymbol(100,700)),o.push(new SuperMapAlgoPlot.SubSymbol(100,700)),o;case 2350001:return o.push(new SuperMapAlgoPlot.SubSymbol(100,7900)),o.push(new SuperMapAlgoPlot.SubSymbol(100,1300)),o;case 2890001:return o.push(new SuperMapAlgoPlot.SubSymbol(100,4003)),o;default:return o}},SuperMapAlgoPlot.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 1770101:case 1770201:case 1770501: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 2730101: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:case 25500:case 25501:case 25502:case 25503:case 25600:case 25601:case 25700:case 25701:case 2570201:case 2570301:case 2570401:case 2570501:case 25800:case 25801:case 25900:case 25901:case 44400:return 2;case 16100:case 25200:case 29800:return 3;default:return 0}},SuperMapAlgoPlot.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 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:case 1770101:case 1770201:return 2;case 13700:case 17800:case 17801:case 17802:case 17803:case 17804:case 17805:case 17806:case 23902:case 38700:case 26800:case 29001:case 29002:case 32300:case 29101:case 29100:case 29103:case 4010905:case 6020400:case 6020401:case 6020402:case 6020403: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 23901:case 25200:case 27300:case 2730101: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 1770501: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 2570201:case 2570301:case 2570401:case 2570501: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 28300:case 28200:case 29e3: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 37300:case 37301: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}},SuperMapAlgoPlot.JBAlgoSymbolFactory.getDefaultStyle=function(t,e){var o={};if(100===t)switch(e){case 34800:case 34801:case 22200:case 28e3:case 28100:case 28200:case 28201:case 44400:o.color=o.strokeColor="#0000ff";break;case 42500:case 42700:o.color=o.strokeColor="#00ff00";break;case 42400:o.color=o.strokeColor="#006600"}return o},SuperMapAlgoPlot.JBAlgoSymbolFactory.zoomInCalSymbol=function(){return!1}}()}(); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(6))) /***/ }), /* 2 */ /***/ (function(module, exports) { !function(){"use strict";function t(e){"@babel/helpers - typeof";return(t="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)}function e(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],c,.9*s,g-90),this.scalePoints=[],this.addScalePoint(u[u.length-1]);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,g+90);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}else if(1==t){var r=this.scaleValues[0]*l,i=SuperMapAlgoPlot.PlottingUtil.radian(o[0],o[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],r,r,90+i),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[1],r,r,90+i),p=new SuperMapAlgoPlot.Point((a.x+u.x)/2,(a.y+u.y)/2),s=SuperMapAlgoPlot.PlottingUtil.distance(p,e)/l;s>=.8&&(s=.8),this.scaleValues[1]=s}}}}])&&e(n.prototype,r),i&&e(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}();function i(t){"@babel/helpers - typeof";return(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})(t)}function a(t,e){for(var o=0;oSuperMapAlgoPlot.PlottingUtil.distance(n,o)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,o){var l=o.slice();l[0].x===l[l.length-1].x&&l[0].y===l[l.length-1].y||l.push(l[0]);for(var n,r=[],i=0;ie.x)for(var c=0;cr[P+1].x&&(n=r[P],r[P]=r[P+1],r[P+1]=n);else if(t.y>e.y)for(var f=0;fr[g+1].y&&(n=r[g],r[g]=r[g+1],r[g+1]=n);return r}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=0,r=-1,i=null,a=0;a1&&(P=1),this.scaleValues[0]=P}if(1===t){var f=this.scaleValues[0]*l,g=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,f);if(-1===g.index)return;var y=SuperMapAlgoPlot.PlottingUtil.distance(g.pt,e)/l;y>.4&&(y=.4),this.scaleValues[1]=y}}}}])&&a(e.prototype,o),l&&a(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function P(t){"@babel/helpers - typeof";return(P="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})(t)}function f(t,e){for(var o=0;o1&&(h.push(S),S=[]):S.push(a[b]);S.length>1&&h.push(S),S=[];for(var A=0;Athis.scaleValues.length)return;var l,n,r,i,a,u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),p=(SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),new SuperMapAlgoPlot.Point(e.x,e.y));if(0===t){var s=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),c=SuperMapAlgoPlot.PlottingUtil.distance(s,p);n=2*c/u,this.scaleValues[1]=n}else if(1===t)s=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),l=(c=SuperMapAlgoPlot.PlottingUtil.distance(s,p))/u,this.scaleValues[0]=l;else if(2==t){var P=-1,f=0;a=new SuperMapAlgoPlot.Point(0,0),l=this.scaleValues[0],n=this.scaleValues[1];(m=this.getCurvePts(o,l,n)).scalePt;for(var g=m.pt,y=0;yA&&(P=y,a=b,f=A)}}if(-1==P||P>g.length-1)return;i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(g);for(var d=[],M=0;Mi)return;r=v/i,this.scaleValues[2]=r}else if(3===t){l=this.scaleValues[0],n=this.scaleValues[1],r=this.scaleValues[2];(m=this.getCurvePts(o,l,n)).scalePt,g=m.pt;var m,O=(i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(g))*r;if(-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,O)).index)return;var w=SuperMapAlgoPlot.PlottingUtil.distance(a.pt,e)/u;w>.4&&(w=.4),this.scaleValues[3]=w}}}},{key:"getCurvePts",value:function(t,e,o){for(var l,n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),i=r*e,a=r*o/2,u=[],p=[],s=n[0],c=!1,P=n[0],f=1;f1&&0===b?this.ClearCurvePts2D(P,s,g,p,A,u):u.concat(A),p=(p=[]).concat(A),P=s,s=h}f===n.length-1&&(h=n[n.length-1],A=this.GetCosPts2D(s,h,i,a),u=p.length>1&&A.length>1?this.ClearCurvePts2D(P,s,g,p,A,u):u.concat(A))}}return{pt:u,scalePt:l}}},{key:"GetCosPts2D",value:function(t,e,o,l){for(var n=[],r=SuperMapAlgoPlot.PlottingUtil.distance(t,e),i=o/30,a=0;a1-f&&(P=1-f),this.scaleValues[0]=P}if(1==t){var g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n*this.scaleValues[0],o),y=SuperMapAlgoPlot.PlottingUtil.distance(g.pts,e)/n;y>=.3&&(y=.3),this.scaleValues[0]1-y/2?(this.scaleValues[0]SuperMapAlgoPlot.PlottingUtil.distance(n,o)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,o){var l=o.slice();l[0].x===l[l.length-1].x&&l[0].y===l[l.length-1].y||l.push(l[0]);for(var n=[],r=0;re.x){for(var s=0;sn[P+1].x){c=n[P];n[P]=n[P+1],n[P+1]=c}}else if(t.y>e.y){for(var f=0;fn[g+1].y){c=n[g];n[g]=n[g+1],n[g+1]=c}return n}}])&&A(e.prototype,o),l&&A(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function O(t){"@babel/helpers - typeof";return(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})(t)}function w(t,e){for(var o=0;o=r)return;this.scaleValues=[];var i=SuperMapAlgoPlot.PlottingUtil.distance(o,l)/r;this.scaleValues.push(i);var a=180*SuperMapAlgoPlot.PlottingUtil.radian(o,l)/Math.PI;a>90?a-=90:a=270+a,this.scaleValues.push(a*(Math.PI/180));var u=180*SuperMapAlgoPlot.PlottingUtil.radian(o,n)/Math.PI;u>90?u-=90:u=270+u,this.scaleValues.push(u*(Math.PI/180)),e=this.scaleValues[0]*r;var p=this.scaleValues[1]*(180/Math.PI)+90,s=this.scaleValues[2]*(180/Math.PI)+90;p=s;f-=4)c=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,f),P.push(c);f!=s&&(c=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,s),P.push(c)),this.controlPoints[2]=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.controlPoints[0],e,e,s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P)}this.finish()}}}])&&w(e.prototype,o),l&&w(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function j(t){"@babel/helpers - typeof";return(j="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})(t)}function R(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[2]=n,this.scaleValues[0]=.5*this.scaleValues[2]}for(var r=this.scaleValues[0]*l,i=this.scaleValues[1],a=this.scaleValues[2]*l,u=.5*r,p=o-2*a-2*u,s=a,c=0;c<2;c++){var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,e);if(-1!==P.index){var f=s+u,g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(f,e);if(-1!==g.index){var y=[],h=[];if(y.push(P.pts),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e[P.index].x,P.pts.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e[P.index].y,P.pts.y)&&P.index+1.7&&(h=.7),this.scaleValues[2]=h}}}}])&&R(e.prototype,o),l&&R(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function C(t){"@babel/helpers - typeof";return(C="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})(t)}function Y(t,e){for(var o=0;o.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[2]=e}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),r=l*n,i=this.scaleValues[2]*n,a=!1;if(a=0===this.scaleValues[1],0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(o)){for(var u=[],p=[],s=0,c=[],P=0;P0&&(c.push(o[P]),p.push(c),c=[]),s++),c.push(o[P]);for(var f=0;f=1)return;this.scaleValues[2]=h}}}}])&&q(e.prototype,o),l&&q(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function tt(t){"@babel/helpers - typeof";return(tt="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})(t)}function et(t,e){for(var o=0;o.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[2]=e}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),r=l*n,i=this.scaleValues[2]*n,a=!1;if(a=0===this.scaleValues[1],0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(o)){for(var u=[],p=[],s=0,c=[],P=0;P0&&(c.push(o[P]),p.push(c),c=[]),s++),c.push(o[P]);for(var f=i,g=0;g.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[2]=e}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),r=l*n,i=this.scaleValues[2]*n,a=!1;if(a=0===this.scaleValues[1],0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(o)){for(var u=[],p=[],s=0,c=[],P=0;P0&&(c.push(o[P]),p.push(c),c=[]),s++),c.push(o[P]);for(var f=i,g=0;g.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[2]=e}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),r=l*n,i=this.scaleValues[2]*n,a=!1;if(a=0===this.scaleValues[1],0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(o)){for(var u=[],p=[],s=0,c=[],P=0;P0&&(c.push(o[P]),p.push(c),c=[]),s++),c.push(o[P]);for(var f=i,g=0;g0&&(e.scaleValues.push(.029615),e.scaleValues.push(1),e.scaleValues.push(.12)),e}return e=r,(o=[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[2]=e}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),r=l*n,i=this.scaleValues[2]*n,a=!1;if(a=0===this.scaleValues[1],0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(o)){for(var u=[],p=[],s=0,c=[],P=0;P0&&(c.push(o[P]),p.push(c),c=[]),s++),c.push(o[P]);for(var f=i,g=0;g.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[2]=e}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),r=l*n,i=this.scaleValues[2]*n,a=!1;if(a=0===this.scaleValues[1],0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(o)){for(var u=[],p=[],s=0,c=[],P=0;P0&&(c.push(o[P]),p.push(c),c=[]),s++),c.push(o[P]);for(var f=i,g=0;g=this.minEditPts){if(!this.isEdit){var e=this.getSubSymbolScaleValue();(e>.3||e<=0)&&(e=.3),this.scaleValues[0]=1.6*this.getSubSymbolScaleValue(),this.scaleValues[2]=this.getSubSymbolScaleValue()}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),r=l*n,i=.6*r,a=this.scaleValues[2]*n,u=!1;u=0===this.scaleValues[1];var p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===p)return;for(var s=[],c=0;c<=p;c+=a){var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,c);if(!(P.index<0)&&(s.push(P.pt),!((P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,c+.65*a)).index<0))){var f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*i,o[P.index+1],P.pt);u?s.push(f.pntLeft):s.push(f.pntRight),(P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,c+.8*a)).index<0||(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*r,o[P.index+1],P.pt),u?s.push(f.pntLeft):s.push(f.pntRight),(P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,c+.5*a)).index<0||(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[P.index+1],P.pt),u?s.push(f.pntLeft):s.push(f.pntRight),(P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,c+.2*a)).index<0||(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*r,o[P.index+1],P.pt),u?s.push(f.pntLeft):s.push(f.pntRight),(P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,c+.35*a)).index<0||(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.5*i,o[P.index+1],P.pt),u?s.push(f.pntLeft):s.push(f.pntRight),(P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,c+a)).index<0||(s.push(P.pt),c>=p&&s.push(o[o.length-1]))))))}}this.scalePoints=[];var g=new SuperMapAlgoPlot.Point(s[3].x,s[3].y);g.isScalePoint=!0,g.tag=0,this.scalePoints.push(g);var y=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,a);-1!=y.index&&this.addScalePoint(y.pt);var h=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(s);SuperMapAlgoPlot.PlottingUtil.clearSamePts(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=1)return;this.scaleValues[2]=h}}}}])&&Rt(e.prototype,o),l&&Rt(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ct(t){"@babel/helpers - typeof";return(Ct="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})(t)}function Yt(t,e){for(var o=0;o.9&&(this.scaleValues[1]=.9)}}}}])&&qt(e.prototype,o),l&&qt(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function te(t){"@babel/helpers - typeof";return(te="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})(t)}function ee(t,e){for(var o=0;ol-l*this.scaleValues[0]-r&&(this.scaleValues[1]=(l-l*this.scaleValues[0]-r)/l)}}}}])&&ae(e.prototype,o),l&&ae(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Pe(t){"@babel/helpers - typeof";return(Pe="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})(t)}function fe(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),l=e[0].x,n=e[0].x,r=e[0].y,i=e[0].y,a=[],u=0;ue[u].x&&(l=e[u].x),ne[u].y&&(r=e[u].y),i0&&(S=.015*o,this.computeSubSymbol(this.subSymbols[0],b,S,0)),g++):(g=0,this.subSymbols.length>0&&(S=.022*o,this.computeSubSymbol(this.subSymbols[1],b,S,0)))}this.finish()}}}}])&&Ae(e.prototype,o),l&&Ae(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Oe(t){"@babel/helpers - typeof";return(Oe="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})(t)}function we(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=e[0].x,l=e[0].x,n=e[0].y,r=e[0].y,i=[],a=0;ae[a].x&&(o=e[a].x),le[a].y&&(n=e[a].y),r=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=e[0].x,l=e[0].x,n=e[0].y,r=e[0].y,i=0;ie[i].x&&(o=e[i].x),le[i].y&&(n=e[i].y),r=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);for(var o=e[0].x,l=e[0].x,n=e[0].y,r=e[0].y,i=0;ie[i].x&&(o=e[i].x),le[i].y&&(n=e[i].y),rl)return o;for(var n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=2*parseInt(l/(1.5*e)),i=0;i0&&o.push(n),o}}])&&Fe(e.prototype,o),l&&Fe(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ke(t){"@babel/helpers - typeof";return(Ke="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})(t)}function qe(t,e){for(var o=0;o2*o.length-2)return;for(var l=0,n=0;n.4&&(u=.4),this.isEdit=!0,2==o.length?this.scaleValues[0]=u:this.scaleValues[2*t]=u}else{var p=-1;p=t%2==0?t/2:(t+1)/2,this.isEdit=!0;var s=(e.x-o[p].x)/l,c=(e.y-o[p].y)/l;this.scaleValues[2*t]=s,this.scaleValues[2*t+1]=c}}}}])&&qe(e.prototype,o),l&&qe(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function to(t){"@babel/helpers - typeof";return(to="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})(t)}function eo(t,e){for(var o=0;o(r*=this.scaleValues[6])?(c=SuperMapAlgoPlot.PlottingUtil.paraLine(p,r/2,!0),P=SuperMapAlgoPlot.PlottingUtil.paraLine(p,r/2,!1)):(c=SuperMapAlgoPlot.PlottingUtil.paraLine(p,f/2,!0),P=SuperMapAlgoPlot.PlottingUtil.paraLine(p,f/2,!1));var g=[];g.push(c[0]),g.push(c[c.length-1]),g.push(P[P.length-1]),g.push(P[0]);var y={surroundLineFlag:!1,fillLimit:!0,strokeColor:"#37CECE",fillColorLimit:!0,fillColor:"#37CECE",fill:!0,fillOpacity:.7,lineColorLimit:!0,color:"#37CECE",surroundLineLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g,y);var h=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(g);y={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0};var S=SuperMapAlgoPlot.PlottingUtil.paraLine(l,o,!1);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,y);for(var b=n*this.scaleValues[1],A=this.getDashLinePts(l,b),d=0;dl)return o;for(var n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=2*parseInt(l/(1.5*e)),i=0;i0&&o.push(n),o}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length1&&(f=1),this.scaleValues[5]=f)}else this.scaleValues[5]=P/n;else if(1===t){i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n*this.scaleValues[5],l),r=SuperMapAlgoPlot.PlottingUtil.distance(i.pts,e);var g=this.scaleValues[7]*n;this.scaleValues[6]=r/g}}}}])&&ao(e.prototype,o),l&&ao(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Po(t){"@babel/helpers - typeof";return(Po="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})(t)}function fo(t,e){for(var o=0;o.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[1]=.1*e}this.components.length=0,this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var o=this.scaleValues[0],l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=l*o,r=l*this.scaleValues[1];n<2*r&&(r=.5*n);for(var i={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0},a=0,u=n;u(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length)return;for(var l,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=-1,i=0,a=0;as&&(r=a,l=p.projectPoint,i=s)}}if(-1==r||r>o.length-1)return;var c=0;for(a=0;an)return;var y=c/n;this.scaleValues[0]=y}}}])&&ol(e.prototype,o),l&&ol(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function al(t){"@babel/helpers - typeof";return(al="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})(t)}function ul(t,e){for(var o=0;oo.length)return;var l=new SuperMapAlgoPlot.Point(o[0].x,o[0].y),n=new SuperMapAlgoPlot.Point(o[1].x,o[1].y),r=SuperMapAlgoPlot.PlottingUtil.distance(l,n);if(0===r)return;var i=new SuperMapAlgoPlot.Point((l.x+n.x)/2,(l.y+n.y)/2);if(0===t){var a=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/r;this.scaleValues[0]=a,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l,n,e)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}}])&&ul(e.prototype,o),l&&ul(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function fl(t){"@babel/helpers - typeof";return(fl="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})(t)}function gl(t,e){for(var o=0;o.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var l=this.getLinePts(e,this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((l.startPt.x+l.endPt.x)/2,(l.startPt.y+l.endPt.y)/2),r=SuperMapAlgoPlot.PlottingUtil.dirAngle(l.startPt,l.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,i=SuperMapAlgoPlot.PlottingUtil.distance(l.startPt,l.endPt);0o.x&&(x=!1);var B,C=(E=.1*l)+(_=.12*l/2);R=1==x?(B=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(C,o,e)).pntRight:(B=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(C,o,e)).pntLeft;var Y,I,D,N,k,z,F,W,G=[];G.push(R),G.push(new SuperMapAlgoPlot.Point(R.x+_,R.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,G,{lineTypeLimit:!0,surroundLineLimit:!0}),1==x?(Y=(B=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.85*E,o,e)).pntRight,N=B.pntLeft,I=(B=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(E,Y,N)).pntRight,D=B.pntLeft):(Y=(B=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.85*E,o,e)).pntLeft,N=B.pntRight,I=(B=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(E,Y,N)).pntLeft,D=B.pntRight),(G=[]).push(Y),G.push(I),G.push(D),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,G,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0}),B=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*_,I,D),W=1==x?B.pntRight:B.pntLeft,B=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*_,D,I),z=1==x?B.pntLeft:B.pntRight;var J=SuperMapAlgoPlot.PlottingUtil.intersectLines(Y,z,D,I);J.isIntersectLines&&(k=J.intersectPoint,(J=SuperMapAlgoPlot.PlottingUtil.intersectLines(Y,W,D,I)).isIntersectLines&&(F=J.intersectPoint,(G=[]).push(k),G.push(z),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,G,{lineTypeLimit:!0,surroundLineLimit:!0}),(G=[]).push(F),G.push(W),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,G,{lineTypeLimit:!0,surroundLineLimit:!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 o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l,n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),r=o[0].clone(),i=o[1].clone(),a=e.clone();if(0==t){var u=SuperMapAlgoPlot.PlottingUtil.distance(a,r)/n;this.scaleValues[0]=u}else if(1==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var p=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[1]=p;var s=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[3]=s}else if(2==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var c=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[2]=c;var P=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[4]=P}}}}])&&dl(e.prototype,o),l&&dl(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function wl(t){"@babel/helpers - typeof";return(wl="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})(t)}function Ul(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=.5*l}var n=o*this.scaleValues[0],r=e[e.length-1];if(e.length>2){for(var i=-1,a=e.length-2;a>=0;a--)if(n=2?this.addArrow(p[c],this.scaleValues[0]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[0]));var P=e[e.length-2],f=e[e.length-1],g=(SuperMapAlgoPlot.PlottingUtil.radian(P,f),Math.PI,SuperMapAlgoPlot.PlottingUtil.polylineDistance(e)*this.scaleValues[0]),y=SuperMapAlgoPlot.PlottingUtil.findPoint(e[e.length-1],e[e.length-2],g,0);this.addScalePoint(y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;if(0!=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(this.minEditPts>o.length)return;var r=.5*SuperMapAlgoPlot.PlottingUtil.distance(e,l[l.length-1])/n;if(.5=2?this.addArrow(h[b],this.scaleValues[4]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[4]));this.addScalePoint(c,0);var A=[];A.push(c),A.push(f.pts);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,A,{lineTypeLimit:!0,surroundLineLimit:!0});a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[4];var d=SuperMapAlgoPlot.PlottingUtil.linePnt(e[e.length-1],e[e.length-2],a);this.addScalePoint(d,0),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0===t){for(var r=0,i=-1,a=0;a.3||o<=0)&&(o=.3),this.scaleValues[0]=.5*o,this.scaleValues[1]=o,this.scaleValues[this.scaleValues.length-1]=.5*this.getSubSymbolScaleValue()}for(var l=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(l,e),r=0;r=2?this.addArrow(n[i],this.scaleValues[3]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[3]));for(var a=this.scaleValues[0],u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),p=a*u,s=this.scaleValues[1]*u,c=0,P=.01*u,f=P,g=0;f<=u;f+=s,g++){c=f+P;var y=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,c);if(-1===y.index)return;var h=[],S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,e[y.index],y.pt);h.push(new SuperMapAlgoPlot.Point(S.pntLeft.x,S.pntLeft.y)),h.push(new SuperMapAlgoPlot.Point(S.pntRight.x,S.pntRight.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0,surroundLineLimit:!0}),0===g?this.addScalePoint(h[0],0):1===g&&this.addScalePoint(y.pt,1)}this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=.01*n;if(0===t){var i=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,r);if(-1===i.index)return;var a=SuperMapAlgoPlot.PlottingUtil.distance(e,i.pt);this.scaleValues[0]=a/n}else if(1===t){var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,r);if(-1===u.index)return;var p=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,l);if(-1===p.index)return;for(var s=0,c=u.index+1;c.93&&(this.scaleValues[1]=.93)}}}}])&&Il(e.prototype,o),l&&Il(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Fl(t){"@babel/helpers - typeof";return(Fl="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})(t)}function Wl(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[1]=l,this.scaleValues[2]=.5*l}var n=this.getLinePts(e,this.scaleValues[1],this.scaleValues[0]),r=[];r.push(0),r.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,n.startPt)/o),r.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,n.endPt)/o),r.push(1);for(var i=this.mergeDashLine(this.dashLines,r),a=this.computeDashLine(i,e),u=0;u=2?this.addArrow(a[p],this.scaleValues[this.scaleValues.length-1]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[2]));var s,c,P,f,g,y,h,S,b,A,d,M,v,m=n.startPt.clone(),O=n.endPt.clone(),w=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),U=SuperMapAlgoPlot.PlottingUtil.distance(m,O),L=SuperMapAlgoPlot.PlottingUtil.radian(m,O)*SuperMapAlgoPlot.PlottingUtil.RTOD;s=new SuperMapAlgoPlot.Point(0,0),c=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0),f=new SuperMapAlgoPlot.Point(0,0),g=new SuperMapAlgoPlot.Point(0,0),y=new SuperMapAlgoPlot.Point(0,0),h=new SuperMapAlgoPlot.Point(0,0),S=new SuperMapAlgoPlot.Point(0,0),b=new SuperMapAlgoPlot.Point(0,0),A=new SuperMapAlgoPlot.Point(0,0),d=new SuperMapAlgoPlot.Point(0,0),M=new SuperMapAlgoPlot.Point(0,0),v=new SuperMapAlgoPlot.Point(0,0),m.x>=O.x?(s.x=.25*U,s.y=.25*-U,c.x=.5*-U,c.y=.25*-U,P.x=.5*-U,P.y=.25*U,f.x=.5*U,f.y=.25*U,g.x=.5*U,g.y=0,y.x=.25*-U,y.y=.125*-U,h.x=0,h.y=.125*U,S.x=0,S.y=.125*-U,b.x=.25*U,b.y=.2*U,A.x=.25*-U,A.y=.25*-U,d.x=.375*-U,d.y=.5*-U,M.x=.02*-U,M.y=.25*-U,v.x=.1*U,v.y=.5*-U):(s.x=.25*U,s.y=.25*U,c.x=.5*-U,c.y=.25*U,P.x=.5*-U,P.y=.25*-U,f.x=.5*U,f.y=.25*-U,g.x=.5*U,g.y=0,y.x=.25*U,y.y=.125*-U,h.x=0,h.y=.125*U,S.x=0,S.y=.125*-U,b.x=.25*-U,b.y=.125*U,A.x=.25*-U,A.y=.25*U,d.x=.375*-U,d.y=.5*U,M.x=.02*U,M.y=.25*U,v.x=.15*U,v.y=.5*U);var V=[],T=[],j=[],R=[],_=[],E=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,g,L),x=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,f,L),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,P,L),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,c,L),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,s,L),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,y,L),D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,h,L),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,S,L),k=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,b,L),z=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,A,L),F=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,d,L),W=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,M,L),G=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(w,v,L);V.push(E),V.push(x),V.push(B),V.push(C),V.push(Y),T.push(I),T.push(D),T.push(N),T.push(k),j.push(z),j.push(F),R.push(W),R.push(G),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,V,{lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,T,{lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,j,{lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,R,{lineTypeLimit:!0,surroundLineLimit:!0},!0);var J=.3*SuperMapAlgoPlot.PlottingUtil.distance(N,k),H=180*SuperMapAlgoPlot.PlottingUtil.dirAngle(k,N)/Math.PI,K=.5*J,q=SuperMapAlgoPlot.PlottingUtil.circlePoint(k,K,K,H+15),Q=SuperMapAlgoPlot.PlottingUtil.circlePoint(k,K,K,H-15);_.push(Q),_.push(k),_.push(q);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,_,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},!0);var Z=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(o*this.scaleValues[0],e),X=SuperMapAlgoPlot.PlottingUtil.circlePoint(Z.pts,.5*U,.5*U,L+90);this.addScalePoint(Z.pts,0),this.addScalePoint(X,1);var $=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[2],tt=SuperMapAlgoPlot.PlottingUtil.linePnt(e[e.length-1],e[e.length-2],$);this.addScalePoint(tt,2),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length1-(P+this.scaleValues[2])&&(c=1-(P+this.scaleValues[2])),this.scaleValues[0]=c}else if(1==t){var f=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n*this.scaleValues[0],l),g=SuperMapAlgoPlot.PlottingUtil.distance(f.pts,e)/n;g>=.3&&(g=.3),this.scaleValues[0]1-(g+this.scaleValues[2])?(this.scaleValues[0].3||o<=0)&&(o=.3),this.scaleValues[1]=o,this.scaleValues[2]=.5*o}var l=this.getLinePts(e,this.scaleValues[1],this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((l.startPt.x+l.endPt.x)/2,(l.startPt.y+l.endPt.y)/2),r=SuperMapAlgoPlot.PlottingUtil.dirAngle(l.startPt,l.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,i=SuperMapAlgoPlot.PlottingUtil.distance(l.startPt,l.endPt);this.addSubSymbols(n,i,r);for(var a=[],u=0;u<=l.startIndex;u++)a.push(e[u]);a.push(l.startPt);var p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),s=[];s.push(0),s.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,l.startPt)/p),s.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,l.endPt)/p),s.push(1);for(var c=this.mergeDashLine(this.dashLines,s),P=this.computeDashLine(c,e),f=0;f0&&this.computeSubSymbol(this.subSymbols[0],t,e,o-180)}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length1-P-this.scaleValues[2]&&(c=1-P-this.scaleValues[2]),this.scaleValues[0]=c}else if(1===t){var f=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n*this.scaleValues[0],l),g=SuperMapAlgoPlot.PlottingUtil.distance(f.pts,e)/n;g>=.3&&(g=.3),this.scaleValues[0]1-g-this.scaleValues[2]?(this.scaleValues[0]0&&this.computeSubSymbol(this.subSymbols[0],t,e,o-90)}}])&&pn(e.prototype,o),l&&pn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function gn(t){"@babel/helpers - typeof";return(gn="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})(t)}function yn(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],t,e,o-90)}}])&&yn(e.prototype,o),l&&yn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function dn(t){"@babel/helpers - typeof";return(dn="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})(t)}function Mn(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}}}])&&Mn(e.prototype,o),l&&Mn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Un(t){"@babel/helpers - typeof";return(Un="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})(t)}function Ln(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}}}])&&Ln(e.prototype,o),l&&Ln(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _n(t){"@babel/helpers - typeof";return(_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})(t)}function En(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[1]=l,this.scaleValues[2]=.6*this.getSubSymbolScaleValue()}var n=this.getLinePts(e,this.scaleValues[1],this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);0=0&&A[A.length-1].push(h);for(var d=0;d1-P&&(c=1-P),this.scaleValues[0]=c}else if(!0===e.isScalePoint&&1==t){var f=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n*this.scaleValues[0],l),g=SuperMapAlgoPlot.PlottingUtil.distance(f.pts,e)/n;g>=.3&&(g=.3),this.scaleValues[0]1-g?(this.scaleValues[0]=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),0==this.dashLines.length)this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);else for(var o=this.mergeDashLine(this.dashLines,[]),l=this.computeDashLine(o,e),n=0;n0){if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],c,s,0),this.addScalePoint(c);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,0);this.addScalePoint(P)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t)n=(e.x-i.x)/a,this.scaleValues[0]=n,r=(e.y-i.y)/a,this.scaleValues[1]=r;else if(1===t){n=this.scaleValues[0],r=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(i.x+a*n,i.y+a*r),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e)/a;this.scaleValues[2]=p}}}}])&&Gn(e.prototype,o),l&&Gn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qn(t){"@babel/helpers - typeof";return(Qn="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})(t)}function Zn(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o={fillLimit:!0,fill:!1,surroundLineFlag:!1};if(0==this.dashLines.length)this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,o);else for(var l=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(l,e),r=0;r.2||u<=0)&&(u=.2),this.scaleValues[0]=u}var p=this.scaleValues[0],s=this.scaleValues[2],c=this.scaleValues[3],P=a*p,f=new SuperMapAlgoPlot.Point(i.x+a*s,i.y+a*c);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],f,P,0),this.addScalePoint(f);var g=P,y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,g,g,90);this.addScalePoint(y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t)n=(e.x-i.x)/a,this.scaleValues[2]=n,r=(e.y-i.y)/a,this.scaleValues[3]=r;else if(1===t){n=this.scaleValues[2],r=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(i.x+a*n,i.y+a*r),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e)/a;this.scaleValues[0]=p}}}}])&&Zn(e.prototype,o),l&&Zn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function or(t){"@babel/helpers - typeof";return(or="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})(t)}function lr(t,e){for(var o=0;oo.length)return;var l,n,r,i=[];if(2==o.length){l=o[0],n=o[1];var a=SuperMapAlgoPlot.PlottingUtil.distance(l,n),u=180*SuperMapAlgoPlot.PlottingUtil.radian(l,n)/Math.PI;r=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,a,a,u+60),i.push(l),i.push(n),i.push(r)}else i=i.concat(o);l=i[0],n=i[1],r=i[2];SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(i);i.push(i[0]);var p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(i),s=e;if(0==t)this.scaleValues[0]=e;else if(1==t){var c=this.scaleValues[0],P=SuperMapAlgoPlot.PlottingUtil.distance(c,s)/p;this.scaleValues[2]=P;var f=180*SuperMapAlgoPlot.PlottingUtil.radian(c,s)/Math.PI;this.scaleValues[3]=f}}}},{key:"ComputeSubSymbolPt",value:function(t,e,o,l){var n,r,i=o[0],a=o[1],u=o[2],p=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(u,i,a)*t,s=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(a,i,u)*e,c=[];if(SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(i,a,l)?((n=[]).push(i),n.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(n,p,!1)):((n=[]).push(i),n.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(n,p,!0)),SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(i,u,l)?((n=[]).push(i),n.push(u),r=SuperMapAlgoPlot.PlottingUtil.paraLine(n,s,!1)):((n=[]).push(i),n.push(u),r=SuperMapAlgoPlot.PlottingUtil.paraLine(n,s,!0)),2>c.length||2>r.length)return l;var P=SuperMapAlgoPlot.PlottingUtil.intersectLines(c[0],c[1],r[0],r[1]);return P.isIntersectLines?P.intersectPoint:l}}])&&pr(e.prototype,o),l&&pr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function gr(t){"@babel/helpers - typeof";return(gr="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})(t)}function yr(t,e){for(var o=0;oo.length)return;var l,n,r,i,a,u,p,s=[];2==o.length?(l=o[0],n=o[1],a=SuperMapAlgoPlot.PlottingUtil.distance(l,n),i=180*SuperMapAlgoPlot.PlottingUtil.radian(l,n)/Math.PI,r=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,a,a,i+60),s.push(l),s.push(n),s.push(r)):s=s.concat(o),l=s[0],n=s[1],r=s[2],s.push(s[0]);var c=SuperMapAlgoPlot.PlottingUtil.polylineDistance(s),P=e;if(0===t)a=SuperMapAlgoPlot.PlottingUtil.distance(P,s[0]),this.scaleValues[0]=a/c;else if(1===t){u=SuperMapAlgoPlot.PlottingUtil.distance(P,s[0])/c,this.scaleValues[1]=u,i=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(l,n,r)/Math.PI,0<=(p=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(l,n,P)/Math.PI/i)&&1>=p&&(this.scaleValues[2]=p)}else if(2===t){u=this.scaleValues[1],p=this.scaleValues[2];var f,g=c*u,y=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(l,n,r)/Math.PI*p,h=180*SuperMapAlgoPlot.PlottingUtil.radian(l,n)/Math.PI,S=h-y,b=h+y,A=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,g,g,S),d=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,g,g,b);f=SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(s,A)?A:d;var M=2*SuperMapAlgoPlot.PlottingUtil.distance(P,f)/c;this.scaleValues[3]=M;var v=180*SuperMapAlgoPlot.PlottingUtil.radian(f,P)/Math.PI;this.scaleValues[4]=v}}}},{key:"ComputeSubSymbolPt",value:function(t,e,o,l){var n,r,i=o[0],a=o[1],u=o[2],p=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(u,i,a)*t,s=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(a,i,u)*e,c=[];if(SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(i,a,l)?((n=[]).push(i),n.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(n,p,!1)):((n=[]).push(i),n.push(a),c=SuperMapAlgoPlot.PlottingUtil.paraLine(n,p,!0)),SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(i,u,l)?((n=[]).push(i),n.push(u),r=SuperMapAlgoPlot.PlottingUtil.paraLine(n,s,!1)):((n=[]).push(i),n.push(u),r=SuperMapAlgoPlot.PlottingUtil.paraLine(n,s,!0)),2>c.length||2>r.length)return l;var P=SuperMapAlgoPlot.PlottingUtil.intersectLines(c[0],c[1],r[0],r[1]);return P.isIntersectLines?P.intersectPoint:l}},{key:"createArcPts",value:function(t,e){for(var o=[],l=[],n=0;nMath.abs(l[r]-l[i]))for(var u=0;u<2;u++){var p,s,c;0==u?(c=r,p=SuperMapAlgoPlot.PlottingUtil.radian(t[r],t[i])*SuperMapAlgoPlot.PlottingUtil.RTOD,s=Math.acos((a*a+l[r]*l[r]-l[i]*l[i])/(2*a*l[r]))*SuperMapAlgoPlot.PlottingUtil.RTOD):(c=i,p=SuperMapAlgoPlot.PlottingUtil.radian(t[i],t[r])*SuperMapAlgoPlot.PlottingUtil.RTOD,s=Math.acos((a*a+l[i]*l[i]-l[r]*l[r])/(2*a*l[i]))*SuperMapAlgoPlot.PlottingUtil.RTOD);var P=p-s,f=p+s,g=P<0&&f>0||P>360||f>360;P=this.adjustAngle(P),f=this.adjustAngle(f);for(var y=o[c].length-1;y>=0;y--)if(g){if(f>o[c][y].End||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(f,o[c][y].End)){o[c].splice(y,1);continue}if(f>o[c][y].Start&&(o[c][y].Start=f),Po[c][y].End)o[c].splice(y,1);else if(P>o[c][y].Start&&fo[c][y].End)continue;if(P>o[c][y].Start&&(o[c][y].End=P),f=0;S--){for(var b=this.adjustAngle(o[h][S].Start),A=this.adjustAngle(o[h][S].End);A360;)t-=360;for(;t<0;)t+=360;return t}},{key:"GetCirclePts",value:function(t,e,o,l){var n=180*SuperMapAlgoPlot.PlottingUtil.radian(t,e)/Math.PI,r=180*SuperMapAlgoPlot.PlottingUtil.radian(t,o)/Math.PI,i=n;r>n&&(i=r);for(var a=[],u=i;u<360+i;u+=4)90==u&&(u=91),a.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,l,l,u));return a.push[0],a}},{key:"CreatArc",value:function(t,e,o){for(var l=[],n=[],r=0;r1&&l.push(n),n=[]):n.push(i)}n.length>1&&l.push(n);for(var a=0;a1&&l.push(n),n=[]):n.push(i)}n.length>1&&l.push(n);for(var a=[],u=0;ua){var u=new SuperMapAlgoPlot.Point(l.x,l.y);l=new SuperMapAlgoPlot.Point(i.x,i.y),i=new SuperMapAlgoPlot.Point(u.x,u.y),n=a,e[o]=l,e[r]=i}}return e}}])&&yr(e.prototype,o),l&&yr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function dr(t){"@babel/helpers - typeof";return(dr="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})(t)}function Mr(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=e[0],r=e[1],i=e[e.length-2],a=e[e.length-1],u=o*this.scaleValues[0]*.6,p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,r,n),s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,i,a),c=p.pntLeft,P=s.pntRight,f=[];f.push(n),f.push(c);for(var g=new SuperMapAlgoPlot.Point((n.x+c.x)/2,(n.y+c.y)/2),y=SuperMapAlgoPlot.PlottingUtil.polylineDistance(f)/2,h=[],S=180*SuperMapAlgoPlot.PlottingUtil.radian(r,n)/Math.PI,b=360+S;b>=270+S;b-=3)h.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(g,y,y,b));var A=[];A.push(a),A.push(P);var d=[];d.push(a),d.push(P);for(var M=new SuperMapAlgoPlot.Point((a.x+P.x)/2,(a.y+P.y)/2),v=SuperMapAlgoPlot.PlottingUtil.polylineDistance(d)/2,m=[],O=180*SuperMapAlgoPlot.PlottingUtil.radian(a,P)/Math.PI,w=180+O;w>=90+O;w-=3)m.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(M,v,v,w));var U=[];U=(U=(U=U.concat(h)).concat(e)).concat(m),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,U),this.finish()}}}])&&Mr(e.prototype,o),l&&Mr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ur(t){"@babel/helpers - typeof";return(Ur="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})(t)}function Lr(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[2]=n,this.scaleValues[0]=.5*this.scaleValues[2]}SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1]),SuperMapAlgoPlot.PlottingUtil.RTOD;for(var r=this.scaleValues[0]*l,i=this.scaleValues[1],a=this.scaleValues[2]*l,u=.5*r,p=(o-2*a-3*u)/2,s=a,c=0;c<3;c++){var P=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,s);if(-1==P.index)return;var f=s+u,g=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,f);if(-1==g.index)return;var y=[],h=[];if(y.push(P.pt),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e[P.index].x,P.pt.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e[P.index].y,P.pt.y)&&P.index+1.7&&(S=.7),this.scaleValues[2]=S}}}}])&&Lr(e.prototype,o),l&&Lr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _r(t){"@babel/helpers - typeof";return(_r="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})(t)}function Er(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);for(var l=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(l,o),r=0;r=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);for(var l=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(l,o),r=0;r=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);for(var n=this.mergeDashLine(this.dashLines,[]),r=this.computeDashLine(n,l),i=0;i=2&&this.controlPoints.length0){var o;if(null==this.subSymbols[0].symbolData)return;o=Math.max(this.subSymbols[0].symbolData.symbolSize.x,this.subSymbols[0].symbolData.symbolSize.y);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=l*this.scaleValues[4],r=l*this.scaleValues[5],i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,t),u=SuperMapAlgoPlot.PlottingUtil.radian(a.pts,i.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=100*SuperMapAlgoPlot.PlottingUtil.distance(i.pts,a.pts)/o,s=new SuperMapAlgoPlot.Point((a.pts.x+i.pts.x)/2,(i.pts.y+a.pts.y)/2);if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],s,p,u),i.pts.isScalePoint=!0,i.pts.tag=this.scalePoints.length,this.scalePoints.push(i.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 o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).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)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var l=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),n=SuperMapAlgoPlot.PlottingUtil.clonePoints(o);n.splice(0,2),n.unshift(l);var r=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,n),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(3===t&&null==r.pt&&(r.pt=l.clone()),-1==r.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMapAlgoPlot.PlottingUtil.clonePoints(n);a.splice(0,r.index+1),a.unshift(r.pt);var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(a);i.5&&(this.scaleValues[4]=.5)}}}}}])&&Zr(e.prototype,o),l&&Zr(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function oi(t){"@babel/helpers - typeof";return(oi="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})(t)}function li(t,e){for(var o=0;o=0;--v)M.push(b[v]);for(var m=this.mergeDashLine(this.dashLines,[]),O=this.computeDashLine(m,[M[0],M[1]]),w=0;w=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l,n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),r=o[0].clone(),i=o[1].clone(),a=e.clone();if(0==t){var u=SuperMapAlgoPlot.PlottingUtil.distance(a,r)/n;this.scaleValues[0]=u}else if(1==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var p=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[1]=p;var s=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[3]=s}else if(2==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var c=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[2]=c;var P=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[4]=P}}}}])&&li(e.prototype,o),l&&li(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ui(t){"@babel/helpers - typeof";return(ui="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})(t)}function pi(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[1]=l,this.scaleValues[2]=.6*l}this.scaleValues.length<1&&(this.scaleValues=[],this.scaleValues.push(.5),this.scaleValues.push(.05),this.scaleValues.push(.025));var n=this.getLinePts(e,this.scaleValues[1],this.scaleValues[0]),r=this.getLinePts(e,this.scaleValues[2],this.scaleValues[0]),i=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt),a=e[0],u=e[1],p=e[e.length-2],s=e[e.length-1],c=o*this.scaleValues[2],P=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(c,u,a),f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(c,p,s),g=P.pntLeft,y=f.pntLeft,h=[];h.push(s),h.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var S=[];S.push(g),S.push(a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S);var b=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),A=[];A.push(0),A.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,n.startPt)/b),A.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,n.endPt)/b),A.push(1);for(var d=this.mergeDashLine(this.dashLines,A),M=this.computeDashLine(d,e),v=0;v=.3&&(i=.3),this.scaleValues[0]1-i?(this.scaleValues[0]1-g&&(f=1-g),this.scaleValues[0]=f}else if(2==t){var y=SuperMapAlgoPlot.PlottingUtil.distance(e,l[0])/n;this.scaleValues[2]=y}else if(3==t){y=SuperMapAlgoPlot.PlottingUtil.distance(e,l[l.length-1])/n;this.scaleValues[2]=y}}}}])&&pi(e.prototype,o),l&&pi(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function gi(t){"@babel/helpers - typeof";return(gi="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})(t)}function yi(t,e){for(var o=0;othis.minEditPts){for(var V,T,j,R,_,E=1;E=0?(S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(H,t[K],q)).pntRight:(S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(H,t[K],q)).pntLeft;var Q=SuperMapAlgoPlot.PlottingUtil.linePnt(q,w,H),Z=.3*H,X=SuperMapAlgoPlot.PlottingUtil.linePnt(Q,q,Z);(S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.3*Z,Q,X)).pntLeft,S.pntRight;(v=[]).push(Q),v.push(q),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,{surroundLineLimit:!0,lineTypeLimit:!0});var $=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(v,.3*H,this.arrowHeadType),tt=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL;this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL&&this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID&&this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE&&this.arrowHeadType!==SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW||(tt=SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL);this.addCell(tt,$,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0},!0),this.addScalePoint(Q),this.addScalePoint(p);var et=SuperMapAlgoPlot.PlottingUtil.radian(a.pt,u.pt)*SuperMapAlgoPlot.PlottingUtil.RTOD+90,ot=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,.5*r,.5*r,et);this.addScalePoint(ot),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l,n,r,i,a,u,p,s,c,P,f=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),g=o.length,y=e;if(t>=0&&tP&&(n=M,i=p,r=P));if(-1==n||n>o.length-1)return;s=0;for(var v=0;vf)return;var w=s/f;this.scaleValues[g+1]=w;var U,L=this.scaleValues.length;l=f*this.scaleValues[L-5],U=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[n],o[n+1],y)?r/l:-Math.abs(r/l),this.scaleValues[g+2]=U}else if(t===g+2){n=-1,r=0,i=new SuperMapAlgoPlot.Point(0,0);for(var V=0;VP&&(n=V,i=p,r=P));if(-1===n||n>o.length-1)return;s=0;for(var T=0;Tf)return;.1*fs&&(this.scaleValues[this.scaleValues.length-2]=s/f)}else if(t===g+3){var j=this.scaleValues[this.scaleValues.length-2]*f;if(-1===(u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,j)).index)return;var R=2*SuperMapAlgoPlot.PlottingUtil.distance(u.pt,e)/f;R>.15&&(R=.15),this.scaleValues[this.scaleValues.length-1]=R}}}}])&&yi(e.prototype,o),l&&yi(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function di(t){"@babel/helpers - typeof";return(di="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})(t)}function Mi(t,e){for(var o=0;o.3||u<=0)&&(u=.3),this.scaleValues[0]=u;var p=1.5*this.scaleValues[0]*r,s=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(p,e[i.index],a),c=[];c.push(s.pntLeft),c.push(a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,null,!0),this.finish()}}}}])&&Mi(e.prototype,o),l&&Mi(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ui(t){"@babel/helpers - typeof";return(Ui="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})(t)}function Li(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.dirAngle(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);0=0&&s[s.length-1].push(d);for(var c=0;c.5&&(i=.5),this.scaleValues[0]=i}}}}])&&Li(e.prototype,o),l&&Li(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _i(t){"@babel/helpers - typeof";return(_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})(t)}function Ei(t,e){for(var o=0;o=0;f--)r.push(new SuperMapAlgoPlot.Point(e[f].x,e[f].y));r.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,l,l,c),P=new SuperMapAlgoPlot.Point(i.x,i.y),(a=[]).push(t[0]),a.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}var g=new SuperMapAlgoPlot.Point(0,0);if(3<=t.length){for(e=[],o=new SuperMapAlgoPlot.Point(t[2].x,t[2].y),l=SuperMapAlgoPlot.PlottingUtil.distance(p,o),n=0,n=c-u;n0&&(y=[]));(r=[]).push(t[0]);for(var h=e.length-1;h>=0;h--)r.push(new SuperMapAlgoPlot.Point(e[h].x,e[h].y));r.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});for(var S=new SuperMapAlgoPlot.Point(t[1].x,t[1].y),b=SuperMapAlgoPlot.PlottingUtil.distance(p,S)*this.scaleValues[0],A=[],d=90;d<=270;d+=3)A.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,b,b,c+d));r=[];for(var M=A.length-1;M>=0;M--)r.push(new SuperMapAlgoPlot.Point(A[M].x,A[M].y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),(r=[]).push(new SuperMapAlgoPlot.Point(A[0].x,A[0].y)),r.push(new SuperMapAlgoPlot.Point(e[e.length-1].x,e[e.length-1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),(r=[]).push(new SuperMapAlgoPlot.Point(e[0].x,e[0].y)),r.push(new SuperMapAlgoPlot.Point(A[A.length-1].x,A[A.length-1].y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,l,l,c),g=new SuperMapAlgoPlot.Point(i.x,i.y),(a=[]).push(P),a.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}var v=new SuperMapAlgoPlot.Point(0,0);if(4<=t.length){for(e=[],o=new SuperMapAlgoPlot.Point(t[3].x,t[3].y),l=SuperMapAlgoPlot.PlottingUtil.distance(p,o),n=0,n=c-u;n<=c+u;n+=3)e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,l,l,n));SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,c+u)&&(n=c+u,e.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(p,l,l,n))),(r=[]).push(t[0]);for(var m=e.length-1;m>=0;m--)r.push(new SuperMapAlgoPlot.Point(e[m].x,e[m].y));r.push(t[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER}),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,l,l,c),v=new SuperMapAlgoPlot.Point(i.x,i.y),(a=[]).push(g),a.push(v),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a,{surroundLineFlag:!1,lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER})}if(3>t.length)this.addScalePoint(t[0]);else{var O=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0],w=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,O,O,c+180);this.addScalePoint(w,0)}var U=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[t.length-1]),L=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,U,U,c+u);this.addScalePoint(L,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o,l=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l),0==t){if(3>l.length)return;var n=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),r=new SuperMapAlgoPlot.Point(e.x,e.y),i=SuperMapAlgoPlot.PlottingUtil.distance(n,r),a=new SuperMapAlgoPlot.Point(l[1].x,l[1].y);if((o=i/SuperMapAlgoPlot.PlottingUtil.distance(n,a))>=2.5)return;this.scaleValues[0]=o}else if(1==t){var u=new SuperMapAlgoPlot.Point(l[0].x,l[0].y),p=new SuperMapAlgoPlot.Point(l[l.length-1].x,l[l.length-1].y),s=SuperMapAlgoPlot.PlottingUtil.radian(u,p),c=new SuperMapAlgoPlot.Point(e.x,e.y);if(o=SuperMapAlgoPlot.PlottingUtil.radian(u,c)-s,(o=Math.abs(o))>Math.PI/2&&o<3*Math.PI/2)return;o>3*Math.PI/2&&o<=2*Math.PI&&(o=2*Math.PI-o),this.scaleValues[1]=Math.abs(o)}}}}])&&Gi(e.prototype,o),l&&Gi(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qi(t){"@babel/helpers - typeof";return(Qi="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})(t)}function Zi(t,e){for(var o=0;o270&&p<360&&(p=360-p),p>90)return;this.scaleValues[1]=p*Math.PI/180}}}}])&&Zi(e.prototype,o),l&&Zi(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function oa(t){"@babel/helpers - typeof";return(oa="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})(t)}function la(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var o={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER},l=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(l,e),r=0;r=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var o=this.mergeDashLine(this.dashLines,[]),l=this.computeDashLine(o,e),n=0;n0&&this.computeSubSymbol(this.subSymbols[0],i,a,0),this.scalePoints=[];var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,a,a,0);this.addScalePoint(u),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=[];l=3>=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/n;this.scaleValues[0]=i}}}}])&&pa(e.prototype,o),l&&pa(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ga(t){"@babel/helpers - typeof";return(ga="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})(t)}function ya(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],p,r*i,e*SuperMapAlgoPlot.PlottingUtil.RTOD);var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,u,u,e*SuperMapAlgoPlot.PlottingUtil.RTOD);this.subSymbols.length>1&&this.computeSubSymbol(this.subSymbols[1],s,r*i,e*SuperMapAlgoPlot.PlottingUtil.RTOD),this.scalePoints=[];var c=e*SuperMapAlgoPlot.PlottingUtil.RTOD,P=r*i,f=t[0].clone(),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,P,P,c);this.addScalePoint(g),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o))[0].clone(),n=o[1].clone(),r=e.clone(),i=SuperMapAlgoPlot.PlottingUtil.distance(l,n),a=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(r,l,n)/i;if(a<0||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0))return;this.scaleValues[0]=a,SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(l,n,r)?this.scaleValues[1]=1:this.scaleValues[1]=0}}}])&&ya(e.prototype,o),l&&ya(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function da(t){"@babel/helpers - typeof";return(da="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})(t)}function Ma(t,e){for(var o=0;o=2&&this.controlPoints.lengthP&&(i=p,u=c,a=P)}}if(-1==i||i>l.length-1)return;n=0;for(var f=0;fr)return;var g=n/r;this.scaleValues[0]=g}else if(1===t){var y=r*this.scaleValues[0],h=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,y);if(-1===h.index)return;var S=h.pt,b=l[h.index],A=l[h.index+1],d=SuperMapAlgoPlot.PlottingUtil.radian(b,A),M=SuperMapAlgoPlot.PlottingUtil.radian(S,e)-d;this.scaleValues[1]=M;var v=(n=SuperMapAlgoPlot.PlottingUtil.distance(S,e))/r;this.scaleValues[2]=v}}}}])&&La(e.prototype,o),l&&La(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _a(t){"@babel/helpers - typeof";return(_a="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})(t)}function Ea(t,e){for(var o=0;o.2||l<=0)&&(l=.2),this.scaleValues[2]=l,this.scaleValues[4]=l}var n=o*this.scaleValues[0],r=180*this.scaleValues[1]/Math.PI,i=o*this.scaleValues[2],a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,n);if(-1!==a.index){var u=a.pt,p=new SuperMapAlgoPlot.Point(e[a.index].x,e[a.index].y),s=new SuperMapAlgoPlot.Point(e[a.index+1].x,e[a.index+1].y),c=SuperMapAlgoPlot.PlottingUtil.dirAngle(p,s)*SuperMapAlgoPlot.PlottingUtil.RTOD,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,i,i,c+r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P],{surroundLineLimit:!0,lineTypeLimit:!0});var f=SuperMapAlgoPlot.PlottingUtil.dirAngle(u,P)*SuperMapAlgoPlot.PlottingUtil.RTOD,g=SuperMapAlgoPlot.PlottingUtil.findPoint(P,u,.15*i,0),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.2*i,.2*i,f-157.5),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.2*i,.2*i,f+157.5);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[y,P,h,g],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});var S=SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(.5,y,h),b=[];b.push(u),b.push(S);var A=SuperMapAlgoPlot.PlottingUtil.polylineDistance(b),d=A*this.scaleValues[5],M=A*this.scaleValues[0],v=(u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(b,M).pt,f);0P&&(i=p,u=c,a=P))}}if(-1===i||i>l.length-1)return;n=0;for(var f=0;fr)return;var g=n/r;this.scaleValues[0]=g}else if(1===t){var y=r*this.scaleValues[0],h=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,y);if(-1===h.index)return;var S=h.pt,b=l[h.index],A=l[h.index+1],d=SuperMapAlgoPlot.PlottingUtil.radian(b,A),M=SuperMapAlgoPlot.PlottingUtil.radian(S,e)-d;this.scaleValues[1]=M;var v=(n=SuperMapAlgoPlot.PlottingUtil.distance(S,e))/r;this.scaleValues[2]=v}else if(2===t){var m=2*SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/r;m>.35&&(m=.35),this.scaleValues[4]=m}}}},{key:"getLeftSubSymbolPts",value:function(t){var e=.25*t,o=[],l=new SuperMapAlgoPlot.Point(0,0),n=new SuperMapAlgoPlot.Point(e,-2*e),r=new SuperMapAlgoPlot.Point(2*e,0),i=new SuperMapAlgoPlot.Point(e,2*e);return o.push(l),o.push(n),o.push(r),o.push(i),o.push(l),o}},{key:"getRightSubSymbolPts",value:function(t){return this.getLeftSubSymbolPts(t)}}])&&Ea(e.prototype,o),l&&Ea(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ia(t){"@babel/helpers - typeof";return(Ia="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})(t)}function Da(t,e){for(var o=0;o.2||l<=0)&&(l=.2),this.scaleValues[2]=l,this.scaleValues[4]=l}var n=o*this.scaleValues[0],r=180*this.scaleValues[1]/Math.PI,i=o*this.scaleValues[2],a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,n);if(-1!==a.index){var u=a.pt,p=new SuperMapAlgoPlot.Point(e[a.index].x,e[a.index].y),s=new SuperMapAlgoPlot.Point(e[a.index+1].x,e[a.index+1].y),c=180*SuperMapAlgoPlot.PlottingUtil.radian(p,s)/Math.PI,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,i,i,c+r);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,P],{surroundLineLimit:!0,lineTypeLimit:!0});var f=180*SuperMapAlgoPlot.PlottingUtil.radian(u,P)/Math.PI,g=SuperMapAlgoPlot.PlottingUtil.findPoint(P,u,.15*i,0),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.2*i,.2*i,f-157.5),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.2*i,.2*i,f+157.5);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[y,P,h,g],{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});var S=4.5*(o*this.scaleValues[4])*Math.sin(Math.PI/8),b=t[0],A=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,S);if(-1!=A.index){var d=SuperMapAlgoPlot.PlottingUtil.distance(b,A.pt);d*=.5;var M=new SuperMapAlgoPlot.Point(.5*d,0),v=new SuperMapAlgoPlot.Point(0,d),m=new SuperMapAlgoPlot.Point(-.5*d,0),O=new SuperMapAlgoPlot.Point(0,-d),w=SuperMapAlgoPlot.PlottingUtil.dirAngle(b,A.pt)*SuperMapAlgoPlot.PlottingUtil.RTOD,U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(b,M,w),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(b,v,w),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(b,m,w),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(b,O,w);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[U,L,V,T],{surroundLineLimit:!0,lineTypeLimit:!0});var j=t[t.length-1],R=o-S,_=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,R);if(-1!=_.index){S*=.5;var E=new SuperMapAlgoPlot.Point(.5*S,S),x=new SuperMapAlgoPlot.Point(.5*S,0),B=new SuperMapAlgoPlot.Point(.5*S,-.5*S),C=new SuperMapAlgoPlot.Point(-.5*S,-S),Y=new SuperMapAlgoPlot.Point(-.5*S,S),I=SuperMapAlgoPlot.PlottingUtil.dirAngle(j,_.pt)*SuperMapAlgoPlot.PlottingUtil.RTOD,D=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(j,E,I),N=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(j,x,I),k=[D,N,SuperMapAlgoPlot.PlottingUtil.coordinateTrans(j,B,I),SuperMapAlgoPlot.PlottingUtil.coordinateTrans(j,C,I),SuperMapAlgoPlot.PlottingUtil.coordinateTrans(j,Y,I)];this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,k,{surroundLineLimit:!0,lineTypeLimit:!0});var z=[];if(z.push(U),2!=e.length)for(var F=A.index;F<_.index;F++)z.push(e[F]);z.push(N);for(var W=this.mergeDashLine(this.dashLines,[]),G=this.computeDashLine(W,z),J=0;Jthis.scaleValues.length||o.length<2||t<0||2P&&(p=s,a=c.projectPoint,u=P)}}if(-1==p||p>r.length-1)return;for(var f=0,g=0;gn)return;var b=f/n;this.scaleValues[0]=b}else if(1===t){var A=n*this.scaleValues[0],d=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,A);if(-1==d.index)return;var M=l[d.index],v=l[d.index+1],m=SuperMapAlgoPlot.PlottingUtil.dirAngle(M,v),O=SuperMapAlgoPlot.PlottingUtil.dirAngle(d.pt,e)-m;this.scaleValues[1]=O;var w=(f=SuperMapAlgoPlot.PlottingUtil.distance(d.pt,e))/n;this.scaleValues[2]=w}else if(2===t){var U=o[0],L=(f=SuperMapAlgoPlot.PlottingUtil.distance(U,e))/n;this.scaleValues[4]=2*L}}}])&&Da(e.prototype,o),l&&Da(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Wa(t){"@babel/helpers - typeof";return(Wa="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})(t)}function Ga(t,e){for(var o=0;om&&(S=d,A=v,b=m)}}if(-1==S||S>y.length-1)return;r=0;for(var O=0;Ol)return;var w=r/l;this.scaleValues[0]=w}else if(1===t){i=l*this.scaleValues[0];var U=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,i);if(-1===U.index)return;a=U.pt,u=g[U.index],p=g[U.index+1],s=SuperMapAlgoPlot.PlottingUtil.radian(u,p);var L=(f=SuperMapAlgoPlot.PlottingUtil.radian(a,e))-s;this.scaleValues[1]=L;var V=(r=SuperMapAlgoPlot.PlottingUtil.distance(a,e))/l/1.5;this.scaleValues[2]=V}else if(2===t){if(i=l*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,r=l*this.scaleValues[2],-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,i)).index)return;P=a.pt,u=g[a.index],p=g[a.index+1],s=180*SuperMapAlgoPlot.PlottingUtil.radian(u,p)/Math.PI;var T=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.4*r,.4*r,s+c),j=SuperMapAlgoPlot.PlottingUtil.distance(e,T)/(.4*r);this.scaleValues[5]=j}else if(3===t){if(i=l*this.scaleValues[0],c=180*this.scaleValues[1]/Math.PI,r=l*this.scaleValues[2],-1===(a=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(g,i)).index)return;P=a.pt,u=g[a.index],p=g[a.index+1],f=(s=180*SuperMapAlgoPlot.PlottingUtil.radian(u,p)/Math.PI)+c;var R=new SuperMapAlgoPlot.Point(.6*r,0),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,R,f),E=.4*r*this.scaleValues[5],x=new SuperMapAlgoPlot.Point(0,E),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(_,x,f),C=2*SuperMapAlgoPlot.PlottingUtil.distance(B,e)/(.4*r);this.scaleValues[6]=C}}}}])&&Ga(e.prototype,o),l&&Ga(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qa(t){"@babel/helpers - typeof";return(Qa="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})(t)}function Za(t,e){for(var o=0;o(p=a/l)||.3.9&&(d=.9),this.scaleValues[4]=d}}}}])&&Za(e.prototype,o),l&&Za(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ou(t){"@babel/helpers - typeof";return(ou="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})(t)}function lu(t,e){for(var o=0;o.3||n<=0)&&(n=.3),this.scaleValues[1]=n,this.scaleValues[3]=n}var r=this.scaleValues[1],i=this.scaleValues[2]*SuperMapAlgoPlot.PlottingUtil.RTOD,a=o*this.scaleValues[0],u=o*this.scaleValues[3],p=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,a);if(-1!==p.index){var s=p.pt,c=e[p.index],P=e[p.index+1],f=SuperMapAlgoPlot.PlottingUtil.radian(c,P)*SuperMapAlgoPlot.PlottingUtil.RTOD,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,u,u,f+i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[p.pt,g],{surroundLineLimit:!0,lineTypeLimit:!0});var y,h=SuperMapAlgoPlot.PlottingUtil.radian(s,g)*SuperMapAlgoPlot.PlottingUtil.RTOD,S=o*r;00&&-1!=this.subSymbols[0].code){var Y=SuperMapAlgoPlot.PlottingUtil.circlePoint(this.subSymbols[0],.5*S,.5*S,f+i+90);this.addScalePoint(Y,0)}this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);for(var l=0,n=0;nb&&(P=y,g=S,f=b)}}if(-1==P||P>s.length-1)return;for(var A=0,d=0;dl)return;var M=A/l;this.scaleValues[0]=M}else if(2===t){var v=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,l*this.scaleValues[0]);if(-1===v.index)return;r=v.pt,i=p[v.index],a=p[v.index+1],u=SuperMapAlgoPlot.PlottingUtil.dirAngle(i,a)*SuperMapAlgoPlot.PlottingUtil.RTOD;var m=l*this.scaleValues[3],O=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,m,m,u+this.scaleValues[2]*SuperMapAlgoPlot.PlottingUtil.RTOD+180),w=SuperMapAlgoPlot.PlottingUtil.distance(O,e)/l*2;this.scaleValues[1]=w}else if(1===t){var U=l*this.scaleValues[0],L=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(p,U);if(-1===L.index)return;r=L.pt,i=p[L.index],a=p[L.index+1],u=SuperMapAlgoPlot.PlottingUtil.dirAngle(i,a)*SuperMapAlgoPlot.PlottingUtil.RTOD;var V=(SuperMapAlgoPlot.PlottingUtil.dirAngle(r,e)*SuperMapAlgoPlot.PlottingUtil.RTOD-u)*SuperMapAlgoPlot.PlottingUtil.DTOR;this.scaleValues[2]=V}}}}])&&pu(e.prototype,o),l&&pu(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function gu(t){"@babel/helpers - typeof";return(gu="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})(t)}function yu(t,e){for(var o=0;oe.x),c=[];s?(c.push(o),c.push(u)):(c.push(o),c.push(p)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});var P=[];s?(P.push(l),P.push(p)):(P.push(l),P.push(u)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,{surroundLineFlag:!1,surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.INNER});var f,g,y,h,S=.37*r,b=SuperMapAlgoPlot.PlottingUtil.linePnt(n,e,S),A=.09*r,d=[];d.push(b),d.push(new SuperMapAlgoPlot.Point(b.x,b.y+A)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,d,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE}),s?(f=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(A,n,b)).pntLeft,g=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*A,n,b)).pntLeft,y=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(A,f,g)).pntRight,h=a.pntLeft):(f=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(A,n,b)).pntRight,g=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*A,n,b)).pntRight,y=(a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(A,f,g)).pntRight,h=a.pntLeft);var M=[];M.push(f),M.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE});var v=[];v.push(y),v.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,{lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE}),this.finish()}}}])&&Du(e.prototype,o),l&&Du(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Wu(t){"@babel/helpers - typeof";return(Wu="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})(t)}function Gu(t,e){for(var o=0;o1&&(u=1);var p,s,c=e*u,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,c,c,n),f=[];f.push(t[0].clone()),f.push(P),p=SuperMapAlgoPlot.PlottingUtil.paraLine(f,a,!0),s=SuperMapAlgoPlot.PlottingUtil.paraLine(f,a,!1);var g,y=[];for(g=0;g0&&this.computeSubSymbol(this.subSymbols[0],b,S/2,n+180);for(var A=[],d=.1*c,M=[],v=0;v=O)){for(var w=d;wo.length)return;var l,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);0==t?(l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],e)/n,this.scaleValues[0]=l):1==t&&(l=2*SuperMapAlgoPlot.PlottingUtil.distance(o[1],e)/n,this.scaleValues[1]=l)}}}])&&Zu(e.prototype,o),l&&Zu(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function op(t){"@babel/helpers - typeof";return(op="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})(t)}function lp(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0==t){var n=.5*l,r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,o).pts,i=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/l;i>.5&&(i=.5),this.scaleValues[0]=i}}}}])&&lp(e.prototype,o),l&&lp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function up(t){"@babel/helpers - typeof";return(up="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})(t)}function pp(t,e){for(var o=0;o.3||e<=0)&&(e=.3),this.scaleValues[0]=e}var o=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var l=.1*o,n=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(l,t[1],t[0]),r=n.pntRight,i=n.pntLeft,a=(n=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(l,t[0],t[1])).pntRight,u=n.pntLeft,p=[];p.push(r),p.push(i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{lineTypeLimit:!0,surroundLineLimit:!0});var s=[];s.push(a),s.push(u),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s,{lineTypeLimit:!0,surroundLineLimit:!0});var c=[];c.push(r),c.push(u);for(var P=SuperMapAlgoPlot.PlottingUtil.polylineDistance(c)/11,f=P,g=0,y=0,h=null,S=null,b=0;b<11;b++){if(0==b)g=0,h=r.clone();else{var A=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(f-P,c);if(!A.bfind)continue;g=A.index,h=A.pts}if(10==b)y=0,S=u.clone();else{if(!(A=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(f,c)).bfind)continue;y=A.index,S=A.pts}if(b%2==0){var d=[];d.push(h);for(var M=g+1;M<=y;M++)d.push(c[M]);d.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,surroundLineLimit:!0})}f+=P}this.finish()}}}])&&yp(e.prototype,o),l&&yp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function dp(t){"@babel/helpers - typeof";return(dp="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})(t)}function Mp(t,e){for(var o=0;o=90;e-=3)o=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],a,a,e+n),u.push(o);var p=[];for(e=90;e>=-90;e-=3)o=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],a,a,e+n),p.push(o);var s=l*i,c=new SuperMapAlgoPlot.Point((u[u.length-1].x+p[0].x)/2,(u[u.length-1].y+p[0].y)/2),P=SuperMapAlgoPlot.PlottingUtil.linePnt(u[u.length-1],p[0],.5*(l-1.2*s)),f=SuperMapAlgoPlot.PlottingUtil.linePnt(p[0],u[u.length-1],.5*(l-1.2*s)),g=[];g.push(f),(g=(g=g.concat(p)).concat(u)).push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var y=SuperMapAlgoPlot.PlottingUtil.dirAngle(f,P)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],c,s,y-90),this.scalePoints=[],this.addScalePoint(u[u.length-1]);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,y+90);this.addScalePoint(h),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}else if(1==t){var r=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),i=SuperMapAlgoPlot.PlottingUtil.distance(r,e)/l;i>=.8&&(i=.8),this.scaleValues[1]=i}}}}])&&Mp(e.prototype,o),l&&Mp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Up(t){"@babel/helpers - typeof";return(Up="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})(t)}function Lp(t,e){for(var o=0;o=90;e-=3)o=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],a,a,e+n),u.push(o);var p=[];for(e=90;e>=-90;e-=3)o=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[1],a,a,e+n),p.push(o);var s=l*i,c=new SuperMapAlgoPlot.Point((u[u.length-1].x+p[0].x)/2,(u[u.length-1].y+p[0].y)/2),P=SuperMapAlgoPlot.PlottingUtil.linePnt(u[u.length-1],p[0],.5*(l-1.2*s)),f=SuperMapAlgoPlot.PlottingUtil.linePnt(p[0],u[u.length-1],.5*(l-1.2*s)),g=SuperMapAlgoPlot.PlottingUtil.radian(f,P)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=[];y.push(f),(y=(y=y.concat(p)).concat(u)).push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],c,s,g-90),this.scalePoints=[],this.addScalePoint(u[u.length-1]);var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,g+90);this.addScalePoint(h),this.finish()}}}])&&Lp(e.prototype,o),l&&Lp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _p(t){"@babel/helpers - typeof";return(_p="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})(t)}function Ep(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=.5*l,this.scaleValues[this.scaleValues.length-1]=.5*l}var n=o*this.scaleValues[1],r=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,n),i=r.index;if(-1!=i){var a=r.pt,u=o*this.scaleValues[0],p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,e[i],a),s=this.scaleValues[2],c=null;0==s?c=p.pntLeft:1==s&&(c=p.pntRight),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[c,a],{fill:!1,fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});for(var P=this.mergeDashLine(this.dashLines,[]),f=this.computeDashLine(P,e),g=0;g=2?this.addArrow(f[y],this.scaleValues[3]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[3]));this.scalePoints=[],this.addScalePoint(c,0);u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[3];var h=SuperMapAlgoPlot.PlottingUtil.linePnt(e[e.length-1],e[e.length-2],u);this.addScalePoint(h),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0==t){for(var r=-1,i=null,a=0;a2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,0))return;if(2*(o.length-1)==t||2==o.length&&0==t){var i,a=e,u=[];for(i=0;ig&&(s=i,p=f,c=g)}}if(-1==s||s>u.length-1)return;var y=0;for(i=0;ir)return;var A=y/r;if(A>.8||A<.2)return;2==o.length?this.scaleValues[0]=A:this.scaleValues[2*t]=A}else if(2*o.length-1==t||2==o.length&&1==t){var d=1.667*SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/n;2==o.length?this.scaleValues[1]=d:this.scaleValues[2*t-1]=d}else{var M=-1;M=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var v=(e.x-o[M].x)/n,m=(e.y-o[M].y)/n;this.scaleValues[2*t]=v,this.scaleValues[2*t+1]=m}}}}])&&Dp(e.prototype,o),l&&Dp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Wp(t){"@babel/helpers - typeof";return(Wp="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})(t)}function Gp(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){for(var o=this.mergeDashLine(this.dashLines,[]),l=this.computeDashLine(o,e),n=0;n.3||a<=0)&&(a=.3),this.scaleValues[0]=.2*a}var u=r*this.scaleValues[0],p=r*this.scaleValues[2],s=r*this.scaleValues[3],c=new SuperMapAlgoPlot.Point(i.x+p,i.y+s),P=[];P.push(c),P.push(new SuperMapAlgoPlot.Point(c.x+u,c.y)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,P,{fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0});for(var f=18*u,g=new SuperMapAlgoPlot.Point(c.x+f,c.y),y=[],h=135;h<180;h+=3)y.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(g,f,f,h));y.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(g,f,f,180)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,u,u,0);this.addScalePoint(S),this.addScalePoint(c),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=[];if(l=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=n*this.scaleValues[2],a=n*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(r.x+i,r.y+a),p=SuperMapAlgoPlot.PlottingUtil.distance(e,u)/n;this.scaleValues[0]=p}else if(1==t){var s=(e.x-r.x)/n,c=(e.y-r.y)/n;this.scaleValues[2]=s,this.scaleValues[3]=c}}}}])&&Gp(e.prototype,o),l&&Gp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qp(t){"@babel/helpers - typeof";return(Qp="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})(t)}function Zp(t,e){for(var o=0;othis.minEditPts){for(var I,D,N,k,z,F,W,G,J,H=1;Ho.length-1)return;for(var p=0,s=0;sl)return;var P=p/l,f=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1])/l;P<.4*f&&(P=.4*f),P>1-.4*f&&(P=1-.4*f),this.scaleValues[0]=P}}}])&&Zp(e.prototype,o),l&&Zp(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function os(t){"@babel/helpers - typeof";return(os="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})(t)}function ls(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==l)return;var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=e;if(0==t)n=(a.x-i.x)/l,this.scaleValues[0]=n,r=(a.y-i.y)/l,this.scaleValues[1]=r;else if(1==t){n=this.scaleValues[0],r=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(i.x+n*l,i.y+r*l),p=SuperMapAlgoPlot.PlottingUtil.distance(a,u)/l;this.scaleValues[2]=p}}}}])&&ls(e.prototype,o),l&&ls(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function us(t){"@babel/helpers - typeof";return(us="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})(t)}function ps(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==l)return;var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=e;if(0==t)n=(a.x-i.x)/l,this.scaleValues[0]=n,r=(a.y-i.y)/l,this.scaleValues[1]=r;else if(1==t){n=this.scaleValues[0],r=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(i.x+n*l,i.y+r*l),p=SuperMapAlgoPlot.PlottingUtil.distance(a,u)/l;this.scaleValues[2]=p}}}}])&&ps(e.prototype,o),l&&ps(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function gs(t){"@babel/helpers - typeof";return(gs="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})(t)}function ys(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==l)return;var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),a=e;if(0==t)n=(a.x-i.x)/l,this.scaleValues[0]=n,r=(a.y-i.y)/l,this.scaleValues[1]=r;else if(1==t){n=this.scaleValues[0],r=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(i.x+n*l,i.y+r*l),p=SuperMapAlgoPlot.PlottingUtil.distance(a,u)/l;this.scaleValues[2]=p}}}}])&&ys(e.prototype,o),l&&ys(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ds(t){"@babel/helpers - typeof";return(ds="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})(t)}function Ms(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var o={fillLimit:!0,fill:!1,surroundLineFlag:!1},l=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(l,e),r=0;r.2||u<=0)&&(u=.2),this.scaleValues[0]=u}var p=this.scaleValues[0],s=this.scaleValues[2],c=this.scaleValues[3],P=a*p,f=new SuperMapAlgoPlot.Point(i.x+a*s,i.y+a*c);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],f,P,0),this.addScalePoint(f);var g=P,y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,g,g,90);this.addScalePoint(y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r,i=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t)n=(e.x-i.x)/a,this.scaleValues[2]=n,r=(e.y-i.y)/a,this.scaleValues[3]=r;else if(1===t){n=this.scaleValues[2],r=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(i.x+a*n,i.y+a*r),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e)/a;this.scaleValues[0]=p}}}}])&&Ms(e.prototype,o),l&&Ms(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Us(t){"@babel/helpers - typeof";return(Us="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})(t)}function Ls(t,e){for(var o=0;o=0;--v)M.push(b[v]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M);var m=[],O=.06*l,w=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O,o,e),U=w.pntRight,L=w.pntLeft;m.push(U),m.push(L),O=.15*l;var V=new SuperMapAlgoPlot.Point(O,0),T=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(e,V,h);m.push(T),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,m,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,fillLimit:!0,fill:!0,fillColorLimit:!0,fillColor:"#0000FF",fillOpacity:1,lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(b[b.length-1]),this.addScalePoint(b[b.length-2]),this.addScalePoint(b[b.length-3]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l,n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),r=o[0].clone(),i=o[1].clone(),a=e.clone();if(0==t){var u=SuperMapAlgoPlot.PlottingUtil.distance(a,r)/n;this.scaleValues[0]=u}else if(1==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var p=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[1]=p;var s=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[3]=s}else if(2==t){l=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,r,i);var c=SuperMapAlgoPlot.PlottingUtil.distance(l,a)/n;this.scaleValues[2]=c;var P=SuperMapAlgoPlot.PlottingUtil.distance(l,i)/n;this.scaleValues[4]=P}}}}])&&Ls(e.prototype,o),l&&Ls(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _s(t){"@babel/helpers - typeof";return(_s="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})(t)}function Es(t,e){for(var o=0;o.3||i<=0)&&(i=.3),this.scaleValues[0]=i}var a=e[0],u=e[1],p=e[e.length-1],s=e[e.length-2],c=SuperMapAlgoPlot.PlottingUtil.radian(a,u)*SuperMapAlgoPlot.PlottingUtil.RTOD,P=SuperMapAlgoPlot.PlottingUtil.radian(s,p)*SuperMapAlgoPlot.PlottingUtil.RTOD,f=this.scaleValues[0],g=r*f,y=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,g,g,c+90),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,g,g,c+270),S=[];S.push(y),S.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[],this.addScalePoint(h);var b=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,g,g,P+90),A=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,g,g,P+270);(S=[]).push(b),S.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S,{lineTypeLimit:!0,surroundLineLimit:!0});var d,M,v=t.length;if(this.scaleValues.length<=v){for(this.scaleValues=[],this.scaleValues.push(f),M=1/v,d=0;d=this.scalePoints.length)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n,r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0==t){var i=(n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0]))/r;this.scaleValues[0]=i}else{var a,u=e,p=[];for(a=0;ay&&(s=a,P=g,c=y)}}if(-1==s||s>p.length-1)return;for(n=0,a=0;ar)return;var h=n/r;this.scaleValues[t]=h}}}}])&&Es(e.prototype,o),l&&Es(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Is(t){"@babel/helpers - typeof";return(Is="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})(t)}function Ds(t,e){for(var o=0;o.3||e<=0)&&(e=.3),this.scaleValues[0]=e}if(t.length>2){var o=t;o.push(t[0]);for(var l=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(l,o),r=0;r0&&this.computeSubSymbol(this.subSymbols[0],a,u,0),this.scalePoints=[];var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,90);this.addScalePoint(p),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0==t){var r=.5*SuperMapAlgoPlot.PlottingUtil.distance(e,n)/l;this.scaleValues[0]=r}}}}])&&Ds(e.prototype,o),l&&Ds(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ws(t){"@babel/helpers - typeof";return(Ws="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})(t)}function Gs(t,e){for(var o=0;othis.scalePoints.length)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0]);this.scaleValues[0]=2*n/l}}}}])&&Gs(e.prototype,o),l&&Gs(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Qs(t){"@babel/helpers - typeof";return(Qs="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})(t)}function Zs(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);for(var o=this.mergeDashLine(this.dashLines,[]),l=this.computeDashLine(o,e),n=0;n.2||a<=0)&&(a=.2),this.scaleValues[0]=a}var u=this.scaleValues[0],p=this.scaleValues[2],s=this.scaleValues[3],c=i*u,P=new SuperMapAlgoPlot.Point(r.x+i*p,r.y+i*s);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],P,c,0),this.addScalePoint(P);var f=c,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,f,f,90);this.addScalePoint(g),this.finish()}}}])&&Zs(e.prototype,o),l&&Zs(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function oc(t){"@babel/helpers - typeof";return(oc="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})(t)}function lc(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){for(var o=this.mergeDashLine(this.dashLines,[]),l=this.computeDashLine(o,e),n=0;n.3||a<=0)&&(a=.3),this.scaleValues[0]=.4*a}var u=r*this.scaleValues[0],p=r*this.scaleValues[2],s=r*this.scaleValues[3],c=new SuperMapAlgoPlot.Point(i.x+p,i.y+s),P=.6*u,f=new SuperMapAlgoPlot.Point(c.x+u,c.y),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,P,P,0),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,P,P,180),h=[];h.push(g),h.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0,surroundLineLimit:!0});var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,P,P,90),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,P,P,270);(h=[]).push(S),h.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0,surroundLineLimit:!0});var A=new SuperMapAlgoPlot.Point(c.x-u,c.y),d=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,.5*u,.5*u,270),M=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,u,u,240),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,u,u,90),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(A,u,u,300);(h=[]).push(d),h.push(M),h.push(v),h.push(m),h.push(d),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,{lineTypeLimit:!0,surroundLineLimit:!0}),this.scalePoints=[];var O=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,u,u,0);this.addScalePoint(O),this.addScalePoint(c),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=[];if(l=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=n*this.scaleValues[2],a=n*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(r.x+i,r.y+a),p=SuperMapAlgoPlot.PlottingUtil.distance(e,u)/n;this.scaleValues[0]=p}else if(1==t){var s=(e.x-r.x)/n,c=(e.y-r.y)/n;this.scaleValues[2]=s,this.scaleValues[3]=c}}}}])&&lc(e.prototype,o),l&&lc(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function uc(t){"@babel/helpers - typeof";return(uc="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})(t)}function pc(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}}}])&&Mc(e.prototype,o),l&&Mc(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Uc(t){"@babel/helpers - typeof";return(Uc="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})(t)}function Lc(t,e){for(var o=0;o1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,l,n,r,i;this.controlPoints[2]&&(this.controlPoints[2].isFixedPos=!0),this.controlPoints[0].xo?Math.abs((i-o)/(r-e))>u?2:1:iu?4:1:r>l?i>o?Math.abs((i-o)/(r-l))>u?2:3:iu?4:3:i>o?2:il?Math.abs((a-l)/(i-o))>p?2:1:ap?4:1:i>n?a>l?Math.abs((a-l)/(i-n))>p?2:3:ap?4:3:a>l?2:al&&(c=l),c<(l+r)/2&&(c=(l+r)/2),s=1-2*(l-c)/(l-r);break;case 2:case 4:var P=u.x+(e.x-u.x);P>n&&(P=n),P<(o+n)/2&&(P=(o+n)/2),s=1-2*(n-P)/(n-o)}s<0&&(s=0),s>1&&(s=1),this.scaleValues[0]=s}this.calculateParts()}}])&&Ec(e.prototype,o),l&&Ec(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Dc(t){"@babel/helpers - typeof";return(Dc="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})(t)}function Nc(t,e){for(var o=0;o=2&&t.length0&&(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.shapePts,{strokeWidth:0,weight:0,lineWidthLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.LeftArowHead,{lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.LeftArowRightBody),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.RightArowHead,{lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d)),this.scalePoints=[];for(var O=0;Othis.SV1_MaxValue&&(l=this.SV1_MaxValue)}else l=SuperMapAlgoPlot.PlottingUtil.distance(a.projectPoint,r)=2&&t.length2*l-1){for(var a=0;ay[v].length)){for(var m=P[v][P[v].length-1],O=f[v][0],w=new SuperMapAlgoPlot.Point(.5*(m.x+O.x),.5*(m.y+O.y)),U=y[v][y[v].length-1],L=y[v][y[v].length-2],V=this.ComputeZValue(w,U,L),T={x:w.x,y:w.y,z:V},j=[],R=[],_=0;_=0;B--)if(v==l-1)x.push(y[v][B]);else{var C={x:y[v][B].x,y:y[v][B].y,z:.5*(y[v][B].z+y[v+1][B].z)};x.push(C)}this.ComputeBeizerZValueByDis(x,f[v],j),d.push(j),j=[];for(var Y=g[v],I=0;I0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,N,{surroundLineFlag:!1}),this.scalePoints=this.scalePoints.concat(this.m_scalePoints),!0}if(p.shapePts.length>0){P=p.arrLeftPts2D,f=p.arrRightPts2D,g=p.arrHeadPts2D;for(var z=[],F=[],W=0;Wthis.MAX_SCALEVALUE?r=this.MAX_SCALEVALUE:r3)for(var i=l-1,a=0,u=i;a3)for(var r=l-1,i=0,a=r;i0)if(1==t)o.push(0);else{var l=SuperMapAlgoPlot.PlottingUtil.distance(e[0],e[this.MIN_PTCOUNT_PERARROW]);o.push(l);for(var n=1,r=this.MIN_PTCOUNT_PERARROW;nd&&(A=.5*d);var M=A*P;y.push(y[s].clone());var v,m=0;v=h-A;var O=[],w=0;for(w=2;w<=s;w++)m+=SuperMapAlgoPlot.PlottingUtil.distance(y[w-1],y[w-2]),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v,0,1e-14)?O[w]=0:SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v-m,0,1e-14)?O[w]=M:O[w]=M+(S-M)*Math.pow((v-m)/v,this.SV_ATScaleParameter);O[s+1]=M;var U=new SuperMapAlgoPlot.Point(0,0),L=new SuperMapAlgoPlot.Point(0,0),V=new SuperMapAlgoPlot.Point(0,0);for(w=2;w<=s;w++){SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,y[w-2],y[w-1],y[w],L,V),s==w&&SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,y[s],y[s-1],V,U);var T=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O[w],L,y[w-1]);r[w]=T.pntLeft,n[w]=T.pntRight}var j,R,_=U.clone();if(SuperMapAlgoPlot.PlottingUtil.distance(y[s],_)>0){var E=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(A,y[s],U);y[s]=E.clone()}for(b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,y[s+1],y[s]),n[s+1]=b.pntLeft,r[s+1]=b.pntRight,w=2;w<=s;w++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,n[w-1],n[w],n[w+1],L,V),i[w]=L.clone(),a[w]=V.clone(),SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,r[w-1],r[w],r[w+1],L,V),u[w]=L.clone(),p[w]=V.clone();SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,n[1],n[2],i[2],U),a[1]=U.clone(),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,r[1],r[2],u[2],U),p[1]=U.clone();R=SuperMapAlgoPlot.PlottingUtil.distance(n[s+1],n[s])*(1/3),(j=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(R,y[s],y[s+1])).x+=n[s+1].x-y[s].x,j.y+=n[s+1].y-y[s].y,R=(S-M)*Math.pow(R/v,this.SV_ATScaleParameter+.3),b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(R,n[s+1],j),i[s+1]=b.pntLeft.clone(),R=SuperMapAlgoPlot.PlottingUtil.distance(r[s+1],r[s])*(1/3),(j=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(R,y[s],y[s+1])).x+=r[s+1].x-y[s].x,j.y+=r[s+1].y-y[s].y,R=(S-M)*Math.pow(R/v,this.SV_ATScaleParameter+.3),b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(R,r[s+1],j),u[s+1]=b.pntRight.clone();var x=[],B=A*g,C=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(B,y[s],y[s+1]);this.m_scalePoints.push(C.clone()),B=A*f,b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(B,y[s+1],C),x.push(b.pntRight),x.push(y[s+1]),x.push(b.pntLeft);var Y=[];for(Y.push(n[s+1]),w=s;w>=1;w--)Y.push(i[w+1]),Y.push(a[w]),Y.push(n[w]);var I=[];for(w=1;w<=s;w++)I.push(r[w]),I.push(p[w]),I.push(u[w+1]);I.push(r[s+1]),l.push.apply(l,I),l.push.apply(l,x),l.push.apply(l,Y),o=A/h;var D=[];for(w=Y.length-1;w>=0;w--)D.push(Y[w]);return{dATLenDivABLen:o,arrowBodyPts:l}}},{key:"generateAYPts",value:function(t,e,o,l,n){var r=new SuperMapAlgoPlot.Point(.5*(t[2].x+o[2].x),.5*(t[2].y+o[2].y)),i=new SuperMapAlgoPlot.Point(.5*(t[1].x+o[1].x),.5*(t[1].y+o[1].y)),a=new SuperMapAlgoPlot.Point(.5*(t[0].x+o[0].x),.5*(t[0].y+o[0].y)),u=SuperMapAlgoPlot.PlottingUtil.distance(r,i),p=SuperMapAlgoPlot.PlottingUtil.distance(a,i),s=n*(u+p),c=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0),f=new SuperMapAlgoPlot.Point(0,0);if(s>u){s=u+p-s,c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(s,a,i);var g=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),y=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[0]);g=g*s/p,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(g,t[0],t[1]),y=y*s/p,f=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(y,o[0],o[1])}else{c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(s,r,i);var h=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[2]),S=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[2]);h=h*s/u,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(h,t[2],t[1]),S=S*s/u,f=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(S,o[2],o[1])}this.m_scalePoints.push(c.clone());var b=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(c,P),A=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(c,f),d=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(b,c,P),M=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(A,c,f),v=e[11].clone(),m=e[10].clone(),O=l[5].clone(),w=l[6].clone(),U=SuperMapAlgoPlot.PlottingUtil.intersectLines(m,v,c,P),L=SuperMapAlgoPlot.PlottingUtil.distance(U.intersectPoint,m),V=SuperMapAlgoPlot.PlottingUtil.distance(m,c);L=L>V?this.SV_AJCtrl*V:this.SV_AJCtrl*L;var T=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(L,m,v);v=T.clone(),e[11]=T.clone(),U=SuperMapAlgoPlot.PlottingUtil.intersectLines(w,O,c,f),L=(L=SuperMapAlgoPlot.PlottingUtil.distance(U.intersectPoint,w))>(V=SuperMapAlgoPlot.PlottingUtil.distance(w,c))?this.SV_AJCtrl*V:this.SV_AJCtrl*L,O=(T=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(L,w,O)).clone(),l[5]=T.clone();var j=[];j.push(m),j.push(v),j.push(d),j.push(c);var R=[];return R.push(c),R.push(M),R.push(O),R.push(w),{arrowLeftYaoPts:j,arrowRightYaoPts:R}}}])&&Jc(e.prototype,o),l&&Jc(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Zc(t){"@babel/helpers - typeof";return(Zc="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})(t)}function Xc(t,e){for(var o=0;o.4&&(this.scaleValues[0]=.4);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])*this.scaleValues[0],o=[];o.push(t[0]),o.push(t[1]);var l=SuperMapAlgoPlot.PlottingUtil.paraLine(o,.5*e,!0),n=SuperMapAlgoPlot.PlottingUtil.paraLine(o,.5*e,!1),r=!1;if(t.length>=3){var i=t[2];if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(i,t[0],t[1]))r=!0;else{r=!1;var a=SuperMap.Plot.PlottingUtil.isRight(i,t[0],t[1]),u=.8*SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(a){var p=SuperMapAlgoPlot.PlottingUtil.linePnt(n[0],n[1],u),s=SuperMapAlgoPlot.PlottingUtil.dirAngle(p,t[2])*SuperMapAlgoPlot.PlottingUtil.RTOD-SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;if(s<0&&(s+=360),s>180&&(s-=180),s<10||s>170)r=!0;else{var c=[];c.push(p),c.push(new SuperMapAlgoPlot.Point(t[2].x,t[2].y));var P=SuperMapAlgoPlot.PlottingUtil.paraLine(c,.5*e,!0),f=SuperMapAlgoPlot.PlottingUtil.paraLine(c,.5*e,!1),g=SuperMapAlgoPlot.PlottingUtil.intersectLines(n[0],n[1],P[0],P[1]);P[0]=g.intersectPoint,g=SuperMapAlgoPlot.PlottingUtil.intersectLines(n[0],n[1],f[0],f[1]),f[0]=g.intersectPoint;for(var y=[],h=[],S=0;S=0;A--)h.push(f[A]);h.push(n[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h)}}else{var d=SuperMapAlgoPlot.PlottingUtil.linePnt(l[0],l[1],u),M=SuperMapAlgoPlot.PlottingUtil.dirAngle(d,t[2])*SuperMapAlgoPlot.PlottingUtil.RTOD-SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD;if(M<0&&(M+=360),M>180&&(M-=180),M<10||M>170)r=!0;else{var v=[];v.push(d),v.push(new SuperMapAlgoPlot.Point(t[2].x,t[2].y));var m=SuperMapAlgoPlot.PlottingUtil.paraLine(v,.5*e,!0),O=SuperMapAlgoPlot.PlottingUtil.paraLine(v,.5*e,!1),w=SuperMapAlgoPlot.PlottingUtil.intersectLines(l[0],l[1],m[0],m[1]);m[0]=w.intersectPoint,w=SuperMapAlgoPlot.PlottingUtil.intersectLines(l[0],l[1],O[0],O[1]),O[0]=w.intersectPoint;var U=[],L=[];U.push(l[0]);for(var V=0;V=0;T--)L.push(O[T]);L.push(l[l.length-1]);for(var j=n.length-1;j>=0;j--)L.push(n[j]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,L)}}}}else r=!0;if(r){for(var R=n.length-1;R>=0;R--)l.push(n[R]);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l)}this.addScalePoint(l[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>o.length)){0===this.scaleValues.length&&this.scaleValues.push(.2);var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0===t){var n=2*SuperMapAlgoPlot.PlottingUtil.pointToLineDis(e,o[0],o[1])/l;n>.4&&(n=.4),this.scaleValues[0]=n}}}}])&&sP(e.prototype,o),l&&sP(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function yP(t){"@babel/helpers - typeof";return(yP="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})(t)}function hP(t,e){for(var o=0;o0?new SuperMapAlgoPlot.Point(g.pntLeft.x,g.pntLeft.y):new SuperMapAlgoPlot.Point(g.pntRight.x,g.pntRight.y);var y=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(u,f,P.pt),h=[];if(h.push(y.pntRight),h.push(f),h.push(y.pntLeft),0===c){var S=new SuperMapAlgoPlot.Point(f.x,f.y);S.isScalePoint=!0,S.tag=0,this.scalePoints.push(S)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[0]=l?-1:1}}}])&&hP(e.prototype,o),l&&hP(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function MP(t){"@babel/helpers - typeof";return(MP="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})(t)}function vP(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(3>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL,e);for(var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),l=e[0].x,n=e[0].x,r=e[0].y,i=e[0].y,a=[],u=0;ue[u].x&&(l=e[u].x),ne[u].y&&(r=e[u].y),i0){var b=.015*o;this.computeSubSymbol(this.subSymbols[0],S,b,0),!0===this.subSymbols[0].fillLimit&&(this.subSymbols[0].fillColor="#332323")}g++}else if(g=0,this.subSymbols.length>0){var A=.015*o;this.computeSubSymbol(this.subSymbols[1],S,A,0)}}this.finish()}}}}])&&vP(e.prototype,o),l&&vP(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function LP(t){"@babel/helpers - typeof";return(LP="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})(t)}function VP(t,e){for(var o=0;o2){for(var r=-1,i=e.length-2;i>=0;i--)if(l2){for(var r=-1,i=e.length-2;i>=0;i--)if(l0&&this.computeSubSymbol(this.subSymbols[0],a,u,0),this.addText("?",i,.3*n,0,"#0000ff"),this.addScalePoint(a,0);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length0&&this.computeSubSymbol(this.subSymbols[0],a,u,0),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,t),this.addScalePoint(a,0);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=2&&this.controlPoints.length=u.length)this.finish();else{var c=u[0].clone(),P=u[0].clone();for(p=0;pu[p].x&&(c=u[p].clone()),P.x=c.x&&((f=[]).push(c),f.push(g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,this._style));var y=new SuperMapAlgoPlot.Point(i.x+r/2,P.y);y.x<=P.x&&y.x>=c.x&&((f=[]).push(P),f.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,this._style));var h=SuperMapAlgoPlot.PlottingUtil.radian(g,y)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.addText(this.subText,i,r,h),this.addScalePoint(i,0);var S=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,r/2,r/2,90);this.addScalePoint(S,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=0,i=0,a=e;if(0===t){if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(o,a))return;r=(a.x-n.x)/l,this.scaleValues[0]=r,i=(a.y-n.y)/l,this.scaleValues[1]=i}if(1===t){r=this.scaleValues[0],i=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(n.x+r*l,n.y+i*l),p=2*SuperMapAlgoPlot.PlottingUtil.distance(a,u);this.scaleValues[2]=p/l}}}}])&&Sf(e.prototype,o),l&&Sf(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function vf(t){"@babel/helpers - typeof";return(vf="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})(t)}function mf(t,e){for(var o=0;o=2&&t.lengtho.x&&a.xo.y&&a.yl.x||a.yl.y)&&(e[0]=r,e[3]=o),4==e.length){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);o=e[0],l=e[2];var u=[];u.push(o),u.push(l),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u)}this.finish()}}},{key:"GetPointsByTrapezoid",value:function(t,e,o,l,n){var r=e.x,i=e.y,a=o.x,u=o.y,p=l.x,s=l.y,c=0,P=0,f=0,g=0;if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(Math.abs(i-u),0))c=r+a-p,P=s;else if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(Math.abs(r-a),0))c=p,P=i+u-s;else{var y=1*(i-u)/(r-a),h=s-y*p;P=y*(c=((u+i)/2+(r+a)/(2*y)-h)/(y+1/y))+h,c=2*c-p,P=2*P-s}var S=Math.sqrt(1*(r-a)*(r-a)+1*(i-u)*(i-u)),b=Math.sqrt(1*(r-c)*(r-c)+1*(i-P)*(i-P));S>0?(f=r+(a-r)*b/S,g=i+(u-i)*b/S):(f=r,g=i);var A=f+(c-f)*t,d=g+(P-g)*t;n.x=A,n.y=d}}])&&mf(e.prototype,o),l&&mf(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Vf(t){"@babel/helpers - typeof";return(Vf="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})(t)}function Tf(t,e){for(var o=0;o0){var z=this.computeSubSymbol(this.subSymbols[0],N,.62*k,_);if(null!=z)for(var F=0;F=r.length)){var u=r[0].clone(),p=r[0].clone();for(i=0;ir[i].x&&(u=r[i].clone()),p.x=r.length)){var u=r[0].clone(),p=r[0].clone();for(i=0;ir[i].x&&(u=r[i].clone()),p.x=r.length)){var u=r[0].clone(),p=r[0].clone();for(i=0;ir[i].x&&(u=r[i].clone()),p.x=2&&this.controlPoints.length=u.length)this.finish();else{var c=u[0].clone(),P=u[0].clone();for(p=0;pu[p].x&&(c=u[p].clone()),P.xo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=e,i=0,a=0;if(0===t){if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(o,r))return;i=(r.x-n.x)/l,this.scaleValues[0]=i,a=(r.y-n.y)/l,this.scaleValues[1]=a}if(1===t){i=this.scaleValues[0],a=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(n.x+i*l,n.y+a*l),p=2*SuperMapAlgoPlot.PlottingUtil.distance(r,u);this.scaleValues[2]=p/l}}}}])&&rg(e.prototype,o),l&&rg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function sg(t){"@babel/helpers - typeof";return(sg="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})(t)}function cg(t,e){for(var o=0;o=2&&this.controlPoints.length.2&&(this.subSymbolScaleValue=.2),this.scaleValues[2]=this.subSymbolScaleValue/3);var l=this.scaleValues[0],n=this.scaleValues[1],r=e*this.scaleValues[2],i=new SuperMapAlgoPlot.Point(o.x+e*l,o.y+e*n),a=new SuperMapAlgoPlot.Point(i.x-4*r,i.y),u=new SuperMapAlgoPlot.Point(i.x-4*r,i.y-r/2),p=[];p.push(a),p.push(u);var s={lineTypeLimit:!0,fillLimit:!0};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,s);var c=new SuperMapAlgoPlot.Point(i.x-4*r,i.y),P=new SuperMapAlgoPlot.Point(i.x-r,i.y),f=[];f.push(c),f.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,s),this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],i,2*r,0);var g=new SuperMapAlgoPlot.Point(i.x+4*r,i.y),y=new SuperMapAlgoPlot.Point(i.x+r,i.y),h=[];h.push(g),h.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,s);var S=new SuperMapAlgoPlot.Point(i.x+4*r,i.y+r/2),b=new SuperMapAlgoPlot.Point(i.x+4*r,i.y),A=[];A.push(S),A.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A,s),this.addScalePoint(i,0);var d=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,2*r,2*r,90);this.addScalePoint(d,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0===l)return;var r=0,i=0;if(0===t&&(r=(e.x-n.x)/l,this.scaleValues[0]=r,i=(e.y-n.y)/l,this.scaleValues[1]=i),1===t){r=this.scaleValues[0],i=this.scaleValues[1];var a=new SuperMapAlgoPlot.Point(n.x+l*r,n.y+l*i),u=SuperMapAlgoPlot.PlottingUtil.distance(a,e);this.scaleValues[2]=u/2/l}}}}])&&cg(e.prototype,o),l&&cg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function hg(t){"@babel/helpers - typeof";return(hg="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})(t)}function Sg(t,e){for(var o=0;o=p){var s=SuperMapAlgoPlot.PlottingUtil.linePnt(l.pts,t[l.index],p);n.push(s),this.ComputeDashLine(a,u,n);var c=SuperMapAlgoPlot.PlottingUtil.linePnt(l.pts,t[l.index],p);i.push(c);for(var P=l.index+1;P=0;g--){var y=new SuperMapAlgoPlot.Point(n[g].x,n[g].y),h=new SuperMapAlgoPlot.Point(l.pts.x,l.pts.y),S=SuperMapAlgoPlot.PlottingUtil.distance(y,h);if(S>p){f=g;break}}if(-1==f)return;n.splice(f+1,n.length-1-f),s=SuperMapAlgoPlot.PlottingUtil.linePnt(l.pts,t[f],p),n.push(s),this.ComputeDashLine(a,u,n);for(var b=-1,A=n.length-1;Ap){b=A;break}if(-1==b)return;c=SuperMapAlgoPlot.PlottingUtil.linePnt(l.pts,t[b],p),i.push(c);for(var d=b+1;d1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n)}}])&&Sg(e.prototype,o),l&&Sg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function vg(t){"@babel/helpers - typeof";return(vg="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})(t)}function mg(t,e){for(var o=0;o.1||l<=0)&&(l=.1),this.scaleValues[0]=l,this.scaleValues[1]=this.getSubSymbolScaleValue(),this.scaleValues[2]=.5*l}var n=this.getLinePts(o,this.scaleValues[0],.5),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.dirAngle(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.computeSubSymbolC(r,a,i);for(var u=[],p=0;p<=n.startIndex;p++)u.push(o[p]);u.push(new SuperMapAlgoPlot.Point(n.startPt.x,n.startPt.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u);var s=[];if(n.endIndex<=o.length){s.push(new SuperMapAlgoPlot.Point(n.endPt.x,n.endPt.y));for(var c=n.endIndex+1;c<=o.length-1;c++)s.push(o[c]);this.addArrow(s,this.scaleValues[2])}this.scalePoints=[];var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,.5*a,.5*a,i+90);this.addScalePoint(P,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=u&&(a=u),this.scaleValues[0]=a}}}}},{key:"computeSubSymbolC",value:function(t,e,o){for(var l=[],n=0;n<360;n+=12)l.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.5*e,.5*e,n));l.push(l[0]);var r={lineColorLimit:!0,fillLimit:!1,fillStyle:0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,r);for(var i=[],a=0;a<360;a+=12)i.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.25*e,.25*e,a));i.push(i[0]),r={lineColorLimit:!0,fillLimit:!0,fillColorLimit:!0,fillStyle:1,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i,r);var u=[];u.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.25*e,.25*e,o+90)),u.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.5*e,.5*e,o+90)),r={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,r);var p=[];p.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.25*e,.25*e,o+270)),p.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.5*e,.5*e,o+270)),r={lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1},this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,r)}}])&&mg(e.prototype,o),l&&mg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Vg(t){"@babel/helpers - typeof";return(Vg="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})(t)}function Tg(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=2*n}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3],u=l*r,p=new SuperMapAlgoPlot.Point(o.x+l*i,o.y+l*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,u,0);for(var s=0;s=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=0,a=0;if(0===t)i=(e.x-n.x)/r,this.scaleValues[2]=i,a=(e.y-n.y)/r,this.scaleValues[3]=a;else if(1===t){i=this.scaleValues[2],a=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(n.x+r*i,n.y+r*a),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e);this.scaleValues[0]=p/r}}}}])&&Tg(e.prototype,o),l&&Tg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function xg(t){"@babel/helpers - typeof";return(xg="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})(t)}function Bg(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=2*n}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3];o.x=o.x+i*l,o.y=o.y+a*l;var u=new SuperMapAlgoPlot.Point(.25*l*r,.25*l*r),p=new SuperMapAlgoPlot.Point(0,.5*l*r),s=new SuperMapAlgoPlot.Point(-.25*l*r,.25*l*r),c=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,u,0),P=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,p,0),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,s,0);this.addCell(SuperMapAlgoPlot.SymbolType.ARCSYMBOL,[c,P,f],{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0});var g=new SuperMapAlgoPlot.Point(0,-.3*l*r),y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(o,g,0);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[c,y,f],{lineTypeLimit:!0,lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1,surroundLineLimit:!0}),this.scalePoints=[];var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(o,r*l*.5,r*l*.5,180);this.addScalePoint(h,0),this.addScalePoint(o,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){n.x=n.x+this.scaleValues[2]*r,n.y=n.y+this.scaleValues[3]*r;var i=SuperMapAlgoPlot.PlottingUtil.distance(e,n)/r;this.scaleValues[0]=i}else if(1===t){var a=(e.x-n.x)/r;this.scaleValues[2]=a;var u=(e.y-n.y)/r;this.scaleValues[3]=u}}}}])&&Bg(e.prototype,o),l&&Bg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ng(t){"@babel/helpers - typeof";return(Ng="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})(t)}function kg(t,e){for(var o=0;o=2&&this.controlPoints.length.2&&(this.subSymbolScaleValue=.2),this.scaleValues[0]=this.subSymbolScaleValue);var l=this.scaleValues[0],n=this.scaleValues[2],r=this.scaleValues[3],i=e*l,a=new SuperMapAlgoPlot.Point(o.x+e*n,o.y+e*r);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],a,i,0),this.addScalePoint(a,0);var u=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,i,i,90);this.addScalePoint(u,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0===l)return;var r=0,i=0;if(0===t&&(r=(e.x-n.x)/l,this.scaleValues[2]=r,i=(e.y-n.y)/l,this.scaleValues[3]=i),1===t){r=this.scaleValues[2],i=this.scaleValues[3];var a=new SuperMapAlgoPlot.Point(n.x+l*r,n.y+l*i),u=SuperMapAlgoPlot.PlottingUtil.distance(a,e);this.scaleValues[0]=u/2/l}}}}])&&kg(e.prototype,o),l&&kg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Jg(t){"@babel/helpers - typeof";return(Jg="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})(t)}function Hg(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);this.isEdit||(this.subSymbolScaleValue=this.getDefaultSubSymbolSize()/o,this.subSymbolScaleValue>.2&&(this.subSymbolScaleValue=.2),this.scaleValues[0]=this.subSymbolScaleValue);var n=this.scaleValues[0],r=this.scaleValues[2],i=this.scaleValues[3];l.x=l.x+r*o,l.y=l.y+i*o;var a=new SuperMapAlgoPlot.Point(2*o*n,0),u=new SuperMapAlgoPlot.Point(-2*o*n,0),p=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,a,0),s=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,u,0),c=[];c.push(p),c.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c);var P=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,a,0),f=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(l,u,0);this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],P,n*o,90),this.computeSubSymbol(this.subSymbols[1],f,n*o,90));var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(l,n*o,n*o,180);this.addScalePoint(g,0),this.addScalePoint(l,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.controlPoints.length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0===t){r.x=r.x+this.scaleValues[2]*n,r.y=r.y+this.scaleValues[3]*n;var i=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/n;this.scaleValues[0]=i}if(1===t){var a=(e.x-r.x)/n;this.scaleValues[2]=a;var u=(e.y-r.y)/n;this.scaleValues[3]=u}}}}])&&Hg(e.prototype,o),l&&Hg(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Xg(t){"@babel/helpers - typeof";return(Xg="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})(t)}function $g(t,e){for(var o=0;othis.minEditPts){for(var g=1;g=0?(j=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(Y,t[D],N)).pntRight:(j=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(Y,t[D],N)).pntLeft;var k=SuperMapAlgoPlot.PlottingUtil.linePnt(N,P,Y),z=.3*Y,F=SuperMapAlgoPlot.PlottingUtil.linePnt(k,N,z),W=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(.3*z,k,F),G=W.pntLeft,J=W.pntRight;(h=[]).push(N),h.push(k),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,null,!0),(h=[]).push(G),h.push(k),h.push(J);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0},!0),this.addScalePoint(k),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(this.scalePoints.length<=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=o.length,r=e;if(t>=0&&th&&(s=f,P=y,c=h)}}if(-1===s||s>o.length-1)return;for(var S=0,b=0;bl)return;this.scaleValues[n+1]=S/l;var v,m=this.scaleValues.length,O=l*this.scaleValues[m-3];v=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[s],o[s+1],r)?c/O:-Math.abs(c/O),this.scaleValues[n+2]=v}}}}])&&$g(e.prototype,o),l&&$g(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ny(t){"@babel/helpers - typeof";return(ny="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})(t)}function ry(t,e){for(var o=0;othis.scaleValues.length&&(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));for(var o=e*this.scaleValues[4],l=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]),n=SuperMapAlgoPlot.PlottingUtil.distance(l.pntLeft,l.pntRight),r=n,i=2.5*n,a=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,u=[],p=120;p<420;p+=12)u.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],r,.5*i,p+a-90));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),this.finish()}}}}])&&ry(e.prototype,o),l&&ry(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function sy(t){"@babel/helpers - typeof";return(sy="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})(t)}function cy(t,e){for(var o=0;othis.scaleValues.length&&(this.scaleValues=[],this.scaleValues.push(this.RATIO_OUTLINE),this.scaleValues.push(.05));[].push(o[o.length-1]);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);this.isEdit||(this.scaleValues.push(.5*this.getSubSymbolScaleValue()),this.scaleValues.push(this.getSubSymbolScaleValue()));for(var n=l*this.scaleValues[0],r=t[t.length-1],i=SuperMapAlgoPlot.PlottingUtil.distance(r,o[o.length-1]);i<=1.5*n;)o.pop(),i=SuperMapAlgoPlot.PlottingUtil.distance(r,o[o.length-1]);o.push(r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o);var a=o[o.length-2],u=SuperMapAlgoPlot.PlottingUtil.dirAngle(r,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,n,n,u+14),s=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,n,n,u-14),c=[];c.push(p),c.push(r),c.push(s);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,c,{lineTypeLimit:!0,fillLimit:!0,fillStyle:0,strokeOpacity:1,opacity:1});var P=l*this.scaleValues[1],f=SuperMapAlgoPlot.PlottingUtil.dirAngle(o[0],o[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,g=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],P,P,f+90),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],P,P,f-90),h=[];h.push(g),h.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h);var S=(l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t))*this.scaleValues[0];this.scalePoints=[];var b=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[o.length-1],S,S,u+180);this.scalePoints.push(b),this.scalePoints.push(g),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.8){var O;if(!(O=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.8*o,M)))return;m=O.index,a.pts,h=[];for(var w=0;w.8){var D=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.8*o,C);if(!D.bfind)return;I=D.index,D.pts,h=[];for(var N=0;Nh&&(s=f,P=y,c=h)}}if(-1==s||s>u.length-1)return;if(!(v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(c,a)).bfind)return;var S=v.index;w=new SuperMapAlgoPlot.Point(a[(a[S].x,a[S].y)]),U=new SuperMapAlgoPlot.Point(a[(a[S+1].x,a[S+1].y)]),r=0;for(var b=0;bl)return;var A=SuperMapAlgoPlot.PlottingUtil.dirAngle(w,U),d=SuperMapAlgoPlot.PlottingUtil.dirAngle(P,e)+A;this.scaleValues[4]=d;var M=r/l;this.scaleValues[0]=M}else if(1===t){var v;if(i=l*this.scaleValues[0],-1===(v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(i,a)).index)return;S=v.index;var m=v.pts,O=new SuperMapAlgoPlot.Point(m.x,m.y),w=new SuperMapAlgoPlot.Point(a[S].x,a[S].y),U=new SuperMapAlgoPlot.Point(a[S+1].x,a[S+1].y);A=SuperMapAlgoPlot.PlottingUtil.dirAngle(w,U);d=SuperMapAlgoPlot.PlottingUtil.dirAngle(O,e)-A;this.scaleValues[4]=d;var L=(r=SuperMapAlgoPlot.PlottingUtil.distance(O,e))/l;this.scaleValues[2]=L>.65?.65:L}else if(2==t){for(var V=-1,T=0,j=new SuperMapAlgoPlot.Point(0,0),R=a.length,_=0;_B&&(V=_,j=x,T=B)}}if(-1==V||V>R-1)return;for(var C=0,Y=0;Yl)return;var k=C/l;this.scaleValues[1]=k}}}}])&&Sy(e.prototype,o),l&&Sy(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function vy(t){"@babel/helpers - typeof";return(vy="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})(t)}function my(t,e){for(var o=0;o2&&(o=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[2]));for(var l=[],n=80;n<420;n+=12)l.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,e,n));l.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,e,420)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,l);var r=[],i=o>e?o:e;i*=1.5,r.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],i,i,50)),r.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,e,70)),r.push(new SuperMapAlgoPlot.Point(t[0].x,t[0].y));var a=SuperMapAlgoPlot.PlottingUtil.getBeizerCtrlPt(r),u=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt(a);this.addArrow(u,.1),this.finish()}}}])&&my(e.prototype,o),l&&my(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Vy(t){"@babel/helpers - typeof";return(Vy="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})(t)}function Ty(t,e){for(var o=0;o=this.scaleValues.length&&this.scaleValues.push(.2);var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=e*this.scaleValues[0];this.computeArcAndArrow(t[0],e,o,40,140),this.computeArcAndArrow(t[0],e,o,160,260),this.computeArcAndArrow(t[0],e,o,290,380);for(var l=[],n=0;n<360;n+=12)l.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,n));this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{lineColorLimit:!0,fillStyle:1,color:"#0000FF",opacity:1}),this.computeSubCells(t[0],o),this.scalePoints=[];var r=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,0);this.scalePoints.push(r),this.finish()}}},{key:"computeSubCells",value:function(t,e){}},{key:"computeArcAndArrow",value:function(t,e,o,l,n){for(var r=[],i=l;i.7&&(n=.6),this.scaleValues[0]=n}}}}])&&Ty(e.prototype,o),l&&Ty(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function xy(t){"@babel/helpers - typeof";return(xy="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})(t)}function By(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=2*n}var r=this.scaleValues[0],i=l*this.scaleValues[2],a=l*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(o.x+i,o.y+a),p=l*r;this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],u,p,0);var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,180);this.addScalePoint(s,0),this.addScalePoint(u,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===r)return;var i=0,a=0,u=0,p=0;if(0===t){u=r*(i=this.scaleValues[2]),p=r*(a=this.scaleValues[3]);var s=new SuperMapAlgoPlot.Point(n.x+u,n.y+p),c=SuperMapAlgoPlot.PlottingUtil.distance(e,s)/r;this.scaleValues[0]=c}else 1===t&&(i=(u=e.x-n.x)/r,a=(p=e.y-n.y)/r,this.scaleValues[2]=i,this.scaleValues[3]=a)}}}])&&Hy(e.prototype,o),l&&Hy(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Xy(t){"@babel/helpers - typeof";return(Xy="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})(t)}function $y(t,e){for(var o=0;o=2&&this.controlPoints.length0){var o;if(null==this.subSymbols[0].symbolData)return;o=this.subSymbols[0].symbolData.symbolSize.x;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=l*this.scaleValues[4],r=l*this.scaleValues[5],i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,t),u=SuperMapAlgoPlot.PlottingUtil.radian(a.pts,i.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=60*SuperMapAlgoPlot.PlottingUtil.distance(i.pts,a.pts)/o,s=new SuperMapAlgoPlot.Point((a.pts.x+i.pts.x)/2,(i.pts.y+a.pts.y)/2);if(null==this.subSymbols.length)return;if(null!=this.subSymbols[0].code){this.computeSubSymbol(this.subSymbols[0],s,p,u+90);var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a.pts,p,p,u+90),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a.pts,2*p,2*p,u+90),f=[];f.push(c),f.push(P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f);var g=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.2*p,.2*p,u+90),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.05*p,.05*p,u),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.05*p,.05*p,u+180),S=[];S.push(g),S.push(y),S.push(h);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,S,{fillLimit:!0,fill:!0})}i.pts.isScalePoint=!0,i.pts.tag=this.scalePoints.length,this.scalePoints.push(i.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 o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).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)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var l=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),n=SuperMapAlgoPlot.PlottingUtil.clonePoints(o);n.splice(0,2),n.unshift(l);var r=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,n),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(-1===r.index&&3===t&&(r.pt=l.clone()),-1==r.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMapAlgoPlot.PlottingUtil.clonePoints(n);a.splice(0,r.index+1),a.unshift(r.pt);var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(a);i.5&&(this.scaleValues[4]=.5)}}}}}])&&Th(e.prototype,o),l&&Th(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function xh(t){"@babel/helpers - typeof";return(xh="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})(t)}function Bh(t,e){for(var o=0;o2){for(var L=n;L2){for(var V=n;V=c.index;W--)k.push(t[W]);this.addArrow(k,.2*this.scaleValues[0])}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length}}])&&Bh(e.prototype,o),l&&Bh(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Nh(t){"@babel/helpers - typeof";return(Nh="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})(t)}function kh(t,e){for(var o=0;o2){for(var L=n;L2){for(var V=n;V2){for(var D=C.index;D>=Y.index;D--)I.push(t[D]);x=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[C.index],t[C.index+1])*SuperMapAlgoPlot.PlottingUtil.RTOD}else I.push(C.pts),I.push(Y.pts),x=SuperMapAlgoPlot.PlottingUtil.dirAngle(Y.pts,C.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.addArrow(I,.3*this.scaleValues[0]);var N=.08*P;this.computeSubSymbol(this.subSymbols[0],l[l.length-1],N,x)}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length}}])&&kh(e.prototype,o),l&&kh(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();SuperMapAlgoPlot.AlgoSymbol5035401=Gh;var Jh=window.SuperMap=window.SuperMap||{},Hh=(Jh.Plot=Jh.Plot||{},window.SuperMapAlgoPlot=Jh.Plot||{});function Kh(t){"@babel/helpers - typeof";return(Kh="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})(t)}function qh(t,e){for(var o=0;o.2||n<=0)&&(n=.2),this.scaleValues[0]=n,this.scaleValues[1]=.5*this.getSubSymbolScaleValue()}for(var r=this.getLinePts(o,this.scaleValues[0],.5),i=new Hh.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),a=Hh.PlottingUtil.dirAngle(r.startPt,r.endPt)*Hh.PlottingUtil.RTOD,u=Hh.PlottingUtil.distance(r.startPt,r.endPt),p=[],s=0;s<=r.startIndex;s++)p.push(o[s]);p.push(new Hh.Point(r.startPt.x,r.startPt.y)),this.addCell(Hh.SymbolType.POLYLINESYMBOL,p);var c=[];if(r.endIndex<=o.length){c.push(new Hh.Point(r.endPt.x,r.endPt.y));for(var P=r.endIndex+1;P<=o.length-1;P++)c.push(o[P]);this.addArrow(c,this.scaleValues[2])}this.scalePoints=[];var f=Hh.PlottingUtil.circlePoint(i,.5*u,.5*u,a+90);if(this.addScalePoint(f,0),this.subSymbols.length>0)this.computeSubSymbol(this.subSymbols[0],centerPoint,.8*u,a-180);else{var g=new Hh.Point(0,.2*u),y=new Hh.Point(u,.2*u),h=new Hh.Point(u,-.2*u),S=new Hh.Point(0,-.2*u),b=Hh.PlottingUtil.coordinateTrans(p[p.length-1],g,a),A=Hh.PlottingUtil.coordinateTrans(p[p.length-1],y,a),d=Hh.PlottingUtil.coordinateTrans(p[p.length-1],h,a),M=Hh.PlottingUtil.coordinateTrans(p[p.length-1],S,a),v=[];v.push(b),v.push(A),v.push(d),v.push(M),v.push(b);var m={lineColorLimit:!0,strokeColor:"#008000",strokeOpacity:1,color:"#008000",opacity:1,lineColor:"#008000"};this.addCell(Hh.SymbolType.ARBITRARYPOLYGONSYMBOL,v,m);var O=new Hh.Point(.5*u,.2*u),w=new Hh.Point(.5*u,-.2*u),U=Hh.PlottingUtil.coordinateTrans(p[p.length-1],O,a),L=Hh.PlottingUtil.coordinateTrans(p[p.length-1],w,a);(v=[]).push(U),v.push(L),this.addCell(Hh.SymbolType.POLYLINESYMBOL,v,m)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=Hh.PlottingUtil.clonePoints(this.controlPoints);if((o=Hh.PlottingUtil.clearSamePts(o)).length.2||n<=0)&&(n=.2),this.scaleValues[0]=n,this.scaleValues[1]=.5*this.getSubSymbolScaleValue(),this.scaleValues[2]=0}for(var r=this.getLinePts(o,this.scaleValues[0],.5),i=new SuperMapAlgoPlot.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),a=SuperMapAlgoPlot.PlottingUtil.dirAngle(r.startPt,r.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,u=SuperMapAlgoPlot.PlottingUtil.distance(r.startPt,r.endPt),p=[],s=0;s<=r.startIndex;s++)p.push(o[s]);p.push(new SuperMapAlgoPlot.Point(r.startPt.x,r.startPt.y)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p);var c=[];if(r.endIndex<=o.length){c.push(new SuperMapAlgoPlot.Point(r.endPt.x,r.endPt.y));for(var P=r.endIndex+1;P<=o.length-1;P++)c.push(o[P]);this.addArrow(c,this.scaleValues[1])}if(this.subSymbols.length>0)this.computeSubSymbol(this.subSymbols[0],centerPoint,.8*u,a-180);else{var f=new SuperMapAlgoPlot.Point(0,.2*u),g=new SuperMapAlgoPlot.Point(u,.2*u),y=new SuperMapAlgoPlot.Point(u,-.2*u),h=new SuperMapAlgoPlot.Point(0,-.2*u),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],f,a),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],g,a),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],y,a),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],h,a),M=[];M.push(S),M.push(b),M.push(A),M.push(d),M.push(S);var v={lineColorLimit:!0,strokeColor:"#008000",strokeOpacity:1,color:"#008000",opacity:1,lineColor:"#008000"};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,M,v);var m=new SuperMapAlgoPlot.Point(.5*u,.2*u),O=new SuperMapAlgoPlot.Point(.5*u,-.2*u),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],m,a),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(p[p.length-1],O,a);(M=[]).push(w),M.push(U),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M,v);var L=0,V=0,T=0,j=0,R=0,_=this.scaleValues[1];_=.7*SuperMapAlgoPlot.PlottingUtil.distance(p[0],p[p.length-1]);var E=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(_,p);if(!E.bfind)return;L=E.index;var x,B,C,Y=E.pts,I=.1*u,D=(f=new SuperMapAlgoPlot.Point(p[L].x,p[L].y),g=new SuperMapAlgoPlot.Point(Y.x,Y.y),SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(I,f,g));j=D.pntLeft.x,R=D.pntLeft.y,V=D.pntRight.x,T=D.pntRight.y,0==(x=this.scaleValues[2])?B=new SuperMapAlgoPlot.Point(V,T):1==x&&(B=new SuperMapAlgoPlot.Point(j,R)),(M=[]).push(B),M.push(Y),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,M),V=0,T=0,j=0,R=0;var N;N=.3*SuperMapAlgoPlot.PlottingUtil.distance(p[0],p[p.length-1]);var k=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(N,c);if(!k.bfind)return;L=k.index,C=k.pts;y=new SuperMapAlgoPlot.Point(c[L].x,c[L].y),h=new SuperMapAlgoPlot.Point(C.x,C.y);var z,F=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(I,y,h);j=F.pntLeft.x,R=F.pntLeft.y,V=F.pntRight.x,T=F.pntRight.y,0==x?z=new SuperMapAlgoPlot.Point(V,T):1==x&&(z=new SuperMapAlgoPlot.Point(j,R)),(M=[]).push(z),M.push(C),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,M),this.scalePoints=[];var W=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,.5*u,.5*u,a+90);this.addScalePoint(W,0),this.addScalePoint(z,1)}this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=this.scaleValues[0],r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0==t){var i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*r,l),a=2*SuperMapAlgoPlot.PlottingUtil.distance(i.pts,e)/r;this.scaleValues[0]=a<=.3?a:.3}else{var u=r*(.5+.5*n),p=(t=-1,SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(u,l));if(!p.bfind)return;t=p.index,p.pts;var s=new SuperMapAlgoPlot.Point(l[t].x,l[t].y),c=new SuperMapAlgoPlot.Point(l[t+1].x,l[t+1].y),P=new SuperMapAlgoPlot.Point(e.x,e.y),f=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(s,c,P);this.scaleValues[2]=f?0:1}}}}])&&eS(e.prototype,o),l&&eS(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function iS(t){"@babel/helpers - typeof";return(iS="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})(t)}function aS(t,e){for(var o=0;o0&&(u+=SuperMapAlgoPlot.PlottingUtil.distance(a[p],a[p-1]));var s,c,P=n-u,f=o*this.scaleValues[1],g=[];if(P>=f){s=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[r.index],f),a.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a),c=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[r.index+1],f),g.push(c);for(var y=e.length,h=r.index+1;h=0;d--)if(S=new SuperMapAlgoPlot.Point(a[d].x,a[d].y),b=new SuperMapAlgoPlot.Point(i.x,i.y),SuperMapAlgoPlot.PlottingUtil.distance(S,b)>f){A=d;break}if(-1==A)return;a.splice(A+1,a.length-1-A),s=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[A],f),a.push(s),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,a);for(var M=-1,v=r.index;vf){M=v;break}if(-1==M)return;c=SuperMapAlgoPlot.PlottingUtil.linePnt(i,e[M],f),g.push(c);for(var m=M+1;m0){if(null!==this.subSymbols[0].symbolData)for(var Y=0;Yo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}}}])&&wS(e.prototype,o),l&&wS(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function jS(t){"@babel/helpers - typeof";return(jS="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})(t)}function RS(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[2]=2*l}var n=o*this.scaleValues[0],r=this.scaleValues[1],i=o*this.scaleValues[2],a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,e);if(a.bfind){var u=a.pts.clone(),p=e[a.index].clone(),s=e[a.index+1].clone(),c=SuperMapAlgoPlot.PlottingUtil.radian(p,s)*SuperMapAlgoPlot.PlottingUtil.RTOD,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,i,i,c+r),f=[];f.push(a.pts),f.push(P);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,{lineTypeLimit:!0,surroundLineLimit:!0});var g=SuperMapAlgoPlot.PlottingUtil.radian(u,P)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=new SuperMapAlgoPlot.Point(-.2*i,.05*i),h=new SuperMapAlgoPlot.Point(-.2*i,-.05*i),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,y,g),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,h,g),A=[];A.push(P),A.push(S),A.push(b);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,A,{lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fill:!0});var d=.3*i,M=.6*i,v=n-M;v<0&&(v=0);var m=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(v,e);if(m.bfind){var O=[];O.push(m.pts);for(var w=m.index;w>=0;w--)O.push(e[w]);var U=[];U.push(m.pts);for(var L=m.index+1;L1){var j=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(V,O);if(j.bfind){(T=[]).push(j.pts);for(var R=j.index+1;R1&&(O=O.concat(T))}}if(O.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O),U.length>1){var _=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(V,U);if(_.bfind){(T=[]).push(_.pts);for(var E=_.index+1;E1&&(U=U.concat(T))}}var x=n+M;x>o&&(x=o),x=o-x;for(var B=[],C=U.length-1;C>=0;C--)B.push(U[C]);var Y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(x,B);if(Y.bfind){var I=[];I.push(Y.pts);for(var D=Y.index;D>=0;D--)I.push(B[D]);var N=[];N.push(Y.pts);for(var k=Y.index+1;k1){var z=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(V,I);if(z.bfind){(T=[]).push(z.pts);for(var F=z.index+1;F1&&(I=I.concat(T))}}if(I.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,I),N.length>1){var W=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(V,N);if(W.bfind){(T=[]).push(W.pts);for(var G=W.index+1;G1&&(N=N.concat(T))}}N.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,N),this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],m.pts,d,c+r+180,.3),this.computeSubSymbol(this.subSymbols[1],Y.pts,d,c+r+180,.3)),this.addScalePoint(a.pts,0),this.addScalePoint(P,1),this.finish()}}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengtht||1f&&(a=s,u=P,p=f)}}if(-1===a||a>r.length-1)return;for(var g=0,y=0;yn)return;this.scaleValues[0]=g/n}if(1===t){var A=n*this.scaleValues[0],d=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(A,l);if(!d.bfind)return;var M=d.pts.clone(),v=new SuperMapAlgoPlot.Point(l[d.index].x,l[d.index].y),m=new SuperMapAlgoPlot.Point(l[d.index+1].x,l[d.index+1].y),O=SuperMapAlgoPlot.PlottingUtil.radian(v,m)*SuperMapAlgoPlot.PlottingUtil.RTOD,w=SuperMapAlgoPlot.PlottingUtil.radian(M,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[1]=w-O;var U=SuperMapAlgoPlot.PlottingUtil.distance(M,e);this.scaleValues[2]=U/n}}}}])&&YS(e.prototype,o),l&&YS(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zS(t){"@babel/helpers - typeof";return(zS="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})(t)}function FS(t,e){for(var o=0;o.24&&(n=.24),this.scaleValues[0]=n}}}}])&&qS(e.prototype,o),l&&qS(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function tb(t){"@babel/helpers - typeof";return(tb="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})(t)}function eb(t,e){for(var o=0;o=2&&this.controlPoints.length0){var o;if(null==this.subSymbols[0].symbolData)return;o=this.subSymbols[0].symbolData.symbolSize.x;var l=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]),n=l*this.scaleValues[4],r=l*this.scaleValues[5],i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,t),u=SuperMapAlgoPlot.PlottingUtil.radian(a.pts,i.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=100*SuperMapAlgoPlot.PlottingUtil.distance(i.pts,a.pts)/o*2;if(null==this.subSymbols.length)return;if(null!=this.subSymbols[0].code){this.computeSubSymbol(this.subSymbols[0],a.pts,p,u-90);var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(a.pts,p,p,u+90),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a.pts,2*p,2*p,u+90),P=[];P.push(s),P.push(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.2*p,.2*p,u+90),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.05*p,.05*p,u),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.05*p,.05*p,u+180),h=[];h.push(f),h.push(g),h.push(y);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,h,{fillLimit:!0,fill:!0})}i.pts.isScalePoint=!0,i.pts.tag=this.scalePoints.length,this.scalePoints.push(i.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 o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).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)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var l=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),n=SuperMapAlgoPlot.PlottingUtil.clonePoints(o);n.splice(0,2),n.unshift(l);var r=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,n),i=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);if(3===t&&null==r.pt&&(r.pt=l.clone()),-1==r.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMapAlgoPlot.PlottingUtil.distance(l,e);this.scaleValues[t+1]=a/i,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5),this.scaleValues[5]>1&&(this.scaleValues[5]=1)}}}}}])&&Ab(e.prototype,o),l&&Ab(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ob(t){"@babel/helpers - typeof";return(Ob="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})(t)}function wb(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{lineColorLimit:!0,strokeColor:"#00FF00",strokeOpacity:1,color:"#00FF00",opacity:1,lineColor:"#00FF00"});var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/o;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=.4*n}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3],u=o*r,p=new SuperMapAlgoPlot.Point(l.x-o*i,l.y-o*a);this.addText("!",p,4*u,0,"#00FF00"),this.scalePoints=[];var s=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,u,u,0);this.addScalePoint(s),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=[];if(l=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=(e.x-r.x)/n;this.scaleValues[2]=-i;var a=(e.y-r.y)/n;this.scaleValues[3]=-a}else if(1==t){i=this.scaleValues[2],a=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(r.x+n*i,r.y+n*a),p=SuperMapAlgoPlot.PlottingUtil.distance(u,new SuperMapAlgoPlot.Point(e.x,e.y))/2/n;this.scaleValues[0]=p}}}}])&&wb(e.prototype,o),l&&wb(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function jb(t){"@babel/helpers - typeof";return(jb="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})(t)}function Rb(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(0>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e,{lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,lineColor:"#0000ff"});var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/o;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=.4*n}var r=this.scaleValues[0],i=this.scaleValues[1],a=this.scaleValues[2],u=this.scaleValues[3],p=o*r,s=l.y-o*u,c=new SuperMapAlgoPlot.Point(l.x-o*a,s),P=new SuperMapAlgoPlot.Point(l.x-o*i,s);this.addText("!",c,4*p,0,"#0000ff"),this.addText("!",P,4*p,0,"#0000ff"),this.scalePoints=[];var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,p,p,0);this.addScalePoint(f),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(t<0||t>1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=[];if(l=3>=(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):o.length>3&&!0===this.polylineConnectLocationPoint?o:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),0>(l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)).length)return;var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),r=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l);if(0==t){var i=(e.x-r.x)/n;this.scaleValues[2]=-i;var a=(e.y-r.y)/n;this.scaleValues[3]=-a}else if(1==t){i=this.scaleValues[2],a=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(r.x+n*i,r.y+n*a),p=SuperMapAlgoPlot.PlottingUtil.distance(u,new SuperMapAlgoPlot.Point(e.x,e.y))/2/n;this.scaleValues[0]=p}}}}])&&Rb(e.prototype,o),l&&Rb(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Cb(t){"@babel/helpers - typeof";return(Cb="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})(t)}function Yb(t,e){for(var o=0;o0)this.computeSubSymbol(this.subSymbols[0],c,.9*s,y-90);else{y+=180;var h=new SuperMapAlgoPlot.Point(.3*s,0),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,h,y),b=[],A=new SuperMapAlgoPlot.Point(-.6*s,0),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,A,y);(b=[]).push(S),b.push(d),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b);var M=new SuperMapAlgoPlot.Point(-.35*s,0),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,.4*s,.4*s,45),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,.4*s,.4*s,315),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,M,y),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,v,y),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,m,y);(b=[]).push(w),b.push(O),b.push(U),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,b)}this.scalePoints=[],this.addScalePoint(u[u.length-1]);var L=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,y+90);this.addScalePoint(L),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}else if(1==t){var r=this.scaleValues[0]*l,i=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],r,r,90),a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[1],r,r,90),u=new SuperMapAlgoPlot.Point((i.x+a.x)/2,(i.y+a.y)/2),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e)/l;p>=.8&&(p=.8),this.scaleValues[1]=p}}}}])&&Yb(e.prototype,o),l&&Yb(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zb(t){"@babel/helpers - typeof";return(zb="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})(t)}function Fb(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l,this.scaleValues[1]=l,this.scaleValues[2]=.5*l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=180*SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);if(0=2){for(var n=-1,r=0;r0)this.computeSubSymbol(this.subSymbols[0],c,.9*s,g-90);else{var h=new SuperMapAlgoPlot.Point(.3*s,0),S=new SuperMapAlgoPlot.Point(.4*s,0),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,h,g),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,S,g),d=[];d.push(b),d.push(A),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,d,{fill:!1,fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var M=new SuperMapAlgoPlot.Point(-.4*s,0),v=new SuperMapAlgoPlot.Point(-.3*s,0),m=new SuperMapAlgoPlot.Point(-.3*s,.2*s),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,M,g),w=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,v,g),U=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,m,g);(d=[]).push(b),d.push(O),d.push(U),d.push(w),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var L=new SuperMapAlgoPlot.Point(-.2*s,0),V=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,.3*s,.3*s,45),T=SuperMapAlgoPlot.PlottingUtil.circlePoint(L,.3*s,.3*s,315),j=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,L,g),R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,V,g),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,T,g);(d=[]).push(R),d.push(j),d.push(_),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0});var E=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,.15*s,.15*s,45),x=SuperMapAlgoPlot.PlottingUtil.circlePoint(h,.15*s,.15*s,315),B=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,E,g),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(c,x,g);(d=[]).push(B),d.push(b),d.push(C),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d,{fillLimit:!0,lineTypeLimit:!0,surroundLineLimit:!0})}this.scalePoints=[],this.addScalePoint(u[u.length-1]);var Y=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,s,s,g+90);this.addScalePoint(Y),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);if(0==t){var n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}else if(1==t){var r=this.scaleValues[0]*l,i=SuperMapAlgoPlot.PlottingUtil.radian(o[0],o[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[0],r,r,90+i),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(o[1],r,r,90+i),p=new SuperMapAlgoPlot.Point((a.x+u.x)/2,(a.y+u.y)/2),s=SuperMapAlgoPlot.PlottingUtil.distance(p,e)/l;s>=.8&&(s=.8),this.scaleValues[1]=s}}}}])&&eA(e.prototype,o),l&&eA(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function iA(t){"@babel/helpers - typeof";return(iA="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})(t)}function aA(t,e){for(var o=0;o1&&(P.push(f),f=[]):f.push(i.pt[g]);f.length>1&&P.push(f);for(var y=0;ythis.scaleValues.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),i=new SuperMapAlgoPlot.Point(e.x,e.y);if(0===t){var a=o[0],u=SuperMapAlgoPlot.PlottingUtil.distance(a,i);this.scaleValues[1]=2*u/l}else if(1===t)a=o[0],u=SuperMapAlgoPlot.PlottingUtil.distance(a,i),this.scaleValues[0]=u/l;else if(2===t){for(var p=-1,s=0,c=new SuperMapAlgoPlot.Point(0,0),P=0;Ph&&(p=P,c=y,s=h)}}if(-1===p||p>n.length-1)return;for(var S=[],b=0;br)return;this.scaleValues[2]=A/r}else if(3===t){var d=r*this.scaleValues[2],M=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(n,d);if(-1===M.index)return;var v=SuperMapAlgoPlot.PlottingUtil.distance(M.pt,e);this.scaleValues[3]=v/l}}}},{key:"GetCurvePts",value:function(t,e,o){for(var l,n=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n),i=r*e,a=r*o/2,u=[],p=[],s=n[0],c=!1,P=n[0],f=1;f1&&0===b?this.ClearCurvePts2D(P,s,g,p,A,u):u.concat(A),p=(p=[]).concat(A),P=s,s=h}f===n.length-1&&(h=n[n.length-1],A=this.GetCosPts2D(s,h,i,a),u=p.length>1&&A.length>1?this.ClearCurvePts2D(P,s,g,p,A,u):u.concat(A))}}return{pt:u,scalePt:l}}},{key:"GetCosPts2D",value:function(t,e,o,l){for(var n=[],r=SuperMapAlgoPlot.PlottingUtil.distance(t,e),i=o/30,a=0;al&&fl){var g;g=P>l?s:c;var y=this.getLineAddCircleIntersectPts(s,c,u);y.length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[y[0],g])}else{var h=SuperMapAlgoPlot.PlottingUtil.projectPoint(a,s,c);if(SuperMapAlgoPlot.PlottingUtil.distance(a,h)>=l)this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[s,c]);else if(SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine(h,s,c)){var S=this.getLineAddCircleIntersectPts(s,c,u);if(S.length>0){S.unshift(s),S.push(c);for(var b=0;b=t.length-1?SuperMapAlgoPlot.PlottingUtil.radian(t[t.length-2],t[t.length-1])*SuperMapAlgoPlot.PlottingUtil.RTOD:SuperMapAlgoPlot.PlottingUtil.radian(t[r.index],t[r.index+1])*SuperMapAlgoPlot.PlottingUtil.RTOD,this.subSymbols.length>0){if(null!==this.subSymbols[0].symbolData)for(var A=0;ASuperMapAlgoPlot.PlottingUtil.distance(n,o)}},{key:"getLineAddCircleIntersectPts",value:function(t,e,o){var l=o.slice();l[0].x===l[l.length-1].x&&l[0].y===l[l.length-1].y||l.push(l[0]);for(var n=[],r=0;re.x){for(var s=0;sn[P+1].x){var f=n[P];n[P]=n[P+1],n[P+1]=f}}else if(t.y>e.y){for(var g=0;gn[h+1].y){var S=n[h];n[h]=n[h+1],n[h+1]=S}return n}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===t){for(var n=0,r=-1,i=null,a=0;a1&&(P=1),this.scaleValues[0]=P}if(1===t){var f=this.scaleValues[0]*l,g=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,f);if(-1===g.index)return;var y=SuperMapAlgoPlot.PlottingUtil.distance(g.pt,e)/l;y>.4&&(y=.4),this.scaleValues[1]=y}}}}])&&fA(e.prototype,o),l&&fA(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function bA(t){"@babel/helpers - typeof";return(bA="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})(t)}function AA(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],r,y,g),this.addScalePoint(s[0],0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!=t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.24&&(n=.24),this.scaleValues[0]=n}}}}])&&AA(e.prototype,o),l&&AA(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function OA(t){"@babel/helpers - typeof";return(OA="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})(t)}function wA(t,e){for(var o=0;o0?new SuperMapAlgoPlot.Point(f.pntLeft.x,f.pntLeft.y):new SuperMapAlgoPlot.Point(f.pntRight.x,f.pntRight.y);var g=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(a,P,c.pt),y=[];if(y.push(g.pntRight),y.push(P),y.push(g.pntLeft),0===s){var h=new SuperMapAlgoPlot.Point(P.x,P.y);h.isScalePoint=!0,h.tag=0,this.scalePoints.push(h)}this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,y,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0})}}var S=SuperMapAlgoPlot.PlottingUtil.radian(t[t.length-2],t[t.length-1])*SuperMapAlgoPlot.PlottingUtil.RTOD,b=this.scaleValues[1]*n,A=SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2]),d=SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-2],t[t.length-1],.5*b+A);this.addText(this.subText,d,b,S),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint&&0===t){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[0]=l?-1:1}}}])&&YA(e.prototype,o),l&&YA(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zA(t){"@babel/helpers - typeof";return(zA="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})(t)}function FA(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(2>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL,e);for(var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),l=e[0].x,n=e[0].x,r=e[0].y,i=e[0].y,a=[],u=0;ue[u].x&&(l=e[u].x),ne[u].y&&(r=e[u].y),i10&&(p=10);for(var s=.2*p,c=[],P=0;P<360;P+=18){var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(new SuperMapAlgoPlot.Point(0,0),s,s,P);c.push(f)}for(var g=0,y=l;yl)return o;for(var n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=2*parseInt(l/(1.5*e)),i=0;i0&&o.push(n),o}}])&&ed(e.prototype,o),l&&ed(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function id(t){"@babel/helpers - typeof";return(id="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})(t)}function ad(t,e){for(var o=0;ol)return o;for(var n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),r=2*parseInt(l/(1.5*e)),i=0;i0&&o.push(n),o}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.8?r=.8:r<.2&&(r=.2),this.scaleValues[1]=r}}}}])&&fd(e.prototype,o),l&&fd(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function bd(t){"@babel/helpers - typeof";return(bd="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})(t)}function Ad(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=.8*SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,a,i);for(var u=[],p=[],s=0;s<=n.startIndex;s++)u.push(e[s]);if(u.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),n.endIndex<=e.length){p.push(n.endPt);for(var c=n.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,i+90);this.addScalePoint(f,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=.8*SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,a,i+180);for(var u=[],p=[],s=0;s<=n.startIndex;s++)u.push(e[s]);if(u.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),n.endIndex<=e.length){p.push(n.endPt);for(var c=n.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,i+90);this.addScalePoint(f,0),this.finish()}}}])&&Yd(e.prototype,o),l&&Yd(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zd(t){"@babel/helpers - typeof";return(zd="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})(t)}function Fd(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=.8*SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],r,.05*a,i+90),this.computeSubSymbol(this.subSymbols[1],r,a,i+180));for(var u=[],p=[],s=0;s<=n.startIndex;s++)u.push(e[s]);if(u.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),n.endIndex<=e.length){p.push(n.endPt);for(var c=n.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,i+90);this.addScalePoint(f,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=.8*SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,a,i+180);var u=[],p=new SuperMapAlgoPlot.Point(0,0);p.x=-a/6,p.y=a/3;var s=new SuperMapAlgoPlot.Point(0,0),c=SuperMapAlgoPlot.PlottingUtil.rotateAngle(s,i*SuperMapAlgoPlot.PlottingUtil.DTOR,p),P=new SuperMapAlgoPlot.Point(c.x+r.x,c.y+r.y);p.x=a/6,p.y=a/3;var f=SuperMapAlgoPlot.PlottingUtil.rotateAngle(s,i*SuperMapAlgoPlot.PlottingUtil.DTOR,p),g=new SuperMapAlgoPlot.Point(f.x+r.x,f.y+r.y);p.x=0,p.y=-a/3;var y=SuperMapAlgoPlot.PlottingUtil.rotateAngle(s,i*SuperMapAlgoPlot.PlottingUtil.DTOR,p),h=new SuperMapAlgoPlot.Point(y.x+r.x,y.y+r.y);u.push(P),u.push(g),u.push(h);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,u,{fillLimit:!0,fill:!0});for(var S=[],b=[],A=0;A<=n.startIndex;A++)S.push(e[A]);if(S.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S),n.endIndex<=e.length){b.push(n.endPt);for(var d=n.endIndex+1;d<=e.length-1;d++)b.push(e[d]);this.addArrow(b)}var M=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),v=SuperMapAlgoPlot.PlottingUtil.circlePoint(M.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,i+90);this.addScalePoint(v,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=.8*SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.subSymbols.length>0&&(this.computeSubSymbol(this.subSymbols[0],r,a,i+180),this.computeSubSymbol(this.subSymbols[1],r,.5*a,i+180));for(var u=[],p=[],s=0;s<=n.startIndex;s++)u.push(e[s]);if(u.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),n.endIndex<=e.length){p.push(n.endPt);for(var c=n.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,i+90);this.addScalePoint(f,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length0&&this.computeSubSymbol(this.subSymbols[0],i,u,0),this.addText("私",a,u,0,"#0000FF"),this.addScalePoint(a,0);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length0&&this.computeSubSymbol(this.subSymbols[0],a,u,0),this.addText("盗",a,u,0),this.addScalePoint(a,0);var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,u,u,90);this.addScalePoint(p,1),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length0){var g=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,y=.5*SuperMapAlgoPlot.PlottingUtil.distance(i,a);this.computeSubSymbol(this.subSymbols[0],r,y,g+180)}var h=SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-1],t[t.length-2],e),S=new SuperMapAlgoPlot.Point(h.x,h.y),b=new SuperMapAlgoPlot.Point(h.x,h.y);S=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],1/6*Math.PI,S),b=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],11/6*Math.PI,b);var A=[];A.push(S),A.push(t[t.length-1]),A.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A),this.finish()}}}])&&qM(e.prototype,o),l&&qM(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function tv(t){"@babel/helpers - typeof";return(tv="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})(t)}function ev(t,e){for(var o=0;o=2&&this.controlPoints.length=p.length)this.finish();else{var P=p[0].clone(),f=p[0].clone();for(s=0;sp[s].x&&(P=p[s].clone()),f.xo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=e,i=0,a=0;if(0===t){if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(o,r))return;i=(r.x-n.x)/l,this.scaleValues[0]=i,a=(r.y-n.y)/l,this.scaleValues[1]=a}if(1===t){i=this.scaleValues[0],a=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(n.x+i*l,n.y+a*l),p=2*SuperMapAlgoPlot.PlottingUtil.distance(r,u);this.scaleValues[2]=p/l}}}}])&&fv(e.prototype,o),l&&fv(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();SuperMapAlgoPlot.AlgoSymbol3002002=Sv;function bv(t){"@babel/helpers - typeof";return(bv="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})(t)}function Av(t,e){for(var o=0;o=this.controlPoints.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),!(2>(e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e)).length)){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),l=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),n=this.scaleValues[0],r=this.scaleValues[1],i=o*this.scaleValues[2],a=new SuperMapAlgoPlot.Point(l.x+o*n,l.y+o*r),u=new SuperMapAlgoPlot.Point(a.x+1,a.y),p=[];e.push(e[0].clone());for(var s=0;s=p.length)this.finish();else{var P=p[0].clone(),f=p[0].clone();for(s=0;sp[s].x&&(P=p[s].clone()),f.x=P.x&&((g=[]).push(P),g.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g));var h=new SuperMapAlgoPlot.Point(a.x+i/2,f.y);h.x<=f.x&&h.x>=P.x&&((g=[]).push(f),g.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g));var S=SuperMapAlgoPlot.PlottingUtil.radian(y,h)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.addText("火",a,i,S),this.addScalePoint(a,0);var b=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,i/2,i/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 o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=e,i=0,a=0;if(0===t){if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(o,r))return;i=(r.x-n.x)/l,this.scaleValues[0]=i,a=(r.y-n.y)/l,this.scaleValues[1]=a}if(1===t){i=this.scaleValues[0],a=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(n.x+i*l,n.y+a*l),p=2*SuperMapAlgoPlot.PlottingUtil.distance(r,u);this.scaleValues[2]=p/l}}}}])&&Av(e.prototype,o),l&&Av(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ov(t){"@babel/helpers - typeof";return(Ov="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})(t)}function wv(t,e){for(var o=0;o=2&&this.controlPoints.length=p.length)this.finish();else{var P=p[0].clone(),f=p[0].clone();for(s=0;sp[s].x&&(P=p[s].clone()),f.x=P.x&&((g=[]).push(P),g.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,t));var h=new SuperMapAlgoPlot.Point(a.x+i/2,f.y);if(h.x<=f.x&&h.x>=P.x&&((g=[]).push(f),g.push(h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,t)),this.subSymbols.length>0){var S=this.computeSubSymbol(this.subSymbols[0],a,i,0);if(null!=S)for(var b=0;bo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o),r=e,i=0,a=0;if(0===t){if(!SuperMapAlgoPlot.PlottingUtil.ptIsInPolygon(o,r))return;i=(r.x-n.x)/l,this.scaleValues[0]=i,a=(r.y-n.y)/l,this.scaleValues[1]=a}if(1===t){i=this.scaleValues[0],a=this.scaleValues[1];var u=new SuperMapAlgoPlot.Point(n.x+i*l,n.y+a*l),p=2*SuperMapAlgoPlot.PlottingUtil.distance(r,u);this.scaleValues[2]=p/l}}}}])&&wv(e.prototype,o),l&&wv(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function jv(t){"@babel/helpers - typeof";return(jv="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})(t)}function Rv(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,a,i);for(var u=[],p=[],s=0;s<=n.startIndex;s++)u.push(e[s]);if(u.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),n.endIndex<=e.length){p.push(n.endPt);for(var c=n.endIndex+1;c<=e.length-1;c++)p.push(e[c]);var P=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p)}var f=this.subText,g=.15*P,y=new SuperMapAlgoPlot.Point(n.endPt.x+g/2,n.endPt.y-g/2),h=i;this.addText(f,y,g,h);var S=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),b=SuperMapAlgoPlot.PlottingUtil.circlePoint(S.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,i+90);this.addScalePoint(b,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(0===t&&!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.1||l<=0)&&(l=.1),this.scaleValues[0]=l,this.scaleValues[1]=this.getSubSymbolScaleValue(),this.scaleValues[2]=.5*l}var n=this.getLinePts(o,this.scaleValues[0],.5),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMap.Plot.PlottingUtil.dirAngle(n.startPt,n.endPt)*SuperMap.Plot.PlottingUtil.RTOD,a=SuperMap.Plot.PlottingUtil.distance(n.startPt,n.endPt);this.computeSubSymbolC(r,a,i);for(var u=[],p=0;p<=n.startIndex;p++)u.push(o[p]);u.push(new SuperMapAlgoPlot.Point(n.startPt.x,n.startPt.y));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u,{strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1});var s=[];if(n.endIndex<=o.length){s.push(new SuperMapAlgoPlot.Point(n.endPt.x,n.endPt.y));for(var c=n.endIndex+1;c<=o.length-1;c++)s.push(o[c]);this.addArrow(s,this.scaleValues[2])}var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,.5*a,.5*a,i+90);this.addScalePoint(P,0),this.finish()}}},{key:"computeSubSymbolC",value:function(t,e,o){for(var l=[],n=0;n<360;n+=12)l.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t,.5*e,.5*e,n));l.push(l[0]);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,{lineColorLimit:!0,strokeColor:"#0000FF",strokeOpacity:1,color:"#0000FF",opacity:1})}}])&&Rm(e.prototype,o),l&&Rm(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Cm(t){"@babel/helpers - typeof";return(Cm="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})(t)}function Ym(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=.8*SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],r,a,i+180);for(var u=[],p=[],s=0;s<=n.startIndex;s++)u.push(e[s]);if(u.push(n.startPt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,u),n.endIndex<=e.length){p.push(n.endPt);for(var c=n.endIndex+1;c<=e.length-1;c++)p.push(e[c]);this.addArrow(p)}var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.5*o,e),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P.pts,o*this.scaleValues[0]*.5,o*this.scaleValues[0]*.5,i+90);this.addScalePoint(f,0);var g=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p),y=this.subText,h=.15*g,S=new SuperMapAlgoPlot.Point(n.endPt.x+h/2,n.endPt.y-h/2),b=i;this.addText(y,S,h,b),this.finish()}}}])&&Ym(e.prototype,o),l&&Ym(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zm(t){"@babel/helpers - typeof";return(zm="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})(t)}function Fm(t,e){for(var o=0;oo.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/l;this.scaleValues[0]=n}}}])&&qm(e.prototype,o),l&&qm(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function tO(t){"@babel/helpers - typeof";return(tO="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})(t)}function eO(t,e){for(var o=0;o.3||r<=0)&&(r=.3);var i=1.5*r;2===t.length?(this.isEdit||(this.scaleValues[3]=this.scaleValues[2]+i),o=this.scaleValues[2],l=this.scaleValues[3]):(SuperMapAlgoPlot.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]+i),o=this.scaleValues[3],l=this.scaleValues[4]);var a=n*o,u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(u.bfind){var p=u.pts,s=n*l;if((u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,e)).bfind){var c=u.index,P=u.pts,f=new SuperMapAlgoPlot.Point(p.x,p.y),g=new SuperMapAlgoPlot.Point(P.x,P.y),y=SuperMapAlgoPlot.PlottingUtil.radian(f,g)*SuperMapAlgoPlot.PlottingUtil.RTOD,h=[];h.push(P);for(var S=c+1;S0&&this.computeSubSymbol(this.subSymbols[0],f,b,y),this.scalePoints=[],this.addScalePoint(P);var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,b/2,b/2,y+90);this.addScalePoint(A),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),r=0,i=0;if(2===o.length?(r=this.scaleValues[2],i=this.scaleValues[3]):(r=this.scaleValues[3],i=this.scaleValues[4]),0===t){for(var a=i-r,u=e.clone(),p=[],s=0;sS&&(P=g,c=h,f=S)}}if(-1===P||P>p.length-1)return;for(var b=0,A=0;An)return;var d=b/n;if(d>.7||d-a<0)return;2===o.length?(this.scaleValues[2]=d-a,this.scaleValues[3]=d):(this.scaleValues[3]=d-a,this.scaleValues[4]=d)}else if(1===t){var M=n*r,v=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(M,l);if(!v.bfind)return;var m=v.pts,O=(2*SuperMapAlgoPlot.PlottingUtil.distance(m,e)+M)/n;if(.7.3||l<=0)&&(l=.3),this.scaleValues[1]=l}var n=this.scaleValues[0],r=this.scaleValues[1],i=this.scaleValues[2],a=o*n,u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(u.bfind){var p=u.index,s=u.pts,c=r*o*.5,P=new SuperMapAlgoPlot.Point(0,0),f=new SuperMapAlgoPlot.Point(.5*c,0),g=new SuperMapAlgoPlot.Point(0,c),y=[],h=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,P,i);y.push(h);var S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,f,i);y.push(S);var b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,g,i);y.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL,y);var A=new SuperMapAlgoPlot.Point(0,-2*c),d=new SuperMapAlgoPlot.Point(.15*c,-1.6*c),M=new SuperMapAlgoPlot.Point(-.15*c,-1.6*c),v=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,A,i),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,d,i),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,M,i),w=[];w.push(v),w.push(m),w.push(O);var U={surroundLineFlag:!1,fillLimit:!0,fill:!0};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,w,U);var L=new SuperMapAlgoPlot.Point(0,-c),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(s,L,i);(w=[]).push(V),w.push(v.clone()),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,w,U);var T,j=[],R=[];for(T=0;T<=p;T++)j.push(e[T]);for(j.push(s),R.push(s),T=p+1;T_){var E=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a-_,j);if(E.bfind){var x=E.pts,B=E.index,C=[];for(T=0;T<=B;T++)C.push(j[T]);C.push(x),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,C)}}if(o-a>_){var Y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(_,R);if(Y.bfind){var I=Y.pts,D=Y.index;for((C=[]).push(I),T=D+1;Tc&&(i=u,a=c)}}if(-1===i)return SuperMapAlgoPlot.PlottingUtil.distance(r,l[0])>SuperMapAlgoPlot.PlottingUtil.distance(r,l[l.length-1])?void(i=l.length-1):void(i=0);var P=0;if(0===i)P=SuperMapAlgoPlot.PlottingUtil.distance(l[0],s);else for(var f=0;fn)return;this.scaleValues[0]=P/n}else if(1===t){var g=this.scaleValues[0]*n,y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,l);if(!y.bfind)return;var h=y.pts,S=SuperMapAlgoPlot.PlottingUtil.distance(h,e)/n;S>.5&&(S=.5),this.scaleValues[1]=S;var b=SuperMapAlgoPlot.PlottingUtil.radian(h,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[2]=b+90}}}}])&&aO(e.prototype,o),l&&aO(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function PO(t){"@babel/helpers - typeof";return(PO="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})(t)}function fO(t,e){for(var o=0;o.3||l<=0)&&(l=.3),this.scaleValues[1]=l}var n=this.scaleValues[0],r=this.scaleValues[1],i=this.scaleValues[2],a=o*n,u=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,e);if(u.bfind){var p=u.index,s=u.pts,c=r*o,P=s,f=new SuperMapAlgoPlot.Point(c,-.5*c),g=new SuperMapAlgoPlot.Point(c,.5*c),y=new SuperMapAlgoPlot.Point(-c,.5*c),h=new SuperMapAlgoPlot.Point(-c,-.5*c),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,f,i),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,g,i),A=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,y,i),d=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,h,i);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[S,b,A,d,S]);var M=new SuperMapAlgoPlot.Point(.5*c,.5*c),v=new SuperMapAlgoPlot.Point(.5*c,-.5*c),m=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,v,i),O=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,M,i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[m,O]);var w=new SuperMapAlgoPlot.Point(0,.5*c),U=new SuperMapAlgoPlot.Point(0,-.5*c),L=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,w,i),V=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,U,i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[L,V]);var T=new SuperMapAlgoPlot.Point(c,0),j=new SuperMapAlgoPlot.Point(2*c,0),R=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,T,i),_=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,j,i);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[R,_]);var E=new SuperMapAlgoPlot.Point(2*c,.15*c),x=new SuperMapAlgoPlot.Point(2*c,-.15*c),B=new SuperMapAlgoPlot.Point(2.6*c,0),C=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,E,i),Y=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,x,i),I=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,B,i);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[C,Y,I],{lineTypeLimit:!0,lineColorLimit:!1,strokeColor:"#FF0000",strokeOpacity:1,color:"#FF0000",opacity:1,surroundLineLimit:!0,fillLimit:!0,fill:!0});var D,N=[],k=[];for(D=0;D<=p;D++)N.push(e[D]);for(N.push(s),k.push(s),D=p+1;Dz){var F=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a-z,N);if(F.bfind){var W=F.pts,G=F.index,J=[];for(D=0;D<=G;D++)J.push(N[D]);J.push(W),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,J)}}if(o-a>z){var H=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(z,k);if(H.bfind){var K=H.pts,q=H.index;for((J=[]).push(K),D=q+1;D1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).lengthc&&(i=u,a=c)}}if(-1===i)return SuperMapAlgoPlot.PlottingUtil.distance(r,l[0])>SuperMapAlgoPlot.PlottingUtil.distance(r,l[l.length-1])?void(i=l.length-1):void(i=0);var P=0;if(0===i)P=SuperMapAlgoPlot.PlottingUtil.distance(l[0],s);else for(var f=0;fn)return;this.scaleValues[0]=P/n}else if(1===t){var g=this.scaleValues[0]*n,y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,l);if(!y.bfind)return;var h=y.pts,S=SuperMapAlgoPlot.PlottingUtil.distance(h,e)/n;S>.5&&(S=.5),this.scaleValues[1]=S;var b=SuperMapAlgoPlot.PlottingUtil.radian(h,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[2]=b+90}}}}])&&fO(e.prototype,o),l&&fO(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function bO(t){"@babel/helpers - typeof";return(bO="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})(t)}function AO(t,e){for(var o=0;othis.scaleValues.length&&(this.scaleValues.push(.05),this.scaleValues.push(0),this.scaleValues.push(0),this.scaleValues.push(0));var e=[];e=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=1.5*this.getDefaultSubSymbolSize();this.subSymbolScaleValue=n/l,this.subSymbolScaleValue>.2&&(this.subSymbolScaleValue=.2),this.scaleValues[0]=this.subSymbolScaleValue}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3],u=l*r,p=new SuperMapAlgoPlot.Point(o.x+l*i,o.y+l*a);this.subSymbols&&null!==this.subSymbols&&this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,l*r,0);for(var s=0;s=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=0,a=0;if(0===t)i=(e.x-n.x)/r,this.scaleValues[2]=i,a=(e.y-n.y)/r,this.scaleValues[3]=a;else if(1===t){i=this.scaleValues[2],a=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(n.x+r*i,n.y+r*a),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e);this.scaleValues[0]=p/r}}}}])&&AO(e.prototype,o),l&&AO(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function OO(t){"@babel/helpers - typeof";return(OO="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})(t)}function wO(t,e){for(var o=0;othis.scaleValues.length&&(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 o=e*this.scaleValues[4],l=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(o,t[1],t[0]);void 0!==t[0].z&&(l.pntLeft.z=t[0].z,l.pntRight.z=t[0].z),this.controlPoints=[],this.controlPoints.push(l.pntLeft),this.controlPoints.push(l.pntRight);for(var n=1;nthis.scaleValues.length&&(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 l=o[0].clone(),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0!==n){var r=n*this.scaleValues[4],i=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(r,o[1],o[0]);(o=[]).push(i.pntRight),o.push(i.pntLeft);for(var a=1;athis.scaleValues.length&&(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),this.scaleValues.push(30));var o=e*this.scaleValues[4],l=this.scaleValues[5],n=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[1])*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,n-l),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o,o,n-l+180);if(SuperMapAlgoPlot.PlottingUtil.isRight(r,t[0],t[1])){var a=r;r=i,i=a}void 0!==t[0].z&&(r.z=t[0].z,i.z=t[0].z),this.controlPoints=[],this.controlPoints.push(r),this.controlPoints.push(i);for(var u=1;uthis.scaleValues.length&&(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 l=o[0].clone(),n=o[1].clone(),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0!==r){var i=r*this.scaleValues[4],a=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(i,o[1],o[0]);(o=[]).push(a.pntRight),o.push(a.pntLeft);for(var u=1;u0&&(this.components[0].style.fillStyle=0,this.components[0].style.fillLimit=!0),this.finish()}}])&&YO(e.prototype,o),l&&YO(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zO(t){"@babel/helpers - typeof";return(zO="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})(t)}function FO(t,e){for(var o=0;o=2&&t.length2*l-1){for(var a=0;athis.MAX_SCALEVALUE?r=this.MAX_SCALEVALUE:r3)for(var i=l-1,a=0,u=i;ad&&(A=.5*d);var M=A*P;y.push(y[s].clone());var v,m=0;v=h-A;var O=[],w=0;for(w=2;w<=s;w++)m+=SuperMapAlgoPlot.PlottingUtil.distance(y[w-1],y[w-2]),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v,0,1e-14)?O[w]=0:SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v-m,0,1e-14)?O[w]=M:O[w]=M+(S-M)*Math.pow((v-m)/v,this.SV_ATScaleParameter);O[s+1]=M;var U=new SuperMapAlgoPlot.Point(0,0),L=new SuperMapAlgoPlot.Point(0,0),V=new SuperMapAlgoPlot.Point(0,0);for(w=2;w<=s;w++){SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,y[w-2],y[w-1],y[w],L,V),s===w&&SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,y[s],y[s-1],V,U);var T=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(O[w],L,y[w-1]);r[w]=T.pntLeft,n[w]=T.pntRight}var j,R,_=U.clone();if(SuperMapAlgoPlot.PlottingUtil.distance(y[s],_)>0){var E=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(A,y[s],U);y[s]=E.clone()}for(b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,y[s+1],y[s]),n[s+1]=b.pntLeft,r[s+1]=b.pntRight,w=2;w<=s;w++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,n[w-1],n[w],n[w+1],L,V),i[w]=L.clone(),a[w]=V.clone(),SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,r[w-1],r[w],r[w+1],L,V),u[w]=L.clone(),p[w]=V.clone();SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,n[1],n[2],i[2],U),a[1]=U.clone(),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,r[1],r[2],u[2],U),p[1]=U.clone();R=SuperMapAlgoPlot.PlottingUtil.distance(n[s+1],n[s])*(1/3),(j=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(R,y[s],y[s+1])).x+=n[s+1].x-y[s].x,j.y+=n[s+1].y-y[s].y,R=(S-M)*Math.pow(R/v,this.SV_ATScaleParameter+.3),b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(R,n[s+1],j),i[s+1]=b.pntLeft.clone(),R=SuperMapAlgoPlot.PlottingUtil.distance(r[s+1],r[s])*(1/3),(j=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(R,y[s],y[s+1])).x+=r[s+1].x-y[s].x,j.y+=r[s+1].y-y[s].y,R=(S-M)*Math.pow(R/v,this.SV_ATScaleParameter+.3),b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(R,r[s+1],j),u[s+1]=b.pntRight.clone();var x=[],B=A*g,C=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(B,y[s],y[s+1]);this.m_scalePoints.push(C.clone()),B=A*f,b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(B,y[s+1],C),x.push(b.pntRight),x.push(y[s+1]),x.push(b.pntLeft);var Y=[];for(Y.push(n[s+1]),w=s;w>=1;w--)Y.push(i[w+1]),Y.push(a[w]),Y.push(n[w]);var I=[];for(w=1;w<=s;w++)I.push(r[w]),I.push(p[w]),I.push(u[w+1]);I.push(r[s+1]),l.push.apply(l,I),l.push.apply(l,x),l.push.apply(l,Y),o=A/h;var D=[];for(w=Y.length-1;w>=0;w--)D.push(Y[w]);return{dATLenDivABLen:o,arrowBodyPts:l}}},{key:"generateAYPts",value:function(t,e,o,l,n){var r=new SuperMapAlgoPlot.Point(.5*(t[2].x+o[2].x),.5*(t[2].y+o[2].y)),i=new SuperMapAlgoPlot.Point(.5*(t[1].x+o[1].x),.5*(t[1].y+o[1].y)),a=new SuperMapAlgoPlot.Point(.5*(t[0].x+o[0].x),.5*(t[0].y+o[0].y)),u=SuperMapAlgoPlot.PlottingUtil.distance(r,i),p=SuperMapAlgoPlot.PlottingUtil.distance(a,i),s=n*(u+p),c=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0),f=new SuperMapAlgoPlot.Point(0,0);if(s>u){s=u+p-s,c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(s,a,i);var g=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),y=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[0]);g=g*s/p,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(g,t[0],t[1]),y=y*s/p,f=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(y,o[0],o[1])}else{c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(s,r,i);var h=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[2]),S=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[2]);h=h*s/u,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(h,t[2],t[1]),S=S*s/u,f=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(S,o[2],o[1])}this.m_scalePoints.push(c.clone());var b=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(c,P),A=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(c,f),d=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(b,c,P),M=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(A,c,f),v=e[11].clone(),m=e[10].clone(),O=l[5].clone(),w=l[6].clone(),U=SuperMapAlgoPlot.PlottingUtil.intersectLines(m,v,c,P),L=SuperMapAlgoPlot.PlottingUtil.distance(U.intersectPoint,m),V=SuperMapAlgoPlot.PlottingUtil.distance(m,c);L=L>V?this.SV_AJCtrl*V:this.SV_AJCtrl*L;var T=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(L,m,v);v=T.clone(),e[11]=T.clone(),U=SuperMapAlgoPlot.PlottingUtil.intersectLines(w,O,c,f),L=(L=SuperMapAlgoPlot.PlottingUtil.distance(U.intersectPoint,w))>(V=SuperMapAlgoPlot.PlottingUtil.distance(w,c))?this.SV_AJCtrl*V:this.SV_AJCtrl*L,O=(T=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(L,w,O)).clone(),l[5]=T.clone();var j=[];j.push(m),j.push(v),j.push(d),j.push(c);var R=[];return R.push(c),R.push(M),R.push(O),R.push(w),{arrowLeftYaoPts:j,arrowRightYaoPts:R}}},{key:"generateAWWidth",value:function(t,e){var o=[];if(t>0)if(1==t)o.push(0);else{var l=SuperMapAlgoPlot.PlottingUtil.distance(e[0],e[this.MIN_PTCOUNT_PERARROW]);o.push(l);for(var n=1,r=this.MIN_PTCOUNT_PERARROW;nthis.MAX_SCALEVALUE?n=this.MAX_SCALEVALUE:n.3||l<=0)&&(l=.3),this.scaleValues[0]=l}var n=this.getLinePts(e,this.scaleValues[0]),r=new SuperMapAlgoPlot.Point((n.startPt.x+n.endPt.x)/2,(n.startPt.y+n.endPt.y)/2),i=180*SuperMapAlgoPlot.PlottingUtil.radian(n.startPt,n.endPt)/Math.PI,a=SuperMapAlgoPlot.PlottingUtil.distance(n.startPt,n.endPt);0.3||l<=0)&&(l=.3),this.scaleValues[2]=2*l}var n=o*this.scaleValues[0],r=this.scaleValues[1],i=o*this.scaleValues[2],a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,e);if(a.bfind){var u=a.pts.clone(),p=e[a.index].clone(),s=e[a.index+1].clone(),c=SuperMapAlgoPlot.PlottingUtil.radian(p,s)*SuperMapAlgoPlot.PlottingUtil.RTOD,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,i,i,c+r),f=[];f.push(a.pts),f.push(P);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,f,{lineTypeLimit:!0,surroundLineLimit:!0});var g=SuperMapAlgoPlot.PlottingUtil.radian(u,P)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=new SuperMapAlgoPlot.Point(-.2*i,.05*i),h=new SuperMapAlgoPlot.Point(-.2*i,-.05*i),S=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,y,g),b=SuperMapAlgoPlot.PlottingUtil.coordinateTrans(P,h,g),A=[];A.push(P),A.push(S),A.push(b);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,A,{lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fill:!0});var d=.3*i,M=.6*i,v=n-M;v<0&&(v=0);var m=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(v,e);if(m.bfind){var O=[];O.push(m.pts);for(var w=m.index;w>=0;w--)O.push(e[w]);var U=[];U.push(m.pts);for(var L=m.index+1;L1){var j=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(V,O);if(j.bfind){(T=[]).push(j.pts);for(var R=j.index+1;R1&&(O=O.concat(T))}}if(O.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,O),U.length>1){var _=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(V,U);if(_.bfind){(T=[]).push(_.pts);for(var E=_.index+1;E1&&(U=U.concat(T))}}var x=n+M;x>o&&(x=o),x=o-x;for(var B=[],C=U.length-1;C>=0;C--)B.push(U[C]);var Y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(x,B);if(Y.bfind){var I=[];I.push(Y.pts);for(var D=Y.index;D>=0;D--)I.push(B[D]);var N=[];N.push(Y.pts);for(var k=Y.index+1;k1){var z=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(V,I);if(z.bfind){(T=[]).push(z.pts);for(var F=z.index+1;F1&&(I=I.concat(T))}}if(I.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,I),N.length>1){var W=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(V,N);if(W.bfind){(T=[]).push(W.pts);for(var G=W.index+1;G1&&(N=N.concat(T))}}if(N.length>1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,N),this.subSymbols.length>0){if(null!==this.subSymbols[0].symbolData)for(var J=0;Jt||1f&&(a=s,u=P,p=f)}}if(-1===a||a>r.length-1)return;for(var g=0,y=0;yn)return;this.scaleValues[0]=g/n}if(1===t){var A=n*this.scaleValues[0],d=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(A,l);if(!d.bfind)return;var M=d.pts.clone(),v=new SuperMapAlgoPlot.Point(l[d.index].x,l[d.index].y),m=new SuperMapAlgoPlot.Point(l[d.index+1].x,l[d.index+1].y),O=SuperMapAlgoPlot.PlottingUtil.radian(v,m)*SuperMapAlgoPlot.PlottingUtil.RTOD,w=SuperMapAlgoPlot.PlottingUtil.radian(M,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[1]=w-O;var U=SuperMapAlgoPlot.PlottingUtil.distance(M,e);this.scaleValues[2]=U/n}}}}])&&aw(e.prototype,o),l&&aw(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Pw(t){"@babel/helpers - typeof";return(Pw="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})(t)}function fw(t,e){for(var o=0;oP&&(i=p,u=c,a=P)}}if(-1==i||i>l.length-1)return;n=0;for(var f=0;fr)return;var g=n/r;this.scaleValues[0]=g}else if(1===t){var y=r*this.scaleValues[0],h=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(l,y);if(-1===h.index)return;var S=h.pt,b=l[h.index],A=l[h.index+1],d=SuperMapAlgoPlot.PlottingUtil.radian(b,A),M=SuperMapAlgoPlot.PlottingUtil.radian(S,e)-d;this.scaleValues[1]=M;var v=(n=SuperMapAlgoPlot.PlottingUtil.distance(S,e))/r;this.scaleValues[2]=v}}}}])&&fw(e.prototype,o),l&&fw(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function bw(t){"@babel/helpers - typeof";return(bw="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})(t)}function Aw(t,e){for(var o=0;o0){for(var E=0;Ed&&(g=S,h=A,y=d)}}if(-1==g||g>P.length-1)return;r=0;for(var M=0;Ml)return;var v=r/l;this.scaleValues[0]=v}else if(1===t){i=l*this.scaleValues[0];var m=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(c,i);if(-1===m.index)return;a=m.pt,u=c[m.index],p=c[m.index+1],s=SuperMapAlgoPlot.PlottingUtil.radian(u,p);var O=SuperMapAlgoPlot.PlottingUtil.radian(a,e)-s;this.scaleValues[1]=O;var w=(r=SuperMapAlgoPlot.PlottingUtil.distance(a,e))/l/1.5;this.scaleValues[2]=w}}}}])&&Aw(e.prototype,o),l&&Aw(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Ow(t){"@babel/helpers - typeof";return(Ow="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})(t)}function ww(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],c,n,p+270),this.finish()}}}}])&&ww(e.prototype,o),l&&ww(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function jw(t){"@babel/helpers - typeof";return(jw="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})(t)}function Rw(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],r,2*n,y-90),this.addScalePoint(u.pntLeft,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.48&&(n=.48),this.scaleValues[0]=n}}}}])&&Rw(e.prototype,o),l&&Rw(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function Cw(t){"@babel/helpers - typeof";return(Cw="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})(t)}function Yw(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],r,2*n,M),this.addScalePoint(s.pntRight,0),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length.48&&(n=.48),this.scaleValues[0]=n}}}}])&&Yw(e.prototype,o),l&&Yw(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zw(t){"@babel/helpers - typeof";return(zw="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})(t)}function Fw(t,e){for(var o=0;o2){for(var p=[],s=0;s<=360;s+=5)p.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[2],l,l,s));this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p)}if(o>3)for(var c=3;c3){for(var g=.25*SuperMapAlgoPlot.PlottingUtil.distance(P[0],P[1]),y=.1*g,h=this.computeDashLine(g,y,P),S=0;S2){var p=[];n=SuperMapAlgoPlot.PlottingUtil.dirAngle(t[0],t[2])*SuperMapAlgoPlot.PlottingUtil.RTOD,p.push(SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],l,l,n)),p.push(t[2]),u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(p),this.addArrow(p,this.scaleValues[0]*u/e)}if(o>3)for(var s=3;s2)for(var u=2;u=u){var p=[];if(p.push(this.getMinDisPt(t[u],t[1],r,i)),p.push(t[u+1]),2==u){for(var s=.25*SuperMapAlgoPlot.PlottingUtil.distance(p[0],p[1]),c=.1*s,P=this.computeDashLine(s,c,p),f=0;f=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=2*n}var r=this.scaleValues[0],i=l*this.scaleValues[2],a=l*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(o.x+i,o.y+a),p=l*r,s=new SuperMapAlgoPlot.Point(u.x-.5*p,u.y);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,p,0);var c=new SuperMapAlgoPlot.Point(u.x+.5*p,u.y),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.5*p,.5*p,-90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.3*p,.3*p,90),g=[];g.push(P),g.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.2*p,.2*p,90),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.05*p,.05*p,0),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.05*p,.05*p,180),b=[];b.push(y),b.push(h),b.push(S);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{fillLimit:!0,fill:!0});var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,180);this.addScalePoint(A,0),this.addScalePoint(u,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===r)return;var i=0,a=0,u=0,p=0;if(0===t){u=r*(i=this.scaleValues[2]),p=r*(a=this.scaleValues[3]);var s=new SuperMapAlgoPlot.Point(n.x+u,n.y+p),c=SuperMapAlgoPlot.PlottingUtil.distance(e,s);this.scaleValues[0]=c/r}else 1===t&&(i=(u=e.x-n.x)/r,a=(p=e.y-n.y)/r,this.scaleValues[2]=i,this.scaleValues[3]=a)}}}])&&aU(e.prototype,o),l&&aU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function PU(t){"@babel/helpers - typeof";return(PU="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})(t)}function fU(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=2*n}var r=this.scaleValues[0],i=l*this.scaleValues[2],a=l*this.scaleValues[3],u=new SuperMapAlgoPlot.Point(o.x+i,o.y+a),p=l*r,s=new SuperMapAlgoPlot.Point(u.x-.5*p,u.y);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],s,p,0);var c=new SuperMapAlgoPlot.Point(u.x+.5*p,u.y),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.3*p,.3*p,-90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,.5*p,.5*p,90),g=[];g.push(P),g.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.2*p,.2*p,-90),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.05*p,.05*p,0),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,.05*p,.05*p,180),b=[];b.push(y),b.push(h),b.push(S);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{fillLimit:!0,fill:!0});var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(u,p,p,180);this.addScalePoint(A,0),this.addScalePoint(u,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(0===r)return;var i=0,a=0,u=0,p=0;if(0===t){i=r*(u=this.scaleValues[2]),a=r*(p=this.scaleValues[3]);var s=new SuperMapAlgoPlot.Point(n.x+i,n.y+a),c=SuperMapAlgoPlot.PlottingUtil.distance(e,s);this.scaleValues[0]=c/r}else 1===t&&(u=(i=e.x-n.x)/r,p=(a=e.y-n.y)/r,this.scaleValues[2]=u,this.scaleValues[3]=p)}}}])&&fU(e.prototype,o),l&&fU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function bU(t){"@babel/helpers - typeof";return(bU="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})(t)}function AU(t,e){for(var o=0;o0&&this.computeSubSymbol(this.subSymbols[0],A,n,p-90),this.finish()}}}}])&&AU(e.prototype,o),l&&AU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function OU(t){"@babel/helpers - typeof";return(OU="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})(t)}function wU(t,e){for(var o=0;oe.x),c=[];s?(c.push(o),c.push(u)):(c.push(o),c.push(p)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c);var P=[];s?(P.push(l),P.push(p)):(P.push(l),P.push(u)),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var f,g,y,h,S,b=.37*r,A=SuperMapAlgoPlot.PlottingUtil.linePnt(n,e,b),d=.09*r,M=[];M.push(A),M.push(new SuperMapAlgoPlot.Point(A.x,A.y+d)),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,M,{lineTypeLimit:!0}),s?(g=(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,n,A)).pntLeft,y=(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*d,n,A)).pntLeft,h=(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,g,y)).pntRight,S=f.pntLeft):(g=(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,n,A)).pntRight,y=(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(2*d,n,A)).pntRight,h=(f=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(d,g,y)).pntRight,S=f.pntLeft);var v=[];v.push(g),v.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,v,{lineTypeLimit:!0});var m=[];m.push(h),m.push(S),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,m,{lineTypeLimit:!0}),this.addText("催",A,d,0),this.finish()}}}])&&wU(e.prototype,o),l&&wU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function jU(t){"@babel/helpers - typeof";return(jU="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})(t)}function RU(t,e){for(var o=0;o0){this.computeSubSymbol(this.subSymbols[0],c,s,a);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],2.1*s,2.1*s,a),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],3*s,3*s,a),g=[];g.push(P),g.push(f),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g);var y=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.2*s,.2*s,a),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.05*s,.05*s,a+90),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(f,.05*s,.05*s,a+270),b=[];b.push(y),b.push(h),b.push(S);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{fillLimit:!0,fill:!0})}var A=SuperMapAlgoPlot.PlottingUtil.circlePoint(r,l,l,a+90);this.addScalePoint(A,0),this.finish()}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=.15&&(a=.15),this.scaleValues[1]=a}}}}])&&RU(e.prototype,o),l&&RU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function CU(t){"@babel/helpers - typeof";return(CU="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})(t)}function YU(t,e){for(var o=0;o=2&&this.controlPoints.length0){var o;if(null==this.subSymbols[0].symbolData)return;o=this.subSymbols[0].symbolData.symbolSize.x;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),n=l*this.scaleValues[4],r=l*this.scaleValues[5],i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,t),u=SuperMapAlgoPlot.PlottingUtil.radian(a.pts,i.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=60*SuperMapAlgoPlot.PlottingUtil.distance(i.pts,a.pts)/o;if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&this.computeSubSymbol(this.subSymbols[0],a.pts,p,u-90),i.pts.isScalePoint=!0,i.pts.tag=this.scalePoints.length,this.scalePoints.push(i.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 o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).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)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var l=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),n=SuperMapAlgoPlot.PlottingUtil.clonePoints(o);n.splice(0,2),n.unshift(l);var r=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,n),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(n);if(-1===r.index&&3===t&&(r.pt=l.clone()),-1==r.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMapAlgoPlot.PlottingUtil.clonePoints(n);a.splice(0,r.index+1),a.unshift(r.pt);var u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(a);i.5&&(this.scaleValues[4]=.5)}}}}}])&&YU(e.prototype,o),l&&YU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zU(t){"@babel/helpers - typeof";return(zU="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})(t)}function FU(t,e){for(var o=0;o=2&&this.controlPoints.length.5&&(this.scaleValues[4]=.5)}}}}}])&&FU(e.prototype,o),l&&FU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function KU(t){"@babel/helpers - typeof";return(KU="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})(t)}function qU(t,e){for(var o=0;o=2&&this.controlPoints.length0&&this.computeSubSymbol(this.subSymbols[0],i,2*r,0);var g=new SuperMapAlgoPlot.Point(i.x+4*r,i.y),y=new SuperMapAlgoPlot.Point(i.x+r,i.y),h=[];h.push(g),h.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,h,s);var S=new SuperMapAlgoPlot.Point(i.x+4*r,i.y+r/2),b=new SuperMapAlgoPlot.Point(i.x+4*r,i.y),A=[];A.push(S),A.push(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,A,s),this.addScalePoint(i,0);var d=SuperMapAlgoPlot.PlottingUtil.circlePoint(i,2*r,2*r,90);this.addScalePoint(d,1),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){if(0!==t&&1!==t)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(o);if(0===l)return;var r=0,i=0;if(0===t&&(r=(e.x-n.x)/l,this.scaleValues[0]=r,i=(e.y-n.y)/l,this.scaleValues[1]=i),1===t){r=this.scaleValues[0],i=this.scaleValues[1];var a=new SuperMapAlgoPlot.Point(n.x+l*r,n.y+l*i),u=SuperMapAlgoPlot.PlottingUtil.distance(a,e);this.scaleValues[2]=u/2/l}}}}])&&qU(e.prototype,o),l&&qU(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function tL(t){"@babel/helpers - typeof";return(tL="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})(t)}function eL(t,e){for(var o=0;o=2&&this.controlPoints.lengthc.length||2>n.length)return l;var P=SuperMapAlgoPlot.PlottingUtil.intersectLines(c[0],c[1],n[0],n[1]);return P.isIntersectLines?P.intersectPoint:l}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length1&&(g=1),y>1&&(y=1),this.scaleValues[0]=g,this.scaleValues[1]=y}if(1===t){var h=this.scaleValues[0],S=this.scaleValues[1],b=this.ComputeSubSymbolPt(h,S,i,s),A=SuperMapAlgoPlot.PlottingUtil.distance(b,e)/c;this.scaleValues[2]=A;var d=SuperMapAlgoPlot.PlottingUtil.radian(b,e)*SuperMapAlgoPlot.PlottingUtil.RTOD;this.scaleValues[3]=d}}}}])&&eL(e.prototype,o),l&&eL(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function iL(t){"@babel/helpers - typeof";return(iL="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})(t)}function aL(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e);var o=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(e),l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!this.isEdit){var n=this.getDefaultSubSymbolSize()/l;(n>.3||n<=0)&&(n=.3),this.scaleValues[0]=2*n}var r=this.scaleValues[0],i=this.scaleValues[2],a=this.scaleValues[3],u=l*r,p=new SuperMapAlgoPlot.Point(o.x+l*i,o.y+l*a);this.subSymbols.length>0&&this.computeSubSymbol(this.subSymbols[0],p,u,0),this.addScalePoint(p);var s=u,c=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,s,s,90);this.addScalePoint(c),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length=o.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,o):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!0),l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(l),r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=0,a=0;if(0===t)i=(e.x-n.x)/r,this.scaleValues[2]=i,a=(e.y-n.y)/r,this.scaleValues[3]=a;else if(1===t){i=this.scaleValues[2],a=this.scaleValues[3];var u=new SuperMapAlgoPlot.Point(n.x+r*i,n.y+r*a),p=SuperMapAlgoPlot.PlottingUtil.distance(u,e);this.scaleValues[0]=p/r}}}}])&&aL(e.prototype,o),l&&aL(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function PL(t){"@babel/helpers - typeof";return(PL="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})(t)}function fL(t,e){for(var o=0;o=2&&this.controlPoints.length0){var o;if(null==this.subSymbols[0].symbolData)return;o=this.subSymbols[0].symbolData.symbolSize.x;var l=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]),n=l*this.scaleValues[4],r=l*this.scaleValues[5],i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n,t),a=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(r,t),u=SuperMapAlgoPlot.PlottingUtil.radian(a.pts,i.pts)*SuperMapAlgoPlot.PlottingUtil.RTOD+270,p=60*SuperMapAlgoPlot.PlottingUtil.distance(i.pts,a.pts)/o*2,s=new SuperMapAlgoPlot.Point(2*a.pts.x-i.pts.x,2*a.pts.y-i.pts.y),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,u),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(s,p,p,u-180);if(null==this.subSymbols.length)return;null!=this.subSymbols[0].code&&(this.computeSubSymbol(this.subSymbols[0],a.pts,p,u-90),this.computeSubSymbol(this.subSymbols[1],c,p,u-90),this.computeSubSymbol(this.subSymbols[2],P,p,u-90)),i.pts.isScalePoint=!0,i.pts.tag=this.scalePoints.length,this.scalePoints.push(i.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 o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).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)SuperMapAlgoPlot.AlgoSymbol1004.prototype.computeScaleValues.apply(this,arguments);else if(3==t||4==t){var l=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),n=SuperMapAlgoPlot.PlottingUtil.clonePoints(o);n.splice(0,2),n.unshift(l);var r=SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine(e,n),i=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);if(-1===r.index&&3===t&&(r.pt=l.clone()),-1==r.index&&4==t)this.scaleValues[t+1]=.01;else{var a=SuperMapAlgoPlot.PlottingUtil.distance(l,e);this.scaleValues[t+1]=a/i,this.scaleValues[4]>.5&&(this.scaleValues[4]=.5),this.scaleValues[5]>1&&(this.scaleValues[5]=1)}}}}}])&&aV(e.prototype,o),l&&aV(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function PV(t){"@babel/helpers - typeof";return(PV="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})(t)}function fV(t,e){for(var o=0;o=n&&l>=r?(e=t[0],o=t[1]):n>=l&&n>=r?(e=t[1],o=t[2]):(e=t[0],o=t[2])}var i=SuperMapAlgoPlot.PlottingUtil.dirAngle(e,o)*SuperMapAlgoPlot.PlottingUtil.RTOD,a=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),u=.1*a,p=[];if(p=3>=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):t.length>3&&!0===this.polylineConnectLocationPoint?t:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),0!=(p=SuperMapAlgoPlot.PlottingUtil.clearSamePts(p)).length){for(var s=p[0].x,c=p[0].x,P=p[0].y,f=p[0].y,g=0;gp[g].x&&(s=p[g].x),cp[g].y&&(P=p[g].y),f=p.length)){var w=[];w.push(h);for(var U=b+1;U0;x--)w.push(_[x]);V=new SuperMapAlgoPlot.Point(0,0),T=-1;var B=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(j,w);if(B.bfind){T=B.index,V=B.pts,(_=[]).push(V);for(var C=T+1;CSuperMapAlgoPlot.PlottingUtil.distance(y,k)?(Y=N,z=SuperMapAlgoPlot.PlottingUtil.dirAngle(N,k)*SuperMapAlgoPlot.PlottingUtil.RTOD):(Y=k,z=SuperMapAlgoPlot.PlottingUtil.dirAngle(Y,N)*SuperMapAlgoPlot.PlottingUtil.RTOD);var F=SuperMapAlgoPlot.PlottingUtil.circlePoint(Y,.2*u,.2*u,z),W=SuperMapAlgoPlot.PlottingUtil.circlePoint(F,.05*u,.05*u,z+90),G=SuperMapAlgoPlot.PlottingUtil.circlePoint(F,.05*u,.05*u,z-90);(D=[]).push(W),D.push(G),D.push(Y),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,D),this.finish()}}}}}}}])&&fV(e.prototype,o),l&&fV(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function bV(t){"@babel/helpers - typeof";return(bV="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})(t)}function AV(t,e){for(var o=0;o=1&&(this.scaleValues[5]=a);break;case 1:if(u=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e))return;n=(SuperMapAlgoPlot.PlottingUtil.radian(o[1],e)-SuperMapAlgoPlot.PlottingUtil.radian(o[0],o[1]))*this.RTOD,l=SuperMapAlgoPlot.PlottingUtil.distance(e,o[1])/i,this.scaleValues[2]=l,this.scaleValues[7]=n,r=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[0],o[1]),(a=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/i)>=1.1&&(this.scaleValues[5]=a);break;case 2:if(!(u=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e)))return;n=(SuperMapAlgoPlot.PlottingUtil.radian(o[0],e)-SuperMapAlgoPlot.PlottingUtil.radian(o[0],o[1]))*this.RTOD,l=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/i,this.scaleValues[3]=l,this.scaleValues[8]=n,r=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[0],o[1]),(a=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/i)>=1.1&&-1==this.scaleValues[10]&&(this.scaleValues[5]=a);break;case 3:if(!(u=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e)))return;n=(SuperMapAlgoPlot.PlottingUtil.radian(o[1],e)-SuperMapAlgoPlot.PlottingUtil.radian(o[0],o[1]))*this.RTOD,l=SuperMapAlgoPlot.PlottingUtil.distance(e,o[1])/i,this.scaleValues[4]=l,this.scaleValues[9]=n,r=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[0],o[1]),(a=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/i)>=1.1&&-1==this.scaleValues[10]&&(this.scaleValues[5]=a);break;case 4:var a,u=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(o[0],o[1],e);this.scaleValues[10]=u?-1:1,r=SuperMapAlgoPlot.PlottingUtil.projectPoint(e,o[0],o[1]),(a=SuperMapAlgoPlot.PlottingUtil.distance(e,r)/i)>=1.1&&(this.scaleValues[5]=a)}}}},{key:"AddCellPoints",value:function(t,e,o){for(var l=0;l3){var o=[];o.push(t[0]),o.push(t[1]),o.push(t[2]);var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);this.addArrow(l,this.scaleValues[0]);for(var n=[],r=3;r=2){var i=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(n);this.addArrow(i,this.scaleValues[0])}}else if(t.length<=3){var a=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);this.addArrow(a,this.scaleValues[0])}this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>o.length)){0===this.scaleValues.length&&this.scaleValues.push(.2);SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1])}}}])&&RV(e.prototype,o),l&&RV(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function CV(t){"@babel/helpers - typeof";return(CV="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})(t)}function YV(t,e){for(var o=0;o0;n--)l.push(o.leftBody[n]);var r=this.arrowMeshs(e.tempPt);l=(l=l.concat(r.shapePts)).concat(o.rightBody);var i={fillLimit:!0,fillColorLimit:!0,fillStyle:0,strokeOpacity:1,opacity:1,lineColorLimit:!0,strokeColor:"#0000ff",color:"#0000ff",lineColor:"#0000ff",surroundLineLimit:!0,surroundLineColor:"#ffff00",surroundLineColorOpacity:1,surroundLineWidth:4,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,l,i),SuperMapAlgoPlot.AlgoSymbol1004.prototype.scaleValues=this.scaleValues;var a=SuperMapAlgoPlot.AlgoSymbol1004.prototype.updateScalePoints(e.tempPt);this.scalePoints=[],this.addScalePoint(a[a.length-1]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.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 l=o.length;if(l<=2)return;var n,r,i,a,u=this.operateCtrlPts(o);l=u.length,l--;if(this.scaleValues.length<4){var p=this.calcDefaultScaleValues(l);n=p[0],r=p[1],i=p[2],a=p[3]}else n=this.scaleValues[0],r=this.scaleValues[1],i=this.scaleValues[2],a=this.scaleValues[3];for(var s=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),c=[],P=0;P=3&&(n=SuperMapAlgoPlot.PlottingUtil.radian(a[p.index-1],a[p.index+1])*this.RTOD,r=SuperMapAlgoPlot.PlottingUtil.radian(a[s.index-1],a[s.index+1])*this.RTOD,i=SuperMapAlgoPlot.PlottingUtil.radian(a[c.index-1],a[c.index+1])*this.RTOD);var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p.pt,.9*u,.9*u,n+90),f=SuperMapAlgoPlot.PlottingUtil.circlePoint(p.pt,.9*u,.9*u,n+270),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(s.pt,.8*u,.8*u,r+90),y=SuperMapAlgoPlot.PlottingUtil.circlePoint(s.pt,.8*u,.8*u,r+270),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c.pt,.3*u,.3*u,i+90),S=SuperMapAlgoPlot.PlottingUtil.circlePoint(c.pt,.3*u,.3*u,i+270),b=[];b.push(e),b.push(P),b.push(g),b.push(h),b.push(t[0]);var A=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(b),d=[];return d.push(o),d.push(f),d.push(y),d.push(S),d.push(t[0]),{leftBody:A,rightBody:SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(d)}}},{key:"GetLeftAndRightPt",value:function(){var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),e=(t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length;if(!(e=3){for(var s=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),c=SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines(t[1],s),P=[],f=0;f<=c.index;f++)P.push(s[f]);var g=SuperMapAlgoPlot.PlottingUtil.polylineDistance(P),y=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(s,.9*g);u=SuperMapAlgoPlot.PlottingUtil.radian(s[y.index-1],s[y.index+1])*this.RTOD;if(n=SuperMapAlgoPlot.PlottingUtil.circlePoint(y.pt,i,i,u+90),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(y.pt,i,i,u+270),SuperMapAlgoPlot.PlottingUtil.isRight(n,s[y.index-1],s[y.index+1])){p=n;n=r,r=p}var h=[];for(f=0;f<=y.index;f++)h.push(s[f]);o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(h)}return{leftPt:n,rightPt:r,dTailLenght:o}}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(l,0)){var n=this.operateCtrlPts(t);e=n.length,e--;for(var r=[],i=0;i=0;y--)e.push(p[y]),l.push(p[y])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:n}}},{key:"operateCtrlPts",value:function(t){var e=SuperMapAlgoPlot.PlottingUtil.clonePoints(t);if(3===e.length){var o=((e[0].x+e[1].x)/2+e[2].x)/2,l=((e[0].y+e[1].y)/2+e[2].y)/2,n=new SuperMapAlgoPlot.Point(o,l),r=e[2];e[2]=n,e.push(r)}return e}}])&&YV(e.prototype,o),l&&YV(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function zV(t){"@babel/helpers - typeof";return(zV="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})(t)}function FV(t,e){for(var o=0;o=3){var p=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[2],o),s=[];s.push(p),s.push(t[2]);var c=[];if(t.length>3){for(a=3;a0&&this.addScalePoint(r[0]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>o.length)&&0==t){var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[1])/l;n<=.5&&(this.scaleValues[1]=n)}}}])&&FV(e.prototype,o),l&&FV(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function KV(t){"@babel/helpers - typeof";return(KV="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})(t)}function qV(t,e){for(var o=0;o=3){var p=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[2],o),s=[];s.push(p),s.push(t[2]);var c=[];if(t.length>3){for(a=3;a0&&this.addScalePoint(r[0]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>o.length)&&0==t){var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[1])/l;this.scaleValues[1]=n,this.scaleValues[1]>.7&&(this.scaleValues[1]=.7)}}}])&&qV(e.prototype,o),l&&qV(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function tT(t){"@babel/helpers - typeof";return(tT="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})(t)}function eT(t,e){for(var o=0;o3){var r=[];if(!this.isEdit){var i=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[3])*this.RTOD;this.scaleValues[2]=i}l=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],e,o,this.scaleValues[2]),r.push(l);for(var a=3;a0&&s.push(p[0]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,s);var P=[];for(a=0;a<=360;a+=5){var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(t[0],o*this.scaleValues[1],o*this.scaleValues[1],a);c.push(f),30!=a&&210!=a||P.push(f)}var g={lineColorLimit:!0,strokeColor:"#0000ff",strokeOpacity:1,color:"#0000ff",opacity:1,lineColor:"#0000ff"};this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P,g),c.length>0&&(this.addScalePoint(c[0]),t.length>3&&this.addScalePoint(l)),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>o.length)){if(0===t){var l,n;if(2===o.length)l=n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]);else if((l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]))<(n=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[2]))){var r=l;l=n,n=r}var i=n*this.scaleValues[1];(r=SuperMapAlgoPlot.PlottingUtil.distance(e,o[0])/i)<=2&&(this.scaleValues[1]*=r)}if(1===t){var a=SuperMapAlgoPlot.PlottingUtil.radian(o[0],e)*this.RTOD;this.scaleValues[2]=a}}}}])&&eT(e.prototype,o),l&&eT(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function iT(t){"@babel/helpers - typeof";return(iT="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})(t)}function aT(t,e){for(var o=0;o=3){var s=SuperMapAlgoPlot.PlottingUtil.linePnt(t[1],t[2],o),c=[];c.push(s),c.push(t[2]);var P=[];if(t.length>3){for(a=3;a0&&this.addScalePoint(r[0]),this.finish()}}},{key:"computeScaleValues",value:function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!(2>o.length)&&0==t){var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),n=SuperMapAlgoPlot.PlottingUtil.distance(e,o[1])/l;this.scaleValues[1]=n,this.scaleValues[1]>.7&&(this.scaleValues[1]=.7)}}}])&&aT(e.prototype,o),l&&aT(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function PT(t){"@babel/helpers - typeof";return(PT="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})(t)}function fT(t,e){for(var o=0;o=2?this.addArrow(y[S],this.scaleValues[3]):this.addArrow([e[e.length-2],e[e.length-1]],this.scaleValues[3]));this.scalePoints=[],this.addScalePoint(r),this.addScalePoint(s),this.addScalePoint(u),this.addScalePoint(f);var b=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[3],A=SuperMapAlgoPlot.PlottingUtil.linePnt(e[e.length-1],e[e.length-2],b);this.addScalePoint(A),this.finish()}}}}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(0==t){for(var r=0,i=-1,a=null,u=0;u=1-this.scaleValues[3]&&(c=1-this.scaleValues[3]),this.scaleValues[1]=c}else if(1==t){var c;for(r=0,i=-1,a=null,u=0;u=1-this.scaleValues[3]&&(c=1-this.scaleValues[3]),this.scaleValues[2]=c}else if(2==t){if(!(P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(this.scaleValues[1]*n,l)).bfind)return;(f=SuperMapAlgoPlot.PlottingUtil.distance(P.pts,e)/n)<=.3&&(this.scaleValues[0]=f)}else if(3==t){var P,f;if(!(P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(this.scaleValues[2]*n,l)).bfind)return;(f=SuperMapAlgoPlot.PlottingUtil.distance(P.pts,e)/n)<=.3&&(this.scaleValues[0]=f)}else if(4==t){var g=.5*SuperMapAlgoPlot.PlottingUtil.distance(e,o[o.length-1])/SuperMapAlgoPlot.PlottingUtil.polylineDistance(o);if(.5.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[2]=e}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),r=l*n,i=this.scaleValues[2]*n,a=!1;if(a=0===this.scaleValues[1],0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(o)){for(var u=[],p=[],s=0,c=[],P=0;P0&&(c.push(o[P]),p.push(c),c=[]),s++),c.push(o[P]);for(var f=0;f=1)return;this.scaleValues[2]=S}}}}])&&e(n.prototype,r),i&&e(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}();function i(t){"@babel/helpers - typeof";return(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})(t)}function a(t,e){for(var o=0;o0&&(e.scaleValues.push(.029615),e.scaleValues.push(1),e.scaleValues.push(.12)),e}return e=r,(o=[{key:"calculateParts",value:function(){this.init();var t=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t)).length.3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[2]=e}var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=this.scaleValues[0],n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),r=l*n,i=this.scaleValues[2]*n,a=!1;if(a=0===this.scaleValues[1],0!==SuperMapAlgoPlot.PlottingUtil.polylineDistance(o)){for(var u=[],p=[],s=0,c=[],P=0;P0&&(c.push(o[P]),p.push(c),c=[]),s++),c.push(o[P]);for(var f=i,g=0;g.3||n<=0)&&(n=.3),this.scaleValues[2]=n,this.scaleValues[0]=.5*this.scaleValues[2]}for(var r=this.scaleValues[0]*l,i=this.scaleValues[1],a=this.scaleValues[2]*l,u=.5*r,p=o-2*a-2*u,s=a,c=0;c<2;c++){var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(s,e);if(-1!==P.index){var f=s+u,g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(f,e);if(-1!==g.index){var y=[],S=[];if(y.push(P.pts),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e[P.index].x,P.pts.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e[P.index].y,P.pts.y)&&P.index+1.7&&(S=.7),this.scaleValues[2]=S}}}}])&&f(e.prototype,o),l&&f(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function b(t){"@babel/helpers - typeof";return(b="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})(t)}function A(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);for(var l=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(l,o),r=0;r=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);for(var l=this.mergeDashLine(this.dashLines,[]),n=this.computeDashLine(l,o),r=0;r=.12&&(r=.12),this.scaleValues[0]=r}}},{key:"computeXPts",value:function(t,e,o,l){var n=[],r=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+45),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+225);n.push(r),n.push(i);var a=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+135),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+315);return n.push(a),n.push(u),n}}])&&V(e.prototype,o),l&&V(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function _(t){"@babel/helpers - typeof";return(_="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})(t)}function I(t,e){for(var o=0;o1&&(P=1),this.scaleValues[0]=P}if(1===t){var f=this.scaleValues[0]*l,g=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(o,f);if(-1===g.index)return;var y=SuperMapAlgoPlot.PlottingUtil.distance(g.pt,e)/l;y>.4&&(y=.4),this.scaleValues[1]=y}}}},{key:"intersectLineAndCircle",value:function(t,e,o,l,n){for(var r=!1,i=SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[o,new SuperMapAlgoPlot.Point(o.x+l,o.y)]),a=0;ae.x){for(var p=0;pn[c+1].x){var P=n[c];n[c]=n[c+1],n[c+1]=P}}else if(t.y>e.y){for(var f=0;fn[y+1].y){var S=n[y];n[y]=n[y+1],n[y+1]=S}return r}},{key:"isLineInCircle",value:function(t,e,o,l){var n=new SuperMapAlgoPlot.Point((t.x+e.x)/2,(t.y+e.y)/2);return SuperMapAlgoPlot.PlottingUtil.distance(n,o)o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o,!1);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l),r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(.6*n,l);if(!r.bfind)return;var i=2*SuperMapAlgoPlot.PlottingUtil.distance(e,r.pts);this.scaleValues[0]=i/n}}}])&&W(e.prototype,o),l&&W(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();function tt(t){"@babel/helpers - typeof";return(tt="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})(t)}function et(t,e){for(var o=0;o=.12&&(r=.12),this.scaleValues[0]=r}}},{key:"computeXPts",value:function(t,e,o,l){var n=[],r=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+45),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+225);n.push(r),n.push(i);var a=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+135),u=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,e,e,l+315);return n.push(a),n.push(u),n}},{key:"computeDashLines",value:function(t,e){for(var o=this.computeDashLine(2*e,2*e,t),l=.5*e,n=0;n2&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P)}f.push(r.endPt);for(var S=r.endIndex+1;S=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e),this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(),this.scaleValues[1]=.0625*this.getSubSymbolScaleValue());for(var o=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),l=o*this.scaleValues[0],n=o*this.scaleValues[1],r=e[0],i=0,a=1;a=l){var s=SuperMapAlgoPlot.PlottingUtil.findPointInLine(r,u,l);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[r,s]),r=s,i++,a--}break;case 1:case 3:var c=3*n;if(p>c)r=SuperMapAlgoPlot.PlottingUtil.findPointInLine(r,u,c),i++,a--;break;case 2:if(p>2*n){var P=SuperMapAlgoPlot.PlottingUtil.findPointInLine(r,u,2*n);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[new SuperMapAlgoPlot.Point(.5*(r.x+P.x),.5*(r.y+P.y)),P],{fillLimit:!0,fill:!0}),r=P,i++,a--}}}this.finish()}}}])&&At(e.prototype,o),l&&At(e,l),Object.defineProperty(e,"prototype",{writable:!1}),r}();SuperMapAlgoPlot.AlgoSymbol610100=mt;SuperMapAlgoPlot.YJAlgoSymbolFactory=SuperMapAlgoPlot.YJAlgoSymbolFactory||{};SuperMapAlgoPlot.YJAlgoSymbolFactory.getAlgoSymbol=function(t,e,o){if(999!==t)return new SuperMapAlgoPlot.AlgoSymbol(o);switch(e){case 510100:return new SuperMapAlgoPlot.AlgoSymbol510100(o);case 510200:return new SuperMapAlgoPlot.AlgoSymbol15804(o);case 520100:return new SuperMapAlgoPlot.AlgoSymbol520100(o);case 520200:return new SuperMapAlgoPlot.AlgoSymbol520200(o);case 520300:return new SuperMapAlgoPlot.AlgoSymbol520300(o);case 520400:return new SuperMapAlgoPlot.AlgoSymbol15200(o);case 520500:return new SuperMapAlgoPlot.AlgoSymbol520500(o);case 530100:return new SuperMapAlgoPlot.AlgoSymbol530100(o);case 530200:return new SuperMapAlgoPlot.AlgoSymbol530200(o);case 610100:return new SuperMapAlgoPlot.AlgoSymbol610100(o);case 610200:return new SuperMapAlgoPlot.AlgoSymbol29100(o);case 610300:return new SuperMapAlgoPlot.AlgoSymbol29101(o);default:return new SuperMapAlgoPlot.AlgoSymbol(o)}},SuperMapAlgoPlot.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}},SuperMapAlgoPlot.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 SuperMapAlgoPlot.AddPoint_WayType.CURVE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}},SuperMapAlgoPlot.YJAlgoSymbolFactory.getDefaultSubSymbols=function(){return[]},SuperMapAlgoPlot.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}},SuperMapAlgoPlot.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}},SuperMapAlgoPlot.YJAlgoSymbolFactory.getDefaultStyle=function(){return{}},SuperMapAlgoPlot.YJAlgoSymbolFactory.zoomInCalSymbol=function(){return!1}}(); /***/ }), /* 4 */ /***/ (function(module, exports) { /*! * * iclient-plot-webgl-common.(https://iclient.supermap.io) * Copyright© 2000 - 2023 SuperMap Software Co.Ltd * license: Apache-2.0 * version: v11.1.0 * */!function(){"use strict";var t=window.SuperMap=window.SuperMap||{};t.Plot=t.Plot||{},window.SuperMapAlgoPlot=t.Plot||{};function e(t,e){for(var o=0;othis.right)&&(this.right=o.right),(null==this.top||o.top>this.top)&&(this.top=o.top))}}},{key:"containsLonLat",value:function(t,e){"boolean"==typeof e&&(e={inclusive:e}),e=e||{};var o=this.contains(t.lon,t.lat,e.inclusive),l=e.worldBounds;if(l&&!o){var n=l.getWidth(),i=(l.left+l.right)/2,r=Math.round((t.lon-i)/n);o=this.containsLonLat({lon:t.lon-r*n,lat:t.lat},{inclusive:e.inclusive})}return o}},{key:"containsPixel",value:function(t,e){return this.contains(t.x,t.y,e)}},{key:"contains",value:function(t,e,o){if(null==o&&(o=!0),null==t||null==e)return!1;var l=!1;return l=o?t>=this.left&&t<=this.right&&e>=this.bottom&&e<=this.top:t>this.left&&tthis.bottom&&e=o.bottom&&t.bottom<=o.top||o.bottom>=t.bottom&&o.bottom<=t.top,r=t.top>=o.bottom&&t.top<=o.top||o.top>t.bottom&&o.top=o.left&&t.left<=o.right||o.left>=t.left&&o.left<=t.right,s=t.right>=o.left&&t.right<=o.right||o.right>=t.left&&o.right<=t.right;l=(i||r)&&(a||s)}if(e.worldBounds&&!l){var p=e.worldBounds,u=p.getWidth(),c=!p.containsBounds(o),P=!p.containsBounds(t);c&&!P?(t=t.add(-u,0),l=o.intersectsBounds(t,{inclusive:e.inclusive})):P&&!c&&(o=o.add(-u,0),l=t.intersectsBounds(o,{inclusive:e.inclusive}))}return l}},{key:"containsBounds",value:function(t,e,o){null==e&&(e=!1),null==o&&(o=!0);var l=this.contains(t.left,t.bottom,o),n=this.contains(t.right,t.bottom,o),i=this.contains(t.left,t.top,o),r=this.contains(t.right,t.top,o);return e?l||n||i||r:l&&n&&i&&r}},{key:"determineQuadrant",value:function(t){var e="",o=this.getCenterLonLat();return e+=t.lat=t.right&&n.right>t.right;)n=n.add(-i,0);var r=n.left+o;rt.left&&n.right-l>t.right&&(n=n.add(-i,0))}return n}},{key:"toServerJSONObject",value:function(){return{rightTop:{x:this.right,y:this.top},leftBottom:{x:this.left,y:this.bottom},left:this.left,right:this.right,top:this.top,bottom:this.bottom}}},{key:"destroy",value:function(){this.left=null,this.right=null,this.top=null,this.bottom=null,this.centerLonLat=null}}])&&e(o.prototype,l),n&&e(o,n),Object.defineProperty(o,"prototype",{writable:!1}),t}();function l(t,e){for(var o=0;o=0;o--)t[o]===e&&t.splice(o,1);return t}},{key:"indexOf",value:function(t,e){if(null==t)return-1;if("function"==typeof t.indexOf)return t.indexOf(e);for(var o=0,l=t.length;o=0&&parseFloat(a)<1?(t.style.filter="alpha(opacity="+100*a+")",t.style.opacity=a):1===parseFloat(a)&&(t.style.filter="",t.style.opacity="")}},{key:"applyDefaults",value:function(t,e){t=t||{};var o="function"==typeof window.Event&&e instanceof window.Event;for(var l in e)(void 0===t[l]||!o&&e.hasOwnProperty&&e[l]&&!t[l])&&(t[l]=e[l]);return!o&&e&&e.hasOwnProperty&&e.toString&&!t.toString&&(t.toString=e.toString),t}},{key:"getParameterString",value:function(t){var e=[];for(var o in t){var l,n=t[o];if(null!=n&&"function"!=typeof n)l=Array.isArray(n)||"[object Object]"===n.toString()?encodeURIComponent(JSON.stringify(n)):encodeURIComponent(n),e.push(encodeURIComponent(o)+"="+l)}return e.join("&")}},{key:"urlAppend",value:function(t,e){var o=t;if(e){0===e.indexOf("?")&&(e=e.substring(1));var l=(t+" ").split(/[?&]/);o+=" "===l.pop()?e:l.length?"&"+e:"?"+e}return o}},{key:"urlPathAppend",value:function(t,e){var o=t;if(!e)return o;0===e.indexOf("/")&&(e=e.substring(1));var l=t.split("?");return l[0].indexOf("/",l[0].length-1)<0&&(l[0]+="/"),o="".concat(l[0]).concat(e).concat(l.length>1?"?".concat(l[1]):"")}},{key:"toFloat",value:function(e,o){return null==o&&(o=t.DEFAULT_PRECISION),"number"!=typeof e&&(e=parseFloat(e)),0===o?e:parseFloat(e.toPrecision(o))}},{key:"rad",value:function(t){return t*Math.PI/180}},{key:"getParameters",value:function(t){t=null===t||void 0===t?window.location.href:t;var e="";if(StringExt.contains(t,"?")){var o=t.indexOf("?")+1,l=StringExt.contains(t,"#")?t.indexOf("#"):t.length;e=t.substring(o,l)}for(var n={},i=e.split(/[&;]/),r=0,a=i.length;r1?1/t:t}},{key:"getResolutionFromScale",value:function(e,o){var l;e&&(null==o&&(o="degrees"),l=1/(t.normalizeScale(e)*INCHES_PER_UNIT[o]*DOTS_PER_INCH));return l}},{key:"getScaleFromResolution",value:function(t,e){return null==e&&(e="degrees"),t*INCHES_PER_UNIT[e]*DOTS_PER_INCH}},{key:"getBrowser",value:function(){return Browser}},{key:"supportCanvas",value:function(){return t.isSupportCanvas}},{key:"isInTheSameDomain",value:function(t){if(!t)return!0;var e=t.indexOf("//"),o=document.location.toString(),l=o.indexOf("//");if(-1===e)return!0;var n,i=n=t.substring(0,e),r=o.substring(l+2);l=r.indexOf("/");var a=r.indexOf(":"),s=r.substring(0,l),p=document.location.protocol;if(-1!==a||(s+=":"+("http:"===p.toLowerCase()?80:443)),p.toLowerCase()!==i.toLowerCase())return!1;var u=(i=t.substring(e+2)).indexOf(":");e=i.indexOf("/");var c,P=i.substring(0,e);return-1!==u?c=i.substring(0,u):(c=i.substring(0,e),P+=":"+("http:"===n.toLowerCase()?80:443)),c===document.domain&&P===s}},{key:"calculateDpi",value:function(t,e,o,l,n){if(t&&e&&o){var i,r=t.getWidth(),a=t.getHeight(),s=e.w,p=e.h;if(n=n||6378137,"degree"===(l=l||"degrees").toLowerCase()||"degrees"===l.toLowerCase()||"dd"===l.toLowerCase()){var u=r/s,c=a/p;i=254/(u>c?u:c)/o/(2*Math.PI*n/360)/1e4}else{i=254/(r/s)/o/1e4}return i}}},{key:"toJSON",value:function(e){var o=e;if(null==o)return null;switch(o.constructor){case String:return o=(o=(o=(o=(o=(o=(o='"'+o.replace(/(["\\])/g,"\\$1")+'"').replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace("<","<")).replace(">",">")).replace(/%/g,"%25")).replace(/&/g,"%26");case Array:for(var l="",n=0,i=o.length;n0?"{"+p.join(",")+"}":"{}"}return o.toString()}}},{key:"getResolutionFromScaleDpi",value:function(e,o,l,n){return n=n||6378137,l=l||"",e>0&&o>0?(e=t.normalizeScale(e),"degree"===l.toLowerCase()||"degrees"===l.toLowerCase()||"dd"===l.toLowerCase()?254/o/e/(2*Math.PI*n/360)/1e4:254/o/e/1e4):-1}},{key:"getScaleFromResolutionDpi",value:function(t,e,o,l){return l=l||6378137,o=o||"",t>0&&e>0?"degree"===o.toLowerCase()||"degrees"===o.toLowerCase()||"dd"===o.toLowerCase()?254/e/t/(2*Math.PI*l/360)/1e4:254/e/t/1e4:-1}},{key:"transformResult",value:function(t){return t.responseText&&"string"==typeof t.responseText&&(t=JSON.parse(t.responseText)),t}},{key:"copyAttributes",value:function(t,e){if(t=t||{},e)for(var o in e){var l=e[o];void 0!==l&&"CLASS_NAME"!==o&&"function"!=typeof l&&(t[o]=l)}return t}},{key:"copyAttributesWithClip",value:function(t,e,o){if(t=t||{},e)for(var l in e){var n=!1;if(o&&o.length)for(var i=0,r=o.length;i=0&&i<=1&&n<=1&&i>=0?new Geometry.Point(t.x+n*(e.x-t.x),t.y+n*(e.y-t.y)):"No Intersection";else if(0==a&&0==s){var u=Math.max(t.y,e.y),c=Math.min(t.y,e.y),P=Math.max(t.x,e.x),g=Math.min(t.x,e.x);r=(o.y>=c&&o.y<=u||l.y>=c&&l.y<=u)&&o.x>=g&&o.x<=P||l.x>=g&&l.x<=P?"Coincident":"Parallel"}else r="Parallel";return r}},{key:"getTextBounds",value: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 l=o.clientWidth,n=o.clientHeight;return document.body.removeChild(o),{textWidth:l,textHeight:n}}},{key:"convertPath",value:function(t,e){return e?t.replace(/\{([\w-\.]+)\}/g,function(t,o){var l;return l=e[o]?paramToString(e[o]):t,encodeURIComponent(l)}):t}}],(o=null)&&l(e.prototype,o),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function i(t,e){for(var o=0;oS?e.scaleValues[S]=t.scaleValues[S]:e.scaleValues.push(t.scaleValues[S]);else e.scaleValues=[],e.scaleValues=t.scaleValues;e.visible=t.visible,e.orbitPoints=t.orbitPoints}else if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.SATELLITETIMEWINDOWS)e.timeWindows=t.timeWindows;else{var A;A=!0===o?L.Util.latLngsToSuperMapPoints(t.getLatLngs()):t.controlPoints,t.symbolData&&"number"==typeof e.dotShowMode&&(e.dotShowMode=t.dotShowMode),t.picturePath&&(e.picturePath=t.picturePath),t.modelPath&&(e.modelPath=t.modelPath),t.symbolRank&&(e.symbolRank=t.symbolRank),e.localePoints=[];var M=A.length;t.symbolType===SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL&&(M=3);for(var d=0;dd?e.localePoints.push({x:A[d].x,y:A[d].y,z:t.arrZ[d]}):e.localePoints.push({x:A[d].x,y:A[d].y,z:0});if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.LINERELATION)e.endAssociation=t.endAssociatedUuid,e.lineRelationType=t.lineRelationType,e.startAssociation=t.startAssociatedUuid,e.subSectionCount=t.subSectionCount;else if(0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.PICTURE){if(e.path=t.path,e.symbolTexts=[],null!=t.symbolTexts&&0!=t.symbolTexts.length)for(var b=0;bE?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,void 0!==t.isClampToGround&&(e.isClampToGround=t.isClampToGround),22===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.ALGOSYMBOL?(e.arrowHeadType=t.arrowHeadType,e.arrowBodyType=t.arrowBodyType,e.arrowTailType=t.arrowTailType):0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.ARROWLINE?e.arrowAngle=t.arrowAngle:0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE?e.defaultRadius=t.defaultRadius:0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.CONCENTRICCIRCLE||(0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.LINEMARKING?(e.islocationCircle=t.islocationCircle,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMapAlgoPlot.SymbolType.SYMBOLTEXTBOX?(e.roundBox=t.roundBox,e.textBoxType=t.textBoxType):0===t.libID&&t.symbolType===SuperMapAlgoPlot.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===SuperMapAlgoPlot.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},SuperMapAlgoPlot.AnalysisSymbol.parseSymbolData=function(t,e,o){if(null!=e){if(null!=e.isEdit&&(t.isEdit=e.isEdit),Object.prototype.hasOwnProperty.call(e,"version")&&(t.version=e.version),Object.prototype.hasOwnProperty.call(e,"libID")&&(t.libID=parseInt(e.libID)),Object.prototype.hasOwnProperty.call(e,"code")&&(t.code=parseInt(e.code)),Object.prototype.hasOwnProperty.call(e,"algoMaxEditPts")&&(t.maxEditPts=parseInt(e.algoMaxEditPts)),Object.prototype.hasOwnProperty.call(e,"algoMinEditPts")&&(t.minEditPts=parseInt(e.algoMinEditPts)),Object.prototype.hasOwnProperty.call(e,"symbolType")&&(t.symbolType=parseInt(e.symbolType)),Object.prototype.hasOwnProperty.call(e,"symbolName")&&(t.symbolName=e.symbolName),Object.prototype.hasOwnProperty.call(e,"textContent")&&(t.textContent=e.textContent),Object.prototype.hasOwnProperty.call(e,"bubbleHeight")&&(t.bubbleHeight=e.bubbleHeight),Object.prototype.hasOwnProperty.call(e,"bubbleWidth")&&(t.bubbleWidth=e.bubbleWidth),Object.prototype.hasOwnProperty.call(e,"description")&&(t.description=e.description),Object.prototype.hasOwnProperty.call(e,"mediaList")&&(t.mediaList=e.mediaList),null!=e.dScale?t.dScale=e.dScale:void 0!==e.scale2D&&(t.dScale=e.scale2D.x),null!=e.dRotate?t.dRotate=e.dRotate:void 0!==e.rotate2D&&(t.dRotate=e.rotate2D.x),null!=e.resolution&&(t.resolution=e.resolution),null!=e.uuid&&(t.uuid=e.uuid),null!=e.associatedUuid&&(t.associatedUuid=e.associatedUuid),null!=e.textDisplay&&(t.textDisplay=e.textDisplay),null!=e.annotationPosition&&(o?t.annotationPosition=e.annotationPosition:t.textPosition=e.annotationPosition),null!=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 l=0;l255?e++:o++;return e+o/2},SuperMapAlgoPlot.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("<","<")).replace(">",">")).replace(/%/g,"%2525")).replace(/&/g,"%26");case Array:for(var o=[],l=0,n=e.length;l0?"{"+s.join(",")+"}":"{}"}return e.toString()}},SuperMapAlgoPlot.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=SuperMapAlgoPlot.PlottingUtil.copyAttributes(e.style,t.style)),o.feature=e,o.calculateParts()}return e},SuperMapAlgoPlot.PlottingUtil.inverse=function(t){for(var e=[],o=t.length-1;o>=0;o--)e.push(t[o]);return e},SuperMapAlgoPlot.PlottingUtil.getSurroundLinePts=function(t,e){for(var o=[],l=[],n=0;n2*c?l.push(r):(l[l.length-1]=u,l.push(r))}else l.push(r)}else l.push(i),l.push(r);(o=[]).push(l[l.length-2]),o.push(l[l.length-1])}}if(t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y&&1Math.PI&&(l-=2*Math.PI),l}if(t.length<3)return 1;for(var o=0,l={x:0,y:0},n={x:0,y:0},i=2;i=0?-1:1},SuperMapAlgoPlot.PlottingUtil.isNear=function(t,e){return e||(e=SuperMapAlgoPlot.PlottingUtil.TORLERANCE_STATIC),t-e},SuperMapAlgoPlot.PlottingUtil.equalFuzzy=function(t,e,o){return o||(o=1e-18),Math.abs(t-e)<=o},SuperMapAlgoPlot.PlottingUtil.intersectLines=function(t,e,o,l){var n={isIntersectLines:!1};if(t.x===e.x&&t.y===e.y||o.x===l.x&&o.y===l.y)return n;var i=e.x-t.x,r=e.y-t.y,a=l.x-o.x,s=l.y-o.y,p=i*s-a*r;if(SuperMapAlgoPlot.PlottingUtil.isNear(p))return n;var u=(i*(t.y-o.y)-r*(t.x-o.x))/p,c=new SuperMapAlgoPlot.Point(0,0);return c.x=u*a+o.x,c.y=u*s+o.y,n.isIntersectLines=!0,n.intersectPoint=c,n},SuperMap.Plot.PlottingUtil.limitSigDigs=function(t,e){var o=0;if(e>0){var l=new Number(t);o=parseFloat(l.toPrecision(e))}return o},SuperMap.Plot.PlottingUtil.containsPoint=function(t,e){for(var o=SuperMap.Plot.PlottingUtil.getPolygonCenterPt(t.components),l=SuperMap.Plot.PlottingUtil.distance(o,e),n=0,i=SuperMap.Plot.PlottingUtil.radian(e,t.components[0]),r=1;ra&&(i=a,n=r)}return l=0;r--)e.push(t[l][r]);t.splice(l,1);var a=n(t,e);if(void 0!==a&&0!==a.length)return a}return e}if(SuperMapAlgoPlot.PlottingUtil.isArray(t)||(t=[t]),0===t.length)return[];if(1===t.length)return t[0];for(var i=0;i2&&b.push(v)}return b},SuperMapAlgoPlot.PlottingUtil.isRight=function(t,e,o){var l=e,n=o,i=e,r=t;return(n.x-l.x)*(r.y-i.y)-(r.x-i.x)*(n.y-l.y)<0},SuperMapAlgoPlot.PlottingUtil.radian=function(t,e){var o,l,n=0;return o=e.x-t.x,l=e.y-t.y,(n=Math.atan2(l,o))<0&&(n+=2*Math.PI),n},SuperMapAlgoPlot.PlottingUtil.findBisectorPoint=function(t,e,o,l){var n=SuperMapAlgoPlot.PlottingUtil.radian(e,t),i=(n+SuperMapAlgoPlot.PlottingUtil.radian(e,o))/2,r=Math.cos(i-n+Math.PI/2),a=l;SuperMapAlgoPlot.PlottingUtil.isNear(r,.15)||(a=l/r);var s=e.x+a*Math.cos(i),p=e.y+a*Math.sin(i);return new SuperMapAlgoPlot.Point(s,p)},SuperMapAlgoPlot.PlottingUtil.findPoint=function(t,e,o,l){if(t===e||Math.abs(o)<1e-18)return t;var n=SuperMapAlgoPlot.PlottingUtil.radian(t,e)+l*Math.PI/180,i=t.x+o*Math.cos(n),r=t.y+o*Math.sin(n);return new SuperMapAlgoPlot.Point(i,r)},SuperMapAlgoPlot.PlottingUtil.isSameQuadrant=function(t,e,o,l){var n=(e.x-t.x)*(l.x-o.x),i=(e.y-t.y)*(l.y-o.y);return!(Math.abs(n)<1e-18&&Math.abs(i)<1e-18)&&((n>0||Math.abs(n)<1e-18)&&(i>0||Math.abs(i)<1e-18))},SuperMapAlgoPlot.PlottingUtil.isCross=function(t,e,o,l){var n=new SuperMapAlgoPlot.Point(0,0);return!(!SuperMapAlgoPlot.PlottingUtil.intersectLineSegs(t,e,o,l,n)||n==t||n===e||n===o||n==l)},SuperMapAlgoPlot.PlottingUtil.intersectLineSegs=function(t,e,o,l,n){if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.y,e.y))return n.x=t.x,n.y=t.y,!1;if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(o.x,l.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(o.y,l.y))return n.x=o.x,n.y=o.y,!1;var i=0,r=0;if(i=t.x>e.x?t.x:e.x,r=t.x1e-16&&l.x-i>1e-16||o.x-r<-1e-16&&l.x-r<-1e-16)return!1;if(i=t.y>e.y?t.y:e.y,r=t.y1e-16&&l.y-i>1e-16||o.y-r<-1e-16&&l.y-r<-1e-16)return!1;var a=e.x-t.x,s=e.y-t.y,p=l.x-o.x,u=l.y-o.y,c=t.x-o.x,P=t.y-o.y,g=a*u-p*s,y=g;if(Math.abs(a)>1e-18&&Math.abs(p)>1e-18&&(y/=a*p),Math.abs(y)<1e-18)return t===o?(n.x=t.x,n.y=t.y,!SuperMapAlgoPlot.PlottingUtil.isSameQuadrant(t,e,o,l)):e===l?(n.x=e.x,n.y=e.y,!SuperMapAlgoPlot.PlottingUtil.isSameQuadrant(t,e,o,l)):t===l?(n.x=t.x,n.y=t.y,SuperMapAlgoPlot.PlottingUtil.isSameQuadrant(t,e,o,l)):e===o&&(n.x=e.x,n.y=e.y,SuperMapAlgoPlot.PlottingUtil.isSameQuadrant(t,e,o,l));var h=(a*P-s*c)/g,f=(p*P-u*c)/g;return!(h<0&&(Math.abs(h*p)>1e-16||Math.abs(h*u)>1e-16))&&(!(h>1&&(Math.abs((h-1)*p)>1e-16||Math.abs((h-1)*u)>1e-16))&&(!(f<0&&(Math.abs(f*a)>1e-16||Math.abs(f*s)>1e-16))&&(!(f>1&&(Math.abs((f-1)*a)>1e-16||Math.abs((f-1)*s)>1e-16))&&(Math.abs(h)<1e-18?(n.x=o.x,n.y=o.y,!0):Math.abs(h-1)<1e-18?(n.x=l.x,n.y=l.y,!0):Math.abs(f)<1e-18?(n.x=t.x,n.y=t.y,!0):Math.abs(f-1)<1e-18?(n.x=e.x,n.y=e.y,!0):!(h<0&&(Math.abs(h*p)>1e-16||Math.abs(h*u)>1e-16))&&(!(h>1&&(Math.abs((h-1)*p)>1e-16||Math.abs((h-1)*u)>1e-16))&&(!(f<0&&(Math.abs(f*a)>1e-16||Math.abs(f*s)>1e-16))&&(!(f>1&&(Math.abs((f-1)*a)>1e-16||Math.abs((f-1)*s)>1e-16))&&(n.x=h*p+o.x,n.y=h*u+o.y,!0))))))))},SuperMapAlgoPlot.PlottingUtil.parallel=function(t,e){var o=[],l=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]=SuperMapAlgoPlot.PlottingUtil.findBisectorPoint(t[t.length-2],t[0],t[1],e),o[t.length-1]=o[0]):(o[0]=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],e,90),o[t.length-1]=SuperMapAlgoPlot.PlottingUtil.findPoint(t[t.length-1],t[t.length-2],-e,90));for(var i=t[0],r=t[1],a=t[1],s=1;s1&&(r=1);var a=(o.x-e.x)*r+e.x,s=(o.y-e.y)*r+e.y,p=(a-t.x)*(a-t.x)+(s-t.y)*(s-t.y);return Math.sqrt(p)},SuperMapAlgoPlot.PlottingUtil.isCounterClockwise=function(t,e,o){return(o.x-e.x)*(t.y-e.y)-(t.x-e.x)*(o.y-e.y)>0},SuperMapAlgoPlot.PlottingUtil.clearSamePts=function(t){for(var e=t.length,o=0;o1e-10},SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt=function(t,e){var o=t.slice();!0===e&&o.push(o[0]);for(var l=[],n=[],i=0;i-360&&o[i+1].x-o[0].x<-180&&l.push(i+1),o[i+1].x-o[0].x<360&&o[i+1].x-o[0].x>180&&n.push(i+1);if(n.length>l.length)for(var r=0;r180?p[u].x=p[u].x-360:p[u].x<-180&&(p[u].x=p[u].x+360);return p},SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsWithCtrlPt=function(t){var e=t.length,o=[];if(t.length<3)for(var l=0;l=e)){var i=t[n].x,r=t[n].y,a=t[n+2].x,s=t[n+2].y,p=t[n+4].x,u=t[n+4].y,c=t[n+3].x,P=t[n+3].y;if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,a,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,s,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(p,c,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(u,P,1e-10))o.push(new SuperMapAlgoPlot.Point(i,r)),o.push(new SuperMapAlgoPlot.Point(p,u));else for(var g=0;g<=1;g+=.03125){var y,h,f,S,A=g*g,M=A*g;y=1-3*g+3*A-M,h=3*(g-2*A+M),f=3*(A-M),S=M;var d=new SuperMapAlgoPlot.Point(y*i+h*a+f*p+S*c,y*r+h*s+f*u+S*P);o.push(d)}}return o},SuperMapAlgoPlot.PlottingUtil.computeBeizerPoints0=function(t,e,o){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),n=[],i=[],r=[];if(t){i.push(e[0]);var a=o[0],s=o[1],p=e[0].x+l*a,u=e[0].y+l*s;i.push(new SuperMapAlgoPlot.Point(p,u)),n.push(new SuperMapAlgoPlot.Point(p,u));for(var c=1;c0?(u=e+(l-e)*h/y,c=o+(n-o)*h/y):(u=e,c=o),a.x=u+(s-u)*t,a.y=c+(p-c)*t,a},SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLine=function(t,e,o){if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.x,e.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.y,e.y)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.x,o.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.y,o.y))return!0;var l=t.x-e.x,n=t.y-e.y,i=t.x-o.x,r=t.y-o.y,a=(l*i+n*r)/(Math.sqrt(l*l+n*n)*Math.sqrt(i*i+r*r));return!!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,-1,.1)},SuperMapAlgoPlot.PlottingUtil.pointIsOnPolyLines=function(t,e){if(!e||0===e.length)return{isOnPolyLine:!1,index:-1};for(var o=!1,l=-1,n=0;ns&&(o=s,l=n)}}return l&&o<0&&(l=-1),{minDis:o,index:l}},SuperMapAlgoPlot.PlottingUtil.findPointInLine=function(t,e,o){if(t===e||Math.abs(o)<1e-18)return t;var l=e.x-t.x,n=e.y-t.y,i=o/Math.sqrt(l*l+n*n),r=t.x+l*i,a=t.y+n*i;return new SuperMapAlgoPlot.Point(r,a)},SuperMapAlgoPlot.PlottingUtil.operateControlPoints=function(t){var e=t,o=e.length;if(3==o){var l=new SuperMapAlgoPlot.Point(0,0);SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(1,t[0],t[1],t[2],l),e.push(l)}if(o>4&&(e.splice(4,o-4),o=e.length),SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(t[0],t[1],e[2])){var n=e[0];e[0]=e[1],e[1]=n}if(!SuperMapAlgoPlot.PlottingUtil.pointIsRightToVerticle(e[0],e[1],e[2])){var i=e[2];e[2]=e[3],e[3]=i}return e},SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine=function(t,e,o){return(e.x-t.x)*(o.y-t.y)-(o.x-t.x)*(e.y-t.y)<0},SuperMapAlgoPlot.PlottingUtil.pointIsRightToVerticle=function(t,e,o){var l=new SuperMapAlgoPlot.Point(.5*(e.x+t.x),.5*(e.y+t.y)),n=new SuperMapAlgoPlot.Point(e.x-t.x,e.y-t.y),i=new SuperMapAlgoPlot.Point(o.x-l.x,o.y-l.y);return n.x*i.x+n.y*i.y>0},SuperMapAlgoPlot.PlottingUtil.linePnt=function(t,e,o){var l=SuperMapAlgoPlot.PlottingUtil.distance(t,e);if(0==l)return t;var n=o/l;return SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio(n,t,e)},SuperMapAlgoPlot.PlottingUtil.findPointOnLineByRatio=function(t,e,o){var l=new SuperMapAlgoPlot.Point(0,0);return l.x=e.x+(o.x-e.x)*t,l.y=e.y+(o.y-e.y)*t,l},SuperMapAlgoPlot.PlottingUtil.rotateAngle=function(t,e,o){var l=e,n=Math.cos(l),i=Math.sin(l),r=o.x-t.x,a=o.y-t.y;return o.x=r*n-a*i+t.x,o.y=r*i+a*n+t.y,o},SuperMapAlgoPlot.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},SuperMapAlgoPlot.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,l=0;le||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(o,e)){var n=o-e,i=t[l+1],r=t[l],a=n/SuperMapAlgoPlot.PlottingUtil.distance(i,r),s=new SuperMapAlgoPlot.Point(0,0);return s.x=i.x+(r.x-i.x)*a,s.y=i.y+(r.y-i.y)*a,{index:l,pt:s}}return{index:-1,pt:null}},SuperMapAlgoPlot.PlottingUtil.polylineDistance=function(t){if(0===t.length)return 0;for(var e=0,o=0;o=t.x&&e.y>=t.y?1:e.xt.y?2:e.x<=t.x&&e.y<=t.y?3:4)==(n=o.x>t.x&&o.y>t.y?1:o.xt.y?2:o.xi&&a>i)&&(s=0);else switch(l){case 1:(4==n&&ri)&&(s=0);break;case 2:(1==n&&ri)&&(s=0);break;case 3:(2==n&&ri)&&(s=0);break;case 4:(3==n&&ri)&&(s=0)}var p=new SuperMapAlgoPlot.Point(0,0);return SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i-1.7976931348623157e308,0)?(p.x=t.x,p.y=e.y):SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,0)?(p.x=e.x,p.y=t.y):(p.x=(i*(e.y-t.y)+i*i*t.x+e.x)/(i*i+1),p.y=t.y+i*(p.x-t.x)),{isOnline:1===s,projectPoint:p}},SuperMapAlgoPlot.PlottingUtil.coordinateTrans=function(t,e,o){var l=SuperMapAlgoPlot.PlottingUtil.distance(new SuperMapAlgoPlot.Point(0,0),e),n=SuperMapAlgoPlot.PlottingUtil.radian(new SuperMapAlgoPlot.Point(0,0),e)+o*Math.PI/180,i=l*Math.cos(n)+t.x,r=l*Math.sin(n)+t.y;return new SuperMapAlgoPlot.Point(i,r)},SuperMapAlgoPlot.PlottingUtil.triangleHeightAndPartBottomLen=function(t,e,o){var l,n,i=(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)l=0,n=0;else if(0==i)l=r,n=0;else{var s=(r*r+a*a-i)/2/r/a,p=0;s>=1?(s=1,p=0):p=Math.sqrt(1-s*s),l=a*s,n=a*p}return{dLen1:l,dLen2:n}},SuperMapAlgoPlot.PlottingUtil.paraLine=function(t,e,o){var l=[];if(2>t.length)return l;if(o){var n=t[1].clone();n=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[0],Math.PI/2,n),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],n,e));for(var i=1;iMath.PI/2?s-Math.PI/2:Math.PI/2-s;var u=e/Math.cos(p);n=t[i+1].clone(),n=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[i],s,n),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[i],n,u))}n=t[t.length-2].clone(),n=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],-1*Math.PI/2,n),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-1],n,e))}else{var c=t[1].clone();c=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[0],-Math.PI/2,c),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[0],c,e));for(var P=1;PMath.PI/2?h-Math.PI/2:Math.PI/2-h;var S=e/Math.cos(f);c=t[P-1].clone(),c=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[P],h,c),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[P],c,S))}c=t[t.length-2].clone(),c=SuperMapAlgoPlot.PlottingUtil.rotateAngle(t[t.length-1],Math.PI/2,c),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(t[t.length-1],c,e))}return l},SuperMapAlgoPlot.PlottingUtil.circlePoint=function(t,e,o,l){l*=Math.PI/180;var n=t.x+e*Math.cos(l),i=t.y+o*Math.sin(l);return new SuperMapAlgoPlot.Point(n,i)},SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt=function(t){if(!t||0===t.length)return null;for(var e=0,o=0,l=0;lr.y?i.y:r.y;if(!(e.ys))(e.y-i.y)*(r.x-i.x)/(r.y-i.y)+i.x>e.x&&o++}}return o%2==1},SuperMapAlgoPlot.PlottingUtil.projectPtOnPolyLine=function(t,e){if(2>e.length)return{index:-1,pt:null};for(var o=0;oe.length)return!1;for(var o=0;o0?0:1}},SuperMapAlgoPlot.PlottingUtil.isSamePt=function(t,e){return!(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.x,e.x)||!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(t.y,e.y))},SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance=function(t,e){var o=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(e,t);return{index:o.index,pts:o.pt,bfind:-1!==o.index}},SuperMapAlgoPlot.PlottingUtil.ptInBounds=function(t,e){return t.x>e.left&&t.xe.bottom},SuperMapAlgoPlot.PlottingUtil.InnerAngle=function(t,e,o){if(t==e||t==o)return 0;var l=SuperMapAlgoPlot.PlottingUtil.distance(t,e),n=SuperMapAlgoPlot.PlottingUtil.distance(t,o),i=SuperMapAlgoPlot.PlottingUtil.distance(e,o),r=(l*l+n*n-i*i)/(2*l*n);return r>1&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,1)?r=1:r<1&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,-1)&&(r=-1),Math.acos(r)},SuperMapAlgoPlot.PlottingUtil.plumbLineLen=function(t,e,o){return SuperMapAlgoPlot.PlottingUtil.distance(t,e)*Math.sin(SuperMapAlgoPlot.PlottingUtil.InnerAngle(e,t,o))},SuperMapAlgoPlot.PlottingUtil.paraPolygon=function(t,e,o){var l=[],n=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),i=n.length;if(i<2)return l;var r=new SuperMapAlgoPlot.Point(0,0);if(o){if(i<3)r=n[1].clone(),SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[0],Math.PI,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[0],r,e));else{for(var a=SuperMapAlgoPlot.PlottingUtil.radian(n[0],n[1]),s=SuperMapAlgoPlot.PlottingUtil.radian(n[0],n[n.length-1])-a;s<0;)s+=2*Math.PI;var p,u=s/2;p=u>Math.PI/2?u-Math.PI/2:Math.PI/2-u;var c=e/Math.cos(p);r=n[1].clone(),r=SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[0],u,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[0],r,c))}for(var P=1;PMath.PI/2?h-Math.PI/2:Math.PI/2-h;var S=e/Math.cos(f);r=n[P+1].clone(),r=SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[P],h,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[P],r,S))}if(i<3)r=n[i-2].clone(),SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[i-1],0,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[i-1],r,e));else{for(var A=SuperMapAlgoPlot.PlottingUtil.radian(n[i-1],n[0]),M=SuperMapAlgoPlot.PlottingUtil.radian(n[i-1],n[i-2])-A;M<0;)M+=2*Math.PI;var d,b=M/2;d=b>Math.PI/2?b-Math.PI/2:Math.PI/2-b;var v=e/Math.cos(d);r=n[0].clone(),r=SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[i-1],b,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[i-1],r,v))}}else{if(i<3){var m=n[1].clone();SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[0],0,m),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[0],m,e))}else{for(var L=SuperMapAlgoPlot.PlottingUtil.radian(n[0],n[1]),O=SuperMapAlgoPlot.PlottingUtil.radian(n[0],n[i-1])-L;O<0;)O+=2*Math.PI;var T,w=Math.PI-O/2;T=w>Math.PI/2?w-Math.PI/2:Math.PI/2-w;var x=e/Math.cos(T);r=n[i-1].clone(),r=SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[0],w,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[0],r,x))}for(var R=1;RMath.PI/2?C-Math.PI/2:Math.PI/2-C;var B=e/Math.cos(I);r=n[R-1].clone(),r=SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[R],C,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[R],r,B))}if(i<3)r=n[i-2].clone(),SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[i-1],Math.PI,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[i-1],r,e));else{for(var D=SuperMapAlgoPlot.PlottingUtil.radian(n[i-1],n[0]),_=SuperMapAlgoPlot.PlottingUtil.radian(n[i-1],n[i-2])-D;_<0;)_+=2*Math.PI;var N,V=Math.PI-_/2;N=V>Math.PI/2?V-Math.PI/2:Math.PI/2-V;var k=e/Math.cos(N);r=n[i-2].clone(),r=SuperMapAlgoPlot.PlottingUtil.rotateAngle(n[i-1],V,r),l.push(SuperMapAlgoPlot.PlottingUtil.linePnt(n[i-1],r,k))}}return l},SuperMapAlgoPlot.PlottingUtil.getOutRectangleDis=function(t){if(2>t.length)return 0;for(var e=t[0].x,o=t[0].x,l=t[0].y,n=t[0].y,i=1;it[i].x&&(o=t[i].x),lt[i].y&&(n=t[i].y);return SuperMapAlgoPlot.PlottingUtil.distance(new SuperMapAlgoPlot.Point(e,l),new SuperMapAlgoPlot.Point(o,n))},SuperMapAlgoPlot.PlottingUtil.clonePoints=function(t){var e=[];if(void 0===t||null===t)return e;if(SuperMapAlgoPlot.PlottingUtil.isArray(t)||(t=[t]),t&&null!=t)for(var o=0;o1e-12&&--h>0;){var f=Math.sin(g),S=Math.cos(g),A=Math.sqrt(P*f*(P*f)+(u*c-p*P*S)*(u*c-p*P*S));if(0==A)return 0;var M=p*c+u*P*S,d=Math.atan2(A,M),b=Math.asin(u*P*f/A),v=Math.cos(b)*Math.cos(b),m=M-2*p*c/v,O=s/16*v*(4+s*(4-3*v));y=g,g=o+(1-O)*s*Math.sin(b)*(d+O*A*(m+O*M*(2*m*m-1)))}if(0==h)return NaN;var T=v*(r*r-a*a)/(a*a),w=T/1024*(256+T*(T*(74-47*T)-128));return(a*(1+T/16384*(4096+T*(T*(320-175*T)-768)))*(d-w*A*(m+w/4*(M*(2*m*m-1)-w/6*m*(4*A*A-3)*(4*m*m-3))))).toFixed(3)/1e3},SuperMapAlgoPlot.PlottingUtil.destinationVincenty=function(t,e,o){var l,n,i=SuperMapAlgoPlot.PlottingUtil,r=i.VincentyConstants,a=r.a,s=r.b,p=r.f;"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng?(l=t.lng,n=t.lat):(l=t.lon,n=t.lat);for(var u=o,c=i.rad(e),P=Math.sin(c),g=Math.cos(c),y=(1-p)*Math.tan(i.rad(n)),h=1/Math.sqrt(1+y*y),f=y*h,S=Math.atan2(y,g),A=h*P,M=1-A*A,d=M*(a*a-s*s)/(s*s),b=1+d/16384*(4096+d*(d*(320-175*d)-768)),v=d/1024*(256+d*(d*(74-47*d)-128)),m=u/(s*b),O=2*Math.PI;Math.abs(m-O)>1e-12;){var T=Math.cos(2*S+m),w=Math.sin(m),x=Math.cos(m);O=m,m=u/(s*b)+v*w*(T+v/4*(x*(2*T*T-1)-v/6*T*(4*w*w-3)*(4*T*T-3)))}var R=f*w-h*x*g,U=Math.atan2(f*x+h*w*g,(1-p)*Math.sqrt(A*A+R*R)),E=p/16*M*(4+p*(4-3*M)),C=Math.atan2(w*P,h*x-f*w*g)-(1-E)*p*A*(m+E*w*(T+E*x*(2*T*T-1)));return"undefined"!=typeof L&&void 0!==L.LatLng&&t instanceof L.LatLng?L.latLng(i.deg(U),l+i.deg(C)):new SuperMap.LonLat(l+i.deg(C),i.deg(U))},SuperMapAlgoPlot.PlottingUtil.midPoint=function(t,e){var o=new SuperMapAlgoPlot.Point(0,0);return o.x=.5*(t.x+e.x),o.y=.5*(t.y+e.y),o},SuperMapAlgoPlot.PlottingUtil.makeDottedLine=function(t,e){for(var o,l,n=[],i=e,r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),a=e,s=t[0].clone(),p=1,u=0,c=!0,P=!0;u=3){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);SuperMapAlgoPlot.PlottingUtil.isRight(t[0],t[1],t[2])&&(e=-e);for(var o=[],l=1;l=3){var e=t[0].x+(t[2].x-t[1].x),o=t[0].y+(t[2].y-t[1].y),l=new SuperMapAlgoPlot.Point(e,o),n=[];return n.push.apply(n,t),n.push(l),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],l=[],n=Math.sqrt((o.x-e.x)*(o.x-e.x)+(o.y-e.y)*(o.y-e.y)),i=360/this.nSegmentCount,r=0;r=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,l=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(l.push(e.pntCenter),0!==l.length)return l}},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,l=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(0!==l.length)return l}},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,l=this.getArcSpatialData(e.pntCenter,e.dRadius,e.dRadius,0,e.dStartAngle,e.dEndAngle,o);if(0!==l.length)return l}},ellipse:function(t,e,o,l,n){if(!0===o){if((!l||null==l)&&t&&t.length>=3&&(l=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1])),(!n||null==n)&&t&&t.length>=3){var i=SuperMapAlgoPlot.PlottingUtil.projectPoint(t[2],t[0],t[1]);n=SuperMapAlgoPlot.PlottingUtil.distance(i,t[2])}}else n=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[2]),l=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(e&&null!=e?e*=Math.PI/180:e=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1]),t&&t.length>0){var r=2*Math.PI,a=r/this.nSegmentCount,s=this.getArcSpatialData(t[0],l,n,e,0,r,a);if(!0===o){var p=Math.sin(e),u=Math.cos(e);t[2].x>t[1].x?(t[2].x=t[0].x-n*p,t[2].y=t[0].y+n*u):(t[2].x=t[0].x+n*p,t[2].y=t[0].y-n*u)}return s}},getArcSpatialData:function(t,e,o,l,n,i,r){var a=[];if(Math.abs(r)<1e-9)return a;for(;in+2*Math.PI;)n+=2*Math.PI;var s=Math.cos(l)*e,p=Math.sin(l)*e,u=Math.cos(l)*o,c=Math.sin(l)*o,P=this.calcEllipseRadian(n,e,o),g=this.calcEllipseRadian(i,e,o);g-P<1e-5&&(g+=2*Math.PI);var y=Math.round(Math.abs((g-P)/r)+1);if(y<2)return a;for(var h=0;ha.length&&(a[a.length-1].x=t.x+s*Math.cos(g)-c*Math.sin(g),a[a.length-1].y=t.y+p*Math.cos(g)+u*Math.sin(g)),a},getArcCircleSpatialData:function(t,e,o,l){for(var n=[];lo+2*Math.PI;)o+=2*Math.PI;l-o<1e-10&&(l+=2*Math.PI);for(var i=(l-o)/50,r=o;r=1e-9&&(s=(o.y-e.y)/(o.x-e.x)),l.pntCenter.y=r.y,Math.abs(s)<1e-9?l.pntCenter.x=a.x:l.pntCenter.x=a.x-s*(r.y-a.y)}else{var p={},u={};p.x=(e.x+t.x)/2,p.y=(e.y+t.y)/2,u.x=(e.x+o.x)/2,u.y=(e.y+o.y)/2;var c=i/n,P=1;Math.abs(c)<1e-9?(l.pntCenter.x=p.x,Math.abs(o.x-e.x<1e-9)?l.pntCenter.y=u.y:l.pntCenter.y=-(o.x-e.x)/(o.y-e.y)*(l.pntCenter.x-u.x)+u.y):Math.abs(o.x-e.x)<1e-9?(l.pntCenter.y=u.y,l.pntCenter.x=-c*(l.pntCenter.y-p.y)+p.x):(P=(o.y-e.y)/(o.x-e.x),l.pntCenter.x=(c*P*(p.y-u.y)+P*p.x-c*u.x)/(P-c),l.pntCenter.y=(u.x-p.x+P*u.y-c*p.y)/(P-c))}var g=Math.atan2(t.y-l.pntCenter.y,t.x-l.pntCenter.x),y=Math.atan2(o.y-l.pntCenter.y,o.x-l.pntCenter.x);if(SuperMapAlgoPlot.PlottingUtil.isCounterClockwise(t,e,o)){for(;g>=2*Math.PI;)g-=2*Math.PI;for(;g<0;)g+=2*Math.PI;for(;y>2*Math.PI;)y-=2*Math.PI;for(;y=2*Math.PI;)y-=2*Math.PI;for(;y<0;)y+=2*Math.PI;for(;g>2*Math.PI;)g-=2*Math.PI;for(;y>g;)g+=2*Math.PI;var h=g;g=y,y=h}return l.dRadius=Math.sqrt((l.pntCenter.x-t.x)*(l.pntCenter.x-t.x)+(l.pntCenter.y-t.y)*(l.pntCenter.y-t.y)),l.dEndAngle=180*y/Math.PI,l.dStartAngle=180*g/Math.PI,l},calcEllipseRadian:function(t,e,o){var l=t,n=e*Math.sin(t),i=o*Math.cos(t),r=Math.atan2(n,i);if(t>Math.PI)for(;l>Math.PI;)l-=2*Math.PI,r+=2*Math.PI;else if(t<-Math.PI)for(;l<-Math.PI;)l+=2*Math.PI,r-=2*Math.PI;return r},getKendyShapePts:function(t){var e=[];if(2>(t=SuperMapAlgoPlot.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 l=0;l=l&&n>=i){var p=r.clone();r=s.clone(),s=p.clone()}else if(i>=l&&i>=n){var u=s.clone();s=a.clone(),a=u.clone()}if(!SuperMapAlgoPlot.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,l,n){var i=new SuperMapAlgoPlot.Point(0,0),r=0,a=0;return r=SuperMapAlgoPlot.PlottingUtil.distance(n,o),a=SuperMapAlgoPlot.PlottingUtil.distance(l,n),1==e&&(r*=2),2==e&&(a*=2),i.x=(r*l.x+a*o.x)/(r+a),i.y=(r*l.y+a*o.y)/(r+a),{pl:this.GetWhichPtOfNormal(t,o,i,n),pr:this.GetWhichPtOfNormal(t,l,i,n)}},GetWhichPtOfNormal:function(t,e,o,l){var n=0;n=SuperMapAlgoPlot.PlottingUtil.distance(l,e)/t;var i=this.GetPointsOfNormal(n,o,l);return SuperMapAlgoPlot.PlottingUtil.distance(e,i.pt4)>=(n=SuperMapAlgoPlot.PlottingUtil.distance(e,i.pt3))?i.pt3:i.pt4},getBezierPtsWithScalePts:function(t,e,o,l){var n=[],i=t.x,r=t.y,a=e.x,s=e.y,p=o.x,u=o.y,c=l.x,P=l.y;if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,a,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,s,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(p,c,1e-10)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(u,P,1e-10))n.push(new SuperMapAlgoPlot.Point(i,r)),n.push(new SuperMapAlgoPlot.Point(p,u));else for(var g=0;g<=1;g+=.03125){var y,h,f,S,A=g*g,M=A*g;y=1-3*g+3*A-M,h=3*(g-2*A+M),f=3*(A-M),S=M;var d=new SuperMapAlgoPlot.Point(y*i+h*a+f*p+S*c,y*r+h*s+f*u+S*P);n.push(d)}return n},getSpatialData:function(t,e,o,l){switch(null==l&&(l=!0),t){case 24:return this.polyline(e);case 390:return this.kidney(e,l);case 590:return this.bezier(e,l);case 360:return this.loopbezier(e,l);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,l);case 48:return this.parallelline(e);default:return e}}};SuperMapAlgoPlot.RouteNodePrimitives=SuperMapAlgoPlot.RouteNodePrimitives||{};SuperMapAlgoPlot.RouteNodePrimitives={initialize:function(){},rendezvousPoint:function(){var t=[],e=new Object;e.type=SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),e.positionPoints.push(new SuperMapAlgoPlot.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMapAlgoPlot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),e.positionPoints.push(new SuperMapAlgoPlot.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMapAlgoPlot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMapAlgoPlot.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=SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,e.positionPoints=[],e.positionPoints.push(new SuperMapAlgoPlot.Point(0,0)),e.positionPoints.push(new SuperMapAlgoPlot.Point(0,30)),e.style={surroundLineFlag:!1,fillLimit:!0,fill:!1};var o=new Object;return o.type=SuperMapAlgoPlot.SymbolType.TEXTSYMBOL,o.positionPoints=[],o.positionPoints.push(new SuperMapAlgoPlot.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=[],l=new SuperMapAlgoPlot.Point(0,0),n=new SuperMapAlgoPlot.Point(0,30);t||(t=90);var i=new Object;i.type=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i.positionPoints=[];for(var r=t+10;r<170+t;r+=10){var a=SuperMapAlgoPlot.PlottingUtil.findPoint(l,n,30,r);i.positionPoints.push(a)}i.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(i);var s=i.positionPoints[i.positionPoints.length-1],p=i.positionPoints[i.positionPoints.length-2],u=SuperMapAlgoPlot.PlottingUtil.findPoint(s,p,9,22.5),c=SuperMapAlgoPlot.PlottingUtil.findPoint(s,p,9,-22.5),P=new Object;P.type=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P.positionPoints=[],P.positionPoints.push(u),P.positionPoints.push(s.clone()),P.positionPoints.push(c),P.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(P);var g=new Object;g.type=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g.positionPoints=[];for(var y=190+t;y<350+t;y+=10){var h=SuperMapAlgoPlot.PlottingUtil.findPoint(l,n,30,y);g.positionPoints.push(h)}g.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(g);var f=g.positionPoints[g.positionPoints.length-1],S=g.positionPoints[g.positionPoints.length-2],A=SuperMapAlgoPlot.PlottingUtil.findPoint(f,S,9,22.5),M=SuperMapAlgoPlot.PlottingUtil.findPoint(f,S,9,-22.5),d=new Object;d.type=SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d.positionPoints=[],d.positionPoints.push(A),d.positionPoints.push(f.clone()),d.positionPoints.push(M),d.style={surroundLineFlag:!1,fillLimit:!0,fill:!1},o.push(d);for(var b=0;b1&&t.push(n),n=[],e=a.GetX(),o=a.GetY(),n.push(new SuperMapAlgoPlot.Point(e,o));break;case 1:e=a.GetX(),o=a.GetY(),n.push(new SuperMapAlgoPlot.Point(e,o));break;case 2:if(3!=l.elements[r+1].GetType()||3!=l.elements[r+1].GetType())break;for(var s=l.elements[r-1].GetX(),p=l.elements[r-1].GetY(),u=a.GetX(),c=a.GetY(),P=l.elements[r+1].GetX(),g=l.elements[r+1].GetY(),y=l.elements[r+2].GetX(),h=l.elements[r+2].GetY(),f=0;f<=1;f+=.03125){var S=f*f,A=S*f,M=1-3*f+3*S-A,d=3*(f-2*S+A),b=3*(S-A),v=A;n.push(new SuperMapAlgoPlot.Point(M*s+d*u+b*P+v*y,M*p+d*c+b*g+v*h))}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 SuperMapAlgoPlot.Path2DData,e=new SuperMapAlgoPlot.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 SuperMapAlgoPlot.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}}])&&P(e.prototype,o),l&&P(e,l),Object.defineProperty(e,"prototype",{writable:!1}),t}();function y(t,e){for(var o=0;o2){var s=t.length;t.splice(2,s-2)}var p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);l.arrowTouLen=p*n;for(var u=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,p-l.arrowTouLen).pt,c=[],P=l.arrowTouLen*r,g=l.arrowTouLen*i,y=t.length-1,h=0;h-360&&r[p+1].x-r[0].x<-180&&a.push(p+1),r[p+1].x-r[0].x<360&&r[p+1].x-r[0].x>180&&s.push(p+1);if(s.length>a.length){for(var u=0;u180?i[r].x=i[r].x-360:i[r].x<-180&&(i[r].x=i[r].x+360);return i},SuperMapAlgoPlot.ArrowToolkit.eastCrossZone=function(t){var e=!1;if(void 0!==t[0].z&&(e=!0),!e)return t;for(var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),l=0;l-180&&(o[l].x=o[l].x+360);return o},SuperMapAlgoPlot.ArrowToolkit.westCrossZone=function(t){var e=!1;if(void 0!==t[0].z&&(e=!0),!e)return t;for(var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),l=0;l0&&o[l].x<180&&(o[l].x=o[l].x-360);return o},SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts=function(t,e,o,l,n){var i=[];switch(t=SuperMapAlgoPlot.ArrowToolkit.beforePtsCrossZone(t).pts,e=SuperMapAlgoPlot.ArrowToolkit.beforePtsCrossZone(e).pts,n){case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITH_EAR:case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR:var r=o[0],a=o[1],s=0,p=0;3==o.length&&(s=o[2]),4==o.length&&(s=o[2],p=o[3]);var u=0;if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(s,0)&&!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(p,0)){var c=SuperMapAlgoPlot.PlottingUtil.clonePoints(t);c.splice(c.length-1,1),u=SuperMapAlgoPlot.PlottingUtil.polylineDistance(c)*s*p}var P=new SuperMapAlgoPlot.Point((e[0].x+e[1].x)/2,(e[0].y+e[1].y)/2);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(a,0)){var g=l*r,y=t[t.length-1];return y=SuperMapAlgoPlot.PlottingUtil.rotate(P,0,1,y),i.push(SuperMapAlgoPlot.PlottingUtil.findPointInLine(P,y,g)),i.push(t[t.length-1]),y=t[t.length-1],y=SuperMapAlgoPlot.PlottingUtil.rotate(P,0,-1,y),i.push(SuperMapAlgoPlot.PlottingUtil.findPointInLine(P,y,g)),t=SuperMapAlgoPlot.ArrowToolkit.afterPtsCrossZone(t),i=SuperMapAlgoPlot.ArrowToolkit.afterPtsCrossZone(i)}var h=l*a,f=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(h,P,t[t.length-1]);h=l*r,h+=u;var S=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(h,t[t.length-1],f),A=S.pntLeft,M=S.pntRight,d=t[t.length-1];return i.push(M),i.push(d),i.push(A),t=SuperMapAlgoPlot.ArrowToolkit.afterPtsCrossZone(t),i=SuperMapAlgoPlot.ArrowToolkit.afterPtsCrossZone(i)}},SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine=function(t,e,o,l){var n=[];if(2>t.length)return n;t=SuperMapAlgoPlot.ArrowToolkit.beforePtsCrossZone(t).pts;var i,r=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),a=SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e,0);switch(o){case SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYLINE:n=n.concat(t),l&&!a&&SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(i=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,r-e),n.splice(n.length-1,1),n.push(i.pt));break;case SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_POLYBEZIER:if(2==t.length)n=n.concat(t),l&&!a&&SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>e&&(i=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,r-e),n.splice(n.length-1,1),n.push(i.pt));else{var s=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t),p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(s);if(a)n=n.concat(s);else{var u=s[s.length-1];if(!a&&(e1;c--){if(!(e>SuperMapAlgoPlot.PlottingUtil.distance(u,s[c]))){var P=SuperMapAlgoPlot.PlottingUtil.findPoint(u,s[c],e,0);s.push(P),n=s;break}s.splice(c,1)}l||n.push(u)}else n=n.concat(s)}}break;case SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL:var g=e;if(g>r)return n;for(var y,h,f=Math.ceil(r/(1.4*g)),S=0,A=[],M=0;Mt.length)return l;switch(t=SuperMapAlgoPlot.ArrowToolkit.beforePtsCrossZone(t).pts,o){case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE:var n=t[0],i=t[1],r=SuperMapAlgoPlot.PlottingUtil.distance(n,i);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(r,e,1e-7)||r>e){var a=SuperMapAlgoPlot.PlottingUtil.findPoint(n,i,e,0),s=e*Math.tan(.125*Math.PI),p=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(s,t[0],a);l.push(p.pntLeft),l.push(t[0]),l.push(p.pntRight)}break;case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE:break;case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID:var u=t[0],c=t[1],P=SuperMapAlgoPlot.PlottingUtil.distance(u,c);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(P,e,1e-7)||P>e){var g=e*Math.tan(.125*Math.PI),y=SuperMapAlgoPlot.PlottingUtil.findPoint(u,c,e,0),h=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(g,t[0],y);l.push(h.pntLeft),l.push(u),l.push(h.pntRight),l.push(h.pntLeft)}else{c=t[2];var f=e*Math.tan(.125*Math.PI),S=SuperMapAlgoPlot.PlottingUtil.findPoint(u,c,e,0),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(f,t[0],S);l.push(A.pntLeft),l.push(u),l.push(A.pntRight),l.push(A.pntLeft)}break;case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL:var M=t[0],d=2*Math.sqrt(e*e/3),b=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(d/2,b,1e-7)||b>d/2){var v=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],d,-20),m=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],d,20),L=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],d/2,0);l.push(M),l.push(m),l.push(L),l.push(v),l.push(M)}else{M=t[2];var O=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],d,20),T=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],d,-20),w=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],d/2,0);l.push(M),l.push(O),l.push(w),l.push(T),l.push(M)}break;case SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW:var x=[],R=t[0],U=2*Math.sqrt(e*e/3),E=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(U/1.4,E,1e-7)||E>U/1.4){var C=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],U,20),I=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],U,-20),B=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],U/1.4,0);x.push(R),x.push(C),x.push(B),x.push(I),x.push(R);var D=new SuperMapAlgoPlot.Point((x[0].x+x[1].x)/2,(x[0].y+x[1].y)/2),_=new SuperMapAlgoPlot.Point((x[3].x+x[4].x)/2,(x[3].y+x[4].y)/2),N=new SuperMapAlgoPlot.Point((D.x+_.x)/2,(D.y+_.y)/2),V=.75*SuperMapAlgoPlot.PlottingUtil.distance(D,_)/2,k=SuperMapAlgoPlot.PlottingUtil.findPointInLine(N,D,V),j=SuperMapAlgoPlot.PlottingUtil.findPointInLine(N,_,V);l.push(x[0]),l.push(k),l.push(x[1]),l.push(x[2]),l.push(x[3]),l.push(j),l.push(x[4])}else{R=t[0];var Y=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],U,20),z=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],U,-20),F=SuperMapAlgoPlot.PlottingUtil.findPoint(t[0],t[1],U/1.4,0);x.push(R),x.push(Y),x.push(F),x.push(z),x.push(R);D=new SuperMapAlgoPlot.Point((x[0].x+x[1].x)/2,(x[0].y+x[1].y)/2),_=new SuperMapAlgoPlot.Point((x[3].x+x[4].x)/2,(x[3].y+x[4].y)/2),N=new SuperMapAlgoPlot.Point((D.x+_.x)/2,(D.y+_.y)/2),V=.75*SuperMapAlgoPlot.PlottingUtil.distance(D,_)/2,k=SuperMapAlgoPlot.PlottingUtil.findPointInLine(N,D,V),j=SuperMapAlgoPlot.PlottingUtil.findPointInLine(N,_,V);l.push(x[0]),l.push(k),l.push(x[1]),l.push(x[2]),l.push(x[3]),l.push(j),l.push(x[4])}}return l=SuperMapAlgoPlot.ArrowToolkit.afterPtsCrossZone(l)},SuperMapAlgoPlot.ArrowToolkit.generateArrowTailShapePts=function(t,e,o,l){var n=e.length,i=[],r=0;t=SuperMapAlgoPlot.ArrowToolkit.beforePtsCrossZone(t).pts;for(var a=0;a0&&f>0){var A=1/(g-t[2].x),M=-1/(y-t[2].y),d=1*t[2].y/(y-t[2].y)-1*t[2].x/(g-t[2].x);S=Math.abs(A*t[0].x+M*t[0].y+d)/Math.sqrt(A*A+M*M)}else f<=1e-4?S=Math.abs(y-t[1].y):h<=1e-4&&(S=Math.abs(g-t[1].x));var b=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(S,t[2],new SuperMapAlgoPlot.Point(g,y)),v=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(t[1],t[2],t[0]);v?(i[1]=t[1],r[1]=t[0]):(i[1]=t[0],r[1]=t[1]),t[1]=new SuperMapAlgoPlot.Point((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2);var m=Math.sqrt((b.pntLeft.x-b.pntRight.x)*(b.pntLeft.x-b.pntRight.x)+(b.pntLeft.y-b.pntRight.y)*(b.pntLeft.y-b.pntRight.y))*SuperMapAlgoPlot.ArrowToolkit.ConstValue.sv_AtWidthDivAwWidth,L=(n=m*SuperMapAlgoPlot.ArrowToolkit.ConstValue.sv_AtLenDivAtWidth)*P;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(c,0)||(L=(n=l*c)*P);var O,T,w=SuperMapAlgoPlot.PlottingUtil.distance(t[e],t[e-1]),x=2*n;w0&&(t[e]=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(n,t[e],I)),E=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(L,t[e+1],t[e]),(v=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(t[e],t[e+1],E.pntLeft))?(r[e]=new SuperMapAlgoPlot.Point(E.pntLeft.x,E.pntLeft.y),i[e]=new SuperMapAlgoPlot.Point(E.pntRight.x,E.pntRight.y)):(r[e]=new SuperMapAlgoPlot.Point(E.pntRight.x,E.pntRight.y),i[e]=new SuperMapAlgoPlot.Point(E.pntLeft.x,E.pntLeft.y)),R=2;R=2&&this.controlPoints.length=this.minEditPts){var e={textContent:this.textContent,type:this.symbolType,surroundLineFlag:!1,positionPoints:t,style:{}};if(e.type===SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL&&e.positionPoints.push(e.positionPoints[0]),this.symbolType===SuperMapAlgoPlot.SymbolType.PARALLELLINE){if(this.controlPoints&&this.controlPoints.length>=3){var o=!1;void 0!==this.controlPoints[0].z&&(o=!0);var l=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);SuperMapAlgoPlot.PlottingUtil.isRight(this.controlPoints[0],this.controlPoints[1],this.controlPoints[2])&&(l=-l);for(var n=[],i=1;iy)break;if(u>=g){var f=p.split("");p="";for(var S="",A=f.length,M=0;M=g){var d=f[M];if(f[M]="\n",r++,a.weight?h=parseFloat(a.fontSize)*r+r+2*a.weight+.2*parseFloat(a.fontSize):this.style.strokeWidth&&(h=parseFloat(a.fontSize)*r+r+2*a.strokeWidth+.2*parseFloat(a.fontSize)),!(h1||e+o<0)return l.startIndex=0,l.startPt=t[0],l.endIndex=t.length-1,l.endPt=t[t.length-1],l;null==o&&(o=.5);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t),i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n*(o-e),t),r=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n*(o+e),t);return l.startIndex=i.index,l.startPt=i.pts,l.endIndex=r.index,l.endPt=r.pts,l}},{key:"addArrow",value:function(t,e,o){if(t.length<2)return t;null==o&&(o=!0);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints)*e;Math.cos(9.59/180*Math.PI);if(o){var n=t[t.length-1];if(t.length>2){for(var i=-1,r=t.length-2;r>=0;r--)if(l1){var a=SuperMapAlgoPlot.PlottingUtil.findPointInLine(n,t[t.length-2],l);t.splice(t.length-1,1),t.push(a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);var s=t[t.length-1],p=n,u=1.2*l,c=SuperMapAlgoPlot.PlottingUtil.radian(s,p)*SuperMapAlgoPlot.PlottingUtil.RTOD,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,u,u,c+180-9.59),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,u,u,c+180+9.59),y={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,n,g,a],y)}}else{n=t[0];if(t.length>2){i=-1;for(var h=1;h1){a=SuperMapAlgoPlot.PlottingUtil.findPointInLine(n,t[1],l);t.splice(0,1),t.splice(0,0,a),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t);s=t[0],p=n,u=1.2*l,c=SuperMapAlgoPlot.PlottingUtil.radian(s,p)*SuperMapAlgoPlot.PlottingUtil.RTOD,P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,u,u,c+180-9.59),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,u,u,c+180+9.59),y={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[P,n,g,a],y)}}t.length<=1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,t)}},{key:"addDashLineAndArrow",value:function(t,e,o,l){if(t.length<2)return t;null==l&&(l=!0);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints)*e,i=n*Math.cos(9.59*SuperMapAlgoPlot);if(l){var r=t[t.length-1];if(t.length>2){for(var a=-1,s=t.length-2;s>=0;s--)if(n1){var p=SuperMapAlgoPlot.PlottingUtil.findPointInLine(r,t[t.length-2],n);t.splice(t.length-1,1),t.push(p);for(var u=o*(i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)),c=.02*i,P=0;P<=i;){var g,y,h=-1,f=-1;if(g=(T=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,P)).pt,-1!=(h=T.index)){f=(w=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(t,P+u)).index,y=w.pt,-1==f&&(y=t[t.length-1],f=t.length-1),(x=[]).push(g);for(var S=h+1;S<=f;S++)x.push(t[S]);x.push(y),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,x),P+=u+c}else P+=u+c}var A=t[t.length-1],M=r,d=1.2*n,b=SuperMapAlgoPlot.PlottingUtil.radian(A,M)*SuperMapAlgoPlot.PlottingUtil.RTOD,v=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,d,d,b+180-9.59),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,d,d,b+180+9.59),L={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[v,r,m,p],L)}}else{r=t[0];if(t.length>2){a=-1;for(var O=1;O1){p=SuperMapAlgoPlot.PlottingUtil.findPointInLine(r,t[1],n);t.splice(0,1),t.splice(0,0,p);for(u=o*(i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)),c=.02*i,P=0;P<=i;){var T,w;h=-1,f=-1;if((T=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(P,t)).bfind)if((w=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(P+u,t)).bfind){var x;h=T.index,f=w.index,(x=[]).push(T.pts);for(S=h+1;S<=f;S++)x.push(t[S]);x.push(w.pts),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,x),P+=u+c}}A=t[0],M=r,d=1.2*n,b=SuperMapAlgoPlot.PlottingUtil.radian(A,M)*SuperMapAlgoPlot.PlottingUtil.RTOD,v=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,d,d,b+180-9.59),m=SuperMapAlgoPlot.PlottingUtil.circlePoint(M,d,d,b+180+9.59),L={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[v,r,m,p],L)}}t.length<=1&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,x)}},{key:"addArrowWithOutLine",value:function(t,e){if(t.length<2)return t;var o,l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);void 0===e&&(e=(this.isEdit,.5*this.getSubSymbolScaleValue()));var n=t.slice();o=l*e;var i,r=t[t.length-1],a=o*Math.cos(.125*Math.PI);if(t.length>2){for(var s=-1,p=t.length-2;p>=0;p--)if(o1){SuperMapAlgoPlot.PlottingUtil.distance(t[t.length-1],t[t.length-2])>a&&(i=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(a,[t[t.length-1],t[t.length-2]])).bfind&&(t.splice(t.length-1,1),t.push(i.pts));var u=t[t.length-1],c=r,P=o;if(void 0===u)return t;var g=SuperMapAlgoPlot.PlottingUtil.radian(u,c)*SuperMapAlgoPlot.PlottingUtil.RTOD,y=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,P,P,g+157.5),h=SuperMapAlgoPlot.PlottingUtil.circlePoint(c,P,P,g+202.5),f={surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0,surroundLineType:SuperMapAlgoPlot.AlgoSurroundLineType.NONE};this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,[y,r,h],f)}else this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n)}},{key:"addDovetailArrow",value:function(t,e){if(t.length<2)return t;var o,l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(this.controlPoints);void 0===e&&(e=(this.isEdit,.5*this.getSubSymbolScaleValue())),o=l*e;var n=t[t.length-1];if(t.length>2){for(var i=-1,r=t.length-2;r>=0;r--)if(oe||l<=0)&&(l=e),l}},{key:"computeSubSymbol",value:function(t,e,o,l,n,i){if(null==t.symbolData||null==t.symbolData.innerCells)return null;void 0===n&&(n=0),void 0===i&&(i=0);for(var r=SuperMapAlgoPlot.AnalysisSymbol.analysisSymbolCells(t.symbolData,!0),a=0,s=0,p=0,u=0,c=0;cP[g].x&&(p=P[g].x),u>P[g].y&&(u=P[g].y)}var h=new SuperMapAlgoPlot.Point(a,s),f=new SuperMapAlgoPlot.Point(p,u),S=(h.y-f.y)/o,A=(h.x-f.x)/o,M=A>S?A:S,d=new SuperMapAlgoPlot.Point(.5*(h.x+f.x),.5*(h.y+f.y));d.x+=n*(h.x-f.x),d.y+=i*(h.y-f.y);for(var b=0,v=r.length;b=i)return o.z;if(a>=i)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=SuperMapAlgoPlot.PlottingUtil.distance(e,n))?e.z:e.z-(e.z-o.z)*(r/i)}},{key:"ComputeBeizerZValueByDis",value:function(t,e,o){if(t.length<2)return!1;for(var l=[],n=0;n0){var n=0,i=0;o.push(0);for(;;){if(n>=t.length&&(n=0),(i+=t[n])>1||1===i){o.length,o.push(1);break}o.push(i),n++}}if(o.length>0){for(var r=1;rr+2){var a=0;for(a=0;ao[a]&&e[r]o[s]&&e[r+1]2?SuperMapAlgoPlot.PlottingUtil.radian(e[e.length-1],e[e.length-2]):SuperMapAlgoPlot.PlottingUtil.radian(e[1],e[0]))-i,a=e[e.length-1].x+n*Math.cos(r),s=e[e.length-1].y+n*Math.sin(r),p=new SuperMapAlgoPlot.Point(a,s),u=l+i,c=e[e.length-1].x+n*Math.cos(u),P=e[e.length-1].y+n*Math.sin(u),g=new SuperMapAlgoPlot.Point(c,P),y=[];y.push(p),y.push(e[e.length-1].clone()),y.push(g);var h={surroundLineFlag:!1,fillLimit:!0,lineTypeLimit:!0},f=SuperMapAlgoPlot.PlottingUtil.radian(e[0],e[1]);r=f-i,a=e[0].x+n*Math.cos(r),s=e[0].y+n*Math.sin(r),p=new SuperMapAlgoPlot.Point(a,s),u=f+i,c=e[0].x+n*Math.cos(u),P=e[0].y+n*Math.sin(u),g=new SuperMapAlgoPlot.Point(c,P);var S=[];S.push(p),S.push(e[0].clone()),S.push(g);var A=this.scaleValues[1]===SuperMapAlgoPlot.ArrowLineType.DOUBLELINE?SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,M=this.scaleValues[2]===SuperMapAlgoPlot.ArrowLineType.DOUBLELINE?SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL;this.scaleValues[1]===SuperMapAlgoPlot.ArrowLineType.DOUBLELINE?this.addCell(A,S,h):this.scaleValues[1]===SuperMapAlgoPlot.ArrowLineType.TRIANGLESOLID&&this.addCell(A,S,h),this.scaleValues[2]===SuperMapAlgoPlot.ArrowLineType.DOUBLELINE?this.addCell(M,y,h):this.scaleValues[2]===SuperMapAlgoPlot.ArrowLineType.TRIANGLESOLID&&this.addCell(M,y,h),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,e),this.finish()}}}])&&b(e.prototype,o),l&&b(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function w(t){"@babel/helpers - typeof";return(w="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})(t)}function x(t,e){for(var o=0;o0&&n<.4&&(this.scaleValues[0]=n)}else if(1==t){var i=new SuperMapAlgoPlot.Point((o[0].x+o[1].x)/2,(o[0].y+o[1].y)/2),r=SuperMapAlgoPlot.PlottingUtil.distance(e,i)/l;0r&&(this.scaleValues[1]=r)}}this.calculateParts()}}])&&B(e.prototype,o),l&&B(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function k(t){"@babel/helpers - typeof";return(k="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})(t)}function j(t,e){for(var o=0;o=2&&t.lengtho.x&&a.xo.y&&a.yl.x||a.yl.y)&&(e[0]=i,e[3]=o),4==e.length&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,e)}}},{key:"GetPointsByTrapezoid",value:function(t,e,o,l,n){var i=e.x,r=e.y,a=o.x,s=o.y,p=l.x,u=l.y,c=0,P=0,g=0,y=0;if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(Math.abs(r-s),0))c=i+a-p,P=u;else if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(Math.abs(i-a),0))c=p,P=r+s-u;else{var h=1*(r-s)/(i-a),f=u-h*p;P=h*(c=((s+r)/2+(i+a)/(2*h)-f)/(h+1/h))+f,c=2*c-p,P=2*P-u}var S=Math.sqrt(1*(i-a)*(i-a)+1*(r-s)*(r-s)),A=Math.sqrt(1*(i-c)*(i-c)+1*(r-P)*(r-P));S>0?(g=i+(a-i)*A/S,y=r+(s-r)*A/S):(g=i,y=r);var M=g+(c-g)*t,d=y+(P-y)*t;n.x=M,n.y=d}}])&&j(e.prototype,o),l&&j(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function G(t){"@babel/helpers - typeof";return(G="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})(t)}function H(t,e){for(var o=0;o1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,l,n,i,r;this.controlPoints[2]&&(this.controlPoints[2].isFixedPos=!0),this.controlPoints[0].xo?Math.abs((r-o)/(i-e))>s?2:1:rs?4:1:i>l?r>o?Math.abs((r-o)/(i-l))>s?2:3:rs?4:3:r>o?2:rl?Math.abs((a-l)/(r-o))>p?2:1:ap?4:1:r>n?a>l?Math.abs((a-l)/(r-n))>p?2:3:ap?4:3:a>l?2:al&&(c=l),c<(l+i)/2&&(c=(l+i)/2),u=1-2*(l-c)/(l-i);break;case 2:case 4:var P=s.x+(e.x-s.x);P>n&&(P=n),P<(o+n)/2&&(P=(o+n)/2),u=1-2*(n-P)/(n-o)}u<0&&(u=0),u>1&&(u=1),this.scaleValues[0]=u}this.calculateParts()}}])&&H(e.prototype,o),l&&H(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function K(t){"@babel/helpers - typeof";return(K="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})(t)}function $(t,e){for(var o=0;o=this.minEditPts){var e,o,l,n;t[0].xl?Math.abs((e-l)/(t-o))>r?2:1:er?4:1:t>n?e>l?Math.abs((e-l)/(t-n))>r?2:3:er?4:3:e>l?2:e1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,l,n;this.scalePoints=[];var i=[];this.controlPoints[0].x=2&&this.controlPoints.lengthl?Math.abs((a-l)/(r-o))>p?2:1:ap?4:1:r>n?a>l?Math.abs((a-l)/(r-n))>p?2:3:ap?4:3:a>l?2:al&&(c=l),c<(l+i)/2&&(c=(l+i)/2),u=1-2*(l-c)/(l-i);break;case 2:case 4:var P=s.x+(e.x-s.x);P>n&&(P=n),P<(o+n)/2&&(P=(o+n)/2),u=1-2*(n-P)/(n-o)}u<0&&(u=0),u>1&&(u=1),this.scaleValues[0]=u}this.calculateParts()}},{key:"calculateArc",value:function(t,e,o,l,n,i){(!n||1!=n&&-1!=n)&&(n=-1),i||(i=360);for(var r=Math.PI/i/2,a=r*n,s=Math.abs(l-o),p=[],u=o,c=0;c2*Math.PI?u-2*Math.PI:u}return p}},{key:"getAction",value:function(t,e,o,l,n,i){var r=(l-i)/(n-o);return tl?Math.abs((e-l)/(t-o))>r?2:1:er?4:1:t>n?e>l?Math.abs((e-l)/(t-n))>r?2:3:er?4:3:e>l?2:e360;)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;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.scaleValues[1],this.scaleValues[0])&&(this.scaleValues[1]+=360);for(var e=[],o=0;o0){for(var u=[],c=0;c=0;P--)u.push(n[P]);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,u,{surroundLineFlag:!1,lineWidthLimit:!0,weight:0,strokeWidth:0})}e.length=0;for(var g=0;g360;)l-=360;for(;l<0;)l+=360;t%2==0?this.scaleValues[0]=l:t%2==1&&(this.scaleValues[1]=l)}this.calculateParts()}}])&>(e.prototype,o),l&>(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function At(t){"@babel/helpers - typeof";return(At="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})(t)}function Mt(t,e){for(var o=0;oMath.abs(this.scaleValues[l]-this.scaleValues[n]))for(var r=0;r<2;r++){var a,s,p;0==r?(p=l,a=SuperMapAlgoPlot.PlottingUtil.radian(o[l],o[n])*SuperMapAlgoPlot.PlottingUtil.RTOD,s=Math.acos((i*i+this.scaleValues[l]*this.scaleValues[l]-this.scaleValues[n]*this.scaleValues[n])/(2*i*this.scaleValues[l]))*SuperMapAlgoPlot.PlottingUtil.RTOD):(p=n,a=SuperMapAlgoPlot.PlottingUtil.radian(o[n],o[l])*SuperMapAlgoPlot.PlottingUtil.RTOD,s=Math.acos((i*i+this.scaleValues[n]*this.scaleValues[n]-this.scaleValues[l]*this.scaleValues[l])/(2*i*this.scaleValues[n]))*SuperMapAlgoPlot.PlottingUtil.RTOD);var u=a-s,c=a+s,P=u<0&&c>0||u>360||c>360;u=this.adjustAngle(u),c=this.adjustAngle(c);for(var g=this.angleRange[p].length-1;g>=0;g--)if(P){if(c>this.angleRange[p][g].End||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(c,this.angleRange[p][g].End)){this.angleRange[p].splice(g,1);continue}if(c>this.angleRange[p][g].Start&&(this.angleRange[p][g].Start=c),uthis.angleRange[p][g].End)this.angleRange[p].splice(g,1);else if(u>this.angleRange[p][g].Start&&cthis.angleRange[p][g].End)continue;if(u>this.angleRange[p][g].Start&&(this.angleRange[p][g].End=u),c=0;f--){for(var S=this.adjustAngle(this.angleRange[h][f].Start),A=this.adjustAngle(this.angleRange[h][f].End);A=0;x--)for(var R=0;R=0;i--)e.push(t[n][i]);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=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints),l=SuperMapAlgoPlot.PlottingUtil.distance(o[t],e);this.scaleValues[t]=l}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}}])&&Mt(e.prototype,o),l&&Mt(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Lt(t){"@babel/helpers - typeof";return(Lt="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})(t)}function Ot(t,e){for(var o=0;o2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(2>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=-1;n=t%2==0?Math.floor(t/2):Math.floor((t+1)/2);var i=(e.x-o[n].x)/l,r=(e.y-o[n].y)/l;this.scaleValues[2*t]=i,this.scaleValues[2*t+1]=r}this.calculateParts()}},{key:"reSample",value:function(t,e){var o=[];if(null==t||e<0)return o;var l=t.length;if(l>2){var n=new SuperMapAlgoPlot.Point(0,0),i=0,r=0,a=0,s=2*Math.PI;n=t[0],o.push(n);for(var p=!1,u=!1,c=!1,P=1;P0||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(0,y)?Math.acos(g):2*Math.PI-Math.acos(g),s>2*Math.PI&&i+2*Math.PIa&&(i-=2*Math.PI,s>2*Math.PI&&(s-=2*Math.PI)),i>a&&ii+h&&(s=i+h):(c=!0,s=i+h),p=!0}else n=t[P-1],P--,o.push(n),a=0,s=2*Math.PI,p=!1,u=!1,c=!1}return o.push(t[l-1]),o}return o}},{key:"reSampleByAngle",value:function(t,e){var o=[],l=t.length;if(null==t||l<=0||e<=0)return o;for(var n=t,i=l,r=!1;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n[0].x,n[i-1].x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n[0].y,n[i-1].y);){if((i-=1)<=0)return o;r=!0}var a,s,p=[];for(a=0;a1e-10&&SuperMapAlgoPlot.PlottingUtil.distance(n[s],n[a+1])>1e-10){var u=180*SuperMapAlgoPlot.PlottingUtil.InnerAngle(n[a],n[s],n[a+1])/Math.PI;u>e&&u<180-e&&(p[a]=1,s++)}var c=0;for(a=0;a0){for(r&&c++,o=[],s=0,a=0;a0)for(var n=0;n=this.minEditPts){for(var t=this.controlPoints[0],e=this.controlPoints[1],o=SuperMapAlgoPlot.PlottingUtil.distance(t,e),l=this.scaleValues[0]*o,n=SuperMapAlgoPlot.PlottingUtil.parallel(this.controlPoints,l/2),i=SuperMapAlgoPlot.PlottingUtil.parallel(this.controlPoints,-l/2),r=180*SuperMapAlgoPlot.PlottingUtil.radian(t,e)/Math.PI,a=[],s=r+90;s<=r+270;s+=10){var p=SuperMapAlgoPlot.PlottingUtil.circlePoint(t,l/2,l/2,s);a.push(p)}for(var u=[],c=r-90;c<=r+90;c+=10){var P=SuperMapAlgoPlot.PlottingUtil.circlePoint(e,l/2,l/2,c);u.push(P)}var g=[];(g=(g=(g=(g=g.concat(a)).concat(i)).concat(u)).concat(n)).push(g[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,g);var y=new SuperMapAlgoPlot.Point(a[0].x,a[0].y);this.addScalePoint(y)}}},{key:"modifyPoint",value:function(t,e){if(!0===e.isScalePoint&&0==t){var o=SuperMapAlgoPlot.PlottingUtil.distance(e,this.controlPoints[0]),l=SuperMapAlgoPlot.PlottingUtil.distance(this.controlPoints[0],this.controlPoints[1]);this.scaleValues[0]=2*o/l}this.calculateParts()}}])&&Vt(e.prototype,o),l&&Vt(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Wt(t){"@babel/helpers - typeof";return(Wt="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})(t)}function Gt(t,e){for(var o=0;othis.controlPoints.length))if(2===this.controlPoints.length){var t=this.controlPoints[0].clone(),e=this.controlPoints[1].clone(),o=SuperMapAlgoPlot.PlottingUtil.distance(t,e)/2,l=180*SuperMapAlgoPlot.PlottingUtil.radian(t,e)/Math.PI,n=new SuperMapAlgoPlot.Point((t.x+e.x)/2,(t.y+e.y)/2),i=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,o,o,l+90),r=SuperMapAlgoPlot.PlottingUtil.circlePoint(n,3*o,3*o,l+90);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[i,new SuperMapAlgoPlot.Point(i.x+o,i.y)]),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[r,new SuperMapAlgoPlot.Point(r.x+o,r.y)])}else{var a=this.controlPoints[0].clone(),s=this.controlPoints[1].clone(),p=this.controlPoints[2].clone(),u=0;u=SuperMapAlgoPlot.PlottingUtil.isRight(p,a,s)?180*SuperMapAlgoPlot.PlottingUtil.radian(s,a)/Math.PI+90:180*SuperMapAlgoPlot.PlottingUtil.radian(a,s)/Math.PI+90;var c=SuperMapAlgoPlot.PlottingUtil.distance(a,s)/2,P=new SuperMapAlgoPlot.Point((a.x+s.x)/2,(a.y+s.y)/2),g=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,c,c,u),y=SuperMapAlgoPlot.PlottingUtil.plumbLineLen(p,a,s);if(y<=4*c){var h=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,3*c,3*c,u);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[g,new SuperMapAlgoPlot.Point(g.x+c,g.y)]),this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[h,new SuperMapAlgoPlot.Point(h.x+c,h.y)])}else{for(var f=SuperMapAlgoPlot.PlottingUtil.circlePoint(P,y-c,y-c,u),S=180*Math.acos(c/(y-2*c))/Math.PI,A=u-S,M=u-180+S,d=u-180-S+360,b=[],v=u+S-360;v<=A;v+=4){var m=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,c,c,v);b.push(m)}var L=SuperMapAlgoPlot.PlottingUtil.circlePoint(g,c,c,A);b.push(L);for(var O=[],T=M;T=0;U--)R.push(O[U]);this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,R)}}}}])&&Gt(e.prototype,o),l&&Gt(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Qt(t){"@babel/helpers - typeof";return(Qt="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})(t)}function Kt(t,e){for(var o=0;o1?this.computeText(this.textPathPts,this.textContent[1],t):this.computeText(this.textPathPts,this.textContent[0],t),this.relLineText=SuperMapAlgoPlot.RelLineText.ONBOTHLINE,this.showPathLine=e}else this.relLineText===SuperMapAlgoPlot.RelLineText.ONRIGHTLINE?this.textPathPts=this.getTextPathPts(t,!1):this.relLineText===SuperMapAlgoPlot.RelLineText.ONLEFTLINE?this.textPathPts=this.getTextPathPts(t,!0):this.textPathPts=t,this.computeText(this.textPathPts,this.textContent[0],t);this.finish()}}},{key:"getTextPathPts",value:function(t,e){t=SuperMapAlgoPlot.PlottingUtil.clearSamePts(t);var o=this.getLonLatDistanceFromPixel(this.textToLineDistance);if(0>=o)return SuperMapAlgoPlot.PlottingUtil.clonePoints(t);var l=SuperMapAlgoPlot.PlottingUtil.paraLine(t,o,e);return SuperMapAlgoPlot.PlottingUtil.clearSamePts(l)}},{key:"computeText",value:function(t,e,o){if(!(t.length<2)){for(var l=e.length,n=t,i=n.length,r=0,a=0;a180&&(O-=360),O<-180&&(O+=360),O>90&&O<=180?(b=-180,A=!0,M=!0):O>-180&&O<-90&&(b=180,A=!0,M=!0),d=!0,0!=b?this.relLineText===SuperMapAlgoPlot.RelLineText.ONLINE||(g=this.relLineText===SuperMapAlgoPlot.RelLineText.ONLEFTLINE?"lt":"lb"):this.relLineText===SuperMapAlgoPlot.RelLineText.ONLINE||(g=this.relLineText===SuperMapAlgoPlot.RelLineText.ONLEFTLINE?"lb":"lt");for(var T=0;Tr);T++){0===T&&(this.oldDNowPassedDistance=this.dNowPassedDistance);var w=T;for(M&&(w=l-T-1),S=y[w],v=d?S.getWidth():S.getHeight(),A&&(this.dNowPassedDistance+=v);p<=this.dNowPassedDistance&&u=0){for(var B=[],D=0;D<=L.index;D++)B.push(o[D]);B.push(L.pt),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,B)}if(I.index>=0){var _=[];_.push(I.pt);for(var N=I.index+1;N2){for(var l=-1,n=t.length-2;n>=0;n--)if(e1)){if(t=(1-t)/2,this.controlPoints.length>=this.minEditPts){var e,o,l,n;this.scalePoints=[];var i=[];this.controlPoints[0].x=2&&this.controlPoints.lengthl?Math.abs((e-l)/(t-o))>r?2:1:er?4:1:t>n?e>l?Math.abs((e-l)/(t-n))>r?2:3:er?4:3:e>l?2:e=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 l=SuperMapAlgoPlot.PlottingUtil.distance(e,o)/(2*this.subSectionCount-1);if(this.lineRelationType===SuperMapAlgoPlot.LineRelationType.SOLID)this.addCell(24,t,{surroundLineFlag:!1});else if(this.lineRelationType===SuperMapAlgoPlot.LineRelationType.DASH)for(var n=0;n=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=[SuperMapAlgoPlot.PlottingUtil.getPolygonCenterPt(t)];else{var l=null,n=null;this.scaleValues[1]===t.length?(l=t[t.length-1],n=t[0]):(l=t[this.scaleValues[1]-1],n=t[this.scaleValues[1]]),o.labelRotation=-SuperMapAlgoPlot.PlottingUtil.radian(l,n)/Math.PI*180;var i=this.scaleValues[0]*SuperMapAlgoPlot.PlottingUtil.distance(l,n);e=[SuperMapAlgoPlot.PlottingUtil.findPoint(l,n,i,0)]}this.addCell(34,e,o,this.textContent);var r=new SuperMapAlgoPlot.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.lengtho);a++){var s=SuperMapAlgoPlot.PlottingUtil.findPointInPolyLine(i,n+l*a);if(-1!==s.index){var p=new SuperMapAlgoPlot.Point(s.pt.x,s.pt.y),u=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(l/2,e[s.index],p);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u.pntLeft,u.pntRight])}}this.finish()}}}])&&Oe(e.prototype,o),l&&Oe(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ue(t){"@babel/helpers - typeof";return(Ue="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})(t)}function Ee(t,e){for(var o=0;o1&&(this.scaleValues[2]=1)}}else if(2===t){var f=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,o[0],o[1]);if(f.isOnline){var S=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),A=this.getLonLatDistanceFromPixel(S),M=A*this.scaleValues[5],d=SuperMapAlgoPlot.PlottingUtil.findPointInLine(o[1],o[0],A),b=SuperMapAlgoPlot.PlottingUtil.findPointInLine(d,o[1],M);A=SuperMapAlgoPlot.PlottingUtil.distance(o[1],f.projectPoint),S=this.getPixelDistanceFromLonLat(A),this.scaleValues[3]=S/(this.style.weight||this.style.strokeWidth);var v=SuperMapAlgoPlot.PlottingUtil.distance(e,f.projectPoint),m=this.getPixelDistanceFromLonLat(v);this.scaleValues[4]=m/(this.style.weight||this.style.strokeWidth),M=SuperMapAlgoPlot.PlottingUtil.distance(b,f.projectPoint),this.scaleValues[5]=M/A}}else if(3===t){var L=this.scaleValues[3]*(this.style.weight||this.style.strokeWidth),O=this.getLonLatDistanceFromPixel(L),T=SuperMapAlgoPlot.PlottingUtil.findPointInLine(o[1],o[0],O),w=SuperMapAlgoPlot.PlottingUtil.pointProjectToSegment(e,T,o[1]);if(w.isOnline){var x=SuperMapAlgoPlot.PlottingUtil.distance(T,w.projectPoint);this.scaleValues[5]=x/O,this.scaleValues[5]<0?this.scaleValues[5]=0:this.scaleValues[5]>1&&(this.scaleValues[5]=1)}}}this.calculateParts()}}])&&Ee(e.prototype,o),l&&Ee(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function _e(t){"@babel/helpers - typeof";return(_e="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})(t)}function Ne(t,e){for(var o=0;o2*this.controlPoints.length-1)return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if(o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.minEditPts>o.length)return;var l=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(o);l=SuperMapAlgoPlot.PlottingUtil.clearSamePts(l);var n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),i=SuperMapAlgoPlot.PlottingUtil.polylineDistance(l);if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0)||SuperMapAlgoPlot.PlottingUtil.equalFuzzy(i,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}}}])&&Ne(e.prototype,o),l&&Ne(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ze(t){"@babel/helpers - typeof";return(ze="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})(t)}function Fe(t,e){for(var o=0;o=this.minEditPts){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[2]),l=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1]),n=[];n.push(t[0]),(n=n.concat(SuperMapAlgoPlot.Primitives.getArcCircleSpatialData(t[0],e,o,l))).push(t[0]),0!==n.length&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n)}}}])&&Fe(e.prototype,o),l&&Fe(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ze(t){"@babel/helpers - typeof";return(Ze="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})(t)}function Xe(t,e){for(var o=0;o=this.minEditPts){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[2]),l=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1]),n=SuperMapAlgoPlot.Primitives.getArcCircleSpatialData(t[0],e,o,l);0!==n.length&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,n)}}}])&&Xe(e.prototype,o),l&&Xe(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function oo(t){"@babel/helpers - typeof";return(oo="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})(t)}function lo(t,e){for(var o=0;o=this.minEditPts){var e=SuperMapAlgoPlot.PlottingUtil.distance(t[0],t[1]),o=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[2]),l=SuperMapAlgoPlot.PlottingUtil.radian(t[0],t[1]),n=[];n.push(t[1]),(n=n.concat(SuperMapAlgoPlot.Primitives.getArcCircleSpatialData(t[0],e,o,l))).push(t[1]),0!==n.length&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,n)}}}])&&lo(e.prototype,o),l&&lo(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function po(t){"@babel/helpers - typeof";return(po="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})(t)}function uo(t,e){for(var o=0;o=this.minEditPts){this.scalePoints=[];var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),l=!1;void 0!==o[0].z&&(l=!0);var n=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL),i=n.arrowTouLen,r=n.leftBodyPts,a=n.rightBodyPts,s=[];s.push(r[r.length-1]),s.push(a[a.length-1]);var p=[];p.push(this.scaleValues[3]),p.push(this.scaleValues[4]),p.push(this.scaleValues[0]),p.push(this.scaleValues[1]);var u=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts(t,s,p,i,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),c=[];if(l){for(var P=[],g=[],y=[],h=0;h=0;v--)c.push(y[v]);var m=new SuperMapAlgoPlot.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),L=new SuperMapAlgoPlot.Point(m.x,m.y);L.isScalePoint=!0,L.tag=0,this.addScalePoint(L);var O=new SuperMapAlgoPlot.Point(r[r.length-1].x,r[r.length-1].y);O.isScalePoint=!0,O.tag=1,this.addScalePoint(O);var T=new SuperMapAlgoPlot.Point(u[0].x,u[0].y);T.isScalePoint=!0,T.tag=2,this.addScalePoint(T);for(var w=0;w=0;R--)c.push(a[R]);var U=new SuperMapAlgoPlot.Point((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),E=new SuperMapAlgoPlot.Point(U.x,U.y);E.isScalePoint=!0,E.tag=0,this.addScalePoint(E);var C=new SuperMapAlgoPlot.Point(r[r.length-1].x,r[r.length-1].y);C.isScalePoint=!0,C.tag=1,this.addScalePoint(C);var I=new SuperMapAlgoPlot.Point(u[0].x,u[0].y);I.isScalePoint=!0,I.tag=2,this.addScalePoint(I);for(var B=this.mergeDashLine(this.dashLines,[]),D=this.computeDashLine(B,r),_=0;_=2&&t.length2*l-1){for(var a=0;ah[v].length)){for(var m=P[v][P[v].length-1],L=g[v][0],O=new SuperMapAlgoPlot.Point(.5*(m.x+L.x),.5*(m.y+L.y)),T=h[v][h[v].length-1],w=h[v][h[v].length-2],x=this.ComputeZValue(O,T,w),R={x:O.x,y:O.y,z:x},U=[],E=[],C=0;C=0;D--)if(v==l-1)B.push(h[v][D]);else{var _={x:h[v][D].x,y:h[v][D].y,z:.5*(h[v][D].z+h[v+1][D].z)};B.push(_)}this.ComputeBeizerZValueByDis(B,g[v],U),d.push(U),U=[];for(var N=y[v],V=0;V0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,j,{surroundLineFlag:!1}),this.scalePoints=this.scalePoints.concat(this.m_scalePoints),!0}if(p.shapePts.length>0){P=p.arrLeftPts2D,g=p.arrRightPts2D,y=p.arrHeadPts2D;for(var z=[],F=[],W=0;Wthis.MAX_SCALEVALUE?i=this.MAX_SCALEVALUE:i3)for(var r=l-1,a=0,s=r;a3)for(var i=l-1,r=0,a=i;r0)if(1==t)o.push(0);else{var l=SuperMapAlgoPlot.PlottingUtil.distance(e[0],e[this.MIN_PTCOUNT_PERARROW]);o.push(l);for(var n=1,i=this.MIN_PTCOUNT_PERARROW;nd&&(M=.5*d);var b=M*P;h.push(h[u].clone());var v,m=0;v=f-M;var L=[],O=0;for(O=2;O<=u;O++)m+=SuperMapAlgoPlot.PlottingUtil.distance(h[O-1],h[O-2]),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v,0,1e-14)?L[O]=0:SuperMapAlgoPlot.PlottingUtil.equalFuzzy(v-m,0,1e-14)?L[O]=b:L[O]=b+(S-b)*Math.pow((v-m)/v,this.SV_ATScaleParameter);L[u+1]=b;var T=new SuperMapAlgoPlot.Point(0,0),w=new SuperMapAlgoPlot.Point(0,0),x=new SuperMapAlgoPlot.Point(0,0);for(O=2;O<=u;O++){SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE1,this.AB_CTRLPT_RATE2,h[O-2],h[O-1],h[O],w,x),u==O&&SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,h[u],h[u-1],x,T);var R=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(L[O],w,h[O-1]);i[O]=R.pntLeft,n[O]=R.pntRight}var U,E,C=T.clone();if(SuperMapAlgoPlot.PlottingUtil.distance(h[u],C)>0){var I=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(M,h[u],T);h[u]=I.clone()}for(A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(b,h[u+1],h[u]),n[u+1]=A.pntLeft,i[u+1]=A.pntRight,O=2;O<=u;O++)SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,n[O-1],n[O],n[O+1],w,x),r[O]=w.clone(),a[O]=x.clone(),SuperMapAlgoPlot.PlottingUtil.getTrianglePoints(this.AB_CTRLPT_RATE2,this.AB_CTRLPT_RATE2,i[O-1],i[O],i[O+1],w,x),s[O]=w.clone(),p[O]=x.clone();SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,n[1],n[2],r[2],T),a[1]=T.clone(),SuperMapAlgoPlot.PlottingUtil.getTrapezoidPoints(this.AB_CTRLPT_RATE3,i[1],i[2],s[2],T),p[1]=T.clone();E=SuperMapAlgoPlot.PlottingUtil.distance(n[u+1],n[u])*(1/3),(U=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(E,h[u],h[u+1])).x+=n[u+1].x-h[u].x,U.y+=n[u+1].y-h[u].y,E=(S-b)*Math.pow(E/v,this.SV_ATScaleParameter+.3),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(E,n[u+1],U),r[u+1]=A.pntLeft.clone(),E=SuperMapAlgoPlot.PlottingUtil.distance(i[u+1],i[u])*(1/3),(U=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(E,h[u],h[u+1])).x+=i[u+1].x-h[u].x,U.y+=i[u+1].y-h[u].y,E=(S-b)*Math.pow(E/v,this.SV_ATScaleParameter+.3),A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(E,i[u+1],U),s[u+1]=A.pntRight.clone();var B=[],D=M*y,_=SuperMapAlgoPlot.PlottingUtil.getExcentrePointOnSegmentByScale(D,h[u],h[u+1]);this.m_scalePoints.push(_.clone()),D=M*g,A=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(D,h[u+1],_),B.push(A.pntRight),B.push(h[u+1]),B.push(A.pntLeft);var N=[];for(N.push(n[u+1]),O=u;O>=1;O--)N.push(r[O+1]),N.push(a[O]),N.push(n[O]);var V=[];for(O=1;O<=u;O++)V.push(i[O]),V.push(p[O]),V.push(s[O+1]);V.push(i[u+1]),l.push.apply(l,V),l.push.apply(l,B),l.push.apply(l,N),o=M/f;var k=[];for(O=N.length-1;O>=0;O--)k.push(N[O]);return{dATLenDivABLen:o,arrowBodyPts:l}}},{key:"generateAYPts",value:function(t,e,o,l,n){var i=new SuperMapAlgoPlot.Point(.5*(t[2].x+o[2].x),.5*(t[2].y+o[2].y)),r=new SuperMapAlgoPlot.Point(.5*(t[1].x+o[1].x),.5*(t[1].y+o[1].y)),a=new SuperMapAlgoPlot.Point(.5*(t[0].x+o[0].x),.5*(t[0].y+o[0].y)),s=SuperMapAlgoPlot.PlottingUtil.distance(i,r),p=SuperMapAlgoPlot.PlottingUtil.distance(a,r),u=n*(s+p),c=new SuperMapAlgoPlot.Point(0,0),P=new SuperMapAlgoPlot.Point(0,0),g=new SuperMapAlgoPlot.Point(0,0);if(u>s){u=s+p-u,c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(u,a,r);var y=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[0]),h=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[0]);y=y*u/p,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(y,t[0],t[1]),h=h*u/p,g=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(h,o[0],o[1])}else{c=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(u,i,r);var f=SuperMapAlgoPlot.PlottingUtil.distance(t[1],t[2]),S=SuperMapAlgoPlot.PlottingUtil.distance(o[1],o[2]);f=f*u/s,P=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(f,t[2],t[1]),S=S*u/s,g=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(S,o[2],o[1])}this.m_scalePoints.push(c.clone());var A=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(c,P),M=this.SV_ArrowWoCtrl*SuperMapAlgoPlot.PlottingUtil.distance(c,g),d=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(A,c,P),b=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(M,c,g),v=e[11].clone(),m=e[10].clone(),L=l[5].clone(),O=l[6].clone(),T=SuperMapAlgoPlot.PlottingUtil.intersectLines(m,v,c,P),w=SuperMapAlgoPlot.PlottingUtil.distance(T.intersectPoint,m),x=SuperMapAlgoPlot.PlottingUtil.distance(m,c);w=w>x?this.SV_AJCtrl*x:this.SV_AJCtrl*w;var R=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(w,m,v);v=R.clone(),e[11]=R.clone(),T=SuperMapAlgoPlot.PlottingUtil.intersectLines(O,L,c,g),w=(w=SuperMapAlgoPlot.PlottingUtil.distance(T.intersectPoint,O))>(x=SuperMapAlgoPlot.PlottingUtil.distance(O,c))?this.SV_AJCtrl*x:this.SV_AJCtrl*w,L=(R=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(w,O,L)).clone(),l[5]=R.clone();var U=[];U.push(m),U.push(v),U.push(d),U.push(c);var E=[];return E.push(c),E.push(b),E.push(L),E.push(O),{arrowLeftYaoPts:U,arrowRightYaoPts:E}}}])&&fo(e.prototype,o),l&&fo(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function vo(t){"@babel/helpers - typeof";return(vo="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})(t)}function mo(t,e){for(var o=0;o=this.minEditPts){if(SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.controlPoints[0].x,this.controlPoints[1].x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(this.controlPoints[0].y,this.controlPoints[1].y))return;var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(t),l=!1;void 0!==o[0].z&&(l=!0);var n=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts(t,this.scaleValues,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_TRAPEZOID),i=n.arrowTouLen,r=n.leftBodyPts,a=n.rightBodyPts,s=[];s.push(r[r.length-1]),s.push(a[a.length-1]);var p=[];p.push(this.scaleValues[3]),p.push(this.scaleValues[4]),p.push(0),p.push(0);var u=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts(t,s,p,i,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),c=[];c=(c=c.concat(r)).concat(u);for(var P=a.length-1;P>=0;P--)c.push(a[P]);if(c.push(r[0]),l){for(var g=[],y={x:o[1].x,y:o[1].y,z:o[1].z},h={x:o[0].x,y:o[0].y,z:o[0].z},f=0;f=2&&t.length=2;d--)P.push(r[d]);P.push({x:g.x,y:g.y,z:S});var b=[];this.ComputeBeizerZValueByDis(P,n,b);for(var v=[],m=0;m0&&b.length>0&&v.length>0){p=(p=(p=(p=[]).concat(M)).concat(v)).concat(b),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p,{surroundLineFlag:!1});for(var O=[],T=0;T=0;h--)e.push(p[h]),l.push(p[h])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:n}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(l,0)){var n=this.operateCtrlPts(t);e=n.length,e--;for(var i=[],r=0;r0&&A>0){var d=1/(h-y[2].x),b=-1/(f-y[2].y),v=1*y[2].y/(f-y[2].y)-1*y[2].x/(h-y[2].x);M=Math.abs(d*y[0].x+b*y[0].y+v)/Math.sqrt(d*d+b*b)}else A<=1e-4?M=Math.abs(f-y[1].y):S<=1e-4&&(M=Math.abs(h-y[1].x));var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,y[2],new SuperMapAlgoPlot.Point(h,f)),L=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(y[1],y[2],y[0]);L?(r[1]=y[1],a[1]=y[0]):(r[1]=y[0],a[1]=y[1]),y[1]=new SuperMapAlgoPlot.Point((y[0].x+y[1].x)/2,(y[0].y+y[1].y)/2);var O=Math.sqrt((m.pntLeft.x-m.pntRight.x)*(m.pntLeft.x-m.pntRight.x)+(m.pntLeft.y-m.pntRight.y)*(m.pntLeft.y-m.pntRight.y))*this.sv_AtWidthDivAwWidth,T=(l=O*this.sv_AtLenDivAtWidth)*i;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0)||(T=(l=t*n)*i);var w,x,R=SuperMapAlgoPlot.PlottingUtil.distance(y[P],y[P-1]),U=2*l;R0&&(y[P]=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(l,y[P],D)),I=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(T,y[P+1],y[P]),(L=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(y[P],y[P+1],I.pntLeft))?(a[P]=new SuperMapAlgoPlot.Point(I.pntLeft.x,I.pntLeft.y),r[P]=new SuperMapAlgoPlot.Point(I.pntRight.x,I.pntRight.y)):(a[P]=new SuperMapAlgoPlot.Point(I.pntRight.x,I.pntRight.y),r[P]=new SuperMapAlgoPlot.Point(I.pntLeft.x,I.pntLeft.y)),E=2;E2)for(var n=0;n0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,c,{surroundLineLimit:!0,lineTypeLimit:!0})}}}])&&Do(e.prototype,o),l&&Do(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function jo(t){"@babel/helpers - typeof";return(jo="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})(t)}function Yo(t,e){for(var o=0;o=2&&t.length0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g,{surroundLineFlag:!1}),this.m_scalePoints.length>0&&(this.m_scalePoints[0]={x:this.m_scalePoints[0].x,y:this.m_scalePoints[0].y,z:v});for(var U=0;U0){for(var V=this.mergeDashLine(this.dashLines,[]),k=this.computeDashLine(V,C),j=0;jthis.SV1_MaxValue&&(o=this.SV1_MaxValue)}else o=SuperMapAlgoPlot.PlottingUtil.distance(a.projectPoint,i)0&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,s,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,surroundLineLimit:!0,lineTypeLimit:!0})}else{for(var h=this.mergeDashLine(this.dashLines,[]),f=this.computeDashLine(h,l),S=0;S0&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i,{surroundLineFlag:!1,fillLimit:!0,fillColorLimit:!1,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0})}}}}])&&qo(e.prototype,o),l&&qo(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ko(t){"@babel/helpers - typeof";return(Ko="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})(t)}function $o(t,e){for(var o=0;o0&&this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,i,{surroundLineFlag:!1,fillLimit:!0,fill:!0,lineTypeLimit:!0,surroundLineLimit:!0})}}}])&&$o(e.prototype,o),l&&$o(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function nl(t){"@babel/helpers - typeof";return(nl="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})(t)}function il(t,e){for(var o=0;o=2&&t.length=0;d--)e.push(c[d]),l.push(c[d]);for(var b=1;b=0;h--)e.push(p[h]),l.push(p[h])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:n}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(l,0)){var n=this.operateCtrlPts(t);e=n.length,e--;for(var i=[],r=0;r0&&A>0){var d=1/(h-y[2].x),b=-1/(f-y[2].y),v=1*y[2].y/(f-y[2].y)-1*y[2].x/(h-y[2].x);M=Math.abs(d*y[0].x+b*y[0].y+v)/Math.sqrt(d*d+b*b)}else A<=1e-4?M=Math.abs(f-y[1].y):S<=1e-4&&(M=Math.abs(h-y[1].x));var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,y[2],new SuperMapAlgoPlot.Point(h,f)),L=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(y[1],y[2],y[0]);L?(r[1]=y[1],a[1]=y[0]):(r[1]=y[0],a[1]=y[1]),y[1]=new SuperMapAlgoPlot.Point((y[0].x+y[1].x)/2,(y[0].y+y[1].y)/2);var O=Math.sqrt((m.pntLeft.x-m.pntRight.x)*(m.pntLeft.x-m.pntRight.x)+(m.pntLeft.y-m.pntRight.y)*(m.pntLeft.y-m.pntRight.y))*this.sv_AtWidthDivAwWidth,T=(l=O*this.sv_AtLenDivAtWidth)*i;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0)||(T=(l=t*n)*i);var w,x,R=SuperMapAlgoPlot.PlottingUtil.distance(y[P],y[P-1]),U=2*l;R0&&(y[P]=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(l,y[P],D)),I=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(T,y[P+1],y[P]),(L=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(y[P],y[P+1],I.pntLeft))?(a[P]=new SuperMapAlgoPlot.Point(I.pntLeft.x,I.pntLeft.y),r[P]=new SuperMapAlgoPlot.Point(I.pntRight.x,I.pntRight.y)):(a[P]=new SuperMapAlgoPlot.Point(I.pntRight.x,I.pntRight.y),r[P]=new SuperMapAlgoPlot.Point(I.pntLeft.x,I.pntLeft.y)),E=2;E.3||o<=0)&&(o=.3),this.scaleValues[0]=o}var l,n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[0],i=2*Math.sqrt(n*n/3)/1.4,r=Math.sqrt(n*n/3),a=!1;this.arrowBodyType===SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL?l=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,n,this.arrowBodyType,a):this.arrowHeadType===SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE||this.arrowHeadType===SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_TRIANGLE_SOLID?(a=!0,l=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,n,this.arrowBodyType,a)):this.arrowHeadType===SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_POLYLINE?l=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,n,this.arrowBodyType,a):this.arrowHeadType===SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL_HOLLOW?(a=!0,l=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,i,this.arrowBodyType,a)):this.arrowHeadType===SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_COATTAIL?(a=!0,l=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,r,this.arrowBodyType,a)):l=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePtsBySingleLine(t,0,this.arrowBodyType,a);var s=[];this.arrowBodyType===SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL?(s.push(t[t.length-1]),s.push(t[t.length-2])):a?(s.push(t[t.length-1]),s.push(l[l.length-1])):(s.push(l[l.length-1]),s.push(l[l.length-2]));var p,u=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePtsBySingleLine(s,n,this.arrowHeadType);if(l.length>1)if(this.arrowBodyType!==SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_COATTAIL)for(var c=this.mergeDashLine(this.dashLines,[]),P=this.computeDashLine(c,l),g=0;g0&&this.addCell(m,u,e),p.length>0&&this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,p)}}}])&&ql(e.prototype,o),l&&ql(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Kl(t){"@babel/helpers - typeof";return(Kl="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})(t)}function $l(t,e){for(var o=0;o=this.minEditPts){this.scalePoints=[];var e=SuperMapAlgoPlot.PlottingUtil.clonePoints(t);this.isEdit||(this.scaleValues[0]=1.5*this.getSubSymbolScaleValue());var o=SuperMapAlgoPlot.ArrowToolkit.generateArrowBodyShapePts(e,this.scaleValues,SuperMapAlgoPlot.ArrowToolkit.ArrowBodyType.ARROWBODY_PARALLEL),l=o.arrowTouLen,n=o.leftBodyPts,i=o.rightBodyPts,r=[];r.push(n[n.length-1]),r.push(i[i.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=SuperMapAlgoPlot.ArrowToolkit.generateArrowHeadShapePts(e,r,a,l,SuperMapAlgoPlot.ArrowToolkit.ArrowHeadType.ARROWHEAD_WITHOUT_EAR),p=[];p=(p=p.concat(n)).concat(s);for(var u=i.length-1;u>=0;u--)p.push(i[u]);if(p.push(p[0]),0==this.dashLines){this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,p,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1});for(var c=SuperMapAlgoPlot.PlottingUtil.clonePoints(n),P=[],g=i.length-1;g>=0;g--)P.push(i[g]);P=P.concat(c),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P);var y=SuperMapAlgoPlot.PlottingUtil.clonePoints(s);y.push(i[i.length-1]),y.splice(0,0,n[n.length-1]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,y,{lineTypeLimit:!0})}else{for(var h=this.mergeDashLine(this.dashLines,[]),f=this.computeDashLine(h,n),S=1;S=2&&t.length=0;h--)e.push(p[h]),l.push(p[h])}return{shapePts:e,leftBodyPts:o,rightBodyPts:l,arrowHeadPts:n}}},{key:"updateScalePoints",value:function(t){var e=t.length,o=[];if(!(e<3)){var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);if(!SuperMapAlgoPlot.PlottingUtil.equalFuzzy(l,0)){var n=this.operateCtrlPts(t);e=n.length,e--;for(var i=[],r=0;r0&&A>0){var d=1/(h-y[2].x),b=-1/(f-y[2].y),v=1*y[2].y/(f-y[2].y)-1*y[2].x/(h-y[2].x);M=Math.abs(d*y[0].x+b*y[0].y+v)/Math.sqrt(d*d+b*b)}else A<=1e-4?M=Math.abs(f-y[1].y):S<=1e-4&&(M=Math.abs(h-y[1].x));var m=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(M,y[2],new SuperMapAlgoPlot.Point(h,f)),L=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(y[1],y[2],y[0]);L?(r[1]=y[1],a[1]=y[0]):(r[1]=y[0],a[1]=y[1]),y[1]=new SuperMapAlgoPlot.Point((y[0].x+y[1].x)/2,(y[0].y+y[1].y)/2);var O=Math.sqrt((m.pntLeft.x-m.pntRight.x)*(m.pntLeft.x-m.pntRight.x)+(m.pntLeft.y-m.pntRight.y)*(m.pntLeft.y-m.pntRight.y))*this.sv_AtWidthDivAwWidth,T=(l=O*this.sv_AtLenDivAtWidth)*i;SuperMapAlgoPlot.PlottingUtil.equalFuzzy(n,0)||(T=(l=t*n)*i);var w,x,R=SuperMapAlgoPlot.PlottingUtil.distance(y[P],y[P-1]),U=2*l;R0&&(y[P]=SuperMapAlgoPlot.PlottingUtil.getIncentrePointOnSegmentByScale(l,y[P],D)),I=SuperMapAlgoPlot.PlottingUtil.getSidePointsOfLine(T,y[P+1],y[P]),(L=SuperMapAlgoPlot.PlottingUtil.pointIsRightToLine(y[P],y[P+1],I.pntLeft))?(a[P]=new SuperMapAlgoPlot.Point(I.pntLeft.x,I.pntLeft.y),r[P]=new SuperMapAlgoPlot.Point(I.pntRight.x,I.pntRight.y)):(a[P]=new SuperMapAlgoPlot.Point(I.pntRight.x,I.pntRight.y),r[P]=new SuperMapAlgoPlot.Point(I.pntLeft.x,I.pntLeft.y)),E=2;E=0;--v)b.push(A[v]);if(0==this.dashLines.length)this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,b,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[b[2],b[1],b[7],b[6]],{surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[b[6],b[5],b[4],b[3],b[2]],{lineTypeLimit:!0,surroundLineFlag:!1});else{var m=[];m.push(b[0]),m.push(b[1]);for(var L=this.mergeDashLine(this.dashLines,[]),O=this.computeDashLine(L,m),T=0;T=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),o=SuperMapAlgoPlot.ArrowToolkit.beforePtsCrossZone(o).pts;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),n=o[0].clone(),i=o[1].clone(),r=e.clone();if(0==t){var a=SuperMapAlgoPlot.PlottingUtil.distance(r,n)/l;this.scaleValues[0]=a}else if(1==t){var s=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,i),p=SuperMapAlgoPlot.PlottingUtil.distance(s,r)/l;this.scaleValues[1]=p;var u=SuperMapAlgoPlot.PlottingUtil.distance(s,i)/l;this.scaleValues[3]=u}else if(2==t){var c=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,i),P=SuperMapAlgoPlot.PlottingUtil.distance(c,r)/l;this.scaleValues[2]=P;var g=SuperMapAlgoPlot.PlottingUtil.distance(c,i)/l;this.scaleValues[4]=g}}this.calculateParts()}}])&&Pn(e.prototype,o),l&&Pn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Sn(t){"@babel/helpers - typeof";return(Sn="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})(t)}function An(t,e){for(var o=0;o=0;--x)w.push(L[x]);var R=SuperMapAlgoPlot.PlottingUtil.clonePoints(w);R.push(R[0]),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,R,{lineWidthLimit:!0,strokeWidth:0,weight:0,surroundLineFlag:!1}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[w[0],w[1]]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[w[2],w[3]]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[w[3],w[4],w[5],w[6],w[7]],{lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[w[7],w[8]]),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[w[9],w[10]]),this.scalePoints=[];var U=L[0].clone();U.isScalePoint=!0,U.tag=0,this.scalePoints.push(U);var E=L[3].clone();E.isScalePoint=!0,E.tag=1,this.scalePoints.push(E);var C=L[4].clone();C.isScalePoint=!0,C.tag=2,this.scalePoints.push(C),this.scalePoints=SuperMapAlgoPlot.ArrowToolkit.afterPtsCrossZone(this.scalePoints),this.finish()}}},{key:"modifyPoint",value:function(t,e){if(e.isScalePoint&&(t>=0||t<3)){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),o=SuperMapAlgoPlot.ArrowToolkit.beforePtsCrossZone(o).pts;var l=SuperMapAlgoPlot.PlottingUtil.distance(o[0],o[1]),n=o[0].clone(),i=o[1].clone(),r=e.clone();if(0==t){var a=SuperMapAlgoPlot.PlottingUtil.distance(r,n)/l;this.scaleValues[0]=a}else if(1==t){var s=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,i),p=SuperMapAlgoPlot.PlottingUtil.distance(s,r)/l;this.scaleValues[1]=p;var u=SuperMapAlgoPlot.PlottingUtil.distance(s,i)/l;this.scaleValues[3]=u}else if(2==t){var c=SuperMapAlgoPlot.PlottingUtil.projectPoint(r,n,i),P=SuperMapAlgoPlot.PlottingUtil.distance(c,r)/l;this.scaleValues[2]=P;var g=SuperMapAlgoPlot.PlottingUtil.distance(c,i)/l;this.scaleValues[4]=g}}this.calculateParts()}}])&&An(e.prototype,o),l&&An(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function mn(t){"@babel/helpers - typeof";return(mn="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})(t)}function Ln(t,e){for(var o=0;o=2&&t.length0&&(this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o.shapePts,{strokeWidth:0,weight:0,lineWidthLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,i),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,r),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.LeftArowHead,{lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.LeftArowRightBody),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,P),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,g),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,o.RightArowHead,{lineTypeLimit:!0}),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,M),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,d)),this.scalePoints=[];for(var L=0;Lthis.SV1_MaxValue&&(l=this.SV1_MaxValue)}else l=SuperMapAlgoPlot.PlottingUtil.distance(a.projectPoint,i)=2&&t.length.3||n<=0)&&(n=.3),this.scaleValues[2]=n,this.scaleValues[0]=.5*this.scaleValues[2]}for(var i=this.scaleValues[0]*l,r=this.scaleValues[1],a=this.scaleValues[2]*l,s=.5*i,p=o-2*a-2*s,u=a,c=0;c<2;c++){var P=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(u,e);if(-1!==P.index){var g=u+s,y=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(g,e);if(-1!==y.index){var h=[],f=[];if(h.push(P.pts),SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e[P.index].x,P.pts.x)&&SuperMapAlgoPlot.PlottingUtil.equalFuzzy(e[P.index].y,P.pts.y)&&P.index+1.7&&(f=.7),this.scaleValues[2]=f}}}}])&&Fn(e.prototype,o),l&&Fn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Jn(t){"@babel/helpers - typeof";return(Jn="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})(t)}function Zn(t,e){for(var o=0;ot[n].x&&(o=t[n].x),l1)for(var p=0;p0&&(g=!0),b=[];for(var w=new SuperMapAlgoPlot.Point(h,u.y),x=SuperMapAlgoPlot.PlottingUtil.circlePoint(w,5,5,45),R=0;R0&&(g=!0),y-=P,h+=P}this.finish()}}},{key:"sortPts2D",value:function(t){for(var e=new SuperMapAlgoPlot.Point(0,0),o=0;ot[l+1].y&&(e=t[l],t[l]=t[l+1],t[l+1]=e):t[l].x>t[l+1].x&&(e=t[l],t[l]=t[l+1],t[l+1]=e);return t}}])&&Zn(e.prototype,o),l&&Zn(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function ti(t){"@babel/helpers - typeof";return(ti="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})(t)}function ei(t,e){for(var o=0;o.3&&(S=.3),this.scaleValues[1]=S}}}}])&&gi(e.prototype,o),l&&gi(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ai(t){"@babel/helpers - typeof";return(Ai="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})(t)}function Mi(t,e){for(var o=0;o.3||o<=0)&&(o=.3),this.scaleValues[1]=o,this.scaleValues[2]=.5*o}var l=this.getLinePts(e,this.scaleValues[1],this.scaleValues[0]),n=new SuperMapAlgoPlot.Point((l.startPt.x+l.endPt.x)/2,(l.startPt.y+l.endPt.y)/2),i=SuperMapAlgoPlot.PlottingUtil.dirAngle(l.startPt,l.endPt)*SuperMapAlgoPlot.PlottingUtil.RTOD,r=SuperMapAlgoPlot.PlottingUtil.distance(l.startPt,l.endPt);this.addSubSymbols(n,r,i);for(var a=[],s=0;s<=l.startIndex;s++)a.push(e[s]);a.push(l.startPt);var p=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e),u=[];u.push(0),u.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,l.startPt)/p),u.push(SuperMapAlgoPlot.PlottingUtil.getLineDistance(e,l.endPt)/p),u.push(1);for(var c=this.mergeDashLine(this.dashLines,u),P=this.computeDashLine(c,e),g=0;g0&&this.computeSubSymbol(this.subSymbols[0],t,e,o-180)}},{key:"computeScaleValues",value:function(t,e){if(!0===e.isScalePoint){var o=SuperMapAlgoPlot.PlottingUtil.clonePoints(this.controlPoints);if((o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o)).length1-P-this.scaleValues[2]&&(c=1-P-this.scaleValues[2]),this.scaleValues[0]=c}else if(1===t){var g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n*this.scaleValues[0],l),y=SuperMapAlgoPlot.PlottingUtil.distance(g.pts,e)/n;y>=.3&&(y=.3),this.scaleValues[0]1-y-this.scaleValues[2]?(this.scaleValues[0].3||e<=0)&&(e=.3),this.scaleValues[0]=e,this.scaleValues[3]=.5*e}SuperMapAlgoPlot.PlottingUtil.polylineDistance(t);var o=SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t);o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o);var l=SuperMapAlgoPlot.PlottingUtil.polylineDistance(o),n=l*this.scaleValues[0],i=(this.scaleValues[1],this.scaleValues[2],this.getLinePts(o,this.scaleValues[0]/2,this.scaleValues[1])),r=this.getLinePts(o,this.scaleValues[0]/2,this.scaleValues[2]),a=new SuperMapAlgoPlot.Point((i.startPt.x+i.endPt.x)/2,(i.startPt.y+i.endPt.y)/2),s=180*SuperMapAlgoPlot.PlottingUtil.radian(i.startPt,i.endPt)/Math.PI;this.createSubSymbol1(a,n,s);var p=new SuperMapAlgoPlot.Point((r.startPt.x+r.endPt.x)/2,(r.startPt.y+r.endPt.y)/2),u=180*SuperMapAlgoPlot.PlottingUtil.radian(r.startPt,r.endPt)/Math.PI;this.createSubSymbol2(p,n,u);var c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,.5*n,.5*n,s+90),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(p,.5*n,.5*n,u+90);this.scalePoints=[],this.addScalePoint(a,0),this.addScalePoint(p,0),this.addScalePoint(c,0),this.addScalePoint(P,0);var g=SuperMapAlgoPlot.PlottingUtil.polylineDistance(t)*this.scaleValues[3],y=SuperMapAlgoPlot.PlottingUtil.linePnt(o[o.length-1],o[o.length-2],g);this.addScalePoint(y);var h=[];h.push(0),this.scaleValues[1]=2?this.addArrow(S[A],this.scaleValues[3]):this.addArrow([o[o.length-2],o[o.length-1]],this.scaleValues[3])),this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,S[A]);this.finish()}}},{key:"createSubSymbol1",value:function(t,e,o){var l=this.getSubSymbolPts(e);this.createSubSymbol(t,e,o,l)}},{key:"createSubSymbol2",value:function(t,e,o){var l=this.getSubSymbolPts(e);this.createSubSymbol(t,e,o,l)}},{key:"createSubSymbol",value:function(t,e,o,l){for(var n=[],i=0;i1-P/2-this.scaleValues[3]&&(c=1-P/2-this.scaleValues[3]),this.scaleValues[1]=c}else if(1==t){var c,P;for(i=0,r=-1,a=null,s=0;s1-P/2-this.scaleValues[3]&&(c=1-P/2-this.scaleValues[3]),this.scaleValues[2]=c}else if(2==t){var g=SuperMapAlgoPlot.PlottingUtil.getPtsIndexByDistance(n*this.scaleValues[1],l),y=2*SuperMapAlgoPlot.PlottingUtil.distance(g.pts,e)/n;this.scaleValues[1]1-y/2-this.scaleValues[3]?(this.scaleValues[1]1-y/2-this.scaleValues[3]?(this.scaleValues[2]=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),o=SuperMapAlgoPlot.PlottingUtil.clearSamePts(o),this.addCell(SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL,o);for(var l=0;l<4;l++){var n=Math.floor(l*o.length/4),i=new SuperMapAlgoPlot.Point(o[n].x,o[n].y),r=new SuperMapAlgoPlot.Point(o[n+1].x,o[n+1].y),a=new SuperMapAlgoPlot.Point((i.x+r.x)/2,(i.y+r.y)/2),s=SuperMapAlgoPlot.PlottingUtil.radian(r,a)*SuperMapAlgoPlot.PlottingUtil.RTOD,p=this.scaleValues[0]*e/2,u=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,s),c=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,4*p,4*p,s+270),P=SuperMapAlgoPlot.PlottingUtil.circlePoint(a,p,p,s+180);this.addCell(SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL,[u,c,P])}this.finish()}}}])&&Zi(e.prototype,o),l&&Zi(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();function tr(t){"@babel/helpers - typeof";return(tr="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})(t)}function er(t,e){for(var o=0;o=t.length?SuperMapAlgoPlot.Primitives.getSpatialData(SuperMapAlgoPlot.SymbolType.KIDNEY,t):SuperMapAlgoPlot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMapAlgoPlot.PlottingUtil.clearSamePts(e);var o=20*this.getSubSymbolScaleValue(),l=.1*this.getSubSymbolScaleValue(),n=SuperMapAlgoPlot.PlottingUtil.polylineDistance(e);o>.05*n?l=.01*(o=.05*n):o<.005*n&&(o=.005*n);for(var i=SuperMapAlgoPlot.PlottingUtil.makeDottedLine(e,o),r=0;r0){var a=i[r-1][i[r-1].length-1],s=i[r][0],p=SuperMapAlgoPlot.PlottingUtil.midPoint(a,s);this.addCell(SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL,[p,new SuperMapAlgoPlot.Point(p.x+l,p.y)],{lineTypeLimit:!0,surroundLineLimit:!0,fillLimit:!0,fillColorLimit:!1,fill:!0})}this.finish()}}}])&&er(e.prototype,o),l&&er(e,l),Object.defineProperty(e,"prototype",{writable:!1}),i}();SuperMapAlgoPlot.AlgoSymbol329=ir;SuperMapAlgoPlot.BasicAlgoSymbolFactory=SuperMapAlgoPlot.BasicAlgoSymbolFactory||{};SuperMapAlgoPlot.BasicAlgoSymbolFactory.getAlgoSymbol=function(t,e,o){if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOL:return new SuperMapAlgoPlot.GeoTooltipBox(o);case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOLM:return new SuperMapAlgoPlot.GeoTooltipBoxM(o);case SuperMapAlgoPlot.SymbolType.PATHTEXT:return new SuperMapAlgoPlot.PathText(o);case SuperMapAlgoPlot.SymbolType.ARROWLINE:return new SuperMapAlgoPlot.ArrowLine(o);case SuperMapAlgoPlot.SymbolType.CURVEEIGHT:return new SuperMapAlgoPlot.CurveEight(o);case SuperMapAlgoPlot.SymbolType.RUNWAY:return new SuperMapAlgoPlot.Runway(o);case SuperMapAlgoPlot.SymbolType.CONCENTRICCIRCLE:return new SuperMapAlgoPlot.ConcentricCircle(o);case SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE:return new SuperMapAlgoPlot.CombinationalCircle(o);case SuperMapAlgoPlot.SymbolType.FREECURVE:return new SuperMapAlgoPlot.FreeCurve(o);case SuperMapAlgoPlot.SymbolType.REGULARPOLYGON:return new SuperMapAlgoPlot.RegularPolygon(o);case SuperMapAlgoPlot.SymbolType.BRACESYMBOL:return new SuperMapAlgoPlot.Brace(o);case SuperMapAlgoPlot.SymbolType.TRAPEZOIDSYMBOL:return new SuperMapAlgoPlot.Trapezoid(o);case SuperMapAlgoPlot.SymbolType.SYMBOLTEXTBOX:return new SuperMapAlgoPlot.SymbolTextBox(o);case SuperMapAlgoPlot.SymbolType.NODECHAIN:return new SuperMapAlgoPlot.NodeChain(o);case SuperMapAlgoPlot.SymbolType.LINERELATION:return new SuperMapAlgoPlot.LineRelation(o);case SuperMapAlgoPlot.SymbolType.LINEMARKING:return new SuperMapAlgoPlot.LineMarking(o);case SuperMapAlgoPlot.SymbolType.POLYGONREGION:return new SuperMapAlgoPlot.PolygonRegion(o);case SuperMapAlgoPlot.SymbolType.WIRE:return new SuperMapAlgoPlot.Wire(o);case SuperMapAlgoPlot.SymbolType.LINEARARROW:return new SuperMapAlgoPlot.LinearArrow(o);case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:return new SuperMapAlgoPlot.Polybezier(o);case SuperMapAlgoPlot.SymbolType.NEWPIESYMBOL:return new SuperMapAlgoPlot.NewPie(o);case SuperMapAlgoPlot.SymbolType.NEWARCSYMBOL:return new SuperMapAlgoPlot.NewArc(o);case SuperMapAlgoPlot.SymbolType.NEWCHORDSYMBOL:return new SuperMapAlgoPlot.NewChord(o);default:return new SuperMapAlgoPlot.AlgoSymbol(o)}else if(22===t)switch(e){case 1001:return new SuperMapAlgoPlot.AlgoSymbol1001(o);case 1002:return new SuperMapAlgoPlot.AlgoSymbol1002(o);case 1003:return new SuperMapAlgoPlot.AlgoSymbol1003(o);case 1004:return new SuperMapAlgoPlot.AlgoSymbol1004(o);case 1005:return new SuperMapAlgoPlot.AlgoSymbol1005(o);case 1006:return new SuperMapAlgoPlot.AlgoSymbol1006(o);case 1007:return new SuperMapAlgoPlot.AlgoSymbol1007(o);case 1008:return new SuperMapAlgoPlot.AlgoSymbol1008(o);case 1009:return new SuperMapAlgoPlot.AlgoSymbol1009(o);case 1010:return new SuperMapAlgoPlot.AlgoSymbol1010(o);case 1011:return new SuperMapAlgoPlot.AlgoSymbol1011(o);case 1012:return new SuperMapAlgoPlot.AlgoSymbol1012(o);case 1013:return new SuperMapAlgoPlot.AlgoSymbol1013(o);case 1014:return new SuperMapAlgoPlot.AlgoSymbol1014(o);case 1015:return new SuperMapAlgoPlot.AlgoSymbol1015(o);case 1016:return new SuperMapAlgoPlot.AlgoSymbol1016(o);case 1017:return new SuperMapAlgoPlot.AlgoSymbol1017(o);case 1018:return new SuperMapAlgoPlot.AlgoSymbol1018(o);case 1019:return new SuperMapAlgoPlot.AlgoSymbol1019(o);case 1020:return new SuperMapAlgoPlot.AlgoSymbol1020(o);case 1021:return new SuperMapAlgoPlot.AlgoSymbol1021(o);case 1022:return new SuperMapAlgoPlot.AlgoSymbol1022(o);default:return null}else{if(421!==t)return null;switch(e){case 311:return new SuperMapAlgoPlot.AlgoSymbol1004(o);case 315:return new SuperMapAlgoPlot.AlgoSymbol315(o);case 317:return new SuperMapAlgoPlot.AlgoSymbol1006(o);case 318:return new SuperMapAlgoPlot.AlgoSymbol1002(o);case 319:return new SuperMapAlgoPlot.AlgoSymbol15200(o);case 320:return new SuperMapAlgoPlot.AlgoSymbol320(o);case 321:return new SuperMapAlgoPlot.AlgoSymbol321(o);case 322:return new SuperMapAlgoPlot.AlgoSymbol322(o);case 323:return new SuperMapAlgoPlot.AlgoSymbol25701(o);case 324:return new SuperMapAlgoPlot.AlgoSymbol3010106(o);case 325:return new SuperMapAlgoPlot.AlgoSymbol15200(o);case 326:return new SuperMapAlgoPlot.AlgoSymbol326(o);case 327:return new SuperMapAlgoPlot.AlgoSymbol327(o);case 328:return new SuperMapAlgoPlot.AlgoSymbol328(o);case 329:return new SuperMapAlgoPlot.AlgoSymbol329(o);case 330:return new SuperMapAlgoPlot.AlgoSymbol330(o);case 331:return new SuperMapAlgoPlot.AlgoSymbol29101(o);default:return null}}},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:case SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:case SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}else if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:case 1017:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}},SuperMapAlgoPlot.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:case 323:case 324:case 325:case 326:case 327:case 328:case 329:case 330:case 331:return!1;default:return!0}},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getDefaultSubSymbols=function(){return[]},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getMinEditPts=function(t,e){if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.TEXTSYMBOL:case SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE:return 1;case SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL:case SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL:case SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:case SuperMapAlgoPlot.SymbolType.KIDNEY:case SuperMapAlgoPlot.SymbolType.ARROWLINE:case SuperMapAlgoPlot.SymbolType.BRACESYMBOL:case SuperMapAlgoPlot.SymbolType.CURVEEIGHT:case SuperMapAlgoPlot.SymbolType.FREECURVE:case SuperMapAlgoPlot.SymbolType.LINEMARKING:case SuperMapAlgoPlot.SymbolType.LINERELATION:case SuperMapAlgoPlot.SymbolType.NODECHAIN:case SuperMapAlgoPlot.SymbolType.PATHTEXT:case SuperMapAlgoPlot.SymbolType.REGULARPOLYGON:case SuperMapAlgoPlot.SymbolType.RUNWAY:case SuperMapAlgoPlot.SymbolType.SYMBOLTEXTBOX:case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOLM:case SuperMapAlgoPlot.SymbolType.CONCENTRICCIRCLE:case SuperMapAlgoPlot.SymbolType.WIRE:case SuperMapAlgoPlot.SymbolType.LINEARARROW:return 2;case SuperMapAlgoPlot.SymbolType.ARCSYMBOL:case SuperMapAlgoPlot.SymbolType.CHORDSYMBOL:case SuperMapAlgoPlot.SymbolType.PIESYMBOL:case SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL:case SuperMapAlgoPlot.SymbolType.PARALLELOGRAM:case SuperMapAlgoPlot.SymbolType.PARALLELLINE:case SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMapAlgoPlot.SymbolType.POLYGONREGION:case SuperMapAlgoPlot.SymbolType.TRAPEZOIDSYMBOL:case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOL:case SuperMapAlgoPlot.SymbolType.NEWARCSYMBOL:case SuperMapAlgoPlot.SymbolType.NEWPIESYMBOL:case SuperMapAlgoPlot.SymbolType.NEWCHORDSYMBOL: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:case 324:case 325:case 326:case 327:case 328:case 329:case 330:case 331:return 2;case 311:case 315:case 317:case 318:case 322:case 323:return 3}},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getMaxEditPts=function(t,e){if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.TEXTSYMBOL:return 1;case SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL:case SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL:case SuperMapAlgoPlot.SymbolType.BRACESYMBOL:case SuperMapAlgoPlot.SymbolType.LINEMARKING:case SuperMapAlgoPlot.SymbolType.LINERELATION:case SuperMapAlgoPlot.SymbolType.RUNWAY:case SuperMapAlgoPlot.SymbolType.SYMBOLTEXTBOX:case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOLM:case SuperMapAlgoPlot.SymbolType.LINEARARROW:return 2;case SuperMapAlgoPlot.SymbolType.ARCSYMBOL:case SuperMapAlgoPlot.SymbolType.CHORDSYMBOL:case SuperMapAlgoPlot.SymbolType.PIESYMBOL:case SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL:case SuperMapAlgoPlot.SymbolType.PARALLELOGRAM:case SuperMapAlgoPlot.SymbolType.KIDNEY:case SuperMapAlgoPlot.SymbolType.CURVEEIGHT:case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOL:case SuperMapAlgoPlot.SymbolType.TRAPEZOIDSYMBOL:case SuperMapAlgoPlot.SymbolType.NEWARCSYMBOL:case SuperMapAlgoPlot.SymbolType.NEWPIESYMBOL:case SuperMapAlgoPlot.SymbolType.NEWCHORDSYMBOL:return 3;case SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:case SuperMapAlgoPlot.SymbolType.PARALLELLINE:case SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL:case SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL:case SuperMapAlgoPlot.SymbolType.ARROWLINE:case SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE:case SuperMapAlgoPlot.SymbolType.FREECURVE:case SuperMapAlgoPlot.SymbolType.NODECHAIN:case SuperMapAlgoPlot.SymbolType.PATHTEXT:case SuperMapAlgoPlot.SymbolType.POLYGONREGION:case SuperMapAlgoPlot.SymbolType.REGULARPOLYGON:case SuperMapAlgoPlot.SymbolType.WIRE:case SuperMapAlgoPlot.SymbolType.CONCENTRICCIRCLE: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 329:case 330:case 331:return 3;case 317:return 4;case 323:return 1e3;case 311:case 315:case 318:case 319:case 321:case 322:case 324:case 325:case 326:case 327:case 328:return 99999}},SuperMapAlgoPlot.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},SuperMapAlgoPlot.BasicAlgoSymbolFactory.zoomInCalSymbol=function(){if(22!==libID)return!1;switch(code){case 1012:case 1013:case 1014:case 1015:return!0;default:return!1}},SuperMapAlgoPlot.BasicAlgoSymbolFactory.zoomCalSymbol=function(){return!1},SuperMapAlgoPlot.BasicAlgoSymbolFactory.getSymbolName=function(t,e){var o="";if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.TEXTSYMBOL:o="文本";break;case SuperMapAlgoPlot.SymbolType.CIRCLESYMBOL:o="圆";break;case SuperMapAlgoPlot.SymbolType.RECTANGLESYMBOL:o="矩形";break;case SuperMapAlgoPlot.SymbolType.ARCSYMBOL:o="弧线";break;case SuperMapAlgoPlot.SymbolType.CHORDSYMBOL:o="弓形";break;case SuperMapAlgoPlot.SymbolType.PIESYMBOL:o="扇形";break;case SuperMapAlgoPlot.SymbolType.ELLIPSESYMBOL:o="椭圆";break;case SuperMapAlgoPlot.SymbolType.PARALLELOGRAM:o="平行四边形";break;case SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL:o="多边形";break;case SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:o="折线";break;case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:o="贝赛尔曲线";break;case SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL:o="闭合贝塞尔曲线";break;case SuperMapAlgoPlot.SymbolType.PARALLELLINE:o="平行线";break;case SuperMapAlgoPlot.SymbolType.KIDNEY:o="集结地";break;case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOL:o="注记指示框";break;case SuperMapAlgoPlot.SymbolType.ARROWLINE:o="箭头线";break;case SuperMapAlgoPlot.SymbolType.COMBINATIONALCIRCLE:o="组合圆";break;case SuperMapAlgoPlot.SymbolType.CONCENTRICCIRCLE:o="同心圆";break;case SuperMapAlgoPlot.SymbolType.CURVEEIGHT:o="八字形";break;case SuperMapAlgoPlot.SymbolType.FREECURVE:o="自由线";break;case SuperMapAlgoPlot.SymbolType.ANNOFRAMESYMBOLM:o="多角标注框";break;case SuperMapAlgoPlot.SymbolType.LINEMARKING:o="线型标注";break;case SuperMapAlgoPlot.SymbolType.LINERELATION:o="对象间连线";break;case SuperMapAlgoPlot.SymbolType.NODECHAIN:o="节点链";break;case SuperMapAlgoPlot.SymbolType.PATHTEXT:o="沿线注记";break;case SuperMapAlgoPlot.SymbolType.POLYGONREGION:o="多边形区域管理";break;case SuperMapAlgoPlot.SymbolType.RUNWAY:o="跑道线";break;case SuperMapAlgoPlot.SymbolType.SYMBOLTEXTBOX:o="标注框";break;case SuperMapAlgoPlot.SymbolType.REGULARPOLYGON:o="正多边形";break;case SuperMapAlgoPlot.SymbolType.BRACESYMBOL:o="大括号";break;case SuperMapAlgoPlot.SymbolType.TRAPEZOIDSYMBOL:o="梯形";break;case SuperMapAlgoPlot.SymbolType.WIRE:o="铁丝网";break;case SuperMapAlgoPlot.SymbolType.LINEARARROW:o="直线箭头";break;case SuperMapAlgoPlot.SymbolType.NEWPIESYMBOL:o="扇形";break;case SuperMapAlgoPlot.SymbolType.NEWARCSYMBOL:o="弧线";break;case SuperMapAlgoPlot.SymbolType.NEWCHORDSYMBOL:o="弓形"}return o};SuperMapAlgoPlot.AlgoSymbolFactory=SuperMapAlgoPlot.AlgoSymbolFactory||{};SuperMapAlgoPlot.AlgoSymbolFactory.getAlgoSymbol=function(t){var e=t.libID,o=t.code;return 0!==e&&22!==e&&421!==e||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===e&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.getAlgoSymbol(e,o,t):123===e&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.getAlgoSymbol(e,o,t):999===e&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.getAlgoSymbol(e,o,t):null:SuperMapAlgoPlot.BasicAlgoSymbolFactory.getAlgoSymbol(e,o,t)},SuperMapAlgoPlot.AlgoSymbolFactory.getSymbolWayType=function(t,e){if(0===t)switch(e){case SuperMapAlgoPlot.SymbolType.POLYLINESYMBOL:case SuperMapAlgoPlot.SymbolType.ARBITRARYPOLYGONSYMBOL:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;case SuperMapAlgoPlot.SymbolType.POLYBEZIERSYMBOL:case SuperMapAlgoPlot.SymbolType.POLYBEZIERCLOSESYMBOL:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}if(22===t)switch(e){case 1005:case 1008:case 1012:case 1014:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;case 1007:case 1009:case 1013:case 1015:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;default:return SuperMapAlgoPlot.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 SuperMapAlgoPlot.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 SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;default:return SuperMapAlgoPlot.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 SuperMapAlgoPlot.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 SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}},SuperMapAlgoPlot.AlgoSymbolFactory.isAccessServer=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.isAccessServer(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.isAccessServer(t,e):999!==t||void 0===SuperMapAlgoPlot.YJAlgoSymbolFactory||SuperMapAlgoPlot.YJAlgoSymbolFactory.isAccessServer(t,e):SuperMapAlgoPlot.BasicAlgoSymbolFactory.isAccessServer(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.getDefaultSubSymbols=function(t,e){return 100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.getDefaultSubSymbols(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.getDefaultSubSymbols(t,e):999===t&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.getDefaultSubSymbols(t,e):[]},SuperMapAlgoPlot.AlgoSymbolFactory.getMinEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.getMinEditPts(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.getMinEditPts(t,e):999===t&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.getMinEditPts(t,e):0:SuperMapAlgoPlot.BasicAlgoSymbolFactory.getMinEditPts(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.getMaxEditPts=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.getMaxEditPts(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.getMaxEditPts(t,e):999===t&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.getMaxEditPts(t,e):0:SuperMapAlgoPlot.BasicAlgoSymbolFactory.getMaxEditPts(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.getDefaultStyle=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.getDefaultStyle(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.getDefaultStyle(t,e):999===t&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.getDefaultStyle(t,e):{}:SuperMapAlgoPlot.BasicAlgoSymbolFactory.getDefaultStyle(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.getSymbolName=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?"":SuperMapAlgoPlot.BasicAlgoSymbolFactory.getSymbolName(t,e)},SuperMapAlgoPlot.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 2730101:case 3032e3:case 4010800:case 4010801:case 4011100:case 4011101:case 4022100:case 4022101:case 4022102:return!0;default:return!1}},SuperMapAlgoPlot.AlgoSymbolFactory.zoomInCalSymbol=function(t,e){return 0!==t&&22!==t&&421!==t||void 0===SuperMapAlgoPlot.BasicAlgoSymbolFactory?100===t&&void 0!==SuperMapAlgoPlot.JBAlgoSymbolFactory?SuperMapAlgoPlot.JBAlgoSymbolFactory.zoomInCalSymbol(t,e):123===t&&void 0!==SuperMapAlgoPlot.WJAlgoSymbolFactory?SuperMapAlgoPlot.WJAlgoSymbolFactory.zoomInCalSymbol(t,e):999===t&&void 0!==SuperMapAlgoPlot.YJAlgoSymbolFactory?SuperMapAlgoPlot.YJAlgoSymbolFactory.zoomInCalSymbol(t,e):0:SuperMapAlgoPlot.BasicAlgoSymbolFactory.zoomInCalSymbol(t,e)},SuperMapAlgoPlot.AlgoSymbolFactory.zoomCalSymbol=function(t,e){if((0===t||22===t||421===t)&&void 0!==SuperMapAlgoPlot.BasicAlgoSymbolFactory)return SuperMapAlgoPlot.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===SuperMapAlgoPlot.WJAlgoSymbolFactory)return!1;switch(e){case 50312:case 50313:case 50314:case 50348:return!0;default:return!1}}},SuperMapAlgoPlot.AlgoSymbolFactory.calSurroundLineDir=function(t,e){if(22===t)switch(e){case 1018:case 1020:case 1021:return!1}return SuperMapAlgoPlot.AlgoSymbolFactory.getAlgoWayType(t,e)===SuperMapAlgoPlot.AddPoint_WayType.POLYLINE_CLOSE||SuperMapAlgoPlot.AlgoSymbolFactory.getAlgoWayType(t,e)===SuperMapAlgoPlot.AddPoint_WayType.CURVE_CLOSE},SuperMapAlgoPlot.AlgoSymbolFactory.getAlgoWayType=function(t,e){if(100===t)switch(e){case 24:case 40304:case 1e3:case 1007:case 1009:case 1016:case 12502:case 20300:case 26400:case 41100:case 50308:case 2092101:case 60301:case 6030101:case 6030102:case 6030103:case 6030104:case 6030105:case 6030106:case 6030107:case 1013:case 1015:case 520100:case 520200:case 21216:case 2121601:case 2121602:case 30020:case 3002001:case 3002002:case 3002005:case 30025:case 3002501:case 30026:case 3002601:case 30027:case 3002701:case 3002702:case 3002703:case 3002704:case 3002705:case 40104:case 36401:case 34700:case 32900:case 6020404:case 30013:case 3001302:case 30014:case 1001:case 1017:case 16e3:case 16001:case 25202:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE;case 32:case 3020901:case 25501:case 25502:case 25503:case 25601:case 25701:case 2570201:case 2570301:case 2570401:case 2570501:case 25801:case 25901:case 44400:case 41200:case 41201:case 41202:case 30010:case 30011:case 30012:case 3001101:case 3001102:case 3001103:case 3001104:case 3001105:case 5035205:case 16100:case 35304:case 35200:case 50225:case 5020801:case 42700:case 25500:case 25600:case 25700:case 25800:case 25900:return SuperMapAlgoPlot.AddPoint_WayType.POLYLINE_CLOSE;case 40301:case 4030301:case 4030302:case 4030303:case 5010301:case 5010303:case 5010304:case 1005:case 1008:case 15200:case 15201:case 21400:case 21401:case 21500:case 21501:case 21502:case 21503:case 21504:case 21900:case 21600:case 26500:case 26501:case 26502:case 26503:case 26600:case 3000801:case 3000802:case 3000803:case 3000804:case 3000805:case 3000806:case 3000807:case 3000808:case 3000809:case 5034203:case 50355:case 5035501:case 60205:case 1012:case 1014:case 3010102:case 3010103:case 3010104:case 3010105:case 3010106:case 3010107:case 3010108:case 3010301:case 3010302:case 3010303:case 3010304:case 50102:case 4021101:case 510100:case 520300:case 530100:case 530200:case 16203:case 22e3:case 22103:case 25201:case 24700:case 25400:case 44200:case 31803:case 30800:case 30201:case 30200:case 5022002:case 3002004:case 5030301:case 50328:case 5033001:case 5022001:case 4021102:case 29003:case 30009:case 5035201:case 520500:case 23800:case 36400:case 35e3:case 33400:case 30100:case 30102:case 30002:case 30001:case 3e4:case 29903:case 5021803:case 50321:case 5032003:case 4020303:case 4020400:case 4020401:case 4020402:case 34902:case 34901:case 34900:case 12501:case 15800:case 15801:case 15802:case 15803:case 15804:case 15805:case 15806:case 15900:case 2091503:case 28900:case 16201:case 39600:case 38600:case 36700:case 26601:case 16200:case 17700:case 90213:return SuperMapAlgoPlot.AddPoint_WayType.CURVE;case 50342:case 5034201:case 5034202:case 610100:case 29103:case 28300:case 28200:case 17400:case 17401:case 17402:case 17500:case 17501:case 22200:case 23400:case 23500:case 2350001:case 23600:case 23700:case 27300:case 2730101:case 27701:case 28400:case 44300:case 42400:case 42200:case 40100:case 40101:case 39101:case 39e3:case 37700:case 37601:case 37600:case 5020802:case 50223:case 5022301:case 50226:case 21221:case 2122101:case 50108:case 3032e3:case 4011100:case 4011101:case 4022101:case 4022102:case 4022100:case 16500:case 80203:case 8020301:return SuperMapAlgoPlot.AddPoint_WayType.CURVE_CLOSE;case 17703:case 17704:case 39801:case 39802:case 39800:case 40900:case 4e4:return SuperMapAlgoPlot.AddPoint_WayType.CURVE_WITHCONTROLPT;default:return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}return SuperMapAlgoPlot.AddPoint_WayType.UNKNOWN}}(); /***/ }), /* 5 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(4); __webpack_require__(1); __webpack_require__(2); __webpack_require__(3); __webpack_require__(0); /***/ }), /* 6 */ /***/ (function(module, exports) { // shim for using process in browser var process = module.exports = {}; // cached from whatever global is present so that test runners that stub it // don't break things. But we need to wrap it in a try catch in case it is // wrapped in strict mode code which doesn't define any globals. It's inside a // function because try/catches deoptimize in certain engines. var cachedSetTimeout; var cachedClearTimeout; function defaultSetTimout() { throw new Error('setTimeout has not been defined'); } function defaultClearTimeout () { throw new Error('clearTimeout has not been defined'); } (function () { try { if (typeof setTimeout === 'function') { cachedSetTimeout = setTimeout; } else { cachedSetTimeout = defaultSetTimout; } } catch (e) { cachedSetTimeout = defaultSetTimout; } try { if (typeof clearTimeout === 'function') { cachedClearTimeout = clearTimeout; } else { cachedClearTimeout = defaultClearTimeout; } } catch (e) { cachedClearTimeout = defaultClearTimeout; } } ()) function runTimeout(fun) { if (cachedSetTimeout === setTimeout) { //normal enviroments in sane situations return setTimeout(fun, 0); } // if setTimeout wasn't available but was latter defined if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { cachedSetTimeout = setTimeout; return setTimeout(fun, 0); } try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedSetTimeout(fun, 0); } catch(e){ try { // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally return cachedSetTimeout.call(null, fun, 0); } catch(e){ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error return cachedSetTimeout.call(this, fun, 0); } } } function runClearTimeout(marker) { if (cachedClearTimeout === clearTimeout) { //normal enviroments in sane situations return clearTimeout(marker); } // if clearTimeout wasn't available but was latter defined if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { cachedClearTimeout = clearTimeout; return clearTimeout(marker); } try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedClearTimeout(marker); } catch (e){ try { // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally return cachedClearTimeout.call(null, marker); } catch (e){ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. // Some versions of I.E. have different rules for clearTimeout vs setTimeout return cachedClearTimeout.call(this, marker); } } } var queue = []; var draining = false; var currentQueue; var queueIndex = -1; function cleanUpNextTick() { if (!draining || !currentQueue) { return; } draining = false; if (currentQueue.length) { queue = currentQueue.concat(queue); } else { queueIndex = -1; } if (queue.length) { drainQueue(); } } function drainQueue() { if (draining) { return; } var timeout = runTimeout(cleanUpNextTick); draining = true; var len = queue.length; while(len) { currentQueue = queue; queue = []; while (++queueIndex < len) { if (currentQueue) { currentQueue[queueIndex].run(); } } queueIndex = -1; len = queue.length; } currentQueue = null; draining = false; runClearTimeout(timeout); } process.nextTick = function (fun) { var args = new Array(arguments.length - 1); if (arguments.length > 1) { for (var i = 1; i < arguments.length; i++) { args[i - 1] = arguments[i]; } } queue.push(new Item(fun, args)); if (queue.length === 1 && !draining) { runTimeout(drainQueue); } }; // v8 likes predictible objects function Item(fun, array) { this.fun = fun; this.array = array; } Item.prototype.run = function () { this.fun.apply(null, this.array); }; process.title = 'browser'; process.browser = true; process.env = {}; process.argv = []; process.version = ''; // empty string to avoid regexp issues process.versions = {}; function noop() {} process.on = noop; process.addListener = noop; process.once = noop; process.off = noop; process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; process.prependListener = noop; process.prependOnceListener = noop; process.listeners = function (name) { return [] } process.binding = function (name) { throw new Error('process.binding is not supported'); }; process.cwd = function () { return '/' }; process.chdir = function (dir) { throw new Error('process.chdir is not supported'); }; process.umask = function() { return 0; }; /***/ }) /******/ ]);