@mapgis/webclient-common 17.2.4 → 17.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/es5/webclient-common.min.js +1 -1
- package/dist/webclient-common-es6.min.js +1 -1
- package/documention/ModelCacheLayer.html +1203 -0
- package/documention/S3MTilesCacheLayer.html +4 -283
- package/documention/TimeExtent.html +963 -0
- package/documention/TimeInfo.html +1485 -0
- package/documention/TimeInterval.html +959 -0
- package/documention/VoxelFilter.html +963 -0
- package/package.json +1 -1
|
@@ -86,7 +86,7 @@ function(e){if(null==e)throw new TypeError("Object.assign cannot be called with
|
|
|
86
86
|
*
|
|
87
87
|
* You should have received a copy of the GNU Affero General Public License
|
|
88
88
|
* along with MarchingSquaresJS. If not, see <http://www.gnu.org/licenses/>.
|
|
89
|
-
*/(e,n),a=[],s=0;s<o.length;s++){for(var u=o[s],l=[],c=0;c<u.length;c++){var h=u[c];h.properties[r]?l.push(h.properties[r]):l.push(0),!0===i&&(h.properties.matrixPosition=[s,c])}a.push(l)}return a}(e,{zProperty:n,flip:!0}),s=function(e,t,r){for(var n=[],i=1;i<t.length;i++){var o=+t[i-1],a=+t[i],s=ko(wo(Ii(e,o,a-o))),u={};u.groupedRings=s,u[r]=o+"-"+a,n.push(u)}return n}(a,t,n);return p((s=function(e,t,r){var n=K(r),i=n[2]-n[0],o=n[3]-n[1],a=n[0],s=n[1],u=i/(t[0].length-1),l=o/(t.length-1),c=function(e){e[0]=e[0]*u+a,e[1]=e[1]*l+s};return e.forEach(function(e){e.groupedRings.forEach(function(e){e.forEach(function(e){e.forEach(c)})})}),e}(s,a,e)).map(function(e,t){if(o[t]&&!L(o[t]))throw new Error("Each mappedProperty is required to be an Object");var r=ce({},i,o[t]);return r[n]=e[n],m(e.groupedRings,r)}))},t.isolines=function(e,t,r){if(!L(r=r||{}))throw new Error("options is invalid");var n=r.zProperty||"elevation",i=r.commonProperties||{},o=r.breaksProperties||[];if(ne(e,"Point","Input must contain Points"),!t)throw new Error("breaks is required");if(!Array.isArray(t))throw new Error("breaks must be an Array");if(!L(i))throw new Error("commonProperties must be an Object");if(!Array.isArray(o))throw new Error("breaksProperties must be an Array");var a=function(e,t){if(!L(t=t||{}))throw new Error("options is invalid");var r=t.zProperty||"elevation",n=t.flip,i=t.flags;ne(e,"Point","input must contain Points");for(var o=function(e,t){var r={};return A(e,function(e){var t=$(e)[1];r[t]||(r[t]=[]),r[t].push(e)}),Object.keys(r).map(function(e){return r[e].sort(function(e,t){return $(e)[0]-$(t)[0]})}).sort(function(e,r){return t?$(e[0])[1]-$(r[0])[1]:$(r[0])[1]-$(e[0])[1]})}(e,n),a=[],s=0;s<o.length;s++){for(var u=o[s],l=[],c=0;c<u.length;c++){var h=u[c];h.properties[r]?l.push(h.properties[r]):l.push(0),!0===i&&(h.properties.matrixPosition=[s,c])}a.push(l)}return a}(e,{zProperty:n,flip:!0});return p(function(e,t,r){var n=K(r),i=n[2]-n[0],o=n[3]-n[1],a=n[0],s=n[1],u=i/(t[0].length-1),l=o/(t.length-1),c=function(e){e[0]=e[0]*u+a,e[1]=e[1]*l+s};return e.forEach(function(e){O(e,c)}),e}(function(e,t,r,n,i){for(var o=[],a=1;a<t.length;a++){var s=+t[a],u=ce({},n,i[a]);u[r]=s;var l=y(de(e,s),u);o.push(l)}return o}(a,t,n,i,o),a,e))},t.kinks=function(e){var t,r,n={type:"FeatureCollection",features:[]};if("LineString"===(r="Feature"===e.type?e.geometry:e).type)t=[r.coordinates];else if("MultiLineString"===r.type)t=r.coordinates;else if("MultiPolygon"===r.type)t=[].concat.apply([],r.coordinates);else{if("Polygon"!==r.type)throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");t=r.coordinates}return t.forEach(function(e){t.forEach(function(t){for(var r=0;r<e.length-1;r++)for(var i=r;i<t.length-1;i++){if(e===t){if(1===Math.abs(r-i))continue;if(0===r&&i===e.length-2&&e[r][0]===e[e.length-1][0]&&e[r][1]===e[e.length-1][1])continue}var o=yn(e[r][0],e[r][1],e[r+1][0],e[r+1][1],t[i][0],t[i][1],t[i+1][0],t[i+1][1]);o&&n.features.push(u([o[0],o[1]]))}})}),n},t.length=wn,t.lengthToDegrees=b,t.lengthToRadians=x,t.lineArc=Kn,t.lineChunk=function(e,t,r){if(!L(r=r||{}))throw new Error("options is invalid");var n=r.units,i=r.reverse;if(!e)throw new Error("geojson is required");if(t<=0)throw new Error("segmentLength must be greater than 0");var o=[];return q(e,function(e){i&&(e.geometry.coordinates=e.geometry.coordinates.reverse()),function(e,t,r,n){var i=wn(e,{units:r});if(i<=t)return n(e);var o=i/t;Number.isInteger(o)||(o=Math.floor(o)+1);for(var a=0;a<o;a++)n(kn(e,t*a,t*(a+1),{units:r}))}(e,t,n,function(e){o.push(e)})}),p(o)},t.lineDistance=wn,t.lineEach=W,t.lineIntersect=un,t.lineOffset=function(e,t,r){if(!L(r=r||{}))throw new Error("options is invalid");var n=r.units;if(!e)throw new Error("geojson is required");if(null==t||isNaN(t))throw new Error("distance is required");var i=oe(e),o=e.properties;switch(i){case"LineString":return No(e,t,n);case"MultiLineString":var a=[];return q(e,function(e){a.push(No(e,t,n).geometry.coordinates)}),y(a,o);default:throw new Error("geometry "+i+" is not supported")}},t.lineOverlap=fi,t.lineReduce=H,t.lineSegment=Gr,t.lineSlice=function(e,t,r){var n=$(r);if("LineString"!==oe(r))throw new Error("line must be a LineString");for(var i,o=cn(r,e),a=cn(r,t),s=[(i=o.properties.index<=a.properties.index?[o,a]:[a,o])[0].geometry.coordinates],u=i[0].properties.index+1;u<i[1].properties.index+1;u++)s.push(n[u]);return s.push(i[1].geometry.coordinates),f(s,r.properties)},t.lineSliceAlong=kn,t.lineSplit=function(e,t){if(!e)throw new Error("line is required");if(!t)throw new Error("splitter is required");var r=oe(e),n=oe(t);if("LineString"!==r)throw new Error("line must be LineString");if("FeatureCollection"===n)throw new Error("splitter cannot be a FeatureCollection");if("GeometryCollection"===n)throw new Error("splitter cannot be a GeometryCollection");var i=Nn(t,{precision:7});switch(n){case"Point":return Xn(e,i);case"MultiPoint":return Hn(e,i);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return Hn(e,un(e,i))}},t.lineString=f,t.lineStringToPolygon=ri,t.lineStrings=d,t.lineToPolygon=ri,t.mask=function(e,t){var r,n=c(t&&t.geometry.coordinates||[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]]);return("FeatureCollection"===e.type?py(2===(r=e).features.length?yu.union(r.features[0].geometry.coordinates,r.features[1].geometry.coordinates):yu.union.apply(yu,r.features.map(function(e){return e.geometry.coordinates}))):py(yu.union(e.geometry.coordinates))).geometry.coordinates.forEach(function(e){n.geometry.coordinates.push(e[0])}),n},t.meta=Z,t.midpoint=function(e,t){return nr(e,mt(e,t)/2,or(e,t))},t.moranIndex=function(e,t){var r=t.inputField,n=t.threshold||1e5,i=t.p||2,o=t.binary||!1,a=ls(e,{alpha:t.alpha||-1,binary:o,p:i,standardization:t.standardization||!0,threshold:n}),s=[];A(e,function(e){var t=e.properties||{};s.push(t[r])});for(var u=cs(s),l=function(e){for(var t=cs(e),r=0,n=0,i=e;n<i.length;n++){var o=i[n];r+=Math.pow(o-t,2)}return r/e.length}(s),c=0,h=0,f=0,d=0,p=a.length,y=0;y<p;y++){for(var g=0,m=0;m<p;m++)c+=a[y][m]*(s[y]-u)*(s[m]-u),h+=a[y][m],f+=Math.pow(a[y][m]+a[m][y],2),g+=a[y][m]+a[m][y];d+=Math.pow(g,2)}var v=c/h/l,_=-1/(p-1),S=(p*p*(f*=.5)-p*d+h*h*3)/((p-1)*(p+1)*(h*h))-_*_,x=Math.sqrt(S);return{expectedMoranIndex:_,moranIndex:v,stdNorm:x,zNorm:(v-_)/x}},t.multiLineString=y,t.multiPoint=g,t.multiPolygon=m,t.nearest=Vr,t.nearestPoint=Vr,t.nearestPointOnLine=cn,t.nearestPointToLine=function(e,t,r){void 0===r&&(r={});var n=r.units,i=r.properties||{},o=function(e){var t=[];switch(e.geometry?e.geometry.type:e.type){case"GeometryCollection":return j(e,function(e){"Point"===e.type&&t.push({type:"Feature",properties:{},geometry:e})}),{type:"FeatureCollection",features:t};case"FeatureCollection":return e.features=e.features.filter(function(e){return"Point"===e.geometry.type}),e;default:throw new Error("points must be a Point Collection")}}(e);if(!o.features.length)throw new Error("points must contain features");if(!t)throw new Error("line is required");if("LineString"!==oe(t))throw new Error("line must be a LineString");var a=1/0,s=null;return A(o,function(e){var r=fn(e,t,{units:n});r<a&&(a=r,s=e)}),s&&(s.properties=ce({dist:a},s.properties,i)),s},t.planepoint=function(e,t){var r=Q(e),n=ie(t).coordinates[0];if(n.length<4)throw new Error("OuterRing of a Polygon must have 4 or more Positions.");var i=t.properties||{},o=i.a,a=i.b,s=i.c,u=r[0],l=r[1],c=n[0][0],h=n[0][1],f=void 0!==o?o:n[0][2],d=n[1][0],p=n[1][1],y=void 0!==a?a:n[1][2],g=n[2][0],m=n[2][1],v=void 0!==s?s:n[2][2];return(v*(u-c)*(l-p)+f*(u-d)*(l-m)+y*(u-g)*(l-h)-y*(u-c)*(l-m)-v*(u-d)*(l-h)-f*(u-g)*(l-p))/((u-c)*(l-p)+(u-d)*(l-m)+(u-g)*(l-h)-(u-c)*(l-m)-(u-d)*(l-h)-(u-g)*(l-p))},t.point=u,t.pointGrid=Pn,t.pointOnFeature=gn,t.pointOnLine=cn,t.pointOnSurface=gn,t.pointToLineDistance=fn,t.points=l,t.pointsWithinPolygon=gt,t.polygon=c,t.polygonSmooth=function(e,t){var r=[],n=t.iterations||1;if(!e)throw new Error("inputPolys is required");return j(e,function(e,t,i){var o,a,s;switch(e.type){case"Polygon":o=[[]];for(var u=0;u<n;u++)s=[[]],a=e,u>0&&(a=c(o).geometry),as(a,s),o=s.slice(0);r.push(c(o,i));break;case"MultiPolygon":o=[[[]]];for(var l=0;l<n;l++)s=[[[]]],a=e,l>0&&(a=m(o).geometry),ss(a,s),o=s.slice(0);r.push(m(o,i));break;default:throw new Error("geometry is invalid, must be Polygon or MultiPolygon")}}),p(r)},t.polygonTangents=function(e,t){var r,n,i,o,a=$(e),s=$(t),l=K(t),c=0,h=null;switch(a[0]>l[0]&&a[0]<l[2]&&a[1]>l[1]&&a[1]<l[3]&&(c=(h=Vr(e,ur(t))).properties.featureIndex),oe(t)){case"Polygon":r=s[0][c],n=s[0][0],null!==h&&h.geometry.coordinates[1]<a[1]&&(n=s[0][c]),o=Si(s[0][0],s[0][s[0].length-1],a);var f=vi(s[0],a,o,i,r,n);r=f[0],n=f[1];break;case"MultiPolygon":for(var d=0,y=0,g=0,m=0;m<s[0].length;m++){d=m;for(var v=!1,_=0;_<s[0][m].length;_++){if(y=_,g===c){v=!0;break}g++}if(v)break}r=s[0][d][y],n=s[0][d][y],o=Si(s[0][0][0],s[0][0][s[0][0].length-1],a),s.forEach(function(e){var t=vi(e[0],a,o,i,r,n);r=t[0],n=t[1]})}return p([u(r),u(n)])},t.polygonToLine=$n,t.polygonToLineString=$n,t.polygonize=function(e){var t=Do.fromGeoJson(e);t.deleteDangles(),t.deleteCutEdges();var r=[],n=[];return t.getEdgeRings().filter(function(e){return e.isValid()}).forEach(function(e){e.isHole()?r.push(e):n.push(e)}),r.forEach(function(e){Ao.findEdgeRingContaining(e,n)&&n.push(e)}),p(n.map(function(e){return e.toPolygon()}))},t.polygons=h,t.projection=gs,t.propEach=V,t.propReduce=G,t.propertiesContainsFilter=Cs,t.radians2degrees=k,t.radiansToDegrees=k,t.radiansToDistance=S,t.radiansToLength=S,t.random=ks,t.randomLineString=xs,t.randomPoint=_s,t.randomPolygon=Ss,t.randomPosition=vs,t.rewind=function(e,t){if(!L(t=t||{}))throw new Error("options is invalid");var r=t.reverse||!1,n=t.mutate||!1;if(!e)throw new Error("<geojson> is required");if("boolean"!=typeof r)throw new Error("<reverse> must be a boolean");if("boolean"!=typeof n)throw new Error("<mutate> must be a boolean");!1===n&&(e=bt(e));var i=[];switch(e.type){case"GeometryCollection":return j(e,function(e){bi(e,r)}),e;case"FeatureCollection":return A(e,function(e){A(bi(e,r),function(e){i.push(e)})}),p(i)}return bi(e,r)},t.rhumbBearing=yi,t.rhumbDestination=mi,t.rhumbDistance=hn,t.round=_,t.sample=function(e,t){if(!e)throw new Error("featurecollection is required");if(null==t)throw new Error("num is required");if("number"!=typeof t)throw new Error("num must be a number");return p(function(e,t){for(var r,n,i=e.slice(0),o=e.length,a=o-t;o-- >a;)r=i[n=Math.floor((o+1)*Math.random())],i[n]=i[o],i[o]=r;return i.slice(a)}(e.features,t))},t.sector=function(e,t,r,n,i){if(!L(i=i||{}))throw new Error("options is invalid");var o=i.properties;if(!e)throw new Error("center is required");if(null==r)throw new Error("bearing1 is required");if(null==n)throw new Error("bearing2 is required");if(!t)throw new Error("radius is required");if("object"!=typeof i)throw new Error("options must be an object");if(pi(r)===pi(n))return ir(e,t,i);var a=$(e),s=[[a]];return O(Kn(e,t,r,n,i),function(e){s[0].push(e)}),s[0].push(a),c(s,o)},t.segmentEach=J,t.segmentReduce=z,t.shortestPath=function(e,t,r){if(!L(r=r||{}))throw new Error("options is invalid");var n=r.resolution,i=r.minDistance,o=r.obstacles||p([]);if(!e)throw new Error("start is required");if(!t)throw new Error("end is required");if(n&&!T(n)||n<=0)throw new Error("options.resolution must be a number, greater than 0");if(i)throw new Error("options.minDistance is not yet implemented");var s=Q(e),l=Q(t);switch(e=u(s),t=u(l),oe(o)){case"FeatureCollection":if(0===o.features.length)return f([s,l]);break;case"Polygon":o=p([a(ie(o))]);break;default:throw new Error("invalid obstacles")}var c=o;c.features.push(e),c.features.push(t);var h=K(To(er(K(c)),1.15));n||(n=mt([h[0],h[1]],[h[2],h[1]],r)/100),c.features.pop(),c.features.pop();for(var d=h[0],y=h[1],g=h[2],m=h[3],v=n/mt([d,y],[g,y],r)*(g-d),_=n/mt([d,y],[d,m],r)*(m-y),S=g-d,x=m-y,b=(S-Math.floor(S/v)*v)/2,w=[],k=[],M=[],E=[],I=1/0,C=1/0,P=m-(x-Math.floor(x/_)*_)/2,N=0;P>=y;){for(var O=[],R=[],V=d+b,G=0;V<=g;){var A=u([V,P]),D=_a(A,o);O.push(D?0:1),R.push(V+"|"+P);var F=mt(A,e);!D&&F<I&&(I=F,M={x:G,y:N});var j=mt(A,t);!D&&j<C&&(C=j,E={x:G,y:N}),V+=v,G++}k.push(O),w.push(R),P-=_,N++}var B=new ga(k,{diagonal:!0}),q=B.grid[M.y][M.x],U=B.grid[E.y][E.x],J=[s];return ya.search(B,q,U).forEach(function(e){var t=w[e.x][e.y].split("|");J.push([+t[0],+t[1]])}),J.push(l),Ut(f(J))},t.simplify=function(e,t){if(!L(t=t||{}))throw new Error("options is invalid");var r=void 0!==t.tolerance?t.tolerance:1,n=t.highQuality||!1,i=t.mutate||!1;if(!e)throw new Error("geojson is required");if(r&&r<0)throw new Error("invalid tolerance");return!0!==i&&(e=bt(e)),j(e,function(e){!function(e,t,r){var n=e.type;if("Point"===n||"MultiPoint"===n)return e;Ut(e,!0);var i=e.coordinates;switch(n){case"LineString":e.coordinates=Yt(i,t,r);break;case"MultiLineString":e.coordinates=i.map(function(e){return Yt(e,t,r)});break;case"Polygon":e.coordinates=Zt(i,t,r);break;case"MultiPolygon":e.coordinates=i.map(function(e){return Zt(e,t,r)})}}(e,r,n)}),e},t.square=rr,t.squareGrid=yy,t.standardDeviationalEllipse=function(e,t){if(!L(t=t||{}))throw new Error("options is invalid");var r=t.steps||64,n=t.weight,i=t.properties||{};if(!T(r))throw new Error("steps must be a number");if(!L(i))throw new Error("properties must be a number");var o=F(e).length,a=is(e,{weight:n}),s=0,u=0,l=0;A(e,function(e){var t=e.properties[n]||1,r=os($(e),$(a));s+=Math.pow(r.x,2)*t,u+=Math.pow(r.y,2)*t,l+=r.x*r.y*t});var c=s-u,h=Math.sqrt(Math.pow(c,2)+4*Math.pow(l,2)),f=2*l,d=Math.atan((c+h)/f),y=180*d/Math.PI,g=0,m=0,v=0;A(e,function(e){var t=e.properties[n]||1,r=os($(e),$(a));g+=Math.pow(r.x*Math.cos(d)-r.y*Math.sin(d),2)*t,m+=Math.pow(r.x*Math.sin(d)+r.y*Math.cos(d),2)*t,v+=t});var _=Math.sqrt(2*g/v),S=Math.sqrt(2*m/v),x=rs(a,_,S,{units:"degrees",angle:y,steps:r,properties:i}),b=gt(e,p([x])),w={meanCenterCoordinates:$(a),semiMajorAxis:_,semiMinorAxis:S,numberOfFeatures:o,angle:y,percentageWithinEllipse:100*F(b).length/o};return x.properties.standardDeviationalEllipse=w,x},t.tag=function(e,t,r,n){return e=bt(e),t=bt(t),A(e,function(e){e.properties||(e.properties={}),A(t,function(t){void 0===e.properties[n]&&pt(e,t)&&(e.properties[n]=t.properties[r])})}),e},t.tesselate=function(e){if(!e.geometry||"Polygon"!==e.geometry.type&&"MultiPolygon"!==e.geometry.type)throw new Error("input must be a Polygon or MultiPolygon");var t={type:"FeatureCollection",features:[]};return"Polygon"===e.geometry.type?t.features=Rr(e.geometry.coordinates):e.geometry.coordinates.forEach(function(e){t.features=t.features.concat(Rr(e))}),t},t.tin=vt,t.toMercator=hs,t.toWgs84=fs,t.transformRotate=Io,t.transformScale=To,t.transformTranslate=function(e,t,r,n){if(!L(n=n||{}))throw new Error("options is invalid");var i=n.units,o=n.zTranslation,a=n.mutate;if(!e)throw new Error("geojson is required");if(null==t||isNaN(t))throw new Error("distance is required");if(o&&"number"!=typeof o&&isNaN(o))throw new Error("zTranslation is not a number");if(o=void 0!==o?o:0,0===t&&0===o)return e;if(null==r||isNaN(r))throw new Error("direction is required");return t<0&&(t=-t,r+=180),!1!==a&&void 0!==a||(e=bt(e)),O(e,function(e){var n=$(mi(e,t,r,{units:i}));e[0]=n[0],e[1]=n[1],o&&3===e.length&&(e[2]+=o)}),e},t.triangleGrid=gy,t.truncate=Nn,t.union=function(e,t,r){void 0===r&&(r={});var n=ie(e),i=ie(t),o=yu.union(n.coordinates,i.coordinates);return 0===o.length?null:1===o.length?c(o[0],r.properties):m(o,r.properties)},t.unitsFactors=i,t.unkinkPolygon=function(e){var t=[];return q(e,function(e){"Polygon"===e.geometry.type&&A(function(e){if("Feature"!=e.type)throw new Error("The input must a geojson object of type Feature");if(void 0===e.geometry||null==e.geometry)throw new Error("The input must a geojson object with a non-empty geometry");if("Polygon"!=e.geometry.type)throw new Error("The input must be a geojson Polygon");for(var t=e.geometry.coordinates.length,r=[],n=0;n<t;n++){var i=e.geometry.coordinates[n];Fn(i[0],i[i.length-1])||i.push(i[0]),r.push.apply(r,i.slice(0,i.length-1))}if(!function(e){for(var t={},r=1,n=0,i=e.length;n<i;++n){if(Object.prototype.hasOwnProperty.call(t,e[n])){r=0;break}t[e[n]]=1}return r}(r))throw new Error("The input polygon may not have duplicate vertices (except for the first and last vertex of each ring)");var o=r.length,a=function(e,t,r){if("Polygon"!==e.geometry.type)throw new Error("The input feature must be a Polygon");void 0===r&&(r=1);var n=e.geometry.coordinates,i=[],o={};if(r){for(var a=[],s=0;s<n.length;s++)for(var u=0;u<n[s].length-1;u++)a.push(y(s,u));var l=we();l.load(a)}for(var c=0;c<n.length;c++)for(var h=0;h<n[c].length-1;h++)if(r)l.search(y(c,h)).forEach(function(e){var t=e.ring,r=e.edge;p(c,h,t,r)});else for(var f=0;f<n.length;f++)for(var d=0;d<n[f].length-1;d++)p(c,h,f,d);return t||(i={type:"Feature",geometry:{type:"MultiPoint",coordinates:i}}),i;function p(e,r,a,s){var u,l,c=n[e][r],h=n[e][r+1],f=n[a][s],d=n[a][s+1],p=function(e,t,r,n){if(Rn(e,r)||Rn(e,n)||Rn(t,r)||Rn(n,r))return null;var i=e[0],o=e[1],a=t[0],s=t[1],u=r[0],l=r[1],c=n[0],h=n[1],f=(i-a)*(l-h)-(o-s)*(u-c);return 0===f?null:[((i*s-o*a)*(u-c)-(i-a)*(u*h-l*c))/f,((i*s-o*a)*(l-h)-(o-s)*(u*h-l*c))/f]}(c,h,f,d);if(null!==p&&(u=h[0]!==c[0]?(p[0]-c[0])/(h[0]-c[0]):(p[1]-c[1])/(h[1]-c[1]),l=d[0]!==f[0]?(p[0]-f[0])/(d[0]-f[0]):(p[1]-f[1])/(d[1]-f[1]),!(u>=1||u<=0||l>=1||l<=0))){var y=p,g=!o[y];g&&(o[y]=!0),t?i.push(t(p,e,r,c,h,u,a,s,f,d,l,g)):i.push(p)}}function y(e,t){var r,i,o,a,s=n[e][t],u=n[e][t+1];return s[0]<u[0]?(r=s[0],i=u[0]):(r=u[0],i=s[0]),s[1]<u[1]?(o=s[1],a=u[1]):(o=u[1],a=s[1]),{minX:r,minY:o,maxX:i,maxY:a,ring:e,edge:t}}}(e,function(e,t,r,n,i,o,a,s,u,l,c,h){return[e,t,r,n,i,o,a,s,u,l,c,h]}),s=a.length;if(0==s){var u=[];for(n=0;n<t;n++)u.push(c([e.geometry.coordinates[n]],{parent:-1,winding:Dn(e.geometry.coordinates[n])}));var l=p(u);return D(),F(),l}var h=[],f=[];for(n=0;n<t;n++){h.push([]);for(var d=0;d<e.geometry.coordinates[n].length-1;d++)h[n].push([new Vn(e.geometry.coordinates[n][jn(d+1,e.geometry.coordinates[n].length-1)],1,[n,d],[n,jn(d+1,e.geometry.coordinates[n].length-1)],void 0)]),f.push(new Gn(e.geometry.coordinates[n][d],[n,jn(d-1,e.geometry.coordinates[n].length-1)],[n,d],void 0,void 0,!1,!0))}for(n=0;n<s;n++)h[a[n][1]][a[n][2]].push(new Vn(a[n][0],a[n][5],[a[n][1],a[n][2]],[a[n][6],a[n][7]],void 0)),a[n][11]&&f.push(new Gn(a[n][0],[a[n][1],a[n][2]],[a[n][6],a[n][7]],void 0,void 0,!0,!0));var y=f.length;for(n=0;n<h.length;n++)for(d=0;d<h[n].length;d++)h[n][d].sort(function(e,t){return e.param<t.param?-1:1});var g=[];for(n=0;n<y;n++)g.push({minX:f[n].coord[0],minY:f[n].coord[1],maxX:f[n].coord[0],maxY:f[n].coord[1],index:n});var m=we();for(m.load(g),n=0;n<h.length;n++)for(d=0;d<h[n].length;d++)for(var v=0;v<h[n][d].length;v++){S=v==h[n][d].length-1?h[n][jn(d+1,e.geometry.coordinates[n].length-1)][0].coord:h[n][d][v+1].coord;var _=m.search({minX:S[0],minY:S[1],maxX:S[0],maxY:S[1]})[0];h[n][d][v].nxtIsectAlongEdgeIn=_.index}for(n=0;n<h.length;n++)for(d=0;d<h[n].length;d++)for(v=0;v<h[n][d].length;v++){var S=h[n][d][v].coord,x=(_=m.search({minX:S[0],minY:S[1],maxX:S[0],maxY:S[1]})[0]).index;x<o?f[x].nxtIsectAlongRingAndEdge2=h[n][d][v].nxtIsectAlongEdgeIn:Fn(f[x].ringAndEdge1,h[n][d][v].ringAndEdgeIn)?f[x].nxtIsectAlongRingAndEdge1=h[n][d][v].nxtIsectAlongEdgeIn:f[x].nxtIsectAlongRingAndEdge2=h[n][d][v].nxtIsectAlongEdgeIn}var b=[];for(n=0,d=0;d<t;d++){var w=n;for(v=0;v<e.geometry.coordinates[d].length-1;v++)f[n].coord[0]<f[w].coord[0]&&(w=n),n++;var k=f[w].nxtIsectAlongRingAndEdge2;for(v=0;v<f.length;v++)if(f[v].nxtIsectAlongRingAndEdge1==w||f[v].nxtIsectAlongRingAndEdge2==w){var M=v;break}var E=An([f[M].coord,f[w].coord,f[k].coord],!0)?1:-1;b.push({isect:w,parent:-1,winding:E})}for(b.sort(function(e,t){return f[e.isect].coord>f[t.isect].coord?-1:1}),u=[];b.length>0;){var I=b.pop(),T=I.isect,L=I.parent,C=I.winding,P=u.length,N=[f[T].coord],O=T;if(f[T].ringAndEdge1Walkable)var R=f[T].ringAndEdge1,V=f[T].nxtIsectAlongRingAndEdge1;else R=f[T].ringAndEdge2,V=f[T].nxtIsectAlongRingAndEdge2;for(;!Fn(f[T].coord,f[V].coord);){N.push(f[V].coord);var G=void 0;for(n=0;n<b.length;n++)if(b[n].isect==V){G=n;break}if(null!=G&&b.splice(G,1),Fn(R,f[V].ringAndEdge1)){if(R=f[V].ringAndEdge2,f[V].ringAndEdge2Walkable=!1,f[V].ringAndEdge1Walkable){var A={isect:V};An([f[O].coord,f[V].coord,f[f[V].nxtIsectAlongRingAndEdge2].coord],1==C)?(A.parent=L,A.winding=-C):(A.parent=P,A.winding=C),b.push(A)}O=V,V=f[V].nxtIsectAlongRingAndEdge2}else R=f[V].ringAndEdge1,f[V].ringAndEdge1Walkable=!1,f[V].ringAndEdge2Walkable&&(A={isect:V},An([f[O].coord,f[V].coord,f[f[V].nxtIsectAlongRingAndEdge1].coord],1==C)?(A.parent=L,A.winding=-C):(A.parent=P,A.winding=C),b.push(A)),O=V,V=f[V].nxtIsectAlongRingAndEdge1}N.push(f[V].coord),u.push(c([N],{index:P,parent:L,winding:C,netWinding:void 0}))}function D(){for(var e=[],t=0;t<l.features.length;t++)-1==l.features[t].properties.parent&&e.push(t);if(e.length>1)for(t=0;t<e.length;t++){for(var r=-1,n=0;n<l.features.length;n++)e[t]!=n&&pt(l.features[e[t]].geometry.coordinates[0][0],l.features[n],{ignoreBoundary:!0})&&_n(l.features[n])<1/0&&(r=n);l.features[e[t]].properties.parent=r}}function F(){for(var e=0;e<l.features.length;e++)if(-1==l.features[e].properties.parent){var t=l.features[e].properties.winding;l.features[e].properties.netWinding=t,j(e,t)}}function j(e,t){for(var r=0;r<l.features.length;r++)if(l.features[r].properties.parent==e){var n=t+l.features[r].properties.winding;l.features[r].properties.netWinding=n,j(r,n)}}return l=p(u),D(),F(),l}(e),function(r){t.push(c(r.geometry.coordinates,e.properties))})}),p(t)},t.validateBBox=C,t.validateId=P,t.voronoi=function(e,t){if(!L(t=t||{}))throw new Error("options is invalid");var r=t.bbox||[-180,-85,180,85];if(!e)throw new Error("points is required");if(!Array.isArray(r))throw new Error("bbox is invalid");return ne(e,"Point","points"),p(function(){var e=xa,t=ba,r=null;function n(n){return new es(n.map(function(r,i){var o=[Math.round(e(r,i,n)/Ka)*Ka,Math.round(t(r,i,n)/Ka)*Ka];return o.index=i,o.data=r,o}),r)}return n.polygons=function(e){return n(e).polygons()},n.links=function(e){return n(e).links()},n.triangles=function(e){return n(e).triangles()},n.x=function(t){return arguments.length?(e="function"==typeof t?t:Sa(+t),n):e},n.y=function(e){return arguments.length?(t="function"==typeof e?e:Sa(+e),n):t},n.extent=function(e){return arguments.length?(r=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],n):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},n.size=function(e){return arguments.length?(r=null==e?null:[[0,0],[+e[0],+e[1]]],n):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},n}().x(function(e){return e.geometry.coordinates[0]}).y(function(e){return e.geometry.coordinates[1]}).extent([[r[0],r[1]],[r[2],r[3]]]).polygons(e.features).map(ts))},t.within=gt,Object.defineProperty(t,"__esModule",{value:!0})}(t)}).call(this,r(229))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(11)),i=y(r(10)),o=y(r(3)),a=y(r(0)),s=y(r(2)),u=y(r(4)),l=y(r(7)),c=y(r(5)),h=r(1),f=y(r(29)),d=r(6),p=y(r(54));function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,h.defaultValue)(e,{}),r.coordinates=(0,h.defaultValue)(e.coordinates,[]),r.type=d.GeometryType.point,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");if(r.coordinates.length<2||r.coordinates.length>3)throw new Error("坐标数组的长度必须在合理范围内(2或者3)");if(!(0,h.isNumber)(r.coordinates[0])||!(0,h.isNumber)(r.coordinates[1]))throw new Error("坐标数组成员必须为数字");return 3===r.coordinates.length?r.hasZ=!0:r.hasZ=!1,r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"copy",value:function(e){return t.fromJSON(e.toJSON()),this}},{key:"distance",value:function(e){if(!e)throw new Error("输入参数不合法.");var r=t.toCoordinates(e),n=Math.abs(this.coordinates[0]-r[0]),i=Math.abs(this.coordinates[1]-r[1]),o=0;return this.hasZ&&r.length>=3&&(o=Math.abs(this.coordinates[2]-e.coordinates[[2]])),Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(o,2))}},{key:"equals",value:function(e){if(e instanceof t)return this.hasZ?!!Math.abs(this.coordinates[0]-e.coordinates[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e.coordinates[1])<=1e-7&&!!Math.abs(this.coordinates[2]-e.coordinates[2])<=1e-7:!!Math.abs(this.coordinates[0]-e.coordinates[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e.coordinates[1])<=1e-7;if(e instanceof Array){if(2===e.length)return!!Math.abs(this.coordinates[0]-e[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e[1])<=1e-7;if(3===e.length)return!!Math.abs(this.coordinates[0]-e[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e[1])<=1e-7&&!!Math.abs(this.coordinates[2]-e[2])<=1e-7;throw new Error("坐标数组的数量有误!")}throw new Error("必须为点对象或坐标数组才能比较是否相等!")}},{key:"normalize",value:function(){var e;e=this.hasZ?new t({coordinates:[0,0,0]}):new t({coordinates:[0,0]});var r=this.distance(e),n=this._cloneCoordinates();return n[0]/=r,n[1]/=r,this.hasZ&&(n[2]/=r),this.coordinates=n,this}},{key:"toString",value:function(){return this.hasZ?this.coordinates[0]+","+this.coordinates[1]+","+this.coordinates[2]:this.coordinates[0]+","+this.coordinates[1]}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=(0,h.toJSON)(this.extent,p.default),e}},{key:"getIGSType",value:function(){return this.hasZ?d.IGSGeometryType.point3D:d.IGSGeometryType.point}},{key:"toOldIGSGeometry",value:function(){return{PntGeom:[{Dot:{x:this.coordinates[0],y:this.coordinates[1]}}],GID:parseInt(String(1e7*Math.random()))}}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return t?new p.default({xmin:e[0],ymin:e[1],zmin:e[2],xmax:e[0],ymax:e[1],zmax:e[2],spatialReference:this.spatialReference}):new p.default({xmin:e[0],ymin:e[1],xmax:e[0],ymax:e[1],spatialReference:this.spatialReference})}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"toCoordinates",value:function(e){if(!e)throw new Error("输入参数不合法.");var r=JSON.parse((0,i.default)(e));if(e instanceof t)r=e._cloneCoordinates();else{if(e instanceof Array)return r;e instanceof Object&&(r=t.fromJSON(e)._cloneCoordinates())}return r}},{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(f.default);(0,n.default)(g.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SceneLayer=t.OverlayLayer=t.TileLayer=t.VectorTileLayer=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.ArcGISVectorTileLayer=t.setElevationInfo=t.TileInfoUtil=t.getLayerViewScaleVisible=t.showLayerByScale=t.isCustomSP=t.is4326=t.getUrlType=t.ArcGISTileLayer=t.ArcGISMapImageSubLayer=t.ArcGISMapImageLayer=t.Projection=t.M3DModelCacheLayer=t.IGSFeatureLayer=t.Scene=t.IGSTileLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=t.VideoLayer=t.UnknownLayer=t.GeoJSONLayer=t.GraphicsLayer=t.GroupLayer=t.MapVLayer=t.EchartsLayer=t.TerrainCacheLayer=t.Cesium3DTilesCacheLayer=t.FeatureLayer=t.WMTSSubLayer=t.WFSLayer=t.WMSSubLayer=t.WMSLayer=t.WMTSLayer=t.OGCLayer=t.Layer=void 0;var n=r(202),i=r(15),o=r(488),a=r(46),s=r(493),u=k(r(497)),l=k(r(498)),c=r(499),h=k(r(502)),f=k(r(503)),d=k(r(504)),p=k(r(505)),y=k(r(506)),g=k(r(74)),m=r(44),v=k(r(67)),_=k(r(80)),S=k(r(95)),x=k(r(131)),b=k(r(507)),w=k(r(508));function k(e){return e&&e.__esModule?e:{default:e}}t.Layer=i.Layer,t.OGCLayer=s.OGCLayer,t.WMTSLayer=s.WMTSLayer,t.WMSLayer=s.WMSLayer,t.WMSSubLayer=s.WMSSubLayer,t.WFSLayer=s.WFSLayer,t.WMTSSubLayer=s.WMTSSubLayer,t.FeatureLayer=i.FeatureLayer,t.Cesium3DTilesCacheLayer=u.default,t.TerrainCacheLayer=l.default,t.EchartsLayer=c.EchartsLayer,t.MapVLayer=c.MapVLayer,t.GroupLayer=h.default,t.GraphicsLayer=f.default,t.GeoJSONLayer=d.default,t.UnknownLayer=w.default,t.VideoLayer=y.default,t.IGSVectorTileLayer=n.IGSVectorTileLayer,t.IGSVectorTileSubLayer=n.IGSVectorTileSubLayer,t.IGSMapImageLayer=n.IGSMapImageLayer,t.IGSMapImageSubLayer=n.IGSMapImageSubLayer,t.IGSSceneLayer=n.IGSSceneLayer,t.IGSSceneSubLayer=n.IGSSceneSubLayer,t.IGSTileLayer=n.IGSTileLayer,t.Scene=n.Scene,t.IGSFeatureLayer=n.IGSFeatureLayer,t.M3DModelCacheLayer=p.default,t.Projection=g.default,t.ArcGISMapImageLayer=o.ArcGISMapImageLayer,t.ArcGISMapImageSubLayer=o.ArcGISMapImageSubLayer,t.ArcGISTileLayer=o.ArcGISTileLayer,t.getUrlType=m.getUrlType,t.is4326=m.is4326,t.isCustomSP=m.isCustomSP,t.showLayerByScale=m.showLayerByScale,t.getLayerViewScaleVisible=m.getLayerViewScaleVisible,t.TileInfoUtil=_.default,t.setElevationInfo=a.setElevationInfo,t.ArcGISVectorTileLayer=o.ArcGISVectorTileLayer,t.WebTileLayer=b.default,t.getZoomOffset=m.getZoomOffset,t.FeatureCollection=x.default,t.TileInfo=v.default,t.appendUrlParams=m.appendUrlParams,t.getFullBaseUrl=m.getFullBaseUrl,t.LOD=S.default,t.VectorTileLayer=i.VectorTileLayer,t.TileLayer=i.TileLayer,t.OverlayLayer=c.OverlayLayer,t.SceneLayer=i.SceneLayer},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(11)),i=l(r(0)),o=l(r(2)),a=r(8),s=r(19),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t){(0,i.default)(this,e),t=(0,u.defaultValue)(t,{}),this._vertexStyle=(0,u.defaultValue)(t.vertexStyle,new s.SimpleMarkerSymbol({color:new a.Color(24,144,255,1),size:10,outline:new s.SimpleLineSymbol({color:new a.Color(255,255,255,1),width:1})})),this._lineStyle=(0,u.defaultValue)(t.lineStyle,new s.SimpleLineSymbol({color:new a.Color(24,144,255,1),width:3})),this._fillStyle=(0,u.defaultValue)(t.fillStyle,new s.SimpleFillSymbol({color:new a.Color(24,144,255,.3),outline:new s.SimpleLineSymbol({color:new a.Color(24,144,255,1),width:2})})),this._textStyle=(0,u.defaultValue)(t.textStyle,new s.TextSymbol({color:new a.Color(24,144,255,1),text:"默认文字",font:{family:"微软雅黑",size:20,style:"normal",weight:"normal"}})),this._movingLineStyle=(0,u.defaultValue)(t.lineStyle,new s.SimpleLineSymbol({color:new a.Color(255,255,0,1),width:2})),this._selectBoxStyle=(0,u.defaultValue)(t.selectBoxStyle,new s.SimpleFillSymbol({color:new a.Color(241,188,0,.1),outline:new s.SimpleLineSymbol({color:new a.Color(241,188,0,.8),width:2})})),this._selectBoxVertexStyle=(0,u.defaultValue)(t.selectBoxVertexStyle,new s.SimpleMarkerSymbol({color:new a.Color(255,255,255,1),size:10,outline:new s.SimpleLineSymbol({color:new a.Color(241,188,0,1),width:3})})),this._selectVertexStyle=(0,u.defaultValue)(t.selectVertexStyle,new s.SimpleMarkerSymbol({color:new a.Color(241,188,0,1),size:11,outline:new s.SimpleLineSymbol({color:new a.Color(255,255,255,1),width:1})})),this._selectTextStyle=(0,u.defaultValue)(t.selectTextStyle,new s.TextSymbol({color:new a.Color(241,188,0,1),text:"默认文字",font:{family:"微软雅黑",size:20,style:"normal",weight:"normal"}})),this._selectMidVertexStyle=(0,u.defaultValue)(t.selectMidVertexStyle,new s.SimpleMarkerSymbol({color:new a.Color(255,255,255,1),size:8,outline:new s.SimpleLineSymbol({color:new a.Color(241,188,0,1),width:1})})),this._coincidentPointStyle=(0,u.defaultValue)(t.coincidentPointStyle,new s.SimpleMarkerSymbol({color:new a.Color(255,255,0,1),size:10,outline:new s.SimpleLineSymbol({color:new a.Color(255,255,255,1),width:1})})),this._highlightPointStyle=(0,u.defaultValue)(t.highlightPointStyle,new s.SimpleMarkerSymbol({color:new a.Color(255,255,0,1),size:10,outline:new s.SimpleLineSymbol({color:new a.Color(255,255,255,1),width:1})})),this._highlightLineStyle=(0,u.defaultValue)(t.highlightLineStyle,new s.SimpleLineSymbol({color:new a.Color(255,255,0,1),width:3})),this._parallelLineStyle=(0,u.defaultValue)(t.parallelLineStyle,this._highlightLineStyle),this._perpendicularLineStyle=(0,u.defaultValue)(t.perpendicularLineStyle,this._highlightLineStyle)}return(0,o.default)(e,[{key:"clone",value:function(){return new e(this.toJSON())}},{key:"toJSON",value:function(){var e={};return e.vertexStyle=this._vertexStyle.clone(),e.lineStyle=this._lineStyle.clone(),e.fillStyle=this._fillStyle.clone(),e.movingLineStyle=this._movingLineStyle.clone(),e.selectBoxStyle=this._selectBoxStyle.clone(),e.selectBoxVertexStyle=this._selectBoxVertexStyle.clone(),e.selectVertexStyle=this._selectVertexStyle.clone(),e.selectMidVertexStyle=this._selectMidVertexStyle.clone(),e.coincidentPointStyle=this._coincidentPointStyle.clone(),e.highlightPointStyle=this._highlightPointStyle.clone(),e.highlightLineStyle=this._highlightLineStyle.clone(),e.parallelLineStyle=this._parallelLineStyle.clone(),e.perpendicularLineStyle=this._perpendicularLineStyle.clone(),e.textStyle=this._textStyle.clone(),e.selectTextStyle=this._selectTextStyle.clone(),e}},{key:"fromJSON",value:function(){}}]),e}();(0,n.default)(c.prototype,{vertexStyle:{get:function(){return this._vertexStyle},set:function(e){this._vertexStyle=e}},lineStyle:{get:function(){return this._lineStyle},set:function(e){this._lineStyle=e}},fillStyle:{get:function(){return this._fillStyle},set:function(e){this._fillStyle=e}},textStyle:{get:function(){return this._textStyle},set:function(e){this._textStyle=e}},selectBoxStyle:{get:function(){return this._selectBoxStyle},set:function(e){this._selectBoxStyle=e}},selectBoxVertexStyle:{get:function(){return this._selectBoxVertexStyle},set:function(e){this._selectBoxVertexStyle=e}},selectVertexStyle:{get:function(){return this._selectVertexStyle},set:function(e){this._selectVertexStyle=e}},selectTextStyle:{get:function(){return this._selectTextStyle},set:function(e){this._selectTextStyle=e}},selectMidVertexStyle:{get:function(){return this._selectMidVertexStyle},set:function(e){this._selectMidVertexStyle=e}},coincidentPointStyle:{get:function(){return this._coincidentPointStyle},set:function(e){this._coincidentPointStyle=e}},highlightPointStyle:{get:function(){return this._highlightPointStyle},set:function(e){this._highlightPointStyle=e}},highlightLineStyle:{get:function(){return this._highlightLineStyle},set:function(e){this._highlightLineStyle=e}},parallelLineStyle:{get:function(){return this._parallelLineStyle},set:function(e){this._parallelLineStyle=e}},perpendicularLineStyle:{get:function(){return this._perpendicularLineStyle},set:function(e){this._perpendicularLineStyle=e}}}),t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(10)),i=p(r(3)),o=p(r(0)),a=p(r(2)),s=p(r(4)),u=p(r(5)),l=r(8),c=r(9),h=p(r(38)),f=p(r(36)),d=r(1);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchPointDrawTool",r._drawTools=[r],r._otherDrawTools=[],r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent)}},{key:"getPanEvent",value:function(e,t,r){return{event:e,target:t,type:r}}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.DRAWING,this.view._mapActionControl("video-map-active",!0),this.cursorStyle=this.view.cursor,(0,d.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair"),this._setInitSnap(),this._fireStartDrawEvent();var t=function(t){if(t&&t.x&&t.y){e.view.off(l.ViewEventType.pointerMove,e._handlerInitMouseMove),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var r,n={x:t.x,y:t.y};r=e._snapPoint?e._snapPoint:e.view.toMap({x:n.x,y:n.y});var i=e._getFeature(r);e.sketchStage.entityGraphic=i,e._addFeatureToLayer(i,e.layer),e.stop(),e._editMode=l.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.view._mapActionControl("video-map-active",!1)}};this._drawEventHandlers.push(t),this.view.on(l.ViewEventType.pointerDown,t)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.vertexStyle?t.vertexStyle:this.sketchStyle._vertexStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.vertexStyle?t.vertexStyle:this.sketchStyle._vertexStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e,t){return e||(e=l.Projection.project(new c.Point({coordinates:[0,0,0]}),this._spatialReference)),t||(t=this._sketchDataType===l.SketchDataType.TEXT?this.sketchStyle.textStyle:this.sketchStyle.vertexStyle),new l.Feature({geometry:e,symbol:t,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e,t){this.view._mapActionControl("video-map-active",!0),this.editOption.showSelectBox?(this._editMode=l.SketchEditMode.EDITGRAGIC,this.selectFeature(e)):this._parent._sketchDataType===l.SketchDataType.POINT||this._parent._sketchDataType===l.SketchDataType.TEXT?this.startPanGraphics(e,t):this._parent&&this._parent._editMode===l.SketchEditMode.EDITGRAGIC?"circleVertex"===e.attributes.type?this.startCircleVertexScaleGraphics(e,t):"midVertex"===e.attributes.type?this.startMidVertexScaleGraphics(e,t):this.startVertexScaleGraphics(e,t):this._parent&&this._parent._editMode===l.SketchEditMode.EDITVERTEX&&this.startVertexMoveGraphics(e,t)}},{key:"selectFeature",value:function(e){var r=this;if(this.editOption.showSelectBox){var n=new t({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new f.default({vertexStyle:this._sketchDataType===l.SketchDataType.TEXT?this.sketchStyle._selectTextStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),i=e.geometry;if(this._drawTools.push(n),n.addFeatureByGeometry(i,null,null,this.sketchInnerLayer),this.sketchStage.selectBoxGraphics=[n.sketchStage.entityGraphic],this._otherDrawTools.push(n),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),!this._parent||this._parent&&!this._parent._mapClickEvent){var o=function(){r._preventFirstCall?r._preventFirstCall=void 0:(r.sketchStage.selectBoxGraphics.forEach(function(e){r._removeFeatureFromLayer(e,r.sketchInnerLayer)}),r.view.off(l.ViewEventType.immediateClick,r._mapClickEvent),r._mapClickEvent=void 0,r.fire("selected",{isSelected:!1},self),r.sketchStage.selectBoxGraphics=[],r.view._mapActionControl("video-map-active",!1))};this._hitTestEventHandlers.push(this._mapClickEvent),this._mapClickEvent||(this._mapClickEvent=o,this.view.on(l.ViewEventType.immediateClick,o)),"leaflet"===this.view.engineType&&this.sketchDataType===l.SketchDataType.TEXT?this._preventFirstCall=!1:this._preventFirstCall=!0}}}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent),this._parent&&this._fireStartPanEvent(this._parent.sketchStage.entityGraphic,this._parent);var o=function(e){if(e&&e.x&&e.y&&!n&&r._startPan){clearTimeout(null),n=!0;var t={x:e.x,y:e.y},o=r.view.toMap({x:t.x,y:t.y}),a=o.coordinates[0]-i.coordinates[0],s=o.coordinates[1]-i.coordinates[1];if(0!==a||0!==s){var u=r.getPanCoordinates(r.sketchStage.entityGraphic.geometry.coordinates,a,s);i.coordinates=u,r.sketchStage.entityGraphic.geometry.coordinates=u,n=!1,r._parent&&(r._parent.sketchStage.entityGraphic.geometry.coordinates=u,r._firePanningEvent(r._parent.sketchStage.entityGraphic,r._parent))}else n=!1}},a=function e(){r._startPan&&(r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,o),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent),r._parent&&r._fireStopPanEvent(r._parent.sketchStage.entityGraphic,r._parent),setTimeout(function(){r.view._mapActionControl("drag-pan",!0)},0))};this._hitTestEventHandlers.push(o),this._hitTestEventHandlers.push(a),this.view.on(l.ViewEventType.pointerUp,a),this.view.on(l.ViewEventType.pointerMove,o)}},{key:"startVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n,i=!1;this._startPan=!0,n=t.mapPoint;var o;o=this._parent.sketchStage.entityGraphic.geometry instanceof c.Extent?this._parent.sketchStage.entityGraphic.geometry:this._parent.sketchStage.entityGraphic.geometry.extent,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent);var a=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var s=function(t){if(t&&t.x&&t.y&&!i&&r._startPan){clearTimeout(null),i=!0;var s={x:t.x,y:t.y},u=r.view.toMap({x:s.x,y:s.y}),l=u.coordinates[0]-n.coordinates[0],c=u.coordinates[1]-n.coordinates[1],h=u.coordinates[0]/n.coordinates[0],f=u.coordinates[1]/n.coordinates[1];0!==l||0!==c?(r._dispatchEvent("vertexScale",{startPoint:n,movePoint:u,deltaPosition:{x:l,y:c},scale:{x:h,y:f},direction:a,extent:o,feature:e,action:"scale"},r),i=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):i=!1}},u=function e(){r._startPan&&(r._dispatchEvent("vertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,s),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopScaleEvent(r._parent.sketchStage.entityGraphic,r._parent))};this._hitTestEventHandlers.push(s),this._hitTestEventHandlers.push(u),this.view.on(l.ViewEventType.pointerUp,u),this.view.on(l.ViewEventType.pointerMove,s)}},{key:"startMidVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n,i=!1;this._startPan=!0,n=t.mapPoint;var o;o=this._parent.sketchStage.entityGraphic.geometry instanceof c.Extent?this._parent.sketchStage.entityGraphic.geometry:this._parent.sketchStage.entityGraphic.geometry.extent,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent);var a=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var s=function(e){if(e&&e.x&&e.y&&!i&&r._startPan){clearTimeout(null),i=!0;var t={x:e.x,y:e.y},s=r.view.toMap({x:t.x,y:t.y}),u=s.coordinates[0]-n.coordinates[0],l=s.coordinates[1]-n.coordinates[1],c=s.coordinates[0]/n.coordinates[0],h=s.coordinates[1]/n.coordinates[1];0!==u||0!==l?(r._dispatchEvent("midVertexScale",{startPoint:n,movePoint:s,deltaPosition:{x:u,y:l},scale:{x:c,y:h},direction:a,extent:o,action:"scale"},r),i=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):i=!1}},u=function e(){r._startPan&&(r._dispatchEvent("vertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,s),r.view._mapActionControl("drag-pan",!0),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopScaleEvent(r._parent.sketchStage.entityGraphic,r._parent))};this._hitTestEventHandlers.push(s),this._hitTestEventHandlers.push(u),this.view.on(l.ViewEventType.pointerUp,u),this.view.on(l.ViewEventType.pointerMove,s)}},{key:"startCircleVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n,i=!1;this._startPan=!0,n=t.mapPoint;var o=this._parent.sketchStage.entityGraphic.geometry.extent;this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent);var a=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var s=function(t){if(t&&t.x&&t.y&&!i&&r._startPan){clearTimeout(null),i=!0;var s={x:t.x,y:t.y},u=r.view.toMap({x:s.x,y:s.y}),l=u.coordinates[0]-n.coordinates[0],c=u.coordinates[1]-n.coordinates[1],h=u.coordinates[0]/n.coordinates[0],f=u.coordinates[1]/n.coordinates[1];0!==l||0!==c?(r._dispatchEvent("circleVertexScale",{startPoint:n,movePoint:u,deltaPosition:{x:l,y:c},scale:{x:h,y:f},direction:a,extent:o,feature:e,action:"scale"},r),i=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):i=!1}},u=function e(){r._startPan&&(r._dispatchEvent("circleVertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,s),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopScaleEvent(r._parent.sketchStage.entityGraphic,r._parent))};this._hitTestEventHandlers.push(s),this._hitTestEventHandlers.push(u),this.view.on(l.ViewEventType.pointerUp,u),this.view.on(l.ViewEventType.pointerMove,s)}},{key:"startVertexMoveGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint;var o=e.attributes?e.attributes.vertexIndex:-2;"midVertex"===e.attributes.type?(this._fireAddVertexEvent(this._parent.sketchStage.entityGraphic,this._parent),this._dispatchEvent("midVertexAdd",{point:i,vertexIndex:e.attributes?o:void 0,action:"changeFeature"},this),this._startPan=!0):this._startPan=!0,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent),this._parent&&this._fireStartVertexMoveEvent(this._parent.sketchStage.entityGraphic,this._parent);var a=function(t){if(t&&t.x&&t.y&&!n&&r._startPan){clearTimeout(null),n=!0;var a={x:t.x,y:t.y},s=r.view.toMap({x:a.x,y:a.y}),u=s.coordinates[0]-i.coordinates[0],l=s.coordinates[1]-i.coordinates[1];0!==u||0!==l?("midVertex"===e.attributes.type?r._dispatchEvent("midVertexAdd",{startPoint:i,movePoint:s,vertexIndex:o,vertexType:e.attributes?e.attributes.type:void 0,action:"moveMidVertex"},r):r._dispatchEvent("vertexMove",{startPoint:i,movePoint:s,vertexIndex:o,vertexType:e.attributes?e.attributes.type:void 0},r),i=s,n=!1,r._parent&&r._fireUpdateVertex(r._parent.sketchStage.entityGraphic,r._parent)):n=!1}},s=function t(o){if(o&&o.x&&o.y&&r._startPan){if(r.view._mapActionControl("drag-pan",!1),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,t),r.view.off(l.ViewEventType.pointerMove,a),r.view._mapActionControl("drag-pan",!0),"midVertex"===e.attributes.type){var s=e.attributes.vertexIndex;r._dispatchEvent("midVertexAdd",{point:i,vertexIndex:e.attributes?s:void 0,action:"addVertex"},r)}n=!1,r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopVertexMoveEvent(r._parent.sketchStage.entityGraphic,r._parent)}};this._hitTestEventHandlers.push(a),this._hitTestEventHandlers.push(s),this.view.on(l.ViewEventType.pointerUp,s),this.view.on(l.ViewEventType.pointerMove,a)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"circleVertexScale"===e.type&&this._handlerCircleVertexScaleEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this.getPanCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.deltaPosition.x,e.deltaPosition.y,this.sketchStage.entityGraphic.attributes.direction,e.extent),r=new c.Point({coordinates:t,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=r}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var t=JSON.parse((0,n.default)([this.sketchStage.entityGraphic.geometry.coordinates]));this.sketchStage.entityGraphic.attributes.lastCoordinates=t}this.sketchStage.entityGraphic.attributes=this.sketchStage.entityGraphic.attributes?this.sketchStage.entityGraphic.attributes:{};var r=void 0;if(this._parent){var i=this._parent.sketchStage.entityGraphic.geometry.extent,o=this.sketchStage.entityGraphic.attributes.direction;"e"===o?r=this._getCenterCoordinate([i.xmax,i.ymin],[i.xmax,i.ymax]):"s"===o?r=this._getCenterCoordinate([i.xmax,i.ymin],[i.xmin,i.ymin]):"w"===o?r=this._getCenterCoordinate([i.xmin,i.ymin],[i.xmin,i.ymax]):"n"===o?r=this._getCenterCoordinate([i.xmax,i.ymax],[i.xmin,i.ymax]):"ne"===o?r=[i.xmax,i.ymax]:"se"===o?r=[i.xmax,i.ymin]:"sw"===o?r=[i.xmin,i.ymin]:"nw"===o&&(r=[i.xmin,i.ymax])}r||(r=this.getScaleCoordinates([this.sketchStage.entityGraphic.geometry.coordinates],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates,this.sketchStage.entityGraphic.attributes.direction)[0]);var a=new c.Point({coordinates:r,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=a}"stop"===e.action&&this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0)}},{key:"_handlerMidVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)([this.sketchStage.entityGraphic.geometry.coordinates]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates([this.sketchStage.entityGraphic.geometry.coordinates],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.Point({coordinates:i[0],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._parent&&this._parent.sketchStage.updateGraphic(this.sketchStage.entityGraphic)}else"stop"===e.action&&this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0)}},{key:"_handlerCircleVertexScaleEvent",value:function(e){this._handlerMidVertexScaleEvent(e)}}]),t}(h.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(5)),u=r(8),l=r(1),c=r(9),h=d(r(521)),f=r(134);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this));return r._id=(0,l.defaultValue)(e.id,(0,l.getGUID)()),r.view=(0,l.defaultValue)(e.view,null),r.layer=(0,l.defaultValue)(e.layer,void 0),r.sketchInnerLayer=(0,l.defaultValue)(e.sketchInnerLayer,void 0),r.sketchStage=new h.default,void 0!==e.sketchStyle&&(r.sketchStyle=e.sketchStyle.clone()),r.elevationInfo=(0,l.defaultValue)(e.elevationInfo,void 0),r.type="sketchBaseDrawTool",r.extensionOptions=(0,l.defaultValue)(e.extensionOptions,void 0),r._editMode=u.SketchEditMode.NONE,r._spatialReference=e.view._spatialReference?e.view._spatialReference:new c.SpatialReference("EPSG:4326"),r._drawEventHandlers=[],r._hitTestEventHandlers=[],r._sketchDataType=null,r._parent=(0,l.defaultValue)(e._parent,void 0),r.undoRedoManager=(0,l.defaultValue)(e.undoRedoManager,void 0),r.editOption=(0,l.defaultValue)(e.editOption,{showSelectBox:!0,showSelectVertex:!1,canEditFeature:!0,canEditVertex:!0,_hitTestMode:0}),r._drawTools=[],r._hitTestDrawToolStack=[],r._clampToGround=!0,r.snapAndReferGeometries=[],r._sketchEditor=(0,l.defaultValue)(e._sketchEditor,void 0),r._sketchEditor&&(r.sketchSnappingTool=r._sketchEditor._sketchSnappingTool,r.snapAndReferGeometries=r._sketchEditor.snapAndReferGeometries),r.cursorStyle=null,r._snapPoint=null,r._sketchDataType=e.sketchDataType,r.arcType=e.arcType,r._getCenterCoordinate=e._getCenterCoordinate,r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"start",value:function(){this.stop(),this.drawFeature()}},{key:"stop",value:function(){this._editMode===u.SketchEditMode.DRAWING||this._editMode===u.SketchEditMode.NONE?this._stopDraw():this._editMode===u.SketchEditMode.EDITGRAGIC||this._editMode===u.SketchEditMode.EDITVERTEX?this._stopHitTest():(this._stopDraw(),this._stopHitTest())}},{key:"_stopAll",value:function(){this._stopDraw(),this._stopHitTest()}},{key:"_stopDraw",value:function(){var e=this;this._drawEventHandlers&&(this._drawEventHandlers.forEach(function(t){e.view.off(u.ViewEventType.immediateClick,t),e.view.off(u.ViewEventType.pointerUp,t),e.view.off(u.ViewEventType.pointerMove,t),e.view.off(u.ViewEventType.pointerDown,t),e.view.off(u.ViewEventType.doubleClick,t),e.view.off(u.ViewEventType.drag,t)}),this._drawEventHandlers=[]),this._stopInitSnap()}},{key:"_stopHitTest",value:function(){var e=this;this._hitTestEventHandlers&&(this._hitTestEventHandlers.forEach(function(t){e.view.off(u.ViewEventType.pointerUp,t),e.view.off(u.ViewEventType.pointerMove,t),e.view.off(u.ViewEventType.pointerDown,t),e.view.off(u.ViewEventType.click,t),e.view.off(u.ViewEventType.immediateClick,e._mapClickEvent)}),this._mapClickEvent=null,this._hitTestEventHandlers=[])}},{key:"setSketchStyle",value:function(e){this.sketchStyle=e}},{key:"_clearEditGraphics",value:function(e){var t=this,r=function(){t.sketchStage.selectBoxGraphics.concat(t.sketchStage.selectBoxVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t.sketchInnerLayer)}),t._otherDrawTools=[],t.sketchStage.selectBoxGraphics=[],t.sketchStage.selectBoxVertexGraphics=[]},n=function(){var e=null;(e=t._parent?t._parent:t).sketchStage.vertexGraphics.concat(e.sketchStage.midVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t.sketchInnerLayer)}),e._otherDrawTools=[],e.sketchStage.vertexGraphics=[],e.sketchStage.midVertexGraphics=[]};e===u.SketchEditMode.EDITGRAGIC?r():e===u.SketchEditMode.EDITVERTEX?n():(r(),n())}},{key:"_isDrawToolFeature",value:function(e){var t=this,r=e.id,n=!1;return this.sketchStage.entityGraphic.id===r&&(n=!0,this._editMode=u.SketchEditMode.EDITGRAGIC),this.sketchStage.vertexGraphics.forEach(function(e){e.id===r&&(n=!0,t._editMode=u.SketchEditMode.EDITVERTEX)}),this.sketchStage.midVertexGraphics.forEach(function(e){e.id===r&&(n=!0,t._editMode=u.SketchEditMode.EDITVERTEX)}),n||(this._editMode=u.SketchEditMode.NONE),n}},{key:"_getDrawToolByFeature",value:function(e){var t=e.id,r=null;return this.sketchStage.entityGraphic.id===t&&(r=this.sketchStage.entityGraphic),r.length>0?r[0]:null}},{key:"_addFeaturesToMap",value:function(e){this.layer&&this.layer.add(e)}},{key:"_addFeatureToLayer",value:function(e,t){t&&t.add(e)}},{key:"_removeFeatureFromMap",value:function(e){this.layer&&this.layer.remove(e)}},{key:"_removeFeatureFromLayer",value:function(e,t){t&&t.remove(e)}},{key:"_dispatchEvent",value:function(e,t,r){return this._parent&&this._parent.fire(e,t,r),this}},{key:"updateFeature",value:function(e,t){var r=t.id;this.sketchStage.entityGraphic.id===r&&(this.sketchStage.entityGraphic.coordinates=e.coordinates,this.sketchStage.entityGraphic.geometry=e,t=this.sketchStage.entityGraphic)}},{key:"removeDrawTool",value:function(){var e=this;this._removeFeatureFromLayer(this.sketchStage.entityGraphic,this.layer),this.sketchStage.getAllFeatures().forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),this._stopAll()}},{key:"removeEntityGraphic",value:function(){this._removeFeatureFromLayer(this.sketchStage.entityGraphic,this._layer),this.sketchStage.entityGraphic=null}},{key:"removeVertexGraphics",value:function(){var e=this;this.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),this.sketchStage.vertexGraphics=[]}},{key:"addVertex",value:function(e,t){}},{key:"updateVertex",value:function(e,t){}},{key:"removeVertex",value:function(e,t){}},{key:"getDistanceByPixel",value:function(e){return this.view.getResolution?this.view.getResolution()*e:1e3}},{key:"getPanCoordinates",value:function(e,t,r,n,i){return"e"===n?this._getCenterCoordinate([i.xmax,i.ymin],[i.xmax,i.ymax]):"s"===n?this._getCenterCoordinate([i.xmax,i.ymin],[i.xmin,i.ymin]):"w"===n?this._getCenterCoordinate([i.xmin,i.ymin],[i.xmin,i.ymax]):"n"===n?this._getCenterCoordinate([i.xmax,i.ymax],[i.xmin,i.ymax]):[e[0]+t,e[1]+r]}},{key:"getScaleCoordinates",value:function(e,t,r,n,i,o,a){var s=[];return o=o||[],e.forEach(function(e,a){var u=function(e,t,r,o,a){var s=1,u=1,l=Number(e[0].toString()),c=Number(e[1].toString()),h=n.coordinates,f=i.coordinates;return o=o||[],"ne"===r&&(s=(f[0]-t.xmin)/(h[0]-t.xmin),l=([o[0]]-t.xmin)*s+t.xmin,u=(f[1]-t.ymin)/(h[1]-t.ymin),c=(o[1]-t.ymin)*u+t.ymin),"se"===r&&(s=(f[0]-t.xmin)/(h[0]-t.xmin),l=([o[0]]-t.xmin)*s+t.xmin,u=(f[1]-t.ymax)/(h[1]-t.ymax),c=(o[1]-t.ymax)*u+t.ymax),"sw"===r&&(s=(f[0]-t.xmax)/(h[0]-t.xmax),l=([o[0]]-t.xmax)*s+t.xmax,u=(f[1]-t.ymax)/(h[1]-t.ymax),c=(o[1]-t.ymax)*u+t.ymax),"nw"===r&&(s=(f[0]-t.xmax)/(h[0]-t.xmax),l=([o[0]]-t.xmax)*s+t.xmax,u=(f[1]-t.ymin)/(h[1]-t.ymin),c=(o[1]-t.ymin)*u+t.ymin),[l,c]}(e,r,t,o[a]);void 0!==e[2]&&(u[2]=e[2]),s.push(u)}),s}},{key:"getMidScaleCoordinates",value:function(e,t,r,n,i,o){var a=[];return o=o||[],e.forEach(function(e,s){var u=function(e,t,r,o){var a=1,s=1,u=e[0],l=e[1],c=n.coordinates,h=i.coordinates;return o=o||[],"e"===r&&(a=(h[0]-t.xmin)/(c[0]-t.xmin),u=([o[0]]-t.xmin)*a+t.xmin),"s"===r&&(s=(h[1]-t.ymax)/(c[1]-t.ymax),l=(o[1]-t.ymax)*s+t.ymax),"w"===r&&(a=(h[0]-t.xmax)/(c[0]-t.xmax),u=([o[0]]-t.xmax)*a+t.xmax),"n"===r&&(s=(h[1]-t.ymin)/(c[1]-t.ymin),l=(o[1]-t.ymin)*s+t.ymin),[u,l]}(e,r,t,o[s]);e[2]&&(u[2]=e[2]),a.push(u)}),a}},{key:"getCenterScaleCoordinates",value:function(e,t,r,n,i,o){var a=[];return o=o||[],e.forEach(function(e,s){var u=function(e,t,r,o){var a=1,s=1,u=e[0],l=e[1],c=n.coordinates,h=i.coordinates;return o=o||[],"e"===r&&(a=(h[0]-t.xmin)/(c[0]-t.xmin),u=([o[0]]-t.xmin)*a+t.xmin),"s"===r&&(s=(h[1]-t.ymax)/(c[1]-t.ymax),l=(o[1]-t.ymax)*s+t.ymax),"w"===r&&(a=(h[0]-t.xmax)/(c[0]-t.xmax),u=([o[0]]-t.xmax)*a+t.xmax),"n"===r&&(s=(h[1]-t.ymin)/(c[1]-t.ymin),l=(o[1]-t.ymin)*s+t.ymin),[u,l]}(e,r,t,o[s]);e[2]&&(u[2]=e[2]),a.push(u)}),a}},{key:"_setSketchStage",value:function(e){this.sketchStage=e}},{key:"_getDrawToolByFeatureId",value:function(e){return this._drawTools.find(function(t){return t.sketchStage.entityGraphic&&t.sketchStage.entityGraphic.id===e})}},{key:"_removeEditGraphics",value:function(){var e=this;this.sketchStage.selectBoxGraphics.concat(this.sketchStage.selectBoxVertexGraphics).concat(this.sketchStage.vertexGraphics).concat(this.sketchStage.midVertexGraphics).forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),this.sketchStage.selectBoxGraphics=[],this.sketchStage.selectBoxVertexGraphics=[],this.sketchStage.vertexGraphics=[],this.sketchStage.midVertexGraphics=[]}},{key:"_getInteractiveDom",value:function(){for(var e=[],t=document.getElementsByClassName("leaflet-interactive"),r=0;r<t.length;r++)e.push(t[r]);return e}},{key:"_removeInteractiveStyle",value:function(e){for(var t=0;t<e.length;t++)e[t].classList.remove("leaflet-interactive")}},{key:"_addInteractiveStyle",value:function(e){for(var t=0;t<e.length;t++)e[t].classList.add("leaflet-interactive")}},{key:"_setInitSnap",value:function(){var e=this;this._snapPoint=null,this._handlerInitMouseMove=function(t){if(t&&t.x&&t.y){var r={x:t.x,y:t.y},n=e.view.toMap({x:r.x,y:r.y});e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._snapPoint=e.getSnapGraphics(n)}},this._drawEventHandlers.push(this._handlerInitMouseMove),this.view.on(u.ViewEventType.pointerMove,this._handlerInitMouseMove)}},{key:"_stopInitSnap",value:function(){this._handlerInitMouseMove&&(this.view.off(u.ViewEventType.pointerMove,this._handlerInitMouseMove),this._handlerInitMouseMove=void 0)}},{key:"_fireStartDrawEvent",value:function(e){e=e||this;var t=new f.SketchEditorEvent({type:u.SketchEditorEventType.create,toolEventInfo:{},state:u.SketchEditorState.start});e.fire(u.SketchEditorEventType.create,t,self)}},{key:"_fireDrawVertexEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.create,toolEventInfo:{type:u.SketchEditorToolEventType.vertexAdd},state:u.SketchEditorState.active,feature:e,geometry:e?e.geometry:void 0});t.fire(u.SketchEditorEventType.create,r,self)}},{key:"_fireChangeCursorEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.create,toolEventInfo:{type:u.SketchEditorToolEventType.cursorChange},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.create,r,self)}},{key:"_fireStopDrawEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.create,toolEventInfo:null,state:u.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.create,r,self)}},{key:"_fireStartPanEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.moveStart},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_firePanningEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.move},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireStopPanEvent",value:function(e,t){var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.moveStop},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireStartScaleEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.scaleStart},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireScalingEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.scale},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireStopScaleEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.scaleStop},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireStartVertexMoveEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.vertexMoveStart},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireUpdateVertex",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.vertexUpdate},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireStopVertexMoveEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.vertexMoveStop},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireAddVertexEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.vertexAdd},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireAddVertexEventByFun",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.vertexAdd},state:u.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,this)}},{key:"_fireUpdateVertexByFun",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.vertexUpdate},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireRemoveVertexByFun",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.vertexRemove},state:u.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,this)}},{key:"_fireRemoveSelectEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:null,state:u.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireUnsimpleDraw",value:function(e){e=e||this;var t=new f.SketchEditorEvent({type:u.SketchEditorEventType.create,toolEventInfo:{type:u.SketchEditorToolEventType.geometryUnsimple},state:u.SketchEditorState.active});e.fire(u.SketchEditorEventType.create,t,self)}},{key:"_fireUnsimpleUpdate",value:function(e){e=e||this;var t=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.geometryUnsimple},state:u.SketchEditorState.active});e.fire(u.SketchEditorEventType.update,t,self)}},{key:"_fireUnsimpleUpdateByFun",value:function(e){e=e||this;var t=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.geometryUnsimple},state:u.SketchEditorState.complete});e.fire(u.SketchEditorEventType.update,t,self)}},{key:"getSnapGraphics",value:function(e,t){var r=this,n=null,i=null,o=[],a=null;t&&0!==t.length?1===t.length?i=new c.LineString({coordinates:[t[0],e.coordinates],spatialReference:this._spatialReference}):(i=new c.LineString({coordinates:t.slice(-2),spatialReference:this._spatialReference}),"sketchFreehandPolylineDrawTool"!==this.type&&"sketchFreehandPolygonDrawTool"!==this.type&&(a=new c.LineString({coordinates:t.slice(0,t.length),spatialReference:this._spatialReference}))):i=e,o=this.snapAndReferGeometries,this.sketchSnappingTool.snapSketchGeometry&&a&&(o=this.snapAndReferGeometries.concat([a])),t&&t.length>0&&("sketchFreehandPolylineDrawTool"===this.type||"sketchFreehandPolygonDrawTool"===this.type)&&o.push(new c.Point({coordinates:t[0],spatialReference:this._spatialReference}));var s=this.sketchSnappingTool.snapGeometries(e,i,o);if(s.coincidentPoint){var l=new u.Feature({geometry:s.coincidentPoint.realPoint,symbol:this.sketchStyle._coincidentPointStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(l),n=s.coincidentPoint.realPoint}else if(s.inLineAndParallel){s.inLineAndParallel.lines.forEach(function(e){var t=new u.Feature({geometry:e,symbol:r.sketchStyle._parallelLineStyle,elevationInfo:r.elevationInfo});r.sketchStage.snapGraphics.push(t)});var h=new u.Feature({geometry:s.inLineAndParallel.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(h),s.inLineAndParallel.symbolGeometry){var f=new u.Feature({geometry:s.inLineAndParallel.symbolGeometry,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(f)}n=s.inLineAndParallel.realPoint}else if(s.inLineAndPerpendicular){s.inLineAndPerpendicular.lines.forEach(function(e){var t=new u.Feature({geometry:e,symbol:r.sketchStyle._perpendicularLineStyle,elevationInfo:r.elevationInfo});r.sketchStage.snapGraphics.push(t)});var d=new u.Feature({geometry:s.inLineAndPerpendicular.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(d),s.inLineAndPerpendicular.symbolGeometry){var p=new u.Feature({geometry:s.inLineAndPerpendicular.symbolGeometry,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(p)}n=s.inLineAndPerpendicular.realPoint}else if(s.pointInLine){var y=new u.Feature({geometry:s.pointInLine.line,symbol:this.sketchStyle._highlightLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(y);var g=new u.Feature({geometry:s.pointInLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(g),n=s.pointInLine.realPoint}else if(s.parallelLine){var m=new u.Feature({geometry:s.parallelLine.line,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(m);var v=new u.Feature({geometry:s.parallelLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(v),s.parallelLine.symbolGeometry){var _=new u.Feature({geometry:s.parallelLine.symbolGeometry,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(_)}n=s.parallelLine.realPoint}else if(s.perpendicularLine){var S=new u.Feature({geometry:s.perpendicularLine.line,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(S);var x=new u.Feature({geometry:s.perpendicularLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(x),s.perpendicularLine.symbolGeometry){var b=new u.Feature({geometry:s.perpendicularLine.symbolGeometry,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(b)}n=s.perpendicularLine.realPoint}return this.sketchStage.snapGraphics.forEach(function(e){r._addFeatureToLayer(e,r.sketchInnerLayer)}),n}},{key:"setSnapAndReferGeometries",value:function(e){e?this.snapAndReferGeometries=e:this._sketchEditor&&(this.snapAndReferGeometries=this._sketchEditor.snapAndReferGeometries)}},{key:"debounce",value:function(e,t){var r=void 0;return function(){var n=this,i=arguments;clearTimeout(r),r=setTimeout(function(){e.apply(n,i)},t)}}}]),t}(u.Evented);t.default=p},function(e,t,r){var n=r(136),i=r(98);e.exports=function(e){return n(i(e))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasemapChangeEvent=t.LayerLoadedEvent=t.LayerChangeEvent=t.CollectionChangeEvent=t.ProxyEvent=t.LayerViewUpdateEvent=t.LayerEvent=t.ErrorEvent=t.Event=void 0;var n=f(r(41)),i=f(r(265)),o=f(r(154)),a=r(155),s=f(r(277)),u=f(r(278)),l=f(r(279)),c=f(r(280)),h=f(r(281));function f(e){return e&&e.__esModule?e:{default:e}}t.Event=n.default,t.ErrorEvent=i.default,t.LayerEvent=o.default,t.LayerViewUpdateEvent=a.LayerViewUpdateEvent,t.ProxyEvent=s.default,t.CollectionChangeEvent=u.default,t.LayerChangeEvent=l.default,t.LayerLoadedEvent=c.default,t.BasemapChangeEvent=h.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(t){(0,n.default)(this,e),this.initPropertys(t)}return(0,i.default)(e,[{key:"initPropertys",value:function(e){var t=e||{};return this.type=t.type,this.target=t.target,t}},{key:"addProperty",value:function(e,t){e&&(this[e]=t)}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calcExtent=t.editGeometryByArc3=t.editFeatureByArc3=t.createGeometryByGeoJSON=t.createGeometry=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(33)),i=r(1),o=r(6),a=r(9),s=r(122);t.createGeometry=function(e){switch((e=(0,i.defaultValue)(e,{})).type){case o.GeometryType.point:return new a.Point(e);case o.GeometryType.multiPoint:return new a.MultiPoint(e);case o.GeometryType.lineString:return new a.LineString(e);case o.GeometryType.multiLineString:return new a.MultiLineString(e);case o.GeometryType.polygon:return new a.Polygon(e);case o.GeometryType.multiPolygon:return new a.MultiPolygon(e);case o.GeometryType.circle:return new a.Circle(e);case o.GeometryType.extent:return new a.Extent(e);default:i.Log.error("未输入正确的几何类型")}},t.createGeometryByGeoJSON=function(e){var t;switch((t="Feature"===e.type?e.geometry:e).type){case o.GeometryType.point:return new a.Point({coordinates:t.coordinates});case o.GeometryType.multiPoint:case o.GeometryType.lineString:return new a.LineString({coordinates:t.coordinates});case o.GeometryType.multiLineString:return new a.MultiLineString({coordinates:t.coordinates});case o.GeometryType.polygon:return new a.Polygon({coordinates:t.coordinates});case o.GeometryType.multiPolygon:return new a.MultiPolygon({coordinates:t.coordinates});default:i.Log.error("无法解析geojson")}},t.editFeatureByArc3=function(e){var t=s.Feature.fromJSON(e),r=a.GeometryEngine.getArcFromGeometry({geometry:t.geometry,arcInfo:t.additional.arc3}),n=t.toJSON();return n.geometry.coordinates=r.coordinates,s.Feature.fromJSON(n)},t.editGeometryByArc3=function(e,t){return t&&t.arc3?a.GeometryEngine.getArcFromGeometry({geometry:e,arcInfo:t.arc3}):e},t.calcExtent=function(e,t,r,s){var u=void 0;switch(r=(0,i.defaultValue)(r,o.GeometryType.polygon)){case o.GeometryType.polygon:u=n.polygon(e);break;case o.GeometryType.lineString:u=n.lineString(e);break;case o.GeometryType.multiPolygon:u=n.multiPolygon(e);break;case o.GeometryType.multiLineString:u=n.multiLineString(e)}var l=n.bbox(u);if(!t)return new a.Extent({xmin:l[0],ymin:l[1],xmax:l[2],ymax:l[3],spatialReference:s});var c=[];switch(r){case o.GeometryType.polygon:case o.GeometryType.multiLineString:for(var h=0;h<e.length;h++)for(var f=0;f<e[h].length;f++)c.push(e[h][f][2]);break;case o.GeometryType.lineString:for(var d=0;d<e.length;d++)c.push(e[d][2]);break;case o.GeometryType.multiPolygon:for(var p=0;p<e.length;p++)for(var y=0;y<e[p].length;y++)for(var g=0;g<e[p][y].length;g++)c.push(e[p][y][g][2])}c.sort(function(e,t){return e-t});var m=c[0],v=c[c.length-1];return new a.Extent({xmin:l[0],ymin:l[1],xmax:l[2],ymax:l[3],zmin:m,zmax:v,spatialReference:s})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(){(0,n.default)(this,e),this.type="unkown"}return(0,i.default)(e,[{key:"toJSON",value:function(){return{type:this.type}}},{key:"clone",value:function(){}}],[{key:"fromJSON",value:function(){}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGeometryFilter=t.getFullBaseUrl=t.appendUrlParams=t.getGeometryTypeByFeatureSet=t.getZoomOffset=t.getTileResolution=t.initCorporationType=t.getEPSGCodeFromOGCSupportedCRSString=t.formatIGSRenderer=t.formatIGSSymbol=t.getLayerViewScaleVisible=t.showLayerByScale=t.isCustomSP=t.is4326=t.getUrlType=t.getEPSGFromTileMatrixSetId=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(23)),i=r(6),o=r(1),a=r(8),s=r(155);function u(e){switch((e=(0,o.defaultValue)(e,{})).type){case i.SymbolType.simpleMarker:case i.SymbolType.simpleFill:e.color&&(e.color=new a.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255)),e.outline&&e.outline.color&&(e.outline.color=new a.Color(e.outline.color[0],e.outline.color[1],e.outline.color[2],e.outline.color[3]/255));break;case i.SymbolType.simpleLine:e.color&&(e.color=new a.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255));break;case i.SymbolType.pictureMarker:e.color&&(e.color=new a.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255)),e.url||(e.url=e.imageData);break;case i.SymbolType.pictureFill:e.outline&&e.outline.color&&(e.outline.color=new a.Color(e.outline.color[0],e.outline.color[1],e.outline.color[2],e.outline.color[3]/255)),e.url||(e.url=e.imageData);break;case i.SymbolType.text:e.color&&(e.color=new a.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255)),e.backgroundColor&&(e.backgroundColor=new a.Color(e.backgroundColor[0],e.backgroundColor[1],e.backgroundColor[2],e.backgroundColor[3]/255)),e.borderLineColor&&(e.borderLineColor=new a.Color(e.borderLineColor[0],e.borderLineColor[1],e.borderLineColor[2],e.borderLineColor[3]/255)),e.haloColor&&(e.haloColor=new a.Color(e.haloColor[0],e.haloColor[1],e.haloColor[2],e.haloColor[3]/255))}return e}function l(e,t){t=(0,o.defaultValue)(t,{});var r="";return(0,n.default)(t).forEach(function(e){r+=e+"="+t[e]+"&"}),""===(r=r.substring(0,r.length-1))?e:e.indexOf("?")>-1?e.indexOf("&")>-1?e+"&"+r:""+e+r:e+"?"+r}t.getEPSGFromTileMatrixSetId=function(e){if(!e)return"EPSG:4326";var t=e;return e.indexOf("EPSG:4326")>-1?t="EPSG:4326":e.indexOf("EPSG:4490")>-1?t="EPSG:4490":e.indexOf("EPSG:4610")>-1?t="EPSG:4610":e.indexOf("EPSG:3857")>-1&&(t="EPSG:3857"),t},t.getUrlType=function(e){var t=void 0,r=new RegExp("^http://t[0-6].tianditu.gov.cn/[a-z]{3}_[w|c]{1}/wmts$"),n=new RegExp("^http://[0-9.a-zA-Z]+:[0-9]{1,5}/igs/rest/services/[一-龟\\w/:_]+/WMTSServer$"),o=new RegExp("^https://[0-9.a-zA-Z]+:[0-9]{1,5}/igs/rest/services/[一-龟\\w/:_]+/WMTSServer$"),a=new RegExp("^http://[0-9.a-zA-Z]+/igs/rest/services/[一-龟\\w/:_]+/WMTSServer$"),s=new RegExp("^https://[0-9.a-zA-Z]+/igs/rest/services/[一-龟\\w/:_]+/WMTSServer$"),u=new RegExp("^http://[0-9.a-zA-Z]+:[0-9]{1,5}/arcgis/rest/services/[一-龟\\w/:_]+/WMTSServer$"),l=new RegExp("^https://[0-9.a-zA-Z]+:[0-9]{1,5}/arcgis/rest/services/[一-龟\\w/:_]+/WMTSServer$"),c=new RegExp("^http://[0-9.a-zA-Z]+/arcgis/rest/services/[一-龟\\w/:_]+/WMTSServer$"),h=new RegExp("^https://[0-9.a-zA-Z]+/arcgis/rest/services/[一-龟\\w/:_]+/WMTSServer$");return r.test(e)?t=i.UrlServerType.tdt:n.test(e)||o.test(e)||a.test(e)||s.test(e)?t=i.UrlServerType.igs_2:(u.test(e)||l.test(e)||c.test(e)||h.test(e))&&(t=i.UrlServerType.igs_2),t},t.is4326=function(e){return"4326"===String(e.wkid)||"4214"===String(e.wkid)||"4490"===String(e.wkid)||"4610"===String(e.wkid)},t.isCustomSP=function(e){return"4326"!==String(e.wkid)&&"4214"!==String(e.wkid)&&"4490"!==String(e.wkid)&&"4610"!==String(e.wkid)&&"3857"!==String(e.wkid)&&"900913"!==String(e.wkid)},t.showLayerByScale=function(e,t){t.visible&&function(e,t){var r=new s.LayerViewUpdateContent({name:"visible",params:[void 0],dataChanged:!0,operationType:"property",extensionOptions:{type:"scaleVisible",viewId:t._id}});e._fireUpdateEvent("最大最小比例尺引起图层显隐变化",[r])}(t,e)},t.getLayerViewScaleVisible=function(e){var t=void 0,r=e.view,n=e.layer,i=r.scale;if(!r.scale&&r.getScale&&(i=r.getScale()),!i)return!0;var o=n.minScale,a=n.maxScale;return"number"==typeof i&&i>0&&(t="number"==typeof o&&"number"==typeof a&&o>0&&a>0?i<=o&&i>=a:"number"==typeof o&&o>0&&("number"!=typeof a||a<=0)?i<=o:!("number"==typeof a&&a>0&&("number"!=typeof o||o<=0))||i>=a),t},t.formatIGSSymbol=u,t.formatIGSRenderer=function(e){switch((e=(0,o.defaultValue)(e,{})).type){case i.RendererType.simple:e.symbol=u(e.symbol);break;case i.RendererType.uniqueValue:e.defaultSymbol=u(e.defaultSymbol);for(var t=0;t<e.uniqueValueInfos.length;t++)e.uniqueValueInfos[t].symbol=u(e.uniqueValueInfos[t].symbol);break;case i.RendererType.classBreak:e.defaultSymbol=u(e.defaultSymbol);for(var r=0;r<e.classBreakInfos.length;r++)e.classBreakInfos[r].symbol=u(e.classBreakInfos[r].symbol);if(e.classBreakInfos.length>0){e.classBreakInfos[0].minValue=e.minValue,e.classBreakInfos[0].maxValue=e.classBreakInfos[0].classMaxValue;for(var n=1;n<e.classBreakInfos.length;n++)e.classBreakInfos[n].minValue=e.classBreakInfos[n-1].classMaxValue,e.classBreakInfos[n].maxValue=e.classBreakInfos[n].classMaxValue}}return e},t.getEPSGCodeFromOGCSupportedCRSString=function(e){var t=4326,r=-1;return(r=e.search("EPSG::"))>-1?t=parseInt(e.substring(r+"EPSG::".length)):(r=e.search("EPSG:"))>-1&&e.search("3857")>0?t=3857:((r=e.search("OGC:2:84"))<0&&(r=e.search("OGC:1.3:CRS84")),r>-1&&(t=4326)),3867!==t&&900913!==t&&102100!==t||(t=3857),t},t.initCorporationType=function(e){return void 0===e?i.WMTSCorporation.none:e.search("arcgis/rest/services")>0?i.WMTSCorporation.corporationArcGIS:e.search("WMTSServer")>0||e.search("WMSServer")>0?i.WMTSCorporation.corporationZD:e.search("geoserver")>0?i.WMTSCorporation.corporationGeoServer:e.search("tianditu.com")>0||e.search("tianditu.gov.cn")>0?i.WMTSCorporation.corporationTianDiTu:i.WMTSCorporation.corporationOther},t.getTileResolution=function(e,t,r,n){var o="",a=-1,s=0,u=0,l=0,c=25.4/96,h=1e3;return t===i.WMTSCorporation.corporationZD?(a=e.lastIndexOf("_GB"))>0?((a=(o=e.slice(0,e.length-3)).lastIndexOf("_"))>0&&(o=o.slice(a+1)),"028mm"===o?s=0:"arcgis"===o?s=1:"dpi96"===o?s=2:"GoogleMapsCompatible"===o&&(s=3),n.isGeographic?0===s?(h=111319490.79327358,c=.28):1===s?(c=.28,h=111194872.221777):2===s&&(h=111319490.79327358,c=25.4/96):0===s?c=.28:1===s?c=.28:2===s?c=25.4/96:3===s&&(c=.28)):n.isGeographic?(h=111194872.221777,c=25.4/96):c=25.4/96:t===i.WMTSCorporation.corporationArcGIS?(u=e.includes("default")?0:e.includes("native")?1:e.includes("GoogleMapsCompatible")?2:3,n.isGeographic?0===u?(r=.28*r*96/25.4,h=111194872.221777,c=.2645838625):1===u&&(h=111194872.221777,c=.2645838625):0===u?(r=.28*r*96/25.4,c=.2645838625):1===u?c=.2645838625:2===u&&(c=.28)):t===i.WMTSCorporation.corporationGeoServer?n.isGeographic?(h=111319490.79327358,c=.28):c=.28:t===i.WMTSCorporation.corporationTianDiTu?n.isGeographic?(h=111319490.79327358,c=25.4/96):c=25.4/96:(e.includes("028")&&(l=1),"".includes("GoogleMapsCompatible")&&(l=1),"".includes("GoogleCRS84Quad")&&(l=1),n.isGeographic?1===l?(r=.28*r*96/25.4,h=111194872.221777,c=.2645838625):(h=111319490.79327358,c=25.4/96):1===l?(r=.28*r*96/25.4,c=.2645838625):c=25.4/96),r*c/h},t.getZoomOffset=function(e,t,r){r=(0,o.defaultValue)(r,.01);for(var n=0;n<e.length;n++)if(Math.abs(e[n].resolution-t.resolution)/t.resolution<r)return e[0].level-n+t.level;return 0},t.getGeometryTypeByFeatureSet=function(e){var t=i.GeometryType.geometry;return e&&e.features&&Array.isArray(e.features)&&e.features.length>0&&(t=e.features[0].geometry.type),t},t.appendUrlParams=l,t.getFullBaseUrl=function(e){var t={};return e.tokenKey&&e.tokenValue&&(t[e.tokenKey]=e.tokenValue),l(e.url,t)},t.getGeometryFilter=function(e,t){var r={geometryType:void 0,geometry:"",spatialRel:t=(0,o.defaultValue)(t,a.SpatialRelation.Intersects)};function n(e){for(var t="",r=0;r<e.length;r++){for(var n=0;n<e[r].length;n++)t+=e[r][n][0]+","+e[r][n][1]+",";t=t.substring(0,t.length-1),t+="|"}return t.substring(0,t.length-1)}switch(e.type){case i.GeometryType.extent:return r.geometryType="rect",r.geometry=e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,r;case i.GeometryType.polygon:return r.geometryType="polygon",r.geometry=n(e.coordinates),r;case i.GeometryType.multiPolygon:r.geometryType="polygon";for(var s=0;s<e.coordinates.length;s++)r.geometry+=n(e.coordinates[s]),r.geometry+=";";return r.geometry=r.geometry.substring(0,r.geometry.length-1),r;default:return}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(r(11)),i=v(r(14)),o=v(r(3)),a=v(r(0)),s=v(r(2)),u=v(r(4)),l=v(r(5)),c=r(8),h=r(1),f=r(6),d=r(40),p=v(r(53)),y=r(9),g=r(44),m=r(46);function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this));return e=(0,h.defaultValue)(e,{}),r.id=(0,h.defaultValue)(e.id,(0,h.getGUID)()),r.description=(0,h.defaultValue)(e.description,"图层基类"),r.copyright=(0,h.defaultValue)(e.copyright,"中地数码版权所有"),r.loadStatus=(0,h.defaultValue)(e.loadStatus,f.LoadStatus.notLoaded),r.loaded=!1,r.tokenKey=(0,h.defaultValue)(e.tokenKey,"token"),r.tokenValue=(0,h.defaultValue)(e.tokenValue,void 0),r.tokenAttachType=(0,h.defaultValue)(e.tokenAttachType,f.TokenAttachType.normal),r.index=(0,h.defaultValue)(e.index,void 0),r.title=(0,h.defaultValue)(e.title,void 0),r.minScale=(0,h.defaultValue)(e.minScale,0),r.maxScale=(0,h.defaultValue)(e.maxScale,0),r.extendProps=(0,h.defaultValue)(e.extendProps,{}),r.type=f.LayerType.baseLayer,r.httpMethod=(0,h.defaultValue)(e.httpMethod,f.FetchMethod.get),r.headers=(0,h.defaultValue)(e.headers,{}),r.extensionOptions=(0,h.defaultValue)(e.extensionOptions,{}),r._visible=(0,h.defaultValue)(e.visible,!0),r._opacity=parseFloat((0,h.defaultValue)(e.opacity,1)),r._spatialReference=e.spatialReference?p.default.fromJSON(e.spatialReference):void 0,r._realIndex=void 0,r._isBasemapLayer=!1,r.autoAddTo2D=(0,h.defaultValue)(e.autoAddTo2D,!0),r.autoAddTo3D=(0,h.defaultValue)(e.autoAddTo3D,!0),r._loadPromise=null,r}return(0,l.default)(t,e),(0,s.default)(t,[{key:"isLoaded",value:function(){return this.loadStatus===f.LoadStatus.loaded}},{key:"load",value:function(){return this.loadStatus===f.LoadStatus.notLoaded?(this.loadStatus=f.LoadStatus.loading,this._loadPromise=this._load()):(this.loadStatus,f.LoadStatus.loading),this._loadPromise}},{key:"_load",value:function(){var e=this;return new i.default(function(t){e.loadStatus=f.LoadStatus.loaded,e.loaded=!0,t(e)})}},{key:"setMap",value:function(e){this._map=e}},{key:"destroy",value:function(){}},{key:"_fireUpdateEvent",value:function(e,t){this._map&&this._map.fire(f.LayerEventType.layerUpdate,new d.LayerViewUpdateEvent({type:f.LayerEventType.layerUpdate,target:this._map,layer:this,message:e,updateContent:t}))}},{key:"toJSON",value:function(){return{id:this.id,description:this.description,copyright:this.copyright,loadStatus:this.loadStatus,loaded:this.loaded,tokenKey:this.tokenKey,tokenValue:this.tokenValue,tokenAttachType:this.tokenAttachType,index:this.index,title:this.title,minScale:this.minScale,maxScale:this.maxScale,type:this.type,visible:this.visible,opacity:this.opacity,spatialReference:(0,h.toJSON)(this.spatialReference,p.default),extent:(0,h.toJSON)(this.extent,y.Extent),autoAddTo2D:this.autoAddTo2D,autoAddTo3D:this.autoAddTo3D,extendProps:this.extendProps,extensionOptions:this.extensionOptions}}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"refresh",value:function(){this._fireUpdateEvent("刷新图层",[{params:arguments,dataChanged:!0,name:"refresh",operationType:"method"}])}},{key:"_updateIndex",value:function(){this._fireUpdateEvent("修改图层的index",[{name:"index",params:[this],dataChanged:!0,operationType:"property"}])}},{key:"_buildRequestUrl",value:function(){var e={};return this.tokenKey&&this.tokenValue&&(e[this.tokenKey]=this.tokenValue),(0,g.appendUrlParams)(this.url,e)}}],[{key:"fromJSON",value:function(e){return e=e||{},(0,m.createLayer)(e)}},{key:"fromServerUrl",value:function(e,r){return new i.default(function(n){r.url=e,n(new t(r))})}}]),t}(c.Evented);(0,n.default)(_.prototype,{visible:{get:function(){return this._visible},set:function(e){this._visible=e,this._fireUpdateEvent("显隐变化",[{name:"visible",params:[this._visible],dataChanged:!0,operationType:"property"}])}},opacity:{get:function(){return this._opacity},set:function(e){this._opacity=Number(e),this._fireUpdateEvent("透明度变化",[{name:"opacity",params:[this._opacity],dataChanged:!0,operationType:"property"}])}},spatialReference:{get:function(){return this._spatialReference},set:function(e){this._spatialReference=e}},extent:{get:function(){return this._extentSrc},set:function(e){this._extentSrc=e}}}),t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSublayerArr=t.getLayersCollection=t.createLayer=t.flatServerSublayerInfos=t.setElevationInfo=t.fireEvent=t.setSublayer=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(22)),i=r(8),o=r(6),a=r(15),s=r(35);t.setSublayer=function(e,t,r){for(var i=!0,o=0;o<e._sublayers.length;o++)if(String(e._sublayers[o].name)===String(t.name)||String(e._sublayers[o].id)===String(t.id)){(0,n.default)(e._sublayers[o],t),i=!1;break}for(var a=0;a<e.allSublayers.length;a++)if(String(e.allSublayers[a].name)===String(t.name)||String(e.allSublayers[a].id)===String(t.id)){(0,n.default)(e.allSublayers[a],t),i=!1;break}if(i)if(t instanceof r)e._sublayers.push(t);else if(t instanceof Object&&!(t instanceof Array))for(var s=0;s<e.allSublayers.length;s++)if(String(t.id)===String(e.allSublayers[s].id)||String(t.name)===String(e.allSublayers[s].name)){e._sublayers.push(new r((0,n.default)(e.allSublayers[s].toJSON(),t)));break}},t.fireEvent=function(e,t,r){e._map&&e._map.fire(t,new i.LayerEvent({type:r,target:e._map,layer:e,extend:{type:r}}))},t.setElevationInfo=function(e,t){e.elevationInfo||(t.elevationInfo?e.elevationInfo=t.elevationInfo:e.elevationInfo=new i.ElevationInfo)},t.flatServerSublayerInfos=function e(t,r){!t||!Array.isArray(t)||t.length<=0||t.forEach(function(t){r.push(t),t.children&&e(t.children,r)})},t.createLayer=function(e){var t=void 0;switch((e=e||{}).type){case o.LayerType.arcgisMapImage:t=s.ArcGISMapImageLayer.fromJSON(e);break;case o.LayerType.arcgisTile:t=s.ArcGISTileLayer.fromJSON(e);break;case o.LayerType.arcgisVectorTile:t=s.ArcGISVectorTileLayer.fromJSON(e);break;case o.LayerType.cesium3DTiles:t=s.Cesium3DTilesCacheLayer.fromJSON(e);break;case o.LayerType.echarts:t=s.EchartsLayer.fromJSON(e);break;case o.LayerType.feature:t=s.FeatureLayer.fromJSON(e);break;case o.LayerType.geojson:t=s.GeoJSONLayer.fromJSON(e);break;case o.LayerType.graphics:t=s.GraphicsLayer.fromJSON(e);break;case o.LayerType.group:t=s.GroupLayer.fromJSON(e);break;case o.LayerType.igsFeature:t=s.IGSFeatureLayer.fromJSON(e);break;case o.LayerType.igsMapImage:t=s.IGSMapImageLayer.fromJSON(e);break;case o.LayerType.igsVectorTile:t=s.IGSVectorTileLayer.fromJSON(e);break;case o.LayerType.igsTile:t=s.IGSTileLayer.fromJSON(e);break;case o.LayerType.m3dCache:t=s.M3DModelCacheLayer.fromJSON(e);break;case o.LayerType.mapv:t=s.MapVLayer.fromJSON(e);break;case o.LayerType.terrain:t=s.TerrainCacheLayer.fromJSON(e);break;case o.LayerType.webTileLayer:t=s.WebTileLayer.fromJSON(e);break;case o.LayerType.wfs:t=s.WFSLayer.fromJSON(e);break;case o.LayerType.wms:t=s.WMSLayer.fromJSON(e);break;case o.LayerType.wmts:t=s.WMTSLayer.fromJSON(e);break;case o.LayerType.unknown:default:t=s.UnknownLayer.fromJSON(e)}return t},t.getLayersCollection=function(e){return(e=e||[])instanceof i.Collection?e:(e=e.filter(function(e){return e}).map(function(e){return e instanceof s.Layer?e:s.Layer.fromJSON(e)}),new i.Collection(e))},t.toSublayerArr=function(e){if(e){var t=[];return e instanceof i.Collection?t=e.items:Array.isArray(e)&&(t=e),t.map(function(e){return e instanceof a.SubLayer?e.toJSON():e})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(5)),u=r(66),l=r(8),c=r(1);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this));return e=(0,c.defaultValue)(e,{}),r.id=(0,c.defaultValue)(e.id,(0,c.getGUID)()),r.type="",r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,id:this.id}}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(l.Evented);f.fromJSON=function(e){return(0,u.createRender)(e)},t.default=f},function(e,t,r){var n=r(28),i=r(60);e.exports=r(27)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){"use strict";t.__esModule=!0;var n=a(r(255)),i=a(r(257)),o="function"==typeof i.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===o(n.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":o(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=s(r(156));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t,r,i,a){(0,n.default)(this,e),this.red=(0,o.defaultValue)(t,0),this.green=(0,o.defaultValue)(r,0),this.blue=(0,o.defaultValue)(i,0),this.alpha=(0,o.defaultValue)(a,1)}return(0,i.default)(e,[{key:"toCesiumRGB",value:function(){return{red:this.red/255,green:this.green/255,blue:this.blue/255,alpha:this.alpha}}},{key:"toCssRGBAString",value:function(){return"rgba("+this.red+","+this.green+","+this.blue+","+this.alpha+")"}},{key:"toCssRGBString",value:function(){return"rgb("+this.red+","+this.green+","+this.blue+")"}},{key:"clone",value:function(){return new e(this.red,this.green,this.blue,this.alpha)}},{key:"toJSON",value:function(){return{red:this.red,green:this.green,blue:this.blue,alpha:this.alpha}}}]),e}();u.fromRGBString=function(e){if(u.isRGB(e))if(e.indexOf("rgba")>-1||e.indexOf("RGBA")>-1){var t=e.substring(5,e.length-1);if(4===(t=t.split(",")).length)return new u(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3]))}else if(e.indexOf("rgb")>-1||e.indexOf("RGB")>-1){var r=e.substring(4,e.length-1);if(3===(r=r.split(",")).length)return new u(Number(r[0]),Number(r[1]),Number(r[2]))}},u.fromHexString=function(e){if(u.isHex(e)){var t=u.hexToRgb(e);if(t.indexOf("rgba")>-1||t.indexOf("RGBA")>-1)return u.fromRGBString(t);if(t.indexOf("rgb")>-1||t.indexOf("RGB")>-1)return u.fromRGBString(t)}},u.fromJSON=function(e){e=(0,o.defaultValue)(e,{});var t=(0,o.defaultValue)(e.red,255),r=(0,o.defaultValue)(e.green,255),n=(0,o.defaultValue)(e.blue,255),i=(0,o.defaultValue)(e.alpha,1);return new u(t,r,n,i)},u.hexToRgb=function(e){if(/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(e)){var t=e.toLowerCase().replace(/\#/g,""),r=t.length;if(3===r||4===r){for(var n="",i=0;i<r;i++)n+=t.slice(i,i+1).concat(t.slice(i,i+1));r=(t=n).length}for(var o=[],a=0;a<r;a+=2){var s=t.slice(a,a+2);o.push(parseInt("0x"+s))}var u=void 0;if(6===r)u="rgb("+o.join(",")+")";else if(8===r){u="rgba(";for(var l=0;l<3;l++)u+=o[l]+",";u+=o[3]/255+")"}return u}},u.rgbToHex=function(e){if(/^(rgb|rgba|RGB|RGBA)/.test(e)){var t;t=e.indexOf("rgba")>-1||e.indexOf("RGBA")>-1?e.slice(5,e.length-1).split(","):e.slice(4,e.length-1).split(",");for(var r="#",n=0;n<3;n++)r+=i(t[n]);return 4===t.length&&(r+=i(255*Number(t[3]))),r}function i(e){var t=Number(e).toString(16);return"0"===t&&(t+="0"),1===t.length&&(t="0"+t),t}},u.fromCssString=function(e){if(!e||"string"!=typeof e)return u.fromHexString("#000000");var t=e.toLowerCase(),r=a.default[t];return r?u.fromHexString(r):u.fromHexString("#000000")},u.fromColor=function(e){return"string"==typeof e?u.isHex(e)?u.fromHexString(e):u.isRGB(e)?u.fromRGBString(e):u.fromCssString(e):e instanceof u?e:Array.isArray(e)?3===e.length?new u(e[0],e[1],e[2]):4===e.length?new u(e[0],e[1],e[2],e[3]):(o.Log.info("非法颜色值数组!"),new u):e instanceof Object?u.fromJSON(e):new u},u.isHex=function(e){return/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(e)},u.isRGB=function(e){return/^(rgb|rgba|RGB|RGBA)/.test(e)},t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={default:"default",color:"color",opacity:"opacity",size:"size"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(5)),u=d(r(73)),l=r(8),c=r(1),h=r(6),f=r(19);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this));return e=(0,c.defaultValue)(e,{}),r.id=(0,c.defaultValue)(e.id,(0,c.getGUID)()),r.color=l.Color.fromColor((0,c.defaultValue)(e.color,new l.Color(255,255,255,.25))),r.type=h.SymbolType.default,r.extensionOptions=(0,c.defaultValue)(e.extensionOptions,{}),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{color:l.Color.fromColor(this.color).toJSON(),type:this.type,extensionOptions:(0,c.cloneObject)(this.extensionOptions),id:this.id}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return(0,f.createSymbol)(e)}}]),t}(u.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(49)),i=l(r(0)),o=l(r(2)),a=r(1),s=r(170),u=l(r(121));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t){(0,i.default)(this,e),t=(0,a.defaultValue)(t,{});var r=this._parseSpatialReferenceOptions(t),n=r.wkid,o=r.wkt;this.wkid=n,this.wkt=o,this.unit=t.unit}return(0,o.default)(e,[{key:"_parseSpatialReferenceOptions",value:function(e){var t=4326,r=void 0;if(e.wkid&&e.wkt)return{wkid:e.wkid,wkt:e.wkt};if("string"==typeof e){var i=e.match(/\d+$/);/^(EPSG|epsg)(:)?\d+$/.test(e)&&i?(t=parseInt(i[0]),r=void 0):(r=e,t=void 0)}else"object"===(void 0===e?"undefined":(0,n.default)(e))?((0,a.defined)(e.wkid)&&(t=parseInt(e.wkid)),e.wkt&&(r=e.wkt,t=void 0)):a.Log.error("无法解析传入的空间参考系参数");return{wkid:t,wkt:r}}},{key:"clone",value:function(){return new e(this.toJSON())}},{key:"toJSON",value:function(){return{wkid:this.wkid,wkt:this.wkt}}},{key:"toString",value:function(){return this.wkid?"EPSG:"+this.wkid:this.wkt?this.wkt:void 0}},{key:"equals",value:function(t){if(!(t instanceof e||t instanceof Object&&t.hasOwnProperty("wkid")&&t.hasOwnProperty("wkt")))throw new Error("spatialReference的格式不正确!");return!!(this===t||this.wkid&&t.wkid&&this.wkid===t.wkid||this.wkt&&t.wkt&&this.wkt.toUpperCase()===t.wkt.toUpperCase())}},{key:"isWGS84",get:function(){return 4326===this.wkid}},{key:"isGeographic",get:function(){return!!(this.wkid&&void 0===s.ProjUnitWkidMap[this.wkid]||/^GEOGCS/.test(this.wkt)||/^[+]proj=longlat/.test(this.wkt))||this.wkid===u.default.bd09ll||this.wkid===u.default.gcj02ll}},{key:"isWebMercator",get:function(){return[102113,102100,900913,3857].indexOf(this.wkid)>-1||this.wkid===u.default.bd09mc||this.wkid===u.default.gcj02mc}},{key:"isWrappable",get:function(){return[4326,4490,4610,4214,102113,102100,900913,3857].indexOf(this.wkid)>-1}},{key:"WebMercator",get:function(){return this.isWebMercator?this.clone():void 0}},{key:"WGS84",get:function(){return this.isGeographic?this.clone():void 0}}],[{key:"fromJSON",value:function(t){return new e(t=(0,a.defaultValue)(t,{}))}}]),e}();t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=_(r(11)),i=_(r(3)),o=_(r(0)),a=_(r(2)),s=_(r(4)),u=_(r(7)),l=_(r(5)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(33)),h=_(r(29)),f=r(1),d=_(r(34)),p=r(6),y=_(r(74)),g=_(r(53)),m=_(r(63)),v=_(r(76));function _(e){return e&&e.__esModule?e:{default:e}}var S=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));if(e=(0,f.defaultValue)(e,{}),r.xmin=(0,f.defaultValue)(e.xmin,0),r.ymin=(0,f.defaultValue)(e.ymin,0),r.xmax=(0,f.defaultValue)(e.xmax,0),r.ymax=(0,f.defaultValue)(e.ymax,0),r.zmin=(0,f.defaultValue)(e.zmin,void 0),r.zmax=(0,f.defaultValue)(e.zmax,void 0),r.type=p.GeometryType.extent,r.hasZ=!(!(0,f.isNumber)(r.zmin)||!(0,f.isNumber)(r.zmax)),!(0,f.isNumber)(r.xmin)||!(0,f.isNumber)(r.ymin)||!(0,f.isNumber)(r.xmax)||!(0,f.isNumber)(r.ymax)||void 0!==r.zmin&&!(0,f.isNumber)(r.zmin)||void 0!==r.zmax&&!(0,f.isNumber)(r.zmax))throw new Error("坐标必须为数字");return r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"centerAt",value:function(e){if(!e)throw new Error("传入参数错误");var t=d.default.toCoordinates(e),r=this.width,n=this.height;if(this.xmin=t[0]-r/2,this.xmax=t[0]+r/2,this.ymin=t[1]-n/2,this.ymax=t[1]+n/2,this.hasZ&&e.hasZ){var i=this.zmax-this.zmin;this.zmin=t[2]-i/2,this.zmax=t[2]+i/2}return this}},{key:"contains",value:function(e){if(!(e instanceof d.default||e instanceof t))return!1;var r=e;r.isGeographic||(r=y.default.project(e,new g.default({wkid:4326})));var n=this;n.isGeographic||(n=y.default.project(this,new g.default({wkid:4326})));var i,o=c.polygon([[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]);return i=r instanceof d.default?c.point(r._cloneCoordinates()):c.polygon([[[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin]]]),c.booleanContains(o,i)}},{key:"intersection",value:function(e){e||f.Log.error("传入参数错误!"),e instanceof t||f.Log.error("extent不是Extent几何!"),this.spatialReference.equals(e.spatialReference)||f.Log.error("不是同一个坐标系!");var r=e;r.isGeographic||(r=y.default.project(e,new g.default({wkid:4326})));var n=this;n.isGeographic||(n=y.default.project(this,new g.default({wkid:4326})));var i=c.polygon([[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]),o=c.polygon([[[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin]]]),a=null,s=c.intersect(i,o);if(s&&s.geometry){var u=void 0;"Polygon"===s.geometry.type?u=c.bbox(c.polygon(s.geometry.coordinates)):"MultiPolygon"===s.geometry.type&&(u=c.bbox(c.multiPolygon(s.geometry.coordinates))),u&&(a=new t({xmin:u[0],ymin:u[1],xmax:u[2],ymax:u[3]}),this.spatialReference.isGeographic||(a=y.default.project(a,g.default.fromJSON(this.spatialReference))))}return a}},{key:"intersects",value:function(e){return m.default.intersects(this,e)}},{key:"equals",value:function(e){if(!e)throw new Error("传入参数错误");var t=!!Math.abs(this.xmax-e.xmax)<=1e-7,r=!!Math.abs(this.xmin-e.xmin)<=1e-7,n=!!Math.abs(this.ymax-e.ymax)<=1e-7,i=!!Math.abs(this.ymin-e.ymin)<=1e-7;if(!this.hasZ)return t&&r&&n&&i;var o=!!Math.abs(this.zmax-e.zmax)<=1e-7,a=!!Math.abs(this.zmin-e.zmin)<=1e-7;return t&&r&&n&&i&&o&&a}},{key:"expand",value:function(e){if("number"==typeof e){if(e>=1){e=Math.abs(e);var t=this.width*e,r=this.height*e,n=t-this.width,i=r-this.height;this.xmin-=n/2,this.xmax+=n/2,this.ymin-=i/2,this.ymax+=i/2}return this}throw new Error("按照给定的因子扩大范围,需要的是一个num值")}},{key:"offset",value:function(e,t,r){if(!(0,f.isNumber)(e)||!(0,f.isNumber)(t)||this.hasZ&&!(0,f.isNumber)(r))throw new Error("传入参数错误");return this.xmax+=e,this.xmin+=e,this.ymax+=t,this.ymin+=t,this.hasZ&&(this.zmax+=r,this.zmin+=r),this}},{key:"union",value:function(e){if(!e)throw new Error("传入参数错误");return this.hasZ?new t({xmin:e.xmin<this.xmin?e.xmin:this.xmin,xmax:e.xmax>this.xmax?e.xmax:this.xmax,ymin:e.ymin<this.ymin?e.ymin:this.ymin,ymax:e.ymax>this.ymax?e.ymax:this.ymax,zmin:e.zmin<this.zmin?e.zmin:this.zmin,zmax:e.zmax>this.zmax?e.zmax:this.zmax}):new t({xmin:e.xmin<this.xmin?e.xmin:this.xmin,xmax:e.xmax>this.xmax?e.xmax:this.xmax,ymin:e.ymin<this.ymin?e.ymin:this.ymin,ymax:e.ymax>this.ymax?e.ymax:this.ymax})}},{key:"toString",value:function(){return this.hasZ?this.xmin+","+this.ymin+","+this.zmin+","+this.xmax+","+this.ymax+","+this.zmax:this.xmin+","+this.ymin+","+this.xmax+","+this.ymax}},{key:"toJSON",value:function(){var e=(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"toJSON",this).call(this);return e.xmin=this.xmin,e.ymin=this.ymin,e.xmax=this.xmax,e.ymax=this.ymax,e.zmin=this.zmin,e.zmax=this.zmax,e.width=this.width,e.height=this.height,e}},{key:"toIGSOldString",value:function(){return this.xmin+"$"+this.ymin+"$"+this.xmax+"$"+this.ymax}},{key:"getIGSType",value:function(){return this.hasZ?p.IGSGeometryType.extent3D:p.IGSGeometryType.extent}},{key:"normalize",value:function(){var e=new d.default({coordinates:[this.xmin,this.ymin]}),r=new d.default({coordinates:[this.xmax,this.ymax]});return e=e.normalize(),r=r.normalize(),new t({xmin:e.coordinates[0],ymin:e.coordinates[1],xmax:r.coordinates[0],ymax:r.coordinates[1]})}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toPolygon",value:function(){return v.default.fromExtent(this)}},{key:"toGeoJSON",value:function(){return this.toPolygon().toGeoJSON()}}],[{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(h.default);(0,n.default)(S.prototype,{width:{configurable:!1,get:function(){return this.xmax-this.xmin}},height:{configurable:!1,get:function(){return this.ymax-this.ymin}},center:{configurable:!1,set:function(e){this.centerAt(e)},get:function(){return this.hasZ?new d.default({coordinates:[(this.xmax-this.xmin)/2+this.xmin,(this.ymax-this.ymin)/2+this.ymin,(this.zmax-this.zmin)/2+this.zmin],spatialReference:this.spatialReference}):new d.default({coordinates:[(this.xmax-this.xmin)/2+this.xmin,(this.ymax-this.ymin)/2+this.ymin],spatialReference:this.spatialReference})}}}),t.default=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(10)),i=y(r(3)),o=y(r(0)),a=y(r(2)),s=y(r(4)),u=y(r(5)),l=r(8),c=r(9),h=y(r(38)),f=y(r(37)),d=y(r(36)),p=r(1);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchPolygonDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r.vertexNum=0,r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=null,o=[],a=[];this.vertexNum=0;var s=null;this.cursorStyle=this.view.cursor,(0,p.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var u=this._getInteractiveDom(),h=this.extensionOptions&&this.extensionOptions.vertexNumber?this.extensionOptions.vertexNumber:null;this._setInitSnap(),this._fireStartDrawEvent();var d=function r(n){if(n&&n.x&&n.y){e._stopInitSnap(),clearTimeout(null);var o={x:n.x,y:n.y};e._editMode=l.SketchEditMode.DRAWING;var u;u=e._snapPoint?e._snapPoint:e.view.toMap({x:o.x,y:o.y});var d=e.vertexNum+1;if(1===d)a=[u.coordinates],(i=e._getFeature()).geometry.coordinates=[[a[0],a[0],a[0],a[0]]];else if(2===d){var y=i.geometry.coordinates[0][0];if(y&&y[0]===u.coordinates[0]&&y[1]===u.coordinates[1])return p.Log.info("相邻两顶点重复!");a=[i.geometry.coordinates[0][0],i.geometry.coordinates[0][1]]}else{var g=(a=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2))[a.length-1];if(g&&g[0]===u.coordinates[0]&&g[1]===u.coordinates[1])return p.Log.info("相邻两顶点重复!");if(a.push(u.coordinates),e._sketchEditor.isSimple){var m=new c.Polygon({coordinates:[a.concat([a[0]])],spatialReference:e._spatialReference,extensionOptions:{arcType:e.arcType}});if(!c.GeometryEngine.isSimple(m))return e._fireUnsimpleDraw(),p.Log.info("该坐标构成的几何不符合拓扑规范!")}}if(e.vertexNum=d,h&&d>=h)e.view.off(l.ViewEventType.immediateClick,r);else{e.sketchStage.entityGraphic=i;var v=new f.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});v.addFeature(u,void 0,void 0,e.sketchInnerLayer),e._drawTools.push(v);var _=v.sketchStage.entityGraphic;e.sketchStage.vertexGraphics.push(_),i&&(t=!0),s="click",e.fire("drawn-vertex",{geometry:v.sketchStage.entityGraphic.geometry,feature:v.sketchStage.entityGraphic},self),e._fireDrawVertexEvent(i),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode)}}},y=!0,g=function(l){if(l&&l.x&&l.y&&t&&!r){clearTimeout(null),r=!0,i=e.sketchStage.entityGraphic,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var c={x:l.x,y:l.y};o[o.length-1]=c;var f=e.view.toMap({x:c.x,y:c.y}),d=h&&e.vertexNum===h?e.vertexNum-1:e.vertexNum;1===d?a=[i.geometry.coordinates[0][0]]:2===d?(i.geometry.coordinates[0][2]=f.coordinates,a=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)):a=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2),1===e.vertexNum?e._snapPoint=e.getSnapGraphics(f,a):e.vertexNum>1&&(e._snapPoint=e.getSnapGraphics(f,a)),e._snapPoint&&(f=e._snapPoint),e._currentMovePoint=f,1===d?(i.geometry.coordinates[0][1]=f.coordinates,i.geometry.coordinates[0][2]=f.coordinates):2===d?i.geometry.coordinates[0][2]=f.coordinates:"click"===s?i.geometry.coordinates[0].splice(i.geometry.coordinates[0].length-1,0,f.coordinates):"move"===s&&i.geometry.coordinates[0].splice(i.geometry.coordinates[0].length-2,1,f.coordinates),e.sketchStage.entityGraphic=i,i.geometry.coordinates=[JSON.parse((0,n.default)(i.geometry.coordinates[0]))],y&&(e._addFeatureToLayer(i,e.layer),y=!1),r=!1,s="move";var p=e._getInteractiveDom();u=u.concat(p),e._removeInteractiveStyle(p),e._fireChangeCursorEvent(i)}},m=function(){return clearTimeout(null),clearTimeout(null),t?(i=e.sketchStage.entityGraphic)&&e._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(i.geometry)?(e._fireUnsimpleDraw(),p.Log.info("该坐标构成的几何不符合拓扑规范!")):e.vertexNum<3&&e.sketchStage.entityGraphic?p.Log.info("区几何顶点少于三个,不符合规范!"):(a=[],o=[],t=!1,e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=l.SketchEditMode.NONE,s="doubleClick",e.view.cursor=e.cursorStyle,e._addInteractiveStyle(u),e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.vertexNum=0,e.sketchStage.vertexGraphics=[],e._currentMovePoint=void 0,e.undoRedoManager._initDrawProcess(),void setTimeout(function(){e.view._mapActionControl("double-click-zoom",!0),e.view._mapActionControl("video-map-active",!1)},0)):(i=null,a=[],void(o=[]))};this._drawEventHandlers.push(d,g,m),this.view.on(l.ViewEventType.immediateClick,d),this.view.on(l.ViewEventType.pointerMove,g),this.view.on(l.ViewEventType.doubleClick,m)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[0,0],[0,0],[0,0]]);var t=new c.Polygon({coordinates:[e],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),r=this.sketchStyle.fillStyle.clone(),n=new l.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo});return n.isShowArea=this.sketchStyle.isShowArea,n.isShowArea&&(n._textStyle=this.sketchStyle.textStyle),n}},{key:"hitTestFeature",value:function(e,t){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===l.SketchEditMode.NONE?this._editMode=l.SketchEditMode.EDITGRAGIC:this._editMode===l.SketchEditMode.EDITVERTEX&&(this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=l.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===l.SketchEditMode.EDITGRAGIC&&this.startPanGraphics(e,t)}},{key:"selectFeature",value:function(e){var r=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var n=e.geometry.extent,i=new t({view:this.view,layer:this.layer,sketchStyle:new d.default({fillStyle:this.sketchStyle._selectBoxStyle,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate,_parent:this});this._drawTools.push(i),i.addFeature([[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax]],void 0,void 0,this.sketchInnerLayer),this.sketchStage.selectBoxGraphics=[i.sketchStage.entityGraphic];var o=[];if(o=[{point:new c.Point({coordinates:[n.xmax,n.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new c.Point({coordinates:[n.xmax,n.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new c.Point({coordinates:[n.xmin,n.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new c.Point({coordinates:[n.xmin,n.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var a=[{point:new c.Point({coordinates:this._getCenterCoordinate([n.xmax,n.ymax],[n.xmax,n.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new c.Point({coordinates:this._getCenterCoordinate([n.xmax,n.ymin],[n.xmin,n.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new c.Point({coordinates:this._getCenterCoordinate([n.xmin,n.ymin],[n.xmin,n.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new c.Point({coordinates:this._getCenterCoordinate([n.xmin,n.ymax],[n.xmax,n.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];o=o.concat(a)}var s=[],u=[];o.forEach(function(e){var t=new f.default({view:r.view,layer:r.layer,sketchStyle:new d.default({vertexStyle:r.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},arcType:r.arcType,_getCenterCoordinate:r._getCenterCoordinate,elevationInfo:r.elevationInfo,_parent:r});r._drawTools.push(t),t.addFeature(e.point,r.sketchStage,{direction:e.direction,type:e.type},r.sketchInnerLayer),s.push(t),u.push(t.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=u,this._otherDrawTools?this._otherDrawTools.push(i):this._otherDrawTools=[i],this._otherDrawTools=this._otherDrawTools.concat(s),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this._editMode),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||(this._mapClickEvent=function(){r._preventFirstCall?r._preventFirstCall=void 0:(r.sketchStage.selectBoxGraphics.concat(r.sketchStage.selectBoxVertexGraphics).concat(r.sketchStage.vertexGraphics).concat(r.sketchStage.midVertexGraphics).forEach(function(e){r._removeFeatureFromLayer(e,r.sketchInnerLayer)}),r.view.off(l.ViewEventType.immediateClick,r._mapClickEvent),r.view._mapActionControl("drag-pan",!0),r._mapClickEvent=null,r.fire("selected",{isSelected:!1},self),r._fireRemoveSelectEvent(r.sketchStage.entityGraphic),r.sketchStage.selectBoxGraphics=[],r.sketchStage.selectBoxVertexGraphics=[],r.sketchStage.vertexGraphics=[],r.sketchStage.midVertexGraphics=[],r._editMode=l.SketchEditMode.NONE,r.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._mapClickEvent)},0))}}},{key:"selectFeatureVertex",value:function(e){var t=this;this._clearEditGraphics(1);var r=[],n=[];e.geometry.coordinates[0].forEach(function(i,o){if(o<e.geometry.coordinates[0].length-1){var a=new f.default({view:t.view,layer:t.layer,sketchStyle:new d.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),s=new c.Point({coordinates:i,spatialReference:t._spatialReference});t._drawTools.push(a),a.addFeature(s,void 0,{vertexIndex:o},t.sketchInnerLayer),r.push(a),t.sketchStage.vertexGraphics.push(a.sketchStage.entityGraphic)}if(o>0){var u=new f.default({view:t.view,layer:t.layer,sketchStyle:new d.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(u);var l,h=e.geometry.coordinates[0][o-1],p=t._getCenterCoordinate(i,h);l=new c.Point({coordinates:p,spatialReference:t._spatialReference}),t._drawTools.push(u),u.addFeature(l,void 0,{vertexIndex:o-1,type:"midVertex"},t.sketchInnerLayer),t.sketchStage.midVertexGraphics.push(u.sketchStage.entityGraphic)}});var i=r.concat(n);this._otherDrawTools=this._otherDrawTools?this._otherDrawTools.concat(i):i,this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this._editMode)}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint;var o=!0,a=setTimeout(function(){o=!1,r._parent&&r._fireStartPanEvent(r._parent.sketchStage.entityGraphic,r._parent)},200);this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent);var s=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==l.SketchEditMode.EDITGRAGIC&&!o){clearTimeout(null),n=!0;var a={x:t.x,y:t.y},s=r.view.toMap({x:a.x,y:a.y}),u=s.coordinates[0]-i.coordinates[0],h=s.coordinates[1]-i.coordinates[1];if(0!==u||0!==h){var f=[];e.geometry.coordinates[0].forEach(function(e){f.push(r.getPanCoordinates(e,u,h))});var d=new c.Polygon({coordinates:[f],spatialReference:r._spatialReference,extensionOptions:{arcType:r.arcType}});i=s,r._dispatchEvent("pan",{deltaPosition:{x:u,y:h},extent:d.extent},r),r.updateFeature(d,e),n=!1,r._parent&&r._firePanningEvent(r._parent.sketchStage.entityGraphic,r._parent)}else n=!1}},u=function e(){if(!r._editMode!==l.SketchEditMode.EDITGRAGIC&&r._startPan){if(o&&r._parent&&r._parent._editMode===l.SketchEditMode.EDITGRAGIC&&"sketchPointDrawTool"!==r._parent.type&&r._parent.selectFeatureVertex)return r._parent._editMode=l.SketchEditMode.EDITVERTEX,clearTimeout(a),r._parent.selectFeatureVertex(r._parent.sketchStage.entityGraphic),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r._startPan=!1,r.view.off(l.ViewEventType.pointerMove,s),void r.view.off(l.ViewEventType.pointerUp,e);r._editMode=l.SketchEditMode.NONE,r._startPan=!1,r.view.off(l.ViewEventType.pointerMove,s),r.view.off(l.ViewEventType.pointerUp,e),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage,r._editMode),r._parent&&r._parent._mapClickEvent&&r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent),r._parent&&r._fireStopPanEvent(r._parent.sketchStage.entityGraphic,r._parent),setTimeout(function(){r.view._mapActionControl("drag-pan",!0)},0)}};this._hitTestEventHandlers.push(s),this._hitTestEventHandlers.push(u),this.view.on(l.ViewEventType.pointerUp,u),this.view.on(l.ViewEventType.pointerMove,s)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"circleVertexScale"===e.type?this._handlerCircleVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates[0].forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new c.Polygon({coordinates:[r],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerCircleVertexScaleEvent",value:function(e){if(this._parent&&this._parent.sketchStage.entityGraphic){var t,r=this._parent.sketchStage.entityGraphic.geometry.extent,n=[[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]];(t=new c.Polygon({coordinates:[[[0,0],[0,0],[0,0],[0,0]]],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})).coordinates=[n],this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates[0],i=JSON.parse((0,n.default)(r));i[e.vertexIndex]=e.movePoint.coordinates,i.length-1===e.vertexIndex?i[0]=e.movePoint.coordinates:0===e.vertexIndex&&(i[t.geometry.coordinates[0].length-1]=e.movePoint.coordinates);var o=new c.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(o))return this._fireUnsimpleUpdate(),p.Log.info("该坐标构成的几何不符合拓扑规范!");if(t.geometry=o,this._otherDrawTools){var a=e.vertexIndex,s=0===a?a-1+this.sketchStage.midVertexGraphics.length:a-1,u=a===this.sketchStage.midVertexGraphics.length-1?0:a+1,l=this.sketchStage.midVertexGraphics[a],h=this.sketchStage.midVertexGraphics[s],f=this.sketchStage.vertexGraphics[a],d=i[s],y=i[a],g=i[u];l.geometry.coordinates=this._getCenterCoordinate(y,g),h.geometry.coordinates=this._getCenterCoordinate(y,d),f.geometry.coordinates=y}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates[0].splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new c.Polygon({coordinates:[this.sketchStage.entityGraphic.geometry.coordinates[0]],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})),"moveMidVertex"===e.action){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));r[e.vertexIndex+1]=e.movePoint.coordinates;var i=new c.Polygon({coordinates:[r],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(i))return this._fireUnsimpleUpdate(),p.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry=i,this.sketchStage.midVertexGraphics[e.vertexIndex].geometry.coordinates=e.movePoint.coordinates}if("addVertex"===e.action){var o=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),a=new f.default({view:this.view,layer:this.layer,sketchStyle:new d.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(a),a.addFeature(e.point,void 0,void 0,this.sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,a.sketchStage.entityGraphic);var s,u=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex];this._getHight;var l=this._getCenterCoordinate(u,e.point.coordinates);s=new c.Point({coordinates:l,spatialReference:this._spatialReference});var h=new f.default({view:this.view,layer:this.layer,sketchStyle:new d.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(h),h.addFeature(s,void 0,{type:"midVertex"},this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,h.sketchStage.entityGraphic);var y,g=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+2];this._getHight;var m=this._getCenterCoordinate(g,e.point.coordinates);y=new c.Point({coordinates:m,spatialReference:this._spatialReference});var v=new f.default({view:this.view,layer:this.layer,sketchStyle:new d.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(v),v.addFeature(y,void 0,{type:"midVertex"},this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,v.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===o&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t.sketchInnerLayer)}),this._otherDrawTools.push(a),this._otherDrawTools.push(h),this._otherDrawTools.push(v)}}},{key:"addMidVertex",value:function(e,t){var r=new f.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){var r=null;if(--t>-1){var i=[];if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){if((i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]))).splice(t,0,e.coordinates),0===t?i[i.length-1]=e.coordinates:t===i.length-1&&i.splice(0,0,e.coordinates),r=new c.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),p.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var o=void 0,a=void 0,s=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var u=[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],this._getCenterCoordinate([s.xmax,s.ymax],[s.xmin,s.ymax]),this._getCenterCoordinate([s.xmax,s.ymin],[s.xmin,s.ymin]),this._getCenterCoordinate([s.xmax,s.ymax],[s.xmax,s.ymin]),this._getCenterCoordinate([s.xmin,s.ymax],[s.xmin,s.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=u[t]})}if(this.sketchStage.vertexGraphics.length>0&&(o=new f.default({view:this.view,layer:this.layer,sketchStyle:new d.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(o),o.addFeatureByGeometry(e,void 0,void 0,this.sketchInnerLayer),this.sketchStage.vertexGraphics.splice(t,0,o.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var l=-1,h=-1,y=null,g=null;0===t?(h=0,l=this.sketchStage.midVertexGraphics.length-1,y=this.sketchStage.entityGraphic.geometry.coordinates[0][this.sketchStage.entityGraphic.geometry.coordinates[0].length-2],g=this.sketchStage.entityGraphic.geometry.coordinates[0][1]):(l=t-1,h=t+1,y=this.sketchStage.entityGraphic.geometry.coordinates[0][l],g=this.sketchStage.entityGraphic.geometry.coordinates[0][h]);var m=new c.Point({coordinates:this._getCenterCoordinate(y,e.coordinates),spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[l].geometry.coordinates=m.coordinates;var v=new c.Point({coordinates:this._getCenterCoordinate(g,e.coordinates),spatialReference:this._spatialReference});a=new f.default({view:this.view,layer:this.layer,sketchStyle:new d.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(a),a.addFeatureByGeometry(v,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,a.sketchStage.entityGraphic),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}o&&this._otherDrawTools.push(o),a&&this._otherDrawTools.push(a),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireAddVertexEventByFun(o.sketchStage.entityGraphic,this._parent)}return r}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){var i=this.sketchStage.entityGraphic,o=JSON.parse((0,n.default)(i.geometry.coordinates[0]));if(this.currentVertexIndex=t,o[t]=e.coordinates,o.length-1===t?o[0]=e.coordinates:0===t&&(o[o.length-1]=e.coordinates),r=new c.Polygon({coordinates:[o],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),p.Log.info("该坐标构成的几何不符合拓扑规范!");i.geometry.coordinates=[o];var a=i.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var s=[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],this._getCenterCoordinate([a.xmax,a.ymax],[a.xmin,a.ymax]),this._getCenterCoordinate([a.xmax,a.ymin],[a.xmin,a.ymin]),this._getCenterCoordinate([a.xmax,a.ymax],[a.xmax,a.ymin]),this._getCenterCoordinate([a.xmin,a.ymax],[a.xmin,a.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=s[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var u=t,l=0===u?u-1+this.sketchStage.midVertexGraphics.length:u-1,h=u===this.sketchStage.midVertexGraphics.length-1?0:u+1,f=this.sketchStage.midVertexGraphics[u],d=this.sketchStage.midVertexGraphics[l],y=o[l],g=o[u],m=o[h];f.geometry.coordinates=this._getCenterCoordinate(m,g),f.geometry=new c.Point({coordinates:f.geometry.coordinates,spatialReference:this._spatialReference}),d.geometry.coordinates=this._getCenterCoordinate(y,g),d.geometry=new c.Point({coordinates:d.geometry.coordinates,spatialReference:this._spatialReference})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireUpdateVertexByFun(this.sketchStage.entityGraphic,this._parent)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates[0].length-1;if(r>3&&e<r){var i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));if(i.splice(e,1),0===e&&i.splice(i.length-1,1,i[0]),t=new c.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(t))return this._fireUnsimpleUpdateByFun(),p.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=t;var o=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],this._getCenterCoordinate([o.xmax,o.ymax],[o.xmin,o.ymax]),this._getCenterCoordinate([o.xmax,o.ymin],[o.xmin,o.ymin]),this._getCenterCoordinate([o.xmax,o.ymax],[o.xmax,o.ymin]),this._getCenterCoordinate([o.xmin,o.ymax],[o.xmin,o.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0){var s=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.vertexGraphics[e],this.sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==s)return e})}if(this.sketchStage.midVertexGraphics.length>0){var u=[],l=-1;0===e?(u=[(t.coordinates[0][t.coordinates[0].length-2][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][t.coordinates[0].length-2][1]+t.coordinates[0][e][1])/2],l=this.sketchStage.midVertexGraphics.length-1):(u=[(t.coordinates[0][e-1][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][e-1][1]+t.coordinates[0][e][1])/2],l=e-1),this.sketchStage.midVertexGraphics[l].geometry=new c.Point({coordinates:u,spatialReference:this._spatialReference});var h=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.midVertexGraphics[e],this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==h)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireRemoveVertexByFun(this.sketchStage.entityGraphic,this._parent)}return t}}]),t}(h.default);t.default=g},function(e,t,r){var n=r(98);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(135),i=r(103);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t,r){var n=r(84);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t,r){e.exports={default:r(310),__esModule:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=x(r(10)),i=x(r(23)),o=x(r(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(33)),s=r(1),u=r(6),l=x(r(29)),c=x(r(76)),h=x(r(171)),f=x(r(172)),d=x(r(74)),p=x(r(53)),y=x(r(88)),g=x(r(174)),m=x(r(34)),v=x(r(175)),_=x(r(54)),S=x(r(176));function x(e){return e&&e.__esModule?e:{default:e}}var b=function e(){(0,o.default)(this,e)};b.difference=function(e,t){(0,s.isNull)(e)&&s.Log.error("inputGeometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("subtractGeometry不能为空!"),e instanceof c.default||e instanceof f.default||e instanceof _.default||e instanceof v.default||s.Log.error("inputGeometry类型错误!"),t instanceof c.default||t instanceof f.default||t instanceof _.default||t instanceof v.default||s.Log.error("subtractGeometry类型错误!");var r=void 0;switch(e.type){case y.default.polygon:r=b._polygonDifferenceGeometry(a.polygon(e.coordinates),t);break;case y.default.extent:var n=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});r=b._polygonDifferenceGeometry(a.polygon(n.coordinates),t);break;case y.default.circle:r=b._polygonDifferenceGeometry(a.polygon(e.toPolygon().coordinates),t);break;case y.default.multiPolygon:r=b._polygonDifferenceGeometry(a.multiPolygon(e.coordinates),t)}return(0,s.isNull)(r)||(r="Polygon"===r.geometry.type?new c.default({coordinates:r.geometry.coordinates,spatialReference:p.default.fromJSON(e.spatialReference)}):new f.default({coordinates:r.geometry.coordinates,spatialReference:p.default.fromJSON(e.spatialReference)})),r},b._polygonDifferenceGeometry=function(e,t){var r=e,n=void 0;switch(t.type){case y.default.polygon:n=a.polygon(t.coordinates);break;case y.default.multiPolygon:n=a.multiPolygon(t.coordinates);break;case y.default.circle:n=a.polygon(t.toPolygon().coordinates);break;case y.default.extent:var i=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});n=a.polygon(i.coordinates)}return a.difference(r,n)},b.buffer=function(e,t,r,n){r=(0,s.defaultValue)(r,u.LengthUnit.meter),n=(0,s.defaultValue)(n,!1),t=(0,s.defaultValue)(t,1e3),b._checkBufferOptions(e,t,r,n);var i=void 0;if(e instanceof Array)if(t instanceof Array){if(t.length<e.length){i=[];for(var o=t.length>0?t[t.length-1]:1e3,a=t.length;a<e.length;a++)i.push(o)}}else{i=[];for(var h=0;h<e.length;h++)i.push(t)}else i=t instanceof Array?t.length>0?t[0]:1e3:t;var f=e;if(e instanceof Array){f=[];for(var g=0;g<e.length;g++)f.push(d.default.projectGeometry(e[g],new p.default({wkid:4326})))}else 4326!==e.spatialReference.wkid&&(f=d.default.projectGeometry(e,new p.default({wkid:4326})));var m=void 0;if(e instanceof Array){if(e instanceof Array){if(m=[],t instanceof Array&&t.length<e.length)for(var v=t[t.length-1],_=t.length-1;_<e.length;_++)t.push(v);for(var S=0;S<f.length;S++){var x;x=t instanceof Array?t[S]:t,m.push(b._polygonBuffer(f[S],x,r))}n&&(m=b.union(m))}}else switch(e.type){case y.default.point:case y.default.multiPoint:case y.default.lineString:case y.default.multiLineString:case y.default.polygon:case y.default.multiPolygon:m=b._polygonBuffer(f,i,r);break;case y.default.extent:var w=new c.default({coordinates:[[[f.xmin,f.ymin],[f.xmax,f.ymin],[f.xmax,f.ymax],[f.xmin,f.ymax],[f.xmin,f.ymin]]]});m=b._polygonBuffer(w,i,r);break;case y.default.circle:(m=l.default.fromJSON(e)).radius+=i;break;default:s.Log.error("geometry是不支持的几何类型!")}if(e instanceof Array){if(!e[0].spatialReference.isGeographic)if(m instanceof Array)for(var k=0;k<m.length;k++)m[k].type!==y.default.circle&&(m[k]=d.default.projectGeometry(m[k],p.default.fromJSON(e[0].spatialReference)));else m.type!==y.default.circle&&(m=d.default.projectGeometry(m,p.default.fromJSON(e[0].spatialReference)))}else e.spatialReference.isGeographic||e.type===y.default.circle||(m=d.default.projectGeometry(m,p.default.fromJSON(e.spatialReference)));return m},b._checkBufferOptions=function(e,t,r,n){if((0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("distance不能为空!"),(0,s.isNull)(e)&&s.Log.error("unit不能为空!"),(0,s.isNull)(e)&&s.Log.error("unionResults不能为空!"),e instanceof Array){for(var o=0;o<e.length;o++)if(!(e[o]instanceof c.default||e[o]instanceof f.default)){s.Log.error("geometry的子元素类型不为Polygon或者MultiPolygon!");break}0===e.length&&s.Log.error("geometry的长度为0!")}else e instanceof l.default||s.Log.error("geometry不是基础几何类型!");if(t instanceof Array){e instanceof Array||s.Log.error("distance的类型为数组,但是geometry的类型不是数组!");for(var a=0;a<t.length;a++)if("number"!=typeof t[a]){s.Log.error("distance的子元素不是数字类型!");break}}else"number"!=typeof t&&s.Log.error("distance的不是数字类型!");if("string"==typeof r)if(r){var h=!1;(0,i.default)(u.LengthUnit).forEach(function(e){h||u.LengthUnit[e]!==r||(h=!0)}),h||s.Log.error("unit是不支持的单位类型!")}else s.Log.error("unit的值不能为空!");else s.Log.error("unit类型不是字符串!");"boolean"!=typeof n&&s.Log.error("unionResults类型不是布尔值类型!")},b._polygonBuffer=function(e,t,r){var n=void 0;switch(e.type){case y.default.point:n=a.point(e.coordinates);break;case y.default.multiPoint:n=a.multiPoint(e.coordinates);break;case y.default.lineString:n=a.lineString(e.coordinates);break;case y.default.multiLineString:n=a.multiLineString(e.coordinates);break;case y.default.polygon:n=a.polygon(e.coordinates);break;case y.default.multiPolygon:n=a.multiPolygon(e.coordinates)}var i=a.buffer(n,t,{units:r});return l.default.fromJSON({type:i.geometry.type,coordinates:i.geometry.coordinates})},b._multiPolygonBuffer=function(e,t,r){var n=a.multiPolygon(e.coordinates),i=a.buffer(n,t,{units:r});return"Polygon"===i.geometry.type?new c.default({coordinates:i.geometry.coordinates}):new f.default({coordinates:i.geometry.coordinates})},b._buffer=function(e,t,r){if(e.hasOwnProperty("coordinates")||s.Log.error("geometry缺少coordinates属性!"),e instanceof c.default){var n=a.polygon(e.coordinates);return a.buffer(n,t,{units:r})}},b.union=function(e){if((e=(0,s.defaultValue)(e,[]))instanceof Array||s.Log.error("geometries必须为数组类型!"),0===e.length)return[];var t=!0,r=!0,n=e[0].type;if(e.length>1){switch(e[0].type){case y.default.polygon:case y.default.multiPolygon:for(var i=1;i<e.length;i++)if(e[i].type!==y.default.polygon&&e[i].type!==y.default.multiPolygon){t=!1;break}break;case y.default.point:case y.default.multiPoint:for(var o=1;o<e.length;o++)if(e[o].type!==y.default.point&&e[o].type!==y.default.multiPoint){t=!1;break}break;case y.default.circle:for(var u=1;u<e.length;u++)if(e[u].type!==y.default.circle){t=!1;break}break;case y.default.extent:for(var l=1;l<e.length;l++)if(e[l].type!==y.default.extent){t=!1;break}break;case y.default.lineString:case y.default.multiLineString:for(var d=1;d<e.length;d++)if(e[d].type!==y.default.lineString&&e[d].type!==y.default.multiLineString){t=!1;break}break;default:s.Log.error("geometries的子元素中有求并方法不支持的数据类型!")}t||s.Log.error("几何数组的类型不同!");for(var v=e[0].spatialReference,_=1;_<e.length;_++)v.equals(e[_].spatialReference)||(r=!1);r||s.Log.error("几何数组的坐标系不同!");var x=void 0,w=[];switch(n){case y.default.point:case y.default.multiPoint:for(var k=[],M=0;M<e.length;M++)e[M]instanceof m.default?k.push(e[M].coordinates):e[M]instanceof g.default&&(k=k.concat(e[M].coordinates));if(1===k.length)x=new m.default({coordinates:k[0],spatialReference:p.default.fromJSON(e[0].spatialReference)});else{var E=a.multiPoint(k);E=a.cleanCoords(E),x=new g.default({coordinates:E.geometry.coordinates,spatialReference:p.default.fromJSON(e[0].spatialReference)})}break;case y.default.polygon:case y.default.multiPolygon:var I=void 0,T=e[0].type===y.default.polygon?a.polygon(e[0].coordinates):a.multiPolygon(e[0].coordinates),L=e[1].type===y.default.polygon?a.polygon(e[1].coordinates):a.multiPolygon(e[1].coordinates);I=a.union(T,L);for(var C=2;C<e.length;C++){var P=e[C].type===y.default.polygon?a.polygon(e[C].coordinates):a.multiPolygon(e[C].coordinates);I=a.union(I.geometry,P)}x=I.geometry.type===y.default.polygon?new c.default({coordinates:I.geometry.coordinates,spatialReference:p.default.fromJSON(e[0].spatialReference)}):new f.default({coordinates:I.geometry.coordinates,spatialReference:p.default.fromJSON(e[0].spatialReference)});break;case y.default.lineString:case y.default.multiLineString:for(var N=[],O=0;O<e.length;O++)e[O]instanceof h.default?N.push(e[O].coordinates):N=N.concat(e[O].coordinates);x=1===N.length?new h.default({coordinates:N[0],spatialReference:p.default.fromJSON(e[0].spatialReference)}):new S.default({coordinates:N,spatialReference:p.default.fromJSON(e[0].spatialReference)});break;case y.default.extent:w=[];for(var R=0;R<e.length;R++){var V=new c.default({coordinates:[[[e[R].xmin,e[R].ymin],[e[R].xmax,e[R].ymin],[e[R].xmax,e[R].ymax],[e[R].xmin,e[R].ymax],[e[R].xmin,e[R].ymin]]],spatialReference:p.default.fromJSON(e[0].spatialReference)});w.push(V)}x=b.union(w);break;case y.default.circle:w=[];for(var G=0;G<e.length;G++)w.push(e[G].toPolygon());x=b.union(w)}return x}return 1===e.length?e[0]:void 0},b.intersects=function(e,t){b._checkTwoGeometry(e,t);var r=b._geometryToTurf(e),n=b._geometryToTurf(t);return!a.booleanDisjoint(r,n)},b.geodesicLength=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry对象不能为空!"),e instanceof h.default||s.Log.error("geometry类型不正确!"),"string"!=typeof(t=(0,s.defaultValue)(t,u.LengthUnit.meter))&&s.Log.error("unit类型不正确!");var r=0;switch(e.type){case y.default.lineString:var n=a.lineString(e.coordinates);r=1e3*a.length(n,{units:"kilometers"})}if(!e.spatialReference.isGeographic)switch(t){case u.LengthUnit.kilometer:r/=1e3;break;case u.LengthUnit.mile:r*=.000621371192237}return r},b.geodesicArea=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry对象不能为空!"),e instanceof c.default||e instanceof f.default||e instanceof v.default||e instanceof _.default||s.Log.error("polygon对象不是Polyon或MultiPolygon或Circle或Extent类型!"),t=(0,s.defaultValue)(t,u.LinearUnits.meters);var r=0;switch(e instanceof c.default||e instanceof f.default?r=b._geodesicPolygonArea(e):(e instanceof v.default||e instanceof _.default)&&(r=b._geodesicPolygonArea(e.toPolygon())),t){case u.AreaUnits.squareKilometers:r*=1e-6;break;case u.AreaUnits.squareMiles:r*=6214e-7*6214e-7;break;case u.AreaUnits.squareYards:r*=1.1959900499368898;break;case u.AreaUnits.squareFeet:r*=10.763910416689228;break;case u.AreaUnits.acres:r*=2471e-7;break;case u.AreaUnits.ares:r*=.01;break;case u.AreaUnits.hectares:r*=1e-4;break;case u.AreaUnits.squareMeters:}return r},b._geodesicPolygonArea=function(e){return a.area(a.polygon(e.coordinates))},b._geometryToTurf=function(e){var t=void 0;switch(e.type!==y.default.extent&&e.type!==y.default.circle&&(t=JSON.parse((0,n.default)(e.coordinates))),e.type){case y.default.point:return a.point(t);case y.default.multiPoint:return a.multiPoint(t);case y.default.lineString:return a.lineString(t);case y.default.multiLineString:return a.multiLineString(t);case y.default.polygon:return a.polygon(t);case y.default.multiPolygon:return a.multiPolygon(t);case y.default.extent:return a.polygon([[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]);case y.default.circle:return a.polygon(e.toPolygon().coordinates);default:s.Log.error("geometry为不支持的几何类型!")}},b._lineContainPoint=function(e,t){var r=a.point(t.coordinates),n=a.lineString(e.coordinates),i=a.booleanContains(n,r);if(!i)for(var o=0;o<e.coordinates.length;o++){var s=new m.default({coordinates:e.coordinates[o],spatialReference:p.default.fromJSON(e.spatialReference)});if(b.equals(t,s)){i=!0;break}}return i},b._multiLineContainPoint=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new h.default({coordinates:e.coordinates[n],spatialReference:p.default.fromJSON(e.spatialReference)});if(b._lineContainPoint(i,t)){r=!0;break}}return r},b._polygonContainPoint=function(e,t){var r=a.point(t.coordinates),n=a.polygon(e.coordinates);return a.booleanContains(n,r)},b._polygonContainLine=function(e,t){var r=a.polygon(e.coordinates),n=a.lineString(t.coordinates);return a.booleanContains(r,n)},b._multiPointContainsPoint=function(e,t){var r=a.point(t.coordinates),n=a.multiPoint(e.coordinates);return a.booleanContains(n,r)},b._lineContainMultiPoint=function(e,t){for(var r=!0,n=0;n<t.coordinates.length;n++){var i=new m.default({coordinates:t.coordinates[n]});if(!(r=b._lineContainPoint(e,i)))break}return r},b._polygonContainMultiPoint=function(e,t){for(var r=!0,n=0;n<t.coordinates.length;n++){var i=new m.default({coordinates:t.coordinates[n]});if(!(r=b._polygonContainPoint(e,i)))break}return r},b._checkTwoGeometry=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry1对象为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2对象为空!"),e instanceof l.default||s.Log.error("geometry1对象未继承于Geometry对象!"),t instanceof l.default||s.Log.error("geometry2对象未继承于Geometry对象!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1和geometry2的坐标系不相同!")},b.intersect=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e instanceof l.default||e instanceof Array||s.Log.error("geometry1必须为几何对象或者数组对象!"),t instanceof l.default||s.Log.error("geometry2必须为几何对象或者数组对象!");var r=void 0;if(e instanceof Array){r=[];for(var n=0;n<e.length;n++)r.push(b.intersect(e[n],t));return r}switch(e.type){case y.default.point:r=b._pointIntersectGeometry(e,t);break;case y.default.multiPoint:r=b._multiPointIntersectGeometry(e,t);break;case y.default.lineString:switch(t.type){case y.default.point:b.contains(e,t)&&(r=new m.default({coordinates:t.coordinates}));break;case y.default.multiPoint:r=b._lineIntersectMultiPoint(e,t);break;case y.default.polygon:r=b._lineIntersectPolygon(e,t);break;case y.default.multiPolygon:r=b._lineIntersectMultiPolygon(e,t);break;case y.default.lineString:case y.default.multiLineString:r=b._lineIntersectLine(e,t);break;case y.default.extent:r=b._lineIntersectExtent(e,t);break;case y.default.circle:r=b._lineIntersectPolygon(e,t.toPolygon())}break;case y.default.polygon:switch(t.type){case y.default.point:r=b._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=b._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=b._lineIntersectPolygon(t,e);break;case y.default.multiLineString:r=b._multiLineIntersectPolygon(t,e);break;case y.default.polygon:r=b._polygonIntersectPolygon(e,t);break;case y.default.multiPolygon:r=b._polygonIntersectMultiPolygon(e,t);break;case y.default.circle:r=b._polygonIntersectPolygon(e,t.toPolygon());break;case y.default.extent:r=b._polygonIntersectExtent(e,t)}break;case y.default.multiPolygon:switch(t.type){case y.default.point:r=b._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=b._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=b._lineIntersectMultiPolygon(t,e);break;case y.default.multiLineString:r=b._multiLineIntersectMultiPolygon(t,e);break;case y.default.polygon:r=b._polygonIntersectMultiPolygon(t,e);break;case y.default.multiPolygon:r=b._multiPolygonIntersectMultiPolygon(e,t);break;case y.default.extent:r=b._multiPolygonIntersectExtent(e,t);break;case y.default.circle:r=b._polygonIntersectMultiPolygon(t.toPolygon(),e)}break;case y.default.extent:switch(t.type){case y.default.point:r=b._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=b._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=b._lineIntersectExtent(t,e);break;case y.default.multiLineString:r=b._multiLineIntersectExtent(t,e);break;case y.default.polygon:r=b._polygonIntersectExtent(t,e);break;case y.default.multiPolygon:r=b._multiPolygonIntersectExtent(t,e);break;case y.default.extent:var i=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=b._polygonIntersectExtent(i,e);break;case y.default.circle:var o=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});r=b._polygonIntersectPolygon(o,t.toPolygon())}break;case y.default.circle:var a=e.toPolygon();switch(t.type){case y.default.point:r=b._pointIntersectGeometry(t,a);break;case y.default.multiPoint:r=b._multiPointIntersectGeometry(t,a);break;case y.default.lineString:r=b._lineIntersectPolygon(t,a);break;case y.default.multiLineString:r=b._multiLineIntersectPolygon(t,a);break;case y.default.polygon:r=b._polygonIntersectPolygon(t,a);break;case y.default.multiPolygon:r=b._polygonIntersectMultiPolygon(a,t);break;case y.default.circle:r=b._polygonIntersectPolygon(t.toPolygon(),a);break;case y.default.extent:r=b._polygonIntersectExtent(a,t)}break;case y.default.multiLineString:switch(t.type){case y.default.point:r=b._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=b._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=b._lineIntersectLine(t,e);break;case y.default.multiLineString:for(var u=[],f=[],d=0;d<e.coordinates.length;d++){var p=new h.default({coordinates:e.coordinates[d]}),g=b._lineIntersectLine(p,t);g&&g.point&&u.push(g.point),g&&g.lineString&&f.push(g.lineString)}(r={point:void 0,lineString:void 0}).point=b.union(u),r.lineString=b.union(f);break;case y.default.polygon:r=b._multiLineIntersectPolygon(e,t);break;case y.default.multiPolygon:r=b._multiLineIntersectMultiPolygon(e,t)}}return r},b._lineIntersectLine=function(e,t){var r,n;r=e.type===y.default.lineString?a.lineString(e.coordinates):a.multiLineString(e.coordinates),n=t.type===y.default.lineString?a.lineString(t.coordinates):a.multiLineString(t.coordinates);var i=void 0,o=void 0;if(e.type===y.default.lineString)i=[e];else{i=[];for(var s=0;s<e.coordinates.length;s++)i.push(new h.default({coordinates:e.coordinates[s]}))}if(t.type===y.default.lineString)o=[t];else{o=[];for(var u=0;u<t.coordinates.length;u++)o.push(new h.default({coordinates:t.coordinates[u]}))}for(var l=[],c=0;c<i.length;c++)for(var f=0;f<o.length;f++){var d=a.lineString(i[c].coordinates),p=a.lineString(o[f].coordinates),v=a.lineOverlap(d,p);if(v.features.length>0)for(var _=0;_<v.features.length;_++)l.push(new h.default({coordinates:v.features[_].geometry.coordinates}))}var S=a.lineIntersect(r,n),x={point:void 0,lineString:void 0};1===l.length?x.lineString=new h.default({coordinates:l[0].coordinates}):l.length>1&&(x.lineString=b.union(l));for(var w=0;w<S.features.length;w++){var k=new m.default({coordinates:S.features[w].geometry.coordinates});x.lineString&&b.contains(x.lineString,k)&&S.features.splice(w,1)}if(1===S.features.length)x.point=new m.default({coordinates:S.features[0].geometry.coordinates});else if(S.features.length>1){for(var M=[],E=0;E<S.features.length;E++)M.push(S.features[E].geometry.coordinates);x.point=new g.default({coordinates:M})}return x},b._lineIntersectMultiPoint=function(e,t){for(var r=[],n=void 0,i=0;i<t.coordinates.length;i++){var o=new m.default({coordinates:t.coordinates[i]});b.contains(e,o)&&r.push(o.coordinates)}return 1===r.length?n=new m.default({coordinates:r[0]}):r.length>1&&(n=new g.default({coordinates:r})),n},b._lineIntersectPolygon=function(e,t){var r=a.lineString(e.coordinates),n=a.polygon(t.coordinates),i=a.lineIntersect(r,n);i.features=i.features.sort(function(e,t){return e.geometry.coordinates[0]-t.geometry.coordinates[0]});for(var o=[],s=0;s<e.coordinates.length-1;s++){var u=new h.default({coordinates:[e.coordinates[s],e.coordinates[s+1]]});u.coordinates=u.coordinates.sort(function(e,t){return e-t});for(var l=[],c=0;c<i.features.length;c++){var f=new m.default({coordinates:i.features[c].geometry.coordinates});b.contains(u,f)&&l.push(f)}var d=new m.default({coordinates:e.coordinates[s]});l[0]&&b.equals(d,l[0])||(l=[d].concat(l));var p=new m.default({coordinates:e.coordinates[s+1]});0!==l.length&&b.equals(p,l[l.length-1])||l.push(p);for(var v=0;v<l.length-1;v++){var _=new h.default({coordinates:[l[v].coordinates,l[v+1].coordinates]});b.contains(t,_)&&o.push(_)}}if(1===o.length)return o[0];if(o.length>1){for(var x=[],w=0;w<o.length;w++)x.push(o[w].coordinates);return new S.default({coordinates:x})}for(var k=[],M=0;M<i.features.length;M++)i.features[M].geometry.type===y.default.point&&k.push(i.features[M].geometry.coordinates);return 1===k.length?new m.default({coordinates:k[0]}):k.length>1?new g.default({coordinates:k}):void 0},b._multiLineIntersectPolygon=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new h.default({coordinates:e.coordinates[n]}),o=b._lineIntersectPolygon(i,t);o&&r.push(o)}if(1===r.length)return new h.default({coordinates:r[0].coordinates});if(r.length>1){for(var a=[],s=0;s<r.length;s++)r[s].type===y.default.lineString?a.push(r[s].coordinates):a=a.concat(r[s].coordinates);return new S.default({coordinates:a})}},b._multiLineIntersectMultiPolygon=function(e,t){for(var r=[],n=0;n<t.coordinates.length;n++){var i=new c.default({coordinates:t.coordinates[n]}),o=b._multiLineIntersectPolygon(e,i);o&&r.push(o)}return b.union(r)},b._lineIntersectExtent=function(e,t){var r=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return b._lineIntersectPolygon(e,r)},b._multiLineIntersectExtent=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new h.default({coordinates:e.coordinates[n]}),o=b._lineIntersectExtent(i,t);o&&r.push(o)}if(1===r.length)return r[0];if(r.length>1){for(var a=[],s=0;s<r.length;s++)a.push(r[s].coordinates);return new S.default({coordinates:a})}},b._lineIntersectMultiPolygon=function(e,t){for(var r=void 0,n=[],i=0;i<t.coordinates.length;i++){var o=new c.default({coordinates:t.coordinates[i]});n.push(b._lineIntersectPolygon(e,o))}for(var a=[],s=0;s<n.length;s++)n[s].type===y.default.lineString?a.push(n[s].coordinates):a=a.concat(n[s].coordinates);return 1===a.length?r=new h.default({coordinates:a}):a.length>1&&(r=new S.default({coordinates:a})),r},b._pointIntersectGeometry=function(e,t){if(b.contains(t,e))return new m.default({coordinates:e.coordinates})},b._multiPointIntersectGeometry=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new m.default({coordinates:e.coordinates[n]});b.contains(t,i)&&r.push(i.coordinates)}var o=void 0;return 1===r.length?o=new m.default({coordinates:r[0]}):r.length>1&&(o=new g.default({coordinates:r})),o},b._polygonIntersectPolygon=function(e,t){var r=a.polygon(e.coordinates),n=a.polygon(t.coordinates),i=a.intersect(r,n);if(i)return i.geometry.type===y.default.polygon?new c.default({coordinates:i.geometry.coordinates}):new f.default({coordinates:i.geometry.coordinates})},b._polygonIntersectMultiPolygon=function(e,t){for(var r=[],n=0;n<t.coordinates.length;n++){var i=new c.default({coordinates:t.coordinates[n]}),o=b._polygonIntersectPolygon(e,i);o&&r.push(o)}return b.union(r)},b._multiPolygonIntersectMultiPolygon=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]}),o=b._polygonIntersectMultiPolygon(i,t);o&&r.push(o)}return b.union(r)},b._polygonIntersectExtent=function(e,t){var r=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return b._polygonIntersectPolygon(e,r)},b._multiPolygonIntersectExtent=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]}),o=b._polygonIntersectExtent(i,t);o&&r.push(o)}return b.union(r)},b.overlaps=function(e,t){return!!b.intersects(e,t)&&!b.contains(e,t)&&!b.contains(t,e)},b.rotate=function(e,t,r){t=(0,s.defaultValue)(t,0),(0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("angle不能为空!"),e instanceof l.default||s.Log.error("geometry不是基础几何对象!"),"number"!=typeof t&&s.Log.error("angle不是数字!"),!r||r instanceof m.default||s.Log.error("rotationOrigin不是Point对象!"),r&&!e.spatialReference.equals(r.spatialReference)&&s.Log.error("rotationOrigin和geometry不是同一个坐标系!");var n=void 0,i=void 0;e.spatialReference.isGeographic?(n=e,i=r):(n=d.default.projectGeometry(e,new p.default({wkid:4326})),i=d.default.projectGeometry(r,new p.default({wkid:4326})));var o=b._geometryToTurf(n),u=void 0;i&&(u=[i.coordinates[0],i.coordinates[1]]);var c={pivot:u,mutate:!0},h=a.transformRotate(o,t,c);return h=b._turfFeatureToGeometry(h),e.spatialReference.isGeographic||(h=d.default.projectGeometry(h,p.default.fromJSON(e.spatialReference))),h},b._turfFeatureToGeometry=function(e){switch(e.geometry.type){case y.default.point:return new m.default({coordinates:e.geometry.coordinates});case y.default.multiPoint:return new g.default({coordinates:e.geometry.coordinates});case y.default.lineString:return new h.default({coordinates:e.geometry.coordinates});case y.default.multiLineString:return new S.default({coordinates:e.geometry.coordinates});case y.default.polygon:return new c.default({coordinates:e.geometry.coordinates});case y.default.multiPolygon:return new f.default({coordinates:e.geometry.coordinates})}},b.nearestCoordinate=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("inputPoint不能为空!");var r=e,n=t;if(n instanceof m.default||s.Log.error("inputPoint类型错误,需要输入Point!"),r instanceof m.default||r instanceof h.default||r instanceof c.default||r instanceof g.default||r instanceof S.default||r instanceof f.default||r instanceof _.default||r instanceof v.default||s.Log.error("geometry类型错误!"),r.spatialReference.equals(n.spatialReference)||s.Log.error("_geometryPro1、inputPoint坐标系不同!"),r=(0,s.defaultValue)(r,void 0),n=(0,s.defaultValue)(n,void 0),r.spatialReference.isGeographic||(r=d.default.projectGeometry(r,new p.default({wkid:4326})),n=d.default.projectGeometry(n,new p.default({wkid:4326}))),!(0,s.isNull)(r)&&!(0,s.isNull)(n)){var i=void 0,o=void 0,u=void 0,x=[],b=a.point(n.coordinates);switch(r.type){case y.default.multiPoint:for(var w=0;w<r.coordinates.length;w++)x.push(a.point(r.coordinates[w]));var k=a.featureCollection(x);i=a.nearestPoint(b,k);break;case y.default.lineString:o=a.lineString(r.coordinates),i=a.nearestPointOnLine(o,b,{units:"kilometers"});break;case y.default.multiLineString:o=a.multiLineString(r.coordinates),i=a.nearestPointOnLine(o,b,{units:"kilometers"});break;case y.default.polygon:for(var M=0;M<r.coordinates[0].length;M++)x.push(r.coordinates[0][M]);o=a.lineString(x),i=a.nearestPointOnLine(o,b,{units:"kilometers"});break;case y.default.multiPolygon:for(var E=[],I=0;I<r.coordinates.length;I++){x=[];for(var T=0;T<r.coordinates[I][0].length;T++)x.push(r.coordinates[I][0][T]);E.push(x),o=a.multiLineString(E)}i=a.nearestPointOnLine(o,b,{units:"kilometers"});break;case y.default.circle:u=a.polygon(r.toPolygon().coordinates);for(var L=0;L<u.geometry.coordinates[0].length;L++)x.push(u.geometry.coordinates[0][L]);o=a.lineString(x),i=a.nearestPointOnLine(o,b,{units:"kilometers"});break;case y.default.extent:u=new c.default({coordinates:[[[r.xmin,r.ymin],[r.xmax,r.ymin],[r.xmax,r.ymax],[r.xmin,r.ymax],[r.xmin,r.ymin]]]});for(var C=0;C<u.coordinates[0].length;C++)x.push(u.coordinates[0][C]);o=a.lineString(x),i=a.nearestPointOnLine(o,b,{units:"kilometers"})}return i=l.default.fromJSON(i.geometry),t.spatialReference.isGeographic||(i=d.default.projectGeometry(i,t.spatialReference)),i}},b.planarArea=function(e,t){t=(0,s.defaultValue)(t,u.LinearUnits.meters),e instanceof c.default||e instanceof f.default||e instanceof v.default||e instanceof _.default||s.Log.error("polygon对象不是Polyon或MultiPolygon或Circle或Extent类型!");var r=0;if(e instanceof c.default)r=b._polygonArea(e);else if(e instanceof f.default)for(var n=e.toPolygonArray(),i=0;i<n.length;i++)r+=b._polygonArea(n[i]);else e instanceof v.default?r=Math.abs(Math.PI*e.radius*e.radius):e instanceof _.default&&(r=Math.abs((e.xmax-e.xmin)*(e.ymax-e.ymin)));switch(t){case u.AreaUnits.squareKilometers:r*=1e-6;break;case u.AreaUnits.squareMiles:r*=6214e-7*6214e-7;break;case u.AreaUnits.squareYards:r*=1.1959900499368898;break;case u.AreaUnits.squareFeet:r*=10.763910416689228;break;case u.AreaUnits.acres:r*=2471e-7;break;case u.AreaUnits.ares:r*=.01;break;case u.AreaUnits.hectares:r*=1e-4;break;case u.AreaUnits.squareMeters:}return r},b._ringArea=function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r][0]*e[r===e.length-1?0:r+1][1]*.5,t-=e[r===e.length-1?0:r+1][0]*e[r][1]*.5;return Math.abs(t)},b._polygonArea=function(e){for(var t=b._ringArea(e.coordinates[0]),r=0,n=1;n<e.coordinates.length;n++)r+=b._ringArea(e.coordinates[n]);return t-r},b.planarLength=function(e,t){t=(0,s.defaultValue)(t,u.LinearUnits.meters),(0,s.isNull)(e)&&s.Log.error("geometry对象不能为空!"),e instanceof h.default||e instanceof S.default||e instanceof c.default||e instanceof f.default||e instanceof v.default||e instanceof _.default||s.Log.error("geometry类型不正确!");var r=0,n=void 0;switch(e.type){case y.default.lineString:r=b._planarLineStringLength(e);break;case y.default.multiLineString:r=b._planarMultiLineStringLength(e);break;case y.default.polygon:n=new c.default({coordinates:[e.coordinates[0]]}),r=b._planarMultiLineStringLength(n);break;case y.default.multiPolygon:for(var i=0;i<e.coordinates.length;i++){var o=new c.default({coordinates:[e.coordinates[i][0]]});r+=b._planarMultiLineStringLength(o)}break;case y.default.circle:r=2*Math.PI*e.radius;break;case y.default.extent:n=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]}),r+=b._planarMultiLineStringLength(n)}switch(t){case u.LinearUnits.kilometers:r*=.001;break;case u.LinearUnits.feet:r*=3.28083989501;break;case u.LinearUnits.miles:r*=6214e-7;break;case u.LinearUnits.nauticalMiles:r*=54e-5;break;case u.LinearUnits.yards:r*=1.0936133;break;case u.LinearUnits.meters:}return r},b._planarLineStringLength=function(e){for(var t=0,r=0;r<e.coordinates.length-1;r++){var n=Math.abs(e.coordinates[r+1][0]-e.coordinates[r][0]),i=Math.abs(e.coordinates[r+1][1]-e.coordinates[r][1]);t+=Math.sqrt(Math.pow(n,2)+Math.pow(i,2))}return t},b._planarMultiLineStringLength=function(e){for(var t=0,r=0;r<e.coordinates.length;r++){var n=new h.default({coordinates:e.coordinates[r]});t+=b._planarLineStringLength(n)}return t},b.contains=function(e,t){b._checkTwoGeometry(e,t);var r=!1,n=void 0;switch(e.type){case y.default.point:switch(t.type){case y.default.point:return b.equals(e,t)}break;case y.default.multiPoint:switch(t.type){case y.default.point:return b._multiPointContainsPoint(e,t);case y.default.multiPoint:r=!0;for(var i=0;i<t.coordinates.length&&(n=new m.default({coordinates:t.coordinates[i]}),r=b._lineContainPoint(e,n));i++);return r}break;case y.default.lineString:switch(t.type){case y.default.point:return b._lineContainPoint(e,t);case y.default.multiPoint:r=!0;for(var o=0;o<t.coordinates.length;o++)if(n=new m.default({coordinates:t.coordinates[o],spatialReference:p.default.fromJSON(t.spatialReference)}),!b._lineContainPoint(e,n)){r=!1;break}return r;case y.default.lineString:return b._lineContainLine(e,t);case y.default.multiLineString:r=!0;for(var a=0;a<t.coordinates.length;a++){var s=new h.default({coordinates:t.coordinates[a],spatialReference:p.default.fromJSON(t.spatialReference)});if(!b._lineContainLine(e,s)){r=!1;break}}return r}break;case y.default.multiLineString:switch(t.type){case y.default.point:return b._multiLineContainPoint(e,t);case y.default.multiPoint:r=!0;for(var u=0;u<t.coordinates.length;u++){var l=new m.default({coordinates:t.coordinates[u],spatialReference:p.default.fromJSON(t.spatialReference)});if(!b._multiLineContainPoint(e,l)){r=!1;break}}return r;case y.default.lineString:return b._multiLineContainLine(e,t);case y.default.multiLineString:r=!0;for(var f=0;f<t.coordinates.length;f++){var d=new h.default({coordinates:t.coordinates[f],spatialReference:p.default.fromJSON(t.spatialReference)});if(!b._multiLineContainLine(e,d)){r=!1;break}}return r}break;case y.default.polygon:switch(t.type){case y.default.point:return b._polygonContainPoint(e,t);case y.default.multiPoint:r=!0;for(var g=0;g<t.coordinates.length;g++){var v=new m.default({coordinates:t.coordinates[g]});if(!b._polygonContainPoint(e,v)){r=!1;break}}return r;case y.default.lineString:return b._polygonContainLine(e,t);case y.default.multiLineString:r=!0;for(var _=0;_<t.coordinates.length;_++){var S=new h.default({coordinates:t.coordinates[_]});if(!b._polygonContainLine(e,S)){r=!1;break}}return r;case y.default.polygon:return b._polygonContainPolygon(e,t);case y.default.multiPolygon:r=!0;for(var x=0;x<t.coordinates.length;x++){var w=new c.default({coordinates:t.coordinates[x]});if(!b._polygonContainPolygon(e,w)){r=!1;break}}return r;case y.default.circle:return b._polygonContainPolygon(e,t.toPolygon());case y.default.extent:var k=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return b._polygonContainPolygon(e,k)}break;case y.default.multiPolygon:switch(t.type){case y.default.point:return b._multiPolygonContainsPoint(e,t);case y.default.multiPoint:return b._multiContainsMulti(e,t,m.default,b._multiPolygonContainsPoint);case y.default.lineString:return b._multiPolygonContainsLine(e,t);case y.default.multiLineString:return b._multiContainsMulti(e,t,h.default,b._multiPolygonContainsLine);case y.default.polygon:return b._multiPolygonContainsPolygon(e,t);case y.default.multiPolygon:return b._multiContainsMulti(e,t,c.default,b._multiPolygonContainsPolygon);case y.default.circle:r=!1;for(var M=0;M<e.coordinates.length;M++){var E=new c.default({coordinates:e.coordinates[M]});if(b._polygonContainPolygon(E,t.toPolygon())){r=!0;break}}return r;case y.default.extent:r=!1;for(var I=0;I<e.coordinates.length;I++){var T=new c.default({coordinates:e.coordinates[I]}),L=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});if(b._polygonContainPolygon(T,L)){r=!0;break}}return r}break;case y.default.circle:switch(t.type){case y.default.point:return b._polygonContainPoint(e.toPolygon(),t);case y.default.multiPoint:return b._singleContainsMulti(e.toPolygon(),t,m.default,b._polygonContainPoint);case y.default.lineString:return b._polygonContainMultiPoint(e.toPolygon(),t);case y.default.multiLineString:return b._singleContainsMulti(e.toPolygon(),t,h.default,b._polygonContainMultiPoint);case y.default.polygon:return b._polygonContainPolygon(e.toPolygon(),t);case y.default.multiPolygon:return b._singleContainsMulti(e.toPolygon(),t,c.default,b._polygonContainPolygon);case y.default.circle:return b._polygonContainPolygon(e.toPolygon(),t.toPolygon());case y.default.extent:var C=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return b._polygonContainPolygon(e.toPolygon(),C)}break;case y.default.extent:var P=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});switch(t.type){case y.default.point:return b._polygonContainPoint(P,t);case y.default.multiPoint:return b._singleContainsMulti(P,t,m.default,b._polygonContainPoint);case y.default.lineString:return b._polygonContainMultiPoint(P,t);case y.default.multiLineString:return b._singleContainsMulti(P,t,h.default,b._polygonContainMultiPoint);case y.default.polygon:return b._polygonContainPolygon(P,t);case y.default.multiPolygon:return b._singleContainsMulti(P,t,c.default,b._polygonContainPolygon);case y.default.circle:return b._polygonContainPolygon(P,t.toPolygon());case y.default.extent:var N=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return b._polygonContainPolygon(P,N)}break;default:return!1}},b._singleContainsMulti=function(e,t,r,n){for(var i=!0,o=0;o<t.coordinates.length;o++)if(!n(e,new r({coordinates:t.coordinates[o]}))){i=!1;break}return i},b._multiContainsMulti=function(e,t,r,n){for(var i=!0,o=0;o<t.coordinates.length;o++)if(!n(e,new r({coordinates:t.coordinates[o]}))){i=!1;break}return i},b._multiPolygonContainsPoint=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]});if(b._polygonContainPoint(i,t)){r=!0;break}}return r},b._multiPolygonContainsLine=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]});if(b._polygonContainMultiPoint(i,t)){r=!0;break}}return r},b._multiPolygonContainsPolygon=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]});if(b._polygonContainPolygon(i,t)){r=!0;break}}return r},b._lineContainLine=function(e,t){var r=a.lineString(e.coordinates),n=a.lineString(t.coordinates),i=a.booleanContains(r,n);if(i||(i=b.equals(e,t)),!i){var o=new h.default({coordinates:[t.coordinates[1],t.coordinates[0]]});i=b.equals(e,o)}return i},b._multiLineContainLine=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new h.default({coordinates:e.coordinates[n],spatialReference:p.default.fromJSON(e.spatialReference)});if(b._lineContainLine(i,t)){r=!0;break}}return r},b._polygonContainPolygon=function(e,t){var r=a.polygon(e.coordinates),n=a.polygon(t.coordinates);return a.booleanContains(r,n)},b.distance=function(e,t,r){if((0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e instanceof m.default||s.Log.error("geometry1类型错误,需要输入Point!"),t instanceof m.default||t instanceof h.default||t instanceof c.default||t instanceof g.default||t instanceof S.default||t instanceof f.default||t instanceof _.default||t instanceof v.default||s.Log.error("geometry2类型错误!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1、geometry2坐标系不同!"),r=(0,s.defaultValue)(r,u.LengthUnit.kilometer),e=(0,s.defaultValue)(e,void 0),t=(0,s.defaultValue)(t,void 0),e.spatialReference.isGeographic||(e=d.default.projectGeometry(e,new p.default({wkid:4326})),t=d.default.projectGeometry(t,new p.default({wkid:4326}))),!(0,s.isNull)(e)&&!(0,s.isNull)(t)){var n=void 0,i=void 0,o=void 0,l=[],x=[],b=a.point(e.coordinates);switch(t.type){case y.default.point:i=a.point(t.coordinates),n=a.distance(b,i,{units:r});break;case y.default.multiPoint:for(var w=0;w<t.coordinates.length;w++)l.push(a.point(t.coordinates[w]));var k=a.featureCollection(l),M=a.nearestPoint(b,k);n=a.distance(b,M,{units:r});break;case y.default.lineString:i=a.lineString(t.coordinates),n=a.pointToLineDistance(b,i,{units:r});break;case y.default.multiLineString:for(var E=0;E<t.coordinates.length;E++)i=a.lineString(t.coordinates[E]),x.push(a.pointToLineDistance(b,i,{units:r}));x.sort(function(e,t){return e-t}),n=x[0];break;case y.default.polygon:for(var I=0;I<t.coordinates[0].length;I++)l.push(t.coordinates[0][I]);i=a.lineString(l),n=a.pointToLineDistance(b,i,{units:r});break;case y.default.multiPolygon:for(var T=0;T<t.coordinates.length;T++){l=[];for(var L=0;L<t.coordinates[T][0].length;L++)l.push(t.coordinates[T][0][L]);i=a.lineString(l),x.push(a.pointToLineDistance(b,i,{units:r}))}x.sort(function(e,t){return e-t}),n=x[0];break;case y.default.circle:o=a.polygon(t.toPolygon().coordinates);for(var C=0;C<o.geometry.coordinates[0].length;C++)l.push(o.geometry.coordinates[0][C]);i=a.lineString(l),n=a.pointToLineDistance(b,i,{units:r});break;case y.default.extent:for(var P=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]}),N=0;N<P.coordinates[0].length;N++)l.push(P.coordinates[0][N]);i=a.lineString(l),n=a.pointToLineDistance(b,i,{units:r})}return n}},b.equals=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry1对象为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2对象为空!"),e instanceof l.default||s.Log.error("geometry1对象未继承于Geometry对象!"),t instanceof l.default||s.Log.error("geometry2对象未继承于Geometry对象!"),e.type!==t.type)return!1;if(!e.spatialReference.equals(t.spatialReference))return!1;switch(e.type){case y.default.point:if(!e.equals(t))return!1;break;case y.default.polygon:return b._equalPolygon(e,t);case y.default.lineString:return b._equalLinePoint(e,t);case y.default.extent:if(e.xmin!==t.xmin||e.ymin!==t.ymin||e.xmax!==t.xmax||e.ymax!==t.ymax)return!1;break;case y.default.circle:if(e.radius!==t.radius||e.radiusUnit!==t.radiusUnit)return!1;if(e.center.length!==t.center.length)return!1;for(var r=0;r<e.center.length;r++)if(e.center[r]!==t.center[r])return!1;break;case y.default.multiPoint:return b._equalLinePoint(e,t);case y.default.multiLineString:if(e.coordinates.length!==t.coordinates.length)return!1;for(var n=0;n<e.coordinates.length;n++){var i=new h.default({coordinates:e.coordinates[n],spatialReference:e.spatialReference}),o=new h.default({coordinates:t.coordinates[n],spatialReference:t.spatialReference});if(!b.equals(i,o))return!1}break;case y.default.multiPolygon:if(e.coordinates.length!==t.coordinates.length)return!1;for(var a=0;a<e.coordinates.length;a++){var u=new c.default({coordinates:e.coordinates[a],spatialReference:e.spatialReference}),f=new c.default({coordinates:t.coordinates[a],spatialReference:t.spatialReference});if(!b.equals(u,f))return!1}}return!0},b._equalLinePoint=function(e,t){if(e.coordinates.length!==t.coordinates.length)return!1;for(var r=0;r<e.coordinates.length;r++){var n=new m.default({coordinates:e.coordinates[r]}),i=new m.default({coordinates:t.coordinates[r]});if(!n.equals(i))return!1}return!0},b._equalPolygon=function(e,t){if(e.coordinates.length!==t.coordinates.length)return!1;for(var r=0;r<e.coordinates.length;r++)if(e.coordinates[r].length!==t.coordinates[r].length)return!1;for(var n=0;n<e.coordinates.length;n++){var i=new h.default({coordinates:e.coordinates[n],spatialReference:e.spatialReference}),o=new h.default({coordinates:t.coordinates[n],spatialReference:t.spatialReference});if(!b.equals(i,o))return!1}return!0},b.disjoint=function(e,t){return!b.intersects(e,t)},b.within=function(e,t){return b.contains(t,e)},b.crosses=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1、geometry2坐标系不同!"),e instanceof h.default||e instanceof S.default)return b._crosses(e,t);if(t instanceof h.default||t instanceof S.default){var r=e;return b._crosses(e=t,t=r)}s.Log.error("geometry1和geometry2中至少有一个参数类型必须为lineString和multiLineString中的一个!")},b._crosses=function(e,t){if(t instanceof h.default||t instanceof c.default||t instanceof S.default||t instanceof f.default||t instanceof _.default||t instanceof v.default||s.Log.error("geometry2类型错误!"),e=(0,s.defaultValue)(e,void 0),t=(0,s.defaultValue)(t,void 0),e.spatialReference.isGeographic||(e=d.default.projectGeometry(e,new p.default({wkid:4326})),t=d.default.projectGeometry(t,new p.default({wkid:4326}))),!(0,s.isNull)(e)&&!(0,s.isNull)(t)){var r=void 0,n=void 0,i=void 0;switch(e.type){case y.default.lineString:switch(t.type){case y.default.lineString:if(n=b._geometryToTurf(e),i=b._geometryToTurf(t),!(r=a.booleanCrosses(n,i))&&b.intersects(e,t)){var o=[],u=new g.default({coordinates:[t.coordinates[0],t.coordinates[t.coordinates.length-1]]});if(u.coordinates[0].toString()===u.coordinates[1].toString()){var l=b.intersect(e,t);if("MultiPoint"===l.point.type)r=!0;else if("Point"===l.point.type){var x=new m.default({coordinates:e.coordinates[0]}),w=new m.default({coordinates:e.coordinates[e.coordinates.length-1]});r=!b.contains(t,x)&&!b.contains(t,w)}}else{for(var k=0;k<e.coordinates.length;k++)o.push(e.coordinates[k]);for(var M=0;M<t.coordinates.length;M++)o.push(t.coordinates[M]);var E=a.multiPoint(o);if(!(a.cleanCoords(E).geometry.coordinates.length<E.geometry.coordinates.length)){for(var I=void 0,T=0;T<e.coordinates.length;T++){if(I){r=!I;break}var L=new m.default({coordinates:e.coordinates[T]});I=b.contains(t,L)}for(var C=0;C<t.coordinates.length;C++){if(I){r=!I;break}var P=new m.default({coordinates:t.coordinates[C]});I=b.contains(e,P)}I||(r=!0);break}r=!1}}break;case y.default.multiLineString:for(var N=0;N<t.coordinates.length&&!r;N++)i=new h.default({coordinates:t.coordinates[N]}),r=b._crosses(e,i);break;case y.default.polygon:case y.default.extent:case y.default.circle:n=b._geometryToTurf(e),i=b._geometryToTurf(t),(r=a.booleanCrosses(n,i))&&"Point"===b.intersect(e,t).type&&(r=!1);break;case y.default.multiPolygon:for(var O=0;O<t.coordinates.length&&!r;O++)i=new c.default({coordinates:t.coordinates[O]}),r=b._crosses(e,i)}break;case y.default.multiLineString:for(var R=0;R<e.coordinates.length&&!r;R++)n=new h.default({coordinates:e.coordinates[R]}),r=b._crosses(n,t)}return r}},b.touches=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e instanceof h.default||e instanceof c.default||e instanceof S.default||e instanceof f.default||e instanceof _.default||e instanceof v.default||s.Log.error("geometry1类型错误,需要输入LineString、Polygon、MultiLineString、MultiPolygon、Circle、Extent!"),t instanceof m.default||t instanceof h.default||t instanceof c.default||t instanceof g.default||t instanceof S.default||t instanceof f.default||t instanceof _.default||t instanceof v.default||s.Log.error("geometry2类型错误!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1、geometry2坐标系不同!"),e=(0,s.defaultValue)(e,void 0),t=(0,s.defaultValue)(t,void 0),e.spatialReference.isGeographic||(e=d.default.projectGeometry(e,new p.default({wkid:4326})),t=d.default.projectGeometry(t,new p.default({wkid:4326}))),!(0,s.isNull)(e)&&!(0,s.isNull)(t)){var r=!1,n=void 0,i=void 0,o=[];switch(e.type){case y.default.lineString:switch(t.type){case y.default.point:var a=new g.default({coordinates:[e.coordinates[0],e.coordinates[e.coordinates.length-1]]});b.contains(a,t)&&a.coordinates[0].toString()!==a.coordinates[1].toString()&&(r=!0);break;case y.default.multiPoint:for(var u=0;u<t.coordinates.length;u++){var l=new m.default({coordinates:t.coordinates[u]}),x=b.touches(e,l);if(x)r=x;else if(b.intersects(e,l)){r=!1;break}}break;case y.default.lineString:if(b.intersect(e,t).point){var w=new m.default({coordinates:e.coordinates[0]}),k=new m.default({coordinates:e.coordinates[e.coordinates.length-1]});if(b.contains(t,w)||b.contains(t,k))r=!b.crosses(e,t);else{var M=new m.default({coordinates:t.coordinates[0]}),E=new m.default({coordinates:t.coordinates[t.coordinates.length-1]});r=!(!b.contains(e,M)&&!b.contains(e,E)||b.crosses(e,t))}}else r=!1;break;case y.default.multiLineString:for(var I=0;I<t.coordinates.length;I++){i=new h.default({coordinates:t.coordinates[I]});var T=b.touches(e,i);if(T)r=T;else if(b.intersects(e,i)){r=!1;break}}break;case y.default.polygon:for(var L=0;L<t.coordinates[0].length;L++)o.push(t.coordinates[0][L]);i=new h.default({coordinates:o}),b.intersects(e,i)&&(b.crosses(e,i)||(r=!0));break;case y.default.multiPolygon:for(var C=0;C<t.coordinates.length;C++){i=new c.default({coordinates:t.coordinates[C]});var P=b.touches(e,i);if(P)r=P;else if(b.intersects(e,i)){r=!1;break}}break;case y.default.circle:var N=new m.default({coordinates:t.center}),O=b.nearestCoordinate(e,N),R=new h.default({coordinates:[t.center,O.geometry.coordinates]}),V=b.planarLength(R);Math.round(V)===t.radius&&(r=!0);break;case y.default.extent:var G=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=b.touches(e,G)}break;case y.default.multiLineString:for(var A=0;A<e.coordinates.length;A++){n=new h.default({coordinates:e.coordinates[A]});var D=b.touches(n,t);if(D)r=D;else if(b.intersects(n,t)){r=!1;break}}break;case y.default.polygon:switch(t.type){case y.default.point:if(!b.contains(e,t)){for(var F=0;F<e.coordinates.length;F++)o.push(e.coordinates[F]);n=new S.default({coordinates:o}),b.contains(n,t)&&(r=!0)}break;case y.default.multiPoint:for(var j=0;j<t.coordinates.length;j++){var B=new m.default({coordinates:t.coordinates[j]}),q=b.touches(e,B);if(q)r=q;else if(b.contains(e,B)){r=!1;break}}break;case y.default.lineString:case y.default.multiLineString:r=b.touches(t,e);break;case y.default.polygon:b.intersects(e,t)&&(b.intersect(e,t)||(r=!0));break;case y.default.multiPolygon:for(var U=0;U<t.coordinates.length;U++){i=new c.default({coordinates:t.coordinates[U]});var J=b.touches(e,i);if(J)r=J;else if(b.intersects(e,i)){r=!1;break}}break;case y.default.circle:for(var z=0;z<e.coordinates[0].length;z++)o.push(e.coordinates[0][z]);n=new h.default({coordinates:o});var W=new m.default({coordinates:t.center}),H=b.nearestCoordinate(n,W),X=new h.default({coordinates:[t.center,H.geometry.coordinates]}),Y=b.planarLength(X);Math.round(Y)===t.radius&&(b.intersect(e,t)||(r=!0));break;case y.default.extent:var Z=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=b.touches(e,Z)}break;case y.default.multiPolygon:switch(t.type){case y.default.point:for(var K=0;K<e.coordinates.length;K++){n=new c.default({coordinates:e.coordinates[K]});var Q=b.touches(n,t);if(Q)r=Q;else if(b.contains(n,t)){r=!1;break}}break;case y.default.multiPoint:for(var $=0;$<t.coordinates.length;$++){var ee=new m.default({coordinates:t.coordinates[$]}),te=b.touches(e,ee);if(te)r=te;else if(b.contains(e,ee)){r=!1;break}}break;case y.default.lineString:case y.default.multiLineString:case y.default.polygon:r=b.touches(t,e);break;case y.default.multiPolygon:for(var re=0;re<t.coordinates.length;re++){i=new c.default({coordinates:t.coordinates[re]});var ne=b.touches(e,i);if(ne)r=ne;else if(b.intersects(e,i)){r=!1;break}}break;case y.default.extent:var ie=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=b.touches(e,ie);break;case y.default.circle:for(var oe=0;oe<e.coordinates.length;oe++){n=new c.default({coordinates:e.coordinates[oe]});var ae=b.touches(n,t);if(ae)r=ae;else if(b.intersects(n,t)){r=!1;break}}}break;case y.default.extent:var se=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});r=b.touches(se,t);break;case y.default.circle:switch(t.type){case y.default.point:var ue=new h.default({coordinates:[e.center,t.coordinates]}),le=b.planarLength(ue);Math.round(le)===e.radius&&(r=!0);break;case y.default.multiPoint:for(var ce=0;ce<t.coordinates.length;ce++){var he=new m.default({coordinates:t.coordinates[ce]}),fe=b.touches(e,he);if(fe)r=fe;else{var de=new h.default({coordinates:[e.center,he.coordinates]}),pe=b.planarLength(de);if(Math.round(pe)<e.radius){r=!1;break}}}break;case y.default.lineString:case y.default.multiLineString:case y.default.polygon:case y.default.multiPolygon:case y.default.extent:r=b.touches(t,e);break;case y.default.circle:var ye=new h.default({coordinates:[e.center,t.center]}),ge=b.planarLength(ye);Math.round(ge)===e.radius+t.radius&&(r=!0)}}return r}},b.cut=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("cutter不能为空!"),e instanceof h.default||e instanceof S.default||e instanceof c.default||e instanceof f.default||s.Log.error("geometry类型错误!"),t instanceof h.default||s.Log.error("cutter类型错误!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry对象和cutter对象的坐标系不同!"),!b.intersects(e,t))return[];var r=[],n=void 0,i=void 0;switch(e.type){case y.default.lineString:r=b._lineCutLine(e,t);break;case y.default.multiLineString:for(var o=0;o<e.coordinates.length;o++){var a=new h.default({coordinates:e.coordinates[o],spatialReference:p.default.fromJSON(e.spatialReference)});r=r.concat(b._lineCutLine(a,t))}break;case y.default.polygon:if(n=void 0,e.spatialReference.isGeographic)n=e,i=t;else{var u=b._polygonAndCutterToWGS84(e,t);n=u.polygon,i=u.cutter}if(r=b._lineCutPolygon(n,i),!e.spatialReference.isGeographic)for(var l=0;l<r.length;l++)r[l]=b._geometryToOrigin(r[l]);break;case y.default.multiPolygon:if(n=void 0,e.spatialReference.isGeographic)n=e,i=t;else{var d=b._polygonAndCutterToWGS84(e,t);n=d.polygon,i=d.cutter}for(var g=0;g<n.coordinates.length;g++){var m=new c.default({coordinates:n.coordinates[g],spatialReference:p.default.fromJSON(e.spatialReference)});r=r.concat(b._lineCutPolygon(m,i))}if(!e.spatialReference.isGeographic)for(var v=0;v<r.length;v++)r[v]=b._geometryToOrigin(r[v])}return r},b._polygonAndCutterToWGS84=function(e,t){return{polygon:e.spatialReference.isGeographic?e:b._geometryToWGS84(e),cutter:t.spatialReference.isGeographic?t:b._geometryToWGS84(t)}},b._lineCutLine=function(e,t){for(var r=[],n=a.lineString(e.coordinates),i=a.lineString(t.coordinates),o=a.lineSplit(n,i),s=0;s<o.features.length;s++)r.push(new h.default({coordinates:o.features[s].geometry.coordinates,spatialReference:p.default.fromJSON(e.spatialReference)}));return r},b._lineCutPolygon=function(e,t){var r=[],n=new h.default({coordinates:e.coordinates[0]}),i=a.lineString(n.coordinates),o=a.lineString(t.coordinates);if(a.booleanDisjoint(o,n))return e.clone();for(var s=[],u=0;u<t.coordinates.length-1;u++){var l=a.lineString([t.coordinates[u],t.coordinates[u+1]]);a.booleanDisjoint(l,n)||s.push(t.coordinates[u],t.coordinates[u+1])}o=a.lineString(s),o=a.cleanCoords(o);for(var f=a.lineSplit(i,o),d=a.lineSplit(o,i),g=[],m=new c.default({coordinates:[e.coordinates[0]]}),v=0;v<d.features.length;v++){var _=new h.default({coordinates:d.features[v].geometry.coordinates});b.contains(m,_)&&g.push(d.features[v])}f.features=f.features.concat(g);for(var S=0;S<f.features.length;S++)for(var x=0;x<f.features[S].geometry.coordinates.length;x++)f.features[S].geometry.coordinates[x][0]=f.features[S].geometry.coordinates[x][0].toFixed(7)/1,f.features[S].geometry.coordinates[x][1]=f.features[S].geometry.coordinates[x][1].toFixed(7)/1;for(var w=a.polygonize(f),k=0;k<w.features.length;k++){var M=new c.default({coordinates:w.features[k].geometry.coordinates,spatialReference:p.default.fromJSON(e.spatialReference)});r.push(M)}if(e.coordinates.length>1)for(var E=0;E<r.length;E++)for(var I=1;I<e.coordinates.length;I++){var T=new c.default({coordinates:[e.coordinates[I]]}),L=a.polygon(T.coordinates),C=a.polygon(r[E].coordinates);a.booleanDisjoint(L,C)||(r[E]=b.difference(r[E],T))}for(var P=[],N=0;N<r.length;N++)if(r[N].type===y.default.multiPolygon)for(var O=0;O<r[N].coordinates.length;O++)P.push(new c.default({coordinates:r[N].coordinates[O],spatialReference:p.default.fromJSON(e.spatialReference)}));else P.push(r[N]);return P},b._coordinateToWGS84=function(e){var t=e[0]/20037508.34*180,r=e[1]/20037508.34*180;return[t.toFixed(7)/1,r.toFixed(7)/1]},b._coordinateToOrigin=function(e){return[20037508.34*e[0]/180,20037508.34*e[1]/180]},b._geometryToWGS84=function(e){var t=void 0;switch(e.type){case y.default.polygon:t=c.default.fromJSON(e.toJSON());for(var r=0;r<t.coordinates.length;r++)for(var n=0;n<t.coordinates[r].length;n++)t.coordinates[r][n]=b._coordinateToWGS84(t.coordinates[r][n]);break;case y.default.multiPolygon:t=f.default.fromJSON(e.toJSON());for(var i=0;i<t.coordinates.length;i++)for(var o=0;o<t.coordinates[i].length;o++)for(var a=0;a<t.coordinates[i][o].length;a++)t.coordinates[i][o][a]=b._coordinateToWGS84(t.coordinates[i][o][a]);break;case y.default.lineString:t=h.default.fromJSON(e.toJSON());for(var s=0;s<t.coordinates.length;s++)t.coordinates[s]=b._coordinateToWGS84(t.coordinates[s])}return t},b._geometryToOrigin=function(e){var t=void 0;switch(e.type){case y.default.polygon:t=c.default.fromJSON(e.toJSON());for(var r=0;r<t.coordinates.length;r++)for(var n=0;n<t.coordinates[r].length;n++)t.coordinates[r][n]=b._coordinateToOrigin(t.coordinates[r][n]);break;case y.default.lineString:t=h.default.fromJSON(e.toJSON());for(var i=0;i<t.coordinates.length;i++)t.coordinates[i]=b._coordinateToOrigin(t.coordinates[i])}return t},b.isSimple=function(e){(0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),e instanceof h.default||e instanceof S.default||e instanceof c.default||e instanceof f.default||s.Log.error("geometry为不支持的类型!");var t=!0;switch(e.type){case y.default.lineString:t=b._lineIsSimple(e);break;case y.default.multiLineString:t=b._multiLineIsSimple(e);break;case y.default.polygon:t=b._polygonIsSimple(e);break;case y.default.multiPolygon:t=b._multiPolygonIsSimple(e)}return t},b._lineIsSimple=function(e){var t=!0;if(e.coordinates.length>2){for(var r=[],n=0;n<e.coordinates.length-1;n++)r.push(new h.default({coordinates:[e.coordinates[n],e.coordinates[n+1]]}));for(var i=0;i<r.length-1;i++)for(var o=i+1;o<r.length;o++)if(b.contains(r[i],r[o])||b.contains(r[o],r[i])){t=!1;break}for(var s=0;s<r.length-2;s++)for(var u=s+2;u<r.length;u++)if(b.intersects(r[s],r[u])){var l=a.multiPoint([r[s].coordinates[0],r[s].coordinates[1],r[u].coordinates[0],r[u].coordinates[1]]);if(3!==(l=a.cleanCoords(l)).geometry.coordinates.length){t=!1;break}t=!0}for(var c=0;c<e.coordinates.length;c++){for(var f=!1,d=c+1;d<e.coordinates.length;d++)if(b._equalPoints(e.coordinates[c],e.coordinates[d])){f=!0;break}if(f){t=!1;break}}return t}return 2===e.coordinates.length?b._equalPoints(e.coordinates[0],e.coordinates[1]):t},b._equalPoints=function(e,t){return 2===e.length&&t.length>=2?e[0]===t[0]&&e[1]===t[1]:3===e.length&&t.length>=3&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},b._getLinesFromPolygon=function(e){for(var t=[],r=0;r<e.coordinates.length;r++)for(var n=0;n<e.coordinates[r].length-1;n++)t.push(new h.default({coordinates:[e.coordinates[r][n],e.coordinates[r][n+1]]}));return t},b._multiLineIsSimple=function(e){var t=!0;if(1===e.coordinates.length){var r=new h.default({coordinates:e.coordinates[0]});t=b._lineIsSimple(r)}else{for(var n=0;n<e.coordinates.length;n++){var i=new h.default({coordinates:e.coordinates[n]});if(b._lineIsSimple(i)){t=!1;break}}if(t)for(var o=0;o<e.coordinates.length-1;o++){var a=new h.default({coordinates:e.coordinates[o]}),s=new h.default({coordinates:e.coordinates[o+1]});if(b.intersects(a,s)){t=!1;break}}}return t},b._polygonIsSimple=function(e){var t=[],r=[];e.coordinates.forEach(function(e){t.push(e.slice(0,e.length-1));for(var n=[],i=1;i<e.length-3;i++)n.push([e[i],e[i+1]]);n.push([e[e.length-2],e[e.length-1]]),r.push(n)});for(var n=new S.default({coordinates:t}),i=b._multiLineIsSimple(n),o=!1,a=0;a<r.length;a++){for(var s=new h.default({coordinates:r[a][r[a].length-1]}),u=0;u<r[a].length-1;u++)if(o=b.intersects(new h.default({coordinates:r[a][u]}),s)){i=!1;break}if(o)break}return i},b._multiPolygonIsSimple=function(e){var t=[];e.coordinates.forEach(function(e){e.forEach(function(e){t.push(e.slice(0,e.length-1))})});var r=new S.default({coordinates:t});return b._multiLineIsSimple(r)},b.getPositionsFromArc=function(e){var t=[(e=(0,s.defaultValue)(e,{})).point1,e.point2,e.point3],r=b.getCenter(t[0],t[1],t[2]);return b._tranArcToPath({center:r,pointBegan:t[0],pointEnd:t[2],spatialReference:e.spatialReference,numberOfPoints:e.numberOfPoints})},b._tranArcToPath=function(e){var t=(0,s.defaultValue)(e.center,void 0);t=JSON.parse((0,n.default)(t));var r=(0,s.defaultValue)(e.pointBegan,void 0);r=JSON.parse((0,n.default)(r));var i=(0,s.defaultValue)(e.pointEnd,void 0);i=JSON.parse((0,n.default)(i));var o=(0,s.defaultValue)(e.numberOfPoints,360),a=(0,s.defaultValue)(e.spatialReference,new p.default({wkid:4326}));if(!(a=p.default.fromJSON(a)).isGeographic){var u=new p.default({wkid:4326});t=d.default.project(new m.default({coordinates:t,spatialReference:a}),u).coordinates,r=d.default.project(new m.default({coordinates:r,spatialReference:a}),u).coordinates,i=d.default.project(new m.default({coordinates:i,spatialReference:a}),u).coordinates}var l=new h.default({coordinates:[t,r]}),c=b.planarLength(l),f=b.getAngleFromPoints(r,t,[t[0]+10,t[1]]),y=b.getAngleFromPoints(i,t,[t[0]+10,t[1]])-f;o*=y/360,o=Math.abs(o);var g=Math.PI*(y/180)/o;f=Math.PI*(f/180);for(var v=[r],_=0;_<o-1;_++){f+=g;var S=[t[0]+c*Math.cos(f),t[1]+c*Math.sin(f)];v.push(S)}return v.push(i),this.hasZ&&v.map(function(e){return[e[0],e[1],t[2]]}),v},b.getCenter=function(e,t,r,n){var i=e[0],o=t[0],a=r[0],s=e[1],u=t[1],l=r[1],c=0*s-0*u-0*s+0*l+0*u-0*l,h=-(0*i-0*o-0*i+0*a+0*o-0*a),f=i*u-o*s-i*l+a*s+o*l-a*u,d=-(i*u*0-i*l*0-o*s*0+o*l*0+a*s*0-a*u*0),p=2*(o-i),y=2*(u-s),g=i*i+s*s+0-o*o-u*u-0,m=2*(a-i),v=2*(l-s),_=i*i+s*s+0-a*a-l*l-0,S=-(0*h*_-0*h*g-y*f*_+0*y*d+v*f*g-0*v*d)/(c*y*0-c*v*0-p*h*0+p*v*f+m*h*0-m*y*f),x=(0*c*_-0*c*g-p*f*_+0*p*d+m*f*g-0*m*d)/(c*y*0-c*v*0-p*h*0+p*v*f+m*h*0-m*y*f);return n?[S,x,e[2]]:[S,x]},b._getArcFromPath=function(e){e=(0,s.defaultValue)(e,{});var t=(0,s.defaultValue)(e.coordinates,[]),r=(0,s.defaultValue)(e.arcInfo,[]),n=(0,s.defaultValue)(e.spatialReference,new p.default({wkid:4326})),i=(0,s.defaultValue)(e.numberOfPoints,360),o=[],a=t.slice(0,r[0].centerPointIndex-1);o=o.concat(a);var u=Number(r[0].centerPointIndex),l=[t[u-1],t[u],t[u+1]],c=b.getPositionsFromArc({point1:l[0],point2:l[1],point3:l[2],spatialReference:n,numberOfPoints:i});o=o.concat(c);for(var h=1;h<r.length;h++)if(r[h].hasOwnProperty("centerPointIndex")){var f=t.slice(r[h-1].centerPointIndex+2,r[h].centerPointIndex+1);o=o.concat(f);var d=Number(r[h].centerPointIndex),y=[t[d-1],t[d],t[d+1]],g=b.getPositionsFromArc({point1:y[0],point2:y[1],point3:y[2],spatialReference:n,numberOfPoints:i});o=o.concat(g)}var m=t.slice(r[r.length-1].centerPointIndex+2,t.length);return o.concat(m)},b._getArcInfos=function(e,t,r){var n={};switch(r){case y.default.multiLineString:case y.default.polygon:for(var i=0;i<t.length;i++){n[i]=[];for(var o=0;o<e.length;o++)(r===y.default.multiLineString?e[o].lineIndex:e[o].ringIndex)===i&&n[i].push(e[o]);n[i].sort(function(e,t){return Number(e.centerPointIndex)-Number(t.centerPointIndex)})}return n;case y.default.multiPolygon:for(var a=0;a<t.length;a++){n[a]=[];for(var s=0;s<e.length;s++)e[s].polygonIndex===a&&n[a].push(e[s]);n[a]=b._getArcInfos(n[a],t[a],y.default.polygon)}return n;default:return n}},b.getAngleFromPoints=function(e,t,r){var n=e[0]-t[0],i=e[1]-t[1],o=r[0]-t[0],a=r[1]-t[1],s=(n*o+i*a)/(Math.sqrt(n*n+i*i)*Math.sqrt(o*o+a*a)),u=180*Math.acos(s)/Math.PI;return 0===Math.abs(u)||180===Math.abs(u)?Math.abs(u):e[1]<r[1]?-1*u:u},b.getArcFromGeometry=function(e){e=(0,s.defaultValue)(e,{});var t=(0,s.defaultValue)(e.geometry,void 0),r=(0,s.defaultValue)(e.numberOfPoints,360),n=(0,s.defaultValue)(e.arcInfo,[]);if(!t)return t;if(!(t instanceof l.default))return s.Log.error("geometry不是基础几何类型!"),t;if(!n)return t;if(!(n instanceof Array))return t;if(n.length<1)return t;var o=t.coordinates,a=t.spatialReference,u=void 0,d=void 0;switch(t.type){case y.default.lineString:return u=b._getArcFromPath({coordinates:o,arcInfo:n,spatialReference:a,numberOfPoints:r}),new h.default({coordinates:u,spatialReference:p.default.fromJSON(t.spatialReference)});case y.default.multiLineString:return d=b._getArcInfos(n,o,y.default.multiLineString),u=[],(0,i.default)(d).forEach(function(e){u.push(b._getArcFromPath({coordinates:o[e],arcInfo:d[e],spatialReference:a,numberOfPoints:r}))}),new S.default({coordinates:u,spatialReference:a});case y.default.polygon:return d=b._getArcInfos(n,o,y.default.polygon),u=[],(0,i.default)(d).forEach(function(e){var t=o[e].slice(0,o[e].length),n=b._getArcFromPath({coordinates:t,arcInfo:d[e],spatialReference:a,numberOfPoints:r});n.push(n[0]),u.push(n)}),new c.default({coordinates:u,spatialReference:a});case y.default.multiPolygon:d=b._getArcInfos(n,o,y.default.multiPolygon),u=[];for(var g=function(e){var t=[];(0,i.default)(d[e]).forEach(function(n){var i=o[e][n].slice(0,o[e][n].length),s=b._getArcFromPath({coordinates:i,arcInfo:d[e][n],spatialReference:a,numberOfPoints:r});s.push(s[0]),t.push(s)}),u.push(t)},m=0;m<o.length;m++)g(m);return new f.default({coordinates:u,spatialReference:a});default:return t}},b._getTurfMultiLineStringFromLines=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].coordinates);return a.multiLineString(t)},b._initIntersects=function(e){for(var t={},r=0;r<e.length;r++)e[r].id=r,t[r]={intersectPoints:[],intersectLines:[]};return t},b._pointOnLineEndPoint=function(e,t){return e.coordinates[0]===t.coordinates[0][0]&&e.coordinates[1]===t.coordinates[0][1]||e.coordinates[0]===t.coordinates[1][0]&&e.coordinates[1]===t.coordinates[1][1]},b._lineEqualLine=function(e,t){return e.coordinates[0][0]===t.coordinates[0][0]&&e.coordinates[0][1]===t.coordinates[0][1]&&e.coordinates[1][0]===t.coordinates[1][0]&&e.coordinates[1][1]===t.coordinates[1][1]||e.coordinates[0][0]===t.coordinates[1][0]&&e.coordinates[0][1]===t.coordinates[1][1]&&e.coordinates[1][0]===t.coordinates[0][0]&&e.coordinates[1][1]===t.coordinates[0][1]},b._lineEqualLineTurf=function(e,t){return e.geometry.coordinates[0][0]===t.geometry.coordinates[0][0]&&e.geometry.coordinates[0][1]===t.geometry.coordinates[0][1]&&e.geometry.coordinates[1][0]===t.geometry.coordinates[1][0]&&e.geometry.coordinates[1][1]===t.geometry.coordinates[1][1]},b._singRingSimplify=function(e){for(var t=b._getLinesFromPolygon(e),r=b._initIntersects(t),n=0;n<t.length-1;n++)for(var i=n+1;i<t.length;i++){var o=b.intersect(t[n],t[i]);o.point&&(b._pointOnLineEndPoint(o.point,t[n])||b._pointOnLineEndPoint(o.point,t[i])||(r[n].intersectPoints.push(o.point),r[i].intersectPoints.push(o.point))),o.lineString&&(r[n].intersectLines.push(o.lineString),r[i].intersectLines.push(o.lineString))}for(var s=[],u=0;u<t.length;u++){for(var l=!1,c=0;c<r[u].intersectLines.length;c++){if(b._lineEqualLine(t[u],r[u].intersectLines[c])){l=!0;break}t[u].coordinates[0][0]===r[u].intersectLines[c].coordinates[0][0]&&t[u].coordinates[0][1]===r[u].intersectLines[c].coordinates[0][1]||r[u].intersectPoints.push(new m.default({coordinates:r[u].intersectLines[c].coordinates[0]}),new m.default({coordinates:r[u].intersectLines[c].coordinates[0]})),t[u].coordinates[1][0]===r[u].intersectLines[c].coordinates[1][0]&&t[u].coordinates[1][1]===r[u].intersectLines[c].coordinates[1][1]||r[u].intersectPoints.push(new m.default({coordinates:r[u].intersectLines[c].coordinates[1]}),new m.default({coordinates:r[u].intersectLines[c].coordinates[1]}))}if(!l){r[u].intersectPoints.sort(function(e,t){return e.coordinates[0]-t.coordinates[0]}),r[u].intersectPoints.sort(function(e,t){return t.coordinates[1]-e.coordinates[1]}),r[u].intersectPoints.splice(0,0,new m.default({coordinates:t[u].coordinates[0]})),r[u].intersectPoints.push(new m.default({coordinates:t[u].coordinates[1]}));for(var h=b.union(r[u].intersectPoints),f=0;f<h.coordinates.length-1;f++)s.push(a.lineString([h.coordinates[f],h.coordinates[f+1]]))}}for(var d=0;d<s.length;d++)for(var p=d+1;p<s.length;p++)b._lineEqualLineTurf(s[d],s[p])&&(s.splice(p,1),p--);var y=a.featureCollection(s);return a.polygonize(y)},b._getPolygonsFromRings=function(e,t){for(var r=0;r<e.length;r++)e[r].isOuter=!0,e[r].innerPolygons=[];1===e.length&&t.push(e[0]);for(var n=0;n<e.length-1;n++)if(e[n].isOuter){t.push(e[n]);for(var i=n+1;i<e.length;i++)b.contains(e[n],e[i])&&(e[i].isOuter=!1,e[n].innerPolygons.push(e[i]))}e.length>1&&e[e.length-1].isOuter&&t.push(e[e.length-1]);for(var o=[],a=0;a<t.length;a++){for(var s=[],u=0;u<t[a].innerPolygons.length-1;u++)for(var l=u+1;l<t[a].innerPolygons.length;l++)b.contains(t[a].innerPolygons[u],t[a].innerPolygons[l])&&!t[a].innerPolygons[l].isOuter&&(t[a].innerPolygons[l].isOuter=!0,t[a].innerPolygons[l].innerPolygons=[],s.push(t[a].innerPolygons[l]));for(var c=0;c<t[a].innerPolygons.length;c++)t[a].innerPolygons[c].isOuter&&(t[a].innerPolygons.splice(c,1),c--);if(s.length>0){var h=b._getPolygonsFromRings(s,[]);o=o.concat(h)}}return t.concat(o)},b._singlePolygonSimplify=function(e){for(var t={largerInnerPolygon:[],intersectInnerPolygon:[],smallInnerPolygon:[]},r=new c.default({coordinates:[e.coordinates[0]],spatialReference:p.default.fromJSON(e.spatialReference)}),i=[],o=1;o<e.coordinates.length;o++){var a=new c.default({coordinates:[e.coordinates[o]],spatialReference:p.default.fromJSON(e.spatialReference)});i.push(a)}for(var s=0;s<i.length-1;s++)for(var u=s+1;u<i.length;u++){var h=b.intersect(i[s],i[u]);(h instanceof c.default||h instanceof f.default)&&(i[s]=b.difference(i[s],h),i[u]=b.difference(i[u],h))}for(var d=0;d<i.length;d++){var y=i[d];if(b.contains(r,y)){var g=b.difference(r,y),m=JSON.parse((0,n.default)(r.coordinates[0])),v=JSON.parse((0,n.default)(g.coordinates[0]));m.sort(function(e,t){return e[0]-t[0]}),m.sort(function(e,t){return e[1]-t[1]}),v.sort(function(e,t){return e[0]-t[0]}),v.sort(function(e,t){return e[1]-t[1]}),(0,n.default)(m)===(0,n.default)(v)?t.smallInnerPolygon.push(y):t.intersectInnerPolygon.push(y)}else if(b.contains(y,r)){var _=r.toJSON(),S=y.toJSON();r=l.default.fromJSON(S),y=l.default.fromJSON(_),t.smallInnerPolygon.push(y)}else b.intersects(r,y)?t.intersectInnerPolygon.push(y):b.disjoint(r,y)&&t.largerInnerPolygon.push(y)}for(var x=[],w=0;w<t.intersectInnerPolygon.length;w++){var k=b.intersect(r,t.intersectInnerPolygon[w]);if(k instanceof c.default||k instanceof f.default){r=b.difference(r,k);var M=b.difference(t.intersectInnerPolygon[w],k);x.push(M)}}for(var E=b._singRingSimplify(r),I=0;I<E.features.length;I++)x.push(new c.default({coordinates:E.features[I].geometry.coordinates}));if(t.largerInnerPolygon.length>0)for(var T=0;T<t.largerInnerPolygon.length;T++)x.push(t.largerInnerPolygon[T]);for(var L=[],C=0;C<t.smallInnerPolygon.length;C++)for(var P=b._singRingSimplify(t.smallInnerPolygon[C]),N=0;N<P.features.length;N++){var O=new c.default({coordinates:P.features[N].geometry.coordinates});O.isPicked=!1,L.push(O)}!(L=b.union(L))||L instanceof Array||(L=[L]);for(var R=0;R<x.length;R++)for(var V=0;V<L.length;V++)!L[V].isPicked&&x[R]&&L[V]&&b.contains(x[R],L[V])&&(x[R].coordinates.push(L[V].coordinates[0]),L[V].isPicked=!0);return x},b.simplify=function(e){if((0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),e.type===y.default.point||e.type===y.default.multiPoint||e.type===y.default.extent||e.type===y.default.circle)return e;switch(e.type){case y.default.polygon:case y.default.multiPolygon:var t=[],r=void 0;if(e.type===y.default.polygon){r=JSON.parse((0,n.default)(e.coordinates));for(var i=0;i<r.length;i++)t.push(new c.default({coordinates:[r[i]],spatialReference:p.default.fromJSON(e.spatialReference)}))}else for(var o=JSON.parse((0,n.default)(e.coordinates)),a=0;a<o.length;a++)for(var u=0;u<o[a].length;u++)t.push(new c.default({coordinates:[o[a][u]],spatialReference:p.default.fromJSON(e.spatialReference)}));for(var l=0;l<t.length;l++)t[l].area=b.planarArea(t[l]);t.sort(function(e,t){return t.area-e.area});for(var h=b._getPolygonsFromRings(t,[]),d=0;d<h.length-1;d++)for(var g=d+1;g<h.length;g++)if(!b.contains(h[d],h[g])){var m=b.intersect(h[d],h[g]);m&&(h[d].coordinates=b.difference(h[d],m).coordinates,h[g].coordinates=b.difference(h[g],m).coordinates)}for(var v=[],_=0;_<h.length;_++){for(var S=0;S<h[_].innerPolygons.length;S++)h[_].coordinates.push(h[_].innerPolygons[S].coordinates[0]);var x=b._singlePolygonSimplify(h[_]);v=v.concat(x)}if(1===v.length)return v[0];if(v.length>1){for(var w=[],k=0;k<v.length;k++)v[k]&&w.push(v[k].coordinates);return new f.default({coordinates:w,spatialReference:p.default.fromJSON(e.spatialReference)})}break;case y.default.lineString:}},b.getEllipseCoordinates=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50;if(!e||!e.coordinates||void 0===t||void 0===r)return[];for(var i=[],o=e.coordinates,a=0;a<=n;a++){var s=a/n*2*Math.PI,u=o[0]+t*Math.cos(s),l=o[1]+r*Math.sin(s);i.push([u,l])}return i.push(i[0]),i},b.getCenterOID=function(e){var t=e.type;if(t===y.default.circle)return new m.default({coordinates:[e.center[0],e.center[1],0]});if(t===y.default.extent)return new m.default({coordinates:[(e.xmin+e.xmax)/2,(e.ymin+e.ymax)/2,0]});var r=[],n=void 0;switch(t){case y.default.point:return m.default.fromJSON(e.toJSON());case y.default.multiPoint:case y.default.lineString:n=e.coordinates;break;case y.default.polygon:n=e.coordinates[0];break;default:return}for(var i=0;i<n.length;i++)r.push(a.point(n[i]));var o=a.featureCollection(r),s=a.center(o);return new m.default({coordinates:[s.geometry.coordinates[0],s.geometry.coordinates[1],0]})},t.default=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverlayLayer=t.UnknownLayer=t.TileLayer=t.VectorTileLayer=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.ArcGISVectorTileLayer=t.VisualVariable=t.OpacityVariable=t.ColorVariable=t.SizeVariable=t.HeatmapColorStop=t.setElevationInfo=t.Layer=t.TileInfoUtil=t.getIGSDynamicLayer=t.showLayerByScale=t.isCustomSP=t.is4326=t.getUrlType=t.ArcGISTileLayer=t.ArcGISMapImageSubLayer=t.ArcGISMapImageLayer=t.LabelClass=t.Projection=t.Basemap=t.Map=t.M3DModelCacheLayer=t.BaseRenderer=t.HeatmapRenderer=t.RankRenderer=t.RandomRenderer=t.ClusterRenderer=t.SimpleRenderer=t.ClassBreakRenderer=t.UniqueValueRenderer=t.VideoLayer=t.TerrainCacheLayer=t.Cesium3DTilesCacheLayer=t.GeoJSONLayer=t.GraphicsLayer=t.GroupLayer=t.MapVLayer=t.EchartsLayer=t.IGSFeatureLayer=t.Scene=t.IGSTileLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=t.WMTSSubLayer=t.WFSLayer=t.WMSSubLayer=t.WMSLayer=t.WMTSLayer=t.OGCLayer=void 0;var n=r(35),i=r(66),o=r(509),a=function(e){return e&&e.__esModule?e:{default:e}}(r(93));t.OGCLayer=n.OGCLayer,t.WMTSLayer=n.WMTSLayer,t.WMSLayer=n.WMSLayer,t.WMSSubLayer=n.WMSSubLayer,t.WFSLayer=n.WFSLayer,t.WMTSSubLayer=n.WMTSSubLayer,t.IGSVectorTileLayer=n.IGSVectorTileLayer,t.IGSVectorTileSubLayer=n.IGSVectorTileSubLayer,t.IGSMapImageLayer=n.IGSMapImageLayer,t.IGSMapImageSubLayer=n.IGSMapImageSubLayer,t.IGSSceneLayer=n.IGSSceneLayer,t.IGSSceneSubLayer=n.IGSSceneSubLayer,t.IGSTileLayer=n.IGSTileLayer,t.Scene=n.Scene,t.IGSFeatureLayer=n.IGSFeatureLayer,t.EchartsLayer=n.EchartsLayer,t.MapVLayer=n.MapVLayer,t.GroupLayer=n.GroupLayer,t.GraphicsLayer=n.GraphicsLayer,t.GeoJSONLayer=n.GeoJSONLayer,t.Cesium3DTilesCacheLayer=n.Cesium3DTilesCacheLayer,t.TerrainCacheLayer=n.TerrainCacheLayer,t.VideoLayer=n.VideoLayer,t.UniqueValueRenderer=i.UniqueValueRenderer,t.ClassBreakRenderer=i.ClassBreakRenderer,t.SimpleRenderer=i.SimpleRenderer,t.ClusterRenderer=i.ClusterRenderer,t.RandomRenderer=i.RandomRenderer,t.RankRenderer=i.RankRenderer,t.HeatmapRenderer=i.HeatmapRenderer,t.BaseRenderer=i.BaseRenderer,t.M3DModelCacheLayer=n.M3DModelCacheLayer,t.Map=o.Map,t.Basemap=o.Basemap,t.Projection=n.Projection,t.LabelClass=a.default,t.ArcGISMapImageLayer=n.ArcGISMapImageLayer,t.ArcGISMapImageSubLayer=n.ArcGISMapImageSubLayer,t.ArcGISTileLayer=n.ArcGISTileLayer,t.getUrlType=n.getUrlType,t.is4326=n.is4326,t.isCustomSP=n.isCustomSP,t.showLayerByScale=n.showLayerByScale,t.getIGSDynamicLayer=i.getIGSDynamicLayer,t.TileInfoUtil=n.TileInfoUtil,t.Layer=n.Layer,t.setElevationInfo=n.setElevationInfo,t.HeatmapColorStop=i.HeatmapColorStop,t.SizeVariable=i.SizeVariable,t.ColorVariable=i.ColorVariable,t.OpacityVariable=i.OpacityVariable,t.VisualVariable=i.VisualVariable,t.ArcGISVectorTileLayer=n.ArcGISVectorTileLayer,t.WebTileLayer=n.WebTileLayer,t.getZoomOffset=n.getZoomOffset,t.FeatureCollection=n.FeatureCollection,t.TileInfo=n.TileInfo,t.appendUrlParams=n.appendUrlParams,t.getFullBaseUrl=n.getFullBaseUrl,t.LOD=n.LOD,t.VectorTileLayer=n.VectorTileLayer,t.TileLayer=n.TileLayer,t.UnknownLayer=n.UnknownLayer,t.OverlayLayer=n.OverlayLayer},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(11)),i=f(r(3)),o=f(r(0)),a=f(r(2)),s=f(r(4)),u=f(r(5)),l=r(8),c=r(1),h=r(6);function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.id=(0,c.defaultValue)(e.id,(0,c.getGUID)()),r.layer=(0,c.defaultValue)(e.layer,void 0),r.sublayers=(0,c.defaultValue)(e.sublayers,new l.Collection),r.title=(0,c.defaultValue)(e.title||e.layerName,void 0),r.extensionOptions=(0,c.defaultValue)(e.extensionOptions,{}),r.extendProps=(0,c.defaultValue)(e.extendProps,{}),r._visible=(0,c.defaultValue)(e.visible,!0),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"toJSON",value:function(){var e=[];return this.sublayers.forEach(function(r){e.push((0,c.toJSON)(r,t))}),{id:this.id,sublayers:e,title:this.title,visible:this.visible,extensionOptions:this.extensionOptions,extendProps:this.extendProps}}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(l.Evented);(0,n.default)(d.prototype,{visible:{get:function(){return this._visible},set:function(e){if(this._visible=e,this.layer&&this.layer.refresh)switch(this.layer.type){case h.LayerType.wms:this.layer.setSubLayer(this)}}}}),t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VisualVariable=t.OpacityVariable=t.ColorVariable=t.SizeVariable=t.HeatmapColorStop=t.getIGSDynamicLayer=t.createRender=t.HeatmapRenderer=t.RankRenderer=t.RandomRenderer=t.ClusterRenderer=t.SimpleRenderer=t.ClassBreakRenderer=t.UniqueValueRenderer=t.BaseRenderer=void 0;var n=g(r(47)),i=g(r(460)),o=g(r(467)),a=g(r(468)),s=g(r(469)),u=g(r(472)),l=g(r(473)),c=g(r(474)),h=r(6),f=r(1),d=r(475),p=g(r(208)),y=r(79);function g(e){return e&&e.__esModule?e:{default:e}}t.BaseRenderer=n.default,t.UniqueValueRenderer=i.default,t.ClassBreakRenderer=o.default,t.SimpleRenderer=a.default,t.ClusterRenderer=s.default,t.RandomRenderer=u.default,t.RankRenderer=l.default,t.HeatmapRenderer=c.default,t.createRender=function(e){switch((e=(0,f.defaultValue)(e,{})).type){case h.RendererType.simple:return new a.default(e);case h.RendererType.uniqueValue:return new i.default(e);case h.RendererType.classBreak:return new o.default(e);case h.RendererType.cluster:return new s.default(e);case h.RendererType.random:return new u.default(e);case h.RendererType.rank:return new l.default(e);case h.RendererType.heatmap:return new c.default(e);default:return new a.default(e)}},t.getIGSDynamicLayer=d.getIGSDynamicLayer,t.HeatmapColorStop=p.default,t.SizeVariable=y.SizeVariable,t.ColorVariable=y.ColorVariable,t.OpacityVariable=y.OpacityVariable,t.VisualVariable=y.VisualVariable},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=r(1),a=u(r(95)),s=r(9);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=t||{},this.dpi=(0,o.defaultValue)(t.dpi,-1),this.format=(0,o.defaultValue)(t.format,"png"),this.origin=t.origin?s.Point.fromJSON(t.origin):void 0;for(var r=[],i=(0,o.defaultValue)(t.lods,[]),u=0;u<i.length;u++)r.push(a.default.fromJSON(i[u]));this.lods=r,this.size=t.size,this.spatialReference=t.spatialReference}return(0,i.default)(e,[{key:"toJSON",value:function(){return{dpi:this.dpi,format:this.format,origin:this.origin?this.origin.toJSON():void 0,lods:this.lods.map(function(e){return e.toJSON()}),size:this.size?[this.size[0],this.size[1]]:void 0,spatialReference:this.spatialReference&&this.spatialReference.toJSON()}}},{key:"scaleToZoom",value:function(e){return 0}},{key:"zoomToScale",value:function(e){return 0}},{key:"getTileSize",value:function(){return Array.isArray(this.size)&&this.size.length>=2?Math.max(this.size[0],this.size[1]):256}},{key:"clone",value:function(){return e.fromJSON(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=l},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=!0},function(e,t,r){"use strict";var n=r(233)(!0);r(140)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var n=r(71),i=r(60),o=r(39),a=r(105),s=r(32),u=r(137),l=Object.getOwnPropertyDescriptor;t.f=r(27)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=h(r(49)),i=h(r(282)),o=h(r(285)),a=h(r(0)),s=h(r(2)),u=r(1),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(288)),c=r(40);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(){return(0,a.default)(this,e),this._createEventedProxy()}return(0,s.default)(e,[{key:"_createEventedProxy",value:function(){this._decorateParents=[],this._decorateProperties={};var e=this;return new Proxy(this,{set:function(t,r,n,a){if(e._decorateProperties[r]){var s=e._decorateProperties[r],u=s.type,l=s.createInstance;u&&n instanceof u||(n=l(n)),Array.isArray(n._decorateParents)&&-1===n._decorateParents.findIndex(function(t){return t.instance===e})&&n._decorateParents.push({instance:e,key:r})}if(t[r]===n)return!0;var c={target:t,key:r,value:n,oldValue:(0,o.default)(t,r),receiver:a},h=(0,i.default)(t,r,n,a);return/^_[^_].*/.test(r)?h:(e._decorateEventFire(e,e,[],"set",c,c),h)},get:function(e,t,r){return(0,o.default)(e,t,r)}})}},{key:"_decorateEventFire",value:function(e,t,r,n,i,o){for(var a=i.key,s=i.value,u=i.oldValue,l=[a],h=0;h<r.length;h++)l.push(r[h]);var f={key:a,value:s,oldValue:u},d=new c.ProxyEvent({eventName:n,target:e,eventData:f,eventPath:l,sourceTarget:t,sourceEventData:o});e.fire(n,d,!1);var p=e._decorateParents||[];if(0!==p.length)for(var y=0;y<p.length;y++){var g=p[y],m=g.instance,v={key:g.key,value:e,oldValue:e};this._decorateEventFire(m,t,l,n,v,o)}}},{key:"_decorate",value:function(e,t,r,n){n=(0,u.defaultValue)(n,function(e){return e});var i=t;return r&&t instanceof r||(i=n((0,u.defaultValue)(t,{}))),this._decorateProperties[e]={type:r,createInstance:n},i}},{key:"on",value:function(e,t,r){if("object"===(void 0===e?"undefined":(0,n.default)(e)))for(var i in e)this._on(i,e[i],t);else for(var o=0,a=(e=l.splitWords(e)).length;o<a;o++)this._on(e[o],t,r);return this}},{key:"off",value:function(e,t,r){if(e)if("object"===(void 0===e?"undefined":(0,n.default)(e)))for(var i in e)this._off(i,e[i],t);else for(var o=0,a=(e=l.splitWords(e)).length;o<a;o++)this._off(e[o],t,r);else delete this._Evented;return this}},{key:"_on",value:function(e,t,r){this._Evented=this._Evented||{};var n=this._Evented[e];n||(n=[],this._Evented[e]=n),r===this&&(r=void 0);for(var i={fn:t,ctx:r},o=n,a=0,s=o.length;a<s;a++)if(o[a].fn===t&&o[a].ctx===r)return;o.push(i)}},{key:"_off",value:function(e,t,r){var n=void 0,i=void 0,o=void 0;if(this._Evented&&(n=this._Evented[e]))if(t){if(r===this&&(r=void 0),n)for(i=0,o=n.length;i<o;i++){var a=n[i];if(a.ctx===r&&a.fn===t)return a.fn=l.falseFn,this._firingCount&&(this._Evented[e]=n=n.slice()),void n.splice(i,1)}}else{for(i=0,o=n.length;i<o;i++)n[i].fn=l.falseFn;delete this._Evented[e]}}},{key:"fire",value:function(e,t,r){if(!this.listens(e,r))return this;var n=t;if(n&&(n.type=e,n.target=this,n.sourceTarget=t&&t.sourceTarget||this),this._Evented){var i=this._Evented[e];if(i){this._firingCount=this._firingCount+1||1;for(var o=0,a=i.length;o<a;o++){var s=i[o];s.fn.call(s.ctx||this,n)}this._firingCount--}}return r&&this._propagateEvent(n),this}},{key:"listens",value:function(e,t){var r=this._Evented&&this._Evented[e];if(r&&r.length)return!0;if(t)for(var n in this._eventParents)if(this._eventParents[n].listens(e,t))return!0;return!1}},{key:"once",value:function(e,t,r){var i=this;if("object"===(void 0===e?"undefined":(0,n.default)(e))){for(var o in e)this.once(o,e[o],t);return this}var a=l.bind(function(){i.off(e,t,r).off(e,a,r)},this);return this.on(e,t,r).on(e,a,r)}},{key:"addEventParent",value:function(e){return this._eventParents=this._eventParents||{},this._eventParents[l.stamp(e)]=e,this}},{key:"removeEventParent",value:function(e){return this._eventParents&&delete this._eventParents[l.stamp(e)],this}},{key:"_propagateEvent",value:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,l.extend({layer:e.target,propagatedFrom:e.target},e),!0)}}]),e}();t.default=f,f.addEventListener=f.on,f.removeEventListener=f.clearAllEventListeners=f.off,f.addOneTimeEventListener=f.once,f.fireEvent=f.fire,f.hasEventListeners=f.listens},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(0)),i=f(r(224)),o=f(r(115)),a=r(1),s=r(9),u=f(r(88)),l=f(r(177)),c=f(r(178)),h=f(r(121));function f(e){return e&&e.__esModule?e:{default:e}}var d=function e(){(0,n.default)(this,e)};d.projectMercatorToLonLat=function(e){var t={longitude:0,latitude:0},r=e.x/20037508.34*180,n=e.y/20037508.34*180;return n=180/Math.PI*(2*Math.atan(Math.exp(n*Math.PI/180))-Math.PI/2),t.longitude=r,t.latitude=n,t},d.projectToGeographyPoints=function(e){e=(0,a.defaultValue)(e,{});var t=(0,a.defaultValue)(e.points,[]),r=(0,a.defaultValue)(e.wkid,-1),n=(0,a.defaultValue)(e.proj4Defs,void 0),o=[],s=void 0;if(n)s=n;else{var u=d.getEPSGByWKID(r);u&&(s=u.strProject)}if(s)for(var l=0;l<t.length;l++)o.push((0,i.default)(s,"+proj=longlat +datum=WGS84 +no_defs +type=crs",t[l]));return o},d.projectPoints=function(e){e=(0,a.defaultValue)(e,{});var t=(0,a.defaultValue)(e.points,[]),r=(0,a.defaultValue)(e.originWKID,-1),n=(0,a.defaultValue)(e.originDefs,void 0),o=(0,a.defaultValue)(e.targetWKID,-1),s=(0,a.defaultValue)(e.targetDefs,void 0),u=void 0,l=void 0,c=[];try{if(n)u=n;else{var h=d.getEPSGByWKID(r);h&&(u=h.strProject)}if(s)l=s;else{var f=d.getEPSGByWKID(o);f&&(l=f.strProject)}for(var p=[],y=[],g=0;g<t.length;g++)p=t[g],y=u&&l?(0,i.default)(u,l,p):u&&!l?d._toCustomWkidPoint(u,o,p):!u&&l?d._fromCustomWkidPoint(r,l,p):d._CustomWkidToCustomWkidPoint(r,o,p),c.push(y);return c}catch(e){a.Log.error("proj4投影超限")}return c},d.getEPSGByWKID=function(e){for(var t=void 0,r=0;r<o.default.length;r++)if(String(o.default[r].id)===String(e)){t=o.default[r];break}return t||a.Log.info("epsg未定义wkid为"+e+"的坐标系信息"),t},d.projectGeometry=function(e,t){var r=[],n={originWKID:e.spatialReference.wkid,originDefs:e.spatialReference.wkt,targetWKID:t.wkid,targetDefs:t.wkt};switch(e.type){case u.default.point:return r=[e.coordinates],n.points=r,r=d.projectPoints(n),new s.Point({coordinates:r[0],spatialReference:new s.SpatialReference(t)});case u.default.multiPoint:return r=e.coordinates,n.points=r,r=d.projectPoints(n),new s.MultiPoint({coordinates:r,spatialReference:new s.SpatialReference(t)});case u.default.lineString:return r=e.coordinates,n.points=r,r=d.projectPoints(n),new s.LineString({coordinates:r,spatialReference:new s.SpatialReference(t)});case u.default.multiLineString:r=e.coordinates;for(var i=[],o=0;o<r.length;o++)n.points=r[o],i.push(d.projectPoints(n));return new s.MultiLineString({coordinates:i,spatialReference:new s.SpatialReference(t)});case u.default.polygon:r=e.coordinates;for(var a=[],l=0;l<r.length;l++)n.points=r[l],a.push(d.projectPoints(n));return new s.Polygon({coordinates:a,spatialReference:new s.SpatialReference(t)});case u.default.multiPolygon:r=e.coordinates;for(var c=[],h=0;h<r.length;h++){for(var f=[],p=0;p<r[h].length;p++)n.points=r[h][p],f.push(d.projectPoints(n));c.push(f)}return new s.MultiPolygon({coordinates:c,spatialReference:new s.SpatialReference(t)});case u.default.circle:return r=[[e.center[0],e.center[1],e.center[2]]],n.points=r,r=d.projectPoints(n),new s.Circle({center:r[0],radius:e.radius,radiusUnit:e.radiusUnit});case u.default.extent:return r=[[e.xmin,e.ymin,e.zmin],[e.xmax,e.ymax,e.zmax]],n.points=r,r=d.projectPoints(n),new s.Extent({xmin:r[0][0],ymin:r[0][1],zmin:r[0][2],xmax:r[1][0],ymax:r[1][1],zmax:r[1][2],spatialReference:new s.SpatialReference(t)});default:return e}},d.project=function(e,t){if(e instanceof Array){for(var r=[],n=0;n<e.length;n++)r.push(d.projectGeometry(e[n],t));return r}if(e.spatialReference.isGeographic){var i=function(e){return e>89.99999999?e=89.99999999:e<-89.99999999&&(e=-89.99999999),e};e.coordinates&&e.coordinates.length>1&&(e.coordinates[1]=i(e.coordinates[1])),e.ymax=i(e.ymax),e.ymin=i(e.ymin)}return d.projectGeometry(e,t)},d.isCustomWKID=function(e){return e===h.default.gcj02ll||e===h.default.gcj02mc||e===h.default.bd09ll||e===h.default.bd09mc},d._toCustomWkidPoint=function(e,t,r){var n=void 0,o=d.getEPSGByWKID(4326).strProject,s=(0,i.default)(e,o,r);if(t===h.default.bd09ll)n=l.default.wgs84tobd09(s[0],s[1]);else if(t===h.default.bd09mc){var u=l.default.wgs84tobd09(s[0],s[1]);u[0]=Math.min(u[0],180),u[0]=Math.max(u[0],-180),u[1]=Math.min(u[1],74.000022),u[1]=Math.max(u[1],-71.988531);var f=(new c.default).convertLL2MC({lng:u[0],lat:u[1]});n=[f.lng,f.lat]}else if(t===h.default.gcj02ll)n=l.default.wgs84togcj02(s[0],s[1]);else if(t===h.default.gcj02mc){var p=l.default.wgs84togcj02(s[0],s[1]);n=(0,i.default)(o,d.getEPSGByWKID(3857).strProject,p)}else a.Log.error("wkid为"+t+"的投影方式未定义!");return n},d._fromCustomWkidPoint=function(e,t,r){var n=void 0,o=d.getEPSGByWKID(4326).strProject;if(e===h.default.bd09ll){var s=l.default.bd09towgs84(r[0],r[1]);n=(0,i.default)(o,t,s)}else if(e===h.default.bd09mc){var u=(new c.default).convertMC2LL({lng:r[0],lat:r[1]});n=l.default.bd09towgs84(u.lng,u.lat)}else if(e===h.default.gcj02ll){var f=l.default.gcj02towgs84(r[0],r[1]);n=(0,i.default)(o,t,f)}else if(e===h.default.gcj02mc){var p=(0,i.default)(d.getEPSGByWKID(3857).strProject,o,r),y=l.default.gcj02towgs84(p[0],p[1]);n=(0,i.default)(d.getEPSGByWKID(4326).strProject,t,y)}else a.Log.error("wkid为"+e+"的投影方式未定义!");return n},d._CustomWkidToCustomWkidPoint=function(e,t,r){var n=void 0,i=d.getEPSGByWKID(4326).strProject;if(e===h.default.bd09ll){var o=d._fromCustomWkidPoint(e,i,r);n=d._toCustomWkidPoint(i,t,o)}else a.Log.error("wkid为"+e+"的投影方式未定义!");return n},d.getProj=function(e,t){return i.default.defs(e,t),(0,i.default)(e)},t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(5)),u=r(1),l=f(r(113)),c=f(r(52)),h=r(163);function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));e=(0,u.defaultValue)(e,{}),r.styleOrigin=void 0,r.symbolLayers=new l.default;var o=(0,u.defaultValue)(e.symbolLayers,[]);if(o instanceof Array&&o.length>0)for(var s=0;s<o.length;s++)r.symbolLayers.add((0,h.createSymbol3DLayer)(o[s]));return r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=[];return this.symbolLayers.forEach(function(t){e.push(t.toJSON())}),{type:this.type,styleOrigin:this.styleOrigin,symbolLayers:e}}}]),t}(c.default);t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(r(11)),i=v(r(10)),o=v(r(3)),a=v(r(0)),s=v(r(2)),u=v(r(4)),l=v(r(7)),c=v(r(5)),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(33)),f=v(r(29)),d=r(1),p=r(6),y=v(r(34)),g=v(r(54)),m=r(42);function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,d.defaultValue)(e,{}),r.coordinates=(0,d.defaultValue)(e.coordinates,[]),r.type=p.GeometryType.polygon,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");for(var n=0;n<r.coordinates.length;n++){var i=r.coordinates[n];if(i.length<4)throw new Error("每个环至少有四个点");if(i[i.length-1].length!==i[0].length)throw new Error("首尾点维度不相等");for(var s=0;s<i[i.length-1].length;s++)if(i[i.length-1][s]!==i[0][s])throw new Error("第一个位置和最后一个位置不相等")}return 3===r.coordinates[0][0].length&&(r.hasZ=!0),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"addRing",value:function(e){if(!Array.isArray(e))throw new Error("传入参数错误");var t=[];return e.forEach(function(e){t.push(y.default.toCoordinates(e))}),this.coordinates.push(t),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removeRing",value:function(e){if(e=Number(e),!this._isValidate(e,0))return null;var t=JSON.parse((0,i.default)(this._cloneCoordinates()[e]));this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates));for(var r=[],n=0;n<t.length;n++){var o=new y.default({coordinates:t[n]});r.push(o)}return r}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent.toJSON(),e.centroid=this.centroid.toJSON(),e}},{key:"contains",value:function(e){if(!e)throw new Error("传入参数错误");var t=h.polygon(this._cloneCoordinates()),r=h.point(y.default.toCoordinates(e));return h.booleanPointInPolygon(r,t)}},{key:"getPoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this._cloneCoordinates()[e];return new y.default({coordinates:r[t]})}},{key:"insertPoint",value:function(e,t,r){if(!this._isValidate(e,t))return null;var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,0,r._cloneCoordinates()),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this.clone(),n=r.coordinates[e],o=new y.default({coordinates:n[t]});return Array.isArray(n)&&n.splice(t,1),this.coordinates=r.coordinates,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),o}},{key:"setPoint",value:function(e,t,r){if(!this._isValidate(e,t))return this;r instanceof y.default&&(r=r._cloneCoordinates());var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,1,r),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"toXMl",value:function(){return""}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++){for(var r=this.coordinates[t],n=0;n<r.length;n++)for(var i=r[n],o=0;o<i.length;o++)e+=i[o]+",";e=e.substring(0,e.length-1),e+="|"}return e.substring(0,e.length-1)}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t={Rings:[],GID:0},r={},n=this.coordinates,i=0;i<n.length;i++){r={Arcs:[]};for(var o=[],a=0;a<n[i].length;a++){var s=n[i][a];o.push({x:s[0],y:s[1]})}r.Arcs.push({Dots:o,ArcID:i}),t.Rings.push(r)}return e.push(t),{RegGeom:e}}},{key:"getIGSType",value:function(){return p.IGSGeometryType.polygon}},{key:"toDots",value:function(){for(var e=[],t=this.coordinates[0],r=0;r<t.length;r++)e.push({x:t[r][0],y:t[r][1]});return e}},{key:"isClockwise",value:function(e){var t=[];if(!(e instanceof Array))throw new Error("ring不是数组类型!");for(var r=0;r<e.length;r++)if(e[r]instanceof y.default)t.push(e[r].coordinates);else{if(!(e[r]instanceof Array&&e[r].length>=2))throw new Error("ring中的点不是数组或Point类型!");t.push(e[r])}var n=h.lineString(t);return h.booleanClockwise(n)}},{key:"_isValidate",value:function(e,t){var r=this.coordinates.length;if(!(0,d.isNumber)(e)||e<0||e>=r)return!1;var n=this.coordinates[e].length;return!(!(0,d.isNumber)(t)||t<0||t>=n)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,m.calcExtent)(e,t,p.GeometryType.polygon,this.spatialReference)}},{key:"_isSelfIntersecting",value:function(){var e=h.polygon(this.coordinates);return h.kinks(e).features.length>0}},{key:"_setCentroid",value:function(){var e=h.polygon(this.coordinates),t=h.centroid(e);if(this.hasZ){for(var r=0,n=0,i=0;i<this.coordinates.length;i++){r+=this.coordinates[i].length;for(var o=0;o<this.coordinates[i].length;o++)n+=this.coordinates[i][o][2]}return n/=r,new y.default({coordinates:[t.geometry.coordinates[0],t.geometry.coordinates[1],n],spatialReference:this.spatialReference})}return new y.default({coordinates:[t.geometry.coordinates[0],t.geometry.coordinates[1]],spatialReference:this.spatialReference})}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromExtent",value:function(e){var r=[];if(e instanceof g.default){var n=[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]];if(e&&e.hasZ){var i=e.zmin+.5*(e.zmax-e.zmin);n.forEach(function(e){i.push(e)})}r.push(n)}return new t({coordinates:r,spatialReference:e.spatialReference.clone()})}},{key:"fromJSON",value:function(e){return new t(e=(0,d.defaultValue)(e,{}))}}]),t}(f.default);(0,n.default)(_.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}},isSelfIntersecting:{configurable:!1,get:function(){return this._isSelfIntersecting()}},centroid:{configurable:!1,get:function(){return this._setCentroid()}}}),t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertIGSClippingString=t.ServiceConfigResponseInterceptors=t.ServiceConfigRequestInterceptors=t.ServiceConfigToken=t.formatBaseUrl=t.getWFSFeature=t.getParametersObject=t.getWFSInfoFromXML=t.getWMTSInfoFromXML=t.getDoc=t.getWMSInfoFromXML=t.checkPathParameters=t.getParameters=t.checkParam=t.fromQueryResult=void 0;var n=c(r(10)),i=c(r(23)),o=r(9),a=c(r(89)),s=r(1),u=r(8),l=r(44);function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t,r){for(var a="",u=function(u){var l=(0,s.defaultValue)(t[e[u]],r[e[u]].default);if(void 0!==l){var c="";if((0,s.isNull)(r[e[u]].process))switch(r[e[u]].type){case"String":case"Number":case"Boolean":a+="&"+(r[e[u]].alias||e[u])+"="+encodeURIComponent(l);break;case"Geometry":case"Point":case"MultiPoint":case"Extent":case"Circle":case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":a+="&"+e[u]+"="+encodeURIComponent(l.toString())+"&geometryType="+encodeURIComponent(l.getIGSType());break;case"layerDefs":c="[";for(var h=function(e){l[e]instanceof Object&&!(l[e]instanceof Array)&&(c+="{",(0,i.default)(l[e]).forEach(function(t){l[e].hasOwnProperty(t)&&(c+='"'+t+'":"'+l[e][t]+'",')}),c=c.substring(0,c.length-1),c+="},")},f=0;f<l.length;f++)h(f);l.length>0&&(c=c.substring(0,c.length-1)),"[]"!=(c+="]")&&(a+="&"+e[u]+"="+encodeURIComponent(c));break;case"OutStatistics":c+="[";for(var d=function(e){l[e]instanceof Object&&!(l[e]instanceof Array)&&(c+="{",(0,i.default)(l[e]).forEach(function(t){l[e].hasOwnProperty(t)&&("statisticType"!==t&&"onStatisticField"!==t&&"outStatisticFieldName"!==t||(c+='"'+t+'":"'+l[e][t]+'",'))}),c=c.substring(0,c.length-1),c+="},")},p=0;p<l.length;p++)d(p);l.length>0&&(c=c.substring(0,c.length-1)),"[]"!=(c+="]")&&(a+="&"+e[u]+"="+encodeURIComponent(c));break;case"FeatureSet":c="&"+e[u]+"="+encodeURIComponent((0,n.default)(t[e[u]].toGeoJSON())),a+=c;break;case"FeatureCollection":a+="&"+e[u]+"="+encodeURIComponent((0,n.default)(t[e[u]]));break;default:a+="&"+e[u]+"="+encodeURIComponent(l)}else if("string"==typeof r[e[u]].process)switch(r[e[u]].process){case"igsGeometryServer":a+="&"+e[u]+"="+encodeURIComponent((0,n.default)(l.toGeoJSON()))+"&srs=",l.spatialReference?l.spatialReference instanceof o.SpatialReference?a+=encodeURIComponent(l.spatialReference.toString()):l.spatialReference instanceof Object&&!(l.spatialReference instanceof Array)?a+=encodeURIComponent(l.spatialReference.wkt?l.spatialReference.wkt:"EPSG:4326"):"string"==typeof l.spatialReference&&(a+=encodeURIComponent(l.spatialReference)):a+=encodeURIComponent("EPSG:4326");break;case"igsGeometryServerNoSRS":a+="&"+e[u]+"="+encodeURIComponent((0,n.default)(l.toGeoJSON()));break;case"igsRange$":a+="&"+(r[e[u]].alias||e[u])+"="+encodeURIComponent(l.toIGSOldString());break;case"igsGeometryOld":"Point"===l.type||"LineString"===l.type?"Point"===l.type&&!0===l.hasZ?a+="&"+e[u]+"="+encodeURIComponent(l.toString()+","+(t.distance||r.distance.default))+"&geometryType="+encodeURIComponent(l.getIGSType()):a+="&"+e[u]+"="+encodeURIComponent(l.toString()+";"+(t.distance||r.distance.default))+"&geometryType="+encodeURIComponent(l.getIGSType()):a+="&"+e[u]+"="+encodeURIComponent(l.toString())+"&geometryType="+encodeURIComponent(l.getIGSType());break;default:a+="&"+e[u]+"="+encodeURIComponent(l.toString())+"&geometryType="+encodeURIComponent(l.getIGSType())}else r[e[u]].process instanceof Function&&(a+=r[e[u]].process(t[e[u]],r[e[u]].default))}},l=0;l<e.length;l++)u(l);return a}function f(e,t,r){for(var i={},o=0;o<e.length;o++){var a=(0,s.defaultValue)(t[e[o]],r[e[o]].default);if(void 0!==a)if((0,s.isNull)(r[e[o]].process))switch(r[e[o]].type){case"String":case"Number":case"Boolean":default:i[r[e[o]].alias||e[o]]=a;break;case"Geometry":case"Point":case"MultiPoint":case"Extent":case"Circle":case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":i[r[e[o]].alias||e[o]]=a.toString()+"&geometryType="+a.getIGSType()}else if("string"==typeof r[e[o]].process)switch(r[e[o]].process){case"igsDots":i[r[e[o]].alias||"Dots"]=a.toDots();break;case"toOldIGSGeometry":switch(a.type){case"Point":i[r[e[o]].alias||"Pnt"]=a.toOldIGSGeometry().PntGeom[0];break;case"LineString":i[r[e[o]].alias||"Line"]=a.toOldIGSGeometry().LinGeom[0];break;case"Polygon":i[r[e[o]].alias||"Reg"]=a.toOldIGSGeometry().RegGeom[0]}break;default:i[r[e[o]].alias||e[o]]=a}else r[e[o]].process instanceof Function&&(i[e[o]]=r[e[o]].process(t[e[o]],r[e[o]].default))}return encodeURIComponent((0,n.default)(i))}function d(e,t){if("function"==typeof e)return e(t);var r=void 0;switch(e){case"String":r=(0,s.isString)(t);break;case"Number":r=(0,s.isNumber)(t);break;case"Boolean":r=(0,s.isBoolean)(t);break;case"Extent":r=t instanceof o.Extent;break;case"Geometry":r=t instanceof o.Geometry;break;case"Point":r=t instanceof o.Point;break;case"Polygon":r=t instanceof o.Polygon;break;case"MultiPolygon":r=t instanceof o.MultiPolygon;break;case"Circle":r=t instanceof o.Circle;break;case"LineString":r=t instanceof o.LineString;break;case"MultiLineString":r=t instanceof o.MultiLineString;break;case"LineString | MultiLineString":r=t instanceof o.LineString||t instanceof o.MultiLineString;break;case"Polygon | Extent":r=t instanceof o.Polygon||t instanceof o.Extent;break;case"Array":r=t instanceof Array;break;case"Object":r=t instanceof Object;break;case"OutStatistics":r=function(e){if(!(e instanceof Array))return!1;for(var t=0;t<e.length;t++){if(!(e[t]instanceof Object))return!1;if(e[t]instanceof Object&&e[t]instanceof Array)return!1;if(!e[t].hasOwnProperty("statisticType")||!e[t].hasOwnProperty("onStatisticField")||!e[t].hasOwnProperty("outStatisticFieldName"))return!1;if((0,s.isNull)(e[t].statisticType)||(0,s.isNull)(e[t].onStatisticField)||(0,s.isNull)(e[t].outStatisticFieldName))return!1;if(!(0,s.isString)(e[t].statisticType)||!(0,s.isString)(e[t].onStatisticField)||!(0,s.isString)(e[t].outStatisticFieldName))return!1}return!0}(t);break;case"FeatureSet":r=t instanceof u.FeatureSet;break;case"FeatureCollection":r=t instanceof Object&&!(t instanceof Array)&&t.hasOwnProperty("features")&&"FeatureCollection"===t.type;break;case"Color":r=t instanceof u.Color;break;default:r=(0,s.isString)(t)}return r}function p(e,t){var r=void 0;if("1.1.1"===t)(r={minx:e.attributes.minx.value,miny:e.attributes.miny.value,maxx:e.attributes.maxx.value,maxy:e.attributes.maxy.value}).crs=e.attributes.SRS.value;else{var n=e.attributes.CRS.value,i=Number(n.split(":")[1]);(r=i>=2327&&i<=2442||i>=4491&&i<=4554||i>=21413&&i<=21423||i>=21473&&i<=21483?{minx:e.attributes.miny.value,miny:e.attributes.minx.value,maxx:e.attributes.maxy.value,maxy:e.attributes.maxx.value}:4326===i||4214===i||4490===i||4610===i?{minx:e.attributes.miny.value,miny:e.attributes.minx.value,maxx:e.attributes.maxy.value,maxy:e.attributes.maxx.value}:{minx:e.attributes.minx.value,miny:e.attributes.miny.value,maxx:e.attributes.maxx.value,maxy:e.attributes.maxy.value}).crs=e.attributes.CRS.value}return r}function y(e,t,r){if("Name"===e.nodeName)t.name=e.innerHTML;else if("Abstract"===e.nodeName)t.abstract=e.innerHTML;else if("Title"===e.nodeName){var n=e.innerHTML;n.indexOf(":")>-1&&(n=n.split(":")[1]),t.title=n}else if("SRS"===e.nodeName)t.crs.push(e.innerHTML);else if("CRS"===e.nodeName)t.crs.push(e.innerHTML);else if("BoundingBox"===e.nodeName){var i;i=r.corporation===u.WMTSCorporation.corporationZD?p(e,r.version):(r.corporation,u.WMTSCorporation.corporationArcGIS,p(e,r.version)),t.boundingBox.push(i)}else"LatLonBoundingBox"===e.nodeName?t.latLonBoundingBox={minx:e.attributes.miny.value,miny:e.attributes.minx.value,maxx:e.attributes.maxy.value,maxy:e.attributes.maxx.value}:"EX_GeographicBoundingBox"===e.nodeName&&(t.geographicBoundingBox={westBoundLongitude:e.childNodes[0].innerHTML,eastBoundLongitude:e.childNodes[1].innerHTML,southBoundLatitude:e.childNodes[2].innerHTML,northBoundLatitude:e.childNodes[3].innerHTML})}function g(e){var t={attributes:{}};if(e.attributes)for(var r=0;r<e.attributes.length;r++)t.attributes[e.attributes[r].nodeName]=e.attributes[r].value;if(t.children={},e.childNodes){for(var n=0;n<e.childNodes.length;n++)t.children[e.childNodes[n].nodeName]=g(e.childNodes[n]);0===e.childNodes.length&&(t[e.nodeName]=e.textContent)}return t}function m(e){var t="EPSG:4326";if(!e)return t;var r=e.getAttribute("srsName");if(!r)return t;var n=r.match(/EPSG::\d+/);return n[0]&&(t="EPSG:"+n[0].replace("EPSG::","")),t}t.fromQueryResult=function(e){function t(e){if(!e.hasOwnProperty("SFEleArray")||!e.hasOwnProperty("AttStruct")||e.hasOwnProperty("SFEleArray")&&!e.SFEleArray||e.hasOwnProperty("AttStruct")&&!e.AttStruct)return[];for(var t=e.SFEleArray,r=e.AttStruct,n=new u.FeatureSet({spatialReference:new o.SpatialReference("EPSG:0000")}),i=void 0,a=void 0,s=void 0,l=0;l<t.length;l++){for(var c={},h=0;h<t[l].AttValue.length;h++)""!==t[l].AttValue[h]&&(c[r.FldName[h]]=t[l].AttValue[h]);if(t[l].fGeom)switch(t[l].ftype){case 1:var f=t[l].fGeom.PntGeom;s=[];for(var d=0;d<f.length;d++){var p=f[d].Dot;s.push([p.x,p.y])}a=new o.MultiPoint({coordinates:s});break;case 2:var y=t[l].fGeom.LinGeom;s=[];for(var g=0;g<y.length;g++){for(var m=y[g].Line.Arcs[0].Dots,v=[],_=0;_<m.length;_++)v.push([m[_].x,m[_].y]);s.push(v)}a=new o.MultiLineString({coordinates:s});break;case 3:default:var S=t[l].fGeom.RegGeom;s=[];for(var x=0;x<S.length;x++){for(var b=S[x].Rings[0].Arcs[0].Dots,w=[],k=0;k<b.length;k++)w.push([b[k].x,b[k].y]);for(var M=[w],E=1;E<S[x].Rings.length;E++){for(var I=S[x].Rings[E].Arcs[0].Dots,T=[],L=0;L<I.length;L++)T.push([I[L].x,I[L].y]);M.push(T)}s.push(M)}a=new o.MultiPolygon({coordinates:s})}var C=void 0;if(t[l].GraphicInfo){var P=t[l].GraphicInfo;switch(P.InfoType){case 1:C=P.PntInfo;break;case 2:C=P.LinInfo;break;case 3:default:C=P.RegInfo}}i=new u.Feature({id:t[l].FID,attributes:c,geometry:a,symbol:C}),n.features.push(i)}return n}if(e instanceof Array){for(var r=[],n=0;n<e.length;n++)r.push(t(e[n]));return r}return[t(e)]},t.checkParam=function(e,t){var r=!0,n="",o="",u=void 0,l="";try{var c=!0;if((0,i.default)(t).forEach(function(r){if(e.hasOwnProperty(r)&&t.hasOwnProperty(r)||t.hasOwnProperty(r)&&t[r].required){if(t[r].required)if((0,s.isNull)(t[r].oneOf)){if((0,s.isNull)(e[r]))throw u=r,new Error("isNull")}else{var n=!1;(0,s.isNull)(e[r])&&(n=!0);for(var i=0;i<t[r].oneOf.length;i++)if(!(0,s.isNull)(e[t[r].oneOf[i]])){n=!1;break}if(n)throw u=r+","+t[r].oneOf.toString(),new Error("isNull")}if((0,s.isNull)(e[r])||(c=d(t[r].type,e[r])),!c)throw u=r,new Error("wrongType")}}),c){var p=[];(0,i.default)(t).forEach(function(e){t.hasOwnProperty(e)&&p.push(e)}),l=e.useObject?f(p,e,t):h(p,e,t)}}catch(e){switch(r=!1,e.message){case"isNull":n=u+"值不能为空!",o="isNull",a.default.error(n);break;case"wrongType":n=u+"类型错误!",o="isWrongType",a.default.error(n);break;default:n=u+"值不能为空!",o="isNull",a.default.error(n)}}return{isChecked:r,errorMessage:n,errorType:o,queryString:l}},t.getParameters=h,t.checkPathParameters=function(e,t){var r="",n="",o=!0;try{(0,i.default)(e).forEach(function(n){if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n))throw r="isNull",o=!1,new Error(n+"不能为空!");var i=t[n];if((0,s.isNull)(i))throw r="isNull",o=!1,new Error(n+"不能为空!");if(!d(e[n].type,t[n]))throw r="isWrongType",o=!1,new Error(n+"类型错误!")}})}catch(e){return a.default.error(e),{isChecked:o,errorMessage:n=e,errorType:r}}return{isChecked:o,errorMessage:n,errorType:r}},t.getWMSInfoFromXML=function(e,t,r){var n=(0,l.initCorporationType)(r),i="1.0";n===u.WMTSCorporation.corporationZD&&r.indexOf("igs/rest/ogc/doc")<0&&(i="2.0");for(var o={boundingBox:[],layer:[],crs:[]},a=e.childNodes,s=0;s<a.length;s++)if(("WMT_MS_Capabilities"===a[s].nodeName||"WMS_Capabilities"===a[s].nodeName)&&a[s].childNodes.length>0){for(var c=a[s].childNodes,h=0;h<c.length;h++)if("Capability"===c[h].nodeName){for(var f=c[h].childNodes,d=0;d<f.length;d++)if("Layer"===f[d].nodeName){for(var p=f[d].childNodes,g=0;g<p.length;g++)if("Layer"===p[g].nodeName){for(var m=p[g].childNodes,v={boundingBox:[],crs:[]},_=0;_<m.length;_++)y(m[_],v,{corporation:n,version:t,igsVersion:i});o.layer.push(v)}else y(p[g],o,{corporation:n,version:t,igsVersion:i});break}break}break}return o},t.getDoc=function(e){var t=null;return window.DOMParser?t=(new DOMParser).parseFromString(e,"text/xml"):((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)),t},t.getWMTSInfoFromXML=function(e){for(var t=e.childNodes,r={layers:[],tileMatrixSets:[],XMLInfo:{}},n=0;n<t.length;n++)if("Capabilities"===t[n].nodeName){for(var i=t[n].childNodes,o=0;o<i.length;o++){if("Contents"===i[o].nodeName)for(var a=i[o].childNodes,s=0;s<a.length;s++)if("Layer"===a[s].nodeName){for(var u={infoFormat:[],tileMatrixSetLink:[]},l=a[s].childNodes,c=0;c<l.length;c++)if("ows:Title"===l[c].nodeName)u.title=l[c].innerHTML;else if("ows:Identifier"===l[c].nodeName)u.identifier=l[c].innerHTML;else if("ows:BoundingBox"===l[c].nodeName){for(var h={},f=0;f<l[c].childNodes.length;f++)"ows:LowerCorner"===l[c].childNodes[f].nodeName&&(h.lowerCorner=l[c].childNodes[f].innerHTML),"ows:UpperCorner"===l[c].childNodes[f].nodeName&&(h.upperCorner=l[c].childNodes[f].innerHTML);u.boundingBox=h}else if("Style"===l[c].nodeName){for(var d={},p=0;p<l[c].childNodes.length;p++)"ows:Identifier"===l[c].childNodes[p].nodeName&&(d.identifier=l[c].childNodes[p].innerHTML),"ows:Title"===l[c].childNodes[p].nodeName&&(d.title=l[c].childNodes[p].innerHTML);u.Style=d}else if("Format"===l[c].nodeName)u.format=l[c].innerHTML;else if("InfoFormat"===l[c].nodeName)u.infoFormat.push(l[c].innerHTML);else if("TileMatrixSetLink"===l[c].nodeName){for(var y=l[c].childNodes,m={tileMatrixSetLimits:[]},v=0;v<y.length;v++)if("TileMatrixSet"===y[v].nodeName)m.tileMatrixSet=y[v].innerHTML;else if("TileMatrixSetLimits"===y[v].nodeName)for(var _=y[v].childNodes,S=0;S<_.length;S++){for(var x=_[S].childNodes,b={},w=0;w<x.length;w++)"TileMatrix"===x[w].nodeName?b.tileMatrix=x[w].innerHTML:"MinTileRow"===x[w].nodeName?b.minTileRow=x[w].innerHTML:"MaxTileRow"===x[w].nodeName?b.maxTileRow=x[w].innerHTML:"MinTileCol"===x[w].nodeName?b.minTileCol=x[w].innerHTML:"MaxTileCol"===x[w].nodeName&&(b.maxTileCol=x[w].innerHTML);m.tileMatrixSetLimits.push(b)}u.tileMatrixSetLink.push(m)}r.layers.push(u)}else if("TileMatrixSet"===a[s].nodeName){for(var k=a[s].childNodes,M={tileMatrix:[]},E=0;E<k.length;E++)if("ows:Title"===k[E].nodeName)M.title=k[E].innerHTML;else if("ows:Abstract"===k[E].nodeName)M.abstract=k[E].innerHTML;else if("ows:Identifier"===k[E].nodeName)M.identifier=k[E].innerHTML;else if("ows:SupportedCRS"===k[E].nodeName)M.supportedCRS=k[E].innerHTML;else if("TileMatrix"===k[E].nodeName){for(var I=k[E].childNodes,T={},L=0;L<I.length;L++)"ows:Identifier"===I[L].nodeName?T.identifier=I[L].innerHTML:"ScaleDenominator"===I[L].nodeName?T.scaleDenominator=I[L].innerHTML:"TopLeftCorner"===I[L].nodeName?T.topLeftCorner=I[L].innerHTML:"TileWidth"===I[L].nodeName?T.tileWidth=I[L].innerHTML:"TileHeight"===I[L].nodeName?T.tileHeight=I[L].innerHTML:"MatrixWidth"===I[L].nodeName?T.matrixWidth=I[L].innerHTML:"MatrixHeight"===I[L].nodeName&&(T.matrixHeight=I[L].innerHTML);M.tileMatrix.push(T)}r.tileMatrixSets.push(M)}r.XMLInfo[i[o].nodeName]=g(i[o])}break}return r},t.getWFSInfoFromXML=function(e){for(var t=e.childNodes,r={featureTypeList:[],version:"1.0.0"},n=e.firstChild.attributes,i=0;i<n.length;i++)if(n[i].name&&"version"===n[i].name.toLowerCase()){r.version=n[i].nodeValue;break}for(var o=0;o<t.length;o++)if("wfs:WFS_Capabilities"===t[o].nodeName)for(var a=t[o].childNodes,s=0;s<a.length;s++)if("FeatureTypeList"===a[s].nodeName){for(var u=a[s].childNodes,l=0;l<u.length;l++)if("FeatureType"===u[l].nodeName){for(var c={},h=u[l].childNodes,f=0;f<h.length;f++)"name"===h[f].nodeName.toLowerCase()?c.name=h[f].innerHTML:"title"===h[f].nodeName.toLowerCase()?c.title=h[f].innerHTML:"abstract"===h[f].nodeName.toLowerCase()?c.abstract=h[f].innerHTML:"defaultsrs"===h[f].nodeName.toLowerCase()?c.defaultSRS=h[f].innerHTML:"ows:wgs84boundingbox"===h[f].nodeName.toLowerCase()&&(c.WGS84BoundingBox={lowerCorner:h[f].childNodes[0].innerHTML,UpperCorner:h[f].childNodes[1].innerHTML});r.featureTypeList.push(c)}break}return r},t.getParametersObject=f,t.getWFSFeature=function(e,t){var r=e.childNodes[0].childNodes,n=new u.FeatureSet;t=(0,s.defaultValue)(t,"2.0.0");for(var i=0;i<r.length;i++){for(var a=r[i].childNodes[0].childNodes,l={},c=void 0,h=0;h<a.length;h++)if(a[h].nodeName.indexOf(":the_geom")>-1){var f=a[h],d=m(f.childNodes[0]),p=Number(d.split(":")[1]);if(n.spatialReference=new o.SpatialReference(d),f.childNodes[0].nodeName.indexOf("MultiSurface")>-1){var y=f.childNodes[0].childNodes;if(1===y.length){for(var g=y[0].childNodes[0].childNodes,v=0;v<g.length;v++)if(g[v].nodeName.indexOf("exterior")>-1){var _=g[v].childNodes[0].childNodes[0].innerHTML.split(" "),S=[];switch(t){case"2.0.0":case"1.1.0":default:for(var x=0;x<_.length;x+=2)[4326,4490,4610,4214].indexOf(p)>-1||p>=2327&&p<=2442||p>=4491&&p<=4554||p>=21413&&p<=21423||p>=21473&&p<=21483?S.push([Number(_[x+1]),Number(_[x])]):S.push([Number(_[x]),Number(_[x+1])]);break;case"1.0.0":for(var b=0;b<_.length;b+=2)S.push([Number(_[b]),Number(_[b+1])])}c=new o.Polygon({coordinates:[S],spatialReference:new o.SpatialReference(d)})}}else y.length}else if(f.childNodes[0].nodeName.indexOf("MultiCurve")>-1){var w=f.childNodes[0].childNodes;if(1===w.length){for(var k=w[0].childNodes[0].childNodes,M=0;M<k.length;M++)if(k[M].nodeName.indexOf("posList")>-1){var E=k[M].innerHTML.split(" "),I=[];switch(t){case"2.0.0":case"1.1.0":default:if([4326,4490,4610,4214].indexOf(p)>-1||p>=2327&&p<=2442||p>=4491&&p<=4554||p>=21413&&p<=21423||p>=21473&&p<=21483)for(var T=0;T<E.length;T+=2)I.push([Number(E[T+1]),Number(E[T])]);else for(var L=0;L<E.length;L+=2)I.push([Number(E[L]),Number(E[L+1])]);break;case"1.0.0":for(var C=0;C<E.length;C+=2)I.push([Number(E[C]),Number(E[C+1])])}c=new o.LineString({coordinates:I,spatialReference:new o.SpatialReference(d)})}}else w.length}else if(f.childNodes[0].nodeName.indexOf("MultiPoint")>-1){var P=f.childNodes[0].childNodes;if(1===P.length){var N=P[0].childNodes[0].childNodes[0].innerHTML.split(" "),O=void 0;switch(t){case"2.0.0":case"1.1.0":default:O=[4326,4490,4610,4214].indexOf(p)>-1||p>=2327&&p<=2442||p>=4491&&p<=4554||p>=21413&&p<=21423||p>=21473&&p<=21483?[Number(N[1]),Number(N[0])]:[Number(N[0]),Number(N[1])];break;case"1.0.0":O=[Number(N[0]),Number(N[1])]}c=new o.Point({coordinates:O,spatialReference:new o.SpatialReference(d)})}else P.length}}else{var R=a[h].nodeName;l[R=R.split(":")[1]]=a[h].innerHTML}var V=new u.Feature({geometry:c,attributes:l});n.features.push(V)}return n},t.formatBaseUrl=function(e){var t=e.indexOf("?");if(t<0)return{baseUrl:e,params:{}};var r=e.substring(0,t),n=e.substring(t+1,e.length);return{baseUrl:r,paramString:n?"&"+n:""}},t.ServiceConfigToken=function(e){var t="";return e&&e.tokenKey&&e.tokenValue&&(t=e.tokenKey+"="+e.tokenValue),t},t.ServiceConfigRequestInterceptors=function(e,t){t=(0,s.defaultValue)(t,"");var r=e.request.interceptors,n=decodeURI(t);if(r&&r instanceof Array)for(var i="",o=0;o<r.length;o++){var a=r[o].urls,u=r[o].before;if(a){if("string"==typeof a){var l=decodeURI(a);if(n.indexOf(l)>-1&&u&&u instanceof Function){var c=u(t);c&&(i+=c)}}else if(a instanceof Array)for(var h=0;h<a.length;h++){var f=decodeURI(a[h]);if(n.indexOf(f)>-1&&u&&u instanceof Function){var d=u(t);d&&(i+=d)}}}else if(u&&u instanceof Function){var p=u(t);p&&(i+=p)}i&&(t=i)}return t},t.ServiceConfigResponseInterceptors=function(e,t,r){t=(0,s.defaultValue)(t,"");var n=e.request.interceptors,i=decodeURI(t);if(n&&n instanceof Array)for(var o=0;o<n.length;o++){var a=n[o].urls,u=n[o].after;if(!a||a instanceof Array&&0===a.length){if(u&&u instanceof Function){var l=u(r);if(l)return l}}else if("string"==typeof a){var c=decodeURI(a);if(i.indexOf(c)>-1&&u&&u instanceof Function){var h=u(r);if(h)return h}}else if(a instanceof Array)for(var f=0;f<a.length;f++){var d=decodeURI(a[f]);if(i.indexOf(d)>-1&&u&&u instanceof Function){var p=u(r);if(p)return p}}}return r},t.convertIGSClippingString=function(e){if(!Array.isArray(e)||0===e.length)return"";var t=[];return e.forEach(function(e){var r="";e.forEach(function(e){r+=e[0]+","+e[1]+","}),r=r.substring(0,r.length-1),t.push(r)}),1===t.length?t[0]:t.join("|")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),t=(0,i.defaultValue)(t,{}),(0,i.extend)(this,t),this.Caption=void 0!==t.Caption?t.Caption:null,this.IsVisible=void 0===t.IsVisible||t.IsVisible,this.MaxScale=void 0!==t.MaxScale?parseFloat(t.MaxScale):0,this.MinScale=void 0!==t.MinScale?parseFloat(t.MinScale):0,this.RegInfo=void 0!==t.RegInfo?t.RegInfo:null,this.LinInfo=void 0!==t.LinInfo?t.LinInfo:null,this.PntInfo=void 0!==t.PntInfo?t.PntInfo:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createVisualVariable=t.OpacityVariable=t.SizeVariable=t.ColorVariable=t.VisualVariable=void 0;var n=r(1),i=l(r(51)),o=l(r(94)),a=l(r(461)),s=l(r(463)),u=l(r(465));function l(e){return e&&e.__esModule?e:{default:e}}t.VisualVariable=o.default,t.ColorVariable=a.default,t.SizeVariable=s.default,t.OpacityVariable=u.default,t.createVisualVariable=function(e){switch((e=(0,n.defaultValue)(e,{})).type){case i.default.color:return new a.default(e);case i.default.size:return new s.default(e);case i.default.opacity:return new u.default(e);default:n.Log.error("视觉变量传入type类型参数有误!")}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=h(r(0)),i=h(r(2)),o=r(9),a=r(1),s=h(r(95)),u=h(r(67)),l=r(6),c=r(8);function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t,r){var n=e.findIndex(function(e){return e.level===t}),i=e.findIndex(function(e){return e.level===r});return-1===t||-1===i?e:e.slice(n,i+1)}var d=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,null,[{key:"parseTileInfo1",value:function(e){e||a.Log.error("tileInfo未定义");var t=e.tileWidth,r=e.tileHeight,n=e.lods,i=e.originX,l=e.originY,c=e.startLevel,h=e.endLevel;return new u.default({origin:new o.Point({coordinates:[i,l]}),lods:f(n,c,h).map(function(e){return s.default.fromJSON(e)}),size:[t,r]})}},{key:"parseTileInfo2",value:function(e){e||a.Log.error("tileInfo未定义");var t=e.cols,r=e.rows,n=e.dpi,i=e.format,l=e.origin,c=e.lods,h=e.spatialReference,d=e.startLevel,p=e.endLevel;return new u.default({dpi:n,format:i,origin:new o.Point({coordinates:[l.x,l.y],spatialReference:new o.SpatialReference(h)}),lods:f(c,d,p).map(function(e){return s.default.fromJSON(e)}),size:[t,r],spatialReference:new o.SpatialReference(h)})}},{key:"parseArcgisTileInfo",value:function(e){e||a.Log.error("tileInfo未定义");var t=e.cols,r=e.rows,n=e.dpi,i=e.format,l=e.origin,c=e.lods,h=e.spatialReference;return new u.default({dpi:n,format:i,origin:new o.Point({coordinates:[l.x,l.y],spatialReference:new o.SpatialReference({wkid:h.latestWkid||h.wkid})}),lods:c.map(function(e){return s.default.fromJSON(e)}),size:[t,r],spatialReference:new o.SpatialReference({wkid:h.latestWkid||h.wkid})})}},{key:"parseWMSTileInfo",value:function(t){t||a.Log.error("wmsLayer未定义");var r=t.extent,n=Math.max(t.imageWidth,t.imageHeight),i=t.spatialReferences[0];return e.generateTileInfo(r,n,i)}},{key:"generateTileInfo",value:function(e,t,r){e&&t||a.Log.error("动态计算tileInfo传入参数不合法");var n=Math.max(e.ymax-e.ymin,e.xmax-e.xmin)/t,i=[];i.push(n);for(var l=0;l<20;l++)i.push(i[l]/2);var c=new o.Point({coordinates:[e.xmin,e.ymax],spatialReference:r});return new u.default({origin:c,lods:i.map(function(e,t){return s.default.fromJSON({level:t,resolution:e,scale:96*e/.0254})}),size:[t,t],spatialReference:r})}},{key:"parseWebTileLayerInfo",value:function(e,t,r){e||a.Log.error("IGSMapImageLayer未定义"),r=(0,a.defaultValue)(r,2);var n=e.tileSize,i=(t.xmax-t.xmin)/r/n,l=[];l.push(i);for(var c=0;c<19;c++)l.push(l[c]/2);var h=new o.Point({coordinates:[t.xmin,t.ymax],spatialReference:e.spatialReference}),f=1;return e.spatialReference.isGeographic&&(f=111319490.79327358),new u.default({origin:h,lods:l.map(function(e,t){return s.default.fromJSON({level:t,resolution:e,scale:f*(96*e)/.0254})}),size:[n,n],spatialReference:e.spatialReference})}},{key:"createCommonTileInfo",value:function(e){if(e&&e.extent){var t=e.extent,r=t.spatialReference,n=(0,a.defaultValue)(e.origin,new o.Point({coordinates:[t.xmin,t.ymax],spatialReference:r})),i=(0,a.defaultValue)(e.tileSize,256),l=(0,a.defaultValue)(e.minLevel,0),c=(0,a.defaultValue)(e.maxLevel,19),h=(0,a.defaultValue)(e.numberOfMinLevelTilesX,1),f=((0,a.defaultValue)(e.numberOfMinLevelTilesY,1),(t.xmax-t.xmin)/h/i),d=[];d.push(f);for(var p=l;p<c;p++)d.push(d[p]/2);var y=1;return r.isGeographic&&(y=111319490.79327358),new u.default({origin:n,lods:d.map(function(e,t){return s.default.fromJSON({level:t,resolution:e,scale:y*(96*e)/.0254})}),size:[i,i],spatialReference:r})}}},{key:"getLods",value:function(e,t,r){for(var n=Math.max(0,r),i=[],o=2*Math.PI*6378137/360,a=0;a<n;a++){var u,l=e/Math.pow(2,a);u="degree"===t?o*l:96*l/.0254,i.push(new s.default({level:a,resolution:l,scale:u}))}return i}},{key:"getReferenceLayer",value:function(e){for(var t=null,r=null,n=0;n<e.length;n++){var i=e[n];if(i.loaded&&(i.type===l.LayerType.igsTile||i.type===l.LayerType.arcgisTile||i.type===l.LayerType.wmts||i.type===l.LayerType.igsVectorTile||i.type===l.LayerType.arcgisVectorTile||i.type===l.LayerType.webTileLayer)){r=i,t=i.spatialReference;break}}if(!t)for(var o=0;o<e.length;o++){var a=e[o];if(a.loaded&&(a.type===l.LayerType.igsMapImage||a.type===l.LayerType.arcgisMapImage||a.type===l.LayerType.wms||a.type===l.LayerType.igsFeature||a.type===l.LayerType.wfs||a.type===l.LayerType.geojson)){r=a,t=a.spatialReference;break}}return r}},{key:"setLayerSpatialReference",value:function(e,t){t&&e.forEach(function(e){if((e.type===l.LayerType.igsMapImage||e.type===l.LayerType.arcgisMapImage||e.type===l.LayerType.feature)&&e.loaded){var r=!1;e.spatialReference?void 0!==e.spatialReference.wkid&&void 0!==t.wkid?e.spatialReference.wkid!==t.wkid&&(r=!0):e.spatialReference.wkt!==t.wkt&&(r=!0):r=!0,r&&(e.spatialReference=t,e._extentSrc=c.Projection.project(e._extentSrc,t))}})}},{key:"isSameSpatialReference",value:function(e,t){var r=!1,n=void 0,i=void 0,a=void 0,s=void 0,u=void 0,l=void 0;return void 0!==e&&void 0!==t&&(e instanceof o.SpatialReference?(n=e.wkt?e.wkt.toString():void 0,i=e.wkid?e.wkid.toString():void 0):a=e.toString(),t instanceof o.SpatialReference?(s=t.wkt?t.wkt.toString():void 0,u=t.wkid?t.wkid.toString():void 0):l=t.toString()),n&&s&&n===s?r=!0:i&&u&&(i===u||["4326","4490","4610","4214"].indexOf(i)>-1&&["4326","4490","4610","4214"].indexOf(u)>-1||["102113","102100","900913","3857"].indexOf(i)>-1&&["102113","102100","900913","3857"].indexOf(u)>-1)?r=!0:a&&l&&a===l&&(r=!0),r}},{key:"getLevelRangeByTileInfo",value:function(e){if(!e||!Array.isArray(e.lods)||0===e.lods.length)return[0,22];var t=e.lods;return[t[0].level,t[t.length-1].level]}},{key:"getTileInfoByLayer",value:function(t){var r=t.tileInfo;if(t.type===l.LayerType.wmts)r=t.getCurrentTileInfo();else if(t.type===l.LayerType.wms)r=e.parseWMSTileInfo(t,t.extent);else if(t.type===l.LayerType.igsMapImage||t.type===l.LayerType.arcgisMapImage||t.type===l.LayerType.igsFeature||t.type===l.LayerType.wfs||t.type===l.LayerType.geojson){var n=256;t.imageWidth&&t.imageHeight&&(n=Math.max(t.imageWidth,t.imageHeight)),r=e.generateTileInfo(t.extent,n,t.spatialReference)}return r}}]),e}();t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(11)),i=f(r(3)),o=f(r(0)),a=f(r(2)),s=f(r(4)),u=f(r(5)),l=r(8),c=r(1),h=r(35);function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this)),n=(0,c.defaultValue)(e,{});return r.view=n.view,r.view||c.Log.error("视图对象不存在!"),r.layer=n.layer,r.layer||c.Log.error("图层对象不存在!"),r.innerLayer=null,r.id=r.layer.id,r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"onAdd",value:function(e){}},{key:"onRemove",value:function(e){}},{key:"onUpdate",value:function(e){}},{key:"_getLayerViewVisible",value:function(e){var t=void 0;if(void 0===e&&(e=void 0===this.layer.visible||this.layer.visible),e){var r=(0,h.getLayerViewScaleVisible)(this);t=e&&r}else t=e;return t}}]),t}(l.Evented);(0,n.default)(d.prototype,{innerView:{get:function(){return this.view.getInnerView()}}}),t.default=d},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t,r){var n=r(17),i=r(12),o=r(59);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){var n=r(28).f,i=r(32),o=r(21)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t,r){var n=r(32),i=r(56),o=r(101)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,r){r(235);for(var n=r(20),i=r(48),o=r(61),a=r(21)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var l=s[u],c=n[l],h=c&&c.prototype;h&&!h[a]&&i(h,a,l),o[l]=o.Array}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={geometry:"Geometry",point:"Point",lineString:"LineString",polygon:"Polygon",multiPoint:"MultiPoint",multiLineString:"MultiLineString",multiPolygon:"MultiPolygon",circle:"Circle",extent:"Extent"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(6);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,null,[{key:"info",value:function(){if([o.LogType.info,o.LogType.all,o.LogType.infoAndError].indexOf(window.zondy.LOGTYPE)>-1){var e=Array.prototype.slice.call(arguments);e.unshift("%c info ","color:rgb(255,128,0);background-color: wheat;border: 1px solid rgb(255,128,0);border-radius: 3px;"),console.log.apply(console,e)}}},{key:"error",value:function(){if([o.LogType.error,o.LogType.all,o.LogType.infoAndError,o.LogType.warningAndError].indexOf(window.zondy.LogType)>-1){var e=Array.prototype.slice.call(arguments),t=e.toString();throw e.unshift("%c error ","color:rgb(255,0,0);background-color: rgb(250,181,181);border: 1px solid rgb(255,0,0);border-radius: 3px;"),console.log.apply(console,e),new Error(t)}}},{key:"warning",value:function(){if([o.LogType.warning,o.LogType.warningAndError,o.LogType.all].indexOf(window.zondy.LogType)>-1){var e=Array.prototype.slice.call(arguments);e.toString(),e.unshift("%c warning ","color:rgb(230 162 60);background-color: rgb(253 246 236);border: 1px solid rgb(230 162 60);border-radius: 3px;"),console.log.apply(console,e)}}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allSettled=t.inOrderPromise=t.debouncePromise=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(14));t.debouncePromise=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=void 0,o=void 0,a=void 0,s=[];return function(){var u=function(e){return"function"==typeof e?e():e}(t),l=(new Date).getTime(),c=!i||l-i>u;i=l;for(var h=arguments.length,f=Array(h),d=0;d<h;d++)f[d]=arguments[d];if(c&&r.leading)return r.accumulate?n.default.resolve(e.call(this,[f])).then(function(e){return e[0]}):n.default.resolve(e.call.apply(e,[this].concat(f)));if(o?clearTimeout(a):o=function(){var e={};return e.promise=new n.default(function(t,r){e.resolve=t,e.reject=r}),e}(),s.push(f),a=setTimeout(function(){var t=o;clearTimeout(a),n.default.resolve(r.accumulate?e.call(this,s):e.apply(this,s[s.length-1])).then(t.resolve,t.reject),s=[],o=null}.bind(this),u),r.accumulate){var p=s.length-1;return o.promise.then(function(e){return e[p]})}return o.promise}},t.inOrderPromise=async function(e){for(var t=[],r=0;r<e.length;r++)try{var n=await e[r]();t.push(n)}catch(e){}return t},t.allSettled=function(e){var t=function(e){return{status:"rejected",reason:e}},r=function(e){return{status:"fulfilled",value:e}},i=e.map(function(e){return n.default.resolve(e).then(r,t)});return n.default.all(i)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=r(6),o=window.fetch,a={commit:function(e,t,r,n){switch(e=e?e.toUpperCase():e){case"GET":return this._get(t,n);case"POST":return this._post(t,r,n);case"PUT":return this._put(t,r,n);case"DELETE":return this._delete(t,r,n);default:return this._get(t,n)}},_get:function(e,t){return t=(0,n.defaultValue)(t,{}),this._fetch(e,void 0,t,i.FetchMethod.get)},_delete:function(e,t,r){return r=(0,n.defaultValue)(r,{}),this._fetch(e,t,r,i.FetchMethod.delete)},_post:function(e,t,r){return r=(0,n.defaultValue)(r,{}),this._fetch(e,t,r,i.FetchMethod.post)},_put:function(e,t,r){return r=(0,n.defaultValue)(r,{}),this._fetch(e,t,r,i.FetchMethod.put)},_fetch:function(e,t,r,a){if((r=(0,n.defaultValue)(r,{})).headers=(0,n.defaultValue)(r.headers,{}),r.requestTimeout=(0,n.defaultValue)(r.requestTimeout,45e3),r.headers["Content-Type"]||(r.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8"),!(0,n.isNull)(r.tokenKey)&&!(0,n.isNull)(r.tokenValue)){var s=function(){"string"==typeof t?t+="&"+r.tokenKey+"="+r.tokenValue:t instanceof Object&&(t[r.tokenKey]=r.tokenValue)},u=function(){e.indexOf("?")<0?e+="?"+r.tokenKey+"="+r.tokenValue:e+="&"+r.tokenKey+"="+r.tokenValue};switch((0,n.defaultValue)(r.tokenAttachType,i.TokenAttachType.normal)){case i.TokenAttachType.normal:default:a===i.FetchMethod.post?s():u();break;case i.TokenAttachType.url:u();break;case i.TokenAttachType.header:r.headers[r.tokenKey]=r.tokenValue;break;case i.TokenAttachType.body:s()}}var l={method:a,body:t,headers:r.headers,credentials:r.withCredentials?"include":"omit",mode:"cors",timeout:r.requestTimeout};return r.responseType&&(l.responseType=r.responseType),o(e,l).then(function(e){return e}).catch(function(e){return e})}};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.default=function(e){var t=(0,n.defaultValue)(e,{});(0,n.extend)(this,t),this.FldNumber=(0,n.defaultValue)(t.FldNumber,0),this.FldName=(0,n.defaultValue)(t.FldName,null),this.FldType=(0,n.defaultValue)(t.FldType,null)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=r(8),a=r(1),s=r(19);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=(0,a.defaultValue)(t,{}),this.symbol=new s.MapGISTextSymbol(t.symbol),this.renderMode=(0,a.defaultValue)(t.renderMode,"canvas"),this.deconflictionStrategy=(0,a.defaultValue)(t.deconflictionStrategy,"static"),this.maxScale=t.maxScale,this.minScale=t.minScale,this.elevationInfo=new o.ElevationInfo(t.elevationInfo),this.labelPlacement=t.labelPlacement,this.currentAttributeName=t.currentAttributeName,this.labelExpression=t.labelExpression,this.repeatLabel=(0,a.defaultValue)(t.repeatLabel,!0),this.repeatLabelDistance=(0,a.defaultValue)(t.repeatLabelDistance,6e3),this.repeatStartRate=(0,a.defaultValue)(t.repeatStartRate,.3),this.repeatEndRate=(0,a.defaultValue)(t.repeatEndRate,.7),this.lineLabelSpread=(0,a.defaultValue)(t.lineLabelSpread,"auto-spread"),this.labelPositionAlong=(0,a.defaultValue)(t.labelPositionAlong,"middle"),this.skeletonLineStartRate=(0,a.defaultValue)(t.skeletonLineStartRate,.4),this.skeletonLineEndRate=(0,a.defaultValue)(t.skeletonLineEndRate,.6),this.groundScale=(0,a.defaultValue)(t.groundScale,20),this.extensionOptions=(0,a.defaultValue)(t.extensionOptions,{})}return(0,i.default)(e,[{key:"toJSON",value:function(){return{symbol:this.symbol.toJSON(),renderMode:this.renderMode,deconflictionStrategy:this.deconflictionStrategy,maxScale:this.maxScale,minScale:this.minScale,elevationInfo:this.elevationInfo.toJSON(),labelPlacement:this.labelPlacement,currentAttributeName:this.currentAttributeName,labelExpression:this.labelExpression,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,repeatStartRate:this.repeatStartRate,repeatEndRate:this.repeatEndRate,lineLabelSpread:this.lineLabelSpread,labelPositionAlong:this.labelPositionAlong,skeletonLineStartRate:this.skeletonLineStartRate,skeletonLineEndRate:this.skeletonLineEndRate,groundScale:this.groundScale,extensionOptions:(0,a.cloneObject)(this.extensionOptions)}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,a.defaultValue)(t,{}))}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=u(r(51)),a=r(1),s=r(79);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=(0,a.defaultValue)(t,{}),this.type=o.default.default,this.field=(0,a.defaultValue)(t.field,""),this.valueExpression=(0,a.defaultValue)(t.valueExpression,""),this.valueExpressionTitle=(0,a.defaultValue)(t.valueExpressionTitle,"")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.field=this.field,e.valueExpression=this.valueExpression,e.valueExpressionTitle=this.valueExpressionTitle,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(e){return e=(0,a.defaultValue)(e,{}),(0,s.createVisualVariable)(e)}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(t){(0,n.default)(this,e),t=t||{},this.level=t.level,this.resolution=t.resolution,this.scale=t.scale}return(0,i.default)(e,[{key:"toJSON",value:function(){return{level:this.level,resolution:this.resolution,scale:this.scale}}},{key:"clone",value:function(){return e.fromJSON(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(10)),i=h(r(3)),o=h(r(0)),a=h(r(2)),s=h(r(4)),u=h(r(7)),l=h(r(5)),c=r(1);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.version=(0,c.defaultValue)(e.version,""),r.customParameters=(0,c.defaultValue)(e.customParameters,{}),r.customLayerParameters=(0,c.defaultValue)(e.customLayerParameters,{}),r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"toJSON",value:function(){var e=(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"toJSON",this).call(this);return e.version=this.version,e.customParameters=JSON.parse((0,n.default)(this.customParameters)),e.customLayerParameters=JSON.parse((0,n.default)(this.customLayerParameters)),e}}]),t}(r(15).Layer);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLayersExtent=t.getCrsOptions=t.getLayerViewsGeographicExtent=t.getValidLayers=t.isLayerViewValid=t.ExpressionParser=t.VectorTileLayer=t.TileSliceType=t.TDTLayerType=t.VisualVariableType=t.SeverVectorTileSubLayerType=t.ColorNameToHexMap=t.GeometryFilter=t.SceneSubLayerType=t.convertIGSClippingString=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FetchRequest=t.ArcType=t.AreaUnits=t.LinearUnits=t.allSettled=t.inOrderPromise=t.debouncePromise=t.compareObject=void 0,t.throttle=t.convertImageSourceToBase64=t.isWMSReverse=t.getProjectionSrs=t.OGCLayer=t.OverlayLayer=t.UnknownLayer=t.RequestConfig=t.BaseServer=t.TileLayer=t.WorkFlowServer=t.Interceptor=t.CAttStruct=t.CAttDataRow=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.ArcGISVectorTileLayer=t.StylePattern3D=t.ColorMaterial=t.MaterialType=t.WaveStrength=t.WaterbodySize=t.WaterSymbol3DLayer=t.TextHalo=t.TextSymbol3DLayer=t.Edges3D=t.ExtrudeSymbol3DLayer=t.ObjectSymbol3DLayer=t.IconResource=t.PointSymbol3DOutline=t.IconSymbol3DLayer=t.PatternStyle=t.FillSymbol3DOutline=t.FillSymbol3DLayer=t.ProfileType=t.AnchorType=t.PathSymbol3DLayer=t.LineSymbol3DLayer=t.LineStylePattern3D=t.LinePatternStyle=t.LineStyleMarker3D=t.LineMarkerStyle=t.LineMarkerPlacement=t.LineJoinType=t.LineCapType=t.Symbol3DLayerType=t.Symbol3DLayer=t.Symbol3DVerticalOffset=t.Callout3D=t.LineCallout3D=t.PolygonSymbol3D=t.PointSymbol3D=t.LineSymbol3D=t.LabelSymbol3D=t.Symbol3D=t.RendererUtil=t.VisualVariable=t.OpacityVariable=t.ColorVariable=t.SizeVariable=t.HeatmapColorStop=t.LabelClass=t.setElevationInfo=t.WMTSCorporation=t.TileInfoUtil=t.BaseFeatureLayerView=t.createSimpleFillSymbolCanvas=t.createSimpleMarkerSymbolCanvas=t.ServiceConfigRequestInterceptors=t.ServiceConfigToken=t.Config=t.editGeometryByArc3=t.editFeatureByArc3=t.Geometry=t.RadiusUnit=t.formatBaseUrl=t.showLayerByScale=t.T=t.proj4=t.EPSG=t.isCustomSP=t.is4326=t.getUrlType=t.PictureFormat=t.UrlServerType=t.SpatialReference=t.LayerView=t.GroupLayerView=t.BaseRendererLayerView=t.BaseGraphicsLayerView=t.SceneView=t.MapView=t.BaseView=t.inputCss=t.getBaseUrl=t.toJSON=t.getVideoType=t.isObject=t.notNULL=void 0,t.cloneObject=t.returnPoint=t.formatPoints=t.newGuid=t.extendDeep=t.isBoolean=t.deepClone=t.isString=t.Log=t.getOutStatisticsParameter=t.getGeometryParameter=t.isNull=t.createGeometry=t.normalize=t.defined=t.defaultValue=t.getGUID=t.bind=t.getParameterString=t.urlAppend=t.transformResult=t.isInTheSameDomain=t.isNumber=t.isArray=t.extend=t.getIGSDynamicLayer=t.BaseRenderer=t.HeatmapRenderer=t.RankRenderer=t.RandomRenderer=t.ClusterRenderer=t.SimpleRenderer=t.ClassBreakRenderer=t.UniqueValueRenderer=t.MapGISTextSymbol=t.PictureFillSymbol=t.PictureMarkerSymbol=t.Symbol=t.TextSymbol=t.SimpleMarkerSymbol=t.SimpleLineSymbol=t.SimpleFillSymbol=t.ShadowMode=t.SceneMode=t.VerticalAlignment=t.HorizontalAlignment=t.FeatureExpressionInfo=t.ProjectInfoBySrsID=t.TileMatrixSet=t.OutStatistic=t.ProjectInfo=t.ElevationInfo=t.ElevationMode=t.IGSSymbolType=t.SymbolType=t.IGSRendererType=t.SketchEditorToolEventType=t.SketchEditorState=t.SketchEditorEventType=t.SketchEditMode=t.SketchDataType=t.VideoSourceType=t.VectorTileGeometryType=t.RendererType=t.AngleUnit=t.LengthUnit=t.ViewEventType=t.LoadStatus=t.LogType=t.IGSGeometryType=t.TokenAttachType=t.LayerType=t.GeometryType=t.CustomWKID=t.SpatialRelation=t.StatisticType=t.MapEventType=t.LayerEventType=t.FetchMethod=t.ReturnFormat=t.getFeaturesFromFeatureSet=t.Feature=t.FeatureSet=t.Collection=t.ErrorEvent=t.FeatureRender=t.Evented=t.zondy=t.Zondy=t.Event=t.LayerEvent=t.Font=t.Color=t.GeometryEngine=t.MultiPoint=t.MultiLineString=t.MultiPolygon=t.Circle=t.Point=t.LineString=void 0,t.Polygon=t.Extent=t.SketchEditorEvent=t.SketchStyle=t.SketchFreehandPolygonDrawTool=t.SketchFreehandPolylineDrawTool=t.SketchExtentDrawTool=t.SketchCircleDrawTool=t.SketchPolygonDrawTool=t.SketchPolylineDrawTool=t.SketchPointDrawTool=t.SketchBaseDrawTool=t.SketchEditor3D=t.SketchEditor=t.CoordnateTransform=t.WMTSStyle=t.Projection=t.Layer=t.VideoLayer=t.TerrainCacheLayer=t.Cesium3DTilesCacheLayer=t.GeoJSONLayer=t.GraphicsLayer=t.GroupLayer=t.MapVLayer=t.EchartsLayer=t.IGSFeatureLayer=t.Scene=t.IGSTileLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=t.WMTSSubLayer=t.WFSLayer=t.WMSSubLayer=t.WMSLayer=t.WMTSLayer=t.ArcGISTileLayer=t.ArcGISMapImageSubLayer=t.M3DModelCacheLayer=t.ArcGISMapImageLayer=t.Basemap=t.Map=t.ArcGISVectorTileServer=t.ArcGISFeatureServer=t.ArcGISGeometryServer=t.ThemesInfo=t.ThemeServer=t.ItemValue=t.FolderInfoAttribute=t.FolderInfo=t.ExpInfo=t.CUniqueThemeInfo=t.CUniqueTheme=t.CThemeInfo=t.CTheme=t.CSimpleTheme=t.CRegInfo=t.CRangeThemeInfo=t.CRangeTheme=t.CRandomTheme=t.CPntInfo=t.CMultiClassTheme=t.CLinInfo=t.CGraduatedSymbolTheme=t.CFourColorTheme=t.CDotDensityTheme=t.CChartType=t.CChartThemeRepresentInfo=t.CChartThemeInfo=t.CChartTheme=t.CChartLabelFormat=t.CAnnInfo=t.CAllOtherDataItemInfoSource=t.ArcGISMapServer=t.WFSServer=t.WMTSServer=t.WMSServer=t.SceneServer=t.ResourceServer=t.PlotServer=t.VectorTileServer=t.TileServer=t.RootServer=t.SecurityServer=t.TerrainServer=t.PoiServer=t.Cesium3DTilesServer=t.AddressServer=t.GeometryServer=t.ImageServer=t.M3DServer=t.FeatureServer=t.MapServer=t.ResponseInterceptor=t.RequestInterceptor=t.FetchServer=void 0;var n=m(r(23)),i=m(r(224)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(33)),a=r(25),s=r(128),u=r(64),l=r(9),c=r(8),h=r(1),f=r(6),d=r(19),p=r(511),y=r(520),g=r(528);function m(e){return e&&e.__esModule?e:{default:e}}window.zondy={};var v=window.zondy;v.service={},v.geometry={},v.layer={},v.enum={},v.symbol={},v.widget={},v.tool={},v.renderer={},v.renderer.visualvariable={},v.themelayer={},v.util={},v.video={},v.LOGTYPE="warningAndError",v.VERSION="17.2.4",v.service.FetchServer=a.FetchServer,v.service.RequestInterceptor=a.RequestInterceptor,v.service.ResponseInterceptor=a.ResponseInterceptor,v.service.MapServer=a.MapServer,v.service.FeatureServer=a.FeatureServer,v.service.M3DServer=a.M3DServer,v.service.ImageServer=a.ImageServer,v.service.GeometryServer=a.GeometryServer,v.service.AddressServer=a.AddressServer,v.service.Cesium3DTilesServer=a.Cesium3DTilesServer,v.service.PoiServer=a.PoiServer,v.service.TerrainServer=a.TerrainServer,v.service.SecurityServer=a.SecurityServer,v.service.RootServer=a.RootServer,v.service.TileServer=a.TileServer,v.service.VectorTileServer=a.VectorTileServer,v.service.PlotServer=a.PlotServer,v.service.ResourceServer=a.ResourceServer,v.service.SceneServer=a.SceneServer,v.service.WMSServer=a.WMSServer,v.service.WMTSServer=a.WMTSServer,v.service.WFSServer=a.WFSServer,v.service.ArcGISMapServer=a.ArcGISMapServer,v.service.ThemeServer=a.ThemeServer,v.service.ArcGISGeometryServer=a.ArcGISGeometryServer,v.service.ArcGISFeatureServer=a.ArcGISFeatureServer,v.service.ArcGISVectorTileServer=a.ArcGISVectorTileServer,v.service.Config=a.Config,v.service.FetchRequest=a.FetchRequest,v.service.GeometryFilter=a.GeometryFilter,v.service.Interceptor=a.Interceptor,v.service.WorkFlowServer=a.WorkFlowServer,v.service.BaseServer=a.BaseServer,v.service.RequestConfig=a.RequestConfig,v.themelayer.CAllOtherDataItemInfoSource=a.CAllOtherDataItemInfoSource,v.themelayer.CAnnInfo=a.CAnnInfo,v.themelayer.CChartLabelFormat=a.CChartLabelFormat,v.themelayer.CChartTheme=a.CChartTheme,v.themelayer.CChartThemeInfo=a.CChartThemeInfo,v.themelayer.CChartThemeRepresentInfo=a.CChartThemeRepresentInfo,v.themelayer.CChartType=a.CChartType,v.themelayer.CDotDensityTheme=a.CDotDensityTheme,v.themelayer.CFourColorTheme=a.CFourColorTheme,v.themelayer.CGraduatedSymbolTheme=a.CGraduatedSymbolTheme,v.themelayer.CLinInfo=a.CLinInfo,v.themelayer.CMultiClassTheme=a.CMultiClassTheme,v.themelayer.CPntInfo=a.CPntInfo,v.themelayer.CRandomTheme=a.CRandomTheme,v.themelayer.CRangeTheme=a.CRangeTheme,v.themelayer.CRangeThemeInfo=a.CRangeThemeInfo,v.themelayer.CRegInfo=a.CRegInfo,v.themelayer.CSimpleTheme=a.CSimpleTheme,v.themelayer.CTheme=a.CTheme,v.themelayer.CThemeInfo=a.CThemeInfo,v.themelayer.CUniqueTheme=a.CUniqueTheme,v.themelayer.CUniqueThemeInfo=a.CUniqueThemeInfo,v.themelayer.ExpInfo=a.ExpInfo,v.themelayer.FolderInfo=a.FolderInfo,v.themelayer.FolderInfoAttribute=a.FolderInfoAttribute,v.themelayer.ItemValue=a.ItemValue,v.themelayer.ThemesInfo=a.ThemesInfo,v.layer.WMTSLayer=u.WMTSLayer,v.layer.WMSLayer=u.WMSLayer,v.layer.WMSSubLayer=u.WMSSubLayer,v.layer.WFSLayer=u.WFSLayer,v.layer.WMTSSubLayer=u.WMTSSubLayer,v.layer.VectorTileLayer=u.VectorTileLayer,v.layer.IGSVectorTileLayer=u.IGSVectorTileLayer,v.layer.IGSVectorTileSubLayer=u.IGSVectorTileSubLayer,v.layer.IGSMapImageLayer=u.IGSMapImageLayer,v.layer.IGSMapImageSubLayer=u.IGSMapImageSubLayer,v.layer.IGSSceneLayer=u.IGSSceneLayer,v.layer.IGSSceneSubLayer=u.IGSSceneSubLayer,v.layer.IGSTileLayer=u.IGSTileLayer,v.layer.Scene=u.Scene,v.layer.IGSFeatureLayer=u.IGSFeatureLayer,v.layer.EchartsLayer=u.EchartsLayer,v.layer.MapVLayer=u.MapVLayer,v.layer.GroupLayer=u.GroupLayer,v.layer.GraphicsLayer=u.GraphicsLayer,v.layer.GeoJSONLayer=u.GeoJSONLayer,v.layer.Cesium3DTilesCacheLayer=u.Cesium3DTilesCacheLayer,v.layer.TerrainCacheLayer=u.TerrainCacheLayer,v.layer.VideoLayer=u.VideoLayer,v.layer.LabelClass=u.LabelClass,v.layer.ArcGISMapImageLayer=u.ArcGISMapImageLayer,v.layer.ArcGISMapImageSubLayer=u.ArcGISMapImageSubLayer,v.layer.M3DModelCacheLayer=u.M3DModelCacheLayer,v.layer.ArcGISTileLayer=u.ArcGISTileLayer,v.layer.Layer=u.Layer,v.layer.ArcGISVectorTileLayer=u.ArcGISVectorTileLayer,v.layer.WebTileLayer=u.WebTileLayer,v.layer.TileInfo=u.TileInfo,v.layer.LOD=u.LOD,v.layer.TileLayer=u.TileLayer,v.layer.UnknownLayer=u.UnknownLayer,v.layer.OverlayLayer=u.OverlayLayer,v.layer.OGCLayer=u.OGCLayer,v.Map=u.Map,v.Basemap=u.Basemap,v.SpatialReference=l.SpatialReference,v.Color=c.Color,v.Collection=c.Collection,v.FeatureSet=c.FeatureSet,v.Feature=c.Feature,v.ElevationInfo=c.ElevationInfo,v.ProjectInfo=c.ProjectInfo,v.OutStatistic=c.OutStatistic,v.TileMatrixSet=c.TileMatrixSet,v.ProjectInfoBySrsID=c.ProjectInfoBySrsID,v.FeatureExpressionInfo=c.FeatureExpressionInfo,v.BaseView=p.BaseView,v.MapView=p.MapView,v.SceneView=p.SceneView,v.BaseFeatureLayerView=p.BaseFeatureLayerView,v.BaseRendererLayerView=p.BaseRendererLayerView,v.GroupLayerView=p.GroupLayerView,v.WMTSStyle=c.WMTSStyle,v.CAttDataRow=a.CAttDataRow,v.CAttStruct=a.CAttStruct,v.renderer.UniqueValueRenderer=u.UniqueValueRenderer,v.renderer.ClassBreakRenderer=u.ClassBreakRenderer,v.renderer.SimpleRenderer=u.SimpleRenderer,v.renderer.ClusterRenderer=u.ClusterRenderer,v.renderer.RandomRenderer=u.RandomRenderer,v.renderer.RankRenderer=u.RankRenderer,v.renderer.HeatmapRenderer=u.HeatmapRenderer,v.renderer.BaseRenderer=u.BaseRenderer,v.renderer.HeatmapColorStop=u.HeatmapColorStop,v.renderer.visualvariable.SizeVariable=u.SizeVariable,v.renderer.visualvariable.ColorVariable=u.ColorVariable,v.renderer.visualvariable.OpacityVariable=u.OpacityVariable,v.renderer.visualvariable.VisualVariable=u.VisualVariable,v.geometry.Extent=l.Extent,v.geometry.Polygon=l.Polygon,v.geometry.MultiPolygon=l.MultiPolygon,v.geometry.LineString=l.LineString,v.geometry.MultiLineString=l.MultiLineString,v.geometry.Point=l.Point,v.geometry.MultiPoint=l.MultiPoint,v.geometry.Circle=l.Circle,v.geometry.GeometryEngine=l.GeometryEngine,v.geometry.Geometry=l.Geometry,v.geometry.Projection=c.Projection,v.geometry.Proj4=i.default,v.geometry.T=o,v.enum.ReturnFormat=f.ReturnFormat,v.enum.FetchMethod=f.FetchMethod,v.enum.LayerEventType=f.LayerEventType,v.enum.MapEventType=f.MapEventType,v.enum.StatisticType=f.StatisticType,v.enum.SpatialRelation=f.SpatialRelation,v.enum.CustomWKID=f.CustomWKID,v.enum.LayerType=f.LayerType,v.enum.TokenAttachType=f.TokenAttachType,v.enum.IGSGeometryType=f.IGSGeometryType,v.enum.LogType=f.LogType,v.enum.LoadStatus=f.LoadStatus,v.enum.ViewEventType=f.ViewEventType,v.enum.LengthUnit=f.LengthUnit,v.enum.AngleUnit=f.AngleUnit,v.enum.RendererType=f.RendererType,v.enum.VectorTileGeometryType=f.VectorTileGeometryType,v.enum.VideoSourceType=f.VideoSourceType,v.enum.SketchDataType=f.SketchDataType,v.enum.SketchEditMode=f.SketchEditMode,v.enum.SketchEditorEventType=f.SketchEditorEventType,v.enum.SketchEditorState=f.SketchEditorState,v.enum.SketchEditorToolEventType=f.SketchEditorToolEventType,v.enum.IGSRendererType=f.IGSRendererType,v.enum.SymbolType=f.SymbolType,v.enum.IGSSymbolType=f.IGSSymbolType,v.enum.ElevationMode=f.ElevationMode,v.enum.HorizontalAlignment=f.HorizontalAlignment,v.enum.VerticalAlignment=f.VerticalAlignment,v.enum.SceneMode=f.SceneMode,v.enum.ShadowMode=f.ShadowMode,v.enum.UrlServerType=f.UrlServerType,v.enum.PictureFormat=f.PictureFormat,v.enum.RadiusUnit=f.RadiusUnit,v.enum.WMTSCorporation=f.WMTSCorporation,v.enum.Symbol3DLayerType=f.Symbol3DLayerType,v.enum.LineCapType=f.LineCapType,v.enum.LineJoinType=f.LineJoinType,v.enum.LineMarkerPlacement=f.LineMarkerPlacement,v.enum.LineMarkerStyle=f.LineMarkerStyle,v.enum.LinePatternStyle=f.LinePatternStyle,v.enum.AnchorType=f.AnchorType,v.enum.ProfileType=f.ProfileType,v.enum.PatternStyle=f.PatternStyle,v.enum.WaterbodySize=f.WaterbodySize,v.enum.WaveStrength=f.WaveStrength,v.enum.MaterialType=f.MaterialType,v.enum.LinearUnits=f.LinearUnits,v.enum.AreaUnits=f.AreaUnits,v.enum.ArcType=f.ArcType,v.enum.SceneSubLayerType=f.SceneSubLayerType,v.enum.ColorNameToHexMap=f.ColorNameToHexMap,v.enum.SeverVectorTileSubLayerType=f.SeverVectorTileSubLayerType,v.enum.GeometryType=f.GeometryType,v.enum.VisualVariableType=f.VisualVariableType,v.enum.TDTLayerType=f.TDTLayerType,v.enum.TileSliceType=f.TileSliceType,v.util.formatBaseUrl=a.formatBaseUrl,v.util.ServiceConfigToken=a.ServiceConfigToken,v.util.ServiceConfigRequestInterceptors=a.ServiceConfigRequestInterceptors,v.util.convertIGSClippingString=a.convertIGSClippingString,v.util.getUrlType=u.getUrlType,v.util.is4326=u.is4326,v.util.isCustomSP=u.isCustomSP,v.util.showLayerByScale=u.showLayerByScale,v.util.getIGSDynamicLayer=u.getIGSDynamicLayer,v.util.setElevationInfo=u.setElevationInfo,v.util.TileInfoUtil=u.TileInfoUtil,v.util.getZoomOffset=u.getZoomOffset,v.util.appendUrlParams=u.appendUrlParams,v.util.getFullBaseUrl=u.getFullBaseUrl,v.util.editFeatureByArc3=l.editFeatureByArc3,v.util.editGeometryByArc3=l.editGeometryByArc3,v.util.CoordnateTransform=c.CoordnateTransform,v.util.getFeaturesFromFeatureSet=c.getFeaturesFromFeatureSet,v.util.EPSG=c.EPSG,v.util.extend=h.extend,v.util.isArray=h.isArray,v.util.isNumber=h.isNumber,v.util.isInTheSameDomain=h.isInTheSameDomain,v.util.transformResult=h.transformResult,v.util.urlAppend=h.urlAppend,v.util.getParameterString=h.getParameterString,v.util.bind=h.bind,v.util.getGUID=h.getGUID,v.util.defaultValue=h.defaultValue,v.util.defined=h.defined,v.util.normalize=h.normalize,v.util.createGeometry=h.createGeometry,v.util.isNull=h.isNull,v.util.getGeometryParameter=h.getGeometryParameter,v.util.getOutStatisticsParameter=h.getOutStatisticsParameter,v.util.Log=h.Log,v.util.isString=h.isString,v.util.deepClone=h.deepClone,v.util.isBoolean=h.isBoolean,v.util.extendDeep=h.extendDeep,v.util.newGuid=h.newGuid,v.util.formatPoints=h.formatPoints,v.util.returnPoint=h.returnPoint,v.util.cloneObject=h.cloneObject,v.util.notNULL=h.notNULL,v.util.isObject=h.isObject,v.util.getVideoType=h.getVideoType,v.util.toJSON=h.toJSON,v.util.getBaseUrl=h.getBaseUrl,v.util.inputCss=h.inputCss,v.util.getProjectionSrs=h.getProjectionSrs,v.util.isWMSReverse=h.isWMSReverse,v.util.convertImageSourceToBase64=h.convertImageSourceToBase64,v.util.throttle=h.throttle,v.util.compareObject=h.compareObject,v.util.debouncePromise=h.debouncePromise,v.util.inOrderPromise=h.inOrderPromise,v.util.allSettled=h.allSettled,v.util.ExpressionParser=h.ExpressionParser,v.util.RendererUtil=p.RendererUtil,v.util.createSimpleMarkerSymbolCanvas=g.createSimpleMarkerSymbolCanvas,v.util.createSimpleFillSymbolCanvas=g.createSimpleFillSymbolCanvas,v.util.getValidLayers=s.getValidLayers,v.util.getLayerViewsGeographicExtent=s.getLayerViewsGeographicExtent,v.util.getCrsOptions=s.getCrsOptions,v.util.getLayersExtent=s.getLayersExtent,v.symbol.SimpleFillSymbol=d.SimpleFillSymbol,v.symbol.SimpleLineSymbol=d.SimpleLineSymbol,v.symbol.SimpleMarkerSymbol=d.SimpleMarkerSymbol,v.symbol.TextSymbol=d.TextSymbol,v.symbol.Symbol=d.Symbol,v.symbol.PictureMarkerSymbol=d.PictureMarkerSymbol,v.symbol.PictureFillSymbol=d.PictureFillSymbol,v.symbol.MapGISTextSymbol=d.MapGISTextSymbol,v.symbol.Symbol3D=d.Symbol3D,v.symbol.LabelSymbol3D=d.LabelSymbol3D,v.symbol.LineSymbol3D=d.LineSymbol3D,v.symbol.PointSymbol3D=d.PointSymbol3D,v.symbol.PolygonSymbol3D=d.PolygonSymbol3D,v.symbol.LineCallout3D=d.LineCallout3D,v.symbol.Callout3D=d.Callout3D,v.symbol.Symbol3DVerticalOffset=d.Symbol3DVerticalOffset,v.symbol.Symbol3DLayer=d.Symbol3DLayer,v.symbol.LineStyleMarker3D=d.LineStyleMarker3D,v.symbol.LineStylePattern3D=d.LineStylePattern3D,v.symbol.LineSymbol3DLayer=d.LineSymbol3DLayer,v.symbol.PathSymbol3DLayer=d.PathSymbol3DLayer,v.symbol.FillSymbol3DLayer=d.FillSymbol3DLayer,v.symbol.FillSymbol3DOutline=d.FillSymbol3DOutline,v.symbol.IconSymbol3DLayer=d.IconSymbol3DLayer,v.symbol.PointSymbol3DOutline=d.PointSymbol3DOutline,v.symbol.IconResource=d.IconResource,v.symbol.ObjectSymbol3DLayer=d.ObjectSymbol3DLayer,v.symbol.ExtrudeSymbol3DLayer=d.ExtrudeSymbol3DLayer,v.symbol.Edges3D=d.Edges3D,v.symbol.TextSymbol3DLayer=d.TextSymbol3DLayer,v.symbol.TextHalo=d.TextHalo,v.symbol.WaterSymbol3DLayer=d.WaterSymbol3DLayer,v.symbol.ColorMaterial=d.ColorMaterial,v.symbol.StylePattern3D=d.StylePattern3D,v.symbol.Font=c.Font,v.tool.sketch={},v.tool.sketch.SketchStyle=y.SketchStyle,v.tool.sketch.SketchEditorEvent=y.SketchEditorEvent,v.tool.sketch.SketchEditor=y.SketchEditor,v.tool.sketch.SketchEditor3D=y.SketchEditor3D,v.tool.sketch.SketchBaseDrawTool=y.SketchBaseDrawTool,v.tool.sketch.SketchPointDrawTool=y.SketchPointDrawTool,v.tool.sketch.SketchPolylineDrawTool=y.SketchPolylineDrawTool,v.tool.sketch.SketchPolygonDrawTool=y.SketchPolygonDrawTool,v.tool.sketch.SketchCircleDrawTool=y.SketchCircleDrawTool,v.tool.sketch.SketchExtentDrawTool=y.SketchExtentDrawTool,v.tool.sketch.SketchFreehandPolylineDrawTool=y.SketchFreehandPolylineDrawTool,v.tool.sketch.SketchFreehandPolygonDrawTool=y.SketchFreehandPolygonDrawTool,window.Zondy={};var _=window.Zondy;_.Service=v.service,_.Geometry=v.geometry,_.Layer=v.layer,_.Enum=v.enum,_.Symbol=v.symbol,_.Widget=v.widget,_.Tool={},_.Tool.Sketch=v.widget.sketch,_.Renderer={},(0,n.default)(v.renderer).forEach(function(e){"visualvariable"!==e&&(_.Renderer[e]=v.renderer[e])}),_.Renderer.VisualVariable=v.renderer.visualvariable,_.Object={},_.Object.Theme={},_.Object.Theme.CAllOtherDataItemInfoSource=a.CAllOtherDataItemInfoSource,_.Object.Theme.CAnnInfo=a.CAnnInfo,_.Object.Theme.CChartLabelFormat=a.CChartLabelFormat,_.Object.Theme.CChartTheme=a.CChartTheme,_.Object.Theme.CChartThemeInfo=a.CChartThemeInfo,_.Object.Theme.CChartThemeRepresentInfo=a.CChartThemeRepresentInfo,_.Object.Theme.CChartType=a.CChartType,_.Object.Theme.CDotDensityTheme=a.CDotDensityTheme,_.Object.Theme.CFourColorTheme=a.CFourColorTheme,_.Object.Theme.CGraduatedSymbolTheme=a.CGraduatedSymbolTheme,_.Object.Theme.CLinInfo=a.CLinInfo,_.Object.Theme.CMultiClassTheme=a.CMultiClassTheme,_.Object.Theme.CPntInfo=a.CPntInfo,_.Object.Theme.CRandomTheme=a.CRandomTheme,_.Object.Theme.CRangeTheme=a.CRangeTheme,_.Object.Theme.CRangeThemeInfo=a.CRangeThemeInfo,_.Object.Theme.CRegInfo=a.CRegInfo,_.Object.Theme.CSimpleTheme=a.CSimpleTheme,_.Object.Theme.CTheme=a.CTheme,_.Object.Theme.CThemeInfo=a.CThemeInfo,_.Object.Theme.CUniqueTheme=a.CUniqueTheme,_.Object.Theme.CUniqueThemeInfo=a.CUniqueThemeInfo,_.Object.Theme.ExpInfo=a.ExpInfo,_.Object.Theme.FolderInfo=a.FolderInfo,_.Object.Theme.FolderInfoAttribute=a.FolderInfoAttribute,_.Object.Theme.ItemValue=a.ItemValue,_.Object.Theme.ThemesInfo=a.ThemesInfo,_.Object.CAttDataRow=a.CAttDataRow,_.Object.CAttStruct=a.CAttStruct,_.Utils=v.util,_.Map=u.Map,_.Basemap=u.Basemap,_.SpatialReference=l.SpatialReference,_.Color=c.Color,_.Font=c.Font,_.Collection=c.Collection,_.FeatureSet=c.FeatureSet,_.Feature=c.Feature,_.ElevationInfo=c.ElevationInfo,_.ProjectInfo=c.ProjectInfo,_.OutStatistic=c.OutStatistic,_.TileMatrixSet=c.TileMatrixSet,_.ProjectInfoBySrsID=c.ProjectInfoBySrsID,_.FeatureExpressionInfo=c.FeatureExpressionInfo,_.BaseView=p.BaseView,_.MapView=p.MapView,_.SceneView=p.SceneView,_.BaseFeatureLayerView=p.BaseFeatureLayerView,_.BaseRendererLayerView=p.BaseRendererLayerView,_.GroupLayerView=p.GroupLayerView,_.WMTSStyle=c.WMTSStyle,_.SketchPolygonDrawTool=y.SketchPolygonDrawTool,_.SketchStyle=y.SketchStyle,_.LogType=v.LOGTYPE,_.Version=v.VERSION;var S={FetchServer:a.FetchServer,RequestInterceptor:a.RequestInterceptor,ResponseInterceptor:a.ResponseInterceptor,MapServer:a.MapServer,FeatureServer:a.FeatureServer,M3DServer:a.M3DServer,ImageServer:a.ImageServer,GeometryServer:a.GeometryServer,AddressServer:a.AddressServer,Cesium3DTilesServer:a.Cesium3DTilesServer,PoiServer:a.PoiServer,TerrainServer:a.TerrainServer,SecurityServer:a.SecurityServer,RootServer:a.RootServer,TileServer:a.TileServer,VectorTileServer:a.VectorTileServer,PlotServer:a.PlotServer,ResourceServer:a.ResourceServer,SceneServer:a.SceneServer,WMSServer:a.WMSServer,WMTSServer:a.WMTSServer,WFSServer:a.WFSServer,ArcGISMapServer:a.ArcGISMapServer,CAllOtherDataItemInfoSource:a.CAllOtherDataItemInfoSource,CAnnInfo:a.CAnnInfo,CChartLabelFormat:a.CChartLabelFormat,CChartTheme:a.CChartTheme,CChartThemeInfo:a.CChartThemeInfo,CChartThemeRepresentInfo:a.CChartThemeRepresentInfo,CChartType:a.CChartType,CDotDensityTheme:a.CDotDensityTheme,CFourColorTheme:a.CFourColorTheme,CGraduatedSymbolTheme:a.CGraduatedSymbolTheme,CLinInfo:a.CLinInfo,CMultiClassTheme:a.CMultiClassTheme,CPntInfo:a.CPntInfo,CRandomTheme:a.CRandomTheme,CRangeTheme:a.CRangeTheme,CRangeThemeInfo:a.CRangeThemeInfo,CRegInfo:a.CRegInfo,CSimpleTheme:a.CSimpleTheme,CTheme:a.CTheme,CThemeInfo:a.CThemeInfo,CUniqueTheme:a.CUniqueTheme,CUniqueThemeInfo:a.CUniqueThemeInfo,ExpInfo:a.ExpInfo,FolderInfo:a.FolderInfo,FolderInfoAttribute:a.FolderInfoAttribute,ItemValue:a.ItemValue,ThemeServer:a.ThemeServer,ThemesInfo:a.ThemesInfo,ArcGISGeometryServer:a.ArcGISGeometryServer,ArcGISFeatureServer:a.ArcGISFeatureServer,ArcGISVectorTileServer:a.ArcGISVectorTileServer,Map:u.Map,Basemap:u.Basemap,ArcGISMapImageLayer:u.ArcGISMapImageLayer,M3DModelCacheLayer:u.M3DModelCacheLayer,ArcGISMapImageSubLayer:u.ArcGISMapImageSubLayer,ArcGISTileLayer:u.ArcGISTileLayer,WMTSLayer:u.WMTSLayer,WMSLayer:u.WMSLayer,WMSSubLayer:u.WMSSubLayer,WFSLayer:u.WFSLayer,WMTSSubLayer:u.WMTSSubLayer,IGSVectorTileLayer:u.IGSVectorTileLayer,IGSVectorTileSubLayer:u.IGSVectorTileSubLayer,IGSMapImageLayer:u.IGSMapImageLayer,IGSMapImageSubLayer:u.IGSMapImageSubLayer,IGSSceneLayer:u.IGSSceneLayer,IGSSceneSubLayer:u.IGSSceneSubLayer,IGSTileLayer:u.IGSTileLayer,Scene:u.Scene,IGSFeatureLayer:u.IGSFeatureLayer,EchartsLayer:u.EchartsLayer,MapVLayer:u.MapVLayer,GroupLayer:u.GroupLayer,GraphicsLayer:u.GraphicsLayer,GeoJSONLayer:u.GeoJSONLayer,Cesium3DTilesCacheLayer:u.Cesium3DTilesCacheLayer,TerrainCacheLayer:u.TerrainCacheLayer,VideoLayer:u.VideoLayer,Layer:u.Layer,Projection:c.Projection,WMTSStyle:c.WMTSStyle,CoordnateTransform:c.CoordnateTransform,SketchEditor:y.SketchEditor,SketchEditor3D:y.SketchEditor3D,SketchBaseDrawTool:y.SketchBaseDrawTool,SketchPointDrawTool:y.SketchPointDrawTool,SketchPolylineDrawTool:y.SketchPolylineDrawTool,SketchPolygonDrawTool:y.SketchPolygonDrawTool,SketchCircleDrawTool:y.SketchCircleDrawTool,SketchExtentDrawTool:y.SketchExtentDrawTool,SketchFreehandPolylineDrawTool:y.SketchFreehandPolylineDrawTool,SketchFreehandPolygonDrawTool:y.SketchFreehandPolygonDrawTool,SketchStyle:y.SketchStyle,SketchEditorEvent:y.SketchEditorEvent,Extent:l.Extent,Polygon:l.Polygon,LineString:l.LineString,Point:l.Point,Circle:l.Circle,MultiPolygon:l.MultiPolygon,MultiLineString:l.MultiLineString,MultiPoint:l.MultiPoint,GeometryEngine:l.GeometryEngine,Color:c.Color,Font:c.Font,LayerEvent:c.LayerEvent,Event:c.Event,Zondy:_,zondy:v,Evented:c.Evented,FeatureRender:c.FeatureRender,ErrorEvent:c.ErrorEvent,Collection:c.Collection,FeatureSet:c.FeatureSet,Feature:c.Feature,getFeaturesFromFeatureSet:c.getFeaturesFromFeatureSet,ReturnFormat:f.ReturnFormat,FetchMethod:f.FetchMethod,LayerEventType:f.LayerEventType,MapEventType:f.MapEventType,StatisticType:f.StatisticType,SpatialRelation:f.SpatialRelation,CustomWKID:f.CustomWKID,GeometryType:f.GeometryType,LayerType:f.LayerType,TokenAttachType:f.TokenAttachType,IGSGeometryType:f.IGSGeometryType,LogType:f.LogType,LoadStatus:f.LoadStatus,ViewEventType:f.ViewEventType,LengthUnit:f.LengthUnit,AngleUnit:f.AngleUnit,RendererType:f.RendererType,VectorTileGeometryType:f.VectorTileGeometryType,VideoSourceType:f.VideoSourceType,SketchDataType:f.SketchDataType,SketchEditMode:f.SketchEditMode,SketchEditorEventType:f.SketchEditorEventType,SketchEditorState:f.SketchEditorState,SketchEditorToolEventType:f.SketchEditorToolEventType,IGSRendererType:f.IGSRendererType,SymbolType:f.SymbolType,IGSSymbolType:f.IGSSymbolType,ElevationMode:f.ElevationMode,ElevationInfo:c.ElevationInfo,ProjectInfo:c.ProjectInfo,OutStatistic:c.OutStatistic,TileMatrixSet:c.TileMatrixSet,ProjectInfoBySrsID:c.ProjectInfoBySrsID,FeatureExpressionInfo:c.FeatureExpressionInfo,HorizontalAlignment:f.HorizontalAlignment,VerticalAlignment:f.VerticalAlignment,SceneMode:f.SceneMode,ShadowMode:f.ShadowMode,SimpleFillSymbol:d.SimpleFillSymbol,SimpleLineSymbol:d.SimpleLineSymbol,SimpleMarkerSymbol:d.SimpleMarkerSymbol,TextSymbol:d.TextSymbol,Symbol:d.Symbol,PictureMarkerSymbol:d.PictureMarkerSymbol,PictureFillSymbol:d.PictureFillSymbol,MapGISTextSymbol:d.MapGISTextSymbol,UniqueValueRenderer:u.UniqueValueRenderer,ClassBreakRenderer:u.ClassBreakRenderer,SimpleRenderer:u.SimpleRenderer,ClusterRenderer:u.ClusterRenderer,RandomRenderer:u.RandomRenderer,RankRenderer:u.RankRenderer,HeatmapRenderer:u.HeatmapRenderer,BaseRenderer:u.BaseRenderer,getIGSDynamicLayer:u.getIGSDynamicLayer,extend:h.extend,isArray:h.isArray,isNumber:h.isNumber,isInTheSameDomain:h.isInTheSameDomain,transformResult:h.transformResult,urlAppend:h.urlAppend,getParameterString:h.getParameterString,bind:h.bind,getGUID:h.getGUID,defaultValue:h.defaultValue,defined:h.defined,normalize:h.normalize,createGeometry:h.createGeometry,isNull:h.isNull,getGeometryParameter:h.getGeometryParameter,getOutStatisticsParameter:h.getOutStatisticsParameter,Log:h.Log,isString:h.isString,deepClone:h.deepClone,isBoolean:h.isBoolean,extendDeep:h.extendDeep,newGuid:h.newGuid,formatPoints:h.formatPoints,returnPoint:h.returnPoint,cloneObject:h.cloneObject,notNULL:h.notNULL,isObject:h.isObject,getVideoType:h.getVideoType,toJSON:h.toJSON,getBaseUrl:h.getBaseUrl,inputCss:h.inputCss,BaseView:p.BaseView,MapView:p.MapView,SceneView:p.SceneView,BaseGraphicsLayerView:p.BaseGraphicsLayerView,BaseRendererLayerView:p.BaseRendererLayerView,GroupLayerView:p.GroupLayerView,LayerView:p.LayerView,SpatialReference:l.SpatialReference,UrlServerType:f.UrlServerType,PictureFormat:f.PictureFormat,getUrlType:u.getUrlType,is4326:u.is4326,isCustomSP:u.isCustomSP,EPSG:c.EPSG,proj4:i.default,T:o,showLayerByScale:u.showLayerByScale,formatBaseUrl:a.formatBaseUrl,RadiusUnit:f.RadiusUnit,Geometry:l.Geometry,editFeatureByArc3:l.editFeatureByArc3,editGeometryByArc3:l.editGeometryByArc3,Config:a.Config,ServiceConfigToken:a.ServiceConfigToken,ServiceConfigRequestInterceptors:a.ServiceConfigRequestInterceptors,createSimpleMarkerSymbolCanvas:g.createSimpleMarkerSymbolCanvas,createSimpleFillSymbolCanvas:g.createSimpleFillSymbolCanvas,BaseFeatureLayerView:p.BaseFeatureLayerView,TileInfoUtil:u.TileInfoUtil,WMTSCorporation:f.WMTSCorporation,setElevationInfo:u.setElevationInfo,LabelClass:u.LabelClass,HeatmapColorStop:u.HeatmapColorStop,SizeVariable:u.SizeVariable,ColorVariable:u.ColorVariable,OpacityVariable:u.OpacityVariable,VisualVariable:u.VisualVariable,RendererUtil:p.RendererUtil,Symbol3D:d.Symbol3D,LabelSymbol3D:d.LabelSymbol3D,LineSymbol3D:d.LineSymbol3D,PointSymbol3D:d.PointSymbol3D,PolygonSymbol3D:d.PolygonSymbol3D,LineCallout3D:d.LineCallout3D,Callout3D:d.Callout3D,Symbol3DVerticalOffset:d.Symbol3DVerticalOffset,Symbol3DLayer:d.Symbol3DLayer,Symbol3DLayerType:f.Symbol3DLayerType,LineCapType:f.LineCapType,LineJoinType:f.LineJoinType,LineMarkerPlacement:f.LineMarkerPlacement,LineMarkerStyle:f.LineMarkerStyle,LineStyleMarker3D:d.LineStyleMarker3D,LinePatternStyle:f.LinePatternStyle,LineStylePattern3D:d.LineStylePattern3D,LineSymbol3DLayer:d.LineSymbol3DLayer,PathSymbol3DLayer:d.PathSymbol3DLayer,AnchorType:f.AnchorType,ProfileType:f.ProfileType,FillSymbol3DLayer:d.FillSymbol3DLayer,FillSymbol3DOutline:d.FillSymbol3DOutline,PatternStyle:f.PatternStyle,IconSymbol3DLayer:d.IconSymbol3DLayer,PointSymbol3DOutline:d.PointSymbol3DOutline,IconResource:d.IconResource,ObjectSymbol3DLayer:d.ObjectSymbol3DLayer,ExtrudeSymbol3DLayer:d.ExtrudeSymbol3DLayer,Edges3D:d.Edges3D,TextSymbol3DLayer:d.TextSymbol3DLayer,TextHalo:d.TextHalo,WaterSymbol3DLayer:d.WaterSymbol3DLayer,WaterbodySize:f.WaterbodySize,WaveStrength:f.WaveStrength,MaterialType:f.MaterialType,ColorMaterial:d.ColorMaterial,StylePattern3D:d.StylePattern3D,ArcGISVectorTileLayer:u.ArcGISVectorTileLayer,WebTileLayer:u.WebTileLayer,getZoomOffset:u.getZoomOffset,FeatureCollection:u.FeatureCollection,CAttDataRow:a.CAttDataRow,CAttStruct:a.CAttStruct,Interceptor:a.Interceptor,WorkFlowServer:a.WorkFlowServer,TileLayer:u.TileLayer,BaseServer:a.BaseServer,RequestConfig:a.RequestConfig,OverlayLayer:u.OverlayLayer,OGCLayer:u.OGCLayer,UnknownLayer:u.UnknownLayer,getProjectionSrs:h.getProjectionSrs,isWMSReverse:h.isWMSReverse,convertImageSourceToBase64:h.convertImageSourceToBase64,throttle:h.throttle,compareObject:h.compareObject,debouncePromise:h.debouncePromise,inOrderPromise:h.inOrderPromise,allSettled:h.allSettled,LinearUnits:f.LinearUnits,AreaUnits:f.AreaUnits,ArcType:f.ArcType,FetchRequest:a.FetchRequest,TileInfo:u.TileInfo,appendUrlParams:u.appendUrlParams,getFullBaseUrl:u.getFullBaseUrl,LOD:u.LOD,SceneSubLayerType:f.SceneSubLayerType,VectorTileLayer:u.VectorTileLayer,SeverVectorTileSubLayerType:f.SeverVectorTileSubLayerType,ExpressionParser:h.ExpressionParser,VisualVariableType:f.VisualVariableType,TDTLayerType:f.TDTLayerType,TileSliceType:f.TileSliceType,getValidLayers:s.getValidLayers,getLayerViewsGeographicExtent:s.getLayerViewsGeographicExtent,getCrsOptions:s.getCrsOptions,getLayersExtent:s.getLayersExtent};window.MapGISCommon=S,t.FetchServer=a.FetchServer,t.RequestInterceptor=a.RequestInterceptor,t.ResponseInterceptor=a.ResponseInterceptor,t.MapServer=a.MapServer,t.FeatureServer=a.FeatureServer,t.M3DServer=a.M3DServer,t.ImageServer=a.ImageServer,t.GeometryServer=a.GeometryServer,t.AddressServer=a.AddressServer,t.Cesium3DTilesServer=a.Cesium3DTilesServer,t.PoiServer=a.PoiServer,t.TerrainServer=a.TerrainServer,t.SecurityServer=a.SecurityServer,t.RootServer=a.RootServer,t.TileServer=a.TileServer,t.VectorTileServer=a.VectorTileServer,t.PlotServer=a.PlotServer,t.ResourceServer=a.ResourceServer,t.SceneServer=a.SceneServer,t.WMSServer=a.WMSServer,t.WMTSServer=a.WMTSServer,t.WFSServer=a.WFSServer,t.ArcGISMapServer=a.ArcGISMapServer,t.CAllOtherDataItemInfoSource=a.CAllOtherDataItemInfoSource,t.CAnnInfo=a.CAnnInfo,t.CChartLabelFormat=a.CChartLabelFormat,t.CChartTheme=a.CChartTheme,t.CChartThemeInfo=a.CChartThemeInfo,t.CChartThemeRepresentInfo=a.CChartThemeRepresentInfo,t.CChartType=a.CChartType,t.CDotDensityTheme=a.CDotDensityTheme,t.CFourColorTheme=a.CFourColorTheme,t.CGraduatedSymbolTheme=a.CGraduatedSymbolTheme,t.CLinInfo=a.CLinInfo,t.CMultiClassTheme=a.CMultiClassTheme,t.CPntInfo=a.CPntInfo,t.CRandomTheme=a.CRandomTheme,t.CRangeTheme=a.CRangeTheme,t.CRangeThemeInfo=a.CRangeThemeInfo,t.CRegInfo=a.CRegInfo,t.CSimpleTheme=a.CSimpleTheme,t.CTheme=a.CTheme,t.CThemeInfo=a.CThemeInfo,t.CUniqueTheme=a.CUniqueTheme,t.CUniqueThemeInfo=a.CUniqueThemeInfo,t.ExpInfo=a.ExpInfo,t.FolderInfo=a.FolderInfo,t.FolderInfoAttribute=a.FolderInfoAttribute,t.ItemValue=a.ItemValue,t.ThemeServer=a.ThemeServer,t.ThemesInfo=a.ThemesInfo,t.ArcGISGeometryServer=a.ArcGISGeometryServer,t.ArcGISFeatureServer=a.ArcGISFeatureServer,t.ArcGISVectorTileServer=a.ArcGISVectorTileServer,t.Map=u.Map,t.Basemap=u.Basemap,t.ArcGISMapImageLayer=u.ArcGISMapImageLayer,t.M3DModelCacheLayer=u.M3DModelCacheLayer,t.ArcGISMapImageSubLayer=u.ArcGISMapImageSubLayer,t.ArcGISTileLayer=u.ArcGISTileLayer,t.WMTSLayer=u.WMTSLayer,t.WMSLayer=u.WMSLayer,t.WMSSubLayer=u.WMSSubLayer,t.WFSLayer=u.WFSLayer,t.WMTSSubLayer=u.WMTSSubLayer,t.IGSVectorTileLayer=u.IGSVectorTileLayer,t.IGSVectorTileSubLayer=u.IGSVectorTileSubLayer,t.IGSMapImageLayer=u.IGSMapImageLayer,t.IGSMapImageSubLayer=u.IGSMapImageSubLayer,t.IGSSceneLayer=u.IGSSceneLayer,t.IGSSceneSubLayer=u.IGSSceneSubLayer,t.IGSTileLayer=u.IGSTileLayer,t.Scene=u.Scene,t.IGSFeatureLayer=u.IGSFeatureLayer,t.EchartsLayer=u.EchartsLayer,t.MapVLayer=u.MapVLayer,t.GroupLayer=u.GroupLayer,t.GraphicsLayer=u.GraphicsLayer,t.GeoJSONLayer=u.GeoJSONLayer,t.Cesium3DTilesCacheLayer=u.Cesium3DTilesCacheLayer,t.TerrainCacheLayer=u.TerrainCacheLayer,t.VideoLayer=u.VideoLayer,t.Layer=u.Layer,t.Projection=c.Projection,t.WMTSStyle=c.WMTSStyle,t.CoordnateTransform=c.CoordnateTransform,t.SketchEditor=y.SketchEditor,t.SketchEditor3D=y.SketchEditor3D,t.SketchBaseDrawTool=y.SketchBaseDrawTool,t.SketchPointDrawTool=y.SketchPointDrawTool,t.SketchPolylineDrawTool=y.SketchPolylineDrawTool,t.SketchPolygonDrawTool=y.SketchPolygonDrawTool,t.SketchCircleDrawTool=y.SketchCircleDrawTool,t.SketchExtentDrawTool=y.SketchExtentDrawTool,t.SketchFreehandPolylineDrawTool=y.SketchFreehandPolylineDrawTool,t.SketchFreehandPolygonDrawTool=y.SketchFreehandPolygonDrawTool,t.SketchStyle=y.SketchStyle,t.SketchEditorEvent=y.SketchEditorEvent,t.Extent=l.Extent,t.Polygon=l.Polygon,t.LineString=l.LineString,t.Point=l.Point,t.Circle=l.Circle,t.MultiPolygon=l.MultiPolygon,t.MultiLineString=l.MultiLineString,t.MultiPoint=l.MultiPoint,t.GeometryEngine=l.GeometryEngine,t.Color=c.Color,t.Font=c.Font,t.LayerEvent=c.LayerEvent,t.Event=c.Event,t.Zondy=_,t.zondy=v,t.Evented=c.Evented,t.FeatureRender=c.FeatureRender,t.ErrorEvent=c.ErrorEvent,t.Collection=c.Collection,t.FeatureSet=c.FeatureSet,t.Feature=c.Feature,t.getFeaturesFromFeatureSet=c.getFeaturesFromFeatureSet,t.ReturnFormat=f.ReturnFormat,t.FetchMethod=f.FetchMethod,t.LayerEventType=f.LayerEventType,t.MapEventType=f.MapEventType,t.StatisticType=f.StatisticType,t.SpatialRelation=f.SpatialRelation,t.CustomWKID=f.CustomWKID,t.GeometryType=f.GeometryType,t.LayerType=f.LayerType,t.TokenAttachType=f.TokenAttachType,t.IGSGeometryType=f.IGSGeometryType,t.LogType=f.LogType,t.LoadStatus=f.LoadStatus,t.ViewEventType=f.ViewEventType,t.LengthUnit=f.LengthUnit,t.AngleUnit=f.AngleUnit,t.RendererType=f.RendererType,t.VectorTileGeometryType=f.VectorTileGeometryType,t.VideoSourceType=f.VideoSourceType,t.SketchDataType=f.SketchDataType,t.SketchEditMode=f.SketchEditMode,t.SketchEditorEventType=f.SketchEditorEventType,t.SketchEditorState=f.SketchEditorState,t.SketchEditorToolEventType=f.SketchEditorToolEventType,t.IGSRendererType=f.IGSRendererType,t.SymbolType=f.SymbolType,t.IGSSymbolType=f.IGSSymbolType,t.ElevationMode=f.ElevationMode,t.ElevationInfo=c.ElevationInfo,t.ProjectInfo=c.ProjectInfo,t.OutStatistic=c.OutStatistic,t.TileMatrixSet=c.TileMatrixSet,t.ProjectInfoBySrsID=c.ProjectInfoBySrsID,t.FeatureExpressionInfo=c.FeatureExpressionInfo,t.HorizontalAlignment=f.HorizontalAlignment,t.VerticalAlignment=f.VerticalAlignment,t.SceneMode=f.SceneMode,t.ShadowMode=f.ShadowMode,t.SimpleFillSymbol=d.SimpleFillSymbol,t.SimpleLineSymbol=d.SimpleLineSymbol,t.SimpleMarkerSymbol=d.SimpleMarkerSymbol,t.TextSymbol=d.TextSymbol,t.Symbol=d.Symbol,t.PictureMarkerSymbol=d.PictureMarkerSymbol,t.PictureFillSymbol=d.PictureFillSymbol,t.MapGISTextSymbol=d.MapGISTextSymbol,t.UniqueValueRenderer=u.UniqueValueRenderer,t.ClassBreakRenderer=u.ClassBreakRenderer,t.SimpleRenderer=u.SimpleRenderer,t.ClusterRenderer=u.ClusterRenderer,t.RandomRenderer=u.RandomRenderer,t.RankRenderer=u.RankRenderer,t.HeatmapRenderer=u.HeatmapRenderer,t.BaseRenderer=u.BaseRenderer,t.getIGSDynamicLayer=u.getIGSDynamicLayer,t.extend=h.extend,t.isArray=h.isArray,t.isNumber=h.isNumber,t.isInTheSameDomain=h.isInTheSameDomain,t.transformResult=h.transformResult,t.urlAppend=h.urlAppend,t.getParameterString=h.getParameterString,t.bind=h.bind,t.getGUID=h.getGUID,t.defaultValue=h.defaultValue,t.defined=h.defined,t.normalize=h.normalize,t.createGeometry=h.createGeometry,t.isNull=h.isNull,t.getGeometryParameter=h.getGeometryParameter,t.getOutStatisticsParameter=h.getOutStatisticsParameter,t.Log=h.Log,t.isString=h.isString,t.deepClone=h.deepClone,t.isBoolean=h.isBoolean,t.extendDeep=h.extendDeep,t.newGuid=h.newGuid,t.formatPoints=h.formatPoints,t.returnPoint=h.returnPoint,t.cloneObject=h.cloneObject,t.notNULL=h.notNULL,t.isObject=h.isObject,t.getVideoType=h.getVideoType,t.toJSON=h.toJSON,t.getBaseUrl=h.getBaseUrl,t.inputCss=h.inputCss,t.BaseView=p.BaseView,t.MapView=p.MapView,t.SceneView=p.SceneView,t.BaseGraphicsLayerView=p.BaseGraphicsLayerView,t.BaseRendererLayerView=p.BaseRendererLayerView,t.GroupLayerView=p.GroupLayerView,t.LayerView=p.LayerView,t.SpatialReference=l.SpatialReference,t.UrlServerType=f.UrlServerType,t.PictureFormat=f.PictureFormat,t.getUrlType=u.getUrlType,t.is4326=u.is4326,t.isCustomSP=u.isCustomSP,t.EPSG=c.EPSG,t.proj4=i.default,t.T=o,t.showLayerByScale=u.showLayerByScale,t.formatBaseUrl=a.formatBaseUrl,t.RadiusUnit=f.RadiusUnit,t.Geometry=l.Geometry,t.editFeatureByArc3=l.editFeatureByArc3,t.editGeometryByArc3=l.editGeometryByArc3,t.Config=a.Config,t.ServiceConfigToken=a.ServiceConfigToken,t.ServiceConfigRequestInterceptors=a.ServiceConfigRequestInterceptors,t.createSimpleMarkerSymbolCanvas=g.createSimpleMarkerSymbolCanvas,t.createSimpleFillSymbolCanvas=g.createSimpleFillSymbolCanvas,t.BaseFeatureLayerView=p.BaseFeatureLayerView,t.TileInfoUtil=u.TileInfoUtil,t.WMTSCorporation=f.WMTSCorporation,t.setElevationInfo=u.setElevationInfo,t.LabelClass=u.LabelClass,t.HeatmapColorStop=u.HeatmapColorStop,t.SizeVariable=u.SizeVariable,t.ColorVariable=u.ColorVariable,t.OpacityVariable=u.OpacityVariable,t.VisualVariable=u.VisualVariable,t.RendererUtil=p.RendererUtil,t.Symbol3D=d.Symbol3D,t.LabelSymbol3D=d.LabelSymbol3D,t.LineSymbol3D=d.LineSymbol3D,t.PointSymbol3D=d.PointSymbol3D,t.PolygonSymbol3D=d.PolygonSymbol3D,t.LineCallout3D=d.LineCallout3D,t.Callout3D=d.Callout3D,t.Symbol3DVerticalOffset=d.Symbol3DVerticalOffset,t.Symbol3DLayer=d.Symbol3DLayer,t.Symbol3DLayerType=f.Symbol3DLayerType,t.LineCapType=f.LineCapType,t.LineJoinType=f.LineJoinType,t.LineMarkerPlacement=f.LineMarkerPlacement,t.LineMarkerStyle=f.LineMarkerStyle,t.LineStyleMarker3D=d.LineStyleMarker3D,t.LinePatternStyle=f.LinePatternStyle,t.LineStylePattern3D=d.LineStylePattern3D,t.LineSymbol3DLayer=d.LineSymbol3DLayer,t.PathSymbol3DLayer=d.PathSymbol3DLayer,t.AnchorType=f.AnchorType,t.ProfileType=f.ProfileType,t.FillSymbol3DLayer=d.FillSymbol3DLayer,t.FillSymbol3DOutline=d.FillSymbol3DOutline,t.PatternStyle=f.PatternStyle,t.IconSymbol3DLayer=d.IconSymbol3DLayer,t.PointSymbol3DOutline=d.PointSymbol3DOutline,t.IconResource=d.IconResource,t.ObjectSymbol3DLayer=d.ObjectSymbol3DLayer,t.ExtrudeSymbol3DLayer=d.ExtrudeSymbol3DLayer,t.Edges3D=d.Edges3D,t.TextSymbol3DLayer=d.TextSymbol3DLayer,t.TextHalo=d.TextHalo,t.WaterSymbol3DLayer=d.WaterSymbol3DLayer,t.WaterbodySize=f.WaterbodySize,t.WaveStrength=f.WaveStrength,t.MaterialType=f.MaterialType,t.ColorMaterial=d.ColorMaterial,t.StylePattern3D=d.StylePattern3D,t.ArcGISVectorTileLayer=u.ArcGISVectorTileLayer,t.WebTileLayer=u.WebTileLayer,t.getZoomOffset=u.getZoomOffset,t.FeatureCollection=u.FeatureCollection,t.CAttDataRow=a.CAttDataRow,t.CAttStruct=a.CAttStruct,t.Interceptor=a.Interceptor,t.WorkFlowServer=a.WorkFlowServer,t.TileLayer=u.TileLayer,t.BaseServer=a.BaseServer,t.RequestConfig=a.RequestConfig,t.UnknownLayer=u.UnknownLayer,t.OverlayLayer=u.OverlayLayer,t.OGCLayer=u.OGCLayer,t.getProjectionSrs=h.getProjectionSrs,t.isWMSReverse=h.isWMSReverse,t.convertImageSourceToBase64=h.convertImageSourceToBase64,t.throttle=h.throttle,t.compareObject=h.compareObject,t.debouncePromise=h.debouncePromise,t.inOrderPromise=h.inOrderPromise,t.allSettled=h.allSettled,t.LinearUnits=f.LinearUnits,t.AreaUnits=f.AreaUnits,t.ArcType=f.ArcType,t.FetchRequest=a.FetchRequest,t.TileInfo=u.TileInfo,t.appendUrlParams=u.appendUrlParams,t.getFullBaseUrl=u.getFullBaseUrl,t.LOD=u.LOD,t.convertIGSClippingString=a.convertIGSClippingString,t.SceneSubLayerType=f.SceneSubLayerType,t.GeometryFilter=a.GeometryFilter,t.ColorNameToHexMap=f.ColorNameToHexMap,t.SeverVectorTileSubLayerType=f.SeverVectorTileSubLayerType,t.VisualVariableType=f.VisualVariableType,t.TDTLayerType=f.TDTLayerType,t.TileSliceType=f.TileSliceType,t.VectorTileLayer=u.VectorTileLayer,t.ExpressionParser=h.ExpressionParser,t.isLayerViewValid=s.isLayerViewValid,t.getValidLayers=s.getValidLayers,t.getLayerViewsGeographicExtent=s.getLayerViewsGeographicExtent,t.getCrsOptions=s.getCrsOptions,t.getLayersExtent=s.getLayersExtent},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(100),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(102)("keys"),i=r(82);e.exports=function(e){return n[e]||(n[e]=i(e))}},function(e,t,r){var n=r(12),i=r(20),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(69)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(26),i=r(20).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){var n=r(26);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(24),i=r(138),o=r(103),a=r(101)("IE_PROTO"),s=function(){},u=function(){var e,t=r(104)("iframe"),n=o.length;for(t.style.display="none",r(142).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(68),i=r(21)("toStringTag"),o="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:o?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,r){var n=r(107),i=r(21)("iterator"),o=r(61);e.exports=r(12).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){"use strict";var n=r(84);e.exports.f=function(e){return new function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}(e)}},function(e,t,r){t.f=r(21)},function(e,t,r){var n=r(20),i=r(12),o=r(69),a=r(110),s=r(28).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(11)),i=p(r(23)),o=p(r(49)),a=p(r(3)),s=p(r(0)),u=p(r(2)),l=p(r(4)),c=p(r(5)),h=r(1),f=p(r(73)),d=r(40);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,s.default)(this,t);var r=(0,l.default)(this,(t.__proto__||(0,a.default)(t)).call(this));return r.type="collection",e instanceof t?r._items=e.all():Array.isArray(e)?r._items=e:r._items=[],r._items=r._items.map(function(e){return r.createInstance(e)}),r}return(0,c.default)(t,e),(0,u.default)(t,[{key:"add",value:function(e,t){return this._add(e,t),this._fireCollectionChangeEvent({added:[e],target:this,sourceTarget:this}),this}},{key:"addMany",value:function(e,t){var r=this;if(Array.isArray(e)){var n=e.map(function(e){return r.createInstance(e)}),i=this._getNextIndex(t);n.forEach(function(e,t){r._items.splice(i+t,0,e)}),this._fireCollectionChangeEvent({target:this,sourceTarget:this,added:n})}}},{key:"at",value:function(e){return(e=Number(e))>=0?this._items[e]:this._items[this._items.length-1+e]}},{key:"clone",value:function(){for(var e=[],r=0;r<this._items.length;r++)e.push((0,h.cloneObject)(this.items[r]));return new t(e)}},{key:"concat",value:function(e){var t=e;e instanceof this.constructor?t=e.all():e instanceof Array?t=e:"object"===(void 0===e?"undefined":(0,o.default)(e))&&(t=[],(0,i.default)(e).forEach(function(r){t.push(e[r])}));var r=this._items;return t.forEach(function(e){r.push(e)}),new this.constructor(r)}},{key:"every",value:function(e){var t=!0;if(!(e instanceof Function))return!1;for(var r=0;r<this._items.length;r++)if(!e(this._items[r])){t=!1;break}return t}},{key:"filter",value:function(e){if(e instanceof Function){for(var r=[],n=0;n<this._items.length;n++)e(this._items[n])&&r.push(this._items[n]);return new t(r)}}},{key:"find",value:function(e){if(e instanceof Function){for(var t=void 0,r=0;r<this._items.length;r++)if(e(this._items[r])){t=this._items[r];break}return t}}},{key:"findIndex",value:function(e){return this._items.findIndex(e)}},{key:"flatten",value:function(e){if(e instanceof Function){for(var r=[],n=0;n<this._items.length;n++)r.push(this._items[n]);for(var i=0;i<r.length;i++)r=r.concat(o(r[i],e));return new t(r)}function o(e,r){var n=r(e);if(n){if(n instanceof Array)return n;if(n instanceof t){for(var i=n.toArray(),a=0;a<n._items.length;a++)i=i.concat(o(n._items[a],r));return i}return[n]}return[]}}},{key:"forEach",value:function(e){return this._items.forEach(e)}},{key:"getItemAt",value:function(e){return this._items[e]}},{key:"includes",value:function(e){return this._items.includes(e)}},{key:"indexOf",value:function(e,t){return this._items.indexOf(e,t)}},{key:"join",value:function(e){for(var t="",r=0;r<this._items.length-1;r++)t+=this._items[r]+e;return t+this._items[this._items.length-1]}},{key:"lastIndexOf",value:function(e,t){for(var r=-1,n=t=(0,h.defaultValue)(t,this._items.length-1);n>=0;n--)if(this._items[n]===e){r=n;break}return r}},{key:"map",value:function(e){var t=this;if(Array.isArray(this._items))return new this.constructor(this._items.map(e));var r={};return(0,i.default)(this._items).forEach(function(n){r[n]=e(t._items[n],n)}),new this.constructor(r)}},{key:"pop",value:function(){return this._items.pop()}},{key:"push",value:function(e){return this.add(e)}},{key:"reduce",value:function(e,t){var r=this,n=null;return void 0!==t&&(n=t),Array.isArray(this._items)?this._items.forEach(function(t){n=e(n,t)}):(0,i.default)(this._items).forEach(function(t){n=e(n,r._items[t],t)}),n}},{key:"reduceRight",value:function(e,r){for(var n=[],i=this._items.length-1;i>=0;i--)n.push(this._items[i]);return new t(n).reduce(e,r)}},{key:"remove",value:function(e){var t=this._remove(e);return t&&this._fireCollectionChangeEvent({removed:[e],target:this,sourceTarget:this}),t}},{key:"removeAll",value:function(){this._items=[],this._fireCollectionChangeEvent({target:this,sourceTarget:this})}},{key:"removeAt",value:function(e){var t=this._items.splice(e,1);return this._fireCollectionChangeEvent({target:this,sourceTarget:this}),t}},{key:"removeMany",value:function(e){var t=this;if(Array.isArray(e)){for(var r=[],n=[],i=function(i){var o=t._items.findIndex(function(t){return t===e[i]});o>-1&&(n.push(o),r.push(e[i]))},o=0;o<e.length;o++)i(o);return r.length>0&&(this._items=this._items.filter(function(e,t){return n.every(function(e){return e!==t})}),this._fireCollectionChangeEvent({removed:r,target:this,sourceTarget:this})),r}}},{key:"reorder",value:function(e,t){this._reorder(e,t)&&this._fireCollectionChangeEvent({moved:[e],target:this,sourceTarget:this})}},{key:"reverse",value:function(){var e=[].concat(this._items).reverse();return new this.constructor(e)}},{key:"shift",value:function(){return this._items.shift()}},{key:"slice",value:function(e,t){var r=this._items.slice(e);return void 0!==t&&(r=r.slice(0,t)),new this.constructor(r)}},{key:"some",value:function(e){if(!(e instanceof Function))return!1;for(var t=!1,r=0;r<this._items.length;r++)if(e(this._items[r])){t=!0;break}return t}},{key:"sort",value:function(e){var t=[].concat(this._items);return void 0===e?this.every(function(e){return"number"==typeof e})?t.sort(function(e,t){return e-t}):t.sort():t.sort(e),new this.constructor(t)}},{key:"splice",value:function(e,r){for(var n,i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return new t((n=this._items).splice.apply(n,[e,r].concat(o)))}},{key:"toArray",value:function(){for(var e=[],t=0;t<this._items.length;t++)e.push(this.items[t]);return e}},{key:"unshift",value:function(){var e;(e=this._items).unshift.apply(e,arguments)}},{key:"all",value:function(){return this.toArray()}},{key:"unique",value:function(e){var t=void 0;if(void 0===e)t=this._items.filter(function(e,t,r){return r.indexOf(e)===t});else{t=[];for(var r=[],n=0,i=this._items.length;n<i;n+=1){var o;o=e instanceof Function?e(this._items[n]):this._items[n][e],-1===r.indexOf(o)&&(t.push(this._items[n]),r.push(o))}}return new this.constructor(t)}},{key:"createInstance",value:function(e){return e}},{key:"_fireCollectionChangeEvent",value:function(e){if(this.fire("change",new d.CollectionChangeEvent(e),!1),this.fire("collection-refresh",new d.CollectionChangeEvent(e),!1),this._parentCollection)for(var t=this._parentCollection;t;)t.fire("collection-refresh",new d.CollectionChangeEvent(e),!1),t=t._parentCollection}},{key:"_addParentCollection",value:function(e){this._parentCollection=e}},{key:"_removeParentCollection",value:function(){this._parentCollection=void 0}},{key:"_getNextIndex",value:function(e){return e=(0,h.defaultValue)(e,this._items.length),Math.max(0,Math.min(this._items.length,e))}},{key:"_add",value:function(e,t){var r=this.createInstance(e);this._items.splice(this._getNextIndex(t),0,r)}},{key:"_remove",value:function(e){var t=this._items.indexOf(e);return t>-1&&(this._items.splice(t,1),!0)}},{key:"_reorder",value:function(e,t){var r=this._items.length;t=(0,h.defaultValue)(t,r-1);var n=this._items.indexOf(e);return n>-1&&(t=Math.min(Math.max(0,t),r-1))!==n&&(this._items.splice(n,1),this._items.splice(t,0,e),!0)}}],[{key:"isCollection",value:function(e){return e instanceof t}}]),t}(f.default);(0,n.default)(y.prototype,{items:{get:function(){return this._items},set:function(e){var t=this;this._items=e;var r=e.map(function(e){return t.createInstance(e)});this._fireCollectionChangeEvent({target:this,sourceTarget:this,added:r})}},length:{get:function(){return this._items.length}}}),t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.family=(0,o.defaultValue)(t.family,"微软雅黑"),this.size=(0,o.defaultValue)(t.size,12),this.style=(0,o.defaultValue)(t.style,"normal"),this.weight=(0,o.defaultValue)(t.weight,"normal"),this.decoration=(0,o.defaultValue)(t.decoration,"none")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.family=this.family,e.size=this.size,e.style=this.style,e.weight=this.weight,e.decoration=this.decoration,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{id:2348,name:"高斯大地坐标系_西安80_23带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2347,name:"高斯大地坐标系_西安80_22带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2346,name:"高斯大地坐标系_西安80_21带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2345,name:"高斯大地坐标系_西安80_20带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2344,name:"高斯大地坐标系_西安80_19带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2343,name:"高斯大地坐标系_西安80_18带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2342,name:"高斯大地坐标系_西安80_17带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2341,name:"高斯大地坐标系_西安80_16带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2340,name:"高斯大地坐标系_西安80_15带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2339,name:"高斯大地坐标系_西安80_14带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2338,name:"高斯大地坐标系_西安80_13带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2390,name:"高斯大地坐标系_西安80_45带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2389,name:"高斯大地坐标系_西安80_44带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2388,name:"高斯大地坐标系_西安80_43带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2387,name:"高斯大地坐标系_西安80_42带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2386,name:"高斯大地坐标系_西安80_41带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2385,name:"高斯大地坐标系_西安80_40带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2384,name:"高斯大地坐标系_西安80_39带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2383,name:"高斯大地坐标系_西安80_38带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2382,name:"高斯大地坐标系_西安80_37带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2381,name:"高斯大地坐标系_西安80_36带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2380,name:"高斯大地坐标系_西安80_35带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2379,name:"高斯大地坐标系_西安80_34带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2378,name:"高斯大地坐标系_西安80_33带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2377,name:"高斯大地坐标系_西安80_32带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2376,name:"高斯大地坐标系_西安80_31带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2375,name:"高斯大地坐标系_西安80_30带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2374,name:"高斯大地坐标系_西安80_29带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2373,name:"高斯大地坐标系_西安80_28带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2372,name:"高斯大地坐标系_西安80_27带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2371,name:"高斯大地坐标系_西安80_26带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2370,name:"高斯大地坐标系_西安80_25带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2327,name:"高斯大地坐标系_西安80_13带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2328,name:"高斯大地坐标系_西安80_14带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2329,name:"高斯大地坐标系_西安80_15带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2330,name:"高斯大地坐标系_西安80_16带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2331,name:"高斯大地坐标系_西安80_17带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2332,name:"高斯大地坐标系_西安80_18带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2333,name:"高斯大地坐标系_西安80_19带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2334,name:"高斯大地坐标系_西安80_20带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2335,name:"高斯大地坐标系_西安80_21带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2336,name:"高斯大地坐标系_西安80_22带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2337,name:"高斯大地坐标系_西安80_23带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2403,name:"高斯大地坐标系_西安80_27带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2404,name:"高斯大地坐标系_西安80_28带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2405,name:"高斯大地坐标系_西安80_29带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2406,name:"高斯大地坐标系_西安80_30带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2407,name:"高斯大地坐标系_西安80_31带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2408,name:"高斯大地坐标系_西安80_32带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2409,name:"高斯大地坐标系_西安80_33带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2410,name:"高斯大地坐标系_西安80_34带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2411,name:"高斯大地坐标系_西安80_35带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2412,name:"高斯大地坐标系_西安80_36带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2413,name:"高斯大地坐标系_西安80_37带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2414,name:"高斯大地坐标系_西安80_38带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2415,name:"高斯大地坐标系_西安80_39带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2416,name:"高斯大地坐标系_西安80_40带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2417,name:"高斯大地坐标系_西安80_41带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2418,name:"高斯大地坐标系_西安80_42带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2419,name:"高斯大地坐标系_西安80_43带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2420,name:"高斯大地坐标系_西安80_44带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2421,name:"高斯大地坐标系_西安80_45带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2349,name:"高斯大地坐标系_西安80_25带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2350,name:"高斯大地坐标系_西安80_26带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2351,name:"高斯大地坐标系_西安80_27带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2352,name:"高斯大地坐标系_西安80_28带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2353,name:"高斯大地坐标系_西安80_29带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2354,name:"高斯大地坐标系_西安80_30带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2355,name:"高斯大地坐标系_西安80_31带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2356,name:"高斯大地坐标系_西安80_32带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2357,name:"高斯大地坐标系_西安80_33带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2358,name:"高斯大地坐标系_西安80_34带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2359,name:"高斯大地坐标系_西安80_35带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2360,name:"高斯大地坐标系_西安80_36带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2361,name:"高斯大地坐标系_西安80_37带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2362,name:"高斯大地坐标系_西安80_38带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2363,name:"高斯大地坐标系_西安80_39带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2364,name:"高斯大地坐标系_西安80_40带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2365,name:"高斯大地坐标系_西安80_41带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2366,name:"高斯大地坐标系_西安80_42带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2367,name:"高斯大地坐标系_西安80_43带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2368,name:"高斯大地坐标系_西安80_44带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2369,name:"高斯大地坐标系_西安80_45带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:21413,name:"高斯大地坐标系_北京54_13带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21414,name:"高斯大地坐标系_北京54_14带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21415,name:"高斯大地坐标系_北京54_15带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21416,name:"高斯大地坐标系_北京54_16带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21417,name:"高斯大地坐标系_北京54_17带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21418,name:"高斯大地坐标系_北京54_18带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21419,name:"高斯大地坐标系_北京54_19带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21420,name:"高斯大地坐标系_北京54_20带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21421,name:"高斯大地坐标系_北京54_21带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21422,name:"高斯大地坐标系_北京54_22带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21423,name:"高斯大地坐标系_北京54_23带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2431,name:"高斯大地坐标系_北京54_34带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2401,name:"高斯大地坐标系_北京54_25带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2402,name:"高斯大地坐标系_北京54_26带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:32646,name:"Beijing 1954 / 3-degree Gauss-Kruger CM 102E",type:1,strProject:"+proj=utm +zone=46 +datum=WGS84 +units=m +no_defs"},{id:4502,name:"高斯大地坐标系_中国2000_13带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4503,name:"高斯大地坐标系_中国2000_14带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4504,name:"高斯大地坐标系_中国2000_15带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4505,name:"高斯大地坐标系_中国2000_16带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4506,name:"高斯大地坐标系_中国2000_17带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4507,name:"高斯大地坐标系_中国2000_18带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4508,name:"高斯大地坐标系_中国2000_19带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4509,name:"高斯大地坐标系_中国2000_20带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4510,name:"高斯大地坐标系_中国2000_21带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4511,name:"高斯大地坐标系_中国2000_22带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4512,name:"高斯大地坐标系_中国2000_23带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4513,name:"高斯大地坐标系_中国2000_25带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4514,name:"高斯大地坐标系_中国2000_26带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4515,name:"高斯大地坐标系_中国2000_27带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4516,name:"高斯大地坐标系_中国2000_28带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4517,name:"高斯大地坐标系_中国2000_29带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4518,name:"高斯大地坐标系_中国2000_30带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4519,name:"高斯大地坐标系_中国2000_31带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4520,name:"高斯大地坐标系_中国2000_32带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4521,name:"高斯大地坐标系_中国2000_33带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4522,name:"高斯大地坐标系_中国2000_34带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4523,name:"高斯大地坐标系_中国2000_35带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4524,name:"高斯大地坐标系_中国2000_36带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4525,name:"高斯大地坐标系_中国2000_37带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4526,name:"高斯大地坐标系_中国2000_38带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4527,name:"高斯大地坐标系_中国2000_39带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4528,name:"高斯大地坐标系_中国2000_40带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4529,name:"高斯大地坐标系_中国2000_41带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4530,name:"高斯大地坐标系_中国2000_42带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4531,name:"高斯大地坐标系_中国2000_43带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4532,name:"高斯大地坐标系_中国2000_44带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4533,name:"高斯大地坐标系_中国2000_45带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4546,name:"高斯大地坐标系_中国2000_37带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4547,name:"高斯大地坐标系_中国2000_38带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4545,name:"高斯大地坐标系_中国2000_36带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:3857,name:"Web墨卡托_WGS1984",type:1,strProject:"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"},{id:900913,name:"天地图3857",type:1,strProject:"+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs +type=crs"},{id:4610,name:"地理坐标系(西安)_度",type:0,strProject:"+proj=longlat +a=6378140 +b=6356755.288157528 +units=degrees +no_defs"},{id:4214,name:"地理坐标系(北京)_度",type:0,strProject:"+proj=longlat +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +no_defs"},{id:4490,name:"中国2000国家大地坐标系_度",type:0,strProject:"+proj=longlat +ellps=GRS80 +units=degrees +no_defs"},{id:4326,name:"WGS1984_度",type:0,strProject:"+proj=longlat +datum=WGS84 +no_defs +type=crs"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={default:"default",line:"simple-line",simpleLine:"simple-line",fill:"simple-fill",simpleFill:"simple-fill",marker:"simple-marker",simpleMarker:"simple-marker",pictureMarker:"picture-marker",text:"text",pictureFill:"picture-fill",mapgisText:"mapgis-text",point3D:"point-3d",polygon3D:"polygon-3d",line3D:"line-3d",label3D:"label-3d"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={left:"left",right:"right",center:"center"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={baseline:"baseline",top:"top",middle:"middle",bottom:"bottom"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={butt:"butt",round:"round",square:"square"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={bevel:"bevel",miter:"miter",round:"round"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={gcj02ll:20010201,gcj02mc:20010202,bd09ll:20020901,bd09mc:20020902}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeaturesFromFeatureSet=t.FeatureSet=t.Feature=void 0;var n=a(r(162)),i=a(r(371)),o=r(372);function a(e){return e&&e.__esModule?e:{default:e}}t.Feature=n.default,t.FeatureSet=i.default,t.getFeaturesFromFeatureSet=o.getFeaturesFromFeatureSet},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(1),c=r(6),h=d(r(361)),f=d(r(362));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.simpleLine,r.cap=(0,l.defaultValue)(e.cap,"round"),r.join=(0,l.defaultValue)(e.join,"round"),r.miterLimit=(0,l.defaultValue)(e.miterLimit,2),r.style=(0,l.defaultValue)(e.style,"solid");var o=(0,l.defaultValue)(e.marker,null);return o?(o.color=(0,l.defaultValue)(o.color,r.color.clone()),r.marker=f.default.fromJSON(o)):r.marker=null,r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.cap=this.cap,e.join=this.join,e.miterLimit=this.miterLimit,e.style=this.style,e.marker=this.marker?this.marker.toJSON():null,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(h.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,[{key:"drawFeature",value:function(e,t){}},{key:"updateFeature",value:function(e,t,r){}},{key:"clearFeature",value:function(e,t){}},{key:"clear",value:function(e){}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),t=(0,i.defaultValue)(t,{}),this.before=(0,i.defaultValue)(t.success,void 0),this.failure=(0,i.defaultValue)(t.failure,void 0)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),t=(0,i.defaultValue)(t,{}),this.success=(0,i.defaultValue)(t.success,void 0),this.failure=(0,i.defaultValue)(t.failure,void 0)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.default=function(e,t,r){var i=(0,n.defaultValue)(r,{});(0,n.extend)(this,i),this.FID=(0,n.defaultValue)(t,0),this.Values=(0,n.defaultValue)(e,null)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLayersExtent=t.getCrsOptions=t.getLayerViewsGeographicExtent=t.getValidLayers=t.isLayerViewValid=void 0;var n=r(9),i=r(6),o=r(8),a=r(1),s=r(64);function u(e,t){var r=!1;if(t&&t.spatialReference&&e){var o=e;o instanceof n.SpatialReference||(o=n.SpatialReference.fromJSON(o)),r=!i.LayerType.isTileLayer(t.type)||o.equals(t.spatialReference)||o.isGeographic&&t.spatialReference.isGeographic||o.isWebMercator&&t.spatialReference.isWebMercator}return r}t.isLayerViewValid=u,t.getValidLayers=function(e,t){var r=e.spatialReference,n=[];return t.forEach(function(e){u(r,e)&&n.push(e)}),n},t.getLayerViewsGeographicExtent=function(e,t,r){var i=e.extent,a=r._getLayersExtent(t);return a||(a=n.Extent.fromJSON(i.toJSON())),o.Projection.project(a,new n.SpatialReference("EPSG:4326"))},t.getCrsOptions=function(e,t,r){r=(0,a.defaultValue)(r,{});var o=(0,a.defaultValue)(r.fullExtent,void 0),u=(0,a.defaultValue)(r.mergeLevelRatio,1.05),l=e.tileInfo,c=e.spatialReference;if(e.type===i.LayerType.wmts)l=e.getCurrentTileInfo();else if(e.type===i.LayerType.wms)l=s.TileInfoUtil.parseWMSTileInfo(e,e.extent);else if(e.type===i.LayerType.igsMapImage||e.type===i.LayerType.arcgisMapImage||e.type===i.LayerType.igsFeature||e.type===i.LayerType.wfs||e.type===i.LayerType.geojson){var h=256;e.imageWidth&&e.imageHeight&&(h=Math.max(e.imageWidth,e.imageHeight)),l=s.TileInfoUtil.generateTileInfo(o,h,c)}var f=n.Point.toCoordinates(l.origin),d=[];t.forEach(function(e){var t=[];for(e.tileInfo?t=e.tileInfo.lods.map(function(e){return e.clone()}):e.type===i.LayerType.wmts&&(t=e.getCurrentTileInfo().lods.map(function(e){return e.clone()}));t.length>0&&0!==t[0].level;){var r=t[0];t.unshift(s.LOD.fromJSON({level:r.level-1,resolution:2*r.resolution,scale:2*r.scale}))}d=d.concat(t)}),0===d.length&&(d=l.lods),d.sort(function(e,t){return t.resolution-e.resolution});for(var p=[d[0]],y=1;y<d.length;y++){var g=d[y];p[p.length-1].resolution/g.resolution<=u||p.push(g)}return p.forEach(function(e,t){e.level=t}),{spatialReference:c,resolutions:p.map(function(e){return e.resolution}),origin:f,extent:o,lods:p,tileSize:l.getTileSize(),tileSliceType:e.tileSliceType}},t.getLayersExtent=function(e,t){var r=void 0;return e.forEach(function(e){if(e.extent){var i=void 0;i=s.TileInfoUtil.isSameSpatialReference(e.spatialReference,t)?e.extent:o.Projection.project(e.extent,t),e.spatialReference&&t&&e.loaded&&(r?(r.xmin>i.xmin&&(r.xmin=i.xmin),r.ymin>i.ymin&&(r.ymin=i.ymin),r.xmax<i.xmax&&(r.xmax=i.xmax),r.ymax<i.ymax&&(r.ymax=i.ymax)):r=n.Extent.fromJSON(i.toJSON()))}}),r&&r.spatialReference&&!r.spatialReference.isGeographic&&(r=o.Projection.project(r,t)),r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(11)),i=y(r(22)),o=y(r(3)),a=y(r(0)),s=y(r(2)),u=y(r(4)),l=y(r(7)),c=y(r(5)),h=r(8),f=r(15),d=r(1),p=r(9);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));e=(0,d.defaultValue)(e,{}),r.id=(0,d.defaultValue)(e.id,(0,d.getGUID)()),r.layerIndex=(0,d.defaultValue)(e.layerIndex,0),r.layerRenderIndex=(0,d.defaultValue)(e.layerRenderIndex,0),r.type=(0,d.defaultValue)(e.layerType,void 0),r.renderType=(0,d.defaultValue)(e.layerRenderType,void 0),r._labelingInfo=(0,d.defaultValue)(e.labelingInfo,[]),r.beginLevel=(0,d.defaultValue)(e.beginLevel,-1),r.endLevel=(0,d.defaultValue)(e.endLevel,-1),r._renderer=(0,d.defaultValue)(e.renderer,void 0),e.originalPoints?r.originPoint=new p.Point({coordinates:[e.originalPoints.x,e.originalPoints.y]}):r.originPoint=void 0,e.frameSizes?r.maxFrameSize=e.frameSizes[0]:r.maxFrameSize=void 0,r.url=(0,d.defaultValue)(e.url||e.gdbpUrl,void 0),e.range?r.range=new p.Extent({xmin:e.range.xMin,ymin:e.range.yMin,xmax:e.range.xMax,ymax:e.range.yMax}):r.range=void 0,e.range3D?r.range3D=new p.Extent({xmin:e.range3D.xMin,ymin:e.range3D.yMin,xmax:e.range3D.xMax,ymax:e.range3D.yMax,zmin:e.range3D.zMin,zmax:e.range3D.zMax}):r.range3D=void 0,r.layer=(0,d.defaultValue)(e.layer,void 0),r.spatialReference=(0,d.defaultValue)(e.spatialReference,void 0);var n=e.sublayers;if(r.sublayers=new h.Collection,n instanceof Array)for(var i=0;i<n.length;i++)r.sublayers.add(new t(n[i]));else n instanceof h.Collection&&n.forEach(function(e){r.sublayers.add(new t(e))});return r.elevationScale=(0,d.defaultValue)(e.elevationScale,void 0),r.requestVertexNormals=(0,d.defaultValue)(e.requestVertexNormals,!1),r.labelLayer=(0,d.defaultValue)(e.labelLayer,void 0),r.layerName=(0,d.defaultValue)(e.layerName,void 0),r._opacity=(0,d.defaultValue)(e.opacity,1),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"reset",value:function(){this.layer&&this.layer._fireUpdateEvent("重置视角",[{name:"reset",params:[this.id],dataChanged:!0,operationType:"method"}])}},{key:"toJSON",value:function(){for(var e=[],r=0;r<this.sublayers.length;r++)e.push((0,d.toJSON)(this.sublayers[r],t));var n=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return(0,i.default)(n,{sublayers:e,layerIndex:this.layerIndex,type:this.type,renderType:this.renderType,beginLevel:this.beginLevel,endLevel:this.endLevel,originPoint:this.originPoint,maxFrameSize:this.maxFrameSize})}}]),t}(f.SubLayer);g.fromJSON=function(e){return new g(e)},(0,n.default)(g.prototype,{renderer:{get:function(){return this._renderer},set:function(e){this._renderer=e,this.layer&&this.layer._fireUpdateEvent("设置专题图",[{name:"renderer",params:[this._renderer,this.id],dataChanged:!0,operationType:"property"}])}},visible:{get:function(){return this._visible},set:function(e){this._visible=e,this.layer&&this.layer._fireUpdateEvent("设置子图层可见性",[{name:"sbuLayerVisible",params:[this._visible,this.id],dataChanged:!0,operationType:"property"}])}},opacity:{get:function(){return this._opacity},set:function(e){this._opacity=e,this.layer&&this.layer._fireUpdateEvent("设置子图层透明度",[{name:"subLayerOpacity",params:[this._opacity,this.id],dataChanged:!0,operationType:"property"}])}},labelingInfo:{get:function(){return this._labelingInfo},set:function(e){this._labelingInfo=e,this.layer&&this.layer._fireUpdateEvent("设置注记图层样式",[{name:"labelingInfo",params:[],dataChanged:!0,operationType:"property"}])}}}),t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(7)),u=f(r(5)),l=r(15),c=r(1),h=r(6);function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.type=h.LayerType.overlay,r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this)}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(l.Layer);t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(5)),u=r(8);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"createInstance",value:function(e){var t=e;return e instanceof u.Feature||(t=u.Feature.fromJSON(e)),Array.isArray(t._decorateParents)||(t._decorateParents=[]),t._decorateParents.push({instance:this,key:t.id}),t}},{key:"getFeatureById",value:function(e){var t=this.findIndex(function(t){return t.id===e});if(t>-1)return this.items[t]}},{key:"removeFeatureById",value:function(e){var t=this.findIndex(function(t){return t.id===e});return t>-1&&(this.items.splice(t,1),!0)}}],[{key:"collect",value:function(e){return new t(e)}}]),t}(u.Collection);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=_(r(11)),i=_(r(14)),o=_(r(3)),a=_(r(0)),s=_(r(2)),u=_(r(4)),l=_(r(5)),c=r(8),h=r(1),f=r(6),d=_(r(81)),p=r(9),y=_(r(215)),g=_(r(133)),m=_(r(512)),v=r(64);function _(e){return e&&e.__esModule?e:{default:e}}var S=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this));return e=(0,h.defaultValue)(e,{}),r._map=null,r._id=(0,h.getGUID)(),r._cursor=(0,h.defaultValue)(e.cursor,void 0),r.scale=(0,h.defaultValue)(e.scale,void 0),r.minScale=void 0,r.maxScale=void 0,r.rotation=0,r.center=(0,h.defaultValue)(e.center,[0,0]),r.minZoom=(0,h.defaultValue)(e.minZoom,0),r.maxZoom=(0,h.defaultValue)(e.maxZoom,19),r.zoom=(0,h.defaultValue)(e.zoom,1),r.extensionOptions=(0,h.defaultValue)(e.extensionOptions,{}),r.extendProps=(0,h.defaultValue)(e.extendProps,{}),r.popup=void 0,r.stationary=!0,r._spatialReference=new p.SpatialReference("EPSG:4326"),r.layerViews=new c.Collection,r.basemapLayerViews=new c.Collection,r._viewLayersMap=new y.default,r._graphicsLayers=r._viewLayersMap.groupLayer,r._viewLayersGroupLayerView=void 0,r._setViewLayers(r._graphicsLayers),r.allLayerViews=new c.CollectionFlattener({getCollections:function(){return[r.basemapLayerViews,r.layerViews,r._viewLayersGroupLayerView.layerViews]},getChildrenFunction:function(e){return e.layerViews}}),r._initMapEventHandlers(),r.setMap(e.map),r._viewId=(0,h.defaultValue)(e.viewId,""),r._innerView=null,r._initCursor(),r}return(0,l.default)(t,e),(0,s.default)(t,[{key:"setMap",value:function(e){this._map||(this._map=e instanceof y.default?e:y.default.fromJSON(e),this._linkMapEvent(this._map),this._linkLayerEvent(this._map),this._map._loadLayers(),this.groupLayerView=new g.default({layer:this._map.groupLayer,layerViews:this.layerViews,view:this}),this._map.basemap&&this._setBasemapLayerView())}},{key:"getInnerView",value:function(){return this._innerView}},{key:"getInnerLayer",value:function(e){if(e){var t="string"==typeof e?e:e.id;return(this._findLayerViewById(t)||{}).innerLayer}}},{key:"getLayer",value:function(e){return(this._findLayerViewById(e)||{}).layer}},{key:"_setBasemapLayerView",value:function(){this._basemapView=new m.default({baseGroupLayer:this._map.basemap._baseGroupLayer,baseLayerViews:this.basemapLayerViews,view:this}),this.basemapGroupLayerView=this._basemapView.groupLayerView}},{key:"_removeBasemapLayerView",value:function(){this._basemapView=null,this.basemapGroupLayerView=null}},{key:"_linkLayerEvent",value:function(e){var t=this;if(e){var r=function(r){var n=t;e.on(f.LayerEventType[r],function(e){var t=e;t instanceof c.Event?t.addProperty("view",n):t&&(t.view=n),n.fire(f.LayerEventType[r],t)},e)};for(var n in f.LayerEventType)r(n)}}},{key:"_linkMapEvent",value:function(e){var t=this;if(e){var r=function(r){var n=t;e.on(f.MapEventType[r],function(e){var t=e;t instanceof c.Event?t.addProperty("view",n):t&&(t.view=n),n.fire(f.MapEventType[r],t)})};for(var n in f.MapEventType)r(n)}}},{key:"_getLayerView",value:function(e){if(e)return this._findLayerViewById(e.id)}},{key:"_initMapEventHandlers",value:function(){this.on(f.MapEventType.layerLoaded,this._processEvent,this),this.on(f.MapEventType.layerChange,this._processEvent,this),this.on(f.LayerEventType.layerUpdate,this._processEvent,this),this.on(f.MapEventType.basemapChange,this._processEvent,this)}},{key:"_processEvent",value:function(e){e.type===f.MapEventType.layerChange&&this._processLayerChange(e),e.type===f.MapEventType.layerLoaded&&this._processLayerLoad(e),e.type===f.LayerEventType.layerUpdate&&e.layer instanceof v.Layer&&this._updateLayerView(e.layer,e),e.type===f.MapEventType.basemapChange&&e.detail&&(e.detail.find(function(e){return"baseLayers-destroy"===e.action})?this._removeBasemapLayerView(e):e.detail.find(function(e){return"basemap-create"===e.action})&&(this._basemapView||this._setBasemapLayerView(e)))}},{key:"_processLayerLoad",value:function(e){var t=this;if(e){var r=e.addDetail;this._prePromise||(this._prePromise=i.default.resolve()),this._prePromise=this._prePromise.then(function(){return t._loadViewSpatialReference().then(function(e){if(!1!==e){var n=i.default.resolve();return r.forEach(function(e){n=n.then(function(){var r=e.added,n=e.sourceTarget,i=t._findGroupLayerViewById(n.id);if(i)return i.addMany(r).then(function(e){i._fireLayerViewCreatedByLayerViews(e),Array.isArray(e)&&e.forEach(function(e){i._reorderLayerView(e)})})})}),n}}).catch(function(e){h.Log.error(e)})})}}},{key:"_processLayerChange",value:function(e){var t=this;if(e&&this.groupLayerView){var r=e.added,n=e.removed,i=e.moved,o=e.sourceTarget,a=this._findGroupLayerViewById(o.id);if(a){var s=void 0;0===n.length&&0===r.length&&0===i.length?s=a.removeAll():n.length>0&&(s=a.removeMany(n)),s&&s.then(function(){return t._loadViewSpatialReference().then().catch(function(e){h.Log.info(e)})}),i.length>0&&i.forEach(function(e){a.reorder(e)})}}}},{key:"_findGroupLayerViewById",value:function(e){var t=void 0;return e===this.groupLayerView.id?t=this.groupLayerView:this.basemapGroupLayerView&&e===this.basemapGroupLayerView.id?t=this.basemapGroupLayerView:this._viewLayersMap&&this._viewLayersGroupLayerView&&e===this._viewLayersGroupLayerView.id?t=this._viewLayersGroupLayerView:!(t=this.groupLayerView._findFlatLayerViewById(e))&&this.basemapGroupLayerView&&(t=this.basemapGroupLayerView._findFlatLayerViewById(e)),t}},{key:"_loadViewSpatialReference",value:function(){var e=this;return new i.default(function(t,r){e._map._setSpatialReference(e._spatialReference),e._map.getFullExtent(),e._spatialReference?t(!0):r()})}},{key:"_loadLayerViews",value:function(){var e=this;return new i.default(function(t){e._map._spatialReference=e._spatialReference,e._map._fullExtent=e._fullExtent,t()})}},{key:"_getFlyToCenter",value:function(e){var t=void 0;if(e.center){if(Array.isArray(e.center)&&e.center.length>1){var r=e.center.length>2?[e.center[0],e.center[1],e.center[2]]:[e.center[0],e.center[1]],n=this._innerView.options&&this._innerView.options.crs?this._innerView.options.crs.code:"EPSG:4326";t=new p.Point({coordinates:r,spatialReference:new p.SpatialReference(n)})}else e.center instanceof p.Point?t=p.Point.fromJSON(e.center):e.center instanceof p.Point||h.Log.error("center类型为不支持的类型!");t.spatialReference.isGeographic||(t=c.Projection.project(t,new p.SpatialReference({wkid:4326})))}return t}},{key:"_getFlyToExtent",value:function(e){var t=void 0;return e.extent&&(e.extent instanceof p.Extent?(t=p.Extent.fromJSON(e.extent)).spatialReference.isGeographic||(t=c.Projection.project(t,new p.SpatialReference({wkid:4326}))):h.Log.error("extent类型为不支持的类型!")),t}},{key:"_updateLayerView",value:function(e,t){var r=this,n=this._findLayerViewById(e.id);return n instanceof d.default?n.onUpdate(t).then(function(){return n}).then(function(n){h.Log.info("更新图层",e),t&&(t.addProperty("view",self),t.addProperty("layerView",n)),r.dispatchEvent(f.LayerEventType.layerViewUpdate,t)}):(h.Log.info("图层更新失败,未找到该类型的视图!"),i.default.resolve())}},{key:"dispatchEvent",value:function(e,t,r){return t instanceof c.LayerEvent&&t.layer&&t.layer.fire(e,t,r),this._map&&this._map.dispatchEvent(e,t,r),this._map&&this._map.basemap&&t.layer&&t.layer._isBasemapLayer&&this._map.basemap.dispatchEvent(e,t,r),this}},{key:"_findLayerViewById",value:function(e){var t=this.allLayerViews.items.find(function(t){return t.id===e});return t||(t=this._viewLayersGroupLayerView.allLayerViews.items.find(function(t){return t.id===e})),t}},{key:"_removeLayerViewById",value:function(e){var t=this._findLayerViewById(e);if(t){var r=t.layer.parent;if(r===this._map.groupLayer)this.layerViews.remove(t);else if(r){var n=this._findLayerViewById(r.id);n instanceof g.default&&n.layerViews.remove(t)}}}},{key:"_showLayerByScale",value:function(){var e=this;this._map.allLayers.forEach(function(t){(0,v.showLayerByScale)(e,t)})}},{key:"_orderLayerView",value:function(e,t){if(e instanceof g.default)this._moveGroupLayerView(e,t);else if(t instanceof g.default){var r=this._getLastLayerView(t);this._moveLayerView(e,r)}else if(t instanceof g.default&&e instanceof g.default){var n=this._getLastLayerView(t);this._moveGroupLayerView(e,n)}else this._moveLayerView(e,t)}},{key:"_isLayerViewSupportReorder",value:function(e){return!(e.layer instanceof v.IGSFeatureLayer||e.layer instanceof v.M3DModelCacheLayer||e.layer instanceof v.IGSSceneLayer||e.layer instanceof v.TerrainCacheLayer||e.layer instanceof v.Cesium3DTilesCacheLayer||e.layer instanceof v.GeoJSONLayer||e.layer instanceof v.WFSLayer||e.layer instanceof v.GroupLayer||e.layer instanceof v.EchartsLayer||e.layer instanceof v.MapVLayer)}},{key:"_moveGroupLayerView",value:function(e,t){var r=this;e.allLayerViews.forEach(function(e){e instanceof g.default?r._moveGroupLayerView(e,t):r._moveLayerView(e,t)})}},{key:"_moveLayerView",value:function(e,t){}},{key:"_getLastLayerView",value:function(e){var t=e.toArray(),r=t[t.length-1];return r instanceof g.default?this._getLastLayerView(r):r}},{key:"_createLayerView",value:function(e){return null}},{key:"_initCursor",value:function(){this._setCursor(this.cursor)}},{key:"_setCursor",value:function(e){this._innerView&&(e&&null!==e?this._innerView._container.style.cursor=e:this._innerView._container.style.removeProperty("cursor"),this._cursor=e)}},{key:"_getTargetExtent",value:function(e){var t=void 0;if(e instanceof p.Geometry)e instanceof p.Extent?t=this._getFlyToExtent({extent:e}):e.extent&&(t=this._getFlyToExtent({extent:e.extent}));else{var r=[],n=void 0;Array.isArray(e)?r=e:e instanceof c.Collection&&(r=e.items),r.forEach(function(e){var t=void 0;e instanceof p.Extent?t=e:e instanceof p.Geometry&&e.extent&&(t=e.extent),t.spatialReference.isGeographic||(t=c.Projection.project(t.clone(),new p.SpatialReference("EPSG:4326"))),n?(n.xmin>t.xmin&&(n.xmin=t.xmin),n.xmax<t.xmax&&(n.xmax=t.xmax),n.ymin>t.ymin&&(n.ymin=t.ymin),n.ymax<t.ymax&&(n.ymax=t.ymax)):n=t}),t=this._getFlyToExtent({extent:n})}return t}},{key:"_setViewLayers",value:function(e){this._linkMapEvent(this._viewLayersMap),this._linkLayerEvent(this._viewLayersMap),this._viewLayersGroupLayerView=new g.default({layer:this._viewLayersMap.groupLayer,view:this})}},{key:"_processGraphicsLayersChange",value:function(e){var t=e.added,r=e.removed;t&&t.length>0&&this._viewLayersMap.addMany(t),r&&r.length>0&&this._viewLayersMap.removeMany(r)}},{key:"toJSON",value:function(){return{map:this._map?this._map.toJSON():[],viewId:this.viewId,cursor:this.cursor,scale:this.scale,center:(0,h.toJSON)(this._center,p.Point),minZoom:this.minZoom,maxZoom:this.maxZoom,zoom:this.zoom,extensionOptions:this.extensionOptions,extendProps:this.extendProps}}}]),t}(c.Evented);(0,n.default)(S.prototype,{map:{get:function(){return this._map},set:function(e){this._map=e}},cursor:{get:function(){return this._cursor},set:function(e){this._setCursor(e)}},spatialReference:{get:function(){return this._spatialReference},set:function(){}}}),t.default=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(14)),i=p(r(3)),o=p(r(0)),a=p(r(2)),s=p(r(4)),u=p(r(5)),l=p(r(81)),c=r(8),h=r(6),f=r(90),d=r(1);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.layerViews=e.layerViews||new c.Collection,r.allLayerViews=new c.CollectionFlattener({getCollections:function(){return[r.layerViews]},getChildrenFunction:function(e){return e.layerViews}}),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"onAdd",value:function(e){var t=this;return this.addMany(this.layer.layers.items).then(function(){return t})}},{key:"add",value:function(e,t){return this.addMany([e],t)}},{key:"remove",value:function(e){return this.removeMany([e])}},{key:"addMany",value:function(e,t){var r=this;if(!e||!this.layerViews)return n.default.resolve([]);var i=this.view,o=this.layer,a=e.filter(function(e){return e&&(e.loaded||e.type===h.LayerType.group)&&o.findLayerById(e.id)&&!r._findLayerViewById(e.id)}).map(function(e){return i._createLayerView(e)}).filter(function(e){return e}),s=(0,f.inOrderPromise)(a.map(function(e){return function(){return e.onAdd().catch(function(t){d.Log.error(t),r._fireLayerCreatedError(e.layer,e,t)}).then(function(e){return e||void 0})}}));return s.catch(function(e){r._fireLayerCreatedError(r.layer,r,e)}),s.then(function(e){var n=e.filter(function(e){return e instanceof l.default});return n.length>0&&(r._setItemParent(n,r),r.layerViews.addMany(n,t)),n})}},{key:"removeMany",value:function(e){var t=this;if(!e||!this.layerViews)return n.default.resolve([]);var r=e.map(function(e){return t._findLayerViewById(e.id)}).filter(function(e){return e});return 0===r.length?n.default.resolve([]):this._removeLayerViews(r)}},{key:"_removeLayerViews",value:function(e){var t=this,r=e.map(function(e){return e.onRemove().then(function(e){return t._fireLayerViewRemove(e.layer,e),e}).catch(function(e){d.Log.error(e)})});return(0,f.allSettled)(r).then(function(e){var r=e.filter(function(e){return"fulfilled"===e.status}).map(function(e){return e.value});t.layerViews.removeMany(r),t._setItemParent(r,null)})}},{key:"removeAll",value:function(){this.layerViews&&this._removeLayerViews(this.layerViews.items.map(function(e){return e}))}},{key:"reorder",value:function(e){var t=this;if(this.layerViews&&e&&e.parent){var r=e.parent,n=this.layerViews.items.findIndex(function(t){return t.id===e.id}),i=r.layers.items.filter(function(e){return t.layerViews.items.some(function(t){return t.id===e.id})}),o=i.findIndex(function(t){return t.id===e.id});if(n!==o&&-1!==n&&-1!==o){var a=this.layerViews.items[n];this.layerViews.reorder(a,o),o===i.length-1?i.slice(0,o).reverse().forEach(function(e){var r=t._findLayerViewById(e.id);r&&t._reorderLayerView(r)}):this._reorderLayerView(a)}}}},{key:"onRemove",value:function(e){var t=this;return this.removeMany(this.layer.layers.items).then(function(){return t})}},{key:"onUpdate",value:function(e){var t=this,r=this.layerViews.items;return n.default.all(r.map(function(t){return t.onUpdate(e)})).then(function(){return t})}},{key:"_setItemParent",value:function(e,t){(e instanceof c.Collection?e._items:Array.isArray(e)?e:[e]).forEach(function(e){e&&(e.parent=t)})}},{key:"_fireLayerViewCreatedByLayerViews",value:function(e){if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];if(n instanceof l.default){if(n instanceof t){var i=n.layerViews.items;this._fireLayerViewCreatedByLayerViews(i)}this._fireLayerViewCreated(n.layer,n)}}}},{key:"_fireLayerViewCreated",value:function(e,t){var r=new c.LayerEvent({type:h.LayerEventType.layerViewCreated,message:"图层在视图中创建完毕",layer:e});r.addProperty("view",this.view),r.addProperty("layerView",t),e.fire(h.LayerEventType.layerViewCreated,r),this.view.fire(h.LayerEventType.layerViewCreated,r)}},{key:"_fireLayerCreatedError",value:function(e,t,r){var n=new c.LayerEvent({type:h.LayerEventType.layerViewCreatedError,target:e,error:r||"图层在视图中创建失败",layer:e});n.addProperty("view",this.view),n.addProperty("layerView",t),e.fire(h.LayerEventType.layerViewCreatedError,n),this.view.fire(h.LayerEventType.layerViewCreatedError,n)}},{key:"_fireLayerViewRemove",value:function(e,t){var r=new c.LayerEvent({type:h.LayerEventType.layerViewRemove,message:"移除图层视图",layer:e});r.addProperty("view",this.view),r.addProperty("layerView",t),e.fire(h.LayerEventType.layerViewRemove,r),this.view.fire(h.LayerEventType.layerViewRemove,r)}},{key:"_findLayerViewById",value:function(e){return this.layerViews.items.find(function(t){return t.id===e})}},{key:"_findFlatLayerViewById",value:function(e){return this.allLayerViews.items.find(function(t){return t.id===e})}},{key:"_findLastLayerViewById",value:function(e){var r=this.view;if(e&&r){var n=this._findLayerViewById(e);if(n){var i=n;if(n instanceof t){var o=n.allLayerViews.items.filter(function(e){return!(e instanceof t)});if(0===o.length)return;i=o[o.length-1]}var a=r.allLayerViews.items.findIndex(function(e){return e.id===i.id});if(-1!==a){var s=r.allLayerViews.items.slice(a+1).filter(function(e){return!(e instanceof t)});if(0!==s.length)return s[0]}}}}},{key:"_reorderLayerView",value:function(e){var t=this._findLastLayerViewById(e.id);t&&this.view._orderLayerView(e,t)}}]),t}(l.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchEditorEvent=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.SketchEditorEvent=function e(t){(0,n.default)(this,e);var r=(0,i.defaultValue)(t,{});this.type=(0,i.defaultValue)(r.type,""),this.toolEventInfo=(0,i.defaultValue)(r.toolEventInfo,null),this.state=(0,i.defaultValue)(r.state,null),this.feature=(0,i.defaultValue)(r.feature,null)}},function(e,t,r){var n=r(32),i=r(39),o=r(227)(!1),a=r(101)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),u=0,l=[];for(r in s)r!=a&&n(s,r)&&l.push(r);for(;t.length>u;)n(s,r=t[u++])&&(~o(l,r)||l.push(r));return l}},function(e,t,r){var n=r(68);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,r){e.exports=!r(27)&&!r(59)(function(){return 7!=Object.defineProperty(r(104)("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(28),i=r(24),o=r(57);e.exports=r(27)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,u=0;s>u;)n.f(e,r=a[u++],t[r]);return e}},function(e,t){},function(e,t,r){"use strict";var n=r(69),i=r(17),o=r(141),a=r(48),s=r(61),u=r(234),l=r(85),c=r(86),h=r(21)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,r,p,y,g,m){u(r,t,p);var v,_,S,x=function(e){if(!f&&e in M)return M[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},b=t+" Iterator",w="values"==y,k=!1,M=e.prototype,E=M[h]||M["@@iterator"]||y&&M[y],I=E||x(y),T=y?w?x("entries"):I:void 0,L="Array"==t&&M.entries||E;if(L&&(S=c(L.call(new e)))!==Object.prototype&&S.next&&(l(S,b,!0),n||"function"==typeof S[h]||a(S,h,d)),w&&E&&"values"!==E.name&&(k=!0,I=function(){return E.call(this)}),n&&!m||!f&&!k&&M[h]||a(M,h,I),s[t]=I,s[b]=d,y)if(v={values:w?I:x("values"),keys:g?I:x("keys"),entries:T},m)for(_ in v)_ in M||o(M,_,v[_]);else i(i.P+i.F*(f||k),t,v);return v}},function(e,t,r){e.exports=r(48)},function(e,t,r){var n=r(20).document;e.exports=n&&n.documentElement},function(e,t,r){var n=r(24);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},function(e,t,r){var n=r(61),i=r(21)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},function(e,t,r){var n=r(24),i=r(84),o=r(21)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||void 0==(r=n(a)[o])?t:i(r)}},function(e,t,r){var n,i,o,a=r(58),s=r(241),u=r(142),l=r(104),c=r(20),h=c.process,f=c.setImmediate,d=c.clearImmediate,p=c.MessageChannel,y=c.Dispatch,g=0,m={},v=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},_=function(e){v.call(e.data)};f&&d||(f=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},n(g),g},d=function(e){delete m[e]},"process"==r(68)(h)?n=function(e){h.nextTick(a(v,e,1))}:y&&y.now?n=function(e){y.now(a(v,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=_,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",_,!1)):n="onreadystatechange"in l("script")?function(e){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:f,clear:d}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(24),i=r(26),o=r(109);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){var n=r(21)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},function(e,t,r){e.exports={default:r(251),__esModule:!0}},function(e,t,r){var n=r(82)("meta"),i=r(26),o=r(32),a=r(28).f,s=0,u=Object.isExtensible||function(){return!0},l=!r(59)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},h=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[n].w},onFreeze:function(e){return l&&h.NEED&&u(e)&&!o(e,n)&&c(e),e}}},function(e,t,r){var n=r(135),i=r(103).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){e.exports={default:r(275),__esModule:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(7)),u=l(r(5));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var r=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"initPropertys",this).call(this,e);return this.layer=r.layer,this.message=r.message,this.layerView=r.layerView,this.view=r.view,r}}]),t}(l(r(41)).default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayerViewUpdateEvent=t.LayerViewUpdateContent=void 0;var n=c(r(3)),i=c(r(2)),o=c(r(4)),a=c(r(7)),s=c(r(5)),u=c(r(0)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(){return(0,u.default)(this,t),(0,o.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,i.default)(t,[{key:"initPropertys",value:function(e){var r=(0,a.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"initPropertys",this).call(this,e);return this.updateContent=(0,l.defaultValue)(r.updateContent,[]),r}}]),t}(c(r(154)).default);t.LayerViewUpdateContent=function e(t){(0,u.default)(this,e);var r=(0,l.defaultValue)(t,{});this.dataChanged=(0,l.defaultValue)(r.dataChanged,!1),this.name=(0,l.defaultValue)(r.name,""),this.operationType=(0,l.defaultValue)(r.operationType,"method"),this.params=(0,l.defaultValue)(r.params,[]),this.extendProps=(0,l.defaultValue)(r.extendProps,{})},t.LayerViewUpdateEvent=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",auqamarin:"#7fffaa",azure:"#f0ffff",beige:"#6b8e23",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",brulywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornislk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkvoilet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",doderblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e1ffff",lightgoldenrodyellow:"#fafad2",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#00fa9a",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumslateblue:"#7b68ee",mediumspringgreen:"#f5fffa",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#00ff7f",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#556b2f",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegodenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#3cb371",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={backwardDiagonal:"backward-diagonal",cross:"cross",diagonalCross:"diagonal-cross",forwardDiagonal:"forward-diagonal",horizontal:"horizontal",none:"none",solid:"solid",vertical:"vertical"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={small:"small",medium:"medium",large:"large"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={calm:"calm",rippled:"rippled",slight:"slight",moderate:"moderate"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.extent=(0,o.defaultValue)(t.extent,void 0),this.id=(0,o.defaultValue)(t.id,(0,o.getGUID)()),this.tileInfo=t.tileInfo,this.layer=(0,o.defaultValue)(t.layer,void 0),this.tileMatrix=(0,o.defaultValue)(t.tileMatrix,[]),this.identifier=(0,o.defaultValue)(t.identifier,void 0),this.supportedCRS=(0,o.defaultValue)(t.supportedCRS,void 0)}return(0,i.default)(e,[{key:"getTileResolution",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.28,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],n=0;n<this.tileMatrix.length;n++){var i=t?Number(this.tileMatrix[n].scaleDenominator)*e/111319490.7932735:Number(this.tileMatrix[n].scaleDenominator)*e/1e3;r.push(i)}return r}},{key:"toJSON",value:function(){return{extent:this.extent&&this.extent.toJSON(),id:this.id,tileInfo:this.tileInfo&&this.tileInfo.toJSON(),tileMatrix:this.tileMatrix,identifier:this.identifier,supportedCRS:this.supportedCRS}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e);var r=(0,o.defaultValue)(t,{});this.expression=(0,o.defaultValue)(r.expression,"")}return(0,i.default)(e,[{key:"clone",value:function(){return new e({expression:this.expression})}},{key:"toJSON",value:function(){return{expression:this.expression}}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(23)),i=y(r(10)),o=y(r(3)),a=y(r(0)),s=y(r(2)),u=y(r(4)),l=y(r(5)),c=y(r(73)),h=r(1),f=r(9),d=r(19),p=r(6);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return e=(0,h.defaultValue)(e,{}),r.id=(0,h.defaultValue)(e.id,(0,h.getGUID)()),r.attributes=(0,h.defaultValue)(e.attributes,{}),r.geometry=r._decorate("geometry",e.geometry,f.Geometry,f.Geometry.fromJSON),r.geometry||h.Log.error("要素几何信息缺失"),r.symbol=r._decorate("symbol",e.symbol,d.Symbol,r._getSymbol.bind(r)),r.visible=(0,h.defaultValue)(e.visible,!0),r.type="Feature",r.elevationInfo=(0,h.defaultValue)(e.elevationInfo,void 0),r.additional=(0,h.defaultValue)(e.additional,{}),r}return(0,l.default)(t,e),(0,s.default)(t,[{key:"_getSymbol",value:function(e){var t=e?e.type:"undefine",r=this.geometry.type,n=e instanceof d.Symbol?e:d.Symbol.fromJSON(e);switch(r){case p.GeometryType.multiPoint:case p.GeometryType.point:var i=[p.SymbolType.simpleMarker,p.SymbolType.text,p.SymbolType.mapgisText,p.SymbolType.pictureMarker,p.SymbolType.point3D,p.SymbolType.label3D];(0,h.defined)(e)||(n=new d.SimpleMarkerSymbol),i.some(function(e){return e===t})||(h.Log.info("图元几何和符号不匹配"),n=new d.SimpleMarkerSymbol({color:n.color.clone()}));break;case p.GeometryType.multiLineString:case p.GeometryType.lineString:var o=[p.SymbolType.simpleLine,p.SymbolType.line3D];(0,h.defined)(e)||(n=new d.SimpleLineSymbol),o.some(function(e){return e===t})||(h.Log.info("图元几何和符号不匹配"),n=new d.SimpleLineSymbol({color:n.color.clone()}));break;case p.GeometryType.polygon:case p.GeometryType.extent:case p.GeometryType.circle:case p.GeometryType.multiPolygon:var a=[p.SymbolType.simpleFill,p.SymbolType.simpleMarker,p.SymbolType.text,p.SymbolType.mapgisText,p.SymbolType.pictureMarker,p.SymbolType.pictureFill,p.SymbolType.polygon3D];(0,h.defined)(e)||(n=new d.SimpleFillSymbol),a.some(function(e){return e===t})||(h.Log.info("图元几何和符号不匹配"),n=new d.SimpleFillSymbol({color:n.color.clone()}))}return n}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e={};return e.id=this.id,e.attributes=JSON.parse((0,i.default)(this.attributes)),e.geometry=this.geometry.toJSON(),e.symbol=this.symbol.toJSON(),e.visible=this.visible,e.type=this.type,e.elevationInfo=this.elevationInfo,e}},{key:"fromGeoJSON",value:function(e){e=(0,h.defaultValue)(e,{});var t=this,r=(0,h.defaultValue)(e.geometry,{});t.geometry=f.Geometry.fromGeoJSON(r);var i=(0,h.defaultValue)(e.properties,{});(0,n.default)(i).forEach(function(e){i.hasOwnProperty(e)&&(t.attributes[e]=i[e])})}},{key:"toGeoJSON",value:function(){var e=JSON.parse((0,i.default)(this.attributes));return e.id=this.id,{type:"Feature",geometry:this.geometry.toGeoJSON(),properties:e,style:this.symbol.toJSON(),id:this.id}}},{key:"toIGSFeature",value:function(){var e=this.geometry.toJSON();return{type:"Feature",geometry:{type:e.type,coordinates:e.coordinates},attributes:JSON.parse((0,i.default)(this.attributes)),styleInfo:null}}},{key:"toOldIGSFeature",value:function(){return{fGeom:this.geometry.toOldIGSGeometry(),GraphicInfo:this.toGraphicInfo(),AttValue:this.toAttValue(),FID:this.id,bound:null,ftype:this.toFType()}}},{key:"toGraphicInfo",value:function(){var e=void 0;switch(this.geometry.type){case"Point":case"MultiPoint":e={InfoType:1,PntInfo:this.symbol};break;case"LineString":case"MultiLineString":e={InfoType:2,LinInfo:this.symbol};break;case"Polygon":case"MultiPolygon":default:e={InfoType:3,RegInfo:this.symbol}}return e}},{key:"toAttValue",value:function(){var e=[],t=this;return(0,n.default)(this.attributes).forEach(function(r){t.attributes.hasOwnProperty(r)&&e.push(t.attributes[r])}),e}},{key:"toFType",value:function(){var e=void 0;switch(this.geometry.type){case"Point":case"MultiPoint":e=1;break;case"LineString":case"MultiLineString":e=2;break;case"Polygon":case"MultiPolygon":default:e=3}return e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(c.default);t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSymbol3DLayer=t.WaterSymbol3DLayer=t.TextSymbol3DLayer=t.ExtrudeSymbol3DLayer=t.ObjectSymbol3DLayer=t.IconSymbol3DLayer=t.FillSymbol3DLayer=t.LineSymbol3DLayer=t.PathSymbol3DLayer=t.Symbol3DLayer=void 0;var n=d(r(43)),i=d(r(342)),o=d(r(353)),a=d(r(354)),s=d(r(355)),u=d(r(356)),l=d(r(357)),c=d(r(358)),h=d(r(359)),f=r(6);function d(e){return e&&e.__esModule?e:{default:e}}t.Symbol3DLayer=n.default,t.PathSymbol3DLayer=i.default,t.LineSymbol3DLayer=o.default,t.FillSymbol3DLayer=a.default,t.IconSymbol3DLayer=s.default,t.ObjectSymbol3DLayer=u.default,t.ExtrudeSymbol3DLayer=l.default,t.TextSymbol3DLayer=c.default,t.WaterSymbol3DLayer=h.default,t.createSymbol3DLayer=function(e){var t=e||{},r=null;switch(t.type){case f.Symbol3DLayerType.line:r=new o.default(t);break;case f.Symbol3DLayerType.path:r=new i.default(t);break;case f.Symbol3DLayerType.fill:r=new a.default(t);break;case f.Symbol3DLayerType.icon:r=new s.default(t);break;case f.Symbol3DLayerType.object:r=new u.default(t);break;case f.Symbol3DLayerType.extrude:r=new l.default(t);break;case f.Symbol3DLayerType.text:r=new c.default(t);break;case f.Symbol3DLayerType.water:r=new h.default(t)}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,[{key:"toJSON",value:function(){}},{key:"clone",value:function(){}}],[{key:"fromJSON",value:function(){}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(8);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.color=t.color?a.Color.fromJSON(t.color):new a.Color,this.size=(0,o.defaultValue)(t.size,0)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{color:(0,o.toJSON)(this.color,a.Color),size:this.size}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.style=(0,o.defaultValue)(t.style,a.LinePatternStyle.solid),this.type="style"}return(0,i.default)(e,[{key:"toJSON",value:function(){return{style:this.style,type:this.type}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(3)),i=g(r(0)),o=g(r(2)),a=g(r(4)),s=g(r(7)),u=g(r(5)),l=g(r(52)),c=r(1),h=r(6),f=g(r(50)),d=g(r(117)),p=g(r(118)),y=g(r(114));function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.type=h.SymbolType.text,r.angle=(0,c.defaultValue)(e.angle,0),r.backgroundColor=(0,c.defined)(e.backgroundColor)?f.default.fromColor((0,c.defaultValue)(e.backgroundColor,new f.default(255,255,255,.25))):void 0,r.borderLineColor=f.default.fromColor((0,c.defaultValue)(e.borderLineColor,new f.default(0,0,0,1))),r.borderLineSize=(0,c.defaultValue)(e.borderLineSize,0),r.color=f.default.fromColor((0,c.defaultValue)(e.color,new f.default)),r.font=y.default.fromJSON((0,c.defaultValue)(e.font,{})),r.haloColor=f.default.fromColor((0,c.defaultValue)(e.haloColor,new f.default)),r.haloSize=(0,c.defaultValue)(e.haloSize,0),r.horizontalAlignment=(0,c.defaultValue)(e.horizontalAlignment,d.default.center),r.kerning=(0,c.defaultValue)(e.kerning,!1),r.lineHeight=(0,c.defaultValue)(e.lineHeight,1.1),r.lineWidth=(0,c.defaultValue)(e.lineWidth,192),r.rotated=(0,c.defaultValue)(e.rotated,!1),r.text=(0,c.defaultValue)(e.text,""),r.verticalAlignment=(0,c.defaultValue)(e.verticalAlignment,p.default.baseline),r.xoffset=(0,c.defaultValue)(e.xoffset,0),r.yoffset=(0,c.defaultValue)(e.yoffset,0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.angle=this.angle,e.backgroundColor=(0,c.toJSON)(this.backgroundColor,f.default),e.borderLineColor=(0,c.toJSON)(this.borderLineColor,f.default),e.borderLineSize=this.borderLineSize,e.color=(0,c.toJSON)(this.color,f.default),e.font=(0,c.toJSON)(this.font,y.default),e.haloColor=(0,c.toJSON)(this.haloColor,f.default),e.haloSize=this.haloSize,e.horizontalAlignment=this.horizontalAlignment,e.kerning=this.kerning,e.lineHeight=this.lineHeight,e.lineWidth=this.lineWidth,e.rotated=this.rotated,e.text=this.text,e.verticalAlignment=this.verticalAlignment,e.xoffset=this.xoffset,e.yoffset=this.yoffset,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,c.defaultValue)(e,{}))}}]),t}(l.default);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(7)),u=h(r(5)),l=r(1),c=r(6);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.simpleMarker,r.xoffset=(0,l.defaultValue)(e.xoffset,0),r.yoffset=(0,l.defaultValue)(e.yoffset,0),r.angle=(0,l.defaultValue)(e.angle,0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.angle=this.angle,e.xoffset=this.xoffset,e.yoffset=this.yoffset,e}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(h(r(52)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(1),c=d(r(52)),h=d(r(123)),f=r(6);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=f.SymbolType.simpleFill,r.outline=r._decorate("outline",e.outline,h.default,h.default.fromJSON),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.type=this.type,e.outline=this.outline.toJSON(),e}}]),t}(c.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjUnitWkidMap={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.116756,5e4,15e4],2000:0,2001:0,2002:0,2003:0,2004:0,2005:0,2006:0,2007:0,2008:0,2009:0,2010:0,2011:0,2012:0,2013:0,2014:0,2015:0,2016:0,2017:0,2018:0,2019:0,2020:0,2021:0,2022:0,2023:0,2024:0,2025:0,2026:0,2027:0,2028:0,2029:0,2030:0,2031:0,2032:0,2033:0,2034:0,2035:0,2036:0,2037:0,2038:0,2039:0,2040:0,2041:0,2042:0,2043:0,2044:0,2045:0,2056:0,2057:0,2058:0,2059:0,2060:0,2061:0,2062:0,2063:0,2064:0,2065:0,2066:5,2067:0,2068:0,2069:0,2070:0,2071:0,2072:0,2073:0,2074:0,2075:0,2076:0,2077:0,2078:0,2079:0,2080:0,2081:0,2082:0,2083:0,2084:0,2085:0,2086:0,2087:0,2088:0,2089:0,2090:0,2091:0,2092:0,2093:0,2094:0,2095:0,2096:0,2097:0,2098:0,2099:0,2100:0,2101:0,2102:0,2103:0,2104:0,2105:0,2106:0,2107:0,2108:0,2109:0,2110:0,2111:0,2112:0,2113:0,2114:0,2115:0,2116:0,2117:0,2118:0,2119:0,2120:0,2121:0,2122:0,2123:0,2124:0,2125:0,2126:0,2127:0,2128:0,2129:0,2130:0,2131:0,2132:0,2133:0,2134:0,2135:0,2136:12,2137:0,2138:0,2139:0,2140:0,2141:0,2142:0,2143:0,2144:0,2145:0,2146:0,2147:0,2148:0,2149:0,2150:0,2151:0,2152:0,2153:0,2154:0,2155:2,2157:0,2158:0,2159:12,2160:12,2161:0,2162:0,2163:0,2164:0,2165:0,2166:0,2167:0,2168:0,2169:0,2170:0,2172:0,2173:0,2174:0,2175:0,2176:0,2177:0,2178:0,2179:0,2180:0,2181:0,2182:0,2183:0,2184:0,2185:0,2186:0,2187:0,2188:0,2189:0,2190:0,2191:0,2192:0,2193:0,2195:0,2196:0,2197:0,2198:0,2200:0,2201:0,2202:0,2203:0,2204:2,2205:0,2206:0,2207:0,2208:0,2209:0,2210:0,2211:0,2212:0,2213:0,2214:0,2215:0,2216:0,2217:0,2219:0,2220:0,2222:1,2223:1,2224:1,2225:2,2226:2,2227:2,2228:2,2229:2,2230:2,2231:2,2232:2,2233:2,2234:2,2235:2,2236:2,2237:2,2238:2,2239:2,2240:2,2241:2,2242:2,2243:2,2244:2,2245:2,2246:2,2247:2,2248:2,2249:2,2250:2,2251:1,2252:1,2253:1,2254:2,2255:2,2256:1,2257:2,2258:2,2259:2,2260:2,2261:2,2262:2,2263:2,2264:2,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2274:2,2275:2,2276:2,2277:2,2278:2,2279:2,2280:1,2281:1,2282:1,2283:2,2284:2,2285:2,2286:2,2287:2,2288:2,2289:2,2290:0,2291:0,2292:0,2294:0,2295:0,2308:0,2309:0,2310:0,2311:0,2312:0,2313:0,2314:3,2315:0,2316:0,2317:0,2318:0,2319:0,2320:0,2321:0,2322:0,2323:0,2324:0,2325:0,2326:0,2327:0,2328:0,2329:0,2330:0,2331:0,2332:0,2333:0,2334:0,2335:0,2336:0,2337:0,2338:0,2339:0,2340:0,2341:0,2342:0,2343:0,2344:0,2345:0,2346:0,2347:0,2348:0,2349:0,2350:0,2351:0,2352:0,2353:0,2354:0,2355:0,2356:0,2357:0,2358:0,2359:0,2360:0,2361:0,2362:0,2363:0,2364:0,2365:0,2366:0,2367:0,2368:0,2369:0,2370:0,2371:0,2372:0,2373:0,2374:0,2375:0,2376:0,2377:0,2378:0,2379:0,2380:0,2381:0,2382:0,2383:0,2384:0,2385:0,2386:0,2387:0,2388:0,2389:0,2390:0,2391:0,2392:0,2393:0,2394:0,2395:0,2396:0,2397:0,2398:0,2399:0,2400:0,2401:0,2402:0,2403:0,2404:0,2405:0,2406:0,2407:0,2408:0,2409:0,2410:0,2411:0,2412:0,2413:0,2414:0,2415:0,2416:0,2417:0,2418:0,2419:0,2420:0,2421:0,2422:0,2423:0,2424:0,2425:0,2426:0,2427:0,2428:0,2429:0,2430:0,2431:0,2432:0,2433:0,2434:0,2435:0,2436:0,2437:0,2438:0,2439:0,2440:0,2441:0,2442:0,2443:0,2444:0,2445:0,2446:0,2447:0,2448:0,2449:0,2450:0,2451:0,2452:0,2453:0,2454:0,2455:0,2456:0,2457:0,2458:0,2459:0,2460:0,2461:0,2462:0,2523:0,2524:0,2525:0,2526:0,2527:0,2528:0,2529:0,2530:0,2531:0,2532:0,2533:0,2534:0,2535:0,2536:0,2537:0,2538:0,2539:0,2540:0,2541:0,2542:0,2543:0,2544:0,2545:0,2546:0,2547:0,2548:0,2549:0,2550:0,2551:0,2552:0,2553:0,2554:0,2555:0,2556:0,2557:0,2558:0,2559:0,2560:0,2561:0,2562:0,2563:0,2564:0,2565:0,2566:0,2567:0,2568:0,2569:0,2570:0,2571:0,2572:0,2573:0,2574:0,2575:0,2576:0,2577:0,2578:0,2579:0,2580:0,2581:0,2582:0,2583:0,2584:0,2585:0,2586:0,2587:0,2588:0,2589:0,2590:0,2591:0,2592:0,2593:0,2594:0,2595:0,2596:0,2597:0,2598:0,2599:0,2600:0,2601:0,2602:0,2603:0,2604:0,2605:0,2606:0,2607:0,2608:0,2609:0,2610:0,2611:0,2612:0,2613:0,2614:0,2615:0,2616:0,2617:0,2618:0,2619:0,2620:0,2621:0,2622:0,2623:0,2624:0,2625:0,2626:0,2627:0,2628:0,2629:0,2630:0,2631:0,2632:0,2633:0,2634:0,2635:0,2636:0,2637:0,2638:0,2639:0,2640:0,2641:0,2642:0,2643:0,2644:0,2645:0,2646:0,2647:0,2648:0,2649:0,2650:0,2651:0,2652:0,2653:0,2654:0,2655:0,2656:0,2657:0,2658:0,2659:0,2660:0,2661:0,2662:0,2663:0,2664:0,2665:0,2666:0,2667:0,2668:0,2669:0,2670:0,2671:0,2672:0,2673:0,2674:0,2675:0,2676:0,2677:0,2678:0,2679:0,2680:0,2681:0,2682:0,2683:0,2684:0,2685:0,2686:0,2687:0,2688:0,2689:0,2690:0,2691:0,2692:0,2693:0,2694:0,2695:0,2696:0,2697:0,2698:0,2699:0,2700:0,2701:0,2702:0,2703:0,2704:0,2705:0,2706:0,2707:0,2708:0,2709:0,2710:0,2711:0,2712:0,2713:0,2714:0,2715:0,2716:0,2717:0,2718:0,2719:0,2720:0,2721:0,2722:0,2723:0,2724:0,2725:0,2726:0,2727:0,2728:0,2729:0,2730:0,2731:0,2732:0,2733:0,2734:0,2735:0,2736:0,2737:0,2738:0,2739:0,2740:0,2741:0,2742:0,2743:0,2744:0,2745:0,2746:0,2747:0,2748:0,2749:0,2750:0,2751:0,2752:0,2753:0,2754:0,2755:0,2756:0,2757:0,2758:0,2759:0,2760:0,2761:0,2762:0,2763:0,2764:0,2765:0,2766:0,2767:0,2768:0,2769:0,2770:0,2771:0,2772:0,2773:0,2774:0,2775:0,2776:0,2777:0,2778:0,2779:0,2780:0,2781:0,2782:0,2783:0,2784:0,2785:0,2786:0,2787:0,2788:0,2789:0,2790:0,2791:0,2792:0,2793:0,2794:0,2795:0,2796:0,2797:0,2798:0,2799:0,2800:0,2801:0,2802:0,2803:0,2804:0,2805:0,2806:0,2807:0,2808:0,2809:0,2810:0,2811:0,2812:0,2813:0,2814:0,2815:0,2816:0,2817:0,2818:0,2819:0,2820:0,2821:0,2822:0,2823:0,2824:0,2825:0,2826:0,2827:0,2828:0,2829:0,2830:0,2831:0,2832:0,2833:0,2834:0,2835:0,2836:0,2837:0,2838:0,2839:0,2840:0,2841:0,2842:0,2843:0,2844:0,2845:0,2846:0,2847:0,2848:0,2849:0,2850:0,2851:0,2852:0,2853:0,2854:0,2855:0,2856:0,2857:0,2858:0,2859:0,2860:0,2861:0,2862:0,2863:0,2864:0,2865:0,2866:0,2867:1,2868:1,2869:1,2870:2,2871:2,2872:2,2873:2,2874:2,2875:2,2876:2,2877:2,2878:2,2879:2,2880:2,2881:2,2882:2,2883:2,2884:2,2885:2,2886:2,2887:2,2888:2,2891:2,2892:2,2893:2,2894:2,2895:2,2896:1,2897:1,2898:1,2899:2,2900:2,2901:1,2902:2,2903:2,2904:2,2905:2,2906:2,2907:2,2908:2,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2915:2,2916:2,2917:2,2918:2,2919:2,2920:2,2921:1,2922:1,2923:1,2924:2,2925:2,2926:2,2927:2,2928:2,2929:2,2930:2,2931:0,2932:0,2933:0,2934:0,2935:0,2936:0,2937:0,2938:0,2939:0,2940:0,2941:0,2942:0,2943:0,2944:0,2945:0,2946:0,2947:0,2948:0,2949:0,2950:0,2951:0,2952:0,2953:0,2954:0,2955:0,2956:0,2957:0,2958:0,2959:0,2960:0,2961:0,2962:0,2964:2,2965:2,2966:2,2967:2,2968:2,2969:0,2970:0,2971:0,2972:0,2973:0,2975:0,2976:0,2977:0,2978:0,2979:0,2980:0,2981:0,2982:0,2983:0,2984:0,2985:0,2986:0,2987:0,2988:0,2989:0,2990:0,2991:0,2992:1,2993:0,2994:1,2995:0,2996:0,2997:0,2998:0,2999:0,3000:0,3001:0,3002:0,3003:0,3004:0,3005:0,3006:0,3007:0,3008:0,3009:0,3010:0,3011:0,3012:0,3013:0,3014:0,3015:0,3016:0,3017:0,3018:0,3019:0,3020:0,3021:0,3022:0,3023:0,3024:0,3025:0,3026:0,3027:0,3028:0,3029:0,3030:0,3031:0,3032:0,3033:0,3034:0,3035:0,3036:0,3037:0,3038:0,3039:0,3040:0,3041:0,3042:0,3043:0,3044:0,3045:0,3046:0,3047:0,3048:0,3049:0,3050:0,3051:0,3054:0,3055:0,3056:0,3057:0,3058:0,3059:0,3060:0,3061:0,3062:0,3063:0,3064:0,3065:0,3066:0,3067:0,3068:0,3069:0,3070:0,3071:0,3072:0,3073:0,3074:0,3075:0,3076:0,3077:0,3078:0,3079:0,3080:1,3081:0,3082:0,3083:0,3084:0,3085:0,3086:0,3087:0,3088:0,3089:2,3090:0,3091:2,3092:0,3093:0,3094:0,3095:0,3096:0,3097:0,3098:0,3099:0,3100:0,3101:0,3102:2,3106:0,3107:0,3108:0,3109:0,3110:0,3111:0,3112:0,3113:0,3114:0,3115:0,3116:0,3117:0,3118:0,3119:0,3120:0,3121:0,3122:0,3123:0,3124:0,3125:0,3126:0,3127:0,3128:0,3129:0,3130:0,3131:0,3132:0,3133:0,3134:0,3135:0,3136:0,3137:0,3138:0,3141:0,3142:0,3146:0,3147:0,3148:0,3149:0,3150:0,3151:0,3153:0,3154:0,3155:0,3156:0,3157:0,3158:0,3159:0,3160:0,3161:0,3162:0,3163:0,3164:0,3165:0,3166:0,3167:13,3168:0,3169:0,3170:0,3171:0,3172:0,3174:0,3175:0,3176:0,3177:0,3178:0,3179:0,3180:0,3181:0,3182:0,3183:0,3184:0,3185:0,3186:0,3187:0,3188:0,3189:0,3190:0,3191:0,3192:0,3193:0,3194:0,3195:0,3196:0,3197:0,3198:0,3199:0,3200:0,3201:0,3202:0,3203:0,3294:0,3295:0,3296:0,3297:0,3298:0,3299:0,3300:0,3301:0,3302:0,3303:0,3304:0,3305:0,3306:0,3307:0,3308:0,3309:0,3310:0,3311:0,3312:0,3313:0,3314:0,3315:0,3316:0,3317:0,3318:0,3319:0,3320:0,3321:0,3322:0,3323:0,3324:0,3325:0,3326:0,3327:0,3328:0,3329:0,3330:0,3331:0,3332:0,3333:0,3334:0,3335:0,3336:0,3337:0,3338:0,3339:0,3340:0,3341:0,3342:0,3343:0,3344:0,3345:0,3346:0,3347:0,3348:0,3349:0,3350:0,3351:0,3352:0,3353:0,3354:0,3355:0,3356:0,3357:0,3358:0,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3367:0,3368:0,3369:0,3370:0,3371:0,3372:0,3373:0,3374:0,3375:0,3376:0,3377:0,3378:0,3379:0,3380:0,3381:0,3382:0,3383:0,3384:0,3385:0,3386:0,3387:0,3388:0,3389:0,3390:0,3391:0,3392:0,3393:0,3394:0,3395:0,3396:0,3397:0,3398:0,3399:0,3400:0,3401:0,3402:0,3403:0,3404:2,3405:0,3406:0,3407:3,3408:0,3409:0,3410:0,3411:0,3412:0,3413:0,3414:0,3415:0,3416:0,3417:2,3418:2,3419:2,3420:2,3421:2,3422:2,3423:2,3424:2,3425:2,3426:2,3427:2,3428:2,3429:2,3430:2,3431:2,3432:2,3433:2,3434:2,3435:2,3436:2,3437:2,3438:2,3439:0,3440:0,3441:2,3442:2,3443:2,3444:2,3445:2,3446:2,3447:0,3448:0,3449:0,3450:0,3451:2,3452:2,3453:2,3454:2,3455:2,3456:2,3457:2,3458:2,3459:2,3460:0,3461:0,3462:0,3463:0,3464:0,3465:0,3466:0,3467:0,3468:0,3469:0,3470:0,3471:0,3472:0,3473:0,3474:0,3475:0,3476:0,3477:0,3478:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3554:0,3555:0,3556:0,3557:0,3558:0,3559:0,3560:2,3561:2,3562:2,3563:2,3564:2,3565:2,3566:2,3567:2,3568:2,3569:2,3570:2,3571:0,3572:0,3573:0,3574:0,3575:0,3576:0,3577:0,3578:0,3579:0,3580:0,3581:0,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3594:0,3595:0,3596:0,3597:0,3598:2,3599:0,3600:2,3601:0,3602:0,3603:0,3604:0,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3637:0,3638:0,3639:0,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3665:0,3666:0,3667:0,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3693:0,3694:0,3695:0,3696:2,3697:0,3698:2,3699:0,3700:2,3701:0,3702:0,3703:0,3704:0,3705:0,3706:0,3707:0,3708:0,3709:0,3710:0,3711:0,3712:0,3713:0,3714:0,3715:0,3716:0,3717:0,3718:0,3719:0,3720:0,3721:0,3722:0,3723:0,3724:0,3725:0,3726:0,3727:0,3728:2,3729:2,3730:2,3731:2,3732:2,3733:2,3734:2,3735:2,3736:2,3737:2,3738:2,3739:2,3740:0,3741:0,3742:0,3743:0,3744:0,3745:0,3746:0,3747:0,3748:0,3749:0,3750:0,3751:0,3753:2,3754:2,3755:2,3756:2,3757:2,3758:2,3759:2,3760:2,3761:0,3762:0,3763:0,3764:0,3765:0,3766:0,3767:0,3768:0,3769:0,3770:0,3771:0,3772:0,3773:0,3775:0,3776:0,3777:0,3779:0,3780:0,3781:0,3783:0,3784:0,3785:0,3788:0,3789:0,3790:0,3791:0,3793:0,3794:0,3797:0,3798:0,3799:0,3800:0,3801:0,3802:0,3812:0,3814:0,3815:0,3816:0,3825:0,3826:0,3827:0,3828:0,3829:0,3832:0,3833:0,3834:0,3835:0,3836:0,3837:0,3838:0,3839:0,3840:0,3841:0,3844:0,3845:0,3846:0,3847:0,3848:0,3849:0,3850:0,3851:0,3852:0,3854:0,3857:0,3873:0,3874:0,3875:0,3876:0,3877:0,3878:0,3879:0,3880:0,3881:0,3882:0,3883:0,3884:0,3885:0,3890:0,3891:0,3892:0,3893:0,3907:0,3908:0,3909:0,3910:0,3911:0,3912:0,3920:0,3942:0,3943:0,3944:0,3945:0,3946:0,3947:0,3948:0,3949:0,3950:0,3968:0,3969:0,3970:0,3973:0,3974:0,3975:0,3976:0,3978:0,3979:0,3986:0,3987:0,3988:0,3989:0,3991:2,3992:2,3994:0,3995:0,3996:0,3997:0,4026:0,4037:0,4038:0,4048:0,4049:0,4050:0,4051:0,4056:0,4057:0,4058:0,4059:0,4060:0,4061:0,4062:0,4063:0,4071:0,4082:0,4083:0,4093:0,4094:0,4095:0,4096:0,4217:2,4399:2,4400:2,4401:2,4402:2,4403:2,4404:2,4405:2,4406:2,4407:2,4408:2,4409:2,4410:2,4411:2,4412:2,4413:2,4414:0,4415:0,4417:0,4418:2,4419:2,4420:2,4421:2,4422:2,4423:2,4424:2,4425:2,4426:2,4427:2,4428:2,4429:2,4430:2,4431:2,4432:2,4433:2,4434:0,4437:0,4438:2,4439:2,4455:2,4456:2,4457:2,4462:0,4467:0,4471:0,4474:0,4484:0,4485:0,4486:0,4487:0,4488:0,4489:0,4491:0,4492:0,4493:0,4494:0,4495:0,4496:0,4497:0,4498:0,4499:0,4500:0,4501:0,4502:0,4503:0,4504:0,4505:0,4506:0,4507:0,4508:0,4509:0,4510:0,4511:0,4512:0,4513:0,4514:0,4515:0,4516:0,4517:0,4518:0,4519:0,4520:0,4521:0,4522:0,4523:0,4524:0,4525:0,4526:0,4527:0,4528:0,4529:0,4530:0,4531:0,4532:0,4533:0,4534:0,4535:0,4536:0,4537:0,4538:0,4539:0,4540:0,4541:0,4542:0,4543:0,4544:0,4545:0,4546:0,4547:0,4548:0,4549:0,4550:0,4551:0,4552:0,4553:0,4554:0,4559:0,4568:0,4569:0,4570:0,4571:0,4572:0,4573:0,4574:0,4575:0,4576:0,4577:0,4578:0,4579:0,4580:0,4581:0,4582:0,4583:0,4584:0,4585:0,4586:0,4587:0,4588:0,4589:0,4647:0,4652:0,4653:0,4654:0,4655:0,4656:0,4766:0,4767:0,4768:0,4769:0,4770:0,4771:0,4772:0,4773:0,4774:0,4775:0,4776:0,4777:0,4778:0,4779:0,4780:0,4781:0,4782:0,4783:0,4784:0,4785:0,4786:0,4787:0,4788:0,4789:0,4790:0,4791:0,4792:0,4793:0,4794:0,4795:0,4796:0,4797:0,4798:0,4799:0,4800:0,4822:0,4826:0,4839:0,5014:0,5015:0,5016:0,5018:0,5048:0,5069:0,5070:0,5071:0,5072:0,5105:0,5106:0,5107:0,5108:0,5109:0,5110:0,5111:0,5112:0,5113:0,5114:0,5115:0,5116:0,5117:0,5118:0,5119:0,5120:0,5121:0,5122:0,5123:0,5124:0,5125:0,5126:0,5127:0,5128:0,5129:0,5130:0,5167:0,5168:0,5173:0,5174:0,5175:0,5176:0,5177:0,5178:0,5179:0,5180:0,5181:0,5182:0,5183:0,5184:0,5185:0,5186:0,5187:0,5188:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5253:0,5254:0,5255:0,5256:0,5257:0,5258:0,5259:0,5266:0,5269:0,5270:0,5271:0,5272:0,5273:0,5274:0,5275:0,5292:0,5293:0,5294:0,5295:0,5296:0,5297:0,5298:0,5299:0,5300:0,5301:0,5302:0,5303:0,5304:0,5305:0,5306:0,5307:0,5308:0,5309:0,5310:0,5311:0,5316:0,5320:0,5321:0,5325:0,5329:0,5330:0,5331:0,5337:0,5343:0,5344:0,5345:0,5346:0,5347:0,5348:0,5349:0,5355:0,5356:0,5357:0,5361:0,5362:0,5367:0,5382:0,5383:0,5387:0,5388:0,5389:0,5396:0,5456:0,5457:0,5459:0,5460:0,5461:0,5462:0,5463:0,5469:0,5472:4,5479:0,5480:0,5481:0,5482:0,5490:0,5513:0,5514:0,5518:0,5519:0,5520:0,5523:0,5530:0,5531:0,5532:0,5533:0,5534:0,5535:0,5536:0,5537:0,5538:0,5539:0,5550:0,5551:0,5552:0,5559:0,5562:0,5563:0,5564:0,5565:0,5566:0,5567:0,5568:0,5569:0,5570:0,5571:0,5572:0,5573:0,5574:0,5575:0,5576:0,5577:0,5578:0,5579:0,5580:0,5581:0,5582:0,5583:0,5588:1,5589:3,5596:0,5623:2,5624:2,5625:2,5627:0,5629:0,5631:0,5632:0,5633:0,5634:0,5635:0,5636:0,5637:0,5638:0,5639:0,5641:0,5643:0,5644:0,5646:2,5649:0,5650:0,5651:0,5652:0,5653:0,5654:2,5655:2,5659:0,5663:0,5664:0,5665:0,5666:0,5667:0,5668:0,5669:0,5670:0,5671:0,5672:0,5673:0,5674:0,5675:0,5676:0,5677:0,5678:0,5679:0,5680:0,5682:0,5683:0,5684:0,5685:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5875:0,5876:0,5877:0,5879:0,5880:0,5887:0,5890:0,5921:0,5922:0,5923:0,5924:0,5925:0,5926:0,5927:0,5928:0,5929:0,5930:0,5931:0,5932:0,5933:0,5934:0,5935:0,5936:0,5937:0,5938:0,5939:0,5940:0,6050:0,6051:0,6052:0,6053:0,6054:0,6055:0,6056:0,6057:0,6058:0,6059:0,6060:0,6061:0,6062:0,6063:0,6064:0,6065:0,6066:0,6067:0,6068:0,6069:0,6070:0,6071:0,6072:0,6073:0,6074:0,6075:0,6076:0,6077:0,6078:0,6079:0,6080:0,6081:0,6082:0,6083:0,6084:0,6085:0,6086:0,6087:0,6088:0,6089:0,6090:0,6091:0,6092:0,6093:0,6094:0,6095:0,6096:0,6097:0,6098:0,6099:0,6100:0,6101:0,6102:0,6103:0,6104:0,6105:0,6106:0,6107:0,6108:0,6109:0,6110:0,6111:0,6112:0,6113:0,6114:0,6115:0,6116:0,6117:0,6118:0,6119:0,6120:0,6121:0,6122:0,6123:0,6124:0,6125:0,6128:1,6129:1,6141:1,6210:0,6211:0,6244:0,6245:0,6246:0,6247:0,6248:0,6249:0,6250:0,6251:0,6252:0,6253:0,6254:0,6255:0,6256:0,6257:0,6258:0,6259:0,6260:0,6261:0,6262:0,6263:0,6264:0,6265:0,6266:0,6267:0,6268:0,6269:0,6270:0,6271:0,6272:0,6273:0,6274:0,6275:0,6316:0,6328:0,6329:0,6330:0,6331:0,6332:0,6333:0,6334:0,6335:0,6336:0,6337:0,6338:0,6339:0,6340:0,6341:0,6342:0,6343:0,6344:0,6345:0,6346:0,6347:0,6348:0,6350:0,6351:0,6352:0,6353:0,6354:0,6391:1,20002:0,20003:0,20004:0,20005:0,20006:0,20007:0,20008:0,20009:0,20010:0,20011:0,20012:0,20013:0,20014:0,20015:0,20016:0,20017:0,20018:0,20019:0,20020:0,20021:0,20022:0,20023:0,20024:0,20025:0,20026:0,20027:0,20028:0,20029:0,20030:0,20031:0,20032:0,20062:0,20063:0,20064:0,20065:0,20066:0,20067:0,20068:0,20069:0,20070:0,20071:0,20072:0,20073:0,20074:0,20075:0,20076:0,20077:0,20078:0,20079:0,20080:0,20081:0,20082:0,20083:0,20084:0,20085:0,20086:0,20087:0,20088:0,20089:0,20090:0,20091:0,20092:0,20135:0,20136:0,20137:0,20138:0,20248:0,20249:0,20250:0,20251:0,20252:0,20253:0,20254:0,20255:0,20256:0,20257:0,20258:0,20348:0,20349:0,20350:0,20351:0,20352:0,20353:0,20354:0,20355:0,20356:0,20357:0,20358:0,20436:0,20437:0,20438:0,20439:0,20440:0,20499:0,20538:0,20539:0,20790:0,20791:0,20822:0,20823:0,20824:0,20934:0,20935:0,20936:0,21035:0,21036:0,21037:0,21095:0,21096:0,21097:0,21148:0,21149:0,21150:0,21291:0,21292:0,21413:0,21414:0,21415:0,21416:0,21417:0,21418:0,21419:0,21420:0,21421:0,21422:0,21423:0,21473:0,21474:0,21475:0,21476:0,21477:0,21478:0,21479:0,21480:0,21481:0,21482:0,21483:0,21500:0,21780:0,21781:0,21782:0,21817:0,21818:0,21891:0,21892:0,21893:0,21894:0,21896:0,21897:0,21898:0,21899:0,22032:0,22033:0,22091:0,22092:0,22171:0,22172:0,22173:0,22174:0,22175:0,22176:0,22177:0,22181:0,22182:0,22183:0,22184:0,22185:0,22186:0,22187:0,22191:0,22192:0,22193:0,22194:0,22195:0,22196:0,22197:0,22234:0,22235:0,22236:0,22332:0,22391:0,22392:0,22521:0,22522:0,22523:0,22524:0,22525:0,22700:0,22770:0,22780:0,22832:0,22991:0,22992:0,22993:0,22994:0,23028:0,23029:0,23030:0,23031:0,23032:0,23033:0,23034:0,23035:0,23036:0,23037:0,23038:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,23830:0,23831:0,23832:0,23833:0,23834:0,23835:0,23836:0,23837:0,23838:0,23839:0,23840:0,23841:0,23842:0,23843:0,23844:0,23845:0,23846:0,23847:0,23848:0,23849:0,23850:0,23851:0,23852:0,23853:0,23866:0,23867:0,23868:0,23869:0,23870:0,23871:0,23872:0,23877:0,23878:0,23879:0,23880:0,23881:0,23882:0,23883:0,23884:0,23886:0,23887:0,23888:0,23889:0,23890:0,23891:0,23892:0,23893:0,23894:0,23946:0,23947:0,23948:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24311:0,24312:0,24313:0,24342:0,24343:0,24344:0,24345:0,24346:0,24347:0,24370:10,24371:10,24372:10,24373:10,24374:10,24375:0,24376:0,24377:0,24378:0,24379:0,24380:0,24381:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,24718:0,24719:0,24720:0,24721:0,24817:0,24818:0,24819:0,24820:0,24821:0,24877:0,24878:0,24879:0,24880:0,24881:0,24882:0,24891:0,24892:0,24893:0,25000:0,25231:0,25391:0,25392:0,25393:0,25394:0,25395:0,25828:0,25829:0,25830:0,25831:0,25832:0,25833:0,25834:0,25835:0,25836:0,25837:0,25838:0,25884:0,25932:0,26191:0,26192:0,26193:0,26194:0,26195:0,26237:0,26331:0,26332:0,26391:0,26392:0,26393:0,26432:0,26591:0,26592:0,26632:0,26692:0,26701:0,26702:0,26703:0,26704:0,26705:0,26706:0,26707:0,26708:0,26709:0,26710:0,26711:0,26712:0,26713:0,26714:0,26715:0,26716:0,26717:0,26718:0,26719:0,26720:0,26721:0,26722:0,26729:2,26730:2,26731:2,26732:2,26733:2,26734:2,26735:2,26736:2,26737:2,26738:2,26739:2,26740:2,26741:2,26742:2,26743:2,26744:2,26745:2,26746:2,26747:2,26748:2,26749:2,26750:2,26751:2,26752:2,26753:2,26754:2,26755:2,26756:2,26757:2,26758:2,26759:2,26760:2,26761:2,26762:2,26763:2,26764:2,26765:2,26766:2,26767:2,26768:2,26769:2,26770:2,26771:2,26772:2,26773:2,26774:2,26775:2,26776:2,26777:2,26778:2,26779:2,26780:2,26781:2,26782:2,26783:2,26784:2,26785:2,26786:2,26787:2,26788:2,26789:2,26790:2,26791:2,26792:2,26793:2,26794:2,26795:2,26796:2,26797:2,26798:2,26799:2,26801:2,26802:2,26803:2,26811:2,26812:2,26813:2,26847:2,26848:2,26849:2,26850:2,26851:2,26852:2,26853:2,26854:2,26855:2,26856:2,26857:2,26858:2,26859:2,26860:2,26861:2,26862:2,26863:2,26864:2,26865:2,26866:2,26867:2,26868:2,26869:2,26870:2,26891:0,26892:0,26893:0,26894:0,26895:0,26896:0,26897:0,26898:0,26899:0,26901:0,26902:0,26903:0,26904:0,26905:0,26906:0,26907:0,26908:0,26909:0,26910:0,26911:0,26912:0,26913:0,26914:0,26915:0,26916:0,26917:0,26918:0,26919:0,26920:0,26921:0,26922:0,26923:0,26929:0,26930:0,26931:0,26932:0,26933:0,26934:0,26935:0,26936:0,26937:0,26938:0,26939:0,26940:0,26941:0,26942:0,26943:0,26944:0,26945:0,26946:0,26948:0,26949:0,26950:0,26951:0,26952:0,26953:0,26954:0,26955:0,26956:0,26957:0,26958:0,26959:0,26960:0,26961:0,26962:0,26963:0,26964:0,26965:0,26966:0,26967:0,26968:0,26969:0,26970:0,26971:0,26972:0,26973:0,26974:0,26975:0,26976:0,26977:0,26978:0,26979:0,26980:0,26981:0,26982:0,26983:0,26984:0,26985:0,26986:0,26987:0,26988:0,26989:0,26990:0,26991:0,26992:0,26993:0,26994:0,26995:0,26996:0,26997:0,26998:0,27037:0,27038:0,27039:0,27040:0,27120:0,27200:0,27205:0,27206:0,27207:0,27208:0,27209:0,27210:0,27211:0,27212:0,27213:0,27214:0,27215:0,27216:0,27217:0,27218:0,27219:0,27220:0,27221:0,27222:0,27223:0,27224:0,27225:0,27226:0,27227:0,27228:0,27229:0,27230:0,27231:0,27232:0,27258:0,27259:0,27260:0,27291:6,27292:6,27391:0,27392:0,27393:0,27394:0,27395:0,27396:0,27397:0,27398:0,27429:0,27492:0,27493:0,27500:0,27561:0,27562:0,27563:0,27564:0,27571:0,27572:0,27573:0,27574:0,27581:0,27582:0,27583:0,27584:0,27591:0,27592:0,27593:0,27594:0,27700:0,28191:0,28192:0,28193:0,28232:0,28348:0,28349:0,28350:0,28351:0,28352:0,28353:0,28354:0,28355:0,28356:0,28357:0,28358:0,28402:0,28403:0,28404:0,28405:0,28406:0,28407:0,28408:0,28409:0,28410:0,28411:0,28412:0,28413:0,28414:0,28415:0,28416:0,28417:0,28418:0,28419:0,28420:0,28421:0,28422:0,28423:0,28424:0,28425:0,28426:0,28427:0,28428:0,28429:0,28430:0,28431:0,28432:0,28462:0,28463:0,28464:0,28465:0,28466:0,28467:0,28468:0,28469:0,28470:0,28471:0,28472:0,28473:0,28474:0,28475:0,28476:0,28477:0,28478:0,28479:0,28480:0,28481:0,28482:0,28483:0,28484:0,28485:0,28486:0,28487:0,28488:0,28489:0,28490:0,28491:0,28492:0,28600:0,28991:0,28992:0,29100:0,29101:0,29118:0,29119:0,29120:0,29121:0,29122:0,29168:0,29169:0,29170:0,29171:0,29172:0,29177:0,29178:0,29179:0,29180:0,29181:0,29182:0,29183:0,29184:0,29185:0,29187:0,29188:0,29189:0,29190:0,29191:0,29192:0,29193:0,29194:0,29195:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29900:0,29901:0,29902:0,29903:0,30161:0,30162:0,30163:0,30164:0,30165:0,30166:0,30167:0,30168:0,30169:0,30170:0,30171:0,30172:0,30173:0,30174:0,30175:0,30176:0,30177:0,30178:0,30179:0,30200:5,30339:0,30340:0,30491:0,30492:0,30493:0,30494:0,30591:0,30592:0,30729:0,30730:0,30731:0,30732:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31251:0,31252:0,31253:0,31254:0,31255:0,31256:0,31257:0,31258:0,31259:0,31265:0,31266:0,31267:0,31268:0,31275:0,31276:0,31277:0,31278:0,31279:0,31281:0,31282:0,31283:0,31284:0,31285:0,31286:0,31287:0,31288:0,31289:0,31290:0,31291:0,31292:0,31293:0,31294:0,31295:0,31296:0,31297:0,31370:0,31461:0,31462:0,31463:0,31464:0,31465:0,31466:0,31467:0,31468:0,31469:0,31491:0,31492:0,31493:0,31494:0,31495:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,31917:0,31918:0,31919:0,31920:0,31921:0,31922:0,31965:0,31966:0,31967:0,31968:0,31969:0,31970:0,31971:0,31972:0,31973:0,31974:0,31975:0,31976:0,31977:0,31978:0,31979:0,31980:0,31981:0,31982:0,31983:0,31984:0,31985:0,31986:0,31987:0,31988:0,31989:0,31990:0,31991:0,31992:0,31993:0,31994:0,31995:0,31996:0,31997:0,31998:0,31999:0,32000:0,32001:2,32002:2,32003:2,32005:2,32006:2,32007:2,32008:2,32009:2,32010:2,32011:2,32012:2,32013:2,32014:2,32015:2,32016:2,32017:2,32018:2,32019:2,32020:2,32021:2,32022:2,32023:2,32024:2,32025:2,32026:2,32027:2,32028:2,32029:2,32030:2,32031:2,32033:2,32034:2,32035:2,32036:2,32037:2,32038:2,32039:2,32040:2,32041:2,32042:2,32043:2,32044:2,32045:2,32046:2,32047:2,32048:2,32049:2,32050:2,32051:2,32052:2,32053:2,32054:2,32055:2,32056:2,32057:2,32058:2,32059:2,32060:2,32061:0,32062:0,32064:2,32065:2,32066:2,32067:2,32074:2,32075:2,32076:2,32077:2,32081:0,32082:0,32083:0,32084:0,32085:0,32086:0,32098:0,32099:2,32100:0,32104:0,32107:0,32108:0,32109:0,32110:0,32111:0,32112:0,32113:0,32114:0,32115:0,32116:0,32117:0,32118:0,32119:0,32120:0,32121:0,32122:0,32123:0,32124:0,32125:0,32126:0,32127:0,32128:0,32129:0,32130:0,32133:0,32134:0,32135:0,32136:0,32137:0,32138:0,32139:0,32140:0,32141:0,32142:0,32143:0,32144:0,32145:0,32146:0,32147:0,32148:0,32149:0,32150:0,32151:0,32152:0,32153:0,32154:0,32155:0,32156:0,32157:0,32158:0,32161:0,32164:2,32165:2,32166:2,32167:2,32180:0,32181:0,32182:0,32183:0,32184:0,32185:0,32186:0,32187:0,32188:0,32189:0,32190:0,32191:0,32192:0,32193:0,32194:0,32195:0,32196:0,32197:0,32198:0,32199:0,32201:0,32202:0,32203:0,32204:0,32205:0,32206:0,32207:0,32208:0,32209:0,32210:0,32211:0,32212:0,32213:0,32214:0,32215:0,32216:0,32217:0,32218:0,32219:0,32220:0,32221:0,32222:0,32223:0,32224:0,32225:0,32226:0,32227:0,32228:0,32229:0,32230:0,32231:0,32232:0,32233:0,32234:0,32235:0,32236:0,32237:0,32238:0,32239:0,32240:0,32241:0,32242:0,32243:0,32244:0,32245:0,32246:0,32247:0,32248:0,32249:0,32250:0,32251:0,32252:0,32253:0,32254:0,32255:0,32256:0,32257:0,32258:0,32259:0,32260:0,32301:0,32302:0,32303:0,32304:0,32305:0,32306:0,32307:0,32308:0,32309:0,32310:0,32311:0,32312:0,32313:0,32314:0,32315:0,32316:0,32317:0,32318:0,32319:0,32320:0,32321:0,32322:0,32323:0,32324:0,32325:0,32326:0,32327:0,32328:0,32329:0,32330:0,32331:0,32332:0,32333:0,32334:0,32335:0,32336:0,32337:0,32338:0,32339:0,32340:0,32341:0,32342:0,32343:0,32344:0,32345:0,32346:0,32347:0,32348:0,32349:0,32350:0,32351:0,32352:0,32353:0,32354:0,32355:0,32356:0,32357:0,32358:0,32359:0,32360:0,32601:0,32602:0,32603:0,32604:0,32605:0,32606:0,32607:0,32608:0,32609:0,32610:0,32611:0,32612:0,32613:0,32614:0,32615:0,32616:0,32617:0,32618:0,32619:0,32620:0,32621:0,32622:0,32623:0,32624:0,32625:0,32626:0,32627:0,32628:0,32629:0,32630:0,32631:0,32632:0,32633:0,32634:0,32635:0,32636:0,32637:0,32638:0,32639:0,32640:0,32641:0,32642:0,32643:0,32644:0,32645:0,32646:0,32647:0,32648:0,32649:0,32650:0,32651:0,32652:0,32653:0,32654:0,32655:0,32656:0,32657:0,32658:0,32659:0,32660:0,32661:0,32662:0,32664:2,32665:2,32666:2,32667:2,32701:0,32702:0,32703:0,32704:0,32705:0,32706:0,32707:0,32708:0,32709:0,32710:0,32711:0,32712:0,32713:0,32714:0,32715:0,32716:0,32717:0,32718:0,32719:0,32720:0,32721:0,32722:0,32723:0,32724:0,32725:0,32726:0,32727:0,32728:0,32729:0,32730:0,32731:0,32732:0,32733:0,32734:0,32735:0,32736:0,32737:0,32738:0,32739:0,32740:0,32741:0,32742:0,32743:0,32744:0,32745:0,32746:0,32747:0,32748:0,32749:0,32750:0,32751:0,32752:0,32753:0,32754:0,32755:0,32756:0,32757:0,32758:0,32759:0,32760:0,32761:0,32766:0,53001:0,53002:0,53003:0,53004:0,53008:0,53009:0,53010:0,53011:0,53012:0,53013:0,53014:0,53015:0,53016:0,53017:0,53018:0,53019:0,53021:0,53022:0,53023:0,53024:0,53025:0,53026:0,53027:0,53028:0,53029:0,53030:0,53031:0,53032:0,53034:0,53042:0,53043:0,53044:0,53045:0,53046:0,53048:0,53049:0,54001:0,54002:0,54003:0,54004:0,54008:0,54009:0,54010:0,54011:0,54012:0,54013:0,54014:0,54015:0,54016:0,54017:0,54018:0,54019:0,54021:0,54022:0,54023:0,54024:0,54025:0,54026:0,54027:0,54028:0,54029:0,54030:0,54031:0,54032:0,54034:0,54042:0,54043:0,54044:0,54045:0,54046:0,54048:0,54049:0,54050:0,54051:0,54052:0,54053:0,65061:2,65062:2,65161:0,65163:0,102001:0,102002:0,102003:0,102004:0,102005:0,102006:0,102007:0,102008:0,102009:0,102010:0,102011:0,102012:0,102013:0,102014:0,102015:0,102016:0,102017:0,102018:0,102019:0,102020:0,102021:0,102022:0,102023:0,102024:0,102025:0,102026:0,102027:0,102028:0,102029:0,102030:0,102031:0,102032:0,102033:0,102034:0,102035:0,102036:0,102037:0,102038:0,102039:0,102040:0,102041:2,102042:0,102043:0,102044:0,102045:0,102046:0,102047:0,102048:0,102049:0,102050:0,102051:0,102052:0,102053:0,102054:0,102055:0,102056:0,102057:0,102058:0,102059:0,102060:0,102061:0,102062:0,102063:0,102064:11,102065:0,102066:0,102067:0,102068:14,102069:15,102070:0,102071:0,102072:0,102073:0,102074:0,102075:0,102076:0,102077:0,102078:0,102079:0,102080:0,102081:0,102082:0,102083:0,102084:0,102085:0,102086:0,102087:0,102088:0,102089:0,102090:0,102091:0,102092:0,102093:0,102094:0,102095:0,102096:0,102097:0,102098:0,102099:0,102100:0,102101:0,102102:0,102103:0,102104:0,102105:0,102106:0,102107:0,102108:0,102109:0,102110:0,102111:0,102112:0,102113:0,102114:0,102115:0,102116:0,102117:0,102118:2,102119:1,102120:2,102121:2,102122:0,102123:0,102124:0,102125:0,102126:0,102127:0,102128:0,102129:0,102130:0,102131:0,102132:0,102133:0,102134:0,102135:0,102136:0,102137:0,102138:0,102139:0,102140:0,102141:0,102142:0,102143:0,102144:0,102145:0,102146:0,102147:0,102148:0,102149:0,102150:0,102151:0,102152:0,102153:0,102154:0,102155:0,102156:0,102157:0,102158:0,102159:0,102160:0,102161:0,102162:0,102163:0,102164:0,102165:0,102166:0,102167:0,102168:0,102169:0,102170:0,102171:0,102172:0,102173:0,102174:0,102175:0,102176:0,102177:0,102178:0,102179:0,102180:0,102181:0,102182:0,102183:0,102184:0,102185:0,102186:0,102187:0,102188:0,102189:0,102190:0,102191:0,102192:0,102193:0,102194:0,102195:0,102196:0,102197:0,102198:0,102199:0,102200:0,102201:0,102202:0,102203:0,102204:0,102205:0,102206:0,102207:0,102208:0,102209:0,102210:0,102211:0,102212:0,102213:0,102214:0,102215:0,102216:0,102217:2,102218:0,102219:2,102220:2,102221:0,102222:0,102223:0,102224:0,102225:0,102226:0,102227:0,102228:0,102229:0,102230:0,102231:0,102232:0,102233:0,102234:0,102235:0,102236:0,102237:0,102238:0,102239:0,102240:0,102241:0,102242:0,102243:0,102244:0,102245:0,102246:0,102247:0,102248:0,102249:0,102250:0,102251:0,102252:0,102253:0,102254:0,102255:0,102256:0,102257:0,102258:0,102259:0,102260:0,102261:0,102262:0,102263:0,102264:0,102265:0,102266:0,102267:0,102268:0,102269:0,102270:0,102271:0,102272:0,102273:0,102274:0,102275:0,102276:0,102277:0,102278:0,102279:0,102280:0,102281:0,102282:0,102283:0,102284:0,102285:0,102286:0,102287:0,102288:0,102289:0,102290:0,102291:0,102292:0,102293:0,102294:0,102295:0,102296:0,102297:0,102298:0,102299:0,102300:0,102301:0,102302:0,102303:0,102304:0,102305:0,102306:0,102307:0,102308:0,102309:0,102310:0,102311:0,102312:0,102313:0,102314:0,102315:0,102316:0,102317:0,102318:0,102319:0,102320:0,102321:0,102322:0,102323:0,102324:0,102325:0,102326:0,102327:0,102328:0,102329:0,102330:0,102331:0,102332:0,102333:0,102334:0,102335:0,102336:0,102337:0,102338:0,102339:0,102340:0,102341:0,102342:0,102343:0,102344:0,102345:0,102346:0,102347:0,102348:0,102349:0,102350:0,102351:0,102352:0,102353:0,102354:0,102355:0,102356:0,102357:0,102358:0,102359:0,102360:0,102361:0,102362:0,102363:0,102364:0,102365:0,102366:0,102367:0,102368:0,102369:0,102370:0,102371:0,102372:0,102373:0,102374:0,102375:0,102376:0,102377:0,102378:1,102379:1,102380:0,102381:1,102382:0,102383:0,102384:0,102385:0,102386:0,102387:0,102388:0,102389:2,102390:2,102391:2,102392:2,102393:2,102394:2,102395:2,102396:2,102397:2,102398:2,102401:0,102402:0,102403:0,102404:0,102405:0,102406:0,102407:0,102408:0,102409:0,102410:0,102411:0,102412:0,102413:0,102414:0,102415:0,102416:0,102417:0,102418:0,102419:0,102420:0,102421:0,102422:0,102423:0,102424:0,102425:0,102426:0,102427:0,102428:0,102429:0,102430:0,102431:0,102432:0,102433:0,102434:0,102435:0,102436:0,102437:0,102438:0,102439:0,102440:0,102441:0,102442:0,102443:0,102444:0,102445:2,102446:2,102447:2,102450:0,102451:0,102452:0,102461:2,102462:2,102463:2,102464:2,102465:2,102466:2,102467:2,102468:2,102469:0,102470:0,102471:0,102472:0,102473:0,102474:0,102475:0,102476:0,102477:0,102478:0,102479:0,102480:0,102481:0,102482:0,102483:0,102484:0,102485:0,102486:0,102487:0,102488:0,102489:0,102490:0,102491:0,102492:0,102493:0,102494:0,102495:0,102496:0,102500:1,102501:1,102502:1,102503:1,102504:1,102505:1,102506:1,102507:1,102508:1,102509:1,102510:1,102511:1,102512:1,102513:1,102514:1,102515:1,102516:1,102517:1,102518:1,102519:1,102520:0,102521:0,102522:0,102523:0,102524:0,102525:2,102526:2,102527:2,102528:2,102529:2,102530:0,102531:0,102532:0,102533:0,102534:0,102535:0,102536:0,102537:0,102538:0,102539:0,102540:0,102541:0,102542:0,102543:0,102544:0,102545:0,102546:0,102547:0,102548:0,102549:0,102570:0,102571:0,102572:0,102573:0,102574:0,102575:0,102576:0,102577:0,102578:0,102579:0,102580:0,102581:0,102582:0,102583:0,102584:0,102585:0,102586:0,102587:0,102588:0,102589:2,102590:0,102591:0,102592:0,102593:0,102594:0,102595:0,102596:0,102597:0,102598:0,102599:2,102600:2,102601:0,102602:0,102603:0,102604:2,102605:0,102606:0,102607:0,102608:0,102609:0,102610:0,102611:0,102612:0,102613:0,102614:0,102615:0,102616:0,102617:0,102618:0,102619:0,102620:0,102621:0,102622:0,102623:0,102624:0,102625:0,102626:0,102627:0,102628:0,102629:2,102630:2,102631:2,102632:2,102633:2,102634:2,102635:2,102636:2,102637:2,102638:2,102639:2,102640:2,102641:2,102642:2,102643:2,102644:2,102645:2,102646:2,102647:0,102648:2,102649:2,102650:2,102651:2,102652:2,102653:2,102654:2,102655:2,102656:2,102657:2,102658:2,102659:2,102660:2,102661:2,102662:2,102663:2,102664:2,102665:2,102666:2,102667:2,102668:2,102669:2,102670:2,102671:2,102672:2,102673:2,102674:2,102675:2,102676:2,102677:2,102678:2,102679:2,102680:2,102681:2,102682:2,102683:2,102684:2,102685:2,102686:2,102687:2,102688:2,102689:2,102690:2,102691:2,102692:2,102693:2,102694:2,102695:2,102696:2,102697:2,102698:2,102699:2,102700:2,102701:0,102702:0,102703:0,102704:2,102705:2,102707:2,102708:2,102709:2,102710:2,102711:2,102712:2,102713:2,102714:2,102715:2,102716:2,102717:2,102718:2,102719:2,102720:2,102721:2,102722:2,102723:2,102724:2,102725:2,102726:2,102727:2,102728:2,102729:2,102730:2,102733:2,102734:2,102735:2,102736:2,102737:2,102738:2,102739:2,102740:2,102741:2,102742:2,102743:2,102744:2,102745:2,102746:2,102747:2,102748:2,102749:2,102750:2,102751:2,102752:2,102753:2,102754:2,102755:2,102756:2,102757:2,102758:2,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102767:0,102768:0,102769:0,102770:0,102771:0,102772:0,102773:0,102774:0,102775:0,102776:0,102777:0,102778:0,102779:0,102780:0,102781:0,102782:0,102783:0,102784:0,102785:0,102786:0,102787:0,102788:0,102789:0,102790:0,102791:0,102792:0,102793:0,102794:0,102795:0,102796:0,102797:0,102798:0,102962:0,102963:0,102964:0,102965:0,102966:0,102967:0,102968:0,102969:0,102970:1,102971:0,102972:0,102973:0,102974:2,102975:0,102976:0,102977:0,102978:0,102979:0,102980:0,102981:0,102982:0,102983:0,102984:0,102985:0,102986:0,102987:0,102988:0,102989:0,102990:1,102991:1,102992:1,102993:0,102994:0,102995:2,102996:2,102997:0,102998:0,102999:0,103000:0,103001:0,103002:0,103003:2,103004:2,103005:2,103006:2,103007:2,103008:2,103009:0,103010:0,103011:0,103012:2,103013:2,103014:2,103015:0,103016:2,103017:0,103018:2,103019:0,103020:0,103021:0,103022:2,103023:2,103024:2,103025:0,103026:0,103027:2,103028:2,103029:0,103030:0,103031:0,103032:2,103033:2,103034:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103065:0,103066:0,103067:0,103068:0,103069:2,103070:0,103071:0,103072:2,103073:2,103074:0,103075:0,103076:0,103077:1,103078:1,103079:1,103080:0,103081:0,103082:0,103083:2,103084:2,103085:2,103086:0,103087:0,103088:2,103089:2,103090:0,103091:0,103092:0,103093:0,103094:1,103095:0,103096:2,103097:0,103098:0,103099:0,103100:2,103101:2,103102:2,103103:0,103104:2,103105:0,103106:2,103107:0,103108:0,103109:0,103110:2,103111:2,103112:2,103113:0,103114:0,103115:0,103116:0,103117:2,103118:2,103119:2,103120:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103153:0,103154:0,103155:0,103156:0,103157:0,103158:2,103159:2,103160:2,103161:2,103162:2,103163:0,103164:0,103165:0,103166:1,103167:1,103168:1,103169:2,103170:2,103171:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103186:0,103187:0,103188:0,103189:2,103190:2,103191:2,103192:0,103193:0,103194:0,103195:0,103196:2,103197:2,103198:2,103199:2,103200:0,103201:0,103202:0,103203:0,103204:0,103205:0,103206:0,103207:0,103208:0,103209:0,103210:0,103211:0,103212:0,103213:0,103214:0,103215:0,103216:0,103217:0,103218:0,103219:0,103220:0,103221:0,103222:0,103223:0,103224:0,103225:1,103226:1,103227:1,103228:0,103229:0,103230:2,103231:2,103232:0,103233:0,103234:0,103235:0,103236:0,103237:0,103238:2,103239:2,103240:2,103241:2,103242:2,103243:2,103244:0,103245:0,103246:0,103247:2,103248:2,103249:2,103250:0,103251:2,103252:0,103253:2,103254:0,103255:0,103256:0,103257:2,103258:2,103259:2,103260:0,103261:0,103262:2,103263:2,103264:0,103265:0,103266:0,103267:2,103268:2,103269:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103300:0,103301:0,103302:0,103303:0,103304:0,103305:0,103306:0,103307:0,103308:0,103309:0,103310:0,103311:0,103312:0,103313:0,103314:0,103315:0,103316:0,103317:0,103318:0,103319:0,103320:0,103321:0,103322:0,103323:0,103324:0,103325:0,103326:0,103327:0,103328:0,103329:0,103330:0,103331:0,103332:0,103333:0,103334:0,103335:0,103336:0,103337:0,103338:0,103339:0,103340:0,103341:0,103342:0,103343:0,103344:0,103345:0,103346:0,103347:0,103348:0,103349:0,103350:0,103351:0,103352:0,103353:0,103354:0,103355:0,103356:0,103357:0,103358:0,103359:0,103360:0,103361:0,103362:0,103363:0,103364:0,103365:0,103366:0,103367:0,103368:0,103369:0,103370:0,103371:0,103372:0,103373:0,103374:0,103375:0,103376:2,103377:0,103378:0,103379:2,103380:2,103381:0,103382:0,103383:0,103384:1,103385:1,103386:1,103387:0,103388:0,103389:0,103390:2,103391:2,103392:2,103393:0,103394:0,103395:2,103396:2,103397:0,103398:0,103399:0,103400:2,103401:2,103402:2,103403:2,103404:2,103405:2,103406:2,103407:2,103408:2,103409:2,103410:2,103411:2,103412:2,103413:2,103414:2,103415:2,103416:2,103417:2,103418:2,103419:2,103420:2,103421:2,103422:2,103423:2,103424:2,103425:2,103426:2,103427:2,103428:2,103429:2,103430:2,103431:2,103432:2,103433:2,103434:2,103435:2,103436:2,103437:2,103438:2,103439:2,103440:2,103441:2,103442:2,103443:2,103444:2,103445:2,103446:2,103447:2,103448:2,103449:2,103450:2,103451:2,103452:2,103453:2,103454:2,103455:2,103456:2,103457:2,103458:2,103459:2,103460:2,103461:2,103462:2,103463:2,103464:2,103465:2,103466:2,103467:2,103468:2,103469:2,103470:2,103471:2,103472:0,103473:1,103474:0,103475:2,103476:0,103477:0,103478:0,103479:2,103480:2,103481:2,103482:0,103483:2,103484:0,103485:2,103486:0,103487:0,103488:0,103489:2,103490:2,103491:2,103492:0,103493:0,103494:0,103495:0,103496:2,103497:2,103498:2,103499:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103528:0,103529:0,103530:0,103531:0,103532:0,103533:0,103534:0,103535:0,103536:0,103537:0,103538:0,103539:0,103540:0,103541:0,103542:0,103543:0,103544:2,103545:2,103546:2,103547:2,103548:2,103549:0,103550:0,103551:0,103552:1,103553:1,103554:1,103555:2,103556:2,103557:2,103558:0,103559:0,103560:0,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103571:0,103572:0,103573:0,103574:2,103575:2,103576:2,103577:0,103578:0,103579:0,103580:0,103581:2,103582:2,103583:2,103584:0,103585:2,103600:0,103601:0,103602:0,103603:0,103604:0,103605:0,103606:0,103607:0,103608:0,103609:0,103610:0,103611:0,103612:0,103613:0,103614:0,103615:0,103616:0,103617:0,103618:0,103619:0,103620:0,103621:0,103622:0,103623:0,103624:0,103625:0,103626:0,103627:0,103628:0,103629:0,103630:0,103631:0,103632:0,103633:0,103634:0,103635:0,103636:0,103637:0,103638:0,103639:0,103640:0,103641:0,103642:0,103643:0,103644:0,103645:0,103646:0,103647:0,103648:0,103649:0,103650:0,103651:0,103652:0,103653:0,103654:0,103655:0,103656:0,103657:0,103658:0,103659:0,103660:0,103661:0,103662:0,103663:0,103664:0,103665:0,103666:0,103667:0,103668:0,103669:0,103670:0,103671:0,103672:0,103673:0,103674:0,103675:0,103676:0,103677:0,103678:0,103679:0,103680:0,103681:0,103682:0,103683:0,103684:0,103685:0,103686:0,103687:0,103688:0,103689:0,103690:0,103691:0,103692:0,103693:0,103694:0,103695:2,103700:2,103701:2,103702:2,103703:2,103704:2,103705:2,103706:2,103707:2,103708:2,103709:2,103710:2,103711:2,103712:2,103713:2,103714:2,103715:2,103716:2,103717:2,103718:2,103719:2,103720:2,103721:2,103722:2,103723:2,103724:2,103725:2,103726:2,103727:2,103728:2,103729:2,103730:2,103731:2,103732:2,103733:2,103734:2,103735:2,103736:2,103737:2,103738:2,103739:2,103740:2,103741:2,103742:2,103743:2,103744:2,103745:2,103746:2,103747:2,103748:2,103749:2,103750:2,103751:2,103752:2,103753:2,103754:2,103755:2,103756:2,103757:2,103758:2,103759:2,103760:2,103761:2,103762:2,103763:2,103764:2,103765:2,103766:2,103767:2,103768:2,103769:2,103770:2,103771:2,103772:2,103773:2,103774:2,103775:2,103776:2,103777:2,103778:2,103779:2,103780:2,103781:2,103782:2,103783:2,103784:2,103785:2,103786:2,103787:2,103788:2,103789:2,103790:2,103791:2,103792:2,103793:2,103794:0,103795:0,103796:0,103797:0,103798:0,103799:0,103800:0,103801:0,103802:0,103803:0,103804:0,103805:0,103806:0,103807:0,103808:0,103809:0,103810:0,103811:0,103812:0,103813:0,103814:0,103815:0,103816:0,103817:0,103818:0,103819:0,103820:0,103821:0,103822:0,103823:0,103824:0,103825:0,103826:0,103827:0,103828:0,103829:0,103830:0,103831:0,103832:0,103833:0,103834:0,103835:0,103836:0,103837:0,103838:0,103839:0,103840:0,103841:0,103842:0,103843:0,103844:0,103845:0,103846:0,103847:0,103848:0,103849:0,103850:0,103851:0,103852:0,103853:0,103854:0,103855:0,103856:0,103857:0,103858:0,103859:0,103860:0,103861:0,103862:0,103863:0,103864:0,103865:0,103866:0,103867:0,103868:0,103869:0,103870:0,103871:0,103900:2,103901:2,103902:2,103903:2,103904:2,103905:2,103906:2,103907:2,103908:2,103909:2,103910:2,103911:2,103912:2,103913:2,103914:2,103915:2,103916:2,103917:2,103918:2,103919:2,103920:2,103921:2,103922:2,103923:2,103924:2,103925:2,103926:2,103927:2,103928:2,103929:2,103930:2,103931:2,103932:2,103933:2,103934:2,103935:2,103936:2,103937:2,103938:2,103939:2,103940:2,103941:2,103942:2,103943:2,103944:2,103945:2,103946:2,103947:2,103948:2,103949:2,103950:2,103951:2,103952:2,103953:2,103954:2,103955:2,103956:2,103957:2,103958:2,103959:2,103960:2,103961:2,103962:2,103963:2,103964:2,103965:2,103966:2,103967:2,103968:2,103969:2,103970:2,103971:2,900913:0,20010201:0,20010202:0,20020901:0,20020902:0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(11)),i=g(r(10)),o=g(r(3)),a=g(r(0)),s=g(r(2)),u=g(r(4)),l=g(r(7)),c=g(r(5)),h=g(r(29)),f=r(1),d=r(6),p=g(r(34)),y=r(42);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,f.defaultValue)(e,{}),r.type=d.GeometryType.lineString,r.coordinates=(0,f.defaultValue)(e.coordinates,[]),!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");if(r.coordinates.length<2)throw new Error("坐标必须是两个或多个位置的数组");return 3===r.coordinates[0].length&&(r.hasZ=!0),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"getPoint",value:function(e){return e=Number(e),this._isValidate(e)?new p.default({coordinates:this._cloneCoordinates()[e]}):null}},{key:"insertPoint",value:function(e,t){return this._isValidate(e)?(Array.isArray(this.coordinates)&&this.coordinates.splice(e,0,p.default.toCoordinates(t)),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this):null}},{key:"removePoint",value:function(e){if(e=Number(e),!this._isValidate(e))return this;var t=this._cloneCoordinates()[e];return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),new p.default({coordinates:t})}},{key:"setPoint",value:function(e,t){return this._isValidate(e)?(Array.isArray(this.coordinates)&&this.coordinates.splice(e,1,p.default.toCoordinates(t)),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this):this}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent.toJSON(),e}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++)for(var r=this.coordinates[t],n=0;n<r.length;n++)e+=r[n]+",";return e.substring(0,e.length-1)}},{key:"toXMl",value:function(){}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++)e.push({x:this.coordinates[t][0],y:this.coordinates[t][1]});return{LinGeom:[{Line:{Arcs:[{Dots:e,ArcID:0}]},GID:0}],GID:parseInt(String(1e7*Math.random()))}}},{key:"getIGSType",value:function(){return d.IGSGeometryType.lineString}},{key:"toDots",value:function(){for(var e=[],t=this.coordinates,r=0;r<t.length;r++)e.push({x:t[r][0],y:t[r][1]});return e}},{key:"_isValidate",value:function(e){var t=this.coordinates.length;return!(!(0,f.isNumber)(e)||e<0||e>=t)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,y.calcExtent)(e,t,d.GeometryType.lineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(h.default);(0,n.default)(m.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=x(r(11)),i=x(r(10)),o=x(r(173)),a=x(r(3)),s=x(r(0)),u=x(r(2)),l=x(r(4)),c=x(r(7)),h=x(r(5)),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(33)),d=x(r(29)),p=r(1),y=r(6),g=x(r(76)),m=x(r(34)),v=x(r(53)),_=x(r(89)),S=r(42);function x(e){return e&&e.__esModule?e:{default:e}}var b=function(e){function t(e){(0,s.default)(this,t);var r=(0,l.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e));if(e=(0,p.defaultValue)(e,{}),r.coordinates=(0,p.defaultValue)(e.coordinates,[]),r.isSelfIntersecting=(0,p.defaultValue)(e.isSelfIntersecting,!1),r.type=y.GeometryType.multiPolygon,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");for(var n=0;n<r.coordinates.length;n++){var i=r.coordinates[n],u=!0,c=!1,h=void 0;try{for(var f,d=(0,o.default)(i);!(u=(f=d.next()).done);u=!0){var g=f.value;if(g.length<4)throw new Error("每个环至少有四个点");if(g[g.length-1].length!==g[0].length)throw new Error("首尾点维度不相等");for(var m=0;m<g[g.length-1].length;m++)if(g[g.length-1][m]!==g[0][m])throw new Error("第一个位置和最后一个位置不相等")}}catch(e){c=!0,h=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw h}}}return 3===r.coordinates[0][0][0].length&&(r.hasZ=!0),r}return(0,h.default)(t,e),(0,u.default)(t,[{key:"addPolygon",value:function(e,t){if(t=(0,p.defaultValue)(t,"add"),e instanceof g.default||_.default.error("polygon类型不是Polygon对象类型!"),"add"===t)this.coordinates.push(e._cloneCoordinates());else{for(var r=[],n=0;n<this.coordinates.length;n++){var o=f.polygon(this.coordinates[n]),a=f.polygon(e.coordinates);f.booleanDisjoint(o,a)||(r.push(o),this.coordinates[n]=void 0)}for(var s=0;s<this.coordinates.length;s++)this.coordinates[s]||this.coordinates.splice(s,1);for(var u=f.polygon(e.coordinates),l=0;l<r.length;l++)u=f.union(u,r[l]).geometry;this.coordinates.push(u.coordinates)}return this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePolygon",value:function(e){if(!this._isValidate(e))return null;var t=JSON.parse((0,i.default)(this._cloneCoordinates()[e]));return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),new g.default({coordinates:t})}},{key:"toXMl",value:function(){return""}},{key:"contains",value:function(e){if(!e)throw new Error("传入参数错误");var t=f.multiPolygon(this._cloneCoordinates()),r=f.point(m.default.toCoordinates(e));return f.booleanPointInPolygon(r,t)}},{key:"toJSON",value:function(){var e=(0,c.default)(t.prototype.__proto__||(0,a.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent.toJSON(),e}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++){for(var r=this.coordinates[t],n=0;n<r.length;n++){for(var i=r[n],o=0;o<i.length;o++)for(var a=i[o],s=0;s<a.length;s++)e+=a[s]+",";e=e.substring(0,e.length-1),e+="|"}e=e.substring(0,e.length-1),e+=";"}return e.substring(0,e.length-1)}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t={},r={},n=0;n<this.coordinates.length;n++){var i=this.coordinates[n];t={Rings:[],GID:n};for(var o=0;o<i.length;o++){r={Arcs:[]};for(var a=[],s=0;s<i[o].length;s++){var u=i[o][s];a.push({x:u[0],y:u[1]})}r.Arcs.push({Dots:a,ArcID:o}),t.Rings.push(r)}e.push(t)}return{RegGeom:e}}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_isValidate",value:function(e){var t=this.coordinates.length;return!(!(0,p.isNumber)(e)||e<0||e>=t)}},{key:"_calcExtent",value:function(e,t){return(0,S.calcExtent)(e,t,y.GeometryType.multiPolygon,this.spatialReference)}},{key:"getIGSType",value:function(){return y.IGSGeometryType.multiPolygon}},{key:"toPolygonArray",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++)e.push(new g.default({coordinates:this.coordinates[t],spatialReference:v.default.fromJSON(this.spatialReference)}));return e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,p.defaultValue)(e,{}))}}]),t}(d.default);(0,n.default)(b.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=b},function(e,t,r){e.exports={default:r(374),__esModule:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(11)),i=m(r(10)),o=m(r(3)),a=m(r(0)),s=m(r(2)),u=m(r(4)),l=m(r(7)),c=m(r(5)),h=r(1),f=m(r(29)),d=r(6),p=m(r(34)),y=m(r(89)),g=r(42);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,h.defaultValue)(e,{}),r.coordinates=(0,h.defaultValue)(e.coordinates,[]),!Array.isArray(r.coordinates))throw new Error("坐标必须是数组");for(var n=0;n<r.coordinates.length;n++){if(r.coordinates[n].length<2||r.coordinates[n].length>3)throw new Error("多点的数组长度必须在合理范围内(2或者3)");3===r.coordinates[n].length?r.hasZ=!0:r.hasZ=!1}return r.type=d.GeometryType.multiPoint,r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"addPoint",value:function(e,t){if(t=(0,h.defaultValue)(t,"add"),e instanceof p.default)this._addPoint(e,t);else if(e instanceof Array)if(this._isNumberArray(e))this._addPoint(new p.default({coordinates:e}),t);else for(var r=0;r<e.length;r++)e[r]instanceof p.default?this._addPoint(e[r],t):e[r]instanceof Array?this._isNumberArray(e[r])?this._addPoint(new p.default({coordinates:e[r]}),t):e instanceof p.default?this._addPoint(e[r],t):y.default.error("point的子元素类型不是点几何对象或者点坐标数组!"):y.default.error("point的类型不是点几何对象或者点坐标数组!");else y.default.error("point的类型不是点几何对象或者点坐标数组!");return this.coordinates.length>=2&&(this.extent=this._calcExtent(this.coordinates,this.hasZ)),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"_addPoint",value:function(e,t){"add"===t?this.coordinates.push(e.coordinates):this.contains(e)||this.coordinates.push(e.coordinates)}},{key:"_isNumberArray",value:function(e){if(!(e instanceof Array))return!1;var t=!0;if(2===e.length||3===e.length){for(var r=0;r<e.length;r++)if("number"!=typeof e[r]){t=!1;break}}else t=!1;return t}},{key:"contains",value:function(e){if(e instanceof p.default){for(var t=0;t<this.coordinates.length;t++)if(e.equals(this.coordinates[t]))return!0}else if(e instanceof Array&&(2===e.length||3===e.length)){for(var r=0;r<this.coordinates.length;r++)if(new p.default({coordinates:e}).equals(this.coordinates[r]))return!0}else y.default.error("必须为点对象或坐标数组才能比较是否相等!");return!1}},{key:"getPoint",value:function(e){if(e=Number(e),!this._isValidate(e))throw new Error("未找到指定索引,请输入正确的索引");var t=this._cloneCoordinates();return new p.default({coordinates:t[e]})}},{key:"removePoint",value:function(e){if(e=Number(e),!this._isValidate(e))return null;var t=this._cloneCoordinates();return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),new p.default({coordinates:t[e]})}},{key:"setPoint",value:function(e,t){if(!this._isValidate(e))throw new Error("未找到指定索引,请输入正确的索引");var r=this._cloneCoordinates();return Array.isArray(r)&&(r.splice(e,1,p.default.toCoordinates(t)),this.coordinates=r),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"getIGSType",value:function(){return d.IGSGeometryType.multiPoint}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent?this.extent.toJSON():void 0,e}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++){var r;r={x:this.coordinates[t][0],y:this.coordinates[t][1]},e.push({Dot:r,GID:t})}return{PntGeom:e}}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++)for(var r=this.coordinates[t],n=0;n<r.length;n++)e+=r[n]+",";return e.substring(0,e.length-1)}},{key:"toDots",value:function(){for(var e=[],t=this.coordinates,r=0;r<t.length;r++)e.push({x:t[r][0],y:t[r][1]});return e}},{key:"_isValidate",value:function(e){var t=this.coordinates.length;return!(!(0,h.isNumber)(e)||e<0||e>=t)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){if(e.length>1)return(0,g.calcExtent)(e,t,d.GeometryType.lineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(f.default);(0,n.default)(v.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=_(r(11)),i=_(r(10)),o=_(r(3)),a=_(r(0)),s=_(r(2)),u=_(r(4)),l=_(r(7)),c=_(r(5)),h=_(r(29)),f=r(1),d=r(6),p=_(r(76)),y=_(r(34)),g=_(r(53)),m=r(42),v=r(376);function _(e){return e&&e.__esModule?e:{default:e}}var S=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,f.defaultValue)(e,{}),r.center=(0,f.defaultValue)(e.center,void 0),!r.center)throw new Error("缺少圆心坐标");if(r.center=y.default.toCoordinates(r.center),r.radius=(0,f.defaultValue)(e.radius,1e3),!(0,f.isNumber)(r.radius))throw new Error("半径必须为数字");if(r.geodesic=(0,f.defaultValue)(e.geodesic,!1),r.radiusUnit=(0,f.defaultValue)(e.radiusUnit,d.RadiusUnit.meters),r.numberOfPoints=(0,f.defaultValue)(e.numberOfPoints,40),!(0,f.isNumber)(r.numberOfPoints))throw new Error("圆曲线上点的数量必须为数字");return r.type=d.GeometryType.circle,3===r.center.length&&(r.hasZ=!0),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.center=JSON.parse((0,i.default)(this.center)),e.radius=this.radius,e.radiusUnit=this.radiusUnit,e.numberOfPoints=this.numberOfPoints,e.extent=this.extent.toJSON(),e}},{key:"toPolygon",value:function(){var e=this.spatialReference,t=this.geodesic,r=v.RadiusUnitToMeter[this.radiusUnit]||1,n=this.radius*r,i="geographic";if(e.isWebMercator)i="webMercator";else if(e.wkid&&(0,f.defined)(v.ProjUnitWkidMap[e.wkid]))i="proj";else if(e.wkt){var o=e.wkt;["PROJS","proj4","PROJCRS","+proj"].some(function(e){return 0===o.indexOf(e)})&&(i="proj")}if(!t){"geographic"===i&&(n/=v.RadiusUnitToMeter.degrees);var a=this._tranCircleToPath(this.center,n,this.numberOfPoints);return new p.default({coordinates:a,spatialReference:g.default.fromJSON(this.spatialReference)})}switch(i){case"proj":f.Log.error("暂时仅支持墨卡托投影坐标系和地理坐标系使用geodesic属性");break;case"webMercator":case"geographic":var s=6378137,u=Math.PI/180,l={latitude:this.center[1],longitude:this.center[0]};"webMercator"===i&&(l={longitude:180*l.longitude/Math.PI/s,latitude:180*(2*Math.atan(Math.exp(l.latitude/s))-Math.PI/2)/Math.PI});for(var c=n/1e3,h=c/(111.32*Math.cos(l.latitude*Math.PI/180)),d=c/110.574,y=[],m=0;m<this.numberOfPoints;m+=1){var _=m/this.numberOfPoints*(2*Math.PI),S=h*Math.cos(_),x=d*Math.sin(_),b=l.longitude+S,w=l.latitude+x;if("webMercator"===i){var k=Math.max(Math.min(85.0511287798,w),-85.0511287798),M=Math.sin(k*u);y.push([s*b*u,s*Math.log((1+M)/(1-M))/2])}else y.push([b,w])}return y.length<=3&&f.Log.error("生成圆几何点个数不能小于3"),y.push(y[0]),new p.default({coordinates:[y],spatialReference:g.default.fromJSON(this.spatialReference)})}}},{key:"toString",value:function(){return this.hasZ?this.center[0]+","+this.center[1]+","+this.center[2]+","+this.radius:this.center[0]+","+this.center[1]+","+this.radius}},{key:"toXMl",value:function(){return""}},{key:"getIGSType",value:function(){return d.IGSGeometryType.circle}},{key:"_tranCircleToPath",value:function(e,t,r){for(var n=2*Math.PI/r,i=0,o=[],a=[],s=0;s<r;s++){i-=n;var u=[e[0]+t*Math.cos(i),e[1]+t*Math.sin(i)];a.push(u)}var l=a[a.length-1],c=a[0];return Math.abs(l[0]-c[0])>1e-15&&Math.abs(l[1]-c[1])>1e-15&&a.push([c[0],c[1]]),o.push(a),this.hasZ&&(o=o.map(function(t){return t.map(function(t){return[t[0],t[1],e[2]]})})),o}},{key:"_calcExtent",value:function(e){var t=this.toPolygon();return(0,m.calcExtent)(t._cloneCoordinates(),e,d.GeometryType.polygon,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toGeoJSON",value:function(){return this.toPolygon().toGeoJSON()}}],[{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(h.default);(0,n.default)(S.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.hasZ)}}}),t.default=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(11)),i=g(r(10)),o=g(r(3)),a=g(r(0)),s=g(r(2)),u=g(r(4)),l=g(r(7)),c=g(r(5)),h=g(r(29)),f=r(1),d=r(6),p=g(r(34)),y=r(42);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,f.defaultValue)(e,{}),r.coordinates=(0,f.defaultValue)(e.coordinates,[]),r.type=d.GeometryType.multiLineString,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");for(var n=0;n<r.coordinates.length;n++)if(r.coordinates[n].length<2)throw new Error("坐标必须是两个或多个位置的数组");return 3===r.coordinates[0][0].length&&(r.hasZ=!0),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"addPath",value:function(e){if(!Array.isArray(e))throw new Error("传入参数错误");var t=[];return e.forEach(function(e){t.push(p.default.toCoordinates(e))}),this.coordinates.push(t),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePath",value:function(e){if(!this._isValidate(e,0))return null;var t=JSON.parse((0,i.default)(this._cloneCoordinates()[e]));return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),t.map(function(e){return new p.default({coordinates:e})})}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent.toJSON(),e}},{key:"getPoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this._cloneCoordinates()[e];return new p.default({coordinates:r[t]})}},{key:"insertPoint",value:function(e,t,r){if(!this._isValidate(e,t))return null;var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,0,p.default.toCoordinates(r)),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this.coordinates[e];return Array.isArray(r)&&r.splice(t,1),this.coordinates=r,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"setPoint",value:function(e,t,r){if(!this._isValidate(e,t))return this;var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,1,p.default.toCoordinates(r)),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"toString",value:function(){return""}},{key:"toXMl",value:function(){return""}},{key:"getIGSType",value:function(){return d.IGSGeometryType.multiLineString}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++){for(var r=[],n=0;n<this.coordinates[t].length;n++)r.push({x:this.coordinates[t][n][0],y:this.coordinates[t][n][1]});e.push({Line:{Arcs:[{Dots:r,ArcID:0}]},GID:t})}return{LinGeom:e}}},{key:"_isValidate",value:function(e,t){var r=this.coordinates.length;if(!(0,f.isNumber)(e)||e<0||e>=r)return!1;var n=this.coordinates[e].length;return!(!(0,f.isNumber)(t)||t<0||t>=n)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,y.calcExtent)(e,t,d.GeometryType.multiLineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"clone",value:function(e){return new t(e.toJSON())}},{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(h.default);(0,n.default)(m.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={},i=52.35987755982988,o=3.141592653589793,a=6378245,s=.006693421622965943;n.transformlat=function(e,t){var r=2*(e=+e)-100+3*(t=+t)+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return r+=2*(20*Math.sin(6*e*o)+20*Math.sin(2*e*o))/3,(r+=2*(20*Math.sin(t*o)+40*Math.sin(t/3*o))/3)+2*(160*Math.sin(t/12*o)+320*Math.sin(t*o/30))/3},n.transformlng=function(e,t){var r=300+(e=+e)+2*(t=+t)+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return r+=2*(20*Math.sin(6*e*o)+20*Math.sin(2*e*o))/3,(r+=2*(20*Math.sin(e*o)+40*Math.sin(e/3*o))/3)+2*(150*Math.sin(e/12*o)+300*Math.sin(e/30*o))/3},n.out_of_china=function(e,t){return t=+t,!((e=+e)>73.66&&e<135.05&&t>3.86&&t<53.55)},n.bd09togcj02=function(e,t){var r=(e=+e)-.0065,n=(t=+t)-.006,o=Math.sqrt(r*r+n*n)-2e-5*Math.sin(n*i),a=Math.atan2(n,r)-3e-6*Math.cos(r*i);return[o*Math.cos(a),o*Math.sin(a)]},n.bd09towgs84=function(e,t){var r=n.bd09togcj02(e,t);return n.gcj02towgs84(r[0],r[1])},n.wgs84tobd09=function(e,t){var r=n.wgs84togcj02(e,t);return n.gcj02tobd09(r[0],r[1])},n.gcj02tobd09=function(e,t){t=+t,e=+e;var r=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*i),n=Math.atan2(t,e)+3e-6*Math.cos(e*i);return[r*Math.cos(n)+.0065,r*Math.sin(n)+.006]},n.wgs84togcj02=function(e,t){var r=[e=+e,t=+t];if(!this.out_of_china(e,t)){var n=this.transformlat(e-105,t-35),i=this.transformlng(e-105,t-35),u=t/180*o,l=Math.sin(u);l=1-s*l*l;var c=Math.sqrt(l);n=180*n/(a*(1-s)/(l*c)*o),r=[e+(i=180*i/(a/c*Math.cos(u)*o)),t+n]}return r},n.gcj02towgs84=function(e,t){var r=[e=+e,t=+t];if(!this.out_of_china(e,t)){var n=this.transformlat(e-105,t-35),i=this.transformlng(e-105,t-35),u=t/180*o,l=Math.sin(u);l=1-s*l*l;var c=Math.sqrt(l);n=180*n/(a*(1-s)/(l*c)*o),r=[2*e-(e+(i=180*i/(a/c*Math.cos(u)*o))),2*t-(t+n)]}return r},t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],i=[75,60,45,30,15,0],o=[[1.410526172116255e-8,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,17337981.2],[-7.435856389565537e-9,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,6856817.37],[-1.981981304930552e-8,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,4482777.06],[3.09191371068437e-9,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,2555164.4],[2.890871144776878e-9,8983055095805407e-21,-3.068298e-8,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],a=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function s(e){e=e||{},this._isWgs84=e.isWgs84}(0,function(e){return e&&e.__esModule?e:{default:e}}(r(11)).default)(s.prototype,{isWgs84:{get:function(){return this._isWgs84},set:function(e){this._isWgs84=e}}}),s.prototype.getDistanceByMC=function(e,t){if(!e||!t)return 0;if(!(e=this.convertMC2LL(e)))return 0;var r=this.toRadians(e.lng),n=this.toRadians(e.lat);if(!(t=this.convertMC2LL(t)))return 0;var i=this.toRadians(t.lng),o=this.toRadians(t.lat);return this.getDistance(r,i,n,o)},s.prototype.getDistanceByLL=function(e,t){if(!e||!t)return 0;e.lng=this.getLoop(e.lng,-180,180),e.lat=this.getRange(e.lat,-74,74),t.lng=this.getLoop(t.lng,-180,180),t.lat=this.getRange(t.lat,-74,74);var r=this.toRadians(e.lng),n=this.toRadians(e.lat),i=this.toRadians(t.lng),o=this.toRadians(t.lat);return this.getDistance(r,i,n,o)},s.prototype.convertMC2LL=function(e){if(!e)return{lng:0,lat:0};var t={};if(this.isWgs84){t.lng=e.lng/20037508.34*180;var r=e.lat/20037508.34*180;return t.lat=180/Math.PI*(2*Math.atan(Math.exp(r*Math.PI/180))-Math.PI/2),{lng:t.lng.toFixed(6),lat:t.lat.toFixed(6)}}Math.abs(e.lng);for(var i=Math.abs(e.lat),a=void 0,s=0;s<n.length;s++)if(i>=n[s]){a=o[s];break}return{lng:(t=this.convertor(e,a)).lng.toFixed(6),lat:t.lat.toFixed(6)}},s.prototype.convertLL2MC=function(e){if(!e)return{lng:0,lat:0};if(e.lng>180||e.lng<-180||e.lat>90||e.lat<-90)return e;if(this.isWgs84){var t={};t.lng=e.lng*Math.PI/180*6378137;var r=e.lat*Math.PI/180;return t.lat=3189068.5*Math.log((1+Math.sin(r))/(1-Math.sin(r))),{lng:parseFloat(t.lng.toFixed(2)),lat:parseFloat(t.lat.toFixed(2))}}e.lng=this.getLoop(e.lng,-180,180),e.lat=this.getRange(e.lat,-74,74),e.lng;for(var n=e.lat,o=void 0,s=0;s<i.length;s++)if(n>=i[s]){o=a[s];break}if(!o)for(var u=0;u<i.length;u++)if(n<=-i[u]){o=a[u];break}var l=this.convertor(e,o);return{lng:parseFloat(l.lng.toFixed(2)),lat:parseFloat(l.lat.toFixed(2))}},s.prototype.convertor=function(e,t){if(!e||!t)return{lng:0,lat:0};var r=t[0]+t[1]*Math.abs(e.lng),n=Math.abs(e.lat)/t[9],i=t[2]+t[3]*n+t[4]*n*n+t[5]*n*n*n+t[6]*n*n*n*n+t[7]*n*n*n*n*n+t[8]*n*n*n*n*n*n;return{lng:r*=e.lng<0?-1:1,lat:i*=e.lat<0?-1:1}},s.prototype.getDistance=function(e,t,r,n){return 6370996.81*Math.acos(Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos(t-e))},s.prototype.toRadians=function(e){return Math.PI*e/180},s.prototype.toDegrees=function(e){return 180*e/Math.PI},s.prototype.getRange=function(e,t,r){return null!==t&&(e=Math.max(e,t)),null!==r&&(e=Math.min(e,r)),e},s.prototype.getLoop=function(e,t,r){for(;e>r;)e-=r-t;for(;e<t;)e+=r-t;return e},s.prototype.lngLatToMercator=function(e){return this.convertLL2MC(e)},s.prototype.lngLatToPoint=function(e){var t=this.convertLL2MC(e);return{x:t.lng,y:t.lat}},s.prototype.mercatorToLngLat=function(e){return this.convertMC2LL(e)},s.prototype.pointToLngLat=function(e){var t={lng:e.x,lat:e.y};return this.convertMC2LL(t)},s.prototype.pointToPixel=function(e,t,r,n){if(!e)return{x:0,y:0};e=this.lngLatToMercator(e);var i=this.getZoomUnits(t);return{x:Math.round((e.lng-r.lng)/i+n.width/2),y:Math.round((r.lat-e.lat)/i+n.height/2)}},s.prototype.pixelToPoint=function(e,t,r,n){if(!e)return{lng:0,lat:0};var i=this.getZoomUnits(t),o={lng:r.lng+i*(e.x-n.width/2),lat:r.lat-i*(e.y-n.height/2)};return this.mercatorToLngLat(o)},s.prototype.getZoomUnits=function(e){return Math.pow(2,18-e)},t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(14)),i=g(r(22)),o=g(r(0)),a=g(r(2)),s=r(1),u=g(r(91)),l=g(r(125)),c=g(r(126)),h=r(6),f=r(77),d=r(8),p=r(9),y=g(r(180));function g(e){return e&&e.__esModule?e:{default:e}}var m=function(){function e(t,r){(0,o.default)(this,e),r=(0,s.defaultValue)(r,{}),this.url=t,this.requestInterceptor=(0,s.defaultValue)(r.requestInterceptor,new l.default),this.responseInterceptor=(0,s.defaultValue)(r.responseInterceptor,new c.default),this.requestTimeout=(0,s.defaultValue)(r.requestTimeout,45e3),this.headers=(0,s.defaultValue)(r.headers,{}),this.tokenKey=(0,s.defaultValue)(r.tokenKey,"token"),this.tokenValue=(0,s.defaultValue)(r.tokenValue,void 0),this.tokenAttachType=(0,s.defaultValue)(r.tokenAttachType,h.TokenAttachType.normal)}return(0,a.default)(e,[{key:"destroy",value:function(){this.url=null,this.options=null}},{key:"request",value:function(e){if(e=(0,s.defaultValue)(e,{}),!(0,s.isNull)(e.url))return!(0,s.isNull)(this.requestInterceptor)&&!(0,s.isNull)(this.requestInterceptor.before)&&this.requestInterceptor.before instanceof Function&&(e=this.requestInterceptor.before(e)),(0,s.isNull)(e)?void 0:this._commit(e);s.Log.error("url不存在!")}},{key:"_commit",value:function(e){var t=this;e.url=(0,f.ServiceConfigRequestInterceptors)(y.default,e.url),e.headers=(0,s.defaultValue)(e.headers,{});var r=(0,i.default)(e.headers,this.headers),o={headers:r=(0,i.default)(r,y.default.headers),withCredentials:e.withCredentials,requestTimeout:this.requestTimeout,proxy:e.proxy,tokenKey:this.tokenKey||y.default.tokenKey,tokenValue:this.tokenValue||y.default.tokenValue,tokenAttachType:e.tokenAttachType||this.tokenAttachType};return e.responseType&&(o.responseType=e.responseType),u.default.commit(e.method,e.url,e.data,o).then(function(r){var i=void 0;if(r.text){if("blob"===o.responseType)return r.blob();i=function(){return r.text()}}else i=function(){return r.json()};return 200===r.status?new n.default(function(r){i().then(function(i){var o=void 0;if((0,s.isNull)(i))o={succeed:!0,msg:"服务器没有返回信息",data:void 0};else{var a=void 0;if("string"==typeof i)if(i.indexOf("<?xml")>-1)if(i.indexOf("OGC:WMS")>-1||i.indexOf("WMS_Capabilities")>-1||i.indexOf("<Keyword>WMS</Keyword>")>-1){var u="1.1.1";i.indexOf("1.3.0")>-1&&(u="1.3.0");var l=(0,f.getDoc)(i);a=(0,f.getWMSInfoFromXML)(l,u,e.url)}else if(i.indexOf("WMTS")>-1||i.indexOf("wmts/1.0")>-1){var c=(0,f.getDoc)(i);a=(0,f.getWMTSInfoFromXML)(c)}else if(i.indexOf("wfs:WFS_Capabilities")>-1){var h=(0,f.getDoc)(i);a=(0,f.getWFSInfoFromXML)(h)}else if(i.indexOf("wfs:FeatureCollection")>-1){var g=(0,f.getDoc)(i),m=e.url.toLowerCase(),v="2.0.0";m.indexOf("version=1.0.0")>-1?v="1.0.0":m.indexOf("version=1.1.0")>-1?v="1.1.0":m.indexOf("version=2.0.0")>-1&&(v="1.1.0"),a=(0,f.getWFSFeature)(g,v)}else i.indexOf("<svg")>-1&&(a=i);else{if(i.indexOf("html>")>-1)return!(0,s.isNull)(t.responseInterceptor)&&!(0,s.isNull)(t.responseInterceptor.failure)&&t.responseInterceptor.failure instanceof Function&&t.responseInterceptor.failure({succeed:!1,msg:"服务器不支持"+e.method+"请求或其他错误",data:void 0,errorType:"unKnownError"}),!(0,s.isNull)(e.failure)&&e.failure instanceof Function&&e.failure({succeed:!1,msg:"服务器不支持"+e.method+"请求或其他错误",data:void 0,errorType:"unKnownError"}),n.default.reject({succeed:!1,msg:"服务器不支持"+e.method+"请求或其他错误",data:void 0,errorType:"unKnownError"});if((a=JSON.parse(i))instanceof Object&&(e.url.indexOf("/igs/rest/mrfs/layer/query")>-1||e.url.indexOf("/igs/rest/mrfs/docs/")>-1)){var _=(0,f.fromQueryResult)(a);delete a.SFEleArray,a.featureSets=_;var S=[];if(_.length>1)for(var x=0;x<_.length;x++)S.push(a[String(x)]),delete a[String(x)];else a.AttStruct.TotalCount=a.TotalCount,S.push(a.AttStruct),delete a.AttStruct,delete a.TotalCount;a.featureInfos=S,(e.url.indexOf("/igs/rest/mrfs/docs/")>-1||e.url.indexOf("/igs/rest/mrfs/layer/")>-1)&&(_.length>0?a.featureSet=_[0]:a.featureSet=new d.FeatureSet)}}if(a instanceof Object){if(a.hasOwnProperty("features")&&a.features instanceof Array){var b=void 0,w=!1;a.spatialReference?b=new p.SpatialReference(a.spatialReference):e.extensionOptions&&e.extensionOptions.outSrs?b=new p.SpatialReference(e.extensionOptions.outSrs):(w=!0,b=p.SpatialReference.fromJSON(a.spatialReference));var k=!1;/(igs)\/rest\/services\/.*\/WFSServer/.test(e.url)&&4326===b.wkid&&w&&(k=!0),a.featureSet=d.FeatureSet.fromArray(a.features,new d.FeatureSet({spatialReference:b}),{reverse:k})}else if(a.hasOwnProperty("layers")&&e.url.indexOf("igs/rest/mrcs/tiles")<0)for(var M=0;M<a.layers.length;M++){var E;E=e.extensionOptions&&e.extensionOptions.outSrs?new p.SpatialReference(e.extensionOptions.outSrs):p.SpatialReference.fromJSON(a.layers[M].spatialReference),a.layers[M].featureSet=d.FeatureSet.fromArray(a.layers[M].features,new d.FeatureSet({spatialReference:E}))}else if(e.url.indexOf("/MapServer/query")>-1||e.url.indexOf("/SceneServer/query")>-1){if(a.layers&&a.layers instanceof Array){var I=new p.SpatialReference("EPSG:4326");a.spatialReference&&(I=new p.SpatialReference({wkid:a.spatialReference.wkid,wkt:a.spatialReference.wkt}));for(var T=a.layers,L=0;L<T.length;L++)T[L].features&&(T[L].featureSet=d.FeatureSet.fromArray(T[L].features,new d.FeatureSet({spatialReference:I})),delete T[L].features)}}else e.url.indexOf("/MapServer/layers?")>-1&&function e(t){for(var r=0;r<t.length;r++)t[r].id=t[r].index,t[r].children&&t[r].children instanceof Array&&e(t[r].children)}(a.layers);o={succeed:!0,msg:"请求成功",data:a}}else o={succeed:!0,msg:a,data:a}}o=(0,f.ServiceConfigResponseInterceptors)(y.default,e.url,o),!(0,s.isNull)(t.responseInterceptor)&&!(0,s.isNull)(t.responseInterceptor.success)&&t.responseInterceptor.success instanceof Function&&(o=t.responseInterceptor.success(o)),!(0,s.isNull)(o)&&!(0,s.isNull)(e.success)&&e.success instanceof Function&&e.success(o),r(o)})},function(e){console.log("Fetch返回异常",e)}):new n.default(function(r){i().then(function(n){var i=void 0;if((0,s.isNull)(n))i={succeed:!1,msg:"请求失败,服务器没有返回信息",data:void 0};else{var o=JSON.parse(n);i=o instanceof Object?{succeed:!1,msg:"请求失败",data:o}:{succeed:!1,msg:o,data:void 0}}!(0,s.isNull)(t.responseInterceptor)&&!(0,s.isNull)(t.responseInterceptor.failure)&&t.responseInterceptor.failure instanceof Function&&(i=t.responseInterceptor.failure(i)),!(0,s.isNull)(i)&&!(0,s.isNull)(e.failure)&&e.failure instanceof Function&&e.failure(i),r(i)})},function(e){console.error("Fetch返回异常",e)})}).catch(function(r){var n={succeed:!1,msg:"请求失败",data:r};t._resolveFailure(n,e.failure,void 0)})}}]),e}();t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={tokenKey:"token",tokenValue:void 0,headers:{},request:{interceptors:[]}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CAttStruct=t.CAttDataRow=t.ArcGISVectorTileServer=t.ArcGISFeatureServer=t.ArcGISGeometryServer=t.ThemesInfo=t.ThemeServer=t.ItemValue=t.FolderInfoAttribute=t.FolderInfo=t.ExpInfo=t.CUniqueThemeInfo=t.CUniqueTheme=t.CThemeInfo=t.CTheme=t.CSimpleTheme=t.CRegInfo=t.CRangeThemeInfo=t.CRangeTheme=t.CRandomTheme=t.CPntInfo=t.CMultiClassTheme=t.CLinInfo=t.CGraduatedSymbolTheme=t.CFourColorTheme=t.CDotDensityTheme=t.CChartType=t.CChartThemeRepresentInfo=t.CChartThemeInfo=t.CChartTheme=t.CChartLabelFormat=t.CAnnInfo=t.CAllOtherDataItemInfoSource=t.ArcGISMapServer=t.WorkFlowServer=t.WFSServer=t.WMTSServer=t.WMSServer=t.SceneServer=t.ResourceServer=t.PlotServer=t.VectorTileServer=t.TileServer=t.RootServer=t.SecurityServer=t.TerrainServer=t.PoiServer=t.Cesium3DTilesServer=t.AddressServer=t.GeometryServer=t.ImageServer=t.M3DServer=t.FeatureServer=t.MapServer=void 0;var n=M(r(397)),i=M(r(398)),o=M(r(399)),a=M(r(400)),s=M(r(401)),u=M(r(402)),l=M(r(403)),c=M(r(404)),h=M(r(182)),f=M(r(405)),d=M(r(406)),p=M(r(407)),y=M(r(408)),g=M(r(409)),m=M(r(410)),v=M(r(411)),_=M(r(127)),S=M(r(92)),x=r(412),b=r(418),w=r(422),k=r(201);function M(e){return e&&e.__esModule?e:{default:e}}t.MapServer=n.default,t.FeatureServer=i.default,t.M3DServer=o.default,t.ImageServer=a.default,t.GeometryServer=s.default,t.AddressServer=u.default,t.Cesium3DTilesServer=l.default,t.PoiServer=c.default,t.TerrainServer=h.default,t.SecurityServer=f.default,t.RootServer=d.default,t.TileServer=p.default,t.VectorTileServer=y.default,t.PlotServer=g.default,t.ResourceServer=m.default,t.SceneServer=v.default,t.WMSServer=x.WMSServer,t.WMTSServer=x.WMTSServer,t.WFSServer=x.WFSServer,t.WorkFlowServer=k.WorkFlowServer,t.ArcGISMapServer=b.ArcGISMapServer,t.CAllOtherDataItemInfoSource=w.CAllOtherDataItemInfoSource,t.CAnnInfo=w.CAnnInfo,t.CChartLabelFormat=w.CChartLabelFormat,t.CChartTheme=w.CChartTheme,t.CChartThemeInfo=w.CChartThemeInfo,t.CChartThemeRepresentInfo=w.CChartThemeRepresentInfo,t.CChartType=w.CChartType,t.CDotDensityTheme=w.CDotDensityTheme,t.CFourColorTheme=w.CFourColorTheme,t.CGraduatedSymbolTheme=w.CGraduatedSymbolTheme,t.CLinInfo=w.CLinInfo,t.CMultiClassTheme=w.CMultiClassTheme,t.CPntInfo=w.CPntInfo,t.CRandomTheme=w.CRandomTheme,t.CRangeTheme=w.CRangeTheme,t.CRangeThemeInfo=w.CRangeThemeInfo,t.CRegInfo=w.CRegInfo,t.CSimpleTheme=w.CSimpleTheme,t.CTheme=w.CTheme,t.CThemeInfo=w.CThemeInfo,t.CUniqueTheme=w.CUniqueTheme,t.CUniqueThemeInfo=w.CUniqueThemeInfo,t.ExpInfo=w.ExpInfo,t.FolderInfo=w.FolderInfo,t.FolderInfoAttribute=w.FolderInfoAttribute,t.ItemValue=w.ItemValue,t.ThemeServer=w.ThemeServer,t.ThemesInfo=w.ThemesInfo,t.ArcGISGeometryServer=b.ArcGISGeometryServer,t.ArcGISFeatureServer=b.ArcGISFeatureServer,t.ArcGISVectorTileServer=b.ArcGISVectorTileServer,t.CAttDataRow=_.default,t.CAttStruct=S.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(3)),i=u(r(0)),o=u(r(2)),a=u(r(4)),s=u(r(5));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"getLayerJSON",value:function(e){return this._queryByParameters(e,{},{},function(e){return e+"/layer.json"})}}]),t}(u(r(13)).default);t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(3)),i=u(r(0)),o=u(r(2)),a=u(r(4)),s=u(r(5));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"queryResourceInfo",value:function(e){return this._querySimpleInfo(e,function(e){return e+"/resources/info"})}},{key:"getStyleList",value:function(e){return this._querySimpleInfo(e,function(e){return e+"/resources/styles"})}},{key:"getStyle",value:function(e){return this._queryByParameters(e,{styleId:{type:"String"}},{},function(e,t){return e+"/resources/styles/"+t.styleId+"?f=json"})}},{key:"getTileMap",value:function(e){return this._querySimpleInfo(e,function(e){return e+"/tilemap"})}}]),t}(u(r(13)).default);t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={DefaultThemeInfo:1,DataItemIntrinsicInfo:2}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.default=function(e){e=(0,n.defaultValue)(e,{}),(0,n.extend)(this,e),this.LibID=void 0!==e.LibID?e.LibID:0,this.Ovprnt=void 0!==e.Ovprnt&&e.Ovprnt,this.Angle=void 0!==e.Ovprnt?e.Ovprnt:0,this.BackClr=void 0!==e.BackClr?e.BackClr:0,this.BackExp=void 0!==e.BackExp?e.BackExp:0,this.Chnt=void 0!==e.Chnt?e.Chnt:0,this.Color=void 0!==e.Color?e.Color:0,this.FontAngle=void 0!==e.FontAngle?e.FontAngle:0,this.Height=void 0!==e.Height?e.Height:0,this.Ifnt=void 0!==e.Ifnt?e.Ifnt:0,this.Ifnx=void 0!==e.Ifnx?e.Ifnx:0,this.IsFilled=void 0!==e.IsFilled&&e.IsFilled,this.IsHzpl=void 0===e.IsHzpl||e.IsHzpl,this.OffsetX=void 0!==e.OffsetX?e.OffsetX:0,this.OffsetY=void 0!==e.OffsetY?e.OffsetY:0,this.Space=void 0!==e.Space?e.Space:0,this.Width=void 0!==e.Width?e.Width:0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={Unknown:0,Value:1,Percent:2}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(4)),a=c(r(5)),s=c(r(31)),u=c(r(188)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.ChartType=void 0!==e.ChartType?e.ChartType:u.default.Bar,r.ChartThemeInfoArr=void 0!==e.ChartThemeInfoArr?e.ChartThemeInfoArr:null,r.RepresentInfo=void 0!==e.RepresentInfo?e.RepresentInfo:null,r.Type="CChartTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={Unknown:0,Bar:1,Bar3D:2,Pie:3,Pie3D:4,Line:5,Line3D:6,Point:7}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(31)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.Expression=void 0!==e.Expression?e.Expression:"",r.Info=void 0!==e.Info?e.Info:null,r.Value=void 0!==e.Value?e.Value:null,r.Type="CDotDensityTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(31)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.ClrInfo=void 0!==e.ClrInfo?e.ClrInfo:[25,57,89,121],r.Type="CFourColorTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(31)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.BaseValue=void 0!==e.BaseValue?e.BaseValue:141e-6,r.DispMinus=void 0!==e.DispMinus&&e.DispMinus,r.DispZero=void 0!==e.DispZero&&e.DispZero,r.Expression=void 0!==e.Expression?e.Expression:null,r.MinusPntInfo=void 0!==e.MinusPntInfo?e.MinusPntInfo:null,r.PlusPntInfo=void 0!==e.PlusPntInfo?e.PlusPntInfo:null,r.ZeroPntInfo=void 0!==e.ZeroPntInfo?e.ZeroPntInfo:null,r.Type="CGraduatedSymbolTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XClsType={SFCls:"SFeatureCls",OCls:"ObjectCls",ACls:"AnnotationCls",GnetCls:"GNetCls",RDS:"RasterDataset",SFClsInfo:"sfcls_new"},t.VectClsType={Unknown:0,SFCls:"SFeatureCls",AnnoCls:"AnnotationCls"},t.FeatureType={Unknown:0,Pnt:1,Lin:2,Reg:3},t.FontShape={Positive:0,LeftOblique:1,RightOblique:2,LeftTowering:3,RightTowering:4},t.LabelLinType={Curved:0,Forward:1,Horizontal:2,Tangent:3},t.LabelRegType={Curved:0,Forward:1,Horizontal:2,Boundray:3,Outside:4},t.LabelPntType={PntAnyDir:0,PntEightDir:1,PntOnFea:2},t.RepeatType={Auto:0,NoRep:1,OnStep:2},t.LabelSpreadType={AutoSpread:0,Centralization:1,Decentralization:2},t.LineConstrain={Left:0,Right:1,Above:2,Below:3,Both:4,NoRes:5},t.EightDirType={East:0,North:1,NorthEast:2,NorthWest:3,South:4,SouthEast:5,SouthWest:6,West:7,NoDir:8},t.ISShowArc={Reg:0,Arc:1,All:2},t.NetAnalyType={UserMode:"UserMode",SysModeCommwayPrefer:"SysModeCommwayPrefer",SysModeHighWayPrefer:"SysModeHighWayPrefer",SysModeMinCost:"SysModeMinCost",SysModeMinDis:"SysModeMinDis",SysModeSysRecommend:"SysModeSysRecommend"},t.NetElemType={Node:1,Edge:2,CNode:3,Chain:4,Center:5,Source:13,Sink:13},t.CLinAdjustType={Adjust:0,NoAdjust:1},t.CLinHeadType={Round:0,Square:1,Butt:2},t.CLinJointType={Round:0,Square:1,Butt:2},t.CLinStyleMakeType={Byrule:0,Bypoint:1},t.CItemType={Unknown:0,UniqueTheme:1,RangeTheme:2},t.MapType={Doc:"mapType",Tile:"tileType"},t.LayerStatusType={Show:"show",Hide:"hide",Include:"include",Exclude:"exclude"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(31)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.DefaultInfo=void 0!==e.DefaultInfo?e.DefaultInfo:null,r.ExpInfoArr=void 0!==e.ExpInfoArr?e.ExpInfoArr:null,r.MultiClassThemeInfoArr=void 0!==e.MultiClassThemeInfoArr?e.MultiClassThemeInfoArr:null,r.GeoInfoType=void 0!==e.GeoInfoType?e.GeoInfoType:null,r.Type="CMultiClassTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(31)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.Type="CRandomTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(4)),a=c(r(5)),s=c(r(31)),u=c(r(184)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t),e=(0,l.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.AllOtherDataItemInfoSource=void 0!==e.AllOtherDataItemInfoSource?e.AllOtherDataItemInfoSource:u.default.DefaultThemeInfo,r.Expression=void 0!==e.Expression?e.Expression:"",r.DefaultInfo=void 0!==e.DefaultInfo?e.DefaultInfo:null,r.RangeThemeInfoArr=void 0!==e.RangeThemeInfoArr?e.RangeThemeInfoArr:null,r.GeoInfoType=void 0!==e.GeoInfoType?e.GeoInfoType:null,r.Type="CRangeTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(4)),a=c(r(5)),s=c(r(31)),u=c(r(78)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t),e=(0,l.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.ThemeInfo=void 0!==e.ThemeInfo?e.ThemeInfo:new u.default,r.Type="CSimpleTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(31)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.DefaultInfo=void 0!==e.DefaultInfo?e.DefaultInfo:null,r.Expression=void 0!==e.Expression?e.Expression:"",r.UniqueThemeInfoArr=void 0!==e.UniqueThemeInfoArr?e.UniqueThemeInfoArr:null,r.GeoInfoType=void 0!==e.GeoInfoType?e.GeoInfoType:null,r.Type="CUniqueTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){this.name=void 0!==e?e:null,this.attribute=void 0!==t?t:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){this.name=void 0!==e?e:null,this.Value=void 0!==t?t:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){this.LayerName=void 0!==e?e:null,this.ThemeArr=void 0!==t?t:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWorkflow=t.WorkFlowServer=void 0;var n=E(r(16)),i=E(r(433)),o=E(r(434)),a=E(r(435)),s=E(r(436)),u=E(r(437)),l=E(r(438)),c=E(r(439)),h=E(r(440)),f=E(r(441)),d=E(r(442)),p=E(r(443)),y=E(r(444)),g=E(r(445)),m=E(r(446)),v=E(r(447)),_=E(r(448)),S=E(r(449)),x=E(r(450)),b=E(r(451)),w=E(r(452)),k=E(r(453)),M=E(r(454));function E(e){return e&&e.__esModule?e:{default:e}}var I={WorkFlowServer:n.default,WorkFlowServer600227:i.default,WorkFlowServer600228:o.default,WorkFlowServer600229:a.default,WorkFlowServer600230:s.default,WorkFlowServer600231:u.default,WorkFlowServer600232:l.default,WorkFlowServer600233:c.default,WorkFlowServer600235:h.default,WorkFlowServer600237:f.default,WorkFlowServer600238:d.default,WorkFlowServer600239:p.default,WorkFlowServer600307:y.default,WorkFlowServer600308:g.default,WorkFlowServer600309:m.default,WorkFlowServer600314:v.default,WorkFlowServer600334:_.default,WorkFlowServer600336:S.default,WorkFlowServer600340:x.default,WorkFlowServer600354:b.default,WorkFlowServer600368:w.default,WorkFlowServer600369:k.default,WorkFlowServer600370:M.default};t.WorkFlowServer=n.default,t.createWorkflow=function(e){var t=((e||{}).url||"").match(/(workflow)(\/)\d+(\/)(WorkflowServer)/g);if(!t)throw new Error("未识别工作流id");var r=t[0].split("/"),n=void 0;if(Array.isArray(r)&&3===r.length&&(n=r[1]),!n)throw new Error("未识别工作流id "+n);var i=I["WorkFlowServer"+n];if(!i)throw new Error("id为"+n+"的工作流未定义");return new i(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IGSFeatureLayer=t.Scene=t.IGSTileLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=void 0;var n=f(r(455)),i=f(r(209)),o=f(r(484)),a=f(r(210)),s=f(r(485)),u=f(r(486)),l=f(r(129)),c=f(r(211)),h=f(r(487));function f(e){return e&&e.__esModule?e:{default:e}}t.IGSVectorTileLayer=n.default,t.IGSVectorTileSubLayer=i.default,t.IGSMapImageLayer=o.default,t.IGSMapImageSubLayer=a.default,t.IGSSceneLayer=u.default,t.IGSSceneSubLayer=l.default,t.IGSTileLayer=s.default,t.Scene=c.default,t.IGSFeatureLayer=h.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(r(11)),i=v(r(22)),o=v(r(10)),a=v(r(23)),s=v(r(3)),u=v(r(0)),l=v(r(2)),c=v(r(4)),h=v(r(7)),f=v(r(5)),d=r(1),p=v(r(93)),y=v(r(457)),g=v(r(65)),m=r(6);function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e){(0,u.default)(this,t);var r=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return e=(0,d.defaultValue)(e,{}),r.type=m.LayerType.vectorTileSubLayer,r._labelingInfo=(0,d.defaultValue)(e.labelingInfo,[]),r._styleLayers=(0,d.defaultValue)(e.styleLayers,[]),r._visible=(0,d.defaultValue)(e.visible,!0),r._opacity=(0,d.defaultValue)(e.opacity,1),r._renderer=(0,d.defaultValue)(e.renderer,void 0),r._updateStyle(),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"_updateStyle",value:function(){var e=this;this._convertLabelInfoToLabelClass(),this._renderer?this._styleLayers.forEach(function(t){e._updateStyleLayerByRenderer(t),e._updateStyleLayerVisibleBySublayer(t),e._updateStyleLayerOpacityBySublayer(t),e._updateStyleLayerByLabelingInfo(t)}):this._styleLayers.forEach(function(t){e._updateStyleLayerVisibleBySublayer(t),e._updateStyleLayerOpacityBySublayer(t),e._updateStyleLayerByLabelingInfo(t)})}},{key:"_updateStyleLayerVisibleBySublayer",value:function(e){var t=this.layer._getBackupProperties(e.id,"visibility");e.layout.visibility=this.layer.visible&&this.visible?t:"none"}},{key:"_updateStyleLayerOpacityBySublayer",value:function(e){var t=this,r=this.layer._getBackupProperties(e.id,"opacities");(0,a.default)(r).forEach(function(n){e.paint[n]=Number(r[n])*t.opacity*t.layer.opacity})}},{key:"_updateStyleLayerByRenderer",value:function(e){var t=y.default.renderToStyle(this._renderer,e.type,JSON.parse((0,o.default)(e)));if(t){var r=t.paint,n=t.layout;e.paint=(0,i.default)(e.paint,r),e.layout=(0,i.default)(e.layout,n)}}},{key:"_convertLabelInfoToLabelClass",value:function(){for(var e=(0,d.cloneObject)(this._labelingInfo),t=[],r=0;r<e.length;r++)t.push(new p.default(e[r]));this._labelingInfo=t}},{key:"_updateStyleLayerByLabelingInfo",value:function(e){this.layer.setExtendProperties(e.id,"labelingInfo",this._labelingInfo)}},{key:"_fireLayerUpdateEvent",value:function(e,t){e=(0,d.defaultValue)(e,"setStyleLayer"),t=(0,d.defaultValue)(t,[]),this.layer._fireLayerUpdateEvent([{params:t,dataChanged:!0,name:e,operationType:"method"}])}},{key:"toJSON",value:function(){var e=(0,h.default)(t.prototype.__proto__||(0,s.default)(t.prototype),"toJSON",this).call(this);return e.type=this.type,e.styleLayers=this.styleLayers,e.renderer=this.renderer?this.renderer.toJSON():null,e.labelingInfo=this.labelingInfo.map(function(e){return e.toJSON()}),e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(g.default);(0,n.default)(_.prototype,{styleLayers:{get:function(){return this._styleLayers}},renderer:{get:function(){return this._renderer},set:function(e){var t=this;this._renderer=e,this._styleLayers.forEach(function(e){t._updateStyleLayerByRenderer(e)}),this._fireLayerUpdateEvent()}},visible:{get:function(){return this._visible},set:function(e){var t=this;this._visible=e,this._styleLayers.forEach(function(e){t._updateStyleLayerVisibleBySublayer(e)}),this._fireLayerUpdateEvent()}},opacity:{get:function(){return this._opacity},set:function(e){var t=this;this._opacity=e,this._styleLayers.forEach(function(e){t._updateStyleLayerOpacityBySublayer(e)}),this._fireLayerUpdateEvent()}},labelingInfo:{get:function(){return this._labelingInfo},set:function(e){var t=this;this._labelingInfo=e,this._convertLabelInfoToLabelClass(),this._styleLayers.forEach(function(e){t._updateStyleLayerByLabelingInfo(e)}),this._fireLayerUpdateEvent()}}}),t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMapboxExpression=t.convertColorToRgb=t.convertLineStyle=void 0;var n=r(8);t.convertLineStyle=function(e,t){switch(e){case"dash":case"esriSLSDash":return t?[4,3]:[3,4];case"dash-dot":case"esriSLSDashDot":return t?[4,3,1,3]:[3,4,0,4];case"dot":case"esriSLSDot":return t?[1,3]:[0,4];case"long-dash":case"esriSLSLongDash":return t?[8,3]:[7,4];case"long-dash-dot":case"esriSLSLongDashDot":return t?[8,3,1,3]:[7,4,0,4];case"long-dash-dot-dot":case"esriSLSDashDotDot":return t?[8,3,1,3,1,3]:[7,4,0,4,0,4];case"short-dash":case"esriSLSShortDash":return t?[4,1]:[3,2];case"short-dash-dot":case"esriSLSShortDashDot":return t?[4,1,1,1]:[3,2,0,2];case"short-dash-dot-dot":case"esriSLSShortDashDotDot":return t?[4,1,1,1,1,1]:[3,2,0,2,0,2];case"short-dot":case"esriSLSShortDot":return t?[1,1]:[0,2];case"solid":case"esriSLSSolid":case"none":default:return}},t.convertColorToRgb=function(e){return e instanceof n.Color?e.toCssRGBAString():e},t.isMapboxExpression=function(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&"== != > < >= <= array at boolean case coalesce collator format image in interpolate interpolate-hcl interpolate-lab\nlength let literal match number number-format object step string to-boolean to-color to-number to-string var within".indexOf(e[0])>-1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(7)),u=h(r(5)),l=r(1),c=r(19);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.value=e.value,r.symbol=c.Symbol.fromJSON(e.symbol),r.visible=(0,l.defaultValue)(e.visible,!0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.value=this.value,e.symbol=this.symbol.toJSON(),e.visible=this.visible,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(h(r(206)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.id=(0,o.defaultValue)(t.id,(0,o.getGUID)()),this.label=(0,o.defaultValue)(t.label,""),this.description=(0,o.defaultValue)(t.description,"")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.id=this.id,e.label=this.label,e.description=this.description,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(7)),u=h(r(5)),l=r(1),c=r(19);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.minValue=e.minValue,r.maxValue=e.maxValue,r.symbol=c.Symbol.fromJSON(e.symbol),r.visible=(0,l.defaultValue)(e.visible,!0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.minValue=this.minValue,e.maxValue=this.maxValue,e.symbol=this.symbol.toJSON(),e.visible=this.visible,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(h(r(206)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(8);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.ratio=t.ratio,this.color=a.Color.fromColor((0,o.defaultValue)(t.color,{}))}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.ratio=this.ratio,e.color=this.color.toJSON(),e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(3)),i=u(r(0)),o=u(r(2)),a=u(r(4)),s=u(r(5));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(u(r(203)).default);t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(r(11)),i=v(r(14)),o=v(r(3)),a=v(r(0)),s=v(r(2)),u=v(r(4)),l=v(r(7)),c=v(r(5)),h=r(1),f=r(9),d=r(15),p=r(44),y=r(202),g=r(66),m=r(8);function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(r.url=(0,h.defaultValue)(e.url,""),r.name=(0,h.defaultValue)(e.name,""),r.type=(0,h.defaultValue)(e.type,""),r.fields=(0,h.defaultValue)(e.fields,[]),r.geomType=(0,h.defaultValue)(e.geomType||e.GeomType,""),r.maxScale=(0,h.defaultValue)(e.maxScale,0),r.minScale=(0,h.defaultValue)(e.minScale,0),e.range?r.extent=new f.Extent({xmin:e.range.xmin,ymin:e.range.ymin,xmax:e.range.xmax,ymax:e.range.ymax}):r.extent=new f.Extent({xmin:-180,ymin:-90,xmax:180,ymax:90}),r.spatialReference=e.spatialReference?new f.SpatialReference(e.spatialReference):new f.SpatialReference({wkid:4326}),r.supportedMethods=(0,h.defaultValue)(e.supportedMethods,[]),r.systemLibGuid=(0,h.defaultValue)(e.systemLibGuid,void 0),r.systemLibName=(0,h.defaultValue)(e.systemLibName,void 0),r.id=(0,h.defaultValue)(e.id,e.LayerIndex||e.index),void 0!==r.id&&null!==r.id&&""!==r.id||(r.id=(0,h.getGUID)()),r.index=(0,h.defaultValue)(e.index,void 0),r._renderer=e.renderer?g.BaseRenderer.fromJSON(e.renderer):void 0,r._definitionExpression=(0,h.defaultValue)(e.definitionExpression,void 0),r._definitionExpressionChanged=(0,h.defaultValue)(e.definitionExpressionChanged,!1),r.geometryFilter=(0,h.defaultValue)(e.geometryFilter,void 0),e.sublayers&&Array.isArray(e.sublayers)){for(var n=new m.Collection,i=0;i<e.sublayers.length;i++){var s=e.sublayers[i];s.layer=r,n.add(new t(s))}r.sublayers=n}return r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.url=this.url,e.name=this.name,e.type=this.type,e.fields=this.fields,e.geomType=this.geomType,e.maxScale=this.maxScale,e.minScale=this.minScale,e.extent=this.extent.toJSON(),e.spatialReference=this.spatialReference.toJSON(),e.supportedMethods=this.supportedMethods,e.systemLibGuid=this.systemLibGuid,e.systemLibName=this.systemLibName,e.index=this.index,e.renderer=this._renderer?this._renderer.toJSON():void 0,e}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"load",value:function(){if(this.layer&&this.layer._mapServer){var e=this;return this.layer._mapServer.queryLayerInfo({layerId:this.id}).then(function(t){var r=t.data;return r&&(r.drawingInfo&&r.drawingInfo.renderer&&(e._renderer=(0,p.formatIGSRenderer)(r.drawingInfo.renderer)),e.fields=r.fields,e.geomType=r.geomType,e.index=r.index,e.id=r.index,e.maxScale=r.maxScale,e.minScale=r.minScale,e.name=r.name,e.extent=new f.Extent({xmin:r.range.xmin,ymin:r.range.ymin,xmax:r.range.xmax,ymax:r.range.ymax}),e.spatialReference=r.spatialReference?new f.SpatialReference(r.spatialReference):new f.SpatialReference({wkid:4326}),e.systemLibGuid=r.systemLibGuid,e.systemLibName=r.systemLibName,e.type=r.type,e.url=r.url),new i.default(function(t){t(e)})})}}},{key:"_getSourceLayer",value:function(){for(var e=this.layer;e&&!(e instanceof y.IGSMapImageLayer);)e=e.layer;return e instanceof y.IGSMapImageLayer?e:null}}]),t}(d.SubLayer);(0,n.default)(_.prototype,{renderer:{get:function(){return this._renderer},set:function(e){e instanceof g.BaseRenderer?this._renderer=e:this._renderer=g.BaseRenderer.fromJSON(e);var t=this._getSourceLayer();t&&t.refresh()}},definitionExpression:{get:function(){return this._definitionExpression},set:function(e){if(e){this._definitionExpressionChanged=!0,this._definitionExpression=e;var t=this._getSourceLayer();t&&t.refresh()}}},visible:{get:function(){return this._visible},set:function(e){this._visible=e;var t=this._getSourceLayer();t&&t.refresh()}}}),t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(11)),i=h(r(0)),o=h(r(2)),a=r(1),s=r(9),u=h(r(129)),l=r(8),c=r(6);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(t){(0,i.default)(this,e),t=(0,a.defaultValue)(t,{}),this.sceneIndex=(0,a.defaultValue)(t.sceneIndex,0),this.sceneName=(0,a.defaultValue)(t.sceneName,void 0),this.sceneMode=(0,a.defaultValue)(t.sceneMode,void 0),this.sceneRange=(0,a.defaultValue)(new s.Extent({xmin:t.sceneRange.xMin,ymin:t.sceneRange.yMin,xmax:t.sceneRange.xMax,ymax:t.sceneRange.yMax,zmin:t.sceneRange.zMin,zmax:t.sceneRange.zMax}),void 0),this.sublayers=(0,a.defaultValue)(t.sublayers,new l.Collection),this.layer=(0,a.defaultValue)(t.layer,void 0),this.extendedProps=(0,a.defaultValue)(t.extendedProps,void 0),this._allSublayers=new l.Collection,this._initAllSubLayers(this.sublayers)}return(0,o.default)(e,[{key:"findSublayerByGDBP",value:function(e){return this.allSublayers.find(function(t){return t.url===e})}},{key:"findSublayerById",value:function(e){return this.allSublayers.find(function(t){return String(t.id)===String(e)})}},{key:"toJSON",value:function(){for(var e=[],t=0;t<this.sublayers.length;t++)e.push((0,a.toJSON)(this.sublayers[t],u.default));return{sceneIndex:this.sceneIndex,sceneName:this.sceneName,sceneMode:this.sceneMode,sceneRange:(0,a.toJSON)(this.sceneRange,s.Extent),extendedProps:this.extendedProps,sublayers:e}}},{key:"_initAllSubLayers",value:function(e){var t=this;e.forEach(function(e){e.type!==c.SceneSubLayerType.groupLayer3D?t._allSublayers.add(e):e.sublayers.items.length>0&&t._initAllSubLayers(e.sublayers)})}}]),e}();(0,n.default)(f.prototype,{allSublayers:{get:function(){return this._allSublayers}}}),t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(11)),i=h(r(3)),o=h(r(0)),a=h(r(2)),s=h(r(4)),u=h(r(5)),l=r(1),c=r(9);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.url=(0,l.defaultValue)(e.url,""),r.name=(0,l.defaultValue)(e.name,""),r.type=(0,l.defaultValue)(e.type,""),r.fields=(0,l.defaultValue)(e.fields,[]),r.geomType=(0,l.defaultValue)(e.geomType||e.GeomType,""),r.maxScale=(0,l.defaultValue)(e.maxScale,0),r.minScale=(0,l.defaultValue)(e.minScale,0),e.range?r.extent=new c.Extent({xmin:e.range.xmin,ymin:e.range.ymin,xmax:e.range.xmax,ymax:e.range.ymax}):r.extent=new c.Extent({xmin:-180,ymin:-90,xmax:180,ymax:90}),r.spatialReference=(0,l.defaultValue)(e.spatialReference,void 0),r.supportedMethods=(0,l.defaultValue)(e.supportedMethods,[]),r.systemLibGuid=(0,l.defaultValue)(e.systemLibGuid,void 0),r.systemLibName=(0,l.defaultValue)(e.systemLibName,void 0),r.id=e.id,r.index=(0,l.defaultValue)(e.index,void 0),r.moveIndex=(0,l.defaultValue)(e.moveIndex,void 0),r._renderer=(0,l.defaultValue)(e.renderer,void 0),r.layer=(0,l.defaultValue)(e.layer,void 0),r}return(0,u.default)(t,e),(0,a.default)(t,null,[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(r(15).SubLayer);(0,n.default)(f.prototype,{renderer:{get:function(){return this._renderer},set:function(e){this._renderer=e,this.layer.setSubLayer(this)}}}),t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(3)),i=y(r(0)),o=y(r(2)),a=y(r(4)),s=y(r(7)),u=y(r(5)),l=r(15),c=r(8),h=r(1),f=r(9),d=y(r(54)),p=y(r(67));function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));if(e=(0,h.defaultValue)(e,{}),r.description="IGS WMTS子图层",r.imageFormat=(0,h.defaultValue)(e.imageFormat,"image/png"),r.identifier=(0,h.defaultValue)(e.identifier,""),r.title=(0,h.defaultValue)(e.title,""),r.imageFormats=(0,h.defaultValue)(e.imageFormats,void 0),r.styleId=(0,h.defaultValue)(e.styleId,void 0),r.styles=(0,h.defaultValue)(e.styles,void 0),r.tileMatrixSets=(0,h.defaultValue)(e.tileMatrixSets,void 0),r.tileMatrixSets&&r.tileMatrixSets instanceof Array)for(var o=0;o<r.tileMatrixSets.length;o++)r.tileMatrixSets[o]instanceof c.TileMatrixSet||(r.tileMatrixSets[o]=c.TileMatrixSet.fromJSON(r.tileMatrixSets[o]),!r.tileMatrixSets[o].tileInfo||r.tileMatrixSets[o].tileInfo instanceof p.default||(r.tileMatrixSets[o].tileInfo=p.default.fromJSON(r.tileMatrixSets[o].tileInfo)));r.tileMatrixSetId=(0,h.defaultValue)(e.tileMatrixSetId,void 0),r.tileMatrixSet=(0,h.defaultValue)(e.tileMatrixSet,void 0),r.extent=(0,h.defaultValue)(e.extent,void 0),r.resourceURLTemplates=(0,h.defaultValue)(e.resourceURLTemplates,void 0);for(var s=0;s<r.tileMatrixSets.length;s++)r.tileMatrixSets[s].id===r.tileMatrixSetId&&(r.spatialReference=f.SpatialReference.fromJSON(r.tileMatrixSets[s].tileInfo.spatialReference));return r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);e.description=this.description,e.imageFormat=this.imageFormat,e.identifier=this.identifier,e.title=this.title,e.imageFormats=this.imageFormats,e.styleId=this.styleId,e.tileMatrixSets=this.tileMatrixSets,e.tileMatrixSetId=this.tileMatrixSetId,e.tileMatrixSet=(0,h.toJSON)(this.tileMatrixSet,c.TileMatrixSet),e.extent=this.extent instanceof d.default?this.extent.toJSON():this.extent,e.resourceURLTemplates=this.resourceURLTemplates,e.spatialReference=this.spatialReference instanceof f.SpatialReference?this.spatialReference.toJSON():this.spatialReference;var r=[];if(this.styles)for(var i=0;i<this.styles.length;i++)r.push(this.styles[i]instanceof c.WMTSStyle?this.styles[i].toJSON():this.styles[i]);return e.styles=r,e}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(l.Layer);g.fromJSON=function(e){return e=(0,h.defaultValue)(e,{}),new g(e)},t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(7)),u=f(r(5)),l=r(1),c=f(r(65)),h=r(9);function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.name=(0,l.defaultValue)(e.name,void 0),r.description=(0,l.defaultValue)(e.abstract,void 0),r.queryable=(0,l.defaultValue)(e.queryable,!0),r.spatialReferences=(0,l.defaultValue)(e.spatialReferences,[]),r.spatialReference=(0,l.defaultValue)(e.spatialReference,void 0),r.extent=(0,l.defaultValue)(e.extent,void 0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);e.spatialReference=(0,l.toJSON)(this.spatialReference,h.SpatialReference),e.name=this.name,e.extent=(0,l.toJSON)(this.extent,h.Extent);for(var r=[],i=0;i<this.spatialReferences.length;i++)r.push((0,l.toJSON)(this.spatialReferences[i],h.SpatialReference));return e.spatialReferences=r,e}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(c.default);t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(11)),i=m(r(3)),o=m(r(0)),a=m(r(2)),s=m(r(4)),u=m(r(5)),l=r(8),c=r(6),h=r(15),f=r(1),d=r(35),p=r(40),y=(r(9),r(90)),g=r(128);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,o.default)(this,t),e=(0,f.defaultValue)(e,{});var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this));return r._id=(0,f.defaultValue)(e.id,(0,f.getGUID)()),r._basemap=(0,f.defaultValue)(e.basemap,void 0),r.groupLayer=new d.GroupLayer({layers:e.layers,copyright:""}),r.groupLayer.setMap(r),r.layers=r.groupLayer.layers,r.allLayers=new l.CollectionFlattener({getCollections:function(){return r._basemap&&r._basemap.baseLayers?[r._basemap.baseLayers,r.groupLayer.layers]:[r.groupLayer.layers]},getChildrenFunction:function(e){return e.layers}}),r._spatialReference=null,r._fullExtent=null,r._waitLoadStorage=[],r._isInitLayersLoaded=!1,r._initHandlers(),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"toJSON",value:function(){for(var e={layers:[]},t=0;t<this.layers.items.length;t++)e.layers.push((0,f.toJSON)(this.layers.items[t],h.Layer));return e.exportTime=(new Date).toISOString(),e}},{key:"clone",value:function(){return(0,f.cloneObject)(this)}},{key:"add",value:function(e,t){if(e){var r=e instanceof h.Layer?e:h.Layer.fromJSON(e);this._isValidateLayers([r]),this.groupLayer.add(e,t)}}},{key:"addMany",value:function(e,t){if(e&&Array.isArray(e)){var r=e.map(function(e){return e instanceof h.Layer?e:h.Layer.fromJSON(e)});this._isValidateLayers(r),this.groupLayer.addMany(e,t)}}},{key:"remove",value:function(e){e&&this.groupLayer.remove(e)}},{key:"removeMany",value:function(e){e&&Array.isArray(e)&&this.groupLayer.removeMany(e)}},{key:"removeAll",value:function(){this.groupLayer.removeAll()}},{key:"destroy",value:function(){this.removeAll(),this._removeHandlers()}},{key:"reorder",value:function(e,t){this.groupLayer.reorder(e,t)}},{key:"findLayerById",value:function(e){return this.groupLayer.findLayerById(e)}},{key:"dispatchEvent",value:function(e,t,r){return this.fire(e,t,r),this}},{key:"getFullExtent",value:function(){return this._getLayersExtent(this.allLayers)}},{key:"_isValidateLayers",value:function(e){this.groupLayer._isValidateLayers(e)}},{key:"_initHandlers",value:function(){this._initBasemapHandlers(),this.groupLayer.on(c.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_removeHandlers",value:function(){this.groupLayer.off(c.MapEventType.layerChange,this._processGroupLayerChange,this),this._basemap&&this._basemap._baseGroupLayer.off(c.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_initBasemap",value:function(){this._basemap&&(this._basemap.baseLayers&&this.allLayers._addCollection(this._basemap.baseLayers,0),this._initBasemapHandlers(),this.basemap._baseGroupLayer.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({added:this._basemap._baseGroupLayer.layers.items.map(function(e){return e}),path:[this._basemap._baseGroupLayer]})),this.fire(c.MapEventType.basemapChange,new p.BasemapChangeEvent({basemap:this._basemap,detail:[{action:"basemap-create"}]})))}},{key:"_initBasemapHandlers",value:function(){this._basemap&&this._basemap._baseGroupLayer.on(c.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_processGroupLayerChange",value:function(e){var t=e.added,r=e.moved,n=e.removed,i=e.sourceTarget,o=e.path;this._dispatchOldMapEvent(e),this.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({type:c.MapEventType.layerChange,sourceTarget:i,removed:n,path:o,moved:r,added:t})),t.length>0&&(this._waitLoadStorage.push(e),this._triggerLayersAddToView()),0===n.length&&0===t.length&&0===r.length?this._waitLoadStorage=this._waitLoadStorage.filter(function(e){return e.sourceTarget!==i}):n.length>0&&(this._waitLoadStorage.forEach(function(e){e&&e.sourceTarget===i&&(e.added=e.added.filter(function(e){return!n.some(function(t){return t&&e&&t.id===e.id})}))}),this._waitLoadStorage=this._waitLoadStorage.filter(function(e){return e&&e.added&&e.added.length>0}))}},{key:"_triggerLayersAddToView",value:function(){this._isInitLayersLoaded?this._processLoadStorage():(this._cacheProcessLoadStorage||(this._cacheProcessLoadStorage=(0,y.debouncePromise)(this._processLoadStorage,10).bind(this)),this._cacheProcessLoadStorage())}},{key:"_processLoadStorage",value:function(){var e=this;if(0!==this._waitLoadStorage.length){var t=this._waitLoadStorage.map(function(e){var t=e.sourceTarget,r=e.added.filter(function(e){return e});return t.load().then(function(){return{added:r,sourceTarget:t}})});(0,y.allSettled)(t).then(function(t){if(t&&Array.isArray(t)){var r=[];t.forEach(function(e){var t=e.value,n=t.added.filter(function(e){return e&&e.type!==c.LayerType.unknown});n.length>0&&r.push({added:n,sourceTarget:t.sourceTarget})}),r.length>0&&(e._isInitLayersLoaded=!0,e.fire(c.MapEventType.layerLoaded,new p.LayerLoadedEvent({addDetail:r})))}}),this._waitLoadStorage=[]}}},{key:"_dispatchOldMapEvent",value:function(e){var t=e.added,r=e.removed,n=e.sourceTarget;if(n===this.groupLayer&&(t&&Array.isArray(t)&&t.length>0&&(1===t.length?this.dispatchEvent(c.MapEventType.layerAdd,{type:c.MapEventType.layerAdd,layer:t[0]}):this.dispatchEvent(c.MapEventType.layerAddMany,{type:c.MapEventType.layerAddMany,layers:t})),Array.isArray(r))){var i=n.layers;i&&i.items&&0===i.items.length&&0===r.length?this.dispatchEvent(c.MapEventType.layerRemoveAll,{type:c.MapEventType.layerRemoveAll,layers:r}):1===r.length?this.dispatchEvent(c.MapEventType.layerRemove,{type:c.MapEventType.layerRemove,layer:r[0]}):r.length>1&&this.dispatchEvent(c.MapEventType.layerRemoveMany,{type:c.MapEventType.layerRemoveMany,layers:r})}}},{key:"_loadLayers",value:function(){return this._basemap&&this._basemap._baseGroupLayer.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({added:this._basemap._baseGroupLayer.layers.items.map(function(e){return e}),path:[this._basemap._baseGroupLayer]})),this.groupLayer&&this.groupLayer.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({added:this.groupLayer.layers.items.map(function(e){return e}),path:[this.groupLayer]})),this}},{key:"_setSpatialReference",value:function(e){this._spatialReference=e}},{key:"_getLayersExtent",value:function(e){var t=(0,g.getLayersExtent)(e,this._spatialReference);return this._fullExtent=t,t}}],[{key:"fromJSON",value:function(e){e=(0,f.defaultValue)(e,{});for(var r=(0,f.defaultValue)(e.layers,[]),n=new t,i=0;i<r.length;i++)n.add(h.Layer.fromJSON(r[i]));return n}}]),t}(l.Evented);(0,n.default)(v.prototype,{basemap:{get:function(){return this._basemap},set:function(e){this._basemap?e?this._basemap._setBasemap(e,this):(this._basemap._setBasemap(e),this._basemap=null):e?(this._basemap=e,this._basemap._map=this,this._initBasemap()):this._basemap=null}},spatialReference:{get:function(){return this._spatialReference},set:function(){}},fullExtent:{get:function(){return this._fullExtent},set:function(){}}}),t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(7)),u=l(r(5));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r._initInstance(e),r._initHandlers(),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"_initInstance",value:function(e){}},{key:"_initHandlers",value:function(){this._layerChangeAction=this._layerChangeAction.bind(this),this.layer.on("set",this._layerChangeAction)}},{key:"_removeHandlers",value:function(){this.layer.off("set",this._layerChangeAction)}},{key:"_layerChangeAction",value:function(e){"renderer"===e.eventData.key&&this._rendererChangeAction(e)}},{key:"_rendererChangeAction",value:function(e){}},{key:"onRemove",value:function(e){(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"onRemove",this).call(this,e),this._removeHandlers()}}]),t}(l(r(81)).default);t.default=c},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _stringify=__webpack_require__(10),_stringify2=_interopRequireDefault(_stringify),_isNan=__webpack_require__(517),_isNan2=_interopRequireDefault(_isNan),_index=__webpack_require__(97),_util=__webpack_require__(1),_symbol=__webpack_require__(19),_VisualVariableType=__webpack_require__(51),_VisualVariableType2=_interopRequireDefault(_VisualVariableType);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parseExpression(feature,expression){if(!expression)return"";var excuteStr=expression.replace(/\$feature/g,"feature.attributes");try{var v=eval(excuteStr);return v}catch(e){_index.Log.info("字段表达式输入值非法")}return""}function parseFieldAndExpression(e,t,r){var n=(e.attributes||{})[t];return(0,_util.defined)(n)?n:parseExpression(e,r)}function randomColor(){return"rgba("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+",1)"}function calcSpaceRatio(e,t,r){var n=r-t;return((0,_isNan2.default)(n)||n<=0)&&_index.Log.error("传入的视觉变量不合法"),e<=t?0:e>r?1:(e-t)/n}function calcGradientInStops(e,t,r){if(Array.isArray(t)&&!(t.length<=0)){var n=t.sort(function(e,t){return e.value-t.value});if(1===n.length)return r(t[0],t[0],1);var i=n[0],o=n[n.length-1];if(e<i.value)return r(i,i,1);if(e>=o.value)return r(o,o,1);for(var a=1;a<n.length;a++){var s=n[a-1],u=n[a];if(e>=s.value&&e<=u.value)return r(s,u,calcSpaceRatio(e,s.value,u.value))}}}function updateFeatureSymbol(e,t,r,n){if(e&&e.symbol&&t){var i=!(0,_util.defined)(r)||r;e.visible!==i&&(e.visible=i);var o=e.symbol.toJSON(),a=t.toJSON();if(o!==a&&(e.symbol=a),n&&Array.isArray(n)&&!(n.length<=0))for(var s=e.symbol instanceof _symbol.Symbol?e.symbol.toJSON():(0,_stringify2.default)(e.symbol),u=0;u<n.length;u++){var l=n[u],c=l.field,h=l.type,f=parseFieldAndExpression(e,c,l.valueExpression);if(f=parseFloat(f),!(0,_isNan2.default)(f)){switch(h){case _VisualVariableType2.default.color:var d=calcGradientInStops(f,l.stops,function(e,t,r){var n=_index.Color.fromColor(e.color),i=_index.Color.fromColor(t.color),o=parseInt(n.red+(i.red-n.red)*r),a=parseInt(n.green+(i.green-n.green)*r),s=parseInt(n.blue+(i.blue-n.blue)*r),u=parseFloat(n.alpha+(i.alpha-n.alpha)*r);return new _index.Color(o,a,s,u)});(0,_util.defined)(d)&&(s.color=d);break;case _VisualVariableType2.default.size:var p=l.stops,y=l.maxDataValue,g=l.minDataValue,m=l.maxSize,v=l.minSize,_=p;(0,_util.isNumber)(y)&&(0,_util.isNumber)(g)&&(0,_util.isNumber)(m)&&(0,_util.isNumber)(v)&&(_=[{size:v,value:g},{size:m,value:y}]);var S=calcGradientInStops(f,_,function(e,t,r){var n=e.size,i=t.size;return parseInt(n+(i-n)*r)});(0,_util.defined)(S)&&(s.size=S);break;case _VisualVariableType2.default.opacity:var x=calcGradientInStops(f,l.stops,function(e,t,r){var n=e.opacity,i=t.opacity;return parseInt(100*(n+(i-n)*r))/100});if((0,_util.defined)(x)&&s.color){var b=_index.Color.fromColor(s.color);b.alpha=x,s.color=b}}e.symbol=s}}}}function updateRandomFeatureSymbol(e){if(e&&e.geometry)switch(e.geometry.type){case _index.GeometryType.multiPoint:case _index.GeometryType.point:e.symbol=new _symbol.SimpleMarkerSymbol({color:randomColor(),outline:new _symbol.SimpleLineSymbol({color:randomColor()})});break;case _index.GeometryType.multiLineString:case _index.GeometryType.lineString:e.symbol=new _symbol.SimpleLineSymbol({color:randomColor()});break;case _index.GeometryType.polygon:case _index.GeometryType.extent:case _index.GeometryType.circle:case _index.GeometryType.multiPolygon:e.symbol=new _symbol.SimpleFillSymbol({color:randomColor(),outline:new _symbol.SimpleLineSymbol({color:randomColor()})})}}function updateRenderer(e,t){var r=(t=t||{}).visualVariables||[];switch(t.type){case _index.RendererType.simple:var n=t.symbol;e.forEach(function(e){updateFeatureSymbol(e,n,!0,r)});break;case _index.RendererType.uniqueValue:for(var i=t.defaultSymbol||{},o=t.defaultVisible,a=t.uniqueValueInfos||[],s=t.valueExpression||"",u=0;u<e.length;u++){var l=e[u],c=parseFieldAndExpression(l,t.field||"",s);if((0,_util.defined)(c)){for(var h=null,f=null,d=0;d<a.length;d++){var p=a[d];if(p.value===c){h=p.symbol,f=p;break}}if(h){updateFeatureSymbol(l,h,f.visible,r);continue}}updateFeatureSymbol(l,i,o,r)}break;case _index.RendererType.classBreak:for(var y=t.defaultSymbol||{},g=t.classBreakInfos||[],m=t.valueExpression||"",v=t.defaultVisible,_=0;_<e.length;_++){var S=e[_],x=parseFieldAndExpression(S,t.field||"",m);if((0,_util.defined)(x)){for(var b=null,w=null,k=0;k<g.length;k++){var M=g[k],E=M.maxValue;if(x>=M.minValue&&x<E){b=M.symbol,w=M;break}}if(b){updateFeatureSymbol(S,b,w.visible,r);continue}}updateFeatureSymbol(S,y,v,r)}break;case _index.RendererType.random:e.forEach(function(e){updateRandomFeatureSymbol(e)});break;case _index.RendererType.rank:var I=t.symbol,T=t,L=T.minSize,C=T.maxSize,P=T.maxDataValue,N=T.minDataValue,O=T.field,R=T.valueExpression;(!I||L>C||!O&&!R)&&_index.Log.error("等级符号专题图参数异常!");var V=void 0,G=void 0;e.forEach(function(e){var t=parseFieldAndExpression(e,O,R);t=parseFloat(t),(0,_util.defined)(V)||(V=t),(0,_util.defined)(G)||(G=t),V=Math.max(V,t),G=Math.min(G,t)}),(0,_util.defined)(N)&&(0,_util.defined)(P)&&P>N&&(V=P,G=N),V-G==0&&(V+=1e-4),e.forEach(function(e){var t,n=I.clone(),i=parseFieldAndExpression(e,O,R);t=(i=parseFloat(i))<G?0:i>V?1:(i-G)/(V-G);var o=parseInt(t*(C-L)+L);if((0,_util.isNumber)(o))switch(n.type){case _index.SymbolType.simpleMarker:n.size=o;break;case _index.SymbolType.pictureMarker:n.width=o,n.height=o;break;case _index.SymbolType.text:var a=n.font||{};a.size=o,n.font=a}updateFeatureSymbol(e,n,!0,r)});break;default:var A=t.symbol;e.forEach(function(e){updateFeatureSymbol(e,A,!0,r)})}}var RendererUtil={updateRenderer:updateRenderer,parseExpression:parseExpression};exports.default=RendererUtil},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=I(r(11)),i=I(r(22)),o=I(r(3)),a=I(r(0)),s=I(r(2)),u=I(r(4)),l=I(r(5)),c=r(8),h=r(1),f=r(9),d=I(r(36)),p=I(r(37)),y=I(r(55)),g=I(r(522)),m=I(r(219)),v=I(r(220)),_=I(r(221)),S=I(r(524)),x=I(r(525)),b=I(r(526)),w=I(r(222)),k=I(r(223)),M=r(134),E=r(64);function I(e){return e&&e.__esModule?e:{default:e}}var T=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this));if((e=(0,h.defaultValue)(e,{})).view||h.Log.error("options.view is null!",e),r.view=e.view,r._spatialReference=r.view&&r.view._spatialReference?r.view._spatialReference:new f.SpatialReference("EPSG:4326"),r._sketchInnerLayer=new E.GraphicsLayer,r.layer=(0,h.defaultValue)(e.layer,void 0),r._layer=r.layer||r._sketchInnerLayer,r.sketchStyle=(0,h.defaultValue)(e.sketchStyle,new d.default),r._editable=(0,h.defaultValue)(e.editable,!0),r.isSimple=(0,h.defaultValue)(e.isSimple,!1),r.snapOption=(0,h.defaultValue)(e.snapOption,{}),r.snapAndReferGeometries=(0,h.defaultValue)(e.snapAndReferGeometries,[]),r.measureOption=(0,h.defaultValue)(e.measureOption,void 0),r._drawTool=null,r._sketchDataType=null,r._sketchSnappingTool={},r._sketchTopologyTool={},r._undoRedoManager=new x.default,r._editorState={editMode:0,undoRedoManager:r.undoRedoManager,_hitTestEvent:r._hitTestEvent},r._layer){var n=r.view._map.findLayerById(r._layer.id),s=r.view.getInnerLayer(r._layer);n&&s?r._hitTestSketchEvent(r._layer):r._layer.on("layerview-created",function(e){r._layerView=e.layerView,r.view._id===e.view._id&&r._hitTestSketchEvent(r._layer)})}return r._sketchInnerLayer?(r._sketchInnerLayer.on("layerview-created",function(e){r._layerView=e.layerView,r.view._id===e.view._id&&r._hitTestSketchEvent()}),r.view._graphicsLayers.add(r._sketchInnerLayer),r._sketchSnappingTool=new g.default((0,i.default)(r.snapOption,{view:r.view})),r._sketchTopologyTool=new S.default):r._hitTestSketchEvent(),r}return(0,l.default)(t,e),(0,s.default)(t,[{key:"start",value:function(e,t){var r=this._getDrawTool(e,t),n=r.drawTool,i=r.sketchType;r.isGeometry?this._startDrawTool(n,i,e):this._startDrawTool(n,i)}},{key:"startCustomDrawTool",value:function(e,t){var r=new e({view:this.view,sketchStyle:this.sketchStyle,layer:this._layer,sketchInnerLayer:this._sketchInnerLayer,undoRedoManager:this._undoRedoManager,elevationInfo:this.elevationInfo,_sketchEditor:this});this._startDrawTool(r,t)}},{key:"_getDrawTool",value:function(e,t){var r=void 0,n=void 0,i=!1;"number"==typeof e?r=e:e instanceof f.Point?(r=c.SketchDataType.POINT,i=!0):e instanceof f.LineString?(r=c.SketchDataType.POLYLINE,i=!0):e instanceof f.Polygon?(r=c.SketchDataType.POLYGON,i=!0):e instanceof f.Circle?(r=c.SketchDataType.CIRCLE,i=!0):e instanceof f.Extent&&(r=c.SketchDataType.RECTANGLE,i=!0);var o={view:this.view,sketchStyle:this.sketchStyle,sketchDataType:r,layer:this._layer,sketchInnerLayer:this._sketchInnerLayer,undoRedoManager:this._undoRedoManager,elevationInfo:this.elevationInfo,_sketchEditor:this,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate};switch(r){case c.SketchDataType.POINT:n=new p.default(o);break;case c.SketchDataType.POLYLINE:n=new m.default(o);break;case c.SketchDataType.POLYGON:n=new y.default(o);break;case c.SketchDataType.CIRCLE:n=new v.default(o);break;case c.SketchDataType.RECTANGLE:n=new _.default(o);break;case c.SketchDataType.FREEHANDPOLYLINE:n=new w.default(o);break;case c.SketchDataType.FREEHANDPOLYGON:n=new k.default(o)}return{drawTool:n,sketchType:r,isGeometry:i}}},{key:"_startDrawTool",value:function(e,t,r){if(this._drawTool&&(this._drawTool._removeEditGraphics(),this._drawTool._stopAll(),this._drawTools=[],this._undoRedoManager.reset()),this._drawTool=e,this._drawTool){if(this._drawTool._sketchDataType=t,this._sketchEvent(),r){var n=r.clone();if(this.arcType&&(n.extensionOptions?n.extensionOptions.arcType=this.arcType:n.extensionOptions={extensionOptions:{arcType:this.arcType}}),this.isSimple&&!f.GeometryEngine.isSimple(n)){var i=new M.SketchEditorEvent({type:c.SketchEditorEventType.create,toolEventInfo:{type:c.SketchEditorToolEventType.geometryUnsimple},state:c.SketchEditorState.complete});return this._drawTool.fire(c.SketchEditorEventType.create,i,self),h.Log.info("该坐标构成的几何不符合拓扑规范!")}this._addGeometry(n,this._layer),this._bindHit&&this._bindHit(this._drawTool,void 0,this._layer),this._drawTool.state="drawn"}else this._drawTool.start(this._sketchDataType);this._selectEvent(),this._drawEvent()}}},{key:"_addFeatureToSketchEditor",value:function(e,t){var r=e.geometry,n=this._getDrawTool(r),i=n.drawTool,o=n.sketchType;this._drawTool=i,this._drawTool&&(this._drawTool.sketchStage.entityGraphic=e,this._drawTool.state="drawn",this._drawTool._sketchDataType=o,this._selectEvent(),this._drawEvent(),this._sketchEvent(),t&&this._drawTool._addFeatureToLayer(e,this._layer))}},{key:"stop",value:function(){this._drawTool&&(this.view.cursor=this._drawTool.cursorStyle,this._drawTool.cursorStyle=null,this.view._mapActionControl("drag-pan",!0),this._drawTool.stop(),this._drawTool._editMode===c.SketchEditMode.DRAWING&&this._remove(),this._fireCancelDrawEvent())}},{key:"remove",value:function(){this._drawTool&&this._fireRemoveEvent(this._drawTool.sketchStage.entityGraphic),this._remove()}},{key:"_remove",value:function(){this._drawTool&&(this._drawTool.removeDrawTool(),this._drawTool=null)}},{key:"update",value:function(e,t){this._drawTool.updateFeature(e,t)}},{key:"_addGeometry",value:function(e,t){this._drawTool.addFeatureByGeometry(e,void 0,void 0,t)}},{key:"addVertex",value:function(e,t){return this._drawTool.addVertex(e,t)}},{key:"updateVertex",value:function(e,t){return this._drawTool.updateVertex(e,t)}},{key:"removeVertex",value:function(e){return this._drawTool.removeVertex(e)}},{key:"getSketchDataType",value:function(){return this._sketchDataType}},{key:"setSketchStyle",value:function(e){var t=this;if(this.sketchStyle=e.clone(),this._drawTool&&this._drawTool.sketchStage){this._drawTool.sketchStyle=e;var r=this._drawTool.sketchStage;(0,h.isNull)(r.entityGraphic)||("Point"===r.entityGraphic.geometry.type?this._drawTool._sketchDataType===c.SketchDataType.TEXT?r.entityGraphic.symbol=e._textStyle:r.entityGraphic.symbol=e._vertexStyle:"Polyline"===r.entityGraphic.geometry.type?r.entityGraphic.symbol=e._lineStyle:"Polygon"===r.entityGraphic.geometry.type&&(r.entityGraphic.symbol=e._fillStyle)),(0,h.isNull)(r.vertexGraphics)||r.vertexGraphics.forEach(function(t){t.symbol=e._vertexStyle}),(0,h.isNull)(r.midVertexGraphics)||r.midVertexGraphics.forEach(function(t){t.symbol=e._selectVertexStyle}),(0,h.isNull)(r.selectBoxGraphics)||r.selectBoxGraphics.forEach(function(r){t._drawTool._sketchDataType===c.SketchDataType.TEXT?r.symbol=e._selectTextStyle:r.symbol=e._selectBoxStyle}),(0,h.isNull)(r.selectBoxVertexGraphics)||r.selectBoxVertexGraphics.forEach(function(t){t.symbol=e._selectBoxVertexStyle})}}},{key:"getSketchStyle",value:function(){return this.sketchStyle}},{key:"union",value:function(e){for(var t=this,r=this,n=0;n<e.length;n++)if(!f.GeometryEngine.isSimple(e[n]))return h.Log.error("输入的几何不符合拓扑规范!");var i=c.Projection.project(this._sketchTopologyTool.unionPolygons(e),this._spatialReference);if("Polygon"===i.type){var o=r.view.allLayerViews.items.filter(function(e){return e.id===r._layer.id});return this.start(i),o.length>0?(this._selectEvent(),this._drawEvent(),this._sketchEvent()):r._layer.once("layerview-created",function(){r._selectEvent(),r._drawEvent(),t._sketchEvent()}),i}h.Log.error("合并结果不符合规范,请检查输入的几何!")}},{key:"split",value:function(e,r){var n=null,i=this;if(e instanceof f.Polygon)n=e;else{if(!(e instanceof t&&e.drawTool._sketchDataType===c.SketchDataType.POLYGON))return void h.Log.error("传入对象不符合要求,请检查");n=e.sketchStage.entityGraphic}return function(e,t){for(var r=1;r<e.coordinates[0].length;r++)e.coordinates[0][r][0]===e.coordinates[0][r-1][0]&&e.coordinates[0][r][1]===e.coordinates[0][r-1][1]&&(e.coordinates[0].splice(r,1),r--);var n=i._sketchTopologyTool.splitPolygonByPolyline(e,t);return n.length>0&&(i.view.allLayerViews.items.filter(function(e){return e.id===i._layer.id}).length>0?n.forEach(function(e){e=c.Projection.project(e,i._spatialReference),i.start(e)}):i._layer.once("layerview-created",function(){n.forEach(function(e){e=c.Projection.project(e,i._spatialReference),i.start(e)})})),n}(n,r)}},{key:"drawPolylineToPolygon",value:function(e){var t=this,r=this;this._drawTool&&(this._drawTool._removeEditGraphics(),this._drawTool._stopAll(),this._drawTools=[],this._undoRedoManager.reset()),this._drawTool=new b.default({view:this.view,sketchStyle:this.sketchStyle,layer:this._sketchInnerLayer,undoRedoManager:this._undoRedoManager,elevationInfo:this.elevationInfo,_sketchEditor:this,snapAndReferGeometries:e,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate}),this._drawTool.start(),this._drawTool.on("drawn",function(e){e.geometry&&(e.geometry instanceof f.Polygon?r.start(e.geometry):e.geometry.coordinates.forEach(function(e){var n=new f.Polygon({coordinates:e,spatialReference:t._spatialReference});r.start(n)}))})}},{key:"undo",value:function(){if(this._editable){var e=this._undoRedoManager.undo();return e?(this._updateByStage(e,"undo"),this._fireUndoEvent(e.entityGraphic),e.entityGraphic.geometry):null}}},{key:"redo",value:function(){if(this._editable){var e=this._undoRedoManager.redo();return e?(this._updateByStage(e,"redo"),this._fireRedoEvent(e.entityGraphic),e.entityGraphic.geometry):null}}},{key:"canUndo",value:function(){return this._undoRedoManager.canUndo()}},{key:"canRedo",value:function(){return this._undoRedoManager.canRedo()}},{key:"destroy",value:function(){this._removeSketchEvent(),this.stop(),this._remove(),this.view=null,this._spatialReference=null,this._sketchInnerLayer=null,this._layer=null,this.sketchStyle=new d.default,this._editable=!0,this.isSimple=!1,this.snapOption={},this.snapAndReferGeometries=[],this.measureOption=null,this._drawTool=null,this._drawTools=[],this._sketchDataType=null,this._sketchSnappingTool={},this._sketchTopologyTool={},this._undoRedoManager=new x.default,this._editorState=null,this._sketchSnappingTool=null}},{key:"_updateByStage",value:function(e,t){var r=this;this._drawTool.sketchStage.getAllFeatures().forEach(function(e){r._drawTool._removeFeatureFromLayer(e,r._sketchInnerLayer)}),this._drawTool._removeFeatureFromLayer(this._drawTool.sketchStage.entityGraphic,this._layer),this._drawTool._setSketchStage(e),e.getAllFeatures().forEach(function(n){var i=r._updateDrawToolByFeature(n);if(i)if(i._editMode===c.SketchEditMode.DRAWING)if(n.id===e.entityGraphic.id){var o=n.clone(),a=[],s=i._currentMovePoint;if(s){if(i.vertexNum&&("undo"===t?i.vertexNum--:"redo"===t&&i.vertexNum++),"Polygon"===o.geometry.type){a=o.geometry.coordinates[0];var u=i.vertexNum||0;1===u?(a[1]=s.coordinates,a[2]=s.coordinates):2===u||1===u?a[2]=s.coordinates:a.splice(a.length-1,0,s.coordinates)}else"LineString"===o.geometry.type&&(a=o.geometry.coordinates,1===i.vertexNum?a[1]=s.coordinates:a[a.length]=s.coordinates);i.sketchStage.entityGraphic=o,i._addFeatureToLayer(o,r._layer)}}else i._addFeatureToLayer(n,r._sketchInnerLayer);else n.id===e.entityGraphic.id?i._addFeatureToLayer(n,r._layer):i._addFeatureToLayer(n,r._sketchInnerLayer)})}},{key:"_updateDrawToolByFeature",value:function(e){for(var t=null,r=this._drawTool._drawTools,n=0;n<r.length;n++)if(r[n].sketchStage.entityGraphic.id===e.id){r[n].sketchStage.entityGraphic=e,t=r[n];break}return t}},{key:"_selectEvent",value:function(){var e=this;this._drawTool.on("selected",function(t){var r=t.isSelected?e:null;e.fire("selected",{selectedSketch:r,isSelected:t.isSelected},e)})}},{key:"_drawEvent",value:function(){var e=this;this._drawTool.on("drawn",function(t){e.fire("drawn",{geometry:t.geometry,feature:t.feature},e)}),this._drawTool.on("drawn-vertex",function(t){e.fire("drawn-vertex",{geometry:t.geometry,feature:t.feature},e)})}},{key:"_sketchEvent",value:function(){var e=this;this._drawTool&&(this._drawTool.on(c.SketchEditorEventType.create,function(t){e.fire(c.SketchEditorEventType.create,t,e),t.state===c.SketchEditorState.complete&&(e._drawTool&&(e._drawTool.state="drawn",e._bindHit(e._drawTool,void 0,e._layer),e._drawTool._stopAll(),e._drawTool=null),e._undoRedoManager.reset())}),this._drawTool.on(c.SketchEditorEventType.update,function(t){e.fire(c.SketchEditorEventType.update,t,e),t.state===c.SketchEditorState.complete&&e._undoRedoManager.reset()}))}},{key:"_addFeatureToCustomGraphicLayer",value:function(e){this._layer&&(this.view._map.findLayerById(this._layer.id)&&this._sketchInnerLayer.remove(e),this._layer.graphics.find(function(t){return e.id===t.id})?(this._layer.remove(e),this._layer.add(e)):this._layer.add(e))}},{key:"_removeFeatureToCustomGraphicLayer",value:function(e){this._layer&&this.view._map.findLayerById(this._layer.id)&&this._layer.graphics.find(function(t){return e.id===t.id})&&(this._layer.remove(e),this._sketchInnerLayer.add(e))}},{key:"_removeSketchEvent",value:function(){this.off(c.SketchEditorEventType.create),this.off(c.SketchEditorEventType.update),this.off(c.SketchEditorEventType.undo),this.off(c.SketchEditorEventType.redo),this.off(c.SketchEditorEventType.remove),this.off("drawn"),this.off("selected")}},{key:"_fireUndoEvent",value:function(e){var t=new M.SketchEditorEvent({type:c.SketchEditorEventType.undo,feature:e,geometry:e.geometry});this.fire(c.SketchEditorEventType.undo,t,this)}},{key:"_fireRedoEvent",value:function(e){var t=new M.SketchEditorEvent({type:c.SketchEditorEventType.redo,feature:e,geometry:e.geometry});this.fire(c.SketchEditorEventType.redo,t,this)}},{key:"_fireRemoveEvent",value:function(e){var t=new M.SketchEditorEvent({type:c.SketchEditorEventType.remove,feature:e,geometry:e.geometry});this.fire(c.SketchEditorEventType.remove,t,this)}},{key:"_fireCancelDrawEvent",value:function(){var e=new M.SketchEditorEvent({type:c.SketchEditorEventType.create,eventInfo:null,state:c.SketchEditorState.cancel});this.fire(c.SketchEditorEventType.create,e,self)}},{key:"getGeometry",value:function(){return this._drawTool?this._drawTool.sketchStage.entityGraphic.geometry:null}},{key:"setSnapOption",value:function(e){this.snapOption=(0,i.default)(this.snapOption,e),this._sketchSnappingTool.setSnapOption(e)}},{key:"getSnapOption",value:function(){return this.snapOption}},{key:"setSnapAndReferGeometries",value:function(e){this.snapAndReferGeometries=e,this._drawTool&&this._drawTool.setSnapAndReferGeometries()}},{key:"getSnapAndReferGeometries",value:function(){return this.snapAndReferGeometries}},{key:"_bindHit",value:function(){}}]),t}(c.Evented);(0,n.default)(T.prototype,{editable:{get:function(){return this._editable},set:function(e){this._editable=e}},sketchDataType:{get:function(){return this._sketchDataType},set:function(e){this._sketchDataType=e}}}),t.default=T},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(10)),i=g(r(3)),o=g(r(0)),a=g(r(2)),s=g(r(4)),u=g(r(5)),l=r(8),c=r(9),h=g(r(38)),f=g(r(37)),d=g(r(55)),p=g(r(36)),y=r(1);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchPolylineDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=!1,o=null,a=[],s=[];this.vertexNum=0;var u=[];this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var h=this._getInteractiveDom(),d=this.extensionOptions&&this.extensionOptions.vertexNumber?this.extensionOptions.vertexNumber:null;this._setInitSnap(),this._fireStartDrawEvent();var p=function n(i){if(i&&i.x&&i.y){e._stopInitSnap(),clearTimeout(null);var a={x:i.x,y:i.y};(new Date).getTime(),e._editMode=l.SketchEditMode.DRAWING;var h;h=e._snapPoint?e._snapPoint:e.view.toMap({x:a.x,y:a.y});var p=e.vertexNum+1;if(1===p)s=[h.coordinates],(o=e._getFeature()).geometry.coordinates=[s[0],s[0]];else if(2===p){var g=o.geometry.coordinates[0];if(g&&g[0]===h.coordinates[0]&&g[1]===h.coordinates[1])return y.Log.info("相邻两顶点重复!");s=[o.geometry.coordinates[0],h.coordinates],o.geometry.coordinates=s,e._polylineGeometry=o}else{var m=(s=o.geometry.coordinates)[s.length-2];if(m&&m[0]===h.coordinates[0]&&m[1]===h.coordinates[1])return y.Log.info("相邻两顶点重复!");if(s[s.length-1]=h.coordinates,e._sketchEditor.isSimple){var v=new c.LineString({coordinates:s,spatialReference:e._spatialReference,extensionOptions:{arcType:e.arcType}});if(!c.GeometryEngine.isSimple(v))return e._fireUnsimpleDraw(),y.Log.info("该坐标构成的几何不符合拓扑规范!")}o.geometry.coordinates=s}if(e.vertexNum=p,d&&p>=d)e.view.off(l.ViewEventType.immediateClick,n);else{var _=new f.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});_.addFeature(h,void 0,void 0,e.sketchInnerLayer),e._drawTools.push(_);var S=_.sketchStage.entityGraphic;e.sketchStage.entityGraphic=o,e.sketchStage.vertexGraphics.push(S),o&&(r=t=!0),s.length>1&&u.push(function(e,t){return(e[1]-t[1])/(e[0]-t[0])}(s[s.length-1],s[s.length-2])),e.fire("drawn-vertex",{geometry:_.sketchStage.entityGraphic.geometry,feature:_.sketchStage.entityGraphic},self),e._fireDrawVertexEvent(o),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode)}}},g=!0,m=function(u){if(u&&u.x&&u.y&&t&&!i){clearTimeout(null),i=!0,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var l={x:u.x,y:u.y},c=e.view.toMap({x:l.x,y:l.y});o=e.sketchStage.entityGraphic;var f=d&&e.vertexNum===d?e.vertexNum-1:e.vertexNum;s=1===f?[o.geometry.coordinates[0]]:o.geometry.coordinates.slice(0,o.geometry.coordinates.length-1),f>=1&&(e._snapPoint=e.getSnapGraphics(c,s)),e._snapPoint&&(c=e._snapPoint),e._currentMovePoint=c,1===f?o.geometry.coordinates[1]=c.coordinates:f>1&&(r?(o.geometry.coordinates.push(c.coordinates),r=!1):o.geometry.coordinates[o.geometry.coordinates.length-1]=c.coordinates),o.geometry._pixelCoords=a,o.geometry.coordinates=JSON.parse((0,n.default)(o.geometry.coordinates)),g&&(e._addFeatureToLayer(o,e.layer),g=!1),i=!1;var p=e._getInteractiveDom();h=h.concat(p),e._removeInteractiveStyle(p),e._fireChangeCursorEvent(o)}},v=function(){return clearTimeout(null),clearTimeout(null),(o=e.sketchStage.entityGraphic)&&e._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(o.geometry)?(e._fireUnsimpleDraw(),y.Log.info("该坐标构成的几何不符合拓扑规范!")):e.vertexNum<2&&e.sketchStage.entityGraphic?y.Log.info("线几何顶点少于两个,不符合规范!"):(s=[],a=[],e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=l.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(h),e.fire("drawn",{geometry:o.geometry,feature:o},self),e._fireStopDrawEvent(o),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.vertexNum=0,e.sketchStage.vertexGraphics=[],e._currentMovePoint=void 0,e.undoRedoManager._initDrawProcess(),void setTimeout(function(){e.view._mapActionControl("double-click-zoom",!0),e.view._mapActionControl("video-map-active",!1)},0))};this._drawEventHandlers.push(p,m,v),this.view.on(l.ViewEventType.immediateClick,p),this.view.on(l.ViewEventType.pointerMove,m),this.view.on(l.ViewEventType.doubleClick,v)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[1,1]]);var t=new c.LineString({coordinates:e,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),r=this.sketchStyle.lineStyle.clone();return new l.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e,t){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===l.SketchEditMode.NONE?this._editMode=l.SketchEditMode.EDITGRAGIC:this._editMode===l.SketchEditMode.EDITVERTEX&&(this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=l.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===l.SketchEditMode.EDITGRAGIC&&this.startPanGraphics(e,t)}},{key:"selectFeature",value:function(e){var t=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var r=e.geometry.extent,n=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({fillStyle:this.sketchStyle._selectBoxStyle,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate,_parent:this});this._drawTools.push(n),n.addFeature([[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]],void 0,void 0,this.sketchInnerLayer),this.sketchStage.selectBoxGraphics=[n.sketchStage.entityGraphic];var i=[];if(i=[{point:new c.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new c.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new c.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new c.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var o=[{point:new c.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new c.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new c.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new c.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];i=i.concat(o)}var a=[],s=[];i.forEach(function(e){var r=new f.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},arcType:t.arcType,_getCenterCoordinate:t._getCenterCoordinate,elevationInfo:t.elevationInfo,_parent:t});t._drawTools.push(r),r.addFeature(e.point,t.sketchStage,{direction:e.direction,type:e.type},t.sketchInnerLayer),a.push(r),s.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=s,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(a),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this._editMode),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||(this._mapClickEvent=function(){t._preventFirstCall?t._preventFirstCall=void 0:(t.sketchStage.selectBoxGraphics.concat(t.sketchStage.selectBoxVertexGraphics).concat(t.sketchStage.vertexGraphics).concat(t.sketchStage.midVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t.sketchInnerLayer)}),t.view.off(l.ViewEventType.immediateClick,t._mapClickEvent),t.view._mapActionControl("drag-pan",!0),t._mapClickEvent=null,t.fire("selected",{isSelected:!1},self),t._fireRemoveSelectEvent(t.sketchStage.entityGraphic),t.sketchStage.selectBoxGraphics=[],t.sketchStage.selectBoxVertexGraphics=[],t.sketchStage.vertexGraphics=[],t.sketchStage.midVertexGraphics=[],t._editMode=l.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(l.ViewEventType.immediateClick,this._mapClickEvent))}}},{key:"selectFeatureVertex",value:function(e){var t=this;this._clearEditGraphics(1);var r=[],n=[];e.geometry.coordinates.forEach(function(i,o){var a=new f.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),s=new c.Point({coordinates:i,spatialReference:t._spatialReference});if(t._drawTools.push(a),a.addFeature(s,void 0,{vertexIndex:o},t.sketchInnerLayer),r.push(a),t.sketchStage.vertexGraphics.push(a.sketchStage.entityGraphic),o>0){var u=new f.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(u);var l,h=e.geometry.coordinates[o-1],d=t._getCenterCoordinate(i,h);l=new c.Point({coordinates:d,spatialReference:t._spatialReference}),t._drawTools.push(u),u.addFeature(l,void 0,{vertexIndex:o-1,type:"midVertex"},t.sketchInnerLayer),t.sketchStage.midVertexGraphics.push(u.sketchStage.entityGraphic)}});var i=r.concat(n);this._otherDrawTools=this._otherDrawTools?this._otherDrawTools.concat(i):i,this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this.undoRedoManager.addProcess)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates.forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new c.LineString({coordinates:r,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates,i=JSON.parse((0,n.default)(r));i[e.vertexIndex]=e.movePoint.coordinates;var o=new c.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(o))return this._fireUnsimpleUpdate(),y.Log.info("该坐标构成的几何不符合拓扑规范!");if(t.geometry=o,this._otherDrawTools){if(0===e.vertexIndex){var a=this.sketchStage.midVertexGraphics[e.vertexIndex],s=i[e.vertexIndex],u=i[e.vertexIndex+1];a.geometry.coordinates=this._getCenterCoordinate(s,u),a.geometry=new c.Point({coordinates:a.geometry.coordinates,spatialReference:this._spatialReference})}else if(e.vertexIndex===i.length-1){var l=this.sketchStage.midVertexGraphics[e.vertexIndex-1],h=i[e.vertexIndex-1],f=i[e.vertexIndex];l.geometry.coordinates=this._getCenterCoordinate(h,f),l.geometry=new c.Point({coordinates:l.geometry.coordinates,spatialReference:this._spatialReference})}else{var d=this.sketchStage.midVertexGraphics[e.vertexIndex],p=this.sketchStage.midVertexGraphics[e.vertexIndex-1],g=i[e.vertexIndex-1],m=i[e.vertexIndex],v=i[e.vertexIndex+1];d.geometry.coordinates=this._getCenterCoordinate(v,m),p.geometry.coordinates=this._getCenterCoordinate(g,m)}this.sketchStage.vertexGraphics[e.vertexIndex].geometry.coordinates=i[e.vertexIndex]}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates.splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new c.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})),"moveMidVertex"===e.action){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));r[e.vertexIndex+1]=e.movePoint.coordinates;var i=new c.LineString({coordinates:r,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(i))return this._fireUnsimpleUpdate(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry.coordinates=r,this.sketchStage.midVertexGraphics[e.vertexIndex].geometry.coordinates=e.movePoint.coordinates}if("addVertex"===e.action){var o=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),a=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(a),a.addFeature(e.point,void 0,void 0,this.sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,a.sketchStage.entityGraphic);var s,u=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex];this._getHight;var l=this._getCenterCoordinate(u,e.point.coordinates);s=new c.Point({coordinates:l,spatialReference:this._spatialReference});var h=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(h),h.addFeature(s,void 0,{type:"midVertex"},this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,h.sketchStage.entityGraphic);var d,g=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+2];this._getHight;var m=this._getCenterCoordinate(g,e.point.coordinates);d=new c.Point({coordinates:m,spatialReference:this._spatialReference});var v=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(v),v.addFeature(d,void 0,{type:"midVertex"},this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,v.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===o&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t.sketchInnerLayer)}),this._otherDrawTools.push(a),this._otherDrawTools.push(h),this._otherDrawTools.push(v)}}},{key:"addMidVertex",value:function(e,t){var r=new f.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){var r=null;if(--t>-1&&t<=this.sketchStage.midVertexGraphics.length+1){var i=[];if(t<=this.sketchStage.entityGraphic.geometry.coordinates.length-1){if((i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates))).splice(t,0,e.coordinates),r=new c.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var o=void 0,a=void 0,s=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var u=[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],this._getCenterCoordinate([s.xmax,s.ymax],[s.xmin,s.ymax]),this._getCenterCoordinate([s.xmax,s.ymin],[s.xmin,s.ymin]),this._getCenterCoordinate([s.xmax,s.ymax],[s.xmax,s.ymin]),this._getCenterCoordinate([s.xmin,s.ymax],[s.xmin,s.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=u[t]})}if(this.sketchStage.vertexGraphics.length>0&&(o=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(o),o.addFeatureByGeometry(e,void 0,void 0,this.sketchInnerLayer),this.sketchStage.vertexGraphics.splice(t,0,o.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var l=-1,h=-1,d=null,g=null;if(0===t?(h=0,g=this.sketchStage.entityGraphic.geometry.coordinates[1]):t===this.sketchStage.midVertexGraphics.length+1?(h=this.sketchStage.midVertexGraphics.length-2,g=this.sketchStage.entityGraphic.geometry.coordinates[h]):(l=t-1,h=t+1,d=this.sketchStage.entityGraphic.geometry.coordinates[l],g=this.sketchStage.entityGraphic.geometry.coordinates[h]),l>-1){var m=new c.Point({coordinates:this._getCenterCoordinate(d,e.coordinates),spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[l].geometry.coordinates=m.coordinates}if(h>-1){var v=new c.Point({coordinates:this._getCenterCoordinate(g,e.coordinates),spatialReference:this._spatialReference});a=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(a),a.addFeatureByGeometry(v,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,a.sketchStage.entityGraphic)}this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}o&&this._otherDrawTools.push(o),a&&this._otherDrawTools.push(a),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireAddVertexEventByFun(o.sketchStage.entityGraphic,this._parent)}return r}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){var i=this.sketchStage.entityGraphic.geometry.coordinates.length;if(t<i){var o=this.sketchStage.entityGraphic,a=JSON.parse((0,n.default)(o.geometry.coordinates));if(this.currentVertexIndex=t,r=e.coordinates,o.geometry=new c.LineString({coordinates:o.geometry.coordinates,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var s=o.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var u=[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],this._getCenterCoordinate([s.xmax,s.ymax],[s.xmin,s.ymax]),this._getCenterCoordinate([s.xmax,s.ymin],[s.xmin,s.ymin]),this._getCenterCoordinate([s.xmax,s.ymax],[s.xmax,s.ymin]),this._getCenterCoordinate([s.xmin,s.ymax],[s.xmin,s.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=u[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var l=a[t-1],h=a[t],f=a[t+1],d=-1,p=-1;if(0===t?d=t:t===i-1?p=t-1:(d=t,p=t-1),d>-1){var g=this.sketchStage.midVertexGraphics[d];g.geometry.coordinates=this._getCenterCoordinate(f,h),g.geometry=new c.Point({coordinates:g.geometry.coordinates,spatialReference:this._spatialReference})}if(p>-1){var m=this.sketchStage.midVertexGraphics[p];m.geometry.coordinates=this._getCenterCoordinate(l,h),m.geometry=new c.Point({coordinates:m.geometry.coordinates,spatialReference:this._spatialReference})}}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireUpdateVertexByFun(this.sketchStage.entityGraphic,this._parent)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates.length;if(r>2&&e<r){var i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));if(i.splice(e,1),t=new c.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(t))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=t;var o=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],this._getCenterCoordinate([o.xmax,o.ymax],[o.xmin,o.ymax]),this._getCenterCoordinate([o.xmax,o.ymin],[o.xmin,o.ymin]),this._getCenterCoordinate([o.xmax,o.ymax],[o.xmax,o.ymin]),this._getCenterCoordinate([o.xmin,o.ymax],[o.xmin,o.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0){var s=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.vertexGraphics[e],this.sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==s)return e})}if(this.sketchStage.midVertexGraphics.length>0){var u=[],l=-1,h=-1;0===e?h=0:e===r-1?h=e-1:(u=[(t.coordinates[e-1][0]+t.coordinates[e][0])/2,(t.coordinates[e-1][1]+t.coordinates[e][1])/2],l=e-1,h=e),l>-1&&(this.sketchStage.midVertexGraphics[l].geometry=new c.Point({coordinates:u,spatialReference:this._spatialReference}));var f=this.sketchStage.vertexGraphics[h].id.toString();this._removeFeatureFromLayer(this.sketchStage.midVertexGraphics[h],this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(h,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==f)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireRemoveVertexByFun(this.sketchStage.entityGraphic,this._parent)}return t}}]),t}(h.default);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(3)),i=g(r(0)),o=g(r(2)),a=g(r(4)),s=g(r(5)),u=r(8),l=r(9),c=g(r(38)),h=g(r(37)),f=g(r(55)),d=g(r(36)),p=g(r(63)),y=r(1);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type="sketchCircleDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._initEvent(),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("circleVertexScale",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=u.SketchEditMode.DRAWING,this.view._mapActionControl("drag-pan",!1),this.view._mapActionControl("video-map-active",!0);var t=null,r=0,n=null;this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var i=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var o=function(o){if(clearTimeout(null),e._stopInitSnap(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),0===o.button)if("start"===o.action)n=e._snapPoint?e._snapPoint:n||e.view.toMap(o.origin),e._fireDrawVertexEvent();else if("update"===o.action){var a=e.view.toMap({x:o.x,y:o.y});e._snapPoint=e.getSnapGraphics(a),e._snapPoint&&(a=e._snapPoint),r=p.default.planarLength(new l.LineString({coordinates:[n.coordinates,a.coordinates],spatialReference:e._spatialReference})),t?t.geometry.radius=r:(t=e._getFeature(n,r),e._addFeatureToLayer(t,e.layer),e.sketchStage.entityGraphic=t);var s=e._getInteractiveDom();i=i.concat(s),e._removeInteractiveStyle(s),e._fireChangeCursorEvent(t)}else"end"===o.action&&(e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),n=null,e._editMode=u.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(i),e.fire("drawn",{geometry:t.geometry,feature:t},self),e._fireDrawVertexEvent(t),e._fireStopDrawEvent(t),e.view._mapActionControl("drag-pan",!0),e.view._mapActionControl("video-map-active",!1))};this._drawEventHandlers.push(o),this.view.on(u.ViewEventType.drag,o)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new u.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e,t){e?e instanceof Array?e=new l.Point({coordinates:e,spatialReference:this._spatialReference}):e instanceof l.Point||(e=new l.Point({coordinates:[0,0],spatialReference:this._spatialReference})):e=new l.Point({coordinates:[0,0],spatialReference:this._spatialReference}),t=void 0!==t?t:0;var r=this._spatialReference.isGeographic?u.RadiusUnit.degrees:u.RadiusUnit.meters,n=new l.Circle({center:e,radius:t,radiusUnit:r,spatialReference:this._spatialReference}),i=this.sketchStyle.fillStyle.clone();return new u.Feature({geometry:n,symbol:i,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===u.SketchEditMode.NONE&&(this._editMode=u.SketchEditMode.EDITGRAGIC),this.selectFeature(e))}},{key:"selectFeature",value:function(e){var t=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var r=e.geometry.extent,n=new f.default({view:this.view,layer:this.layer,sketchStyle:new d.default({fillStyle:this.sketchStyle._selectBoxStyle,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(n),n.addFeature([[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]],void 0,void 0,this.sketchInnerLayer),this.sketchStage.selectBoxGraphics=[n.sketchStage.entityGraphic];var i=[];if(this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var o=[{point:new l.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"circleVertex"}];i=i.concat(o)}var a=[],s=[];i.forEach(function(e){var r=new h.default({view:t.view,layer:t.layer,sketchStyle:new d.default({vertexStyle:t.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});t._drawTools.push(r),r.addFeature(e.point,t.sketchStage,{direction:e.direction,type:e.type},t.sketchInnerLayer),a.push(r),s.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=s,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(a),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||(this._mapClickEvent=function(){t._preventFirstCall?t._preventFirstCall=void 0:(t.sketchStage.selectBoxGraphics.concat(t.sketchStage.selectBoxVertexGraphics).concat(t.sketchStage.vertexGraphics).concat(t.sketchStage.midVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t.sketchInnerLayer)}),t.view.off(u.ViewEventType.immediateClick,t._mapClickEvent),t.view._mapActionControl("drag-pan",!0),t._mapClickEvent=null,t.fire("selected",{isSelected:!1},self),t._fireRemoveSelectEvent(t.sketchStage.entityGraphic),t.sketchStage.selectBoxGraphics=[],t.sketchStage.selectBoxVertexGraphics=[],t.sketchStage.vertexGraphics=[],t.sketchStage.midVertexGraphics=[],t._editMode=u.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(u.ViewEventType.immediateClick,this._mapClickEvent))}}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"circleVertexScale"===e.type&&this._handlerCircleVertexScaleEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this.sketchStage.entityGraphic.geometry.center;this.sketchStage.entityGraphic.geometry.center=this.getPanCoordinates(t,e.deltaPosition.x,e.deltaPosition.y),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerCircleVertexScaleEvent",value:function(e){if("scale"===e.action){var t=p.default.planarLength(new l.LineString({coordinates:[this.sketchStage.entityGraphic.geometry.center,[e.movePoint.coordinates[0],this.sketchStage.entityGraphic.geometry.center[1]]],spatialReference:this._spatialReference})),r=this._spatialReference.isGeographic?u.RadiusUnit.degrees:u.RadiusUnit.meters,n=new l.Circle({center:this.sketchStage.entityGraphic.geometry.center,radius:t,radiusUnit:r,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){if(r.attributes)if("e"===r.attributes.direction){var n=e._sketchEditor._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]);r.geometry.coordinates[0]===n[0]&&r.geometry.coordinates[1]===n[1]&&(r.attributes.direction="w")}else if("w"===r.attributes.direction){var i=e._sketchEditor._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]);r.geometry.coordinates[0]===i[0]&&r.geometry.coordinates[1]===i[1]&&(r.attributes.direction="e")}})}}]),t}(c.default);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(3)),i=y(r(0)),o=y(r(2)),a=y(r(4)),s=y(r(5)),u=r(8),l=r(9),c=y(r(38)),h=y(r(37)),f=y(r(55)),d=y(r(36)),p=r(1);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type="sketchExtentDrawTool",r._initEvent(),r._drawTools=[r],r._otherDrawTools=[],r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=u.SketchEditMode.DRAWING,this.view._mapActionControl("drag-pan",!1),this.view._mapActionControl("video-map-active",!0);var t=null,r=null;this.cursorStyle=this.view.cursor,(0,p.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var n=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var i=function(i){if(clearTimeout(null),e.view.off(u.ViewEventType.pointerMove,e._handlerInitMouseMove),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),0===i.button)if("start"===i.action)r=e._snapPoint?e._snapPoint:r||e.view.toMap(i.origin),e._fireDrawVertexEvent();else if("update"===i.action){var o=e.view.toMap({x:i.x,y:i.y});e._snapPoint=e.getSnapGraphics(o),e._snapPoint&&(o=e._snapPoint);var a=Math.min(r.coordinates[0],o.coordinates[0]),s=Math.min(r.coordinates[1],o.coordinates[1]),l=Math.max(r.coordinates[0],o.coordinates[0]),c=Math.max(r.coordinates[1],o.coordinates[1]);t?(t.geometry.xmin=a,t.geometry.ymin=s,t.geometry.xmax=l,t.geometry.ymax=c):(t=e._getFeature(a,s,l,c),e._addFeatureToLayer(t,e.layer),e.sketchStage.entityGraphic=t);var h=e._getInteractiveDom();n=n.concat(h),e._removeInteractiveStyle(h),e._fireChangeCursorEvent(t)}else"end"===i.action&&(e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=u.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(n),e.fire("drawn",{geometry:t.geometry,feature:t},self),e._fireDrawVertexEvent(t),e._fireStopDrawEvent(t),e.view._mapActionControl("drag-pan",!0),e.view._mapActionControl("video-map-active",!1))};this._drawEventHandlers.push(i),this.view.on(u.ViewEventType.drag,i)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new u.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e,t,r,n){e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:0,n=void 0!==n?n:0;var i=new l.Extent({xmin:e,ymin:t,xmax:r,ymax:n,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),o=this.sketchStyle.fillStyle.clone();return new u.Feature({geometry:i,symbol:o,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===u.SketchEditMode.NONE?this._editMode=u.SketchEditMode.EDITGRAGIC:this._editMode===u.SketchEditMode.EDITVERTEX&&(this.view.off(u.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=u.SketchEditMode.EDITGRAGIC),this.selectFeature(e))}},{key:"selectFeature",value:function(e){var t=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var r=e.geometry,n=new f.default({view:this.view,layer:this.layer,sketchStyle:new d.default({fillStyle:this.sketchStyle._selectBoxStyle,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate,_parent:this});this._drawTools.push(n),n.addFeature([[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]],void 0,void 0,this.sketchInnerLayer),this.sketchStage.selectBoxGraphics=[n.sketchStage.entityGraphic];var i=[];if(i=[{point:new l.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new l.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new l.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new l.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var o=[{point:new l.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new l.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new l.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new l.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];i=i.concat(o)}var a=[],s=[];i.forEach(function(e){var r=new h.default({view:t.view,layer:t.layer,sketchStyle:new d.default({vertexStyle:t.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});t._drawTools.push(r),r.addFeature(e.point,t.sketchStage,{direction:e.direction,type:e.type},t.sketchInnerLayer),a.push(r),s.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=s,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(a),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||(this._mapClickEvent=function(){t._preventFirstCall?t._preventFirstCall=void 0:(t.sketchStage.selectBoxGraphics.concat(t.sketchStage.selectBoxVertexGraphics).concat(t.sketchStage.vertexGraphics).concat(t.sketchStage.midVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t.sketchInnerLayer)}),t.view.off(u.ViewEventType.immediateClick,t._mapClickEvent),t.view._mapActionControl("drag-pan",!0),t._mapClickEvent=null,t.fire("selected",{isSelected:!1},self),t._fireRemoveSelectEvent(t.sketchStage.entityGraphic),t.sketchStage.selectBoxGraphics=[],t.sketchStage.selectBoxVertexGraphics=[],t.sketchStage.vertexGraphics=[],t.sketchStage.midVertexGraphics=[],t._editMode=u.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(u.ViewEventType.immediateClick,this._mapClickEvent))}}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type&&this._handlerMidVertexScaleEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this.sketchStage.entityGraphic.geometry;t.xmin+=e.deltaPosition.x,t.ymin+=e.deltaPosition.y,t.xmax+=e.deltaPosition.x,t.ymax+=e.deltaPosition.y,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t=this.sketchStage.entityGraphic.geometry;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=[[t.xmin,t.ymin],[t.xmax,t.ymax]];this.sketchStage.entityGraphic.attributes.lastCoordinates=r}this.sketchStage.entityGraphic.attributes=this.sketchStage.entityGraphic.attributes?this.sketchStage.entityGraphic.attributes:{};var n=this.getScaleCoordinates([[t.xmin,t.ymin],[t.xmax,t.ymax]],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t.xmin=n[0][0],t.ymin=n[0][1],t.xmax=n[1][0],t.ymax=n[1][1],this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}},{key:"_handlerMidVertexScaleEvent",value:function(e){if("scale"===e.action){var t=this.sketchStage.entityGraphic.geometry;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=[[t.xmin,t.ymin],[t.xmax,t.ymax]];this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getMidScaleCoordinates([[t.xmin,t.ymin],[t.xmax,t.ymax]],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t.xmin=n[0][0],t.ymin=n[0][1],t.xmax=n[1][0],t.ymax=n[1][1],this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}}]),t}(c.default);t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(10)),i=g(r(3)),o=g(r(0)),a=g(r(2)),s=g(r(4)),u=g(r(5)),l=r(8),c=r(9),h=g(r(38)),f=g(r(37)),d=g(r(55)),p=g(r(36)),y=r(1);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchFreehandPolylineDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=null,o=[],a=[];this.vertexNum=0;var s=[],u="";this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var c=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var h=function r(n){if(n&&n.x&&n.y){e._stopInitSnap(),clearTimeout(null),e._editMode=l.SketchEditMode.DRAWING;var o,c={x:n.x,y:n.y};o=e._snapPoint?e._snapPoint:e.view.toMap({x:c.x,y:c.y}),e.vertexNum++,1===e.vertexNum?(a=[o.coordinates],(i=e._getFeature()).geometry.coordinates=[a[0],a[0]]):2===e.vertexNum?(a=[i.geometry.coordinates[0],o.coordinates],i.geometry.coordinates=a):((a=i.geometry.coordinates)[a.length-1]=o.coordinates,i.geometry.coordinates=a),"move"===u&&a[a.length-1][0]===a[a.length-2][0]&&a[a.length-1][1]===a[a.length-2][1]&&a.splice(a.length-1);var h=new f.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});h.addFeature(o,void 0,void 0,e.sketchInnerLayer);var d=h.sketchStage.entityGraphic;e.sketchStage.entityGraphic=i,e.sketchStage.vertexGraphics.push(d),t=!0,a.length>1&&s.push(function(e,t){return(e[1]-t[1])/(e[0]-t[0])}(a[a.length-1],a[a.length-2])),u="click",e.fire("drawn-vertex",{geometry:h.sketchStage.entityGraphic.geometry,feature:h.sketchStage.entityGraphic},self),e.view.off(l.ViewEventType.immediateClick,r)}},d=!0,p=function(s){if(s&&s.x&&s.y&&t&&!r){clearTimeout(null),r=!0,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var l={x:s.x,y:s.y},h=e.view.toMap({x:l.x,y:l.y});e.vertexNum>0&&(e._snapPoint=e.getSnapGraphics(h,[i.geometry.coordinates[0]])),e._snapPoint&&(h=e._snapPoint),e.vertexNum,a.push(h.coordinates),i.geometry.coordinates=a,e.vertexNum++,e.sketchStage.entityGraphic=i,i.geometry._pixelCoords=o,i.geometry.coordinates=JSON.parse((0,n.default)(a)),d&&(e._addFeatureToLayer(i,e.layer),d=!1),r=!1,u="move";var f=e._getInteractiveDom();c=c.concat(f),e._removeInteractiveStyle(f),e._fireDrawVertexEvent(i)}},g=function(){clearTimeout(null),clearTimeout(null),a=[],o=[],e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=l.SketchEditMode.NONE,r=!1,t=!1,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(c),e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.vertexGraphics=[],setTimeout(function(){e.view._mapActionControl("double-click-zoom",!0),e.view._mapActionControl("video-map-active",!1)},0),u="double-click"};this._drawEventHandlers.push(h,p,g),this.view.on(l.ViewEventType.immediateClick,h),this.view.on(l.ViewEventType.pointerMove,this.debounce(p,5)),this.view.on(l.ViewEventType.doubleClick,g)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[1,1]]);var t=new c.LineString({coordinates:e,spatialReference:this._spatialReference}),r=this.sketchStyle.lineStyle.clone();return new l.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e,t){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===l.SketchEditMode.NONE?this._editMode=l.SketchEditMode.EDITGRAGIC:this._editMode===l.SketchEditMode.EDITVERTEX&&(this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=l.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===l.SketchEditMode.EDITGRAGIC&&this.startPanGraphics(e,t)}},{key:"selectFeature",value:function(e){var t=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var r=e.geometry.extent,n=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({fillStyle:this.sketchStyle._selectBoxStyle,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(n),n.addFeature([[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]],void 0,void 0,this.sketchInnerLayer),this.sketchStage.selectBoxGraphics=[n.sketchStage.entityGraphic];var i=[];if(i=[{point:new c.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new c.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new c.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new c.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var o=[{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];i=i.concat(o)}var a=[],s=[];i.forEach(function(e){var r=new f.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});t._drawTools.push(r),r.addFeature(e.point,t.sketchStage,{direction:e.direction,type:e.type},t.sketchInnerLayer),a.push(r),s.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=s,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(a),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||(this._mapClickEvent=function(){t._preventFirstCall?t._preventFirstCall=void 0:(t.sketchStage.selectBoxGraphics.concat(t.sketchStage.selectBoxVertexGraphics).concat(t.sketchStage.vertexGraphics).concat(t.sketchStage.midVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t.sketchInnerLayer)}),t.view.off(l.ViewEventType.immediateClick,t._mapClickEvent),t.view._mapActionControl("drag-pan",!0),t._mapClickEvent=null,t.fire("selected",{isSelected:!1},self),t.sketchStage.selectBoxGraphics=[],t.sketchStage.selectBoxVertexGraphics=[],t.sketchStage.vertexGraphics=[],t.sketchStage.midVertexGraphics=[],t._editMode=l.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(l.ViewEventType.immediateClick,this._mapClickEvent))}}},{key:"selectFeatureVertex",value:function(e){var t=this;this._clearEditGraphics(1);var r=[],n=[];e.geometry.coordinates.forEach(function(i,o){var a=new f.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),s=new c.Point({coordinates:i,spatialReference:t._spatialReference});if(t._drawTools.push(a),a.addFeature(s,void 0,{vertexIndex:o}),r.push(a),t.sketchStage.vertexGraphics.push(a.sketchStage.entityGraphic),o>0){var u=new f.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(u);var l,h=e.geometry.coordinates[o-1];l=i.length>2?new c.Point({coordinates:[(i[0]+h[0])/2,(i[1]+h[1])/2,(i[2]+h[2])/2],spatialReference:t._spatialReference}):new c.Point({coordinates:[(i[0]+h[0])/2,(i[1]+h[1])/2],spatialReference:t._spatialReference}),t._drawTools.push(u),u.addFeature(l,void 0,{vertexIndex:o-1,type:"midVertex"}),t.sketchStage.midVertexGraphics.push(u.sketchStage.entityGraphic)}});var i=r.concat(n);this._otherDrawTools=this._otherDrawTools?this._otherDrawTools.concat(i):i,this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage)}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=t.mapPoint.coordinates[0],o=t.mapPoint.coordinates[1],a=null;a=l.Projection.project(new c.Point({coordinates:[i,o]}),this._spatialReference);var s=!0,u=setTimeout(function(){s=!1},200);this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent);var h=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==l.SketchEditMode.EDITGRAGIC&&!s){clearTimeout(null),n=!0;var i={x:t.x,y:t.y},o=r.view.toMap({x:i.x,y:i.y}),u=o.coordinates[0]-a.coordinates[0],h=o.coordinates[1]-a.coordinates[1];if(0!==u||0!==h){var f=[];e.geometry.coordinates[0].forEach(function(e){f.push(r.getPanCoordinates(e,u,h))});var d=new c.Polygon({coordinates:[f],spatialReference:r._spatialReference});a=o,r._dispatchEvent("pan",{deltaPosition:{x:u,y:h}},r),r.updateFeature(d,e),n=!1}else n=!1}},f=function e(){if(!r._editMode!==l.SketchEditMode.EDITGRAGIC&&r._startPan){if(s&&r._parent&&r._parent._editMode===l.SketchEditMode.EDITGRAGIC)return r._parent._editMode=l.SketchEditMode.EDITVERTEX,clearTimeout(u),r._parent.selectFeatureVertex(r._parent.sketchStage.entityGraphic),r._parent&&r._parent._mapClickEvent&&r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent),r._startPan=!1,r.view.off(l.ViewEventType.pointerMove,h),void r.view.off(l.ViewEventType.pointerUp,e);r._editMode=l.SketchEditMode.NONE,r._startPan=!1,r._enableMapDrag&&r._enableMapDrag(),r.view.off(l.ViewEventType.pointerMove,h),r.view.off(l.ViewEventType.pointerUp,e),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&(r._parent._preventFirstCall=!0,r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent))}};this._hitTestEventHandlers.push(h),this._hitTestEventHandlers.push(f),this.view.on(l.ViewEventType.pointerUp,f),this.view.on(l.ViewEventType.pointerMove,h)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates.forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new c.LineString({coordinates:r,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.LineString({coordinates:i,spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.LineString({coordinates:i,spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates;if(t.geometry.coordinates[e.vertexIndex]=e.movePoint.coordinates,t.geometry=new c.LineString({coordinates:t.geometry.coordinates,spatialReference:this._spatialReference}),this._otherDrawTools)if(0===e.vertexIndex){var n=this.sketchStage.midVertexGraphics[e.vertexIndex],i=r[e.vertexIndex],o=r[e.vertexIndex+1];n.geometry.coordinates=[(o[0]+i[0])/2,(o[1]+i[1])/2],n.geometry=new c.Point({coordinates:n.geometry.coordinates,spatialReference:this._spatialReference})}else if(e.vertexIndex===r.length-1){var a=this.sketchStage.midVertexGraphics[e.vertexIndex-1],s=r[e.vertexIndex-1],u=r[e.vertexIndex];a.geometry.coordinates=[(s[0]+u[0])/2,(s[1]+u[1])/2],a.geometry=new c.Point({coordinates:a.geometry.coordinates,spatialReference:this._spatialReference})}else{var l=this.sketchStage.midVertexGraphics[e.vertexIndex],h=this.sketchStage.midVertexGraphics[e.vertexIndex-1],f=r[e.vertexIndex-1],d=r[e.vertexIndex],p=r[e.vertexIndex+1];l.geometry.coordinates=[(p[0]+d[0])/2,(p[1]+d[1])/2],l.geometry=new c.Point({coordinates:l.geometry.coordinates,spatialReference:this._spatialReference}),h.geometry.coordinates=[(f[0]+d[0])/2,(f[1]+d[1])/2],h.geometry=new c.Point({coordinates:h.geometry.coordinates,spatialReference:this._spatialReference})}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates.splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new c.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"moveMidVertex"===e.action&&(this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+1]=e.movePoint.coordinates,this.sketchStage.entityGraphic.geometry=new c.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"addVertex"===e.action){var r=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),n=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(n),n.addFeature(e.point),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,n.sketchStage.entityGraphic);var i,o=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex],a=null;this._getHight&&(a=0),i=a?new c.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2,a],spatialReference:this._spatialReference}):new c.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var s=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(s),s.addFeature(i,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,s.sketchStage.entityGraphic);var u,l=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+2],h=null;this._getHight&&(h=0),u=h?new c.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2,h],spatialReference:this._spatialReference}):new c.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var d=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(d),d.addFeature(u,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,d.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===r&&t._removeFeatureFromMap(e.sketchStage.entityGraphic)}),this._otherDrawTools.push(n),this._otherDrawTools.push(s),this._otherDrawTools.push(d)}}},{key:"addMidVertex",value:function(e,t){var r=new f.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){if(--t>-1&&t<=this.sketchStage.midVertexGraphics.length+1){var r=[];if(t<=this.sketchStage.entityGraphic.geometry.coordinates.length-1){(r=this.sketchStage.entityGraphic.geometry.coordinates).splice(t,0,e.coordinates),this.sketchStage.entityGraphic.geometry=new c.LineString({coordinates:r,spatialReference:this._spatialReference});var n=void 0,i=void 0,o=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[(o.xmax+o.xmin)/2,o.ymax],[(o.xmax+o.xmin)/2,o.ymin],[o.xmax,(o.ymax+o.ymin)/2],[o.xmin,(o.ymax+o.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0&&(n=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(n),n.addFeatureByGeometry(e),this.sketchStage.vertexGraphics.splice(t,0,n.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var s=-1,u=-1,l=null,h=null;if(0===t?(u=0,h=this.sketchStage.entityGraphic.geometry.coordinates[1]):t===this.sketchStage.midVertexGraphics.length+1?(u=this.sketchStage.midVertexGraphics.length-2,h=this.sketchStage.entityGraphic.geometry.coordinates[u]):(s=t-1,u=t+1,l=this.sketchStage.entityGraphic.geometry.coordinates[s],h=this.sketchStage.entityGraphic.geometry.coordinates[u]),s>-1){var d=new c.Point({coordinates:[(l[0]+e.coordinates[0])/2,(l[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[s].geometry.coordinates=d.coordinates}if(u>-1){var y=new c.Point({coordinates:[(h[0]+e.coordinates[0])/2,(h[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});i=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(i),i.addFeatureByGeometry(y,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,i.sketchStage.entityGraphic)}this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}n&&this._otherDrawTools.push(n),i&&this._otherDrawTools.push(i),this.undoRedoManager.addProcess("update",this.sketchStage)}return null}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){var n=this.sketchStage.entityGraphic.geometry.coordinates.length;if(t<n){var i=this.sketchStage.entityGraphic,o=i.geometry.coordinates;i.geometry.coordinates=o,this.currentVertexIndex=t,o[t]=e.coordinates,i.geometry=new c.LineString({coordinates:i.geometry.coordinates,spatialReference:this._spatialReference}),r=i.geometry,this.sketchStage.entityGraphic.geometry=r;var a=i.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var s=[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[(a.xmax+a.xmin)/2,a.ymax],[(a.xmax+a.xmin)/2,a.ymin],[a.xmax,(a.ymax+a.ymin)/2],[a.xmin,(a.ymax+a.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=s[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var u=o[t-1],l=o[t],h=o[t+1],f=-1,d=-1;if(0===t?f=t:t===n-1?d=t-1:(f=t,d=t-1),f>-1){var p=this.sketchStage.midVertexGraphics[f];p.geometry.coordinates=[(h[0]+l[0])/2,(h[1]+l[1])/2],p.geometry=new c.Point({coordinates:p.geometry.coordinates,spatialReference:this._spatialReference})}if(d>-1){var y=this.sketchStage.midVertexGraphics[d];y.geometry.coordinates=[(u[0]+l[0])/2,(u[1]+l[1])/2],y.geometry=new c.Point({coordinates:y.geometry.coordinates,spatialReference:this._spatialReference})}}}this.undoRedoManager.addProcess("update",this.sketchStage)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates.length;if(r>2&&e<r){var n=this.sketchStage.entityGraphic.geometry.coordinates;n.splice(e,1),t=new c.LineString({coordinates:n,spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t;var i=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[i.xmax,i.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var o=[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[(i.xmax+i.xmin)/2,i.ymax],[(i.xmax+i.xmin)/2,i.ymin],[i.xmax,(i.ymax+i.ymin)/2],[i.xmin,(i.ymax+i.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=o[t]})}if(this.sketchStage.vertexGraphics.length>0){var a=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromMap(this.sketchStage.vertexGraphics[e]),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==a)return e})}if(this.sketchStage.midVertexGraphics.length>0){var s=[],u=-1,l=-1;0===e?l=0:e===r-1?l=e-1:(s=[(t.coordinates[e-1][0]+t.coordinates[e][0])/2,(t.coordinates[e-1][1]+t.coordinates[e][1])/2],u=e-1,l=e),u>-1&&(this.sketchStage.midVertexGraphics[u].geometry=new c.Point({coordinates:s,spatialReference:this._spatialReference}));var h=this.sketchStage.vertexGraphics[l].id.toString();this._removeFeatureFromMap(this.sketchStage.midVertexGraphics[l]),this.sketchStage.midVertexGraphics.splice(l,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==h)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage)}return t}}]),t}(h.default);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(10)),i=g(r(3)),o=g(r(0)),a=g(r(2)),s=g(r(4)),u=g(r(5)),l=r(8),c=r(9),h=g(r(38)),f=g(r(37)),d=g(r(55)),p=g(r(36)),y=r(1);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.type="sketchFreehandPolygonDrawTool",r._initEvent(),r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r.vertexNum=0,r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=null,o=[],a=null,s=[];this.vertexNum=0;var u=null;this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var c=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var h=function r(n){if(n&&n.x&&n.y){e._stopInitSnap(),clearTimeout(null);var o={x:n.x,y:n.y};if(!(a&&u&&o.x===a.x&&o.y===a.y&&(new Date).getTime()-u<200)){a=o,u=(new Date).getTime(),e._editMode=l.SketchEditMode.DRAWING;var c;c=e._snapPoint?e._snapPoint:e.view.toMap({x:o.x,y:o.y}),e.vertexNum++,1===e.vertexNum?(s=[c.coordinates],(i=e._getFeature()).geometry.coordinates=[[s[0],s[0],s[0],s[0]]],t=!1):2===e.vertexNum?s=[i.geometry.coordinates[0][0],i.geometry.coordinates[0][1]]:(s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)).push(c.coordinates),e.sketchStage.entityGraphic=i;var h=new f.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});h.addFeature(c,void 0,void 0,e.sketchInnerLayer),e._drawTools.push(h);var d=h.sketchStage.entityGraphic;e.sketchStage.vertexGraphics.push(d),i&&(t=!0),e.fire("drawn-vertex",{geometry:h.sketchStage.entityGraphic.geometry,feature:h.sketchStage.entityGraphic},self),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode),e.view.off(l.ViewEventType.immediateClick,r)}}},d=!0,p=function(a){if(a&&a.x&&a.y&&t&&!r){clearTimeout(null),r=!0,i=e.sketchStage.entityGraphic,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var u={x:a.x,y:a.y};o[o.length-1]=u;var l=e.view.toMap({x:u.x,y:u.y});1===e.vertexNum?s=[i.geometry.coordinates[0][0]]:2===e.vertexNum?(i.geometry.coordinates[0][2]=l.coordinates,s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)):s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2),e.vertexNum>0&&(e._snapPoint=e.getSnapGraphics(l,[i.geometry.coordinates[0][0]])),e._snapPoint&&(l=e._snapPoint),e._currentMovePoint=l,1===e.vertexNum?(i.geometry.coordinates[0][1]=l.coordinates,i.geometry.coordinates[0][2]=l.coordinates,s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)):2===e.vertexNum?(i.geometry.coordinates[0][2]=l.coordinates,s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-1)):(i.geometry.coordinates[0].splice(i.geometry.coordinates[0].length-1,0,l.coordinates),s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-1)),e.vertexNum++,e.sketchStage.entityGraphic=i,i.geometry.coordinates=[JSON.parse((0,n.default)(i.geometry.coordinates[0]))],d&&(e._addFeatureToLayer(i,e.layer),d=!1),r=!1;var h=e._getInteractiveDom();c=c.concat(h),e._removeInteractiveStyle(h),e._fireDrawVertexEvent(i)}},g=function(){if(clearTimeout(null),clearTimeout(null),!t)return i=null,s=[],void(o=[]);i=e.sketchStage.entityGraphic,s=[],o=[],t=!1,e.vertexNum=0,e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=l.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(c),e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.vertexGraphics=[],e._currentMovePoint=void 0,e.undoRedoManager._initDrawProcess(),setTimeout(function(){e.view._mapActionControl("double-click-zoom",!0),e.view._mapActionControl("video-map-active",!1)},0)};this._drawEventHandlers.push(h,p,g),this.view.on(l.ViewEventType.immediateClick,h),this.view.on(l.ViewEventType.pointerMove,p),this.view.on(l.ViewEventType.doubleClick,g)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[0,0],[0,0],[0,0]]);var t=new c.Polygon({coordinates:[e],spatialReference:this._spatialReference}),r=this.sketchStyle.fillStyle.clone(),n=new l.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo});return n.isShowArea=this.sketchStyle.isShowArea,n.isShowArea&&(n._textStyle=this.sketchStyle.textStyle),n}},{key:"hitTestFeature",value:function(e,t){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===l.SketchEditMode.NONE?this._editMode=l.SketchEditMode.EDITGRAGIC:this._editMode===l.SketchEditMode.EDITVERTEX&&(this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=l.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===l.SketchEditMode.EDITGRAGIC&&this.startPanGraphics(e,t)}},{key:"selectFeature",value:function(e){var t=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var r=e.geometry.extent,n=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({fillStyle:this.sketchStyle._selectBoxStyle,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(n),n.addFeature([[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]],void 0,void 0,this.sketchInnerLayer),this.sketchStage.selectBoxGraphics=[n.sketchStage.entityGraphic];var i=[];if(i=[{point:new c.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new c.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new c.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new c.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var o=[{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];i=i.concat(o)}var a=[],s=[];i.forEach(function(e){var r=new f.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});t._drawTools.push(r),r.addFeature(e.point,t.sketchStage,{direction:e.direction,type:e.type},t.sketchInnerLayer),a.push(r),s.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=s,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(a),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this._editMode),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||(this._mapClickEvent=function(){t._preventFirstCall?t._preventFirstCall=void 0:(t.sketchStage.selectBoxGraphics.concat(t.sketchStage.selectBoxVertexGraphics).concat(t.sketchStage.vertexGraphics).concat(t.sketchStage.midVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t.sketchInnerLayer)}),t.view.off(l.ViewEventType.immediateClick,t._mapClickEvent),t.view._mapActionControl("drag-pan",!0),t._mapClickEvent=null,t.fire("selected",{isSelected:!1},self),t.sketchStage.selectBoxGraphics=[],t.sketchStage.selectBoxVertexGraphics=[],t.sketchStage.vertexGraphics=[],t.sketchStage.midVertexGraphics=[],t._editMode=l.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(l.ViewEventType.immediateClick,this._mapClickEvent))}}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint;var o=!0;setTimeout(function(){o=!1},200),this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent);var a=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==l.SketchEditMode.EDITGRAGIC&&!o){clearTimeout(null),n=!0;var a={x:t.x,y:t.y},s=r.view.toMap({x:a.x,y:a.y}),u=s.coordinates[0]-i.coordinates[0],h=s.coordinates[1]-i.coordinates[1];if(0!==u||0!==h){var f=[];e.geometry.coordinates[0].forEach(function(e){f.push(r.getPanCoordinates(e,u,h))});var d=new c.Polygon({coordinates:[f],spatialReference:r._spatialReference});i=s,r._dispatchEvent("pan",{deltaPosition:{x:u,y:h}},r),r.updateFeature(d,e),n=!1}else n=!1}},s=function e(){!r._editMode!==l.SketchEditMode.EDITGRAGIC&&r._startPan&&(r._editMode=l.SketchEditMode.NONE,r._startPan=!1,r.view.off(l.ViewEventType.pointerMove,a),r.view.off(l.ViewEventType.pointerUp,e),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage,r._editMode),r._parent&&r._parent._mapClickEvent&&(r._parent._preventFirstCall=!0,r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)),r.view._mapActionControl("drag-pan",!0))};this._hitTestEventHandlers.push(a),this._hitTestEventHandlers.push(s),this.view.on(l.ViewEventType.pointerUp,s),this.view.on(l.ViewEventType.pointerMove,a)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"circleVertexScale"===e.type?this._handlerCircleVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates[0].forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new c.Polygon({coordinates:[r],spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.Polygon({coordinates:[i],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.Polygon({coordinates:[i],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerCircleVertexScaleEvent",value:function(e){if(this._parent&&this._parent.sketchStage.entityGraphic){var t,r=this._parent.sketchStage.entityGraphic.geometry.extent,n=[[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]];(t=new c.Polygon({coordinates:[[[0,0],[0,0],[0,0],[0,0]]],spatialReference:this._spatialReference})).coordinates=[n],this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates[0];if(t.geometry.coordinates[0][e.vertexIndex]=e.movePoint.coordinates,t.geometry.coordinates[0].length-1===e.vertexIndex?t.geometry.coordinates[0][0]=e.movePoint.coordinates:0===e.vertexIndex&&(t.geometry.coordinates[0][t.geometry.coordinates[0].length-1]=e.movePoint.coordinates),t.geometry=new c.Polygon({coordinates:t.geometry.coordinates,spatialReference:this._spatialReference}),this._otherDrawTools){var n=e.vertexIndex,i=0===n?n-1+this.sketchStage.midVertexGraphics.length:n-1,o=n===this.sketchStage.midVertexGraphics.length-1?0:n+1,a=this.sketchStage.midVertexGraphics[n],s=this.sketchStage.midVertexGraphics[i],u=r[i],l=r[n],h=r[o];a.geometry.coordinates=[(h[0]+l[0])/2,(h[1]+l[1])/2],a.geometry=new c.Point({coordinates:a.geometry.coordinates,spatialReference:this._spatialReference}),s.geometry.coordinates=[(u[0]+l[0])/2,(u[1]+l[1])/2],s.geometry=new c.Point({coordinates:s.geometry.coordinates,spatialReference:this._spatialReference})}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates[0].splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new c.Polygon({coordinates:[this.sketchStage.entityGraphic.geometry.coordinates[0]],spatialReference:this._spatialReference})),"moveMidVertex"===e.action&&(this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+1]=e.movePoint.coordinates,this.sketchStage.entityGraphic.geometry=new c.Polygon({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"addVertex"===e.action){var r=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),n=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(n),n.addFeature(e.point),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,n.sketchStage.entityGraphic);var i,o=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex],a=null;this._getHight&&(a=0),i=a?new c.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2,a],spatialReference:this._spatialReference}):new c.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var s=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(s),s.addFeature(i,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,s.sketchStage.entityGraphic);var u,l=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+2],h=null;this._getHight&&(h=0),u=h?new c.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2,h],spatialReference:this._spatialReference}):new c.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var d=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(d),d.addFeature(u,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,d.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===r&&t._removeFeatureFromMap(e.sketchStage.entityGraphic)}),this._otherDrawTools.push(n),this._otherDrawTools.push(s),this._otherDrawTools.push(d)}}},{key:"addMidVertex",value:function(e,t){var r=new f.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){var r=null;if(--t>-1){var n=[];if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){(n=this.sketchStage.entityGraphic.geometry.coordinates[0]).splice(t,0,e.coordinates),0===t?n[n.length-1]=e.coordinates:t===n.length-1&&n.splice(0,0,e.coordinates),this.sketchStage.entityGraphic.geometry.coordinates=[n],r=this.sketchStage.entityGraphic.geometry;var i=void 0,o=void 0,a=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var s=[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[(a.xmax+a.xmin)/2,a.ymax],[(a.xmax+a.xmin)/2,a.ymin],[a.xmax,(a.ymax+a.ymin)/2],[a.xmin,(a.ymax+a.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=s[t]})}if(this.sketchStage.vertexGraphics.length>0&&(i=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(i),i.addFeatureByGeometry(e),this.sketchStage.vertexGraphics.splice(t,0,i.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var u=-1,l=-1,h=null,d=null;0===t?(l=0,u=this.sketchStage.midVertexGraphics.length-1,h=this.sketchStage.entityGraphic.geometry.coordinates[0][this.sketchStage.entityGraphic.geometry.coordinates[0].length-2],d=this.sketchStage.entityGraphic.geometry.coordinates[0][1]):(u=t-1,l=t+1,h=this.sketchStage.entityGraphic.geometry.coordinates[0][u],d=this.sketchStage.entityGraphic.geometry.coordinates[0][l]);var y=new c.Point({coordinates:[(h[0]+e.coordinates[0])/2,(h[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[u].geometry.coordinates=y.coordinates;var g=new c.Point({coordinates:[(d[0]+e.coordinates[0])/2,(d[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});o=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(o),o.addFeatureByGeometry(g,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,o.sketchStage.entityGraphic),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}i&&this._otherDrawTools.push(i),o&&this._otherDrawTools.push(o),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode)}return r}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){var n=this.sketchStage.entityGraphic,i=n.geometry.coordinates[0];n.geometry.coordinates=[i],this.currentVertexIndex=t,i[t]=e.coordinates,i.length-1===t?i[0]=e.coordinates:0===t&&(i[i.length-1]=e.coordinates),n.geometry=new c.Polygon({coordinates:n.geometry.coordinates,spatialReference:this._spatialReference}),r=n.geometry;var o=n.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[(o.xmax+o.xmin)/2,o.ymax],[(o.xmax+o.xmin)/2,o.ymin],[o.xmax,(o.ymax+o.ymin)/2],[o.xmin,(o.ymax+o.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var s=t,u=0===s?s-1+this.sketchStage.midVertexGraphics.length:s-1,l=s===this.sketchStage.midVertexGraphics.length-1?0:s+1,h=this.sketchStage.midVertexGraphics[s],f=this.sketchStage.midVertexGraphics[u],d=i[u],p=i[s],y=i[l];h.geometry.coordinates=[(y[0]+p[0])/2,(y[1]+p[1])/2],h.geometry=new c.Point({coordinates:h.geometry.coordinates,spatialReference:this._spatialReference}),f.geometry.coordinates=[(d[0]+p[0])/2,(d[1]+p[1])/2],f.geometry=new c.Point({coordinates:f.geometry.coordinates,spatialReference:this._spatialReference})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates[0].length-1;if(r>3&&e<r){var n=this.sketchStage.entityGraphic.geometry.coordinates[0];n.splice(e,1),0===e&&n.splice(n.length-1,1,n[0]),t=new c.Polygon({coordinates:[n],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t;var i=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[i.xmax,i.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var o=[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[(i.xmax+i.xmin)/2,i.ymax],[(i.xmax+i.xmin)/2,i.ymin],[i.xmax,(i.ymax+i.ymin)/2],[i.xmin,(i.ymax+i.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=o[t]})}if(this.sketchStage.vertexGraphics.length>0){var a=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromMap(this.sketchStage.vertexGraphics[e]),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==a)return e})}if(this.sketchStage.midVertexGraphics.length>0){var s=[],u=-1;0===e?(s=[(t.coordinates[0][t.coordinates[0].length-2][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][t.coordinates[0].length-2][1]+t.coordinates[0][e][1])/2],u=this.sketchStage.midVertexGraphics.length-1):(s=[(t.coordinates[0][e-1][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][e-1][1]+t.coordinates[0][e][1])/2],u=e-1),this.sketchStage.midVertexGraphics[u].geometry=new c.Point({coordinates:s,spatialReference:this._spatialReference});var l=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromMap(this.sketchStage.midVertexGraphics[e]),this.sketchStage.midVertexGraphics.splice(e,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==l)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode)}return t}}]),t}(h.default);t.default=m},function(e,t,r){"use strict";r.r(t);var n=1,i=2,o=3,a=484813681109536e-20,s=Math.PI/2,u=.16666666666666666,l=.04722222222222222,c=.022156084656084655,h=1e-10,f=.017453292519943295,d=57.29577951308232,p=Math.PI/4,y=2*Math.PI,g=3.14159265359,m={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},v={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},_=/[\s_\-\/\(\)]/g;function S(e,t){if(e[t])return e[t];for(var r,n=Object.keys(e),i=t.toLowerCase().replace(_,""),o=-1;++o<n.length;)if((r=n[o]).toLowerCase().replace(_,"")===i)return e[r]}var x=function(e){var t,r,n,i={},o=e.split("+").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var r=t.split("=");return r.push(!0),e[r[0].toLowerCase()]=r[1],e},{}),a={proj:"projName",datum:"datumCode",rf:function(e){i.rf=parseFloat(e)},lat_0:function(e){i.lat0=e*f},lat_1:function(e){i.lat1=e*f},lat_2:function(e){i.lat2=e*f},lat_ts:function(e){i.lat_ts=e*f},lon_0:function(e){i.long0=e*f},lon_1:function(e){i.long1=e*f},lon_2:function(e){i.long2=e*f},alpha:function(e){i.alpha=parseFloat(e)*f},gamma:function(e){i.rectified_grid_angle=parseFloat(e)},lonc:function(e){i.longc=e*f},x_0:function(e){i.x0=parseFloat(e)},y_0:function(e){i.y0=parseFloat(e)},k_0:function(e){i.k0=parseFloat(e)},k:function(e){i.k0=parseFloat(e)},a:function(e){i.a=parseFloat(e)},b:function(e){i.b=parseFloat(e)},r_a:function(){i.R_A=!0},zone:function(e){i.zone=parseInt(e,10)},south:function(){i.utmSouth=!0},towgs84:function(e){i.datum_params=e.split(",").map(function(e){return parseFloat(e)})},to_meter:function(e){i.to_meter=parseFloat(e)},units:function(e){i.units=e;var t=S(v,e);t&&(i.to_meter=t.to_meter)},from_greenwich:function(e){i.from_greenwich=e*f},pm:function(e){var t=S(m,e);i.from_greenwich=(t||parseFloat(e))*f},nadgrids:function(e){"@null"===e?i.datumCode="none":i.nadgrids=e},axis:function(e){3===e.length&&-1!=="ewnsud".indexOf(e.substr(0,1))&&-1!=="ewnsud".indexOf(e.substr(1,1))&&-1!=="ewnsud".indexOf(e.substr(2,1))&&(i.axis=e)},approx:function(){i.approx=!0}};for(t in o)r=o[t],t in a?"function"==typeof(n=a[t])?n(r):i[n]=r:i[t]=r;return"string"==typeof i.datumCode&&"WGS84"!==i.datumCode&&(i.datumCode=i.datumCode.toLowerCase()),i},b=1,w=/\s/,k=/[A-Za-z]/,M=/[A-Za-z84_]/,E=/[,\]]/,I=/[\d\.E\-\+]/;function T(e){if("string"!=typeof e)throw new Error("not a string");this.text=e.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=b}function L(e,t,r){Array.isArray(t)&&(r.unshift(t),t=null);var n=t?{}:e,i=r.reduce(function(e,t){return C(t,e),e},n);t&&(e[t]=i)}function C(e,t){if(Array.isArray(e)){var r=e.shift();if("PARAMETER"===r&&(r=e.shift()),1===e.length)return Array.isArray(e[0])?(t[r]={},void C(e[0],t[r])):void(t[r]=e[0]);if(e.length)if("TOWGS84"!==r){if("AXIS"===r)return r in t||(t[r]=[]),void t[r].push(e);var n;switch(Array.isArray(r)||(t[r]={}),r){case"UNIT":case"PRIMEM":case"VERT_DATUM":return t[r]={name:e[0].toLowerCase(),convert:e[1]},void(3===e.length&&C(e[2],t[r]));case"SPHEROID":case"ELLIPSOID":return t[r]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&C(e[3],t[r]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return e[0]=["name",e[0]],void L(t,r,e);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return e[0]=["name",e[0]],L(t,r,e),void(t[r].type=r);default:for(n=-1;++n<e.length;)if(!Array.isArray(e[n]))return C(e,t[r]);return L(t,r,e)}}else t[r]=e;else t[r]=!0}else t[e]=!0}T.prototype.readCharicter=function(){var e=this.text[this.place++];if(4!==this.state)for(;w.test(e);){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case b:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},T.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(E.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},T.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=b)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=b,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},T.prototype.number=function(e){if(!I.test(e)){if(E.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},T.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},T.prototype.keyword=function(e){if(M.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=b)}if(!E.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},T.prototype.neutral=function(e){if(k.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(I.test(e))return this.word=e,void(this.state=3);if(!E.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},T.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var P=.017453292519943295,N=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function O(e){return e*P}function R(e){if(e.AUTHORITY){var t=Object.keys(e.AUTHORITY)[0];t&&t in e.AUTHORITY&&(e.title=t+":"+e.AUTHORITY[t])}if("GEOGCS"===e.type?e.projName="longlat":"LOCAL_CS"===e.type?(e.projName="identity",e.local=!0):"object"==typeof e.PROJECTION?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var r="",n=0,i=e.AXIS.length;n<i;++n){var o=[e.AXIS[n][0].toLowerCase(),e.AXIS[n][1].toLowerCase()];-1!==o[0].indexOf("north")||("y"===o[0]||"lat"===o[0])&&"north"===o[1]?r+="n":-1!==o[0].indexOf("south")||("y"===o[0]||"lat"===o[0])&&"south"===o[1]?r+="s":-1!==o[0].indexOf("east")||("x"===o[0]||"lon"===o[0])&&"east"===o[1]?r+="e":-1===o[0].indexOf("west")&&("x"!==o[0]&&"lon"!==o[0]||"west"!==o[1])||(r+="w")}2===r.length&&(r+="u"),3===r.length&&(e.axis=r)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var a=e.GEOGCS;function s(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(a=e),a&&(a.DATUM?e.datumCode=a.DATUM.name.toLowerCase():e.datumCode=a.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_1949"===e.datumCode&&(e.datumCode="nzgd49"),"wgs_1984"!==e.datumCode&&"world_geodetic_system_1984"!==e.datumCode||("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"belge_1972"===e.datumCode&&(e.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(e.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=a.DATUM.SPHEROID.a,e.rf=parseFloat(a.DATUM.SPHEROID.rf,10)),a.DATUM&&a.DATUM.TOWGS84&&(e.datum_params=a.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",O],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",O],["x0","false_easting",s],["y0","false_northing",s],["long0","central_meridian",O],["lat0","latitude_of_origin",O],["lat0","standard_parallel_1",O],["lat1","standard_parallel_1",O],["lat2","standard_parallel_2",O],["azimuth","Azimuth"],["alpha","azimuth",O],["srsCode","name"]].forEach(function(t){return function(e,t){var r=t[0],n=t[1];!(r in e)&&n in e&&(e[r]=e[n],3===t.length&&(e[r]=t[2](e[r])))}(e,t)}),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName?!e.lat_ts&&e.lat0&&"Polar_Stereographic"===e.projName&&(e.lat_ts=e.lat0,e.lat0=O(e.lat0>0?90:-90)):(e.lat0=O(e.lat1>0?90:-90),e.lat_ts=e.lat1)}var V=function(e){var t=function(e){return new T(e).output()}(e),r=t[0],n={};return C(t,n),function e(t){for(var r=Object.keys(t),n=0,i=r.length;n<i;++n){var o=r[n];-1!==N.indexOf(o)&&R(t[o]),"object"==typeof t[o]&&e(t[o])}}(n),n[r]};function G(e){var t=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?G[e]=x(arguments[1]):G[e]=V(arguments[1]):G[e]=r}else if(1===arguments.length){if(Array.isArray(e))return e.map(function(e){Array.isArray(e)?G.apply(t,e):G(e)});if("string"==typeof e){if(e in G)return G[e]}else"EPSG"in e?G["EPSG:"+e.EPSG]=e:"ESRI"in e?G["ESRI:"+e.ESRI]=e:"IAU2000"in e?G["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(G);var A=G,D=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"],F=["3857","900913","3785","102113"],j=function(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in A}(e))return A[e];if(function(e){return D.some(function(t){return e.indexOf(t)>-1})}(e)){var t=V(e);if(function(e){var t=S(e,"authority");if(t){var r=S(t,"epsg");return r&&F.indexOf(r)>-1}}(t))return A["EPSG:3857"];var r=function(e){var t=S(e,"extension");if(t)return S(t,"proj4")}(t);return r?x(r):t}return function(e){return"+"===e[0]}(e)?x(e):void 0},B=function(e,t){var r,n;if(e=e||{},!t)return e;for(n in t)void 0!==(r=t[n])&&(e[n]=r);return e},q=function(e,t,r){var n=e*t;return r/Math.sqrt(1-n*n)},U=function(e){return e<0?-1:1},J=function(e){return Math.abs(e)<=g?e:e-U(e)*y},z=function(e,t,r){var n=e*r,i=.5*e;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(s-t))/n},W=function(e,t){for(var r,n,i=.5*e,o=s-2*Math.atan(t),a=0;a<=15;a++)if(r=e*Math.sin(o),o+=n=s-2*Math.atan(t*Math.pow((1-r)/(1+r),i))-o,Math.abs(n)<=1e-10)return o;return-9999};function H(e){return e}var X=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=q(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,r,n=e.x,i=e.y;if(i*d>90&&i*d<-90&&n*d>180&&n*d<-180)return null;if(Math.abs(Math.abs(i)-s)<=h)return null;if(this.sphere)t=this.x0+this.a*this.k0*J(n-this.long0),r=this.y0+this.a*this.k0*Math.log(Math.tan(p+.5*i));else{var o=Math.sin(i),a=z(this.e,i,o);t=this.x0+this.a*this.k0*J(n-this.long0),r=this.y0-this.a*this.k0*Math.log(a)}return e.x=t,e.y=r,e},inverse:function(e){var t,r,n=e.x-this.x0,i=e.y-this.y0;if(this.sphere)r=s-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var o=Math.exp(-i/(this.a*this.k0));if(-9999===(r=W(this.e,o)))return null}return t=J(this.long0+n/(this.a*this.k0)),e.x=t,e.y=r,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:H,inverse:H,names:["longlat","identity"]}],Y={},Z=[];function K(e,t){var r=Z.length;return e.names?(Z[r]=e,e.names.forEach(function(e){Y[e.toLowerCase()]=r}),this):(console.log(t),!0)}var Q={start:function(){X.forEach(K)},add:K,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==Y[t]&&Z[Y[t]]?Z[Y[t]]:void 0}},$={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},ee=$.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};$.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var te={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}},re=function(e,t,r,s,u,l,c){var h={};return h.datum_type=void 0===e||"none"===e?5:4,t&&(h.datum_params=t.map(parseFloat),0===h.datum_params[0]&&0===h.datum_params[1]&&0===h.datum_params[2]||(h.datum_type=n),h.datum_params.length>3&&(0===h.datum_params[3]&&0===h.datum_params[4]&&0===h.datum_params[5]&&0===h.datum_params[6]||(h.datum_type=i,h.datum_params[3]*=a,h.datum_params[4]*=a,h.datum_params[5]*=a,h.datum_params[6]=h.datum_params[6]/1e6+1))),c&&(h.datum_type=o,h.grids=c),h.a=r,h.b=s,h.es=u,h.ep2=l,h},ne={};function ie(e){if(0===e.length)return null;var t="@"===e[0];return t&&(e=e.slice(1)),"null"===e?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:ne[e]||null,isNull:!1}}function oe(e){return e/3600*Math.PI/180}function ae(e,t,r){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,r)))}function se(e){return e.map(function(e){return[oe(e.longitudeShift),oe(e.latitudeShift)]})}function ue(e,t,r){return{name:ae(e,t+8,t+16).trim(),parent:ae(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,r),upperLatitude:e.getFloat64(t+88,r),lowerLongitude:e.getFloat64(t+104,r),upperLongitude:e.getFloat64(t+120,r),latitudeInterval:e.getFloat64(t+136,r),longitudeInterval:e.getFloat64(t+152,r),gridNodeCount:e.getInt32(t+168,r)}}function le(e,t,r,n){for(var i=t+176,o=[],a=0;a<r.gridNodeCount;a++){var s={latitudeShift:e.getFloat32(i+16*a,n),longitudeShift:e.getFloat32(i+16*a+4,n),latitudeAccuracy:e.getFloat32(i+16*a+8,n),longitudeAccuracy:e.getFloat32(i+16*a+12,n)};o.push(s)}return o}function ce(e,t){if(!(this instanceof ce))return new ce(e);t=t||function(e){if(e)throw e};var r=j(e);if("object"==typeof r){var n=ce.projections.get(r.projName);if(n){if(r.datumCode&&"none"!==r.datumCode){var i=S(te,r.datumCode);i&&(r.datum_params=r.datum_params||(i.towgs84?i.towgs84.split(","):null),r.ellps=i.ellipse,r.datumName=i.datumName?i.datumName:r.datumCode)}r.k0=r.k0||1,r.axis=r.axis||"enu",r.ellps=r.ellps||"wgs84",r.lat1=r.lat1||r.lat0;var o=function(e,t,r,n,i){if(!e){var o=S($,n);o||(o=ee),e=o.a,t=o.b,r=o.rf}return r&&!t&&(t=(1-1/r)*e),(0===r||Math.abs(e-t)<h)&&(i=!0,t=e),{a:e,b:t,rf:r,sphere:i}}(r.a,r.b,r.rf,r.ellps,r.sphere),a=function(e,t,r,n){var i=e*e,o=t*t,a=(i-o)/i,s=0;return n?(i=(e*=1-a*(u+a*(l+a*c)))*e,a=0):s=Math.sqrt(a),{es:a,e:s,ep2:(i-o)/o}}(o.a,o.b,o.rf,r.R_A),s=function(e){return void 0===e?null:e.split(",").map(ie)}(r.nadgrids),f=r.datum||re(r.datumCode,r.datum_params,o.a,o.b,a.es,a.ep2,s);B(this,r),B(this,n),this.a=o.a,this.b=o.b,this.rf=o.rf,this.sphere=o.sphere,this.es=a.es,this.e=a.e,this.ep2=a.ep2,this.datum=f,this.init(),t(null,this)}else t(e)}else t(e)}ce.projections=Q,ce.projections.start();var he=ce;function fe(e,t,r){var n,i,o,a,u=e.x,l=e.y,c=e.z?e.z:0;if(l<-s&&l>-1.001*s)l=-s;else if(l>s&&l<1.001*s)l=s;else{if(l<-s)return{x:-1/0,y:-1/0,z:e.z};if(l>s)return{x:1/0,y:1/0,z:e.z}}return u>Math.PI&&(u-=2*Math.PI),i=Math.sin(l),a=Math.cos(l),o=i*i,{x:((n=r/Math.sqrt(1-t*o))+c)*a*Math.cos(u),y:(n+c)*a*Math.sin(u),z:(n*(1-t)+c)*i}}function de(e,t,r,n){var i,o,a,s,u,l,c,h,f,d,p,y,g,m,v,_=e.x,S=e.y,x=e.z?e.z:0;if(i=Math.sqrt(_*_+S*S),o=Math.sqrt(_*_+S*S+x*x),i/r<1e-12){if(m=0,o/r<1e-12)return v=-n,{x:e.x,y:e.y,z:e.z}}else m=Math.atan2(S,_);a=x/o,h=(s=i/o)*(1-t)*(u=1/Math.sqrt(1-t*(2-t)*s*s)),f=a*u,g=0;do{g++,l=t*(c=r/Math.sqrt(1-t*f*f))/(c+(v=i*h+x*f-c*(1-t*f*f))),y=(p=a*(u=1/Math.sqrt(1-l*(2-l)*s*s)))*h-(d=s*(1-l)*u)*f,h=d,f=p}while(y*y>1e-24&&g<30);return{x:m,y:Math.atan(p/Math.abs(d)),z:v}}function pe(e){return e===n||e===i}var ye=function(e,t,r){if(function(e,t){return e.datum_type===t.datum_type&&!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(e.datum_type===n?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type!==i||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6])}(e,t))return r;if(5===e.datum_type||5===t.datum_type)return r;var a=e.a,s=e.es;if(e.datum_type===o){if(0!==ge(e,!1,r))return;a=6378137,s=.0066943799901413165}var u=t.a,l=t.b,c=t.es;return t.datum_type===o&&(u=6378137,l=6356752.314,c=.0066943799901413165),s!==c||a!==u||pe(e.datum_type)||pe(t.datum_type)?(r=fe(r,s,a),pe(e.datum_type)&&(r=function(e,t,r){if(t===n)return{x:e.x+r[0],y:e.y+r[1],z:e.z+r[2]};if(t===i){var o=r[0],a=r[1],s=r[2],u=r[3],l=r[4],c=r[5],h=r[6];return{x:h*(e.x-c*e.y+l*e.z)+o,y:h*(c*e.x+e.y-u*e.z)+a,z:h*(-l*e.x+u*e.y+e.z)+s}}}(r,e.datum_type,e.datum_params)),pe(t.datum_type)&&(r=function(e,t,r){if(t===n)return{x:e.x-r[0],y:e.y-r[1],z:e.z-r[2]};if(t===i){var o=r[0],a=r[1],s=r[2],u=r[3],l=r[4],c=r[5],h=r[6],f=(e.x-o)/h,d=(e.y-a)/h,p=(e.z-s)/h;return{x:f+c*d-l*p,y:-c*f+d+u*p,z:l*f-u*d+p}}}(r,t.datum_type,t.datum_params)),r=de(r,c,u,l),t.datum_type!==o||0===ge(t,!0,r)?r:void 0):r};function ge(e,t,r){if(null===e.grids||0===e.grids.length)return console.log("Grid shift grids not found"),-1;for(var n={x:-r.x,y:r.y},i={x:Number.NaN,y:Number.NaN},o=[],a=0;a<e.grids.length;a++){var s=e.grids[a];if(o.push(s.name),s.isNull){i=n;break}if(s.mandatory,null!==s.grid){var u=s.grid.subgrids[0],l=(Math.abs(u.del[1])+Math.abs(u.del[0]))/1e4,c=u.ll[0]-l,h=u.ll[1]-l,f=u.ll[0]+(u.lim[0]-1)*u.del[0]+l,p=u.ll[1]+(u.lim[1]-1)*u.del[1]+l;if(!(h>n.y||c>n.x||p<n.y||f<n.x||(i=me(n,t,u),isNaN(i.x))))break}else if(s.mandatory)return console.log("Unable to find mandatory grid '"+s.name+"'"),-1}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-n.x*d+" "+n.y*d+" tried: '"+o+"'"),-1):(r.x=-i.x,r.y=i.y,0)}function me(e,t,r){var n={x:Number.NaN,y:Number.NaN};if(isNaN(e.x))return n;var i={x:e.x,y:e.y};i.x-=r.ll[0],i.y-=r.ll[1],i.x=J(i.x-Math.PI)+Math.PI;var o=ve(i,r);if(t){if(isNaN(o.x))return n;o.x=i.x-o.x,o.y=i.y-o.y;var a,s,u=9;do{if(s=ve(o,r),isNaN(s.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}a={x:i.x-(s.x+o.x),y:i.y-(s.y+o.y)},o.x+=a.x,o.y+=a.y}while(u--&&Math.abs(a.x)>1e-12&&Math.abs(a.y)>1e-12);if(u<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=J(o.x+r.ll[0]),n.y=o.y+r.ll[1]}else isNaN(o.x)||(n.x=e.x+o.x,n.y=e.y+o.y);return n}function ve(e,t){var r,n={x:e.x/t.del[0],y:e.y/t.del[1]},i=Math.floor(n.x),o=Math.floor(n.y),a=n.x-1*i,s=n.y-1*o,u={x:Number.NaN,y:Number.NaN};if(i<0||i>=t.lim[0])return u;if(o<0||o>=t.lim[1])return u;r=o*t.lim[0]+i;var l=t.cvs[r][0],c=t.cvs[r][1];r++;var h=t.cvs[r][0],f=t.cvs[r][1];r+=t.lim[0];var d=t.cvs[r][0],p=t.cvs[r][1];r--;var y=t.cvs[r][0],g=t.cvs[r][1],m=a*s,v=a*(1-s),_=(1-a)*(1-s),S=(1-a)*s;return u.x=_*l+v*h+S*y+m*d,u.y=_*c+v*f+S*g+m*p,u}var _e=function(e,t,r){var n,i,o,a=r.x,s=r.y,u=r.z||0,l={};for(o=0;o<3;o++)if(!t||2!==o||void 0!==r.z)switch(0===o?(n=a,i=-1!=="ew".indexOf(e.axis[o])?"x":"y"):1===o?(n=s,i=-1!=="ns".indexOf(e.axis[o])?"y":"x"):(n=u,i="z"),e.axis[o]){case"e":l[i]=n;break;case"w":l[i]=-n;break;case"n":l[i]=n;break;case"s":l[i]=-n;break;case"u":void 0!==r[i]&&(l.z=n);break;case"d":void 0!==r[i]&&(l.z=-n);break;default:return null}return l},Se=function(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t},xe=function(e){be(e.x),be(e.y)};function be(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function we(e,t,r,a){var s,u=void 0!==(r=Array.isArray(r)?Se(r):{x:r.x,y:r.y,z:r.z,m:r.m}).z;if(xe(r),e.datum&&t.datum&&function(e,t){return(e.datum.datum_type===n||e.datum.datum_type===i||e.datum.datum_type===o)&&"WGS84"!==t.datumCode||(t.datum.datum_type===n||t.datum.datum_type===i||t.datum.datum_type===o)&&"WGS84"!==e.datumCode}(e,t)&&(r=we(e,s=new he("WGS84"),r,a),e=s),a&&"enu"!==e.axis&&(r=_e(e,!1,r)),"longlat"===e.projName)r={x:r.x*f,y:r.y*f,z:r.z||0};else if(e.to_meter&&(r={x:r.x*e.to_meter,y:r.y*e.to_meter,z:r.z||0}),!(r=e.inverse(r)))return;if(e.from_greenwich&&(r.x+=e.from_greenwich),r=ye(e.datum,t.datum,r))return t.from_greenwich&&(r={x:r.x-t.from_greenwich,y:r.y,z:r.z||0}),"longlat"===t.projName?r={x:r.x*d,y:r.y*d,z:r.z||0}:(r=t.forward(r),t.to_meter&&(r={x:r.x/t.to_meter,y:r.y/t.to_meter,z:r.z||0})),a&&"enu"!==t.axis?_e(t,!0,r):(u||delete r.z,r)}var ke=he("WGS84");function Me(e,t,r,n){var i,o,a;return Array.isArray(r)?(i=we(e,t,r,n)||{x:NaN,y:NaN},r.length>2?void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name?"number"==typeof i.z?[i.x,i.y,i.z].concat(r.splice(3)):[i.x,i.y,r[2]].concat(r.splice(3)):[i.x,i.y].concat(r.splice(2)):[i.x,i.y]):(o=we(e,t,r,n),2===(a=Object.keys(r)).length?o:(a.forEach(function(n){if(void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name){if("x"===n||"y"===n||"z"===n)return}else if("x"===n||"y"===n)return;o[n]=r[n]}),o))}function Ee(e){return e instanceof he?e:e.oProj?e.oProj:he(e)}var Ie=function(e,t,r){e=Ee(e);var n,i=!1;return void 0===t?(t=e,e=ke,i=!0):(void 0!==t.x||Array.isArray(t))&&(r=t,t=e,e=ke,i=!0),t=Ee(t),r?Me(e,t,r):(n={forward:function(r,n){return Me(e,t,r,n)},inverse:function(r,n){return Me(t,e,r,n)}},i&&(n.oProj=t),n)},Te=6,Le="AJSAJS",Ce="AFAFAF",Pe=65,Ne=73,Oe=79,Re=86,Ve=90,Ge={forward:Ae,inverse:function(e){var t=Be(Ue(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]},toPoint:De};function Ae(e,t){return t=t||5,function(e,t){var r="00000"+e.easting,n="00000"+e.northing;return e.zoneNumber+e.zoneLetter+function(e,t,r){var n=qe(r);return function(e,t,r){var n=r-1,i=Le.charCodeAt(n),o=Ce.charCodeAt(n),a=i+e-1,s=o+t,u=!1;return a>Ve&&(a=a-Ve+Pe-1,u=!0),(a===Ne||i<Ne&&a>Ne||(a>Ne||i<Ne)&&u)&&a++,(a===Oe||i<Oe&&a>Oe||(a>Oe||i<Oe)&&u)&&++a===Ne&&a++,a>Ve&&(a=a-Ve+Pe-1),s>Re?(s=s-Re+Pe-1,u=!0):u=!1,(s===Ne||o<Ne&&s>Ne||(s>Ne||o<Ne)&&u)&&s++,(s===Oe||o<Oe&&s>Oe||(s>Oe||o<Oe)&&u)&&++s===Ne&&s++,s>Re&&(s=s-Re+Pe-1),String.fromCharCode(a)+String.fromCharCode(s)}(Math.floor(e/1e5),Math.floor(t/1e5)%20,n)}(e.easting,e.northing,e.zoneNumber)+r.substr(r.length-5,t)+n.substr(n.length-5,t)}(function(e){var t,r,n,i,o,a,s=e.lat,u=e.lon,l=6378137,c=Fe(s),h=Fe(u);a=Math.floor((u+180)/6)+1,180===u&&(a=60),s>=56&&s<64&&u>=3&&u<12&&(a=32),s>=72&&s<84&&(u>=0&&u<9?a=31:u>=9&&u<21?a=33:u>=21&&u<33?a=35:u>=33&&u<42&&(a=37)),o=Fe(6*(a-1)-180+3),t=l/Math.sqrt(1-.00669438*Math.sin(c)*Math.sin(c)),r=Math.tan(c)*Math.tan(c),n=.006739496752268451*Math.cos(c)*Math.cos(c);var f=.9996*t*((i=Math.cos(c)*(h-o))+(1-r+n)*i*i*i/6+(5-18*r+r*r+72*n-.39089081163157013)*i*i*i*i*i/120)+5e5,d=.9996*(l*(.9983242984503243*c-.002514607064228144*Math.sin(2*c)+2639046602129982e-21*Math.sin(4*c)-3.418046101696858e-9*Math.sin(6*c))+t*Math.tan(c)*(i*i/2+(5-r+9*n+4*n*n)*i*i*i*i/24+(61-58*r+r*r+600*n-2.2240339282485886)*i*i*i*i*i*i/720));return s<0&&(d+=1e7),{northing:Math.round(d),easting:Math.round(f),zoneNumber:a,zoneLetter:function(e){var t="Z";return 84>=s&&s>=72?t="X":72>s&&s>=64?t="W":64>s&&s>=56?t="V":56>s&&s>=48?t="U":48>s&&s>=40?t="T":40>s&&s>=32?t="S":32>s&&s>=24?t="R":24>s&&s>=16?t="Q":16>s&&s>=8?t="P":8>s&&s>=0?t="N":0>s&&s>=-8?t="M":-8>s&&s>=-16?t="L":-16>s&&s>=-24?t="K":-24>s&&s>=-32?t="J":-32>s&&s>=-40?t="H":-40>s&&s>=-48?t="G":-48>s&&s>=-56?t="F":-56>s&&s>=-64?t="E":-64>s&&s>=-72?t="D":-72>s&&s>=-80&&(t="C"),t}()}}({lat:e[1],lon:e[0]}),t)}function De(e){var t=Be(Ue(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function Fe(e){return e*(Math.PI/180)}function je(e){return e/Math.PI*180}function Be(e){var t=e.northing,r=e.easting,n=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var o,a,s,u,l,c,h,f,d=6378137,p=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),y=r-5e5,g=t;n<"N"&&(g-=1e7),c=6*(i-1)-180+3,f=(h=g/.9996/6367449.145945056)+(3*p/2-27*p*p*p/32)*Math.sin(2*h)+(21*p*p/16-55*p*p*p*p/32)*Math.sin(4*h)+151*p*p*p/96*Math.sin(6*h),o=d/Math.sqrt(1-.00669438*Math.sin(f)*Math.sin(f)),a=Math.tan(f)*Math.tan(f),s=.006739496752268451*Math.cos(f)*Math.cos(f),u=.99330562*d/Math.pow(1-.00669438*Math.sin(f)*Math.sin(f),1.5),l=y/(.9996*o);var m=f-o*Math.tan(f)/u*(l*l/2-(5+3*a+10*s-4*s*s-.06065547077041606)*l*l*l*l/24+(61+90*a+298*s+45*a*a-1.6983531815716497-3*s*s)*l*l*l*l*l*l/720);m=je(m);var v,_=(l-(1+2*a+s)*l*l*l/6+(5-2*s+28*a-3*s*s+.05391597401814761+24*a*a)*l*l*l*l*l/120)/Math.cos(f);if(_=c+je(_),e.accuracy){var S=Be({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});v={top:S.lat,right:S.lon,bottom:m,left:_}}else v={lat:m,lon:_};return v}function qe(e){var t=e%Te;return 0===t&&(t=Te),t}function Ue(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,r=e.length,n=null,i="",o=0;!/[A-Z]/.test(t=e.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+e;i+=t,o++}var a=parseInt(i,10);if(0===o||o+3>r)throw"MGRSPoint bad conversion from: "+e;var s=e.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+e;n=e.substring(o,o+=2);for(var u=qe(a),l=function(e,t){for(var r=Le.charCodeAt(t-1),n=1e5,i=!1;r!==e.charCodeAt(0);){if(++r===Ne&&r++,r===Oe&&r++,r>Ve){if(i)throw"Bad character: "+e;r=Pe,i=!0}n+=1e5}return n}(n.charAt(0),u),c=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var r=Ce.charCodeAt(t-1),n=0,i=!1;r!==e.charCodeAt(0);){if(++r===Ne&&r++,r===Oe&&r++,r>Re){if(i)throw"Bad character: "+e;r=Pe,i=!0}n+=1e5}return n}(n.charAt(1),u);c<Je(s);)c+=2e6;var h=r-o;if(h%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+e;var f,d,p,y=h/2,g=0,m=0;return y>0&&(f=1e5/Math.pow(10,y),d=e.substring(o,o+y),g=parseFloat(d)*f,p=e.substring(o+y),m=parseFloat(p)*f),{easting:g+l,northing:m+c,zoneLetter:s,zoneNumber:a,accuracy:f}}function Je(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function ze(e,t,r){if(!(this instanceof ze))return new ze(e,t,r);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var n=e.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=e,this.y=t,this.z=r||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}ze.fromMGRS=function(e){return new ze(De(e))},ze.prototype.toMGRS=function(e){return Ae([this.x,this.y],e)};var We=ze,He=.01068115234375,Xe=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*He))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*He)));var r=e*e;return t[2]=r*(.46875-e*(.013020833333333334+.007120768229166667*e)),r*=e,t[3]=r*(.3645833333333333-.005696614583333333*e),t[4]=r*e*.3076171875,t},Ye=function(e,t,r,n){return r*=t,t*=t,n[0]*e-r*(n[1]+t*(n[2]+t*(n[3]+t*n[4])))},Ze=function(e,t,r){for(var n=1/(1-t),i=e,o=20;o;--o){var a=Math.sin(i),s=1-t*a*a;if(i-=s=(Ye(i,a,Math.cos(i),r)-e)*(s*Math.sqrt(s))*n,Math.abs(s)<h)return i}return i},Ke={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=Xe(this.es),this.ml0=Ye(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,r,n,i=e.x,o=e.y,a=J(i-this.long0),s=Math.sin(o),u=Math.cos(o);if(this.es){var l=u*a,c=Math.pow(l,2),f=this.ep2*Math.pow(u,2),d=Math.pow(f,2),p=Math.abs(u)>h?Math.tan(o):0,y=Math.pow(p,2),g=Math.pow(y,2);t=1-this.es*Math.pow(s,2),l/=Math.sqrt(t);var m=Ye(o,s,u,this.en);r=this.a*(this.k0*l*(1+c/6*(1-y+f+c/20*(5-18*y+g+14*f-58*y*f+c/42*(61+179*g-g*y-479*y)))))+this.x0,n=this.a*(this.k0*(m-this.ml0+s*a*l/2*(1+c/12*(5-y+9*f+4*d+c/30*(61+g-58*y+270*f-330*y*f+c/56*(1385+543*g-g*y-3111*y))))))+this.y0}else{var v=u*Math.sin(a);if(Math.abs(Math.abs(v)-1)<h)return 93;if(r=.5*this.a*this.k0*Math.log((1+v)/(1-v))+this.x0,n=u*Math.cos(a)/Math.sqrt(1-Math.pow(v,2)),(v=Math.abs(n))>=1){if(v-1>h)return 93;n=0}else n=Math.acos(n);o<0&&(n=-n),n=this.a*this.k0*(n-this.lat0)+this.y0}return e.x=r,e.y=n,e},inverse:function(e){var t,r,n,i,o=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+a/this.k0,r=Ze(t,this.es,this.en),Math.abs(r)<s){var u=Math.sin(r),l=Math.cos(r),c=Math.abs(l)>h?Math.tan(r):0,f=this.ep2*Math.pow(l,2),d=Math.pow(f,2),p=Math.pow(c,2),y=Math.pow(p,2);t=1-this.es*Math.pow(u,2);var g=o*Math.sqrt(t)/this.k0,m=Math.pow(g,2);n=r-(t*=c)*m/(1-this.es)*.5*(1-m/12*(5+3*p-9*f*p+f-4*d-m/30*(61+90*p-252*f*p+45*y+46*f-m/56*(1385+3633*p+4095*y+1574*y*p)))),i=J(this.long0+g*(1-m/6*(1+2*p+f-m/20*(5+28*p+24*y+8*f*p+6*f-m/42*(61+662*p+1320*y+720*y*p))))/l)}else n=s*U(a),i=0;else{var v=Math.exp(o/this.k0),_=.5*(v-1/v),S=this.lat0+a/this.k0,x=Math.cos(S);t=Math.sqrt((1-Math.pow(x,2))/(1+Math.pow(_,2))),n=Math.asin(t),a<0&&(n=-n),i=0===_&&0===x?0:J(Math.atan2(_,x)+this.long0)}return e.x=i,e.y=n,e},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]},Qe=function(e){var t=Math.exp(e);return(t-1/t)/2},$e=function(e,t){e=Math.abs(e),t=Math.abs(t);var r=Math.max(e,t),n=Math.min(e,t)/(r||1);return r*Math.sqrt(1+Math.pow(n,2))},et=function(e,t){for(var r,n=2*Math.cos(2*t),i=e.length-1,o=e[i],a=0;--i>=0;)r=n*o-a+e[i],a=o,o=r;return t+r*Math.sin(2*t)},tt=function(e,t,r){for(var n,i,o=Math.sin(t),a=Math.cos(t),s=Qe(r),u=function(e){var t=Math.exp(e);return(t+1/t)/2}(r),l=2*a*u,c=-2*o*s,h=e.length-1,f=e[h],d=0,p=0,y=0;--h>=0;)n=p,i=d,f=l*(p=f)-n-c*(d=y)+e[h],y=c*p-i+l*d;return[(l=o*u)*f-(c=a*s)*y,l*y+c*f]},rt={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(Ke.init.apply(this),this.forward=Ke.forward,this.inverse=Ke.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),r=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),r*=t,this.cgb[1]=r*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=r*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),r*=t,this.cgb[2]=r*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=r*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),r*=t,this.cgb[3]=r*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=r*(1237/630+t*(t*(-24832/14175)-2.4)),r*=t,this.cgb[4]=r*(4174/315+t*(-144838/6237)),this.cbg[4]=r*(-734/315+t*(109598/31185)),r*=t,this.cgb[5]=r*(601676/22275),this.cbg[5]=r*(444337/155925),r=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+r*(.25+r*(1/64+r/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=r*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=r*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),r*=t,this.utg[2]=r*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=r*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),r*=t,this.utg[3]=r*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=r*(49561/161280+t*(-179/168+t*(6601661/7257600))),r*=t,this.utg[4]=r*(-4583/161280+t*(108847/3991680)),this.gtu[4]=r*(34729/80640+t*(-3418889/1995840)),r*=t,this.utg[5]=-.03233083094085698*r,this.gtu[5]=.6650675310896665*r;var n=et(this.cbg,this.lat0);this.Zb=-this.Qn*(n+function(e,t){for(var r,n=2*Math.cos(t),i=e.length-1,o=e[i],a=0;--i>=0;)r=n*o-a+e[i],a=o,o=r;return Math.sin(t)*r}(this.gtu,2*n))},forward:function(e){var t=J(e.x-this.long0),r=e.y;r=et(this.cbg,r);var n=Math.sin(r),i=Math.cos(r),o=Math.sin(t),a=Math.cos(t);r=Math.atan2(n,a*i),t=Math.atan2(o*i,$e(n,i*a)),t=function(e){var t=Math.abs(e);return t=function(e){var t=1+e,r=t-1;return 0===r?e:e*Math.log(t)/r}(t*(1+t/($e(1,t)+1))),e<0?-t:t}(Math.tan(t));var s,u,l=tt(this.gtu,2*r,2*t);return r+=l[0],t+=l[1],Math.abs(t)<=2.623395162778?(s=this.a*(this.Qn*t)+this.x0,u=this.a*(this.Qn*r+this.Zb)+this.y0):(s=1/0,u=1/0),e.x=s,e.y=u,e},inverse:function(e){var t,r,n=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,n/=this.Qn,Math.abs(n)<=2.623395162778){var o=tt(this.utg,2*i,2*n);i+=o[0],n+=o[1],n=Math.atan(Qe(n));var a=Math.sin(i),s=Math.cos(i),u=Math.sin(n),l=Math.cos(n);i=Math.atan2(a*l,$e(u,l*s)),n=Math.atan2(u,l*s),t=J(n+this.long0),r=et(this.cgb,i)}else t=1/0,r=1/0;return e.x=t,e.y=r,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"]},nt={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(J(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*f,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,rt.init.apply(this),this.forward=rt.forward,this.inverse=rt.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"},it=function(e,t){return Math.pow((1-e)/(1+e),t)},ot={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+p)/(Math.pow(Math.tan(.5*this.lat0+p),this.C)*it(this.e*e,this.ratexp))},forward:function(e){var t=e.x,r=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+p),this.C)*it(this.e*Math.sin(r),this.ratexp))-s,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,r=e.y,n=Math.pow(Math.tan(.5*r+p)/this.K,1/this.C),i=20;i>0&&(r=2*Math.atan(n*it(this.e*Math.sin(e.y),-.5*this.e))-s,!(Math.abs(r-e.y)<1e-14));--i)e.y=r;return i?(e.x=t,e.y=r,e):null},names:["gauss"]},at={init:function(){ot.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,r,n,i;return e.x=J(e.x-this.long0),ot.forward.apply(this,[e]),t=Math.sin(e.y),r=Math.cos(e.y),n=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*r*n),e.x=i*r*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*r*n),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,r,n,i,o;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,o=Math.sqrt(e.x*e.x+e.y*e.y)){var a=2*Math.atan2(o,this.R2);t=Math.sin(a),r=Math.cos(a),i=Math.asin(r*this.sinc0+e.y*t*this.cosc0/o),n=Math.atan2(e.x*t,o*this.cosc0*r-e.y*this.sinc0*t)}else i=this.phic0,n=0;return e.x=n,e.y=i,ot.inverse.apply(this,[e]),e.x=J(e.x+this.long0),e},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]},st={init:function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=h&&(this.k0=.5*(1+U(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=h&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=h&&(this.k0=.5*this.cons*q(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/z(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=q(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-s,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,r,n,i,o,a,u=e.x,l=e.y,c=Math.sin(l),f=Math.cos(l),d=J(u-this.long0);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=h&&Math.abs(l+this.lat0)<=h?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*c+this.coslat0*f*Math.cos(d)),e.x=this.a*t*f*Math.sin(d)+this.x0,e.y=this.a*t*(this.coslat0*c-this.sinlat0*f*Math.cos(d))+this.y0,e):(r=2*Math.atan(this.ssfn_(l,c,this.e))-s,i=Math.cos(r),n=Math.sin(r),Math.abs(this.coslat0)<=h?(o=z(this.e,l*this.con,this.con*c),a=2*this.a*this.k0*o/this.cons,e.x=this.x0+a*Math.sin(u-this.long0),e.y=this.y0-this.con*a*Math.cos(u-this.long0),e):(Math.abs(this.sinlat0)<h?(t=2*this.a*this.k0/(1+i*Math.cos(d)),e.y=t*n):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*n+this.cosX0*i*Math.cos(d))),e.y=t*(this.cosX0*n-this.sinX0*i*Math.cos(d))+this.y0),e.x=t*i*Math.sin(d)+this.x0,e))},inverse:function(e){var t,r,n,i,o;e.x-=this.x0,e.y-=this.y0;var a=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var u=2*Math.atan(a/(2*this.a*this.k0));return t=this.long0,r=this.lat0,a<=h?(e.x=t,e.y=r,e):(r=Math.asin(Math.cos(u)*this.sinlat0+e.y*Math.sin(u)*this.coslat0/a),t=Math.abs(this.coslat0)<h?this.lat0>0?J(this.long0+Math.atan2(e.x,-1*e.y)):J(this.long0+Math.atan2(e.x,e.y)):J(this.long0+Math.atan2(e.x*Math.sin(u),a*this.coslat0*Math.cos(u)-e.y*this.sinlat0*Math.sin(u))),e.x=t,e.y=r,e)}if(Math.abs(this.coslat0)<=h){if(a<=h)return r=this.lat0,t=this.long0,e.x=t,e.y=r,e;e.x*=this.con,e.y*=this.con,n=a*this.cons/(2*this.a*this.k0),r=this.con*W(this.e,n),t=this.con*J(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else i=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=h?o=this.X0:(o=Math.asin(Math.cos(i)*this.sinX0+e.y*Math.sin(i)*this.cosX0/a),t=J(this.long0+Math.atan2(e.x*Math.sin(i),a*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)))),r=-1*W(this.e,Math.tan(.5*(s+o)));return e.x=t,e.y=r,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function(e,t,r){return t*=r,Math.tan(.5*(s+e))*Math.pow((1-t)/(1+t),.5*r)}},ut={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),r=this.a,n=1/this.rf,i=2*n-Math.pow(n,2),o=this.e=Math.sqrt(i);this.R=this.k0*r*Math.sqrt(1-i)/(1-i*Math.pow(t,2)),this.alpha=Math.sqrt(1+i/(1-i)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+e/2)),u=Math.log((1+o*t)/(1-o*t));this.K=a-this.alpha*s+this.alpha*o/2*u},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),r=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),n=-this.alpha*(t+r)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),o=this.alpha*(e.x-this.lambda0),a=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(o))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(o));return e.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,e.x=this.R*a+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,r=e.y-this.y0,n=t/this.R,i=2*(Math.atan(Math.exp(r/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),a=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+a/this.alpha,u=0,l=o,c=-1e3,h=0;Math.abs(l-c)>1e-7;){if(++h>20)return;u=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),c=l,l=2*Math.atan(Math.exp(u))-Math.PI/2}return e.x=s,e.y=l,e},names:["somerc"]},lt=1e-7,ct={init:function(){var e,t,r,n,i,o,a,u,l,c,d,g=0,m=0,v=0,_=0,S=0,x=0,b=0;this.no_off=function(e){var t="object"==typeof e.PROJECTION?Object.keys(e.PROJECTION)[0]:e.PROJECTION;return"no_uoff"in e||"no_off"in e||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(t)}(this),this.no_rot="no_rot"in this;var w=!1;"alpha"in this&&(w=!0);var k=!1;if("rectified_grid_angle"in this&&(k=!0),w&&(b=this.alpha),k&&(g=this.rectified_grid_angle*f),w||k)m=this.longc;else if(v=this.long1,S=this.lat1,_=this.long2,x=this.lat2,Math.abs(S-x)<=lt||(e=Math.abs(S))<=lt||Math.abs(e-s)<=lt||Math.abs(Math.abs(this.lat0)-s)<=lt||Math.abs(Math.abs(x)-s)<=lt)throw new Error;var M=1-this.es;t=Math.sqrt(M),Math.abs(this.lat0)>h?(u=Math.sin(this.lat0),r=Math.cos(this.lat0),e=1-this.es*u*u,this.B=r*r,this.B=Math.sqrt(1+this.es*this.B*this.B/M),this.A=this.B*this.k0*t/e,(i=(n=this.B*t/(r*Math.sqrt(e)))*n-1)<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=n,this.E*=Math.pow(z(this.e,this.lat0,u),this.B)):(this.B=1/t,this.A=this.k0,this.E=n=i=1),w||k?(w?(d=Math.asin(Math.sin(b)/n),k||(g=b)):(d=g,b=Math.asin(n*Math.sin(d))),this.lam0=m-Math.asin(.5*(i-1/i)*Math.tan(d))/this.B):(o=Math.pow(z(this.e,S,Math.sin(S)),this.B),a=Math.pow(z(this.e,x,Math.sin(x)),this.B),i=this.E/o,l=(a-o)/(a+o),c=((c=this.E*this.E)-a*o)/(c+a*o),(e=v-_)<-Math.pi?_-=y:e>Math.pi&&(_+=y),this.lam0=J(.5*(v+_)-Math.atan(c*Math.tan(.5*this.B*(v-_))/l)/this.B),d=Math.atan(2*Math.sin(this.B*J(v-this.lam0))/(i-1/i)),g=b=Math.asin(n*Math.sin(d))),this.singam=Math.sin(d),this.cosgam=Math.cos(d),this.sinrot=Math.sin(g),this.cosrot=Math.cos(g),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(b))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*d,this.v_pole_n=this.ArB*Math.log(Math.tan(p-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(p+i))},forward:function(e){var t,r,n,i,o,a,u,l,c={};if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-s)>h){if(t=.5*((o=this.E/Math.pow(z(this.e,e.y,Math.sin(e.y)),this.B))-(a=1/o)),r=.5*(o+a),i=Math.sin(this.B*e.x),n=(t*this.singam-i*this.cosgam)/r,Math.abs(Math.abs(n)-1)<h)throw new Error;l=.5*this.ArB*Math.log((1-n)/(1+n)),a=Math.cos(this.B*e.x),u=Math.abs(a)<lt?this.A*e.x:this.ArB*Math.atan2(t*this.cosgam+i*this.singam,a)}else l=e.y>0?this.v_pole_n:this.v_pole_s,u=this.ArB*e.y;return this.no_rot?(c.x=u,c.y=l):(u-=this.u_0,c.x=l*this.cosrot+u*this.sinrot,c.y=u*this.cosrot-l*this.sinrot),c.x=this.a*c.x+this.x0,c.y=this.a*c.y+this.y0,c},inverse:function(e){var t,r,n,i,o,a,u,l={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(r=e.y,t=e.x):(r=e.x*this.cosrot-e.y*this.sinrot,t=e.y*this.cosrot+e.x*this.sinrot+this.u_0),i=.5*((n=Math.exp(-this.BrA*r))-1/n),o=.5*(n+1/n),u=((a=Math.sin(this.BrA*t))*this.cosgam+i*this.singam)/o,Math.abs(Math.abs(u)-1)<h)l.x=0,l.y=u<0?-s:s;else{if(l.y=this.E/Math.sqrt((1+u)/(1-u)),l.y=W(this.e,Math.pow(l.y,1/this.B)),l.y===1/0)throw new Error;l.x=-this.rB*Math.atan2(i*this.cosgam-a*this.singam,Math.cos(this.BrA*t))}return l.x+=this.lam0,l},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]},ht={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<h)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),r=Math.cos(this.lat1),n=q(this.e,t,r),i=z(this.e,this.lat1,t),o=Math.sin(this.lat2),a=Math.cos(this.lat2),s=q(this.e,o,a),u=z(this.e,this.lat2,o),l=z(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>h?this.ns=Math.log(n/s)/Math.log(i/u):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,r=e.y;Math.abs(2*Math.abs(r)-Math.PI)<=h&&(r=U(r)*(s-2*h));var n,i,o=Math.abs(Math.abs(r)-s);if(o>h)n=z(this.e,r,Math.sin(r)),i=this.a*this.f0*Math.pow(n,this.ns);else{if((o=r*this.ns)<=0)return null;i=0}var a=this.ns*J(t-this.long0);return e.x=this.k0*(i*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-i*Math.cos(a))+this.y0,e},inverse:function(e){var t,r,n,i,o,a=(e.x-this.x0)/this.k0,u=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+u*u),r=1):(t=-Math.sqrt(a*a+u*u),r=-1);var l=0;if(0!==t&&(l=Math.atan2(r*a,r*u)),0!==t||this.ns>0){if(r=1/this.ns,n=Math.pow(t/(this.a*this.f0),r),-9999===(i=W(this.e,n)))return null}else i=-s;return o=J(l/this.ns+this.long0),e.x=o,e.y=i,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]},ft={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,r,n,i,o,a,s,u=e.x,l=e.y,c=J(u-this.long0);return t=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),r=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/t)-this.s45),n=-c*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(r)+Math.sin(this.ad)*Math.cos(r)*Math.cos(n)),o=Math.asin(Math.cos(r)*Math.sin(n)/Math.cos(i)),a=this.n*o,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=s*Math.cos(a)/1,e.x=s*Math.sin(a)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,r,n,i,o,a,s,u=e.x;e.x=e.y,e.y=u,this.czech||(e.y*=-1,e.x*=-1),o=Math.sqrt(e.x*e.x+e.y*e.y),i=Math.atan2(e.y,e.x)/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),r=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(t)),e.x=this.long0-r/this.alfa,a=t,s=0;var l=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-e.y)<1e-10&&(s=1),a=e.y,l+=1}while(0===s&&l<15);return l>=15?null:e},names:["Krovak","krovak"]},dt=function(e,t,r,n,i){return e*i-t*Math.sin(2*i)+r*Math.sin(4*i)-n*Math.sin(6*i)},pt=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))},yt=function(e){return.375*e*(1+.25*e*(1+.46875*e))},gt=function(e){return.05859375*e*e*(1+.75*e)},mt=function(e){return e*e*e*(35/3072)},vt=function(e,t,r){var n=t*r;return e/Math.sqrt(1-n*n)},_t=function(e){return Math.abs(e)<s?e:e-U(e)*Math.PI},St=function(e,t,r,n,i){var o,a;o=e/t;for(var s=0;s<15;s++)if(o+=a=(e-(t*o-r*Math.sin(2*o)+n*Math.sin(4*o)-i*Math.sin(6*o)))/(t-2*r*Math.cos(2*o)+4*n*Math.cos(4*o)-6*i*Math.cos(6*o)),Math.abs(a)<=1e-10)return o;return NaN},xt={init:function(){this.sphere||(this.e0=pt(this.es),this.e1=yt(this.es),this.e2=gt(this.es),this.e3=mt(this.es),this.ml0=this.a*dt(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(e){var t,r,n=e.x,i=e.y;if(n=J(n-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(i)*Math.sin(n)),r=this.a*(Math.atan2(Math.tan(i),Math.cos(n))-this.lat0);else{var o=Math.sin(i),a=Math.cos(i),s=vt(this.a,this.e,o),u=Math.tan(i)*Math.tan(i),l=n*Math.cos(i),c=l*l,h=this.es*a*a/(1-this.es);t=s*l*(1-c*u*(1/6-(8-u+8*h)*c/120)),r=this.a*dt(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+s*o/a*c*(.5+(5-u+6*h)*c/24)}return e.x=t+this.x0,e.y=r+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,r,n=e.x/this.a,i=e.y/this.a;if(this.sphere){var o=i+this.lat0;t=Math.asin(Math.sin(o)*Math.cos(n)),r=Math.atan2(Math.tan(n),Math.cos(o))}else{var a=this.ml0/this.a+i,u=St(a,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(u)-s)<=h)return e.x=this.long0,e.y=s,i<0&&(e.y*=-1),e;var l=vt(this.a,this.e,Math.sin(u)),c=l*l*l/this.a/this.a*(1-this.es),f=Math.pow(Math.tan(u),2),d=n*this.a/l,p=d*d;t=u-l*Math.tan(u)/c*d*d*(.5-(1+3*f)*d*d/24),r=d*(1-p*(f/3+(1+3*f)*f*p/15))/Math.cos(u)}return e.x=J(r+this.long0),e.y=_t(t),e},names:["Cassini","Cassini_Soldner","cass"]},bt=function(e,t){var r;return e>1e-7?(1-e*e)*(t/(1-(r=e*t)*r)-.5/e*Math.log((1-r)/(1+r))):2*t},wt={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-s)<h?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<h?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=bt(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,r=[];return r[0]=.3333333333333333*e,t=e*e,r[0]+=.17222222222222222*t,r[1]=.06388888888888888*t,t*=e,r[0]+=.10257936507936508*t,r[1]+=.0664021164021164*t,r[2]=.016415012942191543*t,r}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=bt(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var t,r,n,i,o,a,u,l,c,f,d=e.x,y=e.y;if(d=J(d-this.long0),this.sphere){if(o=Math.sin(y),f=Math.cos(y),n=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((r=this.mode===this.EQUIT?1+f*n:1+this.sinph0*o+this.cosph0*f*n)<=h)return null;t=(r=Math.sqrt(2/r))*f*Math.sin(d),r*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*f*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(y+this.lat0)<h)return null;r=p-.5*y,t=(r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)))*Math.sin(d),r*=n}}else{switch(u=0,l=0,c=0,n=Math.cos(d),i=Math.sin(d),o=Math.sin(y),a=bt(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(u=a/this.qp,l=Math.sqrt(1-u*u)),this.mode){case this.OBLIQ:c=1+this.sinb1*u+this.cosb1*l*n;break;case this.EQUIT:c=1+l*n;break;case this.N_POLE:c=s+y,a=this.qp-a;break;case this.S_POLE:c=y-s,a=this.qp+a}if(Math.abs(c)<h)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math.sqrt(2/c),r=this.mode===this.OBLIQ?this.ymf*c*(this.cosb1*u-this.sinb1*l*n):(c=Math.sqrt(2/(1+l*n)))*u*this.ymf,t=this.xmf*c*l*i;break;case this.N_POLE:case this.S_POLE:a>=0?(t=(c=Math.sqrt(a))*i,r=n*(this.mode===this.S_POLE?c:-c)):t=r=0}}return e.x=this.a*t+this.x0,e.y=this.a*r+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,i,o,a,u,l=e.x/this.a,c=e.y/this.a;if(this.sphere){var f,d=0,p=0;if((r=.5*(f=Math.sqrt(l*l+c*c)))>1)return null;switch(r=2*Math.asin(r),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(p=Math.sin(r),d=Math.cos(r)),this.mode){case this.EQUIT:r=Math.abs(f)<=h?0:Math.asin(c*p/f),l*=p,c=d*f;break;case this.OBLIQ:r=Math.abs(f)<=h?this.lat0:Math.asin(d*this.sinph0+c*p*this.cosph0/f),l*=p*this.cosph0,c=(d-Math.sin(r)*this.sinph0)*f;break;case this.N_POLE:c=-c,r=s-r;break;case this.S_POLE:r-=s}t=0!==c||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(l,c):0}else{if(u=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(l/=this.dd,c*=this.dd,(a=Math.sqrt(l*l+c*c))<h)return e.x=this.long0,e.y=this.lat0,e;i=2*Math.asin(.5*a/this.rq),n=Math.cos(i),l*=i=Math.sin(i),this.mode===this.OBLIQ?(u=n*this.sinb1+c*i*this.cosb1/a,o=this.qp*u,c=a*this.cosb1*n-c*this.sinb1*i):(u=c*i/a,o=this.qp*u,c=a*n)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(c=-c),!(o=l*l+c*c))return e.x=this.long0,e.y=this.lat0,e;u=1-o/this.qp,this.mode===this.S_POLE&&(u=-u)}t=Math.atan2(l,c),r=function(e,t){var r=e+e;return e+t[0]*Math.sin(r)+t[1]*Math.sin(r+r)+t[2]*Math.sin(r+r+r)}(Math.asin(u),this.apa)}return e.x=J(this.long0+t),e.y=r,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4},kt=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)},Mt={init:function(){Math.abs(this.lat1+this.lat2)<h||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=q(this.e3,this.sin_po,this.cos_po),this.qs1=bt(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=q(this.e3,this.sin_po,this.cos_po),this.qs2=bt(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=bt(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>h?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,r=e.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var n=bt(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,o=this.ns0*J(t-this.long0),a=i*Math.sin(o)+this.x0,s=this.rh-i*Math.cos(o)+this.y0;return e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i,o,a;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),n=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),n=-1),i=0,0!==t&&(i=Math.atan2(n*e.x,n*e.y)),n=t*this.ns0/this.a,this.sphere?a=Math.asin((this.c-n*n)/(2*this.ns0)):(r=(this.c-n*n)/this.ns0,a=this.phi1z(this.e3,r)),o=J(i/this.ns0+this.long0),e.x=o,e.y=a,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var r,n,i,o,a,s=kt(.5*t);if(e<h)return s;for(var u=e*e,l=1;l<=25;l++)if(r=Math.sin(s),n=Math.cos(s),s+=a=.5*(o=1-(i=e*r)*i)*o/n*(t/(1-u)-r/o+.5/e*Math.log((1-i)/(1+i))),Math.abs(a)<=1e-7)return s;return null}},Et={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,r,n,i,o,a,s,u=e.x,l=e.y;return n=J(u-this.long0),t=Math.sin(l),r=Math.cos(l),i=Math.cos(n),(o=this.sin_p14*t+this.cos_p14*r*i)>0||Math.abs(o)<=h?(a=this.x0+1*this.a*r*Math.sin(n)/o,s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*i)/o):(a=this.x0+this.infinity_dist*r*Math.sin(n),s=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*r*i)),e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i,o,a;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),r=Math.sin(i),n=Math.cos(i),a=kt(n*this.sin_p14+e.y*r*this.cos_p14/t),o=Math.atan2(e.x*r,t*this.cos_p14*n-e.y*this.sin_p14*r),o=J(this.long0+o)):(a=this.phic0,o=0),e.x=o,e.y=a,e},names:["gnom"]},It={init:function(){this.sphere||(this.k0=q(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,r,n=e.x,i=e.y,o=J(n-this.long0);if(this.sphere)t=this.x0+this.a*o*Math.cos(this.lat_ts),r=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var a=bt(this.e,Math.sin(i));t=this.x0+this.a*this.k0*o,r=this.y0+this.a*a*.5/this.k0}return e.x=t,e.y=r,e},inverse:function(e){var t,r;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=J(this.long0+e.x/this.a/Math.cos(this.lat_ts)),r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(r=function(e,t){var r=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-r)<1e-6)return t<0?-1*s:s;for(var n,i,o,a,u=Math.asin(.5*t),l=0;l<30;l++)if(i=Math.sin(u),o=Math.cos(u),a=e*i,u+=n=Math.pow(1-a*a,2)/(2*o)*(t/(1-e*e)-i/(1-a*a)+.5/e*Math.log((1-a)/(1+a))),Math.abs(n)<=1e-10)return u;return NaN}(this.e,2*e.y*this.k0/this.a),t=J(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=r,e},names:["cea"]},Tt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,r=e.y,n=J(t-this.long0),i=_t(r-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*i,e},inverse:function(e){var t=e.x,r=e.y;return e.x=J(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=_t(this.lat0+(r-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]},Lt={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=pt(this.es),this.e1=yt(this.es),this.e2=gt(this.es),this.e3=mt(this.es),this.ml0=this.a*dt(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,r,n,i=e.x,o=e.y,a=J(i-this.long0);if(n=a*Math.sin(o),this.sphere)Math.abs(o)<=h?(t=this.a*a,r=-1*this.a*this.lat0):(t=this.a*Math.sin(n)/Math.tan(o),r=this.a*(_t(o-this.lat0)+(1-Math.cos(n))/Math.tan(o)));else if(Math.abs(o)<=h)t=this.a*a,r=-1*this.ml0;else{var s=vt(this.a,this.e,Math.sin(o))/Math.tan(o);t=s*Math.sin(n),r=this.a*dt(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+s*(1-Math.cos(n))}return e.x=t+this.x0,e.y=r+this.y0,e},inverse:function(e){var t,r,n,i,o,a,s,u,l;if(n=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=h)t=J(n/this.a+this.long0),r=0;else{var c;for(a=this.lat0+i/this.a,s=n*n/this.a/this.a+a*a,u=a,o=20;o;--o)if(u+=l=-1*(a*(u*(c=Math.tan(u))+1)-u-.5*(u*u+s)*c)/((u-a)/c-1),Math.abs(l)<=h){r=u;break}t=J(this.long0+Math.asin(n*Math.tan(u)/this.a)/Math.sin(r))}else if(Math.abs(i+this.ml0)<=h)r=0,t=J(this.long0+n/this.a);else{var f,d,p,y,g;for(a=(this.ml0+i)/this.a,s=n*n/this.a/this.a+a*a,u=a,o=20;o;--o)if(g=this.e*Math.sin(u),f=Math.sqrt(1-g*g)*Math.tan(u),d=this.a*dt(this.e0,this.e1,this.e2,this.e3,u),p=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),u-=l=(a*(f*(y=d/this.a)+1)-y-.5*f*(y*y+s))/(this.es*Math.sin(2*u)*(y*y+s-2*a*y)/(4*f)+(a-y)*(f*p-2/Math.sin(2*u))-p),Math.abs(l)<=h){r=u;break}f=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),t=J(this.long0+Math.asin(n*f/this.a)/Math.sin(r))}return e.x=t,e.y=r,e},names:["Polyconic","poly"]},Ct={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(e){var t,r=e.x,n=e.y-this.lat0,i=r-this.long0,o=n/a*1e-5,s=i,u=1,l=0;for(t=1;t<=10;t++)u*=o,l+=this.A[t]*u;var c,h=l,f=s,d=1,p=0,y=0,g=0;for(t=1;t<=6;t++)c=p*h+d*f,d=d*h-p*f,p=c,y=y+this.B_re[t]*d-this.B_im[t]*p,g=g+this.B_im[t]*d+this.B_re[t]*p;return e.x=g*this.a+this.x0,e.y=y*this.a+this.y0,e},inverse:function(e){var t,r,n=e.x,i=e.y,o=n-this.x0,s=(i-this.y0)/this.a,u=o/this.a,l=1,c=0,h=0,f=0;for(t=1;t<=6;t++)r=c*s+l*u,l=l*s-c*u,c=r,h=h+this.C_re[t]*l-this.C_im[t]*c,f=f+this.C_im[t]*l+this.C_re[t]*c;for(var d=0;d<this.iterations;d++){var p,y=h,g=f,m=s,v=u;for(t=2;t<=6;t++)p=g*h+y*f,y=y*h-g*f,g=p,m+=(t-1)*(this.B_re[t]*y-this.B_im[t]*g),v+=(t-1)*(this.B_im[t]*y+this.B_re[t]*g);y=1,g=0;var _=this.B_re[1],S=this.B_im[1];for(t=2;t<=6;t++)p=g*h+y*f,y=y*h-g*f,g=p,_+=t*(this.B_re[t]*y-this.B_im[t]*g),S+=t*(this.B_im[t]*y+this.B_re[t]*g);var x=_*_+S*S;h=(m*_+v*S)/x,f=(v*_-m*S)/x}var b=h,w=f,k=1,M=0;for(t=1;t<=9;t++)k*=b,M+=this.D[t]*k;var E=this.lat0+M*a*1e5,I=this.long0+w;return e.x=I,e.y=E,e},names:["New_Zealand_Map_Grid","nzmg"]},Pt={init:function(){},forward:function(e){var t=e.x,r=e.y,n=J(t-this.long0),i=this.x0+this.a*n,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+r/2.5))*1.25;return e.x=i,e.y=o,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t=J(this.long0+e.x/this.a),r=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=r,e},names:["Miller_Cylindrical","mill"]},Nt={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=Xe(this.es)},forward:function(e){var t,r,n=e.x,i=e.y;if(n=J(n-this.long0),this.sphere){if(this.m)for(var o=this.n*Math.sin(i),a=20;a;--a){var s=(this.m*i+Math.sin(i)-o)/(this.m+Math.cos(i));if(i-=s,Math.abs(s)<h)break}else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;t=this.a*this.C_x*n*(this.m+Math.cos(i)),r=this.a*this.C_y*i}else{var u=Math.sin(i),l=Math.cos(i);r=this.a*Ye(i,u,l,this.en),t=this.a*n*l/Math.sqrt(1-this.es*u*u)}return e.x=t,e.y=r,e},inverse:function(e){var t,r,n,i;return e.x-=this.x0,n=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this.C_y,n/=this.C_x*(this.m+Math.cos(t)),this.m?t=kt((this.m*t+Math.sin(t))/this.n):1!==this.n&&(t=kt(Math.sin(t)/this.n)),n=J(n+this.long0),t=_t(t)):(t=Ze(e.y/this.a,this.es,this.en),(i=Math.abs(t))<s?(i=Math.sin(t),r=this.long0+e.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(t)),n=J(r)):i-h<s&&(n=this.long0)),e.x=n,e.y=t,e},names:["Sinusoidal","sinu"]},Ot={init:function(){},forward:function(e){for(var t=e.x,r=e.y,n=J(t-this.long0),i=r,o=Math.PI*Math.sin(r);;){var a=-(i+Math.sin(i)-o)/(1+Math.cos(i));if(i+=a,Math.abs(a)<h)break}i/=2,Math.PI/2-Math.abs(r)<h&&(n=0);var s=.900316316158*this.a*n*Math.cos(i)+this.x0,u=1.4142135623731*this.a*Math.sin(i)+this.y0;return e.x=s,e.y=u,e},inverse:function(e){var t,r;e.x-=this.x0,e.y-=this.y0,r=e.y/(1.4142135623731*this.a),Math.abs(r)>.999999999999&&(r=.999999999999),t=Math.asin(r);var n=J(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),r=(2*t+Math.sin(2*t))/Math.PI,Math.abs(r)>1&&(r=1);var i=Math.asin(r);return e.x=n,e.y=i,e},names:["Mollweide","moll"]},Rt={init:function(){Math.abs(this.lat1+this.lat2)<h||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=pt(this.es),this.e1=yt(this.es),this.e2=gt(this.es),this.e3=mt(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=q(this.e,this.sinphi,this.cosphi),this.ml1=dt(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<h?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=q(this.e,this.sinphi,this.cosphi),this.ml2=dt(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=dt(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,r=e.x,n=e.y;if(this.sphere)t=this.a*(this.g-n);else{var i=dt(this.e0,this.e1,this.e2,this.e3,n);t=this.a*(this.g-i)}var o=this.ns*J(r-this.long0),a=this.x0+t*Math.sin(o),s=this.y0+this.rh-t*Math.cos(o);return e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(r=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(r=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var o=0;if(0!==r&&(o=Math.atan2(t*e.x,t*e.y)),this.sphere)return i=J(this.long0+o/this.ns),n=_t(this.g-r/this.a),e.x=i,e.y=n,e;var a=this.g-r/this.a;return n=St(a,this.e0,this.e1,this.e2,this.e3),i=J(this.long0+o/this.ns),e.x=i,e.y=n,e},names:["Equidistant_Conic","eqdc"]},Vt={init:function(){this.R=this.a},forward:function(e){var t,r,n=e.x,i=e.y,o=J(n-this.long0);Math.abs(i)<=h&&(t=this.x0+this.R*o,r=this.y0);var a=kt(2*Math.abs(i/Math.PI));(Math.abs(o)<=h||Math.abs(Math.abs(i)-s)<=h)&&(t=this.x0,r=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+Math.PI*this.R*-Math.tan(.5*a));var u=.5*Math.abs(Math.PI/o-o/Math.PI),l=u*u,c=Math.sin(a),f=Math.cos(a),d=f/(c+f-1),p=d*d,y=d*(2/c-1),g=y*y,m=Math.PI*this.R*(u*(d-g)+Math.sqrt(l*(d-g)*(d-g)-(g+l)*(p-g)))/(g+l);o<0&&(m=-m),t=this.x0+m;var v=l+d;return m=Math.PI*this.R*(y*v-u*Math.sqrt((g+l)*(l+1)-v*v))/(g+l),r=i>=0?this.y0+m:this.y0-m,e.x=t,e.y=r,e},inverse:function(e){var t,r,n,i,o,a,s,u,l,c,f,d;return e.x-=this.x0,e.y-=this.y0,f=Math.PI*this.R,o=(n=e.x/f)*n+(i=e.y/f)*i,f=3*(i*i/(u=-2*(a=-Math.abs(i)*(1+o))+1+2*i*i+o*o)+(2*(s=a-2*i*i+n*n)*s*s/u/u/u-9*a*s/u/u)/27)/(l=(a-s*s/3/u)/u)/(c=2*Math.sqrt(-l/3)),Math.abs(f)>1&&(f=f>=0?1:-1),d=Math.acos(f)/3,r=e.y>=0?(-c*Math.cos(d+Math.PI/3)-s/3/u)*Math.PI:-(-c*Math.cos(d+Math.PI/3)-s/3/u)*Math.PI,t=Math.abs(n)<h?this.long0:J(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(n*n-i*i)+o*o))/2/n),e.x=t,e.y=r,e},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]},Gt={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(e){var t,r,n,i,o,a,u,l,c,f,d,p,y,g,m,v,_,S,x,b,w,k,M=e.x,E=e.y,I=Math.sin(e.y),T=Math.cos(e.y),L=J(M-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=h?(e.x=this.x0+this.a*(s-E)*Math.sin(L),e.y=this.y0-this.a*(s-E)*Math.cos(L),e):Math.abs(this.sin_p12+1)<=h?(e.x=this.x0+this.a*(s+E)*Math.sin(L),e.y=this.y0+this.a*(s+E)*Math.cos(L),e):(S=this.sin_p12*I+this.cos_p12*T*Math.cos(L),_=(v=Math.acos(S))?v/Math.sin(v):1,e.x=this.x0+this.a*_*T*Math.sin(L),e.y=this.y0+this.a*_*(this.cos_p12*I-this.sin_p12*T*Math.cos(L)),e):(t=pt(this.es),r=yt(this.es),n=gt(this.es),i=mt(this.es),Math.abs(this.sin_p12-1)<=h?(o=this.a*dt(t,r,n,i,s),a=this.a*dt(t,r,n,i,E),e.x=this.x0+(o-a)*Math.sin(L),e.y=this.y0-(o-a)*Math.cos(L),e):Math.abs(this.sin_p12+1)<=h?(o=this.a*dt(t,r,n,i,s),a=this.a*dt(t,r,n,i,E),e.x=this.x0+(o+a)*Math.sin(L),e.y=this.y0+(o+a)*Math.cos(L),e):(u=I/T,l=vt(this.a,this.e,this.sin_p12),c=vt(this.a,this.e,I),f=Math.atan((1-this.es)*u+this.es*l*this.sin_p12/(c*T)),x=0===(d=Math.atan2(Math.sin(L),this.cos_p12*Math.tan(f)-this.sin_p12*Math.cos(L)))?Math.asin(this.cos_p12*Math.sin(f)-this.sin_p12*Math.cos(f)):Math.abs(Math.abs(d)-Math.PI)<=h?-Math.asin(this.cos_p12*Math.sin(f)-this.sin_p12*Math.cos(f)):Math.asin(Math.sin(L)*Math.cos(f)/Math.sin(d)),p=this.e*this.sin_p12/Math.sqrt(1-this.es),v=l*x*(1-(b=x*x)*(m=(y=this.e*this.cos_p12*Math.cos(d)/Math.sqrt(1-this.es))*y)*(1-m)/6+(w=b*x)/8*(g=p*y)*(1-2*m)+(k=w*x)/120*(m*(4-7*m)-3*p*p*(1-7*m))-k*x/48*g),e.x=this.x0+v*Math.sin(d),e.y=this.y0+v*Math.cos(d),e))},inverse:function(e){var t,r,n,i,o,a,u,l,c,f,d,p,y,g,m,v,_,S,x,b,w,k,M;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*s*this.a)return;return r=t/this.a,n=Math.sin(r),i=Math.cos(r),o=this.long0,Math.abs(t)<=h?a=this.lat0:(a=kt(i*this.sin_p12+e.y*n*this.cos_p12/t),u=Math.abs(this.lat0)-s,o=Math.abs(u)<=h?this.lat0>=0?J(this.long0+Math.atan2(e.x,-e.y)):J(this.long0-Math.atan2(-e.x,e.y)):J(this.long0+Math.atan2(e.x*n,t*this.cos_p12*i-e.y*this.sin_p12*n))),e.x=o,e.y=a,e}return l=pt(this.es),c=yt(this.es),f=gt(this.es),d=mt(this.es),Math.abs(this.sin_p12-1)<=h?(p=this.a*dt(l,c,f,d,s),t=Math.sqrt(e.x*e.x+e.y*e.y),a=St((p-t)/this.a,l,c,f,d),o=J(this.long0+Math.atan2(e.x,-1*e.y)),e.x=o,e.y=a,e):Math.abs(this.sin_p12+1)<=h?(p=this.a*dt(l,c,f,d,s),t=Math.sqrt(e.x*e.x+e.y*e.y),a=St((t-p)/this.a,l,c,f,d),o=J(this.long0+Math.atan2(e.x,e.y)),e.x=o,e.y=a,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),m=Math.atan2(e.x,e.y),y=vt(this.a,this.e,this.sin_p12),v=Math.cos(m),S=-(_=this.e*this.cos_p12*v)*_/(1-this.es),x=3*this.es*(1-S)*this.sin_p12*this.cos_p12*v/(1-this.es),k=1-S*(w=(b=t/y)-S*(1+S)*Math.pow(b,3)/6-x*(1+3*S)*Math.pow(b,4)/24)*w/2-b*w*w*w/6,g=Math.asin(this.sin_p12*Math.cos(w)+this.cos_p12*Math.sin(w)*v),o=J(this.long0+Math.asin(Math.sin(m)*Math.sin(w)/Math.cos(g))),M=Math.sin(g),a=Math.atan2((M-this.es*k*this.sin_p12)*Math.tan(g),M*(1-this.es)),e.x=o,e.y=a,e)},names:["Azimuthal_Equidistant","aeqd"]},At={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,r,n,i,o,a,s,u=e.x,l=e.y;return n=J(u-this.long0),t=Math.sin(l),r=Math.cos(l),i=Math.cos(n),((o=this.sin_p14*t+this.cos_p14*r*i)>0||Math.abs(o)<=h)&&(a=1*this.a*r*Math.sin(n),s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*i)),e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i,o,a,u;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),r=kt(t/this.a),n=Math.sin(r),i=Math.cos(r),a=this.long0,Math.abs(t)<=h?(u=this.lat0,e.x=a,e.y=u,e):(u=kt(i*this.sin_p14+e.y*n*this.cos_p14/t),o=Math.abs(this.lat0)-s,Math.abs(o)<=h?(a=this.lat0>=0?J(this.long0+Math.atan2(e.x,-e.y)):J(this.long0-Math.atan2(-e.x,e.y)),e.x=a,e.y=u,e):(a=J(this.long0+Math.atan2(e.x*n,t*this.cos_p14*i-e.y*this.sin_p14*n)),e.x=a,e.y=u,e))},names:["ortho"]},Dt=1,Ft=2,jt=3,Bt=4,qt=5,Ut=6,Jt={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function zt(e,t,r,n){var i;return e<h?(n.value=Jt.AREA_0,i=0):(i=Math.atan2(t,r),Math.abs(i)<=p?n.value=Jt.AREA_0:i>p&&i<=s+p?(n.value=Jt.AREA_1,i-=s):i>s+p||i<=-(s+p)?(n.value=Jt.AREA_2,i=i>=0?i-g:i+g):(n.value=Jt.AREA_3,i+=s)),i}function Wt(e,t){var r=e+t;return r<-g?r+=y:r>+g&&(r-=y),r}var Ht={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=s-p/2?this.face=qt:this.lat0<=-(s-p/2)?this.face=Ut:Math.abs(this.long0)<=p?this.face=Dt:Math.abs(this.long0)<=s+p?this.face=this.long0>0?Ft:Bt:this.face=jt,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var t,r,n,i,o,a,u={x:0,y:0},l={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,r=e.x,this.face===qt)i=s-t,r>=p&&r<=s+p?(l.value=Jt.AREA_0,n=r-s):r>s+p||r<=-(s+p)?(l.value=Jt.AREA_1,n=r>0?r-g:r+g):r>-(s+p)&&r<=-p?(l.value=Jt.AREA_2,n=r+s):(l.value=Jt.AREA_3,n=r);else if(this.face===Ut)i=s+t,r>=p&&r<=s+p?(l.value=Jt.AREA_0,n=-r+s):r<p&&r>=-p?(l.value=Jt.AREA_1,n=-r):r<-p&&r>=-(s+p)?(l.value=Jt.AREA_2,n=-r-s):(l.value=Jt.AREA_3,n=r>0?-r+g:-r-g);else{var c,h,f,d,y,m;this.face===Ft?r=Wt(r,+s):this.face===jt?r=Wt(r,+g):this.face===Bt&&(r=Wt(r,-s)),d=Math.sin(t),y=Math.cos(t),m=Math.sin(r),c=y*Math.cos(r),h=y*m,f=d,this.face===Dt?n=zt(i=Math.acos(c),f,h,l):this.face===Ft?n=zt(i=Math.acos(h),f,-c,l):this.face===jt?n=zt(i=Math.acos(-c),f,-h,l):this.face===Bt?n=zt(i=Math.acos(-h),f,c,l):(i=n=0,l.value=Jt.AREA_0)}return a=Math.atan(12/g*(n+Math.acos(Math.sin(n)*Math.cos(p))-s)),o=Math.sqrt((1-Math.cos(i))/(Math.cos(a)*Math.cos(a))/(1-Math.cos(Math.atan(1/Math.cos(n))))),l.value===Jt.AREA_1?a+=s:l.value===Jt.AREA_2?a+=g:l.value===Jt.AREA_3&&(a+=1.5*g),u.x=o*Math.cos(a),u.y=o*Math.sin(a),u.x=u.x*this.a+this.x0,u.y=u.y*this.a+this.y0,e.x=u.x,e.y=u.y,e},inverse:function(e){var t,r,n,i,o,a,u,l,c,h,f,d,p={lam:0,phi:0},y={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,r=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?y.value=Jt.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(y.value=Jt.AREA_1,t-=s):e.x<0&&-e.x>=Math.abs(e.y)?(y.value=Jt.AREA_2,t=t<0?t+g:t-g):(y.value=Jt.AREA_3,t+=s),c=g/12*Math.tan(t),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),a=Math.atan(o),(u=1-(n=Math.cos(t))*n*(i=Math.tan(r))*i*(1-Math.cos(Math.atan(1/Math.cos(a)))))<-1?u=-1:u>1&&(u=1),this.face===qt)l=Math.acos(u),p.phi=s-l,y.value===Jt.AREA_0?p.lam=a+s:y.value===Jt.AREA_1?p.lam=a<0?a+g:a-g:y.value===Jt.AREA_2?p.lam=a-s:p.lam=a;else if(this.face===Ut)l=Math.acos(u),p.phi=l-s,y.value===Jt.AREA_0?p.lam=-a+s:y.value===Jt.AREA_1?p.lam=-a:y.value===Jt.AREA_2?p.lam=-a-s:p.lam=a<0?-a-g:-a+g;else{var m,v,_;c=(m=u)*m,v=(c+=(_=c>=1?0:Math.sqrt(1-c)*Math.sin(a))*_)>=1?0:Math.sqrt(1-c),y.value===Jt.AREA_1?(c=v,v=-_,_=c):y.value===Jt.AREA_2?(v=-v,_=-_):y.value===Jt.AREA_3&&(c=v,v=_,_=-c),this.face===Ft?(c=m,m=-v,v=c):this.face===jt?(m=-m,v=-v):this.face===Bt&&(c=m,m=v,v=-c),p.phi=Math.acos(-_)-s,p.lam=Math.atan2(v,m),this.face===Ft?p.lam=Wt(p.lam,-s):this.face===jt?p.lam=Wt(p.lam,-g):this.face===Bt&&(p.lam=Wt(p.lam,+s))}return 0!==this.es&&(h=p.phi<0?1:0,f=Math.tan(p.phi),d=this.b/Math.sqrt(f*f+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-d*d)/(this.one_minus_f*d)),h&&(p.phi=-p.phi)),p.lam+=this.long0,e.x=p.lam,e.y=p.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},Xt=[[1,2.2199e-17,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Yt=[[-5.20417e-18,.0124,1.21431e-18,-8.45284e-11],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Zt=d/5,Kt=1/Zt,Qt=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},$t={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=J(e.x-this.long0),r=Math.abs(e.y),n=Math.floor(r*Zt);n<0?n=0:n>=18&&(n=17);var i={x:Qt(Xt[n],r=d*(r-Kt*n))*t,y:Qt(Yt[n],r)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*.8487+this.x0,i.y=i.y*this.a*1.3523+this.y0,i},inverse:function(e){var t={x:(e.x-this.x0)/(.8487*this.a),y:Math.abs(e.y-this.y0)/(1.3523*this.a)};if(t.y>=1)t.x/=Xt[18][0],t.y=e.y<0?-s:s;else{var r=Math.floor(18*t.y);for(r<0?r=0:r>=18&&(r=17);;)if(Yt[r][0]>t.y)--r;else{if(!(Yt[r+1][0]<=t.y))break;++r}var n=Yt[r],i=5*(t.y-n[0])/(Yt[r+1][0]-n[0]);i=function(e,t,r,n){for(var i=t;n;--n){var o=e(i);if(i-=o,Math.abs(o)<r)break}return i}(function(e){return(Qt(n,e)-t.y)/function(e,t){return e[1]+t*(2*e[2]+3*t*e[3])}(n,e)},i,h,100),t.x/=Qt(Xt[r],i),t.y=(5*r+i)*f,e.y<0&&(t.y=-t.y)}return t.x=J(t.x+this.long0),t},names:["Robinson","robin"]},er={init:function(){this.name="geocent"},forward:function(e){return fe(e,this.es,this.a)},inverse:function(e){return de(e,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]},tr=0,rr=1,nr=2,ir=3,or={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}},ar={init:function(){if(Object.keys(or).forEach(function(e){if(void 0===this[e])this[e]=or[e].def;else{if(or[e].num&&isNaN(this[e]))throw new Error("Invalid parameter value, must be numeric "+e+" = "+this[e]);or[e].num&&(this[e]=parseFloat(this[e]))}or[e].degrees&&(this[e]=this[e]*f)}.bind(this)),Math.abs(Math.abs(this.lat0)-s)<h?this.mode=this.lat0<0?rr:tr:Math.abs(this.lat0)<h?this.mode=nr:(this.mode=ir,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var e=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(e),this.sw=Math.sin(e)},forward:function(e){e.x-=this.long0;var t,r,n,i,o=Math.sin(e.y),a=Math.cos(e.y),s=Math.cos(e.x);switch(this.mode){case ir:r=this.sinph0*o+this.cosph0*a*s;break;case nr:r=a*s;break;case rr:r=-o;break;case tr:r=o}switch(t=(r=this.pn1/(this.p-r))*a*Math.sin(e.x),this.mode){case ir:r*=this.cosph0*o-this.sinph0*a*s;break;case nr:r*=o;break;case tr:r*=-a*s;break;case rr:r*=a*s}return i=1/((n=r*this.cg+t*this.sg)*this.sw*this.h1+this.cw),t=(t*this.cg-r*this.sg)*this.cw*i,r=n*i,e.x=t*this.a,e.y=r*this.a,e},inverse:function(e){e.x/=this.a,e.y/=this.a;var t,r,n,i={x:e.x,y:e.y};n=1/(this.pn1-e.y*this.sw),t=this.pn1*e.x*n,r=this.pn1*e.y*this.cw*n,e.x=t*this.cg+r*this.sg,e.y=r*this.cg-t*this.sg;var o=$e(e.x,e.y);if(Math.abs(o)<h)i.x=0,i.y=e.y;else{var a,s;switch(s=1-o*o*this.pfact,s=(this.p-Math.sqrt(s))/(this.pn1/o+o/this.pn1),a=Math.sqrt(1-s*s),this.mode){case ir:i.y=Math.asin(a*this.sinph0+e.y*s*this.cosph0/o),e.y=(a-this.sinph0*Math.sin(i.y))*o,e.x*=s*this.cosph0;break;case nr:i.y=Math.asin(e.y*s/o),e.y=a*o,e.x*=s;break;case tr:i.y=Math.asin(a),e.y=-e.y;break;case rr:i.y=-Math.asin(a)}i.x=Math.atan2(e.x,e.y)}return e.x=i.x+this.long0,e.y=i.y,e},names:["Tilted_Perspective","tpers"]},sr={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var e=1-this.es,t=1/e;this.radius_p=Math.sqrt(e),this.radius_p2=e,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(e){var t,r,n,i,o=e.x,a=e.y;if(o-=this.long0,"ellipse"===this.shape){a=Math.atan(this.radius_p2*Math.tan(a));var s=this.radius_p/$e(this.radius_p*Math.cos(a),Math.sin(a));if(r=s*Math.cos(o)*Math.cos(a),n=s*Math.sin(o)*Math.cos(a),i=s*Math.sin(a),(this.radius_g-r)*r-n*n-i*i*this.radius_p_inv2<0)return e.x=Number.NaN,e.y=Number.NaN,e;t=this.radius_g-r,this.flip_axis?(e.x=this.radius_g_1*Math.atan(n/$e(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(n/t),e.y=this.radius_g_1*Math.atan(i/$e(n,t)))}else"sphere"===this.shape&&(t=Math.cos(a),r=Math.cos(o)*t,n=Math.sin(o)*t,i=Math.sin(a),t=this.radius_g-r,this.flip_axis?(e.x=this.radius_g_1*Math.atan(n/$e(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(n/t),e.y=this.radius_g_1*Math.atan(i/$e(n,t))));return e.x=e.x*this.a,e.y=e.y*this.a,e},inverse:function(e){var t,r,n,i,o=-1,a=0,s=0;if(e.x=e.x/this.a,e.y=e.y/this.a,"ellipse"===this.shape){this.flip_axis?(s=Math.tan(e.y/this.radius_g_1),a=Math.tan(e.x/this.radius_g_1)*$e(1,s)):(a=Math.tan(e.x/this.radius_g_1),s=Math.tan(e.y/this.radius_g_1)*$e(1,a));var u=s/this.radius_p;if(t=a*a+u*u+o*o,(n=(r=2*this.radius_g*o)*r-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-r-Math.sqrt(n))/(2*t),o=this.radius_g+i*o,a*=i,s*=i,e.x=Math.atan2(a,o),e.y=Math.atan(s*Math.cos(e.x)/o),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if("sphere"===this.shape){if(this.flip_axis?(s=Math.tan(e.y/this.radius_g_1),a=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+s*s)):(a=Math.tan(e.x/this.radius_g_1),s=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+a*a)),t=a*a+s*s+o*o,(n=(r=2*this.radius_g*o)*r-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-r-Math.sqrt(n))/(2*t),o=this.radius_g+i*o,a*=i,s*=i,e.x=Math.atan2(a,o),e.y=Math.atan(s*Math.cos(e.x)/o)}return e.x=e.x+this.long0,e},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};Ie.defaultDatum="WGS84",Ie.Proj=he,Ie.WGS84=new Ie.Proj("WGS84"),Ie.Point=We,Ie.toPoint=Se,Ie.defs=A,Ie.nadgrid=function(e,t){var r=new DataView(t),n=function(e){var t=e.getInt32(8,!1);return 11!==t&&(11!==(t=e.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}(r),i=function(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:ae(e,56,64).trim(),fromSemiMajorAxis:e.getFloat64(120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e.getFloat64(152,t),toSemiMinorAxis:e.getFloat64(168,t)}}(r,n);i.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var o={header:i,subgrids:function(e,t,r){for(var n=[],i=0;i<t.nSubgrids;i++){var o=ue(e,176,r),a=le(e,176,o,r),s=Math.round(1+(o.upperLongitude-o.lowerLongitude)/o.longitudeInterval),u=Math.round(1+(o.upperLatitude-o.lowerLatitude)/o.latitudeInterval);n.push({ll:[oe(o.lowerLongitude),oe(o.lowerLatitude)],del:[oe(o.longitudeInterval),oe(o.latitudeInterval)],lim:[s,u],count:o.gridNodeCount,cvs:se(a)})}return n}(r,i,n)};return ne[e]=o,o},Ie.transform=we,Ie.mgrs=Ge,Ie.version="__VERSION__",function(e){e.Proj.projections.add(Ke),e.Proj.projections.add(rt),e.Proj.projections.add(nt),e.Proj.projections.add(at),e.Proj.projections.add(st),e.Proj.projections.add(ut),e.Proj.projections.add(ct),e.Proj.projections.add(ht),e.Proj.projections.add(ft),e.Proj.projections.add(xt),e.Proj.projections.add(wt),e.Proj.projections.add(Mt),e.Proj.projections.add(Et),e.Proj.projections.add(It),e.Proj.projections.add(Tt),e.Proj.projections.add(Lt),e.Proj.projections.add(Ct),e.Proj.projections.add(Pt),e.Proj.projections.add(Nt),e.Proj.projections.add(Ot),e.Proj.projections.add(Rt),e.Proj.projections.add(Vt),e.Proj.projections.add(Gt),e.Proj.projections.add(At),e.Proj.projections.add(Ht),e.Proj.projections.add($t),e.Proj.projections.add(er),e.Proj.projections.add(ar),e.Proj.projections.add(sr)}(Ie),t.default=Ie},function(e,t,r){r(226),e.exports=r(12).Object.keys},function(e,t,r){var n=r(56),i=r(57);r(83)("keys",function(){return function(e){return i(n(e))}})},function(e,t,r){var n=r(39),i=r(99),o=r(228);e.exports=function(e){return function(t,r,a){var s,u=n(t),l=i(u.length),c=o(a,l);if(e&&r!=r){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}}},function(e,t,r){var n=r(100),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,l=[],c=!1,h=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&d())}function d(){if(!c){var e=s(f);c=!0;for(var t=l.length;t;){for(u=l,l=[];++h<t;)u&&u[h].run();h=-1,t=l.length}u=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||c||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){r(231);var n=r(12).Object;e.exports=function(e,t){return n.defineProperties(e,t)}},function(e,t,r){var n=r(17);n(n.S+n.F*!r(27),"Object",{defineProperties:r(138)})},function(e,t,r){r(139),r(70),r(87),r(238),r(246),r(247),e.exports=r(12).Promise},function(e,t,r){var n=r(100),i=r(98);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),u=n(r),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(e,t,r){"use strict";var n=r(106),i=r(60),o=r(85),a={};r(48)(a,r(21)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},function(e,t,r){"use strict";var n=r(236),i=r(237),o=r(61),a=r(39);e.exports=r(140)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){"use strict";var n,i,o,a,s=r(69),u=r(20),l=r(58),c=r(107),h=r(17),f=r(26),d=r(84),p=r(239),y=r(240),g=r(145),m=r(146).set,v=r(242)(),_=r(109),S=r(147),x=r(243),b=r(148),w=u.TypeError,k=u.process,M=k&&k.versions,E=M&&M.v8||"",I=u.Promise,T="process"==c(k),L=function(){},C=i=_.f,P=!!function(){try{var e=I.resolve(1),t=(e.constructor={})[r(21)("species")]=function(e){e(L,L)};return(T||"function"==typeof PromiseRejectionEvent)&&e.then(L)instanceof t&&0!==E.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(e){}}(),N=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},O=function(e,t){if(!e._n){e._n=!0;var r=e._c;v(function(){for(var n=e._v,i=1==e._s,o=0,a=function(t){var r,o,a,s=i?t.ok:t.fail,u=t.resolve,l=t.reject,c=t.domain;try{s?(i||(2==e._h&&G(e),e._h=1),!0===s?r=n:(c&&c.enter(),r=s(n),c&&(c.exit(),a=!0)),r===t.promise?l(w("Promise-chain cycle")):(o=N(r))?o.call(r,u,l):u(r)):l(n)}catch(e){c&&!a&&c.exit(),l(e)}};r.length>o;)a(r[o++]);e._c=[],e._n=!1,t&&!e._h&&R(e)})}},R=function(e){m.call(u,function(){var t,r,n,i=e._v,o=V(e);if(o&&(t=S(function(){T?k.emit("unhandledRejection",i,e):(r=u.onunhandledrejection)?r({promise:e,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)}),e._h=T||V(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},V=function(e){return 1!==e._h&&0===(e._a||e._c).length},G=function(e){m.call(u,function(){var t;T?k.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},A=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),O(t,!0))},D=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw w("Promise can't be resolved itself");(t=N(e))?v(function(){var n={_w:r,_d:!1};try{t.call(e,l(D,n,1),l(A,n,1))}catch(e){A.call(n,e)}}):(r._v=e,r._s=1,O(r,!1))}catch(e){A.call({_w:r,_d:!1},e)}}};P||(I=function(e){p(this,I,"Promise","_h"),d(e),n.call(this);try{e(l(D,this,1),l(A,this,1))}catch(e){A.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(244)(I.prototype,{then:function(e,t){var r=C(g(this,I));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=T?k.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&O(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=l(D,e,1),this.reject=l(A,e,1)},_.f=C=function(e){return e===I||e===a?new o(e):i(e)}),h(h.G+h.W+h.F*!P,{Promise:I}),r(85)(I,"Promise"),r(245)("Promise"),a=r(12).Promise,h(h.S+h.F*!P,"Promise",{reject:function(e){var t=C(this);return(0,t.reject)(e),t.promise}}),h(h.S+h.F*(s||!P),"Promise",{resolve:function(e){return b(s&&this===a?I:this,e)}}),h(h.S+h.F*!(P&&r(149)(function(e){I.all(e).catch(L)})),"Promise",{all:function(e){var t=this,r=C(t),n=r.resolve,i=r.reject,o=S(function(){var r=[],o=0,a=1;y(e,!1,function(e){var s=o++,u=!1;r.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,r[s]=e,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=C(t),n=r.reject,i=S(function(){y(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){var n=r(58),i=r(143),o=r(144),a=r(24),s=r(99),u=r(108),l={},c={};(t=e.exports=function(e,t,r,h,f){var d,p,y,g,m=f?function(){return e}:u(e),v=n(r,h,t?2:1),_=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(d=s(e.length);d>_;_++)if((g=t?v(a(p=e[_])[0],p[1]):v(e[_]))===l||g===c)return g}else for(y=m.call(e);!(p=y.next()).done;)if((g=i(y,v,p.value,t))===l||g===c)return g}).BREAK=l,t.RETURN=c},function(e,t){e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){var n=r(20),i=r(146).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(68)(a);e.exports=function(){var e,t,r,l=function(){var n,i;for(u&&(n=a.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(l)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);r=function(){c.then(l)}}else r=function(){i.call(n,l)};else{var h=!0,f=document.createTextNode("");new o(l).observe(f,{characterData:!0}),r=function(){f.data=h=!h}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},function(e,t,r){var n=r(20).navigator;e.exports=n&&n.userAgent||""},function(e,t,r){var n=r(48);e.exports=function(e,t,r){for(var i in t)r&&e[i]?e[i]=t[i]:n(e,i,t[i]);return e}},function(e,t,r){"use strict";var n=r(20),i=r(12),o=r(28),a=r(27),s=r(21)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:n[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){"use strict";var n=r(17),i=r(12),o=r(20),a=r(145),s=r(148);n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then(function(){return r})}:e,r?function(r){return s(t,e()).then(function(){throw r})}:e)}})},function(e,t,r){"use strict";var n=r(17),i=r(109),o=r(147);n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){e.exports={default:r(249),__esModule:!0}},function(e,t,r){r(250);var n=r(12).Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},function(e,t,r){var n=r(17);n(n.S+n.F*!r(27),"Object",{defineProperty:r(28).f})},function(e,t,r){r(70),r(252),e.exports=r(12).Array.from},function(e,t,r){"use strict";var n=r(58),i=r(17),o=r(56),a=r(143),s=r(144),u=r(99),l=r(253),c=r(108);i(i.S+i.F*!r(149)(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,i,h,f=o(e),d="function"==typeof this?this:Array,p=arguments.length,y=p>1?arguments[1]:void 0,g=void 0!==y,m=0,v=c(f);if(g&&(y=n(y,p>2?arguments[2]:void 0,2)),void 0==v||d==Array&&s(v))for(r=new d(t=u(f.length));t>m;m++)l(r,m,g?y(f[m],m):f[m]);else for(h=v.call(f),r=new d;!(i=h.next()).done;m++)l(r,m,g?a(h,y,[i.value,m],!0):i.value);return r.length=m,r}})},function(e,t,r){"use strict";var n=r(28),i=r(60);e.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},function(e,t,r){var n=r(12),i=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},function(e,t,r){e.exports={default:r(256),__esModule:!0}},function(e,t,r){r(70),r(87),e.exports=r(110).f("iterator")},function(e,t,r){e.exports={default:r(258),__esModule:!0}},function(e,t,r){r(259),r(139),r(263),r(264),e.exports=r(12).Symbol},function(e,t,r){"use strict";var n=r(20),i=r(32),o=r(27),a=r(17),s=r(141),u=r(151).KEY,l=r(59),c=r(102),h=r(85),f=r(82),d=r(21),p=r(110),y=r(111),g=r(260),m=r(261),v=r(24),_=r(26),S=r(56),x=r(39),b=r(105),w=r(60),k=r(106),M=r(262),E=r(72),I=r(112),T=r(28),L=r(57),C=E.f,P=T.f,N=M.f,O=n.Symbol,R=n.JSON,V=R&&R.stringify,G=d("_hidden"),A=d("toPrimitive"),D={}.propertyIsEnumerable,F=c("symbol-registry"),j=c("symbols"),B=c("op-symbols"),q=Object.prototype,U="function"==typeof O&&!!I.f,J=n.QObject,z=!J||!J.prototype||!J.prototype.findChild,W=o&&l(function(){return 7!=k(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=C(q,t);n&&delete q[t],P(e,t,r),n&&e!==q&&P(q,t,n)}:P,H=function(e){var t=j[e]=k(O.prototype);return t._k=e,t},X=U&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},Y=function(e,t,r){return e===q&&Y(B,t,r),v(e),t=b(t,!0),v(r),i(j,t)?(r.enumerable?(i(e,G)&&e[G][t]&&(e[G][t]=!1),r=k(r,{enumerable:w(0,!1)})):(i(e,G)||P(e,G,w(1,{})),e[G][t]=!0),W(e,t,r)):P(e,t,r)},Z=function(e,t){v(e);for(var r,n=g(t=x(t)),i=0,o=n.length;o>i;)Y(e,r=n[i++],t[r]);return e},K=function(e){var t=D.call(this,e=b(e,!0));return!(this===q&&i(j,e)&&!i(B,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,G)&&this[G][e])||t)},Q=function(e,t){if(e=x(e),t=b(t,!0),e!==q||!i(j,t)||i(B,t)){var r=C(e,t);return!r||!i(j,t)||i(e,G)&&e[G][t]||(r.enumerable=!0),r}},$=function(e){for(var t,r=N(x(e)),n=[],o=0;r.length>o;)i(j,t=r[o++])||t==G||t==u||n.push(t);return n},ee=function(e){for(var t,r=e===q,n=N(r?B:x(e)),o=[],a=0;n.length>a;)!i(j,t=n[a++])||r&&!i(q,t)||o.push(j[t]);return o};U||(s((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(r){this===q&&t.call(B,r),i(this,G)&&i(this[G],e)&&(this[G][e]=!1),W(this,e,w(1,r))};return o&&z&&W(q,e,{configurable:!0,set:t}),H(e)}).prototype,"toString",function(){return this._k}),E.f=Q,T.f=Y,r(152).f=M.f=$,r(71).f=K,I.f=ee,o&&!r(69)&&s(q,"propertyIsEnumerable",K,!0),p.f=function(e){return H(d(e))}),a(a.G+a.W+a.F*!U,{Symbol:O});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;te.length>re;)d(te[re++]);for(var ne=L(d.store),ie=0;ne.length>ie;)y(ne[ie++]);a(a.S+a.F*!U,"Symbol",{for:function(e){return i(F,e+="")?F[e]:F[e]=O(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!U,"Object",{create:function(e,t){return void 0===t?k(e):Z(k(e),t)},defineProperty:Y,defineProperties:Z,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:ee});var oe=l(function(){I.f(1)});a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return I.f(S(e))}}),R&&a(a.S+a.F*(!U||l(function(){var e=O();return"[null]"!=V([e])||"{}"!=V({a:e})||"{}"!=V(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(_(t)||void 0!==e)&&!X(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!X(t))return t}),n[1]=t,V.apply(R,n)}}),O.prototype[A]||r(48)(O.prototype,A,O.prototype.valueOf),h(O,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(e,t,r){var n=r(57),i=r(112),o=r(71);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,r){var n=r(68);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(39),i=r(152).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},function(e,t,r){r(111)("asyncIterator")},function(e,t,r){r(111)("observable")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(7)),u=l(r(5));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var r=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"initPropertys",this).call(this,e);this.message=r.message}}]),t}(l(r(41)).default);t.default=c},function(e,t,r){r(267),e.exports=r(12).Object.getPrototypeOf},function(e,t,r){var n=r(56),i=r(86);r(83)("getPrototypeOf",function(){return function(e){return i(n(e))}})},function(e,t,r){e.exports={default:r(269),__esModule:!0}},function(e,t,r){r(270);var n=r(12).Object;e.exports=function(e,t){return n.getOwnPropertyDescriptor(e,t)}},function(e,t,r){var n=r(39),i=r(72).f;r(83)("getOwnPropertyDescriptor",function(){return function(e,t){return i(n(e),t)}})},function(e,t,r){e.exports={default:r(272),__esModule:!0}},function(e,t,r){r(273),e.exports=r(12).Object.setPrototypeOf},function(e,t,r){var n=r(17);n(n.S,"Object",{setPrototypeOf:r(274).set})},function(e,t,r){var n=r(26),i=r(24),o=function(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=r(58)(Function.call,r(72).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return o(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:o}},function(e,t,r){r(276);var n=r(12).Object;e.exports=function(e,t){return n.create(e,t)}},function(e,t,r){var n=r(17);n(n.S,"Object",{create:r(106)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(3)),i=u(r(0)),o=u(r(2)),a=u(r(4)),s=u(r(5));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var t=e||{};return this.target=t.target,this.sourceTarget=t.sourceTarget,this.eventData=t.eventData,this.sourceEventData=t.sourceEventData,this.eventPath=t.eventPath||[],t}}]),t}(u(r(41)).default);t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(5)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var t=(0,u.defaultValue)(e,{});return this.added=(0,u.defaultValue)(t.added,[]),this.removed=(0,u.defaultValue)(t.removed,[]),this.moved=(0,u.defaultValue)(t.moved,[]),this.sourceTarget=t.sourceTarget,this.target=t.target,t}}]),t}(l(r(41)).default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(5)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var t=(0,u.defaultValue)(e,{});return this.added=(0,u.defaultValue)(t.added,[]),this.removed=(0,u.defaultValue)(t.removed,[]),this.moved=(0,u.defaultValue)(t.moved,[]),this.path=(0,u.defaultValue)(t.path,[]),this.sourceTarget=t.sourceTarget,this.target=t.target,t}}]),t}(l(r(41)).default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(5)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var t=(0,u.defaultValue)(e,{});return this.addDetail=(0,u.defaultValue)(t.addDetail,[]),t}}]),t}(l(r(41)).default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(5)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var t=(0,u.defaultValue)(e,{});return this.basemap=(0,u.defaultValue)(t.basemap,null),this.detail=(0,u.defaultValue)(t.detail,[]),t}}]),t}(l(r(41)).default);t.default=c},function(e,t,r){e.exports={default:r(283),__esModule:!0}},function(e,t,r){r(284),e.exports=r(12).Reflect.set},function(e,t,r){var n=r(28),i=r(72),o=r(86),a=r(32),s=r(17),u=r(60),l=r(24),c=r(26);s(s.S,"Reflect",{set:function e(t,r,s){var h,f,d=arguments.length<4?t:arguments[3],p=i.f(l(t),r);if(!p){if(c(f=o(t)))return e(f,r,s,d);p=u(0)}if(a(p,"value")){if(!1===p.writable||!c(d))return!1;if(h=i.f(d,r)){if(h.get||h.set||!1===h.writable)return!1;h.value=s,n.f(d,r,h)}else n.f(d,r,u(0,s));return!0}return void 0!==p.set&&(p.set.call(d,s),!0)}})},function(e,t,r){e.exports={default:r(286),__esModule:!0}},function(e,t,r){r(287),e.exports=r(12).Reflect.get},function(e,t,r){var n=r(72),i=r(86),o=r(32),a=r(17),s=r(26),u=r(24);a(a.S,"Reflect",{get:function e(t,r){var a,l,c=arguments.length<3?t:arguments[2];return u(t)===c?t[r]:(a=n.f(t,r))?o(a,"value")?a.value:void 0!==a.get?a.get.call(c):void 0:s(l=i(t))?e(l,r,c):void 0}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cancelFn=t.requestFn=t.emptyImageUrl=t.isArray=t.lastId=t.create=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(153));t.extend=function(e){var t,r=void 0,n=void 0,i=void 0;for(n=1,t=arguments.length;n<t;n++)for(r in i=arguments[n])e[r]=i[r];return e},t.bind=o,t.stamp=function(e){return e._leaflet_id},t.throttle=function(e,t,r){var n=void 0,i=void 0,o=void 0,a=function(){n=!1,i&&(o.apply(r,i),i=!1)};return o=function(){n?i=arguments:(e.apply(r,arguments),setTimeout(a,t),n=!0)}},t.wrapNum=function(e,t,r){var n=t[1],i=t[0],o=n-i;return e===n&&r?e:((e-i)%o+o)%o+i},t.falseFn=function(){return!1},t.formatNum=function(e,t){var r=Math.pow(10,void 0===t?6:t);return Math.round(e*r)/r},t.trim=a,t.splitWords=function(e){return a(e).split(/\s+/)},t.setOptions=function(e,t){for(var r in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?i(e.options):{}),t)e.options[r]=t[r];return e.options},t.getParamString=function(e,t,r){var n=[];for(var i in e)n.push(encodeURIComponent(r?i.toUpperCase():i)+"="+encodeURIComponent(e[i]));return(t&&-1!==t.indexOf("?")?"&":"?")+n.join("&")},t.template=function(e,t){return e.replace(s,function(e,r){var n=t[r];if(void 0===n)throw new Error("No value provided for variable "+e);return"function"==typeof n&&(n=n(t)),n})},t.indexOf=function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},t.requestAnimFrame=function(e,t,r){if(!r||h!==c)return h.call(window,o(e,t));e.call(t)},t.cancelAnimFrame=function(e){e&&f.call(window,e)};var i=t.create=n.default||function(){function e(){}return function(t){return e.prototype=t,new e}}();function o(e,t){var r=Array.prototype.slice;if(e.bind)return e.bind.apply(e,r.call(arguments,1));var n=r.call(arguments,2);return function(){return e.apply(t,n.length?n.concat(r.call(arguments)):arguments)}}function a(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}t.lastId=0;var s=/\{ *([\w_-]+) *\}/g;function u(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}t.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.emptyImageUrl="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";var l=0;function c(e){var t=+new Date,r=Math.max(0,16-(t-l));return l=t+r,window.setTimeout(e,r)}var h=t.requestFn=window.requestAnimationFrame||u("RequestAnimationFrame")||c,f=t.cancelFn=window.cancelAnimationFrame||u("CancelAnimationFrame")||u("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(11)),i=h(r(3)),o=h(r(0)),a=h(r(2)),s=h(r(4)),u=h(r(5)),l=r(1),c=h(r(113));function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.type="collection-flat",e=(0,l.defaultValue)(e,{}),r.getCollections=e.getCollections||function(){return[]},r._cacheCollections=r.getCollections(),r.getChildrenFunction=e.getChildrenFunction,r._refresh(),r._cacheCollections.forEach(function(e){r._addRefreshHandler(e)}),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"_refresh",value:function(e){var t=this,r=this._cacheCollections;if(r&&Array.isArray(r)){var n=0;r.forEach(function(e){n=t._processCollection(n,e)}),this._items.splice(n,this._items.length-n)}else this.removeAll()}},{key:"_processCollection",value:function(e,t){var r=this;return t?(t.forEach(function(n){if(n){var i=r._items.findIndex(function(e){return e===n});if(i>-1?i!==e&&r._reorder(n,e):r._add(n,e),e+=1,r.getChildrenFunction){var o=r.getChildrenFunction(n);o&&(Array.isArray(o)?o.forEach(function(n){n instanceof c.default&&(e=r._processCollection(e,n),n._addParentCollection(t))}):o instanceof c.default&&(e=r._processCollection(e,o),o._addParentCollection(t)))}}}),e):e}},{key:"_addCollection",value:function(e,t){var r=(0,l.defaultValue)(t,this._cacheCollections.length);r=Math.max(0,Math.min(this._cacheCollections.length,t)),this._cacheCollections.splice(r,0,e),this._addRefreshHandler(e),this._refresh()}},{key:"_removeCollection",value:function(e){var t=this._cacheCollections.indexOf(function(t){return t===e});t>-1&&(this._cacheCollections.splice(t,1),this._removeRreshHandler(e),this._refresh())}},{key:"_addRefreshHandler",value:function(e){e&&e.on("collection-refresh",this._refresh,this)}},{key:"_removeRreshHandler",value:function(e){e&&e.off("collection-refresh",this._refresh,this)}}]),t}(c.default);(0,n.default)(f.prototype,{items:{get:function(){return this._items},set:function(e){}}}),t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.statisticType=(0,o.defaultValue)(t.statisticType,void 0),this.onStatisticField=(0,o.defaultValue)(t.onStatisticField,void 0),this.outStatisticFieldName=(0,o.defaultValue)(t.outStatisticFieldName,void 0),(0,o.isNull)(this.statisticType)&&console.warn("statisticType不能为空!"),(0,o.isNull)(this.onStatisticField)&&console.warn("onStatisticField不能为空!")}return(0,i.default)(e,[{key:"toString",value:function(){var e="";return(0,o.isNull)(this.statisticType)||(0,o.isNull)(this.onStatisticField)||((0,o.isNull)(this.outStatisticFieldName)?e+='{"statisticType":"'+this.statisticType+'","onStatisticField":"'+this.onStatisticField+'"}':e+='{"statisticType":"'+this.statisticType+'","onStatisticField":"'+this.onStatisticField+'","outStatisticFieldName":"'+this.outStatisticFieldName+'"}'),e}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),this.ProjAngleUnit=(0,i.defaultValue)(4,t.ProjAngleUnit),this.ProjLat=(0,i.defaultValue)(0,t.ProjLat),this.ProjLat1=(0,i.defaultValue)(25e4,t.ProjLat1),this.ProjLat2=(0,i.defaultValue)(47e4,t.ProjLat2),this.ProjLon=(0,i.defaultValue)(105e4,t.ProjLon),this.ProjRate=(0,i.defaultValue)(14e6,t.ProjRate),this.ProjType=(0,i.defaultValue)(3,t.ProjType),this.ProjTypeID=(0,i.defaultValue)(2,t.ProjTypeID),this.ProjUnit=(0,i.defaultValue)(1,t.ProjUnit),this.ProjZoneNO=(0,i.defaultValue)(18,t.ProjZoneNO),this.ProjZoneType=(0,i.defaultValue)(0,t.ProjZoneType),this.SphereID=(0,i.defaultValue)(2,t.SphereID)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),this.DesSrsID=(0,i.defaultValue)(610,t.DesSrsID),this.GdbInfo=(0,i.defaultValue)({GDBName:"示例数据",GDBSvrName:"MapGISLocal",Password:"",User:""},t.DesSrsID)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={HTML:"html",JSON:"json",png:"png",jpg:"jpg",gif:"gif"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={get:"GET",post:"POST",put:"PUT",delete:"DELETE"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={layerViewCreated:"layerview-created",layerViewCreatedError:"layerview-created-error",layerViewRemove:"layerview-remove",layerViewUpdate:"layerview-update",layerLoaded:"layer-loaded",layerLoadError:"layer-load-error",featureAdd:"feature-add",layerUpdate:"layer-update",layerUpdateStyle:"update-style",layerUpdateOpacity:"layer-update-opacity",layerUpdateVisible:"layer-update-visible",layerSublayerVisible:"layer-sublayer-visible"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={layerAdd:"layer-add",layerAddMany:"layer-add-many",layerRemove:"layer-remove",layerRemoveMany:"layer-remove-many",layerRemoveAll:"layer-remove-all",layerChange:"map-layer-change",layerLoaded:"map-layer-loaded",loaded:"loaded",basemapChange:"basemap-change"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={functionMax:"FUNCTION_MAX",functionMin:"FUNCTION_MIN",functionSum:"FUNCTION_SUM",functionAvg:"FUNCTION_AVG",functionCount:"FUNCTION_COUNT",functionMaxOID:"FUNCTION_MAX_OID"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={Intersects:"Intersects",EnvelopeIntersects:"EnvelopeIntersects",Contains:"Contains",Disjoint:"Disjoint"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={baseLayer:"baselayer",unknown:"unknown",tile:"tile",igsTile:"igs-tile",arcgisTile:"arcgis-tile",vectorTile:"vectorTile",vectorTileSubLayer:"vectorTileSubLayer",igsVectorTile:"igs-vectorTile",mapImage:"map-image",igsMapImage:"igs-map-image",arcgisMapImage:"arcgis-map-image",ogc:"ogc",wms:"wms",wmts:"wmts",wfs:"wfs",feature:"feature",igsFeature:"igs-feature",geojson:"geojson",overlay:"overlay",mapv:"mapv",echarts:"echarts",elevation:"elevation",m3d:"m3d",m3dCache:"m3d-cache",scene:"scene",cesium3DTiles:"cesium3DTiles",group:"group",tdt:"tdt",baidu:"baidu",gaode:"gaode",terrain:"terrain",graphics:"graphics",arcgisVectorTile:"arcgis-vectorTile",webTileLayer:"web-tile-layer",isTileLayer:function(e){return[n.igsTile,n.arcgisTile,n.wmts,n.arcgisTile,n.igsVectorTile,n.tdt,n.baidu,n.gaode,n.arcgisVectorTile,n.webTileLayer].some(function(t){return e===t})}};t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={normal:"normal",url:"url",header:"header",body:"body"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={geometry:"geometry",point:"point",point3D:"point3d",lineString:"line",polygon:"polygon",multiPoint:"multiPoint",multiLineString:"multiLine",multiPolygon:"multiPolygon",circle:"circle",extent:"rect",extent3D:"rect3d"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={none:"none",info:"info",error:"error",warning:"warning",all:"all",infoAndError:"infoAndError",warningAndError:"warningAndError"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={notLoaded:"not-loaded",loading:"loading",loaded:"loaded",failed:"failed"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={click:"click",immediateClick:"immediate-click",doubleClick:"double-click",pointerDown:"mouse-down",pointerUp:"mouse-up",mouseOut:"mouse-out",pointerMove:"mouse-move",mouseDown:"mouse-down",mouseUp:"mouse-up",mouseMove:"mouse-move",mouseOver:"mouse-over",keyPress:"key-press",keyDown:"key-down",keyUp:"key-up",rightClickDown:"right-click-down",previewClick:"preview-click",zoom:"zoom",zoomEnd:"zoom-end",mapMove:"move",mapMoveEnd:"map-end",resize:"resize",loaded:"loaded",wheel:"wheel",viewChange:"view-change",drag:"drag",viewCreated:"view-created"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={kilometer:"kilometers",meter:"meters",mile:"miles"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={degree:"degrees",radian:"radians"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={classBreak:"class-breaks",uniqueValue:"unique-value",simple:"simple",cluster:"cluster",random:"random",rank:"rank",heatmap:"heatmap"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={fill:"fill",line:"line",circle:"circle",background:"background"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(0,function(e){return e&&e.__esModule?e:{default:e}}(r(62)).default)({rtmp:"rtmp",mp4:"mp4",hls:"m3u8",videoPlayer:"videoPlayer",videoHTML:"videoHTML"});t.default=n},function(e,t,r){r(311),e.exports=r(12).Object.freeze},function(e,t,r){var n=r(26),i=r(151).onFreeze;r(83)("freeze",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(0,function(e){return e&&e.__esModule?e:{default:e}}(r(62)).default)({POINT:0,POLYLINE:1,POLYGON:2,CIRCLE:3,RECTANGLE:4,FREEHANDPOLYLINE:5,FREEHANDPOLYGON:6,TEXT:7});t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(0,function(e){return e&&e.__esModule?e:{default:e}}(r(62)).default)({NONE:0,EDITGRAGIC:1,EDITVERTEX:2,DRAWING:3});t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(0,function(e){return e&&e.__esModule?e:{default:e}}(r(62)).default)({create:"create",remove:"remove",update:"update",redo:"redo",undo:"undo"});t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(0,function(e){return e&&e.__esModule?e:{default:e}}(r(62)).default)({start:"start",active:"active",complete:"complete",cancel:"cancel"});t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(0,function(e){return e&&e.__esModule?e:{default:e}}(r(62)).default)({cursorChange:"cursor-change",moveStart:"move-start",move:"move",moveStop:"move-stop",scaleStart:"scale-start",scale:"scale",scaleStop:"scale-stop",vertexAdd:"vertex-add",vertexRemove:"vertex-remove",vertexMoveStart:"vertex-move-start",vertexUpdate:"vertex-update",vertexMoveStop:"vertex-move-stop",geometryUnsimple:"geometry-unsimple",geometryAdd:"geometry-add"});t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={simpleRenderer:"1",uniqueValueRenderer:"2",classBreaksRenderer:"3",HeatmapRender:"4",PointClusterRenderer:"5",CartographicRenderer:"6",RuleBasedRenderer:"7",GridClusterRenderer:"8",DotDensityRenderer:"9"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={simpleMark:"1",fontMark:"2",pictureMark:"3",pointInfo:"4",svgMark:"5",customizeMark:"6",simpleLine:"7",pictureLine:"8",markLine:"9",lineInfo:"10",harshLine:"11",decorationLine:"12",simpleFill:"13",regInfoFill:"14",pictureFill:"15",markFill:"16",lineFill:"17",gradientFill:"18",customizeMarkFill:"19",strokeFill:"20",pieChart:"21",barChart:"22",stackedChart:"23",randomMarkFill:"24"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={OnTheGround:"OnTheGround",RelativeToGround:"RelativeToGround",AbsoluteHeight:"AbsoluteHeight",RelativeToScene:"RelativeToScene",OnTheScene:"OnTheScene"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={morphing:0,columbus:1,scene2d:2,scene3d:3}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={disabled:0,enable:1,cast:2,receive:3}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={igs_1:"igs_1",igs_2:"igs_2",tdt:"tdt",arcgis:"arcgis"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={png:"png",jpeg:"jpeg",svg:"svg"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={degrees:"degrees",miles:"miles",nauticalMiles:"nautical-miles",yards:"yards",meters:"meters",kilometers:"kilometers"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={corporationZD:1,corporationArcGIS:2,corporationSuperMap:3,corporationGeoServer:4,corporationTianDiTu:5,corporationOther:6,none:0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:"icon",object:"object",line:"line",path:"path",fill:"fill",water:"water",extrude:"extrude",text:"text"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={begin:"begin",end:"end",beginAndEnd:"begin-end"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={arrow:"arrow",circle:"circle",square:"square",diamond:"diamond",cross:"cross",x:"x"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={dash:"dash",dashDot:"dash-dot",dot:"dot",longDash:"long-dash",longDashDot:"long-dash-dot",longDashDotDot:"long-dash-dot-dot",none:"none",shortDash:"short-dash",shortDashDot:"short-dash-dot",shortDashDotDot:"short-dash-dot-dot",shortDot:"short-dot",solid:"solid"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={center:"center",left:"left",right:"right",bottom:"bottom",top:"top",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={circle:"circle",quad:"quad"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={color:"color"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={meters:"meters",feet:"feet",kilometers:"kilometers",miles:"miles",nauticalMiles:"nautical-miles",yards:"yards"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={acres:"acres",ares:"ares",hectares:"hectares",squareFeet:"square-feet",squareMeters:"square-meters",squareYards:"square-yards",squareKilometers:"square-kilometers",squareMiles:"square-miles"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={none:0,geodesic:1,rhumb:2}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={vector3D:"1",model:"2",terrain:"3",label:"4",cloud:"5",panorama:"6",mapRef:"7",groupLayer3D:"9",modelCache:"10"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={wmts:"wmts",tms:"tms"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={GroupLayer:"GroupLayer",SFeatureLayer:"SFeatureLayer"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={vec:"vec",img:"img",cva:"cva",cia:"cia"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.description=(0,o.defaultValue)(t.description,void 0),this.id=(0,o.defaultValue)(t.id,(0,o.getGUID)()),this.isDefault=(0,o.defaultValue)(t.isDefault,!1),this.title=(0,o.defaultValue)(t.title,void 0)}return(0,i.default)(e,[{key:"fromJSON",value:function(e){e=(0,o.defaultValue)(e,{}),this.description=(0,o.defaultValue)(e.description,void 0),this.id=(0,o.defaultValue)(e.id,(0,o.getGUID)()),this.isDefault=(0,o.defaultValue)(e.isDefault,!1),this.title=(0,o.defaultValue)(e.title,void 0)}},{key:"toJSON",value:function(){return{description:this.description,id:this.id,isDefault:this.isDefault,title:this.title}}},{key:"clone",value:function(){return new e(this.toJSON())}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=r(1),a=u(r(161)),s=r(6);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.mode=(0,o.defaultValue)(t.mode,s.ElevationMode.AbsoluteHeight),this.offset=(0,o.defaultValue)(t.offset,0),this.featureExpressionInfo=new a.default(t.featureExpressionInfo),this.unit=(0,o.defaultValue)(t.unit,s.LengthUnit.meter)}return(0,i.default)(e,[{key:"clone",value:function(){return new e({unit:this.unit,mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo.clone()})}},{key:"toJSON",value:function(){return{unit:this.unit,mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo.toJSON()}}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(3)),i=p(r(0)),o=p(r(2)),a=p(r(4)),s=p(r(5)),u=r(1),l=r(6),c=p(r(119)),h=p(r(120)),f=p(r(43)),d=r(30);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,u.defaultValue)(e,{}),r.type=l.Symbol3DLayerType.path,r.anchor=(0,u.defaultValue)(e.anchor,l.AnchorType.center),r.cap=(0,u.defaultValue)(e.cap,c.default.butt),r.castShadows=(0,u.defaultValue)(e.castShadows,!0),r.height=(0,u.defaultValue)(e.height,void 0),r.width=(0,u.defaultValue)(e.width,void 0),r.join=(0,u.defaultValue)(e.join,h.default.miter),r.material=e.material?d.ColorMaterial.fromJSON(e.material):new d.ColorMaterial,r.profile=(0,u.defaultValue)(e.profile,l.ProfileType.circle),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,anchor:this.anchor,cap:this.cap,castShadows:this.castShadows,height:this.height,width:this.width,join:this.join,material:this.material,profile:this.profile}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(f.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(2)),a=c(r(4)),s=c(r(5)),u=r(1),l=r(8);function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this));return e=(0,u.defaultValue)(e,{}),r.type="line",r.border=(0,u.defaultValue)(e.border,void 0),r.border&&r.border.hasOwnProperty("color")&&(r.border.color=new l.Color(r.border.color)),r.color=(0,u.defaultValue)(e.color,new l.Color),r.size=(0,u.defaultValue)(e.size,1),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,border:this.border?{color:this.border.color.toJSON()}:void 0,color:(0,u.toJSON)(this.color,l.Color),size:this.size}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(c(r(164)).default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.maxWorldLength=(0,o.defaultValue)(t.maxWorldLength,void 0),this.minWorldLength=(0,o.defaultValue)(t.minWorldLength,0),this.screenLength=(0,o.defaultValue)(t.screenLength,0)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{maxWorldLength:this.maxWorldLength,minWorldLength:this.minWorldLength,screenLength:this.screenLength}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.color=(0,o.defaultValue)(t.color,void 0),this.placement=(0,o.defaultValue)(t.placement,a.LineMarkerPlacement.beginAndEnd),this.style=(0,o.defaultValue)(t.style,a.LineMarkerStyle.arrow),this.type="style"}return(0,i.default)(e,[{key:"toJSON",value:function(){return{color:this.color.toJSON(),placement:this.placement,type:this.type,style:this.style}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.style=(0,o.defaultValue)(t.style,a.LinePatternStyle.solid),this.type="style"}return(0,i.default)(e,[{key:"toJSON",value:function(){return{style:this.style,type:this.type}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=r(1),a=r(8),s=u(r(157));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.color=(0,o.defaultValue)(t.color,new a.Color),this.size=(0,o.defaultValue)(t.size,1),this.pattern=(0,o.defaultValue)(t.pattern,s.default.solid)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{color:(0,o.toJSON)(this.color,a.Color),size:this.size,pattern:this.pattern}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(8);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.color=(0,o.defaultValue)(t.color,new a.Color),this.size=(0,o.defaultValue)(t.size,1)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{color:(0,o.toJSON)(this.color,a.Color),size:this.size}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.primitive=(0,o.defaultValue)(t.primitive,"circle"),this.href=(0,o.defaultValue)(t.href,void 0)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{primitive:this.primitive,href:this.href}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(8);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.color=(0,o.defaultValue)(t.color,new a.Color),this.size=(0,o.defaultValue)(t.size,1),this.extensionLength=(0,o.defaultValue)(t.extensionLength,0)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{color:this.color.toJSON(),size:this.size,extensionLength:this.extensionLength}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorMaterial=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(352));t.ColorMaterial=n.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=r(1),a=r(8),s=r(6);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.type=s.MaterialType.color,this.color=(0,o.defaultValue)(t.color,new a.Color)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{color:(0,o.toJSON)(this.color,a.Color),type:this.type}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(3)),i=p(r(0)),o=p(r(2)),a=p(r(4)),s=p(r(5)),u=p(r(43)),l=r(6),c=r(1),h=p(r(119)),f=p(r(120)),d=r(30);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.type=l.Symbol3DLayerType.line,r.cap=(0,c.defaultValue)(e.cap,h.default.butt),r.join=(0,c.defaultValue)(e.join,f.default.miter),r.marker=(0,c.defaultValue)(e.marker,void 0),r.material=e.material?d.ColorMaterial.fromJSON(e.material):new d.ColorMaterial,r.pattern=e.pattern?d.LineStylePattern3D.fromJSON(e.pattern):new d.LineStylePattern3D,r.size=(0,c.defaultValue)(e.size,1),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,cap:this.cap,join:this.join,marker:(0,c.toJSON)(this.marker,d.LineStyleMarker3D),material:(0,c.toJSON)(this.material,d.ColorMaterial),pattern:(0,c.toJSON)(this.pattern,d.LineStylePattern3D),size:this.size}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(u.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(5)),u=r(1),l=r(6),c=d(r(166)),h=d(r(43)),f=r(30);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,u.defaultValue)(e,{}),r.type=l.Symbol3DLayerType.fill,r.material=e.material?f.ColorMaterial.fromJSON(e.material):new f.ColorMaterial,r.castShadows=(0,u.defaultValue)(e.castShadows,!0),r.outline=e.outline?f.FillSymbol3DOutline.fromJSON(e.outline):new f.FillSymbol3DOutline,r.pattern=e.pattern?c.default.fromJSON(e.pattern):new c.default,r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,material:(0,u.toJSON)(this.material,f.ColorMaterial),outline:(0,u.toJSON)(this.outline,f.FillSymbol3DOutline),pattern:(0,u.toJSON)(this.pattern,c.default)}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(h.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(10)),i=h(r(0)),o=h(r(2)),a=r(1),s=r(6),u=r(30),l=r(8),c=r(9);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(t){(0,i.default)(this,e),t=(0,a.defaultValue)(t,{}),this.type=s.Symbol3DLayerType.icon,this.anchor=(0,a.defaultValue)(t.anchor,s.AnchorType.center),this.anchorPosition=t.anchorPosition?c.Point.fromJSON(t.anchorPosition):new c.Point({coordinates:[0,0]}),this.material=t.material?u.ColorMaterial.fromJSON(t.material):new u.ColorMaterial({color:new l.Color(255,255,255,1)}),this.outline=t.outline?u.PointSymbol3DOutline.fromJSON(t.outline):new u.PointSymbol3DOutline,this.resource=t.resource?u.IconResource.fromJSON(t.resource):new u.IconResource,this.size=(0,a.defaultValue)(t.size,12)}return(0,o.default)(e,[{key:"toJSON",value:function(){return{type:this.type,anchor:this.anchor,anchorPosition:JSON.parse((0,n.default)(this.anchorPosition)),material:this.material,outline:this.outline.toJSON(),resource:this.resource.toJSON(),size:this.size}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(3)),i=p(r(0)),o=p(r(2)),a=p(r(4)),s=p(r(5)),u=r(1),l=r(6),c=r(30),h=p(r(43)),f=r(9),d=r(8);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,u.defaultValue)(e,{}),r.type=l.Symbol3DLayerType.object,r.anchor=(0,u.defaultValue)(e.anchor,l.AnchorType.center),r.anchorPosition=e.anchorPosition?f.Point.fromJSON(e.anchorPosition):new f.Point({coordinates:[0,0]}),r.castShadows=(0,u.defaultValue)(e.castShadows,!0),r.depth=(0,u.defaultValue)(e.depth,10),r.heading=(0,u.defaultValue)(e.heading,0),r.height=(0,u.defaultValue)(e.height,10),r.material=e.material?c.ColorMaterial.fromJSON(e.material):new c.ColorMaterial({color:new d.Color(255,255,255,1)}),r.resource=e.resource?c.IconResource.fromJSON(e.resource):new c.IconResource,r.roll=(0,u.defaultValue)(e.roll,0),r.tilt=(0,u.defaultValue)(e.tilt,0),r.width=(0,u.defaultValue)(e.width,10),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,anchor:this.anchor,anchorPosition:(0,u.toJSON)(this.anchorPosition,f.Point),castShadows:this.castShadows,depth:this.depth,heading:this.heading,height:this.height,material:(0,u.toJSON)(this.material,c.ColorMaterial),resource:(0,u.toJSON)(this.resource,c.IconResource),roll:this.roll,tilt:this.tilt,width:this.width}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(h.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(5)),u=r(1),l=r(6),c=r(30);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,u.defaultValue)(e,{}),r.type=l.Symbol3DLayerType.extrude,r.castShadows=(0,u.defaultValue)(e.castShadows,!0),r.material=e.material?c.ColorMaterial.fromJSON(e.material):new c.ColorMaterial,r.size=(0,u.defaultValue)(e.size,1),r.edges=e.edges?c.Edges3D.fromJSON(e.edges):new c.Edges3D,r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,castShadows:this.castShadows,material:(0,u.toJSON)(this.material,c.ColorMaterial),size:this.size,pattern:(0,u.toJSON)(this.edges,c.Edges3D)}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(h(r(43)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(3)),i=m(r(0)),o=m(r(2)),a=m(r(4)),s=m(r(5)),u=r(1),l=r(6),c=r(8),h=m(r(114)),f=m(r(117)),d=m(r(118)),p=m(r(165)),y=m(r(43)),g=r(30);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,u.defaultValue)(e,{}),r.type=l.Symbol3DLayerType.text,r.background=e.background?c.Color.fromJSON(e.background):new c.Color,r.font=e.font?h.default.fromJSON(e.font):new h.default,r.halo=e.halo?p.default.fromJSON(e.halo):new p.default,r.horizontalAlignment=(0,u.defaultValue)(e.horizontalAlignment,f.default.center),r.verticalAlignment=(0,u.defaultValue)(e.verticalAlignment,d.default.baseline),r.lineHeight=(0,u.defaultValue)(e.lineHeight,1),r.material=e.material?g.ColorMaterial.fromJSON(e.material):new g.ColorMaterial,r.size=(0,u.defaultValue)(e.size,9),r.text=(0,u.defaultValue)(e.text,void 0),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,background:(0,u.toJSON)(this.background,c.Color),font:(0,u.toJSON)(this.font,h.default),halo:(0,u.toJSON)(this.halo,p.default),horizontalAlignment:this.horizontalAlignment,verticalAlignment:this.verticalAlignment,lineHeight:this.lineHeight,material:(0,u.toJSON)(this.material,g.ColorMaterial),size:this.size,text:this.text}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(y.default);t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(5)),u=r(1),l=r(6),c=r(8),h=d(r(158)),f=d(r(159));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,u.defaultValue)(e,{}),r.type=l.Symbol3DLayerType.water,r.color=(0,u.defaultValue)(e.color,new c.Color),r.waterbodySize=(0,u.defaultValue)(e.waterbodySize,h.default.medium),r.waveDirection=(0,u.defaultValue)(e.waveDirection,void 0),r.waveStrength=(0,u.defaultValue)(e.waveStrength,f.default.moderate),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,color:this.color.toJSON(),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(d(r(43)).default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(7)),u=f(r(5)),l=r(1),c=r(6),h=f(r(123));function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.simpleMarker,r.size=(0,l.defaultValue)(e.size,20),r.outline=r._decorate("outline",e.outline,h.default,h.default.fromJSON),r.style=(0,l.defaultValue)(e.style,"circle"),r.path=(0,l.defaultValue)(e.path,""),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.size=this.size,e.outline=this.outline.toJSON(),e.style=this.style,e.path=this.path,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(f(r(168)).default);t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=d(r(52)),c=r(1),h=r(6),f=d(r(50));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.color=f.default.fromColor((0,c.defaultValue)(e.color,new f.default(0,0,0,1))),r.type=h.SymbolType.simpleLine,r.width=(0,c.defaultValue)(e.width,1),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.type=this.type,e.width=this.width,e}}]),t}(l.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=s(r(50));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.type="line-marker",this.color=a.default.fromColor((0,o.defaultValue)(t.color,{})),this.placement=(0,o.defaultValue)(t.placement,"begin-end"),this.style=(0,o.defaultValue)(t.style,"arrow")}return(0,i.default)(e,[{key:"toJSON",value:function(){return{type:this.type,color:a.default.fromColor(this.color).toJSON(),placement:this.placement,style:this.style}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(7)),u=h(r(5)),l=r(1),c=r(6);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.simpleFill,r.style=(0,l.defaultValue)(e.style,"solid"),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.style=this.style,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(h(r(169)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(7)),u=h(r(5)),l=r(1),c=r(6);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.pictureMarker,r.width=(0,l.defaultValue)(e.width,20),r.height=(0,l.defaultValue)(e.height,20),r.url=r._decorate("url",(0,l.defaultValue)(e.url,""),null,l.convertImageSourceToBase64),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.width=this.width,e.height=this.height,e.url=this.url,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(h(r(168)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(5)),u=f(r(169)),l=r(6),c=r(1),h=f(r(50));function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.type=l.SymbolType.pictureFill,r.height=(0,c.defaultValue)(e.height,12),r.url=r._decorate("url",(0,c.defaultValue)(e.url,""),null,c.convertImageSourceToBase64),r.width=(0,c.defaultValue)(e.width,12),r.xoffset=(0,c.defaultValue)(e.xoffset,0),r.xscale=(0,c.defaultValue)(e.xscale,1),r.yoffset=(0,c.defaultValue)(e.yoffset,0),r.yscale=(0,c.defaultValue)(e.yscale,1),r.color=h.default.fromColor((0,c.defaultValue)(e.color,new h.default(255,255,255,1))),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,height:this.height,outline:this.outline.toJSON(),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,c.defaultValue)(e,{}))}}]),t}(u.default);t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(7)),u=f(r(5)),l=r(1),c=r(6),h=f(r(50));function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.mapgisText,r.backgroundPadding=(0,l.defaultValue)(e.backgroundPadding,[5,5]),r.backgroundImage=e.backgroundImage,r.textDecorationUnderlineColor=(0,l.defaultValue)(h.default.fromColor(e.textDecorationUnderlineColor),void 0),r.textDecorationUnderlineWidth=(0,l.defaultValue)(e.textDecorationUnderlineWidth,0),r.textDecorationThroughlineColor=(0,l.defaultValue)(h.default.fromColor(e.textDecorationThroughlineColor),void 0),r.textDecorationThroughlineWidth=(0,l.defaultValue)(e.textDecorationThroughlineWidth,0),r.textShadowOffsetX=(0,l.defaultValue)(e.textShadowOffsetX,0),r.textShadowOffsetY=(0,l.defaultValue)(e.textShadowOffsetY,0),r.textShadowBlur=(0,l.defaultValue)(e.textShadowBlur,1),r.textShadowColor=(0,l.defaultValue)(h.default.fromColor(e.textShadowColor),void 0),r.letterSpacing=(0,l.defaultValue)(e.letterSpacing,0),r.lineMaxNum=(0,l.defaultValue)(e.lineMaxNum,3),r.textWraps=(0,l.defaultValue)(e.textWraps,!1),r.textExtraIcon=e.textExtraIcon,r.textExtraIconAnchor=(0,l.defaultValue)(e.textExtraIconAnchor,"top"),r.textExtraIconSize=(0,l.defaultValue)(e.textExtraIconSize,14),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.backgroundPadding=this.backgroundPadding,e.textDecorationUnderlineColor=h.default.fromColor(this.textDecorationUnderlineColor).toJSON(),e.textDecorationUnderlineWidth=this.textDecorationUnderlineWidth,e.textDecorationThroughlineColor=h.default.fromColor(this.textDecorationThroughlineColor).toJSON(),e.textDecorationThroughlineWidth=this.textDecorationThroughlineWidth,e.textShadowOffsetX=this.textShadowOffsetX,e.textShadowOffsetY=this.textShadowOffsetY,e.textShadowBlur=this.textShadowBlur,e.textShadowColor=h.default.fromColor(this.textShadowColor).toJSON(),e.letterSpacing=this.letterSpacing,e.lineMaxNum=this.lineMaxNum,e.textWraps=this.textWraps,e.textExtraIcon=this.textExtraIcon,e.textExtraIconAnchor=this.textExtraIconAnchor,e.textExtraIconSize=this.textExtraIconSize,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(f(r(167)).default);t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=d(r(75)),c=r(1),h=d(r(116)),f=r(30);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.type=h.default.label3D,r.callout=e.callout?f.LineCallout3D.fromJSON(e.callout):new f.LineCallout3D,r.verticalOffset=e.verticalOffset?f.Symbol3DVerticalOffset.fromJSON(e.verticalOffset):new f.Symbol3DVerticalOffset,r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.callout=(0,c.toJSON)(this.callout,f.LineCallout3D),e.verticalOffset=(0,c.toJSON)(this.verticalOffset,f.Symbol3DVerticalOffset),e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(l.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(2)),a=c(r(4)),s=c(r(7)),u=c(r(5)),l=r(6);function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type=l.SymbolType.line3D,r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(c(r(75)).default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(1),c=d(r(116)),h=d(r(75)),f=r(30);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.default.point3D,r.callout=(0,l.defaultValue)(e.callout,void 0),r.verticalOffset=(0,l.defaultValue)(e.verticalOffset,void 0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.callout=(0,l.toJSON)(this.callout,f.LineCallout3D),e.verticalOffset=(0,l.toJSON)(this.verticalOffset,f.Symbol3DVerticalOffset),e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(h.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(7)),u=h(r(5)),l=r(1),c=r(6);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type=c.SymbolType.polygon3D,r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(h(r(75)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(10)),i=h(r(0)),o=h(r(2)),a=r(1),s=h(r(162)),u=r(9),l=r(6),c=h(r(74));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){return t&&e&&"4326"!==e.wkid?(t.spatialReference=e,c.default.project(t,new u.SpatialReference("EPSG:4326"))):t}function d(e){return e.length>2?[e[1],e[0],e[2]]:[e[1],e[0]]}function p(e,t,r){for(var n,i=[],o=0,a=e.length;o<a;o++)n=t?p(e[o],t-1,r):(r||d)(e[o]),i.push(n);return i}var y=function(){function e(t){(0,i.default)(this,e),t=(0,a.defaultValue)(t,{}),this.id=(0,a.defaultValue)(t.id,(0,a.getGUID)()),this.features=(0,a.defaultValue)(t.features,[]),this.spatialReference=(0,a.defaultValue)(t.spatialReference,new u.SpatialReference("EPSG:4326")),this.type="FeatureCollection"}return(0,o.default)(e,[{key:"findFeatureById",value:function(e){for(var t=void 0,r=0;r<this.features.length;r++)if(this.features[r].id===e||this.features[r].attributes.id===e){t=this.features[r];break}return t}},{key:"toJSON",value:function(){var e={};return e.id=this.id,e.features=this.features.map(function(e){return e.toJSON()}),e.spatialReference=this.spatialReference.toJSON(),e.type=this.type,e}},{key:"clone",value:function(){for(var t=new e,r=0;r<this.features.length;r++)t.features.push(this.features[r].clone());return t}},{key:"toGeoJSON",value:function(){for(var e={type:"FeatureCollection",features:[]},t=0;t<this.features.length;t++){var r=this.features[t].clone();if(r.geometry){var n=f(r.geometry.spatialReference,r.geometry);r.geometry=u.Geometry.fromGeoJSON(n)}e.features.push(r.toGeoJSON())}return e}}],[{key:"fromJSON",value:function(t){return new e(t=(0,a.defaultValue)(t,{}))}},{key:"fromGeoJSON",value:function(t){var r=(t=(0,a.defaultValue)(t,{})).type,i=[],o=new u.SpatialReference("EPSG:4326");if(t.crs&&t.crs.properties&&t.crs.properties.name&&(o=new u.SpatialReference({wkt:t.crs.properties.name})),"FeatureCollection"===r)for(var l=(0,a.defaultValue)(t.features,[]),c=0;c<l.length;c++){l[c].properties=(0,a.defaultValue)(l[c].properties,{});var h=l[c].id||l[c].properties.id,f=new s.default({id:h,attributes:JSON.parse((0,n.default)(l[c].properties)),geometry:u.Geometry.fromGeoJSON(l[c].geometry)});f.geometry.spatialReference=o.clone(),i.push(f)}return new e({spatialReference:o,features:i})}},{key:"fromArray",value:function(t,r,n){var i=(n=(0,a.defaultValue)(n,{})).reverse,o=(0,a.defaultValue)(t,[]);t instanceof e&&(o=(0,a.defaultValue)(t.features,[])),r=(0,a.defaultValue)(r,new e);for(var c=0;c<o.length;c++)if(o[c]){var h=void 0;if(o[c].geometry&&o[c].geometry.type&&o[c].geometry.coordinates)switch(o[c].geometry.type){case l.GeometryType.point:var f=o[c].geometry.coordinates;i&&(f=d(f)),h=new u.Point({coordinates:f});break;case l.GeometryType.multiPoint:var y=o[c].geometry.coordinates;i&&(y=p(y,0,d)),h=new u.MultiPoint({coordinates:y});break;case l.GeometryType.lineString:var g=o[c].geometry.coordinates;i&&(g=p(g,0,d)),h=new u.LineString({coordinates:g});break;case l.GeometryType.multiLineString:var m=o[c].geometry.coordinates;i&&(m=p(m,1,d)),h=new u.MultiLineString({coordinates:m});break;case l.GeometryType.polygon:var v=o[c].geometry.coordinates;i&&(v=p(v,1,d)),h=new u.Polygon({coordinates:v});break;case l.GeometryType.multiPolygon:var _=o[c].geometry.coordinates;i&&(_=p(_,2,d)),h=new u.MultiPolygon({coordinates:_});break;default:h={}}var S=u.SpatialReference.fromJSON(o[c].geometry.spatialReference||r.spatialReference),x=new s.default({attributes:t[c].attributes,geometry:h,symbol:t[c].symbol,additional:t[c].additional});x.geometry.spatialReference=S,r.features.push(x)}return r}}]),e}();t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeaturesFromFeatureSet=void 0;var n=r(373);t.getFeaturesFromFeatureSet=n.getFeaturesFromFeatureSet},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeaturesFromFeatureSet=void 0;var n=r(122),i=r(1);t.getFeaturesFromFeatureSet=function(e){var t=[];e instanceof n.FeatureSet?t=e.features:Array.isArray(e)&&e.every(function(e){return e instanceof n.Feature})?t=e:i.Log.info("传入要素集错误");for(var r=[],o=0;o<t.length;o++)r[o]=n.Feature.fromJSON(t[o].toJSON());return r}},function(e,t,r){r(87),r(70),e.exports=r(375)},function(e,t,r){var n=r(24),i=r(108);e.exports=r(12).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return n(t.call(e))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjUnitWkidMap=t.getProjUnitByWkid=t.RadiusUnitToMeter=void 0;var n=r(170);t.RadiusUnitToMeter={degrees:111320,miles:1609.34,"nautical-miles":1852,yard:.9144,meters:1,kilometers:1e3},t.getProjUnitByWkid=function(e){return(0,n.ProjUnitWkidMap)(e)?n.ProjUnitWkidMap.values[(0,n.ProjUnitWkidMap)(e)]:1},t.ProjUnitWkidMap=n.ProjUnitWkidMap},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e){var t=e.clone(),r=function(e){return Math.sqrt(function(e){return e.hasZ?e.coordinates[0]*e.coordinates[0]+e.coordinates[1]*e.coordinates[1]+e.coordinates[2]*e.coordinates[2]:e.coordinates[0]*e.coordinates[0]+e.coordinates[1]*e.coordinates[1]}(e))}(t);return t.coordinates[0]/=r,t.coordinates[1]/=r,t.hasZ&&(t.coordinates[2]/=r),t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGeometryCenter=t.createGeometry=void 0;var n=r(18),i=function(e){return e&&e.__esModule?e:{default:e}}(r(88)),o=r(97);t.createGeometry=function(e){switch((e=(0,n.defaultValue)(e,{})).type){case i.default.circle:return new o.Circle(e);case i.default.extent:return new o.Extent(e);case i.default.lineString:return new o.LineString(e);case i.default.multiPolygon:return new o.MultiPolygon(e);case i.default.point:return new o.Point(e);case i.default.polygon:default:return new o.Polygon(e)}},t.getGeometryCenter=function(e){e||o.Log.error("几何为空");var t=void 0;switch(e.type){case i.default.point:t=e;break;case i.default.multiPoint:case i.default.lineString:case i.default.multiLineString:case i.default.multiPolygon:t=e.extent.center;break;case i.default.polygon:t=e.centroid;break;case i.default.extent:case i.default.circle:t=e.center;break;default:t=e.extent.center}return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionParser=void 0;var n=s(r(380)),i=s(r(384)),o=r(388),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(389));function s(e){return e&&e.__esModule?e:{default:e}}o.Parser.createValueExpressionParser=function(){var e=new o.Parser;return(0,i.default)(a).forEach(function(t){var r=(0,n.default)(t,2),i=r[0],o=r[1];e.functions[i]=o}),e.binaryOps["+"]=function(e,t){return e+t},e},t.ExpressionParser=o.Parser},function(e,t,r){"use strict";t.__esModule=!0;var n=o(r(381)),i=o(r(173));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,n.default)(Object(e)))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var s,u=(0,i.default)(e);!(n=(s=u.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,r){e.exports={default:r(382),__esModule:!0}},function(e,t,r){r(87),r(70),e.exports=r(383)},function(e,t,r){var n=r(107),i=r(21)("iterator"),o=r(61);e.exports=r(12).isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(n(t))}},function(e,t,r){e.exports={default:r(385),__esModule:!0}},function(e,t,r){r(386),e.exports=r(12).Object.entries},function(e,t,r){var n=r(17),i=r(387)(!0);n(n.S,"Object",{entries:function(e){return i(e)}})},function(e,t,r){var n=r(27),i=r(57),o=r(39),a=r(71).f;e.exports=function(e){return function(t){for(var r,s=o(t),u=i(s),l=u.length,c=0,h=[];l>c;)r=u[c++],n&&!a.call(s,r)||h.push(e?[r,s[r]]:s[r]);return h}}},function(e,t,r){"use strict";r.r(t),r.d(t,"Expression",function(){return T}),r.d(t,"Parser",function(){return Oe});var n="INUMBER",i="IOP1",o="IOP2",a="IOP3",s="IVAR",u="IVARNAME",l="IFUNCALL",c="IFUNDEF",h="IEXPR",f="IEXPREVAL",d="IMEMBER",p="IENDSTATEMENT",y="IARRAY";function g(e,t){this.type=e,this.value=void 0!==t&&null!==t?t:0}function m(e){return new g(i,e)}function v(e){return new g(o,e)}function _(e){return new g(a,e)}function S(e,t,r){var g,m,v,_,k,M,E=[];if(b(e))return w(e,r);for(var I=e.length,T=0;T<I;T++){var L=e[T],C=L.type;if(C===n||C===u)E.push(L.value);else if(C===o)m=E.pop(),g=E.pop(),"and"===L.value?E.push(!!g&&!!S(m,t,r)):"or"===L.value?E.push(!!g||!!S(m,t,r)):"="===L.value?(_=t.binaryOps[L.value],E.push(_(g,S(m,t,r),r))):(_=t.binaryOps[L.value],E.push(_(w(g,r),w(m,r))));else if(C===a)v=E.pop(),m=E.pop(),g=E.pop(),"?"===L.value?E.push(S(g?m:v,t,r)):(_=t.ternaryOps[L.value],E.push(_(w(g,r),w(m,r),w(v,r))));else if(C===s)if(L.value in t.functions)E.push(t.functions[L.value]);else if(L.value in t.unaryOps&&t.parser.isOperatorEnabled(L.value))E.push(t.unaryOps[L.value]);else{var P=r[L.value];if(void 0===P)throw new Error("undefined variable: "+L.value);E.push(P)}else if(C===i)g=E.pop(),_=t.unaryOps[L.value],E.push(_(w(g,r)));else if(C===l){for(M=L.value,k=[];M-- >0;)k.unshift(w(E.pop(),r));if(!(_=E.pop()).apply||!_.call)throw new Error(_+" is not a function");E.push(_.apply(void 0,k))}else if(C===c)E.push(function(){for(var e=E.pop(),n=[],i=L.value;i-- >0;)n.unshift(E.pop());var o=E.pop(),a=function(){for(var i=Object.assign({},r),o=0,a=n.length;o<a;o++)i[n[o]]=arguments[o];return S(e,t,i)};return Object.defineProperty(a,"name",{value:o,writable:!1}),r[o]=a,a}());else if(C===h)E.push(x(L,t));else if(C===f)E.push(L);else if(C===d)g=E.pop(),E.push(g[L.value]);else if(C===p)E.pop();else{if(C!==y)throw new Error("invalid Expression");for(M=L.value,k=[];M-- >0;)k.unshift(E.pop());E.push(k)}}if(E.length>1)throw new Error("invalid Expression (parity)");return 0===E[0]?0:w(E[0],r)}function x(e,t,r){return b(e)?e:{type:f,value:function(r){return S(e.value,t,r)}}}function b(e){return e&&e.type===f}function w(e,t){return b(e)?e.value(t):e}function k(e,t){for(var r,f,g,m,v,_,S=[],x=0;x<e.length;x++){var b=e[x],w=b.type;if(w===n)"number"==typeof b.value&&b.value<0?S.push("("+b.value+")"):Array.isArray(b.value)?S.push("["+b.value.map(M).join(", ")+"]"):S.push(M(b.value));else if(w===o)f=S.pop(),r=S.pop(),m=b.value,t?"^"===m?S.push("Math.pow("+r+", "+f+")"):"and"===m?S.push("(!!"+r+" && !!"+f+")"):"or"===m?S.push("(!!"+r+" || !!"+f+")"):"||"===m?S.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }(("+r+"),("+f+")))"):"=="===m?S.push("("+r+" === "+f+")"):"!="===m?S.push("("+r+" !== "+f+")"):"["===m?S.push(r+"[("+f+") | 0]"):S.push("("+r+" "+m+" "+f+")"):"["===m?S.push(r+"["+f+"]"):S.push("("+r+" "+m+" "+f+")");else if(w===a){if(g=S.pop(),f=S.pop(),r=S.pop(),"?"!==(m=b.value))throw new Error("invalid Expression");S.push("("+r+" ? "+f+" : "+g+")")}else if(w===s||w===u)S.push(b.value);else if(w===i)r=S.pop(),"-"===(m=b.value)||"+"===m?S.push("("+m+r+")"):t?"not"===m?S.push("(!"+r+")"):"!"===m?S.push("fac("+r+")"):S.push(m+"("+r+")"):"!"===m?S.push("("+r+"!)"):S.push("("+m+" "+r+")");else if(w===l){for(_=b.value,v=[];_-- >0;)v.unshift(S.pop());m=S.pop(),S.push(m+"("+v.join(", ")+")")}else if(w===c){for(f=S.pop(),_=b.value,v=[];_-- >0;)v.unshift(S.pop());r=S.pop(),t?S.push("("+r+" = function("+v.join(", ")+") { return "+f+" })"):S.push("("+r+"("+v.join(", ")+") = "+f+")")}else if(w===d)r=S.pop(),S.push(r+"."+b.value);else if(w===y){for(_=b.value,v=[];_-- >0;)v.unshift(S.pop());S.push("["+v.join(", ")+"]")}else if(w===h)S.push("("+k(b.value,t)+")");else if(w!==p)throw new Error("invalid Expression")}return S.length>1&&(S=t?[S.join(",")]:[S.join(";")]),String(S[0])}function M(e){return"string"==typeof e?JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):e}function E(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return!0;return!1}function I(e,t,r){for(var n=!!(r=r||{}).withMembers,i=null,o=0;o<e.length;o++){var a=e[o];a.type===s||a.type===u?n||E(t,a.value)?null!==i?(E(t,i)||t.push(i),i=a.value):i=a.value:t.push(a.value):a.type===d&&n&&null!==i?i+="."+a.value:a.type===h?I(a.value,t,r):null!==i&&(E(t,i)||t.push(i),i=null)}null===i||E(t,i)||t.push(i)}function T(e,t){this.tokens=e,this.parser=t,this.unaryOps=t.unaryOps,this.binaryOps=t.binaryOps,this.ternaryOps=t.ternaryOps,this.functions=t.functions}g.prototype.toString=function(){switch(this.type){case n:case i:case o:case a:case s:case u:case p:return this.value;case l:return"CALL "+this.value;case c:return"DEF "+this.value;case y:return"ARRAY "+this.value;case d:return"."+this.value;default:return"Invalid Instruction"}},T.prototype.simplify=function(e){return e=e||{},new T(function e(t,r,l,c,f){for(var p,m,v,_,S=[],x=[],b=0;b<t.length;b++){var w=t[b],k=w.type;if(k===n||k===u)Array.isArray(w.value)?S.push.apply(S,e(w.value.map(function(e){return new g(n,e)}).concat(new g(y,w.value.length)),r,l,c,f)):S.push(w);else if(k===s&&f.hasOwnProperty(w.value))w=new g(n,f[w.value]),S.push(w);else if(k===o&&S.length>1)m=S.pop(),p=S.pop(),_=l[w.value],w=new g(n,_(p.value,m.value)),S.push(w);else if(k===a&&S.length>2)v=S.pop(),m=S.pop(),p=S.pop(),"?"===w.value?S.push(p.value?m.value:v.value):(_=c[w.value],w=new g(n,_(p.value,m.value,v.value)),S.push(w));else if(k===i&&S.length>0)p=S.pop(),_=r[w.value],w=new g(n,_(p.value)),S.push(w);else if(k===h){for(;S.length>0;)x.push(S.shift());x.push(new g(h,e(w.value,r,l,c,f)))}else if(k===d&&S.length>0)p=S.pop(),S.push(new g(n,p.value[w.value]));else{for(;S.length>0;)x.push(S.shift());x.push(w)}}for(;S.length>0;)x.push(S.shift());return x}(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,e),this.parser)},T.prototype.substitute=function(e,t){return t instanceof T||(t=this.parser.parse(String(t))),new T(function e(t,r,n){for(var u=[],l=0;l<t.length;l++){var c=t[l],f=c.type;if(f===s&&c.value===r)for(var d=0;d<n.tokens.length;d++){var p,y=n.tokens[d];p=y.type===i?m(y.value):y.type===o?v(y.value):y.type===a?_(y.value):new g(y.type,y.value),u.push(p)}else f===h?u.push(new g(h,e(c.value,r,n))):u.push(c)}return u}(this.tokens,e,t),this.parser)},T.prototype.evaluate=function(e){return e=e||{},S(this.tokens,this,e)},T.prototype.toString=function(){return k(this.tokens,!1)},T.prototype.symbols=function(e){e=e||{};var t=[];return I(this.tokens,t,e),t},T.prototype.variables=function(e){e=e||{};var t=[];I(this.tokens,t,e);var r=this.functions;return t.filter(function(e){return!(e in r)})},T.prototype.toJSFunction=function(e,t){var r=this,n=new Function(e,"with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return "+k(this.simplify(t).tokens,!0)+"; }");return function(){return n.apply(r,arguments)}};var L="TOP",C="TPAREN";function P(e,t,r){this.type=e,this.value=t,this.index=r}function N(e,t){this.pos=0,this.current=null,this.unaryOps=e.unaryOps,this.binaryOps=e.binaryOps,this.ternaryOps=e.ternaryOps,this.consts=e.consts,this.expression=t,this.savedPosition=0,this.savedCurrent=null,this.options=e.options,this.parser=e}P.prototype.toString=function(){return this.type+": "+this.value},N.prototype.newToken=function(e,t,r){return new P(e,t,null!=r?r:this.pos)},N.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},N.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},N.prototype.next=function(){return this.pos>=this.expression.length?this.newToken("TEOF","EOF"):this.isWhitespace()||this.isComment()?this.next():this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName()?this.current:void this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')},N.prototype.isString=function(){var e=!1,t=this.pos,r=this.expression.charAt(t);if("'"===r||'"'===r)for(var n=this.expression.indexOf(r,t+1);n>=0&&this.pos<this.expression.length;){if(this.pos=n+1,"\\"!==this.expression.charAt(n-1)){var i=this.expression.substring(t+1,n);this.current=this.newToken("TSTRING",this.unescape(i),t),e=!0;break}n=this.expression.indexOf(r,n+1)}return e},N.prototype.isParen=function(){var e=this.expression.charAt(this.pos);return("("===e||")"===e)&&(this.current=this.newToken(C,e),this.pos++,!0)},N.prototype.isBracket=function(){var e=this.expression.charAt(this.pos);return!("["!==e&&"]"!==e||!this.isOperatorEnabled("[")||(this.current=this.newToken("TBRACKET",e),this.pos++,0))},N.prototype.isComma=function(){return","===this.expression.charAt(this.pos)&&(this.current=this.newToken("TCOMMA",","),this.pos++,!0)},N.prototype.isSemicolon=function(){return";"===this.expression.charAt(this.pos)&&(this.current=this.newToken("TSEMICOLON",";"),this.pos++,!0)},N.prototype.isConst=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var r=this.expression.charAt(t);if(r.toUpperCase()===r.toLowerCase()&&(t===this.pos||"_"!==r&&"."!==r&&(r<"0"||r>"9")))break}if(t>e){var n=this.expression.substring(e,t);if(n in this.consts)return this.current=this.newToken("TNUMBER",this.consts[n]),this.pos+=n.length,!0}return!1},N.prototype.isNamedOp=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var r=this.expression.charAt(t);if(r.toUpperCase()===r.toLowerCase()&&(t===this.pos||"_"!==r&&(r<"0"||r>"9")))break}if(t>e){var n=this.expression.substring(e,t);if(this.isOperatorEnabled(n)&&(n in this.binaryOps||n in this.unaryOps||n in this.ternaryOps))return this.current=this.newToken(L,n),this.pos+=n.length,!0}return!1},N.prototype.isName=function(){for(var e=this.pos,t=e,r=!1;t<this.expression.length;t++){var n=this.expression.charAt(t);if(n.toUpperCase()===n.toLowerCase()){if(t===this.pos&&("$"===n||"_"===n)){"_"===n&&(r=!0);continue}if(t===this.pos||!r||"_"!==n&&(n<"0"||n>"9"))break}else r=!0}if(r){var i=this.expression.substring(e,t);return this.current=this.newToken("TNAME",i),this.pos+=i.length,!0}return!1},N.prototype.isWhitespace=function(){for(var e=!1,t=this.expression.charAt(this.pos);!(" "!==t&&"\t"!==t&&"\n"!==t&&"\r"!==t||(e=!0,this.pos++,this.pos>=this.expression.length));)t=this.expression.charAt(this.pos);return e};var O=/^[0-9a-f]{4}$/i;function R(e,t,r){this.parser=e,this.tokens=t,this.current=null,this.nextToken=null,this.next(),this.savedCurrent=null,this.savedNextToken=null,this.allowMemberAccess=!1!==r.allowMemberAccess}N.prototype.unescape=function(e){var t=e.indexOf("\\");if(t<0)return e;for(var r=e.substring(0,t);t>=0;){var n=e.charAt(++t);switch(n){case"'":r+="'";break;case'"':r+='"';break;case"\\":r+="\\";break;case"/":r+="/";break;case"b":r+="\b";break;case"f":r+="\f";break;case"n":r+="\n";break;case"r":r+="\r";break;case"t":r+="\t";break;case"u":var i=e.substring(t+1,t+5);O.test(i)||this.parseError("Illegal escape sequence: \\u"+i),r+=String.fromCharCode(parseInt(i,16)),t+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+n+'"')}++t;var o=e.indexOf("\\",t);r+=e.substring(t,o<0?e.length:o),t=o}return r},N.prototype.isComment=function(){return"/"===this.expression.charAt(this.pos)&&"*"===this.expression.charAt(this.pos+1)&&(this.pos=this.expression.indexOf("*/",this.pos)+2,1===this.pos&&(this.pos=this.expression.length),!0)},N.prototype.isRadixInteger=function(){var e,t,r=this.pos;if(r>=this.expression.length-2||"0"!==this.expression.charAt(r))return!1;if(++r,"x"===this.expression.charAt(r))e=16,t=/^[0-9a-f]$/i,++r;else{if("b"!==this.expression.charAt(r))return!1;e=2,t=/^[01]$/i,++r}for(var n=!1,i=r;r<this.expression.length;){var o=this.expression.charAt(r);if(!t.test(o))break;r++,n=!0}return n&&(this.current=this.newToken("TNUMBER",parseInt(this.expression.substring(i,r),e)),this.pos=r),n},N.prototype.isNumber=function(){for(var e,t=!1,r=this.pos,n=r,i=r,o=!1,a=!1;r<this.expression.length&&((e=this.expression.charAt(r))>="0"&&e<="9"||!o&&"."===e);)"."===e?o=!0:a=!0,r++,t=a;if(t&&(i=r),"e"===e||"E"===e){r++;for(var s=!0,u=!1;r<this.expression.length;){if(e=this.expression.charAt(r),!s||"+"!==e&&"-"!==e){if(!(e>="0"&&e<="9"))break;u=!0,s=!1}else s=!1;r++}u||(r=i)}return t?(this.current=this.newToken("TNUMBER",parseFloat(this.expression.substring(n,r))),this.pos=r):this.pos=i,t},N.prototype.isOperator=function(){var e=this.pos,t=this.expression.charAt(this.pos);if("+"===t||"-"===t||"*"===t||"/"===t||"%"===t||"^"===t||"?"===t||":"===t||"."===t)this.current=this.newToken(L,t);else if("∙"===t||"•"===t)this.current=this.newToken(L,"*");else if(">"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(L,">="),this.pos++):this.current=this.newToken(L,">");else if("<"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(L,"<="),this.pos++):this.current=this.newToken(L,"<");else if("|"===t){if("|"!==this.expression.charAt(this.pos+1))return!1;this.current=this.newToken(L,"||"),this.pos++}else if("="===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(L,"=="),this.pos++):this.current=this.newToken(L,t);else{if("!"!==t)return!1;"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(L,"!="),this.pos++):this.current=this.newToken(L,t)}return this.pos++,!!this.isOperatorEnabled(this.current.value)||(this.pos=e,!1)},N.prototype.isOperatorEnabled=function(e){return this.parser.isOperatorEnabled(e)},N.prototype.getCoordinates=function(){var e,t=0,r=-1;do{t++,e=this.pos-r,r=this.expression.indexOf("\n",r+1)}while(r>=0&&r<this.pos);return{line:t,column:e}},N.prototype.parseError=function(e){var t=this.getCoordinates();throw new Error("parse error ["+t.line+":"+t.column+"]: "+e)},R.prototype.next=function(){return this.current=this.nextToken,this.nextToken=this.tokens.next()},R.prototype.tokenMatches=function(e,t){return void 0===t||(Array.isArray(t)?E(t,e.value):"function"==typeof t?t(e):e.value===t)},R.prototype.save=function(){this.savedCurrent=this.current,this.savedNextToken=this.nextToken,this.tokens.save()},R.prototype.restore=function(){this.tokens.restore(),this.current=this.savedCurrent,this.nextToken=this.savedNextToken},R.prototype.accept=function(e,t){return!(this.nextToken.type!==e||!this.tokenMatches(this.nextToken,t)||(this.next(),0))},R.prototype.expect=function(e,t){if(!this.accept(e,t)){var r=this.tokens.getCoordinates();throw new Error("parse error ["+r.line+":"+r.column+"]: Expected "+(t||e))}},R.prototype.parseAtom=function(e){var t=this.tokens.unaryOps;if(this.accept("TNAME")||this.accept(L,function(e){return e.value in t}))e.push(new g(s,this.current.value));else if(this.accept("TNUMBER"))e.push(new g(n,this.current.value));else if(this.accept("TSTRING"))e.push(new g(n,this.current.value));else if(this.accept(C,"("))this.parseExpression(e),this.expect(C,")");else{if(!this.accept("TBRACKET","["))throw new Error("unexpected "+this.nextToken);if(this.accept("TBRACKET","]"))e.push(new g(y,0));else{var r=this.parseArrayList(e);e.push(new g(y,r))}}},R.prototype.parseExpression=function(e){var t=[];this.parseUntilEndStatement(e,t)||(this.parseVariableAssignmentExpression(t),this.parseUntilEndStatement(e,t)||this.pushExpression(e,t))},R.prototype.pushExpression=function(e,t){for(var r=0,n=t.length;r<n;r++)e.push(t[r])},R.prototype.parseUntilEndStatement=function(e,t){return!!this.accept("TSEMICOLON")&&(!this.nextToken||"TEOF"===this.nextToken.type||this.nextToken.type===C&&")"===this.nextToken.value||t.push(new g(p)),"TEOF"!==this.nextToken.type&&this.parseExpression(t),e.push(new g(h,t)),!0)},R.prototype.parseArrayList=function(e){for(var t=0;!this.accept("TBRACKET","]");)for(this.parseExpression(e),++t;this.accept("TCOMMA");)this.parseExpression(e),++t;return t},R.prototype.parseVariableAssignmentExpression=function(e){for(this.parseConditionalExpression(e);this.accept(L,"=");){var t=e.pop(),r=[],n=e.length-1;if(t.type!==l){if(t.type!==s&&t.type!==d)throw new Error("expected variable for assignment");this.parseVariableAssignmentExpression(r),e.push(new g(u,t.value)),e.push(new g(h,r)),e.push(v("="))}else{if(!this.tokens.isOperatorEnabled("()="))throw new Error("function definition is not permitted");for(var i=0,o=t.value+1;i<o;i++){var a=n-i;e[a].type===s&&(e[a]=new g(u,e[a].value))}this.parseVariableAssignmentExpression(r),e.push(new g(h,r)),e.push(new g(c,t.value))}}},R.prototype.parseConditionalExpression=function(e){for(this.parseOrExpression(e);this.accept(L,"?");){var t=[],r=[];this.parseConditionalExpression(t),this.expect(L,":"),this.parseConditionalExpression(r),e.push(new g(h,t)),e.push(new g(h,r)),e.push(_("?"))}},R.prototype.parseOrExpression=function(e){for(this.parseAndExpression(e);this.accept(L,"or");){var t=[];this.parseAndExpression(t),e.push(new g(h,t)),e.push(v("or"))}},R.prototype.parseAndExpression=function(e){for(this.parseComparison(e);this.accept(L,"and");){var t=[];this.parseComparison(t),e.push(new g(h,t)),e.push(v("and"))}};var V=["==","!=","<","<=",">=",">","in"];R.prototype.parseComparison=function(e){for(this.parseAddSub(e);this.accept(L,V);){var t=this.current;this.parseAddSub(e),e.push(v(t.value))}};var G=["+","-","||"];R.prototype.parseAddSub=function(e){for(this.parseTerm(e);this.accept(L,G);){var t=this.current;this.parseTerm(e),e.push(v(t.value))}};var A=["*","/","%"];function D(e,t){return Number(e)+Number(t)}function F(e,t){return e-t}function j(e,t){return e*t}function B(e,t){return e/t}function q(e,t){return e%t}function U(e,t){return Array.isArray(e)&&Array.isArray(t)?e.concat(t):""+e+t}function J(e,t){return e===t}function z(e,t){return e!==t}function W(e,t){return e>t}function H(e,t){return e<t}function X(e,t){return e>=t}function Y(e,t){return e<=t}function Z(e,t){return Boolean(e&&t)}function K(e,t){return Boolean(e||t)}function Q(e,t){return E(t,e)}function $(e){return(Math.exp(e)-Math.exp(-e))/2}function ee(e){return(Math.exp(e)+Math.exp(-e))/2}function te(e){return e===1/0?1:e===-1/0?-1:(Math.exp(e)-Math.exp(-e))/(Math.exp(e)+Math.exp(-e))}function re(e){return e===-1/0?e:Math.log(e+Math.sqrt(e*e+1))}function ne(e){return Math.log(e+Math.sqrt(e*e-1))}function ie(e){return Math.log((1+e)/(1-e))/2}function oe(e){return Math.log(e)*Math.LOG10E}function ae(e){return-e}function se(e){return!e}function ue(e){return e<0?Math.ceil(e):Math.floor(e)}function le(e){return Math.random()*(e||1)}function ce(e){return de(e+1)}R.prototype.parseTerm=function(e){for(this.parseFactor(e);this.accept(L,A);){var t=this.current;this.parseFactor(e),e.push(v(t.value))}},R.prototype.parseFactor=function(e){var t=this.tokens.unaryOps;if(this.save(),this.accept(L,function(e){return e.value in t})){if("-"!==this.current.value&&"+"!==this.current.value){if(this.nextToken.type===C&&"("===this.nextToken.value)return this.restore(),void this.parseExponential(e);if("TSEMICOLON"===this.nextToken.type||"TCOMMA"===this.nextToken.type||"TEOF"===this.nextToken.type||this.nextToken.type===C&&")"===this.nextToken.value)return this.restore(),void this.parseAtom(e)}var r=this.current;this.parseFactor(e),e.push(m(r.value))}else this.parseExponential(e)},R.prototype.parseExponential=function(e){for(this.parsePostfixExpression(e);this.accept(L,"^");)this.parseFactor(e),e.push(v("^"))},R.prototype.parsePostfixExpression=function(e){for(this.parseFunctionCall(e);this.accept(L,"!");)e.push(m("!"))},R.prototype.parseFunctionCall=function(e){var t=this.tokens.unaryOps;if(this.accept(L,function(e){return e.value in t})){var r=this.current;this.parseAtom(e),e.push(m(r.value))}else for(this.parseMemberExpression(e);this.accept(C,"(");)if(this.accept(C,")"))e.push(new g(l,0));else{var n=this.parseArgumentList(e);e.push(new g(l,n))}},R.prototype.parseArgumentList=function(e){for(var t=0;!this.accept(C,")");)for(this.parseExpression(e),++t;this.accept("TCOMMA");)this.parseExpression(e),++t;return t},R.prototype.parseMemberExpression=function(e){for(this.parseAtom(e);this.accept(L,".")||this.accept("TBRACKET","[");){var t=this.current;if("."===t.value){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect("TNAME"),e.push(new g(d,this.current.value))}else{if("["!==t.value)throw new Error("unexpected symbol: "+t.value);if(!this.tokens.isOperatorEnabled("["))throw new Error('unexpected "[]", arrays are disabled');this.parseExpression(e),this.expect("TBRACKET","]"),e.push(v("["))}}};var he=4.7421875,fe=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function de(e){var t,r;if(function(e){return isFinite(e)&&e===Math.round(e)}(e)){if(e<=0)return isFinite(e)?1/0:NaN;if(e>171)return 1/0;for(var n=e-2,i=e-1;n>1;)i*=n,n--;return 0===i&&(i=1),i}if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*de(1-e));if(e>=171.35)return 1/0;if(e>85){var o=e*e,a=o*e,s=a*e,u=s*e;return Math.sqrt(2*Math.PI/e)*Math.pow(e/Math.E,e)*(1+1/(12*e)+1/(288*o)-139/(51840*a)-571/(2488320*s)+163879/(209018880*u)+5246819/(75246796800*u*e))}--e,r=fe[0];for(var l=1;l<fe.length;++l)r+=fe[l]/(e+l);return t=e+he+.5,Math.sqrt(2*Math.PI)*Math.pow(t,e+.5)*Math.exp(-t)*r}function pe(e){return Array.isArray(e)?e.length:String(e).length}function ye(){for(var e=0,t=0,r=0;r<arguments.length;r++){var n,i=Math.abs(arguments[r]);t<i?(e=e*(n=t/i)*n+1,t=i):e+=i>0?(n=i/t)*n:i}return t===1/0?1/0:t*Math.sqrt(e)}function ge(e,t,r){return e?t:r}function me(e,t){return void 0===t||0==+t?Math.round(e):(e=+e,t=-+t,isNaN(e)||"number"!=typeof t||t%1!=0?NaN:(e=e.toString().split("e"),+((e=(e=Math.round(+(e[0]+"e"+(e[1]?+e[1]-t:-t)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]+t:t))))}function ve(e,t,r){return r&&(r[e]=t),t}function _e(e,t){return e[0|t]}function Se(e){return 1===arguments.length&&Array.isArray(e)?Math.max.apply(Math,e):Math.max.apply(Math,arguments)}function xe(e){return 1===arguments.length&&Array.isArray(e)?Math.min.apply(Math,e):Math.min.apply(Math,arguments)}function be(e,t){if("function"!=typeof e)throw new Error("First argument to map is not a function");if(!Array.isArray(t))throw new Error("Second argument to map is not an array");return t.map(function(t,r){return e(t,r)})}function we(e,t,r){if("function"!=typeof e)throw new Error("First argument to fold is not a function");if(!Array.isArray(r))throw new Error("Second argument to fold is not an array");return r.reduce(function(t,r,n){return e(t,r,n)},t)}function ke(e,t){if("function"!=typeof e)throw new Error("First argument to filter is not a function");if(!Array.isArray(t))throw new Error("Second argument to filter is not an array");return t.filter(function(t,r){return e(t,r)})}function Me(e,t){if(!Array.isArray(t)&&"string"!=typeof t)throw new Error("Second argument to indexOf is not a string or array");return t.indexOf(e)}function Ee(e,t){if(!Array.isArray(t))throw new Error("Second argument to join is not an array");return t.join(e)}function Ie(e){return(e>0)-(e<0)||+e}var Te=1/3;function Le(e){return e<0?-Math.pow(-e,Te):Math.pow(e,Te)}function Ce(e){return Math.exp(e)-1}function Pe(e){return Math.log(1+e)}function Ne(e){return Math.log(e)/Math.LN2}function Oe(e){this.options=e||{},this.unaryOps={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Math.sinh||$,cosh:Math.cosh||ee,tanh:Math.tanh||te,asinh:Math.asinh||re,acosh:Math.acosh||ne,atanh:Math.atanh||ie,sqrt:Math.sqrt,cbrt:Math.cbrt||Le,log:Math.log,log2:Math.log2||Ne,ln:Math.log,lg:Math.log10||oe,log10:Math.log10||oe,expm1:Math.expm1||Ce,log1p:Math.log1p||Pe,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||ue,"-":ae,"+":Number,exp:Math.exp,not:se,length:pe,"!":ce,sign:Math.sign||Ie},this.binaryOps={"+":D,"-":F,"*":j,"/":B,"%":q,"^":Math.pow,"||":U,"==":J,"!=":z,">":W,"<":H,">=":X,"<=":Y,and:Z,or:K,in:Q,"=":ve,"[":_e},this.ternaryOps={"?":ge},this.functions={random:le,fac:ce,min:xe,max:Se,hypot:Math.hypot||ye,pyt:Math.hypot||ye,pow:Math.pow,atan2:Math.atan2,if:ge,gamma:de,roundTo:me,map:be,fold:we,filter:ke,indexOf:Me,join:Ee},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}Oe.prototype.parse=function(e){var t=[],r=new R(this,new N(this,e),{allowMemberAccess:this.options.allowMemberAccess});return r.parseExpression(t),r.expect("TEOF","EOF"),new T(t,this)},Oe.prototype.evaluate=function(e,t){return this.parse(e).evaluate(t)};var Re=new Oe;Oe.parse=function(e){return Re.parse(e)},Oe.evaluate=function(e,t){return Re.parse(e).evaluate(t)};var Ve={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison","!=":"comparison","||":"concatenate",and:"logical",or:"logical",not:"logical","?":"conditional",":":"conditional","=":"assignment","[":"array","()=":"fndef"};Oe.prototype.isOperatorEnabled=function(e){var t=function(e){return Ve.hasOwnProperty(e)?Ve[e]:e}(e),r=this.options.operators||{};return!(t in r&&!r[t])};
|
|
89
|
+
*/(e,n),a=[],s=0;s<o.length;s++){for(var u=o[s],l=[],c=0;c<u.length;c++){var h=u[c];h.properties[r]?l.push(h.properties[r]):l.push(0),!0===i&&(h.properties.matrixPosition=[s,c])}a.push(l)}return a}(e,{zProperty:n,flip:!0}),s=function(e,t,r){for(var n=[],i=1;i<t.length;i++){var o=+t[i-1],a=+t[i],s=ko(wo(Ii(e,o,a-o))),u={};u.groupedRings=s,u[r]=o+"-"+a,n.push(u)}return n}(a,t,n);return p((s=function(e,t,r){var n=K(r),i=n[2]-n[0],o=n[3]-n[1],a=n[0],s=n[1],u=i/(t[0].length-1),l=o/(t.length-1),c=function(e){e[0]=e[0]*u+a,e[1]=e[1]*l+s};return e.forEach(function(e){e.groupedRings.forEach(function(e){e.forEach(function(e){e.forEach(c)})})}),e}(s,a,e)).map(function(e,t){if(o[t]&&!L(o[t]))throw new Error("Each mappedProperty is required to be an Object");var r=ce({},i,o[t]);return r[n]=e[n],m(e.groupedRings,r)}))},t.isolines=function(e,t,r){if(!L(r=r||{}))throw new Error("options is invalid");var n=r.zProperty||"elevation",i=r.commonProperties||{},o=r.breaksProperties||[];if(ne(e,"Point","Input must contain Points"),!t)throw new Error("breaks is required");if(!Array.isArray(t))throw new Error("breaks must be an Array");if(!L(i))throw new Error("commonProperties must be an Object");if(!Array.isArray(o))throw new Error("breaksProperties must be an Array");var a=function(e,t){if(!L(t=t||{}))throw new Error("options is invalid");var r=t.zProperty||"elevation",n=t.flip,i=t.flags;ne(e,"Point","input must contain Points");for(var o=function(e,t){var r={};return A(e,function(e){var t=$(e)[1];r[t]||(r[t]=[]),r[t].push(e)}),Object.keys(r).map(function(e){return r[e].sort(function(e,t){return $(e)[0]-$(t)[0]})}).sort(function(e,r){return t?$(e[0])[1]-$(r[0])[1]:$(r[0])[1]-$(e[0])[1]})}(e,n),a=[],s=0;s<o.length;s++){for(var u=o[s],l=[],c=0;c<u.length;c++){var h=u[c];h.properties[r]?l.push(h.properties[r]):l.push(0),!0===i&&(h.properties.matrixPosition=[s,c])}a.push(l)}return a}(e,{zProperty:n,flip:!0});return p(function(e,t,r){var n=K(r),i=n[2]-n[0],o=n[3]-n[1],a=n[0],s=n[1],u=i/(t[0].length-1),l=o/(t.length-1),c=function(e){e[0]=e[0]*u+a,e[1]=e[1]*l+s};return e.forEach(function(e){O(e,c)}),e}(function(e,t,r,n,i){for(var o=[],a=1;a<t.length;a++){var s=+t[a],u=ce({},n,i[a]);u[r]=s;var l=y(de(e,s),u);o.push(l)}return o}(a,t,n,i,o),a,e))},t.kinks=function(e){var t,r,n={type:"FeatureCollection",features:[]};if("LineString"===(r="Feature"===e.type?e.geometry:e).type)t=[r.coordinates];else if("MultiLineString"===r.type)t=r.coordinates;else if("MultiPolygon"===r.type)t=[].concat.apply([],r.coordinates);else{if("Polygon"!==r.type)throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");t=r.coordinates}return t.forEach(function(e){t.forEach(function(t){for(var r=0;r<e.length-1;r++)for(var i=r;i<t.length-1;i++){if(e===t){if(1===Math.abs(r-i))continue;if(0===r&&i===e.length-2&&e[r][0]===e[e.length-1][0]&&e[r][1]===e[e.length-1][1])continue}var o=yn(e[r][0],e[r][1],e[r+1][0],e[r+1][1],t[i][0],t[i][1],t[i+1][0],t[i+1][1]);o&&n.features.push(u([o[0],o[1]]))}})}),n},t.length=wn,t.lengthToDegrees=b,t.lengthToRadians=x,t.lineArc=Kn,t.lineChunk=function(e,t,r){if(!L(r=r||{}))throw new Error("options is invalid");var n=r.units,i=r.reverse;if(!e)throw new Error("geojson is required");if(t<=0)throw new Error("segmentLength must be greater than 0");var o=[];return q(e,function(e){i&&(e.geometry.coordinates=e.geometry.coordinates.reverse()),function(e,t,r,n){var i=wn(e,{units:r});if(i<=t)return n(e);var o=i/t;Number.isInteger(o)||(o=Math.floor(o)+1);for(var a=0;a<o;a++)n(kn(e,t*a,t*(a+1),{units:r}))}(e,t,n,function(e){o.push(e)})}),p(o)},t.lineDistance=wn,t.lineEach=W,t.lineIntersect=un,t.lineOffset=function(e,t,r){if(!L(r=r||{}))throw new Error("options is invalid");var n=r.units;if(!e)throw new Error("geojson is required");if(null==t||isNaN(t))throw new Error("distance is required");var i=oe(e),o=e.properties;switch(i){case"LineString":return No(e,t,n);case"MultiLineString":var a=[];return q(e,function(e){a.push(No(e,t,n).geometry.coordinates)}),y(a,o);default:throw new Error("geometry "+i+" is not supported")}},t.lineOverlap=fi,t.lineReduce=H,t.lineSegment=Gr,t.lineSlice=function(e,t,r){var n=$(r);if("LineString"!==oe(r))throw new Error("line must be a LineString");for(var i,o=cn(r,e),a=cn(r,t),s=[(i=o.properties.index<=a.properties.index?[o,a]:[a,o])[0].geometry.coordinates],u=i[0].properties.index+1;u<i[1].properties.index+1;u++)s.push(n[u]);return s.push(i[1].geometry.coordinates),f(s,r.properties)},t.lineSliceAlong=kn,t.lineSplit=function(e,t){if(!e)throw new Error("line is required");if(!t)throw new Error("splitter is required");var r=oe(e),n=oe(t);if("LineString"!==r)throw new Error("line must be LineString");if("FeatureCollection"===n)throw new Error("splitter cannot be a FeatureCollection");if("GeometryCollection"===n)throw new Error("splitter cannot be a GeometryCollection");var i=Nn(t,{precision:7});switch(n){case"Point":return Xn(e,i);case"MultiPoint":return Hn(e,i);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return Hn(e,un(e,i))}},t.lineString=f,t.lineStringToPolygon=ri,t.lineStrings=d,t.lineToPolygon=ri,t.mask=function(e,t){var r,n=c(t&&t.geometry.coordinates||[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]]);return("FeatureCollection"===e.type?py(2===(r=e).features.length?yu.union(r.features[0].geometry.coordinates,r.features[1].geometry.coordinates):yu.union.apply(yu,r.features.map(function(e){return e.geometry.coordinates}))):py(yu.union(e.geometry.coordinates))).geometry.coordinates.forEach(function(e){n.geometry.coordinates.push(e[0])}),n},t.meta=Z,t.midpoint=function(e,t){return nr(e,mt(e,t)/2,or(e,t))},t.moranIndex=function(e,t){var r=t.inputField,n=t.threshold||1e5,i=t.p||2,o=t.binary||!1,a=ls(e,{alpha:t.alpha||-1,binary:o,p:i,standardization:t.standardization||!0,threshold:n}),s=[];A(e,function(e){var t=e.properties||{};s.push(t[r])});for(var u=cs(s),l=function(e){for(var t=cs(e),r=0,n=0,i=e;n<i.length;n++){var o=i[n];r+=Math.pow(o-t,2)}return r/e.length}(s),c=0,h=0,f=0,d=0,p=a.length,y=0;y<p;y++){for(var g=0,m=0;m<p;m++)c+=a[y][m]*(s[y]-u)*(s[m]-u),h+=a[y][m],f+=Math.pow(a[y][m]+a[m][y],2),g+=a[y][m]+a[m][y];d+=Math.pow(g,2)}var v=c/h/l,_=-1/(p-1),S=(p*p*(f*=.5)-p*d+h*h*3)/((p-1)*(p+1)*(h*h))-_*_,x=Math.sqrt(S);return{expectedMoranIndex:_,moranIndex:v,stdNorm:x,zNorm:(v-_)/x}},t.multiLineString=y,t.multiPoint=g,t.multiPolygon=m,t.nearest=Vr,t.nearestPoint=Vr,t.nearestPointOnLine=cn,t.nearestPointToLine=function(e,t,r){void 0===r&&(r={});var n=r.units,i=r.properties||{},o=function(e){var t=[];switch(e.geometry?e.geometry.type:e.type){case"GeometryCollection":return j(e,function(e){"Point"===e.type&&t.push({type:"Feature",properties:{},geometry:e})}),{type:"FeatureCollection",features:t};case"FeatureCollection":return e.features=e.features.filter(function(e){return"Point"===e.geometry.type}),e;default:throw new Error("points must be a Point Collection")}}(e);if(!o.features.length)throw new Error("points must contain features");if(!t)throw new Error("line is required");if("LineString"!==oe(t))throw new Error("line must be a LineString");var a=1/0,s=null;return A(o,function(e){var r=fn(e,t,{units:n});r<a&&(a=r,s=e)}),s&&(s.properties=ce({dist:a},s.properties,i)),s},t.planepoint=function(e,t){var r=Q(e),n=ie(t).coordinates[0];if(n.length<4)throw new Error("OuterRing of a Polygon must have 4 or more Positions.");var i=t.properties||{},o=i.a,a=i.b,s=i.c,u=r[0],l=r[1],c=n[0][0],h=n[0][1],f=void 0!==o?o:n[0][2],d=n[1][0],p=n[1][1],y=void 0!==a?a:n[1][2],g=n[2][0],m=n[2][1],v=void 0!==s?s:n[2][2];return(v*(u-c)*(l-p)+f*(u-d)*(l-m)+y*(u-g)*(l-h)-y*(u-c)*(l-m)-v*(u-d)*(l-h)-f*(u-g)*(l-p))/((u-c)*(l-p)+(u-d)*(l-m)+(u-g)*(l-h)-(u-c)*(l-m)-(u-d)*(l-h)-(u-g)*(l-p))},t.point=u,t.pointGrid=Pn,t.pointOnFeature=gn,t.pointOnLine=cn,t.pointOnSurface=gn,t.pointToLineDistance=fn,t.points=l,t.pointsWithinPolygon=gt,t.polygon=c,t.polygonSmooth=function(e,t){var r=[],n=t.iterations||1;if(!e)throw new Error("inputPolys is required");return j(e,function(e,t,i){var o,a,s;switch(e.type){case"Polygon":o=[[]];for(var u=0;u<n;u++)s=[[]],a=e,u>0&&(a=c(o).geometry),as(a,s),o=s.slice(0);r.push(c(o,i));break;case"MultiPolygon":o=[[[]]];for(var l=0;l<n;l++)s=[[[]]],a=e,l>0&&(a=m(o).geometry),ss(a,s),o=s.slice(0);r.push(m(o,i));break;default:throw new Error("geometry is invalid, must be Polygon or MultiPolygon")}}),p(r)},t.polygonTangents=function(e,t){var r,n,i,o,a=$(e),s=$(t),l=K(t),c=0,h=null;switch(a[0]>l[0]&&a[0]<l[2]&&a[1]>l[1]&&a[1]<l[3]&&(c=(h=Vr(e,ur(t))).properties.featureIndex),oe(t)){case"Polygon":r=s[0][c],n=s[0][0],null!==h&&h.geometry.coordinates[1]<a[1]&&(n=s[0][c]),o=Si(s[0][0],s[0][s[0].length-1],a);var f=vi(s[0],a,o,i,r,n);r=f[0],n=f[1];break;case"MultiPolygon":for(var d=0,y=0,g=0,m=0;m<s[0].length;m++){d=m;for(var v=!1,_=0;_<s[0][m].length;_++){if(y=_,g===c){v=!0;break}g++}if(v)break}r=s[0][d][y],n=s[0][d][y],o=Si(s[0][0][0],s[0][0][s[0][0].length-1],a),s.forEach(function(e){var t=vi(e[0],a,o,i,r,n);r=t[0],n=t[1]})}return p([u(r),u(n)])},t.polygonToLine=$n,t.polygonToLineString=$n,t.polygonize=function(e){var t=Do.fromGeoJson(e);t.deleteDangles(),t.deleteCutEdges();var r=[],n=[];return t.getEdgeRings().filter(function(e){return e.isValid()}).forEach(function(e){e.isHole()?r.push(e):n.push(e)}),r.forEach(function(e){Ao.findEdgeRingContaining(e,n)&&n.push(e)}),p(n.map(function(e){return e.toPolygon()}))},t.polygons=h,t.projection=gs,t.propEach=V,t.propReduce=G,t.propertiesContainsFilter=Cs,t.radians2degrees=k,t.radiansToDegrees=k,t.radiansToDistance=S,t.radiansToLength=S,t.random=ks,t.randomLineString=xs,t.randomPoint=_s,t.randomPolygon=Ss,t.randomPosition=vs,t.rewind=function(e,t){if(!L(t=t||{}))throw new Error("options is invalid");var r=t.reverse||!1,n=t.mutate||!1;if(!e)throw new Error("<geojson> is required");if("boolean"!=typeof r)throw new Error("<reverse> must be a boolean");if("boolean"!=typeof n)throw new Error("<mutate> must be a boolean");!1===n&&(e=bt(e));var i=[];switch(e.type){case"GeometryCollection":return j(e,function(e){bi(e,r)}),e;case"FeatureCollection":return A(e,function(e){A(bi(e,r),function(e){i.push(e)})}),p(i)}return bi(e,r)},t.rhumbBearing=yi,t.rhumbDestination=mi,t.rhumbDistance=hn,t.round=_,t.sample=function(e,t){if(!e)throw new Error("featurecollection is required");if(null==t)throw new Error("num is required");if("number"!=typeof t)throw new Error("num must be a number");return p(function(e,t){for(var r,n,i=e.slice(0),o=e.length,a=o-t;o-- >a;)r=i[n=Math.floor((o+1)*Math.random())],i[n]=i[o],i[o]=r;return i.slice(a)}(e.features,t))},t.sector=function(e,t,r,n,i){if(!L(i=i||{}))throw new Error("options is invalid");var o=i.properties;if(!e)throw new Error("center is required");if(null==r)throw new Error("bearing1 is required");if(null==n)throw new Error("bearing2 is required");if(!t)throw new Error("radius is required");if("object"!=typeof i)throw new Error("options must be an object");if(pi(r)===pi(n))return ir(e,t,i);var a=$(e),s=[[a]];return O(Kn(e,t,r,n,i),function(e){s[0].push(e)}),s[0].push(a),c(s,o)},t.segmentEach=J,t.segmentReduce=z,t.shortestPath=function(e,t,r){if(!L(r=r||{}))throw new Error("options is invalid");var n=r.resolution,i=r.minDistance,o=r.obstacles||p([]);if(!e)throw new Error("start is required");if(!t)throw new Error("end is required");if(n&&!T(n)||n<=0)throw new Error("options.resolution must be a number, greater than 0");if(i)throw new Error("options.minDistance is not yet implemented");var s=Q(e),l=Q(t);switch(e=u(s),t=u(l),oe(o)){case"FeatureCollection":if(0===o.features.length)return f([s,l]);break;case"Polygon":o=p([a(ie(o))]);break;default:throw new Error("invalid obstacles")}var c=o;c.features.push(e),c.features.push(t);var h=K(To(er(K(c)),1.15));n||(n=mt([h[0],h[1]],[h[2],h[1]],r)/100),c.features.pop(),c.features.pop();for(var d=h[0],y=h[1],g=h[2],m=h[3],v=n/mt([d,y],[g,y],r)*(g-d),_=n/mt([d,y],[d,m],r)*(m-y),S=g-d,x=m-y,b=(S-Math.floor(S/v)*v)/2,w=[],k=[],M=[],E=[],I=1/0,C=1/0,P=m-(x-Math.floor(x/_)*_)/2,N=0;P>=y;){for(var O=[],R=[],V=d+b,G=0;V<=g;){var A=u([V,P]),D=_a(A,o);O.push(D?0:1),R.push(V+"|"+P);var F=mt(A,e);!D&&F<I&&(I=F,M={x:G,y:N});var j=mt(A,t);!D&&j<C&&(C=j,E={x:G,y:N}),V+=v,G++}k.push(O),w.push(R),P-=_,N++}var B=new ga(k,{diagonal:!0}),q=B.grid[M.y][M.x],U=B.grid[E.y][E.x],J=[s];return ya.search(B,q,U).forEach(function(e){var t=w[e.x][e.y].split("|");J.push([+t[0],+t[1]])}),J.push(l),Ut(f(J))},t.simplify=function(e,t){if(!L(t=t||{}))throw new Error("options is invalid");var r=void 0!==t.tolerance?t.tolerance:1,n=t.highQuality||!1,i=t.mutate||!1;if(!e)throw new Error("geojson is required");if(r&&r<0)throw new Error("invalid tolerance");return!0!==i&&(e=bt(e)),j(e,function(e){!function(e,t,r){var n=e.type;if("Point"===n||"MultiPoint"===n)return e;Ut(e,!0);var i=e.coordinates;switch(n){case"LineString":e.coordinates=Yt(i,t,r);break;case"MultiLineString":e.coordinates=i.map(function(e){return Yt(e,t,r)});break;case"Polygon":e.coordinates=Zt(i,t,r);break;case"MultiPolygon":e.coordinates=i.map(function(e){return Zt(e,t,r)})}}(e,r,n)}),e},t.square=rr,t.squareGrid=yy,t.standardDeviationalEllipse=function(e,t){if(!L(t=t||{}))throw new Error("options is invalid");var r=t.steps||64,n=t.weight,i=t.properties||{};if(!T(r))throw new Error("steps must be a number");if(!L(i))throw new Error("properties must be a number");var o=F(e).length,a=is(e,{weight:n}),s=0,u=0,l=0;A(e,function(e){var t=e.properties[n]||1,r=os($(e),$(a));s+=Math.pow(r.x,2)*t,u+=Math.pow(r.y,2)*t,l+=r.x*r.y*t});var c=s-u,h=Math.sqrt(Math.pow(c,2)+4*Math.pow(l,2)),f=2*l,d=Math.atan((c+h)/f),y=180*d/Math.PI,g=0,m=0,v=0;A(e,function(e){var t=e.properties[n]||1,r=os($(e),$(a));g+=Math.pow(r.x*Math.cos(d)-r.y*Math.sin(d),2)*t,m+=Math.pow(r.x*Math.sin(d)+r.y*Math.cos(d),2)*t,v+=t});var _=Math.sqrt(2*g/v),S=Math.sqrt(2*m/v),x=rs(a,_,S,{units:"degrees",angle:y,steps:r,properties:i}),b=gt(e,p([x])),w={meanCenterCoordinates:$(a),semiMajorAxis:_,semiMinorAxis:S,numberOfFeatures:o,angle:y,percentageWithinEllipse:100*F(b).length/o};return x.properties.standardDeviationalEllipse=w,x},t.tag=function(e,t,r,n){return e=bt(e),t=bt(t),A(e,function(e){e.properties||(e.properties={}),A(t,function(t){void 0===e.properties[n]&&pt(e,t)&&(e.properties[n]=t.properties[r])})}),e},t.tesselate=function(e){if(!e.geometry||"Polygon"!==e.geometry.type&&"MultiPolygon"!==e.geometry.type)throw new Error("input must be a Polygon or MultiPolygon");var t={type:"FeatureCollection",features:[]};return"Polygon"===e.geometry.type?t.features=Rr(e.geometry.coordinates):e.geometry.coordinates.forEach(function(e){t.features=t.features.concat(Rr(e))}),t},t.tin=vt,t.toMercator=hs,t.toWgs84=fs,t.transformRotate=Io,t.transformScale=To,t.transformTranslate=function(e,t,r,n){if(!L(n=n||{}))throw new Error("options is invalid");var i=n.units,o=n.zTranslation,a=n.mutate;if(!e)throw new Error("geojson is required");if(null==t||isNaN(t))throw new Error("distance is required");if(o&&"number"!=typeof o&&isNaN(o))throw new Error("zTranslation is not a number");if(o=void 0!==o?o:0,0===t&&0===o)return e;if(null==r||isNaN(r))throw new Error("direction is required");return t<0&&(t=-t,r+=180),!1!==a&&void 0!==a||(e=bt(e)),O(e,function(e){var n=$(mi(e,t,r,{units:i}));e[0]=n[0],e[1]=n[1],o&&3===e.length&&(e[2]+=o)}),e},t.triangleGrid=gy,t.truncate=Nn,t.union=function(e,t,r){void 0===r&&(r={});var n=ie(e),i=ie(t),o=yu.union(n.coordinates,i.coordinates);return 0===o.length?null:1===o.length?c(o[0],r.properties):m(o,r.properties)},t.unitsFactors=i,t.unkinkPolygon=function(e){var t=[];return q(e,function(e){"Polygon"===e.geometry.type&&A(function(e){if("Feature"!=e.type)throw new Error("The input must a geojson object of type Feature");if(void 0===e.geometry||null==e.geometry)throw new Error("The input must a geojson object with a non-empty geometry");if("Polygon"!=e.geometry.type)throw new Error("The input must be a geojson Polygon");for(var t=e.geometry.coordinates.length,r=[],n=0;n<t;n++){var i=e.geometry.coordinates[n];Fn(i[0],i[i.length-1])||i.push(i[0]),r.push.apply(r,i.slice(0,i.length-1))}if(!function(e){for(var t={},r=1,n=0,i=e.length;n<i;++n){if(Object.prototype.hasOwnProperty.call(t,e[n])){r=0;break}t[e[n]]=1}return r}(r))throw new Error("The input polygon may not have duplicate vertices (except for the first and last vertex of each ring)");var o=r.length,a=function(e,t,r){if("Polygon"!==e.geometry.type)throw new Error("The input feature must be a Polygon");void 0===r&&(r=1);var n=e.geometry.coordinates,i=[],o={};if(r){for(var a=[],s=0;s<n.length;s++)for(var u=0;u<n[s].length-1;u++)a.push(y(s,u));var l=we();l.load(a)}for(var c=0;c<n.length;c++)for(var h=0;h<n[c].length-1;h++)if(r)l.search(y(c,h)).forEach(function(e){var t=e.ring,r=e.edge;p(c,h,t,r)});else for(var f=0;f<n.length;f++)for(var d=0;d<n[f].length-1;d++)p(c,h,f,d);return t||(i={type:"Feature",geometry:{type:"MultiPoint",coordinates:i}}),i;function p(e,r,a,s){var u,l,c=n[e][r],h=n[e][r+1],f=n[a][s],d=n[a][s+1],p=function(e,t,r,n){if(Rn(e,r)||Rn(e,n)||Rn(t,r)||Rn(n,r))return null;var i=e[0],o=e[1],a=t[0],s=t[1],u=r[0],l=r[1],c=n[0],h=n[1],f=(i-a)*(l-h)-(o-s)*(u-c);return 0===f?null:[((i*s-o*a)*(u-c)-(i-a)*(u*h-l*c))/f,((i*s-o*a)*(l-h)-(o-s)*(u*h-l*c))/f]}(c,h,f,d);if(null!==p&&(u=h[0]!==c[0]?(p[0]-c[0])/(h[0]-c[0]):(p[1]-c[1])/(h[1]-c[1]),l=d[0]!==f[0]?(p[0]-f[0])/(d[0]-f[0]):(p[1]-f[1])/(d[1]-f[1]),!(u>=1||u<=0||l>=1||l<=0))){var y=p,g=!o[y];g&&(o[y]=!0),t?i.push(t(p,e,r,c,h,u,a,s,f,d,l,g)):i.push(p)}}function y(e,t){var r,i,o,a,s=n[e][t],u=n[e][t+1];return s[0]<u[0]?(r=s[0],i=u[0]):(r=u[0],i=s[0]),s[1]<u[1]?(o=s[1],a=u[1]):(o=u[1],a=s[1]),{minX:r,minY:o,maxX:i,maxY:a,ring:e,edge:t}}}(e,function(e,t,r,n,i,o,a,s,u,l,c,h){return[e,t,r,n,i,o,a,s,u,l,c,h]}),s=a.length;if(0==s){var u=[];for(n=0;n<t;n++)u.push(c([e.geometry.coordinates[n]],{parent:-1,winding:Dn(e.geometry.coordinates[n])}));var l=p(u);return D(),F(),l}var h=[],f=[];for(n=0;n<t;n++){h.push([]);for(var d=0;d<e.geometry.coordinates[n].length-1;d++)h[n].push([new Vn(e.geometry.coordinates[n][jn(d+1,e.geometry.coordinates[n].length-1)],1,[n,d],[n,jn(d+1,e.geometry.coordinates[n].length-1)],void 0)]),f.push(new Gn(e.geometry.coordinates[n][d],[n,jn(d-1,e.geometry.coordinates[n].length-1)],[n,d],void 0,void 0,!1,!0))}for(n=0;n<s;n++)h[a[n][1]][a[n][2]].push(new Vn(a[n][0],a[n][5],[a[n][1],a[n][2]],[a[n][6],a[n][7]],void 0)),a[n][11]&&f.push(new Gn(a[n][0],[a[n][1],a[n][2]],[a[n][6],a[n][7]],void 0,void 0,!0,!0));var y=f.length;for(n=0;n<h.length;n++)for(d=0;d<h[n].length;d++)h[n][d].sort(function(e,t){return e.param<t.param?-1:1});var g=[];for(n=0;n<y;n++)g.push({minX:f[n].coord[0],minY:f[n].coord[1],maxX:f[n].coord[0],maxY:f[n].coord[1],index:n});var m=we();for(m.load(g),n=0;n<h.length;n++)for(d=0;d<h[n].length;d++)for(var v=0;v<h[n][d].length;v++){S=v==h[n][d].length-1?h[n][jn(d+1,e.geometry.coordinates[n].length-1)][0].coord:h[n][d][v+1].coord;var _=m.search({minX:S[0],minY:S[1],maxX:S[0],maxY:S[1]})[0];h[n][d][v].nxtIsectAlongEdgeIn=_.index}for(n=0;n<h.length;n++)for(d=0;d<h[n].length;d++)for(v=0;v<h[n][d].length;v++){var S=h[n][d][v].coord,x=(_=m.search({minX:S[0],minY:S[1],maxX:S[0],maxY:S[1]})[0]).index;x<o?f[x].nxtIsectAlongRingAndEdge2=h[n][d][v].nxtIsectAlongEdgeIn:Fn(f[x].ringAndEdge1,h[n][d][v].ringAndEdgeIn)?f[x].nxtIsectAlongRingAndEdge1=h[n][d][v].nxtIsectAlongEdgeIn:f[x].nxtIsectAlongRingAndEdge2=h[n][d][v].nxtIsectAlongEdgeIn}var b=[];for(n=0,d=0;d<t;d++){var w=n;for(v=0;v<e.geometry.coordinates[d].length-1;v++)f[n].coord[0]<f[w].coord[0]&&(w=n),n++;var k=f[w].nxtIsectAlongRingAndEdge2;for(v=0;v<f.length;v++)if(f[v].nxtIsectAlongRingAndEdge1==w||f[v].nxtIsectAlongRingAndEdge2==w){var M=v;break}var E=An([f[M].coord,f[w].coord,f[k].coord],!0)?1:-1;b.push({isect:w,parent:-1,winding:E})}for(b.sort(function(e,t){return f[e.isect].coord>f[t.isect].coord?-1:1}),u=[];b.length>0;){var I=b.pop(),T=I.isect,L=I.parent,C=I.winding,P=u.length,N=[f[T].coord],O=T;if(f[T].ringAndEdge1Walkable)var R=f[T].ringAndEdge1,V=f[T].nxtIsectAlongRingAndEdge1;else R=f[T].ringAndEdge2,V=f[T].nxtIsectAlongRingAndEdge2;for(;!Fn(f[T].coord,f[V].coord);){N.push(f[V].coord);var G=void 0;for(n=0;n<b.length;n++)if(b[n].isect==V){G=n;break}if(null!=G&&b.splice(G,1),Fn(R,f[V].ringAndEdge1)){if(R=f[V].ringAndEdge2,f[V].ringAndEdge2Walkable=!1,f[V].ringAndEdge1Walkable){var A={isect:V};An([f[O].coord,f[V].coord,f[f[V].nxtIsectAlongRingAndEdge2].coord],1==C)?(A.parent=L,A.winding=-C):(A.parent=P,A.winding=C),b.push(A)}O=V,V=f[V].nxtIsectAlongRingAndEdge2}else R=f[V].ringAndEdge1,f[V].ringAndEdge1Walkable=!1,f[V].ringAndEdge2Walkable&&(A={isect:V},An([f[O].coord,f[V].coord,f[f[V].nxtIsectAlongRingAndEdge1].coord],1==C)?(A.parent=L,A.winding=-C):(A.parent=P,A.winding=C),b.push(A)),O=V,V=f[V].nxtIsectAlongRingAndEdge1}N.push(f[V].coord),u.push(c([N],{index:P,parent:L,winding:C,netWinding:void 0}))}function D(){for(var e=[],t=0;t<l.features.length;t++)-1==l.features[t].properties.parent&&e.push(t);if(e.length>1)for(t=0;t<e.length;t++){for(var r=-1,n=0;n<l.features.length;n++)e[t]!=n&&pt(l.features[e[t]].geometry.coordinates[0][0],l.features[n],{ignoreBoundary:!0})&&_n(l.features[n])<1/0&&(r=n);l.features[e[t]].properties.parent=r}}function F(){for(var e=0;e<l.features.length;e++)if(-1==l.features[e].properties.parent){var t=l.features[e].properties.winding;l.features[e].properties.netWinding=t,j(e,t)}}function j(e,t){for(var r=0;r<l.features.length;r++)if(l.features[r].properties.parent==e){var n=t+l.features[r].properties.winding;l.features[r].properties.netWinding=n,j(r,n)}}return l=p(u),D(),F(),l}(e),function(r){t.push(c(r.geometry.coordinates,e.properties))})}),p(t)},t.validateBBox=C,t.validateId=P,t.voronoi=function(e,t){if(!L(t=t||{}))throw new Error("options is invalid");var r=t.bbox||[-180,-85,180,85];if(!e)throw new Error("points is required");if(!Array.isArray(r))throw new Error("bbox is invalid");return ne(e,"Point","points"),p(function(){var e=xa,t=ba,r=null;function n(n){return new es(n.map(function(r,i){var o=[Math.round(e(r,i,n)/Ka)*Ka,Math.round(t(r,i,n)/Ka)*Ka];return o.index=i,o.data=r,o}),r)}return n.polygons=function(e){return n(e).polygons()},n.links=function(e){return n(e).links()},n.triangles=function(e){return n(e).triangles()},n.x=function(t){return arguments.length?(e="function"==typeof t?t:Sa(+t),n):e},n.y=function(e){return arguments.length?(t="function"==typeof e?e:Sa(+e),n):t},n.extent=function(e){return arguments.length?(r=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],n):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},n.size=function(e){return arguments.length?(r=null==e?null:[[0,0],[+e[0],+e[1]]],n):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},n}().x(function(e){return e.geometry.coordinates[0]}).y(function(e){return e.geometry.coordinates[1]}).extent([[r[0],r[1]],[r[2],r[3]]]).polygons(e.features).map(ts))},t.within=gt,Object.defineProperty(t,"__esModule",{value:!0})}(t)}).call(this,r(229))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(11)),i=y(r(10)),o=y(r(3)),a=y(r(0)),s=y(r(2)),u=y(r(4)),l=y(r(7)),c=y(r(5)),h=r(1),f=y(r(29)),d=r(6),p=y(r(54));function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,h.defaultValue)(e,{}),r.coordinates=(0,h.defaultValue)(e.coordinates,[]),r.type=d.GeometryType.point,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");if(r.coordinates.length<2||r.coordinates.length>3)throw new Error("坐标数组的长度必须在合理范围内(2或者3)");if(!(0,h.isNumber)(r.coordinates[0])||!(0,h.isNumber)(r.coordinates[1]))throw new Error("坐标数组成员必须为数字");return 3===r.coordinates.length?r.hasZ=!0:r.hasZ=!1,r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"copy",value:function(e){return t.fromJSON(e.toJSON()),this}},{key:"distance",value:function(e){if(!e)throw new Error("输入参数不合法.");var r=t.toCoordinates(e),n=Math.abs(this.coordinates[0]-r[0]),i=Math.abs(this.coordinates[1]-r[1]),o=0;return this.hasZ&&r.length>=3&&(o=Math.abs(this.coordinates[2]-e.coordinates[[2]])),Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(o,2))}},{key:"equals",value:function(e){if(e instanceof t)return this.hasZ?!!Math.abs(this.coordinates[0]-e.coordinates[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e.coordinates[1])<=1e-7&&!!Math.abs(this.coordinates[2]-e.coordinates[2])<=1e-7:!!Math.abs(this.coordinates[0]-e.coordinates[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e.coordinates[1])<=1e-7;if(e instanceof Array){if(2===e.length)return!!Math.abs(this.coordinates[0]-e[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e[1])<=1e-7;if(3===e.length)return!!Math.abs(this.coordinates[0]-e[0])<=1e-7&&!!Math.abs(this.coordinates[1]-e[1])<=1e-7&&!!Math.abs(this.coordinates[2]-e[2])<=1e-7;throw new Error("坐标数组的数量有误!")}throw new Error("必须为点对象或坐标数组才能比较是否相等!")}},{key:"normalize",value:function(){var e;e=this.hasZ?new t({coordinates:[0,0,0]}):new t({coordinates:[0,0]});var r=this.distance(e),n=this._cloneCoordinates();return n[0]/=r,n[1]/=r,this.hasZ&&(n[2]/=r),this.coordinates=n,this}},{key:"toString",value:function(){return this.hasZ?this.coordinates[0]+","+this.coordinates[1]+","+this.coordinates[2]:this.coordinates[0]+","+this.coordinates[1]}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=(0,h.toJSON)(this.extent,p.default),e}},{key:"getIGSType",value:function(){return this.hasZ?d.IGSGeometryType.point3D:d.IGSGeometryType.point}},{key:"toOldIGSGeometry",value:function(){return{PntGeom:[{Dot:{x:this.coordinates[0],y:this.coordinates[1]}}],GID:parseInt(String(1e7*Math.random()))}}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return t?new p.default({xmin:e[0],ymin:e[1],zmin:e[2],xmax:e[0],ymax:e[1],zmax:e[2],spatialReference:this.spatialReference}):new p.default({xmin:e[0],ymin:e[1],xmax:e[0],ymax:e[1],spatialReference:this.spatialReference})}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"toCoordinates",value:function(e){if(!e)throw new Error("输入参数不合法.");var r=JSON.parse((0,i.default)(e));if(e instanceof t)r=e._cloneCoordinates();else{if(e instanceof Array)return r;e instanceof Object&&(r=t.fromJSON(e)._cloneCoordinates())}return r}},{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(f.default);(0,n.default)(g.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SceneLayer=t.OverlayLayer=t.TileLayer=t.VectorTileLayer=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.ArcGISVectorTileLayer=t.setElevationInfo=t.TileInfoUtil=t.getLayerViewScaleVisible=t.showLayerByScale=t.isCustomSP=t.is4326=t.getUrlType=t.ArcGISTileLayer=t.ArcGISMapImageSubLayer=t.ArcGISMapImageLayer=t.Projection=t.M3DModelCacheLayer=t.IGSFeatureLayer=t.Scene=t.IGSTileLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=t.VideoLayer=t.UnknownLayer=t.GeoJSONLayer=t.GraphicsLayer=t.GroupLayer=t.MapVLayer=t.EchartsLayer=t.TerrainCacheLayer=t.Cesium3DTilesCacheLayer=t.FeatureLayer=t.WMTSSubLayer=t.WFSLayer=t.WMSSubLayer=t.WMSLayer=t.WMTSLayer=t.OGCLayer=t.Layer=void 0;var n=r(202),i=r(15),o=r(488),a=r(46),s=r(493),u=k(r(497)),l=k(r(498)),c=r(499),h=k(r(502)),f=k(r(503)),d=k(r(504)),p=k(r(505)),y=k(r(506)),g=k(r(74)),m=r(44),v=k(r(67)),_=k(r(80)),S=k(r(95)),x=k(r(131)),b=k(r(507)),w=k(r(508));function k(e){return e&&e.__esModule?e:{default:e}}t.Layer=i.Layer,t.OGCLayer=s.OGCLayer,t.WMTSLayer=s.WMTSLayer,t.WMSLayer=s.WMSLayer,t.WMSSubLayer=s.WMSSubLayer,t.WFSLayer=s.WFSLayer,t.WMTSSubLayer=s.WMTSSubLayer,t.FeatureLayer=i.FeatureLayer,t.Cesium3DTilesCacheLayer=u.default,t.TerrainCacheLayer=l.default,t.EchartsLayer=c.EchartsLayer,t.MapVLayer=c.MapVLayer,t.GroupLayer=h.default,t.GraphicsLayer=f.default,t.GeoJSONLayer=d.default,t.UnknownLayer=w.default,t.VideoLayer=y.default,t.IGSVectorTileLayer=n.IGSVectorTileLayer,t.IGSVectorTileSubLayer=n.IGSVectorTileSubLayer,t.IGSMapImageLayer=n.IGSMapImageLayer,t.IGSMapImageSubLayer=n.IGSMapImageSubLayer,t.IGSSceneLayer=n.IGSSceneLayer,t.IGSSceneSubLayer=n.IGSSceneSubLayer,t.IGSTileLayer=n.IGSTileLayer,t.Scene=n.Scene,t.IGSFeatureLayer=n.IGSFeatureLayer,t.M3DModelCacheLayer=p.default,t.Projection=g.default,t.ArcGISMapImageLayer=o.ArcGISMapImageLayer,t.ArcGISMapImageSubLayer=o.ArcGISMapImageSubLayer,t.ArcGISTileLayer=o.ArcGISTileLayer,t.getUrlType=m.getUrlType,t.is4326=m.is4326,t.isCustomSP=m.isCustomSP,t.showLayerByScale=m.showLayerByScale,t.getLayerViewScaleVisible=m.getLayerViewScaleVisible,t.TileInfoUtil=_.default,t.setElevationInfo=a.setElevationInfo,t.ArcGISVectorTileLayer=o.ArcGISVectorTileLayer,t.WebTileLayer=b.default,t.getZoomOffset=m.getZoomOffset,t.FeatureCollection=x.default,t.TileInfo=v.default,t.appendUrlParams=m.appendUrlParams,t.getFullBaseUrl=m.getFullBaseUrl,t.LOD=S.default,t.VectorTileLayer=i.VectorTileLayer,t.TileLayer=i.TileLayer,t.OverlayLayer=c.OverlayLayer,t.SceneLayer=i.SceneLayer},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(11)),i=l(r(0)),o=l(r(2)),a=r(8),s=r(19),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t){(0,i.default)(this,e),t=(0,u.defaultValue)(t,{}),this._vertexStyle=(0,u.defaultValue)(t.vertexStyle,new s.SimpleMarkerSymbol({color:new a.Color(24,144,255,1),size:10,outline:new s.SimpleLineSymbol({color:new a.Color(255,255,255,1),width:1})})),this._lineStyle=(0,u.defaultValue)(t.lineStyle,new s.SimpleLineSymbol({color:new a.Color(24,144,255,1),width:3})),this._fillStyle=(0,u.defaultValue)(t.fillStyle,new s.SimpleFillSymbol({color:new a.Color(24,144,255,.3),outline:new s.SimpleLineSymbol({color:new a.Color(24,144,255,1),width:2})})),this._textStyle=(0,u.defaultValue)(t.textStyle,new s.TextSymbol({color:new a.Color(24,144,255,1),text:"默认文字",font:{family:"微软雅黑",size:20,style:"normal",weight:"normal"}})),this._movingLineStyle=(0,u.defaultValue)(t.lineStyle,new s.SimpleLineSymbol({color:new a.Color(255,255,0,1),width:2})),this._selectBoxStyle=(0,u.defaultValue)(t.selectBoxStyle,new s.SimpleFillSymbol({color:new a.Color(241,188,0,.1),outline:new s.SimpleLineSymbol({color:new a.Color(241,188,0,.8),width:2})})),this._selectBoxVertexStyle=(0,u.defaultValue)(t.selectBoxVertexStyle,new s.SimpleMarkerSymbol({color:new a.Color(255,255,255,1),size:10,outline:new s.SimpleLineSymbol({color:new a.Color(241,188,0,1),width:3})})),this._selectVertexStyle=(0,u.defaultValue)(t.selectVertexStyle,new s.SimpleMarkerSymbol({color:new a.Color(241,188,0,1),size:11,outline:new s.SimpleLineSymbol({color:new a.Color(255,255,255,1),width:1})})),this._selectTextStyle=(0,u.defaultValue)(t.selectTextStyle,new s.TextSymbol({color:new a.Color(241,188,0,1),text:"默认文字",font:{family:"微软雅黑",size:20,style:"normal",weight:"normal"}})),this._selectMidVertexStyle=(0,u.defaultValue)(t.selectMidVertexStyle,new s.SimpleMarkerSymbol({color:new a.Color(255,255,255,1),size:8,outline:new s.SimpleLineSymbol({color:new a.Color(241,188,0,1),width:1})})),this._coincidentPointStyle=(0,u.defaultValue)(t.coincidentPointStyle,new s.SimpleMarkerSymbol({color:new a.Color(255,255,0,1),size:10,outline:new s.SimpleLineSymbol({color:new a.Color(255,255,255,1),width:1})})),this._highlightPointStyle=(0,u.defaultValue)(t.highlightPointStyle,new s.SimpleMarkerSymbol({color:new a.Color(255,255,0,1),size:10,outline:new s.SimpleLineSymbol({color:new a.Color(255,255,255,1),width:1})})),this._highlightLineStyle=(0,u.defaultValue)(t.highlightLineStyle,new s.SimpleLineSymbol({color:new a.Color(255,255,0,1),width:3})),this._parallelLineStyle=(0,u.defaultValue)(t.parallelLineStyle,this._highlightLineStyle),this._perpendicularLineStyle=(0,u.defaultValue)(t.perpendicularLineStyle,this._highlightLineStyle)}return(0,o.default)(e,[{key:"clone",value:function(){return new e(this.toJSON())}},{key:"toJSON",value:function(){var e={};return e.vertexStyle=this._vertexStyle.clone(),e.lineStyle=this._lineStyle.clone(),e.fillStyle=this._fillStyle.clone(),e.movingLineStyle=this._movingLineStyle.clone(),e.selectBoxStyle=this._selectBoxStyle.clone(),e.selectBoxVertexStyle=this._selectBoxVertexStyle.clone(),e.selectVertexStyle=this._selectVertexStyle.clone(),e.selectMidVertexStyle=this._selectMidVertexStyle.clone(),e.coincidentPointStyle=this._coincidentPointStyle.clone(),e.highlightPointStyle=this._highlightPointStyle.clone(),e.highlightLineStyle=this._highlightLineStyle.clone(),e.parallelLineStyle=this._parallelLineStyle.clone(),e.perpendicularLineStyle=this._perpendicularLineStyle.clone(),e.textStyle=this._textStyle.clone(),e.selectTextStyle=this._selectTextStyle.clone(),e}},{key:"fromJSON",value:function(){}}]),e}();(0,n.default)(c.prototype,{vertexStyle:{get:function(){return this._vertexStyle},set:function(e){this._vertexStyle=e}},lineStyle:{get:function(){return this._lineStyle},set:function(e){this._lineStyle=e}},fillStyle:{get:function(){return this._fillStyle},set:function(e){this._fillStyle=e}},textStyle:{get:function(){return this._textStyle},set:function(e){this._textStyle=e}},selectBoxStyle:{get:function(){return this._selectBoxStyle},set:function(e){this._selectBoxStyle=e}},selectBoxVertexStyle:{get:function(){return this._selectBoxVertexStyle},set:function(e){this._selectBoxVertexStyle=e}},selectVertexStyle:{get:function(){return this._selectVertexStyle},set:function(e){this._selectVertexStyle=e}},selectTextStyle:{get:function(){return this._selectTextStyle},set:function(e){this._selectTextStyle=e}},selectMidVertexStyle:{get:function(){return this._selectMidVertexStyle},set:function(e){this._selectMidVertexStyle=e}},coincidentPointStyle:{get:function(){return this._coincidentPointStyle},set:function(e){this._coincidentPointStyle=e}},highlightPointStyle:{get:function(){return this._highlightPointStyle},set:function(e){this._highlightPointStyle=e}},highlightLineStyle:{get:function(){return this._highlightLineStyle},set:function(e){this._highlightLineStyle=e}},parallelLineStyle:{get:function(){return this._parallelLineStyle},set:function(e){this._parallelLineStyle=e}},perpendicularLineStyle:{get:function(){return this._perpendicularLineStyle},set:function(e){this._perpendicularLineStyle=e}}}),t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(10)),i=p(r(3)),o=p(r(0)),a=p(r(2)),s=p(r(4)),u=p(r(5)),l=r(8),c=r(9),h=p(r(38)),f=p(r(36)),d=r(1);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchPointDrawTool",r._drawTools=[r],r._otherDrawTools=[],r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent)}},{key:"getPanEvent",value:function(e,t,r){return{event:e,target:t,type:r}}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.DRAWING,this.view._mapActionControl("video-map-active",!0),this.cursorStyle=this.view.cursor,(0,d.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair"),this._setInitSnap(),this._fireStartDrawEvent();var t=function(t){if(t&&t.x&&t.y){e.view.off(l.ViewEventType.pointerMove,e._handlerInitMouseMove),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var r,n={x:t.x,y:t.y};r=e._snapPoint?e._snapPoint:e.view.toMap({x:n.x,y:n.y});var i=e._getFeature(r);e.sketchStage.entityGraphic=i,e._addFeatureToLayer(i,e.layer),e.stop(),e._editMode=l.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.view._mapActionControl("video-map-active",!1)}};this._drawEventHandlers.push(t),this.view.on(l.ViewEventType.pointerDown,t)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.vertexStyle?t.vertexStyle:this.sketchStyle._vertexStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.vertexStyle?t.vertexStyle:this.sketchStyle._vertexStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e,t){return e||(e=l.Projection.project(new c.Point({coordinates:[0,0,0]}),this._spatialReference)),t||(t=this._sketchDataType===l.SketchDataType.TEXT?this.sketchStyle.textStyle:this.sketchStyle.vertexStyle),new l.Feature({geometry:e,symbol:t,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e,t){this.view._mapActionControl("video-map-active",!0),this.editOption.showSelectBox?(this._editMode=l.SketchEditMode.EDITGRAGIC,this.selectFeature(e)):this._parent._sketchDataType===l.SketchDataType.POINT||this._parent._sketchDataType===l.SketchDataType.TEXT?this.startPanGraphics(e,t):this._parent&&this._parent._editMode===l.SketchEditMode.EDITGRAGIC?"circleVertex"===e.attributes.type?this.startCircleVertexScaleGraphics(e,t):"midVertex"===e.attributes.type?this.startMidVertexScaleGraphics(e,t):this.startVertexScaleGraphics(e,t):this._parent&&this._parent._editMode===l.SketchEditMode.EDITVERTEX&&this.startVertexMoveGraphics(e,t)}},{key:"selectFeature",value:function(e){var r=this;if(this.editOption.showSelectBox){var n=new t({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new f.default({vertexStyle:this._sketchDataType===l.SketchDataType.TEXT?this.sketchStyle._selectTextStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),i=e.geometry;if(this._drawTools.push(n),n.addFeatureByGeometry(i,null,null,this.sketchInnerLayer),this.sketchStage.selectBoxGraphics=[n.sketchStage.entityGraphic],this._otherDrawTools.push(n),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),!this._parent||this._parent&&!this._parent._mapClickEvent){var o=function(){r._preventFirstCall?r._preventFirstCall=void 0:(r.sketchStage.selectBoxGraphics.forEach(function(e){r._removeFeatureFromLayer(e,r.sketchInnerLayer)}),r.view.off(l.ViewEventType.immediateClick,r._mapClickEvent),r._mapClickEvent=void 0,r.fire("selected",{isSelected:!1},self),r.sketchStage.selectBoxGraphics=[],r.view._mapActionControl("video-map-active",!1))};this._hitTestEventHandlers.push(this._mapClickEvent),this._mapClickEvent||(this._mapClickEvent=o,this.view.on(l.ViewEventType.immediateClick,o)),"leaflet"===this.view.engineType&&this.sketchDataType===l.SketchDataType.TEXT?this._preventFirstCall=!1:this._preventFirstCall=!0}}}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent),this._parent&&this._fireStartPanEvent(this._parent.sketchStage.entityGraphic,this._parent);var o=function(e){if(e&&e.x&&e.y&&!n&&r._startPan){clearTimeout(null),n=!0;var t={x:e.x,y:e.y},o=r.view.toMap({x:t.x,y:t.y}),a=o.coordinates[0]-i.coordinates[0],s=o.coordinates[1]-i.coordinates[1];if(0!==a||0!==s){var u=r.getPanCoordinates(r.sketchStage.entityGraphic.geometry.coordinates,a,s);i.coordinates=u,r.sketchStage.entityGraphic.geometry.coordinates=u,n=!1,r._parent&&(r._parent.sketchStage.entityGraphic.geometry.coordinates=u,r._firePanningEvent(r._parent.sketchStage.entityGraphic,r._parent))}else n=!1}},a=function e(){r._startPan&&(r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,o),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent),r._parent&&r._fireStopPanEvent(r._parent.sketchStage.entityGraphic,r._parent),setTimeout(function(){r.view._mapActionControl("drag-pan",!0)},0))};this._hitTestEventHandlers.push(o),this._hitTestEventHandlers.push(a),this.view.on(l.ViewEventType.pointerUp,a),this.view.on(l.ViewEventType.pointerMove,o)}},{key:"startVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n,i=!1;this._startPan=!0,n=t.mapPoint;var o;o=this._parent.sketchStage.entityGraphic.geometry instanceof c.Extent?this._parent.sketchStage.entityGraphic.geometry:this._parent.sketchStage.entityGraphic.geometry.extent,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent);var a=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var s=function(t){if(t&&t.x&&t.y&&!i&&r._startPan){clearTimeout(null),i=!0;var s={x:t.x,y:t.y},u=r.view.toMap({x:s.x,y:s.y}),l=u.coordinates[0]-n.coordinates[0],c=u.coordinates[1]-n.coordinates[1],h=u.coordinates[0]/n.coordinates[0],f=u.coordinates[1]/n.coordinates[1];0!==l||0!==c?(r._dispatchEvent("vertexScale",{startPoint:n,movePoint:u,deltaPosition:{x:l,y:c},scale:{x:h,y:f},direction:a,extent:o,feature:e,action:"scale"},r),i=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):i=!1}},u=function e(){r._startPan&&(r._dispatchEvent("vertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,s),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopScaleEvent(r._parent.sketchStage.entityGraphic,r._parent))};this._hitTestEventHandlers.push(s),this._hitTestEventHandlers.push(u),this.view.on(l.ViewEventType.pointerUp,u),this.view.on(l.ViewEventType.pointerMove,s)}},{key:"startMidVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n,i=!1;this._startPan=!0,n=t.mapPoint;var o;o=this._parent.sketchStage.entityGraphic.geometry instanceof c.Extent?this._parent.sketchStage.entityGraphic.geometry:this._parent.sketchStage.entityGraphic.geometry.extent,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent);var a=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var s=function(e){if(e&&e.x&&e.y&&!i&&r._startPan){clearTimeout(null),i=!0;var t={x:e.x,y:e.y},s=r.view.toMap({x:t.x,y:t.y}),u=s.coordinates[0]-n.coordinates[0],l=s.coordinates[1]-n.coordinates[1],c=s.coordinates[0]/n.coordinates[0],h=s.coordinates[1]/n.coordinates[1];0!==u||0!==l?(r._dispatchEvent("midVertexScale",{startPoint:n,movePoint:s,deltaPosition:{x:u,y:l},scale:{x:c,y:h},direction:a,extent:o,action:"scale"},r),i=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):i=!1}},u=function e(){r._startPan&&(r._dispatchEvent("vertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,s),r.view._mapActionControl("drag-pan",!0),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopScaleEvent(r._parent.sketchStage.entityGraphic,r._parent))};this._hitTestEventHandlers.push(s),this._hitTestEventHandlers.push(u),this.view.on(l.ViewEventType.pointerUp,u),this.view.on(l.ViewEventType.pointerMove,s)}},{key:"startCircleVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n,i=!1;this._startPan=!0,n=t.mapPoint;var o=this._parent.sketchStage.entityGraphic.geometry.extent;this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent);var a=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var s=function(t){if(t&&t.x&&t.y&&!i&&r._startPan){clearTimeout(null),i=!0;var s={x:t.x,y:t.y},u=r.view.toMap({x:s.x,y:s.y}),l=u.coordinates[0]-n.coordinates[0],c=u.coordinates[1]-n.coordinates[1],h=u.coordinates[0]/n.coordinates[0],f=u.coordinates[1]/n.coordinates[1];0!==l||0!==c?(r._dispatchEvent("circleVertexScale",{startPoint:n,movePoint:u,deltaPosition:{x:l,y:c},scale:{x:h,y:f},direction:a,extent:o,feature:e,action:"scale"},r),i=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):i=!1}},u=function e(){r._startPan&&(r._dispatchEvent("circleVertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,e),r.view.off(l.ViewEventType.pointerMove,s),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopScaleEvent(r._parent.sketchStage.entityGraphic,r._parent))};this._hitTestEventHandlers.push(s),this._hitTestEventHandlers.push(u),this.view.on(l.ViewEventType.pointerUp,u),this.view.on(l.ViewEventType.pointerMove,s)}},{key:"startVertexMoveGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint;var o=e.attributes?e.attributes.vertexIndex:-2;"midVertex"===e.attributes.type?(this._fireAddVertexEvent(this._parent.sketchStage.entityGraphic,this._parent),this._dispatchEvent("midVertexAdd",{point:i,vertexIndex:e.attributes?o:void 0,action:"changeFeature"},this),this._startPan=!0):this._startPan=!0,this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent),this._parent&&this._fireStartVertexMoveEvent(this._parent.sketchStage.entityGraphic,this._parent);var a=function(t){if(t&&t.x&&t.y&&!n&&r._startPan){clearTimeout(null),n=!0;var a={x:t.x,y:t.y},s=r.view.toMap({x:a.x,y:a.y}),u=s.coordinates[0]-i.coordinates[0],l=s.coordinates[1]-i.coordinates[1];0!==u||0!==l?("midVertex"===e.attributes.type?r._dispatchEvent("midVertexAdd",{startPoint:i,movePoint:s,vertexIndex:o,vertexType:e.attributes?e.attributes.type:void 0,action:"moveMidVertex"},r):r._dispatchEvent("vertexMove",{startPoint:i,movePoint:s,vertexIndex:o,vertexType:e.attributes?e.attributes.type:void 0},r),i=s,n=!1,r._parent&&r._fireUpdateVertex(r._parent.sketchStage.entityGraphic,r._parent)):n=!1}},s=function t(o){if(o&&o.x&&o.y&&r._startPan){if(r.view._mapActionControl("drag-pan",!1),r._startPan=!1,r.view.off(l.ViewEventType.pointerUp,t),r.view.off(l.ViewEventType.pointerMove,a),r.view._mapActionControl("drag-pan",!0),"midVertex"===e.attributes.type){var s=e.attributes.vertexIndex;r._dispatchEvent("midVertexAdd",{point:i,vertexIndex:e.attributes?s:void 0,action:"addVertex"},r)}n=!1,r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r.view._mapActionControl("drag-pan",!0),r._parent&&r._fireStopVertexMoveEvent(r._parent.sketchStage.entityGraphic,r._parent)}};this._hitTestEventHandlers.push(a),this._hitTestEventHandlers.push(s),this.view.on(l.ViewEventType.pointerUp,s),this.view.on(l.ViewEventType.pointerMove,a)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"circleVertexScale"===e.type&&this._handlerCircleVertexScaleEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this.getPanCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.deltaPosition.x,e.deltaPosition.y,this.sketchStage.entityGraphic.attributes.direction,e.extent),r=new c.Point({coordinates:t,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=r}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var t=JSON.parse((0,n.default)([this.sketchStage.entityGraphic.geometry.coordinates]));this.sketchStage.entityGraphic.attributes.lastCoordinates=t}this.sketchStage.entityGraphic.attributes=this.sketchStage.entityGraphic.attributes?this.sketchStage.entityGraphic.attributes:{};var r=void 0;if(this._parent){var i=this._parent.sketchStage.entityGraphic.geometry.extent,o=this.sketchStage.entityGraphic.attributes.direction;"e"===o?r=this._getCenterCoordinate([i.xmax,i.ymin],[i.xmax,i.ymax]):"s"===o?r=this._getCenterCoordinate([i.xmax,i.ymin],[i.xmin,i.ymin]):"w"===o?r=this._getCenterCoordinate([i.xmin,i.ymin],[i.xmin,i.ymax]):"n"===o?r=this._getCenterCoordinate([i.xmax,i.ymax],[i.xmin,i.ymax]):"ne"===o?r=[i.xmax,i.ymax]:"se"===o?r=[i.xmax,i.ymin]:"sw"===o?r=[i.xmin,i.ymin]:"nw"===o&&(r=[i.xmin,i.ymax])}r||(r=this.getScaleCoordinates([this.sketchStage.entityGraphic.geometry.coordinates],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates,this.sketchStage.entityGraphic.attributes.direction)[0]);var a=new c.Point({coordinates:r,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=a}"stop"===e.action&&this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0)}},{key:"_handlerMidVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)([this.sketchStage.entityGraphic.geometry.coordinates]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates([this.sketchStage.entityGraphic.geometry.coordinates],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.Point({coordinates:i[0],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._parent&&this._parent.sketchStage.updateGraphic(this.sketchStage.entityGraphic)}else"stop"===e.action&&this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0)}},{key:"_handlerCircleVertexScaleEvent",value:function(e){this._handlerMidVertexScaleEvent(e)}}]),t}(h.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(5)),u=r(8),l=r(1),c=r(9),h=d(r(521)),f=r(134);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this));return r._id=(0,l.defaultValue)(e.id,(0,l.getGUID)()),r.view=(0,l.defaultValue)(e.view,null),r.layer=(0,l.defaultValue)(e.layer,void 0),r.sketchInnerLayer=(0,l.defaultValue)(e.sketchInnerLayer,void 0),r.sketchStage=new h.default,void 0!==e.sketchStyle&&(r.sketchStyle=e.sketchStyle.clone()),r.elevationInfo=(0,l.defaultValue)(e.elevationInfo,void 0),r.type="sketchBaseDrawTool",r.extensionOptions=(0,l.defaultValue)(e.extensionOptions,void 0),r._editMode=u.SketchEditMode.NONE,r._spatialReference=e.view._spatialReference?e.view._spatialReference:new c.SpatialReference("EPSG:4326"),r._drawEventHandlers=[],r._hitTestEventHandlers=[],r._sketchDataType=null,r._parent=(0,l.defaultValue)(e._parent,void 0),r.undoRedoManager=(0,l.defaultValue)(e.undoRedoManager,void 0),r.editOption=(0,l.defaultValue)(e.editOption,{showSelectBox:!0,showSelectVertex:!1,canEditFeature:!0,canEditVertex:!0,_hitTestMode:0}),r._drawTools=[],r._hitTestDrawToolStack=[],r._clampToGround=!0,r.snapAndReferGeometries=[],r._sketchEditor=(0,l.defaultValue)(e._sketchEditor,void 0),r._sketchEditor&&(r.sketchSnappingTool=r._sketchEditor._sketchSnappingTool,r.snapAndReferGeometries=r._sketchEditor.snapAndReferGeometries),r.cursorStyle=null,r._snapPoint=null,r._sketchDataType=e.sketchDataType,r.arcType=e.arcType,r._getCenterCoordinate=e._getCenterCoordinate,r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"start",value:function(){this.stop(),this.drawFeature()}},{key:"stop",value:function(){this._editMode===u.SketchEditMode.DRAWING||this._editMode===u.SketchEditMode.NONE?this._stopDraw():this._editMode===u.SketchEditMode.EDITGRAGIC||this._editMode===u.SketchEditMode.EDITVERTEX?this._stopHitTest():(this._stopDraw(),this._stopHitTest())}},{key:"_stopAll",value:function(){this._stopDraw(),this._stopHitTest()}},{key:"_stopDraw",value:function(){var e=this;this._drawEventHandlers&&(this._drawEventHandlers.forEach(function(t){e.view.off(u.ViewEventType.immediateClick,t),e.view.off(u.ViewEventType.pointerUp,t),e.view.off(u.ViewEventType.pointerMove,t),e.view.off(u.ViewEventType.pointerDown,t),e.view.off(u.ViewEventType.doubleClick,t),e.view.off(u.ViewEventType.drag,t)}),this._drawEventHandlers=[]),this._stopInitSnap()}},{key:"_stopHitTest",value:function(){var e=this;this._hitTestEventHandlers&&(this._hitTestEventHandlers.forEach(function(t){e.view.off(u.ViewEventType.pointerUp,t),e.view.off(u.ViewEventType.pointerMove,t),e.view.off(u.ViewEventType.pointerDown,t),e.view.off(u.ViewEventType.click,t),e.view.off(u.ViewEventType.immediateClick,e._mapClickEvent)}),this._mapClickEvent=null,this._hitTestEventHandlers=[])}},{key:"setSketchStyle",value:function(e){this.sketchStyle=e}},{key:"_clearEditGraphics",value:function(e){var t=this,r=function(){t.sketchStage.selectBoxGraphics.concat(t.sketchStage.selectBoxVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t.sketchInnerLayer)}),t._otherDrawTools=[],t.sketchStage.selectBoxGraphics=[],t.sketchStage.selectBoxVertexGraphics=[]},n=function(){var e=null;(e=t._parent?t._parent:t).sketchStage.vertexGraphics.concat(e.sketchStage.midVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t.sketchInnerLayer)}),e._otherDrawTools=[],e.sketchStage.vertexGraphics=[],e.sketchStage.midVertexGraphics=[]};e===u.SketchEditMode.EDITGRAGIC?r():e===u.SketchEditMode.EDITVERTEX?n():(r(),n())}},{key:"_isDrawToolFeature",value:function(e){var t=this,r=e.id,n=!1;return this.sketchStage.entityGraphic.id===r&&(n=!0,this._editMode=u.SketchEditMode.EDITGRAGIC),this.sketchStage.vertexGraphics.forEach(function(e){e.id===r&&(n=!0,t._editMode=u.SketchEditMode.EDITVERTEX)}),this.sketchStage.midVertexGraphics.forEach(function(e){e.id===r&&(n=!0,t._editMode=u.SketchEditMode.EDITVERTEX)}),n||(this._editMode=u.SketchEditMode.NONE),n}},{key:"_getDrawToolByFeature",value:function(e){var t=e.id,r=null;return this.sketchStage.entityGraphic.id===t&&(r=this.sketchStage.entityGraphic),r.length>0?r[0]:null}},{key:"_addFeaturesToMap",value:function(e){this.layer&&this.layer.add(e)}},{key:"_addFeatureToLayer",value:function(e,t){t&&t.add(e)}},{key:"_removeFeatureFromMap",value:function(e){this.layer&&this.layer.remove(e)}},{key:"_removeFeatureFromLayer",value:function(e,t){t&&t.remove(e)}},{key:"_dispatchEvent",value:function(e,t,r){return this._parent&&this._parent.fire(e,t,r),this}},{key:"updateFeature",value:function(e,t){var r=t.id;this.sketchStage.entityGraphic.id===r&&(this.sketchStage.entityGraphic.coordinates=e.coordinates,this.sketchStage.entityGraphic.geometry=e,t=this.sketchStage.entityGraphic)}},{key:"removeDrawTool",value:function(){var e=this;this._removeFeatureFromLayer(this.sketchStage.entityGraphic,this.layer),this.sketchStage.getAllFeatures().forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),this._stopAll()}},{key:"removeEntityGraphic",value:function(){this._removeFeatureFromLayer(this.sketchStage.entityGraphic,this._layer),this.sketchStage.entityGraphic=null}},{key:"removeVertexGraphics",value:function(){var e=this;this.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),this.sketchStage.vertexGraphics=[]}},{key:"addVertex",value:function(e,t){}},{key:"updateVertex",value:function(e,t){}},{key:"removeVertex",value:function(e,t){}},{key:"getDistanceByPixel",value:function(e){return this.view.getResolution?this.view.getResolution()*e:1e3}},{key:"getPanCoordinates",value:function(e,t,r,n,i){return"e"===n?this._getCenterCoordinate([i.xmax,i.ymin],[i.xmax,i.ymax]):"s"===n?this._getCenterCoordinate([i.xmax,i.ymin],[i.xmin,i.ymin]):"w"===n?this._getCenterCoordinate([i.xmin,i.ymin],[i.xmin,i.ymax]):"n"===n?this._getCenterCoordinate([i.xmax,i.ymax],[i.xmin,i.ymax]):[e[0]+t,e[1]+r]}},{key:"getScaleCoordinates",value:function(e,t,r,n,i,o,a){var s=[];return o=o||[],e.forEach(function(e,a){var u=function(e,t,r,o,a){var s=1,u=1,l=Number(e[0].toString()),c=Number(e[1].toString()),h=n.coordinates,f=i.coordinates;return o=o||[],"ne"===r&&(s=(f[0]-t.xmin)/(h[0]-t.xmin),l=([o[0]]-t.xmin)*s+t.xmin,u=(f[1]-t.ymin)/(h[1]-t.ymin),c=(o[1]-t.ymin)*u+t.ymin),"se"===r&&(s=(f[0]-t.xmin)/(h[0]-t.xmin),l=([o[0]]-t.xmin)*s+t.xmin,u=(f[1]-t.ymax)/(h[1]-t.ymax),c=(o[1]-t.ymax)*u+t.ymax),"sw"===r&&(s=(f[0]-t.xmax)/(h[0]-t.xmax),l=([o[0]]-t.xmax)*s+t.xmax,u=(f[1]-t.ymax)/(h[1]-t.ymax),c=(o[1]-t.ymax)*u+t.ymax),"nw"===r&&(s=(f[0]-t.xmax)/(h[0]-t.xmax),l=([o[0]]-t.xmax)*s+t.xmax,u=(f[1]-t.ymin)/(h[1]-t.ymin),c=(o[1]-t.ymin)*u+t.ymin),[l,c]}(e,r,t,o[a]);void 0!==e[2]&&(u[2]=e[2]),s.push(u)}),s}},{key:"getMidScaleCoordinates",value:function(e,t,r,n,i,o){var a=[];return o=o||[],e.forEach(function(e,s){var u=function(e,t,r,o){var a=1,s=1,u=e[0],l=e[1],c=n.coordinates,h=i.coordinates;return o=o||[],"e"===r&&(a=(h[0]-t.xmin)/(c[0]-t.xmin),u=([o[0]]-t.xmin)*a+t.xmin),"s"===r&&(s=(h[1]-t.ymax)/(c[1]-t.ymax),l=(o[1]-t.ymax)*s+t.ymax),"w"===r&&(a=(h[0]-t.xmax)/(c[0]-t.xmax),u=([o[0]]-t.xmax)*a+t.xmax),"n"===r&&(s=(h[1]-t.ymin)/(c[1]-t.ymin),l=(o[1]-t.ymin)*s+t.ymin),[u,l]}(e,r,t,o[s]);e[2]&&(u[2]=e[2]),a.push(u)}),a}},{key:"getCenterScaleCoordinates",value:function(e,t,r,n,i,o){var a=[];return o=o||[],e.forEach(function(e,s){var u=function(e,t,r,o){var a=1,s=1,u=e[0],l=e[1],c=n.coordinates,h=i.coordinates;return o=o||[],"e"===r&&(a=(h[0]-t.xmin)/(c[0]-t.xmin),u=([o[0]]-t.xmin)*a+t.xmin),"s"===r&&(s=(h[1]-t.ymax)/(c[1]-t.ymax),l=(o[1]-t.ymax)*s+t.ymax),"w"===r&&(a=(h[0]-t.xmax)/(c[0]-t.xmax),u=([o[0]]-t.xmax)*a+t.xmax),"n"===r&&(s=(h[1]-t.ymin)/(c[1]-t.ymin),l=(o[1]-t.ymin)*s+t.ymin),[u,l]}(e,r,t,o[s]);e[2]&&(u[2]=e[2]),a.push(u)}),a}},{key:"_setSketchStage",value:function(e){this.sketchStage=e}},{key:"_getDrawToolByFeatureId",value:function(e){return this._drawTools.find(function(t){return t.sketchStage.entityGraphic&&t.sketchStage.entityGraphic.id===e})}},{key:"_removeEditGraphics",value:function(){var e=this;this.sketchStage.selectBoxGraphics.concat(this.sketchStage.selectBoxVertexGraphics).concat(this.sketchStage.vertexGraphics).concat(this.sketchStage.midVertexGraphics).forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),this.sketchStage.selectBoxGraphics=[],this.sketchStage.selectBoxVertexGraphics=[],this.sketchStage.vertexGraphics=[],this.sketchStage.midVertexGraphics=[]}},{key:"_getInteractiveDom",value:function(){for(var e=[],t=document.getElementsByClassName("leaflet-interactive"),r=0;r<t.length;r++)e.push(t[r]);return e}},{key:"_removeInteractiveStyle",value:function(e){for(var t=0;t<e.length;t++)e[t].classList.remove("leaflet-interactive")}},{key:"_addInteractiveStyle",value:function(e){for(var t=0;t<e.length;t++)e[t].classList.add("leaflet-interactive")}},{key:"_setInitSnap",value:function(){var e=this;this._snapPoint=null,this._handlerInitMouseMove=function(t){if(t&&t.x&&t.y){var r={x:t.x,y:t.y},n=e.view.toMap({x:r.x,y:r.y});e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._snapPoint=e.getSnapGraphics(n)}},this._drawEventHandlers.push(this._handlerInitMouseMove),this.view.on(u.ViewEventType.pointerMove,this._handlerInitMouseMove)}},{key:"_stopInitSnap",value:function(){this._handlerInitMouseMove&&(this.view.off(u.ViewEventType.pointerMove,this._handlerInitMouseMove),this._handlerInitMouseMove=void 0)}},{key:"_fireStartDrawEvent",value:function(e){e=e||this;var t=new f.SketchEditorEvent({type:u.SketchEditorEventType.create,toolEventInfo:{},state:u.SketchEditorState.start});e.fire(u.SketchEditorEventType.create,t,self)}},{key:"_fireDrawVertexEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.create,toolEventInfo:{type:u.SketchEditorToolEventType.vertexAdd},state:u.SketchEditorState.active,feature:e,geometry:e?e.geometry:void 0});t.fire(u.SketchEditorEventType.create,r,self)}},{key:"_fireChangeCursorEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.create,toolEventInfo:{type:u.SketchEditorToolEventType.cursorChange},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.create,r,self)}},{key:"_fireStopDrawEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.create,toolEventInfo:null,state:u.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.create,r,self)}},{key:"_fireStartPanEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.moveStart},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_firePanningEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.move},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireStopPanEvent",value:function(e,t){var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.moveStop},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireStartScaleEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.scaleStart},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireScalingEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.scale},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireStopScaleEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.scaleStop},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireStartVertexMoveEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.vertexMoveStart},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireUpdateVertex",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.vertexUpdate},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireStopVertexMoveEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.vertexMoveStop},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireAddVertexEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.vertexAdd},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireAddVertexEventByFun",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.vertexAdd},state:u.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,this)}},{key:"_fireUpdateVertexByFun",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.vertexUpdate},state:u.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireRemoveVertexByFun",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.vertexRemove},state:u.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,this)}},{key:"_fireRemoveSelectEvent",value:function(e,t){t=t||this;var r=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:null,state:u.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(u.SketchEditorEventType.update,r,self)}},{key:"_fireUnsimpleDraw",value:function(e){e=e||this;var t=new f.SketchEditorEvent({type:u.SketchEditorEventType.create,toolEventInfo:{type:u.SketchEditorToolEventType.geometryUnsimple},state:u.SketchEditorState.active});e.fire(u.SketchEditorEventType.create,t,self)}},{key:"_fireUnsimpleUpdate",value:function(e){e=e||this;var t=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.geometryUnsimple},state:u.SketchEditorState.active});e.fire(u.SketchEditorEventType.update,t,self)}},{key:"_fireUnsimpleUpdateByFun",value:function(e){e=e||this;var t=new f.SketchEditorEvent({type:u.SketchEditorEventType.update,toolEventInfo:{type:u.SketchEditorToolEventType.geometryUnsimple},state:u.SketchEditorState.complete});e.fire(u.SketchEditorEventType.update,t,self)}},{key:"getSnapGraphics",value:function(e,t){var r=this,n=null,i=null,o=[],a=null;t&&0!==t.length?1===t.length?i=new c.LineString({coordinates:[t[0],e.coordinates],spatialReference:this._spatialReference}):(i=new c.LineString({coordinates:t.slice(-2),spatialReference:this._spatialReference}),"sketchFreehandPolylineDrawTool"!==this.type&&"sketchFreehandPolygonDrawTool"!==this.type&&(a=new c.LineString({coordinates:t.slice(0,t.length),spatialReference:this._spatialReference}))):i=e,o=this.snapAndReferGeometries,this.sketchSnappingTool.snapSketchGeometry&&a&&(o=this.snapAndReferGeometries.concat([a])),t&&t.length>0&&("sketchFreehandPolylineDrawTool"===this.type||"sketchFreehandPolygonDrawTool"===this.type)&&o.push(new c.Point({coordinates:t[0],spatialReference:this._spatialReference}));var s=this.sketchSnappingTool.snapGeometries(e,i,o);if(s.coincidentPoint){var l=new u.Feature({geometry:s.coincidentPoint.realPoint,symbol:this.sketchStyle._coincidentPointStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(l),n=s.coincidentPoint.realPoint}else if(s.inLineAndParallel){s.inLineAndParallel.lines.forEach(function(e){var t=new u.Feature({geometry:e,symbol:r.sketchStyle._parallelLineStyle,elevationInfo:r.elevationInfo});r.sketchStage.snapGraphics.push(t)});var h=new u.Feature({geometry:s.inLineAndParallel.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(h),s.inLineAndParallel.symbolGeometry){var f=new u.Feature({geometry:s.inLineAndParallel.symbolGeometry,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(f)}n=s.inLineAndParallel.realPoint}else if(s.inLineAndPerpendicular){s.inLineAndPerpendicular.lines.forEach(function(e){var t=new u.Feature({geometry:e,symbol:r.sketchStyle._perpendicularLineStyle,elevationInfo:r.elevationInfo});r.sketchStage.snapGraphics.push(t)});var d=new u.Feature({geometry:s.inLineAndPerpendicular.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(d),s.inLineAndPerpendicular.symbolGeometry){var p=new u.Feature({geometry:s.inLineAndPerpendicular.symbolGeometry,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(p)}n=s.inLineAndPerpendicular.realPoint}else if(s.pointInLine){var y=new u.Feature({geometry:s.pointInLine.line,symbol:this.sketchStyle._highlightLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(y);var g=new u.Feature({geometry:s.pointInLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(g),n=s.pointInLine.realPoint}else if(s.parallelLine){var m=new u.Feature({geometry:s.parallelLine.line,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(m);var v=new u.Feature({geometry:s.parallelLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(v),s.parallelLine.symbolGeometry){var _=new u.Feature({geometry:s.parallelLine.symbolGeometry,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(_)}n=s.parallelLine.realPoint}else if(s.perpendicularLine){var S=new u.Feature({geometry:s.perpendicularLine.line,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(S);var x=new u.Feature({geometry:s.perpendicularLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(x),s.perpendicularLine.symbolGeometry){var b=new u.Feature({geometry:s.perpendicularLine.symbolGeometry,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(b)}n=s.perpendicularLine.realPoint}return this.sketchStage.snapGraphics.forEach(function(e){r._addFeatureToLayer(e,r.sketchInnerLayer)}),n}},{key:"setSnapAndReferGeometries",value:function(e){e?this.snapAndReferGeometries=e:this._sketchEditor&&(this.snapAndReferGeometries=this._sketchEditor.snapAndReferGeometries)}},{key:"debounce",value:function(e,t){var r=void 0;return function(){var n=this,i=arguments;clearTimeout(r),r=setTimeout(function(){e.apply(n,i)},t)}}}]),t}(u.Evented);t.default=p},function(e,t,r){var n=r(136),i=r(98);e.exports=function(e){return n(i(e))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasemapChangeEvent=t.LayerLoadedEvent=t.LayerChangeEvent=t.CollectionChangeEvent=t.ProxyEvent=t.LayerViewUpdateEvent=t.LayerEvent=t.ErrorEvent=t.Event=void 0;var n=f(r(41)),i=f(r(265)),o=f(r(154)),a=r(155),s=f(r(277)),u=f(r(278)),l=f(r(279)),c=f(r(280)),h=f(r(281));function f(e){return e&&e.__esModule?e:{default:e}}t.Event=n.default,t.ErrorEvent=i.default,t.LayerEvent=o.default,t.LayerViewUpdateEvent=a.LayerViewUpdateEvent,t.ProxyEvent=s.default,t.CollectionChangeEvent=u.default,t.LayerChangeEvent=l.default,t.LayerLoadedEvent=c.default,t.BasemapChangeEvent=h.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(t){(0,n.default)(this,e),this.initPropertys(t)}return(0,i.default)(e,[{key:"initPropertys",value:function(e){var t=e||{};return this.type=t.type,this.target=t.target,t}},{key:"addProperty",value:function(e,t){e&&(this[e]=t)}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calcExtent=t.editGeometryByArc3=t.editFeatureByArc3=t.createGeometryByGeoJSON=t.createGeometry=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(33)),i=r(1),o=r(6),a=r(9),s=r(122);t.createGeometry=function(e){switch((e=(0,i.defaultValue)(e,{})).type){case o.GeometryType.point:return new a.Point(e);case o.GeometryType.multiPoint:return new a.MultiPoint(e);case o.GeometryType.lineString:return new a.LineString(e);case o.GeometryType.multiLineString:return new a.MultiLineString(e);case o.GeometryType.polygon:return new a.Polygon(e);case o.GeometryType.multiPolygon:return new a.MultiPolygon(e);case o.GeometryType.circle:return new a.Circle(e);case o.GeometryType.extent:return new a.Extent(e);default:i.Log.error("未输入正确的几何类型")}},t.createGeometryByGeoJSON=function(e){var t;switch((t="Feature"===e.type?e.geometry:e).type){case o.GeometryType.point:return new a.Point({coordinates:t.coordinates});case o.GeometryType.multiPoint:case o.GeometryType.lineString:return new a.LineString({coordinates:t.coordinates});case o.GeometryType.multiLineString:return new a.MultiLineString({coordinates:t.coordinates});case o.GeometryType.polygon:return new a.Polygon({coordinates:t.coordinates});case o.GeometryType.multiPolygon:return new a.MultiPolygon({coordinates:t.coordinates});default:i.Log.error("无法解析geojson")}},t.editFeatureByArc3=function(e){var t=s.Feature.fromJSON(e),r=a.GeometryEngine.getArcFromGeometry({geometry:t.geometry,arcInfo:t.additional.arc3}),n=t.toJSON();return n.geometry.coordinates=r.coordinates,s.Feature.fromJSON(n)},t.editGeometryByArc3=function(e,t){return t&&t.arc3?a.GeometryEngine.getArcFromGeometry({geometry:e,arcInfo:t.arc3}):e},t.calcExtent=function(e,t,r,s){var u=void 0;switch(r=(0,i.defaultValue)(r,o.GeometryType.polygon)){case o.GeometryType.polygon:u=n.polygon(e);break;case o.GeometryType.lineString:u=n.lineString(e);break;case o.GeometryType.multiPolygon:u=n.multiPolygon(e);break;case o.GeometryType.multiLineString:u=n.multiLineString(e)}var l=n.bbox(u);if(!t)return new a.Extent({xmin:l[0],ymin:l[1],xmax:l[2],ymax:l[3],spatialReference:s});var c=[];switch(r){case o.GeometryType.polygon:case o.GeometryType.multiLineString:for(var h=0;h<e.length;h++)for(var f=0;f<e[h].length;f++)c.push(e[h][f][2]);break;case o.GeometryType.lineString:for(var d=0;d<e.length;d++)c.push(e[d][2]);break;case o.GeometryType.multiPolygon:for(var p=0;p<e.length;p++)for(var y=0;y<e[p].length;y++)for(var g=0;g<e[p][y].length;g++)c.push(e[p][y][g][2])}c.sort(function(e,t){return e-t});var m=c[0],v=c[c.length-1];return new a.Extent({xmin:l[0],ymin:l[1],xmax:l[2],ymax:l[3],zmin:m,zmax:v,spatialReference:s})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(){(0,n.default)(this,e),this.type="unkown"}return(0,i.default)(e,[{key:"toJSON",value:function(){return{type:this.type}}},{key:"clone",value:function(){}}],[{key:"fromJSON",value:function(){}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGeometryFilter=t.getFullBaseUrl=t.appendUrlParams=t.getGeometryTypeByFeatureSet=t.getZoomOffset=t.getTileResolution=t.initCorporationType=t.getEPSGCodeFromOGCSupportedCRSString=t.formatIGSRenderer=t.formatIGSSymbol=t.getLayerViewScaleVisible=t.showLayerByScale=t.isCustomSP=t.is4326=t.getUrlType=t.getEPSGFromTileMatrixSetId=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(23)),i=r(6),o=r(1),a=r(8),s=r(155);function u(e){switch((e=(0,o.defaultValue)(e,{})).type){case i.SymbolType.simpleMarker:case i.SymbolType.simpleFill:e.color&&(e.color=new a.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255)),e.outline&&e.outline.color&&(e.outline.color=new a.Color(e.outline.color[0],e.outline.color[1],e.outline.color[2],e.outline.color[3]/255));break;case i.SymbolType.simpleLine:e.color&&(e.color=new a.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255));break;case i.SymbolType.pictureMarker:e.color&&(e.color=new a.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255)),e.url||(e.url=e.imageData);break;case i.SymbolType.pictureFill:e.outline&&e.outline.color&&(e.outline.color=new a.Color(e.outline.color[0],e.outline.color[1],e.outline.color[2],e.outline.color[3]/255)),e.url||(e.url=e.imageData);break;case i.SymbolType.text:e.color&&(e.color=new a.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255)),e.backgroundColor&&(e.backgroundColor=new a.Color(e.backgroundColor[0],e.backgroundColor[1],e.backgroundColor[2],e.backgroundColor[3]/255)),e.borderLineColor&&(e.borderLineColor=new a.Color(e.borderLineColor[0],e.borderLineColor[1],e.borderLineColor[2],e.borderLineColor[3]/255)),e.haloColor&&(e.haloColor=new a.Color(e.haloColor[0],e.haloColor[1],e.haloColor[2],e.haloColor[3]/255))}return e}function l(e,t){t=(0,o.defaultValue)(t,{});var r="";return(0,n.default)(t).forEach(function(e){r+=e+"="+t[e]+"&"}),""===(r=r.substring(0,r.length-1))?e:e.indexOf("?")>-1?e.indexOf("&")>-1?e+"&"+r:""+e+r:e+"?"+r}t.getEPSGFromTileMatrixSetId=function(e){if(!e)return"EPSG:4326";var t=e;return e.indexOf("EPSG:4326")>-1?t="EPSG:4326":e.indexOf("EPSG:4490")>-1?t="EPSG:4490":e.indexOf("EPSG:4610")>-1?t="EPSG:4610":e.indexOf("EPSG:3857")>-1&&(t="EPSG:3857"),t},t.getUrlType=function(e){var t=void 0,r=new RegExp("^http://t[0-6].tianditu.gov.cn/[a-z]{3}_[w|c]{1}/wmts$"),n=new RegExp("^http://[0-9.a-zA-Z]+:[0-9]{1,5}/igs/rest/services/[一-龟\\w/:_]+/WMTSServer$"),o=new RegExp("^https://[0-9.a-zA-Z]+:[0-9]{1,5}/igs/rest/services/[一-龟\\w/:_]+/WMTSServer$"),a=new RegExp("^http://[0-9.a-zA-Z]+/igs/rest/services/[一-龟\\w/:_]+/WMTSServer$"),s=new RegExp("^https://[0-9.a-zA-Z]+/igs/rest/services/[一-龟\\w/:_]+/WMTSServer$"),u=new RegExp("^http://[0-9.a-zA-Z]+:[0-9]{1,5}/arcgis/rest/services/[一-龟\\w/:_]+/WMTSServer$"),l=new RegExp("^https://[0-9.a-zA-Z]+:[0-9]{1,5}/arcgis/rest/services/[一-龟\\w/:_]+/WMTSServer$"),c=new RegExp("^http://[0-9.a-zA-Z]+/arcgis/rest/services/[一-龟\\w/:_]+/WMTSServer$"),h=new RegExp("^https://[0-9.a-zA-Z]+/arcgis/rest/services/[一-龟\\w/:_]+/WMTSServer$");return r.test(e)?t=i.UrlServerType.tdt:n.test(e)||o.test(e)||a.test(e)||s.test(e)?t=i.UrlServerType.igs_2:(u.test(e)||l.test(e)||c.test(e)||h.test(e))&&(t=i.UrlServerType.igs_2),t},t.is4326=function(e){return"4326"===String(e.wkid)||"4214"===String(e.wkid)||"4490"===String(e.wkid)||"4610"===String(e.wkid)},t.isCustomSP=function(e){return"4326"!==String(e.wkid)&&"4214"!==String(e.wkid)&&"4490"!==String(e.wkid)&&"4610"!==String(e.wkid)&&"3857"!==String(e.wkid)&&"900913"!==String(e.wkid)},t.showLayerByScale=function(e,t){t.visible&&function(e,t){var r=new s.LayerViewUpdateContent({name:"visible",params:[void 0],dataChanged:!0,operationType:"property",extensionOptions:{type:"scaleVisible",viewId:t._id}});e._fireUpdateEvent("最大最小比例尺引起图层显隐变化",[r])}(t,e)},t.getLayerViewScaleVisible=function(e){var t=void 0,r=e.view,n=e.layer,i=r.scale;if(!r.scale&&r.getScale&&(i=r.getScale()),!i)return!0;var o=n.minScale,a=n.maxScale;return"number"==typeof i&&i>0&&(t="number"==typeof o&&"number"==typeof a&&o>0&&a>0?i<=o&&i>=a:"number"==typeof o&&o>0&&("number"!=typeof a||a<=0)?i<=o:!("number"==typeof a&&a>0&&("number"!=typeof o||o<=0))||i>=a),t},t.formatIGSSymbol=u,t.formatIGSRenderer=function(e){switch((e=(0,o.defaultValue)(e,{})).type){case i.RendererType.simple:e.symbol=u(e.symbol);break;case i.RendererType.uniqueValue:e.defaultSymbol=u(e.defaultSymbol);for(var t=0;t<e.uniqueValueInfos.length;t++)e.uniqueValueInfos[t].symbol=u(e.uniqueValueInfos[t].symbol);break;case i.RendererType.classBreak:e.defaultSymbol=u(e.defaultSymbol);for(var r=0;r<e.classBreakInfos.length;r++)e.classBreakInfos[r].symbol=u(e.classBreakInfos[r].symbol);if(e.classBreakInfos.length>0){e.classBreakInfos[0].minValue=e.minValue,e.classBreakInfos[0].maxValue=e.classBreakInfos[0].classMaxValue;for(var n=1;n<e.classBreakInfos.length;n++)e.classBreakInfos[n].minValue=e.classBreakInfos[n-1].classMaxValue,e.classBreakInfos[n].maxValue=e.classBreakInfos[n].classMaxValue}}return e},t.getEPSGCodeFromOGCSupportedCRSString=function(e){var t=4326,r=-1;return(r=e.search("EPSG::"))>-1?t=parseInt(e.substring(r+"EPSG::".length)):(r=e.search("EPSG:"))>-1&&e.search("3857")>0?t=3857:((r=e.search("OGC:2:84"))<0&&(r=e.search("OGC:1.3:CRS84")),r>-1&&(t=4326)),3867!==t&&900913!==t&&102100!==t||(t=3857),t},t.initCorporationType=function(e){return void 0===e?i.WMTSCorporation.none:e.search("arcgis/rest/services")>0?i.WMTSCorporation.corporationArcGIS:e.search("WMTSServer")>0||e.search("WMSServer")>0?i.WMTSCorporation.corporationZD:e.search("geoserver")>0?i.WMTSCorporation.corporationGeoServer:e.search("tianditu.com")>0||e.search("tianditu.gov.cn")>0?i.WMTSCorporation.corporationTianDiTu:i.WMTSCorporation.corporationOther},t.getTileResolution=function(e,t,r,n){var o="",a=-1,s=0,u=0,l=0,c=25.4/96,h=1e3;return t===i.WMTSCorporation.corporationZD?(a=e.lastIndexOf("_GB"))>0?((a=(o=e.slice(0,e.length-3)).lastIndexOf("_"))>0&&(o=o.slice(a+1)),"028mm"===o?s=0:"arcgis"===o?s=1:"dpi96"===o?s=2:"GoogleMapsCompatible"===o&&(s=3),n.isGeographic?0===s?(h=111319490.79327358,c=.28):1===s?(c=.28,h=111194872.221777):2===s&&(h=111319490.79327358,c=25.4/96):0===s?c=.28:1===s?c=.28:2===s?c=25.4/96:3===s&&(c=.28)):n.isGeographic?(h=111194872.221777,c=25.4/96):c=25.4/96:t===i.WMTSCorporation.corporationArcGIS?(u=e.includes("default")?0:e.includes("native")?1:e.includes("GoogleMapsCompatible")?2:3,n.isGeographic?0===u?(r=.28*r*96/25.4,h=111194872.221777,c=.2645838625):1===u&&(h=111194872.221777,c=.2645838625):0===u?(r=.28*r*96/25.4,c=.2645838625):1===u?c=.2645838625:2===u&&(c=.28)):t===i.WMTSCorporation.corporationGeoServer?n.isGeographic?(h=111319490.79327358,c=.28):c=.28:t===i.WMTSCorporation.corporationTianDiTu?n.isGeographic?(h=111319490.79327358,c=25.4/96):c=25.4/96:(e.includes("028")&&(l=1),"".includes("GoogleMapsCompatible")&&(l=1),"".includes("GoogleCRS84Quad")&&(l=1),n.isGeographic?1===l?(r=.28*r*96/25.4,h=111194872.221777,c=.2645838625):(h=111319490.79327358,c=25.4/96):1===l?(r=.28*r*96/25.4,c=.2645838625):c=25.4/96),r*c/h},t.getZoomOffset=function(e,t,r){r=(0,o.defaultValue)(r,.01);for(var n=0;n<e.length;n++)if(Math.abs(e[n].resolution-t.resolution)/t.resolution<r)return e[0].level-n+t.level;return 0},t.getGeometryTypeByFeatureSet=function(e){var t=i.GeometryType.geometry;return e&&e.features&&Array.isArray(e.features)&&e.features.length>0&&(t=e.features[0].geometry.type),t},t.appendUrlParams=l,t.getFullBaseUrl=function(e){var t={};return e.tokenKey&&e.tokenValue&&(t[e.tokenKey]=e.tokenValue),l(e.url,t)},t.getGeometryFilter=function(e,t){var r={geometryType:void 0,geometry:"",spatialRel:t=(0,o.defaultValue)(t,a.SpatialRelation.Intersects)};function n(e){for(var t="",r=0;r<e.length;r++){for(var n=0;n<e[r].length;n++)t+=e[r][n][0]+","+e[r][n][1]+",";t=t.substring(0,t.length-1),t+="|"}return t.substring(0,t.length-1)}switch(e.type){case i.GeometryType.extent:return r.geometryType="rect",r.geometry=e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,r;case i.GeometryType.polygon:return r.geometryType="polygon",r.geometry=n(e.coordinates),r;case i.GeometryType.multiPolygon:r.geometryType="polygon";for(var s=0;s<e.coordinates.length;s++)r.geometry+=n(e.coordinates[s]),r.geometry+=";";return r.geometry=r.geometry.substring(0,r.geometry.length-1),r;default:return}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(r(11)),i=v(r(14)),o=v(r(3)),a=v(r(0)),s=v(r(2)),u=v(r(4)),l=v(r(5)),c=r(8),h=r(1),f=r(6),d=r(40),p=v(r(53)),y=r(9),g=r(44),m=r(46);function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this));return e=(0,h.defaultValue)(e,{}),r.id=(0,h.defaultValue)(e.id,(0,h.getGUID)()),r.description=(0,h.defaultValue)(e.description,"图层基类"),r.copyright=(0,h.defaultValue)(e.copyright,"中地数码版权所有"),r.loadStatus=(0,h.defaultValue)(e.loadStatus,f.LoadStatus.notLoaded),r.loaded=!1,r.tokenKey=(0,h.defaultValue)(e.tokenKey,"token"),r.tokenValue=(0,h.defaultValue)(e.tokenValue,void 0),r.tokenAttachType=(0,h.defaultValue)(e.tokenAttachType,f.TokenAttachType.normal),r.index=(0,h.defaultValue)(e.index,void 0),r.title=(0,h.defaultValue)(e.title,void 0),r.minScale=(0,h.defaultValue)(e.minScale,0),r.maxScale=(0,h.defaultValue)(e.maxScale,0),r.extendProps=(0,h.defaultValue)(e.extendProps,{}),r.type=f.LayerType.baseLayer,r.httpMethod=(0,h.defaultValue)(e.httpMethod,f.FetchMethod.get),r.headers=(0,h.defaultValue)(e.headers,{}),r.extensionOptions=(0,h.defaultValue)(e.extensionOptions,{}),r._visible=(0,h.defaultValue)(e.visible,!0),r._opacity=parseFloat((0,h.defaultValue)(e.opacity,1)),r._spatialReference=e.spatialReference?p.default.fromJSON(e.spatialReference):void 0,r._realIndex=void 0,r._isBasemapLayer=!1,r.autoAddTo2D=(0,h.defaultValue)(e.autoAddTo2D,!0),r.autoAddTo3D=(0,h.defaultValue)(e.autoAddTo3D,!0),r._loadPromise=null,r}return(0,l.default)(t,e),(0,s.default)(t,[{key:"isLoaded",value:function(){return this.loadStatus===f.LoadStatus.loaded}},{key:"load",value:function(){return this.loadStatus===f.LoadStatus.notLoaded?(this.loadStatus=f.LoadStatus.loading,this._loadPromise=this._load()):(this.loadStatus,f.LoadStatus.loading),this._loadPromise}},{key:"_load",value:function(){var e=this;return new i.default(function(t){e.loadStatus=f.LoadStatus.loaded,e.loaded=!0,t(e)})}},{key:"setMap",value:function(e){this._map=e}},{key:"destroy",value:function(){}},{key:"_fireUpdateEvent",value:function(e,t){this._map&&this._map.fire(f.LayerEventType.layerUpdate,new d.LayerViewUpdateEvent({type:f.LayerEventType.layerUpdate,target:this._map,layer:this,message:e,updateContent:t}))}},{key:"toJSON",value:function(){return{id:this.id,description:this.description,copyright:this.copyright,loadStatus:this.loadStatus,loaded:this.loaded,tokenKey:this.tokenKey,tokenValue:this.tokenValue,tokenAttachType:this.tokenAttachType,index:this.index,title:this.title,minScale:this.minScale,maxScale:this.maxScale,type:this.type,visible:this.visible,opacity:this.opacity,spatialReference:(0,h.toJSON)(this.spatialReference,p.default),extent:(0,h.toJSON)(this.extent,y.Extent),autoAddTo2D:this.autoAddTo2D,autoAddTo3D:this.autoAddTo3D,extendProps:this.extendProps,extensionOptions:this.extensionOptions}}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"refresh",value:function(){this._fireUpdateEvent("刷新图层",[{params:arguments,dataChanged:!0,name:"refresh",operationType:"method"}])}},{key:"_updateIndex",value:function(){this._fireUpdateEvent("修改图层的index",[{name:"index",params:[this],dataChanged:!0,operationType:"property"}])}},{key:"_buildRequestUrl",value:function(){var e={};return this.tokenKey&&this.tokenValue&&(e[this.tokenKey]=this.tokenValue),(0,g.appendUrlParams)(this.url,e)}}],[{key:"fromJSON",value:function(e){return e=e||{},(0,m.createLayer)(e)}},{key:"fromServerUrl",value:function(e,r){return new i.default(function(n){r.url=e,n(new t(r))})}}]),t}(c.Evented);(0,n.default)(_.prototype,{visible:{get:function(){return this._visible},set:function(e){this._visible=e,this._fireUpdateEvent("显隐变化",[{name:"visible",params:[this._visible],dataChanged:!0,operationType:"property"}])}},opacity:{get:function(){return this._opacity},set:function(e){this._opacity=Number(e),this._fireUpdateEvent("透明度变化",[{name:"opacity",params:[this._opacity],dataChanged:!0,operationType:"property"}])}},spatialReference:{get:function(){return this._spatialReference},set:function(e){this._spatialReference=e}},extent:{get:function(){return this._extentSrc},set:function(e){this._extentSrc=e}}}),t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSublayerArr=t.getLayersCollection=t.createLayer=t.flatServerSublayerInfos=t.setElevationInfo=t.fireEvent=t.setSublayer=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(22)),i=r(8),o=r(6),a=r(15),s=r(35);t.setSublayer=function(e,t,r){for(var i=!0,o=0;o<e._sublayers.length;o++)if(String(e._sublayers[o].name)===String(t.name)||String(e._sublayers[o].id)===String(t.id)){(0,n.default)(e._sublayers[o],t),i=!1;break}for(var a=0;a<e.allSublayers.length;a++)if(String(e.allSublayers[a].name)===String(t.name)||String(e.allSublayers[a].id)===String(t.id)){(0,n.default)(e.allSublayers[a],t),i=!1;break}if(i)if(t instanceof r)e._sublayers.push(t);else if(t instanceof Object&&!(t instanceof Array))for(var s=0;s<e.allSublayers.length;s++)if(String(t.id)===String(e.allSublayers[s].id)||String(t.name)===String(e.allSublayers[s].name)){e._sublayers.push(new r((0,n.default)(e.allSublayers[s].toJSON(),t)));break}},t.fireEvent=function(e,t,r){e._map&&e._map.fire(t,new i.LayerEvent({type:r,target:e._map,layer:e,extend:{type:r}}))},t.setElevationInfo=function(e,t){e.elevationInfo||(t.elevationInfo?e.elevationInfo=t.elevationInfo:e.elevationInfo=new i.ElevationInfo)},t.flatServerSublayerInfos=function e(t,r){!t||!Array.isArray(t)||t.length<=0||t.forEach(function(t){r.push(t),t.children&&e(t.children,r)})},t.createLayer=function(e){var t=void 0;switch((e=e||{}).type){case o.LayerType.arcgisMapImage:t=s.ArcGISMapImageLayer.fromJSON(e);break;case o.LayerType.arcgisTile:t=s.ArcGISTileLayer.fromJSON(e);break;case o.LayerType.arcgisVectorTile:t=s.ArcGISVectorTileLayer.fromJSON(e);break;case o.LayerType.cesium3DTiles:t=s.Cesium3DTilesCacheLayer.fromJSON(e);break;case o.LayerType.echarts:t=s.EchartsLayer.fromJSON(e);break;case o.LayerType.feature:t=s.FeatureLayer.fromJSON(e);break;case o.LayerType.geojson:t=s.GeoJSONLayer.fromJSON(e);break;case o.LayerType.graphics:t=s.GraphicsLayer.fromJSON(e);break;case o.LayerType.group:t=s.GroupLayer.fromJSON(e);break;case o.LayerType.igsFeature:t=s.IGSFeatureLayer.fromJSON(e);break;case o.LayerType.igsMapImage:t=s.IGSMapImageLayer.fromJSON(e);break;case o.LayerType.igsVectorTile:t=s.IGSVectorTileLayer.fromJSON(e);break;case o.LayerType.igsTile:t=s.IGSTileLayer.fromJSON(e);break;case o.LayerType.m3dCache:t=s.M3DModelCacheLayer.fromJSON(e);break;case o.LayerType.mapv:t=s.MapVLayer.fromJSON(e);break;case o.LayerType.terrain:t=s.TerrainCacheLayer.fromJSON(e);break;case o.LayerType.webTileLayer:t=s.WebTileLayer.fromJSON(e);break;case o.LayerType.wfs:t=s.WFSLayer.fromJSON(e);break;case o.LayerType.wms:t=s.WMSLayer.fromJSON(e);break;case o.LayerType.wmts:t=s.WMTSLayer.fromJSON(e);break;case o.LayerType.unknown:default:t=s.UnknownLayer.fromJSON(e)}return t},t.getLayersCollection=function(e){return(e=e||[])instanceof i.Collection?e:(e=e.filter(function(e){return e}).map(function(e){return e instanceof s.Layer?e:s.Layer.fromJSON(e)}),new i.Collection(e))},t.toSublayerArr=function(e){if(e){var t=[];return e instanceof i.Collection?t=e.items:Array.isArray(e)&&(t=e),t.map(function(e){return e instanceof a.SubLayer?e.toJSON():e})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(5)),u=r(66),l=r(8),c=r(1);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this));return e=(0,c.defaultValue)(e,{}),r.id=(0,c.defaultValue)(e.id,(0,c.getGUID)()),r.type="",r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,id:this.id}}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(l.Evented);f.fromJSON=function(e){return(0,u.createRender)(e)},t.default=f},function(e,t,r){var n=r(28),i=r(60);e.exports=r(27)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){"use strict";t.__esModule=!0;var n=a(r(255)),i=a(r(257)),o="function"==typeof i.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===o(n.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":o(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=s(r(156));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t,r,i,a){(0,n.default)(this,e),this.red=(0,o.defaultValue)(t,0),this.green=(0,o.defaultValue)(r,0),this.blue=(0,o.defaultValue)(i,0),this.alpha=(0,o.defaultValue)(a,1)}return(0,i.default)(e,[{key:"toCesiumRGB",value:function(){return{red:this.red/255,green:this.green/255,blue:this.blue/255,alpha:this.alpha}}},{key:"toCssRGBAString",value:function(){return"rgba("+this.red+","+this.green+","+this.blue+","+this.alpha+")"}},{key:"toCssRGBString",value:function(){return"rgb("+this.red+","+this.green+","+this.blue+")"}},{key:"clone",value:function(){return new e(this.red,this.green,this.blue,this.alpha)}},{key:"toJSON",value:function(){return{red:this.red,green:this.green,blue:this.blue,alpha:this.alpha}}}]),e}();u.fromRGBString=function(e){if(u.isRGB(e))if(e.indexOf("rgba")>-1||e.indexOf("RGBA")>-1){var t=e.substring(5,e.length-1);if(4===(t=t.split(",")).length)return new u(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3]))}else if(e.indexOf("rgb")>-1||e.indexOf("RGB")>-1){var r=e.substring(4,e.length-1);if(3===(r=r.split(",")).length)return new u(Number(r[0]),Number(r[1]),Number(r[2]))}},u.fromHexString=function(e){if(u.isHex(e)){var t=u.hexToRgb(e);if(t.indexOf("rgba")>-1||t.indexOf("RGBA")>-1)return u.fromRGBString(t);if(t.indexOf("rgb")>-1||t.indexOf("RGB")>-1)return u.fromRGBString(t)}},u.fromJSON=function(e){e=(0,o.defaultValue)(e,{});var t=(0,o.defaultValue)(e.red,255),r=(0,o.defaultValue)(e.green,255),n=(0,o.defaultValue)(e.blue,255),i=(0,o.defaultValue)(e.alpha,1);return new u(t,r,n,i)},u.hexToRgb=function(e){if(/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(e)){var t=e.toLowerCase().replace(/\#/g,""),r=t.length;if(3===r||4===r){for(var n="",i=0;i<r;i++)n+=t.slice(i,i+1).concat(t.slice(i,i+1));r=(t=n).length}for(var o=[],a=0;a<r;a+=2){var s=t.slice(a,a+2);o.push(parseInt("0x"+s))}var u=void 0;if(6===r)u="rgb("+o.join(",")+")";else if(8===r){u="rgba(";for(var l=0;l<3;l++)u+=o[l]+",";u+=o[3]/255+")"}return u}},u.rgbToHex=function(e){if(/^(rgb|rgba|RGB|RGBA)/.test(e)){var t;t=e.indexOf("rgba")>-1||e.indexOf("RGBA")>-1?e.slice(5,e.length-1).split(","):e.slice(4,e.length-1).split(",");for(var r="#",n=0;n<3;n++)r+=i(t[n]);return 4===t.length&&(r+=i(255*Number(t[3]))),r}function i(e){var t=Number(e).toString(16);return"0"===t&&(t+="0"),1===t.length&&(t="0"+t),t}},u.fromCssString=function(e){if(!e||"string"!=typeof e)return u.fromHexString("#000000");var t=e.toLowerCase(),r=a.default[t];return r?u.fromHexString(r):u.fromHexString("#000000")},u.fromColor=function(e){return"string"==typeof e?u.isHex(e)?u.fromHexString(e):u.isRGB(e)?u.fromRGBString(e):u.fromCssString(e):e instanceof u?e:Array.isArray(e)?3===e.length?new u(e[0],e[1],e[2]):4===e.length?new u(e[0],e[1],e[2],e[3]):(o.Log.info("非法颜色值数组!"),new u):e instanceof Object?u.fromJSON(e):new u},u.isHex=function(e){return/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(e)},u.isRGB=function(e){return/^(rgb|rgba|RGB|RGBA)/.test(e)},t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={default:"default",color:"color",opacity:"opacity",size:"size"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(5)),u=d(r(73)),l=r(8),c=r(1),h=r(6),f=r(19);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this));return e=(0,c.defaultValue)(e,{}),r.id=(0,c.defaultValue)(e.id,(0,c.getGUID)()),r.color=l.Color.fromColor((0,c.defaultValue)(e.color,new l.Color(255,255,255,.25))),r.type=h.SymbolType.default,r.extensionOptions=(0,c.defaultValue)(e.extensionOptions,{}),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{color:l.Color.fromColor(this.color).toJSON(),type:this.type,extensionOptions:(0,c.cloneObject)(this.extensionOptions),id:this.id}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return(0,f.createSymbol)(e)}}]),t}(u.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(49)),i=l(r(0)),o=l(r(2)),a=r(1),s=r(170),u=l(r(121));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t){(0,i.default)(this,e),t=(0,a.defaultValue)(t,{});var r=this._parseSpatialReferenceOptions(t),n=r.wkid,o=r.wkt;this.wkid=n,this.wkt=o,this.unit=t.unit}return(0,o.default)(e,[{key:"_parseSpatialReferenceOptions",value:function(e){var t=4326,r=void 0;if(e.wkid&&e.wkt)return{wkid:e.wkid,wkt:e.wkt};if("string"==typeof e){var i=e.match(/\d+$/);/^(EPSG|epsg)(:)?\d+$/.test(e)&&i?(t=parseInt(i[0]),r=void 0):(r=e,t=void 0)}else"object"===(void 0===e?"undefined":(0,n.default)(e))?((0,a.defined)(e.wkid)&&(t=parseInt(e.wkid)),e.wkt&&(r=e.wkt,t=void 0)):a.Log.error("无法解析传入的空间参考系参数");return{wkid:t,wkt:r}}},{key:"clone",value:function(){return new e(this.toJSON())}},{key:"toJSON",value:function(){return{wkid:this.wkid,wkt:this.wkt}}},{key:"toString",value:function(){return this.wkid?"EPSG:"+this.wkid:this.wkt?this.wkt:void 0}},{key:"equals",value:function(t){if(!(t instanceof e||t instanceof Object&&t.hasOwnProperty("wkid")&&t.hasOwnProperty("wkt")))throw new Error("spatialReference的格式不正确!");return!!(this===t||this.wkid&&t.wkid&&this.wkid===t.wkid||this.wkt&&t.wkt&&this.wkt.toUpperCase()===t.wkt.toUpperCase())}},{key:"isWGS84",get:function(){return 4326===this.wkid}},{key:"isGeographic",get:function(){return!!(this.wkid&&void 0===s.ProjUnitWkidMap[this.wkid]||/^GEOGCS/.test(this.wkt)||/^[+]proj=longlat/.test(this.wkt))||this.wkid===u.default.bd09ll||this.wkid===u.default.gcj02ll}},{key:"isWebMercator",get:function(){return[102113,102100,900913,3857].indexOf(this.wkid)>-1||this.wkid===u.default.bd09mc||this.wkid===u.default.gcj02mc}},{key:"isWrappable",get:function(){return[4326,4490,4610,4214,102113,102100,900913,3857].indexOf(this.wkid)>-1}},{key:"WebMercator",get:function(){return this.isWebMercator?this.clone():void 0}},{key:"WGS84",get:function(){return this.isGeographic?this.clone():void 0}}],[{key:"fromJSON",value:function(t){return new e(t=(0,a.defaultValue)(t,{}))}}]),e}();t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=_(r(11)),i=_(r(3)),o=_(r(0)),a=_(r(2)),s=_(r(4)),u=_(r(7)),l=_(r(5)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(33)),h=_(r(29)),f=r(1),d=_(r(34)),p=r(6),y=_(r(74)),g=_(r(53)),m=_(r(63)),v=_(r(76));function _(e){return e&&e.__esModule?e:{default:e}}var S=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));if(e=(0,f.defaultValue)(e,{}),r.xmin=(0,f.defaultValue)(e.xmin,0),r.ymin=(0,f.defaultValue)(e.ymin,0),r.xmax=(0,f.defaultValue)(e.xmax,0),r.ymax=(0,f.defaultValue)(e.ymax,0),r.zmin=(0,f.defaultValue)(e.zmin,void 0),r.zmax=(0,f.defaultValue)(e.zmax,void 0),r.type=p.GeometryType.extent,r.hasZ=!(!(0,f.isNumber)(r.zmin)||!(0,f.isNumber)(r.zmax)),!(0,f.isNumber)(r.xmin)||!(0,f.isNumber)(r.ymin)||!(0,f.isNumber)(r.xmax)||!(0,f.isNumber)(r.ymax)||void 0!==r.zmin&&!(0,f.isNumber)(r.zmin)||void 0!==r.zmax&&!(0,f.isNumber)(r.zmax))throw new Error("坐标必须为数字");return r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"centerAt",value:function(e){if(!e)throw new Error("传入参数错误");var t=d.default.toCoordinates(e),r=this.width,n=this.height;if(this.xmin=t[0]-r/2,this.xmax=t[0]+r/2,this.ymin=t[1]-n/2,this.ymax=t[1]+n/2,this.hasZ&&e.hasZ){var i=this.zmax-this.zmin;this.zmin=t[2]-i/2,this.zmax=t[2]+i/2}return this}},{key:"contains",value:function(e){if(!(e instanceof d.default||e instanceof t))return!1;var r=e;r.isGeographic||(r=y.default.project(e,new g.default({wkid:4326})));var n=this;n.isGeographic||(n=y.default.project(this,new g.default({wkid:4326})));var i,o=c.polygon([[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]);return i=r instanceof d.default?c.point(r._cloneCoordinates()):c.polygon([[[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin]]]),c.booleanContains(o,i)}},{key:"intersection",value:function(e){e||f.Log.error("传入参数错误!"),e instanceof t||f.Log.error("extent不是Extent几何!"),this.spatialReference.equals(e.spatialReference)||f.Log.error("不是同一个坐标系!");var r=e;r.isGeographic||(r=y.default.project(e,new g.default({wkid:4326})));var n=this;n.isGeographic||(n=y.default.project(this,new g.default({wkid:4326})));var i=c.polygon([[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]),o=c.polygon([[[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin]]]),a=null,s=c.intersect(i,o);if(s&&s.geometry){var u=void 0;"Polygon"===s.geometry.type?u=c.bbox(c.polygon(s.geometry.coordinates)):"MultiPolygon"===s.geometry.type&&(u=c.bbox(c.multiPolygon(s.geometry.coordinates))),u&&(a=new t({xmin:u[0],ymin:u[1],xmax:u[2],ymax:u[3]}),this.spatialReference.isGeographic||(a=y.default.project(a,g.default.fromJSON(this.spatialReference))))}return a}},{key:"intersects",value:function(e){return m.default.intersects(this,e)}},{key:"equals",value:function(e){if(!e)throw new Error("传入参数错误");var t=!!Math.abs(this.xmax-e.xmax)<=1e-7,r=!!Math.abs(this.xmin-e.xmin)<=1e-7,n=!!Math.abs(this.ymax-e.ymax)<=1e-7,i=!!Math.abs(this.ymin-e.ymin)<=1e-7;if(!this.hasZ)return t&&r&&n&&i;var o=!!Math.abs(this.zmax-e.zmax)<=1e-7,a=!!Math.abs(this.zmin-e.zmin)<=1e-7;return t&&r&&n&&i&&o&&a}},{key:"expand",value:function(e){if("number"==typeof e){if(e>=1){e=Math.abs(e);var t=this.width*e,r=this.height*e,n=t-this.width,i=r-this.height;this.xmin-=n/2,this.xmax+=n/2,this.ymin-=i/2,this.ymax+=i/2}return this}throw new Error("按照给定的因子扩大范围,需要的是一个num值")}},{key:"offset",value:function(e,t,r){if(!(0,f.isNumber)(e)||!(0,f.isNumber)(t)||this.hasZ&&!(0,f.isNumber)(r))throw new Error("传入参数错误");return this.xmax+=e,this.xmin+=e,this.ymax+=t,this.ymin+=t,this.hasZ&&(this.zmax+=r,this.zmin+=r),this}},{key:"union",value:function(e){if(!e)throw new Error("传入参数错误");return this.hasZ?new t({xmin:e.xmin<this.xmin?e.xmin:this.xmin,xmax:e.xmax>this.xmax?e.xmax:this.xmax,ymin:e.ymin<this.ymin?e.ymin:this.ymin,ymax:e.ymax>this.ymax?e.ymax:this.ymax,zmin:e.zmin<this.zmin?e.zmin:this.zmin,zmax:e.zmax>this.zmax?e.zmax:this.zmax}):new t({xmin:e.xmin<this.xmin?e.xmin:this.xmin,xmax:e.xmax>this.xmax?e.xmax:this.xmax,ymin:e.ymin<this.ymin?e.ymin:this.ymin,ymax:e.ymax>this.ymax?e.ymax:this.ymax})}},{key:"toString",value:function(){return this.hasZ?this.xmin+","+this.ymin+","+this.zmin+","+this.xmax+","+this.ymax+","+this.zmax:this.xmin+","+this.ymin+","+this.xmax+","+this.ymax}},{key:"toJSON",value:function(){var e=(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"toJSON",this).call(this);return e.xmin=this.xmin,e.ymin=this.ymin,e.xmax=this.xmax,e.ymax=this.ymax,e.zmin=this.zmin,e.zmax=this.zmax,e.width=this.width,e.height=this.height,e}},{key:"toIGSOldString",value:function(){return this.xmin+"$"+this.ymin+"$"+this.xmax+"$"+this.ymax}},{key:"getIGSType",value:function(){return this.hasZ?p.IGSGeometryType.extent3D:p.IGSGeometryType.extent}},{key:"normalize",value:function(){var e=new d.default({coordinates:[this.xmin,this.ymin]}),r=new d.default({coordinates:[this.xmax,this.ymax]});return e=e.normalize(),r=r.normalize(),new t({xmin:e.coordinates[0],ymin:e.coordinates[1],xmax:r.coordinates[0],ymax:r.coordinates[1]})}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toPolygon",value:function(){return v.default.fromExtent(this)}},{key:"toGeoJSON",value:function(){return this.toPolygon().toGeoJSON()}}],[{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(h.default);(0,n.default)(S.prototype,{width:{configurable:!1,get:function(){return this.xmax-this.xmin}},height:{configurable:!1,get:function(){return this.ymax-this.ymin}},center:{configurable:!1,set:function(e){this.centerAt(e)},get:function(){return this.hasZ?new d.default({coordinates:[(this.xmax-this.xmin)/2+this.xmin,(this.ymax-this.ymin)/2+this.ymin,(this.zmax-this.zmin)/2+this.zmin],spatialReference:this.spatialReference}):new d.default({coordinates:[(this.xmax-this.xmin)/2+this.xmin,(this.ymax-this.ymin)/2+this.ymin],spatialReference:this.spatialReference})}}}),t.default=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(10)),i=y(r(3)),o=y(r(0)),a=y(r(2)),s=y(r(4)),u=y(r(5)),l=r(8),c=r(9),h=y(r(38)),f=y(r(37)),d=y(r(36)),p=r(1);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchPolygonDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r.vertexNum=0,r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=null,o=[],a=[];this.vertexNum=0;var s=null;this.cursorStyle=this.view.cursor,(0,p.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var u=this._getInteractiveDom(),h=this.extensionOptions&&this.extensionOptions.vertexNumber?this.extensionOptions.vertexNumber:null;this._setInitSnap(),this._fireStartDrawEvent();var d=function r(n){if(n&&n.x&&n.y){e._stopInitSnap(),clearTimeout(null);var o={x:n.x,y:n.y};e._editMode=l.SketchEditMode.DRAWING;var u;u=e._snapPoint?e._snapPoint:e.view.toMap({x:o.x,y:o.y});var d=e.vertexNum+1;if(1===d)a=[u.coordinates],(i=e._getFeature()).geometry.coordinates=[[a[0],a[0],a[0],a[0]]];else if(2===d){var y=i.geometry.coordinates[0][0];if(y&&y[0]===u.coordinates[0]&&y[1]===u.coordinates[1])return p.Log.info("相邻两顶点重复!");a=[i.geometry.coordinates[0][0],i.geometry.coordinates[0][1]]}else{var g=(a=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2))[a.length-1];if(g&&g[0]===u.coordinates[0]&&g[1]===u.coordinates[1])return p.Log.info("相邻两顶点重复!");if(a.push(u.coordinates),e._sketchEditor.isSimple){var m=new c.Polygon({coordinates:[a.concat([a[0]])],spatialReference:e._spatialReference,extensionOptions:{arcType:e.arcType}});if(!c.GeometryEngine.isSimple(m))return e._fireUnsimpleDraw(),p.Log.info("该坐标构成的几何不符合拓扑规范!")}}if(e.vertexNum=d,h&&d>=h)e.view.off(l.ViewEventType.immediateClick,r);else{e.sketchStage.entityGraphic=i;var v=new f.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});v.addFeature(u,void 0,void 0,e.sketchInnerLayer),e._drawTools.push(v);var _=v.sketchStage.entityGraphic;e.sketchStage.vertexGraphics.push(_),i&&(t=!0),s="click",e.fire("drawn-vertex",{geometry:v.sketchStage.entityGraphic.geometry,feature:v.sketchStage.entityGraphic},self),e._fireDrawVertexEvent(i),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode)}}},y=!0,g=function(l){if(l&&l.x&&l.y&&t&&!r){clearTimeout(null),r=!0,i=e.sketchStage.entityGraphic,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var c={x:l.x,y:l.y};o[o.length-1]=c;var f=e.view.toMap({x:c.x,y:c.y}),d=h&&e.vertexNum===h?e.vertexNum-1:e.vertexNum;1===d?a=[i.geometry.coordinates[0][0]]:2===d?(i.geometry.coordinates[0][2]=f.coordinates,a=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)):a=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2),1===e.vertexNum?e._snapPoint=e.getSnapGraphics(f,a):e.vertexNum>1&&(e._snapPoint=e.getSnapGraphics(f,a)),e._snapPoint&&(f=e._snapPoint),e._currentMovePoint=f,1===d?(i.geometry.coordinates[0][1]=f.coordinates,i.geometry.coordinates[0][2]=f.coordinates):2===d?i.geometry.coordinates[0][2]=f.coordinates:"click"===s?i.geometry.coordinates[0].splice(i.geometry.coordinates[0].length-1,0,f.coordinates):"move"===s&&i.geometry.coordinates[0].splice(i.geometry.coordinates[0].length-2,1,f.coordinates),e.sketchStage.entityGraphic=i,i.geometry.coordinates=[JSON.parse((0,n.default)(i.geometry.coordinates[0]))],y&&(e._addFeatureToLayer(i,e.layer),y=!1),r=!1,s="move";var p=e._getInteractiveDom();u=u.concat(p),e._removeInteractiveStyle(p),e._fireChangeCursorEvent(i)}},m=function(){return clearTimeout(null),clearTimeout(null),t?(i=e.sketchStage.entityGraphic)&&e._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(i.geometry)?(e._fireUnsimpleDraw(),p.Log.info("该坐标构成的几何不符合拓扑规范!")):e.vertexNum<3&&e.sketchStage.entityGraphic?p.Log.info("区几何顶点少于三个,不符合规范!"):(a=[],o=[],t=!1,e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=l.SketchEditMode.NONE,s="doubleClick",e.view.cursor=e.cursorStyle,e._addInteractiveStyle(u),e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.vertexNum=0,e.sketchStage.vertexGraphics=[],e._currentMovePoint=void 0,e.undoRedoManager._initDrawProcess(),void setTimeout(function(){e.view._mapActionControl("double-click-zoom",!0),e.view._mapActionControl("video-map-active",!1)},0)):(i=null,a=[],void(o=[]))};this._drawEventHandlers.push(d,g,m),this.view.on(l.ViewEventType.immediateClick,d),this.view.on(l.ViewEventType.pointerMove,g),this.view.on(l.ViewEventType.doubleClick,m)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[0,0],[0,0],[0,0]]);var t=new c.Polygon({coordinates:[e],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),r=this.sketchStyle.fillStyle.clone(),n=new l.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo});return n.isShowArea=this.sketchStyle.isShowArea,n.isShowArea&&(n._textStyle=this.sketchStyle.textStyle),n}},{key:"hitTestFeature",value:function(e,t){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===l.SketchEditMode.NONE?this._editMode=l.SketchEditMode.EDITGRAGIC:this._editMode===l.SketchEditMode.EDITVERTEX&&(this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=l.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===l.SketchEditMode.EDITGRAGIC&&this.startPanGraphics(e,t)}},{key:"selectFeature",value:function(e){var r=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var n=e.geometry.extent,i=new t({view:this.view,layer:this.layer,sketchStyle:new d.default({fillStyle:this.sketchStyle._selectBoxStyle,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate,_parent:this});this._drawTools.push(i),i.addFeature([[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax]],void 0,void 0,this.sketchInnerLayer),this.sketchStage.selectBoxGraphics=[i.sketchStage.entityGraphic];var o=[];if(o=[{point:new c.Point({coordinates:[n.xmax,n.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new c.Point({coordinates:[n.xmax,n.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new c.Point({coordinates:[n.xmin,n.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new c.Point({coordinates:[n.xmin,n.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var a=[{point:new c.Point({coordinates:this._getCenterCoordinate([n.xmax,n.ymax],[n.xmax,n.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new c.Point({coordinates:this._getCenterCoordinate([n.xmax,n.ymin],[n.xmin,n.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new c.Point({coordinates:this._getCenterCoordinate([n.xmin,n.ymin],[n.xmin,n.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new c.Point({coordinates:this._getCenterCoordinate([n.xmin,n.ymax],[n.xmax,n.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];o=o.concat(a)}var s=[],u=[];o.forEach(function(e){var t=new f.default({view:r.view,layer:r.layer,sketchStyle:new d.default({vertexStyle:r.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},arcType:r.arcType,_getCenterCoordinate:r._getCenterCoordinate,elevationInfo:r.elevationInfo,_parent:r});r._drawTools.push(t),t.addFeature(e.point,r.sketchStage,{direction:e.direction,type:e.type},r.sketchInnerLayer),s.push(t),u.push(t.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=u,this._otherDrawTools?this._otherDrawTools.push(i):this._otherDrawTools=[i],this._otherDrawTools=this._otherDrawTools.concat(s),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this._editMode),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||(this._mapClickEvent=function(){r._preventFirstCall?r._preventFirstCall=void 0:(r.sketchStage.selectBoxGraphics.concat(r.sketchStage.selectBoxVertexGraphics).concat(r.sketchStage.vertexGraphics).concat(r.sketchStage.midVertexGraphics).forEach(function(e){r._removeFeatureFromLayer(e,r.sketchInnerLayer)}),r.view.off(l.ViewEventType.immediateClick,r._mapClickEvent),r.view._mapActionControl("drag-pan",!0),r._mapClickEvent=null,r.fire("selected",{isSelected:!1},self),r._fireRemoveSelectEvent(r.sketchStage.entityGraphic),r.sketchStage.selectBoxGraphics=[],r.sketchStage.selectBoxVertexGraphics=[],r.sketchStage.vertexGraphics=[],r.sketchStage.midVertexGraphics=[],r._editMode=l.SketchEditMode.NONE,r.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._mapClickEvent)},0))}}},{key:"selectFeatureVertex",value:function(e){var t=this;this._clearEditGraphics(1);var r=[],n=[];e.geometry.coordinates[0].forEach(function(i,o){if(o<e.geometry.coordinates[0].length-1){var a=new f.default({view:t.view,layer:t.layer,sketchStyle:new d.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),s=new c.Point({coordinates:i,spatialReference:t._spatialReference});t._drawTools.push(a),a.addFeature(s,void 0,{vertexIndex:o},t.sketchInnerLayer),r.push(a),t.sketchStage.vertexGraphics.push(a.sketchStage.entityGraphic)}if(o>0){var u=new f.default({view:t.view,layer:t.layer,sketchStyle:new d.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(u);var l,h=e.geometry.coordinates[0][o-1],p=t._getCenterCoordinate(i,h);l=new c.Point({coordinates:p,spatialReference:t._spatialReference}),t._drawTools.push(u),u.addFeature(l,void 0,{vertexIndex:o-1,type:"midVertex"},t.sketchInnerLayer),t.sketchStage.midVertexGraphics.push(u.sketchStage.entityGraphic)}});var i=r.concat(n);this._otherDrawTools=this._otherDrawTools?this._otherDrawTools.concat(i):i,this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this._editMode)}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint;var o=!0,a=setTimeout(function(){o=!1,r._parent&&r._fireStartPanEvent(r._parent.sketchStage.entityGraphic,r._parent)},200);this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent);var s=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==l.SketchEditMode.EDITGRAGIC&&!o){clearTimeout(null),n=!0;var a={x:t.x,y:t.y},s=r.view.toMap({x:a.x,y:a.y}),u=s.coordinates[0]-i.coordinates[0],h=s.coordinates[1]-i.coordinates[1];if(0!==u||0!==h){var f=[];e.geometry.coordinates[0].forEach(function(e){f.push(r.getPanCoordinates(e,u,h))});var d=new c.Polygon({coordinates:[f],spatialReference:r._spatialReference,extensionOptions:{arcType:r.arcType}});i=s,r._dispatchEvent("pan",{deltaPosition:{x:u,y:h},extent:d.extent},r),r.updateFeature(d,e),n=!1,r._parent&&r._firePanningEvent(r._parent.sketchStage.entityGraphic,r._parent)}else n=!1}},u=function e(){if(!r._editMode!==l.SketchEditMode.EDITGRAGIC&&r._startPan){if(o&&r._parent&&r._parent._editMode===l.SketchEditMode.EDITGRAGIC&&"sketchPointDrawTool"!==r._parent.type&&r._parent.selectFeatureVertex)return r._parent._editMode=l.SketchEditMode.EDITVERTEX,clearTimeout(a),r._parent.selectFeatureVertex(r._parent.sketchStage.entityGraphic),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r._startPan=!1,r.view.off(l.ViewEventType.pointerMove,s),void r.view.off(l.ViewEventType.pointerUp,e);r._editMode=l.SketchEditMode.NONE,r._startPan=!1,r.view.off(l.ViewEventType.pointerMove,s),r.view.off(l.ViewEventType.pointerUp,e),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage,r._editMode),r._parent&&r._parent._mapClickEvent&&r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent),r._parent&&r._fireStopPanEvent(r._parent.sketchStage.entityGraphic,r._parent),setTimeout(function(){r.view._mapActionControl("drag-pan",!0)},0)}};this._hitTestEventHandlers.push(s),this._hitTestEventHandlers.push(u),this.view.on(l.ViewEventType.pointerUp,u),this.view.on(l.ViewEventType.pointerMove,s)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"circleVertexScale"===e.type?this._handlerCircleVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates[0].forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new c.Polygon({coordinates:[r],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerCircleVertexScaleEvent",value:function(e){if(this._parent&&this._parent.sketchStage.entityGraphic){var t,r=this._parent.sketchStage.entityGraphic.geometry.extent,n=[[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]];(t=new c.Polygon({coordinates:[[[0,0],[0,0],[0,0],[0,0]]],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})).coordinates=[n],this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates[0],i=JSON.parse((0,n.default)(r));i[e.vertexIndex]=e.movePoint.coordinates,i.length-1===e.vertexIndex?i[0]=e.movePoint.coordinates:0===e.vertexIndex&&(i[t.geometry.coordinates[0].length-1]=e.movePoint.coordinates);var o=new c.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(o))return this._fireUnsimpleUpdate(),p.Log.info("该坐标构成的几何不符合拓扑规范!");if(t.geometry=o,this._otherDrawTools){var a=e.vertexIndex,s=0===a?a-1+this.sketchStage.midVertexGraphics.length:a-1,u=a===this.sketchStage.midVertexGraphics.length-1?0:a+1,l=this.sketchStage.midVertexGraphics[a],h=this.sketchStage.midVertexGraphics[s],f=this.sketchStage.vertexGraphics[a],d=i[s],y=i[a],g=i[u];l.geometry.coordinates=this._getCenterCoordinate(y,g),h.geometry.coordinates=this._getCenterCoordinate(y,d),f.geometry.coordinates=y}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates[0].splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new c.Polygon({coordinates:[this.sketchStage.entityGraphic.geometry.coordinates[0]],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})),"moveMidVertex"===e.action){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));r[e.vertexIndex+1]=e.movePoint.coordinates;var i=new c.Polygon({coordinates:[r],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(i))return this._fireUnsimpleUpdate(),p.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry=i,this.sketchStage.midVertexGraphics[e.vertexIndex].geometry.coordinates=e.movePoint.coordinates}if("addVertex"===e.action){var o=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),a=new f.default({view:this.view,layer:this.layer,sketchStyle:new d.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(a),a.addFeature(e.point,void 0,void 0,this.sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,a.sketchStage.entityGraphic);var s,u=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex];this._getHight;var l=this._getCenterCoordinate(u,e.point.coordinates);s=new c.Point({coordinates:l,spatialReference:this._spatialReference});var h=new f.default({view:this.view,layer:this.layer,sketchStyle:new d.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(h),h.addFeature(s,void 0,{type:"midVertex"},this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,h.sketchStage.entityGraphic);var y,g=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+2];this._getHight;var m=this._getCenterCoordinate(g,e.point.coordinates);y=new c.Point({coordinates:m,spatialReference:this._spatialReference});var v=new f.default({view:this.view,layer:this.layer,sketchStyle:new d.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(v),v.addFeature(y,void 0,{type:"midVertex"},this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,v.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===o&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t.sketchInnerLayer)}),this._otherDrawTools.push(a),this._otherDrawTools.push(h),this._otherDrawTools.push(v)}}},{key:"addMidVertex",value:function(e,t){var r=new f.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){var r=null;if(--t>-1){var i=[];if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){if((i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]))).splice(t,0,e.coordinates),0===t?i[i.length-1]=e.coordinates:t===i.length-1&&i.splice(0,0,e.coordinates),r=new c.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),p.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var o=void 0,a=void 0,s=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var u=[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],this._getCenterCoordinate([s.xmax,s.ymax],[s.xmin,s.ymax]),this._getCenterCoordinate([s.xmax,s.ymin],[s.xmin,s.ymin]),this._getCenterCoordinate([s.xmax,s.ymax],[s.xmax,s.ymin]),this._getCenterCoordinate([s.xmin,s.ymax],[s.xmin,s.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=u[t]})}if(this.sketchStage.vertexGraphics.length>0&&(o=new f.default({view:this.view,layer:this.layer,sketchStyle:new d.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(o),o.addFeatureByGeometry(e,void 0,void 0,this.sketchInnerLayer),this.sketchStage.vertexGraphics.splice(t,0,o.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var l=-1,h=-1,y=null,g=null;0===t?(h=0,l=this.sketchStage.midVertexGraphics.length-1,y=this.sketchStage.entityGraphic.geometry.coordinates[0][this.sketchStage.entityGraphic.geometry.coordinates[0].length-2],g=this.sketchStage.entityGraphic.geometry.coordinates[0][1]):(l=t-1,h=t+1,y=this.sketchStage.entityGraphic.geometry.coordinates[0][l],g=this.sketchStage.entityGraphic.geometry.coordinates[0][h]);var m=new c.Point({coordinates:this._getCenterCoordinate(y,e.coordinates),spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[l].geometry.coordinates=m.coordinates;var v=new c.Point({coordinates:this._getCenterCoordinate(g,e.coordinates),spatialReference:this._spatialReference});a=new f.default({view:this.view,layer:this.layer,sketchStyle:new d.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(a),a.addFeatureByGeometry(v,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,a.sketchStage.entityGraphic),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}o&&this._otherDrawTools.push(o),a&&this._otherDrawTools.push(a),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireAddVertexEventByFun(o.sketchStage.entityGraphic,this._parent)}return r}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){var i=this.sketchStage.entityGraphic,o=JSON.parse((0,n.default)(i.geometry.coordinates[0]));if(this.currentVertexIndex=t,o[t]=e.coordinates,o.length-1===t?o[0]=e.coordinates:0===t&&(o[o.length-1]=e.coordinates),r=new c.Polygon({coordinates:[o],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),p.Log.info("该坐标构成的几何不符合拓扑规范!");i.geometry.coordinates=[o];var a=i.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var s=[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],this._getCenterCoordinate([a.xmax,a.ymax],[a.xmin,a.ymax]),this._getCenterCoordinate([a.xmax,a.ymin],[a.xmin,a.ymin]),this._getCenterCoordinate([a.xmax,a.ymax],[a.xmax,a.ymin]),this._getCenterCoordinate([a.xmin,a.ymax],[a.xmin,a.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=s[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var u=t,l=0===u?u-1+this.sketchStage.midVertexGraphics.length:u-1,h=u===this.sketchStage.midVertexGraphics.length-1?0:u+1,f=this.sketchStage.midVertexGraphics[u],d=this.sketchStage.midVertexGraphics[l],y=o[l],g=o[u],m=o[h];f.geometry.coordinates=this._getCenterCoordinate(m,g),f.geometry=new c.Point({coordinates:f.geometry.coordinates,spatialReference:this._spatialReference}),d.geometry.coordinates=this._getCenterCoordinate(y,g),d.geometry=new c.Point({coordinates:d.geometry.coordinates,spatialReference:this._spatialReference})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireUpdateVertexByFun(this.sketchStage.entityGraphic,this._parent)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates[0].length-1;if(r>3&&e<r){var i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));if(i.splice(e,1),0===e&&i.splice(i.length-1,1,i[0]),t=new c.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(t))return this._fireUnsimpleUpdateByFun(),p.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=t;var o=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],this._getCenterCoordinate([o.xmax,o.ymax],[o.xmin,o.ymax]),this._getCenterCoordinate([o.xmax,o.ymin],[o.xmin,o.ymin]),this._getCenterCoordinate([o.xmax,o.ymax],[o.xmax,o.ymin]),this._getCenterCoordinate([o.xmin,o.ymax],[o.xmin,o.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0){var s=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.vertexGraphics[e],this.sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==s)return e})}if(this.sketchStage.midVertexGraphics.length>0){var u=[],l=-1;0===e?(u=[(t.coordinates[0][t.coordinates[0].length-2][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][t.coordinates[0].length-2][1]+t.coordinates[0][e][1])/2],l=this.sketchStage.midVertexGraphics.length-1):(u=[(t.coordinates[0][e-1][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][e-1][1]+t.coordinates[0][e][1])/2],l=e-1),this.sketchStage.midVertexGraphics[l].geometry=new c.Point({coordinates:u,spatialReference:this._spatialReference});var h=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.midVertexGraphics[e],this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==h)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireRemoveVertexByFun(this.sketchStage.entityGraphic,this._parent)}return t}}]),t}(h.default);t.default=g},function(e,t,r){var n=r(98);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(135),i=r(103);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t,r){var n=r(84);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t,r){e.exports={default:r(310),__esModule:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=x(r(10)),i=x(r(23)),o=x(r(0)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(33)),s=r(1),u=r(6),l=x(r(29)),c=x(r(76)),h=x(r(171)),f=x(r(172)),d=x(r(74)),p=x(r(53)),y=x(r(88)),g=x(r(174)),m=x(r(34)),v=x(r(175)),_=x(r(54)),S=x(r(176));function x(e){return e&&e.__esModule?e:{default:e}}var b=function e(){(0,o.default)(this,e)};b.difference=function(e,t){(0,s.isNull)(e)&&s.Log.error("inputGeometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("subtractGeometry不能为空!"),e instanceof c.default||e instanceof f.default||e instanceof _.default||e instanceof v.default||s.Log.error("inputGeometry类型错误!"),t instanceof c.default||t instanceof f.default||t instanceof _.default||t instanceof v.default||s.Log.error("subtractGeometry类型错误!");var r=void 0;switch(e.type){case y.default.polygon:r=b._polygonDifferenceGeometry(a.polygon(e.coordinates),t);break;case y.default.extent:var n=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});r=b._polygonDifferenceGeometry(a.polygon(n.coordinates),t);break;case y.default.circle:r=b._polygonDifferenceGeometry(a.polygon(e.toPolygon().coordinates),t);break;case y.default.multiPolygon:r=b._polygonDifferenceGeometry(a.multiPolygon(e.coordinates),t)}return(0,s.isNull)(r)||(r="Polygon"===r.geometry.type?new c.default({coordinates:r.geometry.coordinates,spatialReference:p.default.fromJSON(e.spatialReference)}):new f.default({coordinates:r.geometry.coordinates,spatialReference:p.default.fromJSON(e.spatialReference)})),r},b._polygonDifferenceGeometry=function(e,t){var r=e,n=void 0;switch(t.type){case y.default.polygon:n=a.polygon(t.coordinates);break;case y.default.multiPolygon:n=a.multiPolygon(t.coordinates);break;case y.default.circle:n=a.polygon(t.toPolygon().coordinates);break;case y.default.extent:var i=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});n=a.polygon(i.coordinates)}return a.difference(r,n)},b.buffer=function(e,t,r,n){r=(0,s.defaultValue)(r,u.LengthUnit.meter),n=(0,s.defaultValue)(n,!1),t=(0,s.defaultValue)(t,1e3),b._checkBufferOptions(e,t,r,n);var i=void 0;if(e instanceof Array)if(t instanceof Array){if(t.length<e.length){i=[];for(var o=t.length>0?t[t.length-1]:1e3,a=t.length;a<e.length;a++)i.push(o)}}else{i=[];for(var h=0;h<e.length;h++)i.push(t)}else i=t instanceof Array?t.length>0?t[0]:1e3:t;var f=e;if(e instanceof Array){f=[];for(var g=0;g<e.length;g++)f.push(d.default.projectGeometry(e[g],new p.default({wkid:4326})))}else 4326!==e.spatialReference.wkid&&(f=d.default.projectGeometry(e,new p.default({wkid:4326})));var m=void 0;if(e instanceof Array){if(e instanceof Array){if(m=[],t instanceof Array&&t.length<e.length)for(var v=t[t.length-1],_=t.length-1;_<e.length;_++)t.push(v);for(var S=0;S<f.length;S++){var x;x=t instanceof Array?t[S]:t,m.push(b._polygonBuffer(f[S],x,r))}n&&(m=b.union(m))}}else switch(e.type){case y.default.point:case y.default.multiPoint:case y.default.lineString:case y.default.multiLineString:case y.default.polygon:case y.default.multiPolygon:m=b._polygonBuffer(f,i,r);break;case y.default.extent:var w=new c.default({coordinates:[[[f.xmin,f.ymin],[f.xmax,f.ymin],[f.xmax,f.ymax],[f.xmin,f.ymax],[f.xmin,f.ymin]]]});m=b._polygonBuffer(w,i,r);break;case y.default.circle:(m=l.default.fromJSON(e)).radius+=i;break;default:s.Log.error("geometry是不支持的几何类型!")}if(e instanceof Array){if(!e[0].spatialReference.isGeographic)if(m instanceof Array)for(var k=0;k<m.length;k++)m[k].type!==y.default.circle&&(m[k]=d.default.projectGeometry(m[k],p.default.fromJSON(e[0].spatialReference)));else m.type!==y.default.circle&&(m=d.default.projectGeometry(m,p.default.fromJSON(e[0].spatialReference)))}else e.spatialReference.isGeographic||e.type===y.default.circle||(m=d.default.projectGeometry(m,p.default.fromJSON(e.spatialReference)));return m},b._checkBufferOptions=function(e,t,r,n){if((0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("distance不能为空!"),(0,s.isNull)(e)&&s.Log.error("unit不能为空!"),(0,s.isNull)(e)&&s.Log.error("unionResults不能为空!"),e instanceof Array){for(var o=0;o<e.length;o++)if(!(e[o]instanceof c.default||e[o]instanceof f.default)){s.Log.error("geometry的子元素类型不为Polygon或者MultiPolygon!");break}0===e.length&&s.Log.error("geometry的长度为0!")}else e instanceof l.default||s.Log.error("geometry不是基础几何类型!");if(t instanceof Array){e instanceof Array||s.Log.error("distance的类型为数组,但是geometry的类型不是数组!");for(var a=0;a<t.length;a++)if("number"!=typeof t[a]){s.Log.error("distance的子元素不是数字类型!");break}}else"number"!=typeof t&&s.Log.error("distance的不是数字类型!");if("string"==typeof r)if(r){var h=!1;(0,i.default)(u.LengthUnit).forEach(function(e){h||u.LengthUnit[e]!==r||(h=!0)}),h||s.Log.error("unit是不支持的单位类型!")}else s.Log.error("unit的值不能为空!");else s.Log.error("unit类型不是字符串!");"boolean"!=typeof n&&s.Log.error("unionResults类型不是布尔值类型!")},b._polygonBuffer=function(e,t,r){var n=void 0;switch(e.type){case y.default.point:n=a.point(e.coordinates);break;case y.default.multiPoint:n=a.multiPoint(e.coordinates);break;case y.default.lineString:n=a.lineString(e.coordinates);break;case y.default.multiLineString:n=a.multiLineString(e.coordinates);break;case y.default.polygon:n=a.polygon(e.coordinates);break;case y.default.multiPolygon:n=a.multiPolygon(e.coordinates)}var i=a.buffer(n,t,{units:r});return l.default.fromJSON({type:i.geometry.type,coordinates:i.geometry.coordinates})},b._multiPolygonBuffer=function(e,t,r){var n=a.multiPolygon(e.coordinates),i=a.buffer(n,t,{units:r});return"Polygon"===i.geometry.type?new c.default({coordinates:i.geometry.coordinates}):new f.default({coordinates:i.geometry.coordinates})},b._buffer=function(e,t,r){if(e.hasOwnProperty("coordinates")||s.Log.error("geometry缺少coordinates属性!"),e instanceof c.default){var n=a.polygon(e.coordinates);return a.buffer(n,t,{units:r})}},b.union=function(e){if((e=(0,s.defaultValue)(e,[]))instanceof Array||s.Log.error("geometries必须为数组类型!"),0===e.length)return[];var t=!0,r=!0,n=e[0].type;if(e.length>1){switch(e[0].type){case y.default.polygon:case y.default.multiPolygon:for(var i=1;i<e.length;i++)if(e[i].type!==y.default.polygon&&e[i].type!==y.default.multiPolygon){t=!1;break}break;case y.default.point:case y.default.multiPoint:for(var o=1;o<e.length;o++)if(e[o].type!==y.default.point&&e[o].type!==y.default.multiPoint){t=!1;break}break;case y.default.circle:for(var u=1;u<e.length;u++)if(e[u].type!==y.default.circle){t=!1;break}break;case y.default.extent:for(var l=1;l<e.length;l++)if(e[l].type!==y.default.extent){t=!1;break}break;case y.default.lineString:case y.default.multiLineString:for(var d=1;d<e.length;d++)if(e[d].type!==y.default.lineString&&e[d].type!==y.default.multiLineString){t=!1;break}break;default:s.Log.error("geometries的子元素中有求并方法不支持的数据类型!")}t||s.Log.error("几何数组的类型不同!");for(var v=e[0].spatialReference,_=1;_<e.length;_++)v.equals(e[_].spatialReference)||(r=!1);r||s.Log.error("几何数组的坐标系不同!");var x=void 0,w=[];switch(n){case y.default.point:case y.default.multiPoint:for(var k=[],M=0;M<e.length;M++)e[M]instanceof m.default?k.push(e[M].coordinates):e[M]instanceof g.default&&(k=k.concat(e[M].coordinates));if(1===k.length)x=new m.default({coordinates:k[0],spatialReference:p.default.fromJSON(e[0].spatialReference)});else{var E=a.multiPoint(k);E=a.cleanCoords(E),x=new g.default({coordinates:E.geometry.coordinates,spatialReference:p.default.fromJSON(e[0].spatialReference)})}break;case y.default.polygon:case y.default.multiPolygon:var I=void 0,T=e[0].type===y.default.polygon?a.polygon(e[0].coordinates):a.multiPolygon(e[0].coordinates),L=e[1].type===y.default.polygon?a.polygon(e[1].coordinates):a.multiPolygon(e[1].coordinates);I=a.union(T,L);for(var C=2;C<e.length;C++){var P=e[C].type===y.default.polygon?a.polygon(e[C].coordinates):a.multiPolygon(e[C].coordinates);I=a.union(I.geometry,P)}x=I.geometry.type===y.default.polygon?new c.default({coordinates:I.geometry.coordinates,spatialReference:p.default.fromJSON(e[0].spatialReference)}):new f.default({coordinates:I.geometry.coordinates,spatialReference:p.default.fromJSON(e[0].spatialReference)});break;case y.default.lineString:case y.default.multiLineString:for(var N=[],O=0;O<e.length;O++)e[O]instanceof h.default?N.push(e[O].coordinates):N=N.concat(e[O].coordinates);x=1===N.length?new h.default({coordinates:N[0],spatialReference:p.default.fromJSON(e[0].spatialReference)}):new S.default({coordinates:N,spatialReference:p.default.fromJSON(e[0].spatialReference)});break;case y.default.extent:w=[];for(var R=0;R<e.length;R++){var V=new c.default({coordinates:[[[e[R].xmin,e[R].ymin],[e[R].xmax,e[R].ymin],[e[R].xmax,e[R].ymax],[e[R].xmin,e[R].ymax],[e[R].xmin,e[R].ymin]]],spatialReference:p.default.fromJSON(e[0].spatialReference)});w.push(V)}x=b.union(w);break;case y.default.circle:w=[];for(var G=0;G<e.length;G++)w.push(e[G].toPolygon());x=b.union(w)}return x}return 1===e.length?e[0]:void 0},b.intersects=function(e,t){b._checkTwoGeometry(e,t);var r=b._geometryToTurf(e),n=b._geometryToTurf(t);return!a.booleanDisjoint(r,n)},b.geodesicLength=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry对象不能为空!"),e instanceof h.default||s.Log.error("geometry类型不正确!"),"string"!=typeof(t=(0,s.defaultValue)(t,u.LengthUnit.meter))&&s.Log.error("unit类型不正确!");var r=0;switch(e.type){case y.default.lineString:var n=a.lineString(e.coordinates);r=1e3*a.length(n,{units:"kilometers"})}if(!e.spatialReference.isGeographic)switch(t){case u.LengthUnit.kilometer:r/=1e3;break;case u.LengthUnit.mile:r*=.000621371192237}return r},b.geodesicArea=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry对象不能为空!"),e instanceof c.default||e instanceof f.default||e instanceof v.default||e instanceof _.default||s.Log.error("polygon对象不是Polyon或MultiPolygon或Circle或Extent类型!"),t=(0,s.defaultValue)(t,u.LinearUnits.meters);var r=0;switch(e instanceof c.default||e instanceof f.default?r=b._geodesicPolygonArea(e):(e instanceof v.default||e instanceof _.default)&&(r=b._geodesicPolygonArea(e.toPolygon())),t){case u.AreaUnits.squareKilometers:r*=1e-6;break;case u.AreaUnits.squareMiles:r*=6214e-7*6214e-7;break;case u.AreaUnits.squareYards:r*=1.1959900499368898;break;case u.AreaUnits.squareFeet:r*=10.763910416689228;break;case u.AreaUnits.acres:r*=2471e-7;break;case u.AreaUnits.ares:r*=.01;break;case u.AreaUnits.hectares:r*=1e-4;break;case u.AreaUnits.squareMeters:}return r},b._geodesicPolygonArea=function(e){return a.area(a.polygon(e.coordinates))},b._geometryToTurf=function(e){var t=void 0;switch(e.type!==y.default.extent&&e.type!==y.default.circle&&(t=JSON.parse((0,n.default)(e.coordinates))),e.type){case y.default.point:return a.point(t);case y.default.multiPoint:return a.multiPoint(t);case y.default.lineString:return a.lineString(t);case y.default.multiLineString:return a.multiLineString(t);case y.default.polygon:return a.polygon(t);case y.default.multiPolygon:return a.multiPolygon(t);case y.default.extent:return a.polygon([[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]);case y.default.circle:return a.polygon(e.toPolygon().coordinates);default:s.Log.error("geometry为不支持的几何类型!")}},b._lineContainPoint=function(e,t){var r=a.point(t.coordinates),n=a.lineString(e.coordinates),i=a.booleanContains(n,r);if(!i)for(var o=0;o<e.coordinates.length;o++){var s=new m.default({coordinates:e.coordinates[o],spatialReference:p.default.fromJSON(e.spatialReference)});if(b.equals(t,s)){i=!0;break}}return i},b._multiLineContainPoint=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new h.default({coordinates:e.coordinates[n],spatialReference:p.default.fromJSON(e.spatialReference)});if(b._lineContainPoint(i,t)){r=!0;break}}return r},b._polygonContainPoint=function(e,t){var r=a.point(t.coordinates),n=a.polygon(e.coordinates);return a.booleanContains(n,r)},b._polygonContainLine=function(e,t){var r=a.polygon(e.coordinates),n=a.lineString(t.coordinates);return a.booleanContains(r,n)},b._multiPointContainsPoint=function(e,t){var r=a.point(t.coordinates),n=a.multiPoint(e.coordinates);return a.booleanContains(n,r)},b._lineContainMultiPoint=function(e,t){for(var r=!0,n=0;n<t.coordinates.length;n++){var i=new m.default({coordinates:t.coordinates[n]});if(!(r=b._lineContainPoint(e,i)))break}return r},b._polygonContainMultiPoint=function(e,t){for(var r=!0,n=0;n<t.coordinates.length;n++){var i=new m.default({coordinates:t.coordinates[n]});if(!(r=b._polygonContainPoint(e,i)))break}return r},b._checkTwoGeometry=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry1对象为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2对象为空!"),e instanceof l.default||s.Log.error("geometry1对象未继承于Geometry对象!"),t instanceof l.default||s.Log.error("geometry2对象未继承于Geometry对象!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1和geometry2的坐标系不相同!")},b.intersect=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e instanceof l.default||e instanceof Array||s.Log.error("geometry1必须为几何对象或者数组对象!"),t instanceof l.default||s.Log.error("geometry2必须为几何对象或者数组对象!");var r=void 0;if(e instanceof Array){r=[];for(var n=0;n<e.length;n++)r.push(b.intersect(e[n],t));return r}switch(e.type){case y.default.point:r=b._pointIntersectGeometry(e,t);break;case y.default.multiPoint:r=b._multiPointIntersectGeometry(e,t);break;case y.default.lineString:switch(t.type){case y.default.point:b.contains(e,t)&&(r=new m.default({coordinates:t.coordinates}));break;case y.default.multiPoint:r=b._lineIntersectMultiPoint(e,t);break;case y.default.polygon:r=b._lineIntersectPolygon(e,t);break;case y.default.multiPolygon:r=b._lineIntersectMultiPolygon(e,t);break;case y.default.lineString:case y.default.multiLineString:r=b._lineIntersectLine(e,t);break;case y.default.extent:r=b._lineIntersectExtent(e,t);break;case y.default.circle:r=b._lineIntersectPolygon(e,t.toPolygon())}break;case y.default.polygon:switch(t.type){case y.default.point:r=b._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=b._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=b._lineIntersectPolygon(t,e);break;case y.default.multiLineString:r=b._multiLineIntersectPolygon(t,e);break;case y.default.polygon:r=b._polygonIntersectPolygon(e,t);break;case y.default.multiPolygon:r=b._polygonIntersectMultiPolygon(e,t);break;case y.default.circle:r=b._polygonIntersectPolygon(e,t.toPolygon());break;case y.default.extent:r=b._polygonIntersectExtent(e,t)}break;case y.default.multiPolygon:switch(t.type){case y.default.point:r=b._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=b._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=b._lineIntersectMultiPolygon(t,e);break;case y.default.multiLineString:r=b._multiLineIntersectMultiPolygon(t,e);break;case y.default.polygon:r=b._polygonIntersectMultiPolygon(t,e);break;case y.default.multiPolygon:r=b._multiPolygonIntersectMultiPolygon(e,t);break;case y.default.extent:r=b._multiPolygonIntersectExtent(e,t);break;case y.default.circle:r=b._polygonIntersectMultiPolygon(t.toPolygon(),e)}break;case y.default.extent:switch(t.type){case y.default.point:r=b._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=b._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=b._lineIntersectExtent(t,e);break;case y.default.multiLineString:r=b._multiLineIntersectExtent(t,e);break;case y.default.polygon:r=b._polygonIntersectExtent(t,e);break;case y.default.multiPolygon:r=b._multiPolygonIntersectExtent(t,e);break;case y.default.extent:var i=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=b._polygonIntersectExtent(i,e);break;case y.default.circle:var o=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});r=b._polygonIntersectPolygon(o,t.toPolygon())}break;case y.default.circle:var a=e.toPolygon();switch(t.type){case y.default.point:r=b._pointIntersectGeometry(t,a);break;case y.default.multiPoint:r=b._multiPointIntersectGeometry(t,a);break;case y.default.lineString:r=b._lineIntersectPolygon(t,a);break;case y.default.multiLineString:r=b._multiLineIntersectPolygon(t,a);break;case y.default.polygon:r=b._polygonIntersectPolygon(t,a);break;case y.default.multiPolygon:r=b._polygonIntersectMultiPolygon(a,t);break;case y.default.circle:r=b._polygonIntersectPolygon(t.toPolygon(),a);break;case y.default.extent:r=b._polygonIntersectExtent(a,t)}break;case y.default.multiLineString:switch(t.type){case y.default.point:r=b._pointIntersectGeometry(t,e);break;case y.default.multiPoint:r=b._multiPointIntersectGeometry(t,e);break;case y.default.lineString:r=b._lineIntersectLine(t,e);break;case y.default.multiLineString:for(var u=[],f=[],d=0;d<e.coordinates.length;d++){var p=new h.default({coordinates:e.coordinates[d]}),g=b._lineIntersectLine(p,t);g&&g.point&&u.push(g.point),g&&g.lineString&&f.push(g.lineString)}(r={point:void 0,lineString:void 0}).point=b.union(u),r.lineString=b.union(f);break;case y.default.polygon:r=b._multiLineIntersectPolygon(e,t);break;case y.default.multiPolygon:r=b._multiLineIntersectMultiPolygon(e,t)}}return r},b._lineIntersectLine=function(e,t){var r,n;r=e.type===y.default.lineString?a.lineString(e.coordinates):a.multiLineString(e.coordinates),n=t.type===y.default.lineString?a.lineString(t.coordinates):a.multiLineString(t.coordinates);var i=void 0,o=void 0;if(e.type===y.default.lineString)i=[e];else{i=[];for(var s=0;s<e.coordinates.length;s++)i.push(new h.default({coordinates:e.coordinates[s]}))}if(t.type===y.default.lineString)o=[t];else{o=[];for(var u=0;u<t.coordinates.length;u++)o.push(new h.default({coordinates:t.coordinates[u]}))}for(var l=[],c=0;c<i.length;c++)for(var f=0;f<o.length;f++){var d=a.lineString(i[c].coordinates),p=a.lineString(o[f].coordinates),v=a.lineOverlap(d,p);if(v.features.length>0)for(var _=0;_<v.features.length;_++)l.push(new h.default({coordinates:v.features[_].geometry.coordinates}))}var S=a.lineIntersect(r,n),x={point:void 0,lineString:void 0};1===l.length?x.lineString=new h.default({coordinates:l[0].coordinates}):l.length>1&&(x.lineString=b.union(l));for(var w=0;w<S.features.length;w++){var k=new m.default({coordinates:S.features[w].geometry.coordinates});x.lineString&&b.contains(x.lineString,k)&&S.features.splice(w,1)}if(1===S.features.length)x.point=new m.default({coordinates:S.features[0].geometry.coordinates});else if(S.features.length>1){for(var M=[],E=0;E<S.features.length;E++)M.push(S.features[E].geometry.coordinates);x.point=new g.default({coordinates:M})}return x},b._lineIntersectMultiPoint=function(e,t){for(var r=[],n=void 0,i=0;i<t.coordinates.length;i++){var o=new m.default({coordinates:t.coordinates[i]});b.contains(e,o)&&r.push(o.coordinates)}return 1===r.length?n=new m.default({coordinates:r[0]}):r.length>1&&(n=new g.default({coordinates:r})),n},b._lineIntersectPolygon=function(e,t){var r=a.lineString(e.coordinates),n=a.polygon(t.coordinates),i=a.lineIntersect(r,n);i.features=i.features.sort(function(e,t){return e.geometry.coordinates[0]-t.geometry.coordinates[0]});for(var o=[],s=0;s<e.coordinates.length-1;s++){var u=new h.default({coordinates:[e.coordinates[s],e.coordinates[s+1]]});u.coordinates=u.coordinates.sort(function(e,t){return e-t});for(var l=[],c=0;c<i.features.length;c++){var f=new m.default({coordinates:i.features[c].geometry.coordinates});b.contains(u,f)&&l.push(f)}var d=new m.default({coordinates:e.coordinates[s]});l[0]&&b.equals(d,l[0])||(l=[d].concat(l));var p=new m.default({coordinates:e.coordinates[s+1]});0!==l.length&&b.equals(p,l[l.length-1])||l.push(p);for(var v=0;v<l.length-1;v++){var _=new h.default({coordinates:[l[v].coordinates,l[v+1].coordinates]});b.contains(t,_)&&o.push(_)}}if(1===o.length)return o[0];if(o.length>1){for(var x=[],w=0;w<o.length;w++)x.push(o[w].coordinates);return new S.default({coordinates:x})}for(var k=[],M=0;M<i.features.length;M++)i.features[M].geometry.type===y.default.point&&k.push(i.features[M].geometry.coordinates);return 1===k.length?new m.default({coordinates:k[0]}):k.length>1?new g.default({coordinates:k}):void 0},b._multiLineIntersectPolygon=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new h.default({coordinates:e.coordinates[n]}),o=b._lineIntersectPolygon(i,t);o&&r.push(o)}if(1===r.length)return new h.default({coordinates:r[0].coordinates});if(r.length>1){for(var a=[],s=0;s<r.length;s++)r[s].type===y.default.lineString?a.push(r[s].coordinates):a=a.concat(r[s].coordinates);return new S.default({coordinates:a})}},b._multiLineIntersectMultiPolygon=function(e,t){for(var r=[],n=0;n<t.coordinates.length;n++){var i=new c.default({coordinates:t.coordinates[n]}),o=b._multiLineIntersectPolygon(e,i);o&&r.push(o)}return b.union(r)},b._lineIntersectExtent=function(e,t){var r=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return b._lineIntersectPolygon(e,r)},b._multiLineIntersectExtent=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new h.default({coordinates:e.coordinates[n]}),o=b._lineIntersectExtent(i,t);o&&r.push(o)}if(1===r.length)return r[0];if(r.length>1){for(var a=[],s=0;s<r.length;s++)a.push(r[s].coordinates);return new S.default({coordinates:a})}},b._lineIntersectMultiPolygon=function(e,t){for(var r=void 0,n=[],i=0;i<t.coordinates.length;i++){var o=new c.default({coordinates:t.coordinates[i]});n.push(b._lineIntersectPolygon(e,o))}for(var a=[],s=0;s<n.length;s++)n[s].type===y.default.lineString?a.push(n[s].coordinates):a=a.concat(n[s].coordinates);return 1===a.length?r=new h.default({coordinates:a}):a.length>1&&(r=new S.default({coordinates:a})),r},b._pointIntersectGeometry=function(e,t){if(b.contains(t,e))return new m.default({coordinates:e.coordinates})},b._multiPointIntersectGeometry=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new m.default({coordinates:e.coordinates[n]});b.contains(t,i)&&r.push(i.coordinates)}var o=void 0;return 1===r.length?o=new m.default({coordinates:r[0]}):r.length>1&&(o=new g.default({coordinates:r})),o},b._polygonIntersectPolygon=function(e,t){var r=a.polygon(e.coordinates),n=a.polygon(t.coordinates),i=a.intersect(r,n);if(i)return i.geometry.type===y.default.polygon?new c.default({coordinates:i.geometry.coordinates}):new f.default({coordinates:i.geometry.coordinates})},b._polygonIntersectMultiPolygon=function(e,t){for(var r=[],n=0;n<t.coordinates.length;n++){var i=new c.default({coordinates:t.coordinates[n]}),o=b._polygonIntersectPolygon(e,i);o&&r.push(o)}return b.union(r)},b._multiPolygonIntersectMultiPolygon=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]}),o=b._polygonIntersectMultiPolygon(i,t);o&&r.push(o)}return b.union(r)},b._polygonIntersectExtent=function(e,t){var r=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return b._polygonIntersectPolygon(e,r)},b._multiPolygonIntersectExtent=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]}),o=b._polygonIntersectExtent(i,t);o&&r.push(o)}return b.union(r)},b.overlaps=function(e,t){return!!b.intersects(e,t)&&!b.contains(e,t)&&!b.contains(t,e)},b.rotate=function(e,t,r){t=(0,s.defaultValue)(t,0),(0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("angle不能为空!"),e instanceof l.default||s.Log.error("geometry不是基础几何对象!"),"number"!=typeof t&&s.Log.error("angle不是数字!"),!r||r instanceof m.default||s.Log.error("rotationOrigin不是Point对象!"),r&&!e.spatialReference.equals(r.spatialReference)&&s.Log.error("rotationOrigin和geometry不是同一个坐标系!");var n=void 0,i=void 0;e.spatialReference.isGeographic?(n=e,i=r):(n=d.default.projectGeometry(e,new p.default({wkid:4326})),i=d.default.projectGeometry(r,new p.default({wkid:4326})));var o=b._geometryToTurf(n),u=void 0;i&&(u=[i.coordinates[0],i.coordinates[1]]);var c={pivot:u,mutate:!0},h=a.transformRotate(o,t,c);return h=b._turfFeatureToGeometry(h),e.spatialReference.isGeographic||(h=d.default.projectGeometry(h,p.default.fromJSON(e.spatialReference))),h},b._turfFeatureToGeometry=function(e){switch(e.geometry.type){case y.default.point:return new m.default({coordinates:e.geometry.coordinates});case y.default.multiPoint:return new g.default({coordinates:e.geometry.coordinates});case y.default.lineString:return new h.default({coordinates:e.geometry.coordinates});case y.default.multiLineString:return new S.default({coordinates:e.geometry.coordinates});case y.default.polygon:return new c.default({coordinates:e.geometry.coordinates});case y.default.multiPolygon:return new f.default({coordinates:e.geometry.coordinates})}},b.nearestCoordinate=function(e,t){(0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("inputPoint不能为空!");var r=e,n=t;if(n instanceof m.default||s.Log.error("inputPoint类型错误,需要输入Point!"),r instanceof m.default||r instanceof h.default||r instanceof c.default||r instanceof g.default||r instanceof S.default||r instanceof f.default||r instanceof _.default||r instanceof v.default||s.Log.error("geometry类型错误!"),r.spatialReference.equals(n.spatialReference)||s.Log.error("_geometryPro1、inputPoint坐标系不同!"),r=(0,s.defaultValue)(r,void 0),n=(0,s.defaultValue)(n,void 0),r.spatialReference.isGeographic||(r=d.default.projectGeometry(r,new p.default({wkid:4326})),n=d.default.projectGeometry(n,new p.default({wkid:4326}))),!(0,s.isNull)(r)&&!(0,s.isNull)(n)){var i=void 0,o=void 0,u=void 0,x=[],b=a.point(n.coordinates);switch(r.type){case y.default.multiPoint:for(var w=0;w<r.coordinates.length;w++)x.push(a.point(r.coordinates[w]));var k=a.featureCollection(x);i=a.nearestPoint(b,k);break;case y.default.lineString:o=a.lineString(r.coordinates),i=a.nearestPointOnLine(o,b,{units:"kilometers"});break;case y.default.multiLineString:o=a.multiLineString(r.coordinates),i=a.nearestPointOnLine(o,b,{units:"kilometers"});break;case y.default.polygon:for(var M=0;M<r.coordinates[0].length;M++)x.push(r.coordinates[0][M]);o=a.lineString(x),i=a.nearestPointOnLine(o,b,{units:"kilometers"});break;case y.default.multiPolygon:for(var E=[],I=0;I<r.coordinates.length;I++){x=[];for(var T=0;T<r.coordinates[I][0].length;T++)x.push(r.coordinates[I][0][T]);E.push(x),o=a.multiLineString(E)}i=a.nearestPointOnLine(o,b,{units:"kilometers"});break;case y.default.circle:u=a.polygon(r.toPolygon().coordinates);for(var L=0;L<u.geometry.coordinates[0].length;L++)x.push(u.geometry.coordinates[0][L]);o=a.lineString(x),i=a.nearestPointOnLine(o,b,{units:"kilometers"});break;case y.default.extent:u=new c.default({coordinates:[[[r.xmin,r.ymin],[r.xmax,r.ymin],[r.xmax,r.ymax],[r.xmin,r.ymax],[r.xmin,r.ymin]]]});for(var C=0;C<u.coordinates[0].length;C++)x.push(u.coordinates[0][C]);o=a.lineString(x),i=a.nearestPointOnLine(o,b,{units:"kilometers"})}return i=l.default.fromJSON(i.geometry),t.spatialReference.isGeographic||(i=d.default.projectGeometry(i,t.spatialReference)),i}},b.planarArea=function(e,t){t=(0,s.defaultValue)(t,u.LinearUnits.meters),e instanceof c.default||e instanceof f.default||e instanceof v.default||e instanceof _.default||s.Log.error("polygon对象不是Polyon或MultiPolygon或Circle或Extent类型!");var r=0;if(e instanceof c.default)r=b._polygonArea(e);else if(e instanceof f.default)for(var n=e.toPolygonArray(),i=0;i<n.length;i++)r+=b._polygonArea(n[i]);else e instanceof v.default?r=Math.abs(Math.PI*e.radius*e.radius):e instanceof _.default&&(r=Math.abs((e.xmax-e.xmin)*(e.ymax-e.ymin)));switch(t){case u.AreaUnits.squareKilometers:r*=1e-6;break;case u.AreaUnits.squareMiles:r*=6214e-7*6214e-7;break;case u.AreaUnits.squareYards:r*=1.1959900499368898;break;case u.AreaUnits.squareFeet:r*=10.763910416689228;break;case u.AreaUnits.acres:r*=2471e-7;break;case u.AreaUnits.ares:r*=.01;break;case u.AreaUnits.hectares:r*=1e-4;break;case u.AreaUnits.squareMeters:}return r},b._ringArea=function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r][0]*e[r===e.length-1?0:r+1][1]*.5,t-=e[r===e.length-1?0:r+1][0]*e[r][1]*.5;return Math.abs(t)},b._polygonArea=function(e){for(var t=b._ringArea(e.coordinates[0]),r=0,n=1;n<e.coordinates.length;n++)r+=b._ringArea(e.coordinates[n]);return t-r},b.planarLength=function(e,t){t=(0,s.defaultValue)(t,u.LinearUnits.meters),(0,s.isNull)(e)&&s.Log.error("geometry对象不能为空!"),e instanceof h.default||e instanceof S.default||e instanceof c.default||e instanceof f.default||e instanceof v.default||e instanceof _.default||s.Log.error("geometry类型不正确!");var r=0,n=void 0;switch(e.type){case y.default.lineString:r=b._planarLineStringLength(e);break;case y.default.multiLineString:r=b._planarMultiLineStringLength(e);break;case y.default.polygon:n=new c.default({coordinates:[e.coordinates[0]]}),r=b._planarMultiLineStringLength(n);break;case y.default.multiPolygon:for(var i=0;i<e.coordinates.length;i++){var o=new c.default({coordinates:[e.coordinates[i][0]]});r+=b._planarMultiLineStringLength(o)}break;case y.default.circle:r=2*Math.PI*e.radius;break;case y.default.extent:n=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]}),r+=b._planarMultiLineStringLength(n)}switch(t){case u.LinearUnits.kilometers:r*=.001;break;case u.LinearUnits.feet:r*=3.28083989501;break;case u.LinearUnits.miles:r*=6214e-7;break;case u.LinearUnits.nauticalMiles:r*=54e-5;break;case u.LinearUnits.yards:r*=1.0936133;break;case u.LinearUnits.meters:}return r},b._planarLineStringLength=function(e){for(var t=0,r=0;r<e.coordinates.length-1;r++){var n=Math.abs(e.coordinates[r+1][0]-e.coordinates[r][0]),i=Math.abs(e.coordinates[r+1][1]-e.coordinates[r][1]);t+=Math.sqrt(Math.pow(n,2)+Math.pow(i,2))}return t},b._planarMultiLineStringLength=function(e){for(var t=0,r=0;r<e.coordinates.length;r++){var n=new h.default({coordinates:e.coordinates[r]});t+=b._planarLineStringLength(n)}return t},b.contains=function(e,t){b._checkTwoGeometry(e,t);var r=!1,n=void 0;switch(e.type){case y.default.point:switch(t.type){case y.default.point:return b.equals(e,t)}break;case y.default.multiPoint:switch(t.type){case y.default.point:return b._multiPointContainsPoint(e,t);case y.default.multiPoint:r=!0;for(var i=0;i<t.coordinates.length&&(n=new m.default({coordinates:t.coordinates[i]}),r=b._lineContainPoint(e,n));i++);return r}break;case y.default.lineString:switch(t.type){case y.default.point:return b._lineContainPoint(e,t);case y.default.multiPoint:r=!0;for(var o=0;o<t.coordinates.length;o++)if(n=new m.default({coordinates:t.coordinates[o],spatialReference:p.default.fromJSON(t.spatialReference)}),!b._lineContainPoint(e,n)){r=!1;break}return r;case y.default.lineString:return b._lineContainLine(e,t);case y.default.multiLineString:r=!0;for(var a=0;a<t.coordinates.length;a++){var s=new h.default({coordinates:t.coordinates[a],spatialReference:p.default.fromJSON(t.spatialReference)});if(!b._lineContainLine(e,s)){r=!1;break}}return r}break;case y.default.multiLineString:switch(t.type){case y.default.point:return b._multiLineContainPoint(e,t);case y.default.multiPoint:r=!0;for(var u=0;u<t.coordinates.length;u++){var l=new m.default({coordinates:t.coordinates[u],spatialReference:p.default.fromJSON(t.spatialReference)});if(!b._multiLineContainPoint(e,l)){r=!1;break}}return r;case y.default.lineString:return b._multiLineContainLine(e,t);case y.default.multiLineString:r=!0;for(var f=0;f<t.coordinates.length;f++){var d=new h.default({coordinates:t.coordinates[f],spatialReference:p.default.fromJSON(t.spatialReference)});if(!b._multiLineContainLine(e,d)){r=!1;break}}return r}break;case y.default.polygon:switch(t.type){case y.default.point:return b._polygonContainPoint(e,t);case y.default.multiPoint:r=!0;for(var g=0;g<t.coordinates.length;g++){var v=new m.default({coordinates:t.coordinates[g]});if(!b._polygonContainPoint(e,v)){r=!1;break}}return r;case y.default.lineString:return b._polygonContainLine(e,t);case y.default.multiLineString:r=!0;for(var _=0;_<t.coordinates.length;_++){var S=new h.default({coordinates:t.coordinates[_]});if(!b._polygonContainLine(e,S)){r=!1;break}}return r;case y.default.polygon:return b._polygonContainPolygon(e,t);case y.default.multiPolygon:r=!0;for(var x=0;x<t.coordinates.length;x++){var w=new c.default({coordinates:t.coordinates[x]});if(!b._polygonContainPolygon(e,w)){r=!1;break}}return r;case y.default.circle:return b._polygonContainPolygon(e,t.toPolygon());case y.default.extent:var k=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return b._polygonContainPolygon(e,k)}break;case y.default.multiPolygon:switch(t.type){case y.default.point:return b._multiPolygonContainsPoint(e,t);case y.default.multiPoint:return b._multiContainsMulti(e,t,m.default,b._multiPolygonContainsPoint);case y.default.lineString:return b._multiPolygonContainsLine(e,t);case y.default.multiLineString:return b._multiContainsMulti(e,t,h.default,b._multiPolygonContainsLine);case y.default.polygon:return b._multiPolygonContainsPolygon(e,t);case y.default.multiPolygon:return b._multiContainsMulti(e,t,c.default,b._multiPolygonContainsPolygon);case y.default.circle:r=!1;for(var M=0;M<e.coordinates.length;M++){var E=new c.default({coordinates:e.coordinates[M]});if(b._polygonContainPolygon(E,t.toPolygon())){r=!0;break}}return r;case y.default.extent:r=!1;for(var I=0;I<e.coordinates.length;I++){var T=new c.default({coordinates:e.coordinates[I]}),L=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});if(b._polygonContainPolygon(T,L)){r=!0;break}}return r}break;case y.default.circle:switch(t.type){case y.default.point:return b._polygonContainPoint(e.toPolygon(),t);case y.default.multiPoint:return b._singleContainsMulti(e.toPolygon(),t,m.default,b._polygonContainPoint);case y.default.lineString:return b._polygonContainMultiPoint(e.toPolygon(),t);case y.default.multiLineString:return b._singleContainsMulti(e.toPolygon(),t,h.default,b._polygonContainMultiPoint);case y.default.polygon:return b._polygonContainPolygon(e.toPolygon(),t);case y.default.multiPolygon:return b._singleContainsMulti(e.toPolygon(),t,c.default,b._polygonContainPolygon);case y.default.circle:return b._polygonContainPolygon(e.toPolygon(),t.toPolygon());case y.default.extent:var C=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return b._polygonContainPolygon(e.toPolygon(),C)}break;case y.default.extent:var P=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});switch(t.type){case y.default.point:return b._polygonContainPoint(P,t);case y.default.multiPoint:return b._singleContainsMulti(P,t,m.default,b._polygonContainPoint);case y.default.lineString:return b._polygonContainMultiPoint(P,t);case y.default.multiLineString:return b._singleContainsMulti(P,t,h.default,b._polygonContainMultiPoint);case y.default.polygon:return b._polygonContainPolygon(P,t);case y.default.multiPolygon:return b._singleContainsMulti(P,t,c.default,b._polygonContainPolygon);case y.default.circle:return b._polygonContainPolygon(P,t.toPolygon());case y.default.extent:var N=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return b._polygonContainPolygon(P,N)}break;default:return!1}},b._singleContainsMulti=function(e,t,r,n){for(var i=!0,o=0;o<t.coordinates.length;o++)if(!n(e,new r({coordinates:t.coordinates[o]}))){i=!1;break}return i},b._multiContainsMulti=function(e,t,r,n){for(var i=!0,o=0;o<t.coordinates.length;o++)if(!n(e,new r({coordinates:t.coordinates[o]}))){i=!1;break}return i},b._multiPolygonContainsPoint=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]});if(b._polygonContainPoint(i,t)){r=!0;break}}return r},b._multiPolygonContainsLine=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]});if(b._polygonContainMultiPoint(i,t)){r=!0;break}}return r},b._multiPolygonContainsPolygon=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new c.default({coordinates:e.coordinates[n]});if(b._polygonContainPolygon(i,t)){r=!0;break}}return r},b._lineContainLine=function(e,t){var r=a.lineString(e.coordinates),n=a.lineString(t.coordinates),i=a.booleanContains(r,n);if(i||(i=b.equals(e,t)),!i){var o=new h.default({coordinates:[t.coordinates[1],t.coordinates[0]]});i=b.equals(e,o)}return i},b._multiLineContainLine=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new h.default({coordinates:e.coordinates[n],spatialReference:p.default.fromJSON(e.spatialReference)});if(b._lineContainLine(i,t)){r=!0;break}}return r},b._polygonContainPolygon=function(e,t){var r=a.polygon(e.coordinates),n=a.polygon(t.coordinates);return a.booleanContains(r,n)},b.distance=function(e,t,r){if((0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e instanceof m.default||s.Log.error("geometry1类型错误,需要输入Point!"),t instanceof m.default||t instanceof h.default||t instanceof c.default||t instanceof g.default||t instanceof S.default||t instanceof f.default||t instanceof _.default||t instanceof v.default||s.Log.error("geometry2类型错误!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1、geometry2坐标系不同!"),r=(0,s.defaultValue)(r,u.LengthUnit.kilometer),e=(0,s.defaultValue)(e,void 0),t=(0,s.defaultValue)(t,void 0),e.spatialReference.isGeographic||(e=d.default.projectGeometry(e,new p.default({wkid:4326})),t=d.default.projectGeometry(t,new p.default({wkid:4326}))),!(0,s.isNull)(e)&&!(0,s.isNull)(t)){var n=void 0,i=void 0,o=void 0,l=[],x=[],b=a.point(e.coordinates);switch(t.type){case y.default.point:i=a.point(t.coordinates),n=a.distance(b,i,{units:r});break;case y.default.multiPoint:for(var w=0;w<t.coordinates.length;w++)l.push(a.point(t.coordinates[w]));var k=a.featureCollection(l),M=a.nearestPoint(b,k);n=a.distance(b,M,{units:r});break;case y.default.lineString:i=a.lineString(t.coordinates),n=a.pointToLineDistance(b,i,{units:r});break;case y.default.multiLineString:for(var E=0;E<t.coordinates.length;E++)i=a.lineString(t.coordinates[E]),x.push(a.pointToLineDistance(b,i,{units:r}));x.sort(function(e,t){return e-t}),n=x[0];break;case y.default.polygon:for(var I=0;I<t.coordinates[0].length;I++)l.push(t.coordinates[0][I]);i=a.lineString(l),n=a.pointToLineDistance(b,i,{units:r});break;case y.default.multiPolygon:for(var T=0;T<t.coordinates.length;T++){l=[];for(var L=0;L<t.coordinates[T][0].length;L++)l.push(t.coordinates[T][0][L]);i=a.lineString(l),x.push(a.pointToLineDistance(b,i,{units:r}))}x.sort(function(e,t){return e-t}),n=x[0];break;case y.default.circle:o=a.polygon(t.toPolygon().coordinates);for(var C=0;C<o.geometry.coordinates[0].length;C++)l.push(o.geometry.coordinates[0][C]);i=a.lineString(l),n=a.pointToLineDistance(b,i,{units:r});break;case y.default.extent:for(var P=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]}),N=0;N<P.coordinates[0].length;N++)l.push(P.coordinates[0][N]);i=a.lineString(l),n=a.pointToLineDistance(b,i,{units:r})}return n}},b.equals=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry1对象为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2对象为空!"),e instanceof l.default||s.Log.error("geometry1对象未继承于Geometry对象!"),t instanceof l.default||s.Log.error("geometry2对象未继承于Geometry对象!"),e.type!==t.type)return!1;if(!e.spatialReference.equals(t.spatialReference))return!1;switch(e.type){case y.default.point:if(!e.equals(t))return!1;break;case y.default.polygon:return b._equalPolygon(e,t);case y.default.lineString:return b._equalLinePoint(e,t);case y.default.extent:if(e.xmin!==t.xmin||e.ymin!==t.ymin||e.xmax!==t.xmax||e.ymax!==t.ymax)return!1;break;case y.default.circle:if(e.radius!==t.radius||e.radiusUnit!==t.radiusUnit)return!1;if(e.center.length!==t.center.length)return!1;for(var r=0;r<e.center.length;r++)if(e.center[r]!==t.center[r])return!1;break;case y.default.multiPoint:return b._equalLinePoint(e,t);case y.default.multiLineString:if(e.coordinates.length!==t.coordinates.length)return!1;for(var n=0;n<e.coordinates.length;n++){var i=new h.default({coordinates:e.coordinates[n],spatialReference:e.spatialReference}),o=new h.default({coordinates:t.coordinates[n],spatialReference:t.spatialReference});if(!b.equals(i,o))return!1}break;case y.default.multiPolygon:if(e.coordinates.length!==t.coordinates.length)return!1;for(var a=0;a<e.coordinates.length;a++){var u=new c.default({coordinates:e.coordinates[a],spatialReference:e.spatialReference}),f=new c.default({coordinates:t.coordinates[a],spatialReference:t.spatialReference});if(!b.equals(u,f))return!1}}return!0},b._equalLinePoint=function(e,t){if(e.coordinates.length!==t.coordinates.length)return!1;for(var r=0;r<e.coordinates.length;r++){var n=new m.default({coordinates:e.coordinates[r]}),i=new m.default({coordinates:t.coordinates[r]});if(!n.equals(i))return!1}return!0},b._equalPolygon=function(e,t){if(e.coordinates.length!==t.coordinates.length)return!1;for(var r=0;r<e.coordinates.length;r++)if(e.coordinates[r].length!==t.coordinates[r].length)return!1;for(var n=0;n<e.coordinates.length;n++){var i=new h.default({coordinates:e.coordinates[n],spatialReference:e.spatialReference}),o=new h.default({coordinates:t.coordinates[n],spatialReference:t.spatialReference});if(!b.equals(i,o))return!1}return!0},b.disjoint=function(e,t){return!b.intersects(e,t)},b.within=function(e,t){return b.contains(t,e)},b.crosses=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1、geometry2坐标系不同!"),e instanceof h.default||e instanceof S.default)return b._crosses(e,t);if(t instanceof h.default||t instanceof S.default){var r=e;return b._crosses(e=t,t=r)}s.Log.error("geometry1和geometry2中至少有一个参数类型必须为lineString和multiLineString中的一个!")},b._crosses=function(e,t){if(t instanceof h.default||t instanceof c.default||t instanceof S.default||t instanceof f.default||t instanceof _.default||t instanceof v.default||s.Log.error("geometry2类型错误!"),e=(0,s.defaultValue)(e,void 0),t=(0,s.defaultValue)(t,void 0),e.spatialReference.isGeographic||(e=d.default.projectGeometry(e,new p.default({wkid:4326})),t=d.default.projectGeometry(t,new p.default({wkid:4326}))),!(0,s.isNull)(e)&&!(0,s.isNull)(t)){var r=void 0,n=void 0,i=void 0;switch(e.type){case y.default.lineString:switch(t.type){case y.default.lineString:if(n=b._geometryToTurf(e),i=b._geometryToTurf(t),!(r=a.booleanCrosses(n,i))&&b.intersects(e,t)){var o=[],u=new g.default({coordinates:[t.coordinates[0],t.coordinates[t.coordinates.length-1]]});if(u.coordinates[0].toString()===u.coordinates[1].toString()){var l=b.intersect(e,t);if("MultiPoint"===l.point.type)r=!0;else if("Point"===l.point.type){var x=new m.default({coordinates:e.coordinates[0]}),w=new m.default({coordinates:e.coordinates[e.coordinates.length-1]});r=!b.contains(t,x)&&!b.contains(t,w)}}else{for(var k=0;k<e.coordinates.length;k++)o.push(e.coordinates[k]);for(var M=0;M<t.coordinates.length;M++)o.push(t.coordinates[M]);var E=a.multiPoint(o);if(!(a.cleanCoords(E).geometry.coordinates.length<E.geometry.coordinates.length)){for(var I=void 0,T=0;T<e.coordinates.length;T++){if(I){r=!I;break}var L=new m.default({coordinates:e.coordinates[T]});I=b.contains(t,L)}for(var C=0;C<t.coordinates.length;C++){if(I){r=!I;break}var P=new m.default({coordinates:t.coordinates[C]});I=b.contains(e,P)}I||(r=!0);break}r=!1}}break;case y.default.multiLineString:for(var N=0;N<t.coordinates.length&&!r;N++)i=new h.default({coordinates:t.coordinates[N]}),r=b._crosses(e,i);break;case y.default.polygon:case y.default.extent:case y.default.circle:n=b._geometryToTurf(e),i=b._geometryToTurf(t),(r=a.booleanCrosses(n,i))&&"Point"===b.intersect(e,t).type&&(r=!1);break;case y.default.multiPolygon:for(var O=0;O<t.coordinates.length&&!r;O++)i=new c.default({coordinates:t.coordinates[O]}),r=b._crosses(e,i)}break;case y.default.multiLineString:for(var R=0;R<e.coordinates.length&&!r;R++)n=new h.default({coordinates:e.coordinates[R]}),r=b._crosses(n,t)}return r}},b.touches=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry1不能为空!"),(0,s.isNull)(t)&&s.Log.error("geometry2不能为空!"),e instanceof h.default||e instanceof c.default||e instanceof S.default||e instanceof f.default||e instanceof _.default||e instanceof v.default||s.Log.error("geometry1类型错误,需要输入LineString、Polygon、MultiLineString、MultiPolygon、Circle、Extent!"),t instanceof m.default||t instanceof h.default||t instanceof c.default||t instanceof g.default||t instanceof S.default||t instanceof f.default||t instanceof _.default||t instanceof v.default||s.Log.error("geometry2类型错误!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry1、geometry2坐标系不同!"),e=(0,s.defaultValue)(e,void 0),t=(0,s.defaultValue)(t,void 0),e.spatialReference.isGeographic||(e=d.default.projectGeometry(e,new p.default({wkid:4326})),t=d.default.projectGeometry(t,new p.default({wkid:4326}))),!(0,s.isNull)(e)&&!(0,s.isNull)(t)){var r=!1,n=void 0,i=void 0,o=[];switch(e.type){case y.default.lineString:switch(t.type){case y.default.point:var a=new g.default({coordinates:[e.coordinates[0],e.coordinates[e.coordinates.length-1]]});b.contains(a,t)&&a.coordinates[0].toString()!==a.coordinates[1].toString()&&(r=!0);break;case y.default.multiPoint:for(var u=0;u<t.coordinates.length;u++){var l=new m.default({coordinates:t.coordinates[u]}),x=b.touches(e,l);if(x)r=x;else if(b.intersects(e,l)){r=!1;break}}break;case y.default.lineString:if(b.intersect(e,t).point){var w=new m.default({coordinates:e.coordinates[0]}),k=new m.default({coordinates:e.coordinates[e.coordinates.length-1]});if(b.contains(t,w)||b.contains(t,k))r=!b.crosses(e,t);else{var M=new m.default({coordinates:t.coordinates[0]}),E=new m.default({coordinates:t.coordinates[t.coordinates.length-1]});r=!(!b.contains(e,M)&&!b.contains(e,E)||b.crosses(e,t))}}else r=!1;break;case y.default.multiLineString:for(var I=0;I<t.coordinates.length;I++){i=new h.default({coordinates:t.coordinates[I]});var T=b.touches(e,i);if(T)r=T;else if(b.intersects(e,i)){r=!1;break}}break;case y.default.polygon:for(var L=0;L<t.coordinates[0].length;L++)o.push(t.coordinates[0][L]);i=new h.default({coordinates:o}),b.intersects(e,i)&&(b.crosses(e,i)||(r=!0));break;case y.default.multiPolygon:for(var C=0;C<t.coordinates.length;C++){i=new c.default({coordinates:t.coordinates[C]});var P=b.touches(e,i);if(P)r=P;else if(b.intersects(e,i)){r=!1;break}}break;case y.default.circle:var N=new m.default({coordinates:t.center}),O=b.nearestCoordinate(e,N),R=new h.default({coordinates:[t.center,O.geometry.coordinates]}),V=b.planarLength(R);Math.round(V)===t.radius&&(r=!0);break;case y.default.extent:var G=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=b.touches(e,G)}break;case y.default.multiLineString:for(var A=0;A<e.coordinates.length;A++){n=new h.default({coordinates:e.coordinates[A]});var D=b.touches(n,t);if(D)r=D;else if(b.intersects(n,t)){r=!1;break}}break;case y.default.polygon:switch(t.type){case y.default.point:if(!b.contains(e,t)){for(var F=0;F<e.coordinates.length;F++)o.push(e.coordinates[F]);n=new S.default({coordinates:o}),b.contains(n,t)&&(r=!0)}break;case y.default.multiPoint:for(var j=0;j<t.coordinates.length;j++){var B=new m.default({coordinates:t.coordinates[j]}),q=b.touches(e,B);if(q)r=q;else if(b.contains(e,B)){r=!1;break}}break;case y.default.lineString:case y.default.multiLineString:r=b.touches(t,e);break;case y.default.polygon:b.intersects(e,t)&&(b.intersect(e,t)||(r=!0));break;case y.default.multiPolygon:for(var U=0;U<t.coordinates.length;U++){i=new c.default({coordinates:t.coordinates[U]});var J=b.touches(e,i);if(J)r=J;else if(b.intersects(e,i)){r=!1;break}}break;case y.default.circle:for(var z=0;z<e.coordinates[0].length;z++)o.push(e.coordinates[0][z]);n=new h.default({coordinates:o});var W=new m.default({coordinates:t.center}),H=b.nearestCoordinate(n,W),X=new h.default({coordinates:[t.center,H.geometry.coordinates]}),Y=b.planarLength(X);Math.round(Y)===t.radius&&(b.intersect(e,t)||(r=!0));break;case y.default.extent:var Z=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=b.touches(e,Z)}break;case y.default.multiPolygon:switch(t.type){case y.default.point:for(var K=0;K<e.coordinates.length;K++){n=new c.default({coordinates:e.coordinates[K]});var Q=b.touches(n,t);if(Q)r=Q;else if(b.contains(n,t)){r=!1;break}}break;case y.default.multiPoint:for(var $=0;$<t.coordinates.length;$++){var ee=new m.default({coordinates:t.coordinates[$]}),te=b.touches(e,ee);if(te)r=te;else if(b.contains(e,ee)){r=!1;break}}break;case y.default.lineString:case y.default.multiLineString:case y.default.polygon:r=b.touches(t,e);break;case y.default.multiPolygon:for(var re=0;re<t.coordinates.length;re++){i=new c.default({coordinates:t.coordinates[re]});var ne=b.touches(e,i);if(ne)r=ne;else if(b.intersects(e,i)){r=!1;break}}break;case y.default.extent:var ie=new c.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=b.touches(e,ie);break;case y.default.circle:for(var oe=0;oe<e.coordinates.length;oe++){n=new c.default({coordinates:e.coordinates[oe]});var ae=b.touches(n,t);if(ae)r=ae;else if(b.intersects(n,t)){r=!1;break}}}break;case y.default.extent:var se=new c.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});r=b.touches(se,t);break;case y.default.circle:switch(t.type){case y.default.point:var ue=new h.default({coordinates:[e.center,t.coordinates]}),le=b.planarLength(ue);Math.round(le)===e.radius&&(r=!0);break;case y.default.multiPoint:for(var ce=0;ce<t.coordinates.length;ce++){var he=new m.default({coordinates:t.coordinates[ce]}),fe=b.touches(e,he);if(fe)r=fe;else{var de=new h.default({coordinates:[e.center,he.coordinates]}),pe=b.planarLength(de);if(Math.round(pe)<e.radius){r=!1;break}}}break;case y.default.lineString:case y.default.multiLineString:case y.default.polygon:case y.default.multiPolygon:case y.default.extent:r=b.touches(t,e);break;case y.default.circle:var ye=new h.default({coordinates:[e.center,t.center]}),ge=b.planarLength(ye);Math.round(ge)===e.radius+t.radius&&(r=!0)}}return r}},b.cut=function(e,t){if((0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),(0,s.isNull)(t)&&s.Log.error("cutter不能为空!"),e instanceof h.default||e instanceof S.default||e instanceof c.default||e instanceof f.default||s.Log.error("geometry类型错误!"),t instanceof h.default||s.Log.error("cutter类型错误!"),e.spatialReference.equals(t.spatialReference)||s.Log.error("geometry对象和cutter对象的坐标系不同!"),!b.intersects(e,t))return[];var r=[],n=void 0,i=void 0;switch(e.type){case y.default.lineString:r=b._lineCutLine(e,t);break;case y.default.multiLineString:for(var o=0;o<e.coordinates.length;o++){var a=new h.default({coordinates:e.coordinates[o],spatialReference:p.default.fromJSON(e.spatialReference)});r=r.concat(b._lineCutLine(a,t))}break;case y.default.polygon:if(n=void 0,e.spatialReference.isGeographic)n=e,i=t;else{var u=b._polygonAndCutterToWGS84(e,t);n=u.polygon,i=u.cutter}if(r=b._lineCutPolygon(n,i),!e.spatialReference.isGeographic)for(var l=0;l<r.length;l++)r[l]=b._geometryToOrigin(r[l]);break;case y.default.multiPolygon:if(n=void 0,e.spatialReference.isGeographic)n=e,i=t;else{var d=b._polygonAndCutterToWGS84(e,t);n=d.polygon,i=d.cutter}for(var g=0;g<n.coordinates.length;g++){var m=new c.default({coordinates:n.coordinates[g],spatialReference:p.default.fromJSON(e.spatialReference)});r=r.concat(b._lineCutPolygon(m,i))}if(!e.spatialReference.isGeographic)for(var v=0;v<r.length;v++)r[v]=b._geometryToOrigin(r[v])}return r},b._polygonAndCutterToWGS84=function(e,t){return{polygon:e.spatialReference.isGeographic?e:b._geometryToWGS84(e),cutter:t.spatialReference.isGeographic?t:b._geometryToWGS84(t)}},b._lineCutLine=function(e,t){for(var r=[],n=a.lineString(e.coordinates),i=a.lineString(t.coordinates),o=a.lineSplit(n,i),s=0;s<o.features.length;s++)r.push(new h.default({coordinates:o.features[s].geometry.coordinates,spatialReference:p.default.fromJSON(e.spatialReference)}));return r},b._lineCutPolygon=function(e,t){var r=[],n=new h.default({coordinates:e.coordinates[0]}),i=a.lineString(n.coordinates),o=a.lineString(t.coordinates);if(a.booleanDisjoint(o,n))return e.clone();for(var s=[],u=0;u<t.coordinates.length-1;u++){var l=a.lineString([t.coordinates[u],t.coordinates[u+1]]);a.booleanDisjoint(l,n)||s.push(t.coordinates[u],t.coordinates[u+1])}o=a.lineString(s),o=a.cleanCoords(o);for(var f=a.lineSplit(i,o),d=a.lineSplit(o,i),g=[],m=new c.default({coordinates:[e.coordinates[0]]}),v=0;v<d.features.length;v++){var _=new h.default({coordinates:d.features[v].geometry.coordinates});b.contains(m,_)&&g.push(d.features[v])}f.features=f.features.concat(g);for(var S=0;S<f.features.length;S++)for(var x=0;x<f.features[S].geometry.coordinates.length;x++)f.features[S].geometry.coordinates[x][0]=f.features[S].geometry.coordinates[x][0].toFixed(7)/1,f.features[S].geometry.coordinates[x][1]=f.features[S].geometry.coordinates[x][1].toFixed(7)/1;for(var w=a.polygonize(f),k=0;k<w.features.length;k++){var M=new c.default({coordinates:w.features[k].geometry.coordinates,spatialReference:p.default.fromJSON(e.spatialReference)});r.push(M)}if(e.coordinates.length>1)for(var E=0;E<r.length;E++)for(var I=1;I<e.coordinates.length;I++){var T=new c.default({coordinates:[e.coordinates[I]]}),L=a.polygon(T.coordinates),C=a.polygon(r[E].coordinates);a.booleanDisjoint(L,C)||(r[E]=b.difference(r[E],T))}for(var P=[],N=0;N<r.length;N++)if(r[N].type===y.default.multiPolygon)for(var O=0;O<r[N].coordinates.length;O++)P.push(new c.default({coordinates:r[N].coordinates[O],spatialReference:p.default.fromJSON(e.spatialReference)}));else P.push(r[N]);return P},b._coordinateToWGS84=function(e){var t=e[0]/20037508.34*180,r=e[1]/20037508.34*180;return[t.toFixed(7)/1,r.toFixed(7)/1]},b._coordinateToOrigin=function(e){return[20037508.34*e[0]/180,20037508.34*e[1]/180]},b._geometryToWGS84=function(e){var t=void 0;switch(e.type){case y.default.polygon:t=c.default.fromJSON(e.toJSON());for(var r=0;r<t.coordinates.length;r++)for(var n=0;n<t.coordinates[r].length;n++)t.coordinates[r][n]=b._coordinateToWGS84(t.coordinates[r][n]);break;case y.default.multiPolygon:t=f.default.fromJSON(e.toJSON());for(var i=0;i<t.coordinates.length;i++)for(var o=0;o<t.coordinates[i].length;o++)for(var a=0;a<t.coordinates[i][o].length;a++)t.coordinates[i][o][a]=b._coordinateToWGS84(t.coordinates[i][o][a]);break;case y.default.lineString:t=h.default.fromJSON(e.toJSON());for(var s=0;s<t.coordinates.length;s++)t.coordinates[s]=b._coordinateToWGS84(t.coordinates[s])}return t},b._geometryToOrigin=function(e){var t=void 0;switch(e.type){case y.default.polygon:t=c.default.fromJSON(e.toJSON());for(var r=0;r<t.coordinates.length;r++)for(var n=0;n<t.coordinates[r].length;n++)t.coordinates[r][n]=b._coordinateToOrigin(t.coordinates[r][n]);break;case y.default.lineString:t=h.default.fromJSON(e.toJSON());for(var i=0;i<t.coordinates.length;i++)t.coordinates[i]=b._coordinateToOrigin(t.coordinates[i])}return t},b.isSimple=function(e){(0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),e instanceof h.default||e instanceof S.default||e instanceof c.default||e instanceof f.default||s.Log.error("geometry为不支持的类型!");var t=!0;switch(e.type){case y.default.lineString:t=b._lineIsSimple(e);break;case y.default.multiLineString:t=b._multiLineIsSimple(e);break;case y.default.polygon:t=b._polygonIsSimple(e);break;case y.default.multiPolygon:t=b._multiPolygonIsSimple(e)}return t},b._lineIsSimple=function(e){var t=!0;if(e.coordinates.length>2){for(var r=[],n=0;n<e.coordinates.length-1;n++)r.push(new h.default({coordinates:[e.coordinates[n],e.coordinates[n+1]]}));for(var i=0;i<r.length-1;i++)for(var o=i+1;o<r.length;o++)if(b.contains(r[i],r[o])||b.contains(r[o],r[i])){t=!1;break}for(var s=0;s<r.length-2;s++)for(var u=s+2;u<r.length;u++)if(b.intersects(r[s],r[u])){var l=a.multiPoint([r[s].coordinates[0],r[s].coordinates[1],r[u].coordinates[0],r[u].coordinates[1]]);if(3!==(l=a.cleanCoords(l)).geometry.coordinates.length){t=!1;break}t=!0}for(var c=0;c<e.coordinates.length;c++){for(var f=!1,d=c+1;d<e.coordinates.length;d++)if(b._equalPoints(e.coordinates[c],e.coordinates[d])){f=!0;break}if(f){t=!1;break}}return t}return 2===e.coordinates.length?b._equalPoints(e.coordinates[0],e.coordinates[1]):t},b._equalPoints=function(e,t){return 2===e.length&&t.length>=2?e[0]===t[0]&&e[1]===t[1]:3===e.length&&t.length>=3&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},b._getLinesFromPolygon=function(e){for(var t=[],r=0;r<e.coordinates.length;r++)for(var n=0;n<e.coordinates[r].length-1;n++)t.push(new h.default({coordinates:[e.coordinates[r][n],e.coordinates[r][n+1]]}));return t},b._multiLineIsSimple=function(e){var t=!0;if(1===e.coordinates.length){var r=new h.default({coordinates:e.coordinates[0]});t=b._lineIsSimple(r)}else{for(var n=0;n<e.coordinates.length;n++){var i=new h.default({coordinates:e.coordinates[n]});if(b._lineIsSimple(i)){t=!1;break}}if(t)for(var o=0;o<e.coordinates.length-1;o++){var a=new h.default({coordinates:e.coordinates[o]}),s=new h.default({coordinates:e.coordinates[o+1]});if(b.intersects(a,s)){t=!1;break}}}return t},b._polygonIsSimple=function(e){var t=[],r=[];e.coordinates.forEach(function(e){t.push(e.slice(0,e.length-1));for(var n=[],i=1;i<e.length-3;i++)n.push([e[i],e[i+1]]);n.push([e[e.length-2],e[e.length-1]]),r.push(n)});for(var n=new S.default({coordinates:t}),i=b._multiLineIsSimple(n),o=!1,a=0;a<r.length;a++){for(var s=new h.default({coordinates:r[a][r[a].length-1]}),u=0;u<r[a].length-1;u++)if(o=b.intersects(new h.default({coordinates:r[a][u]}),s)){i=!1;break}if(o)break}return i},b._multiPolygonIsSimple=function(e){var t=[];e.coordinates.forEach(function(e){e.forEach(function(e){t.push(e.slice(0,e.length-1))})});var r=new S.default({coordinates:t});return b._multiLineIsSimple(r)},b.getPositionsFromArc=function(e){var t=[(e=(0,s.defaultValue)(e,{})).point1,e.point2,e.point3],r=b.getCenter(t[0],t[1],t[2]);return b._tranArcToPath({center:r,pointBegan:t[0],pointEnd:t[2],spatialReference:e.spatialReference,numberOfPoints:e.numberOfPoints})},b._tranArcToPath=function(e){var t=(0,s.defaultValue)(e.center,void 0);t=JSON.parse((0,n.default)(t));var r=(0,s.defaultValue)(e.pointBegan,void 0);r=JSON.parse((0,n.default)(r));var i=(0,s.defaultValue)(e.pointEnd,void 0);i=JSON.parse((0,n.default)(i));var o=(0,s.defaultValue)(e.numberOfPoints,360),a=(0,s.defaultValue)(e.spatialReference,new p.default({wkid:4326}));if(!(a=p.default.fromJSON(a)).isGeographic){var u=new p.default({wkid:4326});t=d.default.project(new m.default({coordinates:t,spatialReference:a}),u).coordinates,r=d.default.project(new m.default({coordinates:r,spatialReference:a}),u).coordinates,i=d.default.project(new m.default({coordinates:i,spatialReference:a}),u).coordinates}var l=new h.default({coordinates:[t,r]}),c=b.planarLength(l),f=b.getAngleFromPoints(r,t,[t[0]+10,t[1]]),y=b.getAngleFromPoints(i,t,[t[0]+10,t[1]])-f;o*=y/360,o=Math.abs(o);var g=Math.PI*(y/180)/o;f=Math.PI*(f/180);for(var v=[r],_=0;_<o-1;_++){f+=g;var S=[t[0]+c*Math.cos(f),t[1]+c*Math.sin(f)];v.push(S)}return v.push(i),this.hasZ&&v.map(function(e){return[e[0],e[1],t[2]]}),v},b.getCenter=function(e,t,r,n){var i=e[0],o=t[0],a=r[0],s=e[1],u=t[1],l=r[1],c=0*s-0*u-0*s+0*l+0*u-0*l,h=-(0*i-0*o-0*i+0*a+0*o-0*a),f=i*u-o*s-i*l+a*s+o*l-a*u,d=-(i*u*0-i*l*0-o*s*0+o*l*0+a*s*0-a*u*0),p=2*(o-i),y=2*(u-s),g=i*i+s*s+0-o*o-u*u-0,m=2*(a-i),v=2*(l-s),_=i*i+s*s+0-a*a-l*l-0,S=-(0*h*_-0*h*g-y*f*_+0*y*d+v*f*g-0*v*d)/(c*y*0-c*v*0-p*h*0+p*v*f+m*h*0-m*y*f),x=(0*c*_-0*c*g-p*f*_+0*p*d+m*f*g-0*m*d)/(c*y*0-c*v*0-p*h*0+p*v*f+m*h*0-m*y*f);return n?[S,x,e[2]]:[S,x]},b._getArcFromPath=function(e){e=(0,s.defaultValue)(e,{});var t=(0,s.defaultValue)(e.coordinates,[]),r=(0,s.defaultValue)(e.arcInfo,[]),n=(0,s.defaultValue)(e.spatialReference,new p.default({wkid:4326})),i=(0,s.defaultValue)(e.numberOfPoints,360),o=[],a=t.slice(0,r[0].centerPointIndex-1);o=o.concat(a);var u=Number(r[0].centerPointIndex),l=[t[u-1],t[u],t[u+1]],c=b.getPositionsFromArc({point1:l[0],point2:l[1],point3:l[2],spatialReference:n,numberOfPoints:i});o=o.concat(c);for(var h=1;h<r.length;h++)if(r[h].hasOwnProperty("centerPointIndex")){var f=t.slice(r[h-1].centerPointIndex+2,r[h].centerPointIndex+1);o=o.concat(f);var d=Number(r[h].centerPointIndex),y=[t[d-1],t[d],t[d+1]],g=b.getPositionsFromArc({point1:y[0],point2:y[1],point3:y[2],spatialReference:n,numberOfPoints:i});o=o.concat(g)}var m=t.slice(r[r.length-1].centerPointIndex+2,t.length);return o.concat(m)},b._getArcInfos=function(e,t,r){var n={};switch(r){case y.default.multiLineString:case y.default.polygon:for(var i=0;i<t.length;i++){n[i]=[];for(var o=0;o<e.length;o++)(r===y.default.multiLineString?e[o].lineIndex:e[o].ringIndex)===i&&n[i].push(e[o]);n[i].sort(function(e,t){return Number(e.centerPointIndex)-Number(t.centerPointIndex)})}return n;case y.default.multiPolygon:for(var a=0;a<t.length;a++){n[a]=[];for(var s=0;s<e.length;s++)e[s].polygonIndex===a&&n[a].push(e[s]);n[a]=b._getArcInfos(n[a],t[a],y.default.polygon)}return n;default:return n}},b.getAngleFromPoints=function(e,t,r){var n=e[0]-t[0],i=e[1]-t[1],o=r[0]-t[0],a=r[1]-t[1],s=(n*o+i*a)/(Math.sqrt(n*n+i*i)*Math.sqrt(o*o+a*a)),u=180*Math.acos(s)/Math.PI;return 0===Math.abs(u)||180===Math.abs(u)?Math.abs(u):e[1]<r[1]?-1*u:u},b.getArcFromGeometry=function(e){e=(0,s.defaultValue)(e,{});var t=(0,s.defaultValue)(e.geometry,void 0),r=(0,s.defaultValue)(e.numberOfPoints,360),n=(0,s.defaultValue)(e.arcInfo,[]);if(!t)return t;if(!(t instanceof l.default))return s.Log.error("geometry不是基础几何类型!"),t;if(!n)return t;if(!(n instanceof Array))return t;if(n.length<1)return t;var o=t.coordinates,a=t.spatialReference,u=void 0,d=void 0;switch(t.type){case y.default.lineString:return u=b._getArcFromPath({coordinates:o,arcInfo:n,spatialReference:a,numberOfPoints:r}),new h.default({coordinates:u,spatialReference:p.default.fromJSON(t.spatialReference)});case y.default.multiLineString:return d=b._getArcInfos(n,o,y.default.multiLineString),u=[],(0,i.default)(d).forEach(function(e){u.push(b._getArcFromPath({coordinates:o[e],arcInfo:d[e],spatialReference:a,numberOfPoints:r}))}),new S.default({coordinates:u,spatialReference:a});case y.default.polygon:return d=b._getArcInfos(n,o,y.default.polygon),u=[],(0,i.default)(d).forEach(function(e){var t=o[e].slice(0,o[e].length),n=b._getArcFromPath({coordinates:t,arcInfo:d[e],spatialReference:a,numberOfPoints:r});n.push(n[0]),u.push(n)}),new c.default({coordinates:u,spatialReference:a});case y.default.multiPolygon:d=b._getArcInfos(n,o,y.default.multiPolygon),u=[];for(var g=function(e){var t=[];(0,i.default)(d[e]).forEach(function(n){var i=o[e][n].slice(0,o[e][n].length),s=b._getArcFromPath({coordinates:i,arcInfo:d[e][n],spatialReference:a,numberOfPoints:r});s.push(s[0]),t.push(s)}),u.push(t)},m=0;m<o.length;m++)g(m);return new f.default({coordinates:u,spatialReference:a});default:return t}},b._getTurfMultiLineStringFromLines=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].coordinates);return a.multiLineString(t)},b._initIntersects=function(e){for(var t={},r=0;r<e.length;r++)e[r].id=r,t[r]={intersectPoints:[],intersectLines:[]};return t},b._pointOnLineEndPoint=function(e,t){return e.coordinates[0]===t.coordinates[0][0]&&e.coordinates[1]===t.coordinates[0][1]||e.coordinates[0]===t.coordinates[1][0]&&e.coordinates[1]===t.coordinates[1][1]},b._lineEqualLine=function(e,t){return e.coordinates[0][0]===t.coordinates[0][0]&&e.coordinates[0][1]===t.coordinates[0][1]&&e.coordinates[1][0]===t.coordinates[1][0]&&e.coordinates[1][1]===t.coordinates[1][1]||e.coordinates[0][0]===t.coordinates[1][0]&&e.coordinates[0][1]===t.coordinates[1][1]&&e.coordinates[1][0]===t.coordinates[0][0]&&e.coordinates[1][1]===t.coordinates[0][1]},b._lineEqualLineTurf=function(e,t){return e.geometry.coordinates[0][0]===t.geometry.coordinates[0][0]&&e.geometry.coordinates[0][1]===t.geometry.coordinates[0][1]&&e.geometry.coordinates[1][0]===t.geometry.coordinates[1][0]&&e.geometry.coordinates[1][1]===t.geometry.coordinates[1][1]},b._singRingSimplify=function(e){for(var t=b._getLinesFromPolygon(e),r=b._initIntersects(t),n=0;n<t.length-1;n++)for(var i=n+1;i<t.length;i++){var o=b.intersect(t[n],t[i]);o.point&&(b._pointOnLineEndPoint(o.point,t[n])||b._pointOnLineEndPoint(o.point,t[i])||(r[n].intersectPoints.push(o.point),r[i].intersectPoints.push(o.point))),o.lineString&&(r[n].intersectLines.push(o.lineString),r[i].intersectLines.push(o.lineString))}for(var s=[],u=0;u<t.length;u++){for(var l=!1,c=0;c<r[u].intersectLines.length;c++){if(b._lineEqualLine(t[u],r[u].intersectLines[c])){l=!0;break}t[u].coordinates[0][0]===r[u].intersectLines[c].coordinates[0][0]&&t[u].coordinates[0][1]===r[u].intersectLines[c].coordinates[0][1]||r[u].intersectPoints.push(new m.default({coordinates:r[u].intersectLines[c].coordinates[0]}),new m.default({coordinates:r[u].intersectLines[c].coordinates[0]})),t[u].coordinates[1][0]===r[u].intersectLines[c].coordinates[1][0]&&t[u].coordinates[1][1]===r[u].intersectLines[c].coordinates[1][1]||r[u].intersectPoints.push(new m.default({coordinates:r[u].intersectLines[c].coordinates[1]}),new m.default({coordinates:r[u].intersectLines[c].coordinates[1]}))}if(!l){r[u].intersectPoints.sort(function(e,t){return e.coordinates[0]-t.coordinates[0]}),r[u].intersectPoints.sort(function(e,t){return t.coordinates[1]-e.coordinates[1]}),r[u].intersectPoints.splice(0,0,new m.default({coordinates:t[u].coordinates[0]})),r[u].intersectPoints.push(new m.default({coordinates:t[u].coordinates[1]}));for(var h=b.union(r[u].intersectPoints),f=0;f<h.coordinates.length-1;f++)s.push(a.lineString([h.coordinates[f],h.coordinates[f+1]]))}}for(var d=0;d<s.length;d++)for(var p=d+1;p<s.length;p++)b._lineEqualLineTurf(s[d],s[p])&&(s.splice(p,1),p--);var y=a.featureCollection(s);return a.polygonize(y)},b._getPolygonsFromRings=function(e,t){for(var r=0;r<e.length;r++)e[r].isOuter=!0,e[r].innerPolygons=[];1===e.length&&t.push(e[0]);for(var n=0;n<e.length-1;n++)if(e[n].isOuter){t.push(e[n]);for(var i=n+1;i<e.length;i++)b.contains(e[n],e[i])&&(e[i].isOuter=!1,e[n].innerPolygons.push(e[i]))}e.length>1&&e[e.length-1].isOuter&&t.push(e[e.length-1]);for(var o=[],a=0;a<t.length;a++){for(var s=[],u=0;u<t[a].innerPolygons.length-1;u++)for(var l=u+1;l<t[a].innerPolygons.length;l++)b.contains(t[a].innerPolygons[u],t[a].innerPolygons[l])&&!t[a].innerPolygons[l].isOuter&&(t[a].innerPolygons[l].isOuter=!0,t[a].innerPolygons[l].innerPolygons=[],s.push(t[a].innerPolygons[l]));for(var c=0;c<t[a].innerPolygons.length;c++)t[a].innerPolygons[c].isOuter&&(t[a].innerPolygons.splice(c,1),c--);if(s.length>0){var h=b._getPolygonsFromRings(s,[]);o=o.concat(h)}}return t.concat(o)},b._singlePolygonSimplify=function(e){for(var t={largerInnerPolygon:[],intersectInnerPolygon:[],smallInnerPolygon:[]},r=new c.default({coordinates:[e.coordinates[0]],spatialReference:p.default.fromJSON(e.spatialReference)}),i=[],o=1;o<e.coordinates.length;o++){var a=new c.default({coordinates:[e.coordinates[o]],spatialReference:p.default.fromJSON(e.spatialReference)});i.push(a)}for(var s=0;s<i.length-1;s++)for(var u=s+1;u<i.length;u++){var h=b.intersect(i[s],i[u]);(h instanceof c.default||h instanceof f.default)&&(i[s]=b.difference(i[s],h),i[u]=b.difference(i[u],h))}for(var d=0;d<i.length;d++){var y=i[d];if(b.contains(r,y)){var g=b.difference(r,y),m=JSON.parse((0,n.default)(r.coordinates[0])),v=JSON.parse((0,n.default)(g.coordinates[0]));m.sort(function(e,t){return e[0]-t[0]}),m.sort(function(e,t){return e[1]-t[1]}),v.sort(function(e,t){return e[0]-t[0]}),v.sort(function(e,t){return e[1]-t[1]}),(0,n.default)(m)===(0,n.default)(v)?t.smallInnerPolygon.push(y):t.intersectInnerPolygon.push(y)}else if(b.contains(y,r)){var _=r.toJSON(),S=y.toJSON();r=l.default.fromJSON(S),y=l.default.fromJSON(_),t.smallInnerPolygon.push(y)}else b.intersects(r,y)?t.intersectInnerPolygon.push(y):b.disjoint(r,y)&&t.largerInnerPolygon.push(y)}for(var x=[],w=0;w<t.intersectInnerPolygon.length;w++){var k=b.intersect(r,t.intersectInnerPolygon[w]);if(k instanceof c.default||k instanceof f.default){r=b.difference(r,k);var M=b.difference(t.intersectInnerPolygon[w],k);x.push(M)}}for(var E=b._singRingSimplify(r),I=0;I<E.features.length;I++)x.push(new c.default({coordinates:E.features[I].geometry.coordinates}));if(t.largerInnerPolygon.length>0)for(var T=0;T<t.largerInnerPolygon.length;T++)x.push(t.largerInnerPolygon[T]);for(var L=[],C=0;C<t.smallInnerPolygon.length;C++)for(var P=b._singRingSimplify(t.smallInnerPolygon[C]),N=0;N<P.features.length;N++){var O=new c.default({coordinates:P.features[N].geometry.coordinates});O.isPicked=!1,L.push(O)}!(L=b.union(L))||L instanceof Array||(L=[L]);for(var R=0;R<x.length;R++)for(var V=0;V<L.length;V++)!L[V].isPicked&&x[R]&&L[V]&&b.contains(x[R],L[V])&&(x[R].coordinates.push(L[V].coordinates[0]),L[V].isPicked=!0);return x},b.simplify=function(e){if((0,s.isNull)(e)&&s.Log.error("geometry不能为空!"),e.type===y.default.point||e.type===y.default.multiPoint||e.type===y.default.extent||e.type===y.default.circle)return e;switch(e.type){case y.default.polygon:case y.default.multiPolygon:var t=[],r=void 0;if(e.type===y.default.polygon){r=JSON.parse((0,n.default)(e.coordinates));for(var i=0;i<r.length;i++)t.push(new c.default({coordinates:[r[i]],spatialReference:p.default.fromJSON(e.spatialReference)}))}else for(var o=JSON.parse((0,n.default)(e.coordinates)),a=0;a<o.length;a++)for(var u=0;u<o[a].length;u++)t.push(new c.default({coordinates:[o[a][u]],spatialReference:p.default.fromJSON(e.spatialReference)}));for(var l=0;l<t.length;l++)t[l].area=b.planarArea(t[l]);t.sort(function(e,t){return t.area-e.area});for(var h=b._getPolygonsFromRings(t,[]),d=0;d<h.length-1;d++)for(var g=d+1;g<h.length;g++)if(!b.contains(h[d],h[g])){var m=b.intersect(h[d],h[g]);m&&(h[d].coordinates=b.difference(h[d],m).coordinates,h[g].coordinates=b.difference(h[g],m).coordinates)}for(var v=[],_=0;_<h.length;_++){for(var S=0;S<h[_].innerPolygons.length;S++)h[_].coordinates.push(h[_].innerPolygons[S].coordinates[0]);var x=b._singlePolygonSimplify(h[_]);v=v.concat(x)}if(1===v.length)return v[0];if(v.length>1){for(var w=[],k=0;k<v.length;k++)v[k]&&w.push(v[k].coordinates);return new f.default({coordinates:w,spatialReference:p.default.fromJSON(e.spatialReference)})}break;case y.default.lineString:}},b.getEllipseCoordinates=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50;if(!e||!e.coordinates||void 0===t||void 0===r)return[];for(var i=[],o=e.coordinates,a=0;a<=n;a++){var s=a/n*2*Math.PI,u=o[0]+t*Math.cos(s),l=o[1]+r*Math.sin(s);i.push([u,l])}return i.push(i[0]),i},b.getCenterOID=function(e){var t=e.type;if(t===y.default.circle)return new m.default({coordinates:[e.center[0],e.center[1],0]});if(t===y.default.extent)return new m.default({coordinates:[(e.xmin+e.xmax)/2,(e.ymin+e.ymax)/2,0]});var r=[],n=void 0;switch(t){case y.default.point:return m.default.fromJSON(e.toJSON());case y.default.multiPoint:case y.default.lineString:n=e.coordinates;break;case y.default.polygon:n=e.coordinates[0];break;default:return}for(var i=0;i<n.length;i++)r.push(a.point(n[i]));var o=a.featureCollection(r),s=a.center(o);return new m.default({coordinates:[s.geometry.coordinates[0],s.geometry.coordinates[1],0]})},t.default=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverlayLayer=t.UnknownLayer=t.TileLayer=t.VectorTileLayer=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.ArcGISVectorTileLayer=t.VisualVariable=t.OpacityVariable=t.ColorVariable=t.SizeVariable=t.HeatmapColorStop=t.setElevationInfo=t.Layer=t.TileInfoUtil=t.getIGSDynamicLayer=t.showLayerByScale=t.isCustomSP=t.is4326=t.getUrlType=t.ArcGISTileLayer=t.ArcGISMapImageSubLayer=t.ArcGISMapImageLayer=t.LabelClass=t.Projection=t.Basemap=t.Map=t.M3DModelCacheLayer=t.BaseRenderer=t.HeatmapRenderer=t.RankRenderer=t.RandomRenderer=t.ClusterRenderer=t.SimpleRenderer=t.ClassBreakRenderer=t.UniqueValueRenderer=t.VideoLayer=t.TerrainCacheLayer=t.Cesium3DTilesCacheLayer=t.GeoJSONLayer=t.GraphicsLayer=t.GroupLayer=t.MapVLayer=t.EchartsLayer=t.IGSFeatureLayer=t.Scene=t.IGSTileLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=t.WMTSSubLayer=t.WFSLayer=t.WMSSubLayer=t.WMSLayer=t.WMTSLayer=t.OGCLayer=void 0;var n=r(35),i=r(66),o=r(509),a=function(e){return e&&e.__esModule?e:{default:e}}(r(93));t.OGCLayer=n.OGCLayer,t.WMTSLayer=n.WMTSLayer,t.WMSLayer=n.WMSLayer,t.WMSSubLayer=n.WMSSubLayer,t.WFSLayer=n.WFSLayer,t.WMTSSubLayer=n.WMTSSubLayer,t.IGSVectorTileLayer=n.IGSVectorTileLayer,t.IGSVectorTileSubLayer=n.IGSVectorTileSubLayer,t.IGSMapImageLayer=n.IGSMapImageLayer,t.IGSMapImageSubLayer=n.IGSMapImageSubLayer,t.IGSSceneLayer=n.IGSSceneLayer,t.IGSSceneSubLayer=n.IGSSceneSubLayer,t.IGSTileLayer=n.IGSTileLayer,t.Scene=n.Scene,t.IGSFeatureLayer=n.IGSFeatureLayer,t.EchartsLayer=n.EchartsLayer,t.MapVLayer=n.MapVLayer,t.GroupLayer=n.GroupLayer,t.GraphicsLayer=n.GraphicsLayer,t.GeoJSONLayer=n.GeoJSONLayer,t.Cesium3DTilesCacheLayer=n.Cesium3DTilesCacheLayer,t.TerrainCacheLayer=n.TerrainCacheLayer,t.VideoLayer=n.VideoLayer,t.UniqueValueRenderer=i.UniqueValueRenderer,t.ClassBreakRenderer=i.ClassBreakRenderer,t.SimpleRenderer=i.SimpleRenderer,t.ClusterRenderer=i.ClusterRenderer,t.RandomRenderer=i.RandomRenderer,t.RankRenderer=i.RankRenderer,t.HeatmapRenderer=i.HeatmapRenderer,t.BaseRenderer=i.BaseRenderer,t.M3DModelCacheLayer=n.M3DModelCacheLayer,t.Map=o.Map,t.Basemap=o.Basemap,t.Projection=n.Projection,t.LabelClass=a.default,t.ArcGISMapImageLayer=n.ArcGISMapImageLayer,t.ArcGISMapImageSubLayer=n.ArcGISMapImageSubLayer,t.ArcGISTileLayer=n.ArcGISTileLayer,t.getUrlType=n.getUrlType,t.is4326=n.is4326,t.isCustomSP=n.isCustomSP,t.showLayerByScale=n.showLayerByScale,t.getIGSDynamicLayer=i.getIGSDynamicLayer,t.TileInfoUtil=n.TileInfoUtil,t.Layer=n.Layer,t.setElevationInfo=n.setElevationInfo,t.HeatmapColorStop=i.HeatmapColorStop,t.SizeVariable=i.SizeVariable,t.ColorVariable=i.ColorVariable,t.OpacityVariable=i.OpacityVariable,t.VisualVariable=i.VisualVariable,t.ArcGISVectorTileLayer=n.ArcGISVectorTileLayer,t.WebTileLayer=n.WebTileLayer,t.getZoomOffset=n.getZoomOffset,t.FeatureCollection=n.FeatureCollection,t.TileInfo=n.TileInfo,t.appendUrlParams=n.appendUrlParams,t.getFullBaseUrl=n.getFullBaseUrl,t.LOD=n.LOD,t.VectorTileLayer=n.VectorTileLayer,t.TileLayer=n.TileLayer,t.UnknownLayer=n.UnknownLayer,t.OverlayLayer=n.OverlayLayer},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(11)),i=f(r(3)),o=f(r(0)),a=f(r(2)),s=f(r(4)),u=f(r(5)),l=r(8),c=r(1),h=r(6);function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.id=(0,c.defaultValue)(e.id,(0,c.getGUID)()),r.layer=(0,c.defaultValue)(e.layer,void 0),r.sublayers=(0,c.defaultValue)(e.sublayers,new l.Collection),r.title=(0,c.defaultValue)(e.title||e.layerName,void 0),r.extensionOptions=(0,c.defaultValue)(e.extensionOptions,{}),r.extendProps=(0,c.defaultValue)(e.extendProps,{}),r._visible=(0,c.defaultValue)(e.visible,!0),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"toJSON",value:function(){var e=[];return this.sublayers.forEach(function(r){e.push((0,c.toJSON)(r,t))}),{id:this.id,sublayers:e,title:this.title,visible:this.visible,extensionOptions:this.extensionOptions,extendProps:this.extendProps}}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(l.Evented);(0,n.default)(d.prototype,{visible:{get:function(){return this._visible},set:function(e){if(this._visible=e,this.layer&&this.layer.refresh)switch(this.layer.type){case h.LayerType.wms:this.layer.setSubLayer(this)}}}}),t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VisualVariable=t.OpacityVariable=t.ColorVariable=t.SizeVariable=t.HeatmapColorStop=t.getIGSDynamicLayer=t.createRender=t.HeatmapRenderer=t.RankRenderer=t.RandomRenderer=t.ClusterRenderer=t.SimpleRenderer=t.ClassBreakRenderer=t.UniqueValueRenderer=t.BaseRenderer=void 0;var n=g(r(47)),i=g(r(460)),o=g(r(467)),a=g(r(468)),s=g(r(469)),u=g(r(472)),l=g(r(473)),c=g(r(474)),h=r(6),f=r(1),d=r(475),p=g(r(208)),y=r(79);function g(e){return e&&e.__esModule?e:{default:e}}t.BaseRenderer=n.default,t.UniqueValueRenderer=i.default,t.ClassBreakRenderer=o.default,t.SimpleRenderer=a.default,t.ClusterRenderer=s.default,t.RandomRenderer=u.default,t.RankRenderer=l.default,t.HeatmapRenderer=c.default,t.createRender=function(e){switch((e=(0,f.defaultValue)(e,{})).type){case h.RendererType.simple:return new a.default(e);case h.RendererType.uniqueValue:return new i.default(e);case h.RendererType.classBreak:return new o.default(e);case h.RendererType.cluster:return new s.default(e);case h.RendererType.random:return new u.default(e);case h.RendererType.rank:return new l.default(e);case h.RendererType.heatmap:return new c.default(e);default:return new a.default(e)}},t.getIGSDynamicLayer=d.getIGSDynamicLayer,t.HeatmapColorStop=p.default,t.SizeVariable=y.SizeVariable,t.ColorVariable=y.ColorVariable,t.OpacityVariable=y.OpacityVariable,t.VisualVariable=y.VisualVariable},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=r(1),a=u(r(95)),s=r(9);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=t||{},this.dpi=(0,o.defaultValue)(t.dpi,-1),this.format=(0,o.defaultValue)(t.format,"png"),this.origin=t.origin?s.Point.fromJSON(t.origin):void 0;for(var r=[],i=(0,o.defaultValue)(t.lods,[]),u=0;u<i.length;u++)r.push(a.default.fromJSON(i[u]));this.lods=r,this.size=t.size,this.spatialReference=t.spatialReference}return(0,i.default)(e,[{key:"toJSON",value:function(){return{dpi:this.dpi,format:this.format,origin:this.origin?this.origin.toJSON():void 0,lods:this.lods.map(function(e){return e.toJSON()}),size:this.size?[this.size[0],this.size[1]]:void 0,spatialReference:this.spatialReference&&this.spatialReference.toJSON()}}},{key:"scaleToZoom",value:function(e){return 0}},{key:"zoomToScale",value:function(e){return 0}},{key:"getTileSize",value:function(){return Array.isArray(this.size)&&this.size.length>=2?Math.max(this.size[0],this.size[1]):256}},{key:"clone",value:function(){return e.fromJSON(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=l},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=!0},function(e,t,r){"use strict";var n=r(233)(!0);r(140)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var n=r(71),i=r(60),o=r(39),a=r(105),s=r(32),u=r(137),l=Object.getOwnPropertyDescriptor;t.f=r(27)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=h(r(49)),i=h(r(282)),o=h(r(285)),a=h(r(0)),s=h(r(2)),u=r(1),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(288)),c=r(40);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(){return(0,a.default)(this,e),this._createEventedProxy()}return(0,s.default)(e,[{key:"_createEventedProxy",value:function(){this._decorateParents=[],this._decorateProperties={};var e=this;return new Proxy(this,{set:function(t,r,n,a){if(e._decorateProperties[r]){var s=e._decorateProperties[r],u=s.type,l=s.createInstance;u&&n instanceof u||(n=l(n)),Array.isArray(n._decorateParents)&&-1===n._decorateParents.findIndex(function(t){return t.instance===e})&&n._decorateParents.push({instance:e,key:r})}if(t[r]===n)return!0;var c={target:t,key:r,value:n,oldValue:(0,o.default)(t,r),receiver:a},h=(0,i.default)(t,r,n,a);return/^_[^_].*/.test(r)?h:(e._decorateEventFire(e,e,[],"set",c,c),h)},get:function(e,t,r){return(0,o.default)(e,t,r)}})}},{key:"_decorateEventFire",value:function(e,t,r,n,i,o){for(var a=i.key,s=i.value,u=i.oldValue,l=[a],h=0;h<r.length;h++)l.push(r[h]);var f={key:a,value:s,oldValue:u},d=new c.ProxyEvent({eventName:n,target:e,eventData:f,eventPath:l,sourceTarget:t,sourceEventData:o});e.fire(n,d,!1);var p=e._decorateParents||[];if(0!==p.length)for(var y=0;y<p.length;y++){var g=p[y],m=g.instance,v={key:g.key,value:e,oldValue:e};this._decorateEventFire(m,t,l,n,v,o)}}},{key:"_decorate",value:function(e,t,r,n){n=(0,u.defaultValue)(n,function(e){return e});var i=t;return r&&t instanceof r||(i=n((0,u.defaultValue)(t,{}))),this._decorateProperties[e]={type:r,createInstance:n},i}},{key:"on",value:function(e,t,r){if("object"===(void 0===e?"undefined":(0,n.default)(e)))for(var i in e)this._on(i,e[i],t);else for(var o=0,a=(e=l.splitWords(e)).length;o<a;o++)this._on(e[o],t,r);return this}},{key:"off",value:function(e,t,r){if(e)if("object"===(void 0===e?"undefined":(0,n.default)(e)))for(var i in e)this._off(i,e[i],t);else for(var o=0,a=(e=l.splitWords(e)).length;o<a;o++)this._off(e[o],t,r);else delete this._Evented;return this}},{key:"_on",value:function(e,t,r){this._Evented=this._Evented||{};var n=this._Evented[e];n||(n=[],this._Evented[e]=n),r===this&&(r=void 0);for(var i={fn:t,ctx:r},o=n,a=0,s=o.length;a<s;a++)if(o[a].fn===t&&o[a].ctx===r)return;o.push(i)}},{key:"_off",value:function(e,t,r){var n=void 0,i=void 0,o=void 0;if(this._Evented&&(n=this._Evented[e]))if(t){if(r===this&&(r=void 0),n)for(i=0,o=n.length;i<o;i++){var a=n[i];if(a.ctx===r&&a.fn===t)return a.fn=l.falseFn,this._firingCount&&(this._Evented[e]=n=n.slice()),void n.splice(i,1)}}else{for(i=0,o=n.length;i<o;i++)n[i].fn=l.falseFn;delete this._Evented[e]}}},{key:"fire",value:function(e,t,r){if(!this.listens(e,r))return this;var n=t;if(n&&(n.type=e,n.target=this,n.sourceTarget=t&&t.sourceTarget||this),this._Evented){var i=this._Evented[e];if(i){this._firingCount=this._firingCount+1||1;for(var o=0,a=i.length;o<a;o++){var s=i[o];s.fn.call(s.ctx||this,n)}this._firingCount--}}return r&&this._propagateEvent(n),this}},{key:"listens",value:function(e,t){var r=this._Evented&&this._Evented[e];if(r&&r.length)return!0;if(t)for(var n in this._eventParents)if(this._eventParents[n].listens(e,t))return!0;return!1}},{key:"once",value:function(e,t,r){var i=this;if("object"===(void 0===e?"undefined":(0,n.default)(e))){for(var o in e)this.once(o,e[o],t);return this}var a=l.bind(function(){i.off(e,t,r).off(e,a,r)},this);return this.on(e,t,r).on(e,a,r)}},{key:"addEventParent",value:function(e){return this._eventParents=this._eventParents||{},this._eventParents[l.stamp(e)]=e,this}},{key:"removeEventParent",value:function(e){return this._eventParents&&delete this._eventParents[l.stamp(e)],this}},{key:"_propagateEvent",value:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,l.extend({layer:e.target,propagatedFrom:e.target},e),!0)}}]),e}();t.default=f,f.addEventListener=f.on,f.removeEventListener=f.clearAllEventListeners=f.off,f.addOneTimeEventListener=f.once,f.fireEvent=f.fire,f.hasEventListeners=f.listens},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(0)),i=f(r(224)),o=f(r(115)),a=r(1),s=r(9),u=f(r(88)),l=f(r(177)),c=f(r(178)),h=f(r(121));function f(e){return e&&e.__esModule?e:{default:e}}var d=function e(){(0,n.default)(this,e)};d.projectMercatorToLonLat=function(e){var t={longitude:0,latitude:0},r=e.x/20037508.34*180,n=e.y/20037508.34*180;return n=180/Math.PI*(2*Math.atan(Math.exp(n*Math.PI/180))-Math.PI/2),t.longitude=r,t.latitude=n,t},d.projectToGeographyPoints=function(e){e=(0,a.defaultValue)(e,{});var t=(0,a.defaultValue)(e.points,[]),r=(0,a.defaultValue)(e.wkid,-1),n=(0,a.defaultValue)(e.proj4Defs,void 0),o=[],s=void 0;if(n)s=n;else{var u=d.getEPSGByWKID(r);u&&(s=u.strProject)}if(s)for(var l=0;l<t.length;l++)o.push((0,i.default)(s,"+proj=longlat +datum=WGS84 +no_defs +type=crs",t[l]));return o},d.projectPoints=function(e){e=(0,a.defaultValue)(e,{});var t=(0,a.defaultValue)(e.points,[]),r=(0,a.defaultValue)(e.originWKID,-1),n=(0,a.defaultValue)(e.originDefs,void 0),o=(0,a.defaultValue)(e.targetWKID,-1),s=(0,a.defaultValue)(e.targetDefs,void 0),u=void 0,l=void 0,c=[];try{if(n)u=n;else{var h=d.getEPSGByWKID(r);h&&(u=h.strProject)}if(s)l=s;else{var f=d.getEPSGByWKID(o);f&&(l=f.strProject)}for(var p=[],y=[],g=0;g<t.length;g++)p=t[g],y=u&&l?(0,i.default)(u,l,p):u&&!l?d._toCustomWkidPoint(u,o,p):!u&&l?d._fromCustomWkidPoint(r,l,p):d._CustomWkidToCustomWkidPoint(r,o,p),c.push(y);return c}catch(e){a.Log.error("proj4投影超限")}return c},d.getEPSGByWKID=function(e){for(var t=void 0,r=0;r<o.default.length;r++)if(String(o.default[r].id)===String(e)){t=o.default[r];break}return t||a.Log.info("epsg未定义wkid为"+e+"的坐标系信息"),t},d.projectGeometry=function(e,t){var r=[],n={originWKID:e.spatialReference.wkid,originDefs:e.spatialReference.wkt,targetWKID:t.wkid,targetDefs:t.wkt};switch(e.type){case u.default.point:return r=[e.coordinates],n.points=r,r=d.projectPoints(n),new s.Point({coordinates:r[0],spatialReference:new s.SpatialReference(t)});case u.default.multiPoint:return r=e.coordinates,n.points=r,r=d.projectPoints(n),new s.MultiPoint({coordinates:r,spatialReference:new s.SpatialReference(t)});case u.default.lineString:return r=e.coordinates,n.points=r,r=d.projectPoints(n),new s.LineString({coordinates:r,spatialReference:new s.SpatialReference(t)});case u.default.multiLineString:r=e.coordinates;for(var i=[],o=0;o<r.length;o++)n.points=r[o],i.push(d.projectPoints(n));return new s.MultiLineString({coordinates:i,spatialReference:new s.SpatialReference(t)});case u.default.polygon:r=e.coordinates;for(var a=[],l=0;l<r.length;l++)n.points=r[l],a.push(d.projectPoints(n));return new s.Polygon({coordinates:a,spatialReference:new s.SpatialReference(t)});case u.default.multiPolygon:r=e.coordinates;for(var c=[],h=0;h<r.length;h++){for(var f=[],p=0;p<r[h].length;p++)n.points=r[h][p],f.push(d.projectPoints(n));c.push(f)}return new s.MultiPolygon({coordinates:c,spatialReference:new s.SpatialReference(t)});case u.default.circle:return r=[[e.center[0],e.center[1],e.center[2]]],n.points=r,r=d.projectPoints(n),new s.Circle({center:r[0],radius:e.radius,radiusUnit:e.radiusUnit});case u.default.extent:return r=[[e.xmin,e.ymin,e.zmin],[e.xmax,e.ymax,e.zmax]],n.points=r,r=d.projectPoints(n),new s.Extent({xmin:r[0][0],ymin:r[0][1],zmin:r[0][2],xmax:r[1][0],ymax:r[1][1],zmax:r[1][2],spatialReference:new s.SpatialReference(t)});default:return e}},d.project=function(e,t){if(e instanceof Array){for(var r=[],n=0;n<e.length;n++)r.push(d.projectGeometry(e[n],t));return r}if(e.spatialReference.isGeographic){var i=function(e){return e>89.99999999?e=89.99999999:e<-89.99999999&&(e=-89.99999999),e};e.coordinates&&e.coordinates.length>1&&(e.coordinates[1]=i(e.coordinates[1])),e.ymax=i(e.ymax),e.ymin=i(e.ymin)}return d.projectGeometry(e,t)},d.isCustomWKID=function(e){return e===h.default.gcj02ll||e===h.default.gcj02mc||e===h.default.bd09ll||e===h.default.bd09mc},d._toCustomWkidPoint=function(e,t,r){var n=void 0,o=d.getEPSGByWKID(4326).strProject,s=(0,i.default)(e,o,r);if(t===h.default.bd09ll)n=l.default.wgs84tobd09(s[0],s[1]);else if(t===h.default.bd09mc){var u=l.default.wgs84tobd09(s[0],s[1]);u[0]=Math.min(u[0],180),u[0]=Math.max(u[0],-180),u[1]=Math.min(u[1],74.000022),u[1]=Math.max(u[1],-71.988531);var f=(new c.default).convertLL2MC({lng:u[0],lat:u[1]});n=[f.lng,f.lat]}else if(t===h.default.gcj02ll)n=l.default.wgs84togcj02(s[0],s[1]);else if(t===h.default.gcj02mc){var p=l.default.wgs84togcj02(s[0],s[1]);n=(0,i.default)(o,d.getEPSGByWKID(3857).strProject,p)}else a.Log.error("wkid为"+t+"的投影方式未定义!");return n},d._fromCustomWkidPoint=function(e,t,r){var n=void 0,o=d.getEPSGByWKID(4326).strProject;if(e===h.default.bd09ll){var s=l.default.bd09towgs84(r[0],r[1]);n=(0,i.default)(o,t,s)}else if(e===h.default.bd09mc){var u=(new c.default).convertMC2LL({lng:r[0],lat:r[1]});n=l.default.bd09towgs84(u.lng,u.lat)}else if(e===h.default.gcj02ll){var f=l.default.gcj02towgs84(r[0],r[1]);n=(0,i.default)(o,t,f)}else if(e===h.default.gcj02mc){var p=(0,i.default)(d.getEPSGByWKID(3857).strProject,o,r),y=l.default.gcj02towgs84(p[0],p[1]);n=(0,i.default)(d.getEPSGByWKID(4326).strProject,t,y)}else a.Log.error("wkid为"+e+"的投影方式未定义!");return n},d._CustomWkidToCustomWkidPoint=function(e,t,r){var n=void 0,i=d.getEPSGByWKID(4326).strProject;if(e===h.default.bd09ll){var o=d._fromCustomWkidPoint(e,i,r);n=d._toCustomWkidPoint(i,t,o)}else a.Log.error("wkid为"+e+"的投影方式未定义!");return n},d.getProj=function(e,t){return i.default.defs(e,t),(0,i.default)(e)},t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(5)),u=r(1),l=f(r(113)),c=f(r(52)),h=r(163);function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));e=(0,u.defaultValue)(e,{}),r.styleOrigin=void 0,r.symbolLayers=new l.default;var o=(0,u.defaultValue)(e.symbolLayers,[]);if(o instanceof Array&&o.length>0)for(var s=0;s<o.length;s++)r.symbolLayers.add((0,h.createSymbol3DLayer)(o[s]));return r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=[];return this.symbolLayers.forEach(function(t){e.push(t.toJSON())}),{type:this.type,styleOrigin:this.styleOrigin,symbolLayers:e}}}]),t}(c.default);t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(r(11)),i=v(r(10)),o=v(r(3)),a=v(r(0)),s=v(r(2)),u=v(r(4)),l=v(r(7)),c=v(r(5)),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(33)),f=v(r(29)),d=r(1),p=r(6),y=v(r(34)),g=v(r(54)),m=r(42);function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,d.defaultValue)(e,{}),r.coordinates=(0,d.defaultValue)(e.coordinates,[]),r.type=p.GeometryType.polygon,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");for(var n=0;n<r.coordinates.length;n++){var i=r.coordinates[n];if(i.length<4)throw new Error("每个环至少有四个点");if(i[i.length-1].length!==i[0].length)throw new Error("首尾点维度不相等");for(var s=0;s<i[i.length-1].length;s++)if(i[i.length-1][s]!==i[0][s])throw new Error("第一个位置和最后一个位置不相等")}return 3===r.coordinates[0][0].length&&(r.hasZ=!0),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"addRing",value:function(e){if(!Array.isArray(e))throw new Error("传入参数错误");var t=[];return e.forEach(function(e){t.push(y.default.toCoordinates(e))}),this.coordinates.push(t),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removeRing",value:function(e){if(e=Number(e),!this._isValidate(e,0))return null;var t=JSON.parse((0,i.default)(this._cloneCoordinates()[e]));this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates));for(var r=[],n=0;n<t.length;n++){var o=new y.default({coordinates:t[n]});r.push(o)}return r}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent.toJSON(),e.centroid=this.centroid.toJSON(),e}},{key:"contains",value:function(e){if(!e)throw new Error("传入参数错误");var t=h.polygon(this._cloneCoordinates()),r=h.point(y.default.toCoordinates(e));return h.booleanPointInPolygon(r,t)}},{key:"getPoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this._cloneCoordinates()[e];return new y.default({coordinates:r[t]})}},{key:"insertPoint",value:function(e,t,r){if(!this._isValidate(e,t))return null;var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,0,r._cloneCoordinates()),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this.clone(),n=r.coordinates[e],o=new y.default({coordinates:n[t]});return Array.isArray(n)&&n.splice(t,1),this.coordinates=r.coordinates,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),o}},{key:"setPoint",value:function(e,t,r){if(!this._isValidate(e,t))return this;r instanceof y.default&&(r=r._cloneCoordinates());var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,1,r),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"toXMl",value:function(){return""}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++){for(var r=this.coordinates[t],n=0;n<r.length;n++)for(var i=r[n],o=0;o<i.length;o++)e+=i[o]+",";e=e.substring(0,e.length-1),e+="|"}return e.substring(0,e.length-1)}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t={Rings:[],GID:0},r={},n=this.coordinates,i=0;i<n.length;i++){r={Arcs:[]};for(var o=[],a=0;a<n[i].length;a++){var s=n[i][a];o.push({x:s[0],y:s[1]})}r.Arcs.push({Dots:o,ArcID:i}),t.Rings.push(r)}return e.push(t),{RegGeom:e}}},{key:"getIGSType",value:function(){return p.IGSGeometryType.polygon}},{key:"toDots",value:function(){for(var e=[],t=this.coordinates[0],r=0;r<t.length;r++)e.push({x:t[r][0],y:t[r][1]});return e}},{key:"isClockwise",value:function(e){var t=[];if(!(e instanceof Array))throw new Error("ring不是数组类型!");for(var r=0;r<e.length;r++)if(e[r]instanceof y.default)t.push(e[r].coordinates);else{if(!(e[r]instanceof Array&&e[r].length>=2))throw new Error("ring中的点不是数组或Point类型!");t.push(e[r])}var n=h.lineString(t);return h.booleanClockwise(n)}},{key:"_isValidate",value:function(e,t){var r=this.coordinates.length;if(!(0,d.isNumber)(e)||e<0||e>=r)return!1;var n=this.coordinates[e].length;return!(!(0,d.isNumber)(t)||t<0||t>=n)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,m.calcExtent)(e,t,p.GeometryType.polygon,this.spatialReference)}},{key:"_isSelfIntersecting",value:function(){var e=h.polygon(this.coordinates);return h.kinks(e).features.length>0}},{key:"_setCentroid",value:function(){var e=h.polygon(this.coordinates),t=h.centroid(e);if(this.hasZ){for(var r=0,n=0,i=0;i<this.coordinates.length;i++){r+=this.coordinates[i].length;for(var o=0;o<this.coordinates[i].length;o++)n+=this.coordinates[i][o][2]}return n/=r,new y.default({coordinates:[t.geometry.coordinates[0],t.geometry.coordinates[1],n],spatialReference:this.spatialReference})}return new y.default({coordinates:[t.geometry.coordinates[0],t.geometry.coordinates[1]],spatialReference:this.spatialReference})}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromExtent",value:function(e){var r=[];if(e instanceof g.default){var n=[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]];if(e&&e.hasZ){var i=e.zmin+.5*(e.zmax-e.zmin);n.forEach(function(e){i.push(e)})}r.push(n)}return new t({coordinates:r,spatialReference:e.spatialReference.clone()})}},{key:"fromJSON",value:function(e){return new t(e=(0,d.defaultValue)(e,{}))}}]),t}(f.default);(0,n.default)(_.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}},isSelfIntersecting:{configurable:!1,get:function(){return this._isSelfIntersecting()}},centroid:{configurable:!1,get:function(){return this._setCentroid()}}}),t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertIGSClippingString=t.ServiceConfigResponseInterceptors=t.ServiceConfigRequestInterceptors=t.ServiceConfigToken=t.formatBaseUrl=t.getWFSFeature=t.getParametersObject=t.getWFSInfoFromXML=t.getWMTSInfoFromXML=t.getDoc=t.getWMSInfoFromXML=t.checkPathParameters=t.getParameters=t.checkParam=t.fromQueryResult=void 0;var n=c(r(10)),i=c(r(23)),o=r(9),a=c(r(89)),s=r(1),u=r(8),l=r(44);function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t,r){for(var a="",u=function(u){var l=(0,s.defaultValue)(t[e[u]],r[e[u]].default);if(void 0!==l){var c="";if((0,s.isNull)(r[e[u]].process))switch(r[e[u]].type){case"String":case"Number":case"Boolean":a+="&"+(r[e[u]].alias||e[u])+"="+encodeURIComponent(l);break;case"Geometry":case"Point":case"MultiPoint":case"Extent":case"Circle":case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":a+="&"+e[u]+"="+encodeURIComponent(l.toString())+"&geometryType="+encodeURIComponent(l.getIGSType());break;case"layerDefs":c="[";for(var h=function(e){l[e]instanceof Object&&!(l[e]instanceof Array)&&(c+="{",(0,i.default)(l[e]).forEach(function(t){l[e].hasOwnProperty(t)&&(c+='"'+t+'":"'+l[e][t]+'",')}),c=c.substring(0,c.length-1),c+="},")},f=0;f<l.length;f++)h(f);l.length>0&&(c=c.substring(0,c.length-1)),"[]"!=(c+="]")&&(a+="&"+e[u]+"="+encodeURIComponent(c));break;case"OutStatistics":c+="[";for(var d=function(e){l[e]instanceof Object&&!(l[e]instanceof Array)&&(c+="{",(0,i.default)(l[e]).forEach(function(t){l[e].hasOwnProperty(t)&&("statisticType"!==t&&"onStatisticField"!==t&&"outStatisticFieldName"!==t||(c+='"'+t+'":"'+l[e][t]+'",'))}),c=c.substring(0,c.length-1),c+="},")},p=0;p<l.length;p++)d(p);l.length>0&&(c=c.substring(0,c.length-1)),"[]"!=(c+="]")&&(a+="&"+e[u]+"="+encodeURIComponent(c));break;case"FeatureSet":c="&"+e[u]+"="+encodeURIComponent((0,n.default)(t[e[u]].toGeoJSON())),a+=c;break;case"FeatureCollection":a+="&"+e[u]+"="+encodeURIComponent((0,n.default)(t[e[u]]));break;default:a+="&"+e[u]+"="+encodeURIComponent(l)}else if("string"==typeof r[e[u]].process)switch(r[e[u]].process){case"igsGeometryServer":a+="&"+e[u]+"="+encodeURIComponent((0,n.default)(l.toGeoJSON()))+"&srs=",l.spatialReference?l.spatialReference instanceof o.SpatialReference?a+=encodeURIComponent(l.spatialReference.toString()):l.spatialReference instanceof Object&&!(l.spatialReference instanceof Array)?a+=encodeURIComponent(l.spatialReference.wkt?l.spatialReference.wkt:"EPSG:4326"):"string"==typeof l.spatialReference&&(a+=encodeURIComponent(l.spatialReference)):a+=encodeURIComponent("EPSG:4326");break;case"igsGeometryServerNoSRS":a+="&"+e[u]+"="+encodeURIComponent((0,n.default)(l.toGeoJSON()));break;case"igsRange$":a+="&"+(r[e[u]].alias||e[u])+"="+encodeURIComponent(l.toIGSOldString());break;case"igsGeometryOld":"Point"===l.type||"LineString"===l.type?"Point"===l.type&&!0===l.hasZ?a+="&"+e[u]+"="+encodeURIComponent(l.toString()+","+(t.distance||r.distance.default))+"&geometryType="+encodeURIComponent(l.getIGSType()):a+="&"+e[u]+"="+encodeURIComponent(l.toString()+";"+(t.distance||r.distance.default))+"&geometryType="+encodeURIComponent(l.getIGSType()):a+="&"+e[u]+"="+encodeURIComponent(l.toString())+"&geometryType="+encodeURIComponent(l.getIGSType());break;default:a+="&"+e[u]+"="+encodeURIComponent(l.toString())+"&geometryType="+encodeURIComponent(l.getIGSType())}else r[e[u]].process instanceof Function&&(a+=r[e[u]].process(t[e[u]],r[e[u]].default))}},l=0;l<e.length;l++)u(l);return a}function f(e,t,r){for(var i={},o=0;o<e.length;o++){var a=(0,s.defaultValue)(t[e[o]],r[e[o]].default);if(void 0!==a)if((0,s.isNull)(r[e[o]].process))switch(r[e[o]].type){case"String":case"Number":case"Boolean":default:i[r[e[o]].alias||e[o]]=a;break;case"Geometry":case"Point":case"MultiPoint":case"Extent":case"Circle":case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":i[r[e[o]].alias||e[o]]=a.toString()+"&geometryType="+a.getIGSType()}else if("string"==typeof r[e[o]].process)switch(r[e[o]].process){case"igsDots":i[r[e[o]].alias||"Dots"]=a.toDots();break;case"toOldIGSGeometry":switch(a.type){case"Point":i[r[e[o]].alias||"Pnt"]=a.toOldIGSGeometry().PntGeom[0];break;case"LineString":i[r[e[o]].alias||"Line"]=a.toOldIGSGeometry().LinGeom[0];break;case"Polygon":i[r[e[o]].alias||"Reg"]=a.toOldIGSGeometry().RegGeom[0]}break;default:i[r[e[o]].alias||e[o]]=a}else r[e[o]].process instanceof Function&&(i[e[o]]=r[e[o]].process(t[e[o]],r[e[o]].default))}return encodeURIComponent((0,n.default)(i))}function d(e,t){if("function"==typeof e)return e(t);var r=void 0;switch(e){case"String":r=(0,s.isString)(t);break;case"Number":r=(0,s.isNumber)(t);break;case"Boolean":r=(0,s.isBoolean)(t);break;case"Extent":r=t instanceof o.Extent;break;case"Geometry":r=t instanceof o.Geometry;break;case"Point":r=t instanceof o.Point;break;case"Polygon":r=t instanceof o.Polygon;break;case"MultiPolygon":r=t instanceof o.MultiPolygon;break;case"Circle":r=t instanceof o.Circle;break;case"LineString":r=t instanceof o.LineString;break;case"MultiLineString":r=t instanceof o.MultiLineString;break;case"LineString | MultiLineString":r=t instanceof o.LineString||t instanceof o.MultiLineString;break;case"Polygon | Extent":r=t instanceof o.Polygon||t instanceof o.Extent;break;case"Array":r=t instanceof Array;break;case"Object":r=t instanceof Object;break;case"OutStatistics":r=function(e){if(!(e instanceof Array))return!1;for(var t=0;t<e.length;t++){if(!(e[t]instanceof Object))return!1;if(e[t]instanceof Object&&e[t]instanceof Array)return!1;if(!e[t].hasOwnProperty("statisticType")||!e[t].hasOwnProperty("onStatisticField")||!e[t].hasOwnProperty("outStatisticFieldName"))return!1;if((0,s.isNull)(e[t].statisticType)||(0,s.isNull)(e[t].onStatisticField)||(0,s.isNull)(e[t].outStatisticFieldName))return!1;if(!(0,s.isString)(e[t].statisticType)||!(0,s.isString)(e[t].onStatisticField)||!(0,s.isString)(e[t].outStatisticFieldName))return!1}return!0}(t);break;case"FeatureSet":r=t instanceof u.FeatureSet;break;case"FeatureCollection":r=t instanceof Object&&!(t instanceof Array)&&t.hasOwnProperty("features")&&"FeatureCollection"===t.type;break;case"Color":r=t instanceof u.Color;break;default:r=(0,s.isString)(t)}return r}function p(e,t){var r=void 0;if("1.1.1"===t)(r={minx:e.attributes.minx.value,miny:e.attributes.miny.value,maxx:e.attributes.maxx.value,maxy:e.attributes.maxy.value}).crs=e.attributes.SRS.value;else{var n=e.attributes.CRS.value,i=Number(n.split(":")[1]);(r=i>=2327&&i<=2442||i>=4491&&i<=4554||i>=21413&&i<=21423||i>=21473&&i<=21483?{minx:e.attributes.miny.value,miny:e.attributes.minx.value,maxx:e.attributes.maxy.value,maxy:e.attributes.maxx.value}:4326===i||4214===i||4490===i||4610===i?{minx:e.attributes.miny.value,miny:e.attributes.minx.value,maxx:e.attributes.maxy.value,maxy:e.attributes.maxx.value}:{minx:e.attributes.minx.value,miny:e.attributes.miny.value,maxx:e.attributes.maxx.value,maxy:e.attributes.maxy.value}).crs=e.attributes.CRS.value}return r}function y(e,t,r){if("Name"===e.nodeName)t.name=e.innerHTML;else if("Abstract"===e.nodeName)t.abstract=e.innerHTML;else if("Title"===e.nodeName){var n=e.innerHTML;n.indexOf(":")>-1&&(n=n.split(":")[1]),t.title=n}else if("SRS"===e.nodeName)t.crs.push(e.innerHTML);else if("CRS"===e.nodeName)t.crs.push(e.innerHTML);else if("BoundingBox"===e.nodeName){var i;i=r.corporation===u.WMTSCorporation.corporationZD?p(e,r.version):(r.corporation,u.WMTSCorporation.corporationArcGIS,p(e,r.version)),t.boundingBox.push(i)}else"LatLonBoundingBox"===e.nodeName?t.latLonBoundingBox={minx:e.attributes.miny.value,miny:e.attributes.minx.value,maxx:e.attributes.maxy.value,maxy:e.attributes.maxx.value}:"EX_GeographicBoundingBox"===e.nodeName&&(t.geographicBoundingBox={westBoundLongitude:e.childNodes[0].innerHTML,eastBoundLongitude:e.childNodes[1].innerHTML,southBoundLatitude:e.childNodes[2].innerHTML,northBoundLatitude:e.childNodes[3].innerHTML})}function g(e){var t={attributes:{}};if(e.attributes)for(var r=0;r<e.attributes.length;r++)t.attributes[e.attributes[r].nodeName]=e.attributes[r].value;if(t.children={},e.childNodes){for(var n=0;n<e.childNodes.length;n++)t.children[e.childNodes[n].nodeName]=g(e.childNodes[n]);0===e.childNodes.length&&(t[e.nodeName]=e.textContent)}return t}function m(e){var t="EPSG:4326";if(!e)return t;var r=e.getAttribute("srsName");if(!r)return t;var n=r.match(/EPSG::\d+/);return n[0]&&(t="EPSG:"+n[0].replace("EPSG::","")),t}t.fromQueryResult=function(e){function t(e){if(!e.hasOwnProperty("SFEleArray")||!e.hasOwnProperty("AttStruct")||e.hasOwnProperty("SFEleArray")&&!e.SFEleArray||e.hasOwnProperty("AttStruct")&&!e.AttStruct)return[];for(var t=e.SFEleArray,r=e.AttStruct,n=new u.FeatureSet({spatialReference:new o.SpatialReference("EPSG:0000")}),i=void 0,a=void 0,s=void 0,l=0;l<t.length;l++){for(var c={},h=0;h<t[l].AttValue.length;h++)""!==t[l].AttValue[h]&&(c[r.FldName[h]]=t[l].AttValue[h]);if(t[l].fGeom)switch(t[l].ftype){case 1:var f=t[l].fGeom.PntGeom;s=[];for(var d=0;d<f.length;d++){var p=f[d].Dot;s.push([p.x,p.y])}a=new o.MultiPoint({coordinates:s});break;case 2:var y=t[l].fGeom.LinGeom;s=[];for(var g=0;g<y.length;g++){for(var m=y[g].Line.Arcs[0].Dots,v=[],_=0;_<m.length;_++)v.push([m[_].x,m[_].y]);s.push(v)}a=new o.MultiLineString({coordinates:s});break;case 3:default:var S=t[l].fGeom.RegGeom;s=[];for(var x=0;x<S.length;x++){for(var b=S[x].Rings[0].Arcs[0].Dots,w=[],k=0;k<b.length;k++)w.push([b[k].x,b[k].y]);for(var M=[w],E=1;E<S[x].Rings.length;E++){for(var I=S[x].Rings[E].Arcs[0].Dots,T=[],L=0;L<I.length;L++)T.push([I[L].x,I[L].y]);M.push(T)}s.push(M)}a=new o.MultiPolygon({coordinates:s})}var C=void 0;if(t[l].GraphicInfo){var P=t[l].GraphicInfo;switch(P.InfoType){case 1:C=P.PntInfo;break;case 2:C=P.LinInfo;break;case 3:default:C=P.RegInfo}}i=new u.Feature({id:t[l].FID,attributes:c,geometry:a,symbol:C}),n.features.push(i)}return n}if(e instanceof Array){for(var r=[],n=0;n<e.length;n++)r.push(t(e[n]));return r}return[t(e)]},t.checkParam=function(e,t){var r=!0,n="",o="",u=void 0,l="";try{var c=!0;if((0,i.default)(t).forEach(function(r){if(e.hasOwnProperty(r)&&t.hasOwnProperty(r)||t.hasOwnProperty(r)&&t[r].required){if(t[r].required)if((0,s.isNull)(t[r].oneOf)){if((0,s.isNull)(e[r]))throw u=r,new Error("isNull")}else{var n=!1;(0,s.isNull)(e[r])&&(n=!0);for(var i=0;i<t[r].oneOf.length;i++)if(!(0,s.isNull)(e[t[r].oneOf[i]])){n=!1;break}if(n)throw u=r+","+t[r].oneOf.toString(),new Error("isNull")}if((0,s.isNull)(e[r])||(c=d(t[r].type,e[r])),!c)throw u=r,new Error("wrongType")}}),c){var p=[];(0,i.default)(t).forEach(function(e){t.hasOwnProperty(e)&&p.push(e)}),l=e.useObject?f(p,e,t):h(p,e,t)}}catch(e){switch(r=!1,e.message){case"isNull":n=u+"值不能为空!",o="isNull",a.default.error(n);break;case"wrongType":n=u+"类型错误!",o="isWrongType",a.default.error(n);break;default:n=u+"值不能为空!",o="isNull",a.default.error(n)}}return{isChecked:r,errorMessage:n,errorType:o,queryString:l}},t.getParameters=h,t.checkPathParameters=function(e,t){var r="",n="",o=!0;try{(0,i.default)(e).forEach(function(n){if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n))throw r="isNull",o=!1,new Error(n+"不能为空!");var i=t[n];if((0,s.isNull)(i))throw r="isNull",o=!1,new Error(n+"不能为空!");if(!d(e[n].type,t[n]))throw r="isWrongType",o=!1,new Error(n+"类型错误!")}})}catch(e){return a.default.error(e),{isChecked:o,errorMessage:n=e,errorType:r}}return{isChecked:o,errorMessage:n,errorType:r}},t.getWMSInfoFromXML=function(e,t,r){var n=(0,l.initCorporationType)(r),i="1.0";n===u.WMTSCorporation.corporationZD&&r.indexOf("igs/rest/ogc/doc")<0&&(i="2.0");for(var o={boundingBox:[],layer:[],crs:[]},a=e.childNodes,s=0;s<a.length;s++)if(("WMT_MS_Capabilities"===a[s].nodeName||"WMS_Capabilities"===a[s].nodeName)&&a[s].childNodes.length>0){for(var c=a[s].childNodes,h=0;h<c.length;h++)if("Capability"===c[h].nodeName){for(var f=c[h].childNodes,d=0;d<f.length;d++)if("Layer"===f[d].nodeName){for(var p=f[d].childNodes,g=0;g<p.length;g++)if("Layer"===p[g].nodeName){for(var m=p[g].childNodes,v={boundingBox:[],crs:[]},_=0;_<m.length;_++)y(m[_],v,{corporation:n,version:t,igsVersion:i});o.layer.push(v)}else y(p[g],o,{corporation:n,version:t,igsVersion:i});break}break}break}return o},t.getDoc=function(e){var t=null;return window.DOMParser?t=(new DOMParser).parseFromString(e,"text/xml"):((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)),t},t.getWMTSInfoFromXML=function(e){for(var t=e.childNodes,r={layers:[],tileMatrixSets:[],XMLInfo:{}},n=0;n<t.length;n++)if("Capabilities"===t[n].nodeName){for(var i=t[n].childNodes,o=0;o<i.length;o++){if("Contents"===i[o].nodeName)for(var a=i[o].childNodes,s=0;s<a.length;s++)if("Layer"===a[s].nodeName){for(var u={infoFormat:[],tileMatrixSetLink:[]},l=a[s].childNodes,c=0;c<l.length;c++)if("ows:Title"===l[c].nodeName)u.title=l[c].innerHTML;else if("ows:Identifier"===l[c].nodeName)u.identifier=l[c].innerHTML;else if("ows:BoundingBox"===l[c].nodeName){for(var h={},f=0;f<l[c].childNodes.length;f++)"ows:LowerCorner"===l[c].childNodes[f].nodeName&&(h.lowerCorner=l[c].childNodes[f].innerHTML),"ows:UpperCorner"===l[c].childNodes[f].nodeName&&(h.upperCorner=l[c].childNodes[f].innerHTML);u.boundingBox=h}else if("Style"===l[c].nodeName){for(var d={},p=0;p<l[c].childNodes.length;p++)"ows:Identifier"===l[c].childNodes[p].nodeName&&(d.identifier=l[c].childNodes[p].innerHTML),"ows:Title"===l[c].childNodes[p].nodeName&&(d.title=l[c].childNodes[p].innerHTML);u.Style=d}else if("Format"===l[c].nodeName)u.format=l[c].innerHTML;else if("InfoFormat"===l[c].nodeName)u.infoFormat.push(l[c].innerHTML);else if("TileMatrixSetLink"===l[c].nodeName){for(var y=l[c].childNodes,m={tileMatrixSetLimits:[]},v=0;v<y.length;v++)if("TileMatrixSet"===y[v].nodeName)m.tileMatrixSet=y[v].innerHTML;else if("TileMatrixSetLimits"===y[v].nodeName)for(var _=y[v].childNodes,S=0;S<_.length;S++){for(var x=_[S].childNodes,b={},w=0;w<x.length;w++)"TileMatrix"===x[w].nodeName?b.tileMatrix=x[w].innerHTML:"MinTileRow"===x[w].nodeName?b.minTileRow=x[w].innerHTML:"MaxTileRow"===x[w].nodeName?b.maxTileRow=x[w].innerHTML:"MinTileCol"===x[w].nodeName?b.minTileCol=x[w].innerHTML:"MaxTileCol"===x[w].nodeName&&(b.maxTileCol=x[w].innerHTML);m.tileMatrixSetLimits.push(b)}u.tileMatrixSetLink.push(m)}r.layers.push(u)}else if("TileMatrixSet"===a[s].nodeName){for(var k=a[s].childNodes,M={tileMatrix:[]},E=0;E<k.length;E++)if("ows:Title"===k[E].nodeName)M.title=k[E].innerHTML;else if("ows:Abstract"===k[E].nodeName)M.abstract=k[E].innerHTML;else if("ows:Identifier"===k[E].nodeName)M.identifier=k[E].innerHTML;else if("ows:SupportedCRS"===k[E].nodeName)M.supportedCRS=k[E].innerHTML;else if("TileMatrix"===k[E].nodeName){for(var I=k[E].childNodes,T={},L=0;L<I.length;L++)"ows:Identifier"===I[L].nodeName?T.identifier=I[L].innerHTML:"ScaleDenominator"===I[L].nodeName?T.scaleDenominator=I[L].innerHTML:"TopLeftCorner"===I[L].nodeName?T.topLeftCorner=I[L].innerHTML:"TileWidth"===I[L].nodeName?T.tileWidth=I[L].innerHTML:"TileHeight"===I[L].nodeName?T.tileHeight=I[L].innerHTML:"MatrixWidth"===I[L].nodeName?T.matrixWidth=I[L].innerHTML:"MatrixHeight"===I[L].nodeName&&(T.matrixHeight=I[L].innerHTML);M.tileMatrix.push(T)}r.tileMatrixSets.push(M)}r.XMLInfo[i[o].nodeName]=g(i[o])}break}return r},t.getWFSInfoFromXML=function(e){for(var t=e.childNodes,r={featureTypeList:[],version:"1.0.0"},n=e.firstChild.attributes,i=0;i<n.length;i++)if(n[i].name&&"version"===n[i].name.toLowerCase()){r.version=n[i].nodeValue;break}for(var o=0;o<t.length;o++)if("wfs:WFS_Capabilities"===t[o].nodeName)for(var a=t[o].childNodes,s=0;s<a.length;s++)if("FeatureTypeList"===a[s].nodeName){for(var u=a[s].childNodes,l=0;l<u.length;l++)if("FeatureType"===u[l].nodeName){for(var c={},h=u[l].childNodes,f=0;f<h.length;f++)"name"===h[f].nodeName.toLowerCase()?c.name=h[f].innerHTML:"title"===h[f].nodeName.toLowerCase()?c.title=h[f].innerHTML:"abstract"===h[f].nodeName.toLowerCase()?c.abstract=h[f].innerHTML:"defaultsrs"===h[f].nodeName.toLowerCase()?c.defaultSRS=h[f].innerHTML:"ows:wgs84boundingbox"===h[f].nodeName.toLowerCase()&&(c.WGS84BoundingBox={lowerCorner:h[f].childNodes[0].innerHTML,UpperCorner:h[f].childNodes[1].innerHTML});r.featureTypeList.push(c)}break}return r},t.getParametersObject=f,t.getWFSFeature=function(e,t){var r=e.childNodes[0].childNodes,n=new u.FeatureSet;t=(0,s.defaultValue)(t,"2.0.0");for(var i=0;i<r.length;i++){for(var a=r[i].childNodes[0].childNodes,l={},c=void 0,h=0;h<a.length;h++)if(a[h].nodeName.indexOf(":the_geom")>-1){var f=a[h],d=m(f.childNodes[0]),p=Number(d.split(":")[1]);if(n.spatialReference=new o.SpatialReference(d),f.childNodes[0].nodeName.indexOf("MultiSurface")>-1){var y=f.childNodes[0].childNodes;if(1===y.length){for(var g=y[0].childNodes[0].childNodes,v=0;v<g.length;v++)if(g[v].nodeName.indexOf("exterior")>-1){var _=g[v].childNodes[0].childNodes[0].innerHTML.split(" "),S=[];switch(t){case"2.0.0":case"1.1.0":default:for(var x=0;x<_.length;x+=2)[4326,4490,4610,4214].indexOf(p)>-1||p>=2327&&p<=2442||p>=4491&&p<=4554||p>=21413&&p<=21423||p>=21473&&p<=21483?S.push([Number(_[x+1]),Number(_[x])]):S.push([Number(_[x]),Number(_[x+1])]);break;case"1.0.0":for(var b=0;b<_.length;b+=2)S.push([Number(_[b]),Number(_[b+1])])}c=new o.Polygon({coordinates:[S],spatialReference:new o.SpatialReference(d)})}}else y.length}else if(f.childNodes[0].nodeName.indexOf("MultiCurve")>-1){var w=f.childNodes[0].childNodes;if(1===w.length){for(var k=w[0].childNodes[0].childNodes,M=0;M<k.length;M++)if(k[M].nodeName.indexOf("posList")>-1){var E=k[M].innerHTML.split(" "),I=[];switch(t){case"2.0.0":case"1.1.0":default:if([4326,4490,4610,4214].indexOf(p)>-1||p>=2327&&p<=2442||p>=4491&&p<=4554||p>=21413&&p<=21423||p>=21473&&p<=21483)for(var T=0;T<E.length;T+=2)I.push([Number(E[T+1]),Number(E[T])]);else for(var L=0;L<E.length;L+=2)I.push([Number(E[L]),Number(E[L+1])]);break;case"1.0.0":for(var C=0;C<E.length;C+=2)I.push([Number(E[C]),Number(E[C+1])])}c=new o.LineString({coordinates:I,spatialReference:new o.SpatialReference(d)})}}else w.length}else if(f.childNodes[0].nodeName.indexOf("MultiPoint")>-1){var P=f.childNodes[0].childNodes;if(1===P.length){var N=P[0].childNodes[0].childNodes[0].innerHTML.split(" "),O=void 0;switch(t){case"2.0.0":case"1.1.0":default:O=[4326,4490,4610,4214].indexOf(p)>-1||p>=2327&&p<=2442||p>=4491&&p<=4554||p>=21413&&p<=21423||p>=21473&&p<=21483?[Number(N[1]),Number(N[0])]:[Number(N[0]),Number(N[1])];break;case"1.0.0":O=[Number(N[0]),Number(N[1])]}c=new o.Point({coordinates:O,spatialReference:new o.SpatialReference(d)})}else P.length}}else{var R=a[h].nodeName;l[R=R.split(":")[1]]=a[h].innerHTML}var V=new u.Feature({geometry:c,attributes:l});n.features.push(V)}return n},t.formatBaseUrl=function(e){var t=e.indexOf("?");if(t<0)return{baseUrl:e,params:{}};var r=e.substring(0,t),n=e.substring(t+1,e.length);return{baseUrl:r,paramString:n?"&"+n:""}},t.ServiceConfigToken=function(e){var t="";return e&&e.tokenKey&&e.tokenValue&&(t=e.tokenKey+"="+e.tokenValue),t},t.ServiceConfigRequestInterceptors=function(e,t){t=(0,s.defaultValue)(t,"");var r=e.request.interceptors,n=decodeURI(t);if(r&&r instanceof Array)for(var i="",o=0;o<r.length;o++){var a=r[o].urls,u=r[o].before;if(a){if("string"==typeof a){var l=decodeURI(a);if(n.indexOf(l)>-1&&u&&u instanceof Function){var c=u(t);c&&(i+=c)}}else if(a instanceof Array)for(var h=0;h<a.length;h++){var f=decodeURI(a[h]);if(n.indexOf(f)>-1&&u&&u instanceof Function){var d=u(t);d&&(i+=d)}}}else if(u&&u instanceof Function){var p=u(t);p&&(i+=p)}i&&(t=i)}return t},t.ServiceConfigResponseInterceptors=function(e,t,r){t=(0,s.defaultValue)(t,"");var n=e.request.interceptors,i=decodeURI(t);if(n&&n instanceof Array)for(var o=0;o<n.length;o++){var a=n[o].urls,u=n[o].after;if(!a||a instanceof Array&&0===a.length){if(u&&u instanceof Function){var l=u(r);if(l)return l}}else if("string"==typeof a){var c=decodeURI(a);if(i.indexOf(c)>-1&&u&&u instanceof Function){var h=u(r);if(h)return h}}else if(a instanceof Array)for(var f=0;f<a.length;f++){var d=decodeURI(a[f]);if(i.indexOf(d)>-1&&u&&u instanceof Function){var p=u(r);if(p)return p}}}return r},t.convertIGSClippingString=function(e){if(!Array.isArray(e)||0===e.length)return"";var t=[];return e.forEach(function(e){var r="";e.forEach(function(e){r+=e[0]+","+e[1]+","}),r=r.substring(0,r.length-1),t.push(r)}),1===t.length?t[0]:t.join("|")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),t=(0,i.defaultValue)(t,{}),(0,i.extend)(this,t),this.Caption=void 0!==t.Caption?t.Caption:null,this.IsVisible=void 0===t.IsVisible||t.IsVisible,this.MaxScale=void 0!==t.MaxScale?parseFloat(t.MaxScale):0,this.MinScale=void 0!==t.MinScale?parseFloat(t.MinScale):0,this.RegInfo=void 0!==t.RegInfo?t.RegInfo:null,this.LinInfo=void 0!==t.LinInfo?t.LinInfo:null,this.PntInfo=void 0!==t.PntInfo?t.PntInfo:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createVisualVariable=t.OpacityVariable=t.SizeVariable=t.ColorVariable=t.VisualVariable=void 0;var n=r(1),i=l(r(51)),o=l(r(94)),a=l(r(461)),s=l(r(463)),u=l(r(465));function l(e){return e&&e.__esModule?e:{default:e}}t.VisualVariable=o.default,t.ColorVariable=a.default,t.SizeVariable=s.default,t.OpacityVariable=u.default,t.createVisualVariable=function(e){switch((e=(0,n.defaultValue)(e,{})).type){case i.default.color:return new a.default(e);case i.default.size:return new s.default(e);case i.default.opacity:return new u.default(e);default:n.Log.error("视觉变量传入type类型参数有误!")}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=h(r(0)),i=h(r(2)),o=r(9),a=r(1),s=h(r(95)),u=h(r(67)),l=r(6),c=r(8);function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t,r){var n=e.findIndex(function(e){return e.level===t}),i=e.findIndex(function(e){return e.level===r});return-1===t||-1===i?e:e.slice(n,i+1)}var d=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,null,[{key:"parseTileInfo1",value:function(e){e||a.Log.error("tileInfo未定义");var t=e.tileWidth,r=e.tileHeight,n=e.lods,i=e.originX,l=e.originY,c=e.startLevel,h=e.endLevel;return new u.default({origin:new o.Point({coordinates:[i,l]}),lods:f(n,c,h).map(function(e){return s.default.fromJSON(e)}),size:[t,r]})}},{key:"parseTileInfo2",value:function(e){e||a.Log.error("tileInfo未定义");var t=e.cols,r=e.rows,n=e.dpi,i=e.format,l=e.origin,c=e.lods,h=e.spatialReference,d=e.startLevel,p=e.endLevel;return new u.default({dpi:n,format:i,origin:new o.Point({coordinates:[l.x,l.y],spatialReference:new o.SpatialReference(h)}),lods:f(c,d,p).map(function(e){return s.default.fromJSON(e)}),size:[t,r],spatialReference:new o.SpatialReference(h)})}},{key:"parseArcgisTileInfo",value:function(e){e||a.Log.error("tileInfo未定义");var t=e.cols,r=e.rows,n=e.dpi,i=e.format,l=e.origin,c=e.lods,h=e.spatialReference;return new u.default({dpi:n,format:i,origin:new o.Point({coordinates:[l.x,l.y],spatialReference:new o.SpatialReference({wkid:h.latestWkid||h.wkid})}),lods:c.map(function(e){return s.default.fromJSON(e)}),size:[t,r],spatialReference:new o.SpatialReference({wkid:h.latestWkid||h.wkid})})}},{key:"parseWMSTileInfo",value:function(t){t||a.Log.error("wmsLayer未定义");var r=t.extent,n=Math.max(t.imageWidth,t.imageHeight),i=t.spatialReferences[0];return e.generateTileInfo(r,n,i)}},{key:"generateTileInfo",value:function(e,t,r){e&&t||a.Log.error("动态计算tileInfo传入参数不合法");var n=Math.max(e.ymax-e.ymin,e.xmax-e.xmin)/t,i=[];i.push(n);for(var l=0;l<20;l++)i.push(i[l]/2);var c=new o.Point({coordinates:[e.xmin,e.ymax],spatialReference:r});return new u.default({origin:c,lods:i.map(function(e,t){return s.default.fromJSON({level:t,resolution:e,scale:96*e/.0254})}),size:[t,t],spatialReference:r})}},{key:"parseWebTileLayerInfo",value:function(e,t,r){e||a.Log.error("IGSMapImageLayer未定义"),r=(0,a.defaultValue)(r,2);var n=e.tileSize,i=(t.xmax-t.xmin)/r/n,l=[];l.push(i);for(var c=0;c<19;c++)l.push(l[c]/2);var h=new o.Point({coordinates:[t.xmin,t.ymax],spatialReference:e.spatialReference}),f=1;return e.spatialReference.isGeographic&&(f=111319490.79327358),new u.default({origin:h,lods:l.map(function(e,t){return s.default.fromJSON({level:t,resolution:e,scale:f*(96*e)/.0254})}),size:[n,n],spatialReference:e.spatialReference})}},{key:"createCommonTileInfo",value:function(e){if(e&&e.extent){var t=e.extent,r=t.spatialReference,n=(0,a.defaultValue)(e.origin,new o.Point({coordinates:[t.xmin,t.ymax],spatialReference:r})),i=(0,a.defaultValue)(e.tileSize,256),l=(0,a.defaultValue)(e.minLevel,0),c=(0,a.defaultValue)(e.maxLevel,19),h=(0,a.defaultValue)(e.numberOfMinLevelTilesX,1),f=((0,a.defaultValue)(e.numberOfMinLevelTilesY,1),(t.xmax-t.xmin)/h/i),d=[];d.push(f);for(var p=l;p<c;p++)d.push(d[p]/2);var y=1;return r.isGeographic&&(y=111319490.79327358),new u.default({origin:n,lods:d.map(function(e,t){return s.default.fromJSON({level:t,resolution:e,scale:y*(96*e)/.0254})}),size:[i,i],spatialReference:r})}}},{key:"getLods",value:function(e,t,r){for(var n=Math.max(0,r),i=[],o=2*Math.PI*6378137/360,a=0;a<n;a++){var u,l=e/Math.pow(2,a);u="degree"===t?o*l:96*l/.0254,i.push(new s.default({level:a,resolution:l,scale:u}))}return i}},{key:"getReferenceLayer",value:function(e){for(var t=null,r=null,n=0;n<e.length;n++){var i=e[n];if(i.loaded&&(i.type===l.LayerType.igsTile||i.type===l.LayerType.arcgisTile||i.type===l.LayerType.wmts||i.type===l.LayerType.igsVectorTile||i.type===l.LayerType.arcgisVectorTile||i.type===l.LayerType.webTileLayer)){r=i,t=i.spatialReference;break}}if(!t)for(var o=0;o<e.length;o++){var a=e[o];if(a.loaded&&(a.type===l.LayerType.igsMapImage||a.type===l.LayerType.arcgisMapImage||a.type===l.LayerType.wms||a.type===l.LayerType.igsFeature||a.type===l.LayerType.wfs||a.type===l.LayerType.geojson)){r=a,t=a.spatialReference;break}}return r}},{key:"setLayerSpatialReference",value:function(e,t){t&&e.forEach(function(e){if((e.type===l.LayerType.igsMapImage||e.type===l.LayerType.arcgisMapImage||e.type===l.LayerType.feature)&&e.loaded){var r=!1;e.spatialReference?void 0!==e.spatialReference.wkid&&void 0!==t.wkid?e.spatialReference.wkid!==t.wkid&&(r=!0):e.spatialReference.wkt!==t.wkt&&(r=!0):r=!0,r&&(e.spatialReference=t,e._extentSrc=c.Projection.project(e._extentSrc,t))}})}},{key:"isSameSpatialReference",value:function(e,t){var r=!1,n=void 0,i=void 0,a=void 0,s=void 0,u=void 0,l=void 0;return void 0!==e&&void 0!==t&&(e instanceof o.SpatialReference?(n=e.wkt?e.wkt.toString():void 0,i=e.wkid?e.wkid.toString():void 0):a=e.toString(),t instanceof o.SpatialReference?(s=t.wkt?t.wkt.toString():void 0,u=t.wkid?t.wkid.toString():void 0):l=t.toString()),n&&s&&n===s?r=!0:i&&u&&(i===u||["4326","4490","4610","4214"].indexOf(i)>-1&&["4326","4490","4610","4214"].indexOf(u)>-1||["102113","102100","900913","3857"].indexOf(i)>-1&&["102113","102100","900913","3857"].indexOf(u)>-1)?r=!0:a&&l&&a===l&&(r=!0),r}},{key:"getLevelRangeByTileInfo",value:function(e){if(!e||!Array.isArray(e.lods)||0===e.lods.length)return[0,22];var t=e.lods;return[t[0].level,t[t.length-1].level]}},{key:"getTileInfoByLayer",value:function(t){var r=t.tileInfo;if(t.type===l.LayerType.wmts)r=t.getCurrentTileInfo();else if(t.type===l.LayerType.wms)r=e.parseWMSTileInfo(t,t.extent);else if(t.type===l.LayerType.igsMapImage||t.type===l.LayerType.arcgisMapImage||t.type===l.LayerType.igsFeature||t.type===l.LayerType.wfs||t.type===l.LayerType.geojson){var n=256;t.imageWidth&&t.imageHeight&&(n=Math.max(t.imageWidth,t.imageHeight)),r=e.generateTileInfo(t.extent,n,t.spatialReference)}return r}}]),e}();t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(11)),i=f(r(3)),o=f(r(0)),a=f(r(2)),s=f(r(4)),u=f(r(5)),l=r(8),c=r(1),h=r(35);function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this)),n=(0,c.defaultValue)(e,{});return r.view=n.view,r.view||c.Log.error("视图对象不存在!"),r.layer=n.layer,r.layer||c.Log.error("图层对象不存在!"),r.innerLayer=null,r.id=r.layer.id,r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"onAdd",value:function(e){}},{key:"onRemove",value:function(e){}},{key:"onUpdate",value:function(e){}},{key:"_getLayerViewVisible",value:function(e){var t=void 0;if(void 0===e&&(e=void 0===this.layer.visible||this.layer.visible),e){var r=(0,h.getLayerViewScaleVisible)(this);t=e&&r}else t=e;return t}}]),t}(l.Evented);(0,n.default)(d.prototype,{innerView:{get:function(){return this.view.getInnerView()}}}),t.default=d},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t,r){var n=r(17),i=r(12),o=r(59);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){var n=r(28).f,i=r(32),o=r(21)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t,r){var n=r(32),i=r(56),o=r(101)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,r){r(235);for(var n=r(20),i=r(48),o=r(61),a=r(21)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var l=s[u],c=n[l],h=c&&c.prototype;h&&!h[a]&&i(h,a,l),o[l]=o.Array}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={geometry:"Geometry",point:"Point",lineString:"LineString",polygon:"Polygon",multiPoint:"MultiPoint",multiLineString:"MultiLineString",multiPolygon:"MultiPolygon",circle:"Circle",extent:"Extent"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(6);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,null,[{key:"info",value:function(){if([o.LogType.info,o.LogType.all,o.LogType.infoAndError].indexOf(window.zondy.LOGTYPE)>-1){var e=Array.prototype.slice.call(arguments);e.unshift("%c info ","color:rgb(255,128,0);background-color: wheat;border: 1px solid rgb(255,128,0);border-radius: 3px;"),console.log.apply(console,e)}}},{key:"error",value:function(){if([o.LogType.error,o.LogType.all,o.LogType.infoAndError,o.LogType.warningAndError].indexOf(window.zondy.LogType)>-1){var e=Array.prototype.slice.call(arguments),t=e.toString();throw e.unshift("%c error ","color:rgb(255,0,0);background-color: rgb(250,181,181);border: 1px solid rgb(255,0,0);border-radius: 3px;"),console.log.apply(console,e),new Error(t)}}},{key:"warning",value:function(){if([o.LogType.warning,o.LogType.warningAndError,o.LogType.all].indexOf(window.zondy.LogType)>-1){var e=Array.prototype.slice.call(arguments);e.toString(),e.unshift("%c warning ","color:rgb(230 162 60);background-color: rgb(253 246 236);border: 1px solid rgb(230 162 60);border-radius: 3px;"),console.log.apply(console,e)}}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allSettled=t.inOrderPromise=t.debouncePromise=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(14));t.debouncePromise=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=void 0,o=void 0,a=void 0,s=[];return function(){var u=function(e){return"function"==typeof e?e():e}(t),l=(new Date).getTime(),c=!i||l-i>u;i=l;for(var h=arguments.length,f=Array(h),d=0;d<h;d++)f[d]=arguments[d];if(c&&r.leading)return r.accumulate?n.default.resolve(e.call(this,[f])).then(function(e){return e[0]}):n.default.resolve(e.call.apply(e,[this].concat(f)));if(o?clearTimeout(a):o=function(){var e={};return e.promise=new n.default(function(t,r){e.resolve=t,e.reject=r}),e}(),s.push(f),a=setTimeout(function(){var t=o;clearTimeout(a),n.default.resolve(r.accumulate?e.call(this,s):e.apply(this,s[s.length-1])).then(t.resolve,t.reject),s=[],o=null}.bind(this),u),r.accumulate){var p=s.length-1;return o.promise.then(function(e){return e[p]})}return o.promise}},t.inOrderPromise=async function(e){for(var t=[],r=0;r<e.length;r++)try{var n=await e[r]();t.push(n)}catch(e){}return t},t.allSettled=function(e){var t=function(e){return{status:"rejected",reason:e}},r=function(e){return{status:"fulfilled",value:e}},i=e.map(function(e){return n.default.resolve(e).then(r,t)});return n.default.all(i)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=r(6),o=window.fetch,a={commit:function(e,t,r,n){switch(e=e?e.toUpperCase():e){case"GET":return this._get(t,n);case"POST":return this._post(t,r,n);case"PUT":return this._put(t,r,n);case"DELETE":return this._delete(t,r,n);default:return this._get(t,n)}},_get:function(e,t){return t=(0,n.defaultValue)(t,{}),this._fetch(e,void 0,t,i.FetchMethod.get)},_delete:function(e,t,r){return r=(0,n.defaultValue)(r,{}),this._fetch(e,t,r,i.FetchMethod.delete)},_post:function(e,t,r){return r=(0,n.defaultValue)(r,{}),this._fetch(e,t,r,i.FetchMethod.post)},_put:function(e,t,r){return r=(0,n.defaultValue)(r,{}),this._fetch(e,t,r,i.FetchMethod.put)},_fetch:function(e,t,r,a){if((r=(0,n.defaultValue)(r,{})).headers=(0,n.defaultValue)(r.headers,{}),r.requestTimeout=(0,n.defaultValue)(r.requestTimeout,45e3),r.headers["Content-Type"]||(r.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8"),!(0,n.isNull)(r.tokenKey)&&!(0,n.isNull)(r.tokenValue)){var s=function(){"string"==typeof t?t+="&"+r.tokenKey+"="+r.tokenValue:t instanceof Object&&(t[r.tokenKey]=r.tokenValue)},u=function(){e.indexOf("?")<0?e+="?"+r.tokenKey+"="+r.tokenValue:e+="&"+r.tokenKey+"="+r.tokenValue};switch((0,n.defaultValue)(r.tokenAttachType,i.TokenAttachType.normal)){case i.TokenAttachType.normal:default:a===i.FetchMethod.post?s():u();break;case i.TokenAttachType.url:u();break;case i.TokenAttachType.header:r.headers[r.tokenKey]=r.tokenValue;break;case i.TokenAttachType.body:s()}}var l={method:a,body:t,headers:r.headers,credentials:r.withCredentials?"include":"omit",mode:"cors",timeout:r.requestTimeout};return r.responseType&&(l.responseType=r.responseType),o(e,l).then(function(e){return e}).catch(function(e){return e})}};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.default=function(e){var t=(0,n.defaultValue)(e,{});(0,n.extend)(this,t),this.FldNumber=(0,n.defaultValue)(t.FldNumber,0),this.FldName=(0,n.defaultValue)(t.FldName,null),this.FldType=(0,n.defaultValue)(t.FldType,null)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=r(8),a=r(1),s=r(19);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=(0,a.defaultValue)(t,{}),this.symbol=new s.MapGISTextSymbol(t.symbol),this.renderMode=(0,a.defaultValue)(t.renderMode,"canvas"),this.deconflictionStrategy=(0,a.defaultValue)(t.deconflictionStrategy,"static"),this.maxScale=t.maxScale,this.minScale=t.minScale,this.elevationInfo=new o.ElevationInfo(t.elevationInfo),this.labelPlacement=t.labelPlacement,this.currentAttributeName=t.currentAttributeName,this.labelExpression=t.labelExpression,this.repeatLabel=(0,a.defaultValue)(t.repeatLabel,!0),this.repeatLabelDistance=(0,a.defaultValue)(t.repeatLabelDistance,6e3),this.repeatStartRate=(0,a.defaultValue)(t.repeatStartRate,.3),this.repeatEndRate=(0,a.defaultValue)(t.repeatEndRate,.7),this.lineLabelSpread=(0,a.defaultValue)(t.lineLabelSpread,"auto-spread"),this.labelPositionAlong=(0,a.defaultValue)(t.labelPositionAlong,"middle"),this.skeletonLineStartRate=(0,a.defaultValue)(t.skeletonLineStartRate,.4),this.skeletonLineEndRate=(0,a.defaultValue)(t.skeletonLineEndRate,.6),this.groundScale=(0,a.defaultValue)(t.groundScale,20),this.extensionOptions=(0,a.defaultValue)(t.extensionOptions,{})}return(0,i.default)(e,[{key:"toJSON",value:function(){return{symbol:this.symbol.toJSON(),renderMode:this.renderMode,deconflictionStrategy:this.deconflictionStrategy,maxScale:this.maxScale,minScale:this.minScale,elevationInfo:this.elevationInfo.toJSON(),labelPlacement:this.labelPlacement,currentAttributeName:this.currentAttributeName,labelExpression:this.labelExpression,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,repeatStartRate:this.repeatStartRate,repeatEndRate:this.repeatEndRate,lineLabelSpread:this.lineLabelSpread,labelPositionAlong:this.labelPositionAlong,skeletonLineStartRate:this.skeletonLineStartRate,skeletonLineEndRate:this.skeletonLineEndRate,groundScale:this.groundScale,extensionOptions:(0,a.cloneObject)(this.extensionOptions)}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,a.defaultValue)(t,{}))}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=u(r(51)),a=r(1),s=r(79);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=(0,a.defaultValue)(t,{}),this.type=o.default.default,this.field=(0,a.defaultValue)(t.field,""),this.valueExpression=(0,a.defaultValue)(t.valueExpression,""),this.valueExpressionTitle=(0,a.defaultValue)(t.valueExpressionTitle,"")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.field=this.field,e.valueExpression=this.valueExpression,e.valueExpressionTitle=this.valueExpressionTitle,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(e){return e=(0,a.defaultValue)(e,{}),(0,s.createVisualVariable)(e)}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(t){(0,n.default)(this,e),t=t||{},this.level=t.level,this.resolution=t.resolution,this.scale=t.scale}return(0,i.default)(e,[{key:"toJSON",value:function(){return{level:this.level,resolution:this.resolution,scale:this.scale}}},{key:"clone",value:function(){return e.fromJSON(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(10)),i=h(r(3)),o=h(r(0)),a=h(r(2)),s=h(r(4)),u=h(r(7)),l=h(r(5)),c=r(1);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.version=(0,c.defaultValue)(e.version,""),r.customParameters=(0,c.defaultValue)(e.customParameters,{}),r.customLayerParameters=(0,c.defaultValue)(e.customLayerParameters,{}),r}return(0,l.default)(t,e),(0,a.default)(t,[{key:"toJSON",value:function(){var e=(0,u.default)(t.prototype.__proto__||(0,i.default)(t.prototype),"toJSON",this).call(this);return e.version=this.version,e.customParameters=JSON.parse((0,n.default)(this.customParameters)),e.customLayerParameters=JSON.parse((0,n.default)(this.customLayerParameters)),e}}]),t}(r(15).Layer);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLayersExtent=t.getCrsOptions=t.getLayerViewsGeographicExtent=t.getValidLayers=t.isLayerViewValid=t.ExpressionParser=t.VectorTileLayer=t.TileSliceType=t.TDTLayerType=t.VisualVariableType=t.SeverVectorTileSubLayerType=t.ColorNameToHexMap=t.GeometryFilter=t.SceneSubLayerType=t.convertIGSClippingString=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FetchRequest=t.ArcType=t.AreaUnits=t.LinearUnits=t.allSettled=t.inOrderPromise=t.debouncePromise=t.compareObject=void 0,t.throttle=t.convertImageSourceToBase64=t.isWMSReverse=t.getProjectionSrs=t.OGCLayer=t.OverlayLayer=t.UnknownLayer=t.RequestConfig=t.BaseServer=t.TileLayer=t.WorkFlowServer=t.Interceptor=t.CAttStruct=t.CAttDataRow=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.ArcGISVectorTileLayer=t.StylePattern3D=t.ColorMaterial=t.MaterialType=t.WaveStrength=t.WaterbodySize=t.WaterSymbol3DLayer=t.TextHalo=t.TextSymbol3DLayer=t.Edges3D=t.ExtrudeSymbol3DLayer=t.ObjectSymbol3DLayer=t.IconResource=t.PointSymbol3DOutline=t.IconSymbol3DLayer=t.PatternStyle=t.FillSymbol3DOutline=t.FillSymbol3DLayer=t.ProfileType=t.AnchorType=t.PathSymbol3DLayer=t.LineSymbol3DLayer=t.LineStylePattern3D=t.LinePatternStyle=t.LineStyleMarker3D=t.LineMarkerStyle=t.LineMarkerPlacement=t.LineJoinType=t.LineCapType=t.Symbol3DLayerType=t.Symbol3DLayer=t.Symbol3DVerticalOffset=t.Callout3D=t.LineCallout3D=t.PolygonSymbol3D=t.PointSymbol3D=t.LineSymbol3D=t.LabelSymbol3D=t.Symbol3D=t.RendererUtil=t.VisualVariable=t.OpacityVariable=t.ColorVariable=t.SizeVariable=t.HeatmapColorStop=t.LabelClass=t.setElevationInfo=t.WMTSCorporation=t.TileInfoUtil=t.BaseFeatureLayerView=t.createSimpleFillSymbolCanvas=t.createSimpleMarkerSymbolCanvas=t.ServiceConfigRequestInterceptors=t.ServiceConfigToken=t.Config=t.editGeometryByArc3=t.editFeatureByArc3=t.Geometry=t.RadiusUnit=t.formatBaseUrl=t.showLayerByScale=t.T=t.proj4=t.EPSG=t.isCustomSP=t.is4326=t.getUrlType=t.PictureFormat=t.UrlServerType=t.SpatialReference=t.LayerView=t.GroupLayerView=t.BaseRendererLayerView=t.BaseGraphicsLayerView=t.SceneView=t.MapView=t.BaseView=t.inputCss=t.getBaseUrl=t.toJSON=t.getVideoType=t.isObject=t.notNULL=void 0,t.cloneObject=t.returnPoint=t.formatPoints=t.newGuid=t.extendDeep=t.isBoolean=t.deepClone=t.isString=t.Log=t.getOutStatisticsParameter=t.getGeometryParameter=t.isNull=t.createGeometry=t.normalize=t.defined=t.defaultValue=t.getGUID=t.bind=t.getParameterString=t.urlAppend=t.transformResult=t.isInTheSameDomain=t.isNumber=t.isArray=t.extend=t.getIGSDynamicLayer=t.BaseRenderer=t.HeatmapRenderer=t.RankRenderer=t.RandomRenderer=t.ClusterRenderer=t.SimpleRenderer=t.ClassBreakRenderer=t.UniqueValueRenderer=t.MapGISTextSymbol=t.PictureFillSymbol=t.PictureMarkerSymbol=t.Symbol=t.TextSymbol=t.SimpleMarkerSymbol=t.SimpleLineSymbol=t.SimpleFillSymbol=t.ShadowMode=t.SceneMode=t.VerticalAlignment=t.HorizontalAlignment=t.FeatureExpressionInfo=t.ProjectInfoBySrsID=t.TileMatrixSet=t.OutStatistic=t.ProjectInfo=t.ElevationInfo=t.ElevationMode=t.IGSSymbolType=t.SymbolType=t.IGSRendererType=t.SketchEditorToolEventType=t.SketchEditorState=t.SketchEditorEventType=t.SketchEditMode=t.SketchDataType=t.VideoSourceType=t.VectorTileGeometryType=t.RendererType=t.AngleUnit=t.LengthUnit=t.ViewEventType=t.LoadStatus=t.LogType=t.IGSGeometryType=t.TokenAttachType=t.LayerType=t.GeometryType=t.CustomWKID=t.SpatialRelation=t.StatisticType=t.MapEventType=t.LayerEventType=t.FetchMethod=t.ReturnFormat=t.getFeaturesFromFeatureSet=t.Feature=t.FeatureSet=t.Collection=t.ErrorEvent=t.FeatureRender=t.Evented=t.zondy=t.Zondy=t.Event=t.LayerEvent=t.Font=t.Color=t.GeometryEngine=t.MultiPoint=t.MultiLineString=t.MultiPolygon=t.Circle=t.Point=t.LineString=void 0,t.Polygon=t.Extent=t.SketchEditorEvent=t.SketchStyle=t.SketchFreehandPolygonDrawTool=t.SketchFreehandPolylineDrawTool=t.SketchExtentDrawTool=t.SketchCircleDrawTool=t.SketchPolygonDrawTool=t.SketchPolylineDrawTool=t.SketchPointDrawTool=t.SketchBaseDrawTool=t.SketchEditor3D=t.SketchEditor=t.CoordnateTransform=t.WMTSStyle=t.Projection=t.Layer=t.VideoLayer=t.TerrainCacheLayer=t.Cesium3DTilesCacheLayer=t.GeoJSONLayer=t.GraphicsLayer=t.GroupLayer=t.MapVLayer=t.EchartsLayer=t.IGSFeatureLayer=t.Scene=t.IGSTileLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=t.WMTSSubLayer=t.WFSLayer=t.WMSSubLayer=t.WMSLayer=t.WMTSLayer=t.ArcGISTileLayer=t.ArcGISMapImageSubLayer=t.M3DModelCacheLayer=t.ArcGISMapImageLayer=t.Basemap=t.Map=t.ArcGISVectorTileServer=t.ArcGISFeatureServer=t.ArcGISGeometryServer=t.ThemesInfo=t.ThemeServer=t.ItemValue=t.FolderInfoAttribute=t.FolderInfo=t.ExpInfo=t.CUniqueThemeInfo=t.CUniqueTheme=t.CThemeInfo=t.CTheme=t.CSimpleTheme=t.CRegInfo=t.CRangeThemeInfo=t.CRangeTheme=t.CRandomTheme=t.CPntInfo=t.CMultiClassTheme=t.CLinInfo=t.CGraduatedSymbolTheme=t.CFourColorTheme=t.CDotDensityTheme=t.CChartType=t.CChartThemeRepresentInfo=t.CChartThemeInfo=t.CChartTheme=t.CChartLabelFormat=t.CAnnInfo=t.CAllOtherDataItemInfoSource=t.ArcGISMapServer=t.WFSServer=t.WMTSServer=t.WMSServer=t.SceneServer=t.ResourceServer=t.PlotServer=t.VectorTileServer=t.TileServer=t.RootServer=t.SecurityServer=t.TerrainServer=t.PoiServer=t.Cesium3DTilesServer=t.AddressServer=t.GeometryServer=t.ImageServer=t.M3DServer=t.FeatureServer=t.MapServer=t.ResponseInterceptor=t.RequestInterceptor=t.FetchServer=void 0;var n=m(r(23)),i=m(r(224)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(33)),a=r(25),s=r(128),u=r(64),l=r(9),c=r(8),h=r(1),f=r(6),d=r(19),p=r(511),y=r(520),g=r(528);function m(e){return e&&e.__esModule?e:{default:e}}window.zondy={};var v=window.zondy;v.service={},v.geometry={},v.layer={},v.enum={},v.symbol={},v.widget={},v.tool={},v.renderer={},v.renderer.visualvariable={},v.themelayer={},v.util={},v.video={},v.LOGTYPE="warningAndError",v.VERSION="17.2.5",v.service.FetchServer=a.FetchServer,v.service.RequestInterceptor=a.RequestInterceptor,v.service.ResponseInterceptor=a.ResponseInterceptor,v.service.MapServer=a.MapServer,v.service.FeatureServer=a.FeatureServer,v.service.M3DServer=a.M3DServer,v.service.ImageServer=a.ImageServer,v.service.GeometryServer=a.GeometryServer,v.service.AddressServer=a.AddressServer,v.service.Cesium3DTilesServer=a.Cesium3DTilesServer,v.service.PoiServer=a.PoiServer,v.service.TerrainServer=a.TerrainServer,v.service.SecurityServer=a.SecurityServer,v.service.RootServer=a.RootServer,v.service.TileServer=a.TileServer,v.service.VectorTileServer=a.VectorTileServer,v.service.PlotServer=a.PlotServer,v.service.ResourceServer=a.ResourceServer,v.service.SceneServer=a.SceneServer,v.service.WMSServer=a.WMSServer,v.service.WMTSServer=a.WMTSServer,v.service.WFSServer=a.WFSServer,v.service.ArcGISMapServer=a.ArcGISMapServer,v.service.ThemeServer=a.ThemeServer,v.service.ArcGISGeometryServer=a.ArcGISGeometryServer,v.service.ArcGISFeatureServer=a.ArcGISFeatureServer,v.service.ArcGISVectorTileServer=a.ArcGISVectorTileServer,v.service.Config=a.Config,v.service.FetchRequest=a.FetchRequest,v.service.GeometryFilter=a.GeometryFilter,v.service.Interceptor=a.Interceptor,v.service.WorkFlowServer=a.WorkFlowServer,v.service.BaseServer=a.BaseServer,v.service.RequestConfig=a.RequestConfig,v.themelayer.CAllOtherDataItemInfoSource=a.CAllOtherDataItemInfoSource,v.themelayer.CAnnInfo=a.CAnnInfo,v.themelayer.CChartLabelFormat=a.CChartLabelFormat,v.themelayer.CChartTheme=a.CChartTheme,v.themelayer.CChartThemeInfo=a.CChartThemeInfo,v.themelayer.CChartThemeRepresentInfo=a.CChartThemeRepresentInfo,v.themelayer.CChartType=a.CChartType,v.themelayer.CDotDensityTheme=a.CDotDensityTheme,v.themelayer.CFourColorTheme=a.CFourColorTheme,v.themelayer.CGraduatedSymbolTheme=a.CGraduatedSymbolTheme,v.themelayer.CLinInfo=a.CLinInfo,v.themelayer.CMultiClassTheme=a.CMultiClassTheme,v.themelayer.CPntInfo=a.CPntInfo,v.themelayer.CRandomTheme=a.CRandomTheme,v.themelayer.CRangeTheme=a.CRangeTheme,v.themelayer.CRangeThemeInfo=a.CRangeThemeInfo,v.themelayer.CRegInfo=a.CRegInfo,v.themelayer.CSimpleTheme=a.CSimpleTheme,v.themelayer.CTheme=a.CTheme,v.themelayer.CThemeInfo=a.CThemeInfo,v.themelayer.CUniqueTheme=a.CUniqueTheme,v.themelayer.CUniqueThemeInfo=a.CUniqueThemeInfo,v.themelayer.ExpInfo=a.ExpInfo,v.themelayer.FolderInfo=a.FolderInfo,v.themelayer.FolderInfoAttribute=a.FolderInfoAttribute,v.themelayer.ItemValue=a.ItemValue,v.themelayer.ThemesInfo=a.ThemesInfo,v.layer.WMTSLayer=u.WMTSLayer,v.layer.WMSLayer=u.WMSLayer,v.layer.WMSSubLayer=u.WMSSubLayer,v.layer.WFSLayer=u.WFSLayer,v.layer.WMTSSubLayer=u.WMTSSubLayer,v.layer.VectorTileLayer=u.VectorTileLayer,v.layer.IGSVectorTileLayer=u.IGSVectorTileLayer,v.layer.IGSVectorTileSubLayer=u.IGSVectorTileSubLayer,v.layer.IGSMapImageLayer=u.IGSMapImageLayer,v.layer.IGSMapImageSubLayer=u.IGSMapImageSubLayer,v.layer.IGSSceneLayer=u.IGSSceneLayer,v.layer.IGSSceneSubLayer=u.IGSSceneSubLayer,v.layer.IGSTileLayer=u.IGSTileLayer,v.layer.Scene=u.Scene,v.layer.IGSFeatureLayer=u.IGSFeatureLayer,v.layer.EchartsLayer=u.EchartsLayer,v.layer.MapVLayer=u.MapVLayer,v.layer.GroupLayer=u.GroupLayer,v.layer.GraphicsLayer=u.GraphicsLayer,v.layer.GeoJSONLayer=u.GeoJSONLayer,v.layer.Cesium3DTilesCacheLayer=u.Cesium3DTilesCacheLayer,v.layer.TerrainCacheLayer=u.TerrainCacheLayer,v.layer.VideoLayer=u.VideoLayer,v.layer.LabelClass=u.LabelClass,v.layer.ArcGISMapImageLayer=u.ArcGISMapImageLayer,v.layer.ArcGISMapImageSubLayer=u.ArcGISMapImageSubLayer,v.layer.M3DModelCacheLayer=u.M3DModelCacheLayer,v.layer.ArcGISTileLayer=u.ArcGISTileLayer,v.layer.Layer=u.Layer,v.layer.ArcGISVectorTileLayer=u.ArcGISVectorTileLayer,v.layer.WebTileLayer=u.WebTileLayer,v.layer.TileInfo=u.TileInfo,v.layer.LOD=u.LOD,v.layer.TileLayer=u.TileLayer,v.layer.UnknownLayer=u.UnknownLayer,v.layer.OverlayLayer=u.OverlayLayer,v.layer.OGCLayer=u.OGCLayer,v.Map=u.Map,v.Basemap=u.Basemap,v.SpatialReference=l.SpatialReference,v.Color=c.Color,v.Collection=c.Collection,v.FeatureSet=c.FeatureSet,v.Feature=c.Feature,v.ElevationInfo=c.ElevationInfo,v.ProjectInfo=c.ProjectInfo,v.OutStatistic=c.OutStatistic,v.TileMatrixSet=c.TileMatrixSet,v.ProjectInfoBySrsID=c.ProjectInfoBySrsID,v.FeatureExpressionInfo=c.FeatureExpressionInfo,v.BaseView=p.BaseView,v.MapView=p.MapView,v.SceneView=p.SceneView,v.BaseFeatureLayerView=p.BaseFeatureLayerView,v.BaseRendererLayerView=p.BaseRendererLayerView,v.GroupLayerView=p.GroupLayerView,v.WMTSStyle=c.WMTSStyle,v.CAttDataRow=a.CAttDataRow,v.CAttStruct=a.CAttStruct,v.renderer.UniqueValueRenderer=u.UniqueValueRenderer,v.renderer.ClassBreakRenderer=u.ClassBreakRenderer,v.renderer.SimpleRenderer=u.SimpleRenderer,v.renderer.ClusterRenderer=u.ClusterRenderer,v.renderer.RandomRenderer=u.RandomRenderer,v.renderer.RankRenderer=u.RankRenderer,v.renderer.HeatmapRenderer=u.HeatmapRenderer,v.renderer.BaseRenderer=u.BaseRenderer,v.renderer.HeatmapColorStop=u.HeatmapColorStop,v.renderer.visualvariable.SizeVariable=u.SizeVariable,v.renderer.visualvariable.ColorVariable=u.ColorVariable,v.renderer.visualvariable.OpacityVariable=u.OpacityVariable,v.renderer.visualvariable.VisualVariable=u.VisualVariable,v.geometry.Extent=l.Extent,v.geometry.Polygon=l.Polygon,v.geometry.MultiPolygon=l.MultiPolygon,v.geometry.LineString=l.LineString,v.geometry.MultiLineString=l.MultiLineString,v.geometry.Point=l.Point,v.geometry.MultiPoint=l.MultiPoint,v.geometry.Circle=l.Circle,v.geometry.GeometryEngine=l.GeometryEngine,v.geometry.Geometry=l.Geometry,v.geometry.Projection=c.Projection,v.geometry.Proj4=i.default,v.geometry.T=o,v.enum.ReturnFormat=f.ReturnFormat,v.enum.FetchMethod=f.FetchMethod,v.enum.LayerEventType=f.LayerEventType,v.enum.MapEventType=f.MapEventType,v.enum.StatisticType=f.StatisticType,v.enum.SpatialRelation=f.SpatialRelation,v.enum.CustomWKID=f.CustomWKID,v.enum.LayerType=f.LayerType,v.enum.TokenAttachType=f.TokenAttachType,v.enum.IGSGeometryType=f.IGSGeometryType,v.enum.LogType=f.LogType,v.enum.LoadStatus=f.LoadStatus,v.enum.ViewEventType=f.ViewEventType,v.enum.LengthUnit=f.LengthUnit,v.enum.AngleUnit=f.AngleUnit,v.enum.RendererType=f.RendererType,v.enum.VectorTileGeometryType=f.VectorTileGeometryType,v.enum.VideoSourceType=f.VideoSourceType,v.enum.SketchDataType=f.SketchDataType,v.enum.SketchEditMode=f.SketchEditMode,v.enum.SketchEditorEventType=f.SketchEditorEventType,v.enum.SketchEditorState=f.SketchEditorState,v.enum.SketchEditorToolEventType=f.SketchEditorToolEventType,v.enum.IGSRendererType=f.IGSRendererType,v.enum.SymbolType=f.SymbolType,v.enum.IGSSymbolType=f.IGSSymbolType,v.enum.ElevationMode=f.ElevationMode,v.enum.HorizontalAlignment=f.HorizontalAlignment,v.enum.VerticalAlignment=f.VerticalAlignment,v.enum.SceneMode=f.SceneMode,v.enum.ShadowMode=f.ShadowMode,v.enum.UrlServerType=f.UrlServerType,v.enum.PictureFormat=f.PictureFormat,v.enum.RadiusUnit=f.RadiusUnit,v.enum.WMTSCorporation=f.WMTSCorporation,v.enum.Symbol3DLayerType=f.Symbol3DLayerType,v.enum.LineCapType=f.LineCapType,v.enum.LineJoinType=f.LineJoinType,v.enum.LineMarkerPlacement=f.LineMarkerPlacement,v.enum.LineMarkerStyle=f.LineMarkerStyle,v.enum.LinePatternStyle=f.LinePatternStyle,v.enum.AnchorType=f.AnchorType,v.enum.ProfileType=f.ProfileType,v.enum.PatternStyle=f.PatternStyle,v.enum.WaterbodySize=f.WaterbodySize,v.enum.WaveStrength=f.WaveStrength,v.enum.MaterialType=f.MaterialType,v.enum.LinearUnits=f.LinearUnits,v.enum.AreaUnits=f.AreaUnits,v.enum.ArcType=f.ArcType,v.enum.SceneSubLayerType=f.SceneSubLayerType,v.enum.ColorNameToHexMap=f.ColorNameToHexMap,v.enum.SeverVectorTileSubLayerType=f.SeverVectorTileSubLayerType,v.enum.GeometryType=f.GeometryType,v.enum.VisualVariableType=f.VisualVariableType,v.enum.TDTLayerType=f.TDTLayerType,v.enum.TileSliceType=f.TileSliceType,v.util.formatBaseUrl=a.formatBaseUrl,v.util.ServiceConfigToken=a.ServiceConfigToken,v.util.ServiceConfigRequestInterceptors=a.ServiceConfigRequestInterceptors,v.util.convertIGSClippingString=a.convertIGSClippingString,v.util.getUrlType=u.getUrlType,v.util.is4326=u.is4326,v.util.isCustomSP=u.isCustomSP,v.util.showLayerByScale=u.showLayerByScale,v.util.getIGSDynamicLayer=u.getIGSDynamicLayer,v.util.setElevationInfo=u.setElevationInfo,v.util.TileInfoUtil=u.TileInfoUtil,v.util.getZoomOffset=u.getZoomOffset,v.util.appendUrlParams=u.appendUrlParams,v.util.getFullBaseUrl=u.getFullBaseUrl,v.util.editFeatureByArc3=l.editFeatureByArc3,v.util.editGeometryByArc3=l.editGeometryByArc3,v.util.CoordnateTransform=c.CoordnateTransform,v.util.getFeaturesFromFeatureSet=c.getFeaturesFromFeatureSet,v.util.EPSG=c.EPSG,v.util.extend=h.extend,v.util.isArray=h.isArray,v.util.isNumber=h.isNumber,v.util.isInTheSameDomain=h.isInTheSameDomain,v.util.transformResult=h.transformResult,v.util.urlAppend=h.urlAppend,v.util.getParameterString=h.getParameterString,v.util.bind=h.bind,v.util.getGUID=h.getGUID,v.util.defaultValue=h.defaultValue,v.util.defined=h.defined,v.util.normalize=h.normalize,v.util.createGeometry=h.createGeometry,v.util.isNull=h.isNull,v.util.getGeometryParameter=h.getGeometryParameter,v.util.getOutStatisticsParameter=h.getOutStatisticsParameter,v.util.Log=h.Log,v.util.isString=h.isString,v.util.deepClone=h.deepClone,v.util.isBoolean=h.isBoolean,v.util.extendDeep=h.extendDeep,v.util.newGuid=h.newGuid,v.util.formatPoints=h.formatPoints,v.util.returnPoint=h.returnPoint,v.util.cloneObject=h.cloneObject,v.util.notNULL=h.notNULL,v.util.isObject=h.isObject,v.util.getVideoType=h.getVideoType,v.util.toJSON=h.toJSON,v.util.getBaseUrl=h.getBaseUrl,v.util.inputCss=h.inputCss,v.util.getProjectionSrs=h.getProjectionSrs,v.util.isWMSReverse=h.isWMSReverse,v.util.convertImageSourceToBase64=h.convertImageSourceToBase64,v.util.throttle=h.throttle,v.util.compareObject=h.compareObject,v.util.debouncePromise=h.debouncePromise,v.util.inOrderPromise=h.inOrderPromise,v.util.allSettled=h.allSettled,v.util.ExpressionParser=h.ExpressionParser,v.util.RendererUtil=p.RendererUtil,v.util.createSimpleMarkerSymbolCanvas=g.createSimpleMarkerSymbolCanvas,v.util.createSimpleFillSymbolCanvas=g.createSimpleFillSymbolCanvas,v.util.getValidLayers=s.getValidLayers,v.util.getLayerViewsGeographicExtent=s.getLayerViewsGeographicExtent,v.util.getCrsOptions=s.getCrsOptions,v.util.getLayersExtent=s.getLayersExtent,v.symbol.SimpleFillSymbol=d.SimpleFillSymbol,v.symbol.SimpleLineSymbol=d.SimpleLineSymbol,v.symbol.SimpleMarkerSymbol=d.SimpleMarkerSymbol,v.symbol.TextSymbol=d.TextSymbol,v.symbol.Symbol=d.Symbol,v.symbol.PictureMarkerSymbol=d.PictureMarkerSymbol,v.symbol.PictureFillSymbol=d.PictureFillSymbol,v.symbol.MapGISTextSymbol=d.MapGISTextSymbol,v.symbol.Symbol3D=d.Symbol3D,v.symbol.LabelSymbol3D=d.LabelSymbol3D,v.symbol.LineSymbol3D=d.LineSymbol3D,v.symbol.PointSymbol3D=d.PointSymbol3D,v.symbol.PolygonSymbol3D=d.PolygonSymbol3D,v.symbol.LineCallout3D=d.LineCallout3D,v.symbol.Callout3D=d.Callout3D,v.symbol.Symbol3DVerticalOffset=d.Symbol3DVerticalOffset,v.symbol.Symbol3DLayer=d.Symbol3DLayer,v.symbol.LineStyleMarker3D=d.LineStyleMarker3D,v.symbol.LineStylePattern3D=d.LineStylePattern3D,v.symbol.LineSymbol3DLayer=d.LineSymbol3DLayer,v.symbol.PathSymbol3DLayer=d.PathSymbol3DLayer,v.symbol.FillSymbol3DLayer=d.FillSymbol3DLayer,v.symbol.FillSymbol3DOutline=d.FillSymbol3DOutline,v.symbol.IconSymbol3DLayer=d.IconSymbol3DLayer,v.symbol.PointSymbol3DOutline=d.PointSymbol3DOutline,v.symbol.IconResource=d.IconResource,v.symbol.ObjectSymbol3DLayer=d.ObjectSymbol3DLayer,v.symbol.ExtrudeSymbol3DLayer=d.ExtrudeSymbol3DLayer,v.symbol.Edges3D=d.Edges3D,v.symbol.TextSymbol3DLayer=d.TextSymbol3DLayer,v.symbol.TextHalo=d.TextHalo,v.symbol.WaterSymbol3DLayer=d.WaterSymbol3DLayer,v.symbol.ColorMaterial=d.ColorMaterial,v.symbol.StylePattern3D=d.StylePattern3D,v.symbol.Font=c.Font,v.tool.sketch={},v.tool.sketch.SketchStyle=y.SketchStyle,v.tool.sketch.SketchEditorEvent=y.SketchEditorEvent,v.tool.sketch.SketchEditor=y.SketchEditor,v.tool.sketch.SketchEditor3D=y.SketchEditor3D,v.tool.sketch.SketchBaseDrawTool=y.SketchBaseDrawTool,v.tool.sketch.SketchPointDrawTool=y.SketchPointDrawTool,v.tool.sketch.SketchPolylineDrawTool=y.SketchPolylineDrawTool,v.tool.sketch.SketchPolygonDrawTool=y.SketchPolygonDrawTool,v.tool.sketch.SketchCircleDrawTool=y.SketchCircleDrawTool,v.tool.sketch.SketchExtentDrawTool=y.SketchExtentDrawTool,v.tool.sketch.SketchFreehandPolylineDrawTool=y.SketchFreehandPolylineDrawTool,v.tool.sketch.SketchFreehandPolygonDrawTool=y.SketchFreehandPolygonDrawTool,window.Zondy={};var _=window.Zondy;_.Service=v.service,_.Geometry=v.geometry,_.Layer=v.layer,_.Enum=v.enum,_.Symbol=v.symbol,_.Widget=v.widget,_.Tool={},_.Tool.Sketch=v.widget.sketch,_.Renderer={},(0,n.default)(v.renderer).forEach(function(e){"visualvariable"!==e&&(_.Renderer[e]=v.renderer[e])}),_.Renderer.VisualVariable=v.renderer.visualvariable,_.Object={},_.Object.Theme={},_.Object.Theme.CAllOtherDataItemInfoSource=a.CAllOtherDataItemInfoSource,_.Object.Theme.CAnnInfo=a.CAnnInfo,_.Object.Theme.CChartLabelFormat=a.CChartLabelFormat,_.Object.Theme.CChartTheme=a.CChartTheme,_.Object.Theme.CChartThemeInfo=a.CChartThemeInfo,_.Object.Theme.CChartThemeRepresentInfo=a.CChartThemeRepresentInfo,_.Object.Theme.CChartType=a.CChartType,_.Object.Theme.CDotDensityTheme=a.CDotDensityTheme,_.Object.Theme.CFourColorTheme=a.CFourColorTheme,_.Object.Theme.CGraduatedSymbolTheme=a.CGraduatedSymbolTheme,_.Object.Theme.CLinInfo=a.CLinInfo,_.Object.Theme.CMultiClassTheme=a.CMultiClassTheme,_.Object.Theme.CPntInfo=a.CPntInfo,_.Object.Theme.CRandomTheme=a.CRandomTheme,_.Object.Theme.CRangeTheme=a.CRangeTheme,_.Object.Theme.CRangeThemeInfo=a.CRangeThemeInfo,_.Object.Theme.CRegInfo=a.CRegInfo,_.Object.Theme.CSimpleTheme=a.CSimpleTheme,_.Object.Theme.CTheme=a.CTheme,_.Object.Theme.CThemeInfo=a.CThemeInfo,_.Object.Theme.CUniqueTheme=a.CUniqueTheme,_.Object.Theme.CUniqueThemeInfo=a.CUniqueThemeInfo,_.Object.Theme.ExpInfo=a.ExpInfo,_.Object.Theme.FolderInfo=a.FolderInfo,_.Object.Theme.FolderInfoAttribute=a.FolderInfoAttribute,_.Object.Theme.ItemValue=a.ItemValue,_.Object.Theme.ThemesInfo=a.ThemesInfo,_.Object.CAttDataRow=a.CAttDataRow,_.Object.CAttStruct=a.CAttStruct,_.Utils=v.util,_.Map=u.Map,_.Basemap=u.Basemap,_.SpatialReference=l.SpatialReference,_.Color=c.Color,_.Font=c.Font,_.Collection=c.Collection,_.FeatureSet=c.FeatureSet,_.Feature=c.Feature,_.ElevationInfo=c.ElevationInfo,_.ProjectInfo=c.ProjectInfo,_.OutStatistic=c.OutStatistic,_.TileMatrixSet=c.TileMatrixSet,_.ProjectInfoBySrsID=c.ProjectInfoBySrsID,_.FeatureExpressionInfo=c.FeatureExpressionInfo,_.BaseView=p.BaseView,_.MapView=p.MapView,_.SceneView=p.SceneView,_.BaseFeatureLayerView=p.BaseFeatureLayerView,_.BaseRendererLayerView=p.BaseRendererLayerView,_.GroupLayerView=p.GroupLayerView,_.WMTSStyle=c.WMTSStyle,_.SketchPolygonDrawTool=y.SketchPolygonDrawTool,_.SketchStyle=y.SketchStyle,_.LogType=v.LOGTYPE,_.Version=v.VERSION;var S={FetchServer:a.FetchServer,RequestInterceptor:a.RequestInterceptor,ResponseInterceptor:a.ResponseInterceptor,MapServer:a.MapServer,FeatureServer:a.FeatureServer,M3DServer:a.M3DServer,ImageServer:a.ImageServer,GeometryServer:a.GeometryServer,AddressServer:a.AddressServer,Cesium3DTilesServer:a.Cesium3DTilesServer,PoiServer:a.PoiServer,TerrainServer:a.TerrainServer,SecurityServer:a.SecurityServer,RootServer:a.RootServer,TileServer:a.TileServer,VectorTileServer:a.VectorTileServer,PlotServer:a.PlotServer,ResourceServer:a.ResourceServer,SceneServer:a.SceneServer,WMSServer:a.WMSServer,WMTSServer:a.WMTSServer,WFSServer:a.WFSServer,ArcGISMapServer:a.ArcGISMapServer,CAllOtherDataItemInfoSource:a.CAllOtherDataItemInfoSource,CAnnInfo:a.CAnnInfo,CChartLabelFormat:a.CChartLabelFormat,CChartTheme:a.CChartTheme,CChartThemeInfo:a.CChartThemeInfo,CChartThemeRepresentInfo:a.CChartThemeRepresentInfo,CChartType:a.CChartType,CDotDensityTheme:a.CDotDensityTheme,CFourColorTheme:a.CFourColorTheme,CGraduatedSymbolTheme:a.CGraduatedSymbolTheme,CLinInfo:a.CLinInfo,CMultiClassTheme:a.CMultiClassTheme,CPntInfo:a.CPntInfo,CRandomTheme:a.CRandomTheme,CRangeTheme:a.CRangeTheme,CRangeThemeInfo:a.CRangeThemeInfo,CRegInfo:a.CRegInfo,CSimpleTheme:a.CSimpleTheme,CTheme:a.CTheme,CThemeInfo:a.CThemeInfo,CUniqueTheme:a.CUniqueTheme,CUniqueThemeInfo:a.CUniqueThemeInfo,ExpInfo:a.ExpInfo,FolderInfo:a.FolderInfo,FolderInfoAttribute:a.FolderInfoAttribute,ItemValue:a.ItemValue,ThemeServer:a.ThemeServer,ThemesInfo:a.ThemesInfo,ArcGISGeometryServer:a.ArcGISGeometryServer,ArcGISFeatureServer:a.ArcGISFeatureServer,ArcGISVectorTileServer:a.ArcGISVectorTileServer,Map:u.Map,Basemap:u.Basemap,ArcGISMapImageLayer:u.ArcGISMapImageLayer,M3DModelCacheLayer:u.M3DModelCacheLayer,ArcGISMapImageSubLayer:u.ArcGISMapImageSubLayer,ArcGISTileLayer:u.ArcGISTileLayer,WMTSLayer:u.WMTSLayer,WMSLayer:u.WMSLayer,WMSSubLayer:u.WMSSubLayer,WFSLayer:u.WFSLayer,WMTSSubLayer:u.WMTSSubLayer,IGSVectorTileLayer:u.IGSVectorTileLayer,IGSVectorTileSubLayer:u.IGSVectorTileSubLayer,IGSMapImageLayer:u.IGSMapImageLayer,IGSMapImageSubLayer:u.IGSMapImageSubLayer,IGSSceneLayer:u.IGSSceneLayer,IGSSceneSubLayer:u.IGSSceneSubLayer,IGSTileLayer:u.IGSTileLayer,Scene:u.Scene,IGSFeatureLayer:u.IGSFeatureLayer,EchartsLayer:u.EchartsLayer,MapVLayer:u.MapVLayer,GroupLayer:u.GroupLayer,GraphicsLayer:u.GraphicsLayer,GeoJSONLayer:u.GeoJSONLayer,Cesium3DTilesCacheLayer:u.Cesium3DTilesCacheLayer,TerrainCacheLayer:u.TerrainCacheLayer,VideoLayer:u.VideoLayer,Layer:u.Layer,Projection:c.Projection,WMTSStyle:c.WMTSStyle,CoordnateTransform:c.CoordnateTransform,SketchEditor:y.SketchEditor,SketchEditor3D:y.SketchEditor3D,SketchBaseDrawTool:y.SketchBaseDrawTool,SketchPointDrawTool:y.SketchPointDrawTool,SketchPolylineDrawTool:y.SketchPolylineDrawTool,SketchPolygonDrawTool:y.SketchPolygonDrawTool,SketchCircleDrawTool:y.SketchCircleDrawTool,SketchExtentDrawTool:y.SketchExtentDrawTool,SketchFreehandPolylineDrawTool:y.SketchFreehandPolylineDrawTool,SketchFreehandPolygonDrawTool:y.SketchFreehandPolygonDrawTool,SketchStyle:y.SketchStyle,SketchEditorEvent:y.SketchEditorEvent,Extent:l.Extent,Polygon:l.Polygon,LineString:l.LineString,Point:l.Point,Circle:l.Circle,MultiPolygon:l.MultiPolygon,MultiLineString:l.MultiLineString,MultiPoint:l.MultiPoint,GeometryEngine:l.GeometryEngine,Color:c.Color,Font:c.Font,LayerEvent:c.LayerEvent,Event:c.Event,Zondy:_,zondy:v,Evented:c.Evented,FeatureRender:c.FeatureRender,ErrorEvent:c.ErrorEvent,Collection:c.Collection,FeatureSet:c.FeatureSet,Feature:c.Feature,getFeaturesFromFeatureSet:c.getFeaturesFromFeatureSet,ReturnFormat:f.ReturnFormat,FetchMethod:f.FetchMethod,LayerEventType:f.LayerEventType,MapEventType:f.MapEventType,StatisticType:f.StatisticType,SpatialRelation:f.SpatialRelation,CustomWKID:f.CustomWKID,GeometryType:f.GeometryType,LayerType:f.LayerType,TokenAttachType:f.TokenAttachType,IGSGeometryType:f.IGSGeometryType,LogType:f.LogType,LoadStatus:f.LoadStatus,ViewEventType:f.ViewEventType,LengthUnit:f.LengthUnit,AngleUnit:f.AngleUnit,RendererType:f.RendererType,VectorTileGeometryType:f.VectorTileGeometryType,VideoSourceType:f.VideoSourceType,SketchDataType:f.SketchDataType,SketchEditMode:f.SketchEditMode,SketchEditorEventType:f.SketchEditorEventType,SketchEditorState:f.SketchEditorState,SketchEditorToolEventType:f.SketchEditorToolEventType,IGSRendererType:f.IGSRendererType,SymbolType:f.SymbolType,IGSSymbolType:f.IGSSymbolType,ElevationMode:f.ElevationMode,ElevationInfo:c.ElevationInfo,ProjectInfo:c.ProjectInfo,OutStatistic:c.OutStatistic,TileMatrixSet:c.TileMatrixSet,ProjectInfoBySrsID:c.ProjectInfoBySrsID,FeatureExpressionInfo:c.FeatureExpressionInfo,HorizontalAlignment:f.HorizontalAlignment,VerticalAlignment:f.VerticalAlignment,SceneMode:f.SceneMode,ShadowMode:f.ShadowMode,SimpleFillSymbol:d.SimpleFillSymbol,SimpleLineSymbol:d.SimpleLineSymbol,SimpleMarkerSymbol:d.SimpleMarkerSymbol,TextSymbol:d.TextSymbol,Symbol:d.Symbol,PictureMarkerSymbol:d.PictureMarkerSymbol,PictureFillSymbol:d.PictureFillSymbol,MapGISTextSymbol:d.MapGISTextSymbol,UniqueValueRenderer:u.UniqueValueRenderer,ClassBreakRenderer:u.ClassBreakRenderer,SimpleRenderer:u.SimpleRenderer,ClusterRenderer:u.ClusterRenderer,RandomRenderer:u.RandomRenderer,RankRenderer:u.RankRenderer,HeatmapRenderer:u.HeatmapRenderer,BaseRenderer:u.BaseRenderer,getIGSDynamicLayer:u.getIGSDynamicLayer,extend:h.extend,isArray:h.isArray,isNumber:h.isNumber,isInTheSameDomain:h.isInTheSameDomain,transformResult:h.transformResult,urlAppend:h.urlAppend,getParameterString:h.getParameterString,bind:h.bind,getGUID:h.getGUID,defaultValue:h.defaultValue,defined:h.defined,normalize:h.normalize,createGeometry:h.createGeometry,isNull:h.isNull,getGeometryParameter:h.getGeometryParameter,getOutStatisticsParameter:h.getOutStatisticsParameter,Log:h.Log,isString:h.isString,deepClone:h.deepClone,isBoolean:h.isBoolean,extendDeep:h.extendDeep,newGuid:h.newGuid,formatPoints:h.formatPoints,returnPoint:h.returnPoint,cloneObject:h.cloneObject,notNULL:h.notNULL,isObject:h.isObject,getVideoType:h.getVideoType,toJSON:h.toJSON,getBaseUrl:h.getBaseUrl,inputCss:h.inputCss,BaseView:p.BaseView,MapView:p.MapView,SceneView:p.SceneView,BaseGraphicsLayerView:p.BaseGraphicsLayerView,BaseRendererLayerView:p.BaseRendererLayerView,GroupLayerView:p.GroupLayerView,LayerView:p.LayerView,SpatialReference:l.SpatialReference,UrlServerType:f.UrlServerType,PictureFormat:f.PictureFormat,getUrlType:u.getUrlType,is4326:u.is4326,isCustomSP:u.isCustomSP,EPSG:c.EPSG,proj4:i.default,T:o,showLayerByScale:u.showLayerByScale,formatBaseUrl:a.formatBaseUrl,RadiusUnit:f.RadiusUnit,Geometry:l.Geometry,editFeatureByArc3:l.editFeatureByArc3,editGeometryByArc3:l.editGeometryByArc3,Config:a.Config,ServiceConfigToken:a.ServiceConfigToken,ServiceConfigRequestInterceptors:a.ServiceConfigRequestInterceptors,createSimpleMarkerSymbolCanvas:g.createSimpleMarkerSymbolCanvas,createSimpleFillSymbolCanvas:g.createSimpleFillSymbolCanvas,BaseFeatureLayerView:p.BaseFeatureLayerView,TileInfoUtil:u.TileInfoUtil,WMTSCorporation:f.WMTSCorporation,setElevationInfo:u.setElevationInfo,LabelClass:u.LabelClass,HeatmapColorStop:u.HeatmapColorStop,SizeVariable:u.SizeVariable,ColorVariable:u.ColorVariable,OpacityVariable:u.OpacityVariable,VisualVariable:u.VisualVariable,RendererUtil:p.RendererUtil,Symbol3D:d.Symbol3D,LabelSymbol3D:d.LabelSymbol3D,LineSymbol3D:d.LineSymbol3D,PointSymbol3D:d.PointSymbol3D,PolygonSymbol3D:d.PolygonSymbol3D,LineCallout3D:d.LineCallout3D,Callout3D:d.Callout3D,Symbol3DVerticalOffset:d.Symbol3DVerticalOffset,Symbol3DLayer:d.Symbol3DLayer,Symbol3DLayerType:f.Symbol3DLayerType,LineCapType:f.LineCapType,LineJoinType:f.LineJoinType,LineMarkerPlacement:f.LineMarkerPlacement,LineMarkerStyle:f.LineMarkerStyle,LineStyleMarker3D:d.LineStyleMarker3D,LinePatternStyle:f.LinePatternStyle,LineStylePattern3D:d.LineStylePattern3D,LineSymbol3DLayer:d.LineSymbol3DLayer,PathSymbol3DLayer:d.PathSymbol3DLayer,AnchorType:f.AnchorType,ProfileType:f.ProfileType,FillSymbol3DLayer:d.FillSymbol3DLayer,FillSymbol3DOutline:d.FillSymbol3DOutline,PatternStyle:f.PatternStyle,IconSymbol3DLayer:d.IconSymbol3DLayer,PointSymbol3DOutline:d.PointSymbol3DOutline,IconResource:d.IconResource,ObjectSymbol3DLayer:d.ObjectSymbol3DLayer,ExtrudeSymbol3DLayer:d.ExtrudeSymbol3DLayer,Edges3D:d.Edges3D,TextSymbol3DLayer:d.TextSymbol3DLayer,TextHalo:d.TextHalo,WaterSymbol3DLayer:d.WaterSymbol3DLayer,WaterbodySize:f.WaterbodySize,WaveStrength:f.WaveStrength,MaterialType:f.MaterialType,ColorMaterial:d.ColorMaterial,StylePattern3D:d.StylePattern3D,ArcGISVectorTileLayer:u.ArcGISVectorTileLayer,WebTileLayer:u.WebTileLayer,getZoomOffset:u.getZoomOffset,FeatureCollection:u.FeatureCollection,CAttDataRow:a.CAttDataRow,CAttStruct:a.CAttStruct,Interceptor:a.Interceptor,WorkFlowServer:a.WorkFlowServer,TileLayer:u.TileLayer,BaseServer:a.BaseServer,RequestConfig:a.RequestConfig,OverlayLayer:u.OverlayLayer,OGCLayer:u.OGCLayer,UnknownLayer:u.UnknownLayer,getProjectionSrs:h.getProjectionSrs,isWMSReverse:h.isWMSReverse,convertImageSourceToBase64:h.convertImageSourceToBase64,throttle:h.throttle,compareObject:h.compareObject,debouncePromise:h.debouncePromise,inOrderPromise:h.inOrderPromise,allSettled:h.allSettled,LinearUnits:f.LinearUnits,AreaUnits:f.AreaUnits,ArcType:f.ArcType,FetchRequest:a.FetchRequest,TileInfo:u.TileInfo,appendUrlParams:u.appendUrlParams,getFullBaseUrl:u.getFullBaseUrl,LOD:u.LOD,SceneSubLayerType:f.SceneSubLayerType,VectorTileLayer:u.VectorTileLayer,SeverVectorTileSubLayerType:f.SeverVectorTileSubLayerType,ExpressionParser:h.ExpressionParser,VisualVariableType:f.VisualVariableType,TDTLayerType:f.TDTLayerType,TileSliceType:f.TileSliceType,getValidLayers:s.getValidLayers,getLayerViewsGeographicExtent:s.getLayerViewsGeographicExtent,getCrsOptions:s.getCrsOptions,getLayersExtent:s.getLayersExtent};window.MapGISCommon=S,t.FetchServer=a.FetchServer,t.RequestInterceptor=a.RequestInterceptor,t.ResponseInterceptor=a.ResponseInterceptor,t.MapServer=a.MapServer,t.FeatureServer=a.FeatureServer,t.M3DServer=a.M3DServer,t.ImageServer=a.ImageServer,t.GeometryServer=a.GeometryServer,t.AddressServer=a.AddressServer,t.Cesium3DTilesServer=a.Cesium3DTilesServer,t.PoiServer=a.PoiServer,t.TerrainServer=a.TerrainServer,t.SecurityServer=a.SecurityServer,t.RootServer=a.RootServer,t.TileServer=a.TileServer,t.VectorTileServer=a.VectorTileServer,t.PlotServer=a.PlotServer,t.ResourceServer=a.ResourceServer,t.SceneServer=a.SceneServer,t.WMSServer=a.WMSServer,t.WMTSServer=a.WMTSServer,t.WFSServer=a.WFSServer,t.ArcGISMapServer=a.ArcGISMapServer,t.CAllOtherDataItemInfoSource=a.CAllOtherDataItemInfoSource,t.CAnnInfo=a.CAnnInfo,t.CChartLabelFormat=a.CChartLabelFormat,t.CChartTheme=a.CChartTheme,t.CChartThemeInfo=a.CChartThemeInfo,t.CChartThemeRepresentInfo=a.CChartThemeRepresentInfo,t.CChartType=a.CChartType,t.CDotDensityTheme=a.CDotDensityTheme,t.CFourColorTheme=a.CFourColorTheme,t.CGraduatedSymbolTheme=a.CGraduatedSymbolTheme,t.CLinInfo=a.CLinInfo,t.CMultiClassTheme=a.CMultiClassTheme,t.CPntInfo=a.CPntInfo,t.CRandomTheme=a.CRandomTheme,t.CRangeTheme=a.CRangeTheme,t.CRangeThemeInfo=a.CRangeThemeInfo,t.CRegInfo=a.CRegInfo,t.CSimpleTheme=a.CSimpleTheme,t.CTheme=a.CTheme,t.CThemeInfo=a.CThemeInfo,t.CUniqueTheme=a.CUniqueTheme,t.CUniqueThemeInfo=a.CUniqueThemeInfo,t.ExpInfo=a.ExpInfo,t.FolderInfo=a.FolderInfo,t.FolderInfoAttribute=a.FolderInfoAttribute,t.ItemValue=a.ItemValue,t.ThemeServer=a.ThemeServer,t.ThemesInfo=a.ThemesInfo,t.ArcGISGeometryServer=a.ArcGISGeometryServer,t.ArcGISFeatureServer=a.ArcGISFeatureServer,t.ArcGISVectorTileServer=a.ArcGISVectorTileServer,t.Map=u.Map,t.Basemap=u.Basemap,t.ArcGISMapImageLayer=u.ArcGISMapImageLayer,t.M3DModelCacheLayer=u.M3DModelCacheLayer,t.ArcGISMapImageSubLayer=u.ArcGISMapImageSubLayer,t.ArcGISTileLayer=u.ArcGISTileLayer,t.WMTSLayer=u.WMTSLayer,t.WMSLayer=u.WMSLayer,t.WMSSubLayer=u.WMSSubLayer,t.WFSLayer=u.WFSLayer,t.WMTSSubLayer=u.WMTSSubLayer,t.IGSVectorTileLayer=u.IGSVectorTileLayer,t.IGSVectorTileSubLayer=u.IGSVectorTileSubLayer,t.IGSMapImageLayer=u.IGSMapImageLayer,t.IGSMapImageSubLayer=u.IGSMapImageSubLayer,t.IGSSceneLayer=u.IGSSceneLayer,t.IGSSceneSubLayer=u.IGSSceneSubLayer,t.IGSTileLayer=u.IGSTileLayer,t.Scene=u.Scene,t.IGSFeatureLayer=u.IGSFeatureLayer,t.EchartsLayer=u.EchartsLayer,t.MapVLayer=u.MapVLayer,t.GroupLayer=u.GroupLayer,t.GraphicsLayer=u.GraphicsLayer,t.GeoJSONLayer=u.GeoJSONLayer,t.Cesium3DTilesCacheLayer=u.Cesium3DTilesCacheLayer,t.TerrainCacheLayer=u.TerrainCacheLayer,t.VideoLayer=u.VideoLayer,t.Layer=u.Layer,t.Projection=c.Projection,t.WMTSStyle=c.WMTSStyle,t.CoordnateTransform=c.CoordnateTransform,t.SketchEditor=y.SketchEditor,t.SketchEditor3D=y.SketchEditor3D,t.SketchBaseDrawTool=y.SketchBaseDrawTool,t.SketchPointDrawTool=y.SketchPointDrawTool,t.SketchPolylineDrawTool=y.SketchPolylineDrawTool,t.SketchPolygonDrawTool=y.SketchPolygonDrawTool,t.SketchCircleDrawTool=y.SketchCircleDrawTool,t.SketchExtentDrawTool=y.SketchExtentDrawTool,t.SketchFreehandPolylineDrawTool=y.SketchFreehandPolylineDrawTool,t.SketchFreehandPolygonDrawTool=y.SketchFreehandPolygonDrawTool,t.SketchStyle=y.SketchStyle,t.SketchEditorEvent=y.SketchEditorEvent,t.Extent=l.Extent,t.Polygon=l.Polygon,t.LineString=l.LineString,t.Point=l.Point,t.Circle=l.Circle,t.MultiPolygon=l.MultiPolygon,t.MultiLineString=l.MultiLineString,t.MultiPoint=l.MultiPoint,t.GeometryEngine=l.GeometryEngine,t.Color=c.Color,t.Font=c.Font,t.LayerEvent=c.LayerEvent,t.Event=c.Event,t.Zondy=_,t.zondy=v,t.Evented=c.Evented,t.FeatureRender=c.FeatureRender,t.ErrorEvent=c.ErrorEvent,t.Collection=c.Collection,t.FeatureSet=c.FeatureSet,t.Feature=c.Feature,t.getFeaturesFromFeatureSet=c.getFeaturesFromFeatureSet,t.ReturnFormat=f.ReturnFormat,t.FetchMethod=f.FetchMethod,t.LayerEventType=f.LayerEventType,t.MapEventType=f.MapEventType,t.StatisticType=f.StatisticType,t.SpatialRelation=f.SpatialRelation,t.CustomWKID=f.CustomWKID,t.GeometryType=f.GeometryType,t.LayerType=f.LayerType,t.TokenAttachType=f.TokenAttachType,t.IGSGeometryType=f.IGSGeometryType,t.LogType=f.LogType,t.LoadStatus=f.LoadStatus,t.ViewEventType=f.ViewEventType,t.LengthUnit=f.LengthUnit,t.AngleUnit=f.AngleUnit,t.RendererType=f.RendererType,t.VectorTileGeometryType=f.VectorTileGeometryType,t.VideoSourceType=f.VideoSourceType,t.SketchDataType=f.SketchDataType,t.SketchEditMode=f.SketchEditMode,t.SketchEditorEventType=f.SketchEditorEventType,t.SketchEditorState=f.SketchEditorState,t.SketchEditorToolEventType=f.SketchEditorToolEventType,t.IGSRendererType=f.IGSRendererType,t.SymbolType=f.SymbolType,t.IGSSymbolType=f.IGSSymbolType,t.ElevationMode=f.ElevationMode,t.ElevationInfo=c.ElevationInfo,t.ProjectInfo=c.ProjectInfo,t.OutStatistic=c.OutStatistic,t.TileMatrixSet=c.TileMatrixSet,t.ProjectInfoBySrsID=c.ProjectInfoBySrsID,t.FeatureExpressionInfo=c.FeatureExpressionInfo,t.HorizontalAlignment=f.HorizontalAlignment,t.VerticalAlignment=f.VerticalAlignment,t.SceneMode=f.SceneMode,t.ShadowMode=f.ShadowMode,t.SimpleFillSymbol=d.SimpleFillSymbol,t.SimpleLineSymbol=d.SimpleLineSymbol,t.SimpleMarkerSymbol=d.SimpleMarkerSymbol,t.TextSymbol=d.TextSymbol,t.Symbol=d.Symbol,t.PictureMarkerSymbol=d.PictureMarkerSymbol,t.PictureFillSymbol=d.PictureFillSymbol,t.MapGISTextSymbol=d.MapGISTextSymbol,t.UniqueValueRenderer=u.UniqueValueRenderer,t.ClassBreakRenderer=u.ClassBreakRenderer,t.SimpleRenderer=u.SimpleRenderer,t.ClusterRenderer=u.ClusterRenderer,t.RandomRenderer=u.RandomRenderer,t.RankRenderer=u.RankRenderer,t.HeatmapRenderer=u.HeatmapRenderer,t.BaseRenderer=u.BaseRenderer,t.getIGSDynamicLayer=u.getIGSDynamicLayer,t.extend=h.extend,t.isArray=h.isArray,t.isNumber=h.isNumber,t.isInTheSameDomain=h.isInTheSameDomain,t.transformResult=h.transformResult,t.urlAppend=h.urlAppend,t.getParameterString=h.getParameterString,t.bind=h.bind,t.getGUID=h.getGUID,t.defaultValue=h.defaultValue,t.defined=h.defined,t.normalize=h.normalize,t.createGeometry=h.createGeometry,t.isNull=h.isNull,t.getGeometryParameter=h.getGeometryParameter,t.getOutStatisticsParameter=h.getOutStatisticsParameter,t.Log=h.Log,t.isString=h.isString,t.deepClone=h.deepClone,t.isBoolean=h.isBoolean,t.extendDeep=h.extendDeep,t.newGuid=h.newGuid,t.formatPoints=h.formatPoints,t.returnPoint=h.returnPoint,t.cloneObject=h.cloneObject,t.notNULL=h.notNULL,t.isObject=h.isObject,t.getVideoType=h.getVideoType,t.toJSON=h.toJSON,t.getBaseUrl=h.getBaseUrl,t.inputCss=h.inputCss,t.BaseView=p.BaseView,t.MapView=p.MapView,t.SceneView=p.SceneView,t.BaseGraphicsLayerView=p.BaseGraphicsLayerView,t.BaseRendererLayerView=p.BaseRendererLayerView,t.GroupLayerView=p.GroupLayerView,t.LayerView=p.LayerView,t.SpatialReference=l.SpatialReference,t.UrlServerType=f.UrlServerType,t.PictureFormat=f.PictureFormat,t.getUrlType=u.getUrlType,t.is4326=u.is4326,t.isCustomSP=u.isCustomSP,t.EPSG=c.EPSG,t.proj4=i.default,t.T=o,t.showLayerByScale=u.showLayerByScale,t.formatBaseUrl=a.formatBaseUrl,t.RadiusUnit=f.RadiusUnit,t.Geometry=l.Geometry,t.editFeatureByArc3=l.editFeatureByArc3,t.editGeometryByArc3=l.editGeometryByArc3,t.Config=a.Config,t.ServiceConfigToken=a.ServiceConfigToken,t.ServiceConfigRequestInterceptors=a.ServiceConfigRequestInterceptors,t.createSimpleMarkerSymbolCanvas=g.createSimpleMarkerSymbolCanvas,t.createSimpleFillSymbolCanvas=g.createSimpleFillSymbolCanvas,t.BaseFeatureLayerView=p.BaseFeatureLayerView,t.TileInfoUtil=u.TileInfoUtil,t.WMTSCorporation=f.WMTSCorporation,t.setElevationInfo=u.setElevationInfo,t.LabelClass=u.LabelClass,t.HeatmapColorStop=u.HeatmapColorStop,t.SizeVariable=u.SizeVariable,t.ColorVariable=u.ColorVariable,t.OpacityVariable=u.OpacityVariable,t.VisualVariable=u.VisualVariable,t.RendererUtil=p.RendererUtil,t.Symbol3D=d.Symbol3D,t.LabelSymbol3D=d.LabelSymbol3D,t.LineSymbol3D=d.LineSymbol3D,t.PointSymbol3D=d.PointSymbol3D,t.PolygonSymbol3D=d.PolygonSymbol3D,t.LineCallout3D=d.LineCallout3D,t.Callout3D=d.Callout3D,t.Symbol3DVerticalOffset=d.Symbol3DVerticalOffset,t.Symbol3DLayer=d.Symbol3DLayer,t.Symbol3DLayerType=f.Symbol3DLayerType,t.LineCapType=f.LineCapType,t.LineJoinType=f.LineJoinType,t.LineMarkerPlacement=f.LineMarkerPlacement,t.LineMarkerStyle=f.LineMarkerStyle,t.LineStyleMarker3D=d.LineStyleMarker3D,t.LinePatternStyle=f.LinePatternStyle,t.LineStylePattern3D=d.LineStylePattern3D,t.LineSymbol3DLayer=d.LineSymbol3DLayer,t.PathSymbol3DLayer=d.PathSymbol3DLayer,t.AnchorType=f.AnchorType,t.ProfileType=f.ProfileType,t.FillSymbol3DLayer=d.FillSymbol3DLayer,t.FillSymbol3DOutline=d.FillSymbol3DOutline,t.PatternStyle=f.PatternStyle,t.IconSymbol3DLayer=d.IconSymbol3DLayer,t.PointSymbol3DOutline=d.PointSymbol3DOutline,t.IconResource=d.IconResource,t.ObjectSymbol3DLayer=d.ObjectSymbol3DLayer,t.ExtrudeSymbol3DLayer=d.ExtrudeSymbol3DLayer,t.Edges3D=d.Edges3D,t.TextSymbol3DLayer=d.TextSymbol3DLayer,t.TextHalo=d.TextHalo,t.WaterSymbol3DLayer=d.WaterSymbol3DLayer,t.WaterbodySize=f.WaterbodySize,t.WaveStrength=f.WaveStrength,t.MaterialType=f.MaterialType,t.ColorMaterial=d.ColorMaterial,t.StylePattern3D=d.StylePattern3D,t.ArcGISVectorTileLayer=u.ArcGISVectorTileLayer,t.WebTileLayer=u.WebTileLayer,t.getZoomOffset=u.getZoomOffset,t.FeatureCollection=u.FeatureCollection,t.CAttDataRow=a.CAttDataRow,t.CAttStruct=a.CAttStruct,t.Interceptor=a.Interceptor,t.WorkFlowServer=a.WorkFlowServer,t.TileLayer=u.TileLayer,t.BaseServer=a.BaseServer,t.RequestConfig=a.RequestConfig,t.UnknownLayer=u.UnknownLayer,t.OverlayLayer=u.OverlayLayer,t.OGCLayer=u.OGCLayer,t.getProjectionSrs=h.getProjectionSrs,t.isWMSReverse=h.isWMSReverse,t.convertImageSourceToBase64=h.convertImageSourceToBase64,t.throttle=h.throttle,t.compareObject=h.compareObject,t.debouncePromise=h.debouncePromise,t.inOrderPromise=h.inOrderPromise,t.allSettled=h.allSettled,t.LinearUnits=f.LinearUnits,t.AreaUnits=f.AreaUnits,t.ArcType=f.ArcType,t.FetchRequest=a.FetchRequest,t.TileInfo=u.TileInfo,t.appendUrlParams=u.appendUrlParams,t.getFullBaseUrl=u.getFullBaseUrl,t.LOD=u.LOD,t.convertIGSClippingString=a.convertIGSClippingString,t.SceneSubLayerType=f.SceneSubLayerType,t.GeometryFilter=a.GeometryFilter,t.ColorNameToHexMap=f.ColorNameToHexMap,t.SeverVectorTileSubLayerType=f.SeverVectorTileSubLayerType,t.VisualVariableType=f.VisualVariableType,t.TDTLayerType=f.TDTLayerType,t.TileSliceType=f.TileSliceType,t.VectorTileLayer=u.VectorTileLayer,t.ExpressionParser=h.ExpressionParser,t.isLayerViewValid=s.isLayerViewValid,t.getValidLayers=s.getValidLayers,t.getLayerViewsGeographicExtent=s.getLayerViewsGeographicExtent,t.getCrsOptions=s.getCrsOptions,t.getLayersExtent=s.getLayersExtent},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(100),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(102)("keys"),i=r(82);e.exports=function(e){return n[e]||(n[e]=i(e))}},function(e,t,r){var n=r(12),i=r(20),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(69)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(26),i=r(20).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){var n=r(26);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(24),i=r(138),o=r(103),a=r(101)("IE_PROTO"),s=function(){},u=function(){var e,t=r(104)("iframe"),n=o.length;for(t.style.display="none",r(142).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(68),i=r(21)("toStringTag"),o="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:o?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,r){var n=r(107),i=r(21)("iterator"),o=r(61);e.exports=r(12).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){"use strict";var n=r(84);e.exports.f=function(e){return new function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}(e)}},function(e,t,r){t.f=r(21)},function(e,t,r){var n=r(20),i=r(12),o=r(69),a=r(110),s=r(28).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(11)),i=p(r(23)),o=p(r(49)),a=p(r(3)),s=p(r(0)),u=p(r(2)),l=p(r(4)),c=p(r(5)),h=r(1),f=p(r(73)),d=r(40);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,s.default)(this,t);var r=(0,l.default)(this,(t.__proto__||(0,a.default)(t)).call(this));return r.type="collection",e instanceof t?r._items=e.all():Array.isArray(e)?r._items=e:r._items=[],r._items=r._items.map(function(e){return r.createInstance(e)}),r}return(0,c.default)(t,e),(0,u.default)(t,[{key:"add",value:function(e,t){return this._add(e,t),this._fireCollectionChangeEvent({added:[e],target:this,sourceTarget:this}),this}},{key:"addMany",value:function(e,t){var r=this;if(Array.isArray(e)){var n=e.map(function(e){return r.createInstance(e)}),i=this._getNextIndex(t);n.forEach(function(e,t){r._items.splice(i+t,0,e)}),this._fireCollectionChangeEvent({target:this,sourceTarget:this,added:n})}}},{key:"at",value:function(e){return(e=Number(e))>=0?this._items[e]:this._items[this._items.length-1+e]}},{key:"clone",value:function(){for(var e=[],r=0;r<this._items.length;r++)e.push((0,h.cloneObject)(this.items[r]));return new t(e)}},{key:"concat",value:function(e){var t=e;e instanceof this.constructor?t=e.all():e instanceof Array?t=e:"object"===(void 0===e?"undefined":(0,o.default)(e))&&(t=[],(0,i.default)(e).forEach(function(r){t.push(e[r])}));var r=this._items;return t.forEach(function(e){r.push(e)}),new this.constructor(r)}},{key:"every",value:function(e){var t=!0;if(!(e instanceof Function))return!1;for(var r=0;r<this._items.length;r++)if(!e(this._items[r])){t=!1;break}return t}},{key:"filter",value:function(e){if(e instanceof Function){for(var r=[],n=0;n<this._items.length;n++)e(this._items[n])&&r.push(this._items[n]);return new t(r)}}},{key:"find",value:function(e){if(e instanceof Function){for(var t=void 0,r=0;r<this._items.length;r++)if(e(this._items[r])){t=this._items[r];break}return t}}},{key:"findIndex",value:function(e){return this._items.findIndex(e)}},{key:"flatten",value:function(e){if(e instanceof Function){for(var r=[],n=0;n<this._items.length;n++)r.push(this._items[n]);for(var i=0;i<r.length;i++)r=r.concat(o(r[i],e));return new t(r)}function o(e,r){var n=r(e);if(n){if(n instanceof Array)return n;if(n instanceof t){for(var i=n.toArray(),a=0;a<n._items.length;a++)i=i.concat(o(n._items[a],r));return i}return[n]}return[]}}},{key:"forEach",value:function(e){return this._items.forEach(e)}},{key:"getItemAt",value:function(e){return this._items[e]}},{key:"includes",value:function(e){return this._items.includes(e)}},{key:"indexOf",value:function(e,t){return this._items.indexOf(e,t)}},{key:"join",value:function(e){for(var t="",r=0;r<this._items.length-1;r++)t+=this._items[r]+e;return t+this._items[this._items.length-1]}},{key:"lastIndexOf",value:function(e,t){for(var r=-1,n=t=(0,h.defaultValue)(t,this._items.length-1);n>=0;n--)if(this._items[n]===e){r=n;break}return r}},{key:"map",value:function(e){var t=this;if(Array.isArray(this._items))return new this.constructor(this._items.map(e));var r={};return(0,i.default)(this._items).forEach(function(n){r[n]=e(t._items[n],n)}),new this.constructor(r)}},{key:"pop",value:function(){return this._items.pop()}},{key:"push",value:function(e){return this.add(e)}},{key:"reduce",value:function(e,t){var r=this,n=null;return void 0!==t&&(n=t),Array.isArray(this._items)?this._items.forEach(function(t){n=e(n,t)}):(0,i.default)(this._items).forEach(function(t){n=e(n,r._items[t],t)}),n}},{key:"reduceRight",value:function(e,r){for(var n=[],i=this._items.length-1;i>=0;i--)n.push(this._items[i]);return new t(n).reduce(e,r)}},{key:"remove",value:function(e){var t=this._remove(e);return t&&this._fireCollectionChangeEvent({removed:[e],target:this,sourceTarget:this}),t}},{key:"removeAll",value:function(){this._items=[],this._fireCollectionChangeEvent({target:this,sourceTarget:this})}},{key:"removeAt",value:function(e){var t=this._items.splice(e,1);return this._fireCollectionChangeEvent({target:this,sourceTarget:this}),t}},{key:"removeMany",value:function(e){var t=this;if(Array.isArray(e)){for(var r=[],n=[],i=function(i){var o=t._items.findIndex(function(t){return t===e[i]});o>-1&&(n.push(o),r.push(e[i]))},o=0;o<e.length;o++)i(o);return r.length>0&&(this._items=this._items.filter(function(e,t){return n.every(function(e){return e!==t})}),this._fireCollectionChangeEvent({removed:r,target:this,sourceTarget:this})),r}}},{key:"reorder",value:function(e,t){this._reorder(e,t)&&this._fireCollectionChangeEvent({moved:[e],target:this,sourceTarget:this})}},{key:"reverse",value:function(){var e=[].concat(this._items).reverse();return new this.constructor(e)}},{key:"shift",value:function(){return this._items.shift()}},{key:"slice",value:function(e,t){var r=this._items.slice(e);return void 0!==t&&(r=r.slice(0,t)),new this.constructor(r)}},{key:"some",value:function(e){if(!(e instanceof Function))return!1;for(var t=!1,r=0;r<this._items.length;r++)if(e(this._items[r])){t=!0;break}return t}},{key:"sort",value:function(e){var t=[].concat(this._items);return void 0===e?this.every(function(e){return"number"==typeof e})?t.sort(function(e,t){return e-t}):t.sort():t.sort(e),new this.constructor(t)}},{key:"splice",value:function(e,r){for(var n,i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return new t((n=this._items).splice.apply(n,[e,r].concat(o)))}},{key:"toArray",value:function(){for(var e=[],t=0;t<this._items.length;t++)e.push(this.items[t]);return e}},{key:"unshift",value:function(){var e;(e=this._items).unshift.apply(e,arguments)}},{key:"all",value:function(){return this.toArray()}},{key:"unique",value:function(e){var t=void 0;if(void 0===e)t=this._items.filter(function(e,t,r){return r.indexOf(e)===t});else{t=[];for(var r=[],n=0,i=this._items.length;n<i;n+=1){var o;o=e instanceof Function?e(this._items[n]):this._items[n][e],-1===r.indexOf(o)&&(t.push(this._items[n]),r.push(o))}}return new this.constructor(t)}},{key:"createInstance",value:function(e){return e}},{key:"_fireCollectionChangeEvent",value:function(e){if(this.fire("change",new d.CollectionChangeEvent(e),!1),this.fire("collection-refresh",new d.CollectionChangeEvent(e),!1),this._parentCollection)for(var t=this._parentCollection;t;)t.fire("collection-refresh",new d.CollectionChangeEvent(e),!1),t=t._parentCollection}},{key:"_addParentCollection",value:function(e){this._parentCollection=e}},{key:"_removeParentCollection",value:function(){this._parentCollection=void 0}},{key:"_getNextIndex",value:function(e){return e=(0,h.defaultValue)(e,this._items.length),Math.max(0,Math.min(this._items.length,e))}},{key:"_add",value:function(e,t){var r=this.createInstance(e);this._items.splice(this._getNextIndex(t),0,r)}},{key:"_remove",value:function(e){var t=this._items.indexOf(e);return t>-1&&(this._items.splice(t,1),!0)}},{key:"_reorder",value:function(e,t){var r=this._items.length;t=(0,h.defaultValue)(t,r-1);var n=this._items.indexOf(e);return n>-1&&(t=Math.min(Math.max(0,t),r-1))!==n&&(this._items.splice(n,1),this._items.splice(t,0,e),!0)}}],[{key:"isCollection",value:function(e){return e instanceof t}}]),t}(f.default);(0,n.default)(y.prototype,{items:{get:function(){return this._items},set:function(e){var t=this;this._items=e;var r=e.map(function(e){return t.createInstance(e)});this._fireCollectionChangeEvent({target:this,sourceTarget:this,added:r})}},length:{get:function(){return this._items.length}}}),t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.family=(0,o.defaultValue)(t.family,"微软雅黑"),this.size=(0,o.defaultValue)(t.size,12),this.style=(0,o.defaultValue)(t.style,"normal"),this.weight=(0,o.defaultValue)(t.weight,"normal"),this.decoration=(0,o.defaultValue)(t.decoration,"none")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.family=this.family,e.size=this.size,e.style=this.style,e.weight=this.weight,e.decoration=this.decoration,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{id:2348,name:"高斯大地坐标系_西安80_23带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2347,name:"高斯大地坐标系_西安80_22带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2346,name:"高斯大地坐标系_西安80_21带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2345,name:"高斯大地坐标系_西安80_20带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2344,name:"高斯大地坐标系_西安80_19带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2343,name:"高斯大地坐标系_西安80_18带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2342,name:"高斯大地坐标系_西安80_17带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2341,name:"高斯大地坐标系_西安80_16带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2340,name:"高斯大地坐标系_西安80_15带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2339,name:"高斯大地坐标系_西安80_14带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2338,name:"高斯大地坐标系_西安80_13带6_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2390,name:"高斯大地坐标系_西安80_45带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2389,name:"高斯大地坐标系_西安80_44带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2388,name:"高斯大地坐标系_西安80_43带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2387,name:"高斯大地坐标系_西安80_42带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2386,name:"高斯大地坐标系_西安80_41带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2385,name:"高斯大地坐标系_西安80_40带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2384,name:"高斯大地坐标系_西安80_39带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2383,name:"高斯大地坐标系_西安80_38带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2382,name:"高斯大地坐标系_西安80_37带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2381,name:"高斯大地坐标系_西安80_36带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2380,name:"高斯大地坐标系_西安80_35带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2379,name:"高斯大地坐标系_西安80_34带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2378,name:"高斯大地坐标系_西安80_33带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2377,name:"高斯大地坐标系_西安80_32带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2376,name:"高斯大地坐标系_西安80_31带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2375,name:"高斯大地坐标系_西安80_30带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2374,name:"高斯大地坐标系_西安80_29带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2373,name:"高斯大地坐标系_西安80_28带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2372,name:"高斯大地坐标系_西安80_27带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2371,name:"高斯大地坐标系_西安80_26带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2370,name:"高斯大地坐标系_西安80_25带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2327,name:"高斯大地坐标系_西安80_13带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2328,name:"高斯大地坐标系_西安80_14带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2329,name:"高斯大地坐标系_西安80_15带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2330,name:"高斯大地坐标系_西安80_16带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2331,name:"高斯大地坐标系_西安80_17带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2332,name:"高斯大地坐标系_西安80_18带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2333,name:"高斯大地坐标系_西安80_19带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2334,name:"高斯大地坐标系_西安80_20带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2335,name:"高斯大地坐标系_西安80_21带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2336,name:"高斯大地坐标系_西安80_22带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2337,name:"高斯大地坐标系_西安80_23带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2403,name:"高斯大地坐标系_西安80_27带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2404,name:"高斯大地坐标系_西安80_28带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2405,name:"高斯大地坐标系_西安80_29带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2406,name:"高斯大地坐标系_西安80_30带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2407,name:"高斯大地坐标系_西安80_31带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2408,name:"高斯大地坐标系_西安80_32带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2409,name:"高斯大地坐标系_西安80_33带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2410,name:"高斯大地坐标系_西安80_34带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2411,name:"高斯大地坐标系_西安80_35带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2412,name:"高斯大地坐标系_西安80_36带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2413,name:"高斯大地坐标系_西安80_37带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2414,name:"高斯大地坐标系_西安80_38带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2415,name:"高斯大地坐标系_西安80_39带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2416,name:"高斯大地坐标系_西安80_40带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2417,name:"高斯大地坐标系_西安80_41带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2418,name:"高斯大地坐标系_西安80_42带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2419,name:"高斯大地坐标系_西安80_43带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2420,name:"高斯大地坐标系_西安80_44带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2421,name:"高斯大地坐标系_西安80_45带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2349,name:"高斯大地坐标系_西安80_25带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2350,name:"高斯大地坐标系_西安80_26带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2351,name:"高斯大地坐标系_西安80_27带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2352,name:"高斯大地坐标系_西安80_28带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2353,name:"高斯大地坐标系_西安80_29带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2354,name:"高斯大地坐标系_西安80_30带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2355,name:"高斯大地坐标系_西安80_31带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2356,name:"高斯大地坐标系_西安80_32带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2357,name:"高斯大地坐标系_西安80_33带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2358,name:"高斯大地坐标系_西安80_34带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2359,name:"高斯大地坐标系_西安80_35带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2360,name:"高斯大地坐标系_西安80_36带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2361,name:"高斯大地坐标系_西安80_37带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2362,name:"高斯大地坐标系_西安80_38带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2363,name:"高斯大地坐标系_西安80_39带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2364,name:"高斯大地坐标系_西安80_40带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2365,name:"高斯大地坐标系_西安80_41带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2366,name:"高斯大地坐标系_西安80_42带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2367,name:"高斯大地坐标系_西安80_43带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2368,name:"高斯大地坐标系_西安80_44带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:2369,name:"高斯大地坐标系_西安80_45带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +a=6378140 +b=6356755.288157528 +units=m +no_defs"},{id:21413,name:"高斯大地坐标系_北京54_13带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21414,name:"高斯大地坐标系_北京54_14带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21415,name:"高斯大地坐标系_北京54_15带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21416,name:"高斯大地坐标系_北京54_16带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21417,name:"高斯大地坐标系_北京54_17带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21418,name:"高斯大地坐标系_北京54_18带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21419,name:"高斯大地坐标系_北京54_19带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21420,name:"高斯大地坐标系_北京54_20带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21421,name:"高斯大地坐标系_北京54_21带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21422,name:"高斯大地坐标系_北京54_22带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:21423,name:"高斯大地坐标系_北京54_23带6_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2431,name:"高斯大地坐标系_北京54_34带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2401,name:"高斯大地坐标系_北京54_25带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:2402,name:"高斯大地坐标系_北京54_26带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +units=m +no_defs"},{id:32646,name:"Beijing 1954 / 3-degree Gauss-Kruger CM 102E",type:1,strProject:"+proj=utm +zone=46 +datum=WGS84 +units=m +no_defs"},{id:4502,name:"高斯大地坐标系_中国2000_13带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4503,name:"高斯大地坐标系_中国2000_14带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4504,name:"高斯大地坐标系_中国2000_15带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4505,name:"高斯大地坐标系_中国2000_16带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4506,name:"高斯大地坐标系_中国2000_17带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4507,name:"高斯大地坐标系_中国2000_18带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4508,name:"高斯大地坐标系_中国2000_19带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4509,name:"高斯大地坐标系_中国2000_20带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4510,name:"高斯大地坐标系_中国2000_21带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4511,name:"高斯大地坐标系_中国2000_22带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4512,name:"高斯大地坐标系_中国2000_23带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4513,name:"高斯大地坐标系_中国2000_25带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4514,name:"高斯大地坐标系_中国2000_26带6_北",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4515,name:"高斯大地坐标系_中国2000_27带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4516,name:"高斯大地坐标系_中国2000_28带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4517,name:"高斯大地坐标系_中国2000_29带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4518,name:"高斯大地坐标系_中国2000_30带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4519,name:"高斯大地坐标系_中国2000_31带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4520,name:"高斯大地坐标系_中国2000_32带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4521,name:"高斯大地坐标系_中国2000_33带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4522,name:"高斯大地坐标系_中国2000_34带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4523,name:"高斯大地坐标系_中国2000_35带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4524,name:"高斯大地坐标系_中国2000_36带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4525,name:"高斯大地坐标系_中国2000_37带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4526,name:"高斯大地坐标系_中国2000_38带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4527,name:"高斯大地坐标系_中国2000_39带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4528,name:"高斯大地坐标系_中国2000_40带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4529,name:"高斯大地坐标系_中国2000_41带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4530,name:"高斯大地坐标系_中国2000_42带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4531,name:"高斯大地坐标系_中国2000_43带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4532,name:"高斯大地坐标系_中国2000_44带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4533,name:"高斯大地坐标系_中国2000_45带3_北2",type:0,strProject:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4546,name:"高斯大地坐标系_中国2000_37带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4547,name:"高斯大地坐标系_中国2000_38带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:4545,name:"高斯大地坐标系_中国2000_36带3_北",type:1,strProject:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{id:3857,name:"Web墨卡托_WGS1984",type:1,strProject:"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"},{id:900913,name:"天地图3857",type:1,strProject:"+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs +type=crs"},{id:4610,name:"地理坐标系(西安)_度",type:0,strProject:"+proj=longlat +a=6378140 +b=6356755.288157528 +units=degrees +no_defs"},{id:4214,name:"地理坐标系(北京)_度",type:0,strProject:"+proj=longlat +ellps=krass +towgs84=15.8,-154.4,-82.3,0,0,0,0 +no_defs"},{id:4490,name:"中国2000国家大地坐标系_度",type:0,strProject:"+proj=longlat +ellps=GRS80 +units=degrees +no_defs"},{id:4326,name:"WGS1984_度",type:0,strProject:"+proj=longlat +datum=WGS84 +no_defs +type=crs"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={default:"default",line:"simple-line",simpleLine:"simple-line",fill:"simple-fill",simpleFill:"simple-fill",marker:"simple-marker",simpleMarker:"simple-marker",pictureMarker:"picture-marker",text:"text",pictureFill:"picture-fill",mapgisText:"mapgis-text",point3D:"point-3d",polygon3D:"polygon-3d",line3D:"line-3d",label3D:"label-3d"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={left:"left",right:"right",center:"center"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={baseline:"baseline",top:"top",middle:"middle",bottom:"bottom"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={butt:"butt",round:"round",square:"square"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={bevel:"bevel",miter:"miter",round:"round"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={gcj02ll:20010201,gcj02mc:20010202,bd09ll:20020901,bd09mc:20020902}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeaturesFromFeatureSet=t.FeatureSet=t.Feature=void 0;var n=a(r(162)),i=a(r(371)),o=r(372);function a(e){return e&&e.__esModule?e:{default:e}}t.Feature=n.default,t.FeatureSet=i.default,t.getFeaturesFromFeatureSet=o.getFeaturesFromFeatureSet},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(1),c=r(6),h=d(r(361)),f=d(r(362));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.simpleLine,r.cap=(0,l.defaultValue)(e.cap,"round"),r.join=(0,l.defaultValue)(e.join,"round"),r.miterLimit=(0,l.defaultValue)(e.miterLimit,2),r.style=(0,l.defaultValue)(e.style,"solid");var o=(0,l.defaultValue)(e.marker,null);return o?(o.color=(0,l.defaultValue)(o.color,r.color.clone()),r.marker=f.default.fromJSON(o)):r.marker=null,r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.cap=this.cap,e.join=this.join,e.miterLimit=this.miterLimit,e.style=this.style,e.marker=this.marker?this.marker.toJSON():null,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(h.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,[{key:"drawFeature",value:function(e,t){}},{key:"updateFeature",value:function(e,t,r){}},{key:"clearFeature",value:function(e,t){}},{key:"clear",value:function(e){}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),t=(0,i.defaultValue)(t,{}),this.before=(0,i.defaultValue)(t.success,void 0),this.failure=(0,i.defaultValue)(t.failure,void 0)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),t=(0,i.defaultValue)(t,{}),this.success=(0,i.defaultValue)(t.success,void 0),this.failure=(0,i.defaultValue)(t.failure,void 0)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.default=function(e,t,r){var i=(0,n.defaultValue)(r,{});(0,n.extend)(this,i),this.FID=(0,n.defaultValue)(t,0),this.Values=(0,n.defaultValue)(e,null)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLayersExtent=t.getCrsOptions=t.getLayerViewsGeographicExtent=t.getValidLayers=t.isLayerViewValid=void 0;var n=r(9),i=r(6),o=r(8),a=r(1),s=r(64);function u(e,t){var r=!1;if(t&&t.spatialReference&&e){var o=e;o instanceof n.SpatialReference||(o=n.SpatialReference.fromJSON(o)),r=!i.LayerType.isTileLayer(t.type)||o.equals(t.spatialReference)||o.isGeographic&&t.spatialReference.isGeographic||o.isWebMercator&&t.spatialReference.isWebMercator}return r}t.isLayerViewValid=u,t.getValidLayers=function(e,t){var r=e.spatialReference,n=[];return t.forEach(function(e){u(r,e)&&n.push(e)}),n},t.getLayerViewsGeographicExtent=function(e,t,r){var i=e.extent,a=r._getLayersExtent(t);return a||(a=n.Extent.fromJSON(i.toJSON())),o.Projection.project(a,new n.SpatialReference("EPSG:4326"))},t.getCrsOptions=function(e,t,r){r=(0,a.defaultValue)(r,{});var o=(0,a.defaultValue)(r.fullExtent,void 0),u=(0,a.defaultValue)(r.mergeLevelRatio,1.05),l=e.tileInfo,c=e.spatialReference;if(e.type===i.LayerType.wmts)l=e.getCurrentTileInfo();else if(e.type===i.LayerType.wms)l=s.TileInfoUtil.parseWMSTileInfo(e,e.extent);else if(e.type===i.LayerType.igsMapImage||e.type===i.LayerType.arcgisMapImage||e.type===i.LayerType.igsFeature||e.type===i.LayerType.wfs||e.type===i.LayerType.geojson){var h=256;e.imageWidth&&e.imageHeight&&(h=Math.max(e.imageWidth,e.imageHeight)),l=s.TileInfoUtil.generateTileInfo(o,h,c)}var f=n.Point.toCoordinates(l.origin),d=[];t.forEach(function(e){var t=[];for(e.tileInfo?t=e.tileInfo.lods.map(function(e){return e.clone()}):e.type===i.LayerType.wmts&&(t=e.getCurrentTileInfo().lods.map(function(e){return e.clone()}));t.length>0&&0!==t[0].level;){var r=t[0];t.unshift(s.LOD.fromJSON({level:r.level-1,resolution:2*r.resolution,scale:2*r.scale}))}d=d.concat(t)}),0===d.length&&(d=l.lods),d.sort(function(e,t){return t.resolution-e.resolution});for(var p=[d[0]],y=1;y<d.length;y++){var g=d[y];p[p.length-1].resolution/g.resolution<=u||p.push(g)}return p.forEach(function(e,t){e.level=t}),{spatialReference:c,resolutions:p.map(function(e){return e.resolution}),origin:f,extent:o,lods:p,tileSize:l.getTileSize(),tileSliceType:e.tileSliceType}},t.getLayersExtent=function(e,t){var r=void 0;return e.forEach(function(e){if(e.extent){var i=void 0;i=s.TileInfoUtil.isSameSpatialReference(e.spatialReference,t)?e.extent:o.Projection.project(e.extent,t),e.spatialReference&&t&&e.loaded&&(r?(r.xmin>i.xmin&&(r.xmin=i.xmin),r.ymin>i.ymin&&(r.ymin=i.ymin),r.xmax<i.xmax&&(r.xmax=i.xmax),r.ymax<i.ymax&&(r.ymax=i.ymax)):r=n.Extent.fromJSON(i.toJSON()))}}),r&&r.spatialReference&&!r.spatialReference.isGeographic&&(r=o.Projection.project(r,t)),r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(11)),i=y(r(22)),o=y(r(3)),a=y(r(0)),s=y(r(2)),u=y(r(4)),l=y(r(7)),c=y(r(5)),h=r(8),f=r(15),d=r(1),p=r(9);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));e=(0,d.defaultValue)(e,{}),r.id=(0,d.defaultValue)(e.id,(0,d.getGUID)()),r.layerIndex=(0,d.defaultValue)(e.layerIndex,0),r.layerRenderIndex=(0,d.defaultValue)(e.layerRenderIndex,0),r.type=(0,d.defaultValue)(e.layerType,void 0),r.renderType=(0,d.defaultValue)(e.layerRenderType,void 0),r._labelingInfo=(0,d.defaultValue)(e.labelingInfo,[]),r.beginLevel=(0,d.defaultValue)(e.beginLevel,-1),r.endLevel=(0,d.defaultValue)(e.endLevel,-1),r._renderer=(0,d.defaultValue)(e.renderer,void 0),e.originalPoints?r.originPoint=new p.Point({coordinates:[e.originalPoints.x,e.originalPoints.y]}):r.originPoint=void 0,e.frameSizes?r.maxFrameSize=e.frameSizes[0]:r.maxFrameSize=void 0,r.url=(0,d.defaultValue)(e.url||e.gdbpUrl,void 0),e.range?r.range=new p.Extent({xmin:e.range.xMin,ymin:e.range.yMin,xmax:e.range.xMax,ymax:e.range.yMax}):r.range=void 0,e.range3D?r.range3D=new p.Extent({xmin:e.range3D.xMin,ymin:e.range3D.yMin,xmax:e.range3D.xMax,ymax:e.range3D.yMax,zmin:e.range3D.zMin,zmax:e.range3D.zMax}):r.range3D=void 0,r.layer=(0,d.defaultValue)(e.layer,void 0),r.spatialReference=(0,d.defaultValue)(e.spatialReference,void 0);var n=e.sublayers;if(r.sublayers=new h.Collection,n instanceof Array)for(var i=0;i<n.length;i++)r.sublayers.add(new t(n[i]));else n instanceof h.Collection&&n.forEach(function(e){r.sublayers.add(new t(e))});return r.elevationScale=(0,d.defaultValue)(e.elevationScale,void 0),r.requestVertexNormals=(0,d.defaultValue)(e.requestVertexNormals,!1),r.labelLayer=(0,d.defaultValue)(e.labelLayer,void 0),r.layerName=(0,d.defaultValue)(e.layerName,void 0),r._opacity=(0,d.defaultValue)(e.opacity,1),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"reset",value:function(){this.layer&&this.layer._fireUpdateEvent("重置视角",[{name:"reset",params:[this.id],dataChanged:!0,operationType:"method"}])}},{key:"toJSON",value:function(){for(var e=[],r=0;r<this.sublayers.length;r++)e.push((0,d.toJSON)(this.sublayers[r],t));var n=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return(0,i.default)(n,{sublayers:e,layerIndex:this.layerIndex,type:this.type,renderType:this.renderType,beginLevel:this.beginLevel,endLevel:this.endLevel,originPoint:this.originPoint,maxFrameSize:this.maxFrameSize})}}]),t}(f.SubLayer);g.fromJSON=function(e){return new g(e)},(0,n.default)(g.prototype,{renderer:{get:function(){return this._renderer},set:function(e){this._renderer=e,this.layer&&this.layer._fireUpdateEvent("设置专题图",[{name:"renderer",params:[this._renderer,this.id],dataChanged:!0,operationType:"property"}])}},visible:{get:function(){return this._visible},set:function(e){this._visible=e,this.layer&&this.layer._fireUpdateEvent("设置子图层可见性",[{name:"sbuLayerVisible",params:[this._visible,this.id],dataChanged:!0,operationType:"property"}])}},opacity:{get:function(){return this._opacity},set:function(e){this._opacity=e,this.layer&&this.layer._fireUpdateEvent("设置子图层透明度",[{name:"subLayerOpacity",params:[this._opacity,this.id],dataChanged:!0,operationType:"property"}])}},labelingInfo:{get:function(){return this._labelingInfo},set:function(e){this._labelingInfo=e,this.layer&&this.layer._fireUpdateEvent("设置注记图层样式",[{name:"labelingInfo",params:[],dataChanged:!0,operationType:"property"}])}}}),t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(7)),u=f(r(5)),l=r(15),c=r(1),h=r(6);function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.type=h.LayerType.overlay,r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this)}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(l.Layer);t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(5)),u=r(8);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"createInstance",value:function(e){var t=e;return e instanceof u.Feature||(t=u.Feature.fromJSON(e)),Array.isArray(t._decorateParents)||(t._decorateParents=[]),t._decorateParents.push({instance:this,key:t.id}),t}},{key:"getFeatureById",value:function(e){var t=this.findIndex(function(t){return t.id===e});if(t>-1)return this.items[t]}},{key:"removeFeatureById",value:function(e){var t=this.findIndex(function(t){return t.id===e});return t>-1&&(this.items.splice(t,1),!0)}}],[{key:"collect",value:function(e){return new t(e)}}]),t}(u.Collection);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=_(r(11)),i=_(r(14)),o=_(r(3)),a=_(r(0)),s=_(r(2)),u=_(r(4)),l=_(r(5)),c=r(8),h=r(1),f=r(6),d=_(r(81)),p=r(9),y=_(r(215)),g=_(r(133)),m=_(r(512)),v=r(64);function _(e){return e&&e.__esModule?e:{default:e}}var S=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this));return e=(0,h.defaultValue)(e,{}),r._map=null,r._id=(0,h.getGUID)(),r._cursor=(0,h.defaultValue)(e.cursor,void 0),r.scale=(0,h.defaultValue)(e.scale,void 0),r.minScale=void 0,r.maxScale=void 0,r.rotation=0,r.center=(0,h.defaultValue)(e.center,[0,0]),r.minZoom=(0,h.defaultValue)(e.minZoom,0),r.maxZoom=(0,h.defaultValue)(e.maxZoom,19),r.zoom=(0,h.defaultValue)(e.zoom,1),r.extensionOptions=(0,h.defaultValue)(e.extensionOptions,{}),r.extendProps=(0,h.defaultValue)(e.extendProps,{}),r.popup=void 0,r.stationary=!0,r._spatialReference=new p.SpatialReference("EPSG:4326"),r.layerViews=new c.Collection,r.basemapLayerViews=new c.Collection,r._viewLayersMap=new y.default,r._graphicsLayers=r._viewLayersMap.groupLayer,r._viewLayersGroupLayerView=void 0,r._setViewLayers(r._graphicsLayers),r.allLayerViews=new c.CollectionFlattener({getCollections:function(){return[r.basemapLayerViews,r.layerViews,r._viewLayersGroupLayerView.layerViews]},getChildrenFunction:function(e){return e.layerViews}}),r._initMapEventHandlers(),r.setMap(e.map),r._viewId=(0,h.defaultValue)(e.viewId,""),r._innerView=null,r._initCursor(),r}return(0,l.default)(t,e),(0,s.default)(t,[{key:"setMap",value:function(e){this._map||(this._map=e instanceof y.default?e:y.default.fromJSON(e),this._linkMapEvent(this._map),this._linkLayerEvent(this._map),this._map._loadLayers(),this.groupLayerView=new g.default({layer:this._map.groupLayer,layerViews:this.layerViews,view:this}),this._map.basemap&&this._setBasemapLayerView())}},{key:"getInnerView",value:function(){return this._innerView}},{key:"getInnerLayer",value:function(e){if(e){var t="string"==typeof e?e:e.id;return(this._findLayerViewById(t)||{}).innerLayer}}},{key:"getLayer",value:function(e){return(this._findLayerViewById(e)||{}).layer}},{key:"_setBasemapLayerView",value:function(){this._basemapView=new m.default({baseGroupLayer:this._map.basemap._baseGroupLayer,baseLayerViews:this.basemapLayerViews,view:this}),this.basemapGroupLayerView=this._basemapView.groupLayerView}},{key:"_removeBasemapLayerView",value:function(){this._basemapView=null,this.basemapGroupLayerView=null}},{key:"_linkLayerEvent",value:function(e){var t=this;if(e){var r=function(r){var n=t;e.on(f.LayerEventType[r],function(e){var t=e;t instanceof c.Event?t.addProperty("view",n):t&&(t.view=n),n.fire(f.LayerEventType[r],t)},e)};for(var n in f.LayerEventType)r(n)}}},{key:"_linkMapEvent",value:function(e){var t=this;if(e){var r=function(r){var n=t;e.on(f.MapEventType[r],function(e){var t=e;t instanceof c.Event?t.addProperty("view",n):t&&(t.view=n),n.fire(f.MapEventType[r],t)})};for(var n in f.MapEventType)r(n)}}},{key:"_getLayerView",value:function(e){if(e)return this._findLayerViewById(e.id)}},{key:"_initMapEventHandlers",value:function(){this.on(f.MapEventType.layerLoaded,this._processEvent,this),this.on(f.MapEventType.layerChange,this._processEvent,this),this.on(f.LayerEventType.layerUpdate,this._processEvent,this),this.on(f.MapEventType.basemapChange,this._processEvent,this)}},{key:"_processEvent",value:function(e){e.type===f.MapEventType.layerChange&&this._processLayerChange(e),e.type===f.MapEventType.layerLoaded&&this._processLayerLoad(e),e.type===f.LayerEventType.layerUpdate&&e.layer instanceof v.Layer&&this._updateLayerView(e.layer,e),e.type===f.MapEventType.basemapChange&&e.detail&&(e.detail.find(function(e){return"baseLayers-destroy"===e.action})?this._removeBasemapLayerView(e):e.detail.find(function(e){return"basemap-create"===e.action})&&(this._basemapView||this._setBasemapLayerView(e)))}},{key:"_processLayerLoad",value:function(e){var t=this;if(e){var r=e.addDetail;this._prePromise||(this._prePromise=i.default.resolve()),this._prePromise=this._prePromise.then(function(){return t._loadViewSpatialReference().then(function(e){if(!1!==e){var n=i.default.resolve();return r.forEach(function(e){n=n.then(function(){var r=e.added,n=e.sourceTarget,i=t._findGroupLayerViewById(n.id);if(i)return i.addMany(r).then(function(e){i._fireLayerViewCreatedByLayerViews(e),Array.isArray(e)&&e.forEach(function(e){i._reorderLayerView(e)})})})}),n}}).catch(function(e){h.Log.error(e)})})}}},{key:"_processLayerChange",value:function(e){var t=this;if(e&&this.groupLayerView){var r=e.added,n=e.removed,i=e.moved,o=e.sourceTarget,a=this._findGroupLayerViewById(o.id);if(a){var s=void 0;0===n.length&&0===r.length&&0===i.length?s=a.removeAll():n.length>0&&(s=a.removeMany(n)),s&&s.then(function(){return t._loadViewSpatialReference().then().catch(function(e){h.Log.info(e)})}),i.length>0&&i.forEach(function(e){a.reorder(e)})}}}},{key:"_findGroupLayerViewById",value:function(e){var t=void 0;return e===this.groupLayerView.id?t=this.groupLayerView:this.basemapGroupLayerView&&e===this.basemapGroupLayerView.id?t=this.basemapGroupLayerView:this._viewLayersMap&&this._viewLayersGroupLayerView&&e===this._viewLayersGroupLayerView.id?t=this._viewLayersGroupLayerView:!(t=this.groupLayerView._findFlatLayerViewById(e))&&this.basemapGroupLayerView&&(t=this.basemapGroupLayerView._findFlatLayerViewById(e)),t}},{key:"_loadViewSpatialReference",value:function(){var e=this;return new i.default(function(t,r){e._map._setSpatialReference(e._spatialReference),e._map.getFullExtent(),e._spatialReference?t(!0):r()})}},{key:"_loadLayerViews",value:function(){var e=this;return new i.default(function(t){e._map._spatialReference=e._spatialReference,e._map._fullExtent=e._fullExtent,t()})}},{key:"_getFlyToCenter",value:function(e){var t=void 0;if(e.center){if(Array.isArray(e.center)&&e.center.length>1){var r=e.center.length>2?[e.center[0],e.center[1],e.center[2]]:[e.center[0],e.center[1]],n=this._innerView.options&&this._innerView.options.crs?this._innerView.options.crs.code:"EPSG:4326";t=new p.Point({coordinates:r,spatialReference:new p.SpatialReference(n)})}else e.center instanceof p.Point?t=p.Point.fromJSON(e.center):e.center instanceof p.Point||h.Log.error("center类型为不支持的类型!");t.spatialReference.isGeographic||(t=c.Projection.project(t,new p.SpatialReference({wkid:4326})))}return t}},{key:"_getFlyToExtent",value:function(e){var t=void 0;return e.extent&&(e.extent instanceof p.Extent?(t=p.Extent.fromJSON(e.extent)).spatialReference.isGeographic||(t=c.Projection.project(t,new p.SpatialReference({wkid:4326}))):h.Log.error("extent类型为不支持的类型!")),t}},{key:"_updateLayerView",value:function(e,t){var r=this,n=this._findLayerViewById(e.id);return n instanceof d.default?n.onUpdate(t).then(function(){return n}).then(function(n){h.Log.info("更新图层",e),t&&(t.addProperty("view",self),t.addProperty("layerView",n)),r.dispatchEvent(f.LayerEventType.layerViewUpdate,t)}):(h.Log.info("图层更新失败,未找到该类型的视图!"),i.default.resolve())}},{key:"dispatchEvent",value:function(e,t,r){return t instanceof c.LayerEvent&&t.layer&&t.layer.fire(e,t,r),this._map&&this._map.dispatchEvent(e,t,r),this._map&&this._map.basemap&&t.layer&&t.layer._isBasemapLayer&&this._map.basemap.dispatchEvent(e,t,r),this}},{key:"_findLayerViewById",value:function(e){var t=this.allLayerViews.items.find(function(t){return t.id===e});return t||(t=this._viewLayersGroupLayerView.allLayerViews.items.find(function(t){return t.id===e})),t}},{key:"_removeLayerViewById",value:function(e){var t=this._findLayerViewById(e);if(t){var r=t.layer.parent;if(r===this._map.groupLayer)this.layerViews.remove(t);else if(r){var n=this._findLayerViewById(r.id);n instanceof g.default&&n.layerViews.remove(t)}}}},{key:"_showLayerByScale",value:function(){var e=this;this._map.allLayers.forEach(function(t){(0,v.showLayerByScale)(e,t)})}},{key:"_orderLayerView",value:function(e,t){if(e instanceof g.default)this._moveGroupLayerView(e,t);else if(t instanceof g.default){var r=this._getLastLayerView(t);this._moveLayerView(e,r)}else if(t instanceof g.default&&e instanceof g.default){var n=this._getLastLayerView(t);this._moveGroupLayerView(e,n)}else this._moveLayerView(e,t)}},{key:"_isLayerViewSupportReorder",value:function(e){return!(e.layer instanceof v.IGSFeatureLayer||e.layer instanceof v.M3DModelCacheLayer||e.layer instanceof v.IGSSceneLayer||e.layer instanceof v.TerrainCacheLayer||e.layer instanceof v.Cesium3DTilesCacheLayer||e.layer instanceof v.GeoJSONLayer||e.layer instanceof v.WFSLayer||e.layer instanceof v.GroupLayer||e.layer instanceof v.EchartsLayer||e.layer instanceof v.MapVLayer)}},{key:"_moveGroupLayerView",value:function(e,t){var r=this;e.allLayerViews.forEach(function(e){e instanceof g.default?r._moveGroupLayerView(e,t):r._moveLayerView(e,t)})}},{key:"_moveLayerView",value:function(e,t){}},{key:"_getLastLayerView",value:function(e){var t=e.toArray(),r=t[t.length-1];return r instanceof g.default?this._getLastLayerView(r):r}},{key:"_createLayerView",value:function(e){return null}},{key:"_initCursor",value:function(){this._setCursor(this.cursor)}},{key:"_setCursor",value:function(e){this._innerView&&(e&&null!==e?this._innerView._container.style.cursor=e:this._innerView._container.style.removeProperty("cursor"),this._cursor=e)}},{key:"_getTargetExtent",value:function(e){var t=void 0;if(e instanceof p.Geometry)e instanceof p.Extent?t=this._getFlyToExtent({extent:e}):e.extent&&(t=this._getFlyToExtent({extent:e.extent}));else{var r=[],n=void 0;Array.isArray(e)?r=e:e instanceof c.Collection&&(r=e.items),r.forEach(function(e){var t=void 0;e instanceof p.Extent?t=e:e instanceof p.Geometry&&e.extent&&(t=e.extent),t.spatialReference.isGeographic||(t=c.Projection.project(t.clone(),new p.SpatialReference("EPSG:4326"))),n?(n.xmin>t.xmin&&(n.xmin=t.xmin),n.xmax<t.xmax&&(n.xmax=t.xmax),n.ymin>t.ymin&&(n.ymin=t.ymin),n.ymax<t.ymax&&(n.ymax=t.ymax)):n=t}),t=this._getFlyToExtent({extent:n})}return t}},{key:"_setViewLayers",value:function(e){this._linkMapEvent(this._viewLayersMap),this._linkLayerEvent(this._viewLayersMap),this._viewLayersGroupLayerView=new g.default({layer:this._viewLayersMap.groupLayer,view:this})}},{key:"_processGraphicsLayersChange",value:function(e){var t=e.added,r=e.removed;t&&t.length>0&&this._viewLayersMap.addMany(t),r&&r.length>0&&this._viewLayersMap.removeMany(r)}},{key:"toJSON",value:function(){return{map:this._map?this._map.toJSON():[],viewId:this.viewId,cursor:this.cursor,scale:this.scale,center:(0,h.toJSON)(this._center,p.Point),minZoom:this.minZoom,maxZoom:this.maxZoom,zoom:this.zoom,extensionOptions:this.extensionOptions,extendProps:this.extendProps}}}]),t}(c.Evented);(0,n.default)(S.prototype,{map:{get:function(){return this._map},set:function(e){this._map=e}},cursor:{get:function(){return this._cursor},set:function(e){this._setCursor(e)}},spatialReference:{get:function(){return this._spatialReference},set:function(){}}}),t.default=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(14)),i=p(r(3)),o=p(r(0)),a=p(r(2)),s=p(r(4)),u=p(r(5)),l=p(r(81)),c=r(8),h=r(6),f=r(90),d=r(1);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.layerViews=e.layerViews||new c.Collection,r.allLayerViews=new c.CollectionFlattener({getCollections:function(){return[r.layerViews]},getChildrenFunction:function(e){return e.layerViews}}),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"onAdd",value:function(e){var t=this;return this.addMany(this.layer.layers.items).then(function(){return t})}},{key:"add",value:function(e,t){return this.addMany([e],t)}},{key:"remove",value:function(e){return this.removeMany([e])}},{key:"addMany",value:function(e,t){var r=this;if(!e||!this.layerViews)return n.default.resolve([]);var i=this.view,o=this.layer,a=e.filter(function(e){return e&&(e.loaded||e.type===h.LayerType.group)&&o.findLayerById(e.id)&&!r._findLayerViewById(e.id)}).map(function(e){return i._createLayerView(e)}).filter(function(e){return e}),s=(0,f.inOrderPromise)(a.map(function(e){return function(){return e.onAdd().catch(function(t){d.Log.error(t),r._fireLayerCreatedError(e.layer,e,t)}).then(function(e){return e||void 0})}}));return s.catch(function(e){r._fireLayerCreatedError(r.layer,r,e)}),s.then(function(e){var n=e.filter(function(e){return e instanceof l.default});return n.length>0&&(r._setItemParent(n,r),r.layerViews.addMany(n,t)),n})}},{key:"removeMany",value:function(e){var t=this;if(!e||!this.layerViews)return n.default.resolve([]);var r=e.map(function(e){return t._findLayerViewById(e.id)}).filter(function(e){return e});return 0===r.length?n.default.resolve([]):this._removeLayerViews(r)}},{key:"_removeLayerViews",value:function(e){var t=this,r=e.map(function(e){return e.onRemove().then(function(e){return t._fireLayerViewRemove(e.layer,e),e}).catch(function(e){d.Log.error(e)})});return(0,f.allSettled)(r).then(function(e){var r=e.filter(function(e){return"fulfilled"===e.status}).map(function(e){return e.value});t.layerViews.removeMany(r),t._setItemParent(r,null)})}},{key:"removeAll",value:function(){this.layerViews&&this._removeLayerViews(this.layerViews.items.map(function(e){return e}))}},{key:"reorder",value:function(e){var t=this;if(this.layerViews&&e&&e.parent){var r=e.parent,n=this.layerViews.items.findIndex(function(t){return t.id===e.id}),i=r.layers.items.filter(function(e){return t.layerViews.items.some(function(t){return t.id===e.id})}),o=i.findIndex(function(t){return t.id===e.id});if(n!==o&&-1!==n&&-1!==o){var a=this.layerViews.items[n];this.layerViews.reorder(a,o),o===i.length-1?i.slice(0,o).reverse().forEach(function(e){var r=t._findLayerViewById(e.id);r&&t._reorderLayerView(r)}):this._reorderLayerView(a)}}}},{key:"onRemove",value:function(e){var t=this;return this.removeMany(this.layer.layers.items).then(function(){return t})}},{key:"onUpdate",value:function(e){var t=this,r=this.layerViews.items;return n.default.all(r.map(function(t){return t.onUpdate(e)})).then(function(){return t})}},{key:"_setItemParent",value:function(e,t){(e instanceof c.Collection?e._items:Array.isArray(e)?e:[e]).forEach(function(e){e&&(e.parent=t)})}},{key:"_fireLayerViewCreatedByLayerViews",value:function(e){if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];if(n instanceof l.default){if(n instanceof t){var i=n.layerViews.items;this._fireLayerViewCreatedByLayerViews(i)}this._fireLayerViewCreated(n.layer,n)}}}},{key:"_fireLayerViewCreated",value:function(e,t){var r=new c.LayerEvent({type:h.LayerEventType.layerViewCreated,message:"图层在视图中创建完毕",layer:e});r.addProperty("view",this.view),r.addProperty("layerView",t),e.fire(h.LayerEventType.layerViewCreated,r),this.view.fire(h.LayerEventType.layerViewCreated,r)}},{key:"_fireLayerCreatedError",value:function(e,t,r){var n=new c.LayerEvent({type:h.LayerEventType.layerViewCreatedError,target:e,error:r||"图层在视图中创建失败",layer:e});n.addProperty("view",this.view),n.addProperty("layerView",t),e.fire(h.LayerEventType.layerViewCreatedError,n),this.view.fire(h.LayerEventType.layerViewCreatedError,n)}},{key:"_fireLayerViewRemove",value:function(e,t){var r=new c.LayerEvent({type:h.LayerEventType.layerViewRemove,message:"移除图层视图",layer:e});r.addProperty("view",this.view),r.addProperty("layerView",t),e.fire(h.LayerEventType.layerViewRemove,r),this.view.fire(h.LayerEventType.layerViewRemove,r)}},{key:"_findLayerViewById",value:function(e){return this.layerViews.items.find(function(t){return t.id===e})}},{key:"_findFlatLayerViewById",value:function(e){return this.allLayerViews.items.find(function(t){return t.id===e})}},{key:"_findLastLayerViewById",value:function(e){var r=this.view;if(e&&r){var n=this._findLayerViewById(e);if(n){var i=n;if(n instanceof t){var o=n.allLayerViews.items.filter(function(e){return!(e instanceof t)});if(0===o.length)return;i=o[o.length-1]}var a=r.allLayerViews.items.findIndex(function(e){return e.id===i.id});if(-1!==a){var s=r.allLayerViews.items.slice(a+1).filter(function(e){return!(e instanceof t)});if(0!==s.length)return s[0]}}}}},{key:"_reorderLayerView",value:function(e){var t=this._findLastLayerViewById(e.id);t&&this.view._orderLayerView(e,t)}}]),t}(l.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchEditorEvent=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.SketchEditorEvent=function e(t){(0,n.default)(this,e);var r=(0,i.defaultValue)(t,{});this.type=(0,i.defaultValue)(r.type,""),this.toolEventInfo=(0,i.defaultValue)(r.toolEventInfo,null),this.state=(0,i.defaultValue)(r.state,null),this.feature=(0,i.defaultValue)(r.feature,null)}},function(e,t,r){var n=r(32),i=r(39),o=r(227)(!1),a=r(101)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),u=0,l=[];for(r in s)r!=a&&n(s,r)&&l.push(r);for(;t.length>u;)n(s,r=t[u++])&&(~o(l,r)||l.push(r));return l}},function(e,t,r){var n=r(68);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,r){e.exports=!r(27)&&!r(59)(function(){return 7!=Object.defineProperty(r(104)("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(28),i=r(24),o=r(57);e.exports=r(27)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,u=0;s>u;)n.f(e,r=a[u++],t[r]);return e}},function(e,t){},function(e,t,r){"use strict";var n=r(69),i=r(17),o=r(141),a=r(48),s=r(61),u=r(234),l=r(85),c=r(86),h=r(21)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,r,p,y,g,m){u(r,t,p);var v,_,S,x=function(e){if(!f&&e in M)return M[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},b=t+" Iterator",w="values"==y,k=!1,M=e.prototype,E=M[h]||M["@@iterator"]||y&&M[y],I=E||x(y),T=y?w?x("entries"):I:void 0,L="Array"==t&&M.entries||E;if(L&&(S=c(L.call(new e)))!==Object.prototype&&S.next&&(l(S,b,!0),n||"function"==typeof S[h]||a(S,h,d)),w&&E&&"values"!==E.name&&(k=!0,I=function(){return E.call(this)}),n&&!m||!f&&!k&&M[h]||a(M,h,I),s[t]=I,s[b]=d,y)if(v={values:w?I:x("values"),keys:g?I:x("keys"),entries:T},m)for(_ in v)_ in M||o(M,_,v[_]);else i(i.P+i.F*(f||k),t,v);return v}},function(e,t,r){e.exports=r(48)},function(e,t,r){var n=r(20).document;e.exports=n&&n.documentElement},function(e,t,r){var n=r(24);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},function(e,t,r){var n=r(61),i=r(21)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},function(e,t,r){var n=r(24),i=r(84),o=r(21)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||void 0==(r=n(a)[o])?t:i(r)}},function(e,t,r){var n,i,o,a=r(58),s=r(241),u=r(142),l=r(104),c=r(20),h=c.process,f=c.setImmediate,d=c.clearImmediate,p=c.MessageChannel,y=c.Dispatch,g=0,m={},v=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},_=function(e){v.call(e.data)};f&&d||(f=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},n(g),g},d=function(e){delete m[e]},"process"==r(68)(h)?n=function(e){h.nextTick(a(v,e,1))}:y&&y.now?n=function(e){y.now(a(v,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=_,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",_,!1)):n="onreadystatechange"in l("script")?function(e){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:f,clear:d}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(24),i=r(26),o=r(109);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){var n=r(21)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},function(e,t,r){e.exports={default:r(251),__esModule:!0}},function(e,t,r){var n=r(82)("meta"),i=r(26),o=r(32),a=r(28).f,s=0,u=Object.isExtensible||function(){return!0},l=!r(59)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},h=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[n].w},onFreeze:function(e){return l&&h.NEED&&u(e)&&!o(e,n)&&c(e),e}}},function(e,t,r){var n=r(135),i=r(103).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){e.exports={default:r(275),__esModule:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(7)),u=l(r(5));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var r=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"initPropertys",this).call(this,e);return this.layer=r.layer,this.message=r.message,this.layerView=r.layerView,this.view=r.view,r}}]),t}(l(r(41)).default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayerViewUpdateEvent=t.LayerViewUpdateContent=void 0;var n=c(r(3)),i=c(r(2)),o=c(r(4)),a=c(r(7)),s=c(r(5)),u=c(r(0)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(){return(0,u.default)(this,t),(0,o.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,i.default)(t,[{key:"initPropertys",value:function(e){var r=(0,a.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"initPropertys",this).call(this,e);return this.updateContent=(0,l.defaultValue)(r.updateContent,[]),r}}]),t}(c(r(154)).default);t.LayerViewUpdateContent=function e(t){(0,u.default)(this,e);var r=(0,l.defaultValue)(t,{});this.dataChanged=(0,l.defaultValue)(r.dataChanged,!1),this.name=(0,l.defaultValue)(r.name,""),this.operationType=(0,l.defaultValue)(r.operationType,"method"),this.params=(0,l.defaultValue)(r.params,[]),this.extendProps=(0,l.defaultValue)(r.extendProps,{})},t.LayerViewUpdateEvent=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",auqamarin:"#7fffaa",azure:"#f0ffff",beige:"#6b8e23",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",brulywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornislk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkvoilet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",doderblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e1ffff",lightgoldenrodyellow:"#fafad2",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#00fa9a",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumslateblue:"#7b68ee",mediumspringgreen:"#f5fffa",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#00ff7f",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#556b2f",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegodenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#3cb371",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={backwardDiagonal:"backward-diagonal",cross:"cross",diagonalCross:"diagonal-cross",forwardDiagonal:"forward-diagonal",horizontal:"horizontal",none:"none",solid:"solid",vertical:"vertical"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={small:"small",medium:"medium",large:"large"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={calm:"calm",rippled:"rippled",slight:"slight",moderate:"moderate"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.extent=(0,o.defaultValue)(t.extent,void 0),this.id=(0,o.defaultValue)(t.id,(0,o.getGUID)()),this.tileInfo=t.tileInfo,this.layer=(0,o.defaultValue)(t.layer,void 0),this.tileMatrix=(0,o.defaultValue)(t.tileMatrix,[]),this.identifier=(0,o.defaultValue)(t.identifier,void 0),this.supportedCRS=(0,o.defaultValue)(t.supportedCRS,void 0)}return(0,i.default)(e,[{key:"getTileResolution",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.28,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],n=0;n<this.tileMatrix.length;n++){var i=t?Number(this.tileMatrix[n].scaleDenominator)*e/111319490.7932735:Number(this.tileMatrix[n].scaleDenominator)*e/1e3;r.push(i)}return r}},{key:"toJSON",value:function(){return{extent:this.extent&&this.extent.toJSON(),id:this.id,tileInfo:this.tileInfo&&this.tileInfo.toJSON(),tileMatrix:this.tileMatrix,identifier:this.identifier,supportedCRS:this.supportedCRS}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e);var r=(0,o.defaultValue)(t,{});this.expression=(0,o.defaultValue)(r.expression,"")}return(0,i.default)(e,[{key:"clone",value:function(){return new e({expression:this.expression})}},{key:"toJSON",value:function(){return{expression:this.expression}}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(23)),i=y(r(10)),o=y(r(3)),a=y(r(0)),s=y(r(2)),u=y(r(4)),l=y(r(5)),c=y(r(73)),h=r(1),f=r(9),d=r(19),p=r(6);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return e=(0,h.defaultValue)(e,{}),r.id=(0,h.defaultValue)(e.id,(0,h.getGUID)()),r.attributes=(0,h.defaultValue)(e.attributes,{}),r.geometry=r._decorate("geometry",e.geometry,f.Geometry,f.Geometry.fromJSON),r.geometry||h.Log.error("要素几何信息缺失"),r.symbol=r._decorate("symbol",e.symbol,d.Symbol,r._getSymbol.bind(r)),r.visible=(0,h.defaultValue)(e.visible,!0),r.type="Feature",r.elevationInfo=(0,h.defaultValue)(e.elevationInfo,void 0),r.additional=(0,h.defaultValue)(e.additional,{}),r}return(0,l.default)(t,e),(0,s.default)(t,[{key:"_getSymbol",value:function(e){var t=e?e.type:"undefine",r=this.geometry.type,n=e instanceof d.Symbol?e:d.Symbol.fromJSON(e);switch(r){case p.GeometryType.multiPoint:case p.GeometryType.point:var i=[p.SymbolType.simpleMarker,p.SymbolType.text,p.SymbolType.mapgisText,p.SymbolType.pictureMarker,p.SymbolType.point3D,p.SymbolType.label3D];(0,h.defined)(e)||(n=new d.SimpleMarkerSymbol),i.some(function(e){return e===t})||(h.Log.info("图元几何和符号不匹配"),n=new d.SimpleMarkerSymbol({color:n.color.clone()}));break;case p.GeometryType.multiLineString:case p.GeometryType.lineString:var o=[p.SymbolType.simpleLine,p.SymbolType.line3D];(0,h.defined)(e)||(n=new d.SimpleLineSymbol),o.some(function(e){return e===t})||(h.Log.info("图元几何和符号不匹配"),n=new d.SimpleLineSymbol({color:n.color.clone()}));break;case p.GeometryType.polygon:case p.GeometryType.extent:case p.GeometryType.circle:case p.GeometryType.multiPolygon:var a=[p.SymbolType.simpleFill,p.SymbolType.simpleMarker,p.SymbolType.text,p.SymbolType.mapgisText,p.SymbolType.pictureMarker,p.SymbolType.pictureFill,p.SymbolType.polygon3D];(0,h.defined)(e)||(n=new d.SimpleFillSymbol),a.some(function(e){return e===t})||(h.Log.info("图元几何和符号不匹配"),n=new d.SimpleFillSymbol({color:n.color.clone()}))}return n}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e={};return e.id=this.id,e.attributes=JSON.parse((0,i.default)(this.attributes)),e.geometry=this.geometry.toJSON(),e.symbol=this.symbol.toJSON(),e.visible=this.visible,e.type=this.type,e.elevationInfo=this.elevationInfo,e}},{key:"fromGeoJSON",value:function(e){e=(0,h.defaultValue)(e,{});var t=this,r=(0,h.defaultValue)(e.geometry,{});t.geometry=f.Geometry.fromGeoJSON(r);var i=(0,h.defaultValue)(e.properties,{});(0,n.default)(i).forEach(function(e){i.hasOwnProperty(e)&&(t.attributes[e]=i[e])})}},{key:"toGeoJSON",value:function(){var e=JSON.parse((0,i.default)(this.attributes));return e.id=this.id,{type:"Feature",geometry:this.geometry.toGeoJSON(),properties:e,style:this.symbol.toJSON(),id:this.id}}},{key:"toIGSFeature",value:function(){var e=this.geometry.toJSON();return{type:"Feature",geometry:{type:e.type,coordinates:e.coordinates},attributes:JSON.parse((0,i.default)(this.attributes)),styleInfo:null}}},{key:"toOldIGSFeature",value:function(){return{fGeom:this.geometry.toOldIGSGeometry(),GraphicInfo:this.toGraphicInfo(),AttValue:this.toAttValue(),FID:this.id,bound:null,ftype:this.toFType()}}},{key:"toGraphicInfo",value:function(){var e=void 0;switch(this.geometry.type){case"Point":case"MultiPoint":e={InfoType:1,PntInfo:this.symbol};break;case"LineString":case"MultiLineString":e={InfoType:2,LinInfo:this.symbol};break;case"Polygon":case"MultiPolygon":default:e={InfoType:3,RegInfo:this.symbol}}return e}},{key:"toAttValue",value:function(){var e=[],t=this;return(0,n.default)(this.attributes).forEach(function(r){t.attributes.hasOwnProperty(r)&&e.push(t.attributes[r])}),e}},{key:"toFType",value:function(){var e=void 0;switch(this.geometry.type){case"Point":case"MultiPoint":e=1;break;case"LineString":case"MultiLineString":e=2;break;case"Polygon":case"MultiPolygon":default:e=3}return e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(c.default);t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSymbol3DLayer=t.WaterSymbol3DLayer=t.TextSymbol3DLayer=t.ExtrudeSymbol3DLayer=t.ObjectSymbol3DLayer=t.IconSymbol3DLayer=t.FillSymbol3DLayer=t.LineSymbol3DLayer=t.PathSymbol3DLayer=t.Symbol3DLayer=void 0;var n=d(r(43)),i=d(r(342)),o=d(r(353)),a=d(r(354)),s=d(r(355)),u=d(r(356)),l=d(r(357)),c=d(r(358)),h=d(r(359)),f=r(6);function d(e){return e&&e.__esModule?e:{default:e}}t.Symbol3DLayer=n.default,t.PathSymbol3DLayer=i.default,t.LineSymbol3DLayer=o.default,t.FillSymbol3DLayer=a.default,t.IconSymbol3DLayer=s.default,t.ObjectSymbol3DLayer=u.default,t.ExtrudeSymbol3DLayer=l.default,t.TextSymbol3DLayer=c.default,t.WaterSymbol3DLayer=h.default,t.createSymbol3DLayer=function(e){var t=e||{},r=null;switch(t.type){case f.Symbol3DLayerType.line:r=new o.default(t);break;case f.Symbol3DLayerType.path:r=new i.default(t);break;case f.Symbol3DLayerType.fill:r=new a.default(t);break;case f.Symbol3DLayerType.icon:r=new s.default(t);break;case f.Symbol3DLayerType.object:r=new u.default(t);break;case f.Symbol3DLayerType.extrude:r=new l.default(t);break;case f.Symbol3DLayerType.text:r=new c.default(t);break;case f.Symbol3DLayerType.water:r=new h.default(t)}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(0)),i=o(r(2));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(){(0,n.default)(this,e)}return(0,i.default)(e,[{key:"toJSON",value:function(){}},{key:"clone",value:function(){}}],[{key:"fromJSON",value:function(){}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(8);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.color=t.color?a.Color.fromJSON(t.color):new a.Color,this.size=(0,o.defaultValue)(t.size,0)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{color:(0,o.toJSON)(this.color,a.Color),size:this.size}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.style=(0,o.defaultValue)(t.style,a.LinePatternStyle.solid),this.type="style"}return(0,i.default)(e,[{key:"toJSON",value:function(){return{style:this.style,type:this.type}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(3)),i=g(r(0)),o=g(r(2)),a=g(r(4)),s=g(r(7)),u=g(r(5)),l=g(r(52)),c=r(1),h=r(6),f=g(r(50)),d=g(r(117)),p=g(r(118)),y=g(r(114));function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.type=h.SymbolType.text,r.angle=(0,c.defaultValue)(e.angle,0),r.backgroundColor=(0,c.defined)(e.backgroundColor)?f.default.fromColor((0,c.defaultValue)(e.backgroundColor,new f.default(255,255,255,.25))):void 0,r.borderLineColor=f.default.fromColor((0,c.defaultValue)(e.borderLineColor,new f.default(0,0,0,1))),r.borderLineSize=(0,c.defaultValue)(e.borderLineSize,0),r.color=f.default.fromColor((0,c.defaultValue)(e.color,new f.default)),r.font=y.default.fromJSON((0,c.defaultValue)(e.font,{})),r.haloColor=f.default.fromColor((0,c.defaultValue)(e.haloColor,new f.default)),r.haloSize=(0,c.defaultValue)(e.haloSize,0),r.horizontalAlignment=(0,c.defaultValue)(e.horizontalAlignment,d.default.center),r.kerning=(0,c.defaultValue)(e.kerning,!1),r.lineHeight=(0,c.defaultValue)(e.lineHeight,1.1),r.lineWidth=(0,c.defaultValue)(e.lineWidth,192),r.rotated=(0,c.defaultValue)(e.rotated,!1),r.text=(0,c.defaultValue)(e.text,""),r.verticalAlignment=(0,c.defaultValue)(e.verticalAlignment,p.default.baseline),r.xoffset=(0,c.defaultValue)(e.xoffset,0),r.yoffset=(0,c.defaultValue)(e.yoffset,0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.angle=this.angle,e.backgroundColor=(0,c.toJSON)(this.backgroundColor,f.default),e.borderLineColor=(0,c.toJSON)(this.borderLineColor,f.default),e.borderLineSize=this.borderLineSize,e.color=(0,c.toJSON)(this.color,f.default),e.font=(0,c.toJSON)(this.font,y.default),e.haloColor=(0,c.toJSON)(this.haloColor,f.default),e.haloSize=this.haloSize,e.horizontalAlignment=this.horizontalAlignment,e.kerning=this.kerning,e.lineHeight=this.lineHeight,e.lineWidth=this.lineWidth,e.rotated=this.rotated,e.text=this.text,e.verticalAlignment=this.verticalAlignment,e.xoffset=this.xoffset,e.yoffset=this.yoffset,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,c.defaultValue)(e,{}))}}]),t}(l.default);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(7)),u=h(r(5)),l=r(1),c=r(6);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.simpleMarker,r.xoffset=(0,l.defaultValue)(e.xoffset,0),r.yoffset=(0,l.defaultValue)(e.yoffset,0),r.angle=(0,l.defaultValue)(e.angle,0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.angle=this.angle,e.xoffset=this.xoffset,e.yoffset=this.yoffset,e}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(h(r(52)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(1),c=d(r(52)),h=d(r(123)),f=r(6);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=f.SymbolType.simpleFill,r.outline=r._decorate("outline",e.outline,h.default,h.default.fromJSON),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.type=this.type,e.outline=this.outline.toJSON(),e}}]),t}(c.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjUnitWkidMap={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.116756,5e4,15e4],2000:0,2001:0,2002:0,2003:0,2004:0,2005:0,2006:0,2007:0,2008:0,2009:0,2010:0,2011:0,2012:0,2013:0,2014:0,2015:0,2016:0,2017:0,2018:0,2019:0,2020:0,2021:0,2022:0,2023:0,2024:0,2025:0,2026:0,2027:0,2028:0,2029:0,2030:0,2031:0,2032:0,2033:0,2034:0,2035:0,2036:0,2037:0,2038:0,2039:0,2040:0,2041:0,2042:0,2043:0,2044:0,2045:0,2056:0,2057:0,2058:0,2059:0,2060:0,2061:0,2062:0,2063:0,2064:0,2065:0,2066:5,2067:0,2068:0,2069:0,2070:0,2071:0,2072:0,2073:0,2074:0,2075:0,2076:0,2077:0,2078:0,2079:0,2080:0,2081:0,2082:0,2083:0,2084:0,2085:0,2086:0,2087:0,2088:0,2089:0,2090:0,2091:0,2092:0,2093:0,2094:0,2095:0,2096:0,2097:0,2098:0,2099:0,2100:0,2101:0,2102:0,2103:0,2104:0,2105:0,2106:0,2107:0,2108:0,2109:0,2110:0,2111:0,2112:0,2113:0,2114:0,2115:0,2116:0,2117:0,2118:0,2119:0,2120:0,2121:0,2122:0,2123:0,2124:0,2125:0,2126:0,2127:0,2128:0,2129:0,2130:0,2131:0,2132:0,2133:0,2134:0,2135:0,2136:12,2137:0,2138:0,2139:0,2140:0,2141:0,2142:0,2143:0,2144:0,2145:0,2146:0,2147:0,2148:0,2149:0,2150:0,2151:0,2152:0,2153:0,2154:0,2155:2,2157:0,2158:0,2159:12,2160:12,2161:0,2162:0,2163:0,2164:0,2165:0,2166:0,2167:0,2168:0,2169:0,2170:0,2172:0,2173:0,2174:0,2175:0,2176:0,2177:0,2178:0,2179:0,2180:0,2181:0,2182:0,2183:0,2184:0,2185:0,2186:0,2187:0,2188:0,2189:0,2190:0,2191:0,2192:0,2193:0,2195:0,2196:0,2197:0,2198:0,2200:0,2201:0,2202:0,2203:0,2204:2,2205:0,2206:0,2207:0,2208:0,2209:0,2210:0,2211:0,2212:0,2213:0,2214:0,2215:0,2216:0,2217:0,2219:0,2220:0,2222:1,2223:1,2224:1,2225:2,2226:2,2227:2,2228:2,2229:2,2230:2,2231:2,2232:2,2233:2,2234:2,2235:2,2236:2,2237:2,2238:2,2239:2,2240:2,2241:2,2242:2,2243:2,2244:2,2245:2,2246:2,2247:2,2248:2,2249:2,2250:2,2251:1,2252:1,2253:1,2254:2,2255:2,2256:1,2257:2,2258:2,2259:2,2260:2,2261:2,2262:2,2263:2,2264:2,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2274:2,2275:2,2276:2,2277:2,2278:2,2279:2,2280:1,2281:1,2282:1,2283:2,2284:2,2285:2,2286:2,2287:2,2288:2,2289:2,2290:0,2291:0,2292:0,2294:0,2295:0,2308:0,2309:0,2310:0,2311:0,2312:0,2313:0,2314:3,2315:0,2316:0,2317:0,2318:0,2319:0,2320:0,2321:0,2322:0,2323:0,2324:0,2325:0,2326:0,2327:0,2328:0,2329:0,2330:0,2331:0,2332:0,2333:0,2334:0,2335:0,2336:0,2337:0,2338:0,2339:0,2340:0,2341:0,2342:0,2343:0,2344:0,2345:0,2346:0,2347:0,2348:0,2349:0,2350:0,2351:0,2352:0,2353:0,2354:0,2355:0,2356:0,2357:0,2358:0,2359:0,2360:0,2361:0,2362:0,2363:0,2364:0,2365:0,2366:0,2367:0,2368:0,2369:0,2370:0,2371:0,2372:0,2373:0,2374:0,2375:0,2376:0,2377:0,2378:0,2379:0,2380:0,2381:0,2382:0,2383:0,2384:0,2385:0,2386:0,2387:0,2388:0,2389:0,2390:0,2391:0,2392:0,2393:0,2394:0,2395:0,2396:0,2397:0,2398:0,2399:0,2400:0,2401:0,2402:0,2403:0,2404:0,2405:0,2406:0,2407:0,2408:0,2409:0,2410:0,2411:0,2412:0,2413:0,2414:0,2415:0,2416:0,2417:0,2418:0,2419:0,2420:0,2421:0,2422:0,2423:0,2424:0,2425:0,2426:0,2427:0,2428:0,2429:0,2430:0,2431:0,2432:0,2433:0,2434:0,2435:0,2436:0,2437:0,2438:0,2439:0,2440:0,2441:0,2442:0,2443:0,2444:0,2445:0,2446:0,2447:0,2448:0,2449:0,2450:0,2451:0,2452:0,2453:0,2454:0,2455:0,2456:0,2457:0,2458:0,2459:0,2460:0,2461:0,2462:0,2523:0,2524:0,2525:0,2526:0,2527:0,2528:0,2529:0,2530:0,2531:0,2532:0,2533:0,2534:0,2535:0,2536:0,2537:0,2538:0,2539:0,2540:0,2541:0,2542:0,2543:0,2544:0,2545:0,2546:0,2547:0,2548:0,2549:0,2550:0,2551:0,2552:0,2553:0,2554:0,2555:0,2556:0,2557:0,2558:0,2559:0,2560:0,2561:0,2562:0,2563:0,2564:0,2565:0,2566:0,2567:0,2568:0,2569:0,2570:0,2571:0,2572:0,2573:0,2574:0,2575:0,2576:0,2577:0,2578:0,2579:0,2580:0,2581:0,2582:0,2583:0,2584:0,2585:0,2586:0,2587:0,2588:0,2589:0,2590:0,2591:0,2592:0,2593:0,2594:0,2595:0,2596:0,2597:0,2598:0,2599:0,2600:0,2601:0,2602:0,2603:0,2604:0,2605:0,2606:0,2607:0,2608:0,2609:0,2610:0,2611:0,2612:0,2613:0,2614:0,2615:0,2616:0,2617:0,2618:0,2619:0,2620:0,2621:0,2622:0,2623:0,2624:0,2625:0,2626:0,2627:0,2628:0,2629:0,2630:0,2631:0,2632:0,2633:0,2634:0,2635:0,2636:0,2637:0,2638:0,2639:0,2640:0,2641:0,2642:0,2643:0,2644:0,2645:0,2646:0,2647:0,2648:0,2649:0,2650:0,2651:0,2652:0,2653:0,2654:0,2655:0,2656:0,2657:0,2658:0,2659:0,2660:0,2661:0,2662:0,2663:0,2664:0,2665:0,2666:0,2667:0,2668:0,2669:0,2670:0,2671:0,2672:0,2673:0,2674:0,2675:0,2676:0,2677:0,2678:0,2679:0,2680:0,2681:0,2682:0,2683:0,2684:0,2685:0,2686:0,2687:0,2688:0,2689:0,2690:0,2691:0,2692:0,2693:0,2694:0,2695:0,2696:0,2697:0,2698:0,2699:0,2700:0,2701:0,2702:0,2703:0,2704:0,2705:0,2706:0,2707:0,2708:0,2709:0,2710:0,2711:0,2712:0,2713:0,2714:0,2715:0,2716:0,2717:0,2718:0,2719:0,2720:0,2721:0,2722:0,2723:0,2724:0,2725:0,2726:0,2727:0,2728:0,2729:0,2730:0,2731:0,2732:0,2733:0,2734:0,2735:0,2736:0,2737:0,2738:0,2739:0,2740:0,2741:0,2742:0,2743:0,2744:0,2745:0,2746:0,2747:0,2748:0,2749:0,2750:0,2751:0,2752:0,2753:0,2754:0,2755:0,2756:0,2757:0,2758:0,2759:0,2760:0,2761:0,2762:0,2763:0,2764:0,2765:0,2766:0,2767:0,2768:0,2769:0,2770:0,2771:0,2772:0,2773:0,2774:0,2775:0,2776:0,2777:0,2778:0,2779:0,2780:0,2781:0,2782:0,2783:0,2784:0,2785:0,2786:0,2787:0,2788:0,2789:0,2790:0,2791:0,2792:0,2793:0,2794:0,2795:0,2796:0,2797:0,2798:0,2799:0,2800:0,2801:0,2802:0,2803:0,2804:0,2805:0,2806:0,2807:0,2808:0,2809:0,2810:0,2811:0,2812:0,2813:0,2814:0,2815:0,2816:0,2817:0,2818:0,2819:0,2820:0,2821:0,2822:0,2823:0,2824:0,2825:0,2826:0,2827:0,2828:0,2829:0,2830:0,2831:0,2832:0,2833:0,2834:0,2835:0,2836:0,2837:0,2838:0,2839:0,2840:0,2841:0,2842:0,2843:0,2844:0,2845:0,2846:0,2847:0,2848:0,2849:0,2850:0,2851:0,2852:0,2853:0,2854:0,2855:0,2856:0,2857:0,2858:0,2859:0,2860:0,2861:0,2862:0,2863:0,2864:0,2865:0,2866:0,2867:1,2868:1,2869:1,2870:2,2871:2,2872:2,2873:2,2874:2,2875:2,2876:2,2877:2,2878:2,2879:2,2880:2,2881:2,2882:2,2883:2,2884:2,2885:2,2886:2,2887:2,2888:2,2891:2,2892:2,2893:2,2894:2,2895:2,2896:1,2897:1,2898:1,2899:2,2900:2,2901:1,2902:2,2903:2,2904:2,2905:2,2906:2,2907:2,2908:2,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2915:2,2916:2,2917:2,2918:2,2919:2,2920:2,2921:1,2922:1,2923:1,2924:2,2925:2,2926:2,2927:2,2928:2,2929:2,2930:2,2931:0,2932:0,2933:0,2934:0,2935:0,2936:0,2937:0,2938:0,2939:0,2940:0,2941:0,2942:0,2943:0,2944:0,2945:0,2946:0,2947:0,2948:0,2949:0,2950:0,2951:0,2952:0,2953:0,2954:0,2955:0,2956:0,2957:0,2958:0,2959:0,2960:0,2961:0,2962:0,2964:2,2965:2,2966:2,2967:2,2968:2,2969:0,2970:0,2971:0,2972:0,2973:0,2975:0,2976:0,2977:0,2978:0,2979:0,2980:0,2981:0,2982:0,2983:0,2984:0,2985:0,2986:0,2987:0,2988:0,2989:0,2990:0,2991:0,2992:1,2993:0,2994:1,2995:0,2996:0,2997:0,2998:0,2999:0,3000:0,3001:0,3002:0,3003:0,3004:0,3005:0,3006:0,3007:0,3008:0,3009:0,3010:0,3011:0,3012:0,3013:0,3014:0,3015:0,3016:0,3017:0,3018:0,3019:0,3020:0,3021:0,3022:0,3023:0,3024:0,3025:0,3026:0,3027:0,3028:0,3029:0,3030:0,3031:0,3032:0,3033:0,3034:0,3035:0,3036:0,3037:0,3038:0,3039:0,3040:0,3041:0,3042:0,3043:0,3044:0,3045:0,3046:0,3047:0,3048:0,3049:0,3050:0,3051:0,3054:0,3055:0,3056:0,3057:0,3058:0,3059:0,3060:0,3061:0,3062:0,3063:0,3064:0,3065:0,3066:0,3067:0,3068:0,3069:0,3070:0,3071:0,3072:0,3073:0,3074:0,3075:0,3076:0,3077:0,3078:0,3079:0,3080:1,3081:0,3082:0,3083:0,3084:0,3085:0,3086:0,3087:0,3088:0,3089:2,3090:0,3091:2,3092:0,3093:0,3094:0,3095:0,3096:0,3097:0,3098:0,3099:0,3100:0,3101:0,3102:2,3106:0,3107:0,3108:0,3109:0,3110:0,3111:0,3112:0,3113:0,3114:0,3115:0,3116:0,3117:0,3118:0,3119:0,3120:0,3121:0,3122:0,3123:0,3124:0,3125:0,3126:0,3127:0,3128:0,3129:0,3130:0,3131:0,3132:0,3133:0,3134:0,3135:0,3136:0,3137:0,3138:0,3141:0,3142:0,3146:0,3147:0,3148:0,3149:0,3150:0,3151:0,3153:0,3154:0,3155:0,3156:0,3157:0,3158:0,3159:0,3160:0,3161:0,3162:0,3163:0,3164:0,3165:0,3166:0,3167:13,3168:0,3169:0,3170:0,3171:0,3172:0,3174:0,3175:0,3176:0,3177:0,3178:0,3179:0,3180:0,3181:0,3182:0,3183:0,3184:0,3185:0,3186:0,3187:0,3188:0,3189:0,3190:0,3191:0,3192:0,3193:0,3194:0,3195:0,3196:0,3197:0,3198:0,3199:0,3200:0,3201:0,3202:0,3203:0,3294:0,3295:0,3296:0,3297:0,3298:0,3299:0,3300:0,3301:0,3302:0,3303:0,3304:0,3305:0,3306:0,3307:0,3308:0,3309:0,3310:0,3311:0,3312:0,3313:0,3314:0,3315:0,3316:0,3317:0,3318:0,3319:0,3320:0,3321:0,3322:0,3323:0,3324:0,3325:0,3326:0,3327:0,3328:0,3329:0,3330:0,3331:0,3332:0,3333:0,3334:0,3335:0,3336:0,3337:0,3338:0,3339:0,3340:0,3341:0,3342:0,3343:0,3344:0,3345:0,3346:0,3347:0,3348:0,3349:0,3350:0,3351:0,3352:0,3353:0,3354:0,3355:0,3356:0,3357:0,3358:0,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3367:0,3368:0,3369:0,3370:0,3371:0,3372:0,3373:0,3374:0,3375:0,3376:0,3377:0,3378:0,3379:0,3380:0,3381:0,3382:0,3383:0,3384:0,3385:0,3386:0,3387:0,3388:0,3389:0,3390:0,3391:0,3392:0,3393:0,3394:0,3395:0,3396:0,3397:0,3398:0,3399:0,3400:0,3401:0,3402:0,3403:0,3404:2,3405:0,3406:0,3407:3,3408:0,3409:0,3410:0,3411:0,3412:0,3413:0,3414:0,3415:0,3416:0,3417:2,3418:2,3419:2,3420:2,3421:2,3422:2,3423:2,3424:2,3425:2,3426:2,3427:2,3428:2,3429:2,3430:2,3431:2,3432:2,3433:2,3434:2,3435:2,3436:2,3437:2,3438:2,3439:0,3440:0,3441:2,3442:2,3443:2,3444:2,3445:2,3446:2,3447:0,3448:0,3449:0,3450:0,3451:2,3452:2,3453:2,3454:2,3455:2,3456:2,3457:2,3458:2,3459:2,3460:0,3461:0,3462:0,3463:0,3464:0,3465:0,3466:0,3467:0,3468:0,3469:0,3470:0,3471:0,3472:0,3473:0,3474:0,3475:0,3476:0,3477:0,3478:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3554:0,3555:0,3556:0,3557:0,3558:0,3559:0,3560:2,3561:2,3562:2,3563:2,3564:2,3565:2,3566:2,3567:2,3568:2,3569:2,3570:2,3571:0,3572:0,3573:0,3574:0,3575:0,3576:0,3577:0,3578:0,3579:0,3580:0,3581:0,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3594:0,3595:0,3596:0,3597:0,3598:2,3599:0,3600:2,3601:0,3602:0,3603:0,3604:0,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3637:0,3638:0,3639:0,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3665:0,3666:0,3667:0,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3693:0,3694:0,3695:0,3696:2,3697:0,3698:2,3699:0,3700:2,3701:0,3702:0,3703:0,3704:0,3705:0,3706:0,3707:0,3708:0,3709:0,3710:0,3711:0,3712:0,3713:0,3714:0,3715:0,3716:0,3717:0,3718:0,3719:0,3720:0,3721:0,3722:0,3723:0,3724:0,3725:0,3726:0,3727:0,3728:2,3729:2,3730:2,3731:2,3732:2,3733:2,3734:2,3735:2,3736:2,3737:2,3738:2,3739:2,3740:0,3741:0,3742:0,3743:0,3744:0,3745:0,3746:0,3747:0,3748:0,3749:0,3750:0,3751:0,3753:2,3754:2,3755:2,3756:2,3757:2,3758:2,3759:2,3760:2,3761:0,3762:0,3763:0,3764:0,3765:0,3766:0,3767:0,3768:0,3769:0,3770:0,3771:0,3772:0,3773:0,3775:0,3776:0,3777:0,3779:0,3780:0,3781:0,3783:0,3784:0,3785:0,3788:0,3789:0,3790:0,3791:0,3793:0,3794:0,3797:0,3798:0,3799:0,3800:0,3801:0,3802:0,3812:0,3814:0,3815:0,3816:0,3825:0,3826:0,3827:0,3828:0,3829:0,3832:0,3833:0,3834:0,3835:0,3836:0,3837:0,3838:0,3839:0,3840:0,3841:0,3844:0,3845:0,3846:0,3847:0,3848:0,3849:0,3850:0,3851:0,3852:0,3854:0,3857:0,3873:0,3874:0,3875:0,3876:0,3877:0,3878:0,3879:0,3880:0,3881:0,3882:0,3883:0,3884:0,3885:0,3890:0,3891:0,3892:0,3893:0,3907:0,3908:0,3909:0,3910:0,3911:0,3912:0,3920:0,3942:0,3943:0,3944:0,3945:0,3946:0,3947:0,3948:0,3949:0,3950:0,3968:0,3969:0,3970:0,3973:0,3974:0,3975:0,3976:0,3978:0,3979:0,3986:0,3987:0,3988:0,3989:0,3991:2,3992:2,3994:0,3995:0,3996:0,3997:0,4026:0,4037:0,4038:0,4048:0,4049:0,4050:0,4051:0,4056:0,4057:0,4058:0,4059:0,4060:0,4061:0,4062:0,4063:0,4071:0,4082:0,4083:0,4093:0,4094:0,4095:0,4096:0,4217:2,4399:2,4400:2,4401:2,4402:2,4403:2,4404:2,4405:2,4406:2,4407:2,4408:2,4409:2,4410:2,4411:2,4412:2,4413:2,4414:0,4415:0,4417:0,4418:2,4419:2,4420:2,4421:2,4422:2,4423:2,4424:2,4425:2,4426:2,4427:2,4428:2,4429:2,4430:2,4431:2,4432:2,4433:2,4434:0,4437:0,4438:2,4439:2,4455:2,4456:2,4457:2,4462:0,4467:0,4471:0,4474:0,4484:0,4485:0,4486:0,4487:0,4488:0,4489:0,4491:0,4492:0,4493:0,4494:0,4495:0,4496:0,4497:0,4498:0,4499:0,4500:0,4501:0,4502:0,4503:0,4504:0,4505:0,4506:0,4507:0,4508:0,4509:0,4510:0,4511:0,4512:0,4513:0,4514:0,4515:0,4516:0,4517:0,4518:0,4519:0,4520:0,4521:0,4522:0,4523:0,4524:0,4525:0,4526:0,4527:0,4528:0,4529:0,4530:0,4531:0,4532:0,4533:0,4534:0,4535:0,4536:0,4537:0,4538:0,4539:0,4540:0,4541:0,4542:0,4543:0,4544:0,4545:0,4546:0,4547:0,4548:0,4549:0,4550:0,4551:0,4552:0,4553:0,4554:0,4559:0,4568:0,4569:0,4570:0,4571:0,4572:0,4573:0,4574:0,4575:0,4576:0,4577:0,4578:0,4579:0,4580:0,4581:0,4582:0,4583:0,4584:0,4585:0,4586:0,4587:0,4588:0,4589:0,4647:0,4652:0,4653:0,4654:0,4655:0,4656:0,4766:0,4767:0,4768:0,4769:0,4770:0,4771:0,4772:0,4773:0,4774:0,4775:0,4776:0,4777:0,4778:0,4779:0,4780:0,4781:0,4782:0,4783:0,4784:0,4785:0,4786:0,4787:0,4788:0,4789:0,4790:0,4791:0,4792:0,4793:0,4794:0,4795:0,4796:0,4797:0,4798:0,4799:0,4800:0,4822:0,4826:0,4839:0,5014:0,5015:0,5016:0,5018:0,5048:0,5069:0,5070:0,5071:0,5072:0,5105:0,5106:0,5107:0,5108:0,5109:0,5110:0,5111:0,5112:0,5113:0,5114:0,5115:0,5116:0,5117:0,5118:0,5119:0,5120:0,5121:0,5122:0,5123:0,5124:0,5125:0,5126:0,5127:0,5128:0,5129:0,5130:0,5167:0,5168:0,5173:0,5174:0,5175:0,5176:0,5177:0,5178:0,5179:0,5180:0,5181:0,5182:0,5183:0,5184:0,5185:0,5186:0,5187:0,5188:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5253:0,5254:0,5255:0,5256:0,5257:0,5258:0,5259:0,5266:0,5269:0,5270:0,5271:0,5272:0,5273:0,5274:0,5275:0,5292:0,5293:0,5294:0,5295:0,5296:0,5297:0,5298:0,5299:0,5300:0,5301:0,5302:0,5303:0,5304:0,5305:0,5306:0,5307:0,5308:0,5309:0,5310:0,5311:0,5316:0,5320:0,5321:0,5325:0,5329:0,5330:0,5331:0,5337:0,5343:0,5344:0,5345:0,5346:0,5347:0,5348:0,5349:0,5355:0,5356:0,5357:0,5361:0,5362:0,5367:0,5382:0,5383:0,5387:0,5388:0,5389:0,5396:0,5456:0,5457:0,5459:0,5460:0,5461:0,5462:0,5463:0,5469:0,5472:4,5479:0,5480:0,5481:0,5482:0,5490:0,5513:0,5514:0,5518:0,5519:0,5520:0,5523:0,5530:0,5531:0,5532:0,5533:0,5534:0,5535:0,5536:0,5537:0,5538:0,5539:0,5550:0,5551:0,5552:0,5559:0,5562:0,5563:0,5564:0,5565:0,5566:0,5567:0,5568:0,5569:0,5570:0,5571:0,5572:0,5573:0,5574:0,5575:0,5576:0,5577:0,5578:0,5579:0,5580:0,5581:0,5582:0,5583:0,5588:1,5589:3,5596:0,5623:2,5624:2,5625:2,5627:0,5629:0,5631:0,5632:0,5633:0,5634:0,5635:0,5636:0,5637:0,5638:0,5639:0,5641:0,5643:0,5644:0,5646:2,5649:0,5650:0,5651:0,5652:0,5653:0,5654:2,5655:2,5659:0,5663:0,5664:0,5665:0,5666:0,5667:0,5668:0,5669:0,5670:0,5671:0,5672:0,5673:0,5674:0,5675:0,5676:0,5677:0,5678:0,5679:0,5680:0,5682:0,5683:0,5684:0,5685:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5875:0,5876:0,5877:0,5879:0,5880:0,5887:0,5890:0,5921:0,5922:0,5923:0,5924:0,5925:0,5926:0,5927:0,5928:0,5929:0,5930:0,5931:0,5932:0,5933:0,5934:0,5935:0,5936:0,5937:0,5938:0,5939:0,5940:0,6050:0,6051:0,6052:0,6053:0,6054:0,6055:0,6056:0,6057:0,6058:0,6059:0,6060:0,6061:0,6062:0,6063:0,6064:0,6065:0,6066:0,6067:0,6068:0,6069:0,6070:0,6071:0,6072:0,6073:0,6074:0,6075:0,6076:0,6077:0,6078:0,6079:0,6080:0,6081:0,6082:0,6083:0,6084:0,6085:0,6086:0,6087:0,6088:0,6089:0,6090:0,6091:0,6092:0,6093:0,6094:0,6095:0,6096:0,6097:0,6098:0,6099:0,6100:0,6101:0,6102:0,6103:0,6104:0,6105:0,6106:0,6107:0,6108:0,6109:0,6110:0,6111:0,6112:0,6113:0,6114:0,6115:0,6116:0,6117:0,6118:0,6119:0,6120:0,6121:0,6122:0,6123:0,6124:0,6125:0,6128:1,6129:1,6141:1,6210:0,6211:0,6244:0,6245:0,6246:0,6247:0,6248:0,6249:0,6250:0,6251:0,6252:0,6253:0,6254:0,6255:0,6256:0,6257:0,6258:0,6259:0,6260:0,6261:0,6262:0,6263:0,6264:0,6265:0,6266:0,6267:0,6268:0,6269:0,6270:0,6271:0,6272:0,6273:0,6274:0,6275:0,6316:0,6328:0,6329:0,6330:0,6331:0,6332:0,6333:0,6334:0,6335:0,6336:0,6337:0,6338:0,6339:0,6340:0,6341:0,6342:0,6343:0,6344:0,6345:0,6346:0,6347:0,6348:0,6350:0,6351:0,6352:0,6353:0,6354:0,6391:1,20002:0,20003:0,20004:0,20005:0,20006:0,20007:0,20008:0,20009:0,20010:0,20011:0,20012:0,20013:0,20014:0,20015:0,20016:0,20017:0,20018:0,20019:0,20020:0,20021:0,20022:0,20023:0,20024:0,20025:0,20026:0,20027:0,20028:0,20029:0,20030:0,20031:0,20032:0,20062:0,20063:0,20064:0,20065:0,20066:0,20067:0,20068:0,20069:0,20070:0,20071:0,20072:0,20073:0,20074:0,20075:0,20076:0,20077:0,20078:0,20079:0,20080:0,20081:0,20082:0,20083:0,20084:0,20085:0,20086:0,20087:0,20088:0,20089:0,20090:0,20091:0,20092:0,20135:0,20136:0,20137:0,20138:0,20248:0,20249:0,20250:0,20251:0,20252:0,20253:0,20254:0,20255:0,20256:0,20257:0,20258:0,20348:0,20349:0,20350:0,20351:0,20352:0,20353:0,20354:0,20355:0,20356:0,20357:0,20358:0,20436:0,20437:0,20438:0,20439:0,20440:0,20499:0,20538:0,20539:0,20790:0,20791:0,20822:0,20823:0,20824:0,20934:0,20935:0,20936:0,21035:0,21036:0,21037:0,21095:0,21096:0,21097:0,21148:0,21149:0,21150:0,21291:0,21292:0,21413:0,21414:0,21415:0,21416:0,21417:0,21418:0,21419:0,21420:0,21421:0,21422:0,21423:0,21473:0,21474:0,21475:0,21476:0,21477:0,21478:0,21479:0,21480:0,21481:0,21482:0,21483:0,21500:0,21780:0,21781:0,21782:0,21817:0,21818:0,21891:0,21892:0,21893:0,21894:0,21896:0,21897:0,21898:0,21899:0,22032:0,22033:0,22091:0,22092:0,22171:0,22172:0,22173:0,22174:0,22175:0,22176:0,22177:0,22181:0,22182:0,22183:0,22184:0,22185:0,22186:0,22187:0,22191:0,22192:0,22193:0,22194:0,22195:0,22196:0,22197:0,22234:0,22235:0,22236:0,22332:0,22391:0,22392:0,22521:0,22522:0,22523:0,22524:0,22525:0,22700:0,22770:0,22780:0,22832:0,22991:0,22992:0,22993:0,22994:0,23028:0,23029:0,23030:0,23031:0,23032:0,23033:0,23034:0,23035:0,23036:0,23037:0,23038:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,23830:0,23831:0,23832:0,23833:0,23834:0,23835:0,23836:0,23837:0,23838:0,23839:0,23840:0,23841:0,23842:0,23843:0,23844:0,23845:0,23846:0,23847:0,23848:0,23849:0,23850:0,23851:0,23852:0,23853:0,23866:0,23867:0,23868:0,23869:0,23870:0,23871:0,23872:0,23877:0,23878:0,23879:0,23880:0,23881:0,23882:0,23883:0,23884:0,23886:0,23887:0,23888:0,23889:0,23890:0,23891:0,23892:0,23893:0,23894:0,23946:0,23947:0,23948:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24311:0,24312:0,24313:0,24342:0,24343:0,24344:0,24345:0,24346:0,24347:0,24370:10,24371:10,24372:10,24373:10,24374:10,24375:0,24376:0,24377:0,24378:0,24379:0,24380:0,24381:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,24718:0,24719:0,24720:0,24721:0,24817:0,24818:0,24819:0,24820:0,24821:0,24877:0,24878:0,24879:0,24880:0,24881:0,24882:0,24891:0,24892:0,24893:0,25000:0,25231:0,25391:0,25392:0,25393:0,25394:0,25395:0,25828:0,25829:0,25830:0,25831:0,25832:0,25833:0,25834:0,25835:0,25836:0,25837:0,25838:0,25884:0,25932:0,26191:0,26192:0,26193:0,26194:0,26195:0,26237:0,26331:0,26332:0,26391:0,26392:0,26393:0,26432:0,26591:0,26592:0,26632:0,26692:0,26701:0,26702:0,26703:0,26704:0,26705:0,26706:0,26707:0,26708:0,26709:0,26710:0,26711:0,26712:0,26713:0,26714:0,26715:0,26716:0,26717:0,26718:0,26719:0,26720:0,26721:0,26722:0,26729:2,26730:2,26731:2,26732:2,26733:2,26734:2,26735:2,26736:2,26737:2,26738:2,26739:2,26740:2,26741:2,26742:2,26743:2,26744:2,26745:2,26746:2,26747:2,26748:2,26749:2,26750:2,26751:2,26752:2,26753:2,26754:2,26755:2,26756:2,26757:2,26758:2,26759:2,26760:2,26761:2,26762:2,26763:2,26764:2,26765:2,26766:2,26767:2,26768:2,26769:2,26770:2,26771:2,26772:2,26773:2,26774:2,26775:2,26776:2,26777:2,26778:2,26779:2,26780:2,26781:2,26782:2,26783:2,26784:2,26785:2,26786:2,26787:2,26788:2,26789:2,26790:2,26791:2,26792:2,26793:2,26794:2,26795:2,26796:2,26797:2,26798:2,26799:2,26801:2,26802:2,26803:2,26811:2,26812:2,26813:2,26847:2,26848:2,26849:2,26850:2,26851:2,26852:2,26853:2,26854:2,26855:2,26856:2,26857:2,26858:2,26859:2,26860:2,26861:2,26862:2,26863:2,26864:2,26865:2,26866:2,26867:2,26868:2,26869:2,26870:2,26891:0,26892:0,26893:0,26894:0,26895:0,26896:0,26897:0,26898:0,26899:0,26901:0,26902:0,26903:0,26904:0,26905:0,26906:0,26907:0,26908:0,26909:0,26910:0,26911:0,26912:0,26913:0,26914:0,26915:0,26916:0,26917:0,26918:0,26919:0,26920:0,26921:0,26922:0,26923:0,26929:0,26930:0,26931:0,26932:0,26933:0,26934:0,26935:0,26936:0,26937:0,26938:0,26939:0,26940:0,26941:0,26942:0,26943:0,26944:0,26945:0,26946:0,26948:0,26949:0,26950:0,26951:0,26952:0,26953:0,26954:0,26955:0,26956:0,26957:0,26958:0,26959:0,26960:0,26961:0,26962:0,26963:0,26964:0,26965:0,26966:0,26967:0,26968:0,26969:0,26970:0,26971:0,26972:0,26973:0,26974:0,26975:0,26976:0,26977:0,26978:0,26979:0,26980:0,26981:0,26982:0,26983:0,26984:0,26985:0,26986:0,26987:0,26988:0,26989:0,26990:0,26991:0,26992:0,26993:0,26994:0,26995:0,26996:0,26997:0,26998:0,27037:0,27038:0,27039:0,27040:0,27120:0,27200:0,27205:0,27206:0,27207:0,27208:0,27209:0,27210:0,27211:0,27212:0,27213:0,27214:0,27215:0,27216:0,27217:0,27218:0,27219:0,27220:0,27221:0,27222:0,27223:0,27224:0,27225:0,27226:0,27227:0,27228:0,27229:0,27230:0,27231:0,27232:0,27258:0,27259:0,27260:0,27291:6,27292:6,27391:0,27392:0,27393:0,27394:0,27395:0,27396:0,27397:0,27398:0,27429:0,27492:0,27493:0,27500:0,27561:0,27562:0,27563:0,27564:0,27571:0,27572:0,27573:0,27574:0,27581:0,27582:0,27583:0,27584:0,27591:0,27592:0,27593:0,27594:0,27700:0,28191:0,28192:0,28193:0,28232:0,28348:0,28349:0,28350:0,28351:0,28352:0,28353:0,28354:0,28355:0,28356:0,28357:0,28358:0,28402:0,28403:0,28404:0,28405:0,28406:0,28407:0,28408:0,28409:0,28410:0,28411:0,28412:0,28413:0,28414:0,28415:0,28416:0,28417:0,28418:0,28419:0,28420:0,28421:0,28422:0,28423:0,28424:0,28425:0,28426:0,28427:0,28428:0,28429:0,28430:0,28431:0,28432:0,28462:0,28463:0,28464:0,28465:0,28466:0,28467:0,28468:0,28469:0,28470:0,28471:0,28472:0,28473:0,28474:0,28475:0,28476:0,28477:0,28478:0,28479:0,28480:0,28481:0,28482:0,28483:0,28484:0,28485:0,28486:0,28487:0,28488:0,28489:0,28490:0,28491:0,28492:0,28600:0,28991:0,28992:0,29100:0,29101:0,29118:0,29119:0,29120:0,29121:0,29122:0,29168:0,29169:0,29170:0,29171:0,29172:0,29177:0,29178:0,29179:0,29180:0,29181:0,29182:0,29183:0,29184:0,29185:0,29187:0,29188:0,29189:0,29190:0,29191:0,29192:0,29193:0,29194:0,29195:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29900:0,29901:0,29902:0,29903:0,30161:0,30162:0,30163:0,30164:0,30165:0,30166:0,30167:0,30168:0,30169:0,30170:0,30171:0,30172:0,30173:0,30174:0,30175:0,30176:0,30177:0,30178:0,30179:0,30200:5,30339:0,30340:0,30491:0,30492:0,30493:0,30494:0,30591:0,30592:0,30729:0,30730:0,30731:0,30732:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31251:0,31252:0,31253:0,31254:0,31255:0,31256:0,31257:0,31258:0,31259:0,31265:0,31266:0,31267:0,31268:0,31275:0,31276:0,31277:0,31278:0,31279:0,31281:0,31282:0,31283:0,31284:0,31285:0,31286:0,31287:0,31288:0,31289:0,31290:0,31291:0,31292:0,31293:0,31294:0,31295:0,31296:0,31297:0,31370:0,31461:0,31462:0,31463:0,31464:0,31465:0,31466:0,31467:0,31468:0,31469:0,31491:0,31492:0,31493:0,31494:0,31495:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,31917:0,31918:0,31919:0,31920:0,31921:0,31922:0,31965:0,31966:0,31967:0,31968:0,31969:0,31970:0,31971:0,31972:0,31973:0,31974:0,31975:0,31976:0,31977:0,31978:0,31979:0,31980:0,31981:0,31982:0,31983:0,31984:0,31985:0,31986:0,31987:0,31988:0,31989:0,31990:0,31991:0,31992:0,31993:0,31994:0,31995:0,31996:0,31997:0,31998:0,31999:0,32000:0,32001:2,32002:2,32003:2,32005:2,32006:2,32007:2,32008:2,32009:2,32010:2,32011:2,32012:2,32013:2,32014:2,32015:2,32016:2,32017:2,32018:2,32019:2,32020:2,32021:2,32022:2,32023:2,32024:2,32025:2,32026:2,32027:2,32028:2,32029:2,32030:2,32031:2,32033:2,32034:2,32035:2,32036:2,32037:2,32038:2,32039:2,32040:2,32041:2,32042:2,32043:2,32044:2,32045:2,32046:2,32047:2,32048:2,32049:2,32050:2,32051:2,32052:2,32053:2,32054:2,32055:2,32056:2,32057:2,32058:2,32059:2,32060:2,32061:0,32062:0,32064:2,32065:2,32066:2,32067:2,32074:2,32075:2,32076:2,32077:2,32081:0,32082:0,32083:0,32084:0,32085:0,32086:0,32098:0,32099:2,32100:0,32104:0,32107:0,32108:0,32109:0,32110:0,32111:0,32112:0,32113:0,32114:0,32115:0,32116:0,32117:0,32118:0,32119:0,32120:0,32121:0,32122:0,32123:0,32124:0,32125:0,32126:0,32127:0,32128:0,32129:0,32130:0,32133:0,32134:0,32135:0,32136:0,32137:0,32138:0,32139:0,32140:0,32141:0,32142:0,32143:0,32144:0,32145:0,32146:0,32147:0,32148:0,32149:0,32150:0,32151:0,32152:0,32153:0,32154:0,32155:0,32156:0,32157:0,32158:0,32161:0,32164:2,32165:2,32166:2,32167:2,32180:0,32181:0,32182:0,32183:0,32184:0,32185:0,32186:0,32187:0,32188:0,32189:0,32190:0,32191:0,32192:0,32193:0,32194:0,32195:0,32196:0,32197:0,32198:0,32199:0,32201:0,32202:0,32203:0,32204:0,32205:0,32206:0,32207:0,32208:0,32209:0,32210:0,32211:0,32212:0,32213:0,32214:0,32215:0,32216:0,32217:0,32218:0,32219:0,32220:0,32221:0,32222:0,32223:0,32224:0,32225:0,32226:0,32227:0,32228:0,32229:0,32230:0,32231:0,32232:0,32233:0,32234:0,32235:0,32236:0,32237:0,32238:0,32239:0,32240:0,32241:0,32242:0,32243:0,32244:0,32245:0,32246:0,32247:0,32248:0,32249:0,32250:0,32251:0,32252:0,32253:0,32254:0,32255:0,32256:0,32257:0,32258:0,32259:0,32260:0,32301:0,32302:0,32303:0,32304:0,32305:0,32306:0,32307:0,32308:0,32309:0,32310:0,32311:0,32312:0,32313:0,32314:0,32315:0,32316:0,32317:0,32318:0,32319:0,32320:0,32321:0,32322:0,32323:0,32324:0,32325:0,32326:0,32327:0,32328:0,32329:0,32330:0,32331:0,32332:0,32333:0,32334:0,32335:0,32336:0,32337:0,32338:0,32339:0,32340:0,32341:0,32342:0,32343:0,32344:0,32345:0,32346:0,32347:0,32348:0,32349:0,32350:0,32351:0,32352:0,32353:0,32354:0,32355:0,32356:0,32357:0,32358:0,32359:0,32360:0,32601:0,32602:0,32603:0,32604:0,32605:0,32606:0,32607:0,32608:0,32609:0,32610:0,32611:0,32612:0,32613:0,32614:0,32615:0,32616:0,32617:0,32618:0,32619:0,32620:0,32621:0,32622:0,32623:0,32624:0,32625:0,32626:0,32627:0,32628:0,32629:0,32630:0,32631:0,32632:0,32633:0,32634:0,32635:0,32636:0,32637:0,32638:0,32639:0,32640:0,32641:0,32642:0,32643:0,32644:0,32645:0,32646:0,32647:0,32648:0,32649:0,32650:0,32651:0,32652:0,32653:0,32654:0,32655:0,32656:0,32657:0,32658:0,32659:0,32660:0,32661:0,32662:0,32664:2,32665:2,32666:2,32667:2,32701:0,32702:0,32703:0,32704:0,32705:0,32706:0,32707:0,32708:0,32709:0,32710:0,32711:0,32712:0,32713:0,32714:0,32715:0,32716:0,32717:0,32718:0,32719:0,32720:0,32721:0,32722:0,32723:0,32724:0,32725:0,32726:0,32727:0,32728:0,32729:0,32730:0,32731:0,32732:0,32733:0,32734:0,32735:0,32736:0,32737:0,32738:0,32739:0,32740:0,32741:0,32742:0,32743:0,32744:0,32745:0,32746:0,32747:0,32748:0,32749:0,32750:0,32751:0,32752:0,32753:0,32754:0,32755:0,32756:0,32757:0,32758:0,32759:0,32760:0,32761:0,32766:0,53001:0,53002:0,53003:0,53004:0,53008:0,53009:0,53010:0,53011:0,53012:0,53013:0,53014:0,53015:0,53016:0,53017:0,53018:0,53019:0,53021:0,53022:0,53023:0,53024:0,53025:0,53026:0,53027:0,53028:0,53029:0,53030:0,53031:0,53032:0,53034:0,53042:0,53043:0,53044:0,53045:0,53046:0,53048:0,53049:0,54001:0,54002:0,54003:0,54004:0,54008:0,54009:0,54010:0,54011:0,54012:0,54013:0,54014:0,54015:0,54016:0,54017:0,54018:0,54019:0,54021:0,54022:0,54023:0,54024:0,54025:0,54026:0,54027:0,54028:0,54029:0,54030:0,54031:0,54032:0,54034:0,54042:0,54043:0,54044:0,54045:0,54046:0,54048:0,54049:0,54050:0,54051:0,54052:0,54053:0,65061:2,65062:2,65161:0,65163:0,102001:0,102002:0,102003:0,102004:0,102005:0,102006:0,102007:0,102008:0,102009:0,102010:0,102011:0,102012:0,102013:0,102014:0,102015:0,102016:0,102017:0,102018:0,102019:0,102020:0,102021:0,102022:0,102023:0,102024:0,102025:0,102026:0,102027:0,102028:0,102029:0,102030:0,102031:0,102032:0,102033:0,102034:0,102035:0,102036:0,102037:0,102038:0,102039:0,102040:0,102041:2,102042:0,102043:0,102044:0,102045:0,102046:0,102047:0,102048:0,102049:0,102050:0,102051:0,102052:0,102053:0,102054:0,102055:0,102056:0,102057:0,102058:0,102059:0,102060:0,102061:0,102062:0,102063:0,102064:11,102065:0,102066:0,102067:0,102068:14,102069:15,102070:0,102071:0,102072:0,102073:0,102074:0,102075:0,102076:0,102077:0,102078:0,102079:0,102080:0,102081:0,102082:0,102083:0,102084:0,102085:0,102086:0,102087:0,102088:0,102089:0,102090:0,102091:0,102092:0,102093:0,102094:0,102095:0,102096:0,102097:0,102098:0,102099:0,102100:0,102101:0,102102:0,102103:0,102104:0,102105:0,102106:0,102107:0,102108:0,102109:0,102110:0,102111:0,102112:0,102113:0,102114:0,102115:0,102116:0,102117:0,102118:2,102119:1,102120:2,102121:2,102122:0,102123:0,102124:0,102125:0,102126:0,102127:0,102128:0,102129:0,102130:0,102131:0,102132:0,102133:0,102134:0,102135:0,102136:0,102137:0,102138:0,102139:0,102140:0,102141:0,102142:0,102143:0,102144:0,102145:0,102146:0,102147:0,102148:0,102149:0,102150:0,102151:0,102152:0,102153:0,102154:0,102155:0,102156:0,102157:0,102158:0,102159:0,102160:0,102161:0,102162:0,102163:0,102164:0,102165:0,102166:0,102167:0,102168:0,102169:0,102170:0,102171:0,102172:0,102173:0,102174:0,102175:0,102176:0,102177:0,102178:0,102179:0,102180:0,102181:0,102182:0,102183:0,102184:0,102185:0,102186:0,102187:0,102188:0,102189:0,102190:0,102191:0,102192:0,102193:0,102194:0,102195:0,102196:0,102197:0,102198:0,102199:0,102200:0,102201:0,102202:0,102203:0,102204:0,102205:0,102206:0,102207:0,102208:0,102209:0,102210:0,102211:0,102212:0,102213:0,102214:0,102215:0,102216:0,102217:2,102218:0,102219:2,102220:2,102221:0,102222:0,102223:0,102224:0,102225:0,102226:0,102227:0,102228:0,102229:0,102230:0,102231:0,102232:0,102233:0,102234:0,102235:0,102236:0,102237:0,102238:0,102239:0,102240:0,102241:0,102242:0,102243:0,102244:0,102245:0,102246:0,102247:0,102248:0,102249:0,102250:0,102251:0,102252:0,102253:0,102254:0,102255:0,102256:0,102257:0,102258:0,102259:0,102260:0,102261:0,102262:0,102263:0,102264:0,102265:0,102266:0,102267:0,102268:0,102269:0,102270:0,102271:0,102272:0,102273:0,102274:0,102275:0,102276:0,102277:0,102278:0,102279:0,102280:0,102281:0,102282:0,102283:0,102284:0,102285:0,102286:0,102287:0,102288:0,102289:0,102290:0,102291:0,102292:0,102293:0,102294:0,102295:0,102296:0,102297:0,102298:0,102299:0,102300:0,102301:0,102302:0,102303:0,102304:0,102305:0,102306:0,102307:0,102308:0,102309:0,102310:0,102311:0,102312:0,102313:0,102314:0,102315:0,102316:0,102317:0,102318:0,102319:0,102320:0,102321:0,102322:0,102323:0,102324:0,102325:0,102326:0,102327:0,102328:0,102329:0,102330:0,102331:0,102332:0,102333:0,102334:0,102335:0,102336:0,102337:0,102338:0,102339:0,102340:0,102341:0,102342:0,102343:0,102344:0,102345:0,102346:0,102347:0,102348:0,102349:0,102350:0,102351:0,102352:0,102353:0,102354:0,102355:0,102356:0,102357:0,102358:0,102359:0,102360:0,102361:0,102362:0,102363:0,102364:0,102365:0,102366:0,102367:0,102368:0,102369:0,102370:0,102371:0,102372:0,102373:0,102374:0,102375:0,102376:0,102377:0,102378:1,102379:1,102380:0,102381:1,102382:0,102383:0,102384:0,102385:0,102386:0,102387:0,102388:0,102389:2,102390:2,102391:2,102392:2,102393:2,102394:2,102395:2,102396:2,102397:2,102398:2,102401:0,102402:0,102403:0,102404:0,102405:0,102406:0,102407:0,102408:0,102409:0,102410:0,102411:0,102412:0,102413:0,102414:0,102415:0,102416:0,102417:0,102418:0,102419:0,102420:0,102421:0,102422:0,102423:0,102424:0,102425:0,102426:0,102427:0,102428:0,102429:0,102430:0,102431:0,102432:0,102433:0,102434:0,102435:0,102436:0,102437:0,102438:0,102439:0,102440:0,102441:0,102442:0,102443:0,102444:0,102445:2,102446:2,102447:2,102450:0,102451:0,102452:0,102461:2,102462:2,102463:2,102464:2,102465:2,102466:2,102467:2,102468:2,102469:0,102470:0,102471:0,102472:0,102473:0,102474:0,102475:0,102476:0,102477:0,102478:0,102479:0,102480:0,102481:0,102482:0,102483:0,102484:0,102485:0,102486:0,102487:0,102488:0,102489:0,102490:0,102491:0,102492:0,102493:0,102494:0,102495:0,102496:0,102500:1,102501:1,102502:1,102503:1,102504:1,102505:1,102506:1,102507:1,102508:1,102509:1,102510:1,102511:1,102512:1,102513:1,102514:1,102515:1,102516:1,102517:1,102518:1,102519:1,102520:0,102521:0,102522:0,102523:0,102524:0,102525:2,102526:2,102527:2,102528:2,102529:2,102530:0,102531:0,102532:0,102533:0,102534:0,102535:0,102536:0,102537:0,102538:0,102539:0,102540:0,102541:0,102542:0,102543:0,102544:0,102545:0,102546:0,102547:0,102548:0,102549:0,102570:0,102571:0,102572:0,102573:0,102574:0,102575:0,102576:0,102577:0,102578:0,102579:0,102580:0,102581:0,102582:0,102583:0,102584:0,102585:0,102586:0,102587:0,102588:0,102589:2,102590:0,102591:0,102592:0,102593:0,102594:0,102595:0,102596:0,102597:0,102598:0,102599:2,102600:2,102601:0,102602:0,102603:0,102604:2,102605:0,102606:0,102607:0,102608:0,102609:0,102610:0,102611:0,102612:0,102613:0,102614:0,102615:0,102616:0,102617:0,102618:0,102619:0,102620:0,102621:0,102622:0,102623:0,102624:0,102625:0,102626:0,102627:0,102628:0,102629:2,102630:2,102631:2,102632:2,102633:2,102634:2,102635:2,102636:2,102637:2,102638:2,102639:2,102640:2,102641:2,102642:2,102643:2,102644:2,102645:2,102646:2,102647:0,102648:2,102649:2,102650:2,102651:2,102652:2,102653:2,102654:2,102655:2,102656:2,102657:2,102658:2,102659:2,102660:2,102661:2,102662:2,102663:2,102664:2,102665:2,102666:2,102667:2,102668:2,102669:2,102670:2,102671:2,102672:2,102673:2,102674:2,102675:2,102676:2,102677:2,102678:2,102679:2,102680:2,102681:2,102682:2,102683:2,102684:2,102685:2,102686:2,102687:2,102688:2,102689:2,102690:2,102691:2,102692:2,102693:2,102694:2,102695:2,102696:2,102697:2,102698:2,102699:2,102700:2,102701:0,102702:0,102703:0,102704:2,102705:2,102707:2,102708:2,102709:2,102710:2,102711:2,102712:2,102713:2,102714:2,102715:2,102716:2,102717:2,102718:2,102719:2,102720:2,102721:2,102722:2,102723:2,102724:2,102725:2,102726:2,102727:2,102728:2,102729:2,102730:2,102733:2,102734:2,102735:2,102736:2,102737:2,102738:2,102739:2,102740:2,102741:2,102742:2,102743:2,102744:2,102745:2,102746:2,102747:2,102748:2,102749:2,102750:2,102751:2,102752:2,102753:2,102754:2,102755:2,102756:2,102757:2,102758:2,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102767:0,102768:0,102769:0,102770:0,102771:0,102772:0,102773:0,102774:0,102775:0,102776:0,102777:0,102778:0,102779:0,102780:0,102781:0,102782:0,102783:0,102784:0,102785:0,102786:0,102787:0,102788:0,102789:0,102790:0,102791:0,102792:0,102793:0,102794:0,102795:0,102796:0,102797:0,102798:0,102962:0,102963:0,102964:0,102965:0,102966:0,102967:0,102968:0,102969:0,102970:1,102971:0,102972:0,102973:0,102974:2,102975:0,102976:0,102977:0,102978:0,102979:0,102980:0,102981:0,102982:0,102983:0,102984:0,102985:0,102986:0,102987:0,102988:0,102989:0,102990:1,102991:1,102992:1,102993:0,102994:0,102995:2,102996:2,102997:0,102998:0,102999:0,103000:0,103001:0,103002:0,103003:2,103004:2,103005:2,103006:2,103007:2,103008:2,103009:0,103010:0,103011:0,103012:2,103013:2,103014:2,103015:0,103016:2,103017:0,103018:2,103019:0,103020:0,103021:0,103022:2,103023:2,103024:2,103025:0,103026:0,103027:2,103028:2,103029:0,103030:0,103031:0,103032:2,103033:2,103034:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103065:0,103066:0,103067:0,103068:0,103069:2,103070:0,103071:0,103072:2,103073:2,103074:0,103075:0,103076:0,103077:1,103078:1,103079:1,103080:0,103081:0,103082:0,103083:2,103084:2,103085:2,103086:0,103087:0,103088:2,103089:2,103090:0,103091:0,103092:0,103093:0,103094:1,103095:0,103096:2,103097:0,103098:0,103099:0,103100:2,103101:2,103102:2,103103:0,103104:2,103105:0,103106:2,103107:0,103108:0,103109:0,103110:2,103111:2,103112:2,103113:0,103114:0,103115:0,103116:0,103117:2,103118:2,103119:2,103120:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103153:0,103154:0,103155:0,103156:0,103157:0,103158:2,103159:2,103160:2,103161:2,103162:2,103163:0,103164:0,103165:0,103166:1,103167:1,103168:1,103169:2,103170:2,103171:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103186:0,103187:0,103188:0,103189:2,103190:2,103191:2,103192:0,103193:0,103194:0,103195:0,103196:2,103197:2,103198:2,103199:2,103200:0,103201:0,103202:0,103203:0,103204:0,103205:0,103206:0,103207:0,103208:0,103209:0,103210:0,103211:0,103212:0,103213:0,103214:0,103215:0,103216:0,103217:0,103218:0,103219:0,103220:0,103221:0,103222:0,103223:0,103224:0,103225:1,103226:1,103227:1,103228:0,103229:0,103230:2,103231:2,103232:0,103233:0,103234:0,103235:0,103236:0,103237:0,103238:2,103239:2,103240:2,103241:2,103242:2,103243:2,103244:0,103245:0,103246:0,103247:2,103248:2,103249:2,103250:0,103251:2,103252:0,103253:2,103254:0,103255:0,103256:0,103257:2,103258:2,103259:2,103260:0,103261:0,103262:2,103263:2,103264:0,103265:0,103266:0,103267:2,103268:2,103269:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103300:0,103301:0,103302:0,103303:0,103304:0,103305:0,103306:0,103307:0,103308:0,103309:0,103310:0,103311:0,103312:0,103313:0,103314:0,103315:0,103316:0,103317:0,103318:0,103319:0,103320:0,103321:0,103322:0,103323:0,103324:0,103325:0,103326:0,103327:0,103328:0,103329:0,103330:0,103331:0,103332:0,103333:0,103334:0,103335:0,103336:0,103337:0,103338:0,103339:0,103340:0,103341:0,103342:0,103343:0,103344:0,103345:0,103346:0,103347:0,103348:0,103349:0,103350:0,103351:0,103352:0,103353:0,103354:0,103355:0,103356:0,103357:0,103358:0,103359:0,103360:0,103361:0,103362:0,103363:0,103364:0,103365:0,103366:0,103367:0,103368:0,103369:0,103370:0,103371:0,103372:0,103373:0,103374:0,103375:0,103376:2,103377:0,103378:0,103379:2,103380:2,103381:0,103382:0,103383:0,103384:1,103385:1,103386:1,103387:0,103388:0,103389:0,103390:2,103391:2,103392:2,103393:0,103394:0,103395:2,103396:2,103397:0,103398:0,103399:0,103400:2,103401:2,103402:2,103403:2,103404:2,103405:2,103406:2,103407:2,103408:2,103409:2,103410:2,103411:2,103412:2,103413:2,103414:2,103415:2,103416:2,103417:2,103418:2,103419:2,103420:2,103421:2,103422:2,103423:2,103424:2,103425:2,103426:2,103427:2,103428:2,103429:2,103430:2,103431:2,103432:2,103433:2,103434:2,103435:2,103436:2,103437:2,103438:2,103439:2,103440:2,103441:2,103442:2,103443:2,103444:2,103445:2,103446:2,103447:2,103448:2,103449:2,103450:2,103451:2,103452:2,103453:2,103454:2,103455:2,103456:2,103457:2,103458:2,103459:2,103460:2,103461:2,103462:2,103463:2,103464:2,103465:2,103466:2,103467:2,103468:2,103469:2,103470:2,103471:2,103472:0,103473:1,103474:0,103475:2,103476:0,103477:0,103478:0,103479:2,103480:2,103481:2,103482:0,103483:2,103484:0,103485:2,103486:0,103487:0,103488:0,103489:2,103490:2,103491:2,103492:0,103493:0,103494:0,103495:0,103496:2,103497:2,103498:2,103499:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103528:0,103529:0,103530:0,103531:0,103532:0,103533:0,103534:0,103535:0,103536:0,103537:0,103538:0,103539:0,103540:0,103541:0,103542:0,103543:0,103544:2,103545:2,103546:2,103547:2,103548:2,103549:0,103550:0,103551:0,103552:1,103553:1,103554:1,103555:2,103556:2,103557:2,103558:0,103559:0,103560:0,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103571:0,103572:0,103573:0,103574:2,103575:2,103576:2,103577:0,103578:0,103579:0,103580:0,103581:2,103582:2,103583:2,103584:0,103585:2,103600:0,103601:0,103602:0,103603:0,103604:0,103605:0,103606:0,103607:0,103608:0,103609:0,103610:0,103611:0,103612:0,103613:0,103614:0,103615:0,103616:0,103617:0,103618:0,103619:0,103620:0,103621:0,103622:0,103623:0,103624:0,103625:0,103626:0,103627:0,103628:0,103629:0,103630:0,103631:0,103632:0,103633:0,103634:0,103635:0,103636:0,103637:0,103638:0,103639:0,103640:0,103641:0,103642:0,103643:0,103644:0,103645:0,103646:0,103647:0,103648:0,103649:0,103650:0,103651:0,103652:0,103653:0,103654:0,103655:0,103656:0,103657:0,103658:0,103659:0,103660:0,103661:0,103662:0,103663:0,103664:0,103665:0,103666:0,103667:0,103668:0,103669:0,103670:0,103671:0,103672:0,103673:0,103674:0,103675:0,103676:0,103677:0,103678:0,103679:0,103680:0,103681:0,103682:0,103683:0,103684:0,103685:0,103686:0,103687:0,103688:0,103689:0,103690:0,103691:0,103692:0,103693:0,103694:0,103695:2,103700:2,103701:2,103702:2,103703:2,103704:2,103705:2,103706:2,103707:2,103708:2,103709:2,103710:2,103711:2,103712:2,103713:2,103714:2,103715:2,103716:2,103717:2,103718:2,103719:2,103720:2,103721:2,103722:2,103723:2,103724:2,103725:2,103726:2,103727:2,103728:2,103729:2,103730:2,103731:2,103732:2,103733:2,103734:2,103735:2,103736:2,103737:2,103738:2,103739:2,103740:2,103741:2,103742:2,103743:2,103744:2,103745:2,103746:2,103747:2,103748:2,103749:2,103750:2,103751:2,103752:2,103753:2,103754:2,103755:2,103756:2,103757:2,103758:2,103759:2,103760:2,103761:2,103762:2,103763:2,103764:2,103765:2,103766:2,103767:2,103768:2,103769:2,103770:2,103771:2,103772:2,103773:2,103774:2,103775:2,103776:2,103777:2,103778:2,103779:2,103780:2,103781:2,103782:2,103783:2,103784:2,103785:2,103786:2,103787:2,103788:2,103789:2,103790:2,103791:2,103792:2,103793:2,103794:0,103795:0,103796:0,103797:0,103798:0,103799:0,103800:0,103801:0,103802:0,103803:0,103804:0,103805:0,103806:0,103807:0,103808:0,103809:0,103810:0,103811:0,103812:0,103813:0,103814:0,103815:0,103816:0,103817:0,103818:0,103819:0,103820:0,103821:0,103822:0,103823:0,103824:0,103825:0,103826:0,103827:0,103828:0,103829:0,103830:0,103831:0,103832:0,103833:0,103834:0,103835:0,103836:0,103837:0,103838:0,103839:0,103840:0,103841:0,103842:0,103843:0,103844:0,103845:0,103846:0,103847:0,103848:0,103849:0,103850:0,103851:0,103852:0,103853:0,103854:0,103855:0,103856:0,103857:0,103858:0,103859:0,103860:0,103861:0,103862:0,103863:0,103864:0,103865:0,103866:0,103867:0,103868:0,103869:0,103870:0,103871:0,103900:2,103901:2,103902:2,103903:2,103904:2,103905:2,103906:2,103907:2,103908:2,103909:2,103910:2,103911:2,103912:2,103913:2,103914:2,103915:2,103916:2,103917:2,103918:2,103919:2,103920:2,103921:2,103922:2,103923:2,103924:2,103925:2,103926:2,103927:2,103928:2,103929:2,103930:2,103931:2,103932:2,103933:2,103934:2,103935:2,103936:2,103937:2,103938:2,103939:2,103940:2,103941:2,103942:2,103943:2,103944:2,103945:2,103946:2,103947:2,103948:2,103949:2,103950:2,103951:2,103952:2,103953:2,103954:2,103955:2,103956:2,103957:2,103958:2,103959:2,103960:2,103961:2,103962:2,103963:2,103964:2,103965:2,103966:2,103967:2,103968:2,103969:2,103970:2,103971:2,900913:0,20010201:0,20010202:0,20020901:0,20020902:0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(11)),i=g(r(10)),o=g(r(3)),a=g(r(0)),s=g(r(2)),u=g(r(4)),l=g(r(7)),c=g(r(5)),h=g(r(29)),f=r(1),d=r(6),p=g(r(34)),y=r(42);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,f.defaultValue)(e,{}),r.type=d.GeometryType.lineString,r.coordinates=(0,f.defaultValue)(e.coordinates,[]),!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");if(r.coordinates.length<2)throw new Error("坐标必须是两个或多个位置的数组");return 3===r.coordinates[0].length&&(r.hasZ=!0),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"getPoint",value:function(e){return e=Number(e),this._isValidate(e)?new p.default({coordinates:this._cloneCoordinates()[e]}):null}},{key:"insertPoint",value:function(e,t){return this._isValidate(e)?(Array.isArray(this.coordinates)&&this.coordinates.splice(e,0,p.default.toCoordinates(t)),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this):null}},{key:"removePoint",value:function(e){if(e=Number(e),!this._isValidate(e))return this;var t=this._cloneCoordinates()[e];return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),new p.default({coordinates:t})}},{key:"setPoint",value:function(e,t){return this._isValidate(e)?(Array.isArray(this.coordinates)&&this.coordinates.splice(e,1,p.default.toCoordinates(t)),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this):this}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent.toJSON(),e}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++)for(var r=this.coordinates[t],n=0;n<r.length;n++)e+=r[n]+",";return e.substring(0,e.length-1)}},{key:"toXMl",value:function(){}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++)e.push({x:this.coordinates[t][0],y:this.coordinates[t][1]});return{LinGeom:[{Line:{Arcs:[{Dots:e,ArcID:0}]},GID:0}],GID:parseInt(String(1e7*Math.random()))}}},{key:"getIGSType",value:function(){return d.IGSGeometryType.lineString}},{key:"toDots",value:function(){for(var e=[],t=this.coordinates,r=0;r<t.length;r++)e.push({x:t[r][0],y:t[r][1]});return e}},{key:"_isValidate",value:function(e){var t=this.coordinates.length;return!(!(0,f.isNumber)(e)||e<0||e>=t)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,y.calcExtent)(e,t,d.GeometryType.lineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(h.default);(0,n.default)(m.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=x(r(11)),i=x(r(10)),o=x(r(173)),a=x(r(3)),s=x(r(0)),u=x(r(2)),l=x(r(4)),c=x(r(7)),h=x(r(5)),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(33)),d=x(r(29)),p=r(1),y=r(6),g=x(r(76)),m=x(r(34)),v=x(r(53)),_=x(r(89)),S=r(42);function x(e){return e&&e.__esModule?e:{default:e}}var b=function(e){function t(e){(0,s.default)(this,t);var r=(0,l.default)(this,(t.__proto__||(0,a.default)(t)).call(this,e));if(e=(0,p.defaultValue)(e,{}),r.coordinates=(0,p.defaultValue)(e.coordinates,[]),r.isSelfIntersecting=(0,p.defaultValue)(e.isSelfIntersecting,!1),r.type=y.GeometryType.multiPolygon,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");for(var n=0;n<r.coordinates.length;n++){var i=r.coordinates[n],u=!0,c=!1,h=void 0;try{for(var f,d=(0,o.default)(i);!(u=(f=d.next()).done);u=!0){var g=f.value;if(g.length<4)throw new Error("每个环至少有四个点");if(g[g.length-1].length!==g[0].length)throw new Error("首尾点维度不相等");for(var m=0;m<g[g.length-1].length;m++)if(g[g.length-1][m]!==g[0][m])throw new Error("第一个位置和最后一个位置不相等")}}catch(e){c=!0,h=e}finally{try{!u&&d.return&&d.return()}finally{if(c)throw h}}}return 3===r.coordinates[0][0][0].length&&(r.hasZ=!0),r}return(0,h.default)(t,e),(0,u.default)(t,[{key:"addPolygon",value:function(e,t){if(t=(0,p.defaultValue)(t,"add"),e instanceof g.default||_.default.error("polygon类型不是Polygon对象类型!"),"add"===t)this.coordinates.push(e._cloneCoordinates());else{for(var r=[],n=0;n<this.coordinates.length;n++){var o=f.polygon(this.coordinates[n]),a=f.polygon(e.coordinates);f.booleanDisjoint(o,a)||(r.push(o),this.coordinates[n]=void 0)}for(var s=0;s<this.coordinates.length;s++)this.coordinates[s]||this.coordinates.splice(s,1);for(var u=f.polygon(e.coordinates),l=0;l<r.length;l++)u=f.union(u,r[l]).geometry;this.coordinates.push(u.coordinates)}return this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePolygon",value:function(e){if(!this._isValidate(e))return null;var t=JSON.parse((0,i.default)(this._cloneCoordinates()[e]));return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),new g.default({coordinates:t})}},{key:"toXMl",value:function(){return""}},{key:"contains",value:function(e){if(!e)throw new Error("传入参数错误");var t=f.multiPolygon(this._cloneCoordinates()),r=f.point(m.default.toCoordinates(e));return f.booleanPointInPolygon(r,t)}},{key:"toJSON",value:function(){var e=(0,c.default)(t.prototype.__proto__||(0,a.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent.toJSON(),e}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++){for(var r=this.coordinates[t],n=0;n<r.length;n++){for(var i=r[n],o=0;o<i.length;o++)for(var a=i[o],s=0;s<a.length;s++)e+=a[s]+",";e=e.substring(0,e.length-1),e+="|"}e=e.substring(0,e.length-1),e+=";"}return e.substring(0,e.length-1)}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t={},r={},n=0;n<this.coordinates.length;n++){var i=this.coordinates[n];t={Rings:[],GID:n};for(var o=0;o<i.length;o++){r={Arcs:[]};for(var a=[],s=0;s<i[o].length;s++){var u=i[o][s];a.push({x:u[0],y:u[1]})}r.Arcs.push({Dots:a,ArcID:o}),t.Rings.push(r)}e.push(t)}return{RegGeom:e}}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_isValidate",value:function(e){var t=this.coordinates.length;return!(!(0,p.isNumber)(e)||e<0||e>=t)}},{key:"_calcExtent",value:function(e,t){return(0,S.calcExtent)(e,t,y.GeometryType.multiPolygon,this.spatialReference)}},{key:"getIGSType",value:function(){return y.IGSGeometryType.multiPolygon}},{key:"toPolygonArray",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++)e.push(new g.default({coordinates:this.coordinates[t],spatialReference:v.default.fromJSON(this.spatialReference)}));return e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,p.defaultValue)(e,{}))}}]),t}(d.default);(0,n.default)(b.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=b},function(e,t,r){e.exports={default:r(374),__esModule:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(11)),i=m(r(10)),o=m(r(3)),a=m(r(0)),s=m(r(2)),u=m(r(4)),l=m(r(7)),c=m(r(5)),h=r(1),f=m(r(29)),d=r(6),p=m(r(34)),y=m(r(89)),g=r(42);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,h.defaultValue)(e,{}),r.coordinates=(0,h.defaultValue)(e.coordinates,[]),!Array.isArray(r.coordinates))throw new Error("坐标必须是数组");for(var n=0;n<r.coordinates.length;n++){if(r.coordinates[n].length<2||r.coordinates[n].length>3)throw new Error("多点的数组长度必须在合理范围内(2或者3)");3===r.coordinates[n].length?r.hasZ=!0:r.hasZ=!1}return r.type=d.GeometryType.multiPoint,r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"addPoint",value:function(e,t){if(t=(0,h.defaultValue)(t,"add"),e instanceof p.default)this._addPoint(e,t);else if(e instanceof Array)if(this._isNumberArray(e))this._addPoint(new p.default({coordinates:e}),t);else for(var r=0;r<e.length;r++)e[r]instanceof p.default?this._addPoint(e[r],t):e[r]instanceof Array?this._isNumberArray(e[r])?this._addPoint(new p.default({coordinates:e[r]}),t):e instanceof p.default?this._addPoint(e[r],t):y.default.error("point的子元素类型不是点几何对象或者点坐标数组!"):y.default.error("point的类型不是点几何对象或者点坐标数组!");else y.default.error("point的类型不是点几何对象或者点坐标数组!");return this.coordinates.length>=2&&(this.extent=this._calcExtent(this.coordinates,this.hasZ)),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"_addPoint",value:function(e,t){"add"===t?this.coordinates.push(e.coordinates):this.contains(e)||this.coordinates.push(e.coordinates)}},{key:"_isNumberArray",value:function(e){if(!(e instanceof Array))return!1;var t=!0;if(2===e.length||3===e.length){for(var r=0;r<e.length;r++)if("number"!=typeof e[r]){t=!1;break}}else t=!1;return t}},{key:"contains",value:function(e){if(e instanceof p.default){for(var t=0;t<this.coordinates.length;t++)if(e.equals(this.coordinates[t]))return!0}else if(e instanceof Array&&(2===e.length||3===e.length)){for(var r=0;r<this.coordinates.length;r++)if(new p.default({coordinates:e}).equals(this.coordinates[r]))return!0}else y.default.error("必须为点对象或坐标数组才能比较是否相等!");return!1}},{key:"getPoint",value:function(e){if(e=Number(e),!this._isValidate(e))throw new Error("未找到指定索引,请输入正确的索引");var t=this._cloneCoordinates();return new p.default({coordinates:t[e]})}},{key:"removePoint",value:function(e){if(e=Number(e),!this._isValidate(e))return null;var t=this._cloneCoordinates();return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),new p.default({coordinates:t[e]})}},{key:"setPoint",value:function(e,t){if(!this._isValidate(e))throw new Error("未找到指定索引,请输入正确的索引");var r=this._cloneCoordinates();return Array.isArray(r)&&(r.splice(e,1,p.default.toCoordinates(t)),this.coordinates=r),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"getIGSType",value:function(){return d.IGSGeometryType.multiPoint}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent?this.extent.toJSON():void 0,e}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++){var r;r={x:this.coordinates[t][0],y:this.coordinates[t][1]},e.push({Dot:r,GID:t})}return{PntGeom:e}}},{key:"toString",value:function(){for(var e="",t=0;t<this.coordinates.length;t++)for(var r=this.coordinates[t],n=0;n<r.length;n++)e+=r[n]+",";return e.substring(0,e.length-1)}},{key:"toDots",value:function(){for(var e=[],t=this.coordinates,r=0;r<t.length;r++)e.push({x:t[r][0],y:t[r][1]});return e}},{key:"_isValidate",value:function(e){var t=this.coordinates.length;return!(!(0,h.isNumber)(e)||e<0||e>=t)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){if(e.length>1)return(0,g.calcExtent)(e,t,d.GeometryType.lineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,h.defaultValue)(e,{}))}}]),t}(f.default);(0,n.default)(v.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=_(r(11)),i=_(r(10)),o=_(r(3)),a=_(r(0)),s=_(r(2)),u=_(r(4)),l=_(r(7)),c=_(r(5)),h=_(r(29)),f=r(1),d=r(6),p=_(r(76)),y=_(r(34)),g=_(r(53)),m=r(42),v=r(376);function _(e){return e&&e.__esModule?e:{default:e}}var S=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,f.defaultValue)(e,{}),r.center=(0,f.defaultValue)(e.center,void 0),!r.center)throw new Error("缺少圆心坐标");if(r.center=y.default.toCoordinates(r.center),r.radius=(0,f.defaultValue)(e.radius,1e3),!(0,f.isNumber)(r.radius))throw new Error("半径必须为数字");if(r.geodesic=(0,f.defaultValue)(e.geodesic,!1),r.radiusUnit=(0,f.defaultValue)(e.radiusUnit,d.RadiusUnit.meters),r.numberOfPoints=(0,f.defaultValue)(e.numberOfPoints,40),!(0,f.isNumber)(r.numberOfPoints))throw new Error("圆曲线上点的数量必须为数字");return r.type=d.GeometryType.circle,3===r.center.length&&(r.hasZ=!0),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.center=JSON.parse((0,i.default)(this.center)),e.radius=this.radius,e.radiusUnit=this.radiusUnit,e.numberOfPoints=this.numberOfPoints,e.extent=this.extent.toJSON(),e}},{key:"toPolygon",value:function(){var e=this.spatialReference,t=this.geodesic,r=v.RadiusUnitToMeter[this.radiusUnit]||1,n=this.radius*r,i="geographic";if(e.isWebMercator)i="webMercator";else if(e.wkid&&(0,f.defined)(v.ProjUnitWkidMap[e.wkid]))i="proj";else if(e.wkt){var o=e.wkt;["PROJS","proj4","PROJCRS","+proj"].some(function(e){return 0===o.indexOf(e)})&&(i="proj")}if(!t){"geographic"===i&&(n/=v.RadiusUnitToMeter.degrees);var a=this._tranCircleToPath(this.center,n,this.numberOfPoints);return new p.default({coordinates:a,spatialReference:g.default.fromJSON(this.spatialReference)})}switch(i){case"proj":f.Log.error("暂时仅支持墨卡托投影坐标系和地理坐标系使用geodesic属性");break;case"webMercator":case"geographic":var s=6378137,u=Math.PI/180,l={latitude:this.center[1],longitude:this.center[0]};"webMercator"===i&&(l={longitude:180*l.longitude/Math.PI/s,latitude:180*(2*Math.atan(Math.exp(l.latitude/s))-Math.PI/2)/Math.PI});for(var c=n/1e3,h=c/(111.32*Math.cos(l.latitude*Math.PI/180)),d=c/110.574,y=[],m=0;m<this.numberOfPoints;m+=1){var _=m/this.numberOfPoints*(2*Math.PI),S=h*Math.cos(_),x=d*Math.sin(_),b=l.longitude+S,w=l.latitude+x;if("webMercator"===i){var k=Math.max(Math.min(85.0511287798,w),-85.0511287798),M=Math.sin(k*u);y.push([s*b*u,s*Math.log((1+M)/(1-M))/2])}else y.push([b,w])}return y.length<=3&&f.Log.error("生成圆几何点个数不能小于3"),y.push(y[0]),new p.default({coordinates:[y],spatialReference:g.default.fromJSON(this.spatialReference)})}}},{key:"toString",value:function(){return this.hasZ?this.center[0]+","+this.center[1]+","+this.center[2]+","+this.radius:this.center[0]+","+this.center[1]+","+this.radius}},{key:"toXMl",value:function(){return""}},{key:"getIGSType",value:function(){return d.IGSGeometryType.circle}},{key:"_tranCircleToPath",value:function(e,t,r){for(var n=2*Math.PI/r,i=0,o=[],a=[],s=0;s<r;s++){i-=n;var u=[e[0]+t*Math.cos(i),e[1]+t*Math.sin(i)];a.push(u)}var l=a[a.length-1],c=a[0];return Math.abs(l[0]-c[0])>1e-15&&Math.abs(l[1]-c[1])>1e-15&&a.push([c[0],c[1]]),o.push(a),this.hasZ&&(o=o.map(function(t){return t.map(function(t){return[t[0],t[1],e[2]]})})),o}},{key:"_calcExtent",value:function(e){var t=this.toPolygon();return(0,m.calcExtent)(t._cloneCoordinates(),e,d.GeometryType.polygon,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toGeoJSON",value:function(){return this.toPolygon().toGeoJSON()}}],[{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(h.default);(0,n.default)(S.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.hasZ)}}}),t.default=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(11)),i=g(r(10)),o=g(r(3)),a=g(r(0)),s=g(r(2)),u=g(r(4)),l=g(r(7)),c=g(r(5)),h=g(r(29)),f=r(1),d=r(6),p=g(r(34)),y=r(42);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(e=(0,f.defaultValue)(e,{}),r.coordinates=(0,f.defaultValue)(e.coordinates,[]),r.type=d.GeometryType.multiLineString,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");for(var n=0;n<r.coordinates.length;n++)if(r.coordinates[n].length<2)throw new Error("坐标必须是两个或多个位置的数组");return 3===r.coordinates[0][0].length&&(r.hasZ=!0),r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"addPath",value:function(e){if(!Array.isArray(e))throw new Error("传入参数错误");var t=[];return e.forEach(function(e){t.push(p.default.toCoordinates(e))}),this.coordinates.push(t),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePath",value:function(e){if(!this._isValidate(e,0))return null;var t=JSON.parse((0,i.default)(this._cloneCoordinates()[e]));return this.coordinates.splice(e,1),this.coordinates=JSON.parse((0,i.default)(this.coordinates)),t.map(function(e){return new p.default({coordinates:e})})}},{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse((0,i.default)(this.coordinates)),e.extent=this.extent.toJSON(),e}},{key:"getPoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this._cloneCoordinates()[e];return new p.default({coordinates:r[t]})}},{key:"insertPoint",value:function(e,t,r){if(!this._isValidate(e,t))return null;var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,0,p.default.toCoordinates(r)),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"removePoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this.coordinates[e];return Array.isArray(r)&&r.splice(t,1),this.coordinates=r,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"setPoint",value:function(e,t,r){if(!this._isValidate(e,t))return this;var n=this.coordinates[e];return Array.isArray(n)&&n.splice(t,1,p.default.toCoordinates(r)),this.coordinates[e]=n,this.coordinates=JSON.parse((0,i.default)(this.coordinates)),this}},{key:"toString",value:function(){return""}},{key:"toXMl",value:function(){return""}},{key:"getIGSType",value:function(){return d.IGSGeometryType.multiLineString}},{key:"toOldIGSGeometry",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++){for(var r=[],n=0;n<this.coordinates[t].length;n++)r.push({x:this.coordinates[t][n][0],y:this.coordinates[t][n][1]});e.push({Line:{Arcs:[{Dots:r,ArcID:0}]},GID:t})}return{LinGeom:e}}},{key:"_isValidate",value:function(e,t){var r=this.coordinates.length;if(!(0,f.isNumber)(e)||e<0||e>=r)return!1;var n=this.coordinates[e].length;return!(!(0,f.isNumber)(t)||t<0||t>=n)}},{key:"_cloneCoordinates",value:function(){return JSON.parse((0,i.default)(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,y.calcExtent)(e,t,d.GeometryType.multiLineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"clone",value:function(e){return new t(e.toJSON())}},{key:"fromJSON",value:function(e){return new t(e=(0,f.defaultValue)(e,{}))}}]),t}(h.default);(0,n.default)(m.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={},i=52.35987755982988,o=3.141592653589793,a=6378245,s=.006693421622965943;n.transformlat=function(e,t){var r=2*(e=+e)-100+3*(t=+t)+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return r+=2*(20*Math.sin(6*e*o)+20*Math.sin(2*e*o))/3,(r+=2*(20*Math.sin(t*o)+40*Math.sin(t/3*o))/3)+2*(160*Math.sin(t/12*o)+320*Math.sin(t*o/30))/3},n.transformlng=function(e,t){var r=300+(e=+e)+2*(t=+t)+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return r+=2*(20*Math.sin(6*e*o)+20*Math.sin(2*e*o))/3,(r+=2*(20*Math.sin(e*o)+40*Math.sin(e/3*o))/3)+2*(150*Math.sin(e/12*o)+300*Math.sin(e/30*o))/3},n.out_of_china=function(e,t){return t=+t,!((e=+e)>73.66&&e<135.05&&t>3.86&&t<53.55)},n.bd09togcj02=function(e,t){var r=(e=+e)-.0065,n=(t=+t)-.006,o=Math.sqrt(r*r+n*n)-2e-5*Math.sin(n*i),a=Math.atan2(n,r)-3e-6*Math.cos(r*i);return[o*Math.cos(a),o*Math.sin(a)]},n.bd09towgs84=function(e,t){var r=n.bd09togcj02(e,t);return n.gcj02towgs84(r[0],r[1])},n.wgs84tobd09=function(e,t){var r=n.wgs84togcj02(e,t);return n.gcj02tobd09(r[0],r[1])},n.gcj02tobd09=function(e,t){t=+t,e=+e;var r=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*i),n=Math.atan2(t,e)+3e-6*Math.cos(e*i);return[r*Math.cos(n)+.0065,r*Math.sin(n)+.006]},n.wgs84togcj02=function(e,t){var r=[e=+e,t=+t];if(!this.out_of_china(e,t)){var n=this.transformlat(e-105,t-35),i=this.transformlng(e-105,t-35),u=t/180*o,l=Math.sin(u);l=1-s*l*l;var c=Math.sqrt(l);n=180*n/(a*(1-s)/(l*c)*o),r=[e+(i=180*i/(a/c*Math.cos(u)*o)),t+n]}return r},n.gcj02towgs84=function(e,t){var r=[e=+e,t=+t];if(!this.out_of_china(e,t)){var n=this.transformlat(e-105,t-35),i=this.transformlng(e-105,t-35),u=t/180*o,l=Math.sin(u);l=1-s*l*l;var c=Math.sqrt(l);n=180*n/(a*(1-s)/(l*c)*o),r=[2*e-(e+(i=180*i/(a/c*Math.cos(u)*o))),2*t-(t+n)]}return r},t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],i=[75,60,45,30,15,0],o=[[1.410526172116255e-8,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,17337981.2],[-7.435856389565537e-9,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,6856817.37],[-1.981981304930552e-8,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,4482777.06],[3.09191371068437e-9,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,2555164.4],[2.890871144776878e-9,8983055095805407e-21,-3.068298e-8,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],a=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function s(e){e=e||{},this._isWgs84=e.isWgs84}(0,function(e){return e&&e.__esModule?e:{default:e}}(r(11)).default)(s.prototype,{isWgs84:{get:function(){return this._isWgs84},set:function(e){this._isWgs84=e}}}),s.prototype.getDistanceByMC=function(e,t){if(!e||!t)return 0;if(!(e=this.convertMC2LL(e)))return 0;var r=this.toRadians(e.lng),n=this.toRadians(e.lat);if(!(t=this.convertMC2LL(t)))return 0;var i=this.toRadians(t.lng),o=this.toRadians(t.lat);return this.getDistance(r,i,n,o)},s.prototype.getDistanceByLL=function(e,t){if(!e||!t)return 0;e.lng=this.getLoop(e.lng,-180,180),e.lat=this.getRange(e.lat,-74,74),t.lng=this.getLoop(t.lng,-180,180),t.lat=this.getRange(t.lat,-74,74);var r=this.toRadians(e.lng),n=this.toRadians(e.lat),i=this.toRadians(t.lng),o=this.toRadians(t.lat);return this.getDistance(r,i,n,o)},s.prototype.convertMC2LL=function(e){if(!e)return{lng:0,lat:0};var t={};if(this.isWgs84){t.lng=e.lng/20037508.34*180;var r=e.lat/20037508.34*180;return t.lat=180/Math.PI*(2*Math.atan(Math.exp(r*Math.PI/180))-Math.PI/2),{lng:t.lng.toFixed(6),lat:t.lat.toFixed(6)}}Math.abs(e.lng);for(var i=Math.abs(e.lat),a=void 0,s=0;s<n.length;s++)if(i>=n[s]){a=o[s];break}return{lng:(t=this.convertor(e,a)).lng.toFixed(6),lat:t.lat.toFixed(6)}},s.prototype.convertLL2MC=function(e){if(!e)return{lng:0,lat:0};if(e.lng>180||e.lng<-180||e.lat>90||e.lat<-90)return e;if(this.isWgs84){var t={};t.lng=e.lng*Math.PI/180*6378137;var r=e.lat*Math.PI/180;return t.lat=3189068.5*Math.log((1+Math.sin(r))/(1-Math.sin(r))),{lng:parseFloat(t.lng.toFixed(2)),lat:parseFloat(t.lat.toFixed(2))}}e.lng=this.getLoop(e.lng,-180,180),e.lat=this.getRange(e.lat,-74,74),e.lng;for(var n=e.lat,o=void 0,s=0;s<i.length;s++)if(n>=i[s]){o=a[s];break}if(!o)for(var u=0;u<i.length;u++)if(n<=-i[u]){o=a[u];break}var l=this.convertor(e,o);return{lng:parseFloat(l.lng.toFixed(2)),lat:parseFloat(l.lat.toFixed(2))}},s.prototype.convertor=function(e,t){if(!e||!t)return{lng:0,lat:0};var r=t[0]+t[1]*Math.abs(e.lng),n=Math.abs(e.lat)/t[9],i=t[2]+t[3]*n+t[4]*n*n+t[5]*n*n*n+t[6]*n*n*n*n+t[7]*n*n*n*n*n+t[8]*n*n*n*n*n*n;return{lng:r*=e.lng<0?-1:1,lat:i*=e.lat<0?-1:1}},s.prototype.getDistance=function(e,t,r,n){return 6370996.81*Math.acos(Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos(t-e))},s.prototype.toRadians=function(e){return Math.PI*e/180},s.prototype.toDegrees=function(e){return 180*e/Math.PI},s.prototype.getRange=function(e,t,r){return null!==t&&(e=Math.max(e,t)),null!==r&&(e=Math.min(e,r)),e},s.prototype.getLoop=function(e,t,r){for(;e>r;)e-=r-t;for(;e<t;)e+=r-t;return e},s.prototype.lngLatToMercator=function(e){return this.convertLL2MC(e)},s.prototype.lngLatToPoint=function(e){var t=this.convertLL2MC(e);return{x:t.lng,y:t.lat}},s.prototype.mercatorToLngLat=function(e){return this.convertMC2LL(e)},s.prototype.pointToLngLat=function(e){var t={lng:e.x,lat:e.y};return this.convertMC2LL(t)},s.prototype.pointToPixel=function(e,t,r,n){if(!e)return{x:0,y:0};e=this.lngLatToMercator(e);var i=this.getZoomUnits(t);return{x:Math.round((e.lng-r.lng)/i+n.width/2),y:Math.round((r.lat-e.lat)/i+n.height/2)}},s.prototype.pixelToPoint=function(e,t,r,n){if(!e)return{lng:0,lat:0};var i=this.getZoomUnits(t),o={lng:r.lng+i*(e.x-n.width/2),lat:r.lat-i*(e.y-n.height/2)};return this.mercatorToLngLat(o)},s.prototype.getZoomUnits=function(e){return Math.pow(2,18-e)},t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(14)),i=g(r(22)),o=g(r(0)),a=g(r(2)),s=r(1),u=g(r(91)),l=g(r(125)),c=g(r(126)),h=r(6),f=r(77),d=r(8),p=r(9),y=g(r(180));function g(e){return e&&e.__esModule?e:{default:e}}var m=function(){function e(t,r){(0,o.default)(this,e),r=(0,s.defaultValue)(r,{}),this.url=t,this.requestInterceptor=(0,s.defaultValue)(r.requestInterceptor,new l.default),this.responseInterceptor=(0,s.defaultValue)(r.responseInterceptor,new c.default),this.requestTimeout=(0,s.defaultValue)(r.requestTimeout,45e3),this.headers=(0,s.defaultValue)(r.headers,{}),this.tokenKey=(0,s.defaultValue)(r.tokenKey,"token"),this.tokenValue=(0,s.defaultValue)(r.tokenValue,void 0),this.tokenAttachType=(0,s.defaultValue)(r.tokenAttachType,h.TokenAttachType.normal)}return(0,a.default)(e,[{key:"destroy",value:function(){this.url=null,this.options=null}},{key:"request",value:function(e){if(e=(0,s.defaultValue)(e,{}),!(0,s.isNull)(e.url))return!(0,s.isNull)(this.requestInterceptor)&&!(0,s.isNull)(this.requestInterceptor.before)&&this.requestInterceptor.before instanceof Function&&(e=this.requestInterceptor.before(e)),(0,s.isNull)(e)?void 0:this._commit(e);s.Log.error("url不存在!")}},{key:"_commit",value:function(e){var t=this;e.url=(0,f.ServiceConfigRequestInterceptors)(y.default,e.url),e.headers=(0,s.defaultValue)(e.headers,{});var r=(0,i.default)(e.headers,this.headers),o={headers:r=(0,i.default)(r,y.default.headers),withCredentials:e.withCredentials,requestTimeout:this.requestTimeout,proxy:e.proxy,tokenKey:this.tokenKey||y.default.tokenKey,tokenValue:this.tokenValue||y.default.tokenValue,tokenAttachType:e.tokenAttachType||this.tokenAttachType};return e.responseType&&(o.responseType=e.responseType),u.default.commit(e.method,e.url,e.data,o).then(function(r){var i=void 0;if(r.text){if("blob"===o.responseType)return r.blob();i=function(){return r.text()}}else i=function(){return r.json()};return 200===r.status?new n.default(function(r){i().then(function(i){var o=void 0;if((0,s.isNull)(i))o={succeed:!0,msg:"服务器没有返回信息",data:void 0};else{var a=void 0;if("string"==typeof i)if(i.indexOf("<?xml")>-1)if(i.indexOf("OGC:WMS")>-1||i.indexOf("WMS_Capabilities")>-1||i.indexOf("<Keyword>WMS</Keyword>")>-1){var u="1.1.1";i.indexOf("1.3.0")>-1&&(u="1.3.0");var l=(0,f.getDoc)(i);a=(0,f.getWMSInfoFromXML)(l,u,e.url)}else if(i.indexOf("WMTS")>-1||i.indexOf("wmts/1.0")>-1){var c=(0,f.getDoc)(i);a=(0,f.getWMTSInfoFromXML)(c)}else if(i.indexOf("wfs:WFS_Capabilities")>-1){var h=(0,f.getDoc)(i);a=(0,f.getWFSInfoFromXML)(h)}else if(i.indexOf("wfs:FeatureCollection")>-1){var g=(0,f.getDoc)(i),m=e.url.toLowerCase(),v="2.0.0";m.indexOf("version=1.0.0")>-1?v="1.0.0":m.indexOf("version=1.1.0")>-1?v="1.1.0":m.indexOf("version=2.0.0")>-1&&(v="1.1.0"),a=(0,f.getWFSFeature)(g,v)}else i.indexOf("<svg")>-1&&(a=i);else{if(i.indexOf("html>")>-1)return!(0,s.isNull)(t.responseInterceptor)&&!(0,s.isNull)(t.responseInterceptor.failure)&&t.responseInterceptor.failure instanceof Function&&t.responseInterceptor.failure({succeed:!1,msg:"服务器不支持"+e.method+"请求或其他错误",data:void 0,errorType:"unKnownError"}),!(0,s.isNull)(e.failure)&&e.failure instanceof Function&&e.failure({succeed:!1,msg:"服务器不支持"+e.method+"请求或其他错误",data:void 0,errorType:"unKnownError"}),n.default.reject({succeed:!1,msg:"服务器不支持"+e.method+"请求或其他错误",data:void 0,errorType:"unKnownError"});if((a=JSON.parse(i))instanceof Object&&(e.url.indexOf("/igs/rest/mrfs/layer/query")>-1||e.url.indexOf("/igs/rest/mrfs/docs/")>-1)){var _=(0,f.fromQueryResult)(a);delete a.SFEleArray,a.featureSets=_;var S=[];if(_.length>1)for(var x=0;x<_.length;x++)S.push(a[String(x)]),delete a[String(x)];else a.AttStruct.TotalCount=a.TotalCount,S.push(a.AttStruct),delete a.AttStruct,delete a.TotalCount;a.featureInfos=S,(e.url.indexOf("/igs/rest/mrfs/docs/")>-1||e.url.indexOf("/igs/rest/mrfs/layer/")>-1)&&(_.length>0?a.featureSet=_[0]:a.featureSet=new d.FeatureSet)}}if(a instanceof Object){if(a.hasOwnProperty("features")&&a.features instanceof Array){var b=void 0,w=!1;a.spatialReference?b=new p.SpatialReference(a.spatialReference):e.extensionOptions&&e.extensionOptions.outSrs?b=new p.SpatialReference(e.extensionOptions.outSrs):(w=!0,b=p.SpatialReference.fromJSON(a.spatialReference));var k=!1;/(igs)\/rest\/services\/.*\/WFSServer/.test(e.url)&&4326===b.wkid&&w&&(k=!0),a.featureSet=d.FeatureSet.fromArray(a.features,new d.FeatureSet({spatialReference:b}),{reverse:k})}else if(a.hasOwnProperty("layers")&&e.url.indexOf("igs/rest/mrcs/tiles")<0)for(var M=0;M<a.layers.length;M++){var E;E=e.extensionOptions&&e.extensionOptions.outSrs?new p.SpatialReference(e.extensionOptions.outSrs):p.SpatialReference.fromJSON(a.layers[M].spatialReference),a.layers[M].featureSet=d.FeatureSet.fromArray(a.layers[M].features,new d.FeatureSet({spatialReference:E}))}else if(e.url.indexOf("/MapServer/query")>-1||e.url.indexOf("/SceneServer/query")>-1){if(a.layers&&a.layers instanceof Array){var I=new p.SpatialReference("EPSG:4326");a.spatialReference&&(I=new p.SpatialReference({wkid:a.spatialReference.wkid,wkt:a.spatialReference.wkt}));for(var T=a.layers,L=0;L<T.length;L++)T[L].features&&(T[L].featureSet=d.FeatureSet.fromArray(T[L].features,new d.FeatureSet({spatialReference:I})),delete T[L].features)}}else e.url.indexOf("/MapServer/layers?")>-1&&function e(t){for(var r=0;r<t.length;r++)t[r].id=t[r].index,t[r].children&&t[r].children instanceof Array&&e(t[r].children)}(a.layers);o={succeed:!0,msg:"请求成功",data:a}}else o={succeed:!0,msg:a,data:a}}o=(0,f.ServiceConfigResponseInterceptors)(y.default,e.url,o),!(0,s.isNull)(t.responseInterceptor)&&!(0,s.isNull)(t.responseInterceptor.success)&&t.responseInterceptor.success instanceof Function&&(o=t.responseInterceptor.success(o)),!(0,s.isNull)(o)&&!(0,s.isNull)(e.success)&&e.success instanceof Function&&e.success(o),r(o)})},function(e){console.log("Fetch返回异常",e)}):new n.default(function(r){i().then(function(n){var i=void 0;if((0,s.isNull)(n))i={succeed:!1,msg:"请求失败,服务器没有返回信息",data:void 0};else{var o=JSON.parse(n);i=o instanceof Object?{succeed:!1,msg:"请求失败",data:o}:{succeed:!1,msg:o,data:void 0}}!(0,s.isNull)(t.responseInterceptor)&&!(0,s.isNull)(t.responseInterceptor.failure)&&t.responseInterceptor.failure instanceof Function&&(i=t.responseInterceptor.failure(i)),!(0,s.isNull)(i)&&!(0,s.isNull)(e.failure)&&e.failure instanceof Function&&e.failure(i),r(i)})},function(e){console.error("Fetch返回异常",e)})}).catch(function(r){var n={succeed:!1,msg:"请求失败",data:r};t._resolveFailure(n,e.failure,void 0)})}}]),e}();t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={tokenKey:"token",tokenValue:void 0,headers:{},request:{interceptors:[]}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CAttStruct=t.CAttDataRow=t.ArcGISVectorTileServer=t.ArcGISFeatureServer=t.ArcGISGeometryServer=t.ThemesInfo=t.ThemeServer=t.ItemValue=t.FolderInfoAttribute=t.FolderInfo=t.ExpInfo=t.CUniqueThemeInfo=t.CUniqueTheme=t.CThemeInfo=t.CTheme=t.CSimpleTheme=t.CRegInfo=t.CRangeThemeInfo=t.CRangeTheme=t.CRandomTheme=t.CPntInfo=t.CMultiClassTheme=t.CLinInfo=t.CGraduatedSymbolTheme=t.CFourColorTheme=t.CDotDensityTheme=t.CChartType=t.CChartThemeRepresentInfo=t.CChartThemeInfo=t.CChartTheme=t.CChartLabelFormat=t.CAnnInfo=t.CAllOtherDataItemInfoSource=t.ArcGISMapServer=t.WorkFlowServer=t.WFSServer=t.WMTSServer=t.WMSServer=t.SceneServer=t.ResourceServer=t.PlotServer=t.VectorTileServer=t.TileServer=t.RootServer=t.SecurityServer=t.TerrainServer=t.PoiServer=t.Cesium3DTilesServer=t.AddressServer=t.GeometryServer=t.ImageServer=t.M3DServer=t.FeatureServer=t.MapServer=void 0;var n=M(r(397)),i=M(r(398)),o=M(r(399)),a=M(r(400)),s=M(r(401)),u=M(r(402)),l=M(r(403)),c=M(r(404)),h=M(r(182)),f=M(r(405)),d=M(r(406)),p=M(r(407)),y=M(r(408)),g=M(r(409)),m=M(r(410)),v=M(r(411)),_=M(r(127)),S=M(r(92)),x=r(412),b=r(418),w=r(422),k=r(201);function M(e){return e&&e.__esModule?e:{default:e}}t.MapServer=n.default,t.FeatureServer=i.default,t.M3DServer=o.default,t.ImageServer=a.default,t.GeometryServer=s.default,t.AddressServer=u.default,t.Cesium3DTilesServer=l.default,t.PoiServer=c.default,t.TerrainServer=h.default,t.SecurityServer=f.default,t.RootServer=d.default,t.TileServer=p.default,t.VectorTileServer=y.default,t.PlotServer=g.default,t.ResourceServer=m.default,t.SceneServer=v.default,t.WMSServer=x.WMSServer,t.WMTSServer=x.WMTSServer,t.WFSServer=x.WFSServer,t.WorkFlowServer=k.WorkFlowServer,t.ArcGISMapServer=b.ArcGISMapServer,t.CAllOtherDataItemInfoSource=w.CAllOtherDataItemInfoSource,t.CAnnInfo=w.CAnnInfo,t.CChartLabelFormat=w.CChartLabelFormat,t.CChartTheme=w.CChartTheme,t.CChartThemeInfo=w.CChartThemeInfo,t.CChartThemeRepresentInfo=w.CChartThemeRepresentInfo,t.CChartType=w.CChartType,t.CDotDensityTheme=w.CDotDensityTheme,t.CFourColorTheme=w.CFourColorTheme,t.CGraduatedSymbolTheme=w.CGraduatedSymbolTheme,t.CLinInfo=w.CLinInfo,t.CMultiClassTheme=w.CMultiClassTheme,t.CPntInfo=w.CPntInfo,t.CRandomTheme=w.CRandomTheme,t.CRangeTheme=w.CRangeTheme,t.CRangeThemeInfo=w.CRangeThemeInfo,t.CRegInfo=w.CRegInfo,t.CSimpleTheme=w.CSimpleTheme,t.CTheme=w.CTheme,t.CThemeInfo=w.CThemeInfo,t.CUniqueTheme=w.CUniqueTheme,t.CUniqueThemeInfo=w.CUniqueThemeInfo,t.ExpInfo=w.ExpInfo,t.FolderInfo=w.FolderInfo,t.FolderInfoAttribute=w.FolderInfoAttribute,t.ItemValue=w.ItemValue,t.ThemeServer=w.ThemeServer,t.ThemesInfo=w.ThemesInfo,t.ArcGISGeometryServer=b.ArcGISGeometryServer,t.ArcGISFeatureServer=b.ArcGISFeatureServer,t.ArcGISVectorTileServer=b.ArcGISVectorTileServer,t.CAttDataRow=_.default,t.CAttStruct=S.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(3)),i=u(r(0)),o=u(r(2)),a=u(r(4)),s=u(r(5));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"getLayerJSON",value:function(e){return this._queryByParameters(e,{},{},function(e){return e+"/layer.json"})}}]),t}(u(r(13)).default);t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(3)),i=u(r(0)),o=u(r(2)),a=u(r(4)),s=u(r(5));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"queryResourceInfo",value:function(e){return this._querySimpleInfo(e,function(e){return e+"/resources/info"})}},{key:"getStyleList",value:function(e){return this._querySimpleInfo(e,function(e){return e+"/resources/styles"})}},{key:"getStyle",value:function(e){return this._queryByParameters(e,{styleId:{type:"String"}},{},function(e,t){return e+"/resources/styles/"+t.styleId+"?f=json"})}},{key:"getTileMap",value:function(e){return this._querySimpleInfo(e,function(e){return e+"/tilemap"})}}]),t}(u(r(13)).default);t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={DefaultThemeInfo:1,DataItemIntrinsicInfo:2}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.default=function(e){e=(0,n.defaultValue)(e,{}),(0,n.extend)(this,e),this.LibID=void 0!==e.LibID?e.LibID:0,this.Ovprnt=void 0!==e.Ovprnt&&e.Ovprnt,this.Angle=void 0!==e.Ovprnt?e.Ovprnt:0,this.BackClr=void 0!==e.BackClr?e.BackClr:0,this.BackExp=void 0!==e.BackExp?e.BackExp:0,this.Chnt=void 0!==e.Chnt?e.Chnt:0,this.Color=void 0!==e.Color?e.Color:0,this.FontAngle=void 0!==e.FontAngle?e.FontAngle:0,this.Height=void 0!==e.Height?e.Height:0,this.Ifnt=void 0!==e.Ifnt?e.Ifnt:0,this.Ifnx=void 0!==e.Ifnx?e.Ifnx:0,this.IsFilled=void 0!==e.IsFilled&&e.IsFilled,this.IsHzpl=void 0===e.IsHzpl||e.IsHzpl,this.OffsetX=void 0!==e.OffsetX?e.OffsetX:0,this.OffsetY=void 0!==e.OffsetY?e.OffsetY:0,this.Space=void 0!==e.Space?e.Space:0,this.Width=void 0!==e.Width?e.Width:0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={Unknown:0,Value:1,Percent:2}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(4)),a=c(r(5)),s=c(r(31)),u=c(r(188)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.ChartType=void 0!==e.ChartType?e.ChartType:u.default.Bar,r.ChartThemeInfoArr=void 0!==e.ChartThemeInfoArr?e.ChartThemeInfoArr:null,r.RepresentInfo=void 0!==e.RepresentInfo?e.RepresentInfo:null,r.Type="CChartTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={Unknown:0,Bar:1,Bar3D:2,Pie:3,Pie3D:4,Line:5,Line3D:6,Point:7}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(31)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.Expression=void 0!==e.Expression?e.Expression:"",r.Info=void 0!==e.Info?e.Info:null,r.Value=void 0!==e.Value?e.Value:null,r.Type="CDotDensityTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(31)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.ClrInfo=void 0!==e.ClrInfo?e.ClrInfo:[25,57,89,121],r.Type="CFourColorTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(31)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.BaseValue=void 0!==e.BaseValue?e.BaseValue:141e-6,r.DispMinus=void 0!==e.DispMinus&&e.DispMinus,r.DispZero=void 0!==e.DispZero&&e.DispZero,r.Expression=void 0!==e.Expression?e.Expression:null,r.MinusPntInfo=void 0!==e.MinusPntInfo?e.MinusPntInfo:null,r.PlusPntInfo=void 0!==e.PlusPntInfo?e.PlusPntInfo:null,r.ZeroPntInfo=void 0!==e.ZeroPntInfo?e.ZeroPntInfo:null,r.Type="CGraduatedSymbolTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XClsType={SFCls:"SFeatureCls",OCls:"ObjectCls",ACls:"AnnotationCls",GnetCls:"GNetCls",RDS:"RasterDataset",SFClsInfo:"sfcls_new"},t.VectClsType={Unknown:0,SFCls:"SFeatureCls",AnnoCls:"AnnotationCls"},t.FeatureType={Unknown:0,Pnt:1,Lin:2,Reg:3},t.FontShape={Positive:0,LeftOblique:1,RightOblique:2,LeftTowering:3,RightTowering:4},t.LabelLinType={Curved:0,Forward:1,Horizontal:2,Tangent:3},t.LabelRegType={Curved:0,Forward:1,Horizontal:2,Boundray:3,Outside:4},t.LabelPntType={PntAnyDir:0,PntEightDir:1,PntOnFea:2},t.RepeatType={Auto:0,NoRep:1,OnStep:2},t.LabelSpreadType={AutoSpread:0,Centralization:1,Decentralization:2},t.LineConstrain={Left:0,Right:1,Above:2,Below:3,Both:4,NoRes:5},t.EightDirType={East:0,North:1,NorthEast:2,NorthWest:3,South:4,SouthEast:5,SouthWest:6,West:7,NoDir:8},t.ISShowArc={Reg:0,Arc:1,All:2},t.NetAnalyType={UserMode:"UserMode",SysModeCommwayPrefer:"SysModeCommwayPrefer",SysModeHighWayPrefer:"SysModeHighWayPrefer",SysModeMinCost:"SysModeMinCost",SysModeMinDis:"SysModeMinDis",SysModeSysRecommend:"SysModeSysRecommend"},t.NetElemType={Node:1,Edge:2,CNode:3,Chain:4,Center:5,Source:13,Sink:13},t.CLinAdjustType={Adjust:0,NoAdjust:1},t.CLinHeadType={Round:0,Square:1,Butt:2},t.CLinJointType={Round:0,Square:1,Butt:2},t.CLinStyleMakeType={Byrule:0,Bypoint:1},t.CItemType={Unknown:0,UniqueTheme:1,RangeTheme:2},t.MapType={Doc:"mapType",Tile:"tileType"},t.LayerStatusType={Show:"show",Hide:"hide",Include:"include",Exclude:"exclude"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(31)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.DefaultInfo=void 0!==e.DefaultInfo?e.DefaultInfo:null,r.ExpInfoArr=void 0!==e.ExpInfoArr?e.ExpInfoArr:null,r.MultiClassThemeInfoArr=void 0!==e.MultiClassThemeInfoArr?e.MultiClassThemeInfoArr:null,r.GeoInfoType=void 0!==e.GeoInfoType?e.GeoInfoType:null,r.Type="CMultiClassTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(31)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.Type="CRandomTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(4)),a=c(r(5)),s=c(r(31)),u=c(r(184)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t),e=(0,l.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.AllOtherDataItemInfoSource=void 0!==e.AllOtherDataItemInfoSource?e.AllOtherDataItemInfoSource:u.default.DefaultThemeInfo,r.Expression=void 0!==e.Expression?e.Expression:"",r.DefaultInfo=void 0!==e.DefaultInfo?e.DefaultInfo:null,r.RangeThemeInfoArr=void 0!==e.RangeThemeInfoArr?e.RangeThemeInfoArr:null,r.GeoInfoType=void 0!==e.GeoInfoType?e.GeoInfoType:null,r.Type="CRangeTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(4)),a=c(r(5)),s=c(r(31)),u=c(r(78)),l=r(1);function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t),e=(0,l.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.ThemeInfo=void 0!==e.ThemeInfo?e.ThemeInfo:new u.default,r.Type="CSimpleTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(4)),a=l(r(5)),s=l(r(31)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t),e=(0,u.defaultValue)(e,{});var r=(0,o.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.DefaultInfo=void 0!==e.DefaultInfo?e.DefaultInfo:null,r.Expression=void 0!==e.Expression?e.Expression:"",r.UniqueThemeInfoArr=void 0!==e.UniqueThemeInfoArr?e.UniqueThemeInfoArr:null,r.GeoInfoType=void 0!==e.GeoInfoType?e.GeoInfoType:null,r.Type="CUniqueTheme",r}return(0,a.default)(t,e),t}(s.default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){this.name=void 0!==e?e:null,this.attribute=void 0!==t?t:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){this.name=void 0!==e?e:null,this.Value=void 0!==t?t:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){this.LayerName=void 0!==e?e:null,this.ThemeArr=void 0!==t?t:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWorkflow=t.WorkFlowServer=void 0;var n=E(r(16)),i=E(r(433)),o=E(r(434)),a=E(r(435)),s=E(r(436)),u=E(r(437)),l=E(r(438)),c=E(r(439)),h=E(r(440)),f=E(r(441)),d=E(r(442)),p=E(r(443)),y=E(r(444)),g=E(r(445)),m=E(r(446)),v=E(r(447)),_=E(r(448)),S=E(r(449)),x=E(r(450)),b=E(r(451)),w=E(r(452)),k=E(r(453)),M=E(r(454));function E(e){return e&&e.__esModule?e:{default:e}}var I={WorkFlowServer:n.default,WorkFlowServer600227:i.default,WorkFlowServer600228:o.default,WorkFlowServer600229:a.default,WorkFlowServer600230:s.default,WorkFlowServer600231:u.default,WorkFlowServer600232:l.default,WorkFlowServer600233:c.default,WorkFlowServer600235:h.default,WorkFlowServer600237:f.default,WorkFlowServer600238:d.default,WorkFlowServer600239:p.default,WorkFlowServer600307:y.default,WorkFlowServer600308:g.default,WorkFlowServer600309:m.default,WorkFlowServer600314:v.default,WorkFlowServer600334:_.default,WorkFlowServer600336:S.default,WorkFlowServer600340:x.default,WorkFlowServer600354:b.default,WorkFlowServer600368:w.default,WorkFlowServer600369:k.default,WorkFlowServer600370:M.default};t.WorkFlowServer=n.default,t.createWorkflow=function(e){var t=((e||{}).url||"").match(/(workflow)(\/)\d+(\/)(WorkflowServer)/g);if(!t)throw new Error("未识别工作流id");var r=t[0].split("/"),n=void 0;if(Array.isArray(r)&&3===r.length&&(n=r[1]),!n)throw new Error("未识别工作流id "+n);var i=I["WorkFlowServer"+n];if(!i)throw new Error("id为"+n+"的工作流未定义");return new i(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IGSFeatureLayer=t.Scene=t.IGSTileLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=void 0;var n=f(r(455)),i=f(r(209)),o=f(r(484)),a=f(r(210)),s=f(r(485)),u=f(r(486)),l=f(r(129)),c=f(r(211)),h=f(r(487));function f(e){return e&&e.__esModule?e:{default:e}}t.IGSVectorTileLayer=n.default,t.IGSVectorTileSubLayer=i.default,t.IGSMapImageLayer=o.default,t.IGSMapImageSubLayer=a.default,t.IGSSceneLayer=u.default,t.IGSSceneSubLayer=l.default,t.IGSTileLayer=s.default,t.Scene=c.default,t.IGSFeatureLayer=h.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(r(11)),i=v(r(22)),o=v(r(10)),a=v(r(23)),s=v(r(3)),u=v(r(0)),l=v(r(2)),c=v(r(4)),h=v(r(7)),f=v(r(5)),d=r(1),p=v(r(93)),y=v(r(457)),g=v(r(65)),m=r(6);function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e){(0,u.default)(this,t);var r=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return e=(0,d.defaultValue)(e,{}),r.type=m.LayerType.vectorTileSubLayer,r._labelingInfo=(0,d.defaultValue)(e.labelingInfo,[]),r._styleLayers=(0,d.defaultValue)(e.styleLayers,[]),r._visible=(0,d.defaultValue)(e.visible,!0),r._opacity=(0,d.defaultValue)(e.opacity,1),r._renderer=(0,d.defaultValue)(e.renderer,void 0),r._updateStyle(),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"_updateStyle",value:function(){var e=this;this._convertLabelInfoToLabelClass(),this._renderer?this._styleLayers.forEach(function(t){e._updateStyleLayerByRenderer(t),e._updateStyleLayerVisibleBySublayer(t),e._updateStyleLayerOpacityBySublayer(t),e._updateStyleLayerByLabelingInfo(t)}):this._styleLayers.forEach(function(t){e._updateStyleLayerVisibleBySublayer(t),e._updateStyleLayerOpacityBySublayer(t),e._updateStyleLayerByLabelingInfo(t)})}},{key:"_updateStyleLayerVisibleBySublayer",value:function(e){var t=this.layer._getBackupProperties(e.id,"visibility");e.layout.visibility=this.layer.visible&&this.visible?t:"none"}},{key:"_updateStyleLayerOpacityBySublayer",value:function(e){var t=this,r=this.layer._getBackupProperties(e.id,"opacities");(0,a.default)(r).forEach(function(n){e.paint[n]=Number(r[n])*t.opacity*t.layer.opacity})}},{key:"_updateStyleLayerByRenderer",value:function(e){var t=y.default.renderToStyle(this._renderer,e.type,JSON.parse((0,o.default)(e)));if(t){var r=t.paint,n=t.layout;e.paint=(0,i.default)(e.paint,r),e.layout=(0,i.default)(e.layout,n)}}},{key:"_convertLabelInfoToLabelClass",value:function(){for(var e=(0,d.cloneObject)(this._labelingInfo),t=[],r=0;r<e.length;r++)t.push(new p.default(e[r]));this._labelingInfo=t}},{key:"_updateStyleLayerByLabelingInfo",value:function(e){this.layer.setExtendProperties(e.id,"labelingInfo",this._labelingInfo)}},{key:"_fireLayerUpdateEvent",value:function(e,t){e=(0,d.defaultValue)(e,"setStyleLayer"),t=(0,d.defaultValue)(t,[]),this.layer._fireLayerUpdateEvent([{params:t,dataChanged:!0,name:e,operationType:"method"}])}},{key:"toJSON",value:function(){var e=(0,h.default)(t.prototype.__proto__||(0,s.default)(t.prototype),"toJSON",this).call(this);return e.type=this.type,e.styleLayers=this.styleLayers,e.renderer=this.renderer?this.renderer.toJSON():null,e.labelingInfo=this.labelingInfo.map(function(e){return e.toJSON()}),e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(g.default);(0,n.default)(_.prototype,{styleLayers:{get:function(){return this._styleLayers}},renderer:{get:function(){return this._renderer},set:function(e){var t=this;this._renderer=e,this._styleLayers.forEach(function(e){t._updateStyleLayerByRenderer(e)}),this._fireLayerUpdateEvent()}},visible:{get:function(){return this._visible},set:function(e){var t=this;this._visible=e,this._styleLayers.forEach(function(e){t._updateStyleLayerVisibleBySublayer(e)}),this._fireLayerUpdateEvent()}},opacity:{get:function(){return this._opacity},set:function(e){var t=this;this._opacity=e,this._styleLayers.forEach(function(e){t._updateStyleLayerOpacityBySublayer(e)}),this._fireLayerUpdateEvent()}},labelingInfo:{get:function(){return this._labelingInfo},set:function(e){var t=this;this._labelingInfo=e,this._convertLabelInfoToLabelClass(),this._styleLayers.forEach(function(e){t._updateStyleLayerByLabelingInfo(e)}),this._fireLayerUpdateEvent()}}}),t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMapboxExpression=t.convertColorToRgb=t.convertLineStyle=void 0;var n=r(8);t.convertLineStyle=function(e,t){switch(e){case"dash":case"esriSLSDash":return t?[4,3]:[3,4];case"dash-dot":case"esriSLSDashDot":return t?[4,3,1,3]:[3,4,0,4];case"dot":case"esriSLSDot":return t?[1,3]:[0,4];case"long-dash":case"esriSLSLongDash":return t?[8,3]:[7,4];case"long-dash-dot":case"esriSLSLongDashDot":return t?[8,3,1,3]:[7,4,0,4];case"long-dash-dot-dot":case"esriSLSDashDotDot":return t?[8,3,1,3,1,3]:[7,4,0,4,0,4];case"short-dash":case"esriSLSShortDash":return t?[4,1]:[3,2];case"short-dash-dot":case"esriSLSShortDashDot":return t?[4,1,1,1]:[3,2,0,2];case"short-dash-dot-dot":case"esriSLSShortDashDotDot":return t?[4,1,1,1,1,1]:[3,2,0,2,0,2];case"short-dot":case"esriSLSShortDot":return t?[1,1]:[0,2];case"solid":case"esriSLSSolid":case"none":default:return}},t.convertColorToRgb=function(e){return e instanceof n.Color?e.toCssRGBAString():e},t.isMapboxExpression=function(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&"== != > < >= <= array at boolean case coalesce collator format image in interpolate interpolate-hcl interpolate-lab\nlength let literal match number number-format object step string to-boolean to-color to-number to-string var within".indexOf(e[0])>-1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(7)),u=h(r(5)),l=r(1),c=r(19);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.value=e.value,r.symbol=c.Symbol.fromJSON(e.symbol),r.visible=(0,l.defaultValue)(e.visible,!0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.value=this.value,e.symbol=this.symbol.toJSON(),e.visible=this.visible,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(h(r(206)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.id=(0,o.defaultValue)(t.id,(0,o.getGUID)()),this.label=(0,o.defaultValue)(t.label,""),this.description=(0,o.defaultValue)(t.description,"")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.id=this.id,e.label=this.label,e.description=this.description,e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(7)),u=h(r(5)),l=r(1),c=r(19);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.minValue=e.minValue,r.maxValue=e.maxValue,r.symbol=c.Symbol.fromJSON(e.symbol),r.visible=(0,l.defaultValue)(e.visible,!0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.minValue=this.minValue,e.maxValue=this.maxValue,e.symbol=this.symbol.toJSON(),e.visible=this.visible,e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(h(r(206)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(8);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.ratio=t.ratio,this.color=a.Color.fromColor((0,o.defaultValue)(t.color,{}))}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};return e.ratio=this.ratio,e.color=this.color.toJSON(),e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(3)),i=u(r(0)),o=u(r(2)),a=u(r(4)),s=u(r(5));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(u(r(203)).default);t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(r(11)),i=v(r(14)),o=v(r(3)),a=v(r(0)),s=v(r(2)),u=v(r(4)),l=v(r(7)),c=v(r(5)),h=r(1),f=r(9),d=r(15),p=r(44),y=r(202),g=r(66),m=r(8);function v(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));if(r.url=(0,h.defaultValue)(e.url,""),r.name=(0,h.defaultValue)(e.name,""),r.type=(0,h.defaultValue)(e.type,""),r.fields=(0,h.defaultValue)(e.fields,[]),r.geomType=(0,h.defaultValue)(e.geomType||e.GeomType,""),r.maxScale=(0,h.defaultValue)(e.maxScale,0),r.minScale=(0,h.defaultValue)(e.minScale,0),e.range?r.extent=new f.Extent({xmin:e.range.xmin,ymin:e.range.ymin,xmax:e.range.xmax,ymax:e.range.ymax}):r.extent=new f.Extent({xmin:-180,ymin:-90,xmax:180,ymax:90}),r.spatialReference=e.spatialReference?new f.SpatialReference(e.spatialReference):new f.SpatialReference({wkid:4326}),r.supportedMethods=(0,h.defaultValue)(e.supportedMethods,[]),r.systemLibGuid=(0,h.defaultValue)(e.systemLibGuid,void 0),r.systemLibName=(0,h.defaultValue)(e.systemLibName,void 0),r.id=(0,h.defaultValue)(e.id,e.LayerIndex||e.index),void 0!==r.id&&null!==r.id&&""!==r.id||(r.id=(0,h.getGUID)()),r.index=(0,h.defaultValue)(e.index,void 0),r._renderer=e.renderer?g.BaseRenderer.fromJSON(e.renderer):void 0,r._definitionExpression=(0,h.defaultValue)(e.definitionExpression,void 0),r._definitionExpressionChanged=(0,h.defaultValue)(e.definitionExpressionChanged,!1),r.geometryFilter=(0,h.defaultValue)(e.geometryFilter,void 0),e.sublayers&&Array.isArray(e.sublayers)){for(var n=new m.Collection,i=0;i<e.sublayers.length;i++){var s=e.sublayers[i];s.layer=r,n.add(new t(s))}r.sublayers=n}return r}return(0,c.default)(t,e),(0,s.default)(t,[{key:"toJSON",value:function(){var e=(0,l.default)(t.prototype.__proto__||(0,o.default)(t.prototype),"toJSON",this).call(this);return e.url=this.url,e.name=this.name,e.type=this.type,e.fields=this.fields,e.geomType=this.geomType,e.maxScale=this.maxScale,e.minScale=this.minScale,e.extent=this.extent.toJSON(),e.spatialReference=this.spatialReference.toJSON(),e.supportedMethods=this.supportedMethods,e.systemLibGuid=this.systemLibGuid,e.systemLibName=this.systemLibName,e.index=this.index,e.renderer=this._renderer?this._renderer.toJSON():void 0,e}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"load",value:function(){if(this.layer&&this.layer._mapServer){var e=this;return this.layer._mapServer.queryLayerInfo({layerId:this.id}).then(function(t){var r=t.data;return r&&(r.drawingInfo&&r.drawingInfo.renderer&&(e._renderer=(0,p.formatIGSRenderer)(r.drawingInfo.renderer)),e.fields=r.fields,e.geomType=r.geomType,e.index=r.index,e.id=r.index,e.maxScale=r.maxScale,e.minScale=r.minScale,e.name=r.name,e.extent=new f.Extent({xmin:r.range.xmin,ymin:r.range.ymin,xmax:r.range.xmax,ymax:r.range.ymax}),e.spatialReference=r.spatialReference?new f.SpatialReference(r.spatialReference):new f.SpatialReference({wkid:4326}),e.systemLibGuid=r.systemLibGuid,e.systemLibName=r.systemLibName,e.type=r.type,e.url=r.url),new i.default(function(t){t(e)})})}}},{key:"_getSourceLayer",value:function(){for(var e=this.layer;e&&!(e instanceof y.IGSMapImageLayer);)e=e.layer;return e instanceof y.IGSMapImageLayer?e:null}}]),t}(d.SubLayer);(0,n.default)(_.prototype,{renderer:{get:function(){return this._renderer},set:function(e){e instanceof g.BaseRenderer?this._renderer=e:this._renderer=g.BaseRenderer.fromJSON(e);var t=this._getSourceLayer();t&&t.refresh()}},definitionExpression:{get:function(){return this._definitionExpression},set:function(e){if(e){this._definitionExpressionChanged=!0,this._definitionExpression=e;var t=this._getSourceLayer();t&&t.refresh()}}},visible:{get:function(){return this._visible},set:function(e){this._visible=e;var t=this._getSourceLayer();t&&t.refresh()}}}),t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(11)),i=h(r(0)),o=h(r(2)),a=r(1),s=r(9),u=h(r(129)),l=r(8),c=r(6);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(t){(0,i.default)(this,e),t=(0,a.defaultValue)(t,{}),this.sceneIndex=(0,a.defaultValue)(t.sceneIndex,0),this.sceneName=(0,a.defaultValue)(t.sceneName,void 0),this.sceneMode=(0,a.defaultValue)(t.sceneMode,void 0),this.sceneRange=(0,a.defaultValue)(new s.Extent({xmin:t.sceneRange.xMin,ymin:t.sceneRange.yMin,xmax:t.sceneRange.xMax,ymax:t.sceneRange.yMax,zmin:t.sceneRange.zMin,zmax:t.sceneRange.zMax}),void 0),this.sublayers=(0,a.defaultValue)(t.sublayers,new l.Collection),this.layer=(0,a.defaultValue)(t.layer,void 0),this.extendedProps=(0,a.defaultValue)(t.extendedProps,void 0),this._allSublayers=new l.Collection,this._initAllSubLayers(this.sublayers)}return(0,o.default)(e,[{key:"findSublayerByGDBP",value:function(e){return this.allSublayers.find(function(t){return t.url===e})}},{key:"findSublayerById",value:function(e){return this.allSublayers.find(function(t){return String(t.id)===String(e)})}},{key:"toJSON",value:function(){for(var e=[],t=0;t<this.sublayers.length;t++)e.push((0,a.toJSON)(this.sublayers[t],u.default));return{sceneIndex:this.sceneIndex,sceneName:this.sceneName,sceneMode:this.sceneMode,sceneRange:(0,a.toJSON)(this.sceneRange,s.Extent),extendedProps:this.extendedProps,sublayers:e}}},{key:"_initAllSubLayers",value:function(e){var t=this;e.forEach(function(e){e.type!==c.SceneSubLayerType.groupLayer3D?t._allSublayers.add(e):e.sublayers.items.length>0&&t._initAllSubLayers(e.sublayers)})}}]),e}();(0,n.default)(f.prototype,{allSublayers:{get:function(){return this._allSublayers}}}),t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(11)),i=h(r(3)),o=h(r(0)),a=h(r(2)),s=h(r(4)),u=h(r(5)),l=r(1),c=r(9);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.url=(0,l.defaultValue)(e.url,""),r.name=(0,l.defaultValue)(e.name,""),r.type=(0,l.defaultValue)(e.type,""),r.fields=(0,l.defaultValue)(e.fields,[]),r.geomType=(0,l.defaultValue)(e.geomType||e.GeomType,""),r.maxScale=(0,l.defaultValue)(e.maxScale,0),r.minScale=(0,l.defaultValue)(e.minScale,0),e.range?r.extent=new c.Extent({xmin:e.range.xmin,ymin:e.range.ymin,xmax:e.range.xmax,ymax:e.range.ymax}):r.extent=new c.Extent({xmin:-180,ymin:-90,xmax:180,ymax:90}),r.spatialReference=(0,l.defaultValue)(e.spatialReference,void 0),r.supportedMethods=(0,l.defaultValue)(e.supportedMethods,[]),r.systemLibGuid=(0,l.defaultValue)(e.systemLibGuid,void 0),r.systemLibName=(0,l.defaultValue)(e.systemLibName,void 0),r.id=e.id,r.index=(0,l.defaultValue)(e.index,void 0),r.moveIndex=(0,l.defaultValue)(e.moveIndex,void 0),r._renderer=(0,l.defaultValue)(e.renderer,void 0),r.layer=(0,l.defaultValue)(e.layer,void 0),r}return(0,u.default)(t,e),(0,a.default)(t,null,[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(r(15).SubLayer);(0,n.default)(f.prototype,{renderer:{get:function(){return this._renderer},set:function(e){this._renderer=e,this.layer.setSubLayer(this)}}}),t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(3)),i=y(r(0)),o=y(r(2)),a=y(r(4)),s=y(r(7)),u=y(r(5)),l=r(15),c=r(8),h=r(1),f=r(9),d=y(r(54)),p=y(r(67));function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));if(e=(0,h.defaultValue)(e,{}),r.description="IGS WMTS子图层",r.imageFormat=(0,h.defaultValue)(e.imageFormat,"image/png"),r.identifier=(0,h.defaultValue)(e.identifier,""),r.title=(0,h.defaultValue)(e.title,""),r.imageFormats=(0,h.defaultValue)(e.imageFormats,void 0),r.styleId=(0,h.defaultValue)(e.styleId,void 0),r.styles=(0,h.defaultValue)(e.styles,void 0),r.tileMatrixSets=(0,h.defaultValue)(e.tileMatrixSets,void 0),r.tileMatrixSets&&r.tileMatrixSets instanceof Array)for(var o=0;o<r.tileMatrixSets.length;o++)r.tileMatrixSets[o]instanceof c.TileMatrixSet||(r.tileMatrixSets[o]=c.TileMatrixSet.fromJSON(r.tileMatrixSets[o]),!r.tileMatrixSets[o].tileInfo||r.tileMatrixSets[o].tileInfo instanceof p.default||(r.tileMatrixSets[o].tileInfo=p.default.fromJSON(r.tileMatrixSets[o].tileInfo)));r.tileMatrixSetId=(0,h.defaultValue)(e.tileMatrixSetId,void 0),r.tileMatrixSet=(0,h.defaultValue)(e.tileMatrixSet,void 0),r.extent=(0,h.defaultValue)(e.extent,void 0),r.resourceURLTemplates=(0,h.defaultValue)(e.resourceURLTemplates,void 0);for(var s=0;s<r.tileMatrixSets.length;s++)r.tileMatrixSets[s].id===r.tileMatrixSetId&&(r.spatialReference=f.SpatialReference.fromJSON(r.tileMatrixSets[s].tileInfo.spatialReference));return r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);e.description=this.description,e.imageFormat=this.imageFormat,e.identifier=this.identifier,e.title=this.title,e.imageFormats=this.imageFormats,e.styleId=this.styleId,e.tileMatrixSets=this.tileMatrixSets,e.tileMatrixSetId=this.tileMatrixSetId,e.tileMatrixSet=(0,h.toJSON)(this.tileMatrixSet,c.TileMatrixSet),e.extent=this.extent instanceof d.default?this.extent.toJSON():this.extent,e.resourceURLTemplates=this.resourceURLTemplates,e.spatialReference=this.spatialReference instanceof f.SpatialReference?this.spatialReference.toJSON():this.spatialReference;var r=[];if(this.styles)for(var i=0;i<this.styles.length;i++)r.push(this.styles[i]instanceof c.WMTSStyle?this.styles[i].toJSON():this.styles[i]);return e.styles=r,e}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(l.Layer);g.fromJSON=function(e){return e=(0,h.defaultValue)(e,{}),new g(e)},t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(7)),u=f(r(5)),l=r(1),c=f(r(65)),h=r(9);function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.name=(0,l.defaultValue)(e.name,void 0),r.description=(0,l.defaultValue)(e.abstract,void 0),r.queryable=(0,l.defaultValue)(e.queryable,!0),r.spatialReferences=(0,l.defaultValue)(e.spatialReferences,[]),r.spatialReference=(0,l.defaultValue)(e.spatialReference,void 0),r.extent=(0,l.defaultValue)(e.extent,void 0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);e.spatialReference=(0,l.toJSON)(this.spatialReference,h.SpatialReference),e.name=this.name,e.extent=(0,l.toJSON)(this.extent,h.Extent);for(var r=[],i=0;i<this.spatialReferences.length;i++)r.push((0,l.toJSON)(this.spatialReferences[i],h.SpatialReference));return e.spatialReferences=r,e}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}(c.default);t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(11)),i=m(r(3)),o=m(r(0)),a=m(r(2)),s=m(r(4)),u=m(r(5)),l=r(8),c=r(6),h=r(15),f=r(1),d=r(35),p=r(40),y=(r(9),r(90)),g=r(128);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,o.default)(this,t),e=(0,f.defaultValue)(e,{});var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this));return r._id=(0,f.defaultValue)(e.id,(0,f.getGUID)()),r._basemap=(0,f.defaultValue)(e.basemap,void 0),r.groupLayer=new d.GroupLayer({layers:e.layers,copyright:""}),r.groupLayer.setMap(r),r.layers=r.groupLayer.layers,r.allLayers=new l.CollectionFlattener({getCollections:function(){return r._basemap&&r._basemap.baseLayers?[r._basemap.baseLayers,r.groupLayer.layers]:[r.groupLayer.layers]},getChildrenFunction:function(e){return e.layers}}),r._spatialReference=null,r._fullExtent=null,r._waitLoadStorage=[],r._isInitLayersLoaded=!1,r._initHandlers(),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"toJSON",value:function(){for(var e={layers:[]},t=0;t<this.layers.items.length;t++)e.layers.push((0,f.toJSON)(this.layers.items[t],h.Layer));return e.exportTime=(new Date).toISOString(),e}},{key:"clone",value:function(){return(0,f.cloneObject)(this)}},{key:"add",value:function(e,t){if(e){var r=e instanceof h.Layer?e:h.Layer.fromJSON(e);this._isValidateLayers([r]),this.groupLayer.add(e,t)}}},{key:"addMany",value:function(e,t){if(e&&Array.isArray(e)){var r=e.map(function(e){return e instanceof h.Layer?e:h.Layer.fromJSON(e)});this._isValidateLayers(r),this.groupLayer.addMany(e,t)}}},{key:"remove",value:function(e){e&&this.groupLayer.remove(e)}},{key:"removeMany",value:function(e){e&&Array.isArray(e)&&this.groupLayer.removeMany(e)}},{key:"removeAll",value:function(){this.groupLayer.removeAll()}},{key:"destroy",value:function(){this.removeAll(),this._removeHandlers()}},{key:"reorder",value:function(e,t){this.groupLayer.reorder(e,t)}},{key:"findLayerById",value:function(e){return this.groupLayer.findLayerById(e)}},{key:"dispatchEvent",value:function(e,t,r){return this.fire(e,t,r),this}},{key:"getFullExtent",value:function(){return this._getLayersExtent(this.allLayers)}},{key:"_isValidateLayers",value:function(e){this.groupLayer._isValidateLayers(e)}},{key:"_initHandlers",value:function(){this._initBasemapHandlers(),this.groupLayer.on(c.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_removeHandlers",value:function(){this.groupLayer.off(c.MapEventType.layerChange,this._processGroupLayerChange,this),this._basemap&&this._basemap._baseGroupLayer.off(c.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_initBasemap",value:function(){this._basemap&&(this._basemap.baseLayers&&this.allLayers._addCollection(this._basemap.baseLayers,0),this._initBasemapHandlers(),this.basemap._baseGroupLayer.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({added:this._basemap._baseGroupLayer.layers.items.map(function(e){return e}),path:[this._basemap._baseGroupLayer]})),this.fire(c.MapEventType.basemapChange,new p.BasemapChangeEvent({basemap:this._basemap,detail:[{action:"basemap-create"}]})))}},{key:"_initBasemapHandlers",value:function(){this._basemap&&this._basemap._baseGroupLayer.on(c.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_processGroupLayerChange",value:function(e){var t=e.added,r=e.moved,n=e.removed,i=e.sourceTarget,o=e.path;this._dispatchOldMapEvent(e),this.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({type:c.MapEventType.layerChange,sourceTarget:i,removed:n,path:o,moved:r,added:t})),t.length>0&&(this._waitLoadStorage.push(e),this._triggerLayersAddToView()),0===n.length&&0===t.length&&0===r.length?this._waitLoadStorage=this._waitLoadStorage.filter(function(e){return e.sourceTarget!==i}):n.length>0&&(this._waitLoadStorage.forEach(function(e){e&&e.sourceTarget===i&&(e.added=e.added.filter(function(e){return!n.some(function(t){return t&&e&&t.id===e.id})}))}),this._waitLoadStorage=this._waitLoadStorage.filter(function(e){return e&&e.added&&e.added.length>0}))}},{key:"_triggerLayersAddToView",value:function(){this._isInitLayersLoaded?this._processLoadStorage():(this._cacheProcessLoadStorage||(this._cacheProcessLoadStorage=(0,y.debouncePromise)(this._processLoadStorage,10).bind(this)),this._cacheProcessLoadStorage())}},{key:"_processLoadStorage",value:function(){var e=this;if(0!==this._waitLoadStorage.length){var t=this._waitLoadStorage.map(function(e){var t=e.sourceTarget,r=e.added.filter(function(e){return e});return t.load().then(function(){return{added:r,sourceTarget:t}})});(0,y.allSettled)(t).then(function(t){if(t&&Array.isArray(t)){var r=[];t.forEach(function(e){var t=e.value,n=t.added.filter(function(e){return e&&e.type!==c.LayerType.unknown});n.length>0&&r.push({added:n,sourceTarget:t.sourceTarget})}),r.length>0&&(e._isInitLayersLoaded=!0,e.fire(c.MapEventType.layerLoaded,new p.LayerLoadedEvent({addDetail:r})))}}),this._waitLoadStorage=[]}}},{key:"_dispatchOldMapEvent",value:function(e){var t=e.added,r=e.removed,n=e.sourceTarget;if(n===this.groupLayer&&(t&&Array.isArray(t)&&t.length>0&&(1===t.length?this.dispatchEvent(c.MapEventType.layerAdd,{type:c.MapEventType.layerAdd,layer:t[0]}):this.dispatchEvent(c.MapEventType.layerAddMany,{type:c.MapEventType.layerAddMany,layers:t})),Array.isArray(r))){var i=n.layers;i&&i.items&&0===i.items.length&&0===r.length?this.dispatchEvent(c.MapEventType.layerRemoveAll,{type:c.MapEventType.layerRemoveAll,layers:r}):1===r.length?this.dispatchEvent(c.MapEventType.layerRemove,{type:c.MapEventType.layerRemove,layer:r[0]}):r.length>1&&this.dispatchEvent(c.MapEventType.layerRemoveMany,{type:c.MapEventType.layerRemoveMany,layers:r})}}},{key:"_loadLayers",value:function(){return this._basemap&&this._basemap._baseGroupLayer.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({added:this._basemap._baseGroupLayer.layers.items.map(function(e){return e}),path:[this._basemap._baseGroupLayer]})),this.groupLayer&&this.groupLayer.fire(c.MapEventType.layerChange,new p.LayerChangeEvent({added:this.groupLayer.layers.items.map(function(e){return e}),path:[this.groupLayer]})),this}},{key:"_setSpatialReference",value:function(e){this._spatialReference=e}},{key:"_getLayersExtent",value:function(e){var t=(0,g.getLayersExtent)(e,this._spatialReference);return this._fullExtent=t,t}}],[{key:"fromJSON",value:function(e){e=(0,f.defaultValue)(e,{});for(var r=(0,f.defaultValue)(e.layers,[]),n=new t,i=0;i<r.length;i++)n.add(h.Layer.fromJSON(r[i]));return n}}]),t}(l.Evented);(0,n.default)(v.prototype,{basemap:{get:function(){return this._basemap},set:function(e){this._basemap?e?this._basemap._setBasemap(e,this):(this._basemap._setBasemap(e),this._basemap=null):e?(this._basemap=e,this._basemap._map=this,this._initBasemap()):this._basemap=null}},spatialReference:{get:function(){return this._spatialReference},set:function(){}},fullExtent:{get:function(){return this._fullExtent},set:function(){}}}),t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(7)),u=l(r(5));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r._initInstance(e),r._initHandlers(),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"_initInstance",value:function(e){}},{key:"_initHandlers",value:function(){this._layerChangeAction=this._layerChangeAction.bind(this),this.layer.on("set",this._layerChangeAction)}},{key:"_removeHandlers",value:function(){this.layer.off("set",this._layerChangeAction)}},{key:"_layerChangeAction",value:function(e){"renderer"===e.eventData.key&&this._rendererChangeAction(e)}},{key:"_rendererChangeAction",value:function(e){}},{key:"onRemove",value:function(e){(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"onRemove",this).call(this,e),this._removeHandlers()}}]),t}(l(r(81)).default);t.default=c},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _stringify=__webpack_require__(10),_stringify2=_interopRequireDefault(_stringify),_isNan=__webpack_require__(517),_isNan2=_interopRequireDefault(_isNan),_index=__webpack_require__(97),_util=__webpack_require__(1),_symbol=__webpack_require__(19),_VisualVariableType=__webpack_require__(51),_VisualVariableType2=_interopRequireDefault(_VisualVariableType);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parseExpression(feature,expression){if(!expression)return"";var excuteStr=expression.replace(/\$feature/g,"feature.attributes");try{var v=eval(excuteStr);return v}catch(e){_index.Log.info("字段表达式输入值非法")}return""}function parseFieldAndExpression(e,t,r){var n=(e.attributes||{})[t];return(0,_util.defined)(n)?n:parseExpression(e,r)}function randomColor(){return"rgba("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+",1)"}function calcSpaceRatio(e,t,r){var n=r-t;return((0,_isNan2.default)(n)||n<=0)&&_index.Log.error("传入的视觉变量不合法"),e<=t?0:e>r?1:(e-t)/n}function calcGradientInStops(e,t,r){if(Array.isArray(t)&&!(t.length<=0)){var n=t.sort(function(e,t){return e.value-t.value});if(1===n.length)return r(t[0],t[0],1);var i=n[0],o=n[n.length-1];if(e<i.value)return r(i,i,1);if(e>=o.value)return r(o,o,1);for(var a=1;a<n.length;a++){var s=n[a-1],u=n[a];if(e>=s.value&&e<=u.value)return r(s,u,calcSpaceRatio(e,s.value,u.value))}}}function updateFeatureSymbol(e,t,r,n){if(e&&e.symbol&&t){var i=!(0,_util.defined)(r)||r;e.visible!==i&&(e.visible=i);var o=e.symbol.toJSON(),a=t.toJSON();if(o!==a&&(e.symbol=a),n&&Array.isArray(n)&&!(n.length<=0))for(var s=e.symbol instanceof _symbol.Symbol?e.symbol.toJSON():(0,_stringify2.default)(e.symbol),u=0;u<n.length;u++){var l=n[u],c=l.field,h=l.type,f=parseFieldAndExpression(e,c,l.valueExpression);if(f=parseFloat(f),!(0,_isNan2.default)(f)){switch(h){case _VisualVariableType2.default.color:var d=calcGradientInStops(f,l.stops,function(e,t,r){var n=_index.Color.fromColor(e.color),i=_index.Color.fromColor(t.color),o=parseInt(n.red+(i.red-n.red)*r),a=parseInt(n.green+(i.green-n.green)*r),s=parseInt(n.blue+(i.blue-n.blue)*r),u=parseFloat(n.alpha+(i.alpha-n.alpha)*r);return new _index.Color(o,a,s,u)});(0,_util.defined)(d)&&(s.color=d);break;case _VisualVariableType2.default.size:var p=l.stops,y=l.maxDataValue,g=l.minDataValue,m=l.maxSize,v=l.minSize,_=p;(0,_util.isNumber)(y)&&(0,_util.isNumber)(g)&&(0,_util.isNumber)(m)&&(0,_util.isNumber)(v)&&(_=[{size:v,value:g},{size:m,value:y}]);var S=calcGradientInStops(f,_,function(e,t,r){var n=e.size,i=t.size;return parseInt(n+(i-n)*r)});(0,_util.defined)(S)&&(s.size=S);break;case _VisualVariableType2.default.opacity:var x=calcGradientInStops(f,l.stops,function(e,t,r){var n=e.opacity,i=t.opacity;return parseInt(100*(n+(i-n)*r))/100});if((0,_util.defined)(x)&&s.color){var b=_index.Color.fromColor(s.color);b.alpha=x,s.color=b}}e.symbol=s}}}}function updateRandomFeatureSymbol(e){if(e&&e.geometry)switch(e.geometry.type){case _index.GeometryType.multiPoint:case _index.GeometryType.point:e.symbol=new _symbol.SimpleMarkerSymbol({color:randomColor(),outline:new _symbol.SimpleLineSymbol({color:randomColor()})});break;case _index.GeometryType.multiLineString:case _index.GeometryType.lineString:e.symbol=new _symbol.SimpleLineSymbol({color:randomColor()});break;case _index.GeometryType.polygon:case _index.GeometryType.extent:case _index.GeometryType.circle:case _index.GeometryType.multiPolygon:e.symbol=new _symbol.SimpleFillSymbol({color:randomColor(),outline:new _symbol.SimpleLineSymbol({color:randomColor()})})}}function updateRenderer(e,t){var r=(t=t||{}).visualVariables||[];switch(t.type){case _index.RendererType.simple:var n=t.symbol;e.forEach(function(e){updateFeatureSymbol(e,n,!0,r)});break;case _index.RendererType.uniqueValue:for(var i=t.defaultSymbol||{},o=t.defaultVisible,a=t.uniqueValueInfos||[],s=t.valueExpression||"",u=0;u<e.length;u++){var l=e[u],c=parseFieldAndExpression(l,t.field||"",s);if((0,_util.defined)(c)){for(var h=null,f=null,d=0;d<a.length;d++){var p=a[d];if(p.value===c){h=p.symbol,f=p;break}}if(h){updateFeatureSymbol(l,h,f.visible,r);continue}}updateFeatureSymbol(l,i,o,r)}break;case _index.RendererType.classBreak:for(var y=t.defaultSymbol||{},g=t.classBreakInfos||[],m=t.valueExpression||"",v=t.defaultVisible,_=0;_<e.length;_++){var S=e[_],x=parseFieldAndExpression(S,t.field||"",m);if((0,_util.defined)(x)){for(var b=null,w=null,k=0;k<g.length;k++){var M=g[k],E=M.maxValue;if(x>=M.minValue&&x<E){b=M.symbol,w=M;break}}if(b){updateFeatureSymbol(S,b,w.visible,r);continue}}updateFeatureSymbol(S,y,v,r)}break;case _index.RendererType.random:e.forEach(function(e){updateRandomFeatureSymbol(e)});break;case _index.RendererType.rank:var I=t.symbol,T=t,L=T.minSize,C=T.maxSize,P=T.maxDataValue,N=T.minDataValue,O=T.field,R=T.valueExpression;(!I||L>C||!O&&!R)&&_index.Log.error("等级符号专题图参数异常!");var V=void 0,G=void 0;e.forEach(function(e){var t=parseFieldAndExpression(e,O,R);t=parseFloat(t),(0,_util.defined)(V)||(V=t),(0,_util.defined)(G)||(G=t),V=Math.max(V,t),G=Math.min(G,t)}),(0,_util.defined)(N)&&(0,_util.defined)(P)&&P>N&&(V=P,G=N),V-G==0&&(V+=1e-4),e.forEach(function(e){var t,n=I.clone(),i=parseFieldAndExpression(e,O,R);t=(i=parseFloat(i))<G?0:i>V?1:(i-G)/(V-G);var o=parseInt(t*(C-L)+L);if((0,_util.isNumber)(o))switch(n.type){case _index.SymbolType.simpleMarker:n.size=o;break;case _index.SymbolType.pictureMarker:n.width=o,n.height=o;break;case _index.SymbolType.text:var a=n.font||{};a.size=o,n.font=a}updateFeatureSymbol(e,n,!0,r)});break;default:var A=t.symbol;e.forEach(function(e){updateFeatureSymbol(e,A,!0,r)})}}var RendererUtil={updateRenderer:updateRenderer,parseExpression:parseExpression};exports.default=RendererUtil},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=I(r(11)),i=I(r(22)),o=I(r(3)),a=I(r(0)),s=I(r(2)),u=I(r(4)),l=I(r(5)),c=r(8),h=r(1),f=r(9),d=I(r(36)),p=I(r(37)),y=I(r(55)),g=I(r(522)),m=I(r(219)),v=I(r(220)),_=I(r(221)),S=I(r(524)),x=I(r(525)),b=I(r(526)),w=I(r(222)),k=I(r(223)),M=r(134),E=r(64);function I(e){return e&&e.__esModule?e:{default:e}}var T=function(e){function t(e){(0,a.default)(this,t);var r=(0,u.default)(this,(t.__proto__||(0,o.default)(t)).call(this));if((e=(0,h.defaultValue)(e,{})).view||h.Log.error("options.view is null!",e),r.view=e.view,r._spatialReference=r.view&&r.view._spatialReference?r.view._spatialReference:new f.SpatialReference("EPSG:4326"),r._sketchInnerLayer=new E.GraphicsLayer,r.layer=(0,h.defaultValue)(e.layer,void 0),r._layer=r.layer||r._sketchInnerLayer,r.sketchStyle=(0,h.defaultValue)(e.sketchStyle,new d.default),r._editable=(0,h.defaultValue)(e.editable,!0),r.isSimple=(0,h.defaultValue)(e.isSimple,!1),r.snapOption=(0,h.defaultValue)(e.snapOption,{}),r.snapAndReferGeometries=(0,h.defaultValue)(e.snapAndReferGeometries,[]),r.measureOption=(0,h.defaultValue)(e.measureOption,void 0),r._drawTool=null,r._sketchDataType=null,r._sketchSnappingTool={},r._sketchTopologyTool={},r._undoRedoManager=new x.default,r._editorState={editMode:0,undoRedoManager:r.undoRedoManager,_hitTestEvent:r._hitTestEvent},r._layer){var n=r.view._map.findLayerById(r._layer.id),s=r.view.getInnerLayer(r._layer);n&&s?r._hitTestSketchEvent(r._layer):r._layer.on("layerview-created",function(e){r._layerView=e.layerView,r.view._id===e.view._id&&r._hitTestSketchEvent(r._layer)})}return r._sketchInnerLayer?(r._sketchInnerLayer.on("layerview-created",function(e){r._layerView=e.layerView,r.view._id===e.view._id&&r._hitTestSketchEvent()}),r.view._graphicsLayers.add(r._sketchInnerLayer),r._sketchSnappingTool=new g.default((0,i.default)(r.snapOption,{view:r.view})),r._sketchTopologyTool=new S.default):r._hitTestSketchEvent(),r}return(0,l.default)(t,e),(0,s.default)(t,[{key:"start",value:function(e,t){var r=this._getDrawTool(e,t),n=r.drawTool,i=r.sketchType;r.isGeometry?this._startDrawTool(n,i,e):this._startDrawTool(n,i)}},{key:"startCustomDrawTool",value:function(e,t){var r=new e({view:this.view,sketchStyle:this.sketchStyle,layer:this._layer,sketchInnerLayer:this._sketchInnerLayer,undoRedoManager:this._undoRedoManager,elevationInfo:this.elevationInfo,_sketchEditor:this});this._startDrawTool(r,t)}},{key:"_getDrawTool",value:function(e,t){var r=void 0,n=void 0,i=!1;"number"==typeof e?r=e:e instanceof f.Point?(r=c.SketchDataType.POINT,i=!0):e instanceof f.LineString?(r=c.SketchDataType.POLYLINE,i=!0):e instanceof f.Polygon?(r=c.SketchDataType.POLYGON,i=!0):e instanceof f.Circle?(r=c.SketchDataType.CIRCLE,i=!0):e instanceof f.Extent&&(r=c.SketchDataType.RECTANGLE,i=!0);var o={view:this.view,sketchStyle:this.sketchStyle,sketchDataType:r,layer:this._layer,sketchInnerLayer:this._sketchInnerLayer,undoRedoManager:this._undoRedoManager,elevationInfo:this.elevationInfo,_sketchEditor:this,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate};switch(r){case c.SketchDataType.POINT:n=new p.default(o);break;case c.SketchDataType.POLYLINE:n=new m.default(o);break;case c.SketchDataType.POLYGON:n=new y.default(o);break;case c.SketchDataType.CIRCLE:n=new v.default(o);break;case c.SketchDataType.RECTANGLE:n=new _.default(o);break;case c.SketchDataType.FREEHANDPOLYLINE:n=new w.default(o);break;case c.SketchDataType.FREEHANDPOLYGON:n=new k.default(o)}return{drawTool:n,sketchType:r,isGeometry:i}}},{key:"_startDrawTool",value:function(e,t,r){if(this._drawTool&&(this._drawTool._removeEditGraphics(),this._drawTool._stopAll(),this._drawTools=[],this._undoRedoManager.reset()),this._drawTool=e,this._drawTool){if(this._drawTool._sketchDataType=t,this._sketchEvent(),r){var n=r.clone();if(this.arcType&&(n.extensionOptions?n.extensionOptions.arcType=this.arcType:n.extensionOptions={extensionOptions:{arcType:this.arcType}}),this.isSimple&&!f.GeometryEngine.isSimple(n)){var i=new M.SketchEditorEvent({type:c.SketchEditorEventType.create,toolEventInfo:{type:c.SketchEditorToolEventType.geometryUnsimple},state:c.SketchEditorState.complete});return this._drawTool.fire(c.SketchEditorEventType.create,i,self),h.Log.info("该坐标构成的几何不符合拓扑规范!")}this._addGeometry(n,this._layer),this._bindHit&&this._bindHit(this._drawTool,void 0,this._layer),this._drawTool.state="drawn"}else this._drawTool.start(this._sketchDataType);this._selectEvent(),this._drawEvent()}}},{key:"_addFeatureToSketchEditor",value:function(e,t){var r=e.geometry,n=this._getDrawTool(r),i=n.drawTool,o=n.sketchType;this._drawTool=i,this._drawTool&&(this._drawTool.sketchStage.entityGraphic=e,this._drawTool.state="drawn",this._drawTool._sketchDataType=o,this._selectEvent(),this._drawEvent(),this._sketchEvent(),t&&this._drawTool._addFeatureToLayer(e,this._layer))}},{key:"stop",value:function(){this._drawTool&&(this.view.cursor=this._drawTool.cursorStyle,this._drawTool.cursorStyle=null,this.view._mapActionControl("drag-pan",!0),this._drawTool.stop(),this._drawTool._editMode===c.SketchEditMode.DRAWING&&this._remove(),this._fireCancelDrawEvent())}},{key:"remove",value:function(){this._drawTool&&this._fireRemoveEvent(this._drawTool.sketchStage.entityGraphic),this._remove()}},{key:"_remove",value:function(){this._drawTool&&(this._drawTool.removeDrawTool(),this._drawTool=null)}},{key:"update",value:function(e,t){this._drawTool.updateFeature(e,t)}},{key:"_addGeometry",value:function(e,t){this._drawTool.addFeatureByGeometry(e,void 0,void 0,t)}},{key:"addVertex",value:function(e,t){return this._drawTool.addVertex(e,t)}},{key:"updateVertex",value:function(e,t){return this._drawTool.updateVertex(e,t)}},{key:"removeVertex",value:function(e){return this._drawTool.removeVertex(e)}},{key:"getSketchDataType",value:function(){return this._sketchDataType}},{key:"setSketchStyle",value:function(e){var t=this;if(this.sketchStyle=e.clone(),this._drawTool&&this._drawTool.sketchStage){this._drawTool.sketchStyle=e;var r=this._drawTool.sketchStage;(0,h.isNull)(r.entityGraphic)||("Point"===r.entityGraphic.geometry.type?this._drawTool._sketchDataType===c.SketchDataType.TEXT?r.entityGraphic.symbol=e._textStyle:r.entityGraphic.symbol=e._vertexStyle:"Polyline"===r.entityGraphic.geometry.type?r.entityGraphic.symbol=e._lineStyle:"Polygon"===r.entityGraphic.geometry.type&&(r.entityGraphic.symbol=e._fillStyle)),(0,h.isNull)(r.vertexGraphics)||r.vertexGraphics.forEach(function(t){t.symbol=e._vertexStyle}),(0,h.isNull)(r.midVertexGraphics)||r.midVertexGraphics.forEach(function(t){t.symbol=e._selectVertexStyle}),(0,h.isNull)(r.selectBoxGraphics)||r.selectBoxGraphics.forEach(function(r){t._drawTool._sketchDataType===c.SketchDataType.TEXT?r.symbol=e._selectTextStyle:r.symbol=e._selectBoxStyle}),(0,h.isNull)(r.selectBoxVertexGraphics)||r.selectBoxVertexGraphics.forEach(function(t){t.symbol=e._selectBoxVertexStyle})}}},{key:"getSketchStyle",value:function(){return this.sketchStyle}},{key:"union",value:function(e){for(var t=this,r=this,n=0;n<e.length;n++)if(!f.GeometryEngine.isSimple(e[n]))return h.Log.error("输入的几何不符合拓扑规范!");var i=c.Projection.project(this._sketchTopologyTool.unionPolygons(e),this._spatialReference);if("Polygon"===i.type){var o=r.view.allLayerViews.items.filter(function(e){return e.id===r._layer.id});return this.start(i),o.length>0?(this._selectEvent(),this._drawEvent(),this._sketchEvent()):r._layer.once("layerview-created",function(){r._selectEvent(),r._drawEvent(),t._sketchEvent()}),i}h.Log.error("合并结果不符合规范,请检查输入的几何!")}},{key:"split",value:function(e,r){var n=null,i=this;if(e instanceof f.Polygon)n=e;else{if(!(e instanceof t&&e.drawTool._sketchDataType===c.SketchDataType.POLYGON))return void h.Log.error("传入对象不符合要求,请检查");n=e.sketchStage.entityGraphic}return function(e,t){for(var r=1;r<e.coordinates[0].length;r++)e.coordinates[0][r][0]===e.coordinates[0][r-1][0]&&e.coordinates[0][r][1]===e.coordinates[0][r-1][1]&&(e.coordinates[0].splice(r,1),r--);var n=i._sketchTopologyTool.splitPolygonByPolyline(e,t);return n.length>0&&(i.view.allLayerViews.items.filter(function(e){return e.id===i._layer.id}).length>0?n.forEach(function(e){e=c.Projection.project(e,i._spatialReference),i.start(e)}):i._layer.once("layerview-created",function(){n.forEach(function(e){e=c.Projection.project(e,i._spatialReference),i.start(e)})})),n}(n,r)}},{key:"drawPolylineToPolygon",value:function(e){var t=this,r=this;this._drawTool&&(this._drawTool._removeEditGraphics(),this._drawTool._stopAll(),this._drawTools=[],this._undoRedoManager.reset()),this._drawTool=new b.default({view:this.view,sketchStyle:this.sketchStyle,layer:this._sketchInnerLayer,undoRedoManager:this._undoRedoManager,elevationInfo:this.elevationInfo,_sketchEditor:this,snapAndReferGeometries:e,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate}),this._drawTool.start(),this._drawTool.on("drawn",function(e){e.geometry&&(e.geometry instanceof f.Polygon?r.start(e.geometry):e.geometry.coordinates.forEach(function(e){var n=new f.Polygon({coordinates:e,spatialReference:t._spatialReference});r.start(n)}))})}},{key:"undo",value:function(){if(this._editable){var e=this._undoRedoManager.undo();return e?(this._updateByStage(e,"undo"),this._fireUndoEvent(e.entityGraphic),e.entityGraphic.geometry):null}}},{key:"redo",value:function(){if(this._editable){var e=this._undoRedoManager.redo();return e?(this._updateByStage(e,"redo"),this._fireRedoEvent(e.entityGraphic),e.entityGraphic.geometry):null}}},{key:"canUndo",value:function(){return this._undoRedoManager.canUndo()}},{key:"canRedo",value:function(){return this._undoRedoManager.canRedo()}},{key:"destroy",value:function(){this._removeSketchEvent(),this.stop(),this._remove(),this.view=null,this._spatialReference=null,this._sketchInnerLayer=null,this._layer=null,this.sketchStyle=new d.default,this._editable=!0,this.isSimple=!1,this.snapOption={},this.snapAndReferGeometries=[],this.measureOption=null,this._drawTool=null,this._drawTools=[],this._sketchDataType=null,this._sketchSnappingTool={},this._sketchTopologyTool={},this._undoRedoManager=new x.default,this._editorState=null,this._sketchSnappingTool=null}},{key:"_updateByStage",value:function(e,t){var r=this;this._drawTool.sketchStage.getAllFeatures().forEach(function(e){r._drawTool._removeFeatureFromLayer(e,r._sketchInnerLayer)}),this._drawTool._removeFeatureFromLayer(this._drawTool.sketchStage.entityGraphic,this._layer),this._drawTool._setSketchStage(e),e.getAllFeatures().forEach(function(n){var i=r._updateDrawToolByFeature(n);if(i)if(i._editMode===c.SketchEditMode.DRAWING)if(n.id===e.entityGraphic.id){var o=n.clone(),a=[],s=i._currentMovePoint;if(s){if(i.vertexNum&&("undo"===t?i.vertexNum--:"redo"===t&&i.vertexNum++),"Polygon"===o.geometry.type){a=o.geometry.coordinates[0];var u=i.vertexNum||0;1===u?(a[1]=s.coordinates,a[2]=s.coordinates):2===u||1===u?a[2]=s.coordinates:a.splice(a.length-1,0,s.coordinates)}else"LineString"===o.geometry.type&&(a=o.geometry.coordinates,1===i.vertexNum?a[1]=s.coordinates:a[a.length]=s.coordinates);i.sketchStage.entityGraphic=o,i._addFeatureToLayer(o,r._layer)}}else i._addFeatureToLayer(n,r._sketchInnerLayer);else n.id===e.entityGraphic.id?i._addFeatureToLayer(n,r._layer):i._addFeatureToLayer(n,r._sketchInnerLayer)})}},{key:"_updateDrawToolByFeature",value:function(e){for(var t=null,r=this._drawTool._drawTools,n=0;n<r.length;n++)if(r[n].sketchStage.entityGraphic.id===e.id){r[n].sketchStage.entityGraphic=e,t=r[n];break}return t}},{key:"_selectEvent",value:function(){var e=this;this._drawTool.on("selected",function(t){var r=t.isSelected?e:null;e.fire("selected",{selectedSketch:r,isSelected:t.isSelected},e)})}},{key:"_drawEvent",value:function(){var e=this;this._drawTool.on("drawn",function(t){e.fire("drawn",{geometry:t.geometry,feature:t.feature},e)}),this._drawTool.on("drawn-vertex",function(t){e.fire("drawn-vertex",{geometry:t.geometry,feature:t.feature},e)})}},{key:"_sketchEvent",value:function(){var e=this;this._drawTool&&(this._drawTool.on(c.SketchEditorEventType.create,function(t){e.fire(c.SketchEditorEventType.create,t,e),t.state===c.SketchEditorState.complete&&(e._drawTool&&(e._drawTool.state="drawn",e._bindHit(e._drawTool,void 0,e._layer),e._drawTool._stopAll(),e._drawTool=null),e._undoRedoManager.reset())}),this._drawTool.on(c.SketchEditorEventType.update,function(t){e.fire(c.SketchEditorEventType.update,t,e),t.state===c.SketchEditorState.complete&&e._undoRedoManager.reset()}))}},{key:"_addFeatureToCustomGraphicLayer",value:function(e){this._layer&&(this.view._map.findLayerById(this._layer.id)&&this._sketchInnerLayer.remove(e),this._layer.graphics.find(function(t){return e.id===t.id})?(this._layer.remove(e),this._layer.add(e)):this._layer.add(e))}},{key:"_removeFeatureToCustomGraphicLayer",value:function(e){this._layer&&this.view._map.findLayerById(this._layer.id)&&this._layer.graphics.find(function(t){return e.id===t.id})&&(this._layer.remove(e),this._sketchInnerLayer.add(e))}},{key:"_removeSketchEvent",value:function(){this.off(c.SketchEditorEventType.create),this.off(c.SketchEditorEventType.update),this.off(c.SketchEditorEventType.undo),this.off(c.SketchEditorEventType.redo),this.off(c.SketchEditorEventType.remove),this.off("drawn"),this.off("selected")}},{key:"_fireUndoEvent",value:function(e){var t=new M.SketchEditorEvent({type:c.SketchEditorEventType.undo,feature:e,geometry:e.geometry});this.fire(c.SketchEditorEventType.undo,t,this)}},{key:"_fireRedoEvent",value:function(e){var t=new M.SketchEditorEvent({type:c.SketchEditorEventType.redo,feature:e,geometry:e.geometry});this.fire(c.SketchEditorEventType.redo,t,this)}},{key:"_fireRemoveEvent",value:function(e){var t=new M.SketchEditorEvent({type:c.SketchEditorEventType.remove,feature:e,geometry:e.geometry});this.fire(c.SketchEditorEventType.remove,t,this)}},{key:"_fireCancelDrawEvent",value:function(){var e=new M.SketchEditorEvent({type:c.SketchEditorEventType.create,eventInfo:null,state:c.SketchEditorState.cancel});this.fire(c.SketchEditorEventType.create,e,self)}},{key:"getGeometry",value:function(){return this._drawTool?this._drawTool.sketchStage.entityGraphic.geometry:null}},{key:"setSnapOption",value:function(e){this.snapOption=(0,i.default)(this.snapOption,e),this._sketchSnappingTool.setSnapOption(e)}},{key:"getSnapOption",value:function(){return this.snapOption}},{key:"setSnapAndReferGeometries",value:function(e){this.snapAndReferGeometries=e,this._drawTool&&this._drawTool.setSnapAndReferGeometries()}},{key:"getSnapAndReferGeometries",value:function(){return this.snapAndReferGeometries}},{key:"_bindHit",value:function(){}}]),t}(c.Evented);(0,n.default)(T.prototype,{editable:{get:function(){return this._editable},set:function(e){this._editable=e}},sketchDataType:{get:function(){return this._sketchDataType},set:function(e){this._sketchDataType=e}}}),t.default=T},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(10)),i=g(r(3)),o=g(r(0)),a=g(r(2)),s=g(r(4)),u=g(r(5)),l=r(8),c=r(9),h=g(r(38)),f=g(r(37)),d=g(r(55)),p=g(r(36)),y=r(1);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchPolylineDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=!1,o=null,a=[],s=[];this.vertexNum=0;var u=[];this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var h=this._getInteractiveDom(),d=this.extensionOptions&&this.extensionOptions.vertexNumber?this.extensionOptions.vertexNumber:null;this._setInitSnap(),this._fireStartDrawEvent();var p=function n(i){if(i&&i.x&&i.y){e._stopInitSnap(),clearTimeout(null);var a={x:i.x,y:i.y};(new Date).getTime(),e._editMode=l.SketchEditMode.DRAWING;var h;h=e._snapPoint?e._snapPoint:e.view.toMap({x:a.x,y:a.y});var p=e.vertexNum+1;if(1===p)s=[h.coordinates],(o=e._getFeature()).geometry.coordinates=[s[0],s[0]];else if(2===p){var g=o.geometry.coordinates[0];if(g&&g[0]===h.coordinates[0]&&g[1]===h.coordinates[1])return y.Log.info("相邻两顶点重复!");s=[o.geometry.coordinates[0],h.coordinates],o.geometry.coordinates=s,e._polylineGeometry=o}else{var m=(s=o.geometry.coordinates)[s.length-2];if(m&&m[0]===h.coordinates[0]&&m[1]===h.coordinates[1])return y.Log.info("相邻两顶点重复!");if(s[s.length-1]=h.coordinates,e._sketchEditor.isSimple){var v=new c.LineString({coordinates:s,spatialReference:e._spatialReference,extensionOptions:{arcType:e.arcType}});if(!c.GeometryEngine.isSimple(v))return e._fireUnsimpleDraw(),y.Log.info("该坐标构成的几何不符合拓扑规范!")}o.geometry.coordinates=s}if(e.vertexNum=p,d&&p>=d)e.view.off(l.ViewEventType.immediateClick,n);else{var _=new f.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});_.addFeature(h,void 0,void 0,e.sketchInnerLayer),e._drawTools.push(_);var S=_.sketchStage.entityGraphic;e.sketchStage.entityGraphic=o,e.sketchStage.vertexGraphics.push(S),o&&(r=t=!0),s.length>1&&u.push(function(e,t){return(e[1]-t[1])/(e[0]-t[0])}(s[s.length-1],s[s.length-2])),e.fire("drawn-vertex",{geometry:_.sketchStage.entityGraphic.geometry,feature:_.sketchStage.entityGraphic},self),e._fireDrawVertexEvent(o),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode)}}},g=!0,m=function(u){if(u&&u.x&&u.y&&t&&!i){clearTimeout(null),i=!0,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var l={x:u.x,y:u.y},c=e.view.toMap({x:l.x,y:l.y});o=e.sketchStage.entityGraphic;var f=d&&e.vertexNum===d?e.vertexNum-1:e.vertexNum;s=1===f?[o.geometry.coordinates[0]]:o.geometry.coordinates.slice(0,o.geometry.coordinates.length-1),f>=1&&(e._snapPoint=e.getSnapGraphics(c,s)),e._snapPoint&&(c=e._snapPoint),e._currentMovePoint=c,1===f?o.geometry.coordinates[1]=c.coordinates:f>1&&(r?(o.geometry.coordinates.push(c.coordinates),r=!1):o.geometry.coordinates[o.geometry.coordinates.length-1]=c.coordinates),o.geometry._pixelCoords=a,o.geometry.coordinates=JSON.parse((0,n.default)(o.geometry.coordinates)),g&&(e._addFeatureToLayer(o,e.layer),g=!1),i=!1;var p=e._getInteractiveDom();h=h.concat(p),e._removeInteractiveStyle(p),e._fireChangeCursorEvent(o)}},v=function(){return clearTimeout(null),clearTimeout(null),(o=e.sketchStage.entityGraphic)&&e._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(o.geometry)?(e._fireUnsimpleDraw(),y.Log.info("该坐标构成的几何不符合拓扑规范!")):e.vertexNum<2&&e.sketchStage.entityGraphic?y.Log.info("线几何顶点少于两个,不符合规范!"):(s=[],a=[],e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=l.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(h),e.fire("drawn",{geometry:o.geometry,feature:o},self),e._fireStopDrawEvent(o),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.vertexNum=0,e.sketchStage.vertexGraphics=[],e._currentMovePoint=void 0,e.undoRedoManager._initDrawProcess(),void setTimeout(function(){e.view._mapActionControl("double-click-zoom",!0),e.view._mapActionControl("video-map-active",!1)},0))};this._drawEventHandlers.push(p,m,v),this.view.on(l.ViewEventType.immediateClick,p),this.view.on(l.ViewEventType.pointerMove,m),this.view.on(l.ViewEventType.doubleClick,v)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[1,1]]);var t=new c.LineString({coordinates:e,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),r=this.sketchStyle.lineStyle.clone();return new l.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e,t){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===l.SketchEditMode.NONE?this._editMode=l.SketchEditMode.EDITGRAGIC:this._editMode===l.SketchEditMode.EDITVERTEX&&(this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=l.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===l.SketchEditMode.EDITGRAGIC&&this.startPanGraphics(e,t)}},{key:"selectFeature",value:function(e){var t=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var r=e.geometry.extent,n=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({fillStyle:this.sketchStyle._selectBoxStyle,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate,_parent:this});this._drawTools.push(n),n.addFeature([[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]],void 0,void 0,this.sketchInnerLayer),this.sketchStage.selectBoxGraphics=[n.sketchStage.entityGraphic];var i=[];if(i=[{point:new c.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new c.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new c.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new c.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var o=[{point:new c.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new c.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new c.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new c.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];i=i.concat(o)}var a=[],s=[];i.forEach(function(e){var r=new f.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},arcType:t.arcType,_getCenterCoordinate:t._getCenterCoordinate,elevationInfo:t.elevationInfo,_parent:t});t._drawTools.push(r),r.addFeature(e.point,t.sketchStage,{direction:e.direction,type:e.type},t.sketchInnerLayer),a.push(r),s.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=s,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(a),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this._editMode),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||(this._mapClickEvent=function(){t._preventFirstCall?t._preventFirstCall=void 0:(t.sketchStage.selectBoxGraphics.concat(t.sketchStage.selectBoxVertexGraphics).concat(t.sketchStage.vertexGraphics).concat(t.sketchStage.midVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t.sketchInnerLayer)}),t.view.off(l.ViewEventType.immediateClick,t._mapClickEvent),t.view._mapActionControl("drag-pan",!0),t._mapClickEvent=null,t.fire("selected",{isSelected:!1},self),t._fireRemoveSelectEvent(t.sketchStage.entityGraphic),t.sketchStage.selectBoxGraphics=[],t.sketchStage.selectBoxVertexGraphics=[],t.sketchStage.vertexGraphics=[],t.sketchStage.midVertexGraphics=[],t._editMode=l.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(l.ViewEventType.immediateClick,this._mapClickEvent))}}},{key:"selectFeatureVertex",value:function(e){var t=this;this._clearEditGraphics(1);var r=[],n=[];e.geometry.coordinates.forEach(function(i,o){var a=new f.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),s=new c.Point({coordinates:i,spatialReference:t._spatialReference});if(t._drawTools.push(a),a.addFeature(s,void 0,{vertexIndex:o},t.sketchInnerLayer),r.push(a),t.sketchStage.vertexGraphics.push(a.sketchStage.entityGraphic),o>0){var u=new f.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(u);var l,h=e.geometry.coordinates[o-1],d=t._getCenterCoordinate(i,h);l=new c.Point({coordinates:d,spatialReference:t._spatialReference}),t._drawTools.push(u),u.addFeature(l,void 0,{vertexIndex:o-1,type:"midVertex"},t.sketchInnerLayer),t.sketchStage.midVertexGraphics.push(u.sketchStage.entityGraphic)}});var i=r.concat(n);this._otherDrawTools=this._otherDrawTools?this._otherDrawTools.concat(i):i,this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this.undoRedoManager.addProcess)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates.forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new c.LineString({coordinates:r,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates,i=JSON.parse((0,n.default)(r));i[e.vertexIndex]=e.movePoint.coordinates;var o=new c.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(o))return this._fireUnsimpleUpdate(),y.Log.info("该坐标构成的几何不符合拓扑规范!");if(t.geometry=o,this._otherDrawTools){if(0===e.vertexIndex){var a=this.sketchStage.midVertexGraphics[e.vertexIndex],s=i[e.vertexIndex],u=i[e.vertexIndex+1];a.geometry.coordinates=this._getCenterCoordinate(s,u),a.geometry=new c.Point({coordinates:a.geometry.coordinates,spatialReference:this._spatialReference})}else if(e.vertexIndex===i.length-1){var l=this.sketchStage.midVertexGraphics[e.vertexIndex-1],h=i[e.vertexIndex-1],f=i[e.vertexIndex];l.geometry.coordinates=this._getCenterCoordinate(h,f),l.geometry=new c.Point({coordinates:l.geometry.coordinates,spatialReference:this._spatialReference})}else{var d=this.sketchStage.midVertexGraphics[e.vertexIndex],p=this.sketchStage.midVertexGraphics[e.vertexIndex-1],g=i[e.vertexIndex-1],m=i[e.vertexIndex],v=i[e.vertexIndex+1];d.geometry.coordinates=this._getCenterCoordinate(v,m),p.geometry.coordinates=this._getCenterCoordinate(g,m)}this.sketchStage.vertexGraphics[e.vertexIndex].geometry.coordinates=i[e.vertexIndex]}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates.splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new c.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})),"moveMidVertex"===e.action){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));r[e.vertexIndex+1]=e.movePoint.coordinates;var i=new c.LineString({coordinates:r,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(i))return this._fireUnsimpleUpdate(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry.coordinates=r,this.sketchStage.midVertexGraphics[e.vertexIndex].geometry.coordinates=e.movePoint.coordinates}if("addVertex"===e.action){var o=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),a=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(a),a.addFeature(e.point,void 0,void 0,this.sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,a.sketchStage.entityGraphic);var s,u=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex];this._getHight;var l=this._getCenterCoordinate(u,e.point.coordinates);s=new c.Point({coordinates:l,spatialReference:this._spatialReference});var h=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(h),h.addFeature(s,void 0,{type:"midVertex"},this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,h.sketchStage.entityGraphic);var d,g=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+2];this._getHight;var m=this._getCenterCoordinate(g,e.point.coordinates);d=new c.Point({coordinates:m,spatialReference:this._spatialReference});var v=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(v),v.addFeature(d,void 0,{type:"midVertex"},this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,v.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===o&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t.sketchInnerLayer)}),this._otherDrawTools.push(a),this._otherDrawTools.push(h),this._otherDrawTools.push(v)}}},{key:"addMidVertex",value:function(e,t){var r=new f.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){var r=null;if(--t>-1&&t<=this.sketchStage.midVertexGraphics.length+1){var i=[];if(t<=this.sketchStage.entityGraphic.geometry.coordinates.length-1){if((i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates))).splice(t,0,e.coordinates),r=new c.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var o=void 0,a=void 0,s=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var u=[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],this._getCenterCoordinate([s.xmax,s.ymax],[s.xmin,s.ymax]),this._getCenterCoordinate([s.xmax,s.ymin],[s.xmin,s.ymin]),this._getCenterCoordinate([s.xmax,s.ymax],[s.xmax,s.ymin]),this._getCenterCoordinate([s.xmin,s.ymax],[s.xmin,s.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=u[t]})}if(this.sketchStage.vertexGraphics.length>0&&(o=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(o),o.addFeatureByGeometry(e,void 0,void 0,this.sketchInnerLayer),this.sketchStage.vertexGraphics.splice(t,0,o.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var l=-1,h=-1,d=null,g=null;if(0===t?(h=0,g=this.sketchStage.entityGraphic.geometry.coordinates[1]):t===this.sketchStage.midVertexGraphics.length+1?(h=this.sketchStage.midVertexGraphics.length-2,g=this.sketchStage.entityGraphic.geometry.coordinates[h]):(l=t-1,h=t+1,d=this.sketchStage.entityGraphic.geometry.coordinates[l],g=this.sketchStage.entityGraphic.geometry.coordinates[h]),l>-1){var m=new c.Point({coordinates:this._getCenterCoordinate(d,e.coordinates),spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[l].geometry.coordinates=m.coordinates}if(h>-1){var v=new c.Point({coordinates:this._getCenterCoordinate(g,e.coordinates),spatialReference:this._spatialReference});a=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(a),a.addFeatureByGeometry(v,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,a.sketchStage.entityGraphic)}this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}o&&this._otherDrawTools.push(o),a&&this._otherDrawTools.push(a),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireAddVertexEventByFun(o.sketchStage.entityGraphic,this._parent)}return r}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){var i=this.sketchStage.entityGraphic.geometry.coordinates.length;if(t<i){var o=this.sketchStage.entityGraphic,a=JSON.parse((0,n.default)(o.geometry.coordinates));if(this.currentVertexIndex=t,r=e.coordinates,o.geometry=new c.LineString({coordinates:o.geometry.coordinates,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var s=o.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var u=[[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin],[s.xmin,s.ymax],this._getCenterCoordinate([s.xmax,s.ymax],[s.xmin,s.ymax]),this._getCenterCoordinate([s.xmax,s.ymin],[s.xmin,s.ymin]),this._getCenterCoordinate([s.xmax,s.ymax],[s.xmax,s.ymin]),this._getCenterCoordinate([s.xmin,s.ymax],[s.xmin,s.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=u[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var l=a[t-1],h=a[t],f=a[t+1],d=-1,p=-1;if(0===t?d=t:t===i-1?p=t-1:(d=t,p=t-1),d>-1){var g=this.sketchStage.midVertexGraphics[d];g.geometry.coordinates=this._getCenterCoordinate(f,h),g.geometry=new c.Point({coordinates:g.geometry.coordinates,spatialReference:this._spatialReference})}if(p>-1){var m=this.sketchStage.midVertexGraphics[p];m.geometry.coordinates=this._getCenterCoordinate(l,h),m.geometry=new c.Point({coordinates:m.geometry.coordinates,spatialReference:this._spatialReference})}}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireUpdateVertexByFun(this.sketchStage.entityGraphic,this._parent)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates.length;if(r>2&&e<r){var i=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));if(i.splice(e,1),t=new c.LineString({coordinates:i,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple&&!c.GeometryEngine.isSimple(t))return this._fireUnsimpleUpdateByFun(),y.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=t;var o=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],this._getCenterCoordinate([o.xmax,o.ymax],[o.xmin,o.ymax]),this._getCenterCoordinate([o.xmax,o.ymin],[o.xmin,o.ymin]),this._getCenterCoordinate([o.xmax,o.ymax],[o.xmax,o.ymin]),this._getCenterCoordinate([o.xmin,o.ymax],[o.xmin,o.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0){var s=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromLayer(this.sketchStage.vertexGraphics[e],this.sketchInnerLayer),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==s)return e})}if(this.sketchStage.midVertexGraphics.length>0){var u=[],l=-1,h=-1;0===e?h=0:e===r-1?h=e-1:(u=[(t.coordinates[e-1][0]+t.coordinates[e][0])/2,(t.coordinates[e-1][1]+t.coordinates[e][1])/2],l=e-1,h=e),l>-1&&(this.sketchStage.midVertexGraphics[l].geometry=new c.Point({coordinates:u,spatialReference:this._spatialReference}));var f=this.sketchStage.vertexGraphics[h].id.toString();this._removeFeatureFromLayer(this.sketchStage.midVertexGraphics[h],this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(h,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==f)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireRemoveVertexByFun(this.sketchStage.entityGraphic,this._parent)}return t}}]),t}(h.default);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(3)),i=g(r(0)),o=g(r(2)),a=g(r(4)),s=g(r(5)),u=r(8),l=r(9),c=g(r(38)),h=g(r(37)),f=g(r(55)),d=g(r(36)),p=g(r(63)),y=r(1);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type="sketchCircleDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._initEvent(),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("circleVertexScale",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=u.SketchEditMode.DRAWING,this.view._mapActionControl("drag-pan",!1),this.view._mapActionControl("video-map-active",!0);var t=null,r=0,n=null;this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var i=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var o=function(o){if(clearTimeout(null),e._stopInitSnap(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),0===o.button)if("start"===o.action)n=e._snapPoint?e._snapPoint:n||e.view.toMap(o.origin),e._fireDrawVertexEvent();else if("update"===o.action){var a=e.view.toMap({x:o.x,y:o.y});e._snapPoint=e.getSnapGraphics(a),e._snapPoint&&(a=e._snapPoint),r=p.default.planarLength(new l.LineString({coordinates:[n.coordinates,a.coordinates],spatialReference:e._spatialReference})),t?t.geometry.radius=r:(t=e._getFeature(n,r),e._addFeatureToLayer(t,e.layer),e.sketchStage.entityGraphic=t);var s=e._getInteractiveDom();i=i.concat(s),e._removeInteractiveStyle(s),e._fireChangeCursorEvent(t)}else"end"===o.action&&(e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),n=null,e._editMode=u.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(i),e.fire("drawn",{geometry:t.geometry,feature:t},self),e._fireDrawVertexEvent(t),e._fireStopDrawEvent(t),e.view._mapActionControl("drag-pan",!0),e.view._mapActionControl("video-map-active",!1))};this._drawEventHandlers.push(o),this.view.on(u.ViewEventType.drag,o)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new u.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e,t){e?e instanceof Array?e=new l.Point({coordinates:e,spatialReference:this._spatialReference}):e instanceof l.Point||(e=new l.Point({coordinates:[0,0],spatialReference:this._spatialReference})):e=new l.Point({coordinates:[0,0],spatialReference:this._spatialReference}),t=void 0!==t?t:0;var r=this._spatialReference.isGeographic?u.RadiusUnit.degrees:u.RadiusUnit.meters,n=new l.Circle({center:e,radius:t,radiusUnit:r,spatialReference:this._spatialReference}),i=this.sketchStyle.fillStyle.clone();return new u.Feature({geometry:n,symbol:i,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===u.SketchEditMode.NONE&&(this._editMode=u.SketchEditMode.EDITGRAGIC),this.selectFeature(e))}},{key:"selectFeature",value:function(e){var t=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var r=e.geometry.extent,n=new f.default({view:this.view,layer:this.layer,sketchStyle:new d.default({fillStyle:this.sketchStyle._selectBoxStyle,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(n),n.addFeature([[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]],void 0,void 0,this.sketchInnerLayer),this.sketchStage.selectBoxGraphics=[n.sketchStage.entityGraphic];var i=[];if(this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var o=[{point:new l.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"circleVertex"}];i=i.concat(o)}var a=[],s=[];i.forEach(function(e){var r=new h.default({view:t.view,layer:t.layer,sketchStyle:new d.default({vertexStyle:t.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});t._drawTools.push(r),r.addFeature(e.point,t.sketchStage,{direction:e.direction,type:e.type},t.sketchInnerLayer),a.push(r),s.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=s,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(a),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||(this._mapClickEvent=function(){t._preventFirstCall?t._preventFirstCall=void 0:(t.sketchStage.selectBoxGraphics.concat(t.sketchStage.selectBoxVertexGraphics).concat(t.sketchStage.vertexGraphics).concat(t.sketchStage.midVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t.sketchInnerLayer)}),t.view.off(u.ViewEventType.immediateClick,t._mapClickEvent),t.view._mapActionControl("drag-pan",!0),t._mapClickEvent=null,t.fire("selected",{isSelected:!1},self),t._fireRemoveSelectEvent(t.sketchStage.entityGraphic),t.sketchStage.selectBoxGraphics=[],t.sketchStage.selectBoxVertexGraphics=[],t.sketchStage.vertexGraphics=[],t.sketchStage.midVertexGraphics=[],t._editMode=u.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(u.ViewEventType.immediateClick,this._mapClickEvent))}}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"circleVertexScale"===e.type&&this._handlerCircleVertexScaleEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this.sketchStage.entityGraphic.geometry.center;this.sketchStage.entityGraphic.geometry.center=this.getPanCoordinates(t,e.deltaPosition.x,e.deltaPosition.y),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerCircleVertexScaleEvent",value:function(e){if("scale"===e.action){var t=p.default.planarLength(new l.LineString({coordinates:[this.sketchStage.entityGraphic.geometry.center,[e.movePoint.coordinates[0],this.sketchStage.entityGraphic.geometry.center[1]]],spatialReference:this._spatialReference})),r=this._spatialReference.isGeographic?u.RadiusUnit.degrees:u.RadiusUnit.meters,n=new l.Circle({center:this.sketchStage.entityGraphic.geometry.center,radius:t,radiusUnit:r,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){if(r.attributes)if("e"===r.attributes.direction){var n=e._sketchEditor._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]);r.geometry.coordinates[0]===n[0]&&r.geometry.coordinates[1]===n[1]&&(r.attributes.direction="w")}else if("w"===r.attributes.direction){var i=e._sketchEditor._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]);r.geometry.coordinates[0]===i[0]&&r.geometry.coordinates[1]===i[1]&&(r.attributes.direction="e")}})}}]),t}(c.default);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=y(r(3)),i=y(r(0)),o=y(r(2)),a=y(r(4)),s=y(r(5)),u=r(8),l=r(9),c=y(r(38)),h=y(r(37)),f=y(r(55)),d=y(r(36)),p=r(1);function y(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type="sketchExtentDrawTool",r._initEvent(),r._drawTools=[r],r._otherDrawTools=[],r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=u.SketchEditMode.DRAWING,this.view._mapActionControl("drag-pan",!1),this.view._mapActionControl("video-map-active",!0);var t=null,r=null;this.cursorStyle=this.view.cursor,(0,p.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var n=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var i=function(i){if(clearTimeout(null),e.view.off(u.ViewEventType.pointerMove,e._handlerInitMouseMove),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),0===i.button)if("start"===i.action)r=e._snapPoint?e._snapPoint:r||e.view.toMap(i.origin),e._fireDrawVertexEvent();else if("update"===i.action){var o=e.view.toMap({x:i.x,y:i.y});e._snapPoint=e.getSnapGraphics(o),e._snapPoint&&(o=e._snapPoint);var a=Math.min(r.coordinates[0],o.coordinates[0]),s=Math.min(r.coordinates[1],o.coordinates[1]),l=Math.max(r.coordinates[0],o.coordinates[0]),c=Math.max(r.coordinates[1],o.coordinates[1]);t?(t.geometry.xmin=a,t.geometry.ymin=s,t.geometry.xmax=l,t.geometry.ymax=c):(t=e._getFeature(a,s,l,c),e._addFeatureToLayer(t,e.layer),e.sketchStage.entityGraphic=t);var h=e._getInteractiveDom();n=n.concat(h),e._removeInteractiveStyle(h),e._fireChangeCursorEvent(t)}else"end"===i.action&&(e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=u.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(n),e.fire("drawn",{geometry:t.geometry,feature:t},self),e._fireDrawVertexEvent(t),e._fireStopDrawEvent(t),e.view._mapActionControl("drag-pan",!0),e.view._mapActionControl("video-map-active",!1))};this._drawEventHandlers.push(i),this.view.on(u.ViewEventType.drag,i)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new u.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e,t,r,n){e=void 0!==e?e:0,t=void 0!==t?t:0,r=void 0!==r?r:0,n=void 0!==n?n:0;var i=new l.Extent({xmin:e,ymin:t,xmax:r,ymax:n,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),o=this.sketchStyle.fillStyle.clone();return new u.Feature({geometry:i,symbol:o,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===u.SketchEditMode.NONE?this._editMode=u.SketchEditMode.EDITGRAGIC:this._editMode===u.SketchEditMode.EDITVERTEX&&(this.view.off(u.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=u.SketchEditMode.EDITGRAGIC),this.selectFeature(e))}},{key:"selectFeature",value:function(e){var t=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var r=e.geometry,n=new f.default({view:this.view,layer:this.layer,sketchStyle:new d.default({fillStyle:this.sketchStyle._selectBoxStyle,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate,_parent:this});this._drawTools.push(n),n.addFeature([[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]],void 0,void 0,this.sketchInnerLayer),this.sketchStage.selectBoxGraphics=[n.sketchStage.entityGraphic];var i=[];if(i=[{point:new l.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new l.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new l.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new l.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var o=[{point:new l.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new l.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new l.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new l.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];i=i.concat(o)}var a=[],s=[];i.forEach(function(e){var r=new h.default({view:t.view,layer:t.layer,sketchStyle:new d.default({vertexStyle:t.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});t._drawTools.push(r),r.addFeature(e.point,t.sketchStage,{direction:e.direction,type:e.type},t.sketchInnerLayer),a.push(r),s.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=s,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(a),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||(this._mapClickEvent=function(){t._preventFirstCall?t._preventFirstCall=void 0:(t.sketchStage.selectBoxGraphics.concat(t.sketchStage.selectBoxVertexGraphics).concat(t.sketchStage.vertexGraphics).concat(t.sketchStage.midVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t.sketchInnerLayer)}),t.view.off(u.ViewEventType.immediateClick,t._mapClickEvent),t.view._mapActionControl("drag-pan",!0),t._mapClickEvent=null,t.fire("selected",{isSelected:!1},self),t._fireRemoveSelectEvent(t.sketchStage.entityGraphic),t.sketchStage.selectBoxGraphics=[],t.sketchStage.selectBoxVertexGraphics=[],t.sketchStage.vertexGraphics=[],t.sketchStage.midVertexGraphics=[],t._editMode=u.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(u.ViewEventType.immediateClick,this._mapClickEvent))}}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type&&this._handlerMidVertexScaleEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this.sketchStage.entityGraphic.geometry;t.xmin+=e.deltaPosition.x,t.ymin+=e.deltaPosition.y,t.xmax+=e.deltaPosition.x,t.ymax+=e.deltaPosition.y,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t=this.sketchStage.entityGraphic.geometry;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=[[t.xmin,t.ymin],[t.xmax,t.ymax]];this.sketchStage.entityGraphic.attributes.lastCoordinates=r}this.sketchStage.entityGraphic.attributes=this.sketchStage.entityGraphic.attributes?this.sketchStage.entityGraphic.attributes:{};var n=this.getScaleCoordinates([[t.xmin,t.ymin],[t.xmax,t.ymax]],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t.xmin=n[0][0],t.ymin=n[0][1],t.xmax=n[1][0],t.ymax=n[1][1],this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}},{key:"_handlerMidVertexScaleEvent",value:function(e){if("scale"===e.action){var t=this.sketchStage.entityGraphic.geometry;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=[[t.xmin,t.ymin],[t.xmax,t.ymax]];this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getMidScaleCoordinates([[t.xmin,t.ymin],[t.xmax,t.ymax]],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t.xmin=n[0][0],t.ymin=n[0][1],t.xmax=n[1][0],t.ymax=n[1][1],this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}}]),t}(c.default);t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(10)),i=g(r(3)),o=g(r(0)),a=g(r(2)),s=g(r(4)),u=g(r(5)),l=r(8),c=r(9),h=g(r(38)),f=g(r(37)),d=g(r(55)),p=g(r(36)),y=r(1);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r._initEvent(),r.type="sketchFreehandPolylineDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=null,o=[],a=[];this.vertexNum=0;var s=[],u="";this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var c=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var h=function r(n){if(n&&n.x&&n.y){e._stopInitSnap(),clearTimeout(null),e._editMode=l.SketchEditMode.DRAWING;var o,c={x:n.x,y:n.y};o=e._snapPoint?e._snapPoint:e.view.toMap({x:c.x,y:c.y}),e.vertexNum++,1===e.vertexNum?(a=[o.coordinates],(i=e._getFeature()).geometry.coordinates=[a[0],a[0]]):2===e.vertexNum?(a=[i.geometry.coordinates[0],o.coordinates],i.geometry.coordinates=a):((a=i.geometry.coordinates)[a.length-1]=o.coordinates,i.geometry.coordinates=a),"move"===u&&a[a.length-1][0]===a[a.length-2][0]&&a[a.length-1][1]===a[a.length-2][1]&&a.splice(a.length-1);var h=new f.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});h.addFeature(o,void 0,void 0,e.sketchInnerLayer);var d=h.sketchStage.entityGraphic;e.sketchStage.entityGraphic=i,e.sketchStage.vertexGraphics.push(d),t=!0,a.length>1&&s.push(function(e,t){return(e[1]-t[1])/(e[0]-t[0])}(a[a.length-1],a[a.length-2])),u="click",e.fire("drawn-vertex",{geometry:h.sketchStage.entityGraphic.geometry,feature:h.sketchStage.entityGraphic},self),e.view.off(l.ViewEventType.immediateClick,r)}},d=!0,p=function(s){if(s&&s.x&&s.y&&t&&!r){clearTimeout(null),r=!0,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var l={x:s.x,y:s.y},h=e.view.toMap({x:l.x,y:l.y});e.vertexNum>0&&(e._snapPoint=e.getSnapGraphics(h,[i.geometry.coordinates[0]])),e._snapPoint&&(h=e._snapPoint),e.vertexNum,a.push(h.coordinates),i.geometry.coordinates=a,e.vertexNum++,e.sketchStage.entityGraphic=i,i.geometry._pixelCoords=o,i.geometry.coordinates=JSON.parse((0,n.default)(a)),d&&(e._addFeatureToLayer(i,e.layer),d=!1),r=!1,u="move";var f=e._getInteractiveDom();c=c.concat(f),e._removeInteractiveStyle(f),e._fireDrawVertexEvent(i)}},g=function(){clearTimeout(null),clearTimeout(null),a=[],o=[],e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=l.SketchEditMode.NONE,r=!1,t=!1,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(c),e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.vertexGraphics=[],setTimeout(function(){e.view._mapActionControl("double-click-zoom",!0),e.view._mapActionControl("video-map-active",!1)},0),u="double-click"};this._drawEventHandlers.push(h,p,g),this.view.on(l.ViewEventType.immediateClick,h),this.view.on(l.ViewEventType.pointerMove,this.debounce(p,5)),this.view.on(l.ViewEventType.doubleClick,g)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[1,1]]);var t=new c.LineString({coordinates:e,spatialReference:this._spatialReference}),r=this.sketchStyle.lineStyle.clone();return new l.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e,t){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===l.SketchEditMode.NONE?this._editMode=l.SketchEditMode.EDITGRAGIC:this._editMode===l.SketchEditMode.EDITVERTEX&&(this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=l.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===l.SketchEditMode.EDITGRAGIC&&this.startPanGraphics(e,t)}},{key:"selectFeature",value:function(e){var t=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var r=e.geometry.extent,n=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({fillStyle:this.sketchStyle._selectBoxStyle,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(n),n.addFeature([[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]],void 0,void 0,this.sketchInnerLayer),this.sketchStage.selectBoxGraphics=[n.sketchStage.entityGraphic];var i=[];if(i=[{point:new c.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new c.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new c.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new c.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var o=[{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];i=i.concat(o)}var a=[],s=[];i.forEach(function(e){var r=new f.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});t._drawTools.push(r),r.addFeature(e.point,t.sketchStage,{direction:e.direction,type:e.type},t.sketchInnerLayer),a.push(r),s.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=s,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(a),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||(this._mapClickEvent=function(){t._preventFirstCall?t._preventFirstCall=void 0:(t.sketchStage.selectBoxGraphics.concat(t.sketchStage.selectBoxVertexGraphics).concat(t.sketchStage.vertexGraphics).concat(t.sketchStage.midVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t.sketchInnerLayer)}),t.view.off(l.ViewEventType.immediateClick,t._mapClickEvent),t.view._mapActionControl("drag-pan",!0),t._mapClickEvent=null,t.fire("selected",{isSelected:!1},self),t.sketchStage.selectBoxGraphics=[],t.sketchStage.selectBoxVertexGraphics=[],t.sketchStage.vertexGraphics=[],t.sketchStage.midVertexGraphics=[],t._editMode=l.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(l.ViewEventType.immediateClick,this._mapClickEvent))}}},{key:"selectFeatureVertex",value:function(e){var t=this;this._clearEditGraphics(1);var r=[],n=[];e.geometry.coordinates.forEach(function(i,o){var a=new f.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),s=new c.Point({coordinates:i,spatialReference:t._spatialReference});if(t._drawTools.push(a),a.addFeature(s,void 0,{vertexIndex:o}),r.push(a),t.sketchStage.vertexGraphics.push(a.sketchStage.entityGraphic),o>0){var u=new f.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(u);var l,h=e.geometry.coordinates[o-1];l=i.length>2?new c.Point({coordinates:[(i[0]+h[0])/2,(i[1]+h[1])/2,(i[2]+h[2])/2],spatialReference:t._spatialReference}):new c.Point({coordinates:[(i[0]+h[0])/2,(i[1]+h[1])/2],spatialReference:t._spatialReference}),t._drawTools.push(u),u.addFeature(l,void 0,{vertexIndex:o-1,type:"midVertex"}),t.sketchStage.midVertexGraphics.push(u.sketchStage.entityGraphic)}});var i=r.concat(n);this._otherDrawTools=this._otherDrawTools?this._otherDrawTools.concat(i):i,this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage)}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=t.mapPoint.coordinates[0],o=t.mapPoint.coordinates[1],a=null;a=l.Projection.project(new c.Point({coordinates:[i,o]}),this._spatialReference);var s=!0,u=setTimeout(function(){s=!1},200);this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent);var h=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==l.SketchEditMode.EDITGRAGIC&&!s){clearTimeout(null),n=!0;var i={x:t.x,y:t.y},o=r.view.toMap({x:i.x,y:i.y}),u=o.coordinates[0]-a.coordinates[0],h=o.coordinates[1]-a.coordinates[1];if(0!==u||0!==h){var f=[];e.geometry.coordinates[0].forEach(function(e){f.push(r.getPanCoordinates(e,u,h))});var d=new c.Polygon({coordinates:[f],spatialReference:r._spatialReference});a=o,r._dispatchEvent("pan",{deltaPosition:{x:u,y:h}},r),r.updateFeature(d,e),n=!1}else n=!1}},f=function e(){if(!r._editMode!==l.SketchEditMode.EDITGRAGIC&&r._startPan){if(s&&r._parent&&r._parent._editMode===l.SketchEditMode.EDITGRAGIC)return r._parent._editMode=l.SketchEditMode.EDITVERTEX,clearTimeout(u),r._parent.selectFeatureVertex(r._parent.sketchStage.entityGraphic),r._parent&&r._parent._mapClickEvent&&r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent),r._startPan=!1,r.view.off(l.ViewEventType.pointerMove,h),void r.view.off(l.ViewEventType.pointerUp,e);r._editMode=l.SketchEditMode.NONE,r._startPan=!1,r._enableMapDrag&&r._enableMapDrag(),r.view.off(l.ViewEventType.pointerMove,h),r.view.off(l.ViewEventType.pointerUp,e),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&(r._parent._preventFirstCall=!0,r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent))}};this._hitTestEventHandlers.push(h),this._hitTestEventHandlers.push(f),this.view.on(l.ViewEventType.pointerUp,f),this.view.on(l.ViewEventType.pointerMove,h)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates.forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new c.LineString({coordinates:r,spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.LineString({coordinates:i,spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}else"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.LineString({coordinates:i,spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates;if(t.geometry.coordinates[e.vertexIndex]=e.movePoint.coordinates,t.geometry=new c.LineString({coordinates:t.geometry.coordinates,spatialReference:this._spatialReference}),this._otherDrawTools)if(0===e.vertexIndex){var n=this.sketchStage.midVertexGraphics[e.vertexIndex],i=r[e.vertexIndex],o=r[e.vertexIndex+1];n.geometry.coordinates=[(o[0]+i[0])/2,(o[1]+i[1])/2],n.geometry=new c.Point({coordinates:n.geometry.coordinates,spatialReference:this._spatialReference})}else if(e.vertexIndex===r.length-1){var a=this.sketchStage.midVertexGraphics[e.vertexIndex-1],s=r[e.vertexIndex-1],u=r[e.vertexIndex];a.geometry.coordinates=[(s[0]+u[0])/2,(s[1]+u[1])/2],a.geometry=new c.Point({coordinates:a.geometry.coordinates,spatialReference:this._spatialReference})}else{var l=this.sketchStage.midVertexGraphics[e.vertexIndex],h=this.sketchStage.midVertexGraphics[e.vertexIndex-1],f=r[e.vertexIndex-1],d=r[e.vertexIndex],p=r[e.vertexIndex+1];l.geometry.coordinates=[(p[0]+d[0])/2,(p[1]+d[1])/2],l.geometry=new c.Point({coordinates:l.geometry.coordinates,spatialReference:this._spatialReference}),h.geometry.coordinates=[(f[0]+d[0])/2,(f[1]+d[1])/2],h.geometry=new c.Point({coordinates:h.geometry.coordinates,spatialReference:this._spatialReference})}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates.splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new c.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"moveMidVertex"===e.action&&(this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+1]=e.movePoint.coordinates,this.sketchStage.entityGraphic.geometry=new c.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"addVertex"===e.action){var r=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),n=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(n),n.addFeature(e.point),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,n.sketchStage.entityGraphic);var i,o=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex],a=null;this._getHight&&(a=0),i=a?new c.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2,a],spatialReference:this._spatialReference}):new c.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var s=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(s),s.addFeature(i,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,s.sketchStage.entityGraphic);var u,l=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+2],h=null;this._getHight&&(h=0),u=h?new c.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2,h],spatialReference:this._spatialReference}):new c.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var d=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(d),d.addFeature(u,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,d.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===r&&t._removeFeatureFromMap(e.sketchStage.entityGraphic)}),this._otherDrawTools.push(n),this._otherDrawTools.push(s),this._otherDrawTools.push(d)}}},{key:"addMidVertex",value:function(e,t){var r=new f.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){if(--t>-1&&t<=this.sketchStage.midVertexGraphics.length+1){var r=[];if(t<=this.sketchStage.entityGraphic.geometry.coordinates.length-1){(r=this.sketchStage.entityGraphic.geometry.coordinates).splice(t,0,e.coordinates),this.sketchStage.entityGraphic.geometry=new c.LineString({coordinates:r,spatialReference:this._spatialReference});var n=void 0,i=void 0,o=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[(o.xmax+o.xmin)/2,o.ymax],[(o.xmax+o.xmin)/2,o.ymin],[o.xmax,(o.ymax+o.ymin)/2],[o.xmin,(o.ymax+o.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0&&(n=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(n),n.addFeatureByGeometry(e),this.sketchStage.vertexGraphics.splice(t,0,n.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var s=-1,u=-1,l=null,h=null;if(0===t?(u=0,h=this.sketchStage.entityGraphic.geometry.coordinates[1]):t===this.sketchStage.midVertexGraphics.length+1?(u=this.sketchStage.midVertexGraphics.length-2,h=this.sketchStage.entityGraphic.geometry.coordinates[u]):(s=t-1,u=t+1,l=this.sketchStage.entityGraphic.geometry.coordinates[s],h=this.sketchStage.entityGraphic.geometry.coordinates[u]),s>-1){var d=new c.Point({coordinates:[(l[0]+e.coordinates[0])/2,(l[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[s].geometry.coordinates=d.coordinates}if(u>-1){var y=new c.Point({coordinates:[(h[0]+e.coordinates[0])/2,(h[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});i=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(i),i.addFeatureByGeometry(y,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,i.sketchStage.entityGraphic)}this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}n&&this._otherDrawTools.push(n),i&&this._otherDrawTools.push(i),this.undoRedoManager.addProcess("update",this.sketchStage)}return null}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){var n=this.sketchStage.entityGraphic.geometry.coordinates.length;if(t<n){var i=this.sketchStage.entityGraphic,o=i.geometry.coordinates;i.geometry.coordinates=o,this.currentVertexIndex=t,o[t]=e.coordinates,i.geometry=new c.LineString({coordinates:i.geometry.coordinates,spatialReference:this._spatialReference}),r=i.geometry,this.sketchStage.entityGraphic.geometry=r;var a=i.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var s=[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[(a.xmax+a.xmin)/2,a.ymax],[(a.xmax+a.xmin)/2,a.ymin],[a.xmax,(a.ymax+a.ymin)/2],[a.xmin,(a.ymax+a.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=s[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var u=o[t-1],l=o[t],h=o[t+1],f=-1,d=-1;if(0===t?f=t:t===n-1?d=t-1:(f=t,d=t-1),f>-1){var p=this.sketchStage.midVertexGraphics[f];p.geometry.coordinates=[(h[0]+l[0])/2,(h[1]+l[1])/2],p.geometry=new c.Point({coordinates:p.geometry.coordinates,spatialReference:this._spatialReference})}if(d>-1){var y=this.sketchStage.midVertexGraphics[d];y.geometry.coordinates=[(u[0]+l[0])/2,(u[1]+l[1])/2],y.geometry=new c.Point({coordinates:y.geometry.coordinates,spatialReference:this._spatialReference})}}}this.undoRedoManager.addProcess("update",this.sketchStage)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates.length;if(r>2&&e<r){var n=this.sketchStage.entityGraphic.geometry.coordinates;n.splice(e,1),t=new c.LineString({coordinates:n,spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t;var i=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[i.xmax,i.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var o=[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[(i.xmax+i.xmin)/2,i.ymax],[(i.xmax+i.xmin)/2,i.ymin],[i.xmax,(i.ymax+i.ymin)/2],[i.xmin,(i.ymax+i.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=o[t]})}if(this.sketchStage.vertexGraphics.length>0){var a=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromMap(this.sketchStage.vertexGraphics[e]),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==a)return e})}if(this.sketchStage.midVertexGraphics.length>0){var s=[],u=-1,l=-1;0===e?l=0:e===r-1?l=e-1:(s=[(t.coordinates[e-1][0]+t.coordinates[e][0])/2,(t.coordinates[e-1][1]+t.coordinates[e][1])/2],u=e-1,l=e),u>-1&&(this.sketchStage.midVertexGraphics[u].geometry=new c.Point({coordinates:s,spatialReference:this._spatialReference}));var h=this.sketchStage.vertexGraphics[l].id.toString();this._removeFeatureFromMap(this.sketchStage.midVertexGraphics[l]),this.sketchStage.midVertexGraphics.splice(l,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==h)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage)}return t}}]),t}(h.default);t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(r(10)),i=g(r(3)),o=g(r(0)),a=g(r(2)),s=g(r(4)),u=g(r(5)),l=r(8),c=r(9),h=g(r(38)),f=g(r(37)),d=g(r(55)),p=g(r(36)),y=r(1);function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.type="sketchFreehandPolygonDrawTool",r._initEvent(),r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r.vertexNum=0,r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"_initEvent",value:function(){this._processEvent=this._processEvent.bind(this),this.on("pan",this._processEvent),this.on("vertexScale",this._processEvent),this.on("midVertexScale",this._processEvent),this.on("vertexMove",this._processEvent),this.on("midVertexAdd",this._processEvent)}},{key:"drawFeature",value:function(){var e=this;this._editMode=l.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,i=null,o=[],a=null,s=[];this.vertexNum=0;var u=null;this.cursorStyle=this.view.cursor,(0,y.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var c=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var h=function r(n){if(n&&n.x&&n.y){e._stopInitSnap(),clearTimeout(null);var o={x:n.x,y:n.y};if(!(a&&u&&o.x===a.x&&o.y===a.y&&(new Date).getTime()-u<200)){a=o,u=(new Date).getTime(),e._editMode=l.SketchEditMode.DRAWING;var c;c=e._snapPoint?e._snapPoint:e.view.toMap({x:o.x,y:o.y}),e.vertexNum++,1===e.vertexNum?(s=[c.coordinates],(i=e._getFeature()).geometry.coordinates=[[s[0],s[0],s[0],s[0]]],t=!1):2===e.vertexNum?s=[i.geometry.coordinates[0][0],i.geometry.coordinates[0][1]]:(s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)).push(c.coordinates),e.sketchStage.entityGraphic=i;var h=new f.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});h.addFeature(c,void 0,void 0,e.sketchInnerLayer),e._drawTools.push(h);var d=h.sketchStage.entityGraphic;e.sketchStage.vertexGraphics.push(d),i&&(t=!0),e.fire("drawn-vertex",{geometry:h.sketchStage.entityGraphic.geometry,feature:h.sketchStage.entityGraphic},self),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode),e.view.off(l.ViewEventType.immediateClick,r)}}},d=!0,p=function(a){if(a&&a.x&&a.y&&t&&!r){clearTimeout(null),r=!0,i=e.sketchStage.entityGraphic,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var u={x:a.x,y:a.y};o[o.length-1]=u;var l=e.view.toMap({x:u.x,y:u.y});1===e.vertexNum?s=[i.geometry.coordinates[0][0]]:2===e.vertexNum?(i.geometry.coordinates[0][2]=l.coordinates,s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)):s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2),e.vertexNum>0&&(e._snapPoint=e.getSnapGraphics(l,[i.geometry.coordinates[0][0]])),e._snapPoint&&(l=e._snapPoint),e._currentMovePoint=l,1===e.vertexNum?(i.geometry.coordinates[0][1]=l.coordinates,i.geometry.coordinates[0][2]=l.coordinates,s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-2)):2===e.vertexNum?(i.geometry.coordinates[0][2]=l.coordinates,s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-1)):(i.geometry.coordinates[0].splice(i.geometry.coordinates[0].length-1,0,l.coordinates),s=i.geometry.coordinates[0].slice(0,i.geometry.coordinates[0].length-1)),e.vertexNum++,e.sketchStage.entityGraphic=i,i.geometry.coordinates=[JSON.parse((0,n.default)(i.geometry.coordinates[0]))],d&&(e._addFeatureToLayer(i,e.layer),d=!1),r=!1;var h=e._getInteractiveDom();c=c.concat(h),e._removeInteractiveStyle(h),e._fireDrawVertexEvent(i)}},g=function(){if(clearTimeout(null),clearTimeout(null),!t)return i=null,s=[],void(o=[]);i=e.sketchStage.entityGraphic,s=[],o=[],t=!1,e.vertexNum=0,e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=l.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(c),e.fire("drawn",{geometry:i.geometry,feature:i},self),e._fireStopDrawEvent(i),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.vertexGraphics=[],e._currentMovePoint=void 0,e.undoRedoManager._initDrawProcess(),setTimeout(function(){e.view._mapActionControl("double-click-zoom",!0),e.view._mapActionControl("video-map-active",!1)},0)};this._drawEventHandlers.push(h,p,g),this.view.on(l.ViewEventType.immediateClick,h),this.view.on(l.ViewEventType.pointerMove,p),this.view.on(l.ViewEventType.doubleClick,g)}},{key:"addFeature",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=this._getFeature(e,i);r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"addFeatureByGeometry",value:function(e,t,r,n){var i;i=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var o=new l.Feature({geometry:e,symbol:i,elevationInfo:this.elevationInfo});r&&(o.attributes=r),this.sketchStage.entityGraphic=o,this._addFeatureToLayer(o,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[0,0],[0,0],[0,0]]);var t=new c.Polygon({coordinates:[e],spatialReference:this._spatialReference}),r=this.sketchStyle.fillStyle.clone(),n=new l.Feature({geometry:t,symbol:r,elevationInfo:this.elevationInfo});return n.isShowArea=this.sketchStyle.isShowArea,n.isShowArea&&(n._textStyle=this.sketchStyle.textStyle),n}},{key:"hitTestFeature",value:function(e,t){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===l.SketchEditMode.NONE?this._editMode=l.SketchEditMode.EDITGRAGIC:this._editMode===l.SketchEditMode.EDITVERTEX&&(this.view.off(l.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=l.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===l.SketchEditMode.EDITGRAGIC&&this.startPanGraphics(e,t)}},{key:"selectFeature",value:function(e){var t=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var r=e.geometry.extent,n=new d.default({view:this.view,layer:this.layer,sketchStyle:new p.default({fillStyle:this.sketchStyle._selectBoxStyle,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(n),n.addFeature([[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]],void 0,void 0,this.sketchInnerLayer),this.sketchStage.selectBoxGraphics=[n.sketchStage.entityGraphic];var i=[];if(i=[{point:new c.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new c.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new c.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new c.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var o=[{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new c.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];i=i.concat(o)}var a=[],s=[];i.forEach(function(e){var r=new f.default({view:t.view,layer:t.layer,sketchStyle:new p.default({vertexStyle:t.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});t._drawTools.push(r),r.addFeature(e.point,t.sketchStage,{direction:e.direction,type:e.type},t.sketchInnerLayer),a.push(r),s.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=s,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(a),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this._editMode),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||(this._mapClickEvent=function(){t._preventFirstCall?t._preventFirstCall=void 0:(t.sketchStage.selectBoxGraphics.concat(t.sketchStage.selectBoxVertexGraphics).concat(t.sketchStage.vertexGraphics).concat(t.sketchStage.midVertexGraphics).forEach(function(e){t._removeFeatureFromLayer(e,t.sketchInnerLayer)}),t.view.off(l.ViewEventType.immediateClick,t._mapClickEvent),t.view._mapActionControl("drag-pan",!0),t._mapClickEvent=null,t.fire("selected",{isSelected:!1},self),t.sketchStage.selectBoxGraphics=[],t.sketchStage.selectBoxVertexGraphics=[],t.sketchStage.vertexGraphics=[],t.sketchStage.midVertexGraphics=[],t._editMode=l.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(l.ViewEventType.immediateClick,this._mapClickEvent))}}},{key:"startPanGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var i=null;i=t.mapPoint;var o=!0;setTimeout(function(){o=!1},200),this._parent&&this._parent._mapClickEvent&&this.view.off(l.ViewEventType.immediateClick,this._parent._mapClickEvent);var a=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==l.SketchEditMode.EDITGRAGIC&&!o){clearTimeout(null),n=!0;var a={x:t.x,y:t.y},s=r.view.toMap({x:a.x,y:a.y}),u=s.coordinates[0]-i.coordinates[0],h=s.coordinates[1]-i.coordinates[1];if(0!==u||0!==h){var f=[];e.geometry.coordinates[0].forEach(function(e){f.push(r.getPanCoordinates(e,u,h))});var d=new c.Polygon({coordinates:[f],spatialReference:r._spatialReference});i=s,r._dispatchEvent("pan",{deltaPosition:{x:u,y:h}},r),r.updateFeature(d,e),n=!1}else n=!1}},s=function e(){!r._editMode!==l.SketchEditMode.EDITGRAGIC&&r._startPan&&(r._editMode=l.SketchEditMode.NONE,r._startPan=!1,r.view.off(l.ViewEventType.pointerMove,a),r.view.off(l.ViewEventType.pointerUp,e),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage,r._editMode),r._parent&&r._parent._mapClickEvent&&(r._parent._preventFirstCall=!0,r.view.on(l.ViewEventType.immediateClick,r._parent._mapClickEvent)),r.view._mapActionControl("drag-pan",!0))};this._hitTestEventHandlers.push(a),this._hitTestEventHandlers.push(s),this.view.on(l.ViewEventType.pointerUp,s),this.view.on(l.ViewEventType.pointerMove,a)}},{key:"_processEvent",value:function(e){"pan"===e.type?this._handlerPanEvent(e):"vertexScale"===e.type?this._handlerVertexScaleEvent(e):"midVertexScale"===e.type?this._handlerMidVertexScaleEvent(e):"circleVertexScale"===e.type?this._handlerCircleVertexScaleEvent(e):"vertexMove"===e.type?this._handlerVertexMoveEvent(e):"midVertexAdd"===e.type&&this._handlerMidVertexAddEvent(e)}},{key:"_handlerPanEvent",value:function(e){var t=this,r=[];this.sketchStage.entityGraphic.geometry.coordinates[0].forEach(function(n){r.push(t.getPanCoordinates(n,e.deltaPosition.x,e.deltaPosition.y))});var n=new c.Polygon({coordinates:[r],spatialReference:this._spatialReference});this.sketchStage.entityGraphic.geometry=n,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}},{key:"_handlerVertexScaleEvent",value:function(e){if("scale"===e.action){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.Polygon({coordinates:[i],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)})}"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_handlerMidVertexScaleEvent",value:function(e){var t;if(!this.sketchStage.entityGraphic.attributes.lastCoordinates){var r=JSON.parse((0,n.default)(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var i=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new c.Polygon({coordinates:[i],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),this._resetSelectBoxDirection())}},{key:"_resetSelectBoxDirection",value:function(){var e=this,t=this.sketchStage.entityGraphic.geometry.extent;this.sketchStage.selectBoxVertexGraphics.forEach(function(r){r.attributes&&("ne"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymax]:"se"===r.attributes.direction?r.geometry.coordinates=[t.xmax,t.ymin]:"sw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymin]:"nw"===r.attributes.direction?r.geometry.coordinates=[t.xmin,t.ymax]:"e"===r.attributes.direction?r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]):"s"===r.attributes.direction?r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]):"w"===r.attributes.direction?r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]):"n"===r.attributes.direction&&(r.geometry.coordinates=e._sketchEditor._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax])))})}},{key:"_handlerCircleVertexScaleEvent",value:function(e){if(this._parent&&this._parent.sketchStage.entityGraphic){var t,r=this._parent.sketchStage.entityGraphic.geometry.extent,n=[[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax]];(t=new c.Polygon({coordinates:[[[0,0],[0,0],[0,0],[0,0]]],spatialReference:this._spatialReference})).coordinates=[n],this.sketchStage.entityGraphic.geometry=t,this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}),"stop"===e.action&&(this.sketchStage.entityGraphic.attributes.lastCoordinates&&(this.sketchStage.entityGraphic.attributes.lastCoordinates=void 0),this._otherDrawTools&&this._otherDrawTools.forEach(function(t){t._processEvent(e)}))}}},{key:"_handlerVertexMoveEvent",value:function(e){this.sketchStage.currentVertexIndex=e.vertexIndex;var t=this.sketchStage.entityGraphic,r=t.geometry.coordinates[0];if(t.geometry.coordinates[0][e.vertexIndex]=e.movePoint.coordinates,t.geometry.coordinates[0].length-1===e.vertexIndex?t.geometry.coordinates[0][0]=e.movePoint.coordinates:0===e.vertexIndex&&(t.geometry.coordinates[0][t.geometry.coordinates[0].length-1]=e.movePoint.coordinates),t.geometry=new c.Polygon({coordinates:t.geometry.coordinates,spatialReference:this._spatialReference}),this._otherDrawTools){var n=e.vertexIndex,i=0===n?n-1+this.sketchStage.midVertexGraphics.length:n-1,o=n===this.sketchStage.midVertexGraphics.length-1?0:n+1,a=this.sketchStage.midVertexGraphics[n],s=this.sketchStage.midVertexGraphics[i],u=r[i],l=r[n],h=r[o];a.geometry.coordinates=[(h[0]+l[0])/2,(h[1]+l[1])/2],a.geometry=new c.Point({coordinates:a.geometry.coordinates,spatialReference:this._spatialReference}),s.geometry.coordinates=[(u[0]+l[0])/2,(u[1]+l[1])/2],s.geometry=new c.Point({coordinates:s.geometry.coordinates,spatialReference:this._spatialReference})}}},{key:"_handlerMidVertexAddEvent",value:function(e){var t=this;if("changeFeature"===e.action&&(this.sketchStage.entityGraphic.geometry.coordinates[0].splice(e.vertexIndex+1,0,e.point.coordinates),this.sketchStage.entityGraphic.geometry=new c.Polygon({coordinates:[this.sketchStage.entityGraphic.geometry.coordinates[0]],spatialReference:this._spatialReference})),"moveMidVertex"===e.action&&(this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+1]=e.movePoint.coordinates,this.sketchStage.entityGraphic.geometry=new c.Polygon({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"addVertex"===e.action){var r=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),n=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(n),n.addFeature(e.point),this.sketchStage.vertexGraphics.splice(e.vertexIndex+1,0,n.sketchStage.entityGraphic);var i,o=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex],a=null;this._getHight&&(a=0),i=a?new c.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2,a],spatialReference:this._spatialReference}):new c.Point({coordinates:[(o[0]+e.point.coordinates[0])/2,(o[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var s=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(s),s.addFeature(i,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,s.sketchStage.entityGraphic);var u,l=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+2],h=null;this._getHight&&(h=0),u=h?new c.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2,h],spatialReference:this._spatialReference}):new c.Point({coordinates:[(l[0]+e.point.coordinates[0])/2,(l[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var d=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(d),d.addFeature(u,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex+1,0,d.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools.forEach(function(e){e.sketchStage.entityGraphic.id===r&&t._removeFeatureFromMap(e.sketchStage.entityGraphic)}),this._otherDrawTools.push(n),this._otherDrawTools.push(s),this._otherDrawTools.push(d)}}},{key:"addMidVertex",value:function(e,t){var r=new f.default;r.addPoint(t),this.sketchStage.midVertexGraphics=r}},{key:"addVertex",value:function(e,t){var r=null;if(--t>-1){var n=[];if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){(n=this.sketchStage.entityGraphic.geometry.coordinates[0]).splice(t,0,e.coordinates),0===t?n[n.length-1]=e.coordinates:t===n.length-1&&n.splice(0,0,e.coordinates),this.sketchStage.entityGraphic.geometry.coordinates=[n],r=this.sketchStage.entityGraphic.geometry;var i=void 0,o=void 0,a=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var s=[[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin],[a.xmin,a.ymax],[(a.xmax+a.xmin)/2,a.ymax],[(a.xmax+a.xmin)/2,a.ymin],[a.xmax,(a.ymax+a.ymin)/2],[a.xmin,(a.ymax+a.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=s[t]})}if(this.sketchStage.vertexGraphics.length>0&&(i=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(i),i.addFeatureByGeometry(e),this.sketchStage.vertexGraphics.splice(t,0,i.sketchStage.entityGraphic),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})),this.sketchStage.midVertexGraphics.length>0){var u=-1,l=-1,h=null,d=null;0===t?(l=0,u=this.sketchStage.midVertexGraphics.length-1,h=this.sketchStage.entityGraphic.geometry.coordinates[0][this.sketchStage.entityGraphic.geometry.coordinates[0].length-2],d=this.sketchStage.entityGraphic.geometry.coordinates[0][1]):(u=t-1,l=t+1,h=this.sketchStage.entityGraphic.geometry.coordinates[0][u],d=this.sketchStage.entityGraphic.geometry.coordinates[0][l]);var y=new c.Point({coordinates:[(h[0]+e.coordinates[0])/2,(h[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[u].geometry.coordinates=y.coordinates;var g=new c.Point({coordinates:[(d[0]+e.coordinates[0])/2,(d[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});o=new f.default({view:this.view,layer:this.layer,sketchStyle:new p.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(o),o.addFeatureByGeometry(g,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(t,0,o.sketchStage.entityGraphic),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}})}i&&this._otherDrawTools.push(i),o&&this._otherDrawTools.push(o),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode)}return r}}},{key:"updateVertex",value:function(e,t){var r=null;if(--t>-1){if(t<this.sketchStage.entityGraphic.geometry.coordinates[0].length-1){var n=this.sketchStage.entityGraphic,i=n.geometry.coordinates[0];n.geometry.coordinates=[i],this.currentVertexIndex=t,i[t]=e.coordinates,i.length-1===t?i[0]=e.coordinates:0===t&&(i[i.length-1]=e.coordinates),n.geometry=new c.Polygon({coordinates:n.geometry.coordinates,spatialReference:this._spatialReference}),r=n.geometry;var o=n.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[o.xmax,o.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var a=[[o.xmax,o.ymax],[o.xmax,o.ymin],[o.xmin,o.ymin],[o.xmin,o.ymax],[(o.xmax+o.xmin)/2,o.ymax],[(o.xmax+o.xmin)/2,o.ymin],[o.xmax,(o.ymax+o.ymin)/2],[o.xmin,(o.ymax+o.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=a[t]})}if(this.sketchStage.vertexGraphics.length>0&&(this.sketchStage.vertexGraphics[t].geometry.coordinates=e.coordinates),this.sketchStage.midVertexGraphics.length>0){var s=t,u=0===s?s-1+this.sketchStage.midVertexGraphics.length:s-1,l=s===this.sketchStage.midVertexGraphics.length-1?0:s+1,h=this.sketchStage.midVertexGraphics[s],f=this.sketchStage.midVertexGraphics[u],d=i[u],p=i[s],y=i[l];h.geometry.coordinates=[(y[0]+p[0])/2,(y[1]+p[1])/2],h.geometry=new c.Point({coordinates:h.geometry.coordinates,spatialReference:this._spatialReference}),f.geometry.coordinates=[(d[0]+p[0])/2,(d[1]+p[1])/2],f.geometry=new c.Point({coordinates:f.geometry.coordinates,spatialReference:this._spatialReference})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode)}return r}},{key:"removeVertex",value:function(e){var t=null;if(--e>-1){var r=this.sketchStage.entityGraphic.geometry.coordinates[0].length-1;if(r>3&&e<r){var n=this.sketchStage.entityGraphic.geometry.coordinates[0];n.splice(e,1),0===e&&n.splice(n.length-1,1,n[0]),t=new c.Polygon({coordinates:[n],spatialReference:this._spatialReference}),this.sketchStage.entityGraphic.geometry=t;var i=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[i.xmax,i.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var o=[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],[(i.xmax+i.xmin)/2,i.ymax],[(i.xmax+i.xmin)/2,i.ymin],[i.xmax,(i.ymax+i.ymin)/2],[i.xmin,(i.ymax+i.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=o[t]})}if(this.sketchStage.vertexGraphics.length>0){var a=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromMap(this.sketchStage.vertexGraphics[e]),this.sketchStage.vertexGraphics.splice(e,1),this.sketchStage.vertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==a)return e})}if(this.sketchStage.midVertexGraphics.length>0){var s=[],u=-1;0===e?(s=[(t.coordinates[0][t.coordinates[0].length-2][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][t.coordinates[0].length-2][1]+t.coordinates[0][e][1])/2],u=this.sketchStage.midVertexGraphics.length-1):(s=[(t.coordinates[0][e-1][0]+t.coordinates[0][e][0])/2,(t.coordinates[0][e-1][1]+t.coordinates[0][e][1])/2],u=e-1),this.sketchStage.midVertexGraphics[u].geometry=new c.Point({coordinates:s,spatialReference:this._spatialReference});var l=this.sketchStage.vertexGraphics[e].id.toString();this._removeFeatureFromMap(this.sketchStage.midVertexGraphics[e]),this.sketchStage.midVertexGraphics.splice(e,1),this.sketchStage.midVertexGraphics.forEach(function(e,t){e.attributes?e.attributes.vertexIndex=t:e.attributes={vertexIndex:t}}),this._otherDrawTools=this._otherDrawTools.filter(function(e){if(e.sketchStage.entityGraphic.id!==l)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode)}return t}}]),t}(h.default);t.default=m},function(e,t,r){"use strict";r.r(t);var n=1,i=2,o=3,a=484813681109536e-20,s=Math.PI/2,u=.16666666666666666,l=.04722222222222222,c=.022156084656084655,h=1e-10,f=.017453292519943295,d=57.29577951308232,p=Math.PI/4,y=2*Math.PI,g=3.14159265359,m={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},v={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},_=/[\s_\-\/\(\)]/g;function S(e,t){if(e[t])return e[t];for(var r,n=Object.keys(e),i=t.toLowerCase().replace(_,""),o=-1;++o<n.length;)if((r=n[o]).toLowerCase().replace(_,"")===i)return e[r]}var x=function(e){var t,r,n,i={},o=e.split("+").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var r=t.split("=");return r.push(!0),e[r[0].toLowerCase()]=r[1],e},{}),a={proj:"projName",datum:"datumCode",rf:function(e){i.rf=parseFloat(e)},lat_0:function(e){i.lat0=e*f},lat_1:function(e){i.lat1=e*f},lat_2:function(e){i.lat2=e*f},lat_ts:function(e){i.lat_ts=e*f},lon_0:function(e){i.long0=e*f},lon_1:function(e){i.long1=e*f},lon_2:function(e){i.long2=e*f},alpha:function(e){i.alpha=parseFloat(e)*f},gamma:function(e){i.rectified_grid_angle=parseFloat(e)},lonc:function(e){i.longc=e*f},x_0:function(e){i.x0=parseFloat(e)},y_0:function(e){i.y0=parseFloat(e)},k_0:function(e){i.k0=parseFloat(e)},k:function(e){i.k0=parseFloat(e)},a:function(e){i.a=parseFloat(e)},b:function(e){i.b=parseFloat(e)},r_a:function(){i.R_A=!0},zone:function(e){i.zone=parseInt(e,10)},south:function(){i.utmSouth=!0},towgs84:function(e){i.datum_params=e.split(",").map(function(e){return parseFloat(e)})},to_meter:function(e){i.to_meter=parseFloat(e)},units:function(e){i.units=e;var t=S(v,e);t&&(i.to_meter=t.to_meter)},from_greenwich:function(e){i.from_greenwich=e*f},pm:function(e){var t=S(m,e);i.from_greenwich=(t||parseFloat(e))*f},nadgrids:function(e){"@null"===e?i.datumCode="none":i.nadgrids=e},axis:function(e){3===e.length&&-1!=="ewnsud".indexOf(e.substr(0,1))&&-1!=="ewnsud".indexOf(e.substr(1,1))&&-1!=="ewnsud".indexOf(e.substr(2,1))&&(i.axis=e)},approx:function(){i.approx=!0}};for(t in o)r=o[t],t in a?"function"==typeof(n=a[t])?n(r):i[n]=r:i[t]=r;return"string"==typeof i.datumCode&&"WGS84"!==i.datumCode&&(i.datumCode=i.datumCode.toLowerCase()),i},b=1,w=/\s/,k=/[A-Za-z]/,M=/[A-Za-z84_]/,E=/[,\]]/,I=/[\d\.E\-\+]/;function T(e){if("string"!=typeof e)throw new Error("not a string");this.text=e.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=b}function L(e,t,r){Array.isArray(t)&&(r.unshift(t),t=null);var n=t?{}:e,i=r.reduce(function(e,t){return C(t,e),e},n);t&&(e[t]=i)}function C(e,t){if(Array.isArray(e)){var r=e.shift();if("PARAMETER"===r&&(r=e.shift()),1===e.length)return Array.isArray(e[0])?(t[r]={},void C(e[0],t[r])):void(t[r]=e[0]);if(e.length)if("TOWGS84"!==r){if("AXIS"===r)return r in t||(t[r]=[]),void t[r].push(e);var n;switch(Array.isArray(r)||(t[r]={}),r){case"UNIT":case"PRIMEM":case"VERT_DATUM":return t[r]={name:e[0].toLowerCase(),convert:e[1]},void(3===e.length&&C(e[2],t[r]));case"SPHEROID":case"ELLIPSOID":return t[r]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&C(e[3],t[r]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return e[0]=["name",e[0]],void L(t,r,e);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return e[0]=["name",e[0]],L(t,r,e),void(t[r].type=r);default:for(n=-1;++n<e.length;)if(!Array.isArray(e[n]))return C(e,t[r]);return L(t,r,e)}}else t[r]=e;else t[r]=!0}else t[e]=!0}T.prototype.readCharicter=function(){var e=this.text[this.place++];if(4!==this.state)for(;w.test(e);){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case b:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},T.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(E.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},T.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=b)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=b,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},T.prototype.number=function(e){if(!I.test(e)){if(E.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},T.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},T.prototype.keyword=function(e){if(M.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=b)}if(!E.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},T.prototype.neutral=function(e){if(k.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(I.test(e))return this.word=e,void(this.state=3);if(!E.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},T.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var P=.017453292519943295,N=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function O(e){return e*P}function R(e){if(e.AUTHORITY){var t=Object.keys(e.AUTHORITY)[0];t&&t in e.AUTHORITY&&(e.title=t+":"+e.AUTHORITY[t])}if("GEOGCS"===e.type?e.projName="longlat":"LOCAL_CS"===e.type?(e.projName="identity",e.local=!0):"object"==typeof e.PROJECTION?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var r="",n=0,i=e.AXIS.length;n<i;++n){var o=[e.AXIS[n][0].toLowerCase(),e.AXIS[n][1].toLowerCase()];-1!==o[0].indexOf("north")||("y"===o[0]||"lat"===o[0])&&"north"===o[1]?r+="n":-1!==o[0].indexOf("south")||("y"===o[0]||"lat"===o[0])&&"south"===o[1]?r+="s":-1!==o[0].indexOf("east")||("x"===o[0]||"lon"===o[0])&&"east"===o[1]?r+="e":-1===o[0].indexOf("west")&&("x"!==o[0]&&"lon"!==o[0]||"west"!==o[1])||(r+="w")}2===r.length&&(r+="u"),3===r.length&&(e.axis=r)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var a=e.GEOGCS;function s(t){return t*(e.to_meter||1)}"GEOGCS"===e.type&&(a=e),a&&(a.DATUM?e.datumCode=a.DATUM.name.toLowerCase():e.datumCode=a.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_1949"===e.datumCode&&(e.datumCode="nzgd49"),"wgs_1984"!==e.datumCode&&"world_geodetic_system_1984"!==e.datumCode||("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"belge_1972"===e.datumCode&&(e.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(e.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=a.DATUM.SPHEROID.a,e.rf=parseFloat(a.DATUM.SPHEROID.rf,10)),a.DATUM&&a.DATUM.TOWGS84&&(e.datum_params=a.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),"ch1903+"===e.datumCode&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",O],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",O],["x0","false_easting",s],["y0","false_northing",s],["long0","central_meridian",O],["lat0","latitude_of_origin",O],["lat0","standard_parallel_1",O],["lat1","standard_parallel_1",O],["lat2","standard_parallel_2",O],["azimuth","Azimuth"],["alpha","azimuth",O],["srsCode","name"]].forEach(function(t){return function(e,t){var r=t[0],n=t[1];!(r in e)&&n in e&&(e[r]=e[n],3===t.length&&(e[r]=t[2](e[r])))}(e,t)}),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName?!e.lat_ts&&e.lat0&&"Polar_Stereographic"===e.projName&&(e.lat_ts=e.lat0,e.lat0=O(e.lat0>0?90:-90)):(e.lat0=O(e.lat1>0?90:-90),e.lat_ts=e.lat1)}var V=function(e){var t=function(e){return new T(e).output()}(e),r=t[0],n={};return C(t,n),function e(t){for(var r=Object.keys(t),n=0,i=r.length;n<i;++n){var o=r[n];-1!==N.indexOf(o)&&R(t[o]),"object"==typeof t[o]&&e(t[o])}}(n),n[r]};function G(e){var t=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?G[e]=x(arguments[1]):G[e]=V(arguments[1]):G[e]=r}else if(1===arguments.length){if(Array.isArray(e))return e.map(function(e){Array.isArray(e)?G.apply(t,e):G(e)});if("string"==typeof e){if(e in G)return G[e]}else"EPSG"in e?G["EPSG:"+e.EPSG]=e:"ESRI"in e?G["ESRI:"+e.ESRI]=e:"IAU2000"in e?G["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(G);var A=G,D=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"],F=["3857","900913","3785","102113"],j=function(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in A}(e))return A[e];if(function(e){return D.some(function(t){return e.indexOf(t)>-1})}(e)){var t=V(e);if(function(e){var t=S(e,"authority");if(t){var r=S(t,"epsg");return r&&F.indexOf(r)>-1}}(t))return A["EPSG:3857"];var r=function(e){var t=S(e,"extension");if(t)return S(t,"proj4")}(t);return r?x(r):t}return function(e){return"+"===e[0]}(e)?x(e):void 0},B=function(e,t){var r,n;if(e=e||{},!t)return e;for(n in t)void 0!==(r=t[n])&&(e[n]=r);return e},q=function(e,t,r){var n=e*t;return r/Math.sqrt(1-n*n)},U=function(e){return e<0?-1:1},J=function(e){return Math.abs(e)<=g?e:e-U(e)*y},z=function(e,t,r){var n=e*r,i=.5*e;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(s-t))/n},W=function(e,t){for(var r,n,i=.5*e,o=s-2*Math.atan(t),a=0;a<=15;a++)if(r=e*Math.sin(o),o+=n=s-2*Math.atan(t*Math.pow((1-r)/(1+r),i))-o,Math.abs(n)<=1e-10)return o;return-9999};function H(e){return e}var X=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=q(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var t,r,n=e.x,i=e.y;if(i*d>90&&i*d<-90&&n*d>180&&n*d<-180)return null;if(Math.abs(Math.abs(i)-s)<=h)return null;if(this.sphere)t=this.x0+this.a*this.k0*J(n-this.long0),r=this.y0+this.a*this.k0*Math.log(Math.tan(p+.5*i));else{var o=Math.sin(i),a=z(this.e,i,o);t=this.x0+this.a*this.k0*J(n-this.long0),r=this.y0-this.a*this.k0*Math.log(a)}return e.x=t,e.y=r,e},inverse:function(e){var t,r,n=e.x-this.x0,i=e.y-this.y0;if(this.sphere)r=s-2*Math.atan(Math.exp(-i/(this.a*this.k0)));else{var o=Math.exp(-i/(this.a*this.k0));if(-9999===(r=W(this.e,o)))return null}return t=J(this.long0+n/(this.a*this.k0)),e.x=t,e.y=r,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:H,inverse:H,names:["longlat","identity"]}],Y={},Z=[];function K(e,t){var r=Z.length;return e.names?(Z[r]=e,e.names.forEach(function(e){Y[e.toLowerCase()]=r}),this):(console.log(t),!0)}var Q={start:function(){X.forEach(K)},add:K,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==Y[t]&&Z[Y[t]]?Z[Y[t]]:void 0}},$={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},ee=$.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};$.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var te={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}},re=function(e,t,r,s,u,l,c){var h={};return h.datum_type=void 0===e||"none"===e?5:4,t&&(h.datum_params=t.map(parseFloat),0===h.datum_params[0]&&0===h.datum_params[1]&&0===h.datum_params[2]||(h.datum_type=n),h.datum_params.length>3&&(0===h.datum_params[3]&&0===h.datum_params[4]&&0===h.datum_params[5]&&0===h.datum_params[6]||(h.datum_type=i,h.datum_params[3]*=a,h.datum_params[4]*=a,h.datum_params[5]*=a,h.datum_params[6]=h.datum_params[6]/1e6+1))),c&&(h.datum_type=o,h.grids=c),h.a=r,h.b=s,h.es=u,h.ep2=l,h},ne={};function ie(e){if(0===e.length)return null;var t="@"===e[0];return t&&(e=e.slice(1)),"null"===e?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:ne[e]||null,isNull:!1}}function oe(e){return e/3600*Math.PI/180}function ae(e,t,r){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,r)))}function se(e){return e.map(function(e){return[oe(e.longitudeShift),oe(e.latitudeShift)]})}function ue(e,t,r){return{name:ae(e,t+8,t+16).trim(),parent:ae(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,r),upperLatitude:e.getFloat64(t+88,r),lowerLongitude:e.getFloat64(t+104,r),upperLongitude:e.getFloat64(t+120,r),latitudeInterval:e.getFloat64(t+136,r),longitudeInterval:e.getFloat64(t+152,r),gridNodeCount:e.getInt32(t+168,r)}}function le(e,t,r,n){for(var i=t+176,o=[],a=0;a<r.gridNodeCount;a++){var s={latitudeShift:e.getFloat32(i+16*a,n),longitudeShift:e.getFloat32(i+16*a+4,n),latitudeAccuracy:e.getFloat32(i+16*a+8,n),longitudeAccuracy:e.getFloat32(i+16*a+12,n)};o.push(s)}return o}function ce(e,t){if(!(this instanceof ce))return new ce(e);t=t||function(e){if(e)throw e};var r=j(e);if("object"==typeof r){var n=ce.projections.get(r.projName);if(n){if(r.datumCode&&"none"!==r.datumCode){var i=S(te,r.datumCode);i&&(r.datum_params=r.datum_params||(i.towgs84?i.towgs84.split(","):null),r.ellps=i.ellipse,r.datumName=i.datumName?i.datumName:r.datumCode)}r.k0=r.k0||1,r.axis=r.axis||"enu",r.ellps=r.ellps||"wgs84",r.lat1=r.lat1||r.lat0;var o=function(e,t,r,n,i){if(!e){var o=S($,n);o||(o=ee),e=o.a,t=o.b,r=o.rf}return r&&!t&&(t=(1-1/r)*e),(0===r||Math.abs(e-t)<h)&&(i=!0,t=e),{a:e,b:t,rf:r,sphere:i}}(r.a,r.b,r.rf,r.ellps,r.sphere),a=function(e,t,r,n){var i=e*e,o=t*t,a=(i-o)/i,s=0;return n?(i=(e*=1-a*(u+a*(l+a*c)))*e,a=0):s=Math.sqrt(a),{es:a,e:s,ep2:(i-o)/o}}(o.a,o.b,o.rf,r.R_A),s=function(e){return void 0===e?null:e.split(",").map(ie)}(r.nadgrids),f=r.datum||re(r.datumCode,r.datum_params,o.a,o.b,a.es,a.ep2,s);B(this,r),B(this,n),this.a=o.a,this.b=o.b,this.rf=o.rf,this.sphere=o.sphere,this.es=a.es,this.e=a.e,this.ep2=a.ep2,this.datum=f,this.init(),t(null,this)}else t(e)}else t(e)}ce.projections=Q,ce.projections.start();var he=ce;function fe(e,t,r){var n,i,o,a,u=e.x,l=e.y,c=e.z?e.z:0;if(l<-s&&l>-1.001*s)l=-s;else if(l>s&&l<1.001*s)l=s;else{if(l<-s)return{x:-1/0,y:-1/0,z:e.z};if(l>s)return{x:1/0,y:1/0,z:e.z}}return u>Math.PI&&(u-=2*Math.PI),i=Math.sin(l),a=Math.cos(l),o=i*i,{x:((n=r/Math.sqrt(1-t*o))+c)*a*Math.cos(u),y:(n+c)*a*Math.sin(u),z:(n*(1-t)+c)*i}}function de(e,t,r,n){var i,o,a,s,u,l,c,h,f,d,p,y,g,m,v,_=e.x,S=e.y,x=e.z?e.z:0;if(i=Math.sqrt(_*_+S*S),o=Math.sqrt(_*_+S*S+x*x),i/r<1e-12){if(m=0,o/r<1e-12)return v=-n,{x:e.x,y:e.y,z:e.z}}else m=Math.atan2(S,_);a=x/o,h=(s=i/o)*(1-t)*(u=1/Math.sqrt(1-t*(2-t)*s*s)),f=a*u,g=0;do{g++,l=t*(c=r/Math.sqrt(1-t*f*f))/(c+(v=i*h+x*f-c*(1-t*f*f))),y=(p=a*(u=1/Math.sqrt(1-l*(2-l)*s*s)))*h-(d=s*(1-l)*u)*f,h=d,f=p}while(y*y>1e-24&&g<30);return{x:m,y:Math.atan(p/Math.abs(d)),z:v}}function pe(e){return e===n||e===i}var ye=function(e,t,r){if(function(e,t){return e.datum_type===t.datum_type&&!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(e.datum_type===n?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type!==i||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6])}(e,t))return r;if(5===e.datum_type||5===t.datum_type)return r;var a=e.a,s=e.es;if(e.datum_type===o){if(0!==ge(e,!1,r))return;a=6378137,s=.0066943799901413165}var u=t.a,l=t.b,c=t.es;return t.datum_type===o&&(u=6378137,l=6356752.314,c=.0066943799901413165),s!==c||a!==u||pe(e.datum_type)||pe(t.datum_type)?(r=fe(r,s,a),pe(e.datum_type)&&(r=function(e,t,r){if(t===n)return{x:e.x+r[0],y:e.y+r[1],z:e.z+r[2]};if(t===i){var o=r[0],a=r[1],s=r[2],u=r[3],l=r[4],c=r[5],h=r[6];return{x:h*(e.x-c*e.y+l*e.z)+o,y:h*(c*e.x+e.y-u*e.z)+a,z:h*(-l*e.x+u*e.y+e.z)+s}}}(r,e.datum_type,e.datum_params)),pe(t.datum_type)&&(r=function(e,t,r){if(t===n)return{x:e.x-r[0],y:e.y-r[1],z:e.z-r[2]};if(t===i){var o=r[0],a=r[1],s=r[2],u=r[3],l=r[4],c=r[5],h=r[6],f=(e.x-o)/h,d=(e.y-a)/h,p=(e.z-s)/h;return{x:f+c*d-l*p,y:-c*f+d+u*p,z:l*f-u*d+p}}}(r,t.datum_type,t.datum_params)),r=de(r,c,u,l),t.datum_type!==o||0===ge(t,!0,r)?r:void 0):r};function ge(e,t,r){if(null===e.grids||0===e.grids.length)return console.log("Grid shift grids not found"),-1;for(var n={x:-r.x,y:r.y},i={x:Number.NaN,y:Number.NaN},o=[],a=0;a<e.grids.length;a++){var s=e.grids[a];if(o.push(s.name),s.isNull){i=n;break}if(s.mandatory,null!==s.grid){var u=s.grid.subgrids[0],l=(Math.abs(u.del[1])+Math.abs(u.del[0]))/1e4,c=u.ll[0]-l,h=u.ll[1]-l,f=u.ll[0]+(u.lim[0]-1)*u.del[0]+l,p=u.ll[1]+(u.lim[1]-1)*u.del[1]+l;if(!(h>n.y||c>n.x||p<n.y||f<n.x||(i=me(n,t,u),isNaN(i.x))))break}else if(s.mandatory)return console.log("Unable to find mandatory grid '"+s.name+"'"),-1}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-n.x*d+" "+n.y*d+" tried: '"+o+"'"),-1):(r.x=-i.x,r.y=i.y,0)}function me(e,t,r){var n={x:Number.NaN,y:Number.NaN};if(isNaN(e.x))return n;var i={x:e.x,y:e.y};i.x-=r.ll[0],i.y-=r.ll[1],i.x=J(i.x-Math.PI)+Math.PI;var o=ve(i,r);if(t){if(isNaN(o.x))return n;o.x=i.x-o.x,o.y=i.y-o.y;var a,s,u=9;do{if(s=ve(o,r),isNaN(s.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}a={x:i.x-(s.x+o.x),y:i.y-(s.y+o.y)},o.x+=a.x,o.y+=a.y}while(u--&&Math.abs(a.x)>1e-12&&Math.abs(a.y)>1e-12);if(u<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=J(o.x+r.ll[0]),n.y=o.y+r.ll[1]}else isNaN(o.x)||(n.x=e.x+o.x,n.y=e.y+o.y);return n}function ve(e,t){var r,n={x:e.x/t.del[0],y:e.y/t.del[1]},i=Math.floor(n.x),o=Math.floor(n.y),a=n.x-1*i,s=n.y-1*o,u={x:Number.NaN,y:Number.NaN};if(i<0||i>=t.lim[0])return u;if(o<0||o>=t.lim[1])return u;r=o*t.lim[0]+i;var l=t.cvs[r][0],c=t.cvs[r][1];r++;var h=t.cvs[r][0],f=t.cvs[r][1];r+=t.lim[0];var d=t.cvs[r][0],p=t.cvs[r][1];r--;var y=t.cvs[r][0],g=t.cvs[r][1],m=a*s,v=a*(1-s),_=(1-a)*(1-s),S=(1-a)*s;return u.x=_*l+v*h+S*y+m*d,u.y=_*c+v*f+S*g+m*p,u}var _e=function(e,t,r){var n,i,o,a=r.x,s=r.y,u=r.z||0,l={};for(o=0;o<3;o++)if(!t||2!==o||void 0!==r.z)switch(0===o?(n=a,i=-1!=="ew".indexOf(e.axis[o])?"x":"y"):1===o?(n=s,i=-1!=="ns".indexOf(e.axis[o])?"y":"x"):(n=u,i="z"),e.axis[o]){case"e":l[i]=n;break;case"w":l[i]=-n;break;case"n":l[i]=n;break;case"s":l[i]=-n;break;case"u":void 0!==r[i]&&(l.z=n);break;case"d":void 0!==r[i]&&(l.z=-n);break;default:return null}return l},Se=function(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t},xe=function(e){be(e.x),be(e.y)};function be(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function we(e,t,r,a){var s,u=void 0!==(r=Array.isArray(r)?Se(r):{x:r.x,y:r.y,z:r.z,m:r.m}).z;if(xe(r),e.datum&&t.datum&&function(e,t){return(e.datum.datum_type===n||e.datum.datum_type===i||e.datum.datum_type===o)&&"WGS84"!==t.datumCode||(t.datum.datum_type===n||t.datum.datum_type===i||t.datum.datum_type===o)&&"WGS84"!==e.datumCode}(e,t)&&(r=we(e,s=new he("WGS84"),r,a),e=s),a&&"enu"!==e.axis&&(r=_e(e,!1,r)),"longlat"===e.projName)r={x:r.x*f,y:r.y*f,z:r.z||0};else if(e.to_meter&&(r={x:r.x*e.to_meter,y:r.y*e.to_meter,z:r.z||0}),!(r=e.inverse(r)))return;if(e.from_greenwich&&(r.x+=e.from_greenwich),r=ye(e.datum,t.datum,r))return t.from_greenwich&&(r={x:r.x-t.from_greenwich,y:r.y,z:r.z||0}),"longlat"===t.projName?r={x:r.x*d,y:r.y*d,z:r.z||0}:(r=t.forward(r),t.to_meter&&(r={x:r.x/t.to_meter,y:r.y/t.to_meter,z:r.z||0})),a&&"enu"!==t.axis?_e(t,!0,r):(u||delete r.z,r)}var ke=he("WGS84");function Me(e,t,r,n){var i,o,a;return Array.isArray(r)?(i=we(e,t,r,n)||{x:NaN,y:NaN},r.length>2?void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name?"number"==typeof i.z?[i.x,i.y,i.z].concat(r.splice(3)):[i.x,i.y,r[2]].concat(r.splice(3)):[i.x,i.y].concat(r.splice(2)):[i.x,i.y]):(o=we(e,t,r,n),2===(a=Object.keys(r)).length?o:(a.forEach(function(n){if(void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name){if("x"===n||"y"===n||"z"===n)return}else if("x"===n||"y"===n)return;o[n]=r[n]}),o))}function Ee(e){return e instanceof he?e:e.oProj?e.oProj:he(e)}var Ie=function(e,t,r){e=Ee(e);var n,i=!1;return void 0===t?(t=e,e=ke,i=!0):(void 0!==t.x||Array.isArray(t))&&(r=t,t=e,e=ke,i=!0),t=Ee(t),r?Me(e,t,r):(n={forward:function(r,n){return Me(e,t,r,n)},inverse:function(r,n){return Me(t,e,r,n)}},i&&(n.oProj=t),n)},Te=6,Le="AJSAJS",Ce="AFAFAF",Pe=65,Ne=73,Oe=79,Re=86,Ve=90,Ge={forward:Ae,inverse:function(e){var t=Be(Ue(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]},toPoint:De};function Ae(e,t){return t=t||5,function(e,t){var r="00000"+e.easting,n="00000"+e.northing;return e.zoneNumber+e.zoneLetter+function(e,t,r){var n=qe(r);return function(e,t,r){var n=r-1,i=Le.charCodeAt(n),o=Ce.charCodeAt(n),a=i+e-1,s=o+t,u=!1;return a>Ve&&(a=a-Ve+Pe-1,u=!0),(a===Ne||i<Ne&&a>Ne||(a>Ne||i<Ne)&&u)&&a++,(a===Oe||i<Oe&&a>Oe||(a>Oe||i<Oe)&&u)&&++a===Ne&&a++,a>Ve&&(a=a-Ve+Pe-1),s>Re?(s=s-Re+Pe-1,u=!0):u=!1,(s===Ne||o<Ne&&s>Ne||(s>Ne||o<Ne)&&u)&&s++,(s===Oe||o<Oe&&s>Oe||(s>Oe||o<Oe)&&u)&&++s===Ne&&s++,s>Re&&(s=s-Re+Pe-1),String.fromCharCode(a)+String.fromCharCode(s)}(Math.floor(e/1e5),Math.floor(t/1e5)%20,n)}(e.easting,e.northing,e.zoneNumber)+r.substr(r.length-5,t)+n.substr(n.length-5,t)}(function(e){var t,r,n,i,o,a,s=e.lat,u=e.lon,l=6378137,c=Fe(s),h=Fe(u);a=Math.floor((u+180)/6)+1,180===u&&(a=60),s>=56&&s<64&&u>=3&&u<12&&(a=32),s>=72&&s<84&&(u>=0&&u<9?a=31:u>=9&&u<21?a=33:u>=21&&u<33?a=35:u>=33&&u<42&&(a=37)),o=Fe(6*(a-1)-180+3),t=l/Math.sqrt(1-.00669438*Math.sin(c)*Math.sin(c)),r=Math.tan(c)*Math.tan(c),n=.006739496752268451*Math.cos(c)*Math.cos(c);var f=.9996*t*((i=Math.cos(c)*(h-o))+(1-r+n)*i*i*i/6+(5-18*r+r*r+72*n-.39089081163157013)*i*i*i*i*i/120)+5e5,d=.9996*(l*(.9983242984503243*c-.002514607064228144*Math.sin(2*c)+2639046602129982e-21*Math.sin(4*c)-3.418046101696858e-9*Math.sin(6*c))+t*Math.tan(c)*(i*i/2+(5-r+9*n+4*n*n)*i*i*i*i/24+(61-58*r+r*r+600*n-2.2240339282485886)*i*i*i*i*i*i/720));return s<0&&(d+=1e7),{northing:Math.round(d),easting:Math.round(f),zoneNumber:a,zoneLetter:function(e){var t="Z";return 84>=s&&s>=72?t="X":72>s&&s>=64?t="W":64>s&&s>=56?t="V":56>s&&s>=48?t="U":48>s&&s>=40?t="T":40>s&&s>=32?t="S":32>s&&s>=24?t="R":24>s&&s>=16?t="Q":16>s&&s>=8?t="P":8>s&&s>=0?t="N":0>s&&s>=-8?t="M":-8>s&&s>=-16?t="L":-16>s&&s>=-24?t="K":-24>s&&s>=-32?t="J":-32>s&&s>=-40?t="H":-40>s&&s>=-48?t="G":-48>s&&s>=-56?t="F":-56>s&&s>=-64?t="E":-64>s&&s>=-72?t="D":-72>s&&s>=-80&&(t="C"),t}()}}({lat:e[1],lon:e[0]}),t)}function De(e){var t=Be(Ue(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function Fe(e){return e*(Math.PI/180)}function je(e){return e/Math.PI*180}function Be(e){var t=e.northing,r=e.easting,n=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var o,a,s,u,l,c,h,f,d=6378137,p=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),y=r-5e5,g=t;n<"N"&&(g-=1e7),c=6*(i-1)-180+3,f=(h=g/.9996/6367449.145945056)+(3*p/2-27*p*p*p/32)*Math.sin(2*h)+(21*p*p/16-55*p*p*p*p/32)*Math.sin(4*h)+151*p*p*p/96*Math.sin(6*h),o=d/Math.sqrt(1-.00669438*Math.sin(f)*Math.sin(f)),a=Math.tan(f)*Math.tan(f),s=.006739496752268451*Math.cos(f)*Math.cos(f),u=.99330562*d/Math.pow(1-.00669438*Math.sin(f)*Math.sin(f),1.5),l=y/(.9996*o);var m=f-o*Math.tan(f)/u*(l*l/2-(5+3*a+10*s-4*s*s-.06065547077041606)*l*l*l*l/24+(61+90*a+298*s+45*a*a-1.6983531815716497-3*s*s)*l*l*l*l*l*l/720);m=je(m);var v,_=(l-(1+2*a+s)*l*l*l/6+(5-2*s+28*a-3*s*s+.05391597401814761+24*a*a)*l*l*l*l*l/120)/Math.cos(f);if(_=c+je(_),e.accuracy){var S=Be({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});v={top:S.lat,right:S.lon,bottom:m,left:_}}else v={lat:m,lon:_};return v}function qe(e){var t=e%Te;return 0===t&&(t=Te),t}function Ue(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,r=e.length,n=null,i="",o=0;!/[A-Z]/.test(t=e.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+e;i+=t,o++}var a=parseInt(i,10);if(0===o||o+3>r)throw"MGRSPoint bad conversion from: "+e;var s=e.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+e;n=e.substring(o,o+=2);for(var u=qe(a),l=function(e,t){for(var r=Le.charCodeAt(t-1),n=1e5,i=!1;r!==e.charCodeAt(0);){if(++r===Ne&&r++,r===Oe&&r++,r>Ve){if(i)throw"Bad character: "+e;r=Pe,i=!0}n+=1e5}return n}(n.charAt(0),u),c=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var r=Ce.charCodeAt(t-1),n=0,i=!1;r!==e.charCodeAt(0);){if(++r===Ne&&r++,r===Oe&&r++,r>Re){if(i)throw"Bad character: "+e;r=Pe,i=!0}n+=1e5}return n}(n.charAt(1),u);c<Je(s);)c+=2e6;var h=r-o;if(h%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+e;var f,d,p,y=h/2,g=0,m=0;return y>0&&(f=1e5/Math.pow(10,y),d=e.substring(o,o+y),g=parseFloat(d)*f,p=e.substring(o+y),m=parseFloat(p)*f),{easting:g+l,northing:m+c,zoneLetter:s,zoneNumber:a,accuracy:f}}function Je(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function ze(e,t,r){if(!(this instanceof ze))return new ze(e,t,r);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var n=e.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=e,this.y=t,this.z=r||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}ze.fromMGRS=function(e){return new ze(De(e))},ze.prototype.toMGRS=function(e){return Ae([this.x,this.y],e)};var We=ze,He=.01068115234375,Xe=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*He))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*He)));var r=e*e;return t[2]=r*(.46875-e*(.013020833333333334+.007120768229166667*e)),r*=e,t[3]=r*(.3645833333333333-.005696614583333333*e),t[4]=r*e*.3076171875,t},Ye=function(e,t,r,n){return r*=t,t*=t,n[0]*e-r*(n[1]+t*(n[2]+t*(n[3]+t*n[4])))},Ze=function(e,t,r){for(var n=1/(1-t),i=e,o=20;o;--o){var a=Math.sin(i),s=1-t*a*a;if(i-=s=(Ye(i,a,Math.cos(i),r)-e)*(s*Math.sqrt(s))*n,Math.abs(s)<h)return i}return i},Ke={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=Xe(this.es),this.ml0=Ye(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,r,n,i=e.x,o=e.y,a=J(i-this.long0),s=Math.sin(o),u=Math.cos(o);if(this.es){var l=u*a,c=Math.pow(l,2),f=this.ep2*Math.pow(u,2),d=Math.pow(f,2),p=Math.abs(u)>h?Math.tan(o):0,y=Math.pow(p,2),g=Math.pow(y,2);t=1-this.es*Math.pow(s,2),l/=Math.sqrt(t);var m=Ye(o,s,u,this.en);r=this.a*(this.k0*l*(1+c/6*(1-y+f+c/20*(5-18*y+g+14*f-58*y*f+c/42*(61+179*g-g*y-479*y)))))+this.x0,n=this.a*(this.k0*(m-this.ml0+s*a*l/2*(1+c/12*(5-y+9*f+4*d+c/30*(61+g-58*y+270*f-330*y*f+c/56*(1385+543*g-g*y-3111*y))))))+this.y0}else{var v=u*Math.sin(a);if(Math.abs(Math.abs(v)-1)<h)return 93;if(r=.5*this.a*this.k0*Math.log((1+v)/(1-v))+this.x0,n=u*Math.cos(a)/Math.sqrt(1-Math.pow(v,2)),(v=Math.abs(n))>=1){if(v-1>h)return 93;n=0}else n=Math.acos(n);o<0&&(n=-n),n=this.a*this.k0*(n-this.lat0)+this.y0}return e.x=r,e.y=n,e},inverse:function(e){var t,r,n,i,o=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+a/this.k0,r=Ze(t,this.es,this.en),Math.abs(r)<s){var u=Math.sin(r),l=Math.cos(r),c=Math.abs(l)>h?Math.tan(r):0,f=this.ep2*Math.pow(l,2),d=Math.pow(f,2),p=Math.pow(c,2),y=Math.pow(p,2);t=1-this.es*Math.pow(u,2);var g=o*Math.sqrt(t)/this.k0,m=Math.pow(g,2);n=r-(t*=c)*m/(1-this.es)*.5*(1-m/12*(5+3*p-9*f*p+f-4*d-m/30*(61+90*p-252*f*p+45*y+46*f-m/56*(1385+3633*p+4095*y+1574*y*p)))),i=J(this.long0+g*(1-m/6*(1+2*p+f-m/20*(5+28*p+24*y+8*f*p+6*f-m/42*(61+662*p+1320*y+720*y*p))))/l)}else n=s*U(a),i=0;else{var v=Math.exp(o/this.k0),_=.5*(v-1/v),S=this.lat0+a/this.k0,x=Math.cos(S);t=Math.sqrt((1-Math.pow(x,2))/(1+Math.pow(_,2))),n=Math.asin(t),a<0&&(n=-n),i=0===_&&0===x?0:J(Math.atan2(_,x)+this.long0)}return e.x=i,e.y=n,e},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]},Qe=function(e){var t=Math.exp(e);return(t-1/t)/2},$e=function(e,t){e=Math.abs(e),t=Math.abs(t);var r=Math.max(e,t),n=Math.min(e,t)/(r||1);return r*Math.sqrt(1+Math.pow(n,2))},et=function(e,t){for(var r,n=2*Math.cos(2*t),i=e.length-1,o=e[i],a=0;--i>=0;)r=n*o-a+e[i],a=o,o=r;return t+r*Math.sin(2*t)},tt=function(e,t,r){for(var n,i,o=Math.sin(t),a=Math.cos(t),s=Qe(r),u=function(e){var t=Math.exp(e);return(t+1/t)/2}(r),l=2*a*u,c=-2*o*s,h=e.length-1,f=e[h],d=0,p=0,y=0;--h>=0;)n=p,i=d,f=l*(p=f)-n-c*(d=y)+e[h],y=c*p-i+l*d;return[(l=o*u)*f-(c=a*s)*y,l*y+c*f]},rt={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(Ke.init.apply(this),this.forward=Ke.forward,this.inverse=Ke.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),r=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),r*=t,this.cgb[1]=r*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=r*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),r*=t,this.cgb[2]=r*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=r*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),r*=t,this.cgb[3]=r*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=r*(1237/630+t*(t*(-24832/14175)-2.4)),r*=t,this.cgb[4]=r*(4174/315+t*(-144838/6237)),this.cbg[4]=r*(-734/315+t*(109598/31185)),r*=t,this.cgb[5]=r*(601676/22275),this.cbg[5]=r*(444337/155925),r=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+r*(.25+r*(1/64+r/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=r*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=r*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),r*=t,this.utg[2]=r*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=r*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),r*=t,this.utg[3]=r*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=r*(49561/161280+t*(-179/168+t*(6601661/7257600))),r*=t,this.utg[4]=r*(-4583/161280+t*(108847/3991680)),this.gtu[4]=r*(34729/80640+t*(-3418889/1995840)),r*=t,this.utg[5]=-.03233083094085698*r,this.gtu[5]=.6650675310896665*r;var n=et(this.cbg,this.lat0);this.Zb=-this.Qn*(n+function(e,t){for(var r,n=2*Math.cos(t),i=e.length-1,o=e[i],a=0;--i>=0;)r=n*o-a+e[i],a=o,o=r;return Math.sin(t)*r}(this.gtu,2*n))},forward:function(e){var t=J(e.x-this.long0),r=e.y;r=et(this.cbg,r);var n=Math.sin(r),i=Math.cos(r),o=Math.sin(t),a=Math.cos(t);r=Math.atan2(n,a*i),t=Math.atan2(o*i,$e(n,i*a)),t=function(e){var t=Math.abs(e);return t=function(e){var t=1+e,r=t-1;return 0===r?e:e*Math.log(t)/r}(t*(1+t/($e(1,t)+1))),e<0?-t:t}(Math.tan(t));var s,u,l=tt(this.gtu,2*r,2*t);return r+=l[0],t+=l[1],Math.abs(t)<=2.623395162778?(s=this.a*(this.Qn*t)+this.x0,u=this.a*(this.Qn*r+this.Zb)+this.y0):(s=1/0,u=1/0),e.x=s,e.y=u,e},inverse:function(e){var t,r,n=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,n/=this.Qn,Math.abs(n)<=2.623395162778){var o=tt(this.utg,2*i,2*n);i+=o[0],n+=o[1],n=Math.atan(Qe(n));var a=Math.sin(i),s=Math.cos(i),u=Math.sin(n),l=Math.cos(n);i=Math.atan2(a*l,$e(u,l*s)),n=Math.atan2(u,l*s),t=J(n+this.long0),r=et(this.cgb,i)}else t=1/0,r=1/0;return e.x=t,e.y=r,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"]},nt={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(J(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*f,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,rt.init.apply(this),this.forward=rt.forward,this.inverse=rt.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"},it=function(e,t){return Math.pow((1-e)/(1+e),t)},ot={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+p)/(Math.pow(Math.tan(.5*this.lat0+p),this.C)*it(this.e*e,this.ratexp))},forward:function(e){var t=e.x,r=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+p),this.C)*it(this.e*Math.sin(r),this.ratexp))-s,e.x=this.C*t,e},inverse:function(e){for(var t=e.x/this.C,r=e.y,n=Math.pow(Math.tan(.5*r+p)/this.K,1/this.C),i=20;i>0&&(r=2*Math.atan(n*it(this.e*Math.sin(e.y),-.5*this.e))-s,!(Math.abs(r-e.y)<1e-14));--i)e.y=r;return i?(e.x=t,e.y=r,e):null},names:["gauss"]},at={init:function(){ot.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,r,n,i;return e.x=J(e.x-this.long0),ot.forward.apply(this,[e]),t=Math.sin(e.y),r=Math.cos(e.y),n=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*r*n),e.x=i*r*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*r*n),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,r,n,i,o;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,o=Math.sqrt(e.x*e.x+e.y*e.y)){var a=2*Math.atan2(o,this.R2);t=Math.sin(a),r=Math.cos(a),i=Math.asin(r*this.sinc0+e.y*t*this.cosc0/o),n=Math.atan2(e.x*t,o*this.cosc0*r-e.y*this.sinc0*t)}else i=this.phic0,n=0;return e.x=n,e.y=i,ot.inverse.apply(this,[e]),e.x=J(e.x+this.long0),e},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]},st={init:function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=h&&(this.k0=.5*(1+U(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=h&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=h&&(this.k0=.5*this.cons*q(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/z(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=q(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-s,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var t,r,n,i,o,a,u=e.x,l=e.y,c=Math.sin(l),f=Math.cos(l),d=J(u-this.long0);return Math.abs(Math.abs(u-this.long0)-Math.PI)<=h&&Math.abs(l+this.lat0)<=h?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*c+this.coslat0*f*Math.cos(d)),e.x=this.a*t*f*Math.sin(d)+this.x0,e.y=this.a*t*(this.coslat0*c-this.sinlat0*f*Math.cos(d))+this.y0,e):(r=2*Math.atan(this.ssfn_(l,c,this.e))-s,i=Math.cos(r),n=Math.sin(r),Math.abs(this.coslat0)<=h?(o=z(this.e,l*this.con,this.con*c),a=2*this.a*this.k0*o/this.cons,e.x=this.x0+a*Math.sin(u-this.long0),e.y=this.y0-this.con*a*Math.cos(u-this.long0),e):(Math.abs(this.sinlat0)<h?(t=2*this.a*this.k0/(1+i*Math.cos(d)),e.y=t*n):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*n+this.cosX0*i*Math.cos(d))),e.y=t*(this.cosX0*n-this.sinX0*i*Math.cos(d))+this.y0),e.x=t*i*Math.sin(d)+this.x0,e))},inverse:function(e){var t,r,n,i,o;e.x-=this.x0,e.y-=this.y0;var a=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var u=2*Math.atan(a/(2*this.a*this.k0));return t=this.long0,r=this.lat0,a<=h?(e.x=t,e.y=r,e):(r=Math.asin(Math.cos(u)*this.sinlat0+e.y*Math.sin(u)*this.coslat0/a),t=Math.abs(this.coslat0)<h?this.lat0>0?J(this.long0+Math.atan2(e.x,-1*e.y)):J(this.long0+Math.atan2(e.x,e.y)):J(this.long0+Math.atan2(e.x*Math.sin(u),a*this.coslat0*Math.cos(u)-e.y*this.sinlat0*Math.sin(u))),e.x=t,e.y=r,e)}if(Math.abs(this.coslat0)<=h){if(a<=h)return r=this.lat0,t=this.long0,e.x=t,e.y=r,e;e.x*=this.con,e.y*=this.con,n=a*this.cons/(2*this.a*this.k0),r=this.con*W(this.e,n),t=this.con*J(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else i=2*Math.atan(a*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,a<=h?o=this.X0:(o=Math.asin(Math.cos(i)*this.sinX0+e.y*Math.sin(i)*this.cosX0/a),t=J(this.long0+Math.atan2(e.x*Math.sin(i),a*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)))),r=-1*W(this.e,Math.tan(.5*(s+o)));return e.x=t,e.y=r,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function(e,t,r){return t*=r,Math.tan(.5*(s+e))*Math.pow((1-t)/(1+t),.5*r)}},ut={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),r=this.a,n=1/this.rf,i=2*n-Math.pow(n,2),o=this.e=Math.sqrt(i);this.R=this.k0*r*Math.sqrt(1-i)/(1-i*Math.pow(t,2)),this.alpha=Math.sqrt(1+i/(1-i)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+e/2)),u=Math.log((1+o*t)/(1-o*t));this.K=a-this.alpha*s+this.alpha*o/2*u},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),r=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),n=-this.alpha*(t+r)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),o=this.alpha*(e.x-this.lambda0),a=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(o))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(o));return e.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,e.x=this.R*a+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,r=e.y-this.y0,n=t/this.R,i=2*(Math.atan(Math.exp(r/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),a=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+a/this.alpha,u=0,l=o,c=-1e3,h=0;Math.abs(l-c)>1e-7;){if(++h>20)return;u=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),c=l,l=2*Math.atan(Math.exp(u))-Math.PI/2}return e.x=s,e.y=l,e},names:["somerc"]},lt=1e-7,ct={init:function(){var e,t,r,n,i,o,a,u,l,c,d,g=0,m=0,v=0,_=0,S=0,x=0,b=0;this.no_off=function(e){var t="object"==typeof e.PROJECTION?Object.keys(e.PROJECTION)[0]:e.PROJECTION;return"no_uoff"in e||"no_off"in e||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(t)}(this),this.no_rot="no_rot"in this;var w=!1;"alpha"in this&&(w=!0);var k=!1;if("rectified_grid_angle"in this&&(k=!0),w&&(b=this.alpha),k&&(g=this.rectified_grid_angle*f),w||k)m=this.longc;else if(v=this.long1,S=this.lat1,_=this.long2,x=this.lat2,Math.abs(S-x)<=lt||(e=Math.abs(S))<=lt||Math.abs(e-s)<=lt||Math.abs(Math.abs(this.lat0)-s)<=lt||Math.abs(Math.abs(x)-s)<=lt)throw new Error;var M=1-this.es;t=Math.sqrt(M),Math.abs(this.lat0)>h?(u=Math.sin(this.lat0),r=Math.cos(this.lat0),e=1-this.es*u*u,this.B=r*r,this.B=Math.sqrt(1+this.es*this.B*this.B/M),this.A=this.B*this.k0*t/e,(i=(n=this.B*t/(r*Math.sqrt(e)))*n-1)<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=n,this.E*=Math.pow(z(this.e,this.lat0,u),this.B)):(this.B=1/t,this.A=this.k0,this.E=n=i=1),w||k?(w?(d=Math.asin(Math.sin(b)/n),k||(g=b)):(d=g,b=Math.asin(n*Math.sin(d))),this.lam0=m-Math.asin(.5*(i-1/i)*Math.tan(d))/this.B):(o=Math.pow(z(this.e,S,Math.sin(S)),this.B),a=Math.pow(z(this.e,x,Math.sin(x)),this.B),i=this.E/o,l=(a-o)/(a+o),c=((c=this.E*this.E)-a*o)/(c+a*o),(e=v-_)<-Math.pi?_-=y:e>Math.pi&&(_+=y),this.lam0=J(.5*(v+_)-Math.atan(c*Math.tan(.5*this.B*(v-_))/l)/this.B),d=Math.atan(2*Math.sin(this.B*J(v-this.lam0))/(i-1/i)),g=b=Math.asin(n*Math.sin(d))),this.singam=Math.sin(d),this.cosgam=Math.cos(d),this.sinrot=Math.sin(g),this.cosrot=Math.cos(g),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(b))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*d,this.v_pole_n=this.ArB*Math.log(Math.tan(p-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(p+i))},forward:function(e){var t,r,n,i,o,a,u,l,c={};if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-s)>h){if(t=.5*((o=this.E/Math.pow(z(this.e,e.y,Math.sin(e.y)),this.B))-(a=1/o)),r=.5*(o+a),i=Math.sin(this.B*e.x),n=(t*this.singam-i*this.cosgam)/r,Math.abs(Math.abs(n)-1)<h)throw new Error;l=.5*this.ArB*Math.log((1-n)/(1+n)),a=Math.cos(this.B*e.x),u=Math.abs(a)<lt?this.A*e.x:this.ArB*Math.atan2(t*this.cosgam+i*this.singam,a)}else l=e.y>0?this.v_pole_n:this.v_pole_s,u=this.ArB*e.y;return this.no_rot?(c.x=u,c.y=l):(u-=this.u_0,c.x=l*this.cosrot+u*this.sinrot,c.y=u*this.cosrot-l*this.sinrot),c.x=this.a*c.x+this.x0,c.y=this.a*c.y+this.y0,c},inverse:function(e){var t,r,n,i,o,a,u,l={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(r=e.y,t=e.x):(r=e.x*this.cosrot-e.y*this.sinrot,t=e.y*this.cosrot+e.x*this.sinrot+this.u_0),i=.5*((n=Math.exp(-this.BrA*r))-1/n),o=.5*(n+1/n),u=((a=Math.sin(this.BrA*t))*this.cosgam+i*this.singam)/o,Math.abs(Math.abs(u)-1)<h)l.x=0,l.y=u<0?-s:s;else{if(l.y=this.E/Math.sqrt((1+u)/(1-u)),l.y=W(this.e,Math.pow(l.y,1/this.B)),l.y===1/0)throw new Error;l.x=-this.rB*Math.atan2(i*this.cosgam-a*this.singam,Math.cos(this.BrA*t))}return l.x+=this.lam0,l},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]},ht={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<h)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),r=Math.cos(this.lat1),n=q(this.e,t,r),i=z(this.e,this.lat1,t),o=Math.sin(this.lat2),a=Math.cos(this.lat2),s=q(this.e,o,a),u=z(this.e,this.lat2,o),l=z(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>h?this.ns=Math.log(n/s)/Math.log(i/u):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var t=e.x,r=e.y;Math.abs(2*Math.abs(r)-Math.PI)<=h&&(r=U(r)*(s-2*h));var n,i,o=Math.abs(Math.abs(r)-s);if(o>h)n=z(this.e,r,Math.sin(r)),i=this.a*this.f0*Math.pow(n,this.ns);else{if((o=r*this.ns)<=0)return null;i=0}var a=this.ns*J(t-this.long0);return e.x=this.k0*(i*Math.sin(a))+this.x0,e.y=this.k0*(this.rh-i*Math.cos(a))+this.y0,e},inverse:function(e){var t,r,n,i,o,a=(e.x-this.x0)/this.k0,u=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(a*a+u*u),r=1):(t=-Math.sqrt(a*a+u*u),r=-1);var l=0;if(0!==t&&(l=Math.atan2(r*a,r*u)),0!==t||this.ns>0){if(r=1/this.ns,n=Math.pow(t/(this.a*this.f0),r),-9999===(i=W(this.e,n)))return null}else i=-s;return o=J(l/this.ns+this.long0),e.x=o,e.y=i,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]},ft={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,r,n,i,o,a,s,u=e.x,l=e.y,c=J(u-this.long0);return t=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),r=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/t)-this.s45),n=-c*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(r)+Math.sin(this.ad)*Math.cos(r)*Math.cos(n)),o=Math.asin(Math.cos(r)*Math.sin(n)/Math.cos(i)),a=this.n*o,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=s*Math.cos(a)/1,e.x=s*Math.sin(a)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,r,n,i,o,a,s,u=e.x;e.x=e.y,e.y=u,this.czech||(e.y*=-1,e.x*=-1),o=Math.sqrt(e.x*e.x+e.y*e.y),i=Math.atan2(e.y,e.x)/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),r=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(t)),e.x=this.long0-r/this.alfa,a=t,s=0;var l=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-e.y)<1e-10&&(s=1),a=e.y,l+=1}while(0===s&&l<15);return l>=15?null:e},names:["Krovak","krovak"]},dt=function(e,t,r,n,i){return e*i-t*Math.sin(2*i)+r*Math.sin(4*i)-n*Math.sin(6*i)},pt=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))},yt=function(e){return.375*e*(1+.25*e*(1+.46875*e))},gt=function(e){return.05859375*e*e*(1+.75*e)},mt=function(e){return e*e*e*(35/3072)},vt=function(e,t,r){var n=t*r;return e/Math.sqrt(1-n*n)},_t=function(e){return Math.abs(e)<s?e:e-U(e)*Math.PI},St=function(e,t,r,n,i){var o,a;o=e/t;for(var s=0;s<15;s++)if(o+=a=(e-(t*o-r*Math.sin(2*o)+n*Math.sin(4*o)-i*Math.sin(6*o)))/(t-2*r*Math.cos(2*o)+4*n*Math.cos(4*o)-6*i*Math.cos(6*o)),Math.abs(a)<=1e-10)return o;return NaN},xt={init:function(){this.sphere||(this.e0=pt(this.es),this.e1=yt(this.es),this.e2=gt(this.es),this.e3=mt(this.es),this.ml0=this.a*dt(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(e){var t,r,n=e.x,i=e.y;if(n=J(n-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(i)*Math.sin(n)),r=this.a*(Math.atan2(Math.tan(i),Math.cos(n))-this.lat0);else{var o=Math.sin(i),a=Math.cos(i),s=vt(this.a,this.e,o),u=Math.tan(i)*Math.tan(i),l=n*Math.cos(i),c=l*l,h=this.es*a*a/(1-this.es);t=s*l*(1-c*u*(1/6-(8-u+8*h)*c/120)),r=this.a*dt(this.e0,this.e1,this.e2,this.e3,i)-this.ml0+s*o/a*c*(.5+(5-u+6*h)*c/24)}return e.x=t+this.x0,e.y=r+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,r,n=e.x/this.a,i=e.y/this.a;if(this.sphere){var o=i+this.lat0;t=Math.asin(Math.sin(o)*Math.cos(n)),r=Math.atan2(Math.tan(n),Math.cos(o))}else{var a=this.ml0/this.a+i,u=St(a,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(u)-s)<=h)return e.x=this.long0,e.y=s,i<0&&(e.y*=-1),e;var l=vt(this.a,this.e,Math.sin(u)),c=l*l*l/this.a/this.a*(1-this.es),f=Math.pow(Math.tan(u),2),d=n*this.a/l,p=d*d;t=u-l*Math.tan(u)/c*d*d*(.5-(1+3*f)*d*d/24),r=d*(1-p*(f/3+(1+3*f)*f*p/15))/Math.cos(u)}return e.x=J(r+this.long0),e.y=_t(t),e},names:["Cassini","Cassini_Soldner","cass"]},bt=function(e,t){var r;return e>1e-7?(1-e*e)*(t/(1-(r=e*t)*r)-.5/e*Math.log((1-r)/(1+r))):2*t},wt={init:function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-s)<h?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<h?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=bt(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,r=[];return r[0]=.3333333333333333*e,t=e*e,r[0]+=.17222222222222222*t,r[1]=.06388888888888888*t,t*=e,r[0]+=.10257936507936508*t,r[1]+=.0664021164021164*t,r[2]=.016415012942191543*t,r}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=bt(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var t,r,n,i,o,a,u,l,c,f,d=e.x,y=e.y;if(d=J(d-this.long0),this.sphere){if(o=Math.sin(y),f=Math.cos(y),n=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((r=this.mode===this.EQUIT?1+f*n:1+this.sinph0*o+this.cosph0*f*n)<=h)return null;t=(r=Math.sqrt(2/r))*f*Math.sin(d),r*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*f*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(y+this.lat0)<h)return null;r=p-.5*y,t=(r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)))*Math.sin(d),r*=n}}else{switch(u=0,l=0,c=0,n=Math.cos(d),i=Math.sin(d),o=Math.sin(y),a=bt(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(u=a/this.qp,l=Math.sqrt(1-u*u)),this.mode){case this.OBLIQ:c=1+this.sinb1*u+this.cosb1*l*n;break;case this.EQUIT:c=1+l*n;break;case this.N_POLE:c=s+y,a=this.qp-a;break;case this.S_POLE:c=y-s,a=this.qp+a}if(Math.abs(c)<h)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math.sqrt(2/c),r=this.mode===this.OBLIQ?this.ymf*c*(this.cosb1*u-this.sinb1*l*n):(c=Math.sqrt(2/(1+l*n)))*u*this.ymf,t=this.xmf*c*l*i;break;case this.N_POLE:case this.S_POLE:a>=0?(t=(c=Math.sqrt(a))*i,r=n*(this.mode===this.S_POLE?c:-c)):t=r=0}}return e.x=this.a*t+this.x0,e.y=this.a*r+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,i,o,a,u,l=e.x/this.a,c=e.y/this.a;if(this.sphere){var f,d=0,p=0;if((r=.5*(f=Math.sqrt(l*l+c*c)))>1)return null;switch(r=2*Math.asin(r),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(p=Math.sin(r),d=Math.cos(r)),this.mode){case this.EQUIT:r=Math.abs(f)<=h?0:Math.asin(c*p/f),l*=p,c=d*f;break;case this.OBLIQ:r=Math.abs(f)<=h?this.lat0:Math.asin(d*this.sinph0+c*p*this.cosph0/f),l*=p*this.cosph0,c=(d-Math.sin(r)*this.sinph0)*f;break;case this.N_POLE:c=-c,r=s-r;break;case this.S_POLE:r-=s}t=0!==c||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(l,c):0}else{if(u=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(l/=this.dd,c*=this.dd,(a=Math.sqrt(l*l+c*c))<h)return e.x=this.long0,e.y=this.lat0,e;i=2*Math.asin(.5*a/this.rq),n=Math.cos(i),l*=i=Math.sin(i),this.mode===this.OBLIQ?(u=n*this.sinb1+c*i*this.cosb1/a,o=this.qp*u,c=a*this.cosb1*n-c*this.sinb1*i):(u=c*i/a,o=this.qp*u,c=a*n)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(c=-c),!(o=l*l+c*c))return e.x=this.long0,e.y=this.lat0,e;u=1-o/this.qp,this.mode===this.S_POLE&&(u=-u)}t=Math.atan2(l,c),r=function(e,t){var r=e+e;return e+t[0]*Math.sin(r)+t[1]*Math.sin(r+r)+t[2]*Math.sin(r+r+r)}(Math.asin(u),this.apa)}return e.x=J(this.long0+t),e.y=r,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4},kt=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)},Mt={init:function(){Math.abs(this.lat1+this.lat2)<h||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=q(this.e3,this.sin_po,this.cos_po),this.qs1=bt(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=q(this.e3,this.sin_po,this.cos_po),this.qs2=bt(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=bt(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>h?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,r=e.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var n=bt(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,o=this.ns0*J(t-this.long0),a=i*Math.sin(o)+this.x0,s=this.rh-i*Math.cos(o)+this.y0;return e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i,o,a;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),n=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),n=-1),i=0,0!==t&&(i=Math.atan2(n*e.x,n*e.y)),n=t*this.ns0/this.a,this.sphere?a=Math.asin((this.c-n*n)/(2*this.ns0)):(r=(this.c-n*n)/this.ns0,a=this.phi1z(this.e3,r)),o=J(i/this.ns0+this.long0),e.x=o,e.y=a,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var r,n,i,o,a,s=kt(.5*t);if(e<h)return s;for(var u=e*e,l=1;l<=25;l++)if(r=Math.sin(s),n=Math.cos(s),s+=a=.5*(o=1-(i=e*r)*i)*o/n*(t/(1-u)-r/o+.5/e*Math.log((1-i)/(1+i))),Math.abs(a)<=1e-7)return s;return null}},Et={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,r,n,i,o,a,s,u=e.x,l=e.y;return n=J(u-this.long0),t=Math.sin(l),r=Math.cos(l),i=Math.cos(n),(o=this.sin_p14*t+this.cos_p14*r*i)>0||Math.abs(o)<=h?(a=this.x0+1*this.a*r*Math.sin(n)/o,s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*i)/o):(a=this.x0+this.infinity_dist*r*Math.sin(n),s=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*r*i)),e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i,o,a;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),r=Math.sin(i),n=Math.cos(i),a=kt(n*this.sin_p14+e.y*r*this.cos_p14/t),o=Math.atan2(e.x*r,t*this.cos_p14*n-e.y*this.sin_p14*r),o=J(this.long0+o)):(a=this.phic0,o=0),e.x=o,e.y=a,e},names:["gnom"]},It={init:function(){this.sphere||(this.k0=q(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,r,n=e.x,i=e.y,o=J(n-this.long0);if(this.sphere)t=this.x0+this.a*o*Math.cos(this.lat_ts),r=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var a=bt(this.e,Math.sin(i));t=this.x0+this.a*this.k0*o,r=this.y0+this.a*a*.5/this.k0}return e.x=t,e.y=r,e},inverse:function(e){var t,r;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=J(this.long0+e.x/this.a/Math.cos(this.lat_ts)),r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(r=function(e,t){var r=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-r)<1e-6)return t<0?-1*s:s;for(var n,i,o,a,u=Math.asin(.5*t),l=0;l<30;l++)if(i=Math.sin(u),o=Math.cos(u),a=e*i,u+=n=Math.pow(1-a*a,2)/(2*o)*(t/(1-e*e)-i/(1-a*a)+.5/e*Math.log((1-a)/(1+a))),Math.abs(n)<=1e-10)return u;return NaN}(this.e,2*e.y*this.k0/this.a),t=J(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=r,e},names:["cea"]},Tt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,r=e.y,n=J(t-this.long0),i=_t(r-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*i,e},inverse:function(e){var t=e.x,r=e.y;return e.x=J(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=_t(this.lat0+(r-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]},Lt={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=pt(this.es),this.e1=yt(this.es),this.e2=gt(this.es),this.e3=mt(this.es),this.ml0=this.a*dt(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,r,n,i=e.x,o=e.y,a=J(i-this.long0);if(n=a*Math.sin(o),this.sphere)Math.abs(o)<=h?(t=this.a*a,r=-1*this.a*this.lat0):(t=this.a*Math.sin(n)/Math.tan(o),r=this.a*(_t(o-this.lat0)+(1-Math.cos(n))/Math.tan(o)));else if(Math.abs(o)<=h)t=this.a*a,r=-1*this.ml0;else{var s=vt(this.a,this.e,Math.sin(o))/Math.tan(o);t=s*Math.sin(n),r=this.a*dt(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+s*(1-Math.cos(n))}return e.x=t+this.x0,e.y=r+this.y0,e},inverse:function(e){var t,r,n,i,o,a,s,u,l;if(n=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=h)t=J(n/this.a+this.long0),r=0;else{var c;for(a=this.lat0+i/this.a,s=n*n/this.a/this.a+a*a,u=a,o=20;o;--o)if(u+=l=-1*(a*(u*(c=Math.tan(u))+1)-u-.5*(u*u+s)*c)/((u-a)/c-1),Math.abs(l)<=h){r=u;break}t=J(this.long0+Math.asin(n*Math.tan(u)/this.a)/Math.sin(r))}else if(Math.abs(i+this.ml0)<=h)r=0,t=J(this.long0+n/this.a);else{var f,d,p,y,g;for(a=(this.ml0+i)/this.a,s=n*n/this.a/this.a+a*a,u=a,o=20;o;--o)if(g=this.e*Math.sin(u),f=Math.sqrt(1-g*g)*Math.tan(u),d=this.a*dt(this.e0,this.e1,this.e2,this.e3,u),p=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),u-=l=(a*(f*(y=d/this.a)+1)-y-.5*f*(y*y+s))/(this.es*Math.sin(2*u)*(y*y+s-2*a*y)/(4*f)+(a-y)*(f*p-2/Math.sin(2*u))-p),Math.abs(l)<=h){r=u;break}f=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),t=J(this.long0+Math.asin(n*f/this.a)/Math.sin(r))}return e.x=t,e.y=r,e},names:["Polyconic","poly"]},Ct={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(e){var t,r=e.x,n=e.y-this.lat0,i=r-this.long0,o=n/a*1e-5,s=i,u=1,l=0;for(t=1;t<=10;t++)u*=o,l+=this.A[t]*u;var c,h=l,f=s,d=1,p=0,y=0,g=0;for(t=1;t<=6;t++)c=p*h+d*f,d=d*h-p*f,p=c,y=y+this.B_re[t]*d-this.B_im[t]*p,g=g+this.B_im[t]*d+this.B_re[t]*p;return e.x=g*this.a+this.x0,e.y=y*this.a+this.y0,e},inverse:function(e){var t,r,n=e.x,i=e.y,o=n-this.x0,s=(i-this.y0)/this.a,u=o/this.a,l=1,c=0,h=0,f=0;for(t=1;t<=6;t++)r=c*s+l*u,l=l*s-c*u,c=r,h=h+this.C_re[t]*l-this.C_im[t]*c,f=f+this.C_im[t]*l+this.C_re[t]*c;for(var d=0;d<this.iterations;d++){var p,y=h,g=f,m=s,v=u;for(t=2;t<=6;t++)p=g*h+y*f,y=y*h-g*f,g=p,m+=(t-1)*(this.B_re[t]*y-this.B_im[t]*g),v+=(t-1)*(this.B_im[t]*y+this.B_re[t]*g);y=1,g=0;var _=this.B_re[1],S=this.B_im[1];for(t=2;t<=6;t++)p=g*h+y*f,y=y*h-g*f,g=p,_+=t*(this.B_re[t]*y-this.B_im[t]*g),S+=t*(this.B_im[t]*y+this.B_re[t]*g);var x=_*_+S*S;h=(m*_+v*S)/x,f=(v*_-m*S)/x}var b=h,w=f,k=1,M=0;for(t=1;t<=9;t++)k*=b,M+=this.D[t]*k;var E=this.lat0+M*a*1e5,I=this.long0+w;return e.x=I,e.y=E,e},names:["New_Zealand_Map_Grid","nzmg"]},Pt={init:function(){},forward:function(e){var t=e.x,r=e.y,n=J(t-this.long0),i=this.x0+this.a*n,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+r/2.5))*1.25;return e.x=i,e.y=o,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var t=J(this.long0+e.x/this.a),r=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=r,e},names:["Miller_Cylindrical","mill"]},Nt={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=Xe(this.es)},forward:function(e){var t,r,n=e.x,i=e.y;if(n=J(n-this.long0),this.sphere){if(this.m)for(var o=this.n*Math.sin(i),a=20;a;--a){var s=(this.m*i+Math.sin(i)-o)/(this.m+Math.cos(i));if(i-=s,Math.abs(s)<h)break}else i=1!==this.n?Math.asin(this.n*Math.sin(i)):i;t=this.a*this.C_x*n*(this.m+Math.cos(i)),r=this.a*this.C_y*i}else{var u=Math.sin(i),l=Math.cos(i);r=this.a*Ye(i,u,l,this.en),t=this.a*n*l/Math.sqrt(1-this.es*u*u)}return e.x=t,e.y=r,e},inverse:function(e){var t,r,n,i;return e.x-=this.x0,n=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this.C_y,n/=this.C_x*(this.m+Math.cos(t)),this.m?t=kt((this.m*t+Math.sin(t))/this.n):1!==this.n&&(t=kt(Math.sin(t)/this.n)),n=J(n+this.long0),t=_t(t)):(t=Ze(e.y/this.a,this.es,this.en),(i=Math.abs(t))<s?(i=Math.sin(t),r=this.long0+e.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(t)),n=J(r)):i-h<s&&(n=this.long0)),e.x=n,e.y=t,e},names:["Sinusoidal","sinu"]},Ot={init:function(){},forward:function(e){for(var t=e.x,r=e.y,n=J(t-this.long0),i=r,o=Math.PI*Math.sin(r);;){var a=-(i+Math.sin(i)-o)/(1+Math.cos(i));if(i+=a,Math.abs(a)<h)break}i/=2,Math.PI/2-Math.abs(r)<h&&(n=0);var s=.900316316158*this.a*n*Math.cos(i)+this.x0,u=1.4142135623731*this.a*Math.sin(i)+this.y0;return e.x=s,e.y=u,e},inverse:function(e){var t,r;e.x-=this.x0,e.y-=this.y0,r=e.y/(1.4142135623731*this.a),Math.abs(r)>.999999999999&&(r=.999999999999),t=Math.asin(r);var n=J(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),r=(2*t+Math.sin(2*t))/Math.PI,Math.abs(r)>1&&(r=1);var i=Math.asin(r);return e.x=n,e.y=i,e},names:["Mollweide","moll"]},Rt={init:function(){Math.abs(this.lat1+this.lat2)<h||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=pt(this.es),this.e1=yt(this.es),this.e2=gt(this.es),this.e3=mt(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=q(this.e,this.sinphi,this.cosphi),this.ml1=dt(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<h?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=q(this.e,this.sinphi,this.cosphi),this.ml2=dt(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=dt(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,r=e.x,n=e.y;if(this.sphere)t=this.a*(this.g-n);else{var i=dt(this.e0,this.e1,this.e2,this.e3,n);t=this.a*(this.g-i)}var o=this.ns*J(r-this.long0),a=this.x0+t*Math.sin(o),s=this.y0+this.rh-t*Math.cos(o);return e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(r=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(r=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var o=0;if(0!==r&&(o=Math.atan2(t*e.x,t*e.y)),this.sphere)return i=J(this.long0+o/this.ns),n=_t(this.g-r/this.a),e.x=i,e.y=n,e;var a=this.g-r/this.a;return n=St(a,this.e0,this.e1,this.e2,this.e3),i=J(this.long0+o/this.ns),e.x=i,e.y=n,e},names:["Equidistant_Conic","eqdc"]},Vt={init:function(){this.R=this.a},forward:function(e){var t,r,n=e.x,i=e.y,o=J(n-this.long0);Math.abs(i)<=h&&(t=this.x0+this.R*o,r=this.y0);var a=kt(2*Math.abs(i/Math.PI));(Math.abs(o)<=h||Math.abs(Math.abs(i)-s)<=h)&&(t=this.x0,r=i>=0?this.y0+Math.PI*this.R*Math.tan(.5*a):this.y0+Math.PI*this.R*-Math.tan(.5*a));var u=.5*Math.abs(Math.PI/o-o/Math.PI),l=u*u,c=Math.sin(a),f=Math.cos(a),d=f/(c+f-1),p=d*d,y=d*(2/c-1),g=y*y,m=Math.PI*this.R*(u*(d-g)+Math.sqrt(l*(d-g)*(d-g)-(g+l)*(p-g)))/(g+l);o<0&&(m=-m),t=this.x0+m;var v=l+d;return m=Math.PI*this.R*(y*v-u*Math.sqrt((g+l)*(l+1)-v*v))/(g+l),r=i>=0?this.y0+m:this.y0-m,e.x=t,e.y=r,e},inverse:function(e){var t,r,n,i,o,a,s,u,l,c,f,d;return e.x-=this.x0,e.y-=this.y0,f=Math.PI*this.R,o=(n=e.x/f)*n+(i=e.y/f)*i,f=3*(i*i/(u=-2*(a=-Math.abs(i)*(1+o))+1+2*i*i+o*o)+(2*(s=a-2*i*i+n*n)*s*s/u/u/u-9*a*s/u/u)/27)/(l=(a-s*s/3/u)/u)/(c=2*Math.sqrt(-l/3)),Math.abs(f)>1&&(f=f>=0?1:-1),d=Math.acos(f)/3,r=e.y>=0?(-c*Math.cos(d+Math.PI/3)-s/3/u)*Math.PI:-(-c*Math.cos(d+Math.PI/3)-s/3/u)*Math.PI,t=Math.abs(n)<h?this.long0:J(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(n*n-i*i)+o*o))/2/n),e.x=t,e.y=r,e},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]},Gt={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(e){var t,r,n,i,o,a,u,l,c,f,d,p,y,g,m,v,_,S,x,b,w,k,M=e.x,E=e.y,I=Math.sin(e.y),T=Math.cos(e.y),L=J(M-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=h?(e.x=this.x0+this.a*(s-E)*Math.sin(L),e.y=this.y0-this.a*(s-E)*Math.cos(L),e):Math.abs(this.sin_p12+1)<=h?(e.x=this.x0+this.a*(s+E)*Math.sin(L),e.y=this.y0+this.a*(s+E)*Math.cos(L),e):(S=this.sin_p12*I+this.cos_p12*T*Math.cos(L),_=(v=Math.acos(S))?v/Math.sin(v):1,e.x=this.x0+this.a*_*T*Math.sin(L),e.y=this.y0+this.a*_*(this.cos_p12*I-this.sin_p12*T*Math.cos(L)),e):(t=pt(this.es),r=yt(this.es),n=gt(this.es),i=mt(this.es),Math.abs(this.sin_p12-1)<=h?(o=this.a*dt(t,r,n,i,s),a=this.a*dt(t,r,n,i,E),e.x=this.x0+(o-a)*Math.sin(L),e.y=this.y0-(o-a)*Math.cos(L),e):Math.abs(this.sin_p12+1)<=h?(o=this.a*dt(t,r,n,i,s),a=this.a*dt(t,r,n,i,E),e.x=this.x0+(o+a)*Math.sin(L),e.y=this.y0+(o+a)*Math.cos(L),e):(u=I/T,l=vt(this.a,this.e,this.sin_p12),c=vt(this.a,this.e,I),f=Math.atan((1-this.es)*u+this.es*l*this.sin_p12/(c*T)),x=0===(d=Math.atan2(Math.sin(L),this.cos_p12*Math.tan(f)-this.sin_p12*Math.cos(L)))?Math.asin(this.cos_p12*Math.sin(f)-this.sin_p12*Math.cos(f)):Math.abs(Math.abs(d)-Math.PI)<=h?-Math.asin(this.cos_p12*Math.sin(f)-this.sin_p12*Math.cos(f)):Math.asin(Math.sin(L)*Math.cos(f)/Math.sin(d)),p=this.e*this.sin_p12/Math.sqrt(1-this.es),v=l*x*(1-(b=x*x)*(m=(y=this.e*this.cos_p12*Math.cos(d)/Math.sqrt(1-this.es))*y)*(1-m)/6+(w=b*x)/8*(g=p*y)*(1-2*m)+(k=w*x)/120*(m*(4-7*m)-3*p*p*(1-7*m))-k*x/48*g),e.x=this.x0+v*Math.sin(d),e.y=this.y0+v*Math.cos(d),e))},inverse:function(e){var t,r,n,i,o,a,u,l,c,f,d,p,y,g,m,v,_,S,x,b,w,k,M;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*s*this.a)return;return r=t/this.a,n=Math.sin(r),i=Math.cos(r),o=this.long0,Math.abs(t)<=h?a=this.lat0:(a=kt(i*this.sin_p12+e.y*n*this.cos_p12/t),u=Math.abs(this.lat0)-s,o=Math.abs(u)<=h?this.lat0>=0?J(this.long0+Math.atan2(e.x,-e.y)):J(this.long0-Math.atan2(-e.x,e.y)):J(this.long0+Math.atan2(e.x*n,t*this.cos_p12*i-e.y*this.sin_p12*n))),e.x=o,e.y=a,e}return l=pt(this.es),c=yt(this.es),f=gt(this.es),d=mt(this.es),Math.abs(this.sin_p12-1)<=h?(p=this.a*dt(l,c,f,d,s),t=Math.sqrt(e.x*e.x+e.y*e.y),a=St((p-t)/this.a,l,c,f,d),o=J(this.long0+Math.atan2(e.x,-1*e.y)),e.x=o,e.y=a,e):Math.abs(this.sin_p12+1)<=h?(p=this.a*dt(l,c,f,d,s),t=Math.sqrt(e.x*e.x+e.y*e.y),a=St((t-p)/this.a,l,c,f,d),o=J(this.long0+Math.atan2(e.x,e.y)),e.x=o,e.y=a,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),m=Math.atan2(e.x,e.y),y=vt(this.a,this.e,this.sin_p12),v=Math.cos(m),S=-(_=this.e*this.cos_p12*v)*_/(1-this.es),x=3*this.es*(1-S)*this.sin_p12*this.cos_p12*v/(1-this.es),k=1-S*(w=(b=t/y)-S*(1+S)*Math.pow(b,3)/6-x*(1+3*S)*Math.pow(b,4)/24)*w/2-b*w*w*w/6,g=Math.asin(this.sin_p12*Math.cos(w)+this.cos_p12*Math.sin(w)*v),o=J(this.long0+Math.asin(Math.sin(m)*Math.sin(w)/Math.cos(g))),M=Math.sin(g),a=Math.atan2((M-this.es*k*this.sin_p12)*Math.tan(g),M*(1-this.es)),e.x=o,e.y=a,e)},names:["Azimuthal_Equidistant","aeqd"]},At={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,r,n,i,o,a,s,u=e.x,l=e.y;return n=J(u-this.long0),t=Math.sin(l),r=Math.cos(l),i=Math.cos(n),((o=this.sin_p14*t+this.cos_p14*r*i)>0||Math.abs(o)<=h)&&(a=1*this.a*r*Math.sin(n),s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*i)),e.x=a,e.y=s,e},inverse:function(e){var t,r,n,i,o,a,u;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),r=kt(t/this.a),n=Math.sin(r),i=Math.cos(r),a=this.long0,Math.abs(t)<=h?(u=this.lat0,e.x=a,e.y=u,e):(u=kt(i*this.sin_p14+e.y*n*this.cos_p14/t),o=Math.abs(this.lat0)-s,Math.abs(o)<=h?(a=this.lat0>=0?J(this.long0+Math.atan2(e.x,-e.y)):J(this.long0-Math.atan2(-e.x,e.y)),e.x=a,e.y=u,e):(a=J(this.long0+Math.atan2(e.x*n,t*this.cos_p14*i-e.y*this.sin_p14*n)),e.x=a,e.y=u,e))},names:["ortho"]},Dt=1,Ft=2,jt=3,Bt=4,qt=5,Ut=6,Jt={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function zt(e,t,r,n){var i;return e<h?(n.value=Jt.AREA_0,i=0):(i=Math.atan2(t,r),Math.abs(i)<=p?n.value=Jt.AREA_0:i>p&&i<=s+p?(n.value=Jt.AREA_1,i-=s):i>s+p||i<=-(s+p)?(n.value=Jt.AREA_2,i=i>=0?i-g:i+g):(n.value=Jt.AREA_3,i+=s)),i}function Wt(e,t){var r=e+t;return r<-g?r+=y:r>+g&&(r-=y),r}var Ht={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=s-p/2?this.face=qt:this.lat0<=-(s-p/2)?this.face=Ut:Math.abs(this.long0)<=p?this.face=Dt:Math.abs(this.long0)<=s+p?this.face=this.long0>0?Ft:Bt:this.face=jt,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var t,r,n,i,o,a,u={x:0,y:0},l={value:0};if(e.x-=this.long0,t=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,r=e.x,this.face===qt)i=s-t,r>=p&&r<=s+p?(l.value=Jt.AREA_0,n=r-s):r>s+p||r<=-(s+p)?(l.value=Jt.AREA_1,n=r>0?r-g:r+g):r>-(s+p)&&r<=-p?(l.value=Jt.AREA_2,n=r+s):(l.value=Jt.AREA_3,n=r);else if(this.face===Ut)i=s+t,r>=p&&r<=s+p?(l.value=Jt.AREA_0,n=-r+s):r<p&&r>=-p?(l.value=Jt.AREA_1,n=-r):r<-p&&r>=-(s+p)?(l.value=Jt.AREA_2,n=-r-s):(l.value=Jt.AREA_3,n=r>0?-r+g:-r-g);else{var c,h,f,d,y,m;this.face===Ft?r=Wt(r,+s):this.face===jt?r=Wt(r,+g):this.face===Bt&&(r=Wt(r,-s)),d=Math.sin(t),y=Math.cos(t),m=Math.sin(r),c=y*Math.cos(r),h=y*m,f=d,this.face===Dt?n=zt(i=Math.acos(c),f,h,l):this.face===Ft?n=zt(i=Math.acos(h),f,-c,l):this.face===jt?n=zt(i=Math.acos(-c),f,-h,l):this.face===Bt?n=zt(i=Math.acos(-h),f,c,l):(i=n=0,l.value=Jt.AREA_0)}return a=Math.atan(12/g*(n+Math.acos(Math.sin(n)*Math.cos(p))-s)),o=Math.sqrt((1-Math.cos(i))/(Math.cos(a)*Math.cos(a))/(1-Math.cos(Math.atan(1/Math.cos(n))))),l.value===Jt.AREA_1?a+=s:l.value===Jt.AREA_2?a+=g:l.value===Jt.AREA_3&&(a+=1.5*g),u.x=o*Math.cos(a),u.y=o*Math.sin(a),u.x=u.x*this.a+this.x0,u.y=u.y*this.a+this.y0,e.x=u.x,e.y=u.y,e},inverse:function(e){var t,r,n,i,o,a,u,l,c,h,f,d,p={lam:0,phi:0},y={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,r=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),t=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?y.value=Jt.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(y.value=Jt.AREA_1,t-=s):e.x<0&&-e.x>=Math.abs(e.y)?(y.value=Jt.AREA_2,t=t<0?t+g:t-g):(y.value=Jt.AREA_3,t+=s),c=g/12*Math.tan(t),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),a=Math.atan(o),(u=1-(n=Math.cos(t))*n*(i=Math.tan(r))*i*(1-Math.cos(Math.atan(1/Math.cos(a)))))<-1?u=-1:u>1&&(u=1),this.face===qt)l=Math.acos(u),p.phi=s-l,y.value===Jt.AREA_0?p.lam=a+s:y.value===Jt.AREA_1?p.lam=a<0?a+g:a-g:y.value===Jt.AREA_2?p.lam=a-s:p.lam=a;else if(this.face===Ut)l=Math.acos(u),p.phi=l-s,y.value===Jt.AREA_0?p.lam=-a+s:y.value===Jt.AREA_1?p.lam=-a:y.value===Jt.AREA_2?p.lam=-a-s:p.lam=a<0?-a-g:-a+g;else{var m,v,_;c=(m=u)*m,v=(c+=(_=c>=1?0:Math.sqrt(1-c)*Math.sin(a))*_)>=1?0:Math.sqrt(1-c),y.value===Jt.AREA_1?(c=v,v=-_,_=c):y.value===Jt.AREA_2?(v=-v,_=-_):y.value===Jt.AREA_3&&(c=v,v=_,_=-c),this.face===Ft?(c=m,m=-v,v=c):this.face===jt?(m=-m,v=-v):this.face===Bt&&(c=m,m=v,v=-c),p.phi=Math.acos(-_)-s,p.lam=Math.atan2(v,m),this.face===Ft?p.lam=Wt(p.lam,-s):this.face===jt?p.lam=Wt(p.lam,-g):this.face===Bt&&(p.lam=Wt(p.lam,+s))}return 0!==this.es&&(h=p.phi<0?1:0,f=Math.tan(p.phi),d=this.b/Math.sqrt(f*f+this.one_minus_f_squared),p.phi=Math.atan(Math.sqrt(this.a*this.a-d*d)/(this.one_minus_f*d)),h&&(p.phi=-p.phi)),p.lam+=this.long0,e.x=p.lam,e.y=p.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},Xt=[[1,2.2199e-17,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Yt=[[-5.20417e-18,.0124,1.21431e-18,-8.45284e-11],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Zt=d/5,Kt=1/Zt,Qt=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},$t={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=J(e.x-this.long0),r=Math.abs(e.y),n=Math.floor(r*Zt);n<0?n=0:n>=18&&(n=17);var i={x:Qt(Xt[n],r=d*(r-Kt*n))*t,y:Qt(Yt[n],r)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*.8487+this.x0,i.y=i.y*this.a*1.3523+this.y0,i},inverse:function(e){var t={x:(e.x-this.x0)/(.8487*this.a),y:Math.abs(e.y-this.y0)/(1.3523*this.a)};if(t.y>=1)t.x/=Xt[18][0],t.y=e.y<0?-s:s;else{var r=Math.floor(18*t.y);for(r<0?r=0:r>=18&&(r=17);;)if(Yt[r][0]>t.y)--r;else{if(!(Yt[r+1][0]<=t.y))break;++r}var n=Yt[r],i=5*(t.y-n[0])/(Yt[r+1][0]-n[0]);i=function(e,t,r,n){for(var i=t;n;--n){var o=e(i);if(i-=o,Math.abs(o)<r)break}return i}(function(e){return(Qt(n,e)-t.y)/function(e,t){return e[1]+t*(2*e[2]+3*t*e[3])}(n,e)},i,h,100),t.x/=Qt(Xt[r],i),t.y=(5*r+i)*f,e.y<0&&(t.y=-t.y)}return t.x=J(t.x+this.long0),t},names:["Robinson","robin"]},er={init:function(){this.name="geocent"},forward:function(e){return fe(e,this.es,this.a)},inverse:function(e){return de(e,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]},tr=0,rr=1,nr=2,ir=3,or={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}},ar={init:function(){if(Object.keys(or).forEach(function(e){if(void 0===this[e])this[e]=or[e].def;else{if(or[e].num&&isNaN(this[e]))throw new Error("Invalid parameter value, must be numeric "+e+" = "+this[e]);or[e].num&&(this[e]=parseFloat(this[e]))}or[e].degrees&&(this[e]=this[e]*f)}.bind(this)),Math.abs(Math.abs(this.lat0)-s)<h?this.mode=this.lat0<0?rr:tr:Math.abs(this.lat0)<h?this.mode=nr:(this.mode=ir,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var e=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(e),this.sw=Math.sin(e)},forward:function(e){e.x-=this.long0;var t,r,n,i,o=Math.sin(e.y),a=Math.cos(e.y),s=Math.cos(e.x);switch(this.mode){case ir:r=this.sinph0*o+this.cosph0*a*s;break;case nr:r=a*s;break;case rr:r=-o;break;case tr:r=o}switch(t=(r=this.pn1/(this.p-r))*a*Math.sin(e.x),this.mode){case ir:r*=this.cosph0*o-this.sinph0*a*s;break;case nr:r*=o;break;case tr:r*=-a*s;break;case rr:r*=a*s}return i=1/((n=r*this.cg+t*this.sg)*this.sw*this.h1+this.cw),t=(t*this.cg-r*this.sg)*this.cw*i,r=n*i,e.x=t*this.a,e.y=r*this.a,e},inverse:function(e){e.x/=this.a,e.y/=this.a;var t,r,n,i={x:e.x,y:e.y};n=1/(this.pn1-e.y*this.sw),t=this.pn1*e.x*n,r=this.pn1*e.y*this.cw*n,e.x=t*this.cg+r*this.sg,e.y=r*this.cg-t*this.sg;var o=$e(e.x,e.y);if(Math.abs(o)<h)i.x=0,i.y=e.y;else{var a,s;switch(s=1-o*o*this.pfact,s=(this.p-Math.sqrt(s))/(this.pn1/o+o/this.pn1),a=Math.sqrt(1-s*s),this.mode){case ir:i.y=Math.asin(a*this.sinph0+e.y*s*this.cosph0/o),e.y=(a-this.sinph0*Math.sin(i.y))*o,e.x*=s*this.cosph0;break;case nr:i.y=Math.asin(e.y*s/o),e.y=a*o,e.x*=s;break;case tr:i.y=Math.asin(a),e.y=-e.y;break;case rr:i.y=-Math.asin(a)}i.x=Math.atan2(e.x,e.y)}return e.x=i.x+this.long0,e.y=i.y,e},names:["Tilted_Perspective","tpers"]},sr={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var e=1-this.es,t=1/e;this.radius_p=Math.sqrt(e),this.radius_p2=e,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(e){var t,r,n,i,o=e.x,a=e.y;if(o-=this.long0,"ellipse"===this.shape){a=Math.atan(this.radius_p2*Math.tan(a));var s=this.radius_p/$e(this.radius_p*Math.cos(a),Math.sin(a));if(r=s*Math.cos(o)*Math.cos(a),n=s*Math.sin(o)*Math.cos(a),i=s*Math.sin(a),(this.radius_g-r)*r-n*n-i*i*this.radius_p_inv2<0)return e.x=Number.NaN,e.y=Number.NaN,e;t=this.radius_g-r,this.flip_axis?(e.x=this.radius_g_1*Math.atan(n/$e(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(n/t),e.y=this.radius_g_1*Math.atan(i/$e(n,t)))}else"sphere"===this.shape&&(t=Math.cos(a),r=Math.cos(o)*t,n=Math.sin(o)*t,i=Math.sin(a),t=this.radius_g-r,this.flip_axis?(e.x=this.radius_g_1*Math.atan(n/$e(i,t)),e.y=this.radius_g_1*Math.atan(i/t)):(e.x=this.radius_g_1*Math.atan(n/t),e.y=this.radius_g_1*Math.atan(i/$e(n,t))));return e.x=e.x*this.a,e.y=e.y*this.a,e},inverse:function(e){var t,r,n,i,o=-1,a=0,s=0;if(e.x=e.x/this.a,e.y=e.y/this.a,"ellipse"===this.shape){this.flip_axis?(s=Math.tan(e.y/this.radius_g_1),a=Math.tan(e.x/this.radius_g_1)*$e(1,s)):(a=Math.tan(e.x/this.radius_g_1),s=Math.tan(e.y/this.radius_g_1)*$e(1,a));var u=s/this.radius_p;if(t=a*a+u*u+o*o,(n=(r=2*this.radius_g*o)*r-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-r-Math.sqrt(n))/(2*t),o=this.radius_g+i*o,a*=i,s*=i,e.x=Math.atan2(a,o),e.y=Math.atan(s*Math.cos(e.x)/o),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if("sphere"===this.shape){if(this.flip_axis?(s=Math.tan(e.y/this.radius_g_1),a=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+s*s)):(a=Math.tan(e.x/this.radius_g_1),s=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+a*a)),t=a*a+s*s+o*o,(n=(r=2*this.radius_g*o)*r-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;i=(-r-Math.sqrt(n))/(2*t),o=this.radius_g+i*o,a*=i,s*=i,e.x=Math.atan2(a,o),e.y=Math.atan(s*Math.cos(e.x)/o)}return e.x=e.x+this.long0,e},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};Ie.defaultDatum="WGS84",Ie.Proj=he,Ie.WGS84=new Ie.Proj("WGS84"),Ie.Point=We,Ie.toPoint=Se,Ie.defs=A,Ie.nadgrid=function(e,t){var r=new DataView(t),n=function(e){var t=e.getInt32(8,!1);return 11!==t&&(11!==(t=e.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}(r),i=function(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:ae(e,56,64).trim(),fromSemiMajorAxis:e.getFloat64(120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e.getFloat64(152,t),toSemiMinorAxis:e.getFloat64(168,t)}}(r,n);i.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var o={header:i,subgrids:function(e,t,r){for(var n=[],i=0;i<t.nSubgrids;i++){var o=ue(e,176,r),a=le(e,176,o,r),s=Math.round(1+(o.upperLongitude-o.lowerLongitude)/o.longitudeInterval),u=Math.round(1+(o.upperLatitude-o.lowerLatitude)/o.latitudeInterval);n.push({ll:[oe(o.lowerLongitude),oe(o.lowerLatitude)],del:[oe(o.longitudeInterval),oe(o.latitudeInterval)],lim:[s,u],count:o.gridNodeCount,cvs:se(a)})}return n}(r,i,n)};return ne[e]=o,o},Ie.transform=we,Ie.mgrs=Ge,Ie.version="__VERSION__",function(e){e.Proj.projections.add(Ke),e.Proj.projections.add(rt),e.Proj.projections.add(nt),e.Proj.projections.add(at),e.Proj.projections.add(st),e.Proj.projections.add(ut),e.Proj.projections.add(ct),e.Proj.projections.add(ht),e.Proj.projections.add(ft),e.Proj.projections.add(xt),e.Proj.projections.add(wt),e.Proj.projections.add(Mt),e.Proj.projections.add(Et),e.Proj.projections.add(It),e.Proj.projections.add(Tt),e.Proj.projections.add(Lt),e.Proj.projections.add(Ct),e.Proj.projections.add(Pt),e.Proj.projections.add(Nt),e.Proj.projections.add(Ot),e.Proj.projections.add(Rt),e.Proj.projections.add(Vt),e.Proj.projections.add(Gt),e.Proj.projections.add(At),e.Proj.projections.add(Ht),e.Proj.projections.add($t),e.Proj.projections.add(er),e.Proj.projections.add(ar),e.Proj.projections.add(sr)}(Ie),t.default=Ie},function(e,t,r){r(226),e.exports=r(12).Object.keys},function(e,t,r){var n=r(56),i=r(57);r(83)("keys",function(){return function(e){return i(n(e))}})},function(e,t,r){var n=r(39),i=r(99),o=r(228);e.exports=function(e){return function(t,r,a){var s,u=n(t),l=i(u.length),c=o(a,l);if(e&&r!=r){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}}},function(e,t,r){var n=r(100),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,l=[],c=!1,h=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&d())}function d(){if(!c){var e=s(f);c=!0;for(var t=l.length;t;){for(u=l,l=[];++h<t;)u&&u[h].run();h=-1,t=l.length}u=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||c||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){r(231);var n=r(12).Object;e.exports=function(e,t){return n.defineProperties(e,t)}},function(e,t,r){var n=r(17);n(n.S+n.F*!r(27),"Object",{defineProperties:r(138)})},function(e,t,r){r(139),r(70),r(87),r(238),r(246),r(247),e.exports=r(12).Promise},function(e,t,r){var n=r(100),i=r(98);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),u=n(r),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(e,t,r){"use strict";var n=r(106),i=r(60),o=r(85),a={};r(48)(a,r(21)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},function(e,t,r){"use strict";var n=r(236),i=r(237),o=r(61),a=r(39);e.exports=r(140)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){"use strict";var n,i,o,a,s=r(69),u=r(20),l=r(58),c=r(107),h=r(17),f=r(26),d=r(84),p=r(239),y=r(240),g=r(145),m=r(146).set,v=r(242)(),_=r(109),S=r(147),x=r(243),b=r(148),w=u.TypeError,k=u.process,M=k&&k.versions,E=M&&M.v8||"",I=u.Promise,T="process"==c(k),L=function(){},C=i=_.f,P=!!function(){try{var e=I.resolve(1),t=(e.constructor={})[r(21)("species")]=function(e){e(L,L)};return(T||"function"==typeof PromiseRejectionEvent)&&e.then(L)instanceof t&&0!==E.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(e){}}(),N=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},O=function(e,t){if(!e._n){e._n=!0;var r=e._c;v(function(){for(var n=e._v,i=1==e._s,o=0,a=function(t){var r,o,a,s=i?t.ok:t.fail,u=t.resolve,l=t.reject,c=t.domain;try{s?(i||(2==e._h&&G(e),e._h=1),!0===s?r=n:(c&&c.enter(),r=s(n),c&&(c.exit(),a=!0)),r===t.promise?l(w("Promise-chain cycle")):(o=N(r))?o.call(r,u,l):u(r)):l(n)}catch(e){c&&!a&&c.exit(),l(e)}};r.length>o;)a(r[o++]);e._c=[],e._n=!1,t&&!e._h&&R(e)})}},R=function(e){m.call(u,function(){var t,r,n,i=e._v,o=V(e);if(o&&(t=S(function(){T?k.emit("unhandledRejection",i,e):(r=u.onunhandledrejection)?r({promise:e,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)}),e._h=T||V(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},V=function(e){return 1!==e._h&&0===(e._a||e._c).length},G=function(e){m.call(u,function(){var t;T?k.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},A=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),O(t,!0))},D=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw w("Promise can't be resolved itself");(t=N(e))?v(function(){var n={_w:r,_d:!1};try{t.call(e,l(D,n,1),l(A,n,1))}catch(e){A.call(n,e)}}):(r._v=e,r._s=1,O(r,!1))}catch(e){A.call({_w:r,_d:!1},e)}}};P||(I=function(e){p(this,I,"Promise","_h"),d(e),n.call(this);try{e(l(D,this,1),l(A,this,1))}catch(e){A.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(244)(I.prototype,{then:function(e,t){var r=C(g(this,I));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=T?k.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&O(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=l(D,e,1),this.reject=l(A,e,1)},_.f=C=function(e){return e===I||e===a?new o(e):i(e)}),h(h.G+h.W+h.F*!P,{Promise:I}),r(85)(I,"Promise"),r(245)("Promise"),a=r(12).Promise,h(h.S+h.F*!P,"Promise",{reject:function(e){var t=C(this);return(0,t.reject)(e),t.promise}}),h(h.S+h.F*(s||!P),"Promise",{resolve:function(e){return b(s&&this===a?I:this,e)}}),h(h.S+h.F*!(P&&r(149)(function(e){I.all(e).catch(L)})),"Promise",{all:function(e){var t=this,r=C(t),n=r.resolve,i=r.reject,o=S(function(){var r=[],o=0,a=1;y(e,!1,function(e){var s=o++,u=!1;r.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,r[s]=e,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=C(t),n=r.reject,i=S(function(){y(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){var n=r(58),i=r(143),o=r(144),a=r(24),s=r(99),u=r(108),l={},c={};(t=e.exports=function(e,t,r,h,f){var d,p,y,g,m=f?function(){return e}:u(e),v=n(r,h,t?2:1),_=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(d=s(e.length);d>_;_++)if((g=t?v(a(p=e[_])[0],p[1]):v(e[_]))===l||g===c)return g}else for(y=m.call(e);!(p=y.next()).done;)if((g=i(y,v,p.value,t))===l||g===c)return g}).BREAK=l,t.RETURN=c},function(e,t){e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){var n=r(20),i=r(146).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(68)(a);e.exports=function(){var e,t,r,l=function(){var n,i;for(u&&(n=a.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(l)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);r=function(){c.then(l)}}else r=function(){i.call(n,l)};else{var h=!0,f=document.createTextNode("");new o(l).observe(f,{characterData:!0}),r=function(){f.data=h=!h}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},function(e,t,r){var n=r(20).navigator;e.exports=n&&n.userAgent||""},function(e,t,r){var n=r(48);e.exports=function(e,t,r){for(var i in t)r&&e[i]?e[i]=t[i]:n(e,i,t[i]);return e}},function(e,t,r){"use strict";var n=r(20),i=r(12),o=r(28),a=r(27),s=r(21)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:n[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){"use strict";var n=r(17),i=r(12),o=r(20),a=r(145),s=r(148);n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then(function(){return r})}:e,r?function(r){return s(t,e()).then(function(){throw r})}:e)}})},function(e,t,r){"use strict";var n=r(17),i=r(109),o=r(147);n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){e.exports={default:r(249),__esModule:!0}},function(e,t,r){r(250);var n=r(12).Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},function(e,t,r){var n=r(17);n(n.S+n.F*!r(27),"Object",{defineProperty:r(28).f})},function(e,t,r){r(70),r(252),e.exports=r(12).Array.from},function(e,t,r){"use strict";var n=r(58),i=r(17),o=r(56),a=r(143),s=r(144),u=r(99),l=r(253),c=r(108);i(i.S+i.F*!r(149)(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,i,h,f=o(e),d="function"==typeof this?this:Array,p=arguments.length,y=p>1?arguments[1]:void 0,g=void 0!==y,m=0,v=c(f);if(g&&(y=n(y,p>2?arguments[2]:void 0,2)),void 0==v||d==Array&&s(v))for(r=new d(t=u(f.length));t>m;m++)l(r,m,g?y(f[m],m):f[m]);else for(h=v.call(f),r=new d;!(i=h.next()).done;m++)l(r,m,g?a(h,y,[i.value,m],!0):i.value);return r.length=m,r}})},function(e,t,r){"use strict";var n=r(28),i=r(60);e.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},function(e,t,r){var n=r(12),i=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},function(e,t,r){e.exports={default:r(256),__esModule:!0}},function(e,t,r){r(70),r(87),e.exports=r(110).f("iterator")},function(e,t,r){e.exports={default:r(258),__esModule:!0}},function(e,t,r){r(259),r(139),r(263),r(264),e.exports=r(12).Symbol},function(e,t,r){"use strict";var n=r(20),i=r(32),o=r(27),a=r(17),s=r(141),u=r(151).KEY,l=r(59),c=r(102),h=r(85),f=r(82),d=r(21),p=r(110),y=r(111),g=r(260),m=r(261),v=r(24),_=r(26),S=r(56),x=r(39),b=r(105),w=r(60),k=r(106),M=r(262),E=r(72),I=r(112),T=r(28),L=r(57),C=E.f,P=T.f,N=M.f,O=n.Symbol,R=n.JSON,V=R&&R.stringify,G=d("_hidden"),A=d("toPrimitive"),D={}.propertyIsEnumerable,F=c("symbol-registry"),j=c("symbols"),B=c("op-symbols"),q=Object.prototype,U="function"==typeof O&&!!I.f,J=n.QObject,z=!J||!J.prototype||!J.prototype.findChild,W=o&&l(function(){return 7!=k(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=C(q,t);n&&delete q[t],P(e,t,r),n&&e!==q&&P(q,t,n)}:P,H=function(e){var t=j[e]=k(O.prototype);return t._k=e,t},X=U&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},Y=function(e,t,r){return e===q&&Y(B,t,r),v(e),t=b(t,!0),v(r),i(j,t)?(r.enumerable?(i(e,G)&&e[G][t]&&(e[G][t]=!1),r=k(r,{enumerable:w(0,!1)})):(i(e,G)||P(e,G,w(1,{})),e[G][t]=!0),W(e,t,r)):P(e,t,r)},Z=function(e,t){v(e);for(var r,n=g(t=x(t)),i=0,o=n.length;o>i;)Y(e,r=n[i++],t[r]);return e},K=function(e){var t=D.call(this,e=b(e,!0));return!(this===q&&i(j,e)&&!i(B,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,G)&&this[G][e])||t)},Q=function(e,t){if(e=x(e),t=b(t,!0),e!==q||!i(j,t)||i(B,t)){var r=C(e,t);return!r||!i(j,t)||i(e,G)&&e[G][t]||(r.enumerable=!0),r}},$=function(e){for(var t,r=N(x(e)),n=[],o=0;r.length>o;)i(j,t=r[o++])||t==G||t==u||n.push(t);return n},ee=function(e){for(var t,r=e===q,n=N(r?B:x(e)),o=[],a=0;n.length>a;)!i(j,t=n[a++])||r&&!i(q,t)||o.push(j[t]);return o};U||(s((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(r){this===q&&t.call(B,r),i(this,G)&&i(this[G],e)&&(this[G][e]=!1),W(this,e,w(1,r))};return o&&z&&W(q,e,{configurable:!0,set:t}),H(e)}).prototype,"toString",function(){return this._k}),E.f=Q,T.f=Y,r(152).f=M.f=$,r(71).f=K,I.f=ee,o&&!r(69)&&s(q,"propertyIsEnumerable",K,!0),p.f=function(e){return H(d(e))}),a(a.G+a.W+a.F*!U,{Symbol:O});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;te.length>re;)d(te[re++]);for(var ne=L(d.store),ie=0;ne.length>ie;)y(ne[ie++]);a(a.S+a.F*!U,"Symbol",{for:function(e){return i(F,e+="")?F[e]:F[e]=O(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!U,"Object",{create:function(e,t){return void 0===t?k(e):Z(k(e),t)},defineProperty:Y,defineProperties:Z,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:ee});var oe=l(function(){I.f(1)});a(a.S+a.F*oe,"Object",{getOwnPropertySymbols:function(e){return I.f(S(e))}}),R&&a(a.S+a.F*(!U||l(function(){var e=O();return"[null]"!=V([e])||"{}"!=V({a:e})||"{}"!=V(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(_(t)||void 0!==e)&&!X(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!X(t))return t}),n[1]=t,V.apply(R,n)}}),O.prototype[A]||r(48)(O.prototype,A,O.prototype.valueOf),h(O,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(e,t,r){var n=r(57),i=r(112),o=r(71);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,r){var n=r(68);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(39),i=r(152).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},function(e,t,r){r(111)("asyncIterator")},function(e,t,r){r(111)("observable")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(7)),u=l(r(5));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,u.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var r=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"initPropertys",this).call(this,e);this.message=r.message}}]),t}(l(r(41)).default);t.default=c},function(e,t,r){r(267),e.exports=r(12).Object.getPrototypeOf},function(e,t,r){var n=r(56),i=r(86);r(83)("getPrototypeOf",function(){return function(e){return i(n(e))}})},function(e,t,r){e.exports={default:r(269),__esModule:!0}},function(e,t,r){r(270);var n=r(12).Object;e.exports=function(e,t){return n.getOwnPropertyDescriptor(e,t)}},function(e,t,r){var n=r(39),i=r(72).f;r(83)("getOwnPropertyDescriptor",function(){return function(e,t){return i(n(e),t)}})},function(e,t,r){e.exports={default:r(272),__esModule:!0}},function(e,t,r){r(273),e.exports=r(12).Object.setPrototypeOf},function(e,t,r){var n=r(17);n(n.S,"Object",{setPrototypeOf:r(274).set})},function(e,t,r){var n=r(26),i=r(24),o=function(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=r(58)(Function.call,r(72).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return o(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:o}},function(e,t,r){r(276);var n=r(12).Object;e.exports=function(e,t){return n.create(e,t)}},function(e,t,r){var n=r(17);n(n.S,"Object",{create:r(106)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(3)),i=u(r(0)),o=u(r(2)),a=u(r(4)),s=u(r(5));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var t=e||{};return this.target=t.target,this.sourceTarget=t.sourceTarget,this.eventData=t.eventData,this.sourceEventData=t.sourceEventData,this.eventPath=t.eventPath||[],t}}]),t}(u(r(41)).default);t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(5)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var t=(0,u.defaultValue)(e,{});return this.added=(0,u.defaultValue)(t.added,[]),this.removed=(0,u.defaultValue)(t.removed,[]),this.moved=(0,u.defaultValue)(t.moved,[]),this.sourceTarget=t.sourceTarget,this.target=t.target,t}}]),t}(l(r(41)).default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(5)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var t=(0,u.defaultValue)(e,{});return this.added=(0,u.defaultValue)(t.added,[]),this.removed=(0,u.defaultValue)(t.removed,[]),this.moved=(0,u.defaultValue)(t.moved,[]),this.path=(0,u.defaultValue)(t.path,[]),this.sourceTarget=t.sourceTarget,this.target=t.target,t}}]),t}(l(r(41)).default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(5)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var t=(0,u.defaultValue)(e,{});return this.addDetail=(0,u.defaultValue)(t.addDetail,[]),t}}]),t}(l(r(41)).default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(3)),i=l(r(0)),o=l(r(2)),a=l(r(4)),s=l(r(5)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return(0,i.default)(this,t),(0,a.default)(this,(t.__proto__||(0,n.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,o.default)(t,[{key:"initPropertys",value:function(e){var t=(0,u.defaultValue)(e,{});return this.basemap=(0,u.defaultValue)(t.basemap,null),this.detail=(0,u.defaultValue)(t.detail,[]),t}}]),t}(l(r(41)).default);t.default=c},function(e,t,r){e.exports={default:r(283),__esModule:!0}},function(e,t,r){r(284),e.exports=r(12).Reflect.set},function(e,t,r){var n=r(28),i=r(72),o=r(86),a=r(32),s=r(17),u=r(60),l=r(24),c=r(26);s(s.S,"Reflect",{set:function e(t,r,s){var h,f,d=arguments.length<4?t:arguments[3],p=i.f(l(t),r);if(!p){if(c(f=o(t)))return e(f,r,s,d);p=u(0)}if(a(p,"value")){if(!1===p.writable||!c(d))return!1;if(h=i.f(d,r)){if(h.get||h.set||!1===h.writable)return!1;h.value=s,n.f(d,r,h)}else n.f(d,r,u(0,s));return!0}return void 0!==p.set&&(p.set.call(d,s),!0)}})},function(e,t,r){e.exports={default:r(286),__esModule:!0}},function(e,t,r){r(287),e.exports=r(12).Reflect.get},function(e,t,r){var n=r(72),i=r(86),o=r(32),a=r(17),s=r(26),u=r(24);a(a.S,"Reflect",{get:function e(t,r){var a,l,c=arguments.length<3?t:arguments[2];return u(t)===c?t[r]:(a=n.f(t,r))?o(a,"value")?a.value:void 0!==a.get?a.get.call(c):void 0:s(l=i(t))?e(l,r,c):void 0}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cancelFn=t.requestFn=t.emptyImageUrl=t.isArray=t.lastId=t.create=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(153));t.extend=function(e){var t,r=void 0,n=void 0,i=void 0;for(n=1,t=arguments.length;n<t;n++)for(r in i=arguments[n])e[r]=i[r];return e},t.bind=o,t.stamp=function(e){return e._leaflet_id},t.throttle=function(e,t,r){var n=void 0,i=void 0,o=void 0,a=function(){n=!1,i&&(o.apply(r,i),i=!1)};return o=function(){n?i=arguments:(e.apply(r,arguments),setTimeout(a,t),n=!0)}},t.wrapNum=function(e,t,r){var n=t[1],i=t[0],o=n-i;return e===n&&r?e:((e-i)%o+o)%o+i},t.falseFn=function(){return!1},t.formatNum=function(e,t){var r=Math.pow(10,void 0===t?6:t);return Math.round(e*r)/r},t.trim=a,t.splitWords=function(e){return a(e).split(/\s+/)},t.setOptions=function(e,t){for(var r in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?i(e.options):{}),t)e.options[r]=t[r];return e.options},t.getParamString=function(e,t,r){var n=[];for(var i in e)n.push(encodeURIComponent(r?i.toUpperCase():i)+"="+encodeURIComponent(e[i]));return(t&&-1!==t.indexOf("?")?"&":"?")+n.join("&")},t.template=function(e,t){return e.replace(s,function(e,r){var n=t[r];if(void 0===n)throw new Error("No value provided for variable "+e);return"function"==typeof n&&(n=n(t)),n})},t.indexOf=function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},t.requestAnimFrame=function(e,t,r){if(!r||h!==c)return h.call(window,o(e,t));e.call(t)},t.cancelAnimFrame=function(e){e&&f.call(window,e)};var i=t.create=n.default||function(){function e(){}return function(t){return e.prototype=t,new e}}();function o(e,t){var r=Array.prototype.slice;if(e.bind)return e.bind.apply(e,r.call(arguments,1));var n=r.call(arguments,2);return function(){return e.apply(t,n.length?n.concat(r.call(arguments)):arguments)}}function a(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}t.lastId=0;var s=/\{ *([\w_-]+) *\}/g;function u(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}t.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},t.emptyImageUrl="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";var l=0;function c(e){var t=+new Date,r=Math.max(0,16-(t-l));return l=t+r,window.setTimeout(e,r)}var h=t.requestFn=window.requestAnimationFrame||u("RequestAnimationFrame")||c,f=t.cancelFn=window.cancelAnimationFrame||u("CancelAnimationFrame")||u("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(11)),i=h(r(3)),o=h(r(0)),a=h(r(2)),s=h(r(4)),u=h(r(5)),l=r(1),c=h(r(113));function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,o.default)(this,t);var r=(0,s.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.type="collection-flat",e=(0,l.defaultValue)(e,{}),r.getCollections=e.getCollections||function(){return[]},r._cacheCollections=r.getCollections(),r.getChildrenFunction=e.getChildrenFunction,r._refresh(),r._cacheCollections.forEach(function(e){r._addRefreshHandler(e)}),r}return(0,u.default)(t,e),(0,a.default)(t,[{key:"_refresh",value:function(e){var t=this,r=this._cacheCollections;if(r&&Array.isArray(r)){var n=0;r.forEach(function(e){n=t._processCollection(n,e)}),this._items.splice(n,this._items.length-n)}else this.removeAll()}},{key:"_processCollection",value:function(e,t){var r=this;return t?(t.forEach(function(n){if(n){var i=r._items.findIndex(function(e){return e===n});if(i>-1?i!==e&&r._reorder(n,e):r._add(n,e),e+=1,r.getChildrenFunction){var o=r.getChildrenFunction(n);o&&(Array.isArray(o)?o.forEach(function(n){n instanceof c.default&&(e=r._processCollection(e,n),n._addParentCollection(t))}):o instanceof c.default&&(e=r._processCollection(e,o),o._addParentCollection(t)))}}}),e):e}},{key:"_addCollection",value:function(e,t){var r=(0,l.defaultValue)(t,this._cacheCollections.length);r=Math.max(0,Math.min(this._cacheCollections.length,t)),this._cacheCollections.splice(r,0,e),this._addRefreshHandler(e),this._refresh()}},{key:"_removeCollection",value:function(e){var t=this._cacheCollections.indexOf(function(t){return t===e});t>-1&&(this._cacheCollections.splice(t,1),this._removeRreshHandler(e),this._refresh())}},{key:"_addRefreshHandler",value:function(e){e&&e.on("collection-refresh",this._refresh,this)}},{key:"_removeRreshHandler",value:function(e){e&&e.off("collection-refresh",this._refresh,this)}}]),t}(c.default);(0,n.default)(f.prototype,{items:{get:function(){return this._items},set:function(e){}}}),t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.statisticType=(0,o.defaultValue)(t.statisticType,void 0),this.onStatisticField=(0,o.defaultValue)(t.onStatisticField,void 0),this.outStatisticFieldName=(0,o.defaultValue)(t.outStatisticFieldName,void 0),(0,o.isNull)(this.statisticType)&&console.warn("statisticType不能为空!"),(0,o.isNull)(this.onStatisticField)&&console.warn("onStatisticField不能为空!")}return(0,i.default)(e,[{key:"toString",value:function(){var e="";return(0,o.isNull)(this.statisticType)||(0,o.isNull)(this.onStatisticField)||((0,o.isNull)(this.outStatisticFieldName)?e+='{"statisticType":"'+this.statisticType+'","onStatisticField":"'+this.onStatisticField+'"}':e+='{"statisticType":"'+this.statisticType+'","onStatisticField":"'+this.onStatisticField+'","outStatisticFieldName":"'+this.outStatisticFieldName+'"}'),e}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),this.ProjAngleUnit=(0,i.defaultValue)(4,t.ProjAngleUnit),this.ProjLat=(0,i.defaultValue)(0,t.ProjLat),this.ProjLat1=(0,i.defaultValue)(25e4,t.ProjLat1),this.ProjLat2=(0,i.defaultValue)(47e4,t.ProjLat2),this.ProjLon=(0,i.defaultValue)(105e4,t.ProjLon),this.ProjRate=(0,i.defaultValue)(14e6,t.ProjRate),this.ProjType=(0,i.defaultValue)(3,t.ProjType),this.ProjTypeID=(0,i.defaultValue)(2,t.ProjTypeID),this.ProjUnit=(0,i.defaultValue)(1,t.ProjUnit),this.ProjZoneNO=(0,i.defaultValue)(18,t.ProjZoneNO),this.ProjZoneType=(0,i.defaultValue)(0,t.ProjZoneType),this.SphereID=(0,i.defaultValue)(2,t.SphereID)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(0)),i=r(1);t.default=function e(t){(0,n.default)(this,e),this.DesSrsID=(0,i.defaultValue)(610,t.DesSrsID),this.GdbInfo=(0,i.defaultValue)({GDBName:"示例数据",GDBSvrName:"MapGISLocal",Password:"",User:""},t.DesSrsID)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={HTML:"html",JSON:"json",png:"png",jpg:"jpg",gif:"gif"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={get:"GET",post:"POST",put:"PUT",delete:"DELETE"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={layerViewCreated:"layerview-created",layerViewCreatedError:"layerview-created-error",layerViewRemove:"layerview-remove",layerViewUpdate:"layerview-update",layerLoaded:"layer-loaded",layerLoadError:"layer-load-error",featureAdd:"feature-add",layerUpdate:"layer-update",layerUpdateStyle:"update-style",layerUpdateOpacity:"layer-update-opacity",layerUpdateVisible:"layer-update-visible",layerSublayerVisible:"layer-sublayer-visible"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={layerAdd:"layer-add",layerAddMany:"layer-add-many",layerRemove:"layer-remove",layerRemoveMany:"layer-remove-many",layerRemoveAll:"layer-remove-all",layerChange:"map-layer-change",layerLoaded:"map-layer-loaded",loaded:"loaded",basemapChange:"basemap-change"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={functionMax:"FUNCTION_MAX",functionMin:"FUNCTION_MIN",functionSum:"FUNCTION_SUM",functionAvg:"FUNCTION_AVG",functionCount:"FUNCTION_COUNT",functionMaxOID:"FUNCTION_MAX_OID"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={Intersects:"Intersects",EnvelopeIntersects:"EnvelopeIntersects",Contains:"Contains",Disjoint:"Disjoint"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={baseLayer:"baselayer",unknown:"unknown",tile:"tile",igsTile:"igs-tile",arcgisTile:"arcgis-tile",vectorTile:"vectorTile",vectorTileSubLayer:"vectorTileSubLayer",igsVectorTile:"igs-vectorTile",mapImage:"map-image",igsMapImage:"igs-map-image",arcgisMapImage:"arcgis-map-image",ogc:"ogc",wms:"wms",wmts:"wmts",wfs:"wfs",feature:"feature",igsFeature:"igs-feature",geojson:"geojson",overlay:"overlay",mapv:"mapv",echarts:"echarts",elevation:"elevation",m3d:"m3d",m3dCache:"m3d-cache",scene:"scene",cesium3DTiles:"cesium3DTiles",group:"group",tdt:"tdt",baidu:"baidu",gaode:"gaode",terrain:"terrain",graphics:"graphics",arcgisVectorTile:"arcgis-vectorTile",webTileLayer:"web-tile-layer",isTileLayer:function(e){return[n.igsTile,n.arcgisTile,n.wmts,n.arcgisTile,n.igsVectorTile,n.tdt,n.baidu,n.gaode,n.arcgisVectorTile,n.webTileLayer].some(function(t){return e===t})}};t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={normal:"normal",url:"url",header:"header",body:"body"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={geometry:"geometry",point:"point",point3D:"point3d",lineString:"line",polygon:"polygon",multiPoint:"multiPoint",multiLineString:"multiLine",multiPolygon:"multiPolygon",circle:"circle",extent:"rect",extent3D:"rect3d"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={none:"none",info:"info",error:"error",warning:"warning",all:"all",infoAndError:"infoAndError",warningAndError:"warningAndError"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={notLoaded:"not-loaded",loading:"loading",loaded:"loaded",failed:"failed"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={click:"click",immediateClick:"immediate-click",doubleClick:"double-click",pointerDown:"mouse-down",pointerUp:"mouse-up",mouseOut:"mouse-out",pointerMove:"mouse-move",mouseDown:"mouse-down",mouseUp:"mouse-up",mouseMove:"mouse-move",mouseOver:"mouse-over",keyPress:"key-press",keyDown:"key-down",keyUp:"key-up",rightClickDown:"right-click-down",previewClick:"preview-click",zoom:"zoom",zoomEnd:"zoom-end",mapMove:"move",mapMoveEnd:"map-end",resize:"resize",loaded:"loaded",wheel:"wheel",viewChange:"view-change",drag:"drag",viewCreated:"view-created"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={kilometer:"kilometers",meter:"meters",mile:"miles"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={degree:"degrees",radian:"radians"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={classBreak:"class-breaks",uniqueValue:"unique-value",simple:"simple",cluster:"cluster",random:"random",rank:"rank",heatmap:"heatmap"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={fill:"fill",line:"line",circle:"circle",background:"background"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(0,function(e){return e&&e.__esModule?e:{default:e}}(r(62)).default)({rtmp:"rtmp",mp4:"mp4",hls:"m3u8",videoPlayer:"videoPlayer",videoHTML:"videoHTML"});t.default=n},function(e,t,r){r(311),e.exports=r(12).Object.freeze},function(e,t,r){var n=r(26),i=r(151).onFreeze;r(83)("freeze",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(0,function(e){return e&&e.__esModule?e:{default:e}}(r(62)).default)({POINT:0,POLYLINE:1,POLYGON:2,CIRCLE:3,RECTANGLE:4,FREEHANDPOLYLINE:5,FREEHANDPOLYGON:6,TEXT:7});t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(0,function(e){return e&&e.__esModule?e:{default:e}}(r(62)).default)({NONE:0,EDITGRAGIC:1,EDITVERTEX:2,DRAWING:3});t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(0,function(e){return e&&e.__esModule?e:{default:e}}(r(62)).default)({create:"create",remove:"remove",update:"update",redo:"redo",undo:"undo"});t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(0,function(e){return e&&e.__esModule?e:{default:e}}(r(62)).default)({start:"start",active:"active",complete:"complete",cancel:"cancel"});t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(0,function(e){return e&&e.__esModule?e:{default:e}}(r(62)).default)({cursorChange:"cursor-change",moveStart:"move-start",move:"move",moveStop:"move-stop",scaleStart:"scale-start",scale:"scale",scaleStop:"scale-stop",vertexAdd:"vertex-add",vertexRemove:"vertex-remove",vertexMoveStart:"vertex-move-start",vertexUpdate:"vertex-update",vertexMoveStop:"vertex-move-stop",geometryUnsimple:"geometry-unsimple",geometryAdd:"geometry-add"});t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={simpleRenderer:"1",uniqueValueRenderer:"2",classBreaksRenderer:"3",HeatmapRender:"4",PointClusterRenderer:"5",CartographicRenderer:"6",RuleBasedRenderer:"7",GridClusterRenderer:"8",DotDensityRenderer:"9"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={simpleMark:"1",fontMark:"2",pictureMark:"3",pointInfo:"4",svgMark:"5",customizeMark:"6",simpleLine:"7",pictureLine:"8",markLine:"9",lineInfo:"10",harshLine:"11",decorationLine:"12",simpleFill:"13",regInfoFill:"14",pictureFill:"15",markFill:"16",lineFill:"17",gradientFill:"18",customizeMarkFill:"19",strokeFill:"20",pieChart:"21",barChart:"22",stackedChart:"23",randomMarkFill:"24"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={OnTheGround:"OnTheGround",RelativeToGround:"RelativeToGround",AbsoluteHeight:"AbsoluteHeight",RelativeToScene:"RelativeToScene",OnTheScene:"OnTheScene"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={morphing:0,columbus:1,scene2d:2,scene3d:3}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={disabled:0,enable:1,cast:2,receive:3}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={igs_1:"igs_1",igs_2:"igs_2",tdt:"tdt",arcgis:"arcgis"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={png:"png",jpeg:"jpeg",svg:"svg"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={degrees:"degrees",miles:"miles",nauticalMiles:"nautical-miles",yards:"yards",meters:"meters",kilometers:"kilometers"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={corporationZD:1,corporationArcGIS:2,corporationSuperMap:3,corporationGeoServer:4,corporationTianDiTu:5,corporationOther:6,none:0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:"icon",object:"object",line:"line",path:"path",fill:"fill",water:"water",extrude:"extrude",text:"text"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={begin:"begin",end:"end",beginAndEnd:"begin-end"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={arrow:"arrow",circle:"circle",square:"square",diamond:"diamond",cross:"cross",x:"x"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={dash:"dash",dashDot:"dash-dot",dot:"dot",longDash:"long-dash",longDashDot:"long-dash-dot",longDashDotDot:"long-dash-dot-dot",none:"none",shortDash:"short-dash",shortDashDot:"short-dash-dot",shortDashDotDot:"short-dash-dot-dot",shortDot:"short-dot",solid:"solid"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={center:"center",left:"left",right:"right",bottom:"bottom",top:"top",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={circle:"circle",quad:"quad"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={color:"color"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={meters:"meters",feet:"feet",kilometers:"kilometers",miles:"miles",nauticalMiles:"nautical-miles",yards:"yards"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={acres:"acres",ares:"ares",hectares:"hectares",squareFeet:"square-feet",squareMeters:"square-meters",squareYards:"square-yards",squareKilometers:"square-kilometers",squareMiles:"square-miles"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={none:0,geodesic:1,rhumb:2}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={vector3D:"1",model:"2",terrain:"3",label:"4",cloud:"5",panorama:"6",mapRef:"7",groupLayer3D:"9",modelCache:"10"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={wmts:"wmts",tms:"tms"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={GroupLayer:"GroupLayer",SFeatureLayer:"SFeatureLayer"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={vec:"vec",img:"img",cva:"cva",cia:"cia"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.description=(0,o.defaultValue)(t.description,void 0),this.id=(0,o.defaultValue)(t.id,(0,o.getGUID)()),this.isDefault=(0,o.defaultValue)(t.isDefault,!1),this.title=(0,o.defaultValue)(t.title,void 0)}return(0,i.default)(e,[{key:"fromJSON",value:function(e){e=(0,o.defaultValue)(e,{}),this.description=(0,o.defaultValue)(e.description,void 0),this.id=(0,o.defaultValue)(e.id,(0,o.getGUID)()),this.isDefault=(0,o.defaultValue)(e.isDefault,!1),this.title=(0,o.defaultValue)(e.title,void 0)}},{key:"toJSON",value:function(){return{description:this.description,id:this.id,isDefault:this.isDefault,title:this.title}}},{key:"clone",value:function(){return new e(this.toJSON())}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=r(1),a=u(r(161)),s=r(6);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.mode=(0,o.defaultValue)(t.mode,s.ElevationMode.AbsoluteHeight),this.offset=(0,o.defaultValue)(t.offset,0),this.featureExpressionInfo=new a.default(t.featureExpressionInfo),this.unit=(0,o.defaultValue)(t.unit,s.LengthUnit.meter)}return(0,i.default)(e,[{key:"clone",value:function(){return new e({unit:this.unit,mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo.clone()})}},{key:"toJSON",value:function(){return{unit:this.unit,mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo.toJSON()}}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(3)),i=p(r(0)),o=p(r(2)),a=p(r(4)),s=p(r(5)),u=r(1),l=r(6),c=p(r(119)),h=p(r(120)),f=p(r(43)),d=r(30);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,u.defaultValue)(e,{}),r.type=l.Symbol3DLayerType.path,r.anchor=(0,u.defaultValue)(e.anchor,l.AnchorType.center),r.cap=(0,u.defaultValue)(e.cap,c.default.butt),r.castShadows=(0,u.defaultValue)(e.castShadows,!0),r.height=(0,u.defaultValue)(e.height,void 0),r.width=(0,u.defaultValue)(e.width,void 0),r.join=(0,u.defaultValue)(e.join,h.default.miter),r.material=e.material?d.ColorMaterial.fromJSON(e.material):new d.ColorMaterial,r.profile=(0,u.defaultValue)(e.profile,l.ProfileType.circle),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,anchor:this.anchor,cap:this.cap,castShadows:this.castShadows,height:this.height,width:this.width,join:this.join,material:this.material,profile:this.profile}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(f.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(2)),a=c(r(4)),s=c(r(5)),u=r(1),l=r(8);function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this));return e=(0,u.defaultValue)(e,{}),r.type="line",r.border=(0,u.defaultValue)(e.border,void 0),r.border&&r.border.hasOwnProperty("color")&&(r.border.color=new l.Color(r.border.color)),r.color=(0,u.defaultValue)(e.color,new l.Color),r.size=(0,u.defaultValue)(e.size,1),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,border:this.border?{color:this.border.color.toJSON()}:void 0,color:(0,u.toJSON)(this.color,l.Color),size:this.size}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(c(r(164)).default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.maxWorldLength=(0,o.defaultValue)(t.maxWorldLength,void 0),this.minWorldLength=(0,o.defaultValue)(t.minWorldLength,0),this.screenLength=(0,o.defaultValue)(t.screenLength,0)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{maxWorldLength:this.maxWorldLength,minWorldLength:this.minWorldLength,screenLength:this.screenLength}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.color=(0,o.defaultValue)(t.color,void 0),this.placement=(0,o.defaultValue)(t.placement,a.LineMarkerPlacement.beginAndEnd),this.style=(0,o.defaultValue)(t.style,a.LineMarkerStyle.arrow),this.type="style"}return(0,i.default)(e,[{key:"toJSON",value:function(){return{color:this.color.toJSON(),placement:this.placement,type:this.type,style:this.style}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.style=(0,o.defaultValue)(t.style,a.LinePatternStyle.solid),this.type="style"}return(0,i.default)(e,[{key:"toJSON",value:function(){return{style:this.style,type:this.type}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=r(1),a=r(8),s=u(r(157));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.color=(0,o.defaultValue)(t.color,new a.Color),this.size=(0,o.defaultValue)(t.size,1),this.pattern=(0,o.defaultValue)(t.pattern,s.default.solid)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{color:(0,o.toJSON)(this.color,a.Color),size:this.size,pattern:this.pattern}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(8);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.color=(0,o.defaultValue)(t.color,new a.Color),this.size=(0,o.defaultValue)(t.size,1)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{color:(0,o.toJSON)(this.color,a.Color),size:this.size}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),i=a(r(2)),o=r(1);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.primitive=(0,o.defaultValue)(t.primitive,"circle"),this.href=(0,o.defaultValue)(t.href,void 0)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{primitive:this.primitive,href:this.href}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=r(8);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.color=(0,o.defaultValue)(t.color,new a.Color),this.size=(0,o.defaultValue)(t.size,1),this.extensionLength=(0,o.defaultValue)(t.extensionLength,0)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{color:this.color.toJSON(),size:this.size,extensionLength:this.extensionLength}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorMaterial=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(352));t.ColorMaterial=n.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(0)),i=u(r(2)),o=r(1),a=r(8),s=r(6);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.type=s.MaterialType.color,this.color=(0,o.defaultValue)(t.color,new a.Color)}return(0,i.default)(e,[{key:"toJSON",value:function(){return{color:(0,o.toJSON)(this.color,a.Color),type:this.type}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(3)),i=p(r(0)),o=p(r(2)),a=p(r(4)),s=p(r(5)),u=p(r(43)),l=r(6),c=r(1),h=p(r(119)),f=p(r(120)),d=r(30);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.type=l.Symbol3DLayerType.line,r.cap=(0,c.defaultValue)(e.cap,h.default.butt),r.join=(0,c.defaultValue)(e.join,f.default.miter),r.marker=(0,c.defaultValue)(e.marker,void 0),r.material=e.material?d.ColorMaterial.fromJSON(e.material):new d.ColorMaterial,r.pattern=e.pattern?d.LineStylePattern3D.fromJSON(e.pattern):new d.LineStylePattern3D,r.size=(0,c.defaultValue)(e.size,1),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,cap:this.cap,join:this.join,marker:(0,c.toJSON)(this.marker,d.LineStyleMarker3D),material:(0,c.toJSON)(this.material,d.ColorMaterial),pattern:(0,c.toJSON)(this.pattern,d.LineStylePattern3D),size:this.size}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(u.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(5)),u=r(1),l=r(6),c=d(r(166)),h=d(r(43)),f=r(30);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,u.defaultValue)(e,{}),r.type=l.Symbol3DLayerType.fill,r.material=e.material?f.ColorMaterial.fromJSON(e.material):new f.ColorMaterial,r.castShadows=(0,u.defaultValue)(e.castShadows,!0),r.outline=e.outline?f.FillSymbol3DOutline.fromJSON(e.outline):new f.FillSymbol3DOutline,r.pattern=e.pattern?c.default.fromJSON(e.pattern):new c.default,r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,material:(0,u.toJSON)(this.material,f.ColorMaterial),outline:(0,u.toJSON)(this.outline,f.FillSymbol3DOutline),pattern:(0,u.toJSON)(this.pattern,c.default)}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(h.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(10)),i=h(r(0)),o=h(r(2)),a=r(1),s=r(6),u=r(30),l=r(8),c=r(9);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(t){(0,i.default)(this,e),t=(0,a.defaultValue)(t,{}),this.type=s.Symbol3DLayerType.icon,this.anchor=(0,a.defaultValue)(t.anchor,s.AnchorType.center),this.anchorPosition=t.anchorPosition?c.Point.fromJSON(t.anchorPosition):new c.Point({coordinates:[0,0]}),this.material=t.material?u.ColorMaterial.fromJSON(t.material):new u.ColorMaterial({color:new l.Color(255,255,255,1)}),this.outline=t.outline?u.PointSymbol3DOutline.fromJSON(t.outline):new u.PointSymbol3DOutline,this.resource=t.resource?u.IconResource.fromJSON(t.resource):new u.IconResource,this.size=(0,a.defaultValue)(t.size,12)}return(0,o.default)(e,[{key:"toJSON",value:function(){return{type:this.type,anchor:this.anchor,anchorPosition:JSON.parse((0,n.default)(this.anchorPosition)),material:this.material,outline:this.outline.toJSON(),resource:this.resource.toJSON(),size:this.size}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t)}}]),e}();t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(r(3)),i=p(r(0)),o=p(r(2)),a=p(r(4)),s=p(r(5)),u=r(1),l=r(6),c=r(30),h=p(r(43)),f=r(9),d=r(8);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,u.defaultValue)(e,{}),r.type=l.Symbol3DLayerType.object,r.anchor=(0,u.defaultValue)(e.anchor,l.AnchorType.center),r.anchorPosition=e.anchorPosition?f.Point.fromJSON(e.anchorPosition):new f.Point({coordinates:[0,0]}),r.castShadows=(0,u.defaultValue)(e.castShadows,!0),r.depth=(0,u.defaultValue)(e.depth,10),r.heading=(0,u.defaultValue)(e.heading,0),r.height=(0,u.defaultValue)(e.height,10),r.material=e.material?c.ColorMaterial.fromJSON(e.material):new c.ColorMaterial({color:new d.Color(255,255,255,1)}),r.resource=e.resource?c.IconResource.fromJSON(e.resource):new c.IconResource,r.roll=(0,u.defaultValue)(e.roll,0),r.tilt=(0,u.defaultValue)(e.tilt,0),r.width=(0,u.defaultValue)(e.width,10),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,anchor:this.anchor,anchorPosition:(0,u.toJSON)(this.anchorPosition,f.Point),castShadows:this.castShadows,depth:this.depth,heading:this.heading,height:this.height,material:(0,u.toJSON)(this.material,c.ColorMaterial),resource:(0,u.toJSON)(this.resource,c.IconResource),roll:this.roll,tilt:this.tilt,width:this.width}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(h.default);t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(5)),u=r(1),l=r(6),c=r(30);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,u.defaultValue)(e,{}),r.type=l.Symbol3DLayerType.extrude,r.castShadows=(0,u.defaultValue)(e.castShadows,!0),r.material=e.material?c.ColorMaterial.fromJSON(e.material):new c.ColorMaterial,r.size=(0,u.defaultValue)(e.size,1),r.edges=e.edges?c.Edges3D.fromJSON(e.edges):new c.Edges3D,r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,castShadows:this.castShadows,material:(0,u.toJSON)(this.material,c.ColorMaterial),size:this.size,pattern:(0,u.toJSON)(this.edges,c.Edges3D)}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(h(r(43)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=m(r(3)),i=m(r(0)),o=m(r(2)),a=m(r(4)),s=m(r(5)),u=r(1),l=r(6),c=r(8),h=m(r(114)),f=m(r(117)),d=m(r(118)),p=m(r(165)),y=m(r(43)),g=r(30);function m(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,u.defaultValue)(e,{}),r.type=l.Symbol3DLayerType.text,r.background=e.background?c.Color.fromJSON(e.background):new c.Color,r.font=e.font?h.default.fromJSON(e.font):new h.default,r.halo=e.halo?p.default.fromJSON(e.halo):new p.default,r.horizontalAlignment=(0,u.defaultValue)(e.horizontalAlignment,f.default.center),r.verticalAlignment=(0,u.defaultValue)(e.verticalAlignment,d.default.baseline),r.lineHeight=(0,u.defaultValue)(e.lineHeight,1),r.material=e.material?g.ColorMaterial.fromJSON(e.material):new g.ColorMaterial,r.size=(0,u.defaultValue)(e.size,9),r.text=(0,u.defaultValue)(e.text,void 0),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,background:(0,u.toJSON)(this.background,c.Color),font:(0,u.toJSON)(this.font,h.default),halo:(0,u.toJSON)(this.halo,p.default),horizontalAlignment:this.horizontalAlignment,verticalAlignment:this.verticalAlignment,lineHeight:this.lineHeight,material:(0,u.toJSON)(this.material,g.ColorMaterial),size:this.size,text:this.text}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(y.default);t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(5)),u=r(1),l=r(6),c=r(8),h=d(r(158)),f=d(r(159));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,u.defaultValue)(e,{}),r.type=l.Symbol3DLayerType.water,r.color=(0,u.defaultValue)(e.color,new c.Color),r.waterbodySize=(0,u.defaultValue)(e.waterbodySize,h.default.medium),r.waveDirection=(0,u.defaultValue)(e.waveDirection,void 0),r.waveStrength=(0,u.defaultValue)(e.waveStrength,f.default.moderate),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,color:this.color.toJSON(),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(d(r(43)).default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(7)),u=f(r(5)),l=r(1),c=r(6),h=f(r(123));function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.simpleMarker,r.size=(0,l.defaultValue)(e.size,20),r.outline=r._decorate("outline",e.outline,h.default,h.default.fromJSON),r.style=(0,l.defaultValue)(e.style,"circle"),r.path=(0,l.defaultValue)(e.path,""),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.size=this.size,e.outline=this.outline.toJSON(),e.style=this.style,e.path=this.path,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(f(r(168)).default);t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=d(r(52)),c=r(1),h=r(6),f=d(r(50));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.color=f.default.fromColor((0,c.defaultValue)(e.color,new f.default(0,0,0,1))),r.type=h.SymbolType.simpleLine,r.width=(0,c.defaultValue)(e.width,1),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.type=this.type,e.width=this.width,e}}]),t}(l.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(0)),i=s(r(2)),o=r(1),a=s(r(50));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){(0,n.default)(this,e),t=(0,o.defaultValue)(t,{}),this.type="line-marker",this.color=a.default.fromColor((0,o.defaultValue)(t.color,{})),this.placement=(0,o.defaultValue)(t.placement,"begin-end"),this.style=(0,o.defaultValue)(t.style,"arrow")}return(0,i.default)(e,[{key:"toJSON",value:function(){return{type:this.type,color:a.default.fromColor(this.color).toJSON(),placement:this.placement,style:this.style}}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(7)),u=h(r(5)),l=r(1),c=r(6);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.simpleFill,r.style=(0,l.defaultValue)(e.style,"solid"),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.style=this.style,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(h(r(169)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(7)),u=h(r(5)),l=r(1),c=r(6);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.pictureMarker,r.width=(0,l.defaultValue)(e.width,20),r.height=(0,l.defaultValue)(e.height,20),r.url=r._decorate("url",(0,l.defaultValue)(e.url,""),null,l.convertImageSourceToBase64),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.width=this.width,e.height=this.height,e.url=this.url,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(h(r(168)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(5)),u=f(r(169)),l=r(6),c=r(1),h=f(r(50));function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.type=l.SymbolType.pictureFill,r.height=(0,c.defaultValue)(e.height,12),r.url=r._decorate("url",(0,c.defaultValue)(e.url,""),null,c.convertImageSourceToBase64),r.width=(0,c.defaultValue)(e.width,12),r.xoffset=(0,c.defaultValue)(e.xoffset,0),r.xscale=(0,c.defaultValue)(e.xscale,1),r.yoffset=(0,c.defaultValue)(e.yoffset,0),r.yscale=(0,c.defaultValue)(e.yscale,1),r.color=h.default.fromColor((0,c.defaultValue)(e.color,new h.default(255,255,255,1))),r}return(0,s.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return{type:this.type,height:this.height,outline:this.outline.toJSON(),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,c.defaultValue)(e,{}))}}]),t}(u.default);t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(3)),i=f(r(0)),o=f(r(2)),a=f(r(4)),s=f(r(7)),u=f(r(5)),l=r(1),c=r(6),h=f(r(50));function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.SymbolType.mapgisText,r.backgroundPadding=(0,l.defaultValue)(e.backgroundPadding,[5,5]),r.backgroundImage=e.backgroundImage,r.textDecorationUnderlineColor=(0,l.defaultValue)(h.default.fromColor(e.textDecorationUnderlineColor),void 0),r.textDecorationUnderlineWidth=(0,l.defaultValue)(e.textDecorationUnderlineWidth,0),r.textDecorationThroughlineColor=(0,l.defaultValue)(h.default.fromColor(e.textDecorationThroughlineColor),void 0),r.textDecorationThroughlineWidth=(0,l.defaultValue)(e.textDecorationThroughlineWidth,0),r.textShadowOffsetX=(0,l.defaultValue)(e.textShadowOffsetX,0),r.textShadowOffsetY=(0,l.defaultValue)(e.textShadowOffsetY,0),r.textShadowBlur=(0,l.defaultValue)(e.textShadowBlur,1),r.textShadowColor=(0,l.defaultValue)(h.default.fromColor(e.textShadowColor),void 0),r.letterSpacing=(0,l.defaultValue)(e.letterSpacing,0),r.lineMaxNum=(0,l.defaultValue)(e.lineMaxNum,3),r.textWraps=(0,l.defaultValue)(e.textWraps,!1),r.textExtraIcon=e.textExtraIcon,r.textExtraIconAnchor=(0,l.defaultValue)(e.textExtraIconAnchor,"top"),r.textExtraIconSize=(0,l.defaultValue)(e.textExtraIconSize,14),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.backgroundPadding=this.backgroundPadding,e.textDecorationUnderlineColor=h.default.fromColor(this.textDecorationUnderlineColor).toJSON(),e.textDecorationUnderlineWidth=this.textDecorationUnderlineWidth,e.textDecorationThroughlineColor=h.default.fromColor(this.textDecorationThroughlineColor).toJSON(),e.textDecorationThroughlineWidth=this.textDecorationThroughlineWidth,e.textShadowOffsetX=this.textShadowOffsetX,e.textShadowOffsetY=this.textShadowOffsetY,e.textShadowBlur=this.textShadowBlur,e.textShadowColor=h.default.fromColor(this.textShadowColor).toJSON(),e.letterSpacing=this.letterSpacing,e.lineMaxNum=this.lineMaxNum,e.textWraps=this.textWraps,e.textExtraIcon=this.textExtraIcon,e.textExtraIconAnchor=this.textExtraIconAnchor,e.textExtraIconSize=this.textExtraIconSize,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(f(r(167)).default);t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=d(r(75)),c=r(1),h=d(r(116)),f=r(30);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,c.defaultValue)(e,{}),r.type=h.default.label3D,r.callout=e.callout?f.LineCallout3D.fromJSON(e.callout):new f.LineCallout3D,r.verticalOffset=e.verticalOffset?f.Symbol3DVerticalOffset.fromJSON(e.verticalOffset):new f.Symbol3DVerticalOffset,r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.callout=(0,c.toJSON)(this.callout,f.LineCallout3D),e.verticalOffset=(0,c.toJSON)(this.verticalOffset,f.Symbol3DVerticalOffset),e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(l.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(3)),i=c(r(0)),o=c(r(2)),a=c(r(4)),s=c(r(7)),u=c(r(5)),l=r(6);function c(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type=l.SymbolType.line3D,r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(c(r(75)).default);t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(3)),i=d(r(0)),o=d(r(2)),a=d(r(4)),s=d(r(7)),u=d(r(5)),l=r(1),c=d(r(116)),h=d(r(75)),f=r(30);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return e=(0,l.defaultValue)(e,{}),r.type=c.default.point3D,r.callout=(0,l.defaultValue)(e.callout,void 0),r.verticalOffset=(0,l.defaultValue)(e.verticalOffset,void 0),r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){var e=(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this);return e.callout=(0,l.toJSON)(this.callout,f.LineCallout3D),e.verticalOffset=(0,l.toJSON)(this.verticalOffset,f.Symbol3DVerticalOffset),e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}(h.default);t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(3)),i=h(r(0)),o=h(r(2)),a=h(r(4)),s=h(r(7)),u=h(r(5)),l=r(1),c=r(6);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){(0,i.default)(this,t);var r=(0,a.default)(this,(t.__proto__||(0,n.default)(t)).call(this,e));return r.type=c.SymbolType.polygon3D,r}return(0,u.default)(t,e),(0,o.default)(t,[{key:"toJSON",value:function(){return(0,s.default)(t.prototype.__proto__||(0,n.default)(t.prototype),"toJSON",this).call(this)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,l.defaultValue)(e,{}))}}]),t}(h(r(75)).default);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(r(10)),i=h(r(0)),o=h(r(2)),a=r(1),s=h(r(162)),u=r(9),l=r(6),c=h(r(74));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){return t&&e&&"4326"!==e.wkid?(t.spatialReference=e,c.default.project(t,new u.SpatialReference("EPSG:4326"))):t}function d(e){return e.length>2?[e[1],e[0],e[2]]:[e[1],e[0]]}function p(e,t,r){for(var n,i=[],o=0,a=e.length;o<a;o++)n=t?p(e[o],t-1,r):(r||d)(e[o]),i.push(n);return i}var y=function(){function e(t){(0,i.default)(this,e),t=(0,a.defaultValue)(t,{}),this.id=(0,a.defaultValue)(t.id,(0,a.getGUID)()),this.features=(0,a.defaultValue)(t.features,[]),this.spatialReference=(0,a.defaultValue)(t.spatialReference,new u.SpatialReference("EPSG:4326")),this.type="FeatureCollection"}return(0,o.default)(e,[{key:"findFeatureById",value:function(e){for(var t=void 0,r=0;r<this.features.length;r++)if(this.features[r].id===e||this.features[r].attributes.id===e){t=this.features[r];break}return t}},{key:"toJSON",value:function(){var e={};return e.id=this.id,e.features=this.features.map(function(e){return e.toJSON()}),e.spatialReference=this.spatialReference.toJSON(),e.type=this.type,e}},{key:"clone",value:function(){for(var t=new e,r=0;r<this.features.length;r++)t.features.push(this.features[r].clone());return t}},{key:"toGeoJSON",value:function(){for(var e={type:"FeatureCollection",features:[]},t=0;t<this.features.length;t++){var r=this.features[t].clone();if(r.geometry){var n=f(r.geometry.spatialReference,r.geometry);r.geometry=u.Geometry.fromGeoJSON(n)}e.features.push(r.toGeoJSON())}return e}}],[{key:"fromJSON",value:function(t){return new e(t=(0,a.defaultValue)(t,{}))}},{key:"fromGeoJSON",value:function(t){var r=(t=(0,a.defaultValue)(t,{})).type,i=[],o=new u.SpatialReference("EPSG:4326");if(t.crs&&t.crs.properties&&t.crs.properties.name&&(o=new u.SpatialReference({wkt:t.crs.properties.name})),"FeatureCollection"===r)for(var l=(0,a.defaultValue)(t.features,[]),c=0;c<l.length;c++){l[c].properties=(0,a.defaultValue)(l[c].properties,{});var h=l[c].id||l[c].properties.id,f=new s.default({id:h,attributes:JSON.parse((0,n.default)(l[c].properties)),geometry:u.Geometry.fromGeoJSON(l[c].geometry)});f.geometry.spatialReference=o.clone(),i.push(f)}return new e({spatialReference:o,features:i})}},{key:"fromArray",value:function(t,r,n){var i=(n=(0,a.defaultValue)(n,{})).reverse,o=(0,a.defaultValue)(t,[]);t instanceof e&&(o=(0,a.defaultValue)(t.features,[])),r=(0,a.defaultValue)(r,new e);for(var c=0;c<o.length;c++)if(o[c]){var h=void 0;if(o[c].geometry&&o[c].geometry.type&&o[c].geometry.coordinates)switch(o[c].geometry.type){case l.GeometryType.point:var f=o[c].geometry.coordinates;i&&(f=d(f)),h=new u.Point({coordinates:f});break;case l.GeometryType.multiPoint:var y=o[c].geometry.coordinates;i&&(y=p(y,0,d)),h=new u.MultiPoint({coordinates:y});break;case l.GeometryType.lineString:var g=o[c].geometry.coordinates;i&&(g=p(g,0,d)),h=new u.LineString({coordinates:g});break;case l.GeometryType.multiLineString:var m=o[c].geometry.coordinates;i&&(m=p(m,1,d)),h=new u.MultiLineString({coordinates:m});break;case l.GeometryType.polygon:var v=o[c].geometry.coordinates;i&&(v=p(v,1,d)),h=new u.Polygon({coordinates:v});break;case l.GeometryType.multiPolygon:var _=o[c].geometry.coordinates;i&&(_=p(_,2,d)),h=new u.MultiPolygon({coordinates:_});break;default:h={}}var S=u.SpatialReference.fromJSON(o[c].geometry.spatialReference||r.spatialReference),x=new s.default({attributes:t[c].attributes,geometry:h,symbol:t[c].symbol,additional:t[c].additional});x.geometry.spatialReference=S,r.features.push(x)}return r}}]),e}();t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeaturesFromFeatureSet=void 0;var n=r(373);t.getFeaturesFromFeatureSet=n.getFeaturesFromFeatureSet},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeaturesFromFeatureSet=void 0;var n=r(122),i=r(1);t.getFeaturesFromFeatureSet=function(e){var t=[];e instanceof n.FeatureSet?t=e.features:Array.isArray(e)&&e.every(function(e){return e instanceof n.Feature})?t=e:i.Log.info("传入要素集错误");for(var r=[],o=0;o<t.length;o++)r[o]=n.Feature.fromJSON(t[o].toJSON());return r}},function(e,t,r){r(87),r(70),e.exports=r(375)},function(e,t,r){var n=r(24),i=r(108);e.exports=r(12).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return n(t.call(e))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjUnitWkidMap=t.getProjUnitByWkid=t.RadiusUnitToMeter=void 0;var n=r(170);t.RadiusUnitToMeter={degrees:111320,miles:1609.34,"nautical-miles":1852,yard:.9144,meters:1,kilometers:1e3},t.getProjUnitByWkid=function(e){return(0,n.ProjUnitWkidMap)(e)?n.ProjUnitWkidMap.values[(0,n.ProjUnitWkidMap)(e)]:1},t.ProjUnitWkidMap=n.ProjUnitWkidMap},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e){var t=e.clone(),r=function(e){return Math.sqrt(function(e){return e.hasZ?e.coordinates[0]*e.coordinates[0]+e.coordinates[1]*e.coordinates[1]+e.coordinates[2]*e.coordinates[2]:e.coordinates[0]*e.coordinates[0]+e.coordinates[1]*e.coordinates[1]}(e))}(t);return t.coordinates[0]/=r,t.coordinates[1]/=r,t.hasZ&&(t.coordinates[2]/=r),t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getGeometryCenter=t.createGeometry=void 0;var n=r(18),i=function(e){return e&&e.__esModule?e:{default:e}}(r(88)),o=r(97);t.createGeometry=function(e){switch((e=(0,n.defaultValue)(e,{})).type){case i.default.circle:return new o.Circle(e);case i.default.extent:return new o.Extent(e);case i.default.lineString:return new o.LineString(e);case i.default.multiPolygon:return new o.MultiPolygon(e);case i.default.point:return new o.Point(e);case i.default.polygon:default:return new o.Polygon(e)}},t.getGeometryCenter=function(e){e||o.Log.error("几何为空");var t=void 0;switch(e.type){case i.default.point:t=e;break;case i.default.multiPoint:case i.default.lineString:case i.default.multiLineString:case i.default.multiPolygon:t=e.extent.center;break;case i.default.polygon:t=e.centroid;break;case i.default.extent:case i.default.circle:t=e.center;break;default:t=e.extent.center}return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionParser=void 0;var n=s(r(380)),i=s(r(384)),o=r(388),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(389));function s(e){return e&&e.__esModule?e:{default:e}}o.Parser.createValueExpressionParser=function(){var e=new o.Parser;return(0,i.default)(a).forEach(function(t){var r=(0,n.default)(t,2),i=r[0],o=r[1];e.functions[i]=o}),e.binaryOps["+"]=function(e,t){return e+t},e},t.ExpressionParser=o.Parser},function(e,t,r){"use strict";t.__esModule=!0;var n=o(r(381)),i=o(r(173));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,n.default)(Object(e)))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var s,u=(0,i.default)(e);!(n=(s=u.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,r){e.exports={default:r(382),__esModule:!0}},function(e,t,r){r(87),r(70),e.exports=r(383)},function(e,t,r){var n=r(107),i=r(21)("iterator"),o=r(61);e.exports=r(12).isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(n(t))}},function(e,t,r){e.exports={default:r(385),__esModule:!0}},function(e,t,r){r(386),e.exports=r(12).Object.entries},function(e,t,r){var n=r(17),i=r(387)(!0);n(n.S,"Object",{entries:function(e){return i(e)}})},function(e,t,r){var n=r(27),i=r(57),o=r(39),a=r(71).f;e.exports=function(e){return function(t){for(var r,s=o(t),u=i(s),l=u.length,c=0,h=[];l>c;)r=u[c++],n&&!a.call(s,r)||h.push(e?[r,s[r]]:s[r]);return h}}},function(e,t,r){"use strict";r.r(t),r.d(t,"Expression",function(){return T}),r.d(t,"Parser",function(){return Oe});var n="INUMBER",i="IOP1",o="IOP2",a="IOP3",s="IVAR",u="IVARNAME",l="IFUNCALL",c="IFUNDEF",h="IEXPR",f="IEXPREVAL",d="IMEMBER",p="IENDSTATEMENT",y="IARRAY";function g(e,t){this.type=e,this.value=void 0!==t&&null!==t?t:0}function m(e){return new g(i,e)}function v(e){return new g(o,e)}function _(e){return new g(a,e)}function S(e,t,r){var g,m,v,_,k,M,E=[];if(b(e))return w(e,r);for(var I=e.length,T=0;T<I;T++){var L=e[T],C=L.type;if(C===n||C===u)E.push(L.value);else if(C===o)m=E.pop(),g=E.pop(),"and"===L.value?E.push(!!g&&!!S(m,t,r)):"or"===L.value?E.push(!!g||!!S(m,t,r)):"="===L.value?(_=t.binaryOps[L.value],E.push(_(g,S(m,t,r),r))):(_=t.binaryOps[L.value],E.push(_(w(g,r),w(m,r))));else if(C===a)v=E.pop(),m=E.pop(),g=E.pop(),"?"===L.value?E.push(S(g?m:v,t,r)):(_=t.ternaryOps[L.value],E.push(_(w(g,r),w(m,r),w(v,r))));else if(C===s)if(L.value in t.functions)E.push(t.functions[L.value]);else if(L.value in t.unaryOps&&t.parser.isOperatorEnabled(L.value))E.push(t.unaryOps[L.value]);else{var P=r[L.value];if(void 0===P)throw new Error("undefined variable: "+L.value);E.push(P)}else if(C===i)g=E.pop(),_=t.unaryOps[L.value],E.push(_(w(g,r)));else if(C===l){for(M=L.value,k=[];M-- >0;)k.unshift(w(E.pop(),r));if(!(_=E.pop()).apply||!_.call)throw new Error(_+" is not a function");E.push(_.apply(void 0,k))}else if(C===c)E.push(function(){for(var e=E.pop(),n=[],i=L.value;i-- >0;)n.unshift(E.pop());var o=E.pop(),a=function(){for(var i=Object.assign({},r),o=0,a=n.length;o<a;o++)i[n[o]]=arguments[o];return S(e,t,i)};return Object.defineProperty(a,"name",{value:o,writable:!1}),r[o]=a,a}());else if(C===h)E.push(x(L,t));else if(C===f)E.push(L);else if(C===d)g=E.pop(),E.push(g[L.value]);else if(C===p)E.pop();else{if(C!==y)throw new Error("invalid Expression");for(M=L.value,k=[];M-- >0;)k.unshift(E.pop());E.push(k)}}if(E.length>1)throw new Error("invalid Expression (parity)");return 0===E[0]?0:w(E[0],r)}function x(e,t,r){return b(e)?e:{type:f,value:function(r){return S(e.value,t,r)}}}function b(e){return e&&e.type===f}function w(e,t){return b(e)?e.value(t):e}function k(e,t){for(var r,f,g,m,v,_,S=[],x=0;x<e.length;x++){var b=e[x],w=b.type;if(w===n)"number"==typeof b.value&&b.value<0?S.push("("+b.value+")"):Array.isArray(b.value)?S.push("["+b.value.map(M).join(", ")+"]"):S.push(M(b.value));else if(w===o)f=S.pop(),r=S.pop(),m=b.value,t?"^"===m?S.push("Math.pow("+r+", "+f+")"):"and"===m?S.push("(!!"+r+" && !!"+f+")"):"or"===m?S.push("(!!"+r+" || !!"+f+")"):"||"===m?S.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }(("+r+"),("+f+")))"):"=="===m?S.push("("+r+" === "+f+")"):"!="===m?S.push("("+r+" !== "+f+")"):"["===m?S.push(r+"[("+f+") | 0]"):S.push("("+r+" "+m+" "+f+")"):"["===m?S.push(r+"["+f+"]"):S.push("("+r+" "+m+" "+f+")");else if(w===a){if(g=S.pop(),f=S.pop(),r=S.pop(),"?"!==(m=b.value))throw new Error("invalid Expression");S.push("("+r+" ? "+f+" : "+g+")")}else if(w===s||w===u)S.push(b.value);else if(w===i)r=S.pop(),"-"===(m=b.value)||"+"===m?S.push("("+m+r+")"):t?"not"===m?S.push("(!"+r+")"):"!"===m?S.push("fac("+r+")"):S.push(m+"("+r+")"):"!"===m?S.push("("+r+"!)"):S.push("("+m+" "+r+")");else if(w===l){for(_=b.value,v=[];_-- >0;)v.unshift(S.pop());m=S.pop(),S.push(m+"("+v.join(", ")+")")}else if(w===c){for(f=S.pop(),_=b.value,v=[];_-- >0;)v.unshift(S.pop());r=S.pop(),t?S.push("("+r+" = function("+v.join(", ")+") { return "+f+" })"):S.push("("+r+"("+v.join(", ")+") = "+f+")")}else if(w===d)r=S.pop(),S.push(r+"."+b.value);else if(w===y){for(_=b.value,v=[];_-- >0;)v.unshift(S.pop());S.push("["+v.join(", ")+"]")}else if(w===h)S.push("("+k(b.value,t)+")");else if(w!==p)throw new Error("invalid Expression")}return S.length>1&&(S=t?[S.join(",")]:[S.join(";")]),String(S[0])}function M(e){return"string"==typeof e?JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):e}function E(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return!0;return!1}function I(e,t,r){for(var n=!!(r=r||{}).withMembers,i=null,o=0;o<e.length;o++){var a=e[o];a.type===s||a.type===u?n||E(t,a.value)?null!==i?(E(t,i)||t.push(i),i=a.value):i=a.value:t.push(a.value):a.type===d&&n&&null!==i?i+="."+a.value:a.type===h?I(a.value,t,r):null!==i&&(E(t,i)||t.push(i),i=null)}null===i||E(t,i)||t.push(i)}function T(e,t){this.tokens=e,this.parser=t,this.unaryOps=t.unaryOps,this.binaryOps=t.binaryOps,this.ternaryOps=t.ternaryOps,this.functions=t.functions}g.prototype.toString=function(){switch(this.type){case n:case i:case o:case a:case s:case u:case p:return this.value;case l:return"CALL "+this.value;case c:return"DEF "+this.value;case y:return"ARRAY "+this.value;case d:return"."+this.value;default:return"Invalid Instruction"}},T.prototype.simplify=function(e){return e=e||{},new T(function e(t,r,l,c,f){for(var p,m,v,_,S=[],x=[],b=0;b<t.length;b++){var w=t[b],k=w.type;if(k===n||k===u)Array.isArray(w.value)?S.push.apply(S,e(w.value.map(function(e){return new g(n,e)}).concat(new g(y,w.value.length)),r,l,c,f)):S.push(w);else if(k===s&&f.hasOwnProperty(w.value))w=new g(n,f[w.value]),S.push(w);else if(k===o&&S.length>1)m=S.pop(),p=S.pop(),_=l[w.value],w=new g(n,_(p.value,m.value)),S.push(w);else if(k===a&&S.length>2)v=S.pop(),m=S.pop(),p=S.pop(),"?"===w.value?S.push(p.value?m.value:v.value):(_=c[w.value],w=new g(n,_(p.value,m.value,v.value)),S.push(w));else if(k===i&&S.length>0)p=S.pop(),_=r[w.value],w=new g(n,_(p.value)),S.push(w);else if(k===h){for(;S.length>0;)x.push(S.shift());x.push(new g(h,e(w.value,r,l,c,f)))}else if(k===d&&S.length>0)p=S.pop(),S.push(new g(n,p.value[w.value]));else{for(;S.length>0;)x.push(S.shift());x.push(w)}}for(;S.length>0;)x.push(S.shift());return x}(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,e),this.parser)},T.prototype.substitute=function(e,t){return t instanceof T||(t=this.parser.parse(String(t))),new T(function e(t,r,n){for(var u=[],l=0;l<t.length;l++){var c=t[l],f=c.type;if(f===s&&c.value===r)for(var d=0;d<n.tokens.length;d++){var p,y=n.tokens[d];p=y.type===i?m(y.value):y.type===o?v(y.value):y.type===a?_(y.value):new g(y.type,y.value),u.push(p)}else f===h?u.push(new g(h,e(c.value,r,n))):u.push(c)}return u}(this.tokens,e,t),this.parser)},T.prototype.evaluate=function(e){return e=e||{},S(this.tokens,this,e)},T.prototype.toString=function(){return k(this.tokens,!1)},T.prototype.symbols=function(e){e=e||{};var t=[];return I(this.tokens,t,e),t},T.prototype.variables=function(e){e=e||{};var t=[];I(this.tokens,t,e);var r=this.functions;return t.filter(function(e){return!(e in r)})},T.prototype.toJSFunction=function(e,t){var r=this,n=new Function(e,"with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return "+k(this.simplify(t).tokens,!0)+"; }");return function(){return n.apply(r,arguments)}};var L="TOP",C="TPAREN";function P(e,t,r){this.type=e,this.value=t,this.index=r}function N(e,t){this.pos=0,this.current=null,this.unaryOps=e.unaryOps,this.binaryOps=e.binaryOps,this.ternaryOps=e.ternaryOps,this.consts=e.consts,this.expression=t,this.savedPosition=0,this.savedCurrent=null,this.options=e.options,this.parser=e}P.prototype.toString=function(){return this.type+": "+this.value},N.prototype.newToken=function(e,t,r){return new P(e,t,null!=r?r:this.pos)},N.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},N.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},N.prototype.next=function(){return this.pos>=this.expression.length?this.newToken("TEOF","EOF"):this.isWhitespace()||this.isComment()?this.next():this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName()?this.current:void this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')},N.prototype.isString=function(){var e=!1,t=this.pos,r=this.expression.charAt(t);if("'"===r||'"'===r)for(var n=this.expression.indexOf(r,t+1);n>=0&&this.pos<this.expression.length;){if(this.pos=n+1,"\\"!==this.expression.charAt(n-1)){var i=this.expression.substring(t+1,n);this.current=this.newToken("TSTRING",this.unescape(i),t),e=!0;break}n=this.expression.indexOf(r,n+1)}return e},N.prototype.isParen=function(){var e=this.expression.charAt(this.pos);return("("===e||")"===e)&&(this.current=this.newToken(C,e),this.pos++,!0)},N.prototype.isBracket=function(){var e=this.expression.charAt(this.pos);return!("["!==e&&"]"!==e||!this.isOperatorEnabled("[")||(this.current=this.newToken("TBRACKET",e),this.pos++,0))},N.prototype.isComma=function(){return","===this.expression.charAt(this.pos)&&(this.current=this.newToken("TCOMMA",","),this.pos++,!0)},N.prototype.isSemicolon=function(){return";"===this.expression.charAt(this.pos)&&(this.current=this.newToken("TSEMICOLON",";"),this.pos++,!0)},N.prototype.isConst=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var r=this.expression.charAt(t);if(r.toUpperCase()===r.toLowerCase()&&(t===this.pos||"_"!==r&&"."!==r&&(r<"0"||r>"9")))break}if(t>e){var n=this.expression.substring(e,t);if(n in this.consts)return this.current=this.newToken("TNUMBER",this.consts[n]),this.pos+=n.length,!0}return!1},N.prototype.isNamedOp=function(){for(var e=this.pos,t=e;t<this.expression.length;t++){var r=this.expression.charAt(t);if(r.toUpperCase()===r.toLowerCase()&&(t===this.pos||"_"!==r&&(r<"0"||r>"9")))break}if(t>e){var n=this.expression.substring(e,t);if(this.isOperatorEnabled(n)&&(n in this.binaryOps||n in this.unaryOps||n in this.ternaryOps))return this.current=this.newToken(L,n),this.pos+=n.length,!0}return!1},N.prototype.isName=function(){for(var e=this.pos,t=e,r=!1;t<this.expression.length;t++){var n=this.expression.charAt(t);if(n.toUpperCase()===n.toLowerCase()){if(t===this.pos&&("$"===n||"_"===n)){"_"===n&&(r=!0);continue}if(t===this.pos||!r||"_"!==n&&(n<"0"||n>"9"))break}else r=!0}if(r){var i=this.expression.substring(e,t);return this.current=this.newToken("TNAME",i),this.pos+=i.length,!0}return!1},N.prototype.isWhitespace=function(){for(var e=!1,t=this.expression.charAt(this.pos);!(" "!==t&&"\t"!==t&&"\n"!==t&&"\r"!==t||(e=!0,this.pos++,this.pos>=this.expression.length));)t=this.expression.charAt(this.pos);return e};var O=/^[0-9a-f]{4}$/i;function R(e,t,r){this.parser=e,this.tokens=t,this.current=null,this.nextToken=null,this.next(),this.savedCurrent=null,this.savedNextToken=null,this.allowMemberAccess=!1!==r.allowMemberAccess}N.prototype.unescape=function(e){var t=e.indexOf("\\");if(t<0)return e;for(var r=e.substring(0,t);t>=0;){var n=e.charAt(++t);switch(n){case"'":r+="'";break;case'"':r+='"';break;case"\\":r+="\\";break;case"/":r+="/";break;case"b":r+="\b";break;case"f":r+="\f";break;case"n":r+="\n";break;case"r":r+="\r";break;case"t":r+="\t";break;case"u":var i=e.substring(t+1,t+5);O.test(i)||this.parseError("Illegal escape sequence: \\u"+i),r+=String.fromCharCode(parseInt(i,16)),t+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+n+'"')}++t;var o=e.indexOf("\\",t);r+=e.substring(t,o<0?e.length:o),t=o}return r},N.prototype.isComment=function(){return"/"===this.expression.charAt(this.pos)&&"*"===this.expression.charAt(this.pos+1)&&(this.pos=this.expression.indexOf("*/",this.pos)+2,1===this.pos&&(this.pos=this.expression.length),!0)},N.prototype.isRadixInteger=function(){var e,t,r=this.pos;if(r>=this.expression.length-2||"0"!==this.expression.charAt(r))return!1;if(++r,"x"===this.expression.charAt(r))e=16,t=/^[0-9a-f]$/i,++r;else{if("b"!==this.expression.charAt(r))return!1;e=2,t=/^[01]$/i,++r}for(var n=!1,i=r;r<this.expression.length;){var o=this.expression.charAt(r);if(!t.test(o))break;r++,n=!0}return n&&(this.current=this.newToken("TNUMBER",parseInt(this.expression.substring(i,r),e)),this.pos=r),n},N.prototype.isNumber=function(){for(var e,t=!1,r=this.pos,n=r,i=r,o=!1,a=!1;r<this.expression.length&&((e=this.expression.charAt(r))>="0"&&e<="9"||!o&&"."===e);)"."===e?o=!0:a=!0,r++,t=a;if(t&&(i=r),"e"===e||"E"===e){r++;for(var s=!0,u=!1;r<this.expression.length;){if(e=this.expression.charAt(r),!s||"+"!==e&&"-"!==e){if(!(e>="0"&&e<="9"))break;u=!0,s=!1}else s=!1;r++}u||(r=i)}return t?(this.current=this.newToken("TNUMBER",parseFloat(this.expression.substring(n,r))),this.pos=r):this.pos=i,t},N.prototype.isOperator=function(){var e=this.pos,t=this.expression.charAt(this.pos);if("+"===t||"-"===t||"*"===t||"/"===t||"%"===t||"^"===t||"?"===t||":"===t||"."===t)this.current=this.newToken(L,t);else if("∙"===t||"•"===t)this.current=this.newToken(L,"*");else if(">"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(L,">="),this.pos++):this.current=this.newToken(L,">");else if("<"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(L,"<="),this.pos++):this.current=this.newToken(L,"<");else if("|"===t){if("|"!==this.expression.charAt(this.pos+1))return!1;this.current=this.newToken(L,"||"),this.pos++}else if("="===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(L,"=="),this.pos++):this.current=this.newToken(L,t);else{if("!"!==t)return!1;"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(L,"!="),this.pos++):this.current=this.newToken(L,t)}return this.pos++,!!this.isOperatorEnabled(this.current.value)||(this.pos=e,!1)},N.prototype.isOperatorEnabled=function(e){return this.parser.isOperatorEnabled(e)},N.prototype.getCoordinates=function(){var e,t=0,r=-1;do{t++,e=this.pos-r,r=this.expression.indexOf("\n",r+1)}while(r>=0&&r<this.pos);return{line:t,column:e}},N.prototype.parseError=function(e){var t=this.getCoordinates();throw new Error("parse error ["+t.line+":"+t.column+"]: "+e)},R.prototype.next=function(){return this.current=this.nextToken,this.nextToken=this.tokens.next()},R.prototype.tokenMatches=function(e,t){return void 0===t||(Array.isArray(t)?E(t,e.value):"function"==typeof t?t(e):e.value===t)},R.prototype.save=function(){this.savedCurrent=this.current,this.savedNextToken=this.nextToken,this.tokens.save()},R.prototype.restore=function(){this.tokens.restore(),this.current=this.savedCurrent,this.nextToken=this.savedNextToken},R.prototype.accept=function(e,t){return!(this.nextToken.type!==e||!this.tokenMatches(this.nextToken,t)||(this.next(),0))},R.prototype.expect=function(e,t){if(!this.accept(e,t)){var r=this.tokens.getCoordinates();throw new Error("parse error ["+r.line+":"+r.column+"]: Expected "+(t||e))}},R.prototype.parseAtom=function(e){var t=this.tokens.unaryOps;if(this.accept("TNAME")||this.accept(L,function(e){return e.value in t}))e.push(new g(s,this.current.value));else if(this.accept("TNUMBER"))e.push(new g(n,this.current.value));else if(this.accept("TSTRING"))e.push(new g(n,this.current.value));else if(this.accept(C,"("))this.parseExpression(e),this.expect(C,")");else{if(!this.accept("TBRACKET","["))throw new Error("unexpected "+this.nextToken);if(this.accept("TBRACKET","]"))e.push(new g(y,0));else{var r=this.parseArrayList(e);e.push(new g(y,r))}}},R.prototype.parseExpression=function(e){var t=[];this.parseUntilEndStatement(e,t)||(this.parseVariableAssignmentExpression(t),this.parseUntilEndStatement(e,t)||this.pushExpression(e,t))},R.prototype.pushExpression=function(e,t){for(var r=0,n=t.length;r<n;r++)e.push(t[r])},R.prototype.parseUntilEndStatement=function(e,t){return!!this.accept("TSEMICOLON")&&(!this.nextToken||"TEOF"===this.nextToken.type||this.nextToken.type===C&&")"===this.nextToken.value||t.push(new g(p)),"TEOF"!==this.nextToken.type&&this.parseExpression(t),e.push(new g(h,t)),!0)},R.prototype.parseArrayList=function(e){for(var t=0;!this.accept("TBRACKET","]");)for(this.parseExpression(e),++t;this.accept("TCOMMA");)this.parseExpression(e),++t;return t},R.prototype.parseVariableAssignmentExpression=function(e){for(this.parseConditionalExpression(e);this.accept(L,"=");){var t=e.pop(),r=[],n=e.length-1;if(t.type!==l){if(t.type!==s&&t.type!==d)throw new Error("expected variable for assignment");this.parseVariableAssignmentExpression(r),e.push(new g(u,t.value)),e.push(new g(h,r)),e.push(v("="))}else{if(!this.tokens.isOperatorEnabled("()="))throw new Error("function definition is not permitted");for(var i=0,o=t.value+1;i<o;i++){var a=n-i;e[a].type===s&&(e[a]=new g(u,e[a].value))}this.parseVariableAssignmentExpression(r),e.push(new g(h,r)),e.push(new g(c,t.value))}}},R.prototype.parseConditionalExpression=function(e){for(this.parseOrExpression(e);this.accept(L,"?");){var t=[],r=[];this.parseConditionalExpression(t),this.expect(L,":"),this.parseConditionalExpression(r),e.push(new g(h,t)),e.push(new g(h,r)),e.push(_("?"))}},R.prototype.parseOrExpression=function(e){for(this.parseAndExpression(e);this.accept(L,"or");){var t=[];this.parseAndExpression(t),e.push(new g(h,t)),e.push(v("or"))}},R.prototype.parseAndExpression=function(e){for(this.parseComparison(e);this.accept(L,"and");){var t=[];this.parseComparison(t),e.push(new g(h,t)),e.push(v("and"))}};var V=["==","!=","<","<=",">=",">","in"];R.prototype.parseComparison=function(e){for(this.parseAddSub(e);this.accept(L,V);){var t=this.current;this.parseAddSub(e),e.push(v(t.value))}};var G=["+","-","||"];R.prototype.parseAddSub=function(e){for(this.parseTerm(e);this.accept(L,G);){var t=this.current;this.parseTerm(e),e.push(v(t.value))}};var A=["*","/","%"];function D(e,t){return Number(e)+Number(t)}function F(e,t){return e-t}function j(e,t){return e*t}function B(e,t){return e/t}function q(e,t){return e%t}function U(e,t){return Array.isArray(e)&&Array.isArray(t)?e.concat(t):""+e+t}function J(e,t){return e===t}function z(e,t){return e!==t}function W(e,t){return e>t}function H(e,t){return e<t}function X(e,t){return e>=t}function Y(e,t){return e<=t}function Z(e,t){return Boolean(e&&t)}function K(e,t){return Boolean(e||t)}function Q(e,t){return E(t,e)}function $(e){return(Math.exp(e)-Math.exp(-e))/2}function ee(e){return(Math.exp(e)+Math.exp(-e))/2}function te(e){return e===1/0?1:e===-1/0?-1:(Math.exp(e)-Math.exp(-e))/(Math.exp(e)+Math.exp(-e))}function re(e){return e===-1/0?e:Math.log(e+Math.sqrt(e*e+1))}function ne(e){return Math.log(e+Math.sqrt(e*e-1))}function ie(e){return Math.log((1+e)/(1-e))/2}function oe(e){return Math.log(e)*Math.LOG10E}function ae(e){return-e}function se(e){return!e}function ue(e){return e<0?Math.ceil(e):Math.floor(e)}function le(e){return Math.random()*(e||1)}function ce(e){return de(e+1)}R.prototype.parseTerm=function(e){for(this.parseFactor(e);this.accept(L,A);){var t=this.current;this.parseFactor(e),e.push(v(t.value))}},R.prototype.parseFactor=function(e){var t=this.tokens.unaryOps;if(this.save(),this.accept(L,function(e){return e.value in t})){if("-"!==this.current.value&&"+"!==this.current.value){if(this.nextToken.type===C&&"("===this.nextToken.value)return this.restore(),void this.parseExponential(e);if("TSEMICOLON"===this.nextToken.type||"TCOMMA"===this.nextToken.type||"TEOF"===this.nextToken.type||this.nextToken.type===C&&")"===this.nextToken.value)return this.restore(),void this.parseAtom(e)}var r=this.current;this.parseFactor(e),e.push(m(r.value))}else this.parseExponential(e)},R.prototype.parseExponential=function(e){for(this.parsePostfixExpression(e);this.accept(L,"^");)this.parseFactor(e),e.push(v("^"))},R.prototype.parsePostfixExpression=function(e){for(this.parseFunctionCall(e);this.accept(L,"!");)e.push(m("!"))},R.prototype.parseFunctionCall=function(e){var t=this.tokens.unaryOps;if(this.accept(L,function(e){return e.value in t})){var r=this.current;this.parseAtom(e),e.push(m(r.value))}else for(this.parseMemberExpression(e);this.accept(C,"(");)if(this.accept(C,")"))e.push(new g(l,0));else{var n=this.parseArgumentList(e);e.push(new g(l,n))}},R.prototype.parseArgumentList=function(e){for(var t=0;!this.accept(C,")");)for(this.parseExpression(e),++t;this.accept("TCOMMA");)this.parseExpression(e),++t;return t},R.prototype.parseMemberExpression=function(e){for(this.parseAtom(e);this.accept(L,".")||this.accept("TBRACKET","[");){var t=this.current;if("."===t.value){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect("TNAME"),e.push(new g(d,this.current.value))}else{if("["!==t.value)throw new Error("unexpected symbol: "+t.value);if(!this.tokens.isOperatorEnabled("["))throw new Error('unexpected "[]", arrays are disabled');this.parseExpression(e),this.expect("TBRACKET","]"),e.push(v("["))}}};var he=4.7421875,fe=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function de(e){var t,r;if(function(e){return isFinite(e)&&e===Math.round(e)}(e)){if(e<=0)return isFinite(e)?1/0:NaN;if(e>171)return 1/0;for(var n=e-2,i=e-1;n>1;)i*=n,n--;return 0===i&&(i=1),i}if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*de(1-e));if(e>=171.35)return 1/0;if(e>85){var o=e*e,a=o*e,s=a*e,u=s*e;return Math.sqrt(2*Math.PI/e)*Math.pow(e/Math.E,e)*(1+1/(12*e)+1/(288*o)-139/(51840*a)-571/(2488320*s)+163879/(209018880*u)+5246819/(75246796800*u*e))}--e,r=fe[0];for(var l=1;l<fe.length;++l)r+=fe[l]/(e+l);return t=e+he+.5,Math.sqrt(2*Math.PI)*Math.pow(t,e+.5)*Math.exp(-t)*r}function pe(e){return Array.isArray(e)?e.length:String(e).length}function ye(){for(var e=0,t=0,r=0;r<arguments.length;r++){var n,i=Math.abs(arguments[r]);t<i?(e=e*(n=t/i)*n+1,t=i):e+=i>0?(n=i/t)*n:i}return t===1/0?1/0:t*Math.sqrt(e)}function ge(e,t,r){return e?t:r}function me(e,t){return void 0===t||0==+t?Math.round(e):(e=+e,t=-+t,isNaN(e)||"number"!=typeof t||t%1!=0?NaN:(e=e.toString().split("e"),+((e=(e=Math.round(+(e[0]+"e"+(e[1]?+e[1]-t:-t)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]+t:t))))}function ve(e,t,r){return r&&(r[e]=t),t}function _e(e,t){return e[0|t]}function Se(e){return 1===arguments.length&&Array.isArray(e)?Math.max.apply(Math,e):Math.max.apply(Math,arguments)}function xe(e){return 1===arguments.length&&Array.isArray(e)?Math.min.apply(Math,e):Math.min.apply(Math,arguments)}function be(e,t){if("function"!=typeof e)throw new Error("First argument to map is not a function");if(!Array.isArray(t))throw new Error("Second argument to map is not an array");return t.map(function(t,r){return e(t,r)})}function we(e,t,r){if("function"!=typeof e)throw new Error("First argument to fold is not a function");if(!Array.isArray(r))throw new Error("Second argument to fold is not an array");return r.reduce(function(t,r,n){return e(t,r,n)},t)}function ke(e,t){if("function"!=typeof e)throw new Error("First argument to filter is not a function");if(!Array.isArray(t))throw new Error("Second argument to filter is not an array");return t.filter(function(t,r){return e(t,r)})}function Me(e,t){if(!Array.isArray(t)&&"string"!=typeof t)throw new Error("Second argument to indexOf is not a string or array");return t.indexOf(e)}function Ee(e,t){if(!Array.isArray(t))throw new Error("Second argument to join is not an array");return t.join(e)}function Ie(e){return(e>0)-(e<0)||+e}var Te=1/3;function Le(e){return e<0?-Math.pow(-e,Te):Math.pow(e,Te)}function Ce(e){return Math.exp(e)-1}function Pe(e){return Math.log(1+e)}function Ne(e){return Math.log(e)/Math.LN2}function Oe(e){this.options=e||{},this.unaryOps={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Math.sinh||$,cosh:Math.cosh||ee,tanh:Math.tanh||te,asinh:Math.asinh||re,acosh:Math.acosh||ne,atanh:Math.atanh||ie,sqrt:Math.sqrt,cbrt:Math.cbrt||Le,log:Math.log,log2:Math.log2||Ne,ln:Math.log,lg:Math.log10||oe,log10:Math.log10||oe,expm1:Math.expm1||Ce,log1p:Math.log1p||Pe,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||ue,"-":ae,"+":Number,exp:Math.exp,not:se,length:pe,"!":ce,sign:Math.sign||Ie},this.binaryOps={"+":D,"-":F,"*":j,"/":B,"%":q,"^":Math.pow,"||":U,"==":J,"!=":z,">":W,"<":H,">=":X,"<=":Y,and:Z,or:K,in:Q,"=":ve,"[":_e},this.ternaryOps={"?":ge},this.functions={random:le,fac:ce,min:xe,max:Se,hypot:Math.hypot||ye,pyt:Math.hypot||ye,pow:Math.pow,atan2:Math.atan2,if:ge,gamma:de,roundTo:me,map:be,fold:we,filter:ke,indexOf:Me,join:Ee},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}Oe.prototype.parse=function(e){var t=[],r=new R(this,new N(this,e),{allowMemberAccess:this.options.allowMemberAccess});return r.parseExpression(t),r.expect("TEOF","EOF"),new T(t,this)},Oe.prototype.evaluate=function(e,t){return this.parse(e).evaluate(t)};var Re=new Oe;Oe.parse=function(e){return Re.parse(e)},Oe.evaluate=function(e,t){return Re.parse(e).evaluate(t)};var Ve={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison","!=":"comparison","||":"concatenate",and:"logical",or:"logical",not:"logical","?":"conditional",":":"conditional","=":"assignment","[":"array","()=":"fndef"};Oe.prototype.isOperatorEnabled=function(e){var t=function(e){return Ve.hasOwnProperty(e)?Ve[e]:e}(e),r=this.options.operators||{};return!(t in r&&!r[t])};
|
|
90
90
|
/*!
|
|
91
91
|
Based on ndef.parser, by Raphael Graf(r@undefined.ch)
|
|
92
92
|
http://www.undefined.ch/mparser/index.html
|