@mapgis/webclient-common 17.2.10 → 17.2.11

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.
@@ -87,7 +87,7 @@ function pe(e,t,r){r=r||{};for(var n=Object.keys(fe),i=0;i<n.length;i++){var o=n
87
87
  *
88
88
  * You should have received a copy of the GNU Affero General Public License
89
89
  * along with MarchingSquaresJS. If not, see <http://www.gnu.org/licenses/>.
90
- */(e,n),a=[],s=0;s<o.length;s++){for(var u=o[s],l=[],c=0;c<u.length;c++){var f=u[c];f.properties[r]?l.push(f.properties[r]):l.push(0),!0===i&&(f.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=To(ko(Li(e,o,a-o))),u={};u.groupedRings=s,u[r]=o+"-"+a,n.push(u)}return n}(a,t,n);return d((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=t[0].length-1,l=t.length-1,c=i/u,f=o/l,h=function(e){e[0]=e[0]*c+a,e[1]=e[1]*f+s};return e.forEach(function(e){e.groupedRings.forEach(function(e){e.forEach(function(e){e.forEach(h)})})}),e}(s,a,e)).map(function(e,t){if(o[t]&&!I(o[t]))throw new Error("Each mappedProperty is required to be an Object");var r=ce({},i,o[t]);return r[n]=e[n],v(e.groupedRings,r)}))},t.isolines=function(e,t,r){if(!I(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(!I(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(!I(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 V(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 f=u[c];f.properties[r]?l.push(f.properties[r]):l.push(0),!0===i&&(f.properties.matrixPosition=[s,c])}a.push(l)}return a}(e,{zProperty:n,flip:!0});return d(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=t[0].length-1,l=t.length-1,c=i/u,f=o/l,h=function(e){e[0]=e[0]*c+a,e[1]=e[1]*f+s};return e.forEach(function(e){N(e,h)}),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(pe(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=mn(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=Pn,t.lengthToDegrees=x,t.lengthToRadians=S,t.lineArc=ti,t.lineChunk=function(e,t,r){if(!I(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=Pn(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)})}),d(o)},t.lineDistance=Pn,t.lineEach=W,t.lineIntersect=fn,t.lineOffset=function(e,t,r){if(!I(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 Go(e,t,n);case"MultiLineString":var a=[];return q(e,function(e){a.push(Go(e,t,n).geometry.coordinates)}),y(a,o);default:throw new Error("geometry "+i+" is not supported")}},t.lineOverlap=gi,t.lineReduce=H,t.lineSegment=Dr,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=pn(r,e),a=pn(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),h(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=jn(t,{precision:7});switch(n){case"Point":return Qn(e,i);case"MultiPoint":return Kn(e,i);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return Kn(e,fn(e,i))}},t.lineString=h,t.lineStringToPolygon=ai,t.lineStrings=p,t.lineToPolygon=ai,t.mask=function(e,t){var r,n=function(e){return c(e&&e.geometry.coordinates||[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]])}(t);return("FeatureCollection"===e.type?by(2===(r=e).features.length?bu.union(r.features[0].geometry.coordinates,r.features[1].geometry.coordinates):bu.union.apply(bu,r.features.map(function(e){return e.geometry.coordinates}))):by(bu.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 ar(e,vt(e,t)/2,ur(e,t))},t.moranIndex=function(e,t){var r=t.inputField,n=t.threshold||1e5,i=t.p||2,o=t.binary||!1,a=ds(e,{alpha:t.alpha||-1,binary:o,p:i,standardization:t.standardization||!0,threshold:n}),s=[];V(e,function(e){var t=e.properties||{};s.push(t[r])});for(var u=ys(s),l=function(e){for(var t=ys(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,f=0,h=0,p=0,d=a.length,y=0;y<d;y++){for(var g=0,v=0;v<d;v++)c+=a[y][v]*(s[y]-u)*(s[v]-u),f+=a[y][v],h+=Math.pow(a[y][v]+a[v][y],2),g+=a[y][v]+a[v][y];p+=Math.pow(g,2)}var m=c/f/l,_=-1/(d-1),b=(d*d*(h*=.5)-d*p+f*f*3)/((d-1)*(d+1)*(f*f))-_*_,S=Math.sqrt(b);return{expectedMoranIndex:_,moranIndex:m,stdNorm:S,zNorm:(m-_)/S}},t.multiLineString=y,t.multiPoint=g,t.multiPolygon=v,t.nearest=Ar,t.nearestPoint=Ar,t.nearestPointOnLine=pn,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 F(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 V(o,function(e){var r=yn(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],f=n[0][1],h=void 0!==o?o:n[0][2],p=n[1][0],d=n[1][1],y=void 0!==a?a:n[1][2],g=n[2][0],v=n[2][1],m=void 0!==s?s:n[2][2];return(m*(u-c)*(l-d)+h*(u-p)*(l-v)+y*(u-g)*(l-f)-y*(u-c)*(l-v)-m*(u-p)*(l-f)-h*(u-g)*(l-d))/((u-c)*(l-d)+(u-p)*(l-v)+(u-g)*(l-f)-(u-c)*(l-v)-(u-p)*(l-f)-(u-g)*(l-d))},t.point=u,t.pointGrid=Rn,t.pointOnFeature=_n,t.pointOnLine=pn,t.pointOnSurface=_n,t.pointToLineDistance=yn,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 F(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),fs(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=v(o).geometry),hs(a,s),o=s.slice(0);r.push(v(o,i));break;default:throw new Error("geometry is invalid, must be Polygon or MultiPolygon")}}),d(r)},t.polygonTangents=function(e,t){var r,n,i,o,a=$(e),s=$(t),l=K(t),c=0,f=null;switch(a[0]>l[0]&&a[0]<l[2]&&a[1]>l[1]&&a[1]<l[3]&&(c=(f=Ar(e,fr(t))).properties.featureIndex),oe(t)){case"Polygon":r=s[0][c],n=s[0][0],null!==f&&f.geometry.coordinates[1]<a[1]&&(n=s[0][c]),o=Oi(s[0][0],s[0][s[0].length-1],a);var h=xi(s[0],a,o,i,r,n);r=h[0],n=h[1];break;case"MultiPolygon":for(var p=0,y=0,g=0,v=0;v<s[0].length;v++){p=v;for(var m=!1,_=0;_<s[0][v].length;_++){if(y=_,g===c){m=!0;break}g++}if(m)break}r=s[0][p][y],n=s[0][p][y],o=Oi(s[0][0][0],s[0][0][s[0][0].length-1],a),s.forEach(function(e){var t=xi(e[0],a,o,i,r,n);r=t[0],n=t[1]})}return d([u(r),u(n)])},t.polygonToLine=ni,t.polygonToLineString=ni,t.polygonize=function(e){var t=qo.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){Bo.findEdgeRingContaining(e,n)&&n.push(e)}),d(n.map(function(e){return e.toPolygon()}))},t.polygons=f,t.projection=Ss,t.propEach=j,t.propReduce=G,t.propertiesContainsFilter=js,t.radians2degrees=O,t.radiansToDegrees=O,t.radiansToDistance=b,t.radiansToLength=b,t.random=Is,t.randomLineString=Ps,t.randomPoint=Os,t.randomPolygon=Es,t.randomPosition=ws,t.rewind=function(e,t){if(!I(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=xt(e));var i=[];switch(e.type){case"GeometryCollection":return F(e,function(e){Pi(e,r)}),e;case"FeatureCollection":return V(e,function(e){V(Pi(e,r),function(e){i.push(e)})}),d(i)}return Pi(e,r)},t.rhumbBearing=_i,t.rhumbDestination=Si,t.rhumbDistance=dn,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 d(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(!I(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(mi(r)===mi(n))return sr(e,t,i);var a=$(e),s=ti(e,t,r,n,i),u=[[a]];return N(s,function(e){u[0].push(e)}),u[0].push(a),c(u,o)},t.segmentEach=U,t.segmentReduce=z,t.shortestPath=function(e,t,r){if(!I(r=r||{}))throw new Error("options is invalid");var n=r.resolution,i=r.minDistance,o=r.obstacles||d([]);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 h([s,l]);break;case"Polygon":o=d([a(ie(o))]);break;default:throw new Error("invalid obstacles")}var c=o;c.features.push(e),c.features.push(t);var f=K(Co(nr(K(c)),1.15));n||(n=vt([f[0],f[1]],[f[2],f[1]],r)/100),c.features.pop(),c.features.pop();for(var p=f[0],y=f[1],g=f[2],v=f[3],m=n/vt([p,y],[g,y],r)*(g-p),_=n/vt([p,y],[p,v],r)*(v-y),b=g-p,S=v-y,x=Math.floor(b/m),w=Math.floor(S/_),O=(b-x*m)/2,E=[],P=[],k=[],M=[],L=1/0,C=1/0,N=v-(S-w*_)/2,R=0;N>=y;){for(var j=[],G=[],V=p+O,A=0;V<=g;){var D=u([V,N]),F=Oa(D,o);j.push(F?0:1),G.push(V+"|"+N);var B=vt(D,e);!F&&B<L&&(L=B,k={x:A,y:R});var q=vt(D,t);!F&&q<C&&(C=q,M={x:A,y:R}),V+=m,A++}P.push(j),E.push(G),N-=_,R++}var J=new Sa(P,{diagonal:!0}),U=J.grid[k.y][k.x],z=J.grid[M.y][M.x],W=ba.search(J,U,z),H=[s];return W.forEach(function(e){var t=E[e.x][e.y].split("|");H.push([+t[0],+t[1]])}),H.push(l),zt(h(H))},t.simplify=function(e,t){if(!I(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=xt(e)),F(e,function(e){!function(e,t,r){var n=e.type;if("Point"===n||"MultiPoint"===n)return e;zt(e,!0);var i=e.coordinates;switch(n){case"LineString":e.coordinates=Qt(i,t,r);break;case"MultiLineString":e.coordinates=i.map(function(e){return Qt(e,t,r)});break;case"Polygon":e.coordinates=$t(i,t,r);break;case"MultiPolygon":e.coordinates=i.map(function(e){return $t(e,t,r)})}}(e,r,n)}),e},t.square=or,t.squareGrid=Sy,t.standardDeviationalEllipse=function(e,t){if(!I(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(!I(i))throw new Error("properties must be a number");var o=D(e).length,a=ls(e,{weight:n}),s=0,u=0,l=0;V(e,function(e){var t=e.properties[n]||1,r=cs($(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,f=Math.sqrt(Math.pow(c,2)+4*Math.pow(l,2)),h=2*l,p=Math.atan((c+f)/h),y=180*p/Math.PI,g=0,v=0,m=0;V(e,function(e){var t=e.properties[n]||1,r=cs($(e),$(a));g+=Math.pow(r.x*Math.cos(p)-r.y*Math.sin(p),2)*t,v+=Math.pow(r.x*Math.sin(p)+r.y*Math.cos(p),2)*t,m+=t});var _=Math.sqrt(2*g/m),b=Math.sqrt(2*v/m),S=ss(a,_,b,{units:"degrees",angle:y,steps:r,properties:i}),x=gt(e,d([S])),w={meanCenterCoordinates:$(a),semiMajorAxis:_,semiMinorAxis:b,numberOfFeatures:o,angle:y,percentageWithinEllipse:100*D(x).length/o};return S.properties.standardDeviationalEllipse=w,S},t.tag=function(e,t,r,n){return e=xt(e),t=xt(t),V(e,function(e){e.properties||(e.properties={}),V(t,function(t){void 0===e.properties[n]&&dt(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=Vr(e.geometry.coordinates):e.geometry.coordinates.forEach(function(e){t.features=t.features.concat(Vr(e))}),t},t.tin=mt,t.toMercator=gs,t.toWgs84=vs,t.transformRotate=Lo,t.transformScale=Co,t.transformTranslate=function(e,t,r,n){if(!I(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=xt(e)),N(e,function(e){var n=$(Si(e,t,r,{units:i}));e[0]=n[0],e[1]=n[1],o&&3===e.length&&(e[2]+=o)}),e},t.triangleGrid=xy,t.truncate=jn,t.union=function(e,t,r){void 0===r&&(r={});var n=ie(e),i=ie(t),o=bu.union(n.coordinates,i.coordinates);return 0===o.length?null:1===o.length?c(o[0],r.properties):v(o,r.properties)},t.unitsFactors=i,t.unkinkPolygon=function(e){var t=[];return q(e,function(e){"Polygon"===e.geometry.type&&V(An(e),function(r){t.push(c(r.geometry.coordinates,e.properties))})}),d(t)},t.validateBBox=M,t.validateId=L,t.voronoi=function(e,t){if(!I(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"),d(function(){var e=Pa,t=ka,r=null;function n(n){return new os(n.map(function(r,i){var o=[Math.round(e(r,i,n)/rs)*rs,Math.round(t(r,i,n)/rs)*rs];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:Ea(+t),n):e},n.y=function(e){return arguments.length?(t="function"==typeof e?e:Ea(+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(as))},t.within=gt,Object.defineProperty(t,"__esModule",{value:!0})}(t)}).call(this,r(239))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=u(r(12)),a=r(1),s=u(r(33));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,i.defaultValue)(e,{}),r.coordinates=(0,i.defaultValue)(e.coordinates,[]),r.type=a.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,i.isNumber)(r.coordinates[0])||!(0,i.isNumber)(r.coordinates[1]))throw new Error("坐标数组成员必须为数字");return 3===r.coordinates.length?r.hasZ=!0:r.hasZ=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(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=void 0;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=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse(JSON.stringify(this.coordinates)),e.extent=(0,i.toJSON)(this.extent,s.default),e}},{key:"getIGSType",value:function(){return this.hasZ?a.IGSGeometryType.point3D:a.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(JSON.stringify(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return t?new s.default({xmin:e[0],ymin:e[1],zmin:e[2],xmax:e[0],ymax:e[1],zmax:e[2],spatialReference:this.spatialReference}):new s.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(JSON.stringify(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,i.defaultValue)(e,{}))}}]),t}();Object.defineProperties(l.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=l},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(160),i=r(7),o=r(429),a=r(27),s=r(434),u=O(r(438)),l=O(r(439)),c=r(440),f=O(r(443)),h=O(r(444)),p=O(r(445)),d=O(r(446)),y=O(r(447)),g=O(r(45)),v=r(25),m=O(r(41)),_=O(r(51)),b=O(r(69)),S=O(r(95)),x=O(r(448)),w=O(r(449));function O(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=f.default,t.GraphicsLayer=h.default,t.GeoJSONLayer=p.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=d.default,t.Projection=g.default,t.ArcGISMapImageLayer=o.ArcGISMapImageLayer,t.ArcGISMapImageSubLayer=o.ArcGISMapImageSubLayer,t.ArcGISTileLayer=o.ArcGISTileLayer,t.getUrlType=v.getUrlType,t.is4326=v.is4326,t.isCustomSP=v.isCustomSP,t.showLayerByScale=v.showLayerByScale,t.getLayerViewScaleVisible=v.getLayerViewScaleVisible,t.TileInfoUtil=_.default,t.setElevationInfo=a.setElevationInfo,t.ArcGISVectorTileLayer=o.ArcGISVectorTileLayer,t.WebTileLayer=x.default,t.getZoomOffset=v.getZoomOffset,t.FeatureCollection=S.default,t.TileInfo=m.default,t.appendUrlParams=v.appendUrlParams,t.getFullBaseUrl=v.getFullBaseUrl,t.LOD=b.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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(10),a=r(0);var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,a.defaultValue)(t,{}),this._vertexStyle=(0,a.defaultValue)(t.vertexStyle,new o.SimpleMarkerSymbol({color:new i.Color(24,144,255,1),size:10,outline:new o.SimpleLineSymbol({color:new i.Color(255,255,255,1),width:1})})),this._lineStyle=(0,a.defaultValue)(t.lineStyle,new o.SimpleLineSymbol({color:new i.Color(24,144,255,1),width:3})),this._fillStyle=(0,a.defaultValue)(t.fillStyle,new o.SimpleFillSymbol({color:new i.Color(24,144,255,.3),outline:new o.SimpleLineSymbol({color:new i.Color(24,144,255,1),width:2})})),this._textStyle=(0,a.defaultValue)(t.textStyle,new o.TextSymbol({color:new i.Color(24,144,255,1),text:"默认文字",font:{family:"微软雅黑",size:20,style:"normal",weight:"normal"}})),this._movingLineStyle=(0,a.defaultValue)(t.lineStyle,new o.SimpleLineSymbol({color:new i.Color(255,255,0,1),width:2})),this._selectBoxStyle=(0,a.defaultValue)(t.selectBoxStyle,new o.SimpleFillSymbol({color:new i.Color(241,188,0,.1),outline:new o.SimpleLineSymbol({color:new i.Color(241,188,0,.8),width:2})})),this._selectBoxVertexStyle=(0,a.defaultValue)(t.selectBoxVertexStyle,new o.SimpleMarkerSymbol({color:new i.Color(255,255,255,1),size:10,outline:new o.SimpleLineSymbol({color:new i.Color(241,188,0,1),width:3})})),this._selectVertexStyle=(0,a.defaultValue)(t.selectVertexStyle,new o.SimpleMarkerSymbol({color:new i.Color(241,188,0,1),size:11,outline:new o.SimpleLineSymbol({color:new i.Color(255,255,255,1),width:1})})),this._selectTextStyle=(0,a.defaultValue)(t.selectTextStyle,new o.TextSymbol({color:new i.Color(241,188,0,1),text:"默认文字",font:{family:"微软雅黑",size:20,style:"normal",weight:"normal"}})),this._selectMidVertexStyle=(0,a.defaultValue)(t.selectMidVertexStyle,new o.SimpleMarkerSymbol({color:new i.Color(255,255,255,1),size:8,outline:new o.SimpleLineSymbol({color:new i.Color(241,188,0,1),width:1})})),this._coincidentPointStyle=(0,a.defaultValue)(t.coincidentPointStyle,new o.SimpleMarkerSymbol({color:new i.Color(255,255,0,1),size:10,outline:new o.SimpleLineSymbol({color:new i.Color(255,255,255,1),width:1})})),this._highlightPointStyle=(0,a.defaultValue)(t.highlightPointStyle,new o.SimpleMarkerSymbol({color:new i.Color(255,255,0,1),size:10,outline:new o.SimpleLineSymbol({color:new i.Color(255,255,255,1),width:1})})),this._highlightLineStyle=(0,a.defaultValue)(t.highlightLineStyle,new o.SimpleLineSymbol({color:new i.Color(255,255,0,1),width:3})),this._parallelLineStyle=(0,a.defaultValue)(t.parallelLineStyle,this._highlightLineStyle),this._perpendicularLineStyle=(0,a.defaultValue)(t.perpendicularLineStyle,this._highlightLineStyle)}return n(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}();Object.defineProperties(s.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=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(3),a=l(r(20)),s=l(r(18)),u=r(0);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._initEvent(),r.type="sketchPointDrawTool",r._drawTools=[r],r._otherDrawTools=[],r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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=i.SketchEditMode.DRAWING,this.view._mapActionControl("video-map-active",!0),this.cursorStyle=this.view.cursor,(0,u.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair"),this._setInitSnap(),this._fireStartDrawEvent();var t=function(t){if(t&&t.x&&t.y){e.view.off(i.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={x:t.x,y:t.y},n=null;n=e._snapPoint?e._snapPoint:e.view.toMap({x:r.x,y:r.y});var o=e._getFeature(n);e.sketchStage.entityGraphic=o,e._addFeatureToLayer(o,e.layer),e.stop(),e._editMode=i.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e.fire("drawn",{geometry:o.geometry,feature:o},self),e._fireStopDrawEvent(o),e.view._mapActionControl("video-map-active",!1)}};this._drawEventHandlers.push(t),this.view.on(i.ViewEventType.pointerDown,t)}},{key:"addFeature",value:function(e,t,r,n){var i=null;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 o=null;o=t&&t.vertexStyle?t.vertexStyle:this.sketchStyle._vertexStyle;var a=new i.Feature({geometry:e,symbol:o,elevationInfo:this.elevationInfo});r&&(a.attributes=r),this.sketchStage.entityGraphic=a,this._addFeatureToLayer(a,n)}},{key:"_getFeature",value:function(e,t){return e||(e=i.Projection.project(new o.Point({coordinates:[0,0,0]}),this._spatialReference)),t||(t=this._sketchDataType===i.SketchDataType.TEXT?this.sketchStyle.textStyle:this.sketchStyle.vertexStyle),new i.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=i.SketchEditMode.EDITGRAGIC,this.selectFeature(e)):this._parent._sketchDataType===i.SketchDataType.POINT||this._parent._sketchDataType===i.SketchDataType.TEXT?this.startPanGraphics(e,t):this._parent&&this._parent._editMode===i.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===i.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 s.default({vertexStyle:this._sketchDataType===i.SketchDataType.TEXT?this.sketchStyle._selectTextStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),o=e.geometry;if(this._drawTools.push(n),n.addFeatureByGeometry(o,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 a=function(){r._preventFirstCall?r._preventFirstCall=void 0:(r.sketchStage.selectBoxGraphics.forEach(function(e){r._removeFeatureFromLayer(e,r.sketchInnerLayer)}),r.view.off(i.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=a,this.view.on(i.ViewEventType.immediateClick,a)),"leaflet"===this.view.engineType&&this.sketchDataType===i.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 o=null;o=t.mapPoint,this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._parent._mapClickEvent),this._parent&&this._fireStartPanEvent(this._parent.sketchStage.entityGraphic,this._parent);var a=function(e){if(e&&e.x&&e.y&&!n&&r._startPan){clearTimeout(null),n=!0;var t={x:e.x,y:e.y},i=r.view.toMap({x:t.x,y:t.y}),a=i.coordinates[0]-o.coordinates[0],s=i.coordinates[1]-o.coordinates[1];if(0!==a||0!==s){var u=r.getPanCoordinates(r.sketchStage.entityGraphic.geometry.coordinates,a,s);o.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}},s=function e(){r._startPan&&(r._startPan=!1,r.view.off(i.ViewEventType.pointerUp,e),r.view.off(i.ViewEventType.pointerMove,a),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&r.view.on(i.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(a),this._hitTestEventHandlers.push(s),this.view.on(i.ViewEventType.pointerUp,s),this.view.on(i.ViewEventType.pointerMove,a)}},{key:"startVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var a;a=t.mapPoint;var s=void 0;s=this._parent.sketchStage.entityGraphic.geometry instanceof o.Extent?this._parent.sketchStage.entityGraphic.geometry:this._parent.sketchStage.entityGraphic.geometry.extent,this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent);var u=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var l=function(t){if(t&&t.x&&t.y&&!n&&r._startPan){clearTimeout(null),n=!0;var i={x:t.x,y:t.y},o=r.view.toMap({x:i.x,y:i.y}),l=o.coordinates[0]-a.coordinates[0],c=o.coordinates[1]-a.coordinates[1],f=o.coordinates[0]/a.coordinates[0],h=o.coordinates[1]/a.coordinates[1];0!==l||0!==c?(r._dispatchEvent("vertexScale",{startPoint:a,movePoint:o,deltaPosition:{x:l,y:c},scale:{x:f,y:h},direction:u,extent:s,feature:e,action:"scale"},r),n=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):n=!1}},c=function e(){r._startPan&&(r._dispatchEvent("vertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(i.ViewEventType.pointerUp,e),r.view.off(i.ViewEventType.pointerMove,l),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(i.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(l),this._hitTestEventHandlers.push(c),this.view.on(i.ViewEventType.pointerUp,c),this.view.on(i.ViewEventType.pointerMove,l)}},{key:"startMidVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var a;a=t.mapPoint;var s=void 0;s=this._parent.sketchStage.entityGraphic.geometry instanceof o.Extent?this._parent.sketchStage.entityGraphic.geometry:this._parent.sketchStage.entityGraphic.geometry.extent,this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._parent._mapClickEvent);var u=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var l=function(e){if(e&&e.x&&e.y&&!n&&r._startPan){clearTimeout(null),n=!0;var t={x:e.x,y:e.y},i=r.view.toMap({x:t.x,y:t.y}),o=i.coordinates[0]-a.coordinates[0],l=i.coordinates[1]-a.coordinates[1],c=i.coordinates[0]/a.coordinates[0],f=i.coordinates[1]/a.coordinates[1];0!==o||0!==l?(r._dispatchEvent("midVertexScale",{startPoint:a,movePoint:i,deltaPosition:{x:o,y:l},scale:{x:c,y:f},direction:u,extent:s,action:"scale"},r),n=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):n=!1}},c=function e(){r._startPan&&(r._dispatchEvent("vertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(i.ViewEventType.pointerUp,e),r.view.off(i.ViewEventType.pointerMove,l),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(i.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(l),this._hitTestEventHandlers.push(c),this.view.on(i.ViewEventType.pointerUp,c),this.view.on(i.ViewEventType.pointerMove,l)}},{key:"startCircleVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var o;o=t.mapPoint;var a=this._parent.sketchStage.entityGraphic.geometry.extent;this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent);var s=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var u=function(t){if(t&&t.x&&t.y&&!n&&r._startPan){clearTimeout(null),n=!0;var i={x:t.x,y:t.y},u=r.view.toMap({x:i.x,y:i.y}),l=u.coordinates[0]-o.coordinates[0],c=u.coordinates[1]-o.coordinates[1],f=u.coordinates[0]/o.coordinates[0],h=u.coordinates[1]/o.coordinates[1];0!==l||0!==c?(r._dispatchEvent("circleVertexScale",{startPoint:o,movePoint:u,deltaPosition:{x:l,y:c},scale:{x:f,y:h},direction:s,extent:a,feature:e,action:"scale"},r),n=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):n=!1}},l=function e(){r._startPan&&(r._dispatchEvent("circleVertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(i.ViewEventType.pointerUp,e),r.view.off(i.ViewEventType.pointerMove,u),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(i.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(u),this._hitTestEventHandlers.push(l),this.view.on(i.ViewEventType.pointerUp,l),this.view.on(i.ViewEventType.pointerMove,u)}},{key:"startVertexMoveGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var o=null;o=t.mapPoint;var a=e.attributes?e.attributes.vertexIndex:-2;"midVertex"===e.attributes.type?(this._fireAddVertexEvent(this._parent.sketchStage.entityGraphic,this._parent),this._dispatchEvent("midVertexAdd",{point:o,vertexIndex:e.attributes?a:void 0,action:"changeFeature"},this),this._startPan=!0):this._startPan=!0,this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._parent._mapClickEvent),this._parent&&this._fireStartVertexMoveEvent(this._parent.sketchStage.entityGraphic,this._parent);var s=function(t){if(t&&t.x&&t.y&&!n&&r._startPan){clearTimeout(null),n=!0;var i={x:t.x,y:t.y},s=r.view.toMap({x:i.x,y:i.y}),u=s.coordinates[0]-o.coordinates[0],l=s.coordinates[1]-o.coordinates[1];0!==u||0!==l?("midVertex"===e.attributes.type?r._dispatchEvent("midVertexAdd",{startPoint:o,movePoint:s,vertexIndex:a,vertexType:e.attributes?e.attributes.type:void 0,action:"moveMidVertex"},r):r._dispatchEvent("vertexMove",{startPoint:o,movePoint:s,vertexIndex:a,vertexType:e.attributes?e.attributes.type:void 0},r),o=s,n=!1,r._parent&&r._fireUpdateVertex(r._parent.sketchStage.entityGraphic,r._parent)):n=!1}},u=function t(a){if(a&&a.x&&a.y&&r._startPan){if(r.view._mapActionControl("drag-pan",!1),r._startPan=!1,r.view.off(i.ViewEventType.pointerUp,t),r.view.off(i.ViewEventType.pointerMove,s),r.view._mapActionControl("drag-pan",!0),"midVertex"===e.attributes.type){var u=e.attributes.vertexIndex;r._dispatchEvent("midVertexAdd",{point:o,vertexIndex:e.attributes?u: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(i.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(s),this._hitTestEventHandlers.push(u),this.view.on(i.ViewEventType.pointerUp,u),this.view.on(i.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)}},{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 o.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(JSON.stringify([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 n=this._parent.sketchStage.entityGraphic.geometry.extent,i=this.sketchStage.entityGraphic.attributes.direction;"e"===i?r=this._getCenterCoordinate([n.xmax,n.ymin],[n.xmax,n.ymax]):"s"===i?r=this._getCenterCoordinate([n.xmax,n.ymin],[n.xmin,n.ymin]):"w"===i?r=this._getCenterCoordinate([n.xmin,n.ymin],[n.xmin,n.ymax]):"n"===i?r=this._getCenterCoordinate([n.xmax,n.ymax],[n.xmin,n.ymax]):"ne"===i?r=[n.xmax,n.ymax]:"se"===i?r=[n.xmax,n.ymin]:"sw"===i?r=[n.xmin,n.ymin]:"nw"===i&&(r=[n.xmin,n.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 o.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(JSON.stringify([this.sketchStage.entityGraphic.geometry.coordinates]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getMidScaleCoordinates([this.sketchStage.entityGraphic.geometry.coordinates],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.Point({coordinates:n[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}();t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(0),a=r(3),s=function(e){return e&&e.__esModule?e:{default:e}}(r(459)),u=r(98);var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));r._id=(0,o.defaultValue)(e.id,(0,o.getGUID)()),r.view=(0,o.defaultValue)(e.view,null),r.layer=(0,o.defaultValue)(e.layer,void 0),r.sketchInnerLayer=(0,o.defaultValue)(e.sketchInnerLayer,void 0),r.sketchStage=new s.default,void 0!==e.sketchStyle&&(r.sketchStyle=e.sketchStyle.clone()),r.elevationInfo=(0,o.defaultValue)(e.elevationInfo,void 0),r.type="sketchBaseDrawTool",r.extensionOptions=(0,o.defaultValue)(e.extensionOptions,void 0),r._editMode=i.SketchEditMode.NONE,r._spatialReference=e.view._spatialReference?e.view._spatialReference:new a.SpatialReference("EPSG:4326"),r._drawEventHandlers=[],r._hitTestEventHandlers=[],r._sketchDataType=null,r._parent=(0,o.defaultValue)(e._parent,void 0),r.undoRedoManager=(0,o.defaultValue)(e.undoRedoManager,void 0);return r.editOption=(0,o.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,o.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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Evented),n(t,[{key:"start",value:function(){this.stop(),this.drawFeature()}},{key:"stop",value:function(){this._editMode===i.SketchEditMode.DRAWING||this._editMode===i.SketchEditMode.NONE?this._stopDraw():this._editMode===i.SketchEditMode.EDITGRAGIC||this._editMode===i.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(i.ViewEventType.immediateClick,t),e.view.off(i.ViewEventType.pointerUp,t),e.view.off(i.ViewEventType.pointerMove,t),e.view.off(i.ViewEventType.pointerDown,t),e.view.off(i.ViewEventType.doubleClick,t),e.view.off(i.ViewEventType.drag,t)}),this._drawEventHandlers=[]),this._stopInitSnap()}},{key:"_stopHitTest",value:function(){var e=this;this._hitTestEventHandlers&&(this._hitTestEventHandlers.forEach(function(t){e.view.off(i.ViewEventType.pointerUp,t),e.view.off(i.ViewEventType.pointerMove,t),e.view.off(i.ViewEventType.pointerDown,t),e.view.off(i.ViewEventType.click,t),e.view.off(i.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===i.SketchEditMode.EDITGRAGIC?r():e===i.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=i.SketchEditMode.EDITGRAGIC),this.sketchStage.vertexGraphics.forEach(function(e){e.id===r&&(n=!0,t._editMode=i.SketchEditMode.EDITVERTEX)}),this.sketchStage.midVertexGraphics.forEach(function(e){e.id===r&&(n=!0,t._editMode=i.SketchEditMode.EDITVERTEX)}),n||(this._editMode=i.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()),f=n.coordinates,h=i.coordinates;o=o||[];return"ne"===r&&(s=(h[0]-t.xmin)/(f[0]-t.xmin),l=([o[0]]-t.xmin)*s+t.xmin,u=(h[1]-t.ymin)/(f[1]-t.ymin),c=(o[1]-t.ymin)*u+t.ymin),"se"===r&&(s=(h[0]-t.xmin)/(f[0]-t.xmin),l=([o[0]]-t.xmin)*s+t.xmin,u=(h[1]-t.ymax)/(f[1]-t.ymax),c=(o[1]-t.ymax)*u+t.ymax),"sw"===r&&(s=(h[0]-t.xmax)/(f[0]-t.xmax),l=([o[0]]-t.xmax)*s+t.xmax,u=(h[1]-t.ymax)/(f[1]-t.ymax),c=(o[1]-t.ymax)*u+t.ymax),"nw"===r&&(s=(h[0]-t.xmax)/(f[0]-t.xmax),l=([o[0]]-t.xmax)*s+t.xmax,u=(h[1]-t.ymin)/(f[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,f=i.coordinates;return o=o||[],"e"===r&&(a=(f[0]-t.xmin)/(c[0]-t.xmin),u=([o[0]]-t.xmin)*a+t.xmin),"s"===r&&(s=(f[1]-t.ymax)/(c[1]-t.ymax),l=(o[1]-t.ymax)*s+t.ymax),"w"===r&&(a=(f[0]-t.xmax)/(c[0]-t.xmax),u=([o[0]]-t.xmax)*a+t.xmax),"n"===r&&(s=(f[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,f=i.coordinates;return o=o||[],"e"===r&&(a=(f[0]-t.xmin)/(c[0]-t.xmin),u=([o[0]]-t.xmin)*a+t.xmin),"s"===r&&(s=(f[1]-t.ymax)/(c[1]-t.ymax),l=(o[1]-t.ymax)*s+t.ymax),"w"===r&&(a=(f[0]-t.xmax)/(c[0]-t.xmax),u=([o[0]]-t.xmax)*a+t.xmax),"n"===r&&(s=(f[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(i.ViewEventType.pointerMove,this._handlerInitMouseMove)}},{key:"_stopInitSnap",value:function(){this._handlerInitMouseMove&&(this.view.off(i.ViewEventType.pointerMove,this._handlerInitMouseMove),this._handlerInitMouseMove=void 0)}},{key:"_fireStartDrawEvent",value:function(e){e=e||this;var t=new u.SketchEditorEvent({type:i.SketchEditorEventType.create,toolEventInfo:{},state:i.SketchEditorState.start});e.fire(i.SketchEditorEventType.create,t,self)}},{key:"_fireDrawVertexEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.create,toolEventInfo:{type:i.SketchEditorToolEventType.vertexAdd},state:i.SketchEditorState.active,feature:e,geometry:e?e.geometry:void 0});t.fire(i.SketchEditorEventType.create,r,self)}},{key:"_fireChangeCursorEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.create,toolEventInfo:{type:i.SketchEditorToolEventType.cursorChange},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.create,r,self)}},{key:"_fireStopDrawEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.create,toolEventInfo:null,state:i.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.create,r,self)}},{key:"_fireStartPanEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.moveStart},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_firePanningEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.move},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireStopPanEvent",value:function(e,t){var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.moveStop},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireStartScaleEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.scaleStart},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireScalingEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.scale},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireStopScaleEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.scaleStop},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireStartVertexMoveEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.vertexMoveStart},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireUpdateVertex",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.vertexUpdate},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireStopVertexMoveEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.vertexMoveStop},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireAddVertexEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.vertexAdd},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireAddVertexEventByFun",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.vertexAdd},state:i.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,this)}},{key:"_fireUpdateVertexByFun",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.vertexUpdate},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireRemoveVertexByFun",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.vertexRemove},state:i.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,this)}},{key:"_fireRemoveSelectEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:null,state:i.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireUnsimpleDraw",value:function(e){e=e||this;var t=new u.SketchEditorEvent({type:i.SketchEditorEventType.create,toolEventInfo:{type:i.SketchEditorToolEventType.geometryUnsimple},state:i.SketchEditorState.active});e.fire(i.SketchEditorEventType.create,t,self)}},{key:"_fireUnsimpleUpdate",value:function(e){e=e||this;var t=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.geometryUnsimple},state:i.SketchEditorState.active});e.fire(i.SketchEditorEventType.update,t,self)}},{key:"_fireUnsimpleUpdateByFun",value:function(e){e=e||this;var t=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.geometryUnsimple},state:i.SketchEditorState.complete});e.fire(i.SketchEditorEventType.update,t,self)}},{key:"getSnapGraphics",value:function(e,t){var r=this,n=null,o=null,s=[],u=null;t&&0!==t.length?1===t.length?o=new a.LineString({coordinates:[t[0],e.coordinates],spatialReference:this._spatialReference}):(o=new a.LineString({coordinates:t.slice(-2),spatialReference:this._spatialReference}),"sketchFreehandPolylineDrawTool"!==this.type&&"sketchFreehandPolygonDrawTool"!==this.type&&(u=new a.LineString({coordinates:t.slice(0,t.length),spatialReference:this._spatialReference}))):o=e,s=this.snapAndReferGeometries,this.sketchSnappingTool.snapSketchGeometry&&u&&(s=this.snapAndReferGeometries.concat([u])),t&&t.length>0&&("sketchFreehandPolylineDrawTool"===this.type||"sketchFreehandPolygonDrawTool"===this.type)&&s.push(new a.Point({coordinates:t[0],spatialReference:this._spatialReference}));var l=this.sketchSnappingTool.snapGeometries(e,o,s);if(l.coincidentPoint){var c=new i.Feature({geometry:l.coincidentPoint.realPoint,symbol:this.sketchStyle._coincidentPointStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(c),n=l.coincidentPoint.realPoint}else if(l.inLineAndParallel){l.inLineAndParallel.lines.forEach(function(e){var t=new i.Feature({geometry:e,symbol:r.sketchStyle._parallelLineStyle,elevationInfo:r.elevationInfo});r.sketchStage.snapGraphics.push(t)});var f=new i.Feature({geometry:l.inLineAndParallel.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(f),l.inLineAndParallel.symbolGeometry){var h=new i.Feature({geometry:l.inLineAndParallel.symbolGeometry,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(h)}n=l.inLineAndParallel.realPoint}else if(l.inLineAndPerpendicular){l.inLineAndPerpendicular.lines.forEach(function(e){var t=new i.Feature({geometry:e,symbol:r.sketchStyle._perpendicularLineStyle,elevationInfo:r.elevationInfo});r.sketchStage.snapGraphics.push(t)});var p=new i.Feature({geometry:l.inLineAndPerpendicular.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(p),l.inLineAndPerpendicular.symbolGeometry){var d=new i.Feature({geometry:l.inLineAndPerpendicular.symbolGeometry,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(d)}n=l.inLineAndPerpendicular.realPoint}else if(l.pointInLine){var y=new i.Feature({geometry:l.pointInLine.line,symbol:this.sketchStyle._highlightLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(y);var g=new i.Feature({geometry:l.pointInLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(g),n=l.pointInLine.realPoint}else if(l.parallelLine){var v=new i.Feature({geometry:l.parallelLine.line,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(v);var m=new i.Feature({geometry:l.parallelLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(m),l.parallelLine.symbolGeometry){var _=new i.Feature({geometry:l.parallelLine.symbolGeometry,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(_)}n=l.parallelLine.realPoint}else if(l.perpendicularLine){var b=new i.Feature({geometry:l.perpendicularLine.line,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(b);var S=new i.Feature({geometry:l.perpendicularLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(S),l.perpendicularLine.symbolGeometry){var x=new i.Feature({geometry:l.perpendicularLine.symbolGeometry,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(x)}n=l.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}();t.default=l},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=h(r(22)),i=h(r(240)),o=h(r(113)),a=r(114),s=h(r(241)),u=h(r(242)),l=h(r(243)),c=h(r(244)),f=h(r(245));function h(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=f.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initPropertys(t)}return n(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=i},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(15)),i=r(0),o=r(1),a=r(3),s=r(86);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=void 0;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,t=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 f=0;f<e.length;f++)for(var h=0;h<e[f].length;h++)c.push(e[f][h][2]);break;case o.GeometryType.lineString:for(var p=0;p<e.length;p++)c.push(e[p][2]);break;case o.GeometryType.multiPolygon:for(var d=0;d<e.length;d++)for(var y=0;y<e[d].length;y++)for(var g=0;g<e[d][y].length;g++)c.push(e[d][y][g][2])}c.sort(function(e,t){return e-t});var v=c[0],m=c[c.length-1];return new a.Extent({xmin:l[0],ymin:l[1],xmax:l[2],ymax:l[3],zmin:v,zmax:m,spatialReference:s})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="unkown"}return n(e,[{key:"toJSON",value:function(){return{type:this.type}}},{key:"clone",value:function(){}}],[{key:"fromJSON",value:function(){}}]),e}();t.default=i},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=r(1),i=r(0),o=r(2),a=r(114);function s(e){switch((e=(0,i.defaultValue)(e,{})).type){case n.SymbolType.simpleMarker:case n.SymbolType.simpleFill:e.color&&(e.color=new o.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255)),e.outline&&e.outline.color&&(e.outline.color=new o.Color(e.outline.color[0],e.outline.color[1],e.outline.color[2],e.outline.color[3]/255));break;case n.SymbolType.simpleLine:e.color&&(e.color=new o.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255));break;case n.SymbolType.pictureMarker:e.color&&(e.color=new o.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255)),e.url||(e.url=e.imageData);break;case n.SymbolType.pictureFill:e.outline&&e.outline.color&&(e.outline.color=new o.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 n.SymbolType.text:e.color&&(e.color=new o.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255)),e.backgroundColor&&(e.backgroundColor=new o.Color(e.backgroundColor[0],e.backgroundColor[1],e.backgroundColor[2],e.backgroundColor[3]/255)),e.borderLineColor&&(e.borderLineColor=new o.Color(e.borderLineColor[0],e.borderLineColor[1],e.borderLineColor[2],e.borderLineColor[3]/255)),e.haloColor&&(e.haloColor=new o.Color(e.haloColor[0],e.haloColor[1],e.haloColor[2],e.haloColor[3]/255))}return e}function u(e,t){t=(0,i.defaultValue)(t,{});var r="";return Object.keys(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$"),i=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$"),f=new RegExp("^https://[0-9.a-zA-Z]+/arcgis/rest/services/[一-龟\\w/:_]+/WMTSServer$");return r.test(e)?t=n.UrlServerType.tdt:i.test(e)||o.test(e)||a.test(e)||s.test(e)?t=n.UrlServerType.igs_2:(u.test(e)||l.test(e)||c.test(e)||f.test(e))&&(t=n.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 a.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=s,t.formatIGSRenderer=function(e){switch((e=(0,i.defaultValue)(e,{})).type){case n.RendererType.simple:e.symbol=s(e.symbol);break;case n.RendererType.uniqueValue:e.defaultSymbol=s(e.defaultSymbol);for(var t=0;t<e.uniqueValueInfos.length;t++)e.uniqueValueInfos[t].symbol=s(e.uniqueValueInfos[t].symbol);break;case n.RendererType.classBreak:e.defaultSymbol=s(e.defaultSymbol);for(var r=0;r<e.classBreakInfos.length;r++)e.classBreakInfos[r].symbol=s(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 o=1;o<e.classBreakInfos.length;o++)e.classBreakInfos[o].minValue=e.classBreakInfos[o-1].classMaxValue,e.classBreakInfos[o].maxValue=e.classBreakInfos[o].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?n.WMTSCorporation.none:e.search("arcgis/rest/services")>0?n.WMTSCorporation.corporationArcGIS:e.search("WMTSServer")>0||e.search("WMSServer")>0?n.WMTSCorporation.corporationZD:e.search("geoserver")>0?n.WMTSCorporation.corporationGeoServer:e.search("tianditu.com")>0||e.search("tianditu.gov.cn")>0?n.WMTSCorporation.corporationTianDiTu:n.WMTSCorporation.corporationOther},t.getTileResolution=function(e,t,r,i){var o="",a=-1,s=0,u=0,l=0,c=25.4/96,f=1e3;return t===n.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),i.isGeographic?0===s?(f=111319490.79327358,c=.28):1===s?(c=.28,f=111194872.221777):2===s&&(f=111319490.79327358,c=25.4/96):0===s?c=.28:1===s?c=.28:2===s?c=25.4/96:3===s&&(c=.28)):i.isGeographic?(f=111194872.221777,c=25.4/96):c=25.4/96:t===n.WMTSCorporation.corporationArcGIS?(u=e.includes("default")?0:e.includes("native")?1:e.includes("GoogleMapsCompatible")?2:3,i.isGeographic?0===u?(r=.28*r*96/25.4,f=111194872.221777,c=.2645838625):1===u&&(f=111194872.221777,c=.2645838625):0===u?(r=.28*r*96/25.4,c=.2645838625):1===u?c=.2645838625:2===u&&(c=.28)):t===n.WMTSCorporation.corporationGeoServer?i.isGeographic?(f=111319490.79327358,c=.28):c=.28:t===n.WMTSCorporation.corporationTianDiTu?i.isGeographic?(f=111319490.79327358,c=25.4/96):c=25.4/96:(e.includes("028")&&(l=1),"".includes("GoogleMapsCompatible")&&(l=1),"".includes("GoogleCRS84Quad")&&(l=1),i.isGeographic?1===l?(r=.28*r*96/25.4,f=111194872.221777,c=.2645838625):(f=111319490.79327358,c=25.4/96):1===l?(r=.28*r*96/25.4,c=.2645838625):c=25.4/96),r*c/f},t.getZoomOffset=function(e,t,r){r=(0,i.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=n.GeometryType.geometry;return e&&e.features&&Array.isArray(e.features)&&e.features.length>0&&(t=e.features[0].geometry.type),t},t.appendUrlParams=u,t.getFullBaseUrl=function(e){var t={};return e.tokenKey&&e.tokenValue&&(t[e.tokenKey]=e.tokenValue),u(e.url,t)},t.getGeometryFilter=function(e,t){var r={geometryType:void 0,geometry:"",spatialRel:t=(0,i.defaultValue)(t,o.SpatialRelation.Intersects)};function a(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=t.substring(0,t.length-1)}switch(e.type){case n.GeometryType.extent:return r.geometryType="rect",r.geometry=e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,r;case n.GeometryType.polygon:return r.geometryType="polygon",r.geometry=a(e.coordinates),r;case n.GeometryType.multiPolygon:r.geometryType="polygon";for(var s=0;s<e.coordinates.length;s++)r.geometry+=a(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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(0),a=r(1),s=r(21),u=function(e){return e&&e.__esModule?e:{default:e}}(r(32)),l=r(3),c=r(25),f=r(27);var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e=(0,o.defaultValue)(e,{}),r.id=(0,o.defaultValue)(e.id,(0,o.getGUID)()),r.description=(0,o.defaultValue)(e.description,"图层基类"),r.copyright=(0,o.defaultValue)(e.copyright,"中地数码版权所有"),r.loadStatus=(0,o.defaultValue)(e.loadStatus,a.LoadStatus.notLoaded),r.loaded=!1,r.tokenKey=(0,o.defaultValue)(e.tokenKey,"token"),r.tokenValue=(0,o.defaultValue)(e.tokenValue,void 0),r.tokenAttachType=(0,o.defaultValue)(e.tokenAttachType,a.TokenAttachType.normal),r.index=(0,o.defaultValue)(e.index,void 0),r.title=(0,o.defaultValue)(e.title,void 0),r.minScale=(0,o.defaultValue)(e.minScale,0),r.maxScale=(0,o.defaultValue)(e.maxScale,0),r.extendProps=(0,o.defaultValue)(e.extendProps,{}),r.type=a.LayerType.baseLayer,r.httpMethod=(0,o.defaultValue)(e.httpMethod,a.FetchMethod.get),r.headers=(0,o.defaultValue)(e.headers,{}),r.extensionOptions=(0,o.defaultValue)(e.extensionOptions,{}),r._visible=(0,o.defaultValue)(e.visible,!0),r._opacity=parseFloat((0,o.defaultValue)(e.opacity,1)),r._spatialReference=e.spatialReference?u.default.fromJSON(e.spatialReference):void 0,r._realIndex=void 0,r._isBasemapLayer=!1,r.autoAddTo2D=(0,o.defaultValue)(e.autoAddTo2D,!0),r.autoAddTo3D=(0,o.defaultValue)(e.autoAddTo3D,!0),r._loadPromise=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Evented),n(t,[{key:"isLoaded",value:function(){return this.loadStatus===a.LoadStatus.loaded}},{key:"load",value:function(){return this.loadStatus===a.LoadStatus.notLoaded?(this.loadStatus=a.LoadStatus.loading,this._loadPromise=this._load()):(this.loadStatus,a.LoadStatus.loading),this._loadPromise}},{key:"_load",value:function(){var e=this;return new Promise(function(t){e.loadStatus=a.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(a.LayerEventType.layerUpdate,new s.LayerViewUpdateEvent({type:a.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,o.toJSON)(this.spatialReference,u.default),extent:(0,o.toJSON)(this.extent,l.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,c.appendUrlParams)(this.url,e)}}],[{key:"fromJSON",value:function(e){return e=e||{},(0,f.createLayer)(e)}},{key:"fromServerUrl",value:function(e,r){return new Promise(function(n){r.url=e,n(new t(r))})}}]),t}();Object.defineProperties(h.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=h},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=r(2),i=r(1),o=r(7),a=r(17);t.setSublayer=function(e,t,r){for(var n=!0,i=0;i<e._sublayers.length;i++)if(String(e._sublayers[i].name)===String(t.name)||String(e._sublayers[i].id)===String(t.id)){Object.assign(e._sublayers[i],t),n=!1;break}for(var o=0;o<e.allSublayers.length;o++)if(String(e.allSublayers[o].name)===String(t.name)||String(e.allSublayers[o].id)===String(t.id)){Object.assign(e.allSublayers[o],t),n=!1;break}if(n)if(t instanceof r)e._sublayers.push(t);else if(t instanceof Object&&!(t instanceof Array))for(var a=0;a<e.allSublayers.length;a++)if(String(t.id)===String(e.allSublayers[a].id)||String(t.name)===String(e.allSublayers[a].name)){e._sublayers.push(new r(Object.assign(e.allSublayers[a].toJSON(),t)));break}},t.fireEvent=function(e,t,r){e._map&&e._map.fire(t,new n.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 n.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 i.LayerType.arcgisMapImage:t=a.ArcGISMapImageLayer.fromJSON(e);break;case i.LayerType.arcgisTile:t=a.ArcGISTileLayer.fromJSON(e);break;case i.LayerType.arcgisVectorTile:t=a.ArcGISVectorTileLayer.fromJSON(e);break;case i.LayerType.cesium3DTiles:t=a.Cesium3DTilesCacheLayer.fromJSON(e);break;case i.LayerType.echarts:t=a.EchartsLayer.fromJSON(e);break;case i.LayerType.feature:t=a.FeatureLayer.fromJSON(e);break;case i.LayerType.geojson:t=a.GeoJSONLayer.fromJSON(e);break;case i.LayerType.graphics:t=a.GraphicsLayer.fromJSON(e);break;case i.LayerType.group:t=a.GroupLayer.fromJSON(e);break;case i.LayerType.igsFeature:t=a.IGSFeatureLayer.fromJSON(e);break;case i.LayerType.igsMapImage:t=a.IGSMapImageLayer.fromJSON(e);break;case i.LayerType.igsVectorTile:t=a.IGSVectorTileLayer.fromJSON(e);break;case i.LayerType.igsTile:t=a.IGSTileLayer.fromJSON(e);break;case i.LayerType.m3dCache:t=a.M3DModelCacheLayer.fromJSON(e);break;case i.LayerType.mapv:t=a.MapVLayer.fromJSON(e);break;case i.LayerType.terrain:t=a.TerrainCacheLayer.fromJSON(e);break;case i.LayerType.webTileLayer:t=a.WebTileLayer.fromJSON(e);break;case i.LayerType.wfs:t=a.WFSLayer.fromJSON(e);break;case i.LayerType.wms:t=a.WMSLayer.fromJSON(e);break;case i.LayerType.wmts:t=a.WMTSLayer.fromJSON(e);break;case i.LayerType.unknown:default:t=a.UnknownLayer.fromJSON(e)}return t},t.getLayersCollection=function(e){return(e=e||[])instanceof n.Collection?e:(e=e.filter(function(e){return e}).map(function(e){return e instanceof a.Layer?e:a.Layer.fromJSON(e)}),new n.Collection(e))},t.toSublayerArr=function(e){if(e){var t=[];return e instanceof n.Collection?t=e.items:Array.isArray(e)&&(t=e),t=t.map(function(e){return e instanceof o.SubLayer?e.toJSON():e})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(40),o=r(2),a=r(0);var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e=(0,a.defaultValue)(e,{}),r.id=(0,a.defaultValue)(e.id,(0,a.getGUID)()),r.type="",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Evented),n(t,[{key:"toJSON",value:function(){return{type:this.type,id:this.id}}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}();s.fromJSON=function(e){return(0,i.createRender)(e)},t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(115));var a=function(){function e(t,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.red=(0,i.defaultValue)(t,0),this.green=(0,i.defaultValue)(r,0),this.blue=(0,i.defaultValue)(n,0),this.alpha=(0,i.defaultValue)(o,1)}return n(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}();a.fromRGBString=function(e){if(a.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 a(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 a(Number(r[0]),Number(r[1]),Number(r[2]))}},a.fromHexString=function(e){if(a.isHex(e)){var t=a.hexToRgb(e);if(t.indexOf("rgba")>-1||t.indexOf("RGBA")>-1)return a.fromRGBString(t);if(t.indexOf("rgb")>-1||t.indexOf("RGB")>-1)return a.fromRGBString(t)}},a.fromJSON=function(e){e=(0,i.defaultValue)(e,{});var t=(0,i.defaultValue)(e.red,255),r=(0,i.defaultValue)(e.green,255),n=(0,i.defaultValue)(e.blue,255),o=(0,i.defaultValue)(e.alpha,1);return new a(t,r,n,o)},a.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}},a.rgbToHex=function(e){if(/^(rgb|rgba|RGB|RGBA)/.test(e)){var t=void 0;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}},a.fromCssString=function(e){if(!e||"string"!=typeof e)return a.fromHexString("#000000");var t=e.toLowerCase(),r=o.default[t];return r?a.fromHexString(r):a.fromHexString("#000000")},a.fromColor=function(e){return"string"==typeof e?a.isHex(e)?a.fromHexString(e):a.isRGB(e)?a.fromRGBString(e):a.fromCssString(e):e instanceof a?e:Array.isArray(e)?3===e.length?new a(e[0],e[1],e[2]):4===e.length?new a(e[0],e[1],e[2],e[3]):(i.Log.info("非法颜色值数组!"),new a):e instanceof Object?a.fromJSON(e):new a},a.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)},a.isRGB=function(e){return/^(rgb|rgba|RGB|RGBA)/.test(e)},t.default=a},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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(44)),o=r(2),a=r(0),s=r(1),u=r(10);var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e=(0,a.defaultValue)(e,{}),r.id=(0,a.defaultValue)(e.id,(0,a.getGUID)()),r.color=o.Color.fromColor((0,a.defaultValue)(e.color,new o.Color(255,255,255,.25))),r.type=s.SymbolType.default,r.extensionOptions=(0,a.defaultValue)(e.extensionOptions,{}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"toJSON",value:function(){return{color:o.Color.fromColor(this.color).toJSON(),type:this.type,extensionOptions:(0,a.cloneObject)(this.extensionOptions),id:this.id}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return(0,u.createSymbol)(e)}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r(0),a=r(129),s=function(e){return e&&e.__esModule?e:{default:e}}(r(85));var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,o.defaultValue)(t,{});var r=this._parseSpatialReferenceOptions(t),n=r.wkid,i=r.wkt;this.wkid=n,this.wkt=i,this.unit=t.unit}return i(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":n(e))?((0,o.defined)(e.wkid)&&(t=parseInt(e.wkid)),e.wkt&&(r=e.wkt,t=void 0)):o.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===a.ProjUnitWkidMap[this.wkid]||/^GEOGCS/.test(this.wkt)||/^[+]proj=longlat/.test(this.wkt))||(this.wkid===s.default.bd09ll||this.wkid===s.default.gcj02ll)}},{key:"isWebMercator",get:function(){return[102113,102100,900913,3857].indexOf(this.wkid)>-1||(this.wkid===s.default.bd09mc||this.wkid===s.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,o.defaultValue)(t,{}))}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=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(15)),o=p(r(12)),a=r(0),s=p(r(16)),u=r(1),l=p(r(45)),c=p(r(32)),f=p(r(37)),h=p(r(47));function p(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,a.defaultValue)(e,{}),r.xmin=(0,a.defaultValue)(e.xmin,0),r.ymin=(0,a.defaultValue)(e.ymin,0),r.xmax=(0,a.defaultValue)(e.xmax,0),r.ymax=(0,a.defaultValue)(e.ymax,0),r.zmin=(0,a.defaultValue)(e.zmin,void 0),r.zmax=(0,a.defaultValue)(e.zmax,void 0),r.type=u.GeometryType.extent,r.hasZ=!(!(0,a.isNumber)(r.zmin)||!(0,a.isNumber)(r.zmax)),!(0,a.isNumber)(r.xmin)||!(0,a.isNumber)(r.ymin)||!(0,a.isNumber)(r.xmax)||!(0,a.isNumber)(r.ymax)||void 0!==r.zmin&&!(0,a.isNumber)(r.zmin)||void 0!==r.zmax&&!(0,a.isNumber)(r.zmax))throw new Error("坐标必须为数字");return r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"centerAt",value:function(e){if(!e)throw new Error("传入参数错误");var t=s.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 s.default||e instanceof t))return!1;var r=e;r.isGeographic||(r=l.default.project(e,new c.default({wkid:4326})));var n=this;n.isGeographic||(n=l.default.project(this,new c.default({wkid:4326})));var o=i.polygon([[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]),a=void 0;return a=r instanceof s.default?i.point(r._cloneCoordinates()):i.polygon([[[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin]]]),i.booleanContains(o,a)}},{key:"intersection",value:function(e){e||a.Log.error("传入参数错误!"),e instanceof t||a.Log.error("extent不是Extent几何!"),this.spatialReference.equals(e.spatialReference)||a.Log.error("不是同一个坐标系!");var r=e;r.isGeographic||(r=l.default.project(e,new c.default({wkid:4326})));var n=this;n.isGeographic||(n=l.default.project(this,new c.default({wkid:4326})));var o=i.polygon([[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]),s=i.polygon([[[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin]]]),u=null,f=i.intersect(o,s);if(f&&f.geometry){var h=void 0;"Polygon"===f.geometry.type?h=i.bbox(i.polygon(f.geometry.coordinates)):"MultiPolygon"===f.geometry.type&&(h=i.bbox(i.multiPolygon(f.geometry.coordinates))),h&&(u=new t({xmin:h[0],ymin:h[1],xmax:h[2],ymax:h[3]}),this.spatialReference.isGeographic||(u=l.default.project(u,c.default.fromJSON(this.spatialReference))))}return u}},{key:"intersects",value:function(e){return f.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,a.isNumber)(e)||!(0,a.isNumber)(t)||this.hasZ&&!(0,a.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=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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?u.IGSGeometryType.extent3D:u.IGSGeometryType.extent}},{key:"normalize",value:function(){var e=new s.default({coordinates:[this.xmin,this.ymin]}),r=new s.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 h.default.fromExtent(this)}},{key:"toGeoJSON",value:function(){return this.toPolygon().toGeoJSON()}}],[{key:"fromJSON",value:function(e){return new t(e=(0,a.defaultValue)(e,{}))}}]),t}();Object.defineProperties(d.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 s.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 s.default({coordinates:[(this.xmax-this.xmin)/2+this.xmin,(this.ymax-this.ymin)/2+this.ymin],spatialReference:this.spatialReference})}}}),t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(3),a=c(r(20)),s=c(r(19)),u=c(r(18)),l=r(0);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._initEvent(),r.type="sketchPolygonDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r.vertexNum=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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=i.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,n=null,a=[],u=[];this.vertexNum=0;var c=null;this.cursorStyle=this.view.cursor,(0,l.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var f=this._getInteractiveDom(),h=this.extensionOptions&&this.extensionOptions.vertexNumber?this.extensionOptions.vertexNumber:null;this._setInitSnap(),this._fireStartDrawEvent();var p=function r(a){if(a&&a.x&&a.y){e._stopInitSnap(),clearTimeout(null);var f={x:a.x,y:a.y};f,e._editMode=i.SketchEditMode.DRAWING;var p=null;p=e._snapPoint?e._snapPoint:e.view.toMap({x:f.x,y:f.y});var d=e.vertexNum+1;if(1===d)u=[p.coordinates],(n=e._getFeature()).geometry.coordinates=[[u[0],u[0],u[0],u[0]]];else if(2===d){var y=n.geometry.coordinates[0][0];if(y&&y[0]===p.coordinates[0]&&y[1]===p.coordinates[1])return l.Log.info("相邻两顶点重复!");u=[n.geometry.coordinates[0][0],n.geometry.coordinates[0][1]]}else{var g=(u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-2))[u.length-1];if(g&&g[0]===p.coordinates[0]&&g[1]===p.coordinates[1])return l.Log.info("相邻两顶点重复!");if(u.push(p.coordinates),e._sketchEditor.isSimple){var v=new o.Polygon({coordinates:[u.concat([u[0]])],spatialReference:e._spatialReference,extensionOptions:{arcType:e.arcType}});if(!o.GeometryEngine.isSimple(v))return e._fireUnsimpleDraw(),l.Log.info("该坐标构成的几何不符合拓扑规范!")}}if(e.vertexNum=d,h&&d>=h)e.view.off(i.ViewEventType.immediateClick,r);else{e.sketchStage.entityGraphic=n;var m=new s.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});m.addFeature(p,void 0,void 0,e.sketchInnerLayer),e._drawTools.push(m);var _=m.sketchStage.entityGraphic;e.sketchStage.vertexGraphics.push(_),n&&(t=!0),c="click",e.fire("drawn-vertex",{geometry:m.sketchStage.entityGraphic.geometry,feature:m.sketchStage.entityGraphic},self),e._fireDrawVertexEvent(n),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode)}}},d=!0,y=function(i){if(i&&i.x&&i.y&&t&&!r){clearTimeout(null),r=!0,n=e.sketchStage.entityGraphic,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var o={x:i.x,y:i.y};a[a.length-1]=o;var s=e.view.toMap({x:o.x,y:o.y}),l=h&&e.vertexNum===h?e.vertexNum-1:e.vertexNum;1===l?u=[n.geometry.coordinates[0][0]]:2===l?(n.geometry.coordinates[0][2]=s.coordinates,u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-2)):u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-2),1===e.vertexNum?e._snapPoint=e.getSnapGraphics(s,u):e.vertexNum>1&&(e._snapPoint=e.getSnapGraphics(s,u)),e._snapPoint&&(s=e._snapPoint),e._currentMovePoint=s,1===l?(n.geometry.coordinates[0][1]=s.coordinates,n.geometry.coordinates[0][2]=s.coordinates):2===l?n.geometry.coordinates[0][2]=s.coordinates:"click"===c?n.geometry.coordinates[0].splice(n.geometry.coordinates[0].length-1,0,s.coordinates):"move"===c&&n.geometry.coordinates[0].splice(n.geometry.coordinates[0].length-2,1,s.coordinates),e.sketchStage.entityGraphic=n,n.geometry.coordinates=[JSON.parse(JSON.stringify(n.geometry.coordinates[0]))],d&&(e._addFeatureToLayer(n,e.layer),d=!1),r=!1,c="move";var p=e._getInteractiveDom();f=f.concat(p),e._removeInteractiveStyle(p),e._fireChangeCursorEvent(n)}},g=function(){if(clearTimeout(null),clearTimeout(null),!t)return n=null,u=[],void(a=[]);if((n=e.sketchStage.entityGraphic)&&e._sketchEditor.isSimple&&!o.GeometryEngine.isSimple(n.geometry))return e._fireUnsimpleDraw(),l.Log.info("该坐标构成的几何不符合拓扑规范!");if(e.vertexNum<3&&e.sketchStage.entityGraphic)return l.Log.info("区几何顶点少于三个,不符合规范!");u=[],a=[],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=i.SketchEditMode.NONE,c="doubleClick",e.view.cursor=e.cursorStyle,e._addInteractiveStyle(f),e.fire("drawn",{geometry:n.geometry,feature:n},self),e._fireStopDrawEvent(n),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.vertexNum=0,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(p,y,g),this.view.on(i.ViewEventType.immediateClick,p),this.view.on(i.ViewEventType.pointerMove,y),this.view.on(i.ViewEventType.doubleClick,g)}},{key:"addFeature",value:function(e,t,r,n){var i=null;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 o=null;o=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var a=new i.Feature({geometry:e,symbol:o,elevationInfo:this.elevationInfo});r&&(a.attributes=r),this.sketchStage.entityGraphic=a,this._addFeatureToLayer(a,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[0,0],[0,0],[0,0]]);var t=new o.Polygon({coordinates:[e],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),r=this.sketchStyle.fillStyle.clone(),n=new i.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===i.SketchEditMode.NONE?this._editMode=i.SketchEditMode.EDITGRAGIC:this._editMode===i.SketchEditMode.EDITVERTEX&&(this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=i.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===i.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,a=new t({view:this.view,layer:this.layer,sketchStyle:new u.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(a),a.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=[a.sketchStage.entityGraphic];var l=[];if(l=[{point:new o.Point({coordinates:[n.xmax,n.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new o.Point({coordinates:[n.xmax,n.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new o.Point({coordinates:[n.xmin,n.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new o.Point({coordinates:[n.xmin,n.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var c=[{point:new o.Point({coordinates:this._getCenterCoordinate([n.xmax,n.ymax],[n.xmax,n.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([n.xmax,n.ymin],[n.xmin,n.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([n.xmin,n.ymin],[n.xmin,n.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([n.xmin,n.ymax],[n.xmax,n.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];l=l.concat(c)}var f=[],h=[];l.forEach(function(e){var t=new s.default({view:r.view,layer:r.layer,sketchStyle:new u.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),f.push(t),h.push(t.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=h,this._otherDrawTools?this._otherDrawTools.push(a):this._otherDrawTools=[a],this._otherDrawTools=this._otherDrawTools.concat(f),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(i.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=i.SketchEditMode.NONE,r.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),setTimeout(function(){r.view.on(i.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,a){if(a<e.geometry.coordinates[0].length-1){var l=new s.default({view:t.view,layer:t.layer,sketchStyle:new u.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),c=new o.Point({coordinates:i,spatialReference:t._spatialReference});t._drawTools.push(l),l.addFeature(c,void 0,{vertexIndex:a},t.sketchInnerLayer),r.push(l),t.sketchStage.vertexGraphics.push(l.sketchStage.entityGraphic)}if(a>0){var f=new s.default({view:t.view,layer:t.layer,sketchStyle:new u.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(f);var h,p=e.geometry.coordinates[0][a-1],d=t._getCenterCoordinate(i,p);h=new o.Point({coordinates:d,spatialReference:t._spatialReference}),t._drawTools.push(f),f.addFeature(h,void 0,{vertexIndex:a-1,type:"midVertex"},t.sketchInnerLayer),t.sketchStage.midVertexGraphics.push(f.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 a=null;a=t.mapPoint;var s=!0,u=setTimeout(function(){s=!1,r._parent&&r._fireStartPanEvent(r._parent.sketchStage.entityGraphic,r._parent)},200);this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._parent._mapClickEvent);var l=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==i.SketchEditMode.EDITGRAGIC&&!s){clearTimeout(null),n=!0;var u={x:t.x,y:t.y},l=r.view.toMap({x:u.x,y:u.y}),c=l.coordinates[0]-a.coordinates[0],f=l.coordinates[1]-a.coordinates[1];if(0!==c||0!==f){var h=[];e.geometry.coordinates[0].forEach(function(e){h.push(r.getPanCoordinates(e,c,f))});var p=new o.Polygon({coordinates:[h],spatialReference:r._spatialReference,extensionOptions:{arcType:r.arcType}});a=l,r._dispatchEvent("pan",{deltaPosition:{x:c,y:f},extent:p.extent},r),r.updateFeature(p,e),n=!1,r._parent&&r._firePanningEvent(r._parent.sketchStage.entityGraphic,r._parent)}else n=!1}},c=function e(){if(!r._editMode!==i.SketchEditMode.EDITGRAGIC&&r._startPan){if(s&&r._parent&&r._parent._editMode===i.SketchEditMode.EDITGRAGIC&&"sketchPointDrawTool"!==r._parent.type&&r._parent.selectFeatureVertex)return r._parent._editMode=i.SketchEditMode.EDITVERTEX,clearTimeout(u),r._parent.selectFeatureVertex(r._parent.sketchStage.entityGraphic),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(i.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r._startPan=!1,r.view.off(i.ViewEventType.pointerMove,l),void r.view.off(i.ViewEventType.pointerUp,e);r._editMode=i.SketchEditMode.NONE,r._startPan=!1,r.view.off(i.ViewEventType.pointerMove,l),r.view.off(i.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(i.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(l),this._hitTestEventHandlers.push(c),this.view.on(i.ViewEventType.pointerUp,c),this.view.on(i.ViewEventType.pointerMove,l)}},{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 o.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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.Polygon({coordinates:[n],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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.Polygon({coordinates:[n],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=null,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 o.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],n=JSON.parse(JSON.stringify(r));n[e.vertexIndex]=e.movePoint.coordinates,n.length-1===e.vertexIndex?n[0]=e.movePoint.coordinates:0===e.vertexIndex&&(n[t.geometry.coordinates[0].length-1]=e.movePoint.coordinates);var i=new o.Polygon({coordinates:[n],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!o.GeometryEngine.isSimple(i))return this._fireUnsimpleUpdate(),l.Log.info("该坐标构成的几何不符合拓扑规范!");if(t.geometry=i,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,c=this.sketchStage.midVertexGraphics[a],f=this.sketchStage.midVertexGraphics[s],h=this.sketchStage.vertexGraphics[a],p=n[s],d=n[a],y=n[u];c.geometry.coordinates=this._getCenterCoordinate(d,y),f.geometry.coordinates=this._getCenterCoordinate(d,p),h.geometry.coordinates=d}}},{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 o.Polygon({coordinates:[this.sketchStage.entityGraphic.geometry.coordinates[0]],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})),"moveMidVertex"===e.action){var r=JSON.parse(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates[0]));r[e.vertexIndex+1]=e.movePoint.coordinates;var n=new o.Polygon({coordinates:[r],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(n))return this._fireUnsimpleUpdate(),l.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry=n,this.sketchStage.midVertexGraphics[e.vertexIndex].geometry.coordinates=e.movePoint.coordinates}if("addVertex"===e.action){var i=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),a=new s.default({view:this.view,layer:this.layer,sketchStyle:new u.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 c,f=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex];this._getHight&&0;var h=this._getCenterCoordinate(f,e.point.coordinates);c=new o.Point({coordinates:h,spatialReference:this._spatialReference});var p=new s.default({view:this.view,layer:this.layer,sketchStyle:new u.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(p),p.addFeature(c,void 0,{type:"midVertex"},this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,p.sketchStage.entityGraphic);var d,y=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+2];this._getHight&&0;var g=this._getCenterCoordinate(y,e.point.coordinates);d=new o.Point({coordinates:g,spatialReference:this._spatialReference});var v=new s.default({view:this.view,layer:this.layer,sketchStyle:new u.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===i&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t.sketchInnerLayer)}),this._otherDrawTools.push(a),this._otherDrawTools.push(p),this._otherDrawTools.push(v)}}},{key:"addMidVertex",value:function(e,t){var r=new s.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){if((n=JSON.parse(JSON.stringify(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),r=new o.Polygon({coordinates:[n],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),l.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var i=void 0,a=void 0,c=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[c.xmax,c.ymax],[c.xmax,c.ymin],[c.xmin,c.ymin],[c.xmin,c.ymax],[c.xmax,c.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var f=[[c.xmax,c.ymax],[c.xmax,c.ymin],[c.xmin,c.ymin],[c.xmin,c.ymax],this._getCenterCoordinate([c.xmax,c.ymax],[c.xmin,c.ymax]),this._getCenterCoordinate([c.xmax,c.ymin],[c.xmin,c.ymin]),this._getCenterCoordinate([c.xmax,c.ymax],[c.xmax,c.ymin]),this._getCenterCoordinate([c.xmin,c.ymax],[c.xmin,c.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=f[t]})}if(this.sketchStage.vertexGraphics.length>0&&(i=new s.default({view:this.view,layer:this.layer,sketchStyle:new u.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(i),i.addFeatureByGeometry(e,void 0,void 0,this.sketchInnerLayer),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 h=-1,p=-1,d=null,y=null;0===t?(p=0,h=this.sketchStage.midVertexGraphics.length-1,d=this.sketchStage.entityGraphic.geometry.coordinates[0][this.sketchStage.entityGraphic.geometry.coordinates[0].length-2],y=this.sketchStage.entityGraphic.geometry.coordinates[0][1]):(h=t-1,p=t+1,d=this.sketchStage.entityGraphic.geometry.coordinates[0][h],y=this.sketchStage.entityGraphic.geometry.coordinates[0][p]);var g=new o.Point({coordinates:this._getCenterCoordinate(d,e.coordinates),spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[h].geometry.coordinates=g.coordinates;var v=new o.Point({coordinates:this._getCenterCoordinate(y,e.coordinates),spatialReference:this._spatialReference});a=new s.default({view:this.view,layer:this.layer,sketchStyle:new u.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}})}i&&this._otherDrawTools.push(i),a&&this._otherDrawTools.push(a),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireAddVertexEventByFun(i.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 n=this.sketchStage.entityGraphic,i=JSON.parse(JSON.stringify(n.geometry.coordinates[0]));if(this.currentVertexIndex=t,i[t]=e.coordinates,i.length-1===t?i[0]=e.coordinates:0===t&&(i[i.length-1]=e.coordinates),r=new o.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),l.Log.info("该坐标构成的几何不符合拓扑规范!");n.geometry.coordinates=[i];var a=n.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,c=0===u?u-1+this.sketchStage.midVertexGraphics.length:u-1,f=u===this.sketchStage.midVertexGraphics.length-1?0:u+1,h=this.sketchStage.midVertexGraphics[u],p=this.sketchStage.midVertexGraphics[c],d=i[c],y=i[u],g=i[f];h.geometry.coordinates=this._getCenterCoordinate(g,y),h.geometry=new o.Point({coordinates:h.geometry.coordinates,spatialReference:this._spatialReference}),p.geometry.coordinates=this._getCenterCoordinate(d,y),p.geometry=new o.Point({coordinates:p.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 n=JSON.parse(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates[0]));if(n.splice(e,1),0===e&&n.splice(n.length-1,1,n[0]),t=new o.Polygon({coordinates:[n],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(t))return this._fireUnsimpleUpdateByFun(),l.Log.info("该坐标构成的几何不符合拓扑规范!");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 a=[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],this._getCenterCoordinate([i.xmax,i.ymax],[i.xmin,i.ymax]),this._getCenterCoordinate([i.xmax,i.ymin],[i.xmin,i.ymin]),this._getCenterCoordinate([i.xmax,i.ymax],[i.xmax,i.ymin]),this._getCenterCoordinate([i.xmin,i.ymax],[i.xmin,i.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=[],c=-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],c=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],c=e-1),this.sketchStage.midVertexGraphics[c].geometry=new o.Point({coordinates:u,spatialReference:this._spatialReference});var f=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!==f)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireRemoveVertexByFun(this.sketchStage.entityGraphic,this._parent)}return t}}]),t}();t.default=f},function(e,t,r){"use strict";r.r(t),t.default=function(e,t,r){var n=e*t;return r/Math.sqrt(1-n*n)}},function(e,t,r){"use strict";r.r(t),t.default=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!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(15)),i=r(0),o=r(1),a=m(r(12)),s=m(r(47)),u=m(r(130)),l=m(r(131)),c=m(r(45)),f=m(r(32)),h=m(r(62)),p=m(r(132)),d=m(r(16)),y=m(r(133)),g=m(r(33)),v=m(r(134));function m(e){return e&&e.__esModule?e:{default:e}}var _=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};_.difference=function(e,t){(0,i.isNull)(e)&&i.Log.error("inputGeometry不能为空!"),(0,i.isNull)(t)&&i.Log.error("subtractGeometry不能为空!"),e instanceof s.default||e instanceof l.default||e instanceof g.default||e instanceof y.default||i.Log.error("inputGeometry类型错误!"),t instanceof s.default||t instanceof l.default||t instanceof g.default||t instanceof y.default||i.Log.error("subtractGeometry类型错误!");var r=void 0;switch(e.type){case h.default.polygon:r=_._polygonDifferenceGeometry(n.polygon(e.coordinates),t);break;case h.default.extent:var o=new s.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});r=_._polygonDifferenceGeometry(n.polygon(o.coordinates),t);break;case h.default.circle:r=_._polygonDifferenceGeometry(n.polygon(e.toPolygon().coordinates),t);break;case h.default.multiPolygon:r=_._polygonDifferenceGeometry(n.multiPolygon(e.coordinates),t)}return(0,i.isNull)(r)||(r="Polygon"===r.geometry.type?new s.default({coordinates:r.geometry.coordinates,spatialReference:f.default.fromJSON(e.spatialReference)}):new l.default({coordinates:r.geometry.coordinates,spatialReference:f.default.fromJSON(e.spatialReference)})),r},_._polygonDifferenceGeometry=function(e,t){var r=e,i=void 0;switch(t.type){case h.default.polygon:i=n.polygon(t.coordinates);break;case h.default.multiPolygon:i=n.multiPolygon(t.coordinates);break;case h.default.circle:i=n.polygon(t.toPolygon().coordinates);break;case h.default.extent:var o=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});i=n.polygon(o.coordinates)}return n.difference(r,i)},_.buffer=function(e,t,r,n){r=(0,i.defaultValue)(r,o.LengthUnit.meter),n=(0,i.defaultValue)(n,!1),t=(0,i.defaultValue)(t,1e3),_._checkBufferOptions(e,t,r,n);var u=void 0;if(e instanceof Array)if(t instanceof Array){if(t.length<e.length){u=[];for(var l=t.length>0?t[t.length-1]:1e3,p=t.length;p<e.length;p++)u.push(l)}}else{u=[];for(var d=0;d<e.length;d++)u.push(t)}else u=t instanceof Array?t.length>0?t[0]:1e3:t;var y=e;if(e instanceof Array){y=[];for(var g=0;g<e.length;g++)y.push(c.default.projectGeometry(e[g],new f.default({wkid:4326})))}else 4326!==e.spatialReference.wkid&&(y=c.default.projectGeometry(e,new f.default({wkid:4326})));var v=void 0;if(e instanceof Array){if(e instanceof Array){if(v=[],t instanceof Array&&t.length<e.length)for(var m=t[t.length-1],b=t.length-1;b<e.length;b++)t.push(m);for(var S=0;S<y.length;S++){var x=0;x=t instanceof Array?t[S]:t,v.push(_._polygonBuffer(y[S],x,r))}n&&(v=_.union(v))}}else switch(e.type){case h.default.point:case h.default.multiPoint:case h.default.lineString:case h.default.multiLineString:case h.default.polygon:case h.default.multiPolygon:v=_._polygonBuffer(y,u,r);break;case h.default.extent:var w=new s.default({coordinates:[[[y.xmin,y.ymin],[y.xmax,y.ymin],[y.xmax,y.ymax],[y.xmin,y.ymax],[y.xmin,y.ymin]]]});v=_._polygonBuffer(w,u,r);break;case h.default.circle:(v=a.default.fromJSON(e)).radius+=u;break;default:i.Log.error("geometry是不支持的几何类型!")}if(e instanceof Array){if(!e[0].spatialReference.isGeographic)if(v instanceof Array)for(var O=0;O<v.length;O++)v[O].type!==h.default.circle&&(v[O]=c.default.projectGeometry(v[O],f.default.fromJSON(e[0].spatialReference)));else v.type!==h.default.circle&&(v=c.default.projectGeometry(v,f.default.fromJSON(e[0].spatialReference)))}else e.spatialReference.isGeographic||e.type===h.default.circle||(v=c.default.projectGeometry(v,f.default.fromJSON(e.spatialReference)));return v},_._checkBufferOptions=function(e,t,r,n){if((0,i.isNull)(e)&&i.Log.error("geometry不能为空!"),(0,i.isNull)(t)&&i.Log.error("distance不能为空!"),(0,i.isNull)(e)&&i.Log.error("unit不能为空!"),(0,i.isNull)(e)&&i.Log.error("unionResults不能为空!"),e instanceof Array){for(var u=0;u<e.length;u++)if(!(e[u]instanceof s.default||e[u]instanceof l.default)){i.Log.error("geometry的子元素类型不为Polygon或者MultiPolygon!");break}0===e.length&&i.Log.error("geometry的长度为0!")}else e instanceof a.default||i.Log.error("geometry不是基础几何类型!");if(t instanceof Array){e instanceof Array||i.Log.error("distance的类型为数组,但是geometry的类型不是数组!");for(var c=0;c<t.length;c++)if("number"!=typeof t[c]){i.Log.error("distance的子元素不是数字类型!");break}}else"number"!=typeof t&&i.Log.error("distance的不是数字类型!");if("string"==typeof r)if(r){var f=!1;Object.keys(o.LengthUnit).forEach(function(e){f||o.LengthUnit[e]!==r||(f=!0)}),f||i.Log.error("unit是不支持的单位类型!")}else i.Log.error("unit的值不能为空!");else i.Log.error("unit类型不是字符串!");"boolean"!=typeof n&&i.Log.error("unionResults类型不是布尔值类型!")},_._polygonBuffer=function(e,t,r){var i=void 0;switch(e.type){case h.default.point:i=n.point(e.coordinates);break;case h.default.multiPoint:i=n.multiPoint(e.coordinates);break;case h.default.lineString:i=n.lineString(e.coordinates);break;case h.default.multiLineString:i=n.multiLineString(e.coordinates);break;case h.default.polygon:i=n.polygon(e.coordinates);break;case h.default.multiPolygon:i=n.multiPolygon(e.coordinates)}var o=n.buffer(i,t,{units:r});return a.default.fromJSON({type:o.geometry.type,coordinates:o.geometry.coordinates})},_._multiPolygonBuffer=function(e,t,r){var i=n.multiPolygon(e.coordinates),o=n.buffer(i,t,{units:r});return"Polygon"===o.geometry.type?new s.default({coordinates:o.geometry.coordinates}):new l.default({coordinates:o.geometry.coordinates})},_._buffer=function(e,t,r){if(e.hasOwnProperty("coordinates")||i.Log.error("geometry缺少coordinates属性!"),e instanceof s.default){var o=n.polygon(e.coordinates);return n.buffer(o,t,{units:r})}},_.union=function(e){if((e=(0,i.defaultValue)(e,[]))instanceof Array||i.Log.error("geometries必须为数组类型!"),0===e.length)return[];var t=!0,r=!0,o=e[0].type;if(e.length>1){switch(e[0].type){case h.default.polygon:case h.default.multiPolygon:for(var a=1;a<e.length;a++)if(e[a].type!==h.default.polygon&&e[a].type!==h.default.multiPolygon){t=!1;break}break;case h.default.point:case h.default.multiPoint:for(var c=1;c<e.length;c++)if(e[c].type!==h.default.point&&e[c].type!==h.default.multiPoint){t=!1;break}break;case h.default.circle:for(var y=1;y<e.length;y++)if(e[y].type!==h.default.circle){t=!1;break}break;case h.default.extent:for(var g=1;g<e.length;g++)if(e[g].type!==h.default.extent){t=!1;break}break;case h.default.lineString:case h.default.multiLineString:for(var m=1;m<e.length;m++)if(e[m].type!==h.default.lineString&&e[m].type!==h.default.multiLineString){t=!1;break}break;default:i.Log.error("geometries的子元素中有求并方法不支持的数据类型!")}t||i.Log.error("几何数组的类型不同!");for(var b=e[0].spatialReference,S=1;S<e.length;S++)b.equals(e[S].spatialReference)||(r=!1);r||i.Log.error("几何数组的坐标系不同!");var x=void 0,w=[];switch(o){case h.default.point:case h.default.multiPoint:for(var O=[],E=0;E<e.length;E++)e[E]instanceof d.default?O.push(e[E].coordinates):e[E]instanceof p.default&&(O=O.concat(e[E].coordinates));if(1===O.length)x=new d.default({coordinates:O[0],spatialReference:f.default.fromJSON(e[0].spatialReference)});else{var P=n.multiPoint(O);P=n.cleanCoords(P),x=new p.default({coordinates:P.geometry.coordinates,spatialReference:f.default.fromJSON(e[0].spatialReference)})}break;case h.default.polygon:case h.default.multiPolygon:var k=void 0,T=e[0].type===h.default.polygon?n.polygon(e[0].coordinates):n.multiPolygon(e[0].coordinates),I=e[1].type===h.default.polygon?n.polygon(e[1].coordinates):n.multiPolygon(e[1].coordinates);k=n.union(T,I);for(var M=2;M<e.length;M++){var L=e[M].type===h.default.polygon?n.polygon(e[M].coordinates):n.multiPolygon(e[M].coordinates);k=n.union(k.geometry,L)}x=k.geometry.type===h.default.polygon?new s.default({coordinates:k.geometry.coordinates,spatialReference:f.default.fromJSON(e[0].spatialReference)}):new l.default({coordinates:k.geometry.coordinates,spatialReference:f.default.fromJSON(e[0].spatialReference)});break;case h.default.lineString:case h.default.multiLineString:for(var C=[],N=0;N<e.length;N++)e[N]instanceof u.default?C.push(e[N].coordinates):C=C.concat(e[N].coordinates);x=1===C.length?new u.default({coordinates:C[0],spatialReference:f.default.fromJSON(e[0].spatialReference)}):new v.default({coordinates:C,spatialReference:f.default.fromJSON(e[0].spatialReference)});break;case h.default.extent:w=[];for(var R=0;R<e.length;R++){var j=new s.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:f.default.fromJSON(e[0].spatialReference)});w.push(j)}x=_.union(w);break;case h.default.circle:w=[];for(var G=0;G<e.length;G++)w.push(e[G].toPolygon());x=_.union(w)}return x}return 1===e.length?e[0]:void 0},_.intersects=function(e,t){_._checkTwoGeometry(e,t);var r=_._geometryToTurf(e),i=_._geometryToTurf(t);return!n.booleanDisjoint(r,i)},_.geodesicLength=function(e,t){(0,i.isNull)(e)&&i.Log.error("geometry对象不能为空!"),e instanceof u.default||i.Log.error("geometry类型不正确!"),"string"!=typeof(t=(0,i.defaultValue)(t,o.LengthUnit.meter))&&i.Log.error("unit类型不正确!");var r=0;switch(e.type){case h.default.lineString:var a=n.lineString(e.coordinates);r=1e3*n.length(a,{units:"kilometers"})}if(!e.spatialReference.isGeographic)switch(t){case o.LengthUnit.kilometer:r/=1e3;break;case o.LengthUnit.mile:r*=.000621371192237}return r},_.geodesicArea=function(e,t){(0,i.isNull)(e)&&i.Log.error("geometry对象不能为空!"),e instanceof s.default||e instanceof l.default||e instanceof y.default||e instanceof g.default||i.Log.error("polygon对象不是Polyon或MultiPolygon或Circle或Extent类型!"),t=(0,i.defaultValue)(t,o.LinearUnits.meters);var r=0;switch(e instanceof s.default||e instanceof l.default?r=_._geodesicPolygonArea(e):(e instanceof y.default||e instanceof g.default)&&(r=_._geodesicPolygonArea(e.toPolygon())),t){case o.AreaUnits.squareKilometers:r*=1e-6;break;case o.AreaUnits.squareMiles:r*=6214e-7*6214e-7;break;case o.AreaUnits.squareYards:r*=1.1959900499368898;break;case o.AreaUnits.squareFeet:r*=10.763910416689228;break;case o.AreaUnits.acres:r*=2471e-7;break;case o.AreaUnits.ares:r*=.01;break;case o.AreaUnits.hectares:r*=1e-4;break;case o.AreaUnits.squareMeters:}return r},_._geodesicPolygonArea=function(e){return n.area(n.polygon(e.coordinates))},_._geometryToTurf=function(e){var t=void 0;switch(e.type!==h.default.extent&&e.type!==h.default.circle&&(t=JSON.parse(JSON.stringify(e.coordinates))),e.type){case h.default.point:return n.point(t);case h.default.multiPoint:return n.multiPoint(t);case h.default.lineString:return n.lineString(t);case h.default.multiLineString:return n.multiLineString(t);case h.default.polygon:return n.polygon(t);case h.default.multiPolygon:return n.multiPolygon(t);case h.default.extent:return n.polygon([[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]);case h.default.circle:return n.polygon(e.toPolygon().coordinates);default:i.Log.error("geometry为不支持的几何类型!")}},_._lineContainPoint=function(e,t){var r=n.point(t.coordinates),i=n.lineString(e.coordinates),o=n.booleanContains(i,r);if(!o)for(var a=0;a<e.coordinates.length;a++){var s=new d.default({coordinates:e.coordinates[a],spatialReference:f.default.fromJSON(e.spatialReference)});if(_.equals(t,s)){o=!0;break}}return o},_._multiLineContainPoint=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new u.default({coordinates:e.coordinates[n],spatialReference:f.default.fromJSON(e.spatialReference)});if(_._lineContainPoint(i,t)){r=!0;break}}return r},_._polygonContainPoint=function(e,t){var r=n.point(t.coordinates),i=n.polygon(e.coordinates);return n.booleanContains(i,r)},_._polygonContainLine=function(e,t){var r=n.polygon(e.coordinates),i=n.lineString(t.coordinates);return n.booleanContains(r,i)},_._multiPointContainsPoint=function(e,t){var r=n.point(t.coordinates),i=n.multiPoint(e.coordinates);return n.booleanContains(i,r)},_._lineContainMultiPoint=function(e,t){for(var r=!0,n=0;n<t.coordinates.length;n++){var i=new d.default({coordinates:t.coordinates[n]});if(!(r=_._lineContainPoint(e,i)))break}return r},_._polygonContainMultiPoint=function(e,t){for(var r=!0,n=0;n<t.coordinates.length;n++){var i=new d.default({coordinates:t.coordinates[n]});if(!(r=_._polygonContainPoint(e,i)))break}return r},_._checkTwoGeometry=function(e,t){(0,i.isNull)(e)&&i.Log.error("geometry1对象为空!"),(0,i.isNull)(t)&&i.Log.error("geometry2对象为空!"),e instanceof a.default||i.Log.error("geometry1对象未继承于Geometry对象!"),t instanceof a.default||i.Log.error("geometry2对象未继承于Geometry对象!"),e.spatialReference.equals(t.spatialReference)||i.Log.error("geometry1和geometry2的坐标系不相同!")},_.intersect=function(e,t){(0,i.isNull)(e)&&i.Log.error("geometry1不能为空!"),(0,i.isNull)(t)&&i.Log.error("geometry2不能为空!"),e instanceof a.default||e instanceof Array||i.Log.error("geometry1必须为几何对象或者数组对象!"),t instanceof a.default||i.Log.error("geometry2必须为几何对象或者数组对象!");var r=void 0;if(e instanceof Array){r=[];for(var n=0;n<e.length;n++)r.push(_.intersect(e[n],t));return r}switch(e.type){case h.default.point:r=_._pointIntersectGeometry(e,t);break;case h.default.multiPoint:r=_._multiPointIntersectGeometry(e,t);break;case h.default.lineString:switch(t.type){case h.default.point:_.contains(e,t)&&(r=new d.default({coordinates:t.coordinates}));break;case h.default.multiPoint:r=_._lineIntersectMultiPoint(e,t);break;case h.default.polygon:r=_._lineIntersectPolygon(e,t);break;case h.default.multiPolygon:r=_._lineIntersectMultiPolygon(e,t);break;case h.default.lineString:case h.default.multiLineString:r=_._lineIntersectLine(e,t);break;case h.default.extent:r=_._lineIntersectExtent(e,t);break;case h.default.circle:r=_._lineIntersectPolygon(e,t.toPolygon())}break;case h.default.polygon:switch(t.type){case h.default.point:r=_._pointIntersectGeometry(t,e);break;case h.default.multiPoint:r=_._multiPointIntersectGeometry(t,e);break;case h.default.lineString:r=_._lineIntersectPolygon(t,e);break;case h.default.multiLineString:r=_._multiLineIntersectPolygon(t,e);break;case h.default.polygon:r=_._polygonIntersectPolygon(e,t);break;case h.default.multiPolygon:r=_._polygonIntersectMultiPolygon(e,t);break;case h.default.circle:r=_._polygonIntersectPolygon(e,t.toPolygon());break;case h.default.extent:r=_._polygonIntersectExtent(e,t)}break;case h.default.multiPolygon:switch(t.type){case h.default.point:r=_._pointIntersectGeometry(t,e);break;case h.default.multiPoint:r=_._multiPointIntersectGeometry(t,e);break;case h.default.lineString:r=_._lineIntersectMultiPolygon(t,e);break;case h.default.multiLineString:r=_._multiLineIntersectMultiPolygon(t,e);break;case h.default.polygon:r=_._polygonIntersectMultiPolygon(t,e);break;case h.default.multiPolygon:r=_._multiPolygonIntersectMultiPolygon(e,t);break;case h.default.extent:r=_._multiPolygonIntersectExtent(e,t);break;case h.default.circle:r=_._polygonIntersectMultiPolygon(t.toPolygon(),e)}break;case h.default.extent:switch(t.type){case h.default.point:r=_._pointIntersectGeometry(t,e);break;case h.default.multiPoint:r=_._multiPointIntersectGeometry(t,e);break;case h.default.lineString:r=_._lineIntersectExtent(t,e);break;case h.default.multiLineString:r=_._multiLineIntersectExtent(t,e);break;case h.default.polygon:r=_._polygonIntersectExtent(t,e);break;case h.default.multiPolygon:r=_._multiPolygonIntersectExtent(t,e);break;case h.default.extent:var o=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=_._polygonIntersectExtent(o,e);break;case h.default.circle:var l=new s.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});r=_._polygonIntersectPolygon(l,t.toPolygon())}break;case h.default.circle:var c=e.toPolygon();switch(t.type){case h.default.point:r=_._pointIntersectGeometry(t,c);break;case h.default.multiPoint:r=_._multiPointIntersectGeometry(t,c);break;case h.default.lineString:r=_._lineIntersectPolygon(t,c);break;case h.default.multiLineString:r=_._multiLineIntersectPolygon(t,c);break;case h.default.polygon:r=_._polygonIntersectPolygon(t,c);break;case h.default.multiPolygon:r=_._polygonIntersectMultiPolygon(c,t);break;case h.default.circle:r=_._polygonIntersectPolygon(t.toPolygon(),c);break;case h.default.extent:r=_._polygonIntersectExtent(c,t)}break;case h.default.multiLineString:switch(t.type){case h.default.point:r=_._pointIntersectGeometry(t,e);break;case h.default.multiPoint:r=_._multiPointIntersectGeometry(t,e);break;case h.default.lineString:r=_._lineIntersectLine(t,e);break;case h.default.multiLineString:for(var f=[],p=[],y=0;y<e.coordinates.length;y++){var g=new u.default({coordinates:e.coordinates[y]}),v=_._lineIntersectLine(g,t);v&&v.point&&f.push(v.point),v&&v.lineString&&p.push(v.lineString)}(r={point:void 0,lineString:void 0}).point=_.union(f),r.lineString=_.union(p);break;case h.default.polygon:r=_._multiLineIntersectPolygon(e,t);break;case h.default.multiPolygon:r=_._multiLineIntersectMultiPolygon(e,t)}}return r},_._lineIntersectLine=function(e,t){var r=void 0,i=void 0;r=e.type===h.default.lineString?n.lineString(e.coordinates):n.multiLineString(e.coordinates),i=t.type===h.default.lineString?n.lineString(t.coordinates):n.multiLineString(t.coordinates);var o=void 0,a=void 0;if(e.type===h.default.lineString)o=[e];else{o=[];for(var s=0;s<e.coordinates.length;s++)o.push(new u.default({coordinates:e.coordinates[s]}))}if(t.type===h.default.lineString)a=[t];else{a=[];for(var l=0;l<t.coordinates.length;l++)a.push(new u.default({coordinates:t.coordinates[l]}))}for(var c=[],f=0;f<o.length;f++)for(var y=0;y<a.length;y++){var g=n.lineString(o[f].coordinates),v=n.lineString(a[y].coordinates),m=n.lineOverlap(g,v);if(m.features.length>0)for(var b=0;b<m.features.length;b++)c.push(new u.default({coordinates:m.features[b].geometry.coordinates}))}var S=n.lineIntersect(r,i),x={point:void 0,lineString:void 0};1===c.length?x.lineString=new u.default({coordinates:c[0].coordinates}):c.length>1&&(x.lineString=_.union(c));for(var w=0;w<S.features.length;w++){var O=new d.default({coordinates:S.features[w].geometry.coordinates});x.lineString&&_.contains(x.lineString,O)&&S.features.splice(w,1)}if(1===S.features.length)x.point=new d.default({coordinates:S.features[0].geometry.coordinates});else if(S.features.length>1){for(var E=[],P=0;P<S.features.length;P++)E.push(S.features[P].geometry.coordinates);x.point=new p.default({coordinates:E})}return x},_._lineIntersectMultiPoint=function(e,t){for(var r=[],n=void 0,i=0;i<t.coordinates.length;i++){var o=new d.default({coordinates:t.coordinates[i]});_.contains(e,o)&&r.push(o.coordinates)}return 1===r.length?n=new d.default({coordinates:r[0]}):r.length>1&&(n=new p.default({coordinates:r})),n},_._lineIntersectPolygon=function(e,t){var r=n.lineString(e.coordinates),i=n.polygon(t.coordinates),o=n.lineIntersect(r,i);o.features=o.features.sort(function(e,t){return e.geometry.coordinates[0]-t.geometry.coordinates[0]});for(var a=[],s=0;s<e.coordinates.length-1;s++){var l=new u.default({coordinates:[e.coordinates[s],e.coordinates[s+1]]});l.coordinates=l.coordinates.sort(function(e,t){return e-t});for(var c=[],f=0;f<o.features.length;f++){var y=new d.default({coordinates:o.features[f].geometry.coordinates});_.contains(l,y)&&c.push(y)}var g=new d.default({coordinates:e.coordinates[s]});c[0]&&_.equals(g,c[0])||(c=[g].concat(c));var m=new d.default({coordinates:e.coordinates[s+1]});0!==c.length&&_.equals(m,c[c.length-1])||c.push(m);for(var b=0;b<c.length-1;b++){var S=new u.default({coordinates:[c[b].coordinates,c[b+1].coordinates]});_.contains(t,S)&&a.push(S)}}if(1===a.length)return a[0];if(a.length>1){for(var x=[],w=0;w<a.length;w++)x.push(a[w].coordinates);return new v.default({coordinates:x})}for(var O=[],E=0;E<o.features.length;E++)o.features[E].geometry.type===h.default.point&&O.push(o.features[E].geometry.coordinates);return 1===O.length?new d.default({coordinates:O[0]}):O.length>1?new p.default({coordinates:O}):void 0},_._multiLineIntersectPolygon=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new u.default({coordinates:e.coordinates[n]}),o=_._lineIntersectPolygon(i,t);o&&r.push(o)}if(1===r.length)return new u.default({coordinates:r[0].coordinates});if(r.length>1){for(var a=[],s=0;s<r.length;s++)r[s].type===h.default.lineString?a.push(r[s].coordinates):a=a.concat(r[s].coordinates);return new v.default({coordinates:a})}},_._multiLineIntersectMultiPolygon=function(e,t){for(var r=[],n=0;n<t.coordinates.length;n++){var i=new s.default({coordinates:t.coordinates[n]}),o=_._multiLineIntersectPolygon(e,i);o&&r.push(o)}return _.union(r)},_._lineIntersectExtent=function(e,t){var r=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return _._lineIntersectPolygon(e,r)},_._multiLineIntersectExtent=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new u.default({coordinates:e.coordinates[n]}),o=_._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 v.default({coordinates:a})}},_._lineIntersectMultiPolygon=function(e,t){for(var r=void 0,n=[],i=0;i<t.coordinates.length;i++){var o=new s.default({coordinates:t.coordinates[i]});n.push(_._lineIntersectPolygon(e,o))}for(var a=[],l=0;l<n.length;l++)n[l].type===h.default.lineString?a.push(n[l].coordinates):a=a.concat(n[l].coordinates);return 1===a.length?r=new u.default({coordinates:a}):a.length>1&&(r=new v.default({coordinates:a})),r},_._pointIntersectGeometry=function(e,t){if(_.contains(t,e))return new d.default({coordinates:e.coordinates})},_._multiPointIntersectGeometry=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new d.default({coordinates:e.coordinates[n]});_.contains(t,i)&&r.push(i.coordinates)}var o=void 0;return 1===r.length?o=new d.default({coordinates:r[0]}):r.length>1&&(o=new p.default({coordinates:r})),o},_._polygonIntersectPolygon=function(e,t){var r=n.polygon(e.coordinates),i=n.polygon(t.coordinates),o=n.intersect(r,i);if(o)return o.geometry.type===h.default.polygon?new s.default({coordinates:o.geometry.coordinates}):new l.default({coordinates:o.geometry.coordinates})},_._polygonIntersectMultiPolygon=function(e,t){for(var r=[],n=0;n<t.coordinates.length;n++){var i=new s.default({coordinates:t.coordinates[n]}),o=_._polygonIntersectPolygon(e,i);o&&r.push(o)}return _.union(r)},_._multiPolygonIntersectMultiPolygon=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new s.default({coordinates:e.coordinates[n]}),o=_._polygonIntersectMultiPolygon(i,t);o&&r.push(o)}return _.union(r)},_._polygonIntersectExtent=function(e,t){var r=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return _._polygonIntersectPolygon(e,r)},_._multiPolygonIntersectExtent=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new s.default({coordinates:e.coordinates[n]}),o=_._polygonIntersectExtent(i,t);o&&r.push(o)}return _.union(r)},_.overlaps=function(e,t){return!!_.intersects(e,t)&&(!_.contains(e,t)&&!_.contains(t,e))},_.rotate=function(e,t,r){t=(0,i.defaultValue)(t,0),(0,i.isNull)(e)&&i.Log.error("geometry不能为空!"),(0,i.isNull)(t)&&i.Log.error("angle不能为空!"),e instanceof a.default||i.Log.error("geometry不是基础几何对象!"),"number"!=typeof t&&i.Log.error("angle不是数字!"),!r||r instanceof d.default||i.Log.error("rotationOrigin不是Point对象!"),r&&!e.spatialReference.equals(r.spatialReference)&&i.Log.error("rotationOrigin和geometry不是同一个坐标系!");var o=void 0,s=void 0;e.spatialReference.isGeographic?(o=e,s=r):(o=c.default.projectGeometry(e,new f.default({wkid:4326})),s=c.default.projectGeometry(r,new f.default({wkid:4326})));var u=_._geometryToTurf(o),l=void 0;s&&(l=[s.coordinates[0],s.coordinates[1]]);var h={pivot:l,mutate:!0},p=n.transformRotate(u,t,h);return p=_._turfFeatureToGeometry(p),e.spatialReference.isGeographic||(p=c.default.projectGeometry(p,f.default.fromJSON(e.spatialReference))),p},_._turfFeatureToGeometry=function(e){switch(e.geometry.type){case h.default.point:return new d.default({coordinates:e.geometry.coordinates});case h.default.multiPoint:return new p.default({coordinates:e.geometry.coordinates});case h.default.lineString:return new u.default({coordinates:e.geometry.coordinates});case h.default.multiLineString:return new v.default({coordinates:e.geometry.coordinates});case h.default.polygon:return new s.default({coordinates:e.geometry.coordinates});case h.default.multiPolygon:return new l.default({coordinates:e.geometry.coordinates})}},_.nearestCoordinate=function(e,t){(0,i.isNull)(e)&&i.Log.error("geometry不能为空!"),(0,i.isNull)(t)&&i.Log.error("inputPoint不能为空!");var r=e,o=t;if(o instanceof d.default||i.Log.error("inputPoint类型错误,需要输入Point!"),r instanceof d.default||r instanceof u.default||r instanceof s.default||r instanceof p.default||r instanceof v.default||r instanceof l.default||r instanceof g.default||r instanceof y.default||i.Log.error("geometry类型错误!"),r.spatialReference.equals(o.spatialReference)||i.Log.error("_geometryPro1、inputPoint坐标系不同!"),r=(0,i.defaultValue)(r,void 0),o=(0,i.defaultValue)(o,void 0),r.spatialReference.isGeographic||(r=c.default.projectGeometry(r,new f.default({wkid:4326})),o=c.default.projectGeometry(o,new f.default({wkid:4326}))),!(0,i.isNull)(r)&&!(0,i.isNull)(o)){var m=void 0,_=void 0,b=void 0,S=[],x=n.point(o.coordinates);switch(r.type){case h.default.multiPoint:for(var w=0;w<r.coordinates.length;w++)S.push(n.point(r.coordinates[w]));var O=n.featureCollection(S);m=n.nearestPoint(x,O);break;case h.default.lineString:_=n.lineString(r.coordinates),m=n.nearestPointOnLine(_,x,{units:"kilometers"});break;case h.default.multiLineString:_=n.multiLineString(r.coordinates),m=n.nearestPointOnLine(_,x,{units:"kilometers"});break;case h.default.polygon:for(var E=0;E<r.coordinates[0].length;E++)S.push(r.coordinates[0][E]);_=n.lineString(S),m=n.nearestPointOnLine(_,x,{units:"kilometers"});break;case h.default.multiPolygon:for(var P=[],k=0;k<r.coordinates.length;k++){S=[];for(var T=0;T<r.coordinates[k][0].length;T++)S.push(r.coordinates[k][0][T]);P.push(S),_=n.multiLineString(P)}m=n.nearestPointOnLine(_,x,{units:"kilometers"});break;case h.default.circle:b=n.polygon(r.toPolygon().coordinates);for(var I=0;I<b.geometry.coordinates[0].length;I++)S.push(b.geometry.coordinates[0][I]);_=n.lineString(S),m=n.nearestPointOnLine(_,x,{units:"kilometers"});break;case h.default.extent:b=new s.default({coordinates:[[[r.xmin,r.ymin],[r.xmax,r.ymin],[r.xmax,r.ymax],[r.xmin,r.ymax],[r.xmin,r.ymin]]]});for(var M=0;M<b.coordinates[0].length;M++)S.push(b.coordinates[0][M]);_=n.lineString(S),m=n.nearestPointOnLine(_,x,{units:"kilometers"})}return m=a.default.fromJSON(m.geometry),t.spatialReference.isGeographic||(m=c.default.projectGeometry(m,t.spatialReference)),m}},_.planarArea=function(e,t){t=(0,i.defaultValue)(t,o.LinearUnits.meters),e instanceof s.default||e instanceof l.default||e instanceof y.default||e instanceof g.default||i.Log.error("polygon对象不是Polyon或MultiPolygon或Circle或Extent类型!");var r=0;if(e instanceof s.default)r=_._polygonArea(e);else if(e instanceof l.default)for(var n=e.toPolygonArray(),a=0;a<n.length;a++)r+=_._polygonArea(n[a]);else e instanceof y.default?r=Math.abs(Math.PI*e.radius*e.radius):e instanceof g.default&&(r=Math.abs((e.xmax-e.xmin)*(e.ymax-e.ymin)));switch(t){case o.AreaUnits.squareKilometers:r*=1e-6;break;case o.AreaUnits.squareMiles:r*=6214e-7*6214e-7;break;case o.AreaUnits.squareYards:r*=1.1959900499368898;break;case o.AreaUnits.squareFeet:r*=10.763910416689228;break;case o.AreaUnits.acres:r*=2471e-7;break;case o.AreaUnits.ares:r*=.01;break;case o.AreaUnits.hectares:r*=1e-4;break;case o.AreaUnits.squareMeters:}return r},_._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)},_._polygonArea=function(e){for(var t=_._ringArea(e.coordinates[0]),r=0,n=1;n<e.coordinates.length;n++)r+=_._ringArea(e.coordinates[n]);return t-r},_.planarLength=function(e,t){t=(0,i.defaultValue)(t,o.LinearUnits.meters),(0,i.isNull)(e)&&i.Log.error("geometry对象不能为空!"),e instanceof u.default||e instanceof v.default||e instanceof s.default||e instanceof l.default||e instanceof y.default||e instanceof g.default||i.Log.error("geometry类型不正确!");var r=0,n=void 0;switch(e.type){case h.default.lineString:r=_._planarLineStringLength(e);break;case h.default.multiLineString:r=_._planarMultiLineStringLength(e);break;case h.default.polygon:n=new s.default({coordinates:[e.coordinates[0]]}),r=_._planarMultiLineStringLength(n);break;case h.default.multiPolygon:for(var a=0;a<e.coordinates.length;a++){var c=new s.default({coordinates:[e.coordinates[a][0]]});r+=_._planarMultiLineStringLength(c)}break;case h.default.circle:r=2*Math.PI*e.radius;break;case h.default.extent:n=new s.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]}),r+=_._planarMultiLineStringLength(n)}switch(t){case o.LinearUnits.kilometers:r*=.001;break;case o.LinearUnits.feet:r*=3.28083989501;break;case o.LinearUnits.miles:r*=6214e-7;break;case o.LinearUnits.nauticalMiles:r*=54e-5;break;case o.LinearUnits.yards:r*=1.0936133;break;case o.LinearUnits.meters:}return r},_._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},_._planarMultiLineStringLength=function(e){for(var t=0,r=0;r<e.coordinates.length;r++){var n=new u.default({coordinates:e.coordinates[r]});t+=_._planarLineStringLength(n)}return t},_.contains=function(e,t){_._checkTwoGeometry(e,t);var r=!1,n=void 0;switch(e.type){case h.default.point:switch(t.type){case h.default.point:return _.equals(e,t)}break;case h.default.multiPoint:switch(t.type){case h.default.point:return _._multiPointContainsPoint(e,t);case h.default.multiPoint:r=!0;for(var i=0;i<t.coordinates.length&&(n=new d.default({coordinates:t.coordinates[i]}),r=_._lineContainPoint(e,n));i++);return r}break;case h.default.lineString:switch(t.type){case h.default.point:return _._lineContainPoint(e,t);case h.default.multiPoint:r=!0;for(var o=0;o<t.coordinates.length;o++)if(n=new d.default({coordinates:t.coordinates[o],spatialReference:f.default.fromJSON(t.spatialReference)}),!_._lineContainPoint(e,n)){r=!1;break}return r;case h.default.lineString:return _._lineContainLine(e,t);case h.default.multiLineString:r=!0;for(var a=0;a<t.coordinates.length;a++){var l=new u.default({coordinates:t.coordinates[a],spatialReference:f.default.fromJSON(t.spatialReference)});if(!_._lineContainLine(e,l)){r=!1;break}}return r}break;case h.default.multiLineString:switch(t.type){case h.default.point:return _._multiLineContainPoint(e,t);case h.default.multiPoint:r=!0;for(var c=0;c<t.coordinates.length;c++){var p=new d.default({coordinates:t.coordinates[c],spatialReference:f.default.fromJSON(t.spatialReference)});if(!_._multiLineContainPoint(e,p)){r=!1;break}}return r;case h.default.lineString:return _._multiLineContainLine(e,t);case h.default.multiLineString:r=!0;for(var y=0;y<t.coordinates.length;y++){var g=new u.default({coordinates:t.coordinates[y],spatialReference:f.default.fromJSON(t.spatialReference)});if(!_._multiLineContainLine(e,g)){r=!1;break}}return r}break;case h.default.polygon:switch(t.type){case h.default.point:return _._polygonContainPoint(e,t);case h.default.multiPoint:r=!0;for(var v=0;v<t.coordinates.length;v++){var m=new d.default({coordinates:t.coordinates[v]});if(!_._polygonContainPoint(e,m)){r=!1;break}}return r;case h.default.lineString:return _._polygonContainLine(e,t);case h.default.multiLineString:r=!0;for(var b=0;b<t.coordinates.length;b++){var S=new u.default({coordinates:t.coordinates[b]});if(!_._polygonContainLine(e,S)){r=!1;break}}return r;case h.default.polygon:return _._polygonContainPolygon(e,t);case h.default.multiPolygon:r=!0;for(var x=0;x<t.coordinates.length;x++){var w=new s.default({coordinates:t.coordinates[x]});if(!_._polygonContainPolygon(e,w)){r=!1;break}}return r;case h.default.circle:return _._polygonContainPolygon(e,t.toPolygon());case h.default.extent:var O=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return _._polygonContainPolygon(e,O)}break;case h.default.multiPolygon:switch(t.type){case h.default.point:return _._multiPolygonContainsPoint(e,t);case h.default.multiPoint:return _._multiContainsMulti(e,t,d.default,_._multiPolygonContainsPoint);case h.default.lineString:return _._multiPolygonContainsLine(e,t);case h.default.multiLineString:return _._multiContainsMulti(e,t,u.default,_._multiPolygonContainsLine);case h.default.polygon:return _._multiPolygonContainsPolygon(e,t);case h.default.multiPolygon:return _._multiContainsMulti(e,t,s.default,_._multiPolygonContainsPolygon);case h.default.circle:r=!1;for(var E=0;E<e.coordinates.length;E++){var P=new s.default({coordinates:e.coordinates[E]});if(_._polygonContainPolygon(P,t.toPolygon())){r=!0;break}}return r;case h.default.extent:r=!1;for(var k=0;k<e.coordinates.length;k++){var T=new s.default({coordinates:e.coordinates[k]}),I=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});if(_._polygonContainPolygon(T,I)){r=!0;break}}return r}break;case h.default.circle:switch(t.type){case h.default.point:return _._polygonContainPoint(e.toPolygon(),t);case h.default.multiPoint:return _._singleContainsMulti(e.toPolygon(),t,d.default,_._polygonContainPoint);case h.default.lineString:return _._polygonContainMultiPoint(e.toPolygon(),t);case h.default.multiLineString:return _._singleContainsMulti(e.toPolygon(),t,u.default,_._polygonContainMultiPoint);case h.default.polygon:return _._polygonContainPolygon(e.toPolygon(),t);case h.default.multiPolygon:return _._singleContainsMulti(e.toPolygon(),t,s.default,_._polygonContainPolygon);case h.default.circle:return _._polygonContainPolygon(e.toPolygon(),t.toPolygon());case h.default.extent:var M=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return _._polygonContainPolygon(e.toPolygon(),M)}break;case h.default.extent:var L=new s.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 h.default.point:return _._polygonContainPoint(L,t);case h.default.multiPoint:return _._singleContainsMulti(L,t,d.default,_._polygonContainPoint);case h.default.lineString:return _._polygonContainMultiPoint(L,t);case h.default.multiLineString:return _._singleContainsMulti(L,t,u.default,_._polygonContainMultiPoint);case h.default.polygon:return _._polygonContainPolygon(L,t);case h.default.multiPolygon:return _._singleContainsMulti(L,t,s.default,_._polygonContainPolygon);case h.default.circle:return _._polygonContainPolygon(L,t.toPolygon());case h.default.extent:var C=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return _._polygonContainPolygon(L,C)}break;default:return!1}},_._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},_._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},_._multiPolygonContainsPoint=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new s.default({coordinates:e.coordinates[n]});if(_._polygonContainPoint(i,t)){r=!0;break}}return r},_._multiPolygonContainsLine=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new s.default({coordinates:e.coordinates[n]});if(_._polygonContainMultiPoint(i,t)){r=!0;break}}return r},_._multiPolygonContainsPolygon=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new s.default({coordinates:e.coordinates[n]});if(_._polygonContainPolygon(i,t)){r=!0;break}}return r},_._lineContainLine=function(e,t){var r=n.lineString(e.coordinates),i=n.lineString(t.coordinates),o=n.booleanContains(r,i);if(o||(o=_.equals(e,t)),!o){var a=new u.default({coordinates:[t.coordinates[1],t.coordinates[0]]});o=_.equals(e,a)}return o},_._multiLineContainLine=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new u.default({coordinates:e.coordinates[n],spatialReference:f.default.fromJSON(e.spatialReference)});if(_._lineContainLine(i,t)){r=!0;break}}return r},_._polygonContainPolygon=function(e,t){var r=n.polygon(e.coordinates),i=n.polygon(t.coordinates);return n.booleanContains(r,i)},_.distance=function(e,t,r){((0,i.isNull)(e)&&i.Log.error("geometry1不能为空!"),(0,i.isNull)(t)&&i.Log.error("geometry2不能为空!"),e instanceof d.default||i.Log.error("geometry1类型错误,需要输入Point!"),t instanceof d.default||t instanceof u.default||t instanceof s.default||t instanceof p.default||t instanceof v.default||t instanceof l.default||t instanceof g.default||t instanceof y.default||i.Log.error("geometry2类型错误!"),e.spatialReference.equals(t.spatialReference)||i.Log.error("geometry1、geometry2坐标系不同!"),r=(0,i.defaultValue)(r,o.LengthUnit.kilometer),e=(0,i.defaultValue)(e,void 0),t=(0,i.defaultValue)(t,void 0),e.spatialReference.isGeographic)||(e=c.default.projectGeometry(e,new f.default({wkid:4326})),t=c.default.projectGeometry(t,new f.default({wkid:4326})));if(!(0,i.isNull)(e)&&!(0,i.isNull)(t)){var a=void 0,m=void 0,_=void 0,b=[],S=[],x=n.point(e.coordinates);switch(t.type){case h.default.point:m=n.point(t.coordinates),a=n.distance(x,m,{units:r});break;case h.default.multiPoint:for(var w=0;w<t.coordinates.length;w++)b.push(n.point(t.coordinates[w]));var O=n.featureCollection(b),E=n.nearestPoint(x,O);a=n.distance(x,E,{units:r});break;case h.default.lineString:m=n.lineString(t.coordinates),a=n.pointToLineDistance(x,m,{units:r});break;case h.default.multiLineString:for(var P=0;P<t.coordinates.length;P++)m=n.lineString(t.coordinates[P]),S.push(n.pointToLineDistance(x,m,{units:r}));S.sort(function(e,t){return e-t}),a=S[0];break;case h.default.polygon:for(var k=0;k<t.coordinates[0].length;k++)b.push(t.coordinates[0][k]);m=n.lineString(b),a=n.pointToLineDistance(x,m,{units:r});break;case h.default.multiPolygon:for(var T=0;T<t.coordinates.length;T++){b=[];for(var I=0;I<t.coordinates[T][0].length;I++)b.push(t.coordinates[T][0][I]);m=n.lineString(b),S.push(n.pointToLineDistance(x,m,{units:r}))}S.sort(function(e,t){return e-t}),a=S[0];break;case h.default.circle:_=n.polygon(t.toPolygon().coordinates);for(var M=0;M<_.geometry.coordinates[0].length;M++)b.push(_.geometry.coordinates[0][M]);m=n.lineString(b),a=n.pointToLineDistance(x,m,{units:r});break;case h.default.extent:for(var L=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]}),C=0;C<L.coordinates[0].length;C++)b.push(L.coordinates[0][C]);m=n.lineString(b),a=n.pointToLineDistance(x,m,{units:r})}return a}},_.equals=function(e,t){if((0,i.isNull)(e)&&i.Log.error("geometry1对象为空!"),(0,i.isNull)(t)&&i.Log.error("geometry2对象为空!"),e instanceof a.default||i.Log.error("geometry1对象未继承于Geometry对象!"),t instanceof a.default||i.Log.error("geometry2对象未继承于Geometry对象!"),e.type!==t.type)return!1;if(!e.spatialReference.equals(t.spatialReference))return!1;switch(e.type){case h.default.point:if(!e.equals(t))return!1;break;case h.default.polygon:return _._equalPolygon(e,t);case h.default.lineString:return _._equalLinePoint(e,t);case h.default.extent:if(e.xmin!==t.xmin||e.ymin!==t.ymin||e.xmax!==t.xmax||e.ymax!==t.ymax)return!1;break;case h.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 h.default.multiPoint:return _._equalLinePoint(e,t);case h.default.multiLineString:if(e.coordinates.length!==t.coordinates.length)return!1;for(var n=0;n<e.coordinates.length;n++){var o=new u.default({coordinates:e.coordinates[n],spatialReference:e.spatialReference}),l=new u.default({coordinates:t.coordinates[n],spatialReference:t.spatialReference});if(!_.equals(o,l))return!1}break;case h.default.multiPolygon:if(e.coordinates.length!==t.coordinates.length)return!1;for(var c=0;c<e.coordinates.length;c++){var f=new s.default({coordinates:e.coordinates[c],spatialReference:e.spatialReference}),p=new s.default({coordinates:t.coordinates[c],spatialReference:t.spatialReference});if(!_.equals(f,p))return!1}}return!0},_._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 d.default({coordinates:e.coordinates[r]}),i=new d.default({coordinates:t.coordinates[r]});if(!n.equals(i))return!1}return!0},_._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 u.default({coordinates:e.coordinates[n],spatialReference:e.spatialReference}),o=new u.default({coordinates:t.coordinates[n],spatialReference:t.spatialReference});if(!_.equals(i,o))return!1}return!0},_.disjoint=function(e,t){return!_.intersects(e,t)},_.within=function(e,t){return _.contains(t,e)},_.crosses=function(e,t){if((0,i.isNull)(e)&&i.Log.error("geometry1不能为空!"),(0,i.isNull)(t)&&i.Log.error("geometry2不能为空!"),e.spatialReference.equals(t.spatialReference)||i.Log.error("geometry1、geometry2坐标系不同!"),e instanceof u.default||e instanceof v.default)return _._crosses(e,t);if(t instanceof u.default||t instanceof v.default){var r=e;return _._crosses(e=t,t=r)}i.Log.error("geometry1和geometry2中至少有一个参数类型必须为lineString和multiLineString中的一个!")},_._crosses=function(e,t){(t instanceof u.default||t instanceof s.default||t instanceof v.default||t instanceof l.default||t instanceof g.default||t instanceof y.default||i.Log.error("geometry2类型错误!"),e=(0,i.defaultValue)(e,void 0),t=(0,i.defaultValue)(t,void 0),e.spatialReference.isGeographic)||(e=c.default.projectGeometry(e,new f.default({wkid:4326})),t=c.default.projectGeometry(t,new f.default({wkid:4326})));if(!(0,i.isNull)(e)&&!(0,i.isNull)(t)){var r=void 0,o=void 0,a=void 0;switch(e.type){case h.default.lineString:switch(t.type){case h.default.lineString:if(o=_._geometryToTurf(e),a=_._geometryToTurf(t),!(r=n.booleanCrosses(o,a))&&_.intersects(e,t)){var m=[],b=new p.default({coordinates:[t.coordinates[0],t.coordinates[t.coordinates.length-1]]});if(b.coordinates[0].toString()===b.coordinates[1].toString()){var S=_.intersect(e,t);if("MultiPoint"===S.point.type)r=!0;else if("Point"===S.point.type){var x=new d.default({coordinates:e.coordinates[0]}),w=new d.default({coordinates:e.coordinates[e.coordinates.length-1]});r=!_.contains(t,x)&&!_.contains(t,w)}}else{for(var O=0;O<e.coordinates.length;O++)m.push(e.coordinates[O]);for(var E=0;E<t.coordinates.length;E++)m.push(t.coordinates[E]);var P=n.multiPoint(m);if(!(n.cleanCoords(P).geometry.coordinates.length<P.geometry.coordinates.length)){for(var k=void 0,T=0;T<e.coordinates.length;T++){if(k){r=!k;break}var I=new d.default({coordinates:e.coordinates[T]});k=_.contains(t,I)}for(var M=0;M<t.coordinates.length;M++){if(k){r=!k;break}var L=new d.default({coordinates:t.coordinates[M]});k=_.contains(e,L)}k||(r=!0);break}r=!1}}break;case h.default.multiLineString:for(var C=0;C<t.coordinates.length&&!r;C++)a=new u.default({coordinates:t.coordinates[C]}),r=_._crosses(e,a);break;case h.default.polygon:case h.default.extent:case h.default.circle:if(o=_._geometryToTurf(e),a=_._geometryToTurf(t),r=n.booleanCrosses(o,a))"Point"===_.intersect(e,t).type&&(r=!1);break;case h.default.multiPolygon:for(var N=0;N<t.coordinates.length&&!r;N++)a=new s.default({coordinates:t.coordinates[N]}),r=_._crosses(e,a)}break;case h.default.multiLineString:for(var R=0;R<e.coordinates.length&&!r;R++)o=new u.default({coordinates:e.coordinates[R]}),r=_._crosses(o,t)}return r}},_.touches=function(e,t){((0,i.isNull)(e)&&i.Log.error("geometry1不能为空!"),(0,i.isNull)(t)&&i.Log.error("geometry2不能为空!"),e instanceof u.default||e instanceof s.default||e instanceof v.default||e instanceof l.default||e instanceof g.default||e instanceof y.default||i.Log.error("geometry1类型错误,需要输入LineString、Polygon、MultiLineString、MultiPolygon、Circle、Extent!"),t instanceof d.default||t instanceof u.default||t instanceof s.default||t instanceof p.default||t instanceof v.default||t instanceof l.default||t instanceof g.default||t instanceof y.default||i.Log.error("geometry2类型错误!"),e.spatialReference.equals(t.spatialReference)||i.Log.error("geometry1、geometry2坐标系不同!"),e=(0,i.defaultValue)(e,void 0),t=(0,i.defaultValue)(t,void 0),e.spatialReference.isGeographic)||(e=c.default.projectGeometry(e,new f.default({wkid:4326})),t=c.default.projectGeometry(t,new f.default({wkid:4326})));if(!(0,i.isNull)(e)&&!(0,i.isNull)(t)){var r=!1,n=void 0,o=void 0,a=[];switch(e.type){case h.default.lineString:switch(t.type){case h.default.point:var m=new p.default({coordinates:[e.coordinates[0],e.coordinates[e.coordinates.length-1]]});_.contains(m,t)&&m.coordinates[0].toString()!==m.coordinates[1].toString()&&(r=!0);break;case h.default.multiPoint:for(var b=0;b<t.coordinates.length;b++){var S=new d.default({coordinates:t.coordinates[b]}),x=_.touches(e,S);if(x)r=x;else if(_.intersects(e,S)){r=!1;break}}break;case h.default.lineString:if(_.intersect(e,t).point){var w=new d.default({coordinates:e.coordinates[0]}),O=new d.default({coordinates:e.coordinates[e.coordinates.length-1]});if(_.contains(t,w)||_.contains(t,O))r=!_.crosses(e,t);else{var E=new d.default({coordinates:t.coordinates[0]}),P=new d.default({coordinates:t.coordinates[t.coordinates.length-1]});r=!(!_.contains(e,E)&&!_.contains(e,P))&&!_.crosses(e,t)}}else r=!1;break;case h.default.multiLineString:for(var k=0;k<t.coordinates.length;k++){o=new u.default({coordinates:t.coordinates[k]});var T=_.touches(e,o);if(T)r=T;else if(_.intersects(e,o)){r=!1;break}}break;case h.default.polygon:for(var I=0;I<t.coordinates[0].length;I++)a.push(t.coordinates[0][I]);o=new u.default({coordinates:a}),_.intersects(e,o)&&(_.crosses(e,o)||(r=!0));break;case h.default.multiPolygon:for(var M=0;M<t.coordinates.length;M++){o=new s.default({coordinates:t.coordinates[M]});var L=_.touches(e,o);if(L)r=L;else if(_.intersects(e,o)){r=!1;break}}break;case h.default.circle:var C=new d.default({coordinates:t.center}),N=_.nearestCoordinate(e,C),R=new u.default({coordinates:[t.center,N.geometry.coordinates]}),j=_.planarLength(R);Math.round(j)===t.radius&&(r=!0);break;case h.default.extent:var G=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=_.touches(e,G)}break;case h.default.multiLineString:for(var V=0;V<e.coordinates.length;V++){n=new u.default({coordinates:e.coordinates[V]});var A=_.touches(n,t);if(A)r=A;else if(_.intersects(n,t)){r=!1;break}}break;case h.default.polygon:switch(t.type){case h.default.point:if(!_.contains(e,t)){for(var D=0;D<e.coordinates.length;D++)a.push(e.coordinates[D]);n=new v.default({coordinates:a}),_.contains(n,t)&&(r=!0)}break;case h.default.multiPoint:for(var F=0;F<t.coordinates.length;F++){var B=new d.default({coordinates:t.coordinates[F]}),q=_.touches(e,B);if(q)r=q;else if(_.contains(e,B)){r=!1;break}}break;case h.default.lineString:case h.default.multiLineString:r=_.touches(t,e);break;case h.default.polygon:_.intersects(e,t)&&(_.intersect(e,t)||(r=!0));break;case h.default.multiPolygon:for(var J=0;J<t.coordinates.length;J++){o=new s.default({coordinates:t.coordinates[J]});var U=_.touches(e,o);if(U)r=U;else if(_.intersects(e,o)){r=!1;break}}break;case h.default.circle:for(var z=0;z<e.coordinates[0].length;z++)a.push(e.coordinates[0][z]);n=new u.default({coordinates:a});var W=new d.default({coordinates:t.center}),H=_.nearestCoordinate(n,W),X=new u.default({coordinates:[t.center,H.geometry.coordinates]}),Y=_.planarLength(X);Math.round(Y)===t.radius&&(_.intersect(e,t)||(r=!0));break;case h.default.extent:var Z=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=_.touches(e,Z)}break;case h.default.multiPolygon:switch(t.type){case h.default.point:for(var K=0;K<e.coordinates.length;K++){n=new s.default({coordinates:e.coordinates[K]});var Q=_.touches(n,t);if(Q)r=Q;else if(_.contains(n,t)){r=!1;break}}break;case h.default.multiPoint:for(var $=0;$<t.coordinates.length;$++){var ee=new d.default({coordinates:t.coordinates[$]}),te=_.touches(e,ee);if(te)r=te;else if(_.contains(e,ee)){r=!1;break}}break;case h.default.lineString:case h.default.multiLineString:case h.default.polygon:r=_.touches(t,e);break;case h.default.multiPolygon:for(var re=0;re<t.coordinates.length;re++){o=new s.default({coordinates:t.coordinates[re]});var ne=_.touches(e,o);if(ne)r=ne;else if(_.intersects(e,o)){r=!1;break}}break;case h.default.extent:var ie=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=_.touches(e,ie);break;case h.default.circle:for(var oe=0;oe<e.coordinates.length;oe++){n=new s.default({coordinates:e.coordinates[oe]});var ae=_.touches(n,t);if(ae)r=ae;else if(_.intersects(n,t)){r=!1;break}}}break;case h.default.extent:var se=new s.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});r=_.touches(se,t);break;case h.default.circle:switch(t.type){case h.default.point:var ue=new u.default({coordinates:[e.center,t.coordinates]}),le=_.planarLength(ue);Math.round(le)===e.radius&&(r=!0);break;case h.default.multiPoint:for(var ce=0;ce<t.coordinates.length;ce++){var fe=new d.default({coordinates:t.coordinates[ce]}),he=_.touches(e,fe);if(he)r=he;else{var pe=new u.default({coordinates:[e.center,fe.coordinates]}),de=_.planarLength(pe);if(Math.round(de)<e.radius){r=!1;break}}}break;case h.default.lineString:case h.default.multiLineString:case h.default.polygon:case h.default.multiPolygon:case h.default.extent:r=_.touches(t,e);break;case h.default.circle:var ye=new u.default({coordinates:[e.center,t.center]}),ge=_.planarLength(ye);Math.round(ge)===e.radius+t.radius&&(r=!0)}}return r}},_.cut=function(e,t){if((0,i.isNull)(e)&&i.Log.error("geometry不能为空!"),(0,i.isNull)(t)&&i.Log.error("cutter不能为空!"),e instanceof u.default||e instanceof v.default||e instanceof s.default||e instanceof l.default||i.Log.error("geometry类型错误!"),t instanceof u.default||i.Log.error("cutter类型错误!"),e.spatialReference.equals(t.spatialReference)||i.Log.error("geometry对象和cutter对象的坐标系不同!"),!_.intersects(e,t))return[];var r=[],n=void 0,o=void 0;switch(e.type){case h.default.lineString:r=_._lineCutLine(e,t);break;case h.default.multiLineString:for(var a=0;a<e.coordinates.length;a++){var c=new u.default({coordinates:e.coordinates[a],spatialReference:f.default.fromJSON(e.spatialReference)});r=r.concat(_._lineCutLine(c,t))}break;case h.default.polygon:if(n=void 0,e.spatialReference.isGeographic)n=e,o=t;else{var p=_._polygonAndCutterToWGS84(e,t);n=p.polygon,o=p.cutter}if(r=_._lineCutPolygon(n,o),!e.spatialReference.isGeographic)for(var d=0;d<r.length;d++)r[d]=_._geometryToOrigin(r[d]);break;case h.default.multiPolygon:if(n=void 0,e.spatialReference.isGeographic)n=e,o=t;else{var y=_._polygonAndCutterToWGS84(e,t);n=y.polygon,o=y.cutter}for(var g=0;g<n.coordinates.length;g++){var m=new s.default({coordinates:n.coordinates[g],spatialReference:f.default.fromJSON(e.spatialReference)});r=r.concat(_._lineCutPolygon(m,o))}if(!e.spatialReference.isGeographic)for(var b=0;b<r.length;b++)r[b]=_._geometryToOrigin(r[b])}return r},_._polygonAndCutterToWGS84=function(e,t){return{polygon:e.spatialReference.isGeographic?e:_._geometryToWGS84(e),cutter:t.spatialReference.isGeographic?t:_._geometryToWGS84(t)}},_._lineCutLine=function(e,t){for(var r=[],i=n.lineString(e.coordinates),o=n.lineString(t.coordinates),a=n.lineSplit(i,o),s=0;s<a.features.length;s++)r.push(new u.default({coordinates:a.features[s].geometry.coordinates,spatialReference:f.default.fromJSON(e.spatialReference)}));return r},_._lineCutPolygon=function(e,t){var r=[],i=new u.default({coordinates:e.coordinates[0]}),o=n.lineString(i.coordinates),a=n.lineString(t.coordinates);if(n.booleanDisjoint(a,i))return e.clone();for(var l=[],c=0;c<t.coordinates.length-1;c++){var p=n.lineString([t.coordinates[c],t.coordinates[c+1]]);n.booleanDisjoint(p,i)||l.push(t.coordinates[c],t.coordinates[c+1])}a=n.lineString(l),a=n.cleanCoords(a);for(var d=n.lineSplit(o,a),y=n.lineSplit(a,o),g=[],v=new s.default({coordinates:[e.coordinates[0]]}),m=0;m<y.features.length;m++){var b=new u.default({coordinates:y.features[m].geometry.coordinates});_.contains(v,b)&&g.push(y.features[m])}d.features=d.features.concat(g);for(var S=0;S<d.features.length;S++)for(var x=0;x<d.features[S].geometry.coordinates.length;x++)d.features[S].geometry.coordinates[x][0]=d.features[S].geometry.coordinates[x][0].toFixed(7)/1,d.features[S].geometry.coordinates[x][1]=d.features[S].geometry.coordinates[x][1].toFixed(7)/1;for(var w=n.polygonize(d),O=0;O<w.features.length;O++){var E=new s.default({coordinates:w.features[O].geometry.coordinates,spatialReference:f.default.fromJSON(e.spatialReference)});r.push(E)}if(e.coordinates.length>1)for(var P=0;P<r.length;P++)for(var k=1;k<e.coordinates.length;k++){var T=new s.default({coordinates:[e.coordinates[k]]}),I=n.polygon(T.coordinates),M=n.polygon(r[P].coordinates);n.booleanDisjoint(I,M)||(r[P]=_.difference(r[P],T))}for(var L=[],C=0;C<r.length;C++)if(r[C].type===h.default.multiPolygon)for(var N=0;N<r[C].coordinates.length;N++)L.push(new s.default({coordinates:r[C].coordinates[N],spatialReference:f.default.fromJSON(e.spatialReference)}));else L.push(r[C]);return r=L},_._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]},_._coordinateToOrigin=function(e){return[20037508.34*e[0]/180,20037508.34*e[1]/180]},_._geometryToWGS84=function(e){var t=void 0;switch(e.type){case h.default.polygon:t=s.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]=_._coordinateToWGS84(t.coordinates[r][n]);break;case h.default.multiPolygon:t=l.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]=_._coordinateToWGS84(t.coordinates[i][o][a]);break;case h.default.lineString:t=u.default.fromJSON(e.toJSON());for(var c=0;c<t.coordinates.length;c++)t.coordinates[c]=_._coordinateToWGS84(t.coordinates[c])}return t},_._geometryToOrigin=function(e){var t=void 0;switch(e.type){case h.default.polygon:t=s.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]=_._coordinateToOrigin(t.coordinates[r][n]);break;case h.default.lineString:t=u.default.fromJSON(e.toJSON());for(var i=0;i<t.coordinates.length;i++)t.coordinates[i]=_._coordinateToOrigin(t.coordinates[i])}return t},_.isSimple=function(e){(0,i.isNull)(e)&&i.Log.error("geometry不能为空!"),e instanceof u.default||e instanceof v.default||e instanceof s.default||e instanceof l.default||i.Log.error("geometry为不支持的类型!");var t=!0;switch(e.type){case h.default.lineString:t=_._lineIsSimple(e);break;case h.default.multiLineString:t=_._multiLineIsSimple(e);break;case h.default.polygon:t=_._polygonIsSimple(e);break;case h.default.multiPolygon:t=_._multiPolygonIsSimple(e)}return t},_._lineIsSimple=function(e){var t=!0;if(e.coordinates.length>2){for(var r=[],i=0;i<e.coordinates.length-1;i++)r.push(new u.default({coordinates:[e.coordinates[i],e.coordinates[i+1]]}));for(var o=0;o<r.length-1;o++)for(var a=o+1;a<r.length;a++)if(_.contains(r[o],r[a])||_.contains(r[a],r[o])){t=!1;break}for(var s=0;s<r.length-2;s++)for(var l=s+2;l<r.length;l++)if(_.intersects(r[s],r[l])){var c=n.multiPoint([r[s].coordinates[0],r[s].coordinates[1],r[l].coordinates[0],r[l].coordinates[1]]);if(3!==(c=n.cleanCoords(c)).geometry.coordinates.length){t=!1;break}t=!0}for(var f=0;f<e.coordinates.length;f++){for(var h=!1,p=f+1;p<e.coordinates.length;p++)if(_._equalPoints(e.coordinates[f],e.coordinates[p])){h=!0;break}if(h){t=!1;break}}return t}return 2===e.coordinates.length?_._equalPoints(e.coordinates[0],e.coordinates[1]):t},_._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])},_._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 u.default({coordinates:[e.coordinates[r][n],e.coordinates[r][n+1]]}));return t},_._multiLineIsSimple=function(e){var t=!0;if(1===e.coordinates.length){var r=new u.default({coordinates:e.coordinates[0]});t=_._lineIsSimple(r)}else{for(var n=0;n<e.coordinates.length;n++){var i=new u.default({coordinates:e.coordinates[n]});if(_._lineIsSimple(i)){t=!1;break}}if(t)for(var o=0;o<e.coordinates.length-1;o++){var a=new u.default({coordinates:e.coordinates[o]}),s=new u.default({coordinates:e.coordinates[o+1]});if(_.intersects(a,s)){t=!1;break}}}return t},_._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 v.default({coordinates:t}),i=_._multiLineIsSimple(n),o=!1,a=0;a<r.length;a++){for(var s=new u.default({coordinates:r[a][r[a].length-1]}),l=0;l<r[a].length-1;l++)if(o=_.intersects(new u.default({coordinates:r[a][l]}),s)){i=!1;break}if(o)break}return i},_._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 v.default({coordinates:t});return _._multiLineIsSimple(r)},_.getPositionsFromArc=function(e){var t=[(e=(0,i.defaultValue)(e,{})).point1,e.point2,e.point3],r=_.getCenter(t[0],t[1],t[2]);return t=_._tranArcToPath({center:r,pointBegan:t[0],pointEnd:t[2],spatialReference:e.spatialReference,numberOfPoints:e.numberOfPoints})},_._tranArcToPath=function(e){var t=(0,i.defaultValue)(e.center,void 0);t=JSON.parse(JSON.stringify(t));var r=(0,i.defaultValue)(e.pointBegan,void 0);r=JSON.parse(JSON.stringify(r));var n=(0,i.defaultValue)(e.pointEnd,void 0);n=JSON.parse(JSON.stringify(n));var o=(0,i.defaultValue)(e.numberOfPoints,360),a=(0,i.defaultValue)(e.spatialReference,new f.default({wkid:4326}));if(!(a=f.default.fromJSON(a)).isGeographic){var s=new f.default({wkid:4326});t=c.default.project(new d.default({coordinates:t,spatialReference:a}),s).coordinates,r=c.default.project(new d.default({coordinates:r,spatialReference:a}),s).coordinates,n=c.default.project(new d.default({coordinates:n,spatialReference:a}),s).coordinates}var l=new u.default({coordinates:[t,r]}),h=_.planarLength(l),p=_.getAngleFromPoints(r,t,[t[0]+10,t[1]]),y=_.getAngleFromPoints(n,t,[t[0]+10,t[1]])-p;o*=y/360,o=Math.abs(o);var g=Math.PI*(y/180)/o;p=Math.PI*(p/180);for(var v=[r],m=0;m<o-1;m++){p+=g;var b=[t[0]+h*Math.cos(p),t[1]+h*Math.sin(p)];v.push(b)}return v.push(n),this.hasZ&&v.map(function(e){return[e[0],e[1],t[2]]}),v},_.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,f=-(0*i-0*o-0*i+0*a+0*o-0*a),h=i*u-o*s-i*l+a*s+o*l-a*u,p=-(i*u*0-i*l*0-o*s*0+o*l*0+a*s*0-a*u*0),d=2*(o-i),y=2*(u-s),g=i*i+s*s+0-o*o-u*u-0,v=2*(a-i),m=2*(l-s),_=i*i+s*s+0-a*a-l*l-0,b=-(0*f*_-0*f*g-y*h*_+0*y*p+m*h*g-0*m*p)/(c*y*0-c*m*0-d*f*0+d*m*h+v*f*0-v*y*h),S=(0*c*_-0*c*g-d*h*_+0*d*p+v*h*g-0*v*p)/(c*y*0-c*m*0-d*f*0+d*m*h+v*f*0-v*y*h);return n?[b,S,e[2]]:[b,S]},_._getArcFromPath=function(e){e=(0,i.defaultValue)(e,{});var t=(0,i.defaultValue)(e.coordinates,[]),r=(0,i.defaultValue)(e.arcInfo,[]),n=(0,i.defaultValue)(e.spatialReference,new f.default({wkid:4326})),o=(0,i.defaultValue)(e.numberOfPoints,360),a=[],s=t.slice(0,r[0].centerPointIndex-1);a=a.concat(s);var u=Number(r[0].centerPointIndex),l=[t[u-1],t[u],t[u+1]],c=_.getPositionsFromArc({point1:l[0],point2:l[1],point3:l[2],spatialReference:n,numberOfPoints:o});a=a.concat(c);for(var h=1;h<r.length;h++)if(r[h].hasOwnProperty("centerPointIndex")){var p=t.slice(r[h-1].centerPointIndex+2,r[h].centerPointIndex+1);a=a.concat(p);var d=Number(r[h].centerPointIndex),y=[t[d-1],t[d],t[d+1]],g=_.getPositionsFromArc({point1:y[0],point2:y[1],point3:y[2],spatialReference:n,numberOfPoints:o});a=a.concat(g)}var v=t.slice(r[r.length-1].centerPointIndex+2,t.length);return a=a.concat(v)},_._getArcInfos=function(e,t,r){var n={};switch(r){case h.default.multiLineString:case h.default.polygon:for(var i=0;i<t.length;i++){n[i]=[];for(var o=0;o<e.length;o++){(r===h.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 h.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]=_._getArcInfos(n[a],t[a],h.default.polygon)}return n;default:return n}},_.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},_.getArcFromGeometry=function(e){e=(0,i.defaultValue)(e,{});var t=(0,i.defaultValue)(e.geometry,void 0),r=(0,i.defaultValue)(e.numberOfPoints,360),n=(0,i.defaultValue)(e.arcInfo,[]);if(!t)return t;if(!(t instanceof a.default))return i.Log.error("geometry不是基础几何类型!"),t;if(!n)return t;if(!(n instanceof Array))return t;if(n.length<1)return t;var o=t.coordinates,c=t.spatialReference,p=void 0,d=void 0;switch(t.type){case h.default.lineString:return p=_._getArcFromPath({coordinates:o,arcInfo:n,spatialReference:c,numberOfPoints:r}),new u.default({coordinates:p,spatialReference:f.default.fromJSON(t.spatialReference)});case h.default.multiLineString:return d=_._getArcInfos(n,o,h.default.multiLineString),p=[],Object.keys(d).forEach(function(e){p.push(_._getArcFromPath({coordinates:o[e],arcInfo:d[e],spatialReference:c,numberOfPoints:r}))}),new v.default({coordinates:p,spatialReference:c});case h.default.polygon:return d=_._getArcInfos(n,o,h.default.polygon),p=[],Object.keys(d).forEach(function(e){var t=o[e].slice(0,o[e].length),n=_._getArcFromPath({coordinates:t,arcInfo:d[e],spatialReference:c,numberOfPoints:r});n.push(n[0]),p.push(n)}),new s.default({coordinates:p,spatialReference:c});case h.default.multiPolygon:d=_._getArcInfos(n,o,h.default.multiPolygon),p=[];for(var y=function(e){var t=[];Object.keys(d[e]).forEach(function(n){var i=o[e][n].slice(0,o[e][n].length),a=_._getArcFromPath({coordinates:i,arcInfo:d[e][n],spatialReference:c,numberOfPoints:r});a.push(a[0]),t.push(a)}),p.push(t)},g=0;g<o.length;g++)y(g);return new l.default({coordinates:p,spatialReference:c});default:return t}},_._getTurfMultiLineStringFromLines=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].coordinates);return n.multiLineString(t)},_._initIntersects=function(e){for(var t={},r=0;r<e.length;r++)e[r].id=r,t[r]={intersectPoints:[],intersectLines:[]};return t},_._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]},_._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]},_._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]},_._singRingSimplify=function(e){for(var t=_._getLinesFromPolygon(e),r=_._initIntersects(t),i=0;i<t.length-1;i++)for(var o=i+1;o<t.length;o++){var a=_.intersect(t[i],t[o]);a.point&&(_._pointOnLineEndPoint(a.point,t[i])||_._pointOnLineEndPoint(a.point,t[o])||(r[i].intersectPoints.push(a.point),r[o].intersectPoints.push(a.point))),a.lineString&&(r[i].intersectLines.push(a.lineString),r[o].intersectLines.push(a.lineString))}for(var s=[],u=0;u<t.length;u++){for(var l=!1,c=0;c<r[u].intersectLines.length;c++){if(_._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 d.default({coordinates:r[u].intersectLines[c].coordinates[0]}),new d.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 d.default({coordinates:r[u].intersectLines[c].coordinates[1]}),new d.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 d.default({coordinates:t[u].coordinates[0]})),r[u].intersectPoints.push(new d.default({coordinates:t[u].coordinates[1]}));for(var f=_.union(r[u].intersectPoints),h=0;h<f.coordinates.length-1;h++)s.push(n.lineString([f.coordinates[h],f.coordinates[h+1]]))}}for(var p=0;p<s.length;p++)for(var y=p+1;y<s.length;y++)_._lineEqualLineTurf(s[p],s[y])&&(s.splice(y,1),y--);var g=n.featureCollection(s);return n.polygonize(g)},_._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++)_.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++)_.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 f=_._getPolygonsFromRings(s,[]);o=o.concat(f)}}return t=t.concat(o)},_._singlePolygonSimplify=function(e){for(var t={largerInnerPolygon:[],intersectInnerPolygon:[],smallInnerPolygon:[]},r=new s.default({coordinates:[e.coordinates[0]],spatialReference:f.default.fromJSON(e.spatialReference)}),n=[],i=1;i<e.coordinates.length;i++){var o=new s.default({coordinates:[e.coordinates[i]],spatialReference:f.default.fromJSON(e.spatialReference)});n.push(o)}for(var u=0;u<n.length-1;u++)for(var c=u+1;c<n.length;c++){var h=_.intersect(n[u],n[c]);(h instanceof s.default||h instanceof l.default)&&(n[u]=_.difference(n[u],h),n[c]=_.difference(n[c],h))}for(var p=0;p<n.length;p++){var d=n[p];if(_.contains(r,d)){var y=_.difference(r,d),g=JSON.parse(JSON.stringify(r.coordinates[0])),v=JSON.parse(JSON.stringify(y.coordinates[0]));g.sort(function(e,t){return e[0]-t[0]}),g.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]}),JSON.stringify(g)===JSON.stringify(v)?t.smallInnerPolygon.push(d):t.intersectInnerPolygon.push(d)}else if(_.contains(d,r)){var m=r.toJSON(),b=d.toJSON();r=a.default.fromJSON(b),d=a.default.fromJSON(m),t.smallInnerPolygon.push(d)}else _.intersects(r,d)?t.intersectInnerPolygon.push(d):_.disjoint(r,d)&&t.largerInnerPolygon.push(d)}for(var S=[],x=0;x<t.intersectInnerPolygon.length;x++){var w=_.intersect(r,t.intersectInnerPolygon[x]);if(w instanceof s.default||w instanceof l.default){r=_.difference(r,w);var O=_.difference(t.intersectInnerPolygon[x],w);S.push(O)}}for(var E=_._singRingSimplify(r),P=0;P<E.features.length;P++)S.push(new s.default({coordinates:E.features[P].geometry.coordinates}));if(t.largerInnerPolygon.length>0)for(var k=0;k<t.largerInnerPolygon.length;k++)S.push(t.largerInnerPolygon[k]);for(var T=[],I=0;I<t.smallInnerPolygon.length;I++)for(var M=_._singRingSimplify(t.smallInnerPolygon[I]),L=0;L<M.features.length;L++){var C=new s.default({coordinates:M.features[L].geometry.coordinates});C.isPicked=!1,T.push(C)}!(T=_.union(T))||T instanceof Array||(T=[T]);for(var N=0;N<S.length;N++)for(var R=0;R<T.length;R++)!T[R].isPicked&&S[N]&&T[R]&&_.contains(S[N],T[R])&&(S[N].coordinates.push(T[R].coordinates[0]),T[R].isPicked=!0);return S},_.simplify=function(e){if((0,i.isNull)(e)&&i.Log.error("geometry不能为空!"),e.type===h.default.point||e.type===h.default.multiPoint||e.type===h.default.extent||e.type===h.default.circle)return e;switch(e.type){case h.default.polygon:case h.default.multiPolygon:var t=[],r=void 0;if(e.type===h.default.polygon){r=JSON.parse(JSON.stringify(e.coordinates));for(var n=0;n<r.length;n++)t.push(new s.default({coordinates:[r[n]],spatialReference:f.default.fromJSON(e.spatialReference)}))}else for(var o=JSON.parse(JSON.stringify(e.coordinates)),a=0;a<o.length;a++)for(var u=0;u<o[a].length;u++)t.push(new s.default({coordinates:[o[a][u]],spatialReference:f.default.fromJSON(e.spatialReference)}));for(var c=0;c<t.length;c++)t[c].area=_.planarArea(t[c]);t.sort(function(e,t){return t.area-e.area});for(var p=_._getPolygonsFromRings(t,[]),d=0;d<p.length-1;d++)for(var y=d+1;y<p.length;y++)if(!_.contains(p[d],p[y])){var g=_.intersect(p[d],p[y]);g&&(p[d].coordinates=_.difference(p[d],g).coordinates,p[y].coordinates=_.difference(p[y],g).coordinates)}for(var v=[],m=0;m<p.length;m++){for(var b=0;b<p[m].innerPolygons.length;b++)p[m].coordinates.push(p[m].innerPolygons[b].coordinates[0]);var S=_._singlePolygonSimplify(p[m]);v=v.concat(S)}if(1===v.length)return v[0];if(v.length>1){for(var x=[],w=0;w<v.length;w++)v[w]&&x.push(v[w].coordinates);return new l.default({coordinates:x,spatialReference:f.default.fromJSON(e.spatialReference)})}break;case h.default.lineString:}},_.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},_.getCenterOID=function(e){var t=e.type;if(t===h.default.circle)return new d.default({coordinates:[e.center[0],e.center[1],0]});if(t===h.default.extent)return new d.default({coordinates:[(e.xmin+e.xmax)/2,(e.ymin+e.ymax)/2,0]});var r=[],i=void 0;switch(t){case h.default.point:return d.default.fromJSON(e.toJSON());case h.default.multiPoint:case h.default.lineString:i=e.coordinates;break;case h.default.polygon:i=e.coordinates[0];break;default:return}for(var o=0;o<i.length;o++)r.push(n.point(i[o]));var a=n.featureCollection(r),s=n.center(a);return new d.default({coordinates:[s.geometry.coordinates[0],s.geometry.coordinates[1],0]})},t.default=_},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(17),i=r(40),o=r(450),a=function(e){return e&&e.__esModule?e:{default:e}}(r(67));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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(0),a=r(1);var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,o.defaultValue)(e,{}),r.id=(0,o.defaultValue)(e.id,(0,o.getGUID)()),r.layer=(0,o.defaultValue)(e.layer,void 0),r.sublayers=(0,o.defaultValue)(e.sublayers,new i.Collection),r.title=(0,o.defaultValue)(e.title||e.layerName,void 0),r.extensionOptions=(0,o.defaultValue)(e.extensionOptions,{}),r.extendProps=(0,o.defaultValue)(e.extendProps,{}),r._visible=(0,o.defaultValue)(e.visible,!0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Evented),n(t,[{key:"toJSON",value:function(){var e=[];return this.sublayers.forEach(function(r){e.push((0,o.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}();Object.defineProperties(s.prototype,{visible:{get:function(){return this._visible},set:function(e){if(this._visible=e,this.layer&&this.layer.refresh)switch(this.layer.type){case a.LayerType.wms:this.layer.setSubLayer(this)}}}}),t.default=s},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(28)),i=g(r(404)),o=g(r(411)),a=g(r(412)),s=g(r(413)),u=g(r(416)),l=g(r(417)),c=g(r(418)),f=r(1),h=r(0),p=r(419),d=g(r(166)),y=r(50);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,h.defaultValue)(e,{})).type){case f.RendererType.simple:return new a.default(e);case f.RendererType.uniqueValue:return new i.default(e);case f.RendererType.classBreak:return new o.default(e);case f.RendererType.cluster:return new s.default(e);case f.RendererType.random:return new u.default(e);case f.RendererType.rank:return new l.default(e);case f.RendererType.heatmap:return new c.default(e);default:return new a.default(e)}},t.getIGSDynamicLayer=p.getIGSDynamicLayer,t.HeatmapColorStop=d.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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(69)),a=r(3);var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.dpi=(0,i.defaultValue)(t.dpi,-1),this.format=(0,i.defaultValue)(t.format,"png"),this.origin=t.origin?a.Point.fromJSON(t.origin):void 0;for(var r=[],n=(0,i.defaultValue)(t.lods,[]),s=0;s<n.length;s++)r.push(o.default.fromJSON(n[s]));this.lods=r,this.size=t.size,this.spatialReference=t.spatialReference}return n(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=s},function(e,t,r){"use strict";r.r(t),t.default=function(e){return e<0?-1:1}},function(e,t,r){"use strict";r.r(t);var n=r(4),i=r(42);t.default=function(e){return Math.abs(e)<n.HALF_PI?e:e-Object(i.default)(e)*Math.PI}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=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(246)),s=r(21);var u=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._createEventedProxy()}return i(e,[{key:"_createEventedProxy",value:function(){this._decorateParents=[],this._decorateProperties={};var e=this;return new Proxy(this,{set:function(t,r,n,i){if(e._decorateProperties[r]){var o=e._decorateProperties[r],a=o.type,s=o.createInstance;a&&n instanceof a||(n=s(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 u={target:t,key:r,value:n,oldValue:Reflect.get(t,r),receiver:i},l=Reflect.set(t,r,n,i);return/^_[^_].*/.test(r)?l:(e._decorateEventFire(e,e,[],"set",u,u),l)},get:function(e,t,r){return Reflect.get(e,t,r)}})}},{key:"_decorateEventFire",value:function(e,t,r,n,i,o){for(var a=i.key,u=i.value,l=i.oldValue,c=[a],f=0;f<r.length;f++)c.push(r[f]);var h={key:a,value:u,oldValue:l},p=new s.ProxyEvent({eventName:n,target:e,eventData:h,eventPath:c,sourceTarget:t,sourceEventData:o});e.fire(n,p,!1);var d=e._decorateParents||[];if(0!==d.length)for(var y=0;y<d.length;y++){var g=d[y],v=g.instance,m={key:g.key,value:e,oldValue:e};this._decorateEventFire(v,t,c,n,m,o)}}},{key:"_decorate",value:function(e,t,r,n){n=(0,o.defaultValue)(n,function(e){return e});var i=t;return r&&t instanceof r||(i=n((0,o.defaultValue)(t,{}))),this._decorateProperties[e]={type:r,createInstance:n},i}},{key:"on",value:function(e,t,r){if("object"===(void 0===e?"undefined":n(e)))for(var i in e)this._on(i,e[i],t);else for(var o=0,s=(e=a.splitWords(e)).length;o<s;o++)this._on(e[o],t,r);return this}},{key:"off",value:function(e,t,r){if(e)if("object"===(void 0===e?"undefined":n(e)))for(var i in e)this._off(i,e[i],t);else for(var o=0,s=(e=a.splitWords(e)).length;o<s;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 s=n[i];if(s.ctx===r&&s.fn===t)return s.fn=a.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=a.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":n(e))){for(var o in e)this.once(o,e[o],t);return this}var s=a.bind(function(){i.off(e,t,r).off(e,s,r)},this);return this.on(e,t,r).on(e,s,r)}},{key:"addEventParent",value:function(e){return this._eventParents=this._eventParents||{},this._eventParents[a.stamp(e)]=e,this}},{key:"removeEventParent",value:function(e){return this._eventParents&&delete this._eventParents[a.stamp(e)],this}},{key:"_propagateEvent",value:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,a.extend({layer:e.target,propagatedFrom:e.target},e),!0)}}]),e}();t.default=u,u.addEventListener=u.on,u.removeEventListener=u.clearAllEventListeners=u.off,u.addOneTimeEventListener=u.once,u.fireEvent=u.fire,u.hasEventListeners=u.listens},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(99)),i=f(r(79)),o=r(0),a=r(3),s=f(r(62)),u=f(r(135)),l=f(r(136)),c=f(r(85));function f(e){return e&&e.__esModule?e:{default:e}}var h=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};h.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},h.projectToGeographyPoints=function(e){e=(0,o.defaultValue)(e,{});var t=(0,o.defaultValue)(e.points,[]),r=(0,o.defaultValue)(e.wkid,-1),i=(0,o.defaultValue)(e.proj4Defs,void 0),a=[],s=void 0;if(i)s=i;else{var u=h.getEPSGByWKID(r);u&&(s=u.strProject)}if(s)for(var l=0;l<t.length;l++)a.push((0,n.default)(s,"+proj=longlat +datum=WGS84 +no_defs +type=crs",t[l]));return a},h.projectPoints=function(e){e=(0,o.defaultValue)(e,{});var t=(0,o.defaultValue)(e.points,[]),r=(0,o.defaultValue)(e.originWKID,-1),i=(0,o.defaultValue)(e.originDefs,void 0),a=(0,o.defaultValue)(e.targetWKID,-1),s=(0,o.defaultValue)(e.targetDefs,void 0),u=void 0,l=void 0,c=[];try{if(i)u=i;else{var f=h.getEPSGByWKID(r);f&&(u=f.strProject)}if(s)l=s;else{var p=h.getEPSGByWKID(a);p&&(l=p.strProject)}for(var d=[],y=[],g=0;g<t.length;g++)d=t[g],y=u&&l?(0,n.default)(u,l,d):u&&!l?h._toCustomWkidPoint(u,a,d):!u&&l?h._fromCustomWkidPoint(r,l,d):h._CustomWkidToCustomWkidPoint(r,a,d),c.push(y);return c}catch(e){o.Log.error("proj4投影超限")}return c},h.getEPSGByWKID=function(e){for(var t=void 0,r=0;r<i.default.length;r++)if(String(i.default[r].id)===String(e)){t=i.default[r];break}return t||o.Log.info("epsg未定义wkid为"+e+"的坐标系信息"),t},h.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 s.default.point:return r=[e.coordinates],n.points=r,r=h.projectPoints(n),new a.Point({coordinates:r[0],spatialReference:new a.SpatialReference(t)});case s.default.multiPoint:return r=e.coordinates,n.points=r,r=h.projectPoints(n),new a.MultiPoint({coordinates:r,spatialReference:new a.SpatialReference(t)});case s.default.lineString:return r=e.coordinates,n.points=r,r=h.projectPoints(n),new a.LineString({coordinates:r,spatialReference:new a.SpatialReference(t)});case s.default.multiLineString:r=e.coordinates;for(var i=[],o=0;o<r.length;o++)n.points=r[o],i.push(h.projectPoints(n));return new a.MultiLineString({coordinates:i,spatialReference:new a.SpatialReference(t)});case s.default.polygon:r=e.coordinates;for(var u=[],l=0;l<r.length;l++)n.points=r[l],u.push(h.projectPoints(n));return new a.Polygon({coordinates:u,spatialReference:new a.SpatialReference(t)});case s.default.multiPolygon:r=e.coordinates;for(var c=[],f=0;f<r.length;f++){for(var p=[],d=0;d<r[f].length;d++)n.points=r[f][d],p.push(h.projectPoints(n));c.push(p)}return new a.MultiPolygon({coordinates:c,spatialReference:new a.SpatialReference(t)});case s.default.circle:return r=[e.clone().center],n.points=r,r=h.projectPoints(n),new a.Circle({center:r[0],radius:e.radius,radiusUnit:e.radiusUnit,spatialReference:new a.SpatialReference(t)});case s.default.extent:return r=[[e.xmin,e.ymin,e.zmin],[e.xmax,e.ymax,e.zmax]],n.points=r,r=h.projectPoints(n),new a.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 a.SpatialReference(t)});default:return e}},h.project=function(e,t){if(e instanceof Array){for(var r=[],n=0;n<e.length;n++)r.push(h.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 h.projectGeometry(e,t)},h.isCustomWKID=function(e){return e===c.default.gcj02ll||e===c.default.gcj02mc||e===c.default.bd09ll||e===c.default.bd09mc},h._toCustomWkidPoint=function(e,t,r){var i=void 0,a=h.getEPSGByWKID(4326).strProject,s=(0,n.default)(e,a,r);if(t===c.default.bd09ll)i=u.default.wgs84tobd09(s[0],s[1]);else if(t===c.default.bd09mc){var f=u.default.wgs84tobd09(s[0],s[1]);f[0]=Math.min(f[0],180),f[0]=Math.max(f[0],-180),f[1]=Math.min(f[1],74.000022),f[1]=Math.max(f[1],-71.988531);var p=(new l.default).convertLL2MC({lng:f[0],lat:f[1]});i=[p.lng,p.lat]}else if(t===c.default.gcj02ll)i=u.default.wgs84togcj02(s[0],s[1]);else if(t===c.default.gcj02mc){var d=u.default.wgs84togcj02(s[0],s[1]);i=(0,n.default)(a,h.getEPSGByWKID(3857).strProject,d)}else o.Log.error("wkid为"+t+"的投影方式未定义!");return i},h._fromCustomWkidPoint=function(e,t,r){var i=void 0,a=h.getEPSGByWKID(4326).strProject;if(e===c.default.bd09ll){var s=u.default.bd09towgs84(r[0],r[1]);i=(0,n.default)(a,t,s)}else if(e===c.default.bd09mc){var f=(new l.default).convertMC2LL({lng:r[0],lat:r[1]});i=u.default.bd09towgs84(f.lng,f.lat)}else if(e===c.default.gcj02ll){var p=u.default.gcj02towgs84(r[0],r[1]);i=(0,n.default)(a,t,p)}else if(e===c.default.gcj02mc){var d=(0,n.default)(h.getEPSGByWKID(3857).strProject,a,r),y=u.default.gcj02towgs84(d[0],d[1]);i=(0,n.default)(h.getEPSGByWKID(4326).strProject,t,y)}else o.Log.error("wkid为"+e+"的投影方式未定义!");return i},h._CustomWkidToCustomWkidPoint=function(e,t,r){var n=void 0,i=h.getEPSGByWKID(4326).strProject;if(e===c.default.bd09ll){var a=h._fromCustomWkidPoint(e,i,r);n=h._toCustomWkidPoint(i,t,a)}else o.Log.error("wkid为"+e+"的投影方式未定义!");return n},h.getProj=function(e,t){return n.default.defs(e,t),(0,n.default)(e)},t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=u(r(77)),a=u(r(31)),s=r(122);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));e=(0,i.defaultValue)(e,{}),r.styleOrigin=void 0,r.symbolLayers=new o.default;var n=(0,i.defaultValue)(e.symbolLayers,[]);if(n instanceof Array&&n.length>0)for(var a=0;a<n.length;a++)r.symbolLayers.add((0,s.createSymbol3DLayer)(n[a]));return r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=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(15)),o=f(r(12)),a=r(0),s=r(1),u=f(r(16)),l=f(r(33)),c=r(23);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,a.defaultValue)(e,{}),r.coordinates=(0,a.defaultValue)(e.coordinates,[]),r.type=s.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 o=0;o<i[i.length-1].length;o++)if(i[i.length-1][o]!==i[0][o])throw new Error("第一个位置和最后一个位置不相等")}return 3===r.coordinates[0][0].length&&(r.hasZ=!0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"addRing",value:function(e){if(!Array.isArray(e))throw new Error("传入参数错误");var t=[];return e.forEach(function(e){t.push(u.default.toCoordinates(e))}),this.coordinates.push(t),this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),this}},{key:"removeRing",value:function(e){if(e=Number(e),!this._isValidate(e,0))return null;var t=JSON.parse(JSON.stringify(this._cloneCoordinates()[e]));this.coordinates.splice(e,1),this.coordinates=JSON.parse(JSON.stringify(this.coordinates));for(var r=[],n=0;n<t.length;n++){var i=new u.default({coordinates:t[n]});r.push(i)}return r}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse(JSON.stringify(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=i.polygon(this._cloneCoordinates()),r=i.point(u.default.toCoordinates(e));return i.booleanPointInPolygon(r,t)}},{key:"getPoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this._cloneCoordinates()[e];return new u.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(JSON.stringify(this.coordinates)),this}},{key:"removePoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this.clone(),n=r.coordinates[e],i=new u.default({coordinates:n[t]});return Array.isArray(n)&&n.splice(t,1),this.coordinates=r.coordinates,this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),i}},{key:"setPoint",value:function(e,t,r){if(!this._isValidate(e,t))return this;r instanceof u.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(JSON.stringify(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=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 s.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=!1,r=[];if(!(e instanceof Array))throw new Error("ring不是数组类型!");for(var n=0;n<e.length;n++)if(e[n]instanceof u.default)r.push(e[n].coordinates);else{if(!(e[n]instanceof Array&&e[n].length>=2))throw new Error("ring中的点不是数组或Point类型!");r.push(e[n])}var o=i.lineString(r);return t=i.booleanClockwise(o),t}},{key:"_isValidate",value:function(e,t){var r=this.coordinates.length;if(!(0,a.isNumber)(e)||e<0||e>=r)return!1;var n=this.coordinates[e].length;return!(!(0,a.isNumber)(t)||t<0||t>=n)}},{key:"_cloneCoordinates",value:function(){return JSON.parse(JSON.stringify(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,c.calcExtent)(e,t,s.GeometryType.polygon,this.spatialReference)}},{key:"_isSelfIntersecting",value:function(){var e=i.polygon(this.coordinates);return i.kinks(e).features.length>0}},{key:"_setCentroid",value:function(){var e=i.polygon(this.coordinates),t=i.centroid(e);if(this.hasZ){for(var r=0,n=0,o=0;o<this.coordinates.length;o++){r+=this.coordinates[o].length;for(var a=0;a<this.coordinates[o].length;a++)n+=this.coordinates[o][a][2]}return n/=r,new u.default({coordinates:[t.geometry.coordinates[0],t.geometry.coordinates[1],n],spatialReference:this.spatialReference})}return new u.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 l.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,a.defaultValue)(e,{}))}}]),t}();Object.defineProperties(h.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=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEncoded=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=r(3),i=function(e){return e&&e.__esModule?e:{default:e}}(r(63)),o=r(0),a=r(2),s=r(25);function u(e,t,r){for(var i="",a=function(a){var s=(0,o.defaultValue)(t[e[a]],r[e[a]].default);if(void 0!==s){var u="";if((0,o.isNull)(r[e[a]].process))switch(r[e[a]].type){case"String":case"Number":case"Boolean":i+="&"+(r[e[a]].alias||e[a])+"="+encodeURIComponent(s);break;case"Geometry":case"Point":case"MultiPoint":case"Extent":case"Circle":case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":i+="&"+e[a]+"="+encodeURIComponent(s.toString())+"&geometryType="+encodeURIComponent(s.getIGSType());break;case"layerDefs":u="[";for(var l=function(e){s[e]instanceof Object&&!(s[e]instanceof Array)&&(u+="{",Object.keys(s[e]).forEach(function(t){s[e].hasOwnProperty(t)&&(u+='"'+t+'":"'+s[e][t]+'",')}),u=u.substring(0,u.length-1),u+="},")},c=0;c<s.length;c++)l(c);s.length>0&&(u=u.substring(0,u.length-1)),"[]"!==(u+="]")&&(i+="&"+e[a]+"="+encodeURIComponent(u));break;case"OutStatistics":u+="[";for(var f=function(e){s[e]instanceof Object&&!(s[e]instanceof Array)&&(u+="{",Object.keys(s[e]).forEach(function(t){s[e].hasOwnProperty(t)&&("statisticType"!==t&&"onStatisticField"!==t&&"outStatisticFieldName"!==t||(u+='"'+t+'":"'+s[e][t]+'",'))}),u=u.substring(0,u.length-1),u+="},")},h=0;h<s.length;h++)f(h);s.length>0&&(u=u.substring(0,u.length-1)),"[]"!==(u+="]")&&(i+="&"+e[a]+"="+encodeURIComponent(u));break;case"FeatureSet":u="&"+e[a]+"="+encodeURIComponent(JSON.stringify(t[e[a]].toGeoJSON())),i+=u;break;case"FeatureCollection":i+="&"+e[a]+"="+encodeURIComponent(JSON.stringify(t[e[a]]));break;default:i+="&"+e[a]+"="+encodeURIComponent(s)}else if("string"==typeof r[e[a]].process)switch(r[e[a]].process){case"igsGeometryServer":i+="&"+e[a]+"="+encodeURIComponent(JSON.stringify(s.toGeoJSON()))+"&srs=",s.spatialReference?s.spatialReference instanceof n.SpatialReference?i+=encodeURIComponent(s.spatialReference.toString()):s.spatialReference instanceof Object&&!(s.spatialReference instanceof Array)?i+=encodeURIComponent(s.spatialReference.wkt?s.spatialReference.wkt:"EPSG:4326"):"string"==typeof s.spatialReference&&(i+=encodeURIComponent(s.spatialReference)):i+=encodeURIComponent("EPSG:4326");break;case"igsGeometryServerNoSRS":i+="&"+e[a]+"="+encodeURIComponent(JSON.stringify(s.toGeoJSON()));break;case"igsRange$":i+="&"+(r[e[a]].alias||e[a])+"="+encodeURIComponent(s.toIGSOldString());break;case"igsGeometryOld":"Point"===s.type||"LineString"===s.type?"Point"===s.type&&!0===s.hasZ?i+="&"+e[a]+"="+encodeURIComponent(s.toString()+","+(t.distance||r.distance.default))+"&geometryType="+encodeURIComponent(s.getIGSType()):i+="&"+e[a]+"="+encodeURIComponent(s.toString()+";"+(t.distance||r.distance.default))+"&geometryType="+encodeURIComponent(s.getIGSType()):i+="&"+e[a]+"="+encodeURIComponent(s.toString())+"&geometryType="+encodeURIComponent(s.getIGSType());break;default:i+="&"+e[a]+"="+encodeURIComponent(s.toString())+"&geometryType="+encodeURIComponent(s.getIGSType())}else r[e[a]].process instanceof Function&&(i+=r[e[a]].process(t[e[a]],r[e[a]].default))}},s=0;s<e.length;s++)a(s);return i}function l(e,t,r){for(var n={},i=0;i<e.length;i++){var a=(0,o.defaultValue)(t[e[i]],r[e[i]].default);if(void 0!==a)if((0,o.isNull)(r[e[i]].process))switch(r[e[i]].type){case"String":case"Number":case"Boolean":default:n[r[e[i]].alias||e[i]]=a;break;case"Geometry":case"Point":case"MultiPoint":case"Extent":case"Circle":case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":n[r[e[i]].alias||e[i]]=a.toString()+"&geometryType="+a.getIGSType()}else if("string"==typeof r[e[i]].process)switch(r[e[i]].process){case"igsDots":n[r[e[i]].alias||"Dots"]=a.toDots();break;case"toOldIGSGeometry":switch(a.type){case"Point":n[r[e[i]].alias||"Pnt"]=a.toOldIGSGeometry().PntGeom[0];break;case"LineString":n[r[e[i]].alias||"Line"]=a.toOldIGSGeometry().LinGeom[0];break;case"Polygon":n[r[e[i]].alias||"Reg"]=a.toOldIGSGeometry().RegGeom[0]}break;default:n[r[e[i]].alias||e[i]]=a}else r[e[i]].process instanceof Function&&(n[e[i]]=r[e[i]].process(t[e[i]],r[e[i]].default))}return encodeURIComponent(JSON.stringify(n))}function c(e,t){if("function"==typeof e)return e(t);var r=void 0;switch(e){case"String":r=(0,o.isString)(t);break;case"Number":r=(0,o.isNumber)(t);break;case"Boolean":r=(0,o.isBoolean)(t);break;case"Extent":r=t instanceof n.Extent;break;case"Geometry":r=t instanceof n.Geometry;break;case"Point":r=t instanceof n.Point;break;case"Polygon":r=t instanceof n.Polygon;break;case"MultiPolygon":r=t instanceof n.MultiPolygon;break;case"Circle":r=t instanceof n.Circle;break;case"LineString":r=t instanceof n.LineString;break;case"MultiLineString":r=t instanceof n.MultiLineString;break;case"LineString | MultiLineString":r=t instanceof n.LineString||t instanceof n.MultiLineString;break;case"Polygon | Extent":r=t instanceof n.Polygon||t instanceof n.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,o.isNull)(e[t].statisticType)||(0,o.isNull)(e[t].onStatisticField)||(0,o.isNull)(e[t].outStatisticFieldName))return!1;if(!(0,o.isString)(e[t].statisticType)||!(0,o.isString)(e[t].onStatisticField)||!(0,o.isString)(e[t].outStatisticFieldName))return!1}return!0}(t);break;case"FeatureSet":r=t instanceof a.FeatureSet;break;case"FeatureCollection":r=t instanceof Object&&!(t instanceof Array)&&t.hasOwnProperty("features")&&"FeatureCollection"===t.type;break;case"Color":r=t instanceof a.Color;break;default:r=(0,o.isString)(t)}return r}function f(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 h(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===a.WMTSCorporation.corporationZD?f(e,r.version):(r.corporation,a.WMTSCorporation.corporationArcGIS,f(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 p(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]=p(e.childNodes[n]);0===e.childNodes.length&&(t[e.nodeName]=e.textContent)}return t}function d(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,i=new a.FeatureSet({spatialReference:new n.SpatialReference("EPSG:0000")}),o=void 0,s=void 0,u=void 0,l=0;l<t.length;l++){for(var c={},f=0;f<t[l].AttValue.length;f++)""!==t[l].AttValue[f]&&(c[r.FldName[f]]=t[l].AttValue[f]);if(t[l].fGeom)switch(t[l].ftype){case 1:var h=t[l].fGeom.PntGeom;u=[];for(var p=0;p<h.length;p++){var d=h[p].Dot;u.push([d.x,d.y])}s=new n.MultiPoint({coordinates:u});break;case 2:var y=t[l].fGeom.LinGeom;u=[];for(var g=0;g<y.length;g++){for(var v=y[g].Line.Arcs[0].Dots,m=[],_=0;_<v.length;_++)m.push([v[_].x,v[_].y]);u.push(m)}s=new n.MultiLineString({coordinates:u});break;case 3:default:var b=t[l].fGeom.RegGeom;u=[];for(var S=0;S<b.length;S++){for(var x=b[S].Rings[0].Arcs[0].Dots,w=[],O=0;O<x.length;O++)w.push([x[O].x,x[O].y]);for(var E=[w],P=1;P<b[S].Rings.length;P++){for(var k=b[S].Rings[P].Arcs[0].Dots,T=[],I=0;I<k.length;I++)T.push([k[I].x,k[I].y]);E.push(T)}u.push(E)}s=new n.MultiPolygon({coordinates:u})}var M=void 0;if(t[l].GraphicInfo){var L=t[l].GraphicInfo;switch(L.InfoType){case 1:M=L.PntInfo;break;case 2:M=L.LinInfo;break;case 3:default:M=L.RegInfo}}o=new a.Feature({id:t[l].FID,attributes:c,geometry:s,symbol:M}),i.features.push(o)}return i}if(e instanceof Array){for(var r=[],i=0;i<e.length;i++)r.push(t(e[i]));return r}return[t(e)]},t.checkParam=function(e,t){var r=!0,n="",a="",s=void 0,f="";try{var h=!0;if(Object.keys(t).forEach(function(r){if(e.hasOwnProperty(r)&&t.hasOwnProperty(r)||t.hasOwnProperty(r)&&t[r].required){if(t[r].required)if((0,o.isNull)(t[r].oneOf)){if((0,o.isNull)(e[r]))throw s=r,new Error("isNull")}else{var n=!1;(0,o.isNull)(e[r])&&(n=!0);for(var i=0;i<t[r].oneOf.length;i++)if(!(0,o.isNull)(e[t[r].oneOf[i]])){n=!1;break}if(n)throw s=r+","+t[r].oneOf.toString(),new Error("isNull")}if((0,o.isNull)(e[r])||(h=c(t[r].type,e[r])),!h)throw s=r,new Error("wrongType")}}),h){var p=[];Object.keys(t).forEach(function(e){t.hasOwnProperty(e)&&p.push(e)}),f=e.useObject?l(p,e,t):u(p,e,t)}}catch(e){switch(r=!1,e.message){case"isNull":n=s+"值不能为空!",a="isNull",i.default.error(n);break;case"wrongType":n=s+"类型错误!",a="isWrongType",i.default.error(n);break;default:n=s+"值不能为空!",a="isNull",i.default.error(n)}}return{isChecked:r,errorMessage:n,errorType:a,queryString:f}},t.getParameters=u,t.checkPathParameters=function(e,t){var r="",n="",a=!0;try{Object.keys(e).forEach(function(n){if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n))throw r="isNull",a=!1,new Error(n+"不能为空!");var i=t[n];if((0,o.isNull)(i))throw r="isNull",a=!1,new Error(n+"不能为空!");if(!c(e[n].type,t[n]))throw r="isWrongType",a=!1,new Error(n+"类型错误!")}})}catch(e){return i.default.error(e),{isChecked:a,errorMessage:n=e,errorType:r}}return{isChecked:a,errorMessage:n,errorType:r}},t.getWMSInfoFromXML=function(e,t,r){var n=(0,s.initCorporationType)(r),i="1.0";n===a.WMTSCorporation.corporationZD&&r.indexOf("igs/rest/ogc/doc")<0&&(i="2.0");for(var o={boundingBox:[],layer:[],crs:[]},u=e.childNodes,l=0;l<u.length;l++)if(("WMT_MS_Capabilities"===u[l].nodeName||"WMS_Capabilities"===u[l].nodeName)&&u[l].childNodes.length>0){for(var c=u[l].childNodes,f=0;f<c.length;f++)if("Capability"===c[f].nodeName){for(var p=c[f].childNodes,d=0;d<p.length;d++)if("Layer"===p[d].nodeName){for(var y=p[d].childNodes,g=0;g<y.length;g++)if("Layer"===y[g].nodeName){for(var v=y[g].childNodes,m={boundingBox:[],crs:[]},_=0;_<v.length;_++)h(v[_],m,{corporation:n,version:t,igsVersion:i});o.layer.push(m)}else h(y[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 f={},h=0;h<l[c].childNodes.length;h++)"ows:LowerCorner"===l[c].childNodes[h].nodeName&&(f.lowerCorner=l[c].childNodes[h].innerHTML),"ows:UpperCorner"===l[c].childNodes[h].nodeName&&(f.upperCorner=l[c].childNodes[h].innerHTML);u.boundingBox=f}else if("Style"===l[c].nodeName){for(var d={},y=0;y<l[c].childNodes.length;y++)"ows:Identifier"===l[c].childNodes[y].nodeName&&(d.identifier=l[c].childNodes[y].innerHTML),"ows:Title"===l[c].childNodes[y].nodeName&&(d.title=l[c].childNodes[y].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 g=l[c].childNodes,v={tileMatrixSetLimits:[]},m=0;m<g.length;m++)if("TileMatrixSet"===g[m].nodeName)v.tileMatrixSet=g[m].innerHTML;else if("TileMatrixSetLimits"===g[m].nodeName)for(var _=g[m].childNodes,b=0;b<_.length;b++){for(var S=_[b].childNodes,x={},w=0;w<S.length;w++)"TileMatrix"===S[w].nodeName?x.tileMatrix=S[w].innerHTML:"MinTileRow"===S[w].nodeName?x.minTileRow=S[w].innerHTML:"MaxTileRow"===S[w].nodeName?x.maxTileRow=S[w].innerHTML:"MinTileCol"===S[w].nodeName?x.minTileCol=S[w].innerHTML:"MaxTileCol"===S[w].nodeName&&(x.maxTileCol=S[w].innerHTML);v.tileMatrixSetLimits.push(x)}u.tileMatrixSetLink.push(v)}r.layers.push(u)}else if("TileMatrixSet"===a[s].nodeName){for(var O=a[s].childNodes,E={tileMatrix:[]},P=0;P<O.length;P++)if("ows:Title"===O[P].nodeName)E.title=O[P].innerHTML;else if("ows:Abstract"===O[P].nodeName)E.abstract=O[P].innerHTML;else if("ows:Identifier"===O[P].nodeName)E.identifier=O[P].innerHTML;else if("ows:SupportedCRS"===O[P].nodeName)E.supportedCRS=O[P].innerHTML;else if("TileMatrix"===O[P].nodeName){for(var k=O[P].childNodes,T={},I=0;I<k.length;I++)"ows:Identifier"===k[I].nodeName?T.identifier=k[I].innerHTML:"ScaleDenominator"===k[I].nodeName?T.scaleDenominator=k[I].innerHTML:"TopLeftCorner"===k[I].nodeName?T.topLeftCorner=k[I].innerHTML:"TileWidth"===k[I].nodeName?T.tileWidth=k[I].innerHTML:"TileHeight"===k[I].nodeName?T.tileHeight=k[I].innerHTML:"MatrixWidth"===k[I].nodeName?T.matrixWidth=k[I].innerHTML:"MatrixHeight"===k[I].nodeName&&(T.matrixHeight=k[I].innerHTML);E.tileMatrix.push(T)}r.tileMatrixSets.push(E)}r.XMLInfo[i[o].nodeName]=p(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={},f=u[l].childNodes,h=0;h<f.length;h++)"name"===f[h].nodeName.toLowerCase()?c.name=f[h].innerHTML:"title"===f[h].nodeName.toLowerCase()?c.title=f[h].innerHTML:"abstract"===f[h].nodeName.toLowerCase()?c.abstract=f[h].innerHTML:"defaultsrs"===f[h].nodeName.toLowerCase()?c.defaultSRS=f[h].innerHTML:"ows:wgs84boundingbox"===f[h].nodeName.toLowerCase()&&(c.WGS84BoundingBox={lowerCorner:f[h].childNodes[0].innerHTML,UpperCorner:f[h].childNodes[1].innerHTML});r.featureTypeList.push(c)}break}return r},t.getParametersObject=l,t.getWFSFeature=function(e,t){var r=e.childNodes[0].childNodes,i=new a.FeatureSet;t=(0,o.defaultValue)(t,"2.0.0");for(var s=0;s<r.length;s++){for(var u=r[s].childNodes[0].childNodes,l={},c=void 0,f=0;f<u.length;f++)if(u[f].nodeName.indexOf(":the_geom")>-1){var h=u[f],p=d(h.childNodes[0]),y=Number(p.split(":")[1]);if(i.spatialReference=new n.SpatialReference(p),h.childNodes[0].nodeName.indexOf("MultiSurface")>-1){var g=h.childNodes[0].childNodes;if(1===g.length){for(var v=g[0].childNodes[0].childNodes,m=0;m<v.length;m++)if(v[m].nodeName.indexOf("exterior")>-1){var _=v[m].childNodes[0].childNodes[0].innerHTML.split(" "),b=[];switch(t){case"2.0.0":case"1.1.0":default:for(var S=0;S<_.length;S+=2)[4326,4490,4610,4214].indexOf(y)>-1||y>=2327&&y<=2442||y>=4491&&y<=4554||y>=21413&&y<=21423||y>=21473&&y<=21483?b.push([Number(_[S+1]),Number(_[S])]):b.push([Number(_[S]),Number(_[S+1])]);break;case"1.0.0":for(var x=0;x<_.length;x+=2)b.push([Number(_[x]),Number(_[x+1])])}c=new n.Polygon({coordinates:[b],spatialReference:new n.SpatialReference(p)})}}else g.length}else if(h.childNodes[0].nodeName.indexOf("MultiCurve")>-1){var w=h.childNodes[0].childNodes;if(1===w.length){for(var O=w[0].childNodes[0].childNodes,E=0;E<O.length;E++)if(O[E].nodeName.indexOf("posList")>-1){var P=O[E].innerHTML.split(" "),k=[];switch(t){case"2.0.0":case"1.1.0":default:if([4326,4490,4610,4214].indexOf(y)>-1||y>=2327&&y<=2442||y>=4491&&y<=4554||y>=21413&&y<=21423||y>=21473&&y<=21483)for(var T=0;T<P.length;T+=2)k.push([Number(P[T+1]),Number(P[T])]);else for(var I=0;I<P.length;I+=2)k.push([Number(P[I]),Number(P[I+1])]);break;case"1.0.0":for(var M=0;M<P.length;M+=2)k.push([Number(P[M]),Number(P[M+1])])}c=new n.LineString({coordinates:k,spatialReference:new n.SpatialReference(p)})}}else w.length}else if(h.childNodes[0].nodeName.indexOf("MultiPoint")>-1){var L=h.childNodes[0].childNodes;if(1===L.length){var C=L[0].childNodes[0].childNodes[0].innerHTML.split(" "),N=void 0;switch(t){case"2.0.0":case"1.1.0":default:N=[4326,4490,4610,4214].indexOf(y)>-1||y>=2327&&y<=2442||y>=4491&&y<=4554||y>=21413&&y<=21423||y>=21473&&y<=21483?[Number(C[1]),Number(C[0])]:[Number(C[0]),Number(C[1])];break;case"1.0.0":N=[Number(C[0]),Number(C[1])]}c=new n.Point({coordinates:N,spatialReference:new n.SpatialReference(p)})}else L.length}}else{var R=u[f].nodeName;l[R=R.split(":")[1]]=u[f].innerHTML}var j=new a.Feature({geometry:c,attributes:l});i.features.push(j)}return i},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,o.defaultValue)(t,"");var r=e.request.interceptors,n=decodeURI(t);if(r&&r instanceof Array)for(var i="",a=0;a<r.length;a++){var s=r[a].urls,u=r[a].before;if(s){if("string"==typeof s){var l=decodeURI(s);if(n.indexOf(l)>-1&&u&&u instanceof Function){var c=u(t);c&&(i+=c)}}else if(s instanceof Array)for(var f=0;f<s.length;f++){var h=decodeURI(s[f]);if(n.indexOf(h)>-1&&u&&u instanceof Function){var p=u(t);p&&(i+=p)}}}else if(u&&u instanceof Function){var d=u(t);d&&(i+=d)}i&&(t=i)}return t},t.ServiceConfigResponseInterceptors=function(e,t,r){t=(0,o.defaultValue)(t,"");var n=e.request.interceptors,i=decodeURI(t);if(n&&n instanceof Array)for(var a=0;a<n.length;a++){var s=n[a].urls,u=n[a].after;if(!s||s instanceof Array&&0===s.length){if(u&&u instanceof Function){var l=u(r);if(l)return l}}else if("string"==typeof s){var c=decodeURI(s);if(i.indexOf(c)>-1&&u&&u instanceof Function){var f=u(r);if(f)return f}}else if(s instanceof Array)for(var h=0;h<s.length;h++){var p=decodeURI(s[h]);if(i.indexOf(p)>-1&&u&&u instanceof Function){var d=u(r);if(d)return d}}}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("|")},t.isEncoded=function(e){try{return decodeURI(e),!0}catch(e){return!1}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.default=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,n.defaultValue)(t,{}),(0,n.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(0),i=l(r(30)),o=l(r(68)),a=l(r(405)),s=l(r(407)),u=l(r(409));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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(3),o=r(0),a=c(r(69)),s=c(r(41)),u=r(1),l=r(2);function c(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 h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,null,[{key:"parseTileInfo1",value:function(e){e||o.Log.error("tileInfo未定义");var t=e.tileWidth,r=e.tileHeight,n=e.lods,u=e.originX,l=e.originY,c=e.startLevel,h=e.endLevel;return new s.default({origin:new i.Point({coordinates:[u,l]}),lods:f(n,c,h).map(function(e){return a.default.fromJSON(e)}),size:[t,r]})}},{key:"parseTileInfo2",value:function(e){e||o.Log.error("tileInfo未定义");var t=e.cols,r=e.rows,n=e.dpi,u=e.format,l=e.origin,c=e.lods,h=e.spatialReference,p=e.startLevel,d=e.endLevel;return new s.default({dpi:n,format:u,origin:new i.Point({coordinates:[l.x,l.y],spatialReference:new i.SpatialReference(h)}),lods:f(c,p,d).map(function(e){return a.default.fromJSON(e)}),size:[t,r],spatialReference:new i.SpatialReference(h)})}},{key:"parseArcgisTileInfo",value:function(e){e||o.Log.error("tileInfo未定义");var t=e.cols,r=e.rows,n=e.dpi,u=e.format,l=e.origin,c=e.lods,f=e.spatialReference;return new s.default({dpi:n,format:u,origin:new i.Point({coordinates:[l.x,l.y],spatialReference:new i.SpatialReference({wkid:f.latestWkid||f.wkid})}),lods:c.map(function(e){return a.default.fromJSON(e)}),size:[t,r],spatialReference:new i.SpatialReference({wkid:f.latestWkid||f.wkid})})}},{key:"parseWMSTileInfo",value:function(t){t||o.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||o.Log.error("动态计算tileInfo传入参数不合法");var n=Math.max(e.ymax-e.ymin,e.xmax-e.xmin)/t,u=[];u.push(n);for(var l=0;l<20;l++)u.push(u[l]/2);var c=new i.Point({coordinates:[e.xmin,e.ymax],spatialReference:r});return new s.default({origin:c,lods:u.map(function(e,t){return a.default.fromJSON({level:t,resolution:e,scale:96*e/.0254})}),size:[t,t],spatialReference:r})}},{key:"parseWebTileLayerInfo",value:function(e,t,r){e||o.Log.error("IGSMapImageLayer未定义"),r=(0,o.defaultValue)(r,2);var n=e.tileSize,u=(t.xmax-t.xmin)/r/n,l=[];l.push(u);for(var c=0;c<19;c++)l.push(l[c]/2);var f=new i.Point({coordinates:[t.xmin,t.ymax],spatialReference:e.spatialReference}),h=1;return e.spatialReference.isGeographic&&(h=111319490.79327358),new s.default({origin:f,lods:l.map(function(e,t){return a.default.fromJSON({level:t,resolution:e,scale:h*(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,o.defaultValue)(e.origin,new i.Point({coordinates:[t.xmin,t.ymax],spatialReference:r})),u=(0,o.defaultValue)(e.tileSize,256),l=(0,o.defaultValue)(e.minLevel,0),c=(0,o.defaultValue)(e.maxLevel,19),f=(0,o.defaultValue)(e.numberOfMinLevelTilesX,1),h=((0,o.defaultValue)(e.numberOfMinLevelTilesY,1),(t.xmax-t.xmin)/f/u),p=[];p.push(h);for(var d=l;d<c;d++)p.push(p[d]/2);var y=1;return r.isGeographic&&(y=111319490.79327358),new s.default({origin:n,lods:p.map(function(e,t){return a.default.fromJSON({level:t,resolution:e,scale:y*(96*e)/.0254})}),size:[u,u],spatialReference:r})}}},{key:"getLods",value:function(e,t,r){for(var n=Math.max(0,r),i=[],o=2*Math.PI*6378137/360,s=0;s<n;s++){var u=e/Math.pow(2,s),l=void 0;l="degree"===t?o*u:96*u/.0254,i.push(new a.default({level:s,resolution:u,scale:l}))}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===u.LayerType.igsTile||i.type===u.LayerType.arcgisTile||i.type===u.LayerType.wmts||i.type===u.LayerType.igsVectorTile||i.type===u.LayerType.arcgisVectorTile||i.type===u.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===u.LayerType.igsMapImage||a.type===u.LayerType.arcgisMapImage||a.type===u.LayerType.wms||a.type===u.LayerType.igsFeature||a.type===u.LayerType.wfs||a.type===u.LayerType.geojson)){r=a,t=a.spatialReference;break}}return r}},{key:"setLayerSpatialReference",value:function(e,t){t&&e.forEach(function(e){if((e.type===u.LayerType.igsMapImage||e.type===u.LayerType.arcgisMapImage||e.type===u.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=l.Projection.project(e._extentSrc,t))}})}},{key:"isSameSpatialReference",value:function(e,t){var r=!1,n=void 0,o=void 0,a=void 0,s=void 0,u=void 0,l=void 0;return void 0!==e&&void 0!==t&&(e instanceof i.SpatialReference?(n=e.wkt?e.wkt.toString():void 0,o=e.wkid?e.wkid.toString():void 0):a=e.toString(),t instanceof i.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:o&&u&&(o===u||["4326","4490","4610","4214"].indexOf(o)>-1&&["4326","4490","4610","4214"].indexOf(u)>-1||["102113","102100","900913","3857"].indexOf(o)>-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===u.LayerType.wmts)r=t.getCurrentTileInfo();else if(t.type===u.LayerType.wms)r=e.parseWMSTileInfo(t,t.extent);else if(t.type===u.LayerType.igsMapImage||t.type===u.LayerType.arcgisMapImage||t.type===u.LayerType.igsFeature||t.type===u.LayerType.wfs||t.type===u.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=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(0),a=r(17);var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),n=(0,o.defaultValue)(e,{});return r.view=n.view,r.view||o.Log.error("视图对象不存在!"),r.layer=n.layer,r.layer||o.Log.error("图层对象不存在!"),r.innerLayer=null,r.id=r.layer.id,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Evented),n(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,a.getLayerViewScaleVisible)(this);t=e&&r}else t=e;return t}}]),t}();Object.defineProperties(s.prototype,{innerView:{get:function(){return this.view.getInnerView()}}}),t.default=s},function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return i});var n=/[\s_\-\/\(\)]/g;function i(e,t){if(e[t])return e[t];for(var r,i=Object.keys(e),o=t.toLowerCase().replace(n,""),a=-1;++a<i.length;)if((r=i[a]).toLowerCase().replace(n,"")===o)return e[r]}},function(e,t,r){"use strict";r.r(t);var n=r(4);t.default=function(e,t,r){var i=e*r,o=.5*e;return i=Math.pow((1-i)/(1+i),o),Math.tan(.5*(n.HALF_PI-t))/i}},function(e,t,r){"use strict";r.r(t);var n=r(4);t.default=function(e,t){for(var r,i,o=.5*e,a=n.HALF_PI-2*Math.atan(t),s=0;s<=15;s++)if(r=e*Math.sin(a),a+=i=n.HALF_PI-2*Math.atan(t*Math.pow((1-r)/(1+r),o))-a,Math.abs(i)<=1e-10)return a;return-9999}},function(e,t,r){"use strict";r.r(t),t.default=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))}},function(e,t,r){"use strict";r.r(t),t.default=function(e,t,r,n,i){return e*i-t*Math.sin(2*i)+r*Math.sin(4*i)-n*Math.sin(6*i)}},function(e,t,r){"use strict";r.r(t),t.default=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))}},function(e,t,r){"use strict";r.r(t),t.default=function(e){return.375*e*(1+.25*e*(1+.46875*e))}},function(e,t,r){"use strict";r.r(t),t.default=function(e){return.05859375*e*e*(1+.75*e)}},function(e,t,r){"use strict";r.r(t),t.default=function(e){return e*e*e*(35/3072)}},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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(1);var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,null,[{key:"info",value:function(){if([i.LogType.info,i.LogType.all,i.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([i.LogType.error,i.LogType.all,i.LogType.infoAndError,i.LogType.warningAndError].indexOf(window.zondy.LOGTYPE)>-1){var e=Array.prototype.slice.call(arguments);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.error.apply(console,e)}}},{key:"warning",value:function(){if([i.LogType.warning,i.LogType.warningAndError,i.LogType.all].indexOf(window.zondy.LOGTYPE)>-1){var e=Array.prototype.slice.call(arguments);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=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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]:{},n=void 0,i=void 0,o=void 0,a=[];return function(){var s=function(e){return"function"==typeof e?e():e}(t),u=(new Date).getTime(),l=!n||u-n>s;n=u;for(var c=arguments.length,f=Array(c),h=0;h<c;h++)f[h]=arguments[h];if(l&&r.leading)return r.accumulate?Promise.resolve(e.call(this,[f])).then(function(e){return e[0]}):Promise.resolve(e.call.apply(e,[this].concat(f)));if(i?clearTimeout(o):i=function(){var e={};return e.promise=new Promise(function(t,r){e.resolve=t,e.reject=r}),e}(),a.push(f),o=setTimeout(function(){var t=i;clearTimeout(o),Promise.resolve(r.accumulate?e.call(this,a):e.apply(this,a[a.length-1])).then(t.resolve,t.reject),a=[],i=null}.bind(this),s),r.accumulate){var p=a.length-1;return i.promise.then(function(e){return e[p]})}return i.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}},n=e.map(function(e){return Promise.resolve(e).then(r,t)});return Promise.all(n)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(1),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(0);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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(0),a=r(10);var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,o.defaultValue)(t,{}),this.symbol=new a.MapGISTextSymbol(t.symbol),this.renderMode=(0,o.defaultValue)(t.renderMode,"canvas"),this.deconflictionStrategy=(0,o.defaultValue)(t.deconflictionStrategy,"static"),this.maxScale=t.maxScale,this.minScale=t.minScale,this.elevationInfo=new i.ElevationInfo(t.elevationInfo),this.labelPlacement=t.labelPlacement,this.currentAttributeName=t.currentAttributeName,this.labelExpression=t.labelExpression,this.repeatLabel=(0,o.defaultValue)(t.repeatLabel,!0),this.repeatLabelDistance=(0,o.defaultValue)(t.repeatLabelDistance,6e3),this.repeatStartRate=(0,o.defaultValue)(t.repeatStartRate,.3),this.repeatEndRate=(0,o.defaultValue)(t.repeatEndRate,.7),this.lineLabelSpread=(0,o.defaultValue)(t.lineLabelSpread,"auto-spread"),this.labelPositionAlong=(0,o.defaultValue)(t.labelPositionAlong,"middle"),this.skeletonLineStartRate=(0,o.defaultValue)(t.skeletonLineStartRate,.4),this.skeletonLineEndRate=(0,o.defaultValue)(t.skeletonLineEndRate,.6),this.groundScale=(0,o.defaultValue)(t.groundScale,20),this.extensionOptions=(0,o.defaultValue)(t.extensionOptions,{})}return n(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,o.cloneObject)(this.extensionOptions)}}},{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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(30)),o=r(0),a=r(50);var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,o.defaultValue)(t,{}),this.type=i.default.default,this.field=(0,o.defaultValue)(t.field,""),this.valueExpression=(0,o.defaultValue)(t.valueExpression,""),this.valueExpressionTitle=(0,o.defaultValue)(t.valueExpressionTitle,"")}return n(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,o.defaultValue)(e,{}),(0,a.createVisualVariable)(e)}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.level=t.level,this.resolution=t.resolution,this.scale=t.scale}return n(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=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(7);var a=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.version=(0,i.defaultValue)(e.version,""),r.customParameters=(0,i.defaultValue)(e.customParameters,{}),r.customLayerParameters=(0,i.defaultValue)(e.customLayerParameters,{}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Layer),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.version=this.version,e.customParameters=JSON.parse(JSON.stringify(this.customParameters)),e.customLayerParameters=JSON.parse(JSON.stringify(this.customLayerParameters)),e}}]),t}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlUtil=t.deleteNullValue=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=function(e){return e&&e.__esModule?e:{default:e}}(r(99)),i=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(15)),o=r(11),a=r(92),s=r(38),u=r(3),l=r(2),c=r(0),f=r(1),h=r(10),p=r(452),d=r(458),y=r(465);window.zondy={};var g=window.zondy;g.service={},g.geometry={},g.layer={},g.enum={},g.symbol={},g.widget={},g.tool={},g.renderer={},g.renderer.visualvariable={},g.themelayer={},g.util={},g.video={},g.LOGTYPE="warningAndError",g.VERSION="17.2.10",g.service.FetchServer=o.FetchServer,g.service.RequestInterceptor=o.RequestInterceptor,g.service.ResponseInterceptor=o.ResponseInterceptor,g.service.MapServer=o.MapServer,g.service.FeatureServer=o.FeatureServer,g.service.M3DServer=o.M3DServer,g.service.ImageServer=o.ImageServer,g.service.GeometryServer=o.GeometryServer,g.service.AddressServer=o.AddressServer,g.service.Cesium3DTilesServer=o.Cesium3DTilesServer,g.service.PoiServer=o.PoiServer,g.service.TerrainServer=o.TerrainServer,g.service.SecurityServer=o.SecurityServer,g.service.RootServer=o.RootServer,g.service.TileServer=o.TileServer,g.service.VectorTileServer=o.VectorTileServer,g.service.PlotServer=o.PlotServer,g.service.ResourceServer=o.ResourceServer,g.service.SceneServer=o.SceneServer,g.service.WMSServer=o.WMSServer,g.service.WMTSServer=o.WMTSServer,g.service.WFSServer=o.WFSServer,g.service.ArcGISMapServer=o.ArcGISMapServer,g.service.ThemeServer=o.ThemeServer,g.service.ArcGISGeometryServer=o.ArcGISGeometryServer,g.service.ArcGISFeatureServer=o.ArcGISFeatureServer,g.service.ArcGISVectorTileServer=o.ArcGISVectorTileServer,g.service.Config=o.Config,g.service.FetchRequest=o.FetchRequest,g.service.GeometryFilter=o.GeometryFilter,g.service.Interceptor=o.Interceptor,g.service.WorkFlowServer=o.WorkFlowServer,g.service.BaseServer=o.BaseServer,g.service.RequestConfig=o.RequestConfig,g.themelayer.CAllOtherDataItemInfoSource=o.CAllOtherDataItemInfoSource,g.themelayer.CAnnInfo=o.CAnnInfo,g.themelayer.CChartLabelFormat=o.CChartLabelFormat,g.themelayer.CChartTheme=o.CChartTheme,g.themelayer.CChartThemeInfo=o.CChartThemeInfo,g.themelayer.CChartThemeRepresentInfo=o.CChartThemeRepresentInfo,g.themelayer.CChartType=o.CChartType,g.themelayer.CDotDensityTheme=o.CDotDensityTheme,g.themelayer.CFourColorTheme=o.CFourColorTheme,g.themelayer.CGraduatedSymbolTheme=o.CGraduatedSymbolTheme,g.themelayer.CLinInfo=o.CLinInfo,g.themelayer.CMultiClassTheme=o.CMultiClassTheme,g.themelayer.CPntInfo=o.CPntInfo,g.themelayer.CRandomTheme=o.CRandomTheme,g.themelayer.CRangeTheme=o.CRangeTheme,g.themelayer.CRangeThemeInfo=o.CRangeThemeInfo,g.themelayer.CRegInfo=o.CRegInfo,g.themelayer.CSimpleTheme=o.CSimpleTheme,g.themelayer.CTheme=o.CTheme,g.themelayer.CThemeInfo=o.CThemeInfo,g.themelayer.CUniqueTheme=o.CUniqueTheme,g.themelayer.CUniqueThemeInfo=o.CUniqueThemeInfo,g.themelayer.ExpInfo=o.ExpInfo,g.themelayer.FolderInfo=o.FolderInfo,g.themelayer.FolderInfoAttribute=o.FolderInfoAttribute,g.themelayer.ItemValue=o.ItemValue,g.themelayer.ThemesInfo=o.ThemesInfo,g.layer.WMTSLayer=s.WMTSLayer,g.layer.WMSLayer=s.WMSLayer,g.layer.WMSSubLayer=s.WMSSubLayer,g.layer.WFSLayer=s.WFSLayer,g.layer.WMTSSubLayer=s.WMTSSubLayer,g.layer.VectorTileLayer=s.VectorTileLayer,g.layer.IGSVectorTileLayer=s.IGSVectorTileLayer,g.layer.IGSVectorTileSubLayer=s.IGSVectorTileSubLayer,g.layer.IGSMapImageLayer=s.IGSMapImageLayer,g.layer.IGSMapImageSubLayer=s.IGSMapImageSubLayer,g.layer.IGSSceneLayer=s.IGSSceneLayer,g.layer.IGSSceneSubLayer=s.IGSSceneSubLayer,g.layer.IGSTileLayer=s.IGSTileLayer,g.layer.Scene=s.Scene,g.layer.IGSFeatureLayer=s.IGSFeatureLayer,g.layer.EchartsLayer=s.EchartsLayer,g.layer.MapVLayer=s.MapVLayer,g.layer.GroupLayer=s.GroupLayer,g.layer.GraphicsLayer=s.GraphicsLayer,g.layer.GeoJSONLayer=s.GeoJSONLayer,g.layer.Cesium3DTilesCacheLayer=s.Cesium3DTilesCacheLayer,g.layer.TerrainCacheLayer=s.TerrainCacheLayer,g.layer.VideoLayer=s.VideoLayer,g.layer.LabelClass=s.LabelClass,g.layer.ArcGISMapImageLayer=s.ArcGISMapImageLayer,g.layer.ArcGISMapImageSubLayer=s.ArcGISMapImageSubLayer,g.layer.M3DModelCacheLayer=s.M3DModelCacheLayer,g.layer.ArcGISTileLayer=s.ArcGISTileLayer,g.layer.Layer=s.Layer,g.layer.ArcGISVectorTileLayer=s.ArcGISVectorTileLayer,g.layer.WebTileLayer=s.WebTileLayer,g.layer.TileInfo=s.TileInfo,g.layer.LOD=s.LOD,g.layer.TileLayer=s.TileLayer,g.layer.UnknownLayer=s.UnknownLayer,g.layer.OverlayLayer=s.OverlayLayer,g.layer.OGCLayer=s.OGCLayer,g.Map=s.Map,g.Basemap=s.Basemap,g.SpatialReference=u.SpatialReference,g.Color=l.Color,g.Collection=l.Collection,g.FeatureSet=l.FeatureSet,g.Feature=l.Feature,g.ElevationInfo=l.ElevationInfo,g.ProjectInfo=l.ProjectInfo,g.OutStatistic=l.OutStatistic,g.TileMatrixSet=l.TileMatrixSet,g.ProjectInfoBySrsID=l.ProjectInfoBySrsID,g.FeatureExpressionInfo=l.FeatureExpressionInfo,g.BaseView=p.BaseView,g.MapView=p.MapView,g.SceneView=p.SceneView,g.BaseFeatureLayerView=p.BaseFeatureLayerView,g.BaseRendererLayerView=p.BaseRendererLayerView,g.GroupLayerView=p.GroupLayerView,g.WMTSStyle=l.WMTSStyle,g.CAttDataRow=o.CAttDataRow,g.CAttStruct=o.CAttStruct,g.renderer.UniqueValueRenderer=s.UniqueValueRenderer,g.renderer.ClassBreakRenderer=s.ClassBreakRenderer,g.renderer.SimpleRenderer=s.SimpleRenderer,g.renderer.ClusterRenderer=s.ClusterRenderer,g.renderer.RandomRenderer=s.RandomRenderer,g.renderer.RankRenderer=s.RankRenderer,g.renderer.HeatmapRenderer=s.HeatmapRenderer,g.renderer.BaseRenderer=s.BaseRenderer,g.renderer.HeatmapColorStop=s.HeatmapColorStop,g.renderer.visualvariable.SizeVariable=s.SizeVariable,g.renderer.visualvariable.ColorVariable=s.ColorVariable,g.renderer.visualvariable.OpacityVariable=s.OpacityVariable,g.renderer.visualvariable.VisualVariable=s.VisualVariable,g.geometry.Extent=u.Extent,g.geometry.Polygon=u.Polygon,g.geometry.MultiPolygon=u.MultiPolygon,g.geometry.LineString=u.LineString,g.geometry.MultiLineString=u.MultiLineString,g.geometry.Point=u.Point,g.geometry.MultiPoint=u.MultiPoint,g.geometry.Circle=u.Circle,g.geometry.GeometryEngine=u.GeometryEngine,g.geometry.Geometry=u.Geometry,g.geometry.Projection=l.Projection,g.geometry.Proj4=n.default,g.geometry.T=i,g.enum.ReturnFormat=f.ReturnFormat,g.enum.FetchMethod=f.FetchMethod,g.enum.LayerEventType=f.LayerEventType,g.enum.MapEventType=f.MapEventType,g.enum.StatisticType=f.StatisticType,g.enum.SpatialRelation=f.SpatialRelation,g.enum.CustomWKID=f.CustomWKID,g.enum.LayerType=f.LayerType,g.enum.TokenAttachType=f.TokenAttachType,g.enum.IGSGeometryType=f.IGSGeometryType,g.enum.LogType=f.LogType,g.enum.LoadStatus=f.LoadStatus,g.enum.ViewEventType=f.ViewEventType,g.enum.LengthUnit=f.LengthUnit,g.enum.AngleUnit=f.AngleUnit,g.enum.RendererType=f.RendererType,g.enum.VectorTileGeometryType=f.VectorTileGeometryType,g.enum.VideoSourceType=f.VideoSourceType,g.enum.SketchDataType=f.SketchDataType,g.enum.SketchEditMode=f.SketchEditMode,g.enum.SketchEditorEventType=f.SketchEditorEventType,g.enum.SketchEditorState=f.SketchEditorState,g.enum.SketchEditorToolEventType=f.SketchEditorToolEventType,g.enum.IGSRendererType=f.IGSRendererType,g.enum.SymbolType=f.SymbolType,g.enum.IGSSymbolType=f.IGSSymbolType,g.enum.ElevationMode=f.ElevationMode,g.enum.HorizontalAlignment=f.HorizontalAlignment,g.enum.VerticalAlignment=f.VerticalAlignment,g.enum.SceneMode=f.SceneMode,g.enum.ShadowMode=f.ShadowMode,g.enum.UrlServerType=f.UrlServerType,g.enum.PictureFormat=f.PictureFormat,g.enum.RadiusUnit=f.RadiusUnit,g.enum.WMTSCorporation=f.WMTSCorporation,g.enum.Symbol3DLayerType=f.Symbol3DLayerType,g.enum.LineCapType=f.LineCapType,g.enum.LineJoinType=f.LineJoinType,g.enum.LineMarkerPlacement=f.LineMarkerPlacement,g.enum.LineMarkerStyle=f.LineMarkerStyle,g.enum.LinePatternStyle=f.LinePatternStyle,g.enum.AnchorType=f.AnchorType,g.enum.ProfileType=f.ProfileType,g.enum.PatternStyle=f.PatternStyle,g.enum.WaterbodySize=f.WaterbodySize,g.enum.WaveStrength=f.WaveStrength,g.enum.MaterialType=f.MaterialType,g.enum.LinearUnits=f.LinearUnits,g.enum.AreaUnits=f.AreaUnits,g.enum.ArcType=f.ArcType,g.enum.SceneSubLayerType=f.SceneSubLayerType,g.enum.ColorNameToHexMap=f.ColorNameToHexMap,g.enum.SeverVectorTileSubLayerType=f.SeverVectorTileSubLayerType,g.enum.GeometryType=f.GeometryType,g.enum.VisualVariableType=f.VisualVariableType,g.enum.TDTLayerType=f.TDTLayerType,g.enum.TileSliceType=f.TileSliceType,g.util.formatBaseUrl=o.formatBaseUrl,g.util.ServiceConfigToken=o.ServiceConfigToken,g.util.ServiceConfigRequestInterceptors=o.ServiceConfigRequestInterceptors,g.util.convertIGSClippingString=o.convertIGSClippingString,g.util.getUrlType=s.getUrlType,g.util.is4326=s.is4326,g.util.isCustomSP=s.isCustomSP,g.util.showLayerByScale=s.showLayerByScale,g.util.getIGSDynamicLayer=s.getIGSDynamicLayer,g.util.setElevationInfo=s.setElevationInfo,g.util.TileInfoUtil=s.TileInfoUtil,g.util.getZoomOffset=s.getZoomOffset,g.util.appendUrlParams=s.appendUrlParams,g.util.getFullBaseUrl=s.getFullBaseUrl,g.util.editFeatureByArc3=u.editFeatureByArc3,g.util.editGeometryByArc3=u.editGeometryByArc3,g.util.CoordnateTransform=l.CoordnateTransform,g.util.getFeaturesFromFeatureSet=l.getFeaturesFromFeatureSet,g.util.EPSG=l.EPSG,g.util.extend=c.extend,g.util.isArray=c.isArray,g.util.isNumber=c.isNumber,g.util.isInTheSameDomain=c.isInTheSameDomain,g.util.transformResult=c.transformResult,g.util.urlAppend=c.urlAppend,g.util.getParameterString=c.getParameterString,g.util.bind=c.bind,g.util.getGUID=c.getGUID,g.util.defaultValue=c.defaultValue,g.util.defined=c.defined,g.util.normalize=c.normalize,g.util.createGeometry=c.createGeometry,g.util.isNull=c.isNull,g.util.getGeometryParameter=c.getGeometryParameter,g.util.getOutStatisticsParameter=c.getOutStatisticsParameter,g.util.Log=c.Log,g.util.isString=c.isString,g.util.deepClone=c.deepClone,g.util.isBoolean=c.isBoolean,g.util.extendDeep=c.extendDeep,g.util.newGuid=c.newGuid,g.util.formatPoints=c.formatPoints,g.util.returnPoint=c.returnPoint,g.util.cloneObject=c.cloneObject,g.util.notNULL=c.notNULL,g.util.isObject=c.isObject,g.util.getVideoType=c.getVideoType,g.util.toJSON=c.toJSON,g.util.getBaseUrl=c.getBaseUrl,g.util.inputCss=c.inputCss,g.util.getProjectionSrs=c.getProjectionSrs,g.util.isWMSReverse=c.isWMSReverse,g.util.convertImageSourceToBase64=c.convertImageSourceToBase64,g.util.throttle=c.throttle,g.util.compareObject=c.compareObject,g.util.debouncePromise=c.debouncePromise,g.util.inOrderPromise=c.inOrderPromise,g.util.allSettled=c.allSettled,g.util.ExpressionParser=c.ExpressionParser,g.util.RendererUtil=p.RendererUtil,g.util.createSimpleMarkerSymbolCanvas=y.createSimpleMarkerSymbolCanvas,g.util.createSimpleFillSymbolCanvas=y.createSimpleFillSymbolCanvas,g.util.getValidLayers=a.getValidLayers,g.util.getLayerViewsGeographicExtent=a.getLayerViewsGeographicExtent,g.util.getCrsOptions=a.getCrsOptions,g.util.getLayersExtent=a.getLayersExtent,g.util.deleteNullValue=c.deleteNullValue,g.util.UrlUtil=o.UrlUtil,g.symbol.SimpleFillSymbol=h.SimpleFillSymbol,g.symbol.SimpleLineSymbol=h.SimpleLineSymbol,g.symbol.SimpleMarkerSymbol=h.SimpleMarkerSymbol,g.symbol.TextSymbol=h.TextSymbol,g.symbol.Symbol=h.Symbol,g.symbol.PictureMarkerSymbol=h.PictureMarkerSymbol,g.symbol.PictureFillSymbol=h.PictureFillSymbol,g.symbol.MapGISTextSymbol=h.MapGISTextSymbol,g.symbol.Symbol3D=h.Symbol3D,g.symbol.LabelSymbol3D=h.LabelSymbol3D,g.symbol.LineSymbol3D=h.LineSymbol3D,g.symbol.PointSymbol3D=h.PointSymbol3D,g.symbol.PolygonSymbol3D=h.PolygonSymbol3D,g.symbol.LineCallout3D=h.LineCallout3D,g.symbol.Callout3D=h.Callout3D,g.symbol.Symbol3DVerticalOffset=h.Symbol3DVerticalOffset,g.symbol.Symbol3DLayer=h.Symbol3DLayer,g.symbol.LineStyleMarker3D=h.LineStyleMarker3D,g.symbol.LineStylePattern3D=h.LineStylePattern3D,g.symbol.LineSymbol3DLayer=h.LineSymbol3DLayer,g.symbol.PathSymbol3DLayer=h.PathSymbol3DLayer,g.symbol.FillSymbol3DLayer=h.FillSymbol3DLayer,g.symbol.FillSymbol3DOutline=h.FillSymbol3DOutline,g.symbol.IconSymbol3DLayer=h.IconSymbol3DLayer,g.symbol.PointSymbol3DOutline=h.PointSymbol3DOutline,g.symbol.IconResource=h.IconResource,g.symbol.ObjectSymbol3DLayer=h.ObjectSymbol3DLayer,g.symbol.ExtrudeSymbol3DLayer=h.ExtrudeSymbol3DLayer,g.symbol.Edges3D=h.Edges3D,g.symbol.TextSymbol3DLayer=h.TextSymbol3DLayer,g.symbol.TextHalo=h.TextHalo,g.symbol.WaterSymbol3DLayer=h.WaterSymbol3DLayer,g.symbol.ColorMaterial=h.ColorMaterial,g.symbol.StylePattern3D=h.StylePattern3D,g.symbol.Font=l.Font,g.tool.sketch={},g.tool.sketch.SketchStyle=d.SketchStyle,g.tool.sketch.SketchEditorEvent=d.SketchEditorEvent,g.tool.sketch.SketchEditor=d.SketchEditor,g.tool.sketch.SketchEditor3D=d.SketchEditor3D,g.tool.sketch.SketchBaseDrawTool=d.SketchBaseDrawTool,g.tool.sketch.SketchPointDrawTool=d.SketchPointDrawTool,g.tool.sketch.SketchPolylineDrawTool=d.SketchPolylineDrawTool,g.tool.sketch.SketchPolygonDrawTool=d.SketchPolygonDrawTool,g.tool.sketch.SketchCircleDrawTool=d.SketchCircleDrawTool,g.tool.sketch.SketchExtentDrawTool=d.SketchExtentDrawTool,g.tool.sketch.SketchFreehandPolylineDrawTool=d.SketchFreehandPolylineDrawTool,g.tool.sketch.SketchFreehandPolygonDrawTool=d.SketchFreehandPolygonDrawTool,window.Zondy={};var v=window.Zondy;v.Service=g.service,v.Geometry=g.geometry,v.Layer=g.layer,v.Enum=g.enum,v.Symbol=g.symbol,v.Widget=g.widget,v.Tool={},v.Tool.Sketch=g.widget.sketch,v.Renderer={},Object.keys(g.renderer).forEach(function(e){"visualvariable"!==e&&(v.Renderer[e]=g.renderer[e])}),v.Renderer.VisualVariable=g.renderer.visualvariable,v.Object={},v.Object.Theme={},v.Object.Theme.CAllOtherDataItemInfoSource=o.CAllOtherDataItemInfoSource,v.Object.Theme.CAnnInfo=o.CAnnInfo,v.Object.Theme.CChartLabelFormat=o.CChartLabelFormat,v.Object.Theme.CChartTheme=o.CChartTheme,v.Object.Theme.CChartThemeInfo=o.CChartThemeInfo,v.Object.Theme.CChartThemeRepresentInfo=o.CChartThemeRepresentInfo,v.Object.Theme.CChartType=o.CChartType,v.Object.Theme.CDotDensityTheme=o.CDotDensityTheme,v.Object.Theme.CFourColorTheme=o.CFourColorTheme,v.Object.Theme.CGraduatedSymbolTheme=o.CGraduatedSymbolTheme,v.Object.Theme.CLinInfo=o.CLinInfo,v.Object.Theme.CMultiClassTheme=o.CMultiClassTheme,v.Object.Theme.CPntInfo=o.CPntInfo,v.Object.Theme.CRandomTheme=o.CRandomTheme,v.Object.Theme.CRangeTheme=o.CRangeTheme,v.Object.Theme.CRangeThemeInfo=o.CRangeThemeInfo,v.Object.Theme.CRegInfo=o.CRegInfo,v.Object.Theme.CSimpleTheme=o.CSimpleTheme,v.Object.Theme.CTheme=o.CTheme,v.Object.Theme.CThemeInfo=o.CThemeInfo,v.Object.Theme.CUniqueTheme=o.CUniqueTheme,v.Object.Theme.CUniqueThemeInfo=o.CUniqueThemeInfo,v.Object.Theme.ExpInfo=o.ExpInfo,v.Object.Theme.FolderInfo=o.FolderInfo,v.Object.Theme.FolderInfoAttribute=o.FolderInfoAttribute,v.Object.Theme.ItemValue=o.ItemValue,v.Object.Theme.ThemesInfo=o.ThemesInfo,v.Object.CAttDataRow=o.CAttDataRow,v.Object.CAttStruct=o.CAttStruct,v.Utils=g.util,v.Map=s.Map,v.Basemap=s.Basemap,v.SpatialReference=u.SpatialReference,v.Color=l.Color,v.Font=l.Font,v.Collection=l.Collection,v.FeatureSet=l.FeatureSet,v.Feature=l.Feature,v.ElevationInfo=l.ElevationInfo,v.ProjectInfo=l.ProjectInfo,v.OutStatistic=l.OutStatistic,v.TileMatrixSet=l.TileMatrixSet,v.ProjectInfoBySrsID=l.ProjectInfoBySrsID,v.FeatureExpressionInfo=l.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=l.WMTSStyle,v.SketchPolygonDrawTool=d.SketchPolygonDrawTool,v.SketchStyle=d.SketchStyle,v.LogType=g.LOGTYPE,v.Version=g.VERSION;var m={FetchServer:o.FetchServer,RequestInterceptor:o.RequestInterceptor,ResponseInterceptor:o.ResponseInterceptor,MapServer:o.MapServer,FeatureServer:o.FeatureServer,M3DServer:o.M3DServer,ImageServer:o.ImageServer,GeometryServer:o.GeometryServer,AddressServer:o.AddressServer,Cesium3DTilesServer:o.Cesium3DTilesServer,PoiServer:o.PoiServer,TerrainServer:o.TerrainServer,SecurityServer:o.SecurityServer,RootServer:o.RootServer,TileServer:o.TileServer,VectorTileServer:o.VectorTileServer,PlotServer:o.PlotServer,ResourceServer:o.ResourceServer,SceneServer:o.SceneServer,WMSServer:o.WMSServer,WMTSServer:o.WMTSServer,WFSServer:o.WFSServer,ArcGISMapServer:o.ArcGISMapServer,CAllOtherDataItemInfoSource:o.CAllOtherDataItemInfoSource,CAnnInfo:o.CAnnInfo,CChartLabelFormat:o.CChartLabelFormat,CChartTheme:o.CChartTheme,CChartThemeInfo:o.CChartThemeInfo,CChartThemeRepresentInfo:o.CChartThemeRepresentInfo,CChartType:o.CChartType,CDotDensityTheme:o.CDotDensityTheme,CFourColorTheme:o.CFourColorTheme,CGraduatedSymbolTheme:o.CGraduatedSymbolTheme,CLinInfo:o.CLinInfo,CMultiClassTheme:o.CMultiClassTheme,CPntInfo:o.CPntInfo,CRandomTheme:o.CRandomTheme,CRangeTheme:o.CRangeTheme,CRangeThemeInfo:o.CRangeThemeInfo,CRegInfo:o.CRegInfo,CSimpleTheme:o.CSimpleTheme,CTheme:o.CTheme,CThemeInfo:o.CThemeInfo,CUniqueTheme:o.CUniqueTheme,CUniqueThemeInfo:o.CUniqueThemeInfo,ExpInfo:o.ExpInfo,FolderInfo:o.FolderInfo,FolderInfoAttribute:o.FolderInfoAttribute,ItemValue:o.ItemValue,ThemeServer:o.ThemeServer,ThemesInfo:o.ThemesInfo,ArcGISGeometryServer:o.ArcGISGeometryServer,ArcGISFeatureServer:o.ArcGISFeatureServer,ArcGISVectorTileServer:o.ArcGISVectorTileServer,Map:s.Map,Basemap:s.Basemap,ArcGISMapImageLayer:s.ArcGISMapImageLayer,M3DModelCacheLayer:s.M3DModelCacheLayer,ArcGISMapImageSubLayer:s.ArcGISMapImageSubLayer,ArcGISTileLayer:s.ArcGISTileLayer,WMTSLayer:s.WMTSLayer,WMSLayer:s.WMSLayer,WMSSubLayer:s.WMSSubLayer,WFSLayer:s.WFSLayer,WMTSSubLayer:s.WMTSSubLayer,IGSVectorTileLayer:s.IGSVectorTileLayer,IGSVectorTileSubLayer:s.IGSVectorTileSubLayer,IGSMapImageLayer:s.IGSMapImageLayer,IGSMapImageSubLayer:s.IGSMapImageSubLayer,IGSSceneLayer:s.IGSSceneLayer,IGSSceneSubLayer:s.IGSSceneSubLayer,IGSTileLayer:s.IGSTileLayer,Scene:s.Scene,IGSFeatureLayer:s.IGSFeatureLayer,EchartsLayer:s.EchartsLayer,MapVLayer:s.MapVLayer,GroupLayer:s.GroupLayer,GraphicsLayer:s.GraphicsLayer,GeoJSONLayer:s.GeoJSONLayer,Cesium3DTilesCacheLayer:s.Cesium3DTilesCacheLayer,TerrainCacheLayer:s.TerrainCacheLayer,VideoLayer:s.VideoLayer,Layer:s.Layer,Projection:l.Projection,WMTSStyle:l.WMTSStyle,CoordnateTransform:l.CoordnateTransform,SketchEditor:d.SketchEditor,SketchEditor3D:d.SketchEditor3D,SketchBaseDrawTool:d.SketchBaseDrawTool,SketchPointDrawTool:d.SketchPointDrawTool,SketchPolylineDrawTool:d.SketchPolylineDrawTool,SketchPolygonDrawTool:d.SketchPolygonDrawTool,SketchCircleDrawTool:d.SketchCircleDrawTool,SketchExtentDrawTool:d.SketchExtentDrawTool,SketchFreehandPolylineDrawTool:d.SketchFreehandPolylineDrawTool,SketchFreehandPolygonDrawTool:d.SketchFreehandPolygonDrawTool,SketchStyle:d.SketchStyle,SketchEditorEvent:d.SketchEditorEvent,Extent:u.Extent,Polygon:u.Polygon,LineString:u.LineString,Point:u.Point,Circle:u.Circle,MultiPolygon:u.MultiPolygon,MultiLineString:u.MultiLineString,MultiPoint:u.MultiPoint,GeometryEngine:u.GeometryEngine,Color:l.Color,Font:l.Font,LayerEvent:l.LayerEvent,Event:l.Event,Zondy:v,zondy:g,Evented:l.Evented,FeatureRender:l.FeatureRender,ErrorEvent:l.ErrorEvent,Collection:l.Collection,FeatureSet:l.FeatureSet,Feature:l.Feature,getFeaturesFromFeatureSet:l.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:l.ElevationInfo,ProjectInfo:l.ProjectInfo,OutStatistic:l.OutStatistic,TileMatrixSet:l.TileMatrixSet,ProjectInfoBySrsID:l.ProjectInfoBySrsID,FeatureExpressionInfo:l.FeatureExpressionInfo,HorizontalAlignment:f.HorizontalAlignment,VerticalAlignment:f.VerticalAlignment,SceneMode:f.SceneMode,ShadowMode:f.ShadowMode,SimpleFillSymbol:h.SimpleFillSymbol,SimpleLineSymbol:h.SimpleLineSymbol,SimpleMarkerSymbol:h.SimpleMarkerSymbol,TextSymbol:h.TextSymbol,Symbol:h.Symbol,PictureMarkerSymbol:h.PictureMarkerSymbol,PictureFillSymbol:h.PictureFillSymbol,MapGISTextSymbol:h.MapGISTextSymbol,UniqueValueRenderer:s.UniqueValueRenderer,ClassBreakRenderer:s.ClassBreakRenderer,SimpleRenderer:s.SimpleRenderer,ClusterRenderer:s.ClusterRenderer,RandomRenderer:s.RandomRenderer,RankRenderer:s.RankRenderer,HeatmapRenderer:s.HeatmapRenderer,BaseRenderer:s.BaseRenderer,getIGSDynamicLayer:s.getIGSDynamicLayer,extend:c.extend,isArray:c.isArray,isNumber:c.isNumber,isInTheSameDomain:c.isInTheSameDomain,transformResult:c.transformResult,urlAppend:c.urlAppend,getParameterString:c.getParameterString,bind:c.bind,getGUID:c.getGUID,defaultValue:c.defaultValue,defined:c.defined,normalize:c.normalize,createGeometry:c.createGeometry,isNull:c.isNull,getGeometryParameter:c.getGeometryParameter,getOutStatisticsParameter:c.getOutStatisticsParameter,Log:c.Log,isString:c.isString,deepClone:c.deepClone,isBoolean:c.isBoolean,extendDeep:c.extendDeep,newGuid:c.newGuid,formatPoints:c.formatPoints,returnPoint:c.returnPoint,cloneObject:c.cloneObject,notNULL:c.notNULL,isObject:c.isObject,getVideoType:c.getVideoType,toJSON:c.toJSON,getBaseUrl:c.getBaseUrl,inputCss:c.inputCss,BaseView:p.BaseView,MapView:p.MapView,SceneView:p.SceneView,BaseGraphicsLayerView:p.BaseGraphicsLayerView,BaseRendererLayerView:p.BaseRendererLayerView,GroupLayerView:p.GroupLayerView,LayerView:p.LayerView,SpatialReference:u.SpatialReference,UrlServerType:f.UrlServerType,PictureFormat:f.PictureFormat,getUrlType:s.getUrlType,is4326:s.is4326,isCustomSP:s.isCustomSP,EPSG:l.EPSG,proj4:n.default,T:i,showLayerByScale:s.showLayerByScale,formatBaseUrl:o.formatBaseUrl,RadiusUnit:f.RadiusUnit,Geometry:u.Geometry,editFeatureByArc3:u.editFeatureByArc3,editGeometryByArc3:u.editGeometryByArc3,Config:o.Config,ServiceConfigToken:o.ServiceConfigToken,ServiceConfigRequestInterceptors:o.ServiceConfigRequestInterceptors,createSimpleMarkerSymbolCanvas:y.createSimpleMarkerSymbolCanvas,createSimpleFillSymbolCanvas:y.createSimpleFillSymbolCanvas,BaseFeatureLayerView:p.BaseFeatureLayerView,TileInfoUtil:s.TileInfoUtil,WMTSCorporation:f.WMTSCorporation,setElevationInfo:s.setElevationInfo,LabelClass:s.LabelClass,HeatmapColorStop:s.HeatmapColorStop,SizeVariable:s.SizeVariable,ColorVariable:s.ColorVariable,OpacityVariable:s.OpacityVariable,VisualVariable:s.VisualVariable,RendererUtil:p.RendererUtil,Symbol3D:h.Symbol3D,LabelSymbol3D:h.LabelSymbol3D,LineSymbol3D:h.LineSymbol3D,PointSymbol3D:h.PointSymbol3D,PolygonSymbol3D:h.PolygonSymbol3D,LineCallout3D:h.LineCallout3D,Callout3D:h.Callout3D,Symbol3DVerticalOffset:h.Symbol3DVerticalOffset,Symbol3DLayer:h.Symbol3DLayer,Symbol3DLayerType:f.Symbol3DLayerType,LineCapType:f.LineCapType,LineJoinType:f.LineJoinType,LineMarkerPlacement:f.LineMarkerPlacement,LineMarkerStyle:f.LineMarkerStyle,LineStyleMarker3D:h.LineStyleMarker3D,LinePatternStyle:f.LinePatternStyle,LineStylePattern3D:h.LineStylePattern3D,LineSymbol3DLayer:h.LineSymbol3DLayer,PathSymbol3DLayer:h.PathSymbol3DLayer,AnchorType:f.AnchorType,ProfileType:f.ProfileType,FillSymbol3DLayer:h.FillSymbol3DLayer,FillSymbol3DOutline:h.FillSymbol3DOutline,PatternStyle:f.PatternStyle,IconSymbol3DLayer:h.IconSymbol3DLayer,PointSymbol3DOutline:h.PointSymbol3DOutline,IconResource:h.IconResource,ObjectSymbol3DLayer:h.ObjectSymbol3DLayer,ExtrudeSymbol3DLayer:h.ExtrudeSymbol3DLayer,Edges3D:h.Edges3D,TextSymbol3DLayer:h.TextSymbol3DLayer,TextHalo:h.TextHalo,WaterSymbol3DLayer:h.WaterSymbol3DLayer,WaterbodySize:f.WaterbodySize,WaveStrength:f.WaveStrength,MaterialType:f.MaterialType,ColorMaterial:h.ColorMaterial,StylePattern3D:h.StylePattern3D,ArcGISVectorTileLayer:s.ArcGISVectorTileLayer,WebTileLayer:s.WebTileLayer,getZoomOffset:s.getZoomOffset,FeatureCollection:s.FeatureCollection,CAttDataRow:o.CAttDataRow,CAttStruct:o.CAttStruct,Interceptor:o.Interceptor,WorkFlowServer:o.WorkFlowServer,TileLayer:s.TileLayer,BaseServer:o.BaseServer,RequestConfig:o.RequestConfig,OverlayLayer:s.OverlayLayer,OGCLayer:s.OGCLayer,UnknownLayer:s.UnknownLayer,getProjectionSrs:c.getProjectionSrs,isWMSReverse:c.isWMSReverse,convertImageSourceToBase64:c.convertImageSourceToBase64,throttle:c.throttle,compareObject:c.compareObject,debouncePromise:c.debouncePromise,inOrderPromise:c.inOrderPromise,allSettled:c.allSettled,LinearUnits:f.LinearUnits,AreaUnits:f.AreaUnits,ArcType:f.ArcType,FetchRequest:o.FetchRequest,TileInfo:s.TileInfo,appendUrlParams:s.appendUrlParams,getFullBaseUrl:s.getFullBaseUrl,LOD:s.LOD,SceneSubLayerType:f.SceneSubLayerType,VectorTileLayer:s.VectorTileLayer,SeverVectorTileSubLayerType:f.SeverVectorTileSubLayerType,ExpressionParser:c.ExpressionParser,VisualVariableType:f.VisualVariableType,TDTLayerType:f.TDTLayerType,TileSliceType:f.TileSliceType,getValidLayers:a.getValidLayers,getLayerViewsGeographicExtent:a.getLayerViewsGeographicExtent,getCrsOptions:a.getCrsOptions,getLayersExtent:a.getLayersExtent,deleteNullValue:c.deleteNullValue,UrlUtil:o.UrlUtil};window.MapGISCommon=m,t.FetchServer=o.FetchServer,t.RequestInterceptor=o.RequestInterceptor,t.ResponseInterceptor=o.ResponseInterceptor,t.MapServer=o.MapServer,t.FeatureServer=o.FeatureServer,t.M3DServer=o.M3DServer,t.ImageServer=o.ImageServer,t.GeometryServer=o.GeometryServer,t.AddressServer=o.AddressServer,t.Cesium3DTilesServer=o.Cesium3DTilesServer,t.PoiServer=o.PoiServer,t.TerrainServer=o.TerrainServer,t.SecurityServer=o.SecurityServer,t.RootServer=o.RootServer,t.TileServer=o.TileServer,t.VectorTileServer=o.VectorTileServer,t.PlotServer=o.PlotServer,t.ResourceServer=o.ResourceServer,t.SceneServer=o.SceneServer,t.WMSServer=o.WMSServer,t.WMTSServer=o.WMTSServer,t.WFSServer=o.WFSServer,t.ArcGISMapServer=o.ArcGISMapServer,t.CAllOtherDataItemInfoSource=o.CAllOtherDataItemInfoSource,t.CAnnInfo=o.CAnnInfo,t.CChartLabelFormat=o.CChartLabelFormat,t.CChartTheme=o.CChartTheme,t.CChartThemeInfo=o.CChartThemeInfo,t.CChartThemeRepresentInfo=o.CChartThemeRepresentInfo,t.CChartType=o.CChartType,t.CDotDensityTheme=o.CDotDensityTheme,t.CFourColorTheme=o.CFourColorTheme,t.CGraduatedSymbolTheme=o.CGraduatedSymbolTheme,t.CLinInfo=o.CLinInfo,t.CMultiClassTheme=o.CMultiClassTheme,t.CPntInfo=o.CPntInfo,t.CRandomTheme=o.CRandomTheme,t.CRangeTheme=o.CRangeTheme,t.CRangeThemeInfo=o.CRangeThemeInfo,t.CRegInfo=o.CRegInfo,t.CSimpleTheme=o.CSimpleTheme,t.CTheme=o.CTheme,t.CThemeInfo=o.CThemeInfo,t.CUniqueTheme=o.CUniqueTheme,t.CUniqueThemeInfo=o.CUniqueThemeInfo,t.ExpInfo=o.ExpInfo,t.FolderInfo=o.FolderInfo,t.FolderInfoAttribute=o.FolderInfoAttribute,t.ItemValue=o.ItemValue,t.ThemeServer=o.ThemeServer,t.ThemesInfo=o.ThemesInfo,t.ArcGISGeometryServer=o.ArcGISGeometryServer,t.ArcGISFeatureServer=o.ArcGISFeatureServer,t.ArcGISVectorTileServer=o.ArcGISVectorTileServer,t.Map=s.Map,t.Basemap=s.Basemap,t.ArcGISMapImageLayer=s.ArcGISMapImageLayer,t.M3DModelCacheLayer=s.M3DModelCacheLayer,t.ArcGISMapImageSubLayer=s.ArcGISMapImageSubLayer,t.ArcGISTileLayer=s.ArcGISTileLayer,t.WMTSLayer=s.WMTSLayer,t.WMSLayer=s.WMSLayer,t.WMSSubLayer=s.WMSSubLayer,t.WFSLayer=s.WFSLayer,t.WMTSSubLayer=s.WMTSSubLayer,t.IGSVectorTileLayer=s.IGSVectorTileLayer,t.IGSVectorTileSubLayer=s.IGSVectorTileSubLayer,t.IGSMapImageLayer=s.IGSMapImageLayer,t.IGSMapImageSubLayer=s.IGSMapImageSubLayer,t.IGSSceneLayer=s.IGSSceneLayer,t.IGSSceneSubLayer=s.IGSSceneSubLayer,t.IGSTileLayer=s.IGSTileLayer,t.Scene=s.Scene,t.IGSFeatureLayer=s.IGSFeatureLayer,t.EchartsLayer=s.EchartsLayer,t.MapVLayer=s.MapVLayer,t.GroupLayer=s.GroupLayer,t.GraphicsLayer=s.GraphicsLayer,t.GeoJSONLayer=s.GeoJSONLayer,t.Cesium3DTilesCacheLayer=s.Cesium3DTilesCacheLayer,t.TerrainCacheLayer=s.TerrainCacheLayer,t.VideoLayer=s.VideoLayer,t.Layer=s.Layer,t.Projection=l.Projection,t.WMTSStyle=l.WMTSStyle,t.CoordnateTransform=l.CoordnateTransform,t.SketchEditor=d.SketchEditor,t.SketchEditor3D=d.SketchEditor3D,t.SketchBaseDrawTool=d.SketchBaseDrawTool,t.SketchPointDrawTool=d.SketchPointDrawTool,t.SketchPolylineDrawTool=d.SketchPolylineDrawTool,t.SketchPolygonDrawTool=d.SketchPolygonDrawTool,t.SketchCircleDrawTool=d.SketchCircleDrawTool,t.SketchExtentDrawTool=d.SketchExtentDrawTool,t.SketchFreehandPolylineDrawTool=d.SketchFreehandPolylineDrawTool,t.SketchFreehandPolygonDrawTool=d.SketchFreehandPolygonDrawTool,t.SketchStyle=d.SketchStyle,t.SketchEditorEvent=d.SketchEditorEvent,t.Extent=u.Extent,t.Polygon=u.Polygon,t.LineString=u.LineString,t.Point=u.Point,t.Circle=u.Circle,t.MultiPolygon=u.MultiPolygon,t.MultiLineString=u.MultiLineString,t.MultiPoint=u.MultiPoint,t.GeometryEngine=u.GeometryEngine,t.Color=l.Color,t.Font=l.Font,t.LayerEvent=l.LayerEvent,t.Event=l.Event,t.Zondy=v,t.zondy=g,t.Evented=l.Evented,t.FeatureRender=l.FeatureRender,t.ErrorEvent=l.ErrorEvent,t.Collection=l.Collection,t.FeatureSet=l.FeatureSet,t.Feature=l.Feature,t.getFeaturesFromFeatureSet=l.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=l.ElevationInfo,t.ProjectInfo=l.ProjectInfo,t.OutStatistic=l.OutStatistic,t.TileMatrixSet=l.TileMatrixSet,t.ProjectInfoBySrsID=l.ProjectInfoBySrsID,t.FeatureExpressionInfo=l.FeatureExpressionInfo,t.HorizontalAlignment=f.HorizontalAlignment,t.VerticalAlignment=f.VerticalAlignment,t.SceneMode=f.SceneMode,t.ShadowMode=f.ShadowMode,t.SimpleFillSymbol=h.SimpleFillSymbol,t.SimpleLineSymbol=h.SimpleLineSymbol,t.SimpleMarkerSymbol=h.SimpleMarkerSymbol,t.TextSymbol=h.TextSymbol,t.Symbol=h.Symbol,t.PictureMarkerSymbol=h.PictureMarkerSymbol,t.PictureFillSymbol=h.PictureFillSymbol,t.MapGISTextSymbol=h.MapGISTextSymbol,t.UniqueValueRenderer=s.UniqueValueRenderer,t.ClassBreakRenderer=s.ClassBreakRenderer,t.SimpleRenderer=s.SimpleRenderer,t.ClusterRenderer=s.ClusterRenderer,t.RandomRenderer=s.RandomRenderer,t.RankRenderer=s.RankRenderer,t.HeatmapRenderer=s.HeatmapRenderer,t.BaseRenderer=s.BaseRenderer,t.getIGSDynamicLayer=s.getIGSDynamicLayer,t.extend=c.extend,t.isArray=c.isArray,t.isNumber=c.isNumber,t.isInTheSameDomain=c.isInTheSameDomain,t.transformResult=c.transformResult,t.urlAppend=c.urlAppend,t.getParameterString=c.getParameterString,t.bind=c.bind,t.getGUID=c.getGUID,t.defaultValue=c.defaultValue,t.defined=c.defined,t.normalize=c.normalize,t.createGeometry=c.createGeometry,t.isNull=c.isNull,t.getGeometryParameter=c.getGeometryParameter,t.getOutStatisticsParameter=c.getOutStatisticsParameter,t.Log=c.Log,t.isString=c.isString,t.deepClone=c.deepClone,t.isBoolean=c.isBoolean,t.extendDeep=c.extendDeep,t.newGuid=c.newGuid,t.formatPoints=c.formatPoints,t.returnPoint=c.returnPoint,t.cloneObject=c.cloneObject,t.notNULL=c.notNULL,t.isObject=c.isObject,t.getVideoType=c.getVideoType,t.toJSON=c.toJSON,t.getBaseUrl=c.getBaseUrl,t.inputCss=c.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=u.SpatialReference,t.UrlServerType=f.UrlServerType,t.PictureFormat=f.PictureFormat,t.getUrlType=s.getUrlType,t.is4326=s.is4326,t.isCustomSP=s.isCustomSP,t.EPSG=l.EPSG,t.proj4=n.default,t.T=i,t.showLayerByScale=s.showLayerByScale,t.formatBaseUrl=o.formatBaseUrl,t.RadiusUnit=f.RadiusUnit,t.Geometry=u.Geometry,t.editFeatureByArc3=u.editFeatureByArc3,t.editGeometryByArc3=u.editGeometryByArc3,t.Config=o.Config,t.ServiceConfigToken=o.ServiceConfigToken,t.ServiceConfigRequestInterceptors=o.ServiceConfigRequestInterceptors,t.createSimpleMarkerSymbolCanvas=y.createSimpleMarkerSymbolCanvas,t.createSimpleFillSymbolCanvas=y.createSimpleFillSymbolCanvas,t.BaseFeatureLayerView=p.BaseFeatureLayerView,t.TileInfoUtil=s.TileInfoUtil,t.WMTSCorporation=f.WMTSCorporation,t.setElevationInfo=s.setElevationInfo,t.LabelClass=s.LabelClass,t.HeatmapColorStop=s.HeatmapColorStop,t.SizeVariable=s.SizeVariable,t.ColorVariable=s.ColorVariable,t.OpacityVariable=s.OpacityVariable,t.VisualVariable=s.VisualVariable,t.RendererUtil=p.RendererUtil,t.Symbol3D=h.Symbol3D,t.LabelSymbol3D=h.LabelSymbol3D,t.LineSymbol3D=h.LineSymbol3D,t.PointSymbol3D=h.PointSymbol3D,t.PolygonSymbol3D=h.PolygonSymbol3D,t.LineCallout3D=h.LineCallout3D,t.Callout3D=h.Callout3D,t.Symbol3DVerticalOffset=h.Symbol3DVerticalOffset,t.Symbol3DLayer=h.Symbol3DLayer,t.Symbol3DLayerType=f.Symbol3DLayerType,t.LineCapType=f.LineCapType,t.LineJoinType=f.LineJoinType,t.LineMarkerPlacement=f.LineMarkerPlacement,t.LineMarkerStyle=f.LineMarkerStyle,t.LineStyleMarker3D=h.LineStyleMarker3D,t.LinePatternStyle=f.LinePatternStyle,t.LineStylePattern3D=h.LineStylePattern3D,t.LineSymbol3DLayer=h.LineSymbol3DLayer,t.PathSymbol3DLayer=h.PathSymbol3DLayer,t.AnchorType=f.AnchorType,t.ProfileType=f.ProfileType,t.FillSymbol3DLayer=h.FillSymbol3DLayer,t.FillSymbol3DOutline=h.FillSymbol3DOutline,t.PatternStyle=f.PatternStyle,t.IconSymbol3DLayer=h.IconSymbol3DLayer,t.PointSymbol3DOutline=h.PointSymbol3DOutline,t.IconResource=h.IconResource,t.ObjectSymbol3DLayer=h.ObjectSymbol3DLayer,t.ExtrudeSymbol3DLayer=h.ExtrudeSymbol3DLayer,t.Edges3D=h.Edges3D,t.TextSymbol3DLayer=h.TextSymbol3DLayer,t.TextHalo=h.TextHalo,t.WaterSymbol3DLayer=h.WaterSymbol3DLayer,t.WaterbodySize=f.WaterbodySize,t.WaveStrength=f.WaveStrength,t.MaterialType=f.MaterialType,t.ColorMaterial=h.ColorMaterial,t.StylePattern3D=h.StylePattern3D,t.ArcGISVectorTileLayer=s.ArcGISVectorTileLayer,t.WebTileLayer=s.WebTileLayer,t.getZoomOffset=s.getZoomOffset,t.FeatureCollection=s.FeatureCollection,t.CAttDataRow=o.CAttDataRow,t.CAttStruct=o.CAttStruct,t.Interceptor=o.Interceptor,t.WorkFlowServer=o.WorkFlowServer,t.TileLayer=s.TileLayer,t.BaseServer=o.BaseServer,t.RequestConfig=o.RequestConfig,t.UnknownLayer=s.UnknownLayer,t.OverlayLayer=s.OverlayLayer,t.OGCLayer=s.OGCLayer,t.getProjectionSrs=c.getProjectionSrs,t.isWMSReverse=c.isWMSReverse,t.convertImageSourceToBase64=c.convertImageSourceToBase64,t.throttle=c.throttle,t.compareObject=c.compareObject,t.debouncePromise=c.debouncePromise,t.inOrderPromise=c.inOrderPromise,t.allSettled=c.allSettled,t.LinearUnits=f.LinearUnits,t.AreaUnits=f.AreaUnits,t.ArcType=f.ArcType,t.FetchRequest=o.FetchRequest,t.TileInfo=s.TileInfo,t.appendUrlParams=s.appendUrlParams,t.getFullBaseUrl=s.getFullBaseUrl,t.LOD=s.LOD,t.convertIGSClippingString=o.convertIGSClippingString,t.SceneSubLayerType=f.SceneSubLayerType,t.GeometryFilter=o.GeometryFilter,t.ColorNameToHexMap=f.ColorNameToHexMap,t.SeverVectorTileSubLayerType=f.SeverVectorTileSubLayerType,t.VisualVariableType=f.VisualVariableType,t.TDTLayerType=f.TDTLayerType,t.TileSliceType=f.TileSliceType,t.VectorTileLayer=s.VectorTileLayer,t.ExpressionParser=c.ExpressionParser,t.isLayerViewValid=a.isLayerViewValid,t.getValidLayers=a.getValidLayers,t.getLayerViewsGeographicExtent=a.getLayerViewsGeographicExtent,t.getCrsOptions=a.getCrsOptions,t.getLayersExtent=a.getLayersExtent,t.deleteNullValue=c.deleteNullValue,t.UrlUtil=o.UrlUtil},function(e,t,r){"use strict";r.r(t);var n=r(183),i=r(189),o=r(190),a=r(193),s=r(195),u=r(196),l=r(53),c=r(103);function f(e,t){if(!(this instanceof f))return new f(e);t=t||function(e){if(e)throw e};var r=Object(n.default)(e);if("object"==typeof r){var o=f.projections.get(r.projName);if(o){if(r.datumCode&&"none"!==r.datumCode){var h=Object(l.default)(s.default,r.datumCode);h&&(r.datum_params=r.datum_params||(h.towgs84?h.towgs84.split(","):null),r.ellps=h.ellipse,r.datumName=h.datumName?h.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 p=Object(a.sphere)(r.a,r.b,r.rf,r.ellps,r.sphere),d=Object(a.eccentricity)(p.a,p.b,p.rf,r.R_A),y=Object(c.getNadgrids)(r.nadgrids),g=r.datum||Object(u.default)(r.datumCode,r.datum_params,p.a,p.b,d.es,d.ep2,y);Object(i.default)(this,r),Object(i.default)(this,o),this.a=p.a,this.b=p.b,this.rf=p.rf,this.sphere=p.sphere,this.es=d.es,this.e=d.e,this.ep2=d.ep2,this.datum=g,this.init(),t(null,this)}else t(e)}else t(e)}f.projections=o.default,f.projections.start(),t.default=f},function(e,t,r){"use strict";r.r(t),t.default=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])))}},function(e,t,r){"use strict";r.r(t),t.default=function(e,t,r){var n=t*r;return e/Math.sqrt(1-n*n)}},function(e,t,r){"use strict";r.r(t),t.default=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}},function(e,t,r){"use strict";r.r(t),t.default=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}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r(0),a=function(e){return e&&e.__esModule?e:{default:e}}(r(44)),s=r(21);var u=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),i(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,o.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":n(e))&&(t=[],Object.keys(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 t=!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,o.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 Object.keys(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)}):Object.keys(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=void 0;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 s.CollectionChangeEvent(e),!1),this.fire("collection-refresh",new s.CollectionChangeEvent(e),!1),this._parentCollection)for(var t=this._parentCollection;t;)t.fire("collection-refresh",new s.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,o.defaultValue)(e,this._items.length),e=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,o.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}();Object.defineProperties(u.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=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.family=(0,i.defaultValue)(t.family,"微软雅黑"),this.size=(0,i.defaultValue)(t.size,12),this.style=(0,i.defaultValue)(t.style,"normal"),this.weight=(0,i.defaultValue)(t.weight,"normal"),this.decoration=(0,i.defaultValue)(t.decoration,"none")}return n(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,i.defaultValue)(t,{}))}}]),e}();t.default=o},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(121)),i=a(r(327)),o=r(328);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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=u(r(317)),s=u(r(318));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));e=(0,i.defaultValue)(e,{}),r.type=o.SymbolType.simpleLine,r.cap=(0,i.defaultValue)(e.cap,"round"),r.join=(0,i.defaultValue)(e.join,"round"),r.miterLimit=(0,i.defaultValue)(e.miterLimit,2),r.style=(0,i.defaultValue)(e.style,"solid");var n=(0,i.defaultValue)(e.marker,null);return n?(n.color=(0,i.defaultValue)(n.color,r.color.clone()),r.marker=s.default.fromJSON(n)):r.marker=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,i.defaultValue)(e,{}))}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(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=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.default=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,n.defaultValue)(t,{}),this.before=(0,n.defaultValue)(t.success,void 0),this.failure=(0,n.defaultValue)(t.failure,void 0)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.default=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,n.defaultValue)(t,{}),this.success=(0,n.defaultValue)(t.success,void 0),this.failure=(0,n.defaultValue)(t.failure,void 0)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);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(3),i=r(1),o=r(2),a=r(0),s=r(38);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())),a=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 f=256;e.imageWidth&&e.imageHeight&&(f=Math.max(e.imageWidth,e.imageHeight)),l=s.TileInfoUtil.generateTileInfo(o,f,c)}var h=n.Point.toCoordinates(l.origin),p=[];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}))}p=p.concat(t)}),0===p.length&&(p=l.lods),p.sort(function(e,t){return t.resolution-e.resolution});for(var d=[p[0]],y=1;y<p.length;y++){var g=p[y];d[d.length-1].resolution/g.resolution<=u||d.push(g)}return d.forEach(function(e,t){e.level=t}),{spatialReference:c,resolutions:d.map(function(e){return e.resolution}),origin:h,extent:o,lods:d,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}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(7),a=r(0),s=r(3);var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));e=(0,a.defaultValue)(e,{}),r.id=(0,a.defaultValue)(e.id,(0,a.getGUID)()),r.layerIndex=(0,a.defaultValue)(e.layerIndex,0),r.layerRenderIndex=(0,a.defaultValue)(e.layerRenderIndex,0),r.type=(0,a.defaultValue)(e.layerType,void 0),r.renderType=(0,a.defaultValue)(e.layerRenderType,void 0),r._labelingInfo=(0,a.defaultValue)(e.labelingInfo,[]),r.beginLevel=(0,a.defaultValue)(e.beginLevel,-1),r.endLevel=(0,a.defaultValue)(e.endLevel,-1),r._renderer=(0,a.defaultValue)(e.renderer,void 0),e.originalPoints?r.originPoint=new s.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,a.defaultValue)(e.url||e.gdbpUrl,void 0),e.range?r.range=new s.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 s.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,a.defaultValue)(e.layer,void 0),r.spatialReference=(0,a.defaultValue)(e.spatialReference,void 0);var n=e.sublayers;if(r.sublayers=new i.Collection,n instanceof Array)for(var o=0;o<n.length;o++)r.sublayers.add(new t(n[o]));else n instanceof i.Collection&&n.forEach(function(e){r.sublayers.add(new t(e))});return r.elevationScale=(0,a.defaultValue)(e.elevationScale,void 0),r.requestVertexNormals=(0,a.defaultValue)(e.requestVertexNormals,!1),r.labelLayer=(0,a.defaultValue)(e.labelLayer,void 0),r.layerName=(0,a.defaultValue)(e.layerName,void 0),r._opacity=(0,a.defaultValue)(e.opacity,1),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.SubLayer),n(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,a.toJSON)(this.sublayers[r],t));var n=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return n=Object.assign(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}();u.fromJSON=function(e){return new u(e)},Object.defineProperties(u.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=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(7),o=r(0),a=r(1);var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,o.defaultValue)(e,{}),r.type=a.LayerType.overlay,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Layer),n(t,[{key:"toJSON",value:function(){return function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this)}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2);var o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Collection),n(t,[{key:"createInstance",value:function(e){var t=e;return e instanceof i.Feature||(t=i.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}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(0),a=r(1),s=p(r(52)),u=r(3),l=p(r(173)),c=p(r(97)),f=p(r(453)),h=r(38);function p(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e=(0,o.defaultValue)(e,{}),r._map=null,r._id=(0,o.getGUID)(),r._cursor=(0,o.defaultValue)(e.cursor,void 0),r.scale=(0,o.defaultValue)(e.scale,void 0),r.minScale=void 0,r.maxScale=void 0,r.rotation=0,r.center=(0,o.defaultValue)(e.center,[0,0]),r.minZoom=(0,o.defaultValue)(e.minZoom,0),r.maxZoom=(0,o.defaultValue)(e.maxZoom,19),r.zoom=(0,o.defaultValue)(e.zoom,1),r.extensionOptions=(0,o.defaultValue)(e.extensionOptions,{}),r.extendProps=(0,o.defaultValue)(e.extendProps,{}),r.popup=void 0,r.stationary=!0,r._spatialReference=new u.SpatialReference("EPSG:4326"),r.layerViews=new i.Collection,r.basemapLayerViews=new i.Collection,r._viewLayersMap=new l.default,r._graphicsLayers=r._viewLayersMap.groupLayer,r._viewLayersGroupLayerView=void 0,r._setViewLayers(r._graphicsLayers),r.allLayerViews=new i.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,o.defaultValue)(e.viewId,""),r._innerView=null,r._initCursor(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Evented),n(t,[{key:"setMap",value:function(e){this._map||(this._map=e instanceof l.default?e:l.default.fromJSON(e),this._linkMapEvent(this._map),this._linkLayerEvent(this._map),this._map._loadLayers(),this.groupLayerView=new c.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 f.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(a.LayerEventType[r],function(e){var t=e;t instanceof i.Event?t.addProperty("view",n):t&&(t.view=n),n.fire(a.LayerEventType[r],t)},e)};for(var n in a.LayerEventType)r(n)}}},{key:"_linkMapEvent",value:function(e){var t=this;if(e){var r=function(r){var n=t;e.on(a.MapEventType[r],function(e){var t=e;t instanceof i.Event?t.addProperty("view",n):t&&(t.view=n),n.fire(a.MapEventType[r],t)})};for(var n in a.MapEventType)r(n)}}},{key:"_getLayerView",value:function(e){if(e)return this._findLayerViewById(e.id)}},{key:"_initMapEventHandlers",value:function(){this.on(a.MapEventType.layerLoaded,this._processEvent,this),this.on(a.MapEventType.layerChange,this._processEvent,this),this.on(a.LayerEventType.layerUpdate,this._processEvent,this),this.on(a.MapEventType.basemapChange,this._processEvent,this)}},{key:"_processEvent",value:function(e){e.type===a.MapEventType.layerChange&&this._processLayerChange(e),e.type===a.MapEventType.layerLoaded&&this._processLayerLoad(e),e.type===a.LayerEventType.layerUpdate&&e.layer instanceof h.Layer&&this._updateLayerView(e.layer,e),e.type===a.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=Promise.resolve()),this._prePromise=this._prePromise.then(function(){return t._loadViewSpatialReference().then(function(e){if(!1!==e){var n=Promise.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){o.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,a=e.sourceTarget,s=this._findGroupLayerViewById(a.id);if(s){var u=void 0;0===n.length&&0===r.length&&0===i.length?u=s.removeAll():n.length>0&&(u=s.removeMany(n)),u&&u.then(function(){return t._loadViewSpatialReference().then().catch(function(e){o.Log.info(e)})}),i.length>0&&i.forEach(function(e){s.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 Promise(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 Promise(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 u.Point({coordinates:r,spatialReference:new u.SpatialReference(n)})}else e.center instanceof u.Point?t=u.Point.fromJSON(e.center):e.center instanceof u.Point||o.Log.error("center类型为不支持的类型!");t.spatialReference.isGeographic||(t=i.Projection.project(t,new u.SpatialReference({wkid:4326})))}return t}},{key:"_getFlyToExtent",value:function(e){var t=void 0;return e.extent&&(e.extent instanceof u.Extent?(t=u.Extent.fromJSON(e.extent)).spatialReference.isGeographic||(t=i.Projection.project(t,new u.SpatialReference({wkid:4326}))):o.Log.error("extent类型为不支持的类型!")),t}},{key:"_updateLayerView",value:function(e,t){var r=this,n=this._findLayerViewById(e.id);return n instanceof s.default?n.onUpdate(t).then(function(){return n}).then(function(n){o.Log.info("更新图层",e),t&&(t.addProperty("view",self),t.addProperty("layerView",n)),r.dispatchEvent(a.LayerEventType.layerViewUpdate,t)}):(o.Log.info("图层更新失败,未找到该类型的视图!"),Promise.resolve())}},{key:"dispatchEvent",value:function(e,t,r){return t instanceof i.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 c.default&&n.layerViews.remove(t)}}}},{key:"_showLayerByScale",value:function(){var e=this;this._map.allLayers.forEach(function(t){(0,h.showLayerByScale)(e,t)})}},{key:"_orderLayerView",value:function(e,t){if(e instanceof c.default)this._moveGroupLayerView(e,t);else if(t instanceof c.default){var r=this._getLastLayerView(t);this._moveLayerView(e,r)}else if(t instanceof c.default&&e instanceof c.default){var n=this._getLastLayerView(t);this._moveGroupLayerView(e,n)}else this._moveLayerView(e,t)}},{key:"_isLayerViewSupportReorder",value:function(e){return!(e.layer instanceof h.IGSFeatureLayer||e.layer instanceof h.M3DModelCacheLayer||e.layer instanceof h.IGSSceneLayer||e.layer instanceof h.TerrainCacheLayer||e.layer instanceof h.Cesium3DTilesCacheLayer||e.layer instanceof h.GeoJSONLayer||e.layer instanceof h.WFSLayer||e.layer instanceof h.GroupLayer||e.layer instanceof h.EchartsLayer||e.layer instanceof h.MapVLayer)}},{key:"_moveGroupLayerView",value:function(e,t){var r=this;e.allLayerViews.forEach(function(e){e instanceof c.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 c.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 u.Geometry)e instanceof u.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 i.Collection&&(r=e.items),r.forEach(function(e){var t=void 0;e instanceof u.Extent?t=e:e instanceof u.Geometry&&e.extent&&(t=e.extent),t.spatialReference.isGeographic||(t=i.Projection.project(t.clone(),new u.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 c.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,o.toJSON)(this._center,u.Point),minZoom:this.minZoom,maxZoom:this.maxZoom,zoom:this.zoom,extensionOptions:this.extensionOptions,extendProps:this.extendProps}}}]),t}();Object.defineProperties(d.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=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(52)),o=r(2),a=r(1),s=r(64),u=r(0);var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.layerViews=e.layerViews||new o.Collection,r.allLayerViews=new o.CollectionFlattener({getCollections:function(){return[r.layerViews]},getChildrenFunction:function(e){return e.layerViews}}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(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 Promise.resolve([]);var n=this.view,o=this.layer,l=e.filter(function(e){return e&&(e.loaded||e.type===a.LayerType.group)&&o.findLayerById(e.id)&&!r._findLayerViewById(e.id)}).map(function(e){return n._createLayerView(e)}).filter(function(e){return e}),c=(0,s.inOrderPromise)(l.map(function(e){return function(){return e.onAdd().catch(function(t){u.Log.error(t),r._fireLayerCreatedError(e.layer,e,t)}).then(function(e){return e||void 0})}}));return c.catch(function(e){r._fireLayerCreatedError(r.layer,r,e)}),c.then(function(e){var n=e.filter(function(e){return e instanceof i.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 Promise.resolve([]);var r=e.map(function(e){return t._findLayerViewById(e.id)}).filter(function(e){return e});return 0===r.length?Promise.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){u.Log.error(e)})});return(0,s.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];if(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)});else 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 Promise.all(r.map(function(t){return t.onUpdate(e)})).then(function(){return t})}},{key:"_setItemParent",value:function(e,t){(e instanceof o.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 i.default){if(n instanceof t){var o=n.layerViews.items;this._fireLayerViewCreatedByLayerViews(o)}this._fireLayerViewCreated(n.layer,n)}}}},{key:"_fireLayerViewCreated",value:function(e,t){var r=new o.LayerEvent({type:a.LayerEventType.layerViewCreated,message:"图层在视图中创建完毕",layer:e});r.addProperty("view",this.view),r.addProperty("layerView",t),e.fire(a.LayerEventType.layerViewCreated,r),this.view.fire(a.LayerEventType.layerViewCreated,r)}},{key:"_fireLayerCreatedError",value:function(e,t,r){var n=new o.LayerEvent({type:a.LayerEventType.layerViewCreatedError,target:e,error:r||"图层在视图中创建失败",layer:e});n.addProperty("view",this.view),n.addProperty("layerView",t),e.fire(a.LayerEventType.layerViewCreatedError,n),this.view.fire(a.LayerEventType.layerViewCreatedError,n)}},{key:"_fireLayerViewRemove",value:function(e,t){var r=new o.LayerEvent({type:a.LayerEventType.layerViewRemove,message:"移除图层视图",layer:e});r.addProperty("view",this.view),r.addProperty("layerView",t),e.fire(a.LayerEventType.layerViewRemove,r),this.view.fire(a.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}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchEditorEvent=void 0;var n=r(0);t.SketchEditorEvent=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=(0,n.defaultValue)(t,{});this.type=(0,n.defaultValue)(r.type,""),this.toolEventInfo=(0,n.defaultValue)(r.toolEventInfo,null),this.state=(0,n.defaultValue)(r.state,null),this.feature=(0,n.defaultValue)(r.feature,null)}},function(e,t,r){"use strict";r.r(t);var n=r(182),i=r(72),o=r(200),a=r(106),s=r(100),u=r(103),l=r(104),c=r(107),f=r(201);n.default.defaultDatum="WGS84",n.default.Proj=i.default,n.default.WGS84=new n.default.Proj("WGS84"),n.default.Point=o.default,n.default.toPoint=a.default,n.default.defs=s.default,n.default.nadgrid=u.default,n.default.transform=l.default,n.default.mgrs=c.default,n.default.version="__VERSION__",Object(f.default)(n.default),t.default=n.default},function(e,t,r){"use strict";r.r(t);var n=r(184),i=r(101),o=r(102);function a(e){var t=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?a[e]=Object(i.default)(arguments[1]):a[e]=Object(o.default)(arguments[1]):a[e]=r}else if(1===arguments.length){if(Array.isArray(e))return e.map(function(e){Array.isArray(e)?a.apply(t,e):a(e)});if("string"==typeof e){if(e in a)return a[e]}else"EPSG"in e?a["EPSG:"+e.EPSG]=e:"ESRI"in e?a["ESRI:"+e.ESRI]=e:"IAU2000"in e?a["IAU2000:"+e.IAU2000]=e:console.log(e);return}}Object(n.default)(a),t.default=a},function(e,t,r){"use strict";r.r(t);var n=r(4),i=r(185),o=r(186),a=r(53);t.default=function(e){var t,r,s,u={},l=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},{}),c={proj:"projName",datum:"datumCode",rf:function(e){u.rf=parseFloat(e)},lat_0:function(e){u.lat0=e*n.D2R},lat_1:function(e){u.lat1=e*n.D2R},lat_2:function(e){u.lat2=e*n.D2R},lat_ts:function(e){u.lat_ts=e*n.D2R},lon_0:function(e){u.long0=e*n.D2R},lon_1:function(e){u.long1=e*n.D2R},lon_2:function(e){u.long2=e*n.D2R},alpha:function(e){u.alpha=parseFloat(e)*n.D2R},gamma:function(e){u.rectified_grid_angle=parseFloat(e)},lonc:function(e){u.longc=e*n.D2R},x_0:function(e){u.x0=parseFloat(e)},y_0:function(e){u.y0=parseFloat(e)},k_0:function(e){u.k0=parseFloat(e)},k:function(e){u.k0=parseFloat(e)},a:function(e){u.a=parseFloat(e)},b:function(e){u.b=parseFloat(e)},r_a:function(){u.R_A=!0},zone:function(e){u.zone=parseInt(e,10)},south:function(){u.utmSouth=!0},towgs84:function(e){u.datum_params=e.split(",").map(function(e){return parseFloat(e)})},to_meter:function(e){u.to_meter=parseFloat(e)},units:function(e){u.units=e;var t=Object(a.default)(o.default,e);t&&(u.to_meter=t.to_meter)},from_greenwich:function(e){u.from_greenwich=e*n.D2R},pm:function(e){var t=Object(a.default)(i.default,e);u.from_greenwich=(t||parseFloat(e))*n.D2R},nadgrids:function(e){"@null"===e?u.datumCode="none":u.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))&&(u.axis=e)},approx:function(){u.approx=!0}};for(t in l)r=l[t],t in c?"function"==typeof(s=c[t])?s(r):u[s]=r:u[t]=r;return"string"==typeof u.datumCode&&"WGS84"!==u.datumCode&&(u.datumCode=u.datumCode.toLowerCase()),u}},function(e,t,r){"use strict";r.r(t);var n=r(187),i=r(188),o=.017453292519943295,a=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function s(e){return e*o}function u(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 u(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",s],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",s],["x0","false_easting",u],["y0","false_northing",u],["long0","central_meridian",s],["lat0","latitude_of_origin",s],["lat0","standard_parallel_1",s],["lat1","standard_parallel_1",s],["lat2","standard_parallel_2",s],["azimuth","Azimuth"],["alpha","azimuth",s],["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=s(e.lat0>0?90:-90)):(e.lat0=s(e.lat1>0?90:-90),e.lat_ts=e.lat1)}t.default=function(e){var t=Object(n.default)(e),r=t[0],o={};return Object(i.sExpr)(t,o),function e(t){for(var r=Object.keys(t),n=0,i=r.length;n<i;++n){var o=r[n];-1!==a.indexOf(o)&&u(t[o]),"object"==typeof t[o]&&e(t[o])}}(o),o[r]}},function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return i}),r.d(t,"getNadgrids",function(){return o});var n={};function i(e,t){var r=new DataView(t),i=function(e){var t=e.getInt32(8,!1);if(11===t)return!1;11!==(t=e.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(r),o=function(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:u(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,i);o.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var a={header:o,subgrids:function(e,t,r){for(var n=[],i=0;i<t.nSubgrids;i++){var o=c(e,176,r),a=f(e,176,o,r),u=Math.round(1+(o.upperLongitude-o.lowerLongitude)/o.longitudeInterval),h=Math.round(1+(o.upperLatitude-o.lowerLatitude)/o.latitudeInterval);n.push({ll:[s(o.lowerLongitude),s(o.lowerLatitude)],del:[s(o.longitudeInterval),s(o.latitudeInterval)],lim:[u,h],count:o.gridNodeCount,cvs:l(a)})}return n}(r,o,i)};return n[e]=a,a}function o(e){return void 0===e?null:e.split(",").map(a)}function a(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:n[e]||null,isNull:!1}}function s(e){return e/3600*Math.PI/180}function u(e,t,r){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,r)))}function l(e){return e.map(function(e){return[s(e.longitudeShift),s(e.latitudeShift)]})}function c(e,t,r){return{name:u(e,t+8,t+16).trim(),parent:u(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 f(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(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return l});var n=r(4),i=r(197),o=r(198),a=r(72),s=r(106),u=r(199);function l(e,t,r,c){var f,h=void 0!==(r=Array.isArray(r)?Object(s.default)(r):{x:r.x,y:r.y,z:r.z,m:r.m}).z;if(Object(u.default)(r),e.datum&&t.datum&&function(e,t){return(e.datum.datum_type===n.PJD_3PARAM||e.datum.datum_type===n.PJD_7PARAM||e.datum.datum_type===n.PJD_GRIDSHIFT)&&"WGS84"!==t.datumCode||(t.datum.datum_type===n.PJD_3PARAM||t.datum.datum_type===n.PJD_7PARAM||t.datum.datum_type===n.PJD_GRIDSHIFT)&&"WGS84"!==e.datumCode}(e,t)&&(r=l(e,f=new a.default("WGS84"),r,c),e=f),c&&"enu"!==e.axis&&(r=Object(o.default)(e,!1,r)),"longlat"===e.projName)r={x:r.x*n.D2R,y:r.y*n.D2R,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=Object(i.default)(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*n.R2D,y:r.y*n.R2D,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})),c&&"enu"!==t.axis?Object(o.default)(t,!0,r):(h||delete r.z,r)}},function(e,t,r){"use strict";r.r(t),r.d(t,"compareDatums",function(){return i}),r.d(t,"geodeticToGeocentric",function(){return o}),r.d(t,"geocentricToGeodetic",function(){return a}),r.d(t,"geocentricToWgs84",function(){return s}),r.d(t,"geocentricFromWgs84",function(){return u});var n=r(4);function i(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.PJD_3PARAM?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!==n.PJD_7PARAM||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]))}function o(e,t,r){var i,o,a,s,u=e.x,l=e.y,c=e.z?e.z:0;if(l<-n.HALF_PI&&l>-1.001*n.HALF_PI)l=-n.HALF_PI;else if(l>n.HALF_PI&&l<1.001*n.HALF_PI)l=n.HALF_PI;else{if(l<-n.HALF_PI)return{x:-1/0,y:-1/0,z:e.z};if(l>n.HALF_PI)return{x:1/0,y:1/0,z:e.z}}return u>Math.PI&&(u-=2*Math.PI),o=Math.sin(l),s=Math.cos(l),a=o*o,{x:((i=r/Math.sqrt(1-t*a))+c)*s*Math.cos(u),y:(i+c)*s*Math.sin(u),z:(i*(1-t)+c)*o}}function a(e,t,r,i){var o,a,s,u,l,c,f,h,p,d,y,g,v,m,_,b=e.x,S=e.y,x=e.z?e.z:0;if(o=Math.sqrt(b*b+S*S),a=Math.sqrt(b*b+S*S+x*x),o/r<1e-12){if(m=0,a/r<1e-12)return n.HALF_PI,_=-i,{x:e.x,y:e.y,z:e.z}}else m=Math.atan2(S,b);s=x/a,h=(u=o/a)*(1-t)*(l=1/Math.sqrt(1-t*(2-t)*u*u)),p=s*l,v=0;do{v++,c=t*(f=r/Math.sqrt(1-t*p*p))/(f+(_=o*h+x*p-f*(1-t*p*p))),g=(y=s*(l=1/Math.sqrt(1-c*(2-c)*u*u)))*h-(d=u*(1-c)*l)*p,h=d,p=y}while(g*g>1e-24&&v<30);return{x:m,y:Math.atan(y/Math.abs(d)),z:_}}function s(e,t,r){if(t===n.PJD_3PARAM)return{x:e.x+r[0],y:e.y+r[1],z:e.z+r[2]};if(t===n.PJD_7PARAM){var i=r[0],o=r[1],a=r[2],s=r[3],u=r[4],l=r[5],c=r[6];return{x:c*(e.x-l*e.y+u*e.z)+i,y:c*(l*e.x+e.y-s*e.z)+o,z:c*(-u*e.x+s*e.y+e.z)+a}}}function u(e,t,r){if(t===n.PJD_3PARAM)return{x:e.x-r[0],y:e.y-r[1],z:e.z-r[2]};if(t===n.PJD_7PARAM){var i=r[0],o=r[1],a=r[2],s=r[3],u=r[4],l=r[5],c=r[6],f=(e.x-i)/c,h=(e.y-o)/c,p=(e.z-a)/c;return{x:f+l*h-u*p,y:-l*f+h+s*p,z:u*f-s*h+p}}}},function(e,t,r){"use strict";r.r(t),t.default=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}},function(e,t,r){"use strict";r.r(t),r.d(t,"forward",function(){return f}),r.d(t,"inverse",function(){return h}),r.d(t,"toPoint",function(){return p});var n=6,i="AJSAJS",o="AFAFAF",a=65,s=73,u=79,l=86,c=90;function f(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=v(r),f=Math.floor(e/1e5),h=Math.floor(t/1e5)%20;return function(e,t,r){var n=r-1,f=i.charCodeAt(n),h=o.charCodeAt(n),p=f+e-1,d=h+t,y=!1;p>c&&(p=p-c+a-1,y=!0);(p===s||f<s&&p>s||(p>s||f<s)&&y)&&p++;(p===u||f<u&&p>u||(p>u||f<u)&&y)&&++p===s&&p++;p>c&&(p=p-c+a-1);d>l?(d=d-l+a-1,y=!0):y=!1;(d===s||h<s&&d>s||(d>s||h<s)&&y)&&d++;(d===u||h<u&&d>u||(d>u||h<u)&&y)&&++d===s&&d++;d>l&&(d=d-l+a-1);return String.fromCharCode(p)+String.fromCharCode(d)}(f,h,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,u=e.lat,l=e.lon,c=6378137,f=d(u),h=d(l);s=Math.floor((l+180)/6)+1,180===l&&(s=60);u>=56&&u<64&&l>=3&&l<12&&(s=32);u>=72&&u<84&&(l>=0&&l<9?s=31:l>=9&&l<21?s=33:l>=21&&l<33?s=35:l>=33&&l<42&&(s=37));a=d(6*(s-1)-180+3),.006739496752268451,t=c/Math.sqrt(1-.00669438*Math.sin(f)*Math.sin(f)),r=Math.tan(f)*Math.tan(f),n=.006739496752268451*Math.cos(f)*Math.cos(f),i=Math.cos(f)*(h-a),o=c*(.9983242984503243*f-.002514607064228144*Math.sin(2*f)+2639046602129982e-21*Math.sin(4*f)-3.418046101696858e-9*Math.sin(6*f));var p=.9996*t*(i+(1-r+n)*i*i*i/6+(5-18*r+r*r+72*n-.39089081163157013)*i*i*i*i*i/120)+5e5,y=.9996*(o+t*Math.tan(f)*(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));u<0&&(y+=1e7);return{northing:Math.round(y),easting:Math.round(p),zoneNumber:s,zoneLetter:function(e){var t="Z";84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C");return t}(u)}}({lat:e[1],lon:e[0]}),t)}function h(e){var t=g(m(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]}function p(e){var t=g(m(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function d(e){return e*(Math.PI/180)}function y(e){return e/Math.PI*180}function g(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,f,h,p=6378137,d=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),v=r-5e5,m=t;n<"N"&&(m-=1e7),c=6*(i-1)-180+3,h=(f=m/.9996/6367449.145945056)+(3*d/2-27*d*d*d/32)*Math.sin(2*f)+(21*d*d/16-55*d*d*d*d/32)*Math.sin(4*f)+151*d*d*d/96*Math.sin(6*f),o=p/Math.sqrt(1-.00669438*Math.sin(h)*Math.sin(h)),a=Math.tan(h)*Math.tan(h),s=.006739496752268451*Math.cos(h)*Math.cos(h),u=.99330562*p/Math.pow(1-.00669438*Math.sin(h)*Math.sin(h),1.5),l=v/(.9996*o);var _=h-o*Math.tan(h)/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);_=y(_);var b,S=(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(h);if(S=c+y(S),e.accuracy){var x=g({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});b={top:x.lat,right:x.lon,bottom:_,left:S}}else b={lat:_,lon:S};return b}function v(e){var t=e%n;return 0===t&&(t=n),t}function m(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,r=e.length,n=null,f="",h=0;!/[A-Z]/.test(t=e.charAt(h));){if(h>=2)throw"MGRSPoint bad conversion from: "+e;f+=t,h++}var p=parseInt(f,10);if(0===h||h+3>r)throw"MGRSPoint bad conversion from: "+e;var d=e.charAt(h++);if(d<="A"||"B"===d||"Y"===d||d>="Z"||"I"===d||"O"===d)throw"MGRSPoint zone letter "+d+" not handled: "+e;n=e.substring(h,h+=2);for(var y=v(p),g=function(e,t){var r=i.charCodeAt(t-1),n=1e5,o=!1;for(;r!==e.charCodeAt(0);){if(++r===s&&r++,r===u&&r++,r>c){if(o)throw"Bad character: "+e;r=a,o=!0}n+=1e5}return n}(n.charAt(0),y),m=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;var r=o.charCodeAt(t-1),n=0,i=!1;for(;r!==e.charCodeAt(0);){if(++r===s&&r++,r===u&&r++,r>l){if(i)throw"Bad character: "+e;r=a,i=!0}n+=1e5}return n}(n.charAt(1),y);m<_(d);)m+=2e6;var b=r-h;if(b%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 S,x,w,O=b/2,E=0,P=0;return O>0&&(S=1e5/Math.pow(10,O),x=e.substring(h,h+O),E=parseFloat(x)*S,w=e.substring(h+O),P=parseFloat(w)*S),{easting:E+g,northing:P+m,zoneLetter:d,zoneNumber:p,accuracy:S}}function _(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}t.default={forward:f,inverse:h,toPoint:p}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return l}),r.d(t,"forward",function(){return c}),r.d(t,"inverse",function(){return f}),r.d(t,"names",function(){return h});var n=r(109),i=r(73),o=r(110),a=r(6),s=r(4),u=r(42);function l(){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=Object(n.default)(this.es),this.ml0=Object(i.default)(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function c(e){var t,r,n,o=e.x,u=e.y,l=Object(a.default)(o-this.long0),c=Math.sin(u),f=Math.cos(u);if(this.es){var h=f*l,p=Math.pow(h,2),d=this.ep2*Math.pow(f,2),y=Math.pow(d,2),g=Math.abs(f)>s.EPSLN?Math.tan(u):0,v=Math.pow(g,2),m=Math.pow(v,2);t=1-this.es*Math.pow(c,2),h/=Math.sqrt(t);var _=Object(i.default)(u,c,f,this.en);r=this.a*(this.k0*h*(1+p/6*(1-v+d+p/20*(5-18*v+m+14*d-58*v*d+p/42*(61+179*m-m*v-479*v)))))+this.x0,n=this.a*(this.k0*(_-this.ml0+c*l*h/2*(1+p/12*(5-v+9*d+4*y+p/30*(61+m-58*v+270*d-330*v*d+p/56*(1385+543*m-m*v-3111*v))))))+this.y0}else{var b=f*Math.sin(l);if(Math.abs(Math.abs(b)-1)<s.EPSLN)return 93;if(r=.5*this.a*this.k0*Math.log((1+b)/(1-b))+this.x0,n=f*Math.cos(l)/Math.sqrt(1-Math.pow(b,2)),(b=Math.abs(n))>=1){if(b-1>s.EPSLN)return 93;n=0}else n=Math.acos(n);u<0&&(n=-n),n=this.a*this.k0*(n-this.lat0)+this.y0}return e.x=r,e.y=n,e}function f(e){var t,r,n,i,l=(e.x-this.x0)*(1/this.a),c=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+c/this.k0,r=Object(o.default)(t,this.es,this.en),Math.abs(r)<s.HALF_PI){var f=Math.sin(r),h=Math.cos(r),p=Math.abs(h)>s.EPSLN?Math.tan(r):0,d=this.ep2*Math.pow(h,2),y=Math.pow(d,2),g=Math.pow(p,2),v=Math.pow(g,2);t=1-this.es*Math.pow(f,2);var m=l*Math.sqrt(t)/this.k0,_=Math.pow(m,2);n=r-(t*=p)*_/(1-this.es)*.5*(1-_/12*(5+3*g-9*d*g+d-4*y-_/30*(61+90*g-252*d*g+45*v+46*d-_/56*(1385+3633*g+4095*v+1574*v*g)))),i=Object(a.default)(this.long0+m*(1-_/6*(1+2*g+d-_/20*(5+28*g+24*v+8*d*g+6*d-_/42*(61+662*g+1320*v+720*v*g))))/h)}else n=s.HALF_PI*Object(u.default)(c),i=0;else{var b=Math.exp(l/this.k0),S=.5*(b-1/b),x=this.lat0+c/this.k0,w=Math.cos(x);t=Math.sqrt((1-Math.pow(w,2))/(1+Math.pow(S,2))),n=Math.asin(t),c<0&&(n=-n),i=0===S&&0===w?0:Object(a.default)(Math.atan2(S,w)+this.long0)}return e.x=i,e.y=n,e}var h=["Fast_Transverse_Mercator","Fast Transverse Mercator"];t.default={init:l,forward:c,inverse:f,names:h}},function(e,t,r){"use strict";r.r(t);var n=.01068115234375;t.default=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*n))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*n)));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}},function(e,t,r){"use strict";r.r(t);var n=r(73),i=r(4);t.default=function(e,t,r){for(var o=1/(1-t),a=e,s=20;s;--s){var u=Math.sin(a),l=1-t*u*u;if(a-=l=(Object(n.default)(a,u,Math.cos(a),r)-e)*(l*Math.sqrt(l))*o,Math.abs(l)<i.EPSLN)return a}return a}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return f}),r.d(t,"forward",function(){return h}),r.d(t,"inverse",function(){return p}),r.d(t,"names",function(){return d});var n=r(108),i=r(112),o=r(56),a=r(202),s=r(204),u=r(205),l=r(206),c=r(6);function f(){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&&(n.default.init.apply(this),this.forward=n.default.forward,this.inverse=n.default.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 i=Object(s.default)(this.cbg,this.lat0);this.Zb=-this.Qn*(i+Object(u.default)(this.gtu,2*i))}function h(e){var t=Object(c.default)(e.x-this.long0),r=e.y;r=Object(s.default)(this.cbg,r);var n=Math.sin(r),i=Math.cos(r),u=Math.sin(t),f=Math.cos(t);r=Math.atan2(n,f*i),t=Math.atan2(u*i,Object(o.default)(n,i*f)),t=Object(a.default)(Math.tan(t));var h,p,d=Object(l.default)(this.gtu,2*r,2*t);return r+=d[0],t+=d[1],Math.abs(t)<=2.623395162778?(h=this.a*(this.Qn*t)+this.x0,p=this.a*(this.Qn*r+this.Zb)+this.y0):(h=1/0,p=1/0),e.x=h,e.y=p,e}function p(e){var t,r,n=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(a=(a-this.Zb)/this.Qn,n/=this.Qn,Math.abs(n)<=2.623395162778){var u=Object(l.default)(this.utg,2*a,2*n);a+=u[0],n+=u[1],n=Math.atan(Object(i.default)(n));var f=Math.sin(a),h=Math.cos(a),p=Math.sin(n),d=Math.cos(n);a=Math.atan2(f*d,Object(o.default)(p,d*h)),n=Math.atan2(p,d*h),t=Object(c.default)(n+this.long0),r=Object(s.default)(this.cgb,a)}else t=1/0,r=1/0;return e.x=t,e.y=r,e}var d=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"];t.default={init:f,forward:h,inverse:p,names:d}},function(e,t,r){"use strict";r.r(t),t.default=function(e){var t=Math.exp(e);return t=(t-1/t)/2}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(22));var o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"initPropertys",value:function(e){var r=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayerViewUpdateEvent=t.LayerViewUpdateContent=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(113));function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(e){function t(){return a(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"initPropertys",value:function(e){var r=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initPropertys",this).call(this,e);return this.updateContent=(0,i.defaultValue)(r.updateContent,[]),r}}]),t}();t.LayerViewUpdateContent=function e(t){a(this,e);var r=(0,i.defaultValue)(t,{});this.dataChanged=(0,i.defaultValue)(r.dataChanged,!1),this.name=(0,i.defaultValue)(r.name,""),this.operationType=(0,i.defaultValue)(r.operationType,"method"),this.params=(0,i.defaultValue)(r.params,[]),this.extendProps=(0,i.defaultValue)(r.extendProps,{})},t.LayerViewUpdateEvent=s},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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.extent=(0,i.defaultValue)(t.extent,void 0),this.id=(0,i.defaultValue)(t.id,(0,i.getGUID)()),this.tileInfo=t.tileInfo,this.layer=(0,i.defaultValue)(t.layer,void 0),this.tileMatrix=(0,i.defaultValue)(t.tileMatrix,[]),this.identifier=(0,i.defaultValue)(t.identifier,void 0),this.supportedCRS=(0,i.defaultValue)(t.supportedCRS,void 0)}return n(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,i.defaultValue)(t,{}))}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=(0,i.defaultValue)(t,{});this.expression=(0,i.defaultValue)(r.expression,"")}return n(e,[{key:"clone",value:function(){return new e({expression:this.expression})}},{key:"toJSON",value:function(){return{expression:this.expression}}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(44)),o=r(0),a=r(3),s=r(10),u=r(1);var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,o.defaultValue)(e,{}),r.id=(0,o.defaultValue)(e.id,(0,o.getGUID)()),r.attributes=(0,o.defaultValue)(e.attributes,{}),r.geometry=r._decorate("geometry",e.geometry,a.Geometry,a.Geometry.fromJSON),r.geometry||o.Log.error("要素几何信息缺失"),r.symbol=r._decorate("symbol",e.symbol,s.Symbol,r._getSymbol.bind(r)),r.visible=(0,o.defaultValue)(e.visible,!0),r.type="Feature",r.elevationInfo=(0,o.defaultValue)(e.elevationInfo,void 0),r.additional=(0,o.defaultValue)(e.additional,{}),r.styleInfo=(0,o.defaultValue)(e.styleInfo,{}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"_getSymbol",value:function(e){var t=e?e.type:"undefine",r=this.geometry.type,n=e instanceof s.Symbol?e:s.Symbol.fromJSON(e);switch(r){case u.GeometryType.multiPoint:case u.GeometryType.point:var i=[u.SymbolType.simpleMarker,u.SymbolType.text,u.SymbolType.mapgisText,u.SymbolType.pictureMarker,u.SymbolType.point3D,u.SymbolType.label3D];(0,o.defined)(e)||(n=new s.SimpleMarkerSymbol),i.some(function(e){return e===t})||(o.Log.info("图元几何和符号不匹配"),n=new s.SimpleMarkerSymbol({color:n.color.clone()}));break;case u.GeometryType.multiLineString:case u.GeometryType.lineString:var a=[u.SymbolType.simpleLine,u.SymbolType.line3D];(0,o.defined)(e)||(n=new s.SimpleLineSymbol),a.some(function(e){return e===t})||(o.Log.info("图元几何和符号不匹配"),n=new s.SimpleLineSymbol({color:n.color.clone()}));break;case u.GeometryType.polygon:case u.GeometryType.extent:case u.GeometryType.circle:case u.GeometryType.multiPolygon:var l=[u.SymbolType.simpleFill,u.SymbolType.simpleMarker,u.SymbolType.text,u.SymbolType.mapgisText,u.SymbolType.pictureMarker,u.SymbolType.pictureFill,u.SymbolType.polygon3D];(0,o.defined)(e)||(n=new s.SimpleFillSymbol),l.some(function(e){return e===t})||(o.Log.info("图元几何和符号不匹配"),n=new s.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(JSON.stringify(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,o.defaultValue)(e,{});var t=this,r=(0,o.defaultValue)(e.geometry,{});t.geometry=a.Geometry.fromGeoJSON(r);var n=(0,o.defaultValue)(e.properties,{});Object.keys(n).forEach(function(e){n.hasOwnProperty(e)&&(t.attributes[e]=n[e])})}},{key:"toGeoJSON",value:function(){var e=JSON.parse(JSON.stringify(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=null;this.styleInfo instanceof Object&&"{}"!==JSON.stringify(this.styleInfo)&&(e=JSON.parse(JSON.stringify(this.styleInfo)));var t=this.geometry.toJSON();return{type:"Feature",geometry:{type:t.type,coordinates:t.coordinates},attributes:JSON.parse(JSON.stringify(this.attributes)),styleInfo:e}}},{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 Object.keys(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,o.defaultValue)(e,{}))}}]),t}();t.default=l},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=p(r(24)),i=p(r(298)),o=p(r(309)),a=p(r(310)),s=p(r(311)),u=p(r(312)),l=p(r(313)),c=p(r(314)),f=p(r(315)),h=r(1);function p(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=f.default,t.createSymbol3DLayer=function(e){var t=e||{},r=null;switch(t.type){case h.Symbol3DLayerType.line:r=new o.default(t);break;case h.Symbol3DLayerType.path:r=new i.default(t);break;case h.Symbol3DLayerType.fill:r=new a.default(t);break;case h.Symbol3DLayerType.icon:r=new s.default(t);break;case h.Symbol3DLayerType.object:r=new u.default(t);break;case h.Symbol3DLayerType.extrude:r=new l.default(t);break;case h.Symbol3DLayerType.text:r=new c.default(t);break;case h.Symbol3DLayerType.water:r=new f.default(t)}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,[{key:"toJSON",value:function(){}},{key:"clone",value:function(){}}],[{key:"fromJSON",value:function(){}}]),e}();t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(2);var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.color=t.color?o.Color.fromJSON(t.color):new o.Color,this.size=(0,i.defaultValue)(t.size,0)}return n(e,[{key:"toJSON",value:function(){return{color:(0,i.toJSON)(this.color,o.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=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1);var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.style=(0,i.defaultValue)(t.style,o.LinePatternStyle.solid),this.type="style"}return n(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=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=f(r(31)),o=r(0),a=r(1),s=f(r(29)),u=f(r(81)),l=f(r(82)),c=f(r(78));function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,o.defaultValue)(e,{}),r.type=a.SymbolType.text,r.angle=(0,o.defaultValue)(e.angle,0),r.backgroundColor=(0,o.defined)(e.backgroundColor)?s.default.fromColor((0,o.defaultValue)(e.backgroundColor,new s.default(255,255,255,.25))):void 0,r.borderLineColor=s.default.fromColor((0,o.defaultValue)(e.borderLineColor,new s.default(0,0,0,1))),r.borderLineSize=(0,o.defaultValue)(e.borderLineSize,0),r.color=s.default.fromColor((0,o.defaultValue)(e.color,new s.default)),r.font=c.default.fromJSON((0,o.defaultValue)(e.font,{})),r.haloColor=s.default.fromColor((0,o.defaultValue)(e.haloColor,new s.default)),r.haloSize=(0,o.defaultValue)(e.haloSize,0),r.horizontalAlignment=(0,o.defaultValue)(e.horizontalAlignment,u.default.center),r.kerning=(0,o.defaultValue)(e.kerning,!1),r.lineHeight=(0,o.defaultValue)(e.lineHeight,1.1),r.lineWidth=(0,o.defaultValue)(e.lineWidth,192),r.rotated=(0,o.defaultValue)(e.rotated,!1),r.text=(0,o.defaultValue)(e.text,""),r.verticalAlignment=(0,o.defaultValue)(e.verticalAlignment,l.default.baseline),r.xoffset=(0,o.defaultValue)(e.xoffset,0),r.yoffset=(0,o.defaultValue)(e.yoffset,0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.angle=this.angle,e.backgroundColor=(0,o.toJSON)(this.backgroundColor,s.default),e.borderLineColor=(0,o.toJSON)(this.borderLineColor,s.default),e.borderLineSize=this.borderLineSize,e.color=(0,o.toJSON)(this.color,s.default),e.font=(0,o.toJSON)(this.font,c.default),e.haloColor=(0,o.toJSON)(this.haloColor,s.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,o.defaultValue)(e,{}))}}]),t}();t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=function(e){return e&&e.__esModule?e:{default:e}}(r(31));var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.SymbolType.simpleMarker,r.xoffset=(0,i.defaultValue)(e.xoffset,0),r.yoffset=(0,i.defaultValue)(e.yoffset,0),r.angle=(0,i.defaultValue)(e.angle,0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=u(r(31)),a=u(r(87)),s=r(1);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=s.SymbolType.simpleFill,r.outline=r._decorate("outline",e.outline,a.default,a.default.fromJSON),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.type=this.type,e.outline=this.outline.toJSON(),e}}]),t}();t.default=l},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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=l(r(12)),o=r(0),a=r(1),s=l(r(16)),u=r(23);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,o.defaultValue)(e,{}),r.type=a.GeometryType.lineString,r.coordinates=(0,o.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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"getPoint",value:function(e){return e=Number(e),this._isValidate(e)?new s.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,s.default.toCoordinates(t)),this.coordinates=JSON.parse(JSON.stringify(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(JSON.stringify(this.coordinates)),new s.default({coordinates:t})}},{key:"setPoint",value:function(e,t){return this._isValidate(e)?(Array.isArray(this.coordinates)&&this.coordinates.splice(e,1,s.default.toCoordinates(t)),this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),this):this}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse(JSON.stringify(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=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 a.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,o.isNumber)(e)||e<0||e>=t)}},{key:"_cloneCoordinates",value:function(){return JSON.parse(JSON.stringify(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,u.calcExtent)(e,t,a.GeometryType.lineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,o.defaultValue)(e,{}))}}]),t}();Object.defineProperties(c.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=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(15)),o=p(r(12)),a=r(0),s=r(1),u=p(r(47)),l=p(r(16)),c=p(r(32)),f=p(r(63)),h=r(23);function p(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,a.defaultValue)(e,{}),r.coordinates=(0,a.defaultValue)(e.coordinates,[]),r.isSelfIntersecting=(0,a.defaultValue)(e.isSelfIntersecting,!1),r.type=s.GeometryType.multiPolygon,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");for(var n=0;n<r.coordinates.length;n++){var i=r.coordinates[n],o=!0,u=!1,l=void 0;try{for(var c,f=i[Symbol.iterator]();!(o=(c=f.next()).done);o=!0){var h=c.value;if(h.length<4)throw new Error("每个环至少有四个点");if(h[h.length-1].length!==h[0].length)throw new Error("首尾点维度不相等");for(var p=0;p<h[h.length-1].length;p++)if(h[h.length-1][p]!==h[0][p])throw new Error("第一个位置和最后一个位置不相等")}}catch(e){u=!0,l=e}finally{try{!o&&f.return&&f.return()}finally{if(u)throw l}}}return 3===r.coordinates[0][0][0].length&&(r.hasZ=!0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"addPolygon",value:function(e,t){if(t=(0,a.defaultValue)(t,"add"),e instanceof u.default||f.default.error("polygon类型不是Polygon对象类型!"),"add"===t)this.coordinates.push(e._cloneCoordinates());else{for(var r=[],n=0;n<this.coordinates.length;n++){var o=i.polygon(this.coordinates[n]),s=i.polygon(e.coordinates);i.booleanDisjoint(o,s)||(r.push(o),this.coordinates[n]=void 0)}for(var l=0;l<this.coordinates.length;l++)this.coordinates[l]||this.coordinates.splice(l,1);for(var c=i.polygon(e.coordinates),h=0;h<r.length;h++)c=i.union(c,r[h]).geometry;this.coordinates.push(c.coordinates)}return this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),this}},{key:"removePolygon",value:function(e){if(!this._isValidate(e))return null;var t=JSON.parse(JSON.stringify(this._cloneCoordinates()[e]));return this.coordinates.splice(e,1),this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),new u.default({coordinates:t})}},{key:"toXMl",value:function(){return""}},{key:"contains",value:function(e){if(!e)throw new Error("传入参数错误");var t=i.multiPolygon(this._cloneCoordinates()),r=i.point(l.default.toCoordinates(e));return i.booleanPointInPolygon(r,t)}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse(JSON.stringify(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=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(JSON.stringify(this.coordinates))}},{key:"_isValidate",value:function(e){var t=this.coordinates.length;return!(!(0,a.isNumber)(e)||e<0||e>=t)}},{key:"_calcExtent",value:function(e,t){return(0,h.calcExtent)(e,t,s.GeometryType.multiPolygon,this.spatialReference)}},{key:"getIGSType",value:function(){return s.IGSGeometryType.multiPolygon}},{key:"toPolygonArray",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++)e.push(new u.default({coordinates:this.coordinates[t],spatialReference:c.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,a.defaultValue)(e,{}))}}]),t}();Object.defineProperties(d.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=c(r(12)),a=r(1),s=c(r(16)),u=c(r(63)),l=r(23);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,i.defaultValue)(e,{}),r.coordinates=(0,i.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=a.GeometryType.multiPoint,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"addPoint",value:function(e,t){if(t=(0,i.defaultValue)(t,"add"),e instanceof s.default)this._addPoint(e,t);else if(e instanceof Array){if(this._isNumberArray(e))this._addPoint(new s.default({coordinates:e}),t);else for(var r=0;r<e.length;r++)if(e[r]instanceof s.default)this._addPoint(e[r],t);else if(e[r]instanceof Array){this._isNumberArray(e[r])?this._addPoint(new s.default({coordinates:e[r]}),t):e instanceof s.default?this._addPoint(e[r],t):u.default.error("point的子元素类型不是点几何对象或者点坐标数组!")}else u.default.error("point的类型不是点几何对象或者点坐标数组!")}else u.default.error("point的类型不是点几何对象或者点坐标数组!");return this.coordinates.length>=2&&(this.extent=this._calcExtent(this.coordinates,this.hasZ)),this.coordinates=JSON.parse(JSON.stringify(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 s.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 s.default({coordinates:e}).equals(this.coordinates[r]))return!0}else u.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 s.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(JSON.stringify(this.coordinates)),new s.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,s.default.toCoordinates(t)),this.coordinates=r),this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),this}},{key:"getIGSType",value:function(){return a.IGSGeometryType.multiPoint}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse(JSON.stringify(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=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,i.isNumber)(e)||e<0||e>=t)}},{key:"_cloneCoordinates",value:function(){return JSON.parse(JSON.stringify(this.coordinates))}},{key:"_calcExtent",value:function(e,t){if(e.length>1)return(0,l.calcExtent)(e,t,a.GeometryType.lineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,i.defaultValue)(e,{}))}}]),t}();Object.defineProperties(f.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=h(r(12)),o=r(0),a=r(1),s=h(r(47)),u=h(r(16)),l=h(r(32)),c=r(23),f=r(330);function h(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,o.defaultValue)(e,{}),r.center=(0,o.defaultValue)(e.center,void 0),!r.center)throw new Error("缺少圆心坐标");if(r.center=u.default.toCoordinates(r.center),r.radius=(0,o.defaultValue)(e.radius,1e3),!(0,o.isNumber)(r.radius))throw new Error("半径必须为数字");if(r.geodesic=(0,o.defaultValue)(e.geodesic,!1),r.radiusUnit=(0,o.defaultValue)(e.radiusUnit,a.RadiusUnit.meters),r.numberOfPoints=(0,o.defaultValue)(e.numberOfPoints,40),!(0,o.isNumber)(r.numberOfPoints))throw new Error("圆曲线上点的数量必须为数字");return r.type=a.GeometryType.circle,3===r.center.length&&(r.hasZ=!0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.center=JSON.parse(JSON.stringify(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=f.RadiusUnitToMeter[this.radiusUnit]||1,n=this.radius*r,i="geographic";if(e.isWebMercator)i="webMercator";else if(e.wkid&&(0,o.defined)(f.ProjUnitWkidMap[e.wkid]))i="proj";else if(e.wkt){var a=e.wkt;["PROJS","proj4","PROJCRS","+proj"].some(function(e){return 0===a.indexOf(e)})&&(i="proj")}if(!t){"geographic"===i&&(n/=f.RadiusUnitToMeter.degrees);var u=this._tranCircleToPath(this.center,n,this.numberOfPoints);return new s.default({coordinates:u,spatialReference:l.default.fromJSON(this.spatialReference)})}switch(i){case"proj":o.Log.error("暂时仅支持墨卡托投影坐标系和地理坐标系使用geodesic属性");break;case"webMercator":case"geographic":var c=6378137,h=Math.PI/180,p={latitude:this.center[1],longitude:this.center[0]};"webMercator"===i&&(p={longitude:180*p.longitude/Math.PI/c,latitude:180*(2*Math.atan(Math.exp(p.latitude/c))-Math.PI/2)/Math.PI});for(var d=n/1e3,y=d/(111.32*Math.cos(p.latitude*Math.PI/180)),g=d/110.574,v=[],m=0;m<this.numberOfPoints;m+=1){var _=m/this.numberOfPoints*(2*Math.PI),b=y*Math.cos(_),S=g*Math.sin(_),x=p.longitude+b,w=p.latitude+S;if("webMercator"===i){var O=Math.max(Math.min(85.0511287798,w),-85.0511287798),E=Math.sin(O*h);v.push([c*x*h,c*Math.log((1+E)/(1-E))/2])}else v.push([x,w])}return v.length<=3&&o.Log.error("生成圆几何点个数不能小于3"),v.push(v[0]),new s.default({coordinates:[v],spatialReference:l.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 a.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,c.calcExtent)(t._cloneCoordinates(),e,a.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,o.defaultValue)(e,{}))}}]),t}();Object.defineProperties(p.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.hasZ)}}}),t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=l(r(12)),o=r(0),a=r(1),s=l(r(16)),u=r(23);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,o.defaultValue)(e,{}),r.coordinates=(0,o.defaultValue)(e.coordinates,[]),r.type=a.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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"addPath",value:function(e){if(!Array.isArray(e))throw new Error("传入参数错误");var t=[];return e.forEach(function(e){t.push(s.default.toCoordinates(e))}),this.coordinates.push(t),this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),this}},{key:"removePath",value:function(e){if(!this._isValidate(e,0))return null;var t=JSON.parse(JSON.stringify(this._cloneCoordinates()[e]));return this.coordinates.splice(e,1),this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),t.map(function(e){return new s.default({coordinates:e})})}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse(JSON.stringify(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 s.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,s.default.toCoordinates(r)),this.coordinates[e]=n,this.coordinates=JSON.parse(JSON.stringify(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(JSON.stringify(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,s.default.toCoordinates(r)),this.coordinates[e]=n,this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),this}},{key:"toString",value:function(){return""}},{key:"toXMl",value:function(){return""}},{key:"getIGSType",value:function(){return a.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,o.isNumber)(e)||e<0||e>=r)return!1;var n=this.coordinates[e].length;return!(!(0,o.isNumber)(t)||t<0||t>=n)}},{key:"_cloneCoordinates",value:function(){return JSON.parse(JSON.stringify(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,u.calcExtent)(e,t,a.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,o.defaultValue)(e,{}))}}]),t}();Object.defineProperties(c.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=c},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,r+=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,r+=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}Object.defineProperties(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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=p(r(65)),a=p(r(89)),s=p(r(90)),u=r(1),l=r(48),c=r(2),f=r(3),h=p(r(138));function p(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=(0,i.defaultValue)(r,{}),this.url=t,this.requestInterceptor=(0,i.defaultValue)(r.requestInterceptor,new a.default),this.responseInterceptor=(0,i.defaultValue)(r.responseInterceptor,new s.default),this.requestTimeout=(0,i.defaultValue)(r.requestTimeout,45e3),this.headers=(0,i.defaultValue)(r.headers,{}),this.tokenKey=(0,i.defaultValue)(r.tokenKey,"token"),this.tokenValue=(0,i.defaultValue)(r.tokenValue,void 0),this.tokenAttachType=(0,i.defaultValue)(r.tokenAttachType,u.TokenAttachType.normal)}return n(e,[{key:"destroy",value:function(){this.url=null,this.options=null}},{key:"request",value:function(e){if(e=(0,i.defaultValue)(e,{}),!(0,i.isNull)(e.url))return!(0,i.isNull)(this.requestInterceptor)&&!(0,i.isNull)(this.requestInterceptor.before)&&this.requestInterceptor.before instanceof Function&&(e=this.requestInterceptor.before(e)),(0,i.isNull)(e)?void 0:this._commit(e);i.Log.error("url不存在!")}},{key:"_commit",value:function(e){var t=this;e.url=(0,l.ServiceConfigRequestInterceptors)(h.default,(0,l.isEncoded)(e.url)?e.url:encodeURI(e.url)),e.headers=(0,i.defaultValue)(e.headers,{});var r=Object.assign(e.headers,this.headers),n={headers:r=Object.assign(r,h.default.headers),withCredentials:e.withCredentials,requestTimeout:this.requestTimeout,proxy:e.proxy,tokenKey:this.tokenKey||h.default.tokenKey,tokenValue:this.tokenValue||h.default.tokenValue,tokenAttachType:e.tokenAttachType||this.tokenAttachType};return e.responseType&&(n.responseType=e.responseType),o.default.commit(e.method,e.url,e.data,n).then(function(r){var o=void 0;if(r.text){if("blob"===n.responseType)return r.blob();o=function(){return r.text()}}else o=function(){return r.json()};return 200===r.status?new Promise(function(r){o().then(function(n){var o=void 0;if((0,i.isNull)(n))o={succeed:!0,msg:"服务器没有返回信息",data:void 0};else{var a=void 0;if("string"==typeof n)if(n.indexOf("<?xml")>-1)if(n.indexOf("OGC:WMS")>-1||n.indexOf("WMS_Capabilities")>-1||n.indexOf("<Keyword>WMS</Keyword>")>-1){var s="1.1.1";n.indexOf("1.3.0")>-1&&(s="1.3.0");var u=(0,l.getDoc)(n);a=(0,l.getWMSInfoFromXML)(u,s,e.url)}else if(n.indexOf("WMTS")>-1||n.indexOf("wmts/1.0")>-1){var p=(0,l.getDoc)(n);a=(0,l.getWMTSInfoFromXML)(p)}else if(n.indexOf("wfs:WFS_Capabilities")>-1){var d=(0,l.getDoc)(n);a=(0,l.getWFSInfoFromXML)(d)}else if(n.indexOf("wfs:FeatureCollection")>-1){var y=(0,l.getDoc)(n),g=e.url.toLowerCase(),v="2.0.0";g.indexOf("version=1.0.0")>-1?v="1.0.0":g.indexOf("version=1.1.0")>-1?v="1.1.0":g.indexOf("version=2.0.0")>-1&&(v="1.1.0"),a=(0,l.getWFSFeature)(y,v)}else n.indexOf("<svg")>-1&&(a=n);else{if(n.indexOf("html>")>-1)return!(0,i.isNull)(t.responseInterceptor)&&!(0,i.isNull)(t.responseInterceptor.failure)&&t.responseInterceptor.failure instanceof Function&&t.responseInterceptor.failure({succeed:!1,msg:"服务器不支持"+e.method+"请求或其他错误",data:void 0,errorType:"unKnownError"}),!(0,i.isNull)(e.failure)&&e.failure instanceof Function&&e.failure({succeed:!1,msg:"服务器不支持"+e.method+"请求或其他错误",data:void 0,errorType:"unKnownError"}),Promise.reject({succeed:!1,msg:"服务器不支持"+e.method+"请求或其他错误",data:void 0,errorType:"unKnownError"});if((a=JSON.parse(n))instanceof Object&&(e.url.indexOf("/igs/rest/mrfs/layer/query")>-1||e.url.indexOf("/igs/rest/mrfs/docs/")>-1)){var m=(0,l.fromQueryResult)(a);delete a.SFEleArray,a.featureSets=m;var _=[];if(m.length>1)for(var b=0;b<m.length;b++)_.push(a[String(b)]),delete a[String(b)];else a.AttStruct.TotalCount=a.TotalCount,_.push(a.AttStruct),delete a.AttStruct,delete a.TotalCount;a.featureInfos=_,(e.url.indexOf("/igs/rest/mrfs/docs/")>-1||e.url.indexOf("/igs/rest/mrfs/layer/")>-1)&&(m.length>0?a.featureSet=m[0]:a.featureSet=new c.FeatureSet)}}if(a instanceof Object){if(a.hasOwnProperty("features")&&a.features instanceof Array){var S=void 0,x=!1;a.spatialReference?S=new f.SpatialReference(a.spatialReference):e.extensionOptions&&e.extensionOptions.outSrs?S=new f.SpatialReference(e.extensionOptions.outSrs):(x=!0,S=f.SpatialReference.fromJSON(a.spatialReference));var w=!1;/(igs)\/rest\/services\/.*\/WFSServer/.test(e.url)&&4326===S.wkid&&x&&(w=!0),a.featureSet=c.FeatureSet.fromArray(a.features,new c.FeatureSet({spatialReference:S}),{reverse:w})}else if(a.hasOwnProperty("layers")&&e.url.indexOf("igs/rest/mrcs/tiles")<0)for(var O=0;O<a.layers.length;O++){var E=void 0;E=e.extensionOptions&&e.extensionOptions.outSrs?new f.SpatialReference(e.extensionOptions.outSrs):f.SpatialReference.fromJSON(a.layers[O].spatialReference),a.layers[O].featureSet=c.FeatureSet.fromArray(a.layers[O].features,new c.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 P=new f.SpatialReference("EPSG:4326");a.spatialReference&&(P=new f.SpatialReference({wkid:a.spatialReference.wkid,wkt:a.spatialReference.wkt}));for(var k=a.layers,T=0;T<k.length;T++)k[T].features&&(k[T].featureSet=c.FeatureSet.fromArray(k[T].features,new c.FeatureSet({spatialReference:P})),delete k[T].features)}}else if(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,l.ServiceConfigResponseInterceptors)(h.default,(0,l.isEncoded)(e.url)?e.url:encodeURI(e.url),o),!(0,i.isNull)(t.responseInterceptor)&&!(0,i.isNull)(t.responseInterceptor.success)&&t.responseInterceptor.success instanceof Function&&(o=t.responseInterceptor.success(o)),!(0,i.isNull)(o)&&!(0,i.isNull)(e.success)&&e.success instanceof Function&&e.success(o),r(o)})},function(e){console.log("Fetch返回异常",e)}):new Promise(function(r){o().then(function(n){var o=void 0;if((0,i.isNull)(n))o={succeed:!1,msg:"请求失败,服务器没有返回信息",data:void 0};else{var a=JSON.parse(n);o=a instanceof Object?{succeed:!1,msg:"请求失败",data:a}:{succeed:!1,msg:a,data:void 0}}!(0,i.isNull)(t.responseInterceptor)&&!(0,i.isNull)(t.responseInterceptor.failure)&&t.responseInterceptor.failure instanceof Function&&(o=t.responseInterceptor.failure(o)),!(0,i.isNull)(o)&&!(0,i.isNull)(e.failure)&&e.failure instanceof Function&&e.failure(o),r(o)})},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=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={tokenKey:"token",tokenValue:void 0,headers:{},request:{interceptors:[]}};t.default=n},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=E(r(341)),i=E(r(342)),o=E(r(343)),a=E(r(344)),s=E(r(345)),u=E(r(346)),l=E(r(347)),c=E(r(348)),f=E(r(140)),h=E(r(349)),p=E(r(350)),d=E(r(351)),y=E(r(352)),g=E(r(353)),v=E(r(354)),m=E(r(355)),_=E(r(91)),b=E(r(66)),S=r(356),x=r(362),w=r(366),O=r(159);function E(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=f.default,t.SecurityServer=h.default,t.RootServer=p.default,t.TileServer=d.default,t.VectorTileServer=y.default,t.PlotServer=g.default,t.ResourceServer=v.default,t.SceneServer=m.default,t.WMSServer=S.WMSServer,t.WMTSServer=S.WMTSServer,t.WFSServer=S.WFSServer,t.WorkFlowServer=O.WorkFlowServer,t.ArcGISMapServer=x.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=x.ArcGISGeometryServer,t.ArcGISFeatureServer=x.ArcGISFeatureServer,t.ArcGISVectorTileServer=x.ArcGISVectorTileServer,t.CAttDataRow=_.default,t.CAttStruct=b.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(5));var o=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"getLayerJSON",value:function(e){return this._queryByParameters(e,{},{},function(e){return e+"/layer.json"})}}]),t}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(5));var o=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(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}();t.default=o},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(0);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=a(r(14)),i=a(r(146)),o=r(0);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,o.defaultValue)(e,{}),r.ChartType=void 0!==e.ChartType?e.ChartType:i.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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=s},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=function(e){return e&&e.__esModule?e:{default:e}}(r(14)),i=r(0);var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,i.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(14)),i=r(0);var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,i.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.ClrInfo=void 0!==e.ClrInfo?e.ClrInfo:[25,57,89,121],r.Type="CFourColorTheme",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(14)),i=r(0);var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,i.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=o},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=function(e){return e&&e.__esModule?e:{default:e}}(r(14)),i=r(0);var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,i.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(14)),i=r(0);var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,i.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.Type="CRandomTheme",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(14)),i=a(r(142)),o=r(0);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,o.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.AllOtherDataItemInfoSource=void 0!==e.AllOtherDataItemInfoSource?e.AllOtherDataItemInfoSource:i.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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(14)),i=a(r(49)),o=r(0);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,o.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.ThemeInfo=void 0!==e.ThemeInfo?e.ThemeInfo:new i.default,r.Type="CSimpleTheme",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();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(14)),i=r(0);var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,i.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=o},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=P(r(8)),i=P(r(377)),o=P(r(378)),a=P(r(379)),s=P(r(380)),u=P(r(381)),l=P(r(382)),c=P(r(383)),f=P(r(384)),h=P(r(385)),p=P(r(386)),d=P(r(387)),y=P(r(388)),g=P(r(389)),v=P(r(390)),m=P(r(391)),_=P(r(392)),b=P(r(393)),S=P(r(394)),x=P(r(395)),w=P(r(396)),O=P(r(397)),E=P(r(398));function P(e){return e&&e.__esModule?e:{default:e}}var k={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:f.default,WorkFlowServer600237:h.default,WorkFlowServer600238:p.default,WorkFlowServer600239:d.default,WorkFlowServer600307:y.default,WorkFlowServer600308:g.default,WorkFlowServer600309:v.default,WorkFlowServer600314:m.default,WorkFlowServer600334:_.default,WorkFlowServer600336:b.default,WorkFlowServer600340:S.default,WorkFlowServer600354:x.default,WorkFlowServer600368:w.default,WorkFlowServer600369:O.default,WorkFlowServer600370:E.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=k["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=h(r(399)),i=h(r(167)),o=h(r(425)),a=h(r(168)),s=h(r(426)),u=h(r(427)),l=h(r(93)),c=h(r(169)),f=h(r(428));function h(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=f.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=l(r(67)),a=l(r(401)),s=l(r(39)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=u.LayerType.vectorTileSubLayer,r._labelingInfo=(0,i.defaultValue)(e.labelingInfo,[]),r._styleLayers=(0,i.defaultValue)(e.styleLayers,[]),r._visible=(0,i.defaultValue)(e.visible,!0),r._opacity=(0,i.defaultValue)(e.opacity,1),r._renderer=(0,i.defaultValue)(e.renderer,void 0),r._updateStyle(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),n(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");Object.keys(r).forEach(function(n){e.paint[n]=Number(r[n])*t.opacity*t.layer.opacity})}},{key:"_updateStyleLayerByRenderer",value:function(e){var t=a.default.renderToStyle(this._renderer,e.type,JSON.parse(JSON.stringify(e)));if(t){var r=t.paint,n=t.layout;e.paint=Object.assign(e.paint,r),e.layout=Object.assign(e.layout,n)}}},{key:"_convertLabelInfoToLabelClass",value:function(){for(var e=(0,i.cloneObject)(this._labelingInfo),t=[],r=0;r<e.length;r++)t.push(new o.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,i.defaultValue)(e,"setStyleLayer"),t=(0,i.defaultValue)(t,[]),this.layer._fireLayerUpdateEvent([{params:t,dataChanged:!0,name:e,operationType:"method"}])}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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}();Object.defineProperties(c.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=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMapboxExpression=t.convertColorToRgb=t.convertLineStyle=void 0;var n=r(2);var i="== != > < >= <= 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";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]&&i.indexOf(e[0])>-1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(10),a=function(e){return e&&e.__esModule?e:{default:e}}(r(164));var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.value=e.value,r.symbol=o.Symbol.fromJSON(e.symbol),r.visible=(0,i.defaultValue)(e.visible,!0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,i.defaultValue)(e,{}))}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.id=(0,i.defaultValue)(t.id,(0,i.getGUID)()),this.label=(0,i.defaultValue)(t.label,""),this.description=(0,i.defaultValue)(t.description,"")}return n(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,i.defaultValue)(t,{}))}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(10),a=function(e){return e&&e.__esModule?e:{default:e}}(r(164));var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.minValue=e.minValue,r.maxValue=e.maxValue,r.symbol=o.Symbol.fromJSON(e.symbol),r.visible=(0,i.defaultValue)(e.visible,!0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,i.defaultValue)(e,{}))}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(2);var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.ratio=t.ratio,this.color=o.Color.fromColor((0,i.defaultValue)(t.color,{}))}return n(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,i.defaultValue)(t,{}))}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(161));var o=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(3),a=r(7),s=r(25),u=r(160),l=r(40),c=r(2);var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(r.url=(0,i.defaultValue)(e.url,""),r.name=(0,i.defaultValue)(e.name,""),r.type=(0,i.defaultValue)(e.type,""),r.fields=(0,i.defaultValue)(e.fields,[]),r.geomType=(0,i.defaultValue)(e.geomType||e.GeomType,""),r.maxScale=(0,i.defaultValue)(e.maxScale,0),r.minScale=(0,i.defaultValue)(e.minScale,0),e.range?r.extent=new o.Extent({xmin:e.range.xmin,ymin:e.range.ymin,xmax:e.range.xmax,ymax:e.range.ymax}):r.extent=new o.Extent({xmin:-180,ymin:-90,xmax:180,ymax:90}),r.spatialReference=e.spatialReference?new o.SpatialReference(e.spatialReference):new o.SpatialReference({wkid:4326}),r.supportedMethods=(0,i.defaultValue)(e.supportedMethods,[]),r.systemLibGuid=(0,i.defaultValue)(e.systemLibGuid,void 0),r.systemLibName=(0,i.defaultValue)(e.systemLibName,void 0),r.id=(0,i.defaultValue)(e.id,e.LayerIndex||e.index),void 0!==r.id&&null!==r.id&&""!==r.id||(r.id=(0,i.getGUID)()),r.index=(0,i.defaultValue)(e.index,void 0),r._renderer=e.renderer?l.BaseRenderer.fromJSON(e.renderer):void 0,r._definitionExpression=(0,i.defaultValue)(e.definitionExpression,void 0),r.geometryFilter=(0,i.defaultValue)(e.geometryFilter,void 0),e.sublayers&&Array.isArray(e.sublayers)){for(var n=new c.Collection,a=0;a<e.sublayers.length;a++){var s=e.sublayers[a];s.layer=r,n.add(new t(s))}r.sublayers=n}return r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.SubLayer),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,s.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 o.Extent({xmin:r.range.xmin,ymin:r.range.ymin,xmax:r.range.xmax,ymax:r.range.ymax}),e.spatialReference=r.spatialReference?new o.SpatialReference(r.spatialReference):new o.SpatialReference({wkid:4326}),e.systemLibGuid=r.systemLibGuid,e.systemLibName=r.systemLibName,e.type=r.type,e.url=r.url),new Promise(function(t){t(e)})})}}},{key:"_getSourceLayer",value:function(){for(var e=this.layer;e&&!(e instanceof u.IGSMapImageLayer);)e=e.layer;return e instanceof u.IGSMapImageLayer?e:null}}]),t}();Object.defineProperties(f.prototype,{renderer:{get:function(){return this._renderer},set:function(e){e instanceof l.BaseRenderer?this._renderer=e:this._renderer=l.BaseRenderer.fromJSON(e);var t=this._getSourceLayer();t&&t.refresh()}},definitionExpression:{get:function(){return this._definitionExpression},set:function(e){if(e){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=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(3),a=function(e){return e&&e.__esModule?e:{default:e}}(r(93)),s=r(2),u=r(1);var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.sceneIndex=(0,i.defaultValue)(t.sceneIndex,0),this.sceneName=(0,i.defaultValue)(t.sceneName,void 0),this.sceneMode=(0,i.defaultValue)(t.sceneMode,void 0),this.sceneRange=(0,i.defaultValue)(new o.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,i.defaultValue)(t.sublayers,new s.Collection),this.layer=(0,i.defaultValue)(t.layer,void 0),this.extendedProps=(0,i.defaultValue)(t.extendedProps,void 0),this._allSublayers=new s.Collection,this._initAllSubLayers(this.sublayers)}return n(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,i.toJSON)(this.sublayers[t],a.default));return{sceneIndex:this.sceneIndex,sceneName:this.sceneName,sceneMode:this.sceneMode,sceneRange:(0,i.toJSON)(this.sceneRange,o.Extent),extendedProps:this.extendedProps,sublayers:e}}},{key:"_initAllSubLayers",value:function(e){var t=this;e.forEach(function(e){e.type!==u.SceneSubLayerType.groupLayer3D?t._allSublayers.add(e):e.sublayers.items.length>0&&t._initAllSubLayers(e.sublayers)})}}]),e}();Object.defineProperties(l.prototype,{allSublayers:{get:function(){return this._allSublayers}}}),t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(3),a=r(7);var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.url=(0,i.defaultValue)(e.url,""),r.name=(0,i.defaultValue)(e.name,""),r.type=(0,i.defaultValue)(e.type,""),r.fields=(0,i.defaultValue)(e.fields,[]),r.geomType=(0,i.defaultValue)(e.geomType||e.GeomType,""),r.maxScale=(0,i.defaultValue)(e.maxScale,0),r.minScale=(0,i.defaultValue)(e.minScale,0),e.range?r.extent=new o.Extent({xmin:e.range.xmin,ymin:e.range.ymin,xmax:e.range.xmax,ymax:e.range.ymax}):r.extent=new o.Extent({xmin:-180,ymin:-90,xmax:180,ymax:90}),r.spatialReference=(0,i.defaultValue)(e.spatialReference,void 0),r.supportedMethods=(0,i.defaultValue)(e.supportedMethods,[]),r.systemLibGuid=(0,i.defaultValue)(e.systemLibGuid,void 0),r.systemLibName=(0,i.defaultValue)(e.systemLibName,void 0),r.id=e.id,r.index=(0,i.defaultValue)(e.index,void 0),r.moveIndex=(0,i.defaultValue)(e.moveIndex,void 0),r._renderer=(0,i.defaultValue)(e.renderer,void 0),r.layer=(0,i.defaultValue)(e.layer,void 0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.SubLayer),n(t,null,[{key:"fromJSON",value:function(e){return new t(e=(0,i.defaultValue)(e,{}))}}]),t}();Object.defineProperties(s.prototype,{renderer:{get:function(){return this._renderer},set:function(e){this._renderer=e,this.layer.setSubLayer(this)}}}),t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(7),o=r(2),a=r(0),s=r(3),u=c(r(33)),l=c(r(41));function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,a.defaultValue)(e,{}),r.description="IGS WMTS子图层",r.imageFormat=(0,a.defaultValue)(e.imageFormat,"image/png"),r.identifier=(0,a.defaultValue)(e.identifier,""),r.title=(0,a.defaultValue)(e.title,""),r.imageFormats=(0,a.defaultValue)(e.imageFormats,void 0),r.styleId=(0,a.defaultValue)(e.styleId,void 0),r.styles=(0,a.defaultValue)(e.styles,void 0),r.tileMatrixSets=(0,a.defaultValue)(e.tileMatrixSets,void 0),r.tileMatrixSets&&r.tileMatrixSets instanceof Array)for(var n=0;n<r.tileMatrixSets.length;n++)r.tileMatrixSets[n]instanceof o.TileMatrixSet||(r.tileMatrixSets[n]=o.TileMatrixSet.fromJSON(r.tileMatrixSets[n]),!r.tileMatrixSets[n].tileInfo||r.tileMatrixSets[n].tileInfo instanceof l.default||(r.tileMatrixSets[n].tileInfo=l.default.fromJSON(r.tileMatrixSets[n].tileInfo)));r.tileMatrixSetId=(0,a.defaultValue)(e.tileMatrixSetId,void 0),r.tileMatrixSet=(0,a.defaultValue)(e.tileMatrixSet,void 0),r.extent=(0,a.defaultValue)(e.extent,void 0),r.resourceURLTemplates=(0,a.defaultValue)(e.resourceURLTemplates,void 0);for(var i=0;i<r.tileMatrixSets.length;i++)r.tileMatrixSets[i].id===r.tileMatrixSetId&&(r.spatialReference=s.SpatialReference.fromJSON(r.tileMatrixSets[i].tileInfo.spatialReference));return r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Layer),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,a.toJSON)(this.tileMatrixSet,o.TileMatrixSet),e.extent=this.extent instanceof u.default?this.extent.toJSON():this.extent,e.resourceURLTemplates=this.resourceURLTemplates,e.spatialReference=this.spatialReference instanceof s.SpatialReference?this.spatialReference.toJSON():this.spatialReference;var r=[];if(this.styles)for(var n=0;n<this.styles.length;n++)r.push(this.styles[n]instanceof o.WMTSStyle?this.styles[n].toJSON():this.styles[n]);return e.styles=r,e}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}();f.fromJSON=function(e){return e=(0,a.defaultValue)(e,{}),new f(e)},t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(39)),a=r(3);var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.name=(0,i.defaultValue)(e.name,void 0),r.description=(0,i.defaultValue)(e.abstract,void 0),r.queryable=(0,i.defaultValue)(e.queryable,!0),r.spatialReferences=(0,i.defaultValue)(e.spatialReferences,[]),r.spatialReference=(0,i.defaultValue)(e.spatialReference,void 0),r.extent=(0,i.defaultValue)(e.extent,void 0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);e.spatialReference=(0,i.toJSON)(this.spatialReference,a.SpatialReference),e.name=this.name,e.extent=(0,i.toJSON)(this.extent,a.Extent);for(var r=[],n=0;n<this.spatialReferences.length;n++)r.push((0,i.toJSON)(this.spatialReferences[n],a.SpatialReference));return e.spatialReferences=r,e}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(1),a=r(7),s=r(0),u=r(17),l=r(21),c=r(3),f=r(64),h=r(92);var p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,s.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r._id=(0,s.defaultValue)(e.id,(0,s.getGUID)()),r._basemap=(0,s.defaultValue)(e.basemap,void 0),r.groupLayer=new u.GroupLayer({layers:e.layers,copyright:""}),r.groupLayer.setMap(r),r.layers=r.groupLayer.layers,r.allLayers=new i.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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Evented),n(t,[{key:"toJSON",value:function(){for(var e={layers:[]},t=0;t<this.layers.items.length;t++)e.layers.push((0,s.toJSON)(this.layers.items[t],a.Layer));return e.exportTime=(new Date).toISOString(),e}},{key:"clone",value:function(){return(0,s.cloneObject)(this)}},{key:"add",value:function(e,t){if(e){var r=e instanceof a.Layer?e:a.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 a.Layer?e:a.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(o.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_removeHandlers",value:function(){this.groupLayer.off(o.MapEventType.layerChange,this._processGroupLayerChange,this),this._basemap&&this._basemap._baseGroupLayer.off(o.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(o.MapEventType.layerChange,new l.LayerChangeEvent({added:this._basemap._baseGroupLayer.layers.items.map(function(e){return e}),path:[this._basemap._baseGroupLayer]})),this.fire(o.MapEventType.basemapChange,new l.BasemapChangeEvent({basemap:this._basemap,detail:[{action:"basemap-create"}]})))}},{key:"_initBasemapHandlers",value:function(){this._basemap&&this._basemap._baseGroupLayer.on(o.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_processGroupLayerChange",value:function(e){var t=e.added,r=e.moved,n=e.removed,i=e.sourceTarget,a=e.path;this._dispatchOldMapEvent(e),this.fire(o.MapEventType.layerChange,new l.LayerChangeEvent({type:o.MapEventType.layerChange,sourceTarget:i,removed:n,path:a,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,f.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,f.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!==o.LayerType.unknown});n.length>0&&r.push({added:n,sourceTarget:t.sourceTarget})}),r.length>0&&(e._isInitLayersLoaded=!0,e.fire(o.MapEventType.layerLoaded,new l.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(o.MapEventType.layerAdd,{type:o.MapEventType.layerAdd,layer:t[0]}):this.dispatchEvent(o.MapEventType.layerAddMany,{type:o.MapEventType.layerAddMany,layers:t})),Array.isArray(r))){var i=n.layers;i&&i.items&&0===i.items.length&&0===r.length?this.dispatchEvent(o.MapEventType.layerRemoveAll,{type:o.MapEventType.layerRemoveAll,layers:r}):1===r.length?this.dispatchEvent(o.MapEventType.layerRemove,{type:o.MapEventType.layerRemove,layer:r[0]}):r.length>1&&this.dispatchEvent(o.MapEventType.layerRemoveMany,{type:o.MapEventType.layerRemoveMany,layers:r})}}},{key:"_loadLayers",value:function(){return this._basemap&&this._basemap._baseGroupLayer.fire(o.MapEventType.layerChange,new l.LayerChangeEvent({added:this._basemap._baseGroupLayer.layers.items.map(function(e){return e}),path:[this._basemap._baseGroupLayer]})),this.groupLayer&&this.groupLayer.fire(o.MapEventType.layerChange,new l.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,h.getLayersExtent)(e,this._spatialReference);return t&&!t.spatialReference.isGeographic&&(t=i.Projection.project(t,new c.SpatialReference("EPSG:4326"))),this._fullExtent=t,t}}],[{key:"fromJSON",value:function(e){e=(0,s.defaultValue)(e,{});for(var r=(0,s.defaultValue)(e.layers,[]),n=new t,i=0;i<r.length;i++)n.add(a.Layer.fromJSON(r[i]));return n}}]),t}();Object.defineProperties(p.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 i.Projection.project(this._fullExtent,this._spatialReference)},set:function(){}}}),t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(52));var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._initInstance(e),r._initHandlers(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(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){(function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onRemove",this).call(this,e),this._removeHandlers()}}]),t}();t.default=o},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _index=__webpack_require__(71),_util=__webpack_require__(0),_symbol=__webpack_require__(10),_VisualVariableType=__webpack_require__(30),_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 n=(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(Number.isNaN(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():JSON.stringify(e.symbol),u=0;u<n.length;u++){var l=n[u],c=l.field,f=l.type,h=parseFieldAndExpression(e,c,l.valueExpression);if(h=parseFloat(h),!Number.isNaN(h)){switch(f){case _VisualVariableType2.default.color:var p=calcGradientInStops(h,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)(p)&&(s.color=p);break;case _VisualVariableType2.default.size:var d=l.stops,y=l.maxDataValue,g=l.minDataValue,v=l.maxSize,m=l.minSize,_=d;(0,_util.isNumber)(y)&&(0,_util.isNumber)(g)&&(0,_util.isNumber)(v)&&(0,_util.isNumber)(m)&&(_=[{size:m,value:g},{size:v,value:y}]);var b=calcGradientInStops(h,_,function(e,t,r){var n=e.size,i=t.size;return parseInt(n+(i-n)*r)});(0,_util.defined)(b)&&(s.size=b);break;case _VisualVariableType2.default.opacity:var S=calcGradientInStops(h,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)(S)&&s.color){var x=_index.Color.fromColor(s.color);x.alpha=S,s.color=x}}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 f=null,h=null,p=0;p<a.length;p++){var d=a[p];if(d.value===c){f=d.symbol,h=d;break}}if(f){updateFeatureSymbol(l,f,h.visible,r);continue}}updateFeatureSymbol(l,i,o,r)}break;case _index.RendererType.classBreak:for(var y=t.defaultSymbol||{},g=t.classBreakInfos||[],v=t.valueExpression||"",m=t.defaultVisible,_=0;_<e.length;_++){var b=e[_],S=parseFieldAndExpression(b,t.field||"",v);if((0,_util.defined)(S)){for(var x=null,w=null,O=0;O<g.length;O++){var E=g[O],P=E.maxValue;if(S>=E.minValue&&S<P){x=E.symbol,w=E;break}}if(x){updateFeatureSymbol(b,x,w.visible,r);continue}}updateFeatureSymbol(b,y,m,r)}break;case _index.RendererType.random:e.forEach(function(e){updateRandomFeatureSymbol(e)});break;case _index.RendererType.rank:var k=t.symbol,T=t,I=T.minSize,M=T.maxSize,L=T.maxDataValue,C=T.minDataValue,N=T.field,R=T.valueExpression;(!k||I>M||!N&&!R)&&_index.Log.error("等级符号专题图参数异常!");var j=void 0,G=void 0;e.forEach(function(e){var t=parseFieldAndExpression(e,N,R);t=parseFloat(t),(0,_util.defined)(j)||(j=t),(0,_util.defined)(G)||(G=t),j=Math.max(j,t),G=Math.min(G,t)}),(0,_util.defined)(C)&&(0,_util.defined)(L)&&L>C&&(j=L,G=C),j-G==0&&(j+=1e-4),e.forEach(function(e){var t=k.clone(),n=parseFieldAndExpression(e,N,R),i=void 0;i=(n=parseFloat(n))<G?0:n>j?1:(n-G)/(j-G);var o=parseInt(i*(M-I)+I);if((0,_util.isNumber)(o))switch(t.type){case _index.SymbolType.simpleMarker:t.size=o;break;case _index.SymbolType.pictureMarker:t.width=o,t.height=o;break;case _index.SymbolType.text:var a=t.font||{};a.size=o,t.font=a}updateFeatureSymbol(e,t,!0,r)});break;default:var V=t.symbol;e.forEach(function(e){updateFeatureSymbol(e,V,!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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(0),a=r(3),s=S(r(18)),u=S(r(19)),l=S(r(34)),c=S(r(460)),f=S(r(177)),h=S(r(178)),p=S(r(179)),d=S(r(461)),y=S(r(462)),g=S(r(463)),v=S(r(180)),m=S(r(181)),_=r(98),b=r(38);function S(e){return e&&e.__esModule?e:{default:e}}var x=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if((e=(0,o.defaultValue)(e,{})).view||o.Log.error("options.view is null!",e),r.view=e.view,r._spatialReference=r.view&&r.view._spatialReference?r.view._spatialReference:new a.SpatialReference("EPSG:4326"),r._sketchInnerLayer=new b.GraphicsLayer,r.layer=(0,o.defaultValue)(e.layer,void 0),r._layer=r.layer||r._sketchInnerLayer,r.sketchStyle=(0,o.defaultValue)(e.sketchStyle,new s.default),r._editable=(0,o.defaultValue)(e.editable,!0),r.isSimple=(0,o.defaultValue)(e.isSimple,!1),r.snapOption=(0,o.defaultValue)(e.snapOption,{}),r.snapAndReferGeometries=(0,o.defaultValue)(e.snapAndReferGeometries,[]),r.measureOption=(0,o.defaultValue)(e.measureOption,void 0),r._drawTool=null,r._sketchDataType=null,r._sketchSnappingTool={},r._sketchTopologyTool={},r._undoRedoManager=new y.default,r._editorState={editMode:0,undoRedoManager:r.undoRedoManager,_hitTestEvent:r._hitTestEvent},r._layer){var n=r.view._map.findLayerById(r._layer.id),i=r.view.getInnerLayer(r._layer);n&&i?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 c.default(Object.assign(r.snapOption,{view:r.view})),r._sketchTopologyTool=new d.default):r._hitTestSketchEvent(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Evented),n(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,o=!1;"number"==typeof e?r=e:e instanceof a.Point?(r=i.SketchDataType.POINT,o=!0):e instanceof a.LineString?(r=i.SketchDataType.POLYLINE,o=!0):e instanceof a.Polygon?(r=i.SketchDataType.POLYGON,o=!0):e instanceof a.Circle?(r=i.SketchDataType.CIRCLE,o=!0):e instanceof a.Extent&&(r=i.SketchDataType.RECTANGLE,o=!0);var s={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 i.SketchDataType.POINT:n=new u.default(s);break;case i.SketchDataType.POLYLINE:n=new f.default(s);break;case i.SketchDataType.POLYGON:n=new l.default(s);break;case i.SketchDataType.CIRCLE:n=new h.default(s);break;case i.SketchDataType.RECTANGLE:n=new p.default(s);break;case i.SketchDataType.FREEHANDPOLYLINE:n=new v.default(s);break;case i.SketchDataType.FREEHANDPOLYGON:n=new m.default(s)}return{drawTool:n,sketchType:r,isGeometry:o}}},{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)if(!a.GeometryEngine.isSimple(n)){var s=new _.SketchEditorEvent({type:i.SketchEditorEventType.create,toolEventInfo:{type:i.SketchEditorToolEventType.geometryUnsimple},state:i.SketchEditorState.complete});return this._drawTool.fire(i.SketchEditorEventType.create,s,self),o.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===i.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,o.isNull)(r.entityGraphic)||("Point"===r.entityGraphic.geometry.type?this._drawTool._sketchDataType===i.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,o.isNull)(r.vertexGraphics)||r.vertexGraphics.forEach(function(t){t.symbol=e._vertexStyle}),(0,o.isNull)(r.midVertexGraphics)||r.midVertexGraphics.forEach(function(t){t.symbol=e._selectVertexStyle}),(0,o.isNull)(r.selectBoxGraphics)||r.selectBoxGraphics.forEach(function(r){t._drawTool._sketchDataType===i.SketchDataType.TEXT?r.symbol=e._selectTextStyle:r.symbol=e._selectBoxStyle}),(0,o.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(!a.GeometryEngine.isSimple(e[n]))return o.Log.error("输入的几何不符合拓扑规范!")}var s=i.Projection.project(this._sketchTopologyTool.unionPolygons(e),this._spatialReference);if("Polygon"===s.type){var u=r.view.allLayerViews.items.filter(function(e){return e.id===r._layer.id});return this.start(s),u.length>0?(this._selectEvent(),this._drawEvent(),this._sketchEvent()):r._layer.once("layerview-created",function(){r._selectEvent(),r._drawEvent(),t._sketchEvent()}),s}o.Log.error("合并结果不符合规范,请检查输入的几何!")}},{key:"split",value:function(e,r){var n=null,s=this;if(e instanceof a.Polygon)n=e;else{if(!(e instanceof t&&e.drawTool._sketchDataType===i.SketchDataType.POLYGON))return void o.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=s._sketchTopologyTool.splitPolygonByPolyline(e,t);n.length>0&&(s.view.allLayerViews.items.filter(function(e){return e.id===s._layer.id}).length>0?n.forEach(function(e){e=i.Projection.project(e,s._spatialReference),s.start(e)}):s._layer.once("layerview-created",function(){n.forEach(function(e){e=i.Projection.project(e,s._spatialReference),s.start(e)})}));return 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 g.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 a.Polygon?r.start(e.geometry):e.geometry.coordinates.forEach(function(e){var n=new a.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 s.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 y.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 o=r._updateDrawToolByFeature(n);if(o)if(o._editMode===i.SketchEditMode.DRAWING)if(n.id===e.entityGraphic.id){var a=n.clone(),s=[],u=o._currentMovePoint;if(u){if(o.vertexNum&&("undo"===t?o.vertexNum--:"redo"===t&&o.vertexNum++),"Polygon"===a.geometry.type){s=a.geometry.coordinates[0];var l=o.vertexNum||0;1===l?(s[1]=u.coordinates,s[2]=u.coordinates):2===l||1===l?s[2]=u.coordinates:s.splice(s.length-1,0,u.coordinates)}else"LineString"===a.geometry.type&&(s=a.geometry.coordinates,1===o.vertexNum?s[1]=u.coordinates:s[s.length]=u.coordinates);o.sketchStage.entityGraphic=a,o._addFeatureToLayer(a,r._layer)}}else o._addFeatureToLayer(n,r._sketchInnerLayer);else n.id===e.entityGraphic.id?o._addFeatureToLayer(n,r._layer):o._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(i.SketchEditorEventType.create,function(t){e.fire(i.SketchEditorEventType.create,t,e),t.state===i.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(i.SketchEditorEventType.update,function(t){e.fire(i.SketchEditorEventType.update,t,e),t.state===i.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(i.SketchEditorEventType.create),this.off(i.SketchEditorEventType.update),this.off(i.SketchEditorEventType.undo),this.off(i.SketchEditorEventType.redo),this.off(i.SketchEditorEventType.remove),this.off("drawn"),this.off("selected")}},{key:"_fireUndoEvent",value:function(e){var t=new _.SketchEditorEvent({type:i.SketchEditorEventType.undo,feature:e,geometry:e.geometry});this.fire(i.SketchEditorEventType.undo,t,this)}},{key:"_fireRedoEvent",value:function(e){var t=new _.SketchEditorEvent({type:i.SketchEditorEventType.redo,feature:e,geometry:e.geometry});this.fire(i.SketchEditorEventType.redo,t,this)}},{key:"_fireRemoveEvent",value:function(e){var t=new _.SketchEditorEvent({type:i.SketchEditorEventType.remove,feature:e,geometry:e.geometry});this.fire(i.SketchEditorEventType.remove,t,this)}},{key:"_fireCancelDrawEvent",value:function(){var e=new _.SketchEditorEvent({type:i.SketchEditorEventType.create,eventInfo:null,state:i.SketchEditorState.cancel});this.fire(i.SketchEditorEventType.create,e,self)}},{key:"getGeometry",value:function(){return this._drawTool?this._drawTool.sketchStage.entityGraphic.geometry:null}},{key:"setSnapOption",value:function(e){this.snapOption=Object.assign(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}();Object.defineProperties(x.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=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(3),a=f(r(20)),s=f(r(19)),u=f(r(34)),l=f(r(18)),c=r(0);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._initEvent(),r.type="sketchPolylineDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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=i.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,n=!1,a=null,u=[],l=[];this.vertexNum=0;var f=[];this.cursorStyle=this.view.cursor,(0,c.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var h=this._getInteractiveDom(),p=this.extensionOptions&&this.extensionOptions.vertexNumber?this.extensionOptions.vertexNumber:null;this._setInitSnap(),this._fireStartDrawEvent();var d=function n(u){if(u&&u.x&&u.y){e._stopInitSnap(),clearTimeout(null);var h={x:u.x,y:u.y};h,(new Date).getTime(),e._editMode=i.SketchEditMode.DRAWING;var d=null;d=e._snapPoint?e._snapPoint:e.view.toMap({x:h.x,y:h.y});var y=e.vertexNum+1;if(1===y)l=[d.coordinates],(a=e._getFeature()).geometry.coordinates=[l[0],l[0]];else if(2===y){var g=a.geometry.coordinates[0];if(g&&g[0]===d.coordinates[0]&&g[1]===d.coordinates[1])return c.Log.info("相邻两顶点重复!");l=[a.geometry.coordinates[0],d.coordinates],a.geometry.coordinates=l,e._polylineGeometry=a}else{var v=(l=a.geometry.coordinates)[l.length-2];if(v&&v[0]===d.coordinates[0]&&v[1]===d.coordinates[1])return c.Log.info("相邻两顶点重复!");if(l[l.length-1]=d.coordinates,e._sketchEditor.isSimple){var m=new o.LineString({coordinates:l,spatialReference:e._spatialReference,extensionOptions:{arcType:e.arcType}});if(!o.GeometryEngine.isSimple(m))return e._fireUnsimpleDraw(),c.Log.info("该坐标构成的几何不符合拓扑规范!")}a.geometry.coordinates=l}if(e.vertexNum=y,p&&y>=p)e.view.off(i.ViewEventType.immediateClick,n);else{var _=new s.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});_.addFeature(d,void 0,void 0,e.sketchInnerLayer),e._drawTools.push(_);var b=_.sketchStage.entityGraphic;e.sketchStage.entityGraphic=a,e.sketchStage.vertexGraphics.push(b),a&&(r=t=!0),l.length>1&&f.push(function(e,t){return(e[1]-t[1])/(e[0]-t[0])}(l[l.length-1],l[l.length-2])),"click",e.fire("drawn-vertex",{geometry:_.sketchStage.entityGraphic.geometry,feature:_.sketchStage.entityGraphic},self),e._fireDrawVertexEvent(a),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode)}}},y=!0,g=function(i){if(i&&i.x&&i.y&&t&&!n){clearTimeout(null),n=!0,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var o={x:i.x,y:i.y},s=e.view.toMap({x:o.x,y:o.y});a=e.sketchStage.entityGraphic;var c=p&&e.vertexNum===p?e.vertexNum-1:e.vertexNum;l=1===c?[a.geometry.coordinates[0]]:a.geometry.coordinates.slice(0,a.geometry.coordinates.length-1),c>=1&&(e._snapPoint=e.getSnapGraphics(s,l)),e._snapPoint&&(s=e._snapPoint),e._currentMovePoint=s,1===c?a.geometry.coordinates[1]=s.coordinates:c>1&&(r?(a.geometry.coordinates.push(s.coordinates),r=!1):a.geometry.coordinates[a.geometry.coordinates.length-1]=s.coordinates),a.geometry._pixelCoords=u,a.geometry.coordinates=JSON.parse(JSON.stringify(a.geometry.coordinates)),y&&(e._addFeatureToLayer(a,e.layer),y=!1),n=!1,"move";var f=e._getInteractiveDom();h=h.concat(f),e._removeInteractiveStyle(f),e._fireChangeCursorEvent(a)}},v=function(){if((clearTimeout(null),clearTimeout(null),(a=e.sketchStage.entityGraphic)&&e._sketchEditor.isSimple)&&!o.GeometryEngine.isSimple(a.geometry))return e._fireUnsimpleDraw(),c.Log.info("该坐标构成的几何不符合拓扑规范!");if(e.vertexNum<2&&e.sketchStage.entityGraphic)return c.Log.info("线几何顶点少于两个,不符合规范!");l=[],u=[],e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=i.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(h),e.fire("drawn",{geometry:a.geometry,feature:a},self),e._fireStopDrawEvent(a),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.vertexNum=0,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),"double-click"};this._drawEventHandlers.push(d,g,v),this.view.on(i.ViewEventType.immediateClick,d),this.view.on(i.ViewEventType.pointerMove,g),this.view.on(i.ViewEventType.doubleClick,v)}},{key:"addFeature",value:function(e,t,r,n){var i=null;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 o=null;o=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var a=new i.Feature({geometry:e,symbol:o,elevationInfo:this.elevationInfo});r&&(a.attributes=r),this.sketchStage.entityGraphic=a,this._addFeatureToLayer(a,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[1,1]]);var t=new o.LineString({coordinates:e,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),r=this.sketchStyle.lineStyle.clone();return new i.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===i.SketchEditMode.NONE?this._editMode=i.SketchEditMode.EDITGRAGIC:this._editMode===i.SketchEditMode.EDITVERTEX&&(this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=i.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===i.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 u.default({view:this.view,layer:this.layer,sketchStyle:new l.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 a=[];if(a=[{point:new o.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new o.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new o.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new o.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var c=[{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];a=a.concat(c)}var f=[],h=[];a.forEach(function(e){var r=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.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),f.push(r),h.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=h,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(f),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(i.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=i.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(i.ViewEventType.immediateClick,this._mapClickEvent))}}},{key:"selectFeatureVertex",value:function(e){var t=this;this._clearEditGraphics(1);var r=[],n=[];e.geometry.coordinates.forEach(function(i,a){var u=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),c=new o.Point({coordinates:i,spatialReference:t._spatialReference});if(t._drawTools.push(u),u.addFeature(c,void 0,{vertexIndex:a},t.sketchInnerLayer),r.push(u),t.sketchStage.vertexGraphics.push(u.sketchStage.entityGraphic),a>0){var f=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(f);var h,p=e.geometry.coordinates[a-1],d=t._getCenterCoordinate(i,p);h=new o.Point({coordinates:d,spatialReference:t._spatialReference}),t._drawTools.push(f),f.addFeature(h,void 0,{vertexIndex:a-1,type:"midVertex"},t.sketchInnerLayer),t.sketchStage.midVertexGraphics.push(f.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 o.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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.LineString({coordinates:n,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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.LineString({coordinates:n,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,n=JSON.parse(JSON.stringify(r));n[e.vertexIndex]=e.movePoint.coordinates;var i=new o.LineString({coordinates:n,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!o.GeometryEngine.isSimple(i))return this._fireUnsimpleUpdate(),c.Log.info("该坐标构成的几何不符合拓扑规范!");if(t.geometry=i,this._otherDrawTools){if(0===e.vertexIndex){var a=this.sketchStage.midVertexGraphics[e.vertexIndex],s=n[e.vertexIndex],u=n[e.vertexIndex+1];a.geometry.coordinates=this._getCenterCoordinate(s,u),a.geometry=new o.Point({coordinates:a.geometry.coordinates,spatialReference:this._spatialReference})}else if(e.vertexIndex===n.length-1){var l=this.sketchStage.midVertexGraphics[e.vertexIndex-1],f=n[e.vertexIndex-1],h=n[e.vertexIndex];l.geometry.coordinates=this._getCenterCoordinate(f,h),l.geometry=new o.Point({coordinates:l.geometry.coordinates,spatialReference:this._spatialReference})}else{var p=this.sketchStage.midVertexGraphics[e.vertexIndex],d=this.sketchStage.midVertexGraphics[e.vertexIndex-1],y=n[e.vertexIndex-1],g=n[e.vertexIndex],v=n[e.vertexIndex+1];p.geometry.coordinates=this._getCenterCoordinate(v,g),d.geometry.coordinates=this._getCenterCoordinate(y,g)}this.sketchStage.vertexGraphics[e.vertexIndex].geometry.coordinates=n[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 o.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})),"moveMidVertex"===e.action){var r=JSON.parse(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates));r[e.vertexIndex+1]=e.movePoint.coordinates;var n=new o.LineString({coordinates:r,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(n))return this._fireUnsimpleUpdate(),c.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 i=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),a=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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 u,f=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex];this._getHight&&0;var h=this._getCenterCoordinate(f,e.point.coordinates);u=new o.Point({coordinates:h,spatialReference:this._spatialReference});var p=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(p),p.addFeature(u,void 0,{type:"midVertex"},this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,p.sketchStage.entityGraphic);var d,y=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+2];this._getHight&&0;var g=this._getCenterCoordinate(y,e.point.coordinates);d=new o.Point({coordinates:g,spatialReference:this._spatialReference});var v=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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===i&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t.sketchInnerLayer)}),this._otherDrawTools.push(a),this._otherDrawTools.push(p),this._otherDrawTools.push(v)}}},{key:"addMidVertex",value:function(e,t){var r=new s.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 n=[];if(t<=this.sketchStage.entityGraphic.geometry.coordinates.length-1){if((n=JSON.parse(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates))).splice(t,0,e.coordinates),r=new o.LineString({coordinates:n,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),c.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var i=void 0,a=void 0,u=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[u.xmax,u.ymax],[u.xmax,u.ymin],[u.xmin,u.ymin],[u.xmin,u.ymax],[u.xmax,u.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var f=[[u.xmax,u.ymax],[u.xmax,u.ymin],[u.xmin,u.ymin],[u.xmin,u.ymax],this._getCenterCoordinate([u.xmax,u.ymax],[u.xmin,u.ymax]),this._getCenterCoordinate([u.xmax,u.ymin],[u.xmin,u.ymin]),this._getCenterCoordinate([u.xmax,u.ymax],[u.xmax,u.ymin]),this._getCenterCoordinate([u.xmin,u.ymax],[u.xmin,u.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=f[t]})}if(this.sketchStage.vertexGraphics.length>0&&(i=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(i),i.addFeatureByGeometry(e,void 0,void 0,this.sketchInnerLayer),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 h=-1,p=-1,d=null,y=null;if(0===t?(p=0,y=this.sketchStage.entityGraphic.geometry.coordinates[1]):t===this.sketchStage.midVertexGraphics.length+1?(p=this.sketchStage.midVertexGraphics.length-2,y=this.sketchStage.entityGraphic.geometry.coordinates[p]):(h=t-1,p=t+1,d=this.sketchStage.entityGraphic.geometry.coordinates[h],y=this.sketchStage.entityGraphic.geometry.coordinates[p]),h>-1){var g=new o.Point({coordinates:this._getCenterCoordinate(d,e.coordinates),spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[h].geometry.coordinates=g.coordinates}if(p>-1){var v=new o.Point({coordinates:this._getCenterCoordinate(y,e.coordinates),spatialReference:this._spatialReference});a=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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}})}i&&this._otherDrawTools.push(i),a&&this._otherDrawTools.push(a),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireAddVertexEventByFun(i.sketchStage.entityGraphic,this._parent)}return r}}},{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,a=JSON.parse(JSON.stringify(i.geometry.coordinates));if(this.currentVertexIndex=t,r=e.coordinates,i.geometry=new o.LineString({coordinates:i.geometry.coordinates,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),c.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var s=i.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],f=a[t],h=a[t+1],p=-1,d=-1;if(0===t?p=t:t===n-1?d=t-1:(p=t,d=t-1),p>-1){var y=this.sketchStage.midVertexGraphics[p];y.geometry.coordinates=this._getCenterCoordinate(h,f),y.geometry=new o.Point({coordinates:y.geometry.coordinates,spatialReference:this._spatialReference})}if(d>-1){var g=this.sketchStage.midVertexGraphics[d];g.geometry.coordinates=this._getCenterCoordinate(l,f),g.geometry=new o.Point({coordinates:g.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 n=JSON.parse(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates));if(n.splice(e,1),t=new o.LineString({coordinates:n,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(t))return this._fireUnsimpleUpdateByFun(),c.Log.info("该坐标构成的几何不符合拓扑规范!");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 a=[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],this._getCenterCoordinate([i.xmax,i.ymax],[i.xmin,i.ymax]),this._getCenterCoordinate([i.xmax,i.ymin],[i.xmin,i.ymin]),this._getCenterCoordinate([i.xmax,i.ymax],[i.xmax,i.ymin]),this._getCenterCoordinate([i.xmin,i.ymax],[i.xmin,i.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,f=-1;0===e?f=0:e===r-1?f=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,f=e),l>-1&&(this.sketchStage.midVertexGraphics[l].geometry=new o.Point({coordinates:u,spatialReference:this._spatialReference}));var h=this.sketchStage.vertexGraphics[f].id.toString();this._removeFeatureFromLayer(this.sketchStage.midVertexGraphics[f],this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(f,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}();t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(3),a=h(r(20)),s=h(r(19)),u=h(r(34)),l=h(r(18)),c=h(r(37)),f=r(0);function h(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="sketchCircleDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._initEvent(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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=i.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,f.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var a=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var s=function(s){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===s.button)if("start"===s.action)n=e._snapPoint?e._snapPoint:n||e.view.toMap(s.origin),e._fireDrawVertexEvent();else if("update"===s.action){var u=e.view.toMap({x:s.x,y:s.y});e._snapPoint=e.getSnapGraphics(u),e._snapPoint&&(u=e._snapPoint),r=c.default.planarLength(new o.LineString({coordinates:[n.coordinates,u.coordinates],spatialReference:e._spatialReference})),t?t.geometry.radius=r:(t=e._getFeature(n,r),e._addFeatureToLayer(t,e.layer),e.sketchStage.entityGraphic=t);var l=e._getInteractiveDom();a=a.concat(l),e._removeInteractiveStyle(l),e._fireChangeCursorEvent(t)}else"end"===s.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=i.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(a),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(s),this.view.on(i.ViewEventType.drag,s)}},{key:"addFeature",value:function(e,t,r,n){var i=null;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 o=null;o=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var a=new i.Feature({geometry:e,symbol:o,elevationInfo:this.elevationInfo});r&&(a.attributes=r),this.sketchStage.entityGraphic=a,this._addFeatureToLayer(a,n)}},{key:"_getFeature",value:function(e,t){e?e instanceof Array?e=new o.Point({coordinates:e,spatialReference:this._spatialReference}):e instanceof o.Point||(e=new o.Point({coordinates:[0,0],spatialReference:this._spatialReference})):e=new o.Point({coordinates:[0,0],spatialReference:this._spatialReference}),t=void 0!==t?t:0;var r=this._spatialReference.isGeographic?i.RadiusUnit.degrees:i.RadiusUnit.meters,n=new o.Circle({center:e,radius:t,radiusUnit:r,spatialReference:this._spatialReference}),a=this.sketchStyle.fillStyle.clone();return new i.Feature({geometry:n,symbol:a,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===i.SketchEditMode.NONE&&(this._editMode=i.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 u.default({view:this.view,layer:this.layer,sketchStyle:new l.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 a=[];if(this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var c=[{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"circleVertex"}];a=a.concat(c)}var f=[],h=[];a.forEach(function(e){var r=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.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),f.push(r),h.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=h,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(f),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(i.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=i.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(i.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=c.default.planarLength(new o.LineString({coordinates:[this.sketchStage.entityGraphic.geometry.center,[e.movePoint.coordinates[0],this.sketchStage.entityGraphic.geometry.center[1]]],spatialReference:this._spatialReference})),r=this._spatialReference.isGeographic?i.RadiusUnit.degrees:i.RadiusUnit.meters,n=new o.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}();t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(3),a=f(r(20)),s=f(r(19)),u=f(r(34)),l=f(r(18)),c=r(0);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="sketchExtentDrawTool",r._initEvent(),r._drawTools=[r],r._otherDrawTools=[],r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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=i.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,c.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var n=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var o=function(o){if(clearTimeout(null),e.view.off(i.ViewEventType.pointerMove,e._handlerInitMouseMove),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)r=e._snapPoint?e._snapPoint:r||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);var s=Math.min(r.coordinates[0],a.coordinates[0]),u=Math.min(r.coordinates[1],a.coordinates[1]),l=Math.max(r.coordinates[0],a.coordinates[0]),c=Math.max(r.coordinates[1],a.coordinates[1]);t?(t.geometry.xmin=s,t.geometry.ymin=u,t.geometry.xmax=l,t.geometry.ymax=c):(t=e._getFeature(s,u,l,c),e._addFeatureToLayer(t,e.layer),e.sketchStage.entityGraphic=t);var f=e._getInteractiveDom();n=n.concat(f),e._removeInteractiveStyle(f),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=[]),e._editMode=i.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(o),this.view.on(i.ViewEventType.drag,o)}},{key:"addFeature",value:function(e,t,r,n){var i=null;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 o=null;o=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var a=new i.Feature({geometry:e,symbol:o,elevationInfo:this.elevationInfo});r&&(a.attributes=r),this.sketchStage.entityGraphic=a,this._addFeatureToLayer(a,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 a=new o.Extent({xmin:e,ymin:t,xmax:r,ymax:n,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),s=this.sketchStyle.fillStyle.clone();return new i.Feature({geometry:a,symbol:s,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===i.SketchEditMode.NONE?this._editMode=i.SketchEditMode.EDITGRAGIC:this._editMode===i.SketchEditMode.EDITVERTEX&&(this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=i.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 u.default({view:this.view,layer:this.layer,sketchStyle:new l.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 a=[];if(a=[{point:new o.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new o.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new o.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new o.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var c=[{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];a=a.concat(c)}var f=[],h=[];a.forEach(function(e){var r=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.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),f.push(r),h.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=h,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(f),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(i.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=i.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(i.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}();t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(3),a=f(r(20)),s=f(r(19)),u=f(r(34)),l=f(r(18)),c=r(0);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._initEvent(),r.type="sketchFreehandPolylineDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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=i.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,n=null,o=[],a=[];this.vertexNum=0;var u=[],l="";this.cursorStyle=this.view.cursor,(0,c.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var f=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var h=function r(o){if(o&&o.x&&o.y){e._stopInitSnap(),clearTimeout(null),e._editMode=i.SketchEditMode.DRAWING;var c={x:o.x,y:o.y},f=null;f=e._snapPoint?e._snapPoint:e.view.toMap({x:c.x,y:c.y}),e.vertexNum++,1===e.vertexNum?(a=[f.coordinates],(n=e._getFeature()).geometry.coordinates=[a[0],a[0]]):2===e.vertexNum?(a=[n.geometry.coordinates[0],f.coordinates],n.geometry.coordinates=a):((a=n.geometry.coordinates)[a.length-1]=f.coordinates,n.geometry.coordinates=a),"move"===l&&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 s.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});h.addFeature(f,void 0,void 0,e.sketchInnerLayer);var p=h.sketchStage.entityGraphic;e.sketchStage.entityGraphic=n,e.sketchStage.vertexGraphics.push(p),t=!0,n&&t,a.length>1&&u.push(function(e,t){return(e[1]-t[1])/(e[0]-t[0])}(a[a.length-1],a[a.length-2])),l="click",e.fire("drawn-vertex",{geometry:h.sketchStage.entityGraphic.geometry,feature:h.sketchStage.entityGraphic},self),e.view.off(i.ViewEventType.immediateClick,r)}},p=!0,d=function(i){if(i&&i.x&&i.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 s={x:i.x,y:i.y},u=e.view.toMap({x:s.x,y:s.y});e.vertexNum>0&&(e._snapPoint=e.getSnapGraphics(u,[n.geometry.coordinates[0]])),e._snapPoint&&(u=e._snapPoint),e.vertexNum,a.push(u.coordinates),n.geometry.coordinates=a,e.vertexNum++,e.sketchStage.entityGraphic=n,n.geometry._pixelCoords=o,n.geometry.coordinates=JSON.parse(JSON.stringify(a)),p&&(e._addFeatureToLayer(n,e.layer),p=!1),r=!1,l="move";var c=e._getInteractiveDom();f=f.concat(c),e._removeInteractiveStyle(c),e._fireDrawVertexEvent(n)}},y=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=i.SketchEditMode.NONE,r=!1,t=!1,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(f),e.fire("drawn",{geometry:n.geometry,feature:n},self),e._fireStopDrawEvent(n),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),l="double-click"};this._drawEventHandlers.push(h,d,y),this.view.on(i.ViewEventType.immediateClick,h),this.view.on(i.ViewEventType.pointerMove,this.debounce(d,5)),this.view.on(i.ViewEventType.doubleClick,y)}},{key:"addFeature",value:function(e,t,r,n){var i=null;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 o=null;o=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var a=new i.Feature({geometry:e,symbol:o,elevationInfo:this.elevationInfo});r&&(a.attributes=r),this.sketchStage.entityGraphic=a,this._addFeatureToLayer(a,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[1,1]]);var t=new o.LineString({coordinates:e,spatialReference:this._spatialReference}),r=this.sketchStyle.lineStyle.clone();return new i.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===i.SketchEditMode.NONE?this._editMode=i.SketchEditMode.EDITGRAGIC:this._editMode===i.SketchEditMode.EDITVERTEX&&(this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=i.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===i.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 u.default({view:this.view,layer:this.layer,sketchStyle:new l.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 a=[];if(a=[{point:new o.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new o.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new o.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new o.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var c=[{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];a=a.concat(c)}var f=[],h=[];a.forEach(function(e){var r=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.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),f.push(r),h.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=h,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(f),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(i.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=i.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(i.ViewEventType.immediateClick,this._mapClickEvent))}}},{key:"selectFeatureVertex",value:function(e){var t=this;this._clearEditGraphics(1);var r=[],n=[];e.geometry.coordinates.forEach(function(i,a){var u=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),c=new o.Point({coordinates:i,spatialReference:t._spatialReference});if(t._drawTools.push(u),u.addFeature(c,void 0,{vertexIndex:a}),r.push(u),t.sketchStage.vertexGraphics.push(u.sketchStage.entityGraphic),a>0){var f=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(f);var h=e.geometry.coordinates[a-1],p=null;p=i.length>2?new o.Point({coordinates:[(i[0]+h[0])/2,(i[1]+h[1])/2,(i[2]+h[2])/2],spatialReference:t._spatialReference}):new o.Point({coordinates:[(i[0]+h[0])/2,(i[1]+h[1])/2],spatialReference:t._spatialReference}),t._drawTools.push(f),f.addFeature(p,void 0,{vertexIndex:a-1,type:"midVertex"}),t.sketchStage.midVertexGraphics.push(f.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 a=t.mapPoint.coordinates[0],s=t.mapPoint.coordinates[1],u=null;u=i.Projection.project(new o.Point({coordinates:[a,s]}),this._spatialReference);var l=!0,c=setTimeout(function(){l=!1},200);this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._parent._mapClickEvent);var f=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==i.SketchEditMode.EDITGRAGIC&&!l){clearTimeout(null),n=!0;var a={x:t.x,y:t.y},s=r.view.toMap({x:a.x,y:a.y}),c=s.coordinates[0]-u.coordinates[0],f=s.coordinates[1]-u.coordinates[1];if(0!==c||0!==f){var h=[];e.geometry.coordinates[0].forEach(function(e){h.push(r.getPanCoordinates(e,c,f))});var p=new o.Polygon({coordinates:[h],spatialReference:r._spatialReference});u=s,r._dispatchEvent("pan",{deltaPosition:{x:c,y:f}},r),r.updateFeature(p,e),n=!1}else n=!1}},h=function e(){if(!r._editMode!==i.SketchEditMode.EDITGRAGIC&&r._startPan){if(l&&r._parent&&r._parent._editMode===i.SketchEditMode.EDITGRAGIC)return r._parent._editMode=i.SketchEditMode.EDITVERTEX,clearTimeout(c),r._parent.selectFeatureVertex(r._parent.sketchStage.entityGraphic),r._parent&&r._parent._mapClickEvent&&r.view.on(i.ViewEventType.immediateClick,r._parent._mapClickEvent),r._startPan=!1,r.view.off(i.ViewEventType.pointerMove,f),void r.view.off(i.ViewEventType.pointerUp,e);r._editMode=i.SketchEditMode.NONE,r._startPan=!1,r._enableMapDrag&&r._enableMapDrag(),r.view.off(i.ViewEventType.pointerMove,f),r.view.off(i.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(i.ViewEventType.immediateClick,r._parent._mapClickEvent))}};this._hitTestEventHandlers.push(f),this._hitTestEventHandlers.push(h),this.view.on(i.ViewEventType.pointerUp,h),this.view.on(i.ViewEventType.pointerMove,f)}},{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 o.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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.LineString({coordinates:n,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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.LineString({coordinates:n,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 o.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],a=r[e.vertexIndex+1];n.geometry.coordinates=[(a[0]+i[0])/2,(a[1]+i[1])/2],n.geometry=new o.Point({coordinates:n.geometry.coordinates,spatialReference:this._spatialReference})}else if(e.vertexIndex===r.length-1){var s=this.sketchStage.midVertexGraphics[e.vertexIndex-1],u=r[e.vertexIndex-1],l=r[e.vertexIndex];s.geometry.coordinates=[(u[0]+l[0])/2,(u[1]+l[1])/2],s.geometry=new o.Point({coordinates:s.geometry.coordinates,spatialReference:this._spatialReference})}else{var c=this.sketchStage.midVertexGraphics[e.vertexIndex],f=this.sketchStage.midVertexGraphics[e.vertexIndex-1],h=r[e.vertexIndex-1],p=r[e.vertexIndex],d=r[e.vertexIndex+1];c.geometry.coordinates=[(d[0]+p[0])/2,(d[1]+p[1])/2],c.geometry=new o.Point({coordinates:c.geometry.coordinates,spatialReference:this._spatialReference}),f.geometry.coordinates=[(h[0]+p[0])/2,(h[1]+p[1])/2],f.geometry=new o.Point({coordinates:f.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 o.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 o.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"addVertex"===e.action){var r=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),n=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex],a=null,u=null;this._getHight&&(u=0),a=u?new o.Point({coordinates:[(i[0]+e.point.coordinates[0])/2,(i[1]+e.point.coordinates[1])/2,u],spatialReference:this._spatialReference}):new o.Point({coordinates:[(i[0]+e.point.coordinates[0])/2,(i[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var c=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(c),c.addFeature(a,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,c.sketchStage.entityGraphic);var f=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+2],h=null,p=null;this._getHight&&(p=0),h=p?new o.Point({coordinates:[(f[0]+e.point.coordinates[0])/2,(f[1]+e.point.coordinates[1])/2,p],spatialReference:this._spatialReference}):new o.Point({coordinates:[(f[0]+e.point.coordinates[0])/2,(f[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var d=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(d),d.addFeature(h,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(c),this._otherDrawTools.push(d)}}},{key:"addMidVertex",value:function(e,t){var r=new s.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 o.LineString({coordinates:r,spatialReference:this._spatialReference});var n=void 0,i=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 u=[[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=u[t]})}if(this.sketchStage.vertexGraphics.length>0&&(n=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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 c=-1,f=-1,h=null,p=null;if(0===t?(f=0,p=this.sketchStage.entityGraphic.geometry.coordinates[1]):t===this.sketchStage.midVertexGraphics.length+1?(f=this.sketchStage.midVertexGraphics.length-2,p=this.sketchStage.entityGraphic.geometry.coordinates[f]):(c=t-1,f=t+1,h=this.sketchStage.entityGraphic.geometry.coordinates[c],p=this.sketchStage.entityGraphic.geometry.coordinates[f]),c>-1){var d=new o.Point({coordinates:[(h[0]+e.coordinates[0])/2,(h[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[c].geometry.coordinates=d.coordinates}if(f>-1){var y=new o.Point({coordinates:[(p[0]+e.coordinates[0])/2,(p[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});i=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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,a=i.geometry.coordinates;i.geometry.coordinates=a,this.currentVertexIndex=t,a[t]=e.coordinates,i.geometry=new o.LineString({coordinates:i.geometry.coordinates,spatialReference:this._spatialReference}),r=i.geometry,this.sketchStage.entityGraphic.geometry=r;var s=i.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],[(s.xmax+s.xmin)/2,s.ymax],[(s.xmax+s.xmin)/2,s.ymin],[s.xmax,(s.ymax+s.ymin)/2],[s.xmin,(s.ymax+s.ymin)/2]];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],c=a[t],f=a[t+1],h=-1,p=-1;if(0===t?h=t:t===n-1?p=t-1:(h=t,p=t-1),h>-1){var d=this.sketchStage.midVertexGraphics[h];d.geometry.coordinates=[(f[0]+c[0])/2,(f[1]+c[1])/2],d.geometry=new o.Point({coordinates:d.geometry.coordinates,spatialReference:this._spatialReference})}if(p>-1){var y=this.sketchStage.midVertexGraphics[p];y.geometry.coordinates=[(l[0]+c[0])/2,(l[1]+c[1])/2],y.geometry=new o.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 o.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 a=[[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=a[t]})}if(this.sketchStage.vertexGraphics.length>0){var s=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!==s)return e})}if(this.sketchStage.midVertexGraphics.length>0){var u=[],l=-1,c=-1;0===e?c=0:e===r-1?c=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,c=e),l>-1&&(this.sketchStage.midVertexGraphics[l].geometry=new o.Point({coordinates:u,spatialReference:this._spatialReference}));var f=this.sketchStage.vertexGraphics[c].id.toString();this._removeFeatureFromMap(this.sketchStage.midVertexGraphics[c]),this.sketchStage.midVertexGraphics.splice(c,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)}return t}}]),t}();t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(3),a=f(r(20)),s=f(r(19)),u=f(r(34)),l=f(r(18)),c=r(0);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="sketchFreehandPolygonDrawTool",r._initEvent(),r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r.vertexNum=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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=i.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,n=null,o=[],a=null,u=[];this.vertexNum=0;var l=null;this.cursorStyle=this.view.cursor,(0,c.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var f=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var h=function r(o){if(o&&o.x&&o.y){e._stopInitSnap(),clearTimeout(null);var c={x:o.x,y:o.y};if(!(a&&l&&c.x===a.x&&c.y===a.y&&(new Date).getTime()-l<200)){a=c,l=(new Date).getTime(),e._editMode=i.SketchEditMode.DRAWING;var f=null;f=e._snapPoint?e._snapPoint:e.view.toMap({x:c.x,y:c.y}),e.vertexNum++,1===e.vertexNum?(u=[f.coordinates],(n=e._getFeature()).geometry.coordinates=[[u[0],u[0],u[0],u[0]]],t=!1):2===e.vertexNum?u=[n.geometry.coordinates[0][0],n.geometry.coordinates[0][1]]:(u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-2)).push(f.coordinates),e.sketchStage.entityGraphic=n;var h=new s.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});h.addFeature(f,void 0,void 0,e.sketchInnerLayer),e._drawTools.push(h);var p=h.sketchStage.entityGraphic;e.sketchStage.vertexGraphics.push(p),n&&(t=!0),"click",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(i.ViewEventType.immediateClick,r)}}},p=!0,d=function(i){if(i&&i.x&&i.y&&t&&!r){clearTimeout(null),r=!0,n=e.sketchStage.entityGraphic,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var a={x:i.x,y:i.y};o[o.length-1]=a;var s=e.view.toMap({x:a.x,y:a.y});1===e.vertexNum?u=[n.geometry.coordinates[0][0]]:2===e.vertexNum?(n.geometry.coordinates[0][2]=s.coordinates,u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-2)):u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-2),e.vertexNum>0&&(e._snapPoint=e.getSnapGraphics(s,[n.geometry.coordinates[0][0]])),e._snapPoint&&(s=e._snapPoint),e._currentMovePoint=s,1===e.vertexNum?(n.geometry.coordinates[0][1]=s.coordinates,n.geometry.coordinates[0][2]=s.coordinates,u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-2)):2===e.vertexNum?(n.geometry.coordinates[0][2]=s.coordinates,u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-1)):(n.geometry.coordinates[0].splice(n.geometry.coordinates[0].length-1,0,s.coordinates),u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-1)),e.vertexNum++,e.sketchStage.entityGraphic=n,n.geometry.coordinates=[JSON.parse(JSON.stringify(n.geometry.coordinates[0]))],p&&(e._addFeatureToLayer(n,e.layer),p=!1),r=!1,"move";var l=e._getInteractiveDom();f=f.concat(l),e._removeInteractiveStyle(l),e._fireDrawVertexEvent(n)}},y=function(){if(clearTimeout(null),clearTimeout(null),!t)return n=null,u=[],void(o=[]);n=e.sketchStage.entityGraphic,u=[],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=i.SketchEditMode.NONE,"doubleClick",e.view.cursor=e.cursorStyle,e._addInteractiveStyle(f),e.fire("drawn",{geometry:n.geometry,feature:n},self),e._fireStopDrawEvent(n),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,d,y),this.view.on(i.ViewEventType.immediateClick,h),this.view.on(i.ViewEventType.pointerMove,d),this.view.on(i.ViewEventType.doubleClick,y)}},{key:"addFeature",value:function(e,t,r,n){var i=null;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 o=null;o=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var a=new i.Feature({geometry:e,symbol:o,elevationInfo:this.elevationInfo});r&&(a.attributes=r),this.sketchStage.entityGraphic=a,this._addFeatureToLayer(a,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[0,0],[0,0],[0,0]]);var t=new o.Polygon({coordinates:[e],spatialReference:this._spatialReference}),r=this.sketchStyle.fillStyle.clone(),n=new i.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===i.SketchEditMode.NONE?this._editMode=i.SketchEditMode.EDITGRAGIC:this._editMode===i.SketchEditMode.EDITVERTEX&&(this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=i.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===i.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 u.default({view:this.view,layer:this.layer,sketchStyle:new l.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 a=[];if(a=[{point:new o.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new o.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new o.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new o.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var c=[{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];a=a.concat(c)}var f=[],h=[];a.forEach(function(e){var r=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.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),f.push(r),h.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=h,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(f),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(i.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=i.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(i.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 a=null;a=t.mapPoint;var s=!0;setTimeout(function(){s=!1},200);this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._parent._mapClickEvent);var u=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==i.SketchEditMode.EDITGRAGIC&&!s){clearTimeout(null),n=!0;var u={x:t.x,y:t.y},l=r.view.toMap({x:u.x,y:u.y}),c=l.coordinates[0]-a.coordinates[0],f=l.coordinates[1]-a.coordinates[1];if(0!==c||0!==f){var h=[];e.geometry.coordinates[0].forEach(function(e){h.push(r.getPanCoordinates(e,c,f))});var p=new o.Polygon({coordinates:[h],spatialReference:r._spatialReference});a=l,r._dispatchEvent("pan",{deltaPosition:{x:c,y:f}},r),r.updateFeature(p,e),n=!1}else n=!1}},l=function e(){!r._editMode!==i.SketchEditMode.EDITGRAGIC&&r._startPan&&(r._editMode=i.SketchEditMode.NONE,r._startPan=!1,r.view.off(i.ViewEventType.pointerMove,u),r.view.off(i.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(i.ViewEventType.immediateClick,r._parent._mapClickEvent)),r.view._mapActionControl("drag-pan",!0))};this._hitTestEventHandlers.push(u),this._hitTestEventHandlers.push(l),this.view.on(i.ViewEventType.pointerUp,l),this.view.on(i.ViewEventType.pointerMove,u)}},{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 o.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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.Polygon({coordinates:[n],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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.Polygon({coordinates:[n],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=null,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 o.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 o.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,a=n===this.sketchStage.midVertexGraphics.length-1?0:n+1,s=this.sketchStage.midVertexGraphics[n],u=this.sketchStage.midVertexGraphics[i],l=r[i],c=r[n],f=r[a];s.geometry.coordinates=[(f[0]+c[0])/2,(f[1]+c[1])/2],s.geometry=new o.Point({coordinates:s.geometry.coordinates,spatialReference:this._spatialReference}),u.geometry.coordinates=[(l[0]+c[0])/2,(l[1]+c[1])/2],u.geometry=new o.Point({coordinates:u.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 o.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 o.Polygon({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"addVertex"===e.action){var r=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),n=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex],a=null,u=null;this._getHight&&(u=0),a=u?new o.Point({coordinates:[(i[0]+e.point.coordinates[0])/2,(i[1]+e.point.coordinates[1])/2,u],spatialReference:this._spatialReference}):new o.Point({coordinates:[(i[0]+e.point.coordinates[0])/2,(i[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var c=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(c),c.addFeature(a,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,c.sketchStage.entityGraphic);var f=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+2],h=null,p=null;this._getHight&&(p=0),h=p?new o.Point({coordinates:[(f[0]+e.point.coordinates[0])/2,(f[1]+e.point.coordinates[1])/2,p],spatialReference:this._spatialReference}):new o.Point({coordinates:[(f[0]+e.point.coordinates[0])/2,(f[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var d=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(d),d.addFeature(h,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(c),this._otherDrawTools.push(d)}}},{key:"addMidVertex",value:function(e,t){var r=new s.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,a=void 0,u=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[u.xmax,u.ymax],[u.xmax,u.ymin],[u.xmin,u.ymin],[u.xmin,u.ymax],[u.xmax,u.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var c=[[u.xmax,u.ymax],[u.xmax,u.ymin],[u.xmin,u.ymin],[u.xmin,u.ymax],[(u.xmax+u.xmin)/2,u.ymax],[(u.xmax+u.xmin)/2,u.ymin],[u.xmax,(u.ymax+u.ymin)/2],[u.xmin,(u.ymax+u.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=c[t]})}if(this.sketchStage.vertexGraphics.length>0&&(i=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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 f=-1,h=-1,p=null,d=null;0===t?(h=0,f=this.sketchStage.midVertexGraphics.length-1,p=this.sketchStage.entityGraphic.geometry.coordinates[0][this.sketchStage.entityGraphic.geometry.coordinates[0].length-2],d=this.sketchStage.entityGraphic.geometry.coordinates[0][1]):(f=t-1,h=t+1,p=this.sketchStage.entityGraphic.geometry.coordinates[0][f],d=this.sketchStage.entityGraphic.geometry.coordinates[0][h]);var y=new o.Point({coordinates:[(p[0]+e.coordinates[0])/2,(p[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[f].geometry.coordinates=y.coordinates;var g=new o.Point({coordinates:[(d[0]+e.coordinates[0])/2,(d[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});a=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(a),a.addFeatureByGeometry(g,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}})}i&&this._otherDrawTools.push(i),a&&this._otherDrawTools.push(a),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 o.Polygon({coordinates:n.geometry.coordinates,spatialReference:this._spatialReference}),r=n.geometry;var a=n.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=t,l=0===u?u-1+this.sketchStage.midVertexGraphics.length:u-1,c=u===this.sketchStage.midVertexGraphics.length-1?0:u+1,f=this.sketchStage.midVertexGraphics[u],h=this.sketchStage.midVertexGraphics[l],p=i[l],d=i[u],y=i[c];f.geometry.coordinates=[(y[0]+d[0])/2,(y[1]+d[1])/2],f.geometry=new o.Point({coordinates:f.geometry.coordinates,spatialReference:this._spatialReference}),h.geometry.coordinates=[(p[0]+d[0])/2,(p[1]+d[1])/2],h.geometry=new o.Point({coordinates:h.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 o.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 a=[[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=a[t]})}if(this.sketchStage.vertexGraphics.length>0){var s=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!==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 o.Point({coordinates:u,spatialReference:this._spatialReference});var c=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!==c)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode)}return t}}]),t}();t.default=h},function(e,t,r){"use strict";r.r(t);var n=r(72),i=r(104),o=Object(n.default)("WGS84");function a(e,t,r,n){var o,a,s;return Array.isArray(r)?(o=Object(i.default)(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 o.z?[o.x,o.y,o.z].concat(r.splice(3)):[o.x,o.y,r[2]].concat(r.splice(3)):[o.x,o.y].concat(r.splice(2)):[o.x,o.y]):(a=Object(i.default)(e,t,r,n),2===(s=Object.keys(r)).length?a:(s.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;a[n]=r[n]}),a))}function s(e){return e instanceof n.default?e:e.oProj?e.oProj:Object(n.default)(e)}t.default=function(e,t,r){e=s(e);var n,i=!1;return void 0===t?(t=e,e=o,i=!0):(void 0!==t.x||Array.isArray(t))&&(r=t,t=e,e=o,i=!0),t=s(t),r?a(e,t,r):(n={forward:function(r,n){return a(e,t,r,n)},inverse:function(r,n){return a(t,e,r,n)}},i&&(n.oProj=t),n)}},function(e,t,r){"use strict";r.r(t);var n=r(100),i=r(102),o=r(101),a=r(53);var s=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var u=["3857","900913","3785","102113"];t.default=function(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in n.default}(e))return n.default[e];if(function(e){return s.some(function(t){return e.indexOf(t)>-1})}(e)){var t=Object(i.default)(e);if(function(e){var t=Object(a.default)(e,"authority");if(t){var r=Object(a.default)(t,"epsg");return r&&u.indexOf(r)>-1}}(t))return n.default["EPSG:3857"];var r=function(e){var t=Object(a.default)(e,"extension");if(t)return Object(a.default)(t,"proj4")}(t);return r?Object(o.default)(r):t}return function(e){return"+"===e[0]}(e)?Object(o.default)(e):void 0}},function(e,t,r){"use strict";r.r(t),t.default=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"]}},function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return n});var n={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}},function(e,t,r){"use strict";r.r(t),t.default={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}}},function(e,t,r){"use strict";r.r(t),t.default=function(e){return new l(e).output()};var n=1,i=/\s/,o=/[A-Za-z]/,a=/[A-Za-z84_]/,s=/[,\]]/,u=/[\d\.E\-\+]/;function l(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=n}l.prototype.readCharicter=function(){var e=this.text[this.place++];if(4!==this.state)for(;i.test(e);){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case n: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}},l.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(s.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)},l.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=n)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=n,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},l.prototype.number=function(e){if(!u.test(e)){if(s.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},l.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},l.prototype.keyword=function(e){if(a.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=n)}if(!s.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},l.prototype.neutral=function(e){if(o.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(u.test(e))return this.word=e,void(this.state=3);if(!s.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},l.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)}},function(e,t,r){"use strict";function n(e,t,r){Array.isArray(t)&&(r.unshift(t),t=null);var n=t?{}:e,o=r.reduce(function(e,t){return i(t,e),e},n);t&&(e[t]=o)}function i(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 i(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 o;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&&i(e[2],t[r]));case"SPHEROID":case"ELLIPSOID":return t[r]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&i(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 n(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]],n(t,r,e),void(t[r].type=r);default:for(o=-1;++o<e.length;)if(!Array.isArray(e[o]))return i(e,t[r]);return n(t,r,e)}}else t[r]=e;else t[r]=!0}else t[e]=!0}r.r(t),r.d(t,"sExpr",function(){return i})},function(e,t,r){"use strict";r.r(t),t.default=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}},function(e,t,r){"use strict";r.r(t),r.d(t,"add",function(){return u}),r.d(t,"get",function(){return l}),r.d(t,"start",function(){return c});var n=r(191),i=r(192),o=[n.default,i.default],a={},s=[];function u(e,t){var r=s.length;return e.names?(s[r]=e,e.names.forEach(function(e){a[e.toLowerCase()]=r}),this):(console.log(t),!0)}function l(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==a[t]&&s[a[t]]?s[a[t]]:void 0}function c(){o.forEach(u)}t.default={start:c,add:u,get:l}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return u}),r.d(t,"forward",function(){return l}),r.d(t,"inverse",function(){return c}),r.d(t,"names",function(){return f});var n=r(35),i=r(6),o=r(54),a=r(55),s=r(4);function u(){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=Object(n.default)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function l(e){var t,r,n=e.x,a=e.y;if(a*s.R2D>90&&a*s.R2D<-90&&n*s.R2D>180&&n*s.R2D<-180)return null;if(Math.abs(Math.abs(a)-s.HALF_PI)<=s.EPSLN)return null;if(this.sphere)t=this.x0+this.a*this.k0*Object(i.default)(n-this.long0),r=this.y0+this.a*this.k0*Math.log(Math.tan(s.FORTPI+.5*a));else{var u=Math.sin(a),l=Object(o.default)(this.e,a,u);t=this.x0+this.a*this.k0*Object(i.default)(n-this.long0),r=this.y0-this.a*this.k0*Math.log(l)}return e.x=t,e.y=r,e}function c(e){var t,r,n=e.x-this.x0,o=e.y-this.y0;if(this.sphere)r=s.HALF_PI-2*Math.atan(Math.exp(-o/(this.a*this.k0)));else{var u=Math.exp(-o/(this.a*this.k0));if(-9999===(r=Object(a.default)(this.e,u)))return null}return t=Object(i.default)(this.long0+n/(this.a*this.k0)),e.x=t,e.y=r,e}var f=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];t.default={init:u,forward:l,inverse:c,names:f}},function(e,t,r){"use strict";function n(){}function i(e){return e}r.r(t),r.d(t,"init",function(){return n}),r.d(t,"forward",function(){return i}),r.d(t,"inverse",function(){return i}),r.d(t,"names",function(){return o});var o=["longlat","identity"];t.default={init:n,forward:i,inverse:i,names:o}},function(e,t,r){"use strict";r.r(t),r.d(t,"eccentricity",function(){return a}),r.d(t,"sphere",function(){return s});var n=r(4),i=r(194),o=r(53);function a(e,t,r,i){var o=e*e,a=t*t,s=(o-a)/o,u=0;return i?(o=(e*=1-s*(n.SIXTH+s*(n.RA4+s*n.RA6)))*e,s=0):u=Math.sqrt(s),{es:s,e:u,ep2:(o-a)/a}}function s(e,t,r,a,s){if(!e){var u=Object(o.default)(i.default,a);u||(u=i.WGS84),e=u.a,t=u.b,r=u.rf}return r&&!t&&(t=(1-1/r)*e),(0===r||Math.abs(e-t)<n.EPSLN)&&(s=!0,t=e),{a:e,b:t,rf:r,sphere:s}}},function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return n}),r.d(t,"WGS84",function(){return i});var n={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"}},i=n.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};n.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return n});var n={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"}}},function(e,t,r){"use strict";r.r(t);var n=r(4);t.default=function(e,t,r,i,o,a,s){var u={};return u.datum_type=void 0===e||"none"===e?n.PJD_NODATUM:n.PJD_WGS84,t&&(u.datum_params=t.map(parseFloat),0===u.datum_params[0]&&0===u.datum_params[1]&&0===u.datum_params[2]||(u.datum_type=n.PJD_3PARAM),u.datum_params.length>3&&(0===u.datum_params[3]&&0===u.datum_params[4]&&0===u.datum_params[5]&&0===u.datum_params[6]||(u.datum_type=n.PJD_7PARAM,u.datum_params[3]*=n.SEC_TO_RAD,u.datum_params[4]*=n.SEC_TO_RAD,u.datum_params[5]*=n.SEC_TO_RAD,u.datum_params[6]=u.datum_params[6]/1e6+1))),s&&(u.datum_type=n.PJD_GRIDSHIFT,u.grids=s),u.a=r,u.b=i,u.es=o,u.ep2=a,u}},function(e,t,r){"use strict";r.r(t),r.d(t,"applyGridShift",function(){return s});var n=r(4),i=r(105),o=r(6);function a(e){return e===n.PJD_3PARAM||e===n.PJD_7PARAM}function s(e,t,r){if(null===e.grids||0===e.grids.length)return console.log("Grid shift grids not found"),-1;for(var i={x:-r.x,y:r.y},o={x:Number.NaN,y:Number.NaN},a=[],s=0;s<e.grids.length;s++){var l=e.grids[s];if(a.push(l.name),l.isNull){o=i;break}if(l.mandatory,null!==l.grid){var c=l.grid.subgrids[0],f=(Math.abs(c.del[1])+Math.abs(c.del[0]))/1e4,h=c.ll[0]-f,p=c.ll[1]-f,d=c.ll[0]+(c.lim[0]-1)*c.del[0]+f,y=c.ll[1]+(c.lim[1]-1)*c.del[1]+f;if(!(p>i.y||h>i.x||y<i.y||d<i.x||(o=u(i,t,c),isNaN(o.x))))break}else if(l.mandatory)return console.log("Unable to find mandatory grid '"+l.name+"'"),-1}return isNaN(o.x)?(console.log("Failed to find a grid shift table for location '"+-i.x*n.R2D+" "+i.y*n.R2D+" tried: '"+a+"'"),-1):(r.x=-o.x,r.y=o.y,0)}function u(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=Object(o.default)(i.x-Math.PI)+Math.PI;var a=l(i,r);if(t){if(isNaN(a.x))return n;a.x=i.x-a.x,a.y=i.y-a.y;var s,u,c=9;do{if(u=l(a,r),isNaN(u.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}s={x:i.x-(u.x+a.x),y:i.y-(u.y+a.y)},a.x+=s.x,a.y+=s.y}while(c--&&Math.abs(s.x)>1e-12&&Math.abs(s.y)>1e-12);if(c<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=Object(o.default)(a.x+r.ll[0]),n.y=a.y+r.ll[1]}else isNaN(a.x)||(n.x=e.x+a.x,n.y=e.y+a.y);return n}function l(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 f=t.cvs[r][0],h=t.cvs[r][1];r+=t.lim[0];var p=t.cvs[r][0],d=t.cvs[r][1];r--;var y=t.cvs[r][0],g=t.cvs[r][1],v=a*s,m=a*(1-s),_=(1-a)*(1-s),b=(1-a)*s;return u.x=_*l+m*f+b*y+v*p,u.y=_*c+m*h+b*g+v*d,u}t.default=function(e,t,r){if(Object(i.compareDatums)(e,t))return r;if(e.datum_type===n.PJD_NODATUM||t.datum_type===n.PJD_NODATUM)return r;var o=e.a,u=e.es;if(e.datum_type===n.PJD_GRIDSHIFT){if(0!==s(e,!1,r))return;o=n.SRS_WGS84_SEMIMAJOR,u=n.SRS_WGS84_ESQUARED}var l=t.a,c=t.b,f=t.es;if(t.datum_type===n.PJD_GRIDSHIFT&&(l=n.SRS_WGS84_SEMIMAJOR,c=n.SRS_WGS84_SEMIMINOR,f=n.SRS_WGS84_ESQUARED),u===f&&o===l&&!a(e.datum_type)&&!a(t.datum_type))return r;if((r=Object(i.geodeticToGeocentric)(r,u,o),a(e.datum_type)&&(r=Object(i.geocentricToWgs84)(r,e.datum_type,e.datum_params)),a(t.datum_type)&&(r=Object(i.geocentricFromWgs84)(r,t.datum_type,t.datum_params)),r=Object(i.geocentricToGeodetic)(r,f,l,c),t.datum_type===n.PJD_GRIDSHIFT)&&0!==s(t,!0,r))return;return r}},function(e,t,r){"use strict";r.r(t),t.default=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}},function(e,t,r){"use strict";function n(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")}r.r(t),t.default=function(e){n(e.x),n(e.y)}},function(e,t,r){"use strict";r.r(t);var n=r(107);function i(e,t,r){if(!(this instanceof i))return new i(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")}i.fromMGRS=function(e){return new i(Object(n.toPoint)(e))},i.prototype.toMGRS=function(e){return Object(n.forward)([this.x,this.y],e)},t.default=i},function(e,t,r){"use strict";r.r(t);var n=r(108),i=r(111),o=r(208),a=r(210),s=r(213),u=r(214),l=r(215),c=r(216),f=r(217),h=r(218),p=r(219),d=r(220),y=r(221),g=r(222),v=r(224),m=r(225),_=r(226),b=r(227),S=r(228),x=r(229),w=r(230),O=r(231),E=r(232),P=r(233),k=r(234),T=r(235),I=r(236),M=r(237),L=r(238);t.default=function(e){e.Proj.projections.add(n.default),e.Proj.projections.add(i.default),e.Proj.projections.add(o.default),e.Proj.projections.add(a.default),e.Proj.projections.add(s.default),e.Proj.projections.add(u.default),e.Proj.projections.add(l.default),e.Proj.projections.add(c.default),e.Proj.projections.add(f.default),e.Proj.projections.add(h.default),e.Proj.projections.add(p.default),e.Proj.projections.add(d.default),e.Proj.projections.add(y.default),e.Proj.projections.add(g.default),e.Proj.projections.add(v.default),e.Proj.projections.add(m.default),e.Proj.projections.add(_.default),e.Proj.projections.add(b.default),e.Proj.projections.add(S.default),e.Proj.projections.add(x.default),e.Proj.projections.add(w.default),e.Proj.projections.add(O.default),e.Proj.projections.add(E.default),e.Proj.projections.add(P.default),e.Proj.projections.add(k.default),e.Proj.projections.add(T.default),e.Proj.projections.add(I.default),e.Proj.projections.add(M.default),e.Proj.projections.add(L.default)}},function(e,t,r){"use strict";r.r(t);var n=r(56),i=r(203);t.default=function(e){var t=Math.abs(e);return t=Object(i.default)(t*(1+t/(Object(n.default)(1,t)+1))),e<0?-t:t}},function(e,t,r){"use strict";r.r(t),t.default=function(e){var t=1+e,r=t-1;return 0===r?e:e*Math.log(t)/r}},function(e,t,r){"use strict";r.r(t),t.default=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)}},function(e,t,r){"use strict";r.r(t),t.default=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}},function(e,t,r){"use strict";r.r(t);var n=r(112),i=r(207);t.default=function(e,t,r){for(var o,a,s=Math.sin(t),u=Math.cos(t),l=Object(n.default)(r),c=Object(i.default)(r),f=2*u*c,h=-2*s*l,p=e.length-1,d=e[p],y=0,g=0,v=0;--p>=0;)o=g,a=y,d=f*(g=d)-o-h*(y=v)+e[p],v=h*g-a+f*y;return[(f=s*c)*d-(h=u*l)*v,f*v+h*d]}},function(e,t,r){"use strict";r.r(t),t.default=function(e){var t=Math.exp(e);return t=(t+1/t)/2}},function(e,t,r){"use strict";r.r(t),r.d(t,"dependsOn",function(){return a}),r.d(t,"init",function(){return s}),r.d(t,"names",function(){return u});var n=r(209),i=r(111),o=r(4),a="etmerc";function s(){var e=Object(n.default)(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*o.D2R,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,i.default.init.apply(this),this.forward=i.default.forward,this.inverse=i.default.inverse}var u=["Universal Transverse Mercator System","utm"];t.default={init:s,names:u,dependsOn:a}},function(e,t,r){"use strict";r.r(t);var n=r(6);t.default=function(e,t){if(void 0===e){if((e=Math.floor(30*(Object(n.default)(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return o}),r.d(t,"forward",function(){return a}),r.d(t,"inverse",function(){return s}),r.d(t,"names",function(){return u});var n=r(211),i=r(6);function o(){n.default.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"))}function a(e){var t,r,o,a;return e.x=Object(i.default)(e.x-this.long0),n.default.forward.apply(this,[e]),t=Math.sin(e.y),r=Math.cos(e.y),o=Math.cos(e.x),a=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*r*o),e.x=a*r*Math.sin(e.x),e.y=a*(this.cosc0*t-this.sinc0*r*o),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function s(e){var t,r,o,a,s;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,s=Math.sqrt(e.x*e.x+e.y*e.y)){var u=2*Math.atan2(s,this.R2);t=Math.sin(u),r=Math.cos(u),a=Math.asin(r*this.sinc0+e.y*t*this.cosc0/s),o=Math.atan2(e.x*t,s*this.cosc0*r-e.y*this.sinc0*t)}else a=this.phic0,o=0;return e.x=o,e.y=a,n.default.inverse.apply(this,[e]),e.x=Object(i.default)(e.x+this.long0),e}var u=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"];t.default={init:o,forward:a,inverse:s,names:u}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return a}),r.d(t,"forward",function(){return s}),r.d(t,"inverse",function(){return u}),r.d(t,"names",function(){return l});var n=r(212),i=r(4),o=20;function a(){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+i.FORTPI)/(Math.pow(Math.tan(.5*this.lat0+i.FORTPI),this.C)*Object(n.default)(this.e*e,this.ratexp))}function s(e){var t=e.x,r=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+i.FORTPI),this.C)*Object(n.default)(this.e*Math.sin(r),this.ratexp))-i.HALF_PI,e.x=this.C*t,e}function u(e){for(var t=e.x/this.C,r=e.y,a=Math.pow(Math.tan(.5*r+i.FORTPI)/this.K,1/this.C),s=o;s>0&&(r=2*Math.atan(a*Object(n.default)(this.e*Math.sin(e.y),-.5*this.e))-i.HALF_PI,!(Math.abs(r-e.y)<1e-14));--s)e.y=r;return s?(e.x=t,e.y=r,e):null}var l=["gauss"];t.default={init:a,forward:s,inverse:u,names:l}},function(e,t,r){"use strict";r.r(t),t.default=function(e,t){return Math.pow((1-e)/(1+e),t)}},function(e,t,r){"use strict";r.r(t),r.d(t,"ssfn_",function(){return l}),r.d(t,"init",function(){return c}),r.d(t,"forward",function(){return f}),r.d(t,"inverse",function(){return h}),r.d(t,"names",function(){return p});var n=r(4),i=r(42),o=r(35),a=r(54),s=r(55),u=r(6);function l(e,t,r){return t*=r,Math.tan(.5*(n.HALF_PI+e))*Math.pow((1-t)/(1+t),.5*r)}function c(){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)<=n.EPSLN&&(this.k0=.5*(1+Object(i.default)(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=n.EPSLN&&(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)<=n.EPSLN&&(this.k0=.5*this.cons*Object(o.default)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Object(a.default)(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Object(o.default)(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-n.HALF_PI,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function f(e){var t,r,i,o,s,l,c=e.x,f=e.y,h=Math.sin(f),p=Math.cos(f),d=Object(u.default)(c-this.long0);return Math.abs(Math.abs(c-this.long0)-Math.PI)<=n.EPSLN&&Math.abs(f+this.lat0)<=n.EPSLN?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*h+this.coslat0*p*Math.cos(d)),e.x=this.a*t*p*Math.sin(d)+this.x0,e.y=this.a*t*(this.coslat0*h-this.sinlat0*p*Math.cos(d))+this.y0,e):(r=2*Math.atan(this.ssfn_(f,h,this.e))-n.HALF_PI,o=Math.cos(r),i=Math.sin(r),Math.abs(this.coslat0)<=n.EPSLN?(s=Object(a.default)(this.e,f*this.con,this.con*h),l=2*this.a*this.k0*s/this.cons,e.x=this.x0+l*Math.sin(c-this.long0),e.y=this.y0-this.con*l*Math.cos(c-this.long0),e):(Math.abs(this.sinlat0)<n.EPSLN?(t=2*this.a*this.k0/(1+o*Math.cos(d)),e.y=t*i):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*i+this.cosX0*o*Math.cos(d))),e.y=t*(this.cosX0*i-this.sinX0*o*Math.cos(d))+this.y0),e.x=t*o*Math.sin(d)+this.x0,e))}function h(e){var t,r,i,o,a;e.x-=this.x0,e.y-=this.y0;var l=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var c=2*Math.atan(l/(2*this.a*this.k0));return t=this.long0,r=this.lat0,l<=n.EPSLN?(e.x=t,e.y=r,e):(r=Math.asin(Math.cos(c)*this.sinlat0+e.y*Math.sin(c)*this.coslat0/l),t=Math.abs(this.coslat0)<n.EPSLN?this.lat0>0?Object(u.default)(this.long0+Math.atan2(e.x,-1*e.y)):Object(u.default)(this.long0+Math.atan2(e.x,e.y)):Object(u.default)(this.long0+Math.atan2(e.x*Math.sin(c),l*this.coslat0*Math.cos(c)-e.y*this.sinlat0*Math.sin(c))),e.x=t,e.y=r,e)}if(Math.abs(this.coslat0)<=n.EPSLN){if(l<=n.EPSLN)return r=this.lat0,t=this.long0,e.x=t,e.y=r,e;e.x*=this.con,e.y*=this.con,i=l*this.cons/(2*this.a*this.k0),r=this.con*Object(s.default)(this.e,i),t=this.con*Object(u.default)(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else o=2*Math.atan(l*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,l<=n.EPSLN?a=this.X0:(a=Math.asin(Math.cos(o)*this.sinX0+e.y*Math.sin(o)*this.cosX0/l),t=Object(u.default)(this.long0+Math.atan2(e.x*Math.sin(o),l*this.cosX0*Math.cos(o)-e.y*this.sinX0*Math.sin(o)))),r=-1*Object(s.default)(this.e,Math.tan(.5*(n.HALF_PI+a)));return e.x=t,e.y=r,e}var p=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"];t.default={init:c,forward:f,inverse:h,names:p,ssfn_:l}},function(e,t,r){"use strict";function n(){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}function i(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}function o(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,f=0;Math.abs(l-c)>1e-7;){if(++f>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}r.r(t),r.d(t,"init",function(){return n}),r.d(t,"forward",function(){return i}),r.d(t,"inverse",function(){return o}),r.d(t,"names",function(){return a});var a=["somerc"];t.default={init:n,forward:i,inverse:o,names:a}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return u}),r.d(t,"forward",function(){return l}),r.d(t,"inverse",function(){return c}),r.d(t,"names",function(){return f});var n=r(54),i=r(6),o=r(55),a=r(4),s=1e-7;function u(){var e,t,r,o,u,l,c,f,h,p,d,y=0,g=0,v=0,m=0,_=0,b=0,S=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 x=!1;"alpha"in this&&(x=!0);var w=!1;if("rectified_grid_angle"in this&&(w=!0),x&&(S=this.alpha),w&&(y=this.rectified_grid_angle*a.D2R),x||w)g=this.longc;else if(v=this.long1,_=this.lat1,m=this.long2,b=this.lat2,Math.abs(_-b)<=s||(e=Math.abs(_))<=s||Math.abs(e-a.HALF_PI)<=s||Math.abs(Math.abs(this.lat0)-a.HALF_PI)<=s||Math.abs(Math.abs(b)-a.HALF_PI)<=s)throw new Error;var O=1-this.es;t=Math.sqrt(O),Math.abs(this.lat0)>a.EPSLN?(f=Math.sin(this.lat0),r=Math.cos(this.lat0),e=1-this.es*f*f,this.B=r*r,this.B=Math.sqrt(1+this.es*this.B*this.B/O),this.A=this.B*this.k0*t/e,(u=(o=this.B*t/(r*Math.sqrt(e)))*o-1)<=0?u=0:(u=Math.sqrt(u),this.lat0<0&&(u=-u)),this.E=u+=o,this.E*=Math.pow(Object(n.default)(this.e,this.lat0,f),this.B)):(this.B=1/t,this.A=this.k0,this.E=o=u=1),x||w?(x?(d=Math.asin(Math.sin(S)/o),w||(y=S)):(d=y,S=Math.asin(o*Math.sin(d))),this.lam0=g-Math.asin(.5*(u-1/u)*Math.tan(d))/this.B):(l=Math.pow(Object(n.default)(this.e,_,Math.sin(_)),this.B),c=Math.pow(Object(n.default)(this.e,b,Math.sin(b)),this.B),u=this.E/l,h=(c-l)/(c+l),p=((p=this.E*this.E)-c*l)/(p+c*l),(e=v-m)<-Math.pi?m-=a.TWO_PI:e>Math.pi&&(m+=a.TWO_PI),this.lam0=Object(i.default)(.5*(v+m)-Math.atan(p*Math.tan(.5*this.B*(v-m))/h)/this.B),d=Math.atan(2*Math.sin(this.B*Object(i.default)(v-this.lam0))/(u-1/u)),y=S=Math.asin(o*Math.sin(d))),this.singam=Math.sin(d),this.cosgam=Math.cos(d),this.sinrot=Math.sin(y),this.cosrot=Math.cos(y),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(o*o-1)/Math.cos(S))),this.lat0<0&&(this.u_0=-this.u_0)),u=.5*d,this.v_pole_n=this.ArB*Math.log(Math.tan(a.FORTPI-u)),this.v_pole_s=this.ArB*Math.log(Math.tan(a.FORTPI+u))}function l(e){var t,r,i,o,u,l,c,f,h={};if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-a.HALF_PI)>a.EPSLN){if(t=.5*((u=this.E/Math.pow(Object(n.default)(this.e,e.y,Math.sin(e.y)),this.B))-(l=1/u)),r=.5*(u+l),o=Math.sin(this.B*e.x),i=(t*this.singam-o*this.cosgam)/r,Math.abs(Math.abs(i)-1)<a.EPSLN)throw new Error;f=.5*this.ArB*Math.log((1-i)/(1+i)),l=Math.cos(this.B*e.x),c=Math.abs(l)<s?this.A*e.x:this.ArB*Math.atan2(t*this.cosgam+o*this.singam,l)}else f=e.y>0?this.v_pole_n:this.v_pole_s,c=this.ArB*e.y;return this.no_rot?(h.x=c,h.y=f):(c-=this.u_0,h.x=f*this.cosrot+c*this.sinrot,h.y=c*this.cosrot-f*this.sinrot),h.x=this.a*h.x+this.x0,h.y=this.a*h.y+this.y0,h}function c(e){var t,r,n,i,s,u,l,c={};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),s=.5*(n+1/n),l=((u=Math.sin(this.BrA*t))*this.cosgam+i*this.singam)/s,Math.abs(Math.abs(l)-1)<a.EPSLN)c.x=0,c.y=l<0?-a.HALF_PI:a.HALF_PI;else{if(c.y=this.E/Math.sqrt((1+l)/(1-l)),c.y=Object(o.default)(this.e,Math.pow(c.y,1/this.B)),c.y===1/0)throw new Error;c.x=-this.rB*Math.atan2(i*this.cosgam-u*this.singam,Math.cos(this.BrA*t))}return c.x+=this.lam0,c}var f=["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"];t.default={init:u,forward:l,inverse:c,names:f}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return l}),r.d(t,"forward",function(){return c}),r.d(t,"inverse",function(){return f}),r.d(t,"names",function(){return h});var n=r(35),i=r(54),o=r(42),a=r(6),s=r(55),u=r(4);function l(){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)<u.EPSLN)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),r=Math.cos(this.lat1),o=Object(n.default)(this.e,t,r),a=Object(i.default)(this.e,this.lat1,t),s=Math.sin(this.lat2),l=Math.cos(this.lat2),c=Object(n.default)(this.e,s,l),f=Object(i.default)(this.e,this.lat2,s),h=Object(i.default)(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>u.EPSLN?this.ns=Math.log(o/c)/Math.log(a/f):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=o/(this.ns*Math.pow(a,this.ns)),this.rh=this.a*this.f0*Math.pow(h,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function c(e){var t=e.x,r=e.y;Math.abs(2*Math.abs(r)-Math.PI)<=u.EPSLN&&(r=Object(o.default)(r)*(u.HALF_PI-2*u.EPSLN));var n,s,l=Math.abs(Math.abs(r)-u.HALF_PI);if(l>u.EPSLN)n=Object(i.default)(this.e,r,Math.sin(r)),s=this.a*this.f0*Math.pow(n,this.ns);else{if((l=r*this.ns)<=0)return null;s=0}var c=this.ns*Object(a.default)(t-this.long0);return e.x=this.k0*(s*Math.sin(c))+this.x0,e.y=this.k0*(this.rh-s*Math.cos(c))+this.y0,e}function f(e){var t,r,n,i,o,l=(e.x-this.x0)/this.k0,c=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(l*l+c*c),r=1):(t=-Math.sqrt(l*l+c*c),r=-1);var f=0;if(0!==t&&(f=Math.atan2(r*l,r*c)),0!==t||this.ns>0){if(r=1/this.ns,n=Math.pow(t/(this.a*this.f0),r),-9999===(i=Object(s.default)(this.e,n)))return null}else i=-u.HALF_PI;return o=Object(a.default)(f/this.ns+this.long0),e.x=o,e.y=i,e}var h=["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)"];t.default={init:l,forward:c,inverse:f,names:h}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return i}),r.d(t,"forward",function(){return o}),r.d(t,"inverse",function(){return a}),r.d(t,"names",function(){return s});var n=r(6);function i(){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}function o(e){var t,r,i,o,a,s,u,l=e.x,c=e.y,f=Object(n.default)(l-this.long0);return t=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),r=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/t)-this.s45),i=-f*this.alfa,o=Math.asin(Math.cos(this.ad)*Math.sin(r)+Math.sin(this.ad)*Math.cos(r)*Math.cos(i)),a=Math.asin(Math.cos(r)*Math.sin(i)/Math.cos(o)),s=this.n*a,u=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(o/2+this.s45),this.n),e.y=u*Math.cos(s)/1,e.x=u*Math.sin(s)/1,this.czech||(e.y*=-1,e.x*=-1),e}function a(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}var s=["Krovak","krovak"];t.default={init:i,forward:o,inverse:a,names:s}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return p}),r.d(t,"forward",function(){return d}),r.d(t,"inverse",function(){return y}),r.d(t,"names",function(){return g});var n=r(57),i=r(58),o=r(59),a=r(60),s=r(61),u=r(74),l=r(6),c=r(43),f=r(75),h=r(4);function p(){this.sphere||(this.e0=Object(i.default)(this.es),this.e1=Object(o.default)(this.es),this.e2=Object(a.default)(this.es),this.e3=Object(s.default)(this.es),this.ml0=this.a*Object(n.default)(this.e0,this.e1,this.e2,this.e3,this.lat0))}function d(e){var t,r,i=e.x,o=e.y;if(i=Object(l.default)(i-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(o)*Math.sin(i)),r=this.a*(Math.atan2(Math.tan(o),Math.cos(i))-this.lat0);else{var a=Math.sin(o),s=Math.cos(o),c=Object(u.default)(this.a,this.e,a),f=Math.tan(o)*Math.tan(o),h=i*Math.cos(o),p=h*h,d=this.es*s*s/(1-this.es);t=c*h*(1-p*f*(1/6-(8-f+8*d)*p/120)),r=this.a*Object(n.default)(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+c*a/s*p*(.5+(5-f+6*d)*p/24)}return e.x=t+this.x0,e.y=r+this.y0,e}function y(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,s=Object(f.default)(a,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(s)-h.HALF_PI)<=h.EPSLN)return e.x=this.long0,e.y=h.HALF_PI,i<0&&(e.y*=-1),e;var p=Object(u.default)(this.a,this.e,Math.sin(s)),d=p*p*p/this.a/this.a*(1-this.es),y=Math.pow(Math.tan(s),2),g=n*this.a/p,v=g*g;t=s-p*Math.tan(s)/d*g*g*(.5-(1+3*y)*g*g/24),r=g*(1-v*(y/3+(1+3*y)*y*v/15))/Math.cos(s)}return e.x=Object(l.default)(r+this.long0),e.y=Object(c.default)(t),e}var g=["Cassini","Cassini_Soldner","cass"];t.default={init:p,forward:d,inverse:y,names:g}},function(e,t,r){"use strict";r.r(t),r.d(t,"S_POLE",function(){return a}),r.d(t,"N_POLE",function(){return s}),r.d(t,"EQUIT",function(){return u}),r.d(t,"OBLIQ",function(){return l}),r.d(t,"init",function(){return c}),r.d(t,"forward",function(){return f}),r.d(t,"inverse",function(){return h}),r.d(t,"names",function(){return _});var n=r(4),i=r(76),o=r(6),a=1,s=2,u=3,l=4;function c(){var e,t=Math.abs(this.lat0);if(Math.abs(t-n.HALF_PI)<n.EPSLN?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<n.EPSLN?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=Object(i.default)(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,r=[];return r[0]=e*p,t=e*e,r[0]+=t*d,r[1]=t*g,t*=e,r[0]+=t*y,r[1]+=t*v,r[2]=t*m,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=Object(i.default)(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))}function f(e){var t,r,a,s,u,l,c,f,h,p,d=e.x,y=e.y;if(d=Object(o.default)(d-this.long0),this.sphere){if(u=Math.sin(y),p=Math.cos(y),a=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((r=this.mode===this.EQUIT?1+p*a:1+this.sinph0*u+this.cosph0*p*a)<=n.EPSLN)return null;t=(r=Math.sqrt(2/r))*p*Math.sin(d),r*=this.mode===this.EQUIT?u:this.cosph0*u-this.sinph0*p*a}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(a=-a),Math.abs(y+this.lat0)<n.EPSLN)return null;r=n.FORTPI-.5*y,t=(r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)))*Math.sin(d),r*=a}}else{switch(c=0,f=0,h=0,a=Math.cos(d),s=Math.sin(d),u=Math.sin(y),l=Object(i.default)(this.e,u),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(c=l/this.qp,f=Math.sqrt(1-c*c)),this.mode){case this.OBLIQ:h=1+this.sinb1*c+this.cosb1*f*a;break;case this.EQUIT:h=1+f*a;break;case this.N_POLE:h=n.HALF_PI+y,l=this.qp-l;break;case this.S_POLE:h=y-n.HALF_PI,l=this.qp+l}if(Math.abs(h)<n.EPSLN)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:h=Math.sqrt(2/h),r=this.mode===this.OBLIQ?this.ymf*h*(this.cosb1*c-this.sinb1*f*a):(h=Math.sqrt(2/(1+f*a)))*c*this.ymf,t=this.xmf*h*f*s;break;case this.N_POLE:case this.S_POLE:l>=0?(t=(h=Math.sqrt(l))*s,r=a*(this.mode===this.S_POLE?h:-h)):t=r=0}}return e.x=this.a*t+this.x0,e.y=this.a*r+this.y0,e}function h(e){e.x-=this.x0,e.y-=this.y0;var t,r,i,a,s,u,l,c=e.x/this.a,f=e.y/this.a;if(this.sphere){var h,p=0,d=0;if((r=.5*(h=Math.sqrt(c*c+f*f)))>1)return null;switch(r=2*Math.asin(r),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(d=Math.sin(r),p=Math.cos(r)),this.mode){case this.EQUIT:r=Math.abs(h)<=n.EPSLN?0:Math.asin(f*d/h),c*=d,f=p*h;break;case this.OBLIQ:r=Math.abs(h)<=n.EPSLN?this.lat0:Math.asin(p*this.sinph0+f*d*this.cosph0/h),c*=d*this.cosph0,f=(p-Math.sin(r)*this.sinph0)*h;break;case this.N_POLE:f=-f,r=n.HALF_PI-r;break;case this.S_POLE:r-=n.HALF_PI}t=0!==f||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(c,f):0}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(c/=this.dd,f*=this.dd,(u=Math.sqrt(c*c+f*f))<n.EPSLN)return e.x=this.long0,e.y=this.lat0,e;a=2*Math.asin(.5*u/this.rq),i=Math.cos(a),c*=a=Math.sin(a),this.mode===this.OBLIQ?(l=i*this.sinb1+f*a*this.cosb1/u,s=this.qp*l,f=u*this.cosb1*i-f*this.sinb1*a):(l=f*a/u,s=this.qp*l,f=u*i)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(f=-f),!(s=c*c+f*f))return e.x=this.long0,e.y=this.lat0,e;l=1-s/this.qp,this.mode===this.S_POLE&&(l=-l)}t=Math.atan2(c,f),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(l),this.apa)}return e.x=Object(o.default)(this.long0+t),e.y=r,e}var p=.3333333333333333,d=.17222222222222222,y=.10257936507936508,g=.06388888888888888,v=.0664021164021164,m=.016415012942191543;var _=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"];t.default={init:c,forward:f,inverse:h,names:_,S_POLE:a,N_POLE:s,EQUIT:u,OBLIQ:l}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return u}),r.d(t,"forward",function(){return l}),r.d(t,"inverse",function(){return c}),r.d(t,"phi1z",function(){return f}),r.d(t,"names",function(){return h});var n=r(35),i=r(76),o=r(6),a=r(36),s=r(4);function u(){Math.abs(this.lat1+this.lat2)<s.EPSLN||(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=Object(n.default)(this.e3,this.sin_po,this.cos_po),this.qs1=Object(i.default)(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=Object(n.default)(this.e3,this.sin_po,this.cos_po),this.qs2=Object(i.default)(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=Object(i.default)(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>s.EPSLN?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)}function l(e){var t=e.x,r=e.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var n=Object(i.default)(this.e3,this.sin_phi),a=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,s=this.ns0*Object(o.default)(t-this.long0),u=a*Math.sin(s)+this.x0,l=this.rh-a*Math.cos(s)+this.y0;return e.x=u,e.y=l,e}function c(e){var t,r,n,i,a,s;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?s=Math.asin((this.c-n*n)/(2*this.ns0)):(r=(this.c-n*n)/this.ns0,s=this.phi1z(this.e3,r)),a=Object(o.default)(i/this.ns0+this.long0),e.x=a,e.y=s,e}function f(e,t){var r,n,i,o,u,l=Object(a.default)(.5*t);if(e<s.EPSLN)return l;for(var c=e*e,f=1;f<=25;f++)if(r=Math.sin(l),n=Math.cos(l),l+=u=.5*(o=1-(i=e*r)*i)*o/n*(t/(1-c)-r/o+.5/e*Math.log((1-i)/(1+i))),Math.abs(u)<=1e-7)return l;return null}var h=["Albers_Conic_Equal_Area","Albers","aea"];t.default={init:u,forward:l,inverse:c,names:h,phi1z:f}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return a}),r.d(t,"forward",function(){return s}),r.d(t,"inverse",function(){return u}),r.d(t,"names",function(){return l});var n=r(6),i=r(36),o=r(4);function a(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function s(e){var t,r,i,a,s,u,l,c=e.x,f=e.y;return i=Object(n.default)(c-this.long0),t=Math.sin(f),r=Math.cos(f),a=Math.cos(i),1,(s=this.sin_p14*t+this.cos_p14*r*a)>0||Math.abs(s)<=o.EPSLN?(u=this.x0+1*this.a*r*Math.sin(i)/s,l=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*a)/s):(u=this.x0+this.infinity_dist*r*Math.sin(i),l=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*r*a)),e.x=u,e.y=l,e}function u(e){var t,r,o,a,s,u;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))?(a=Math.atan2(t,this.rc),r=Math.sin(a),o=Math.cos(a),u=Object(i.default)(o*this.sin_p14+e.y*r*this.cos_p14/t),s=Math.atan2(e.x*r,t*this.cos_p14*o-e.y*this.sin_p14*r),s=Object(n.default)(this.long0+s)):(u=this.phic0,s=0),e.x=s,e.y=u,e}var l=["gnom"];t.default={init:a,forward:s,inverse:u,names:l}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return s}),r.d(t,"forward",function(){return u}),r.d(t,"inverse",function(){return l}),r.d(t,"names",function(){return c});var n=r(6),i=r(76),o=r(35),a=r(223);function s(){this.sphere||(this.k0=Object(o.default)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function u(e){var t,r,o=e.x,a=e.y,s=Object(n.default)(o-this.long0);if(this.sphere)t=this.x0+this.a*s*Math.cos(this.lat_ts),r=this.y0+this.a*Math.sin(a)/Math.cos(this.lat_ts);else{var u=Object(i.default)(this.e,Math.sin(a));t=this.x0+this.a*this.k0*s,r=this.y0+this.a*u*.5/this.k0}return e.x=t,e.y=r,e}function l(e){var t,r;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=Object(n.default)(this.long0+e.x/this.a/Math.cos(this.lat_ts)),r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(r=Object(a.default)(this.e,2*e.y*this.k0/this.a),t=Object(n.default)(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=r,e}var c=["cea"];t.default={init:s,forward:u,inverse:l,names:c}},function(e,t,r){"use strict";r.r(t);var n=r(4);t.default=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*n.HALF_PI:n.HALF_PI;for(var i,o,a,s,u=Math.asin(.5*t),l=0;l<30;l++)if(o=Math.sin(u),a=Math.cos(u),s=e*o,u+=i=Math.pow(1-s*s,2)/(2*a)*(t/(1-e*e)-o/(1-s*s)+.5/e*Math.log((1-s)/(1+s))),Math.abs(i)<=1e-10)return u;return NaN}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return o}),r.d(t,"forward",function(){return a}),r.d(t,"inverse",function(){return s}),r.d(t,"names",function(){return u});var n=r(6),i=r(43);function o(){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)}function a(e){var t=e.x,r=e.y,o=Object(n.default)(t-this.long0),a=Object(i.default)(r-this.lat0);return e.x=this.x0+this.a*o*this.rc,e.y=this.y0+this.a*a,e}function s(e){var t=e.x,r=e.y;return e.x=Object(n.default)(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=Object(i.default)(this.lat0+(r-this.y0)/this.a),e}var u=["Equirectangular","Equidistant_Cylindrical","eqc"];t.default={init:o,forward:a,inverse:s,names:u}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return p}),r.d(t,"forward",function(){return d}),r.d(t,"inverse",function(){return y}),r.d(t,"names",function(){return g});var n=r(58),i=r(59),o=r(60),a=r(61),s=r(6),u=r(43),l=r(57),c=r(4),f=r(74),h=20;function p(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Object(n.default)(this.es),this.e1=Object(i.default)(this.es),this.e2=Object(o.default)(this.es),this.e3=Object(a.default)(this.es),this.ml0=this.a*Object(l.default)(this.e0,this.e1,this.e2,this.e3,this.lat0)}function d(e){var t,r,n,i=e.x,o=e.y,a=Object(s.default)(i-this.long0);if(n=a*Math.sin(o),this.sphere)Math.abs(o)<=c.EPSLN?(t=this.a*a,r=-1*this.a*this.lat0):(t=this.a*Math.sin(n)/Math.tan(o),r=this.a*(Object(u.default)(o-this.lat0)+(1-Math.cos(n))/Math.tan(o)));else if(Math.abs(o)<=c.EPSLN)t=this.a*a,r=-1*this.ml0;else{var h=Object(f.default)(this.a,this.e,Math.sin(o))/Math.tan(o);t=h*Math.sin(n),r=this.a*Object(l.default)(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+h*(1-Math.cos(n))}return e.x=t+this.x0,e.y=r+this.y0,e}function y(e){var t,r,n,i,o,a,u,f,p;if(n=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=c.EPSLN)t=Object(s.default)(n/this.a+this.long0),r=0;else{var d;for(a=this.lat0+i/this.a,u=n*n/this.a/this.a+a*a,f=a,o=h;o;--o)if(f+=p=-1*(a*(f*(d=Math.tan(f))+1)-f-.5*(f*f+u)*d)/((f-a)/d-1),Math.abs(p)<=c.EPSLN){r=f;break}t=Object(s.default)(this.long0+Math.asin(n*Math.tan(f)/this.a)/Math.sin(r))}else if(Math.abs(i+this.ml0)<=c.EPSLN)r=0,t=Object(s.default)(this.long0+n/this.a);else{var y,g,v,m,_;for(a=(this.ml0+i)/this.a,u=n*n/this.a/this.a+a*a,f=a,o=h;o;--o)if(_=this.e*Math.sin(f),y=Math.sqrt(1-_*_)*Math.tan(f),g=this.a*Object(l.default)(this.e0,this.e1,this.e2,this.e3,f),v=this.e0-2*this.e1*Math.cos(2*f)+4*this.e2*Math.cos(4*f)-6*this.e3*Math.cos(6*f),f-=p=(a*(y*(m=g/this.a)+1)-m-.5*y*(m*m+u))/(this.es*Math.sin(2*f)*(m*m+u-2*a*m)/(4*y)+(a-m)*(y*v-2/Math.sin(2*f))-v),Math.abs(p)<=c.EPSLN){r=f;break}y=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),t=Object(s.default)(this.long0+Math.asin(n*y/this.a)/Math.sin(r))}return e.x=t,e.y=r,e}var g=["Polyconic","poly"];t.default={init:p,forward:d,inverse:y,names:g}},function(e,t,r){"use strict";r.r(t),r.d(t,"iterations",function(){return i}),r.d(t,"init",function(){return o}),r.d(t,"forward",function(){return a}),r.d(t,"inverse",function(){return s}),r.d(t,"names",function(){return u});var n=r(4),i=1;function o(){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}function a(e){var t,r=e.x,i=e.y-this.lat0,o=r-this.long0,a=i/n.SEC_TO_RAD*1e-5,s=o,u=1,l=0;for(t=1;t<=10;t++)u*=a,l+=this.A[t]*u;var c,f=l,h=s,p=1,d=0,y=0,g=0;for(t=1;t<=6;t++)c=d*f+p*h,p=p*f-d*h,d=c,y=y+this.B_re[t]*p-this.B_im[t]*d,g=g+this.B_im[t]*p+this.B_re[t]*d;return e.x=g*this.a+this.x0,e.y=y*this.a+this.y0,e}function s(e){var t,r,i=e.x,o=e.y,a=i-this.x0,s=(o-this.y0)/this.a,u=a/this.a,l=1,c=0,f=0,h=0;for(t=1;t<=6;t++)r=c*s+l*u,l=l*s-c*u,c=r,f=f+this.C_re[t]*l-this.C_im[t]*c,h=h+this.C_im[t]*l+this.C_re[t]*c;for(var p=0;p<this.iterations;p++){var d,y=f,g=h,v=s,m=u;for(t=2;t<=6;t++)d=g*f+y*h,y=y*f-g*h,g=d,v+=(t-1)*(this.B_re[t]*y-this.B_im[t]*g),m+=(t-1)*(this.B_im[t]*y+this.B_re[t]*g);y=1,g=0;var _=this.B_re[1],b=this.B_im[1];for(t=2;t<=6;t++)d=g*f+y*h,y=y*f-g*h,g=d,_+=t*(this.B_re[t]*y-this.B_im[t]*g),b+=t*(this.B_im[t]*y+this.B_re[t]*g);var S=_*_+b*b;f=(v*_+m*b)/S,h=(m*_-v*b)/S}var x=f,w=h,O=1,E=0;for(t=1;t<=9;t++)O*=x,E+=this.D[t]*O;var P=this.lat0+E*n.SEC_TO_RAD*1e5,k=this.long0+w;return e.x=k,e.y=P,e}var u=["New_Zealand_Map_Grid","nzmg"];t.default={init:o,forward:a,inverse:s,names:u}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return i}),r.d(t,"forward",function(){return o}),r.d(t,"inverse",function(){return a}),r.d(t,"names",function(){return s});var n=r(6);function i(){}function o(e){var t=e.x,r=e.y,i=Object(n.default)(t-this.long0),o=this.x0+this.a*i,a=this.y0+this.a*Math.log(Math.tan(Math.PI/4+r/2.5))*1.25;return e.x=o,e.y=a,e}function a(e){e.x-=this.x0,e.y-=this.y0;var t=Object(n.default)(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}var s=["Miller_Cylindrical","mill"];t.default={init:i,forward:o,inverse:a,names:s}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return f}),r.d(t,"forward",function(){return h}),r.d(t,"inverse",function(){return p}),r.d(t,"names",function(){return d});var n=r(6),i=r(43),o=r(109),a=r(73),s=r(110),u=r(4),l=r(36),c=20;function f(){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=Object(o.default)(this.es)}function h(e){var t,r,i=e.x,o=e.y;if(i=Object(n.default)(i-this.long0),this.sphere){if(this.m)for(var s=this.n*Math.sin(o),l=c;l;--l){var f=(this.m*o+Math.sin(o)-s)/(this.m+Math.cos(o));if(o-=f,Math.abs(f)<u.EPSLN)break}else o=1!==this.n?Math.asin(this.n*Math.sin(o)):o;t=this.a*this.C_x*i*(this.m+Math.cos(o)),r=this.a*this.C_y*o}else{var h=Math.sin(o),p=Math.cos(o);r=this.a*Object(a.default)(o,h,p,this.en),t=this.a*i*p/Math.sqrt(1-this.es*h*h)}return e.x=t,e.y=r,e}function p(e){var t,r,o,a;return e.x-=this.x0,o=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this.C_y,o/=this.C_x*(this.m+Math.cos(t)),this.m?t=Object(l.default)((this.m*t+Math.sin(t))/this.n):1!==this.n&&(t=Object(l.default)(Math.sin(t)/this.n)),o=Object(n.default)(o+this.long0),t=Object(i.default)(t)):(t=Object(s.default)(e.y/this.a,this.es,this.en),(a=Math.abs(t))<u.HALF_PI?(a=Math.sin(t),r=this.long0+e.x*Math.sqrt(1-this.es*a*a)/(this.a*Math.cos(t)),o=Object(n.default)(r)):a-u.EPSLN<u.HALF_PI&&(o=this.long0)),e.x=o,e.y=t,e}var d=["Sinusoidal","sinu"];t.default={init:f,forward:h,inverse:p,names:d}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return o}),r.d(t,"forward",function(){return a}),r.d(t,"inverse",function(){return s}),r.d(t,"names",function(){return u});var n=r(6),i=r(4);function o(){}function a(e){for(var t=e.x,r=e.y,o=Object(n.default)(t-this.long0),a=r,s=Math.PI*Math.sin(r);;){var u=-(a+Math.sin(a)-s)/(1+Math.cos(a));if(a+=u,Math.abs(u)<i.EPSLN)break}a/=2,Math.PI/2-Math.abs(r)<i.EPSLN&&(o=0);var l=.900316316158*this.a*o*Math.cos(a)+this.x0,c=1.4142135623731*this.a*Math.sin(a)+this.y0;return e.x=l,e.y=c,e}function s(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 i=Object(n.default)(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));i<-Math.PI&&(i=-Math.PI),i>Math.PI&&(i=Math.PI),r=(2*t+Math.sin(2*t))/Math.PI,Math.abs(r)>1&&(r=1);var o=Math.asin(r);return e.x=i,e.y=o,e}var u=["Mollweide","moll"];t.default={init:o,forward:a,inverse:s,names:u}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return p}),r.d(t,"forward",function(){return d}),r.d(t,"inverse",function(){return y}),r.d(t,"names",function(){return g});var n=r(58),i=r(59),o=r(60),a=r(61),s=r(35),u=r(57),l=r(6),c=r(43),f=r(75),h=r(4);function p(){Math.abs(this.lat1+this.lat2)<h.EPSLN||(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=Object(n.default)(this.es),this.e1=Object(i.default)(this.es),this.e2=Object(o.default)(this.es),this.e3=Object(a.default)(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=Object(s.default)(this.e,this.sinphi,this.cosphi),this.ml1=Object(u.default)(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<h.EPSLN?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=Object(s.default)(this.e,this.sinphi,this.cosphi),this.ml2=Object(u.default)(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=Object(u.default)(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function d(e){var t,r=e.x,n=e.y;if(this.sphere)t=this.a*(this.g-n);else{var i=Object(u.default)(this.e0,this.e1,this.e2,this.e3,n);t=this.a*(this.g-i)}var o=this.ns*Object(l.default)(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}function y(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=Object(l.default)(this.long0+o/this.ns),n=Object(c.default)(this.g-r/this.a),e.x=i,e.y=n,e;var a=this.g-r/this.a;return n=Object(f.default)(a,this.e0,this.e1,this.e2,this.e3),i=Object(l.default)(this.long0+o/this.ns),e.x=i,e.y=n,e}var g=["Equidistant_Conic","eqdc"];t.default={init:p,forward:d,inverse:y,names:g}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return a}),r.d(t,"forward",function(){return s}),r.d(t,"inverse",function(){return u}),r.d(t,"names",function(){return l});var n=r(6),i=r(4),o=r(36);function a(){this.R=this.a}function s(e){var t,r,a=e.x,s=e.y,u=Object(n.default)(a-this.long0);Math.abs(s)<=i.EPSLN&&(t=this.x0+this.R*u,r=this.y0);var l=Object(o.default)(2*Math.abs(s/Math.PI));(Math.abs(u)<=i.EPSLN||Math.abs(Math.abs(s)-i.HALF_PI)<=i.EPSLN)&&(t=this.x0,r=s>=0?this.y0+Math.PI*this.R*Math.tan(.5*l):this.y0+Math.PI*this.R*-Math.tan(.5*l));var c=.5*Math.abs(Math.PI/u-u/Math.PI),f=c*c,h=Math.sin(l),p=Math.cos(l),d=p/(h+p-1),y=d*d,g=d*(2/h-1),v=g*g,m=Math.PI*this.R*(c*(d-v)+Math.sqrt(f*(d-v)*(d-v)-(v+f)*(y-v)))/(v+f);u<0&&(m=-m),t=this.x0+m;var _=f+d;return m=Math.PI*this.R*(g*_-c*Math.sqrt((v+f)*(f+1)-_*_))/(v+f),r=s>=0?this.y0+m:this.y0-m,e.x=t,e.y=r,e}function u(e){var t,r,o,a,s,u,l,c,f,h,p,d;return e.x-=this.x0,e.y-=this.y0,p=Math.PI*this.R,s=(o=e.x/p)*o+(a=e.y/p)*a,p=3*(a*a/(c=-2*(u=-Math.abs(a)*(1+s))+1+2*a*a+s*s)+(2*(l=u-2*a*a+o*o)*l*l/c/c/c-9*u*l/c/c)/27)/(f=(u-l*l/3/c)/c)/(h=2*Math.sqrt(-f/3)),Math.abs(p)>1&&(p=p>=0?1:-1),d=Math.acos(p)/3,r=e.y>=0?(-h*Math.cos(d+Math.PI/3)-l/3/c)*Math.PI:-(-h*Math.cos(d+Math.PI/3)-l/3/c)*Math.PI,t=Math.abs(o)<i.EPSLN?this.long0:Object(n.default)(this.long0+Math.PI*(s-1+Math.sqrt(1+2*(o*o-a*a)+s*s))/2/o),e.x=t,e.y=r,e}var l=["Van_der_Grinten_I","VanDerGrinten","vandg"];t.default={init:a,forward:s,inverse:u,names:l}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return p}),r.d(t,"forward",function(){return d}),r.d(t,"inverse",function(){return y}),r.d(t,"names",function(){return g});var n=r(6),i=r(4),o=r(57),a=r(58),s=r(59),u=r(60),l=r(61),c=r(74),f=r(36),h=r(75);function p(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)}function d(e){var t,r,f,h,p,d,y,g,v,m,_,b,S,x,w,O,E,P,k,T,I,M,L=e.x,C=e.y,N=Math.sin(e.y),R=Math.cos(e.y),j=Object(n.default)(L-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=i.EPSLN?(e.x=this.x0+this.a*(i.HALF_PI-C)*Math.sin(j),e.y=this.y0-this.a*(i.HALF_PI-C)*Math.cos(j),e):Math.abs(this.sin_p12+1)<=i.EPSLN?(e.x=this.x0+this.a*(i.HALF_PI+C)*Math.sin(j),e.y=this.y0+this.a*(i.HALF_PI+C)*Math.cos(j),e):(P=this.sin_p12*N+this.cos_p12*R*Math.cos(j),E=(O=Math.acos(P))?O/Math.sin(O):1,e.x=this.x0+this.a*E*R*Math.sin(j),e.y=this.y0+this.a*E*(this.cos_p12*N-this.sin_p12*R*Math.cos(j)),e):(t=Object(a.default)(this.es),r=Object(s.default)(this.es),f=Object(u.default)(this.es),h=Object(l.default)(this.es),Math.abs(this.sin_p12-1)<=i.EPSLN?(p=this.a*Object(o.default)(t,r,f,h,i.HALF_PI),d=this.a*Object(o.default)(t,r,f,h,C),e.x=this.x0+(p-d)*Math.sin(j),e.y=this.y0-(p-d)*Math.cos(j),e):Math.abs(this.sin_p12+1)<=i.EPSLN?(p=this.a*Object(o.default)(t,r,f,h,i.HALF_PI),d=this.a*Object(o.default)(t,r,f,h,C),e.x=this.x0+(p+d)*Math.sin(j),e.y=this.y0+(p+d)*Math.cos(j),e):(y=N/R,g=Object(c.default)(this.a,this.e,this.sin_p12),v=Object(c.default)(this.a,this.e,N),m=Math.atan((1-this.es)*y+this.es*g*this.sin_p12/(v*R)),k=0===(_=Math.atan2(Math.sin(j),this.cos_p12*Math.tan(m)-this.sin_p12*Math.cos(j)))?Math.asin(this.cos_p12*Math.sin(m)-this.sin_p12*Math.cos(m)):Math.abs(Math.abs(_)-Math.PI)<=i.EPSLN?-Math.asin(this.cos_p12*Math.sin(m)-this.sin_p12*Math.cos(m)):Math.asin(Math.sin(j)*Math.cos(m)/Math.sin(_)),b=this.e*this.sin_p12/Math.sqrt(1-this.es),O=g*k*(1-(T=k*k)*(w=(S=this.e*this.cos_p12*Math.cos(_)/Math.sqrt(1-this.es))*S)*(1-w)/6+(I=T*k)/8*(x=b*S)*(1-2*w)+(M=I*k)/120*(w*(4-7*w)-3*b*b*(1-7*w))-M*k/48*x),e.x=this.x0+O*Math.sin(_),e.y=this.y0+O*Math.cos(_),e))}function y(e){var t,r,p,d,y,g,v,m,_,b,S,x,w,O,E,P,k,T,I,M,L,C,N,R;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*i.HALF_PI*this.a)return;return r=t/this.a,p=Math.sin(r),d=Math.cos(r),y=this.long0,Math.abs(t)<=i.EPSLN?g=this.lat0:(g=Object(f.default)(d*this.sin_p12+e.y*p*this.cos_p12/t),v=Math.abs(this.lat0)-i.HALF_PI,y=Math.abs(v)<=i.EPSLN?this.lat0>=0?Object(n.default)(this.long0+Math.atan2(e.x,-e.y)):Object(n.default)(this.long0-Math.atan2(-e.x,e.y)):Object(n.default)(this.long0+Math.atan2(e.x*p,t*this.cos_p12*d-e.y*this.sin_p12*p))),e.x=y,e.y=g,e}return m=Object(a.default)(this.es),_=Object(s.default)(this.es),b=Object(u.default)(this.es),S=Object(l.default)(this.es),Math.abs(this.sin_p12-1)<=i.EPSLN?(w=(x=this.a*Object(o.default)(m,_,b,S,i.HALF_PI))-(t=Math.sqrt(e.x*e.x+e.y*e.y)),g=Object(h.default)(w/this.a,m,_,b,S),y=Object(n.default)(this.long0+Math.atan2(e.x,-1*e.y)),e.x=y,e.y=g,e):Math.abs(this.sin_p12+1)<=i.EPSLN?(x=this.a*Object(o.default)(m,_,b,S,i.HALF_PI),w=(t=Math.sqrt(e.x*e.x+e.y*e.y))-x,g=Object(h.default)(w/this.a,m,_,b,S),y=Object(n.default)(this.long0+Math.atan2(e.x,e.y)),e.x=y,e.y=g,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),P=Math.atan2(e.x,e.y),O=Object(c.default)(this.a,this.e,this.sin_p12),k=Math.cos(P),I=-(T=this.e*this.cos_p12*k)*T/(1-this.es),M=3*this.es*(1-I)*this.sin_p12*this.cos_p12*k/(1-this.es),N=1-I*(C=(L=t/O)-I*(1+I)*Math.pow(L,3)/6-M*(1+3*I)*Math.pow(L,4)/24)*C/2-L*C*C*C/6,E=Math.asin(this.sin_p12*Math.cos(C)+this.cos_p12*Math.sin(C)*k),y=Object(n.default)(this.long0+Math.asin(Math.sin(P)*Math.sin(C)/Math.cos(E))),R=Math.sin(E),g=Math.atan2((R-this.es*N*this.sin_p12)*Math.tan(E),R*(1-this.es)),e.x=y,e.y=g,e)}var g=["Azimuthal_Equidistant","aeqd"];t.default={init:p,forward:d,inverse:y,names:g}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return a}),r.d(t,"forward",function(){return s}),r.d(t,"inverse",function(){return u}),r.d(t,"names",function(){return l});var n=r(6),i=r(36),o=r(4);function a(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function s(e){var t,r,i,a,s,u,l,c=e.x,f=e.y;return i=Object(n.default)(c-this.long0),t=Math.sin(f),r=Math.cos(f),a=Math.cos(i),1,((s=this.sin_p14*t+this.cos_p14*r*a)>0||Math.abs(s)<=o.EPSLN)&&(u=1*this.a*r*Math.sin(i),l=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*a)),e.x=u,e.y=l,e}function u(e){var t,r,a,s,u,l,c;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),r=Object(i.default)(t/this.a),a=Math.sin(r),s=Math.cos(r),l=this.long0,Math.abs(t)<=o.EPSLN?(c=this.lat0,e.x=l,e.y=c,e):(c=Object(i.default)(s*this.sin_p14+e.y*a*this.cos_p14/t),u=Math.abs(this.lat0)-o.HALF_PI,Math.abs(u)<=o.EPSLN?(l=this.lat0>=0?Object(n.default)(this.long0+Math.atan2(e.x,-e.y)):Object(n.default)(this.long0-Math.atan2(-e.x,e.y)),e.x=l,e.y=c,e):(l=Object(n.default)(this.long0+Math.atan2(e.x*a,t*this.cos_p14*s-e.y*this.sin_p14*a)),e.x=l,e.y=c,e))}var l=["ortho"];t.default={init:a,forward:s,inverse:u,names:l}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return a}),r.d(t,"forward",function(){return s}),r.d(t,"inverse",function(){return u}),r.d(t,"names",function(){return f});var n=r(4),i={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},o={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function a(){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>=n.HALF_PI-n.FORTPI/2?this.face=i.TOP:this.lat0<=-(n.HALF_PI-n.FORTPI/2)?this.face=i.BOTTOM:Math.abs(this.long0)<=n.FORTPI?this.face=i.FRONT:Math.abs(this.long0)<=n.HALF_PI+n.FORTPI?this.face=this.long0>0?i.RIGHT:i.LEFT:this.face=i.BACK,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)}function s(e){var t,r,a,s,u,f,h={x:0,y:0},p={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===i.TOP)s=n.HALF_PI-t,r>=n.FORTPI&&r<=n.HALF_PI+n.FORTPI?(p.value=o.AREA_0,a=r-n.HALF_PI):r>n.HALF_PI+n.FORTPI||r<=-(n.HALF_PI+n.FORTPI)?(p.value=o.AREA_1,a=r>0?r-n.SPI:r+n.SPI):r>-(n.HALF_PI+n.FORTPI)&&r<=-n.FORTPI?(p.value=o.AREA_2,a=r+n.HALF_PI):(p.value=o.AREA_3,a=r);else if(this.face===i.BOTTOM)s=n.HALF_PI+t,r>=n.FORTPI&&r<=n.HALF_PI+n.FORTPI?(p.value=o.AREA_0,a=-r+n.HALF_PI):r<n.FORTPI&&r>=-n.FORTPI?(p.value=o.AREA_1,a=-r):r<-n.FORTPI&&r>=-(n.HALF_PI+n.FORTPI)?(p.value=o.AREA_2,a=-r-n.HALF_PI):(p.value=o.AREA_3,a=r>0?-r+n.SPI:-r-n.SPI);else{var d,y,g,v,m,_;this.face===i.RIGHT?r=c(r,+n.HALF_PI):this.face===i.BACK?r=c(r,+n.SPI):this.face===i.LEFT&&(r=c(r,-n.HALF_PI)),v=Math.sin(t),m=Math.cos(t),_=Math.sin(r),d=m*Math.cos(r),y=m*_,g=v,this.face===i.FRONT?a=l(s=Math.acos(d),g,y,p):this.face===i.RIGHT?a=l(s=Math.acos(y),g,-d,p):this.face===i.BACK?a=l(s=Math.acos(-d),g,-y,p):this.face===i.LEFT?a=l(s=Math.acos(-y),g,d,p):(s=a=0,p.value=o.AREA_0)}return f=Math.atan(12/n.SPI*(a+Math.acos(Math.sin(a)*Math.cos(n.FORTPI))-n.HALF_PI)),u=Math.sqrt((1-Math.cos(s))/(Math.cos(f)*Math.cos(f))/(1-Math.cos(Math.atan(1/Math.cos(a))))),p.value===o.AREA_1?f+=n.HALF_PI:p.value===o.AREA_2?f+=n.SPI:p.value===o.AREA_3&&(f+=1.5*n.SPI),h.x=u*Math.cos(f),h.y=u*Math.sin(f),h.x=h.x*this.a+this.x0,h.y=h.y*this.a+this.y0,e.x=h.x,e.y=h.y,e}function u(e){var t,r,a,s,u,l,f,h,p,d,y,g,v={lam:0,phi:0},m={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)?m.value=o.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(m.value=o.AREA_1,t-=n.HALF_PI):e.x<0&&-e.x>=Math.abs(e.y)?(m.value=o.AREA_2,t=t<0?t+n.SPI:t-n.SPI):(m.value=o.AREA_3,t+=n.HALF_PI),p=n.SPI/12*Math.tan(t),u=Math.sin(p)/(Math.cos(p)-1/Math.sqrt(2)),l=Math.atan(u),(f=1-(a=Math.cos(t))*a*(s=Math.tan(r))*s*(1-Math.cos(Math.atan(1/Math.cos(l)))))<-1?f=-1:f>1&&(f=1),this.face===i.TOP)h=Math.acos(f),v.phi=n.HALF_PI-h,m.value===o.AREA_0?v.lam=l+n.HALF_PI:m.value===o.AREA_1?v.lam=l<0?l+n.SPI:l-n.SPI:m.value===o.AREA_2?v.lam=l-n.HALF_PI:v.lam=l;else if(this.face===i.BOTTOM)h=Math.acos(f),v.phi=h-n.HALF_PI,m.value===o.AREA_0?v.lam=-l+n.HALF_PI:m.value===o.AREA_1?v.lam=-l:m.value===o.AREA_2?v.lam=-l-n.HALF_PI:v.lam=l<0?-l-n.SPI:-l+n.SPI;else{var _,b,S;p=(_=f)*_,b=(p+=(S=p>=1?0:Math.sqrt(1-p)*Math.sin(l))*S)>=1?0:Math.sqrt(1-p),m.value===o.AREA_1?(p=b,b=-S,S=p):m.value===o.AREA_2?(b=-b,S=-S):m.value===o.AREA_3&&(p=b,b=S,S=-p),this.face===i.RIGHT?(p=_,_=-b,b=p):this.face===i.BACK?(_=-_,b=-b):this.face===i.LEFT&&(p=_,_=b,b=-p),v.phi=Math.acos(-S)-n.HALF_PI,v.lam=Math.atan2(b,_),this.face===i.RIGHT?v.lam=c(v.lam,-n.HALF_PI):this.face===i.BACK?v.lam=c(v.lam,-n.SPI):this.face===i.LEFT&&(v.lam=c(v.lam,+n.HALF_PI))}0!==this.es&&(d=v.phi<0?1:0,y=Math.tan(v.phi),g=this.b/Math.sqrt(y*y+this.one_minus_f_squared),v.phi=Math.atan(Math.sqrt(this.a*this.a-g*g)/(this.one_minus_f*g)),d&&(v.phi=-v.phi));return v.lam+=this.long0,e.x=v.lam,e.y=v.phi,e}function l(e,t,r,i){var a;return e<n.EPSLN?(i.value=o.AREA_0,a=0):(a=Math.atan2(t,r),Math.abs(a)<=n.FORTPI?i.value=o.AREA_0:a>n.FORTPI&&a<=n.HALF_PI+n.FORTPI?(i.value=o.AREA_1,a-=n.HALF_PI):a>n.HALF_PI+n.FORTPI||a<=-(n.HALF_PI+n.FORTPI)?(i.value=o.AREA_2,a=a>=0?a-n.SPI:a+n.SPI):(i.value=o.AREA_3,a+=n.HALF_PI)),a}function c(e,t){var r=e+t;return r<-n.SPI?r+=n.TWO_PI:r>+n.SPI&&(r-=n.TWO_PI),r}var f=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];t.default={init:a,forward:s,inverse:u,names:f}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return d}),r.d(t,"forward",function(){return y}),r.d(t,"inverse",function(){return g}),r.d(t,"names",function(){return v});var n=r(4),i=r(6),o=[[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]],a=[[-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]],s=.8487,u=1.3523,l=n.R2D/5,c=1/l,f=18,h=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},p=function(e,t){return e[1]+t*(2*e[2]+3*t*e[3])};function d(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function y(e){var t=Object(i.default)(e.x-this.long0),r=Math.abs(e.y),p=Math.floor(r*l);p<0?p=0:p>=f&&(p=f-1),r=n.R2D*(r-c*p);var d={x:h(o[p],r)*t,y:h(a[p],r)};return e.y<0&&(d.y=-d.y),d.x=d.x*this.a*s+this.x0,d.y=d.y*this.a*u+this.y0,d}function g(e){var t={x:(e.x-this.x0)/(this.a*s),y:Math.abs(e.y-this.y0)/(this.a*u)};if(t.y>=1)t.x/=o[f][0],t.y=e.y<0?-n.HALF_PI:n.HALF_PI;else{var r=Math.floor(t.y*f);for(r<0?r=0:r>=f&&(r=f-1);;)if(a[r][0]>t.y)--r;else{if(!(a[r+1][0]<=t.y))break;++r}var l=a[r],c=5*(t.y-l[0])/(a[r+1][0]-l[0]);c=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(h(l,e)-t.y)/p(l,e)},c,n.EPSLN,100),t.x/=h(o[r],c),t.y=(5*r+c)*n.D2R,e.y<0&&(t.y=-t.y)}return t.x=Object(i.default)(t.x+this.long0),t}var v=["Robinson","robin"];t.default={init:d,forward:y,inverse:g,names:v}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return i}),r.d(t,"forward",function(){return o}),r.d(t,"inverse",function(){return a}),r.d(t,"names",function(){return s});var n=r(105);function i(){this.name="geocent"}function o(e){return Object(n.geodeticToGeocentric)(e,this.es,this.a)}function a(e){return Object(n.geocentricToGeodetic)(e,this.es,this.a,this.b)}var s=["Geocentric","geocentric","geocent","Geocent"];t.default={init:i,forward:o,inverse:a,names:s}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return s}),r.d(t,"forward",function(){return u}),r.d(t,"inverse",function(){return l}),r.d(t,"names",function(){return c});var n=r(4),i=r(56),o={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},a={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}};function s(){if(Object.keys(a).forEach(function(e){if(void 0===this[e])this[e]=a[e].def;else{if(a[e].num&&isNaN(this[e]))throw new Error("Invalid parameter value, must be numeric "+e+" = "+this[e]);a[e].num&&(this[e]=parseFloat(this[e]))}a[e].degrees&&(this[e]=this[e]*n.D2R)}.bind(this)),Math.abs(Math.abs(this.lat0)-n.HALF_PI)<n.EPSLN?this.mode=this.lat0<0?o.S_POLE:o.N_POLE:Math.abs(this.lat0)<n.EPSLN?this.mode=o.EQUIT:(this.mode=o.OBLIQ,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)}function u(e){e.x-=this.long0;var t,r,n,i,a=Math.sin(e.y),s=Math.cos(e.y),u=Math.cos(e.x);switch(this.mode){case o.OBLIQ:r=this.sinph0*a+this.cosph0*s*u;break;case o.EQUIT:r=s*u;break;case o.S_POLE:r=-a;break;case o.N_POLE:r=a}switch(t=(r=this.pn1/(this.p-r))*s*Math.sin(e.x),this.mode){case o.OBLIQ:r*=this.cosph0*a-this.sinph0*s*u;break;case o.EQUIT:r*=a;break;case o.N_POLE:r*=-s*u;break;case o.S_POLE:r*=s*u}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}function l(e){e.x/=this.a,e.y/=this.a;var t,r,a,s={x:e.x,y:e.y};a=1/(this.pn1-e.y*this.sw),t=this.pn1*e.x*a,r=this.pn1*e.y*this.cw*a,e.x=t*this.cg+r*this.sg,e.y=r*this.cg-t*this.sg;var u=Object(i.default)(e.x,e.y);if(Math.abs(u)<n.EPSLN)s.x=0,s.y=e.y;else{var l,c;switch(c=1-u*u*this.pfact,c=(this.p-Math.sqrt(c))/(this.pn1/u+u/this.pn1),l=Math.sqrt(1-c*c),this.mode){case o.OBLIQ:s.y=Math.asin(l*this.sinph0+e.y*c*this.cosph0/u),e.y=(l-this.sinph0*Math.sin(s.y))*u,e.x*=c*this.cosph0;break;case o.EQUIT:s.y=Math.asin(e.y*c/u),e.y=l*u,e.x*=c;break;case o.N_POLE:s.y=Math.asin(l),e.y=-e.y;break;case o.S_POLE:s.y=-Math.asin(l)}s.x=Math.atan2(e.x,e.y)}return e.x=s.x+this.long0,e.y=s.y,e}var c=["Tilted_Perspective","tpers"];t.default={init:s,forward:u,inverse:l,names:c}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return i}),r.d(t,"names",function(){return o});var n=r(56);function i(){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")}var o=["Geostationary Satellite View","Geostationary_Satellite","geos"];t.default={init:i,forward:function(e){var t,r,i,o,a=e.x,s=e.y;if(a-=this.long0,"ellipse"===this.shape){s=Math.atan(this.radius_p2*Math.tan(s));var u=this.radius_p/Object(n.default)(this.radius_p*Math.cos(s),Math.sin(s));if(r=u*Math.cos(a)*Math.cos(s),i=u*Math.sin(a)*Math.cos(s),o=u*Math.sin(s),(this.radius_g-r)*r-i*i-o*o*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(i/Object(n.default)(o,t)),e.y=this.radius_g_1*Math.atan(o/t)):(e.x=this.radius_g_1*Math.atan(i/t),e.y=this.radius_g_1*Math.atan(o/Object(n.default)(i,t)))}else"sphere"===this.shape&&(t=Math.cos(s),r=Math.cos(a)*t,i=Math.sin(a)*t,o=Math.sin(s),t=this.radius_g-r,this.flip_axis?(e.x=this.radius_g_1*Math.atan(i/Object(n.default)(o,t)),e.y=this.radius_g_1*Math.atan(o/t)):(e.x=this.radius_g_1*Math.atan(i/t),e.y=this.radius_g_1*Math.atan(o/Object(n.default)(i,t))));return e.x=e.x*this.a,e.y=e.y*this.a,e},inverse:function(e){var t,r,i,o,a=-1,s=0,u=0;if(e.x=e.x/this.a,e.y=e.y/this.a,"ellipse"===this.shape){this.flip_axis?(u=Math.tan(e.y/this.radius_g_1),s=Math.tan(e.x/this.radius_g_1)*Object(n.default)(1,u)):(s=Math.tan(e.x/this.radius_g_1),u=Math.tan(e.y/this.radius_g_1)*Object(n.default)(1,s));var l=u/this.radius_p;if(t=s*s+l*l+a*a,(i=(r=2*this.radius_g*a)*r-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;o=(-r-Math.sqrt(i))/(2*t),a=this.radius_g+o*a,s*=o,u*=o,e.x=Math.atan2(s,a),e.y=Math.atan(u*Math.cos(e.x)/a),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if("sphere"===this.shape){if(this.flip_axis?(u=Math.tan(e.y/this.radius_g_1),s=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+u*u)):(s=Math.tan(e.x/this.radius_g_1),u=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+s*s)),t=s*s+u*u+a*a,(i=(r=2*this.radius_g*a)*r-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;o=(-r-Math.sqrt(i))/(2*t),a=this.radius_g+o*a,s*=o,u*=o,e.x=Math.atan2(s,a),e.y=Math.atan(u*Math.cos(e.x)/a)}return e.x=e.x+this.long0,e},names:o}},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,f=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&p())}function p(){if(!c){var e=s(h);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-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 d(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 d(e,t)),1!==l.length||c||s(p)},d.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){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(22));var o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"initPropertys",value:function(e){var r=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initPropertys",this).call(this,e);this.message=r.message}}]),t}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(22));var o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(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}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(22));var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"initPropertys",value:function(e){var t=(0,i.defaultValue)(e,{});return this.added=(0,i.defaultValue)(t.added,[]),this.removed=(0,i.defaultValue)(t.removed,[]),this.moved=(0,i.defaultValue)(t.moved,[]),this.sourceTarget=t.sourceTarget,this.target=t.target,t}}]),t}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(22));var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"initPropertys",value:function(e){var t=(0,i.defaultValue)(e,{});return this.added=(0,i.defaultValue)(t.added,[]),this.removed=(0,i.defaultValue)(t.removed,[]),this.moved=(0,i.defaultValue)(t.moved,[]),this.path=(0,i.defaultValue)(t.path,[]),this.sourceTarget=t.sourceTarget,this.target=t.target,t}}]),t}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(22));var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"initPropertys",value:function(e){var t=(0,i.defaultValue)(e,{});return this.addDetail=(0,i.defaultValue)(t.addDetail,[]),t}}]),t}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(22));var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"initPropertys",value:function(e){var t=(0,i.defaultValue)(e,{});return this.basemap=(0,i.defaultValue)(t.basemap,null),this.detail=(0,i.defaultValue)(t.detail,[]),t}}]),t}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extend=function(e){var t=void 0,r=void 0,n=void 0,i=void 0;for(r=1,n=arguments.length;r<n;r++)for(t in i=arguments[r])e[t]=i[t];return e},t.bind=i,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=o,t.splitWords=function(e){return o(e).split(/\s+/)},t.setOptions=function(e,t){Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?n(e.options):{});for(var r in 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(a,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||c!==l)return c.call(window,i(e,t));e.call(t)},t.cancelAnimFrame=function(e){e&&f.call(window,e)};var n=t.create=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function i(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)}}t.lastId=0;function o(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}var a=/\{ *([\w_-]+) *\}/g;t.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};t.emptyImageUrl="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function s(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var u=0;function l(e){var t=+new Date,r=Math.max(0,16-(t-u));return u=t+r,window.setTimeout(e,r)}var c=t.requestFn=window.requestAnimationFrame||s("RequestAnimationFrame")||l,f=t.cancelFn=window.cancelAnimationFrame||s("CancelAnimationFrame")||s("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(77));var a=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="collection-flat",e=(0,i.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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(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 a=r.getChildrenFunction(n);a&&(Array.isArray(a)?a.forEach(function(n){n instanceof o.default&&(e=r._processCollection(e,n),n._addParentCollection(t))}):a instanceof o.default&&(e=r._processCollection(e,a),a._addParentCollection(t)))}}}),e):e}},{key:"_addCollection",value:function(e,t){var r=(0,i.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}();Object.defineProperties(a.prototype,{items:{get:function(){return this._items},set:function(e){}}}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.statisticType=(0,i.defaultValue)(t.statisticType,void 0),this.onStatisticField=(0,i.defaultValue)(t.onStatisticField,void 0),this.outStatisticFieldName=(0,i.defaultValue)(t.outStatisticFieldName,void 0),(0,i.isNull)(this.statisticType)&&console.warn("statisticType不能为空!"),(0,i.isNull)(this.onStatisticField)&&console.warn("onStatisticField不能为空!")}return n(e,[{key:"toString",value:function(){var e="";return(0,i.isNull)(this.statisticType)||(0,i.isNull)(this.onStatisticField)||((0,i.isNull)(this.outStatisticFieldName)?e+='{"statisticType":"'+this.statisticType+'","onStatisticField":"'+this.onStatisticField+'"}':e+='{"statisticType":"'+this.statisticType+'","onStatisticField":"'+this.onStatisticField+'","outStatisticFieldName":"'+this.outStatisticFieldName+'"}'),e}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.default=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ProjAngleUnit=(0,n.defaultValue)(4,t.ProjAngleUnit),this.ProjLat=(0,n.defaultValue)(0,t.ProjLat),this.ProjLat1=(0,n.defaultValue)(25e4,t.ProjLat1),this.ProjLat2=(0,n.defaultValue)(47e4,t.ProjLat2),this.ProjLon=(0,n.defaultValue)(105e4,t.ProjLon),this.ProjRate=(0,n.defaultValue)(14e6,t.ProjRate),this.ProjType=(0,n.defaultValue)(3,t.ProjType),this.ProjTypeID=(0,n.defaultValue)(2,t.ProjTypeID),this.ProjUnit=(0,n.defaultValue)(1,t.ProjUnit),this.ProjZoneNO=(0,n.defaultValue)(18,t.ProjZoneNO),this.ProjZoneType=(0,n.defaultValue)(0,t.ProjZoneType),this.SphereID=(0,n.defaultValue)(2,t.SphereID)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.default=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.DesSrsID=(0,n.defaultValue)(610,t.DesSrsID),this.GdbInfo=(0,n.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=Object.freeze({rtmp:"rtmp",mp4:"mp4",hls:"m3u8",videoPlayer:"videoPlayer",videoHTML:"videoHTML"});t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.freeze({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=Object.freeze({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=Object.freeze({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=Object.freeze({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=Object.freeze({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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.description=(0,i.defaultValue)(t.description,void 0),this.id=(0,i.defaultValue)(t.id,(0,i.getGUID)()),this.isDefault=(0,i.defaultValue)(t.isDefault,!1),this.title=(0,i.defaultValue)(t.title,void 0)}return n(e,[{key:"fromJSON",value:function(e){e=(0,i.defaultValue)(e,{}),this.description=(0,i.defaultValue)(e.description,void 0),this.id=(0,i.defaultValue)(e.id,(0,i.getGUID)()),this.isDefault=(0,i.defaultValue)(e.isDefault,!1),this.title=(0,i.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=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(120)),a=r(1);var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.mode=(0,i.defaultValue)(t.mode,a.ElevationMode.AbsoluteHeight),this.offset=(0,i.defaultValue)(t.offset,0),this.featureExpressionInfo=new o.default(t.featureExpressionInfo),this.unit=(0,i.defaultValue)(t.unit,a.LengthUnit.meter)}return n(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=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=c(r(83)),s=c(r(84)),u=c(r(24)),l=r(13);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.Symbol3DLayerType.path,r.anchor=(0,i.defaultValue)(e.anchor,o.AnchorType.center),r.cap=(0,i.defaultValue)(e.cap,a.default.butt),r.castShadows=(0,i.defaultValue)(e.castShadows,!0),r.height=(0,i.defaultValue)(e.height,void 0),r.width=(0,i.defaultValue)(e.width,void 0),r.join=(0,i.defaultValue)(e.join,s.default.miter),r.material=e.material?l.ColorMaterial.fromJSON(e.material):new l.ColorMaterial,r.profile=(0,i.defaultValue)(e.profile,o.ProfileType.circle),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.default),n(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}();t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(2),a=function(e){return e&&e.__esModule?e:{default:e}}(r(123));var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e=(0,i.defaultValue)(e,{}),r.type="line",r.border=(0,i.defaultValue)(e.border,void 0),r.border&&r.border.hasOwnProperty("color")&&(r.border.color=new o.Color(r.border.color)),r.color=(0,i.defaultValue)(e.color,new o.Color),r.size=(0,i.defaultValue)(e.size,1),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"toJSON",value:function(){return{type:this.type,border:this.border?{color:this.border.color.toJSON()}:void 0,color:(0,i.toJSON)(this.color,o.Color),size:this.size}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.maxWorldLength=(0,i.defaultValue)(t.maxWorldLength,void 0),this.minWorldLength=(0,i.defaultValue)(t.minWorldLength,0),this.screenLength=(0,i.defaultValue)(t.screenLength,0)}return n(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=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1);var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.color=(0,i.defaultValue)(t.color,void 0),this.placement=(0,i.defaultValue)(t.placement,o.LineMarkerPlacement.beginAndEnd),this.style=(0,i.defaultValue)(t.style,o.LineMarkerStyle.arrow),this.type="style"}return n(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=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1);var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.style=(0,i.defaultValue)(t.style,o.LinePatternStyle.solid),this.type="style"}return n(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=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(2),a=function(e){return e&&e.__esModule?e:{default:e}}(r(116));var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.color=(0,i.defaultValue)(t.color,new o.Color),this.size=(0,i.defaultValue)(t.size,1),this.pattern=(0,i.defaultValue)(t.pattern,a.default.solid)}return n(e,[{key:"toJSON",value:function(){return{color:(0,i.toJSON)(this.color,o.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=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(2);var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.color=(0,i.defaultValue)(t.color,new o.Color),this.size=(0,i.defaultValue)(t.size,1)}return n(e,[{key:"toJSON",value:function(){return{color:(0,i.toJSON)(this.color,o.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=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.primitive=(0,i.defaultValue)(t.primitive,"circle"),this.href=(0,i.defaultValue)(t.href,void 0)}return n(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=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(2);var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.color=(0,i.defaultValue)(t.color,new o.Color),this.size=(0,i.defaultValue)(t.size,1),this.extensionLength=(0,i.defaultValue)(t.extensionLength,0)}return n(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=a},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(308));t.ColorMaterial=n.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(2),a=r(1);var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.type=a.MaterialType.color,this.color=(0,i.defaultValue)(t.color,new o.Color)}return n(e,[{key:"toJSON",value:function(){return{color:(0,i.toJSON)(this.color,o.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=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=c(r(24)),o=r(1),a=r(0),s=c(r(83)),u=c(r(84)),l=r(13);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,a.defaultValue)(e,{}),r.type=o.Symbol3DLayerType.line,r.cap=(0,a.defaultValue)(e.cap,s.default.butt),r.join=(0,a.defaultValue)(e.join,u.default.miter),r.marker=(0,a.defaultValue)(e.marker,void 0),r.material=e.material?l.ColorMaterial.fromJSON(e.material):new l.ColorMaterial,r.pattern=e.pattern?l.LineStylePattern3D.fromJSON(e.pattern):new l.LineStylePattern3D,r.size=(0,a.defaultValue)(e.size,1),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"toJSON",value:function(){return{type:this.type,cap:this.cap,join:this.join,marker:(0,a.toJSON)(this.marker,l.LineStyleMarker3D),material:(0,a.toJSON)(this.material,l.ColorMaterial),pattern:(0,a.toJSON)(this.pattern,l.LineStylePattern3D),size:this.size}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=l(r(125)),s=l(r(24)),u=r(13);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.Symbol3DLayerType.fill,r.material=e.material?u.ColorMaterial.fromJSON(e.material):new u.ColorMaterial,r.castShadows=(0,i.defaultValue)(e.castShadows,!0),r.outline=e.outline?u.FillSymbol3DOutline.fromJSON(e.outline):new u.FillSymbol3DOutline,r.pattern=e.pattern?a.default.fromJSON(e.pattern):new a.default,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),n(t,[{key:"toJSON",value:function(){return{type:this.type,material:(0,i.toJSON)(this.material,u.ColorMaterial),outline:(0,i.toJSON)(this.outline,u.FillSymbol3DOutline),pattern:(0,i.toJSON)(this.pattern,a.default)}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=r(13),s=r(2),u=r(3);var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.type=o.Symbol3DLayerType.icon,this.anchor=(0,i.defaultValue)(t.anchor,o.AnchorType.center),this.anchorPosition=t.anchorPosition?u.Point.fromJSON(t.anchorPosition):new u.Point({coordinates:[0,0]}),this.material=t.material?a.ColorMaterial.fromJSON(t.material):new a.ColorMaterial({color:new s.Color(255,255,255,1)}),this.outline=t.outline?a.PointSymbol3DOutline.fromJSON(t.outline):new a.PointSymbol3DOutline,this.resource=t.resource?a.IconResource.fromJSON(t.resource):new a.IconResource,this.size=(0,i.defaultValue)(t.size,12)}return n(e,[{key:"toJSON",value:function(){return{type:this.type,anchor:this.anchor,anchorPosition:JSON.parse(JSON.stringify(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=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=r(13),s=function(e){return e&&e.__esModule?e:{default:e}}(r(24)),u=r(3),l=r(2);var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.Symbol3DLayerType.object,r.anchor=(0,i.defaultValue)(e.anchor,o.AnchorType.center),r.anchorPosition=e.anchorPosition?u.Point.fromJSON(e.anchorPosition):new u.Point({coordinates:[0,0]}),r.castShadows=(0,i.defaultValue)(e.castShadows,!0),r.depth=(0,i.defaultValue)(e.depth,10),r.heading=(0,i.defaultValue)(e.heading,0),r.height=(0,i.defaultValue)(e.height,10),r.material=e.material?a.ColorMaterial.fromJSON(e.material):new a.ColorMaterial({color:new l.Color(255,255,255,1)}),r.resource=e.resource?a.IconResource.fromJSON(e.resource):new a.IconResource,r.roll=(0,i.defaultValue)(e.roll,0),r.tilt=(0,i.defaultValue)(e.tilt,0),r.width=(0,i.defaultValue)(e.width,10),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),n(t,[{key:"toJSON",value:function(){return{type:this.type,anchor:this.anchor,anchorPosition:(0,i.toJSON)(this.anchorPosition,u.Point),castShadows:this.castShadows,depth:this.depth,heading:this.heading,height:this.height,material:(0,i.toJSON)(this.material,a.ColorMaterial),resource:(0,i.toJSON)(this.resource,a.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}();t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=r(13),s=function(e){return e&&e.__esModule?e:{default:e}}(r(24));var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.Symbol3DLayerType.extrude,r.castShadows=(0,i.defaultValue)(e.castShadows,!0),r.material=e.material?a.ColorMaterial.fromJSON(e.material):new a.ColorMaterial,r.size=(0,i.defaultValue)(e.size,1),r.edges=e.edges?a.Edges3D.fromJSON(e.edges):new a.Edges3D,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),n(t,[{key:"toJSON",value:function(){return{type:this.type,castShadows:this.castShadows,material:(0,i.toJSON)(this.material,a.ColorMaterial),size:this.size,pattern:(0,i.toJSON)(this.edges,a.Edges3D)}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=r(2),s=p(r(78)),u=p(r(81)),l=p(r(82)),c=p(r(124)),f=p(r(24)),h=r(13);function p(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.Symbol3DLayerType.text,r.background=e.background?a.Color.fromJSON(e.background):new a.Color,r.font=e.font?s.default.fromJSON(e.font):new s.default,r.halo=e.halo?c.default.fromJSON(e.halo):new c.default,r.horizontalAlignment=(0,i.defaultValue)(e.horizontalAlignment,u.default.center),r.verticalAlignment=(0,i.defaultValue)(e.verticalAlignment,l.default.baseline),r.lineHeight=(0,i.defaultValue)(e.lineHeight,1),r.material=e.material?h.ColorMaterial.fromJSON(e.material):new h.ColorMaterial,r.size=(0,i.defaultValue)(e.size,9),r.text=(0,i.defaultValue)(e.text,void 0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,f.default),n(t,[{key:"toJSON",value:function(){return{type:this.type,background:(0,i.toJSON)(this.background,a.Color),font:(0,i.toJSON)(this.font,s.default),halo:(0,i.toJSON)(this.halo,c.default),horizontalAlignment:this.horizontalAlignment,verticalAlignment:this.verticalAlignment,lineHeight:this.lineHeight,material:(0,i.toJSON)(this.material,h.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}();t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=r(2),s=c(r(117)),u=c(r(118)),l=c(r(24));function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.Symbol3DLayerType.water,r.color=(0,i.defaultValue)(e.color,new a.Color),r.waterbodySize=(0,i.defaultValue)(e.waterbodySize,s.default.medium),r.waveDirection=(0,i.defaultValue)(e.waveDirection,void 0),r.waveStrength=(0,i.defaultValue)(e.waveStrength,u.default.moderate),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default),n(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}();t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=u(r(87)),s=u(r(127));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.SymbolType.simpleMarker,r.size=(0,i.defaultValue)(e.size,20),r.outline=r._decorate("outline",e.outline,a.default,a.default.fromJSON),r.style=(0,i.defaultValue)(e.style,"circle"),r.path=(0,i.defaultValue)(e.path,""),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,i.defaultValue)(e,{}))}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=u(r(31)),o=r(0),a=r(1),s=u(r(29));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,o.defaultValue)(e,{}),r.color=s.default.fromColor((0,o.defaultValue)(e.color,new s.default(0,0,0,1))),r.type=a.SymbolType.simpleLine,r.width=(0,o.defaultValue)(e.width,1),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.type=this.type,e.width=this.width,e}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(29));var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.type="line-marker",this.color=o.default.fromColor((0,i.defaultValue)(t.color,{})),this.placement=(0,i.defaultValue)(t.placement,"begin-end"),this.style=(0,i.defaultValue)(t.style,"arrow")}return n(e,[{key:"toJSON",value:function(){return{type:this.type,color:o.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,i.defaultValue)(t,{}))}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=function(e){return e&&e.__esModule?e:{default:e}}(r(128));var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.SymbolType.simpleFill,r.style=(0,i.defaultValue)(e.style,"solid"),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.style=this.style,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,i.defaultValue)(e,{}))}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=function(e){return e&&e.__esModule?e:{default:e}}(r(127));var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.SymbolType.pictureMarker,r.width=(0,i.defaultValue)(e.width,20),r.height=(0,i.defaultValue)(e.height,20),r.url=r._decorate("url",(0,i.defaultValue)(e.url,""),null,i.convertImageSourceToBase64),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,i.defaultValue)(e,{}))}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=u(r(128)),o=r(1),a=r(0),s=u(r(29));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,a.defaultValue)(e,{}),r.type=o.SymbolType.pictureFill,r.height=(0,a.defaultValue)(e.height,12),r.url=r._decorate("url",(0,a.defaultValue)(e.url,""),null,a.convertImageSourceToBase64),r.width=(0,a.defaultValue)(e.width,12),r.xoffset=(0,a.defaultValue)(e.xoffset,0),r.xscale=(0,a.defaultValue)(e.xscale,1),r.yoffset=(0,a.defaultValue)(e.yoffset,0),r.yscale=(0,a.defaultValue)(e.yscale,1),r.color=s.default.fromColor((0,a.defaultValue)(e.color,new s.default(255,255,255,1))),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(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,a.defaultValue)(e,{}))}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=u(r(29)),s=u(r(126));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.SymbolType.mapgisText,r.backgroundPadding=(0,i.defaultValue)(e.backgroundPadding,[5,5]),r.backgroundImage=e.backgroundImage,r.textDecorationUnderlineColor=(0,i.defaultValue)(a.default.fromColor(e.textDecorationUnderlineColor),void 0),r.textDecorationUnderlineWidth=(0,i.defaultValue)(e.textDecorationUnderlineWidth,0),r.textDecorationThroughlineColor=(0,i.defaultValue)(a.default.fromColor(e.textDecorationThroughlineColor),void 0),r.textDecorationThroughlineWidth=(0,i.defaultValue)(e.textDecorationThroughlineWidth,0),r.textShadowOffsetX=(0,i.defaultValue)(e.textShadowOffsetX,0),r.textShadowOffsetY=(0,i.defaultValue)(e.textShadowOffsetY,0),r.textShadowBlur=(0,i.defaultValue)(e.textShadowBlur,1),r.textShadowColor=(0,i.defaultValue)(a.default.fromColor(e.textShadowColor),void 0),r.letterSpacing=(0,i.defaultValue)(e.letterSpacing,0),r.lineMaxNum=(0,i.defaultValue)(e.lineMaxNum,3),r.textWraps=(0,i.defaultValue)(e.textWraps,!1),r.textExtraIcon=e.textExtraIcon,r.textExtraIconAnchor=(0,i.defaultValue)(e.textExtraIconAnchor,"top"),r.textExtraIconSize=(0,i.defaultValue)(e.textExtraIconSize,14),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.backgroundPadding=this.backgroundPadding,e.textDecorationUnderlineColor=a.default.fromColor(this.textDecorationUnderlineColor).toJSON(),e.textDecorationUnderlineWidth=this.textDecorationUnderlineWidth,e.textDecorationThroughlineColor=a.default.fromColor(this.textDecorationThroughlineColor).toJSON(),e.textDecorationThroughlineWidth=this.textDecorationThroughlineWidth,e.textShadowOffsetX=this.textShadowOffsetX,e.textShadowOffsetY=this.textShadowOffsetY,e.textShadowBlur=this.textShadowBlur,e.textShadowColor=a.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,i.defaultValue)(e,{}))}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=u(r(46)),o=r(0),a=u(r(80)),s=r(13);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,o.defaultValue)(e,{}),r.type=a.default.label3D,r.callout=e.callout?s.LineCallout3D.fromJSON(e.callout):new s.LineCallout3D,r.verticalOffset=e.verticalOffset?s.Symbol3DVerticalOffset.fromJSON(e.verticalOffset):new s.Symbol3DVerticalOffset,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.callout=(0,o.toJSON)(this.callout,s.LineCallout3D),e.verticalOffset=(0,o.toJSON)(this.verticalOffset,s.Symbol3DVerticalOffset),e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(1),o=function(e){return e&&e.__esModule?e:{default:e}}(r(46));var a=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type=i.SymbolType.line3D,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"toJSON",value:function(){return function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=u(r(80)),a=u(r(46)),s=r(13);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.default.point3D,r.callout=(0,i.defaultValue)(e.callout,void 0),r.verticalOffset=(0,i.defaultValue)(e.verticalOffset,void 0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.callout=(0,i.toJSON)(this.callout,s.LineCallout3D),e.verticalOffset=(0,i.toJSON)(this.verticalOffset,s.Symbol3DVerticalOffset),e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=function(e){return e&&e.__esModule?e:{default:e}}(r(46));var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type=o.SymbolType.polygon3D,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"toJSON",value:function(){return function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,i.defaultValue)(e,{}))}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=l(r(121)),a=r(3),s=r(1),u=l(r(45));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return t&&e&&"4326"!==e.wkid?(t.spatialReference=e,u.default.project(t,new a.SpatialReference("EPSG:4326"))):t}function f(e){return e.length>2?[e[1],e[0],e[2]]:[e[1],e[0]]}function h(e,t,r){for(var n,i=[],o=0,a=e.length;o<a;o++)n=t?h(e[o],t-1,r):(r||f)(e[o]),i.push(n);return i}var p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.id=(0,i.defaultValue)(t.id,(0,i.getGUID)()),this.features=(0,i.defaultValue)(t.features,[]),this.spatialReference=(0,i.defaultValue)(t.spatialReference,new a.SpatialReference("EPSG:4326")),this.type="FeatureCollection"}return n(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=c(r.geometry.spatialReference,r.geometry);r.geometry=a.Geometry.fromGeoJSON(n)}e.features.push(r.toGeoJSON())}return e}}],[{key:"fromJSON",value:function(t){return new e(t=(0,i.defaultValue)(t,{}))}},{key:"fromGeoJSON",value:function(t){var r=(t=(0,i.defaultValue)(t,{})).type,n=[],s=new a.SpatialReference("EPSG:4326");if(t.crs&&t.crs.properties&&t.crs.properties.name&&(s=new a.SpatialReference({wkt:t.crs.properties.name})),"FeatureCollection"===r)for(var u=(0,i.defaultValue)(t.features,[]),l=0;l<u.length;l++){u[l].properties=(0,i.defaultValue)(u[l].properties,{});var c=u[l].id||u[l].properties.id,f=new o.default({id:c,attributes:JSON.parse(JSON.stringify(u[l].properties)),geometry:a.Geometry.fromGeoJSON(u[l].geometry)});f.geometry.spatialReference=s.clone(),n.push(f)}return new e({spatialReference:s,features:n})}},{key:"fromArray",value:function(t,r,n){var u=(n=(0,i.defaultValue)(n,{})).reverse,l=(0,i.defaultValue)(t,[]);t instanceof e&&(l=(0,i.defaultValue)(t.features,[])),r=(0,i.defaultValue)(r,new e);for(var c=0;c<l.length;c++)if(l[c]&&l[c].geometry&&l[c].geometry.type&&l[c].geometry.coordinates){var p=void 0;switch(l[c].geometry.type){case s.GeometryType.point:var d=l[c].geometry.coordinates;u&&(d=f(d)),p=new a.Point({coordinates:d});break;case s.GeometryType.multiPoint:var y=l[c].geometry.coordinates;u&&(y=h(y,0,f)),p=new a.MultiPoint({coordinates:y});break;case s.GeometryType.lineString:var g=l[c].geometry.coordinates;u&&(g=h(g,0,f)),p=new a.LineString({coordinates:g});break;case s.GeometryType.multiLineString:var v=l[c].geometry.coordinates;u&&(v=h(v,1,f)),p=new a.MultiLineString({coordinates:v});break;case s.GeometryType.polygon:var m=l[c].geometry.coordinates;u&&(m=h(m,1,f)),p=new a.Polygon({coordinates:m});break;case s.GeometryType.multiPolygon:var _=l[c].geometry.coordinates;u&&(_=h(_,2,f)),p=new a.MultiPolygon({coordinates:_})}if(p){var b=a.SpatialReference.fromJSON(l[c].geometry.spatialReference||r.spatialReference),S=new o.default({attributes:t[c].attributes,geometry:p,symbol:t[c].symbol,additional:t[c].additional,styleInfo:t[c].styleInfo});S.geometry.spatialReference=b,r.features.push(S)}}return r}}]),e}();t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeaturesFromFeatureSet=void 0;var n=r(329);t.getFeaturesFromFeatureSet=n.getFeaturesFromFeatureSet},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeaturesFromFeatureSet=void 0;var n=r(86),i=r(0);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){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjUnitWkidMap=t.getProjUnitByWkid=t.RadiusUnitToMeter=void 0;var n=r(129);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(9),i=function(e){return e&&e.__esModule?e:{default:e}}(r(62)),o=r(71);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=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=r(334),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(335));i.Parser.createValueExpressionParser=function(){var e=new i.Parser;return Object.entries(o).forEach(function(t){var r=n(t,2),i=r[0],o=r[1];e.functions[i]=o}),e.binaryOps["+"]=function(e,t){return e+t},e},t.ExpressionParser=i.Parser},function(e,t,r){"use strict";r.r(t),r.d(t,"Expression",function(){return T}),r.d(t,"Parser",function(){return Ne});var n="INUMBER",i="IOP1",o="IOP2",a="IOP3",s="IVAR",u="IVARNAME",l="IFUNCALL",c="IFUNDEF",f="IEXPR",h="IEXPREVAL",p="IMEMBER",d="IENDSTATEMENT",y="IARRAY";function g(e,t){this.type=e,this.value=void 0!==t&&null!==t?t:0}function v(e){return new g(i,e)}function m(e){return new g(o,e)}function _(e){return new g(a,e)}function b(e,t,r){var g,v,m,_,O,E,P=[];if(x(e))return w(e,r);for(var k=e.length,T=0;T<k;T++){var I=e[T],M=I.type;if(M===n||M===u)P.push(I.value);else if(M===o)v=P.pop(),g=P.pop(),"and"===I.value?P.push(!!g&&!!b(v,t,r)):"or"===I.value?P.push(!!g||!!b(v,t,r)):"="===I.value?(_=t.binaryOps[I.value],P.push(_(g,b(v,t,r),r))):(_=t.binaryOps[I.value],P.push(_(w(g,r),w(v,r))));else if(M===a)m=P.pop(),v=P.pop(),g=P.pop(),"?"===I.value?P.push(b(g?v:m,t,r)):(_=t.ternaryOps[I.value],P.push(_(w(g,r),w(v,r),w(m,r))));else if(M===s)if(I.value in t.functions)P.push(t.functions[I.value]);else if(I.value in t.unaryOps&&t.parser.isOperatorEnabled(I.value))P.push(t.unaryOps[I.value]);else{var L=r[I.value];if(void 0===L)throw new Error("undefined variable: "+I.value);P.push(L)}else if(M===i)g=P.pop(),_=t.unaryOps[I.value],P.push(_(w(g,r)));else if(M===l){for(E=I.value,O=[];E-- >0;)O.unshift(w(P.pop(),r));if(!(_=P.pop()).apply||!_.call)throw new Error(_+" is not a function");P.push(_.apply(void 0,O))}else if(M===c)P.push(function(){for(var e=P.pop(),n=[],i=I.value;i-- >0;)n.unshift(P.pop());var o=P.pop(),a=function(){for(var i=Object.assign({},r),o=0,a=n.length;o<a;o++)i[n[o]]=arguments[o];return b(e,t,i)};return Object.defineProperty(a,"name",{value:o,writable:!1}),r[o]=a,a}());else if(M===f)P.push(S(I,t));else if(M===h)P.push(I);else if(M===p)g=P.pop(),P.push(g[I.value]);else if(M===d)P.pop();else{if(M!==y)throw new Error("invalid Expression");for(E=I.value,O=[];E-- >0;)O.unshift(P.pop());P.push(O)}}if(P.length>1)throw new Error("invalid Expression (parity)");return 0===P[0]?0:w(P[0],r)}function S(e,t,r){return x(e)?e:{type:h,value:function(r){return b(e.value,t,r)}}}function x(e){return e&&e.type===h}function w(e,t){return x(e)?e.value(t):e}function O(e,t){for(var r,h,g,v,m,_,b=[],S=0;S<e.length;S++){var x=e[S],w=x.type;if(w===n)"number"==typeof x.value&&x.value<0?b.push("("+x.value+")"):Array.isArray(x.value)?b.push("["+x.value.map(E).join(", ")+"]"):b.push(E(x.value));else if(w===o)h=b.pop(),r=b.pop(),v=x.value,t?"^"===v?b.push("Math.pow("+r+", "+h+")"):"and"===v?b.push("(!!"+r+" && !!"+h+")"):"or"===v?b.push("(!!"+r+" || !!"+h+")"):"||"===v?b.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }(("+r+"),("+h+")))"):"=="===v?b.push("("+r+" === "+h+")"):"!="===v?b.push("("+r+" !== "+h+")"):"["===v?b.push(r+"[("+h+") | 0]"):b.push("("+r+" "+v+" "+h+")"):"["===v?b.push(r+"["+h+"]"):b.push("("+r+" "+v+" "+h+")");else if(w===a){if(g=b.pop(),h=b.pop(),r=b.pop(),"?"!==(v=x.value))throw new Error("invalid Expression");b.push("("+r+" ? "+h+" : "+g+")")}else if(w===s||w===u)b.push(x.value);else if(w===i)r=b.pop(),"-"===(v=x.value)||"+"===v?b.push("("+v+r+")"):t?"not"===v?b.push("(!"+r+")"):"!"===v?b.push("fac("+r+")"):b.push(v+"("+r+")"):"!"===v?b.push("("+r+"!)"):b.push("("+v+" "+r+")");else if(w===l){for(_=x.value,m=[];_-- >0;)m.unshift(b.pop());v=b.pop(),b.push(v+"("+m.join(", ")+")")}else if(w===c){for(h=b.pop(),_=x.value,m=[];_-- >0;)m.unshift(b.pop());r=b.pop(),t?b.push("("+r+" = function("+m.join(", ")+") { return "+h+" })"):b.push("("+r+"("+m.join(", ")+") = "+h+")")}else if(w===p)r=b.pop(),b.push(r+"."+x.value);else if(w===y){for(_=x.value,m=[];_-- >0;)m.unshift(b.pop());b.push("["+m.join(", ")+"]")}else if(w===f)b.push("("+O(x.value,t)+")");else if(w!==d)throw new Error("invalid Expression")}return b.length>1&&(b=t?[b.join(",")]:[b.join(";")]),String(b[0])}function E(e){return"string"==typeof e?JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):e}function P(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return!0;return!1}function k(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||P(t,a.value)?null!==i?(P(t,i)||t.push(i),i=a.value):i=a.value:t.push(a.value):a.type===p&&n&&null!==i?i+="."+a.value:a.type===f?k(a.value,t,r):null!==i&&(P(t,i)||t.push(i),i=null)}null===i||P(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 d:return this.value;case l:return"CALL "+this.value;case c:return"DEF "+this.value;case y:return"ARRAY "+this.value;case p:return"."+this.value;default:return"Invalid Instruction"}},T.prototype.simplify=function(e){return e=e||{},new T(function e(t,r,l,c,h){for(var d,v,m,_,b=[],S=[],x=0;x<t.length;x++){var w=t[x],O=w.type;if(O===n||O===u)Array.isArray(w.value)?b.push.apply(b,e(w.value.map(function(e){return new g(n,e)}).concat(new g(y,w.value.length)),r,l,c,h)):b.push(w);else if(O===s&&h.hasOwnProperty(w.value))w=new g(n,h[w.value]),b.push(w);else if(O===o&&b.length>1)v=b.pop(),d=b.pop(),_=l[w.value],w=new g(n,_(d.value,v.value)),b.push(w);else if(O===a&&b.length>2)m=b.pop(),v=b.pop(),d=b.pop(),"?"===w.value?b.push(d.value?v.value:m.value):(_=c[w.value],w=new g(n,_(d.value,v.value,m.value)),b.push(w));else if(O===i&&b.length>0)d=b.pop(),_=r[w.value],w=new g(n,_(d.value)),b.push(w);else if(O===f){for(;b.length>0;)S.push(b.shift());S.push(new g(f,e(w.value,r,l,c,h)))}else if(O===p&&b.length>0)d=b.pop(),b.push(new g(n,d.value[w.value]));else{for(;b.length>0;)S.push(b.shift());S.push(w)}}for(;b.length>0;)S.push(b.shift());return S}(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],h=c.type;if(h===s&&c.value===r)for(var p=0;p<n.tokens.length;p++){var d,y=n.tokens[p];d=y.type===i?v(y.value):y.type===o?m(y.value):y.type===a?_(y.value):new g(y.type,y.value),u.push(d)}else h===f?u.push(new g(f,e(c.value,r,n))):u.push(c)}return u}(this.tokens,e,t),this.parser)},T.prototype.evaluate=function(e){return e=e||{},b(this.tokens,this,e)},T.prototype.toString=function(){return O(this.tokens,!1)},T.prototype.symbols=function(e){e=e||{};var t=[];return k(this.tokens,t,e),t},T.prototype.variables=function(e){e=e||{};var t=[];k(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 "+O(this.simplify(t).tokens,!0)+"; }");return function(){return n.apply(r,arguments)}};var I="TOP",M="TPAREN";function L(e,t,r){this.type=e,this.value=t,this.index=r}function C(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}L.prototype.toString=function(){return this.type+": "+this.value},C.prototype.newToken=function(e,t,r){return new L(e,t,null!=r?r:this.pos)},C.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},C.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},C.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)+'"')},C.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},C.prototype.isParen=function(){var e=this.expression.charAt(this.pos);return("("===e||")"===e)&&(this.current=this.newToken(M,e),this.pos++,!0)},C.prototype.isBracket=function(){var e=this.expression.charAt(this.pos);return!("["!==e&&"]"!==e||!this.isOperatorEnabled("["))&&(this.current=this.newToken("TBRACKET",e),this.pos++,!0)},C.prototype.isComma=function(){return","===this.expression.charAt(this.pos)&&(this.current=this.newToken("TCOMMA",","),this.pos++,!0)},C.prototype.isSemicolon=function(){return";"===this.expression.charAt(this.pos)&&(this.current=this.newToken("TSEMICOLON",";"),this.pos++,!0)},C.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},C.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(I,n),this.pos+=n.length,!0}return!1},C.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},C.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 N=/^[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}C.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);N.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},C.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)},C.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},C.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},C.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(I,t);else if("∙"===t||"•"===t)this.current=this.newToken(I,"*");else if(">"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(I,">="),this.pos++):this.current=this.newToken(I,">");else if("<"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(I,"<="),this.pos++):this.current=this.newToken(I,"<");else if("|"===t){if("|"!==this.expression.charAt(this.pos+1))return!1;this.current=this.newToken(I,"||"),this.pos++}else if("="===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(I,"=="),this.pos++):this.current=this.newToken(I,t);else{if("!"!==t)return!1;"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(I,"!="),this.pos++):this.current=this.newToken(I,t)}return this.pos++,!!this.isOperatorEnabled(this.current.value)||(this.pos=e,!1)},C.prototype.isOperatorEnabled=function(e){return this.parser.isOperatorEnabled(e)},C.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}},C.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)?P(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(I,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(M,"("))this.parseExpression(e),this.expect(M,")");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===M&&")"===this.nextToken.value||t.push(new g(d)),"TEOF"!==this.nextToken.type&&this.parseExpression(t),e.push(new g(f,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(I,"=");){var t=e.pop(),r=[],n=e.length-1;if(t.type!==l){if(t.type!==s&&t.type!==p)throw new Error("expected variable for assignment");this.parseVariableAssignmentExpression(r),e.push(new g(u,t.value)),e.push(new g(f,r)),e.push(m("="))}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(f,r)),e.push(new g(c,t.value))}}},R.prototype.parseConditionalExpression=function(e){for(this.parseOrExpression(e);this.accept(I,"?");){var t=[],r=[];this.parseConditionalExpression(t),this.expect(I,":"),this.parseConditionalExpression(r),e.push(new g(f,t)),e.push(new g(f,r)),e.push(_("?"))}},R.prototype.parseOrExpression=function(e){for(this.parseAndExpression(e);this.accept(I,"or");){var t=[];this.parseAndExpression(t),e.push(new g(f,t)),e.push(m("or"))}},R.prototype.parseAndExpression=function(e){for(this.parseComparison(e);this.accept(I,"and");){var t=[];this.parseComparison(t),e.push(new g(f,t)),e.push(m("and"))}};var j=["==","!=","<","<=",">=",">","in"];R.prototype.parseComparison=function(e){for(this.parseAddSub(e);this.accept(I,j);){var t=this.current;this.parseAddSub(e),e.push(m(t.value))}};var G=["+","-","||"];R.prototype.parseAddSub=function(e){for(this.parseTerm(e);this.accept(I,G);){var t=this.current;this.parseTerm(e),e.push(m(t.value))}};var V=["*","/","%"];function A(e,t){return Number(e)+Number(t)}function D(e,t){return e-t}function F(e,t){return e*t}function B(e,t){return e/t}function q(e,t){return e%t}function J(e,t){return Array.isArray(e)&&Array.isArray(t)?e.concat(t):""+e+t}function U(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 P(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 pe(e+1)}R.prototype.parseTerm=function(e){for(this.parseFactor(e);this.accept(I,V);){var t=this.current;this.parseFactor(e),e.push(m(t.value))}},R.prototype.parseFactor=function(e){var t=this.tokens.unaryOps;if(this.save(),this.accept(I,function(e){return e.value in t})){if("-"!==this.current.value&&"+"!==this.current.value){if(this.nextToken.type===M&&"("===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===M&&")"===this.nextToken.value)return this.restore(),void this.parseAtom(e)}var r=this.current;this.parseFactor(e),e.push(v(r.value))}else this.parseExponential(e)},R.prototype.parseExponential=function(e){for(this.parsePostfixExpression(e);this.accept(I,"^");)this.parseFactor(e),e.push(m("^"))},R.prototype.parsePostfixExpression=function(e){for(this.parseFunctionCall(e);this.accept(I,"!");)e.push(v("!"))},R.prototype.parseFunctionCall=function(e){var t=this.tokens.unaryOps;if(this.accept(I,function(e){return e.value in t})){var r=this.current;this.parseAtom(e),e.push(v(r.value))}else for(this.parseMemberExpression(e);this.accept(M,"(");)if(this.accept(M,")"))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(M,")");)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(I,".")||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(p,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(m("["))}}};var fe=4.7421875,he=[.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 pe(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)*pe(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=he[0];for(var l=1;l<he.length;++l)r+=he[l]/(e+l);return t=e+fe+.5,Math.sqrt(2*Math.PI)*Math.pow(t,e+.5)*Math.exp(-t)*r}function de(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 ve(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 me(e,t,r){return r&&(r[e]=t),t}function _e(e,t){return e[0|t]}function be(e){return 1===arguments.length&&Array.isArray(e)?Math.max.apply(Math,e):Math.max.apply(Math,arguments)}function Se(e){return 1===arguments.length&&Array.isArray(e)?Math.min.apply(Math,e):Math.min.apply(Math,arguments)}function xe(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 Oe(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 Ee(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 Pe(e,t){if(!Array.isArray(t))throw new Error("Second argument to join is not an array");return t.join(e)}function ke(e){return(e>0)-(e<0)||+e}var Te=1/3;function Ie(e){return e<0?-Math.pow(-e,Te):Math.pow(e,Te)}function Me(e){return Math.exp(e)-1}function Le(e){return Math.log(1+e)}function Ce(e){return Math.log(e)/Math.LN2}function Ne(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||Ie,log:Math.log,log2:Math.log2||Ce,ln:Math.log,lg:Math.log10||oe,log10:Math.log10||oe,expm1:Math.expm1||Me,log1p:Math.log1p||Le,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||ue,"-":ae,"+":Number,exp:Math.exp,not:se,length:de,"!":ce,sign:Math.sign||ke},this.binaryOps={"+":A,"-":D,"*":F,"/":B,"%":q,"^":Math.pow,"||":J,"==":U,"!=":z,">":W,"<":H,">=":X,"<=":Y,and:Z,or:K,in:Q,"=":me,"[":_e},this.ternaryOps={"?":ge},this.functions={random:le,fac:ce,min:Se,max:be,hypot:Math.hypot||ye,pyt:Math.hypot||ye,pow:Math.pow,atan2:Math.atan2,if:ge,gamma:pe,roundTo:ve,map:xe,fold:we,filter:Oe,indexOf:Ee,join:Pe},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}Ne.prototype.parse=function(e){var t=[],r=new R(this,new C(this,e),{allowMemberAccess:this.options.allowMemberAccess});return r.parseExpression(t),r.expect("TEOF","EOF"),new T(t,this)},Ne.prototype.evaluate=function(e,t){return this.parse(e).evaluate(t)};var Re=new Ne;Ne.parse=function(e){return Re.parse(e)},Ne.evaluate=function(e,t){return Re.parse(e).evaluate(t)};var je={"+":"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"};Ne.prototype.isOperatorEnabled=function(e){var t=function(e){return je.hasOwnProperty(e)?je[e]:e}(e),r=this.options.operators||{};return!(t in r&&!r[t])};
90
+ */(e,n),a=[],s=0;s<o.length;s++){for(var u=o[s],l=[],c=0;c<u.length;c++){var f=u[c];f.properties[r]?l.push(f.properties[r]):l.push(0),!0===i&&(f.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=To(ko(Li(e,o,a-o))),u={};u.groupedRings=s,u[r]=o+"-"+a,n.push(u)}return n}(a,t,n);return d((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=t[0].length-1,l=t.length-1,c=i/u,f=o/l,h=function(e){e[0]=e[0]*c+a,e[1]=e[1]*f+s};return e.forEach(function(e){e.groupedRings.forEach(function(e){e.forEach(function(e){e.forEach(h)})})}),e}(s,a,e)).map(function(e,t){if(o[t]&&!I(o[t]))throw new Error("Each mappedProperty is required to be an Object");var r=ce({},i,o[t]);return r[n]=e[n],v(e.groupedRings,r)}))},t.isolines=function(e,t,r){if(!I(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(!I(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(!I(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 V(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 f=u[c];f.properties[r]?l.push(f.properties[r]):l.push(0),!0===i&&(f.properties.matrixPosition=[s,c])}a.push(l)}return a}(e,{zProperty:n,flip:!0});return d(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=t[0].length-1,l=t.length-1,c=i/u,f=o/l,h=function(e){e[0]=e[0]*c+a,e[1]=e[1]*f+s};return e.forEach(function(e){N(e,h)}),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(pe(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=mn(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=Pn,t.lengthToDegrees=x,t.lengthToRadians=S,t.lineArc=ti,t.lineChunk=function(e,t,r){if(!I(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=Pn(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)})}),d(o)},t.lineDistance=Pn,t.lineEach=W,t.lineIntersect=fn,t.lineOffset=function(e,t,r){if(!I(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 Go(e,t,n);case"MultiLineString":var a=[];return q(e,function(e){a.push(Go(e,t,n).geometry.coordinates)}),y(a,o);default:throw new Error("geometry "+i+" is not supported")}},t.lineOverlap=gi,t.lineReduce=H,t.lineSegment=Dr,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=pn(r,e),a=pn(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),h(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=jn(t,{precision:7});switch(n){case"Point":return Qn(e,i);case"MultiPoint":return Kn(e,i);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return Kn(e,fn(e,i))}},t.lineString=h,t.lineStringToPolygon=ai,t.lineStrings=p,t.lineToPolygon=ai,t.mask=function(e,t){var r,n=function(e){return c(e&&e.geometry.coordinates||[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]])}(t);return("FeatureCollection"===e.type?by(2===(r=e).features.length?bu.union(r.features[0].geometry.coordinates,r.features[1].geometry.coordinates):bu.union.apply(bu,r.features.map(function(e){return e.geometry.coordinates}))):by(bu.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 ar(e,vt(e,t)/2,ur(e,t))},t.moranIndex=function(e,t){var r=t.inputField,n=t.threshold||1e5,i=t.p||2,o=t.binary||!1,a=ds(e,{alpha:t.alpha||-1,binary:o,p:i,standardization:t.standardization||!0,threshold:n}),s=[];V(e,function(e){var t=e.properties||{};s.push(t[r])});for(var u=ys(s),l=function(e){for(var t=ys(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,f=0,h=0,p=0,d=a.length,y=0;y<d;y++){for(var g=0,v=0;v<d;v++)c+=a[y][v]*(s[y]-u)*(s[v]-u),f+=a[y][v],h+=Math.pow(a[y][v]+a[v][y],2),g+=a[y][v]+a[v][y];p+=Math.pow(g,2)}var m=c/f/l,_=-1/(d-1),b=(d*d*(h*=.5)-d*p+f*f*3)/((d-1)*(d+1)*(f*f))-_*_,S=Math.sqrt(b);return{expectedMoranIndex:_,moranIndex:m,stdNorm:S,zNorm:(m-_)/S}},t.multiLineString=y,t.multiPoint=g,t.multiPolygon=v,t.nearest=Ar,t.nearestPoint=Ar,t.nearestPointOnLine=pn,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 F(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 V(o,function(e){var r=yn(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],f=n[0][1],h=void 0!==o?o:n[0][2],p=n[1][0],d=n[1][1],y=void 0!==a?a:n[1][2],g=n[2][0],v=n[2][1],m=void 0!==s?s:n[2][2];return(m*(u-c)*(l-d)+h*(u-p)*(l-v)+y*(u-g)*(l-f)-y*(u-c)*(l-v)-m*(u-p)*(l-f)-h*(u-g)*(l-d))/((u-c)*(l-d)+(u-p)*(l-v)+(u-g)*(l-f)-(u-c)*(l-v)-(u-p)*(l-f)-(u-g)*(l-d))},t.point=u,t.pointGrid=Rn,t.pointOnFeature=_n,t.pointOnLine=pn,t.pointOnSurface=_n,t.pointToLineDistance=yn,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 F(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),fs(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=v(o).geometry),hs(a,s),o=s.slice(0);r.push(v(o,i));break;default:throw new Error("geometry is invalid, must be Polygon or MultiPolygon")}}),d(r)},t.polygonTangents=function(e,t){var r,n,i,o,a=$(e),s=$(t),l=K(t),c=0,f=null;switch(a[0]>l[0]&&a[0]<l[2]&&a[1]>l[1]&&a[1]<l[3]&&(c=(f=Ar(e,fr(t))).properties.featureIndex),oe(t)){case"Polygon":r=s[0][c],n=s[0][0],null!==f&&f.geometry.coordinates[1]<a[1]&&(n=s[0][c]),o=Oi(s[0][0],s[0][s[0].length-1],a);var h=xi(s[0],a,o,i,r,n);r=h[0],n=h[1];break;case"MultiPolygon":for(var p=0,y=0,g=0,v=0;v<s[0].length;v++){p=v;for(var m=!1,_=0;_<s[0][v].length;_++){if(y=_,g===c){m=!0;break}g++}if(m)break}r=s[0][p][y],n=s[0][p][y],o=Oi(s[0][0][0],s[0][0][s[0][0].length-1],a),s.forEach(function(e){var t=xi(e[0],a,o,i,r,n);r=t[0],n=t[1]})}return d([u(r),u(n)])},t.polygonToLine=ni,t.polygonToLineString=ni,t.polygonize=function(e){var t=qo.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){Bo.findEdgeRingContaining(e,n)&&n.push(e)}),d(n.map(function(e){return e.toPolygon()}))},t.polygons=f,t.projection=Ss,t.propEach=j,t.propReduce=G,t.propertiesContainsFilter=js,t.radians2degrees=O,t.radiansToDegrees=O,t.radiansToDistance=b,t.radiansToLength=b,t.random=Is,t.randomLineString=Ps,t.randomPoint=Os,t.randomPolygon=Es,t.randomPosition=ws,t.rewind=function(e,t){if(!I(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=xt(e));var i=[];switch(e.type){case"GeometryCollection":return F(e,function(e){Pi(e,r)}),e;case"FeatureCollection":return V(e,function(e){V(Pi(e,r),function(e){i.push(e)})}),d(i)}return Pi(e,r)},t.rhumbBearing=_i,t.rhumbDestination=Si,t.rhumbDistance=dn,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 d(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(!I(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(mi(r)===mi(n))return sr(e,t,i);var a=$(e),s=ti(e,t,r,n,i),u=[[a]];return N(s,function(e){u[0].push(e)}),u[0].push(a),c(u,o)},t.segmentEach=U,t.segmentReduce=z,t.shortestPath=function(e,t,r){if(!I(r=r||{}))throw new Error("options is invalid");var n=r.resolution,i=r.minDistance,o=r.obstacles||d([]);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 h([s,l]);break;case"Polygon":o=d([a(ie(o))]);break;default:throw new Error("invalid obstacles")}var c=o;c.features.push(e),c.features.push(t);var f=K(Co(nr(K(c)),1.15));n||(n=vt([f[0],f[1]],[f[2],f[1]],r)/100),c.features.pop(),c.features.pop();for(var p=f[0],y=f[1],g=f[2],v=f[3],m=n/vt([p,y],[g,y],r)*(g-p),_=n/vt([p,y],[p,v],r)*(v-y),b=g-p,S=v-y,x=Math.floor(b/m),w=Math.floor(S/_),O=(b-x*m)/2,E=[],P=[],k=[],M=[],L=1/0,C=1/0,N=v-(S-w*_)/2,R=0;N>=y;){for(var j=[],G=[],V=p+O,A=0;V<=g;){var D=u([V,N]),F=Oa(D,o);j.push(F?0:1),G.push(V+"|"+N);var B=vt(D,e);!F&&B<L&&(L=B,k={x:A,y:R});var q=vt(D,t);!F&&q<C&&(C=q,M={x:A,y:R}),V+=m,A++}P.push(j),E.push(G),N-=_,R++}var J=new Sa(P,{diagonal:!0}),U=J.grid[k.y][k.x],z=J.grid[M.y][M.x],W=ba.search(J,U,z),H=[s];return W.forEach(function(e){var t=E[e.x][e.y].split("|");H.push([+t[0],+t[1]])}),H.push(l),zt(h(H))},t.simplify=function(e,t){if(!I(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=xt(e)),F(e,function(e){!function(e,t,r){var n=e.type;if("Point"===n||"MultiPoint"===n)return e;zt(e,!0);var i=e.coordinates;switch(n){case"LineString":e.coordinates=Qt(i,t,r);break;case"MultiLineString":e.coordinates=i.map(function(e){return Qt(e,t,r)});break;case"Polygon":e.coordinates=$t(i,t,r);break;case"MultiPolygon":e.coordinates=i.map(function(e){return $t(e,t,r)})}}(e,r,n)}),e},t.square=or,t.squareGrid=Sy,t.standardDeviationalEllipse=function(e,t){if(!I(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(!I(i))throw new Error("properties must be a number");var o=D(e).length,a=ls(e,{weight:n}),s=0,u=0,l=0;V(e,function(e){var t=e.properties[n]||1,r=cs($(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,f=Math.sqrt(Math.pow(c,2)+4*Math.pow(l,2)),h=2*l,p=Math.atan((c+f)/h),y=180*p/Math.PI,g=0,v=0,m=0;V(e,function(e){var t=e.properties[n]||1,r=cs($(e),$(a));g+=Math.pow(r.x*Math.cos(p)-r.y*Math.sin(p),2)*t,v+=Math.pow(r.x*Math.sin(p)+r.y*Math.cos(p),2)*t,m+=t});var _=Math.sqrt(2*g/m),b=Math.sqrt(2*v/m),S=ss(a,_,b,{units:"degrees",angle:y,steps:r,properties:i}),x=gt(e,d([S])),w={meanCenterCoordinates:$(a),semiMajorAxis:_,semiMinorAxis:b,numberOfFeatures:o,angle:y,percentageWithinEllipse:100*D(x).length/o};return S.properties.standardDeviationalEllipse=w,S},t.tag=function(e,t,r,n){return e=xt(e),t=xt(t),V(e,function(e){e.properties||(e.properties={}),V(t,function(t){void 0===e.properties[n]&&dt(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=Vr(e.geometry.coordinates):e.geometry.coordinates.forEach(function(e){t.features=t.features.concat(Vr(e))}),t},t.tin=mt,t.toMercator=gs,t.toWgs84=vs,t.transformRotate=Lo,t.transformScale=Co,t.transformTranslate=function(e,t,r,n){if(!I(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=xt(e)),N(e,function(e){var n=$(Si(e,t,r,{units:i}));e[0]=n[0],e[1]=n[1],o&&3===e.length&&(e[2]+=o)}),e},t.triangleGrid=xy,t.truncate=jn,t.union=function(e,t,r){void 0===r&&(r={});var n=ie(e),i=ie(t),o=bu.union(n.coordinates,i.coordinates);return 0===o.length?null:1===o.length?c(o[0],r.properties):v(o,r.properties)},t.unitsFactors=i,t.unkinkPolygon=function(e){var t=[];return q(e,function(e){"Polygon"===e.geometry.type&&V(An(e),function(r){t.push(c(r.geometry.coordinates,e.properties))})}),d(t)},t.validateBBox=M,t.validateId=L,t.voronoi=function(e,t){if(!I(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"),d(function(){var e=Pa,t=ka,r=null;function n(n){return new os(n.map(function(r,i){var o=[Math.round(e(r,i,n)/rs)*rs,Math.round(t(r,i,n)/rs)*rs];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:Ea(+t),n):e},n.y=function(e){return arguments.length?(t="function"==typeof e?e:Ea(+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(as))},t.within=gt,Object.defineProperty(t,"__esModule",{value:!0})}(t)}).call(this,r(239))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=u(r(12)),a=r(1),s=u(r(33));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,i.defaultValue)(e,{}),r.coordinates=(0,i.defaultValue)(e.coordinates,[]),r.type=a.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,i.isNumber)(r.coordinates[0])||!(0,i.isNumber)(r.coordinates[1]))throw new Error("坐标数组成员必须为数字");return 3===r.coordinates.length?r.hasZ=!0:r.hasZ=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(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=void 0;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=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse(JSON.stringify(this.coordinates)),e.extent=(0,i.toJSON)(this.extent,s.default),e}},{key:"getIGSType",value:function(){return this.hasZ?a.IGSGeometryType.point3D:a.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(JSON.stringify(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return t?new s.default({xmin:e[0],ymin:e[1],zmin:e[2],xmax:e[0],ymax:e[1],zmax:e[2],spatialReference:this.spatialReference}):new s.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(JSON.stringify(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,i.defaultValue)(e,{}))}}]),t}();Object.defineProperties(l.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=l},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(160),i=r(7),o=r(429),a=r(27),s=r(434),u=O(r(438)),l=O(r(439)),c=r(440),f=O(r(443)),h=O(r(444)),p=O(r(445)),d=O(r(446)),y=O(r(447)),g=O(r(45)),v=r(25),m=O(r(41)),_=O(r(51)),b=O(r(69)),S=O(r(95)),x=O(r(448)),w=O(r(449));function O(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=f.default,t.GraphicsLayer=h.default,t.GeoJSONLayer=p.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=d.default,t.Projection=g.default,t.ArcGISMapImageLayer=o.ArcGISMapImageLayer,t.ArcGISMapImageSubLayer=o.ArcGISMapImageSubLayer,t.ArcGISTileLayer=o.ArcGISTileLayer,t.getUrlType=v.getUrlType,t.is4326=v.is4326,t.isCustomSP=v.isCustomSP,t.showLayerByScale=v.showLayerByScale,t.getLayerViewScaleVisible=v.getLayerViewScaleVisible,t.TileInfoUtil=_.default,t.setElevationInfo=a.setElevationInfo,t.ArcGISVectorTileLayer=o.ArcGISVectorTileLayer,t.WebTileLayer=x.default,t.getZoomOffset=v.getZoomOffset,t.FeatureCollection=S.default,t.TileInfo=m.default,t.appendUrlParams=v.appendUrlParams,t.getFullBaseUrl=v.getFullBaseUrl,t.LOD=b.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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(10),a=r(0);var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,a.defaultValue)(t,{}),this._vertexStyle=(0,a.defaultValue)(t.vertexStyle,new o.SimpleMarkerSymbol({color:new i.Color(24,144,255,1),size:10,outline:new o.SimpleLineSymbol({color:new i.Color(255,255,255,1),width:1})})),this._lineStyle=(0,a.defaultValue)(t.lineStyle,new o.SimpleLineSymbol({color:new i.Color(24,144,255,1),width:3})),this._fillStyle=(0,a.defaultValue)(t.fillStyle,new o.SimpleFillSymbol({color:new i.Color(24,144,255,.3),outline:new o.SimpleLineSymbol({color:new i.Color(24,144,255,1),width:2})})),this._textStyle=(0,a.defaultValue)(t.textStyle,new o.TextSymbol({color:new i.Color(24,144,255,1),text:"默认文字",font:{family:"微软雅黑",size:20,style:"normal",weight:"normal"}})),this._movingLineStyle=(0,a.defaultValue)(t.lineStyle,new o.SimpleLineSymbol({color:new i.Color(255,255,0,1),width:2})),this._selectBoxStyle=(0,a.defaultValue)(t.selectBoxStyle,new o.SimpleFillSymbol({color:new i.Color(241,188,0,.1),outline:new o.SimpleLineSymbol({color:new i.Color(241,188,0,.8),width:2})})),this._selectBoxVertexStyle=(0,a.defaultValue)(t.selectBoxVertexStyle,new o.SimpleMarkerSymbol({color:new i.Color(255,255,255,1),size:10,outline:new o.SimpleLineSymbol({color:new i.Color(241,188,0,1),width:3})})),this._selectVertexStyle=(0,a.defaultValue)(t.selectVertexStyle,new o.SimpleMarkerSymbol({color:new i.Color(241,188,0,1),size:11,outline:new o.SimpleLineSymbol({color:new i.Color(255,255,255,1),width:1})})),this._selectTextStyle=(0,a.defaultValue)(t.selectTextStyle,new o.TextSymbol({color:new i.Color(241,188,0,1),text:"默认文字",font:{family:"微软雅黑",size:20,style:"normal",weight:"normal"}})),this._selectMidVertexStyle=(0,a.defaultValue)(t.selectMidVertexStyle,new o.SimpleMarkerSymbol({color:new i.Color(255,255,255,1),size:8,outline:new o.SimpleLineSymbol({color:new i.Color(241,188,0,1),width:1})})),this._coincidentPointStyle=(0,a.defaultValue)(t.coincidentPointStyle,new o.SimpleMarkerSymbol({color:new i.Color(255,255,0,1),size:10,outline:new o.SimpleLineSymbol({color:new i.Color(255,255,255,1),width:1})})),this._highlightPointStyle=(0,a.defaultValue)(t.highlightPointStyle,new o.SimpleMarkerSymbol({color:new i.Color(255,255,0,1),size:10,outline:new o.SimpleLineSymbol({color:new i.Color(255,255,255,1),width:1})})),this._highlightLineStyle=(0,a.defaultValue)(t.highlightLineStyle,new o.SimpleLineSymbol({color:new i.Color(255,255,0,1),width:3})),this._parallelLineStyle=(0,a.defaultValue)(t.parallelLineStyle,this._highlightLineStyle),this._perpendicularLineStyle=(0,a.defaultValue)(t.perpendicularLineStyle,this._highlightLineStyle)}return n(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}();Object.defineProperties(s.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=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(3),a=l(r(20)),s=l(r(18)),u=r(0);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._initEvent(),r.type="sketchPointDrawTool",r._drawTools=[r],r._otherDrawTools=[],r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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=i.SketchEditMode.DRAWING,this.view._mapActionControl("video-map-active",!0),this.cursorStyle=this.view.cursor,(0,u.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair"),this._setInitSnap(),this._fireStartDrawEvent();var t=function(t){if(t&&t.x&&t.y){e.view.off(i.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={x:t.x,y:t.y},n=null;n=e._snapPoint?e._snapPoint:e.view.toMap({x:r.x,y:r.y});var o=e._getFeature(n);e.sketchStage.entityGraphic=o,e._addFeatureToLayer(o,e.layer),e.stop(),e._editMode=i.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e.fire("drawn",{geometry:o.geometry,feature:o},self),e._fireStopDrawEvent(o),e.view._mapActionControl("video-map-active",!1)}};this._drawEventHandlers.push(t),this.view.on(i.ViewEventType.pointerDown,t)}},{key:"addFeature",value:function(e,t,r,n){var i=null;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 o=null;o=t&&t.vertexStyle?t.vertexStyle:this.sketchStyle._vertexStyle;var a=new i.Feature({geometry:e,symbol:o,elevationInfo:this.elevationInfo});r&&(a.attributes=r),this.sketchStage.entityGraphic=a,this._addFeatureToLayer(a,n)}},{key:"_getFeature",value:function(e,t){return e||(e=i.Projection.project(new o.Point({coordinates:[0,0,0]}),this._spatialReference)),t||(t=this._sketchDataType===i.SketchDataType.TEXT?this.sketchStyle.textStyle:this.sketchStyle.vertexStyle),new i.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=i.SketchEditMode.EDITGRAGIC,this.selectFeature(e)):this._parent._sketchDataType===i.SketchDataType.POINT||this._parent._sketchDataType===i.SketchDataType.TEXT?this.startPanGraphics(e,t):this._parent&&this._parent._editMode===i.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===i.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 s.default({vertexStyle:this._sketchDataType===i.SketchDataType.TEXT?this.sketchStyle._selectTextStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),o=e.geometry;if(this._drawTools.push(n),n.addFeatureByGeometry(o,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 a=function(){r._preventFirstCall?r._preventFirstCall=void 0:(r.sketchStage.selectBoxGraphics.forEach(function(e){r._removeFeatureFromLayer(e,r.sketchInnerLayer)}),r.view.off(i.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=a,this.view.on(i.ViewEventType.immediateClick,a)),"leaflet"===this.view.engineType&&this.sketchDataType===i.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 o=null;o=t.mapPoint,this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._parent._mapClickEvent),this._parent&&this._fireStartPanEvent(this._parent.sketchStage.entityGraphic,this._parent);var a=function(e){if(e&&e.x&&e.y&&!n&&r._startPan){clearTimeout(null),n=!0;var t={x:e.x,y:e.y},i=r.view.toMap({x:t.x,y:t.y}),a=i.coordinates[0]-o.coordinates[0],s=i.coordinates[1]-o.coordinates[1];if(0!==a||0!==s){var u=r.getPanCoordinates(r.sketchStage.entityGraphic.geometry.coordinates,a,s);o.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}},s=function e(){r._startPan&&(r._startPan=!1,r.view.off(i.ViewEventType.pointerUp,e),r.view.off(i.ViewEventType.pointerMove,a),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&r.view.on(i.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(a),this._hitTestEventHandlers.push(s),this.view.on(i.ViewEventType.pointerUp,s),this.view.on(i.ViewEventType.pointerMove,a)}},{key:"startVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var a;a=t.mapPoint;var s=void 0;s=this._parent.sketchStage.entityGraphic.geometry instanceof o.Extent?this._parent.sketchStage.entityGraphic.geometry:this._parent.sketchStage.entityGraphic.geometry.extent,this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent);var u=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var l=function(t){if(t&&t.x&&t.y&&!n&&r._startPan){clearTimeout(null),n=!0;var i={x:t.x,y:t.y},o=r.view.toMap({x:i.x,y:i.y}),l=o.coordinates[0]-a.coordinates[0],c=o.coordinates[1]-a.coordinates[1],f=o.coordinates[0]/a.coordinates[0],h=o.coordinates[1]/a.coordinates[1];0!==l||0!==c?(r._dispatchEvent("vertexScale",{startPoint:a,movePoint:o,deltaPosition:{x:l,y:c},scale:{x:f,y:h},direction:u,extent:s,feature:e,action:"scale"},r),n=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):n=!1}},c=function e(){r._startPan&&(r._dispatchEvent("vertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(i.ViewEventType.pointerUp,e),r.view.off(i.ViewEventType.pointerMove,l),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(i.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(l),this._hitTestEventHandlers.push(c),this.view.on(i.ViewEventType.pointerUp,c),this.view.on(i.ViewEventType.pointerMove,l)}},{key:"startMidVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var a;a=t.mapPoint;var s=void 0;s=this._parent.sketchStage.entityGraphic.geometry instanceof o.Extent?this._parent.sketchStage.entityGraphic.geometry:this._parent.sketchStage.entityGraphic.geometry.extent,this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._parent._mapClickEvent);var u=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var l=function(e){if(e&&e.x&&e.y&&!n&&r._startPan){clearTimeout(null),n=!0;var t={x:e.x,y:e.y},i=r.view.toMap({x:t.x,y:t.y}),o=i.coordinates[0]-a.coordinates[0],l=i.coordinates[1]-a.coordinates[1],c=i.coordinates[0]/a.coordinates[0],f=i.coordinates[1]/a.coordinates[1];0!==o||0!==l?(r._dispatchEvent("midVertexScale",{startPoint:a,movePoint:i,deltaPosition:{x:o,y:l},scale:{x:c,y:f},direction:u,extent:s,action:"scale"},r),n=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):n=!1}},c=function e(){r._startPan&&(r._dispatchEvent("vertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(i.ViewEventType.pointerUp,e),r.view.off(i.ViewEventType.pointerMove,l),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(i.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(l),this._hitTestEventHandlers.push(c),this.view.on(i.ViewEventType.pointerUp,c),this.view.on(i.ViewEventType.pointerMove,l)}},{key:"startCircleVertexScaleGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var o;o=t.mapPoint;var a=this._parent.sketchStage.entityGraphic.geometry.extent;this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent);var s=e.attributes.direction;this._parent&&this._fireStartScaleEvent(this._parent.sketchStage.entityGraphic,this._parent);var u=function(t){if(t&&t.x&&t.y&&!n&&r._startPan){clearTimeout(null),n=!0;var i={x:t.x,y:t.y},u=r.view.toMap({x:i.x,y:i.y}),l=u.coordinates[0]-o.coordinates[0],c=u.coordinates[1]-o.coordinates[1],f=u.coordinates[0]/o.coordinates[0],h=u.coordinates[1]/o.coordinates[1];0!==l||0!==c?(r._dispatchEvent("circleVertexScale",{startPoint:o,movePoint:u,deltaPosition:{x:l,y:c},scale:{x:f,y:h},direction:s,extent:a,feature:e,action:"scale"},r),n=!1,r._parent&&r._fireScalingEvent(r._parent.sketchStage.entityGraphic,r._parent)):n=!1}},l=function e(){r._startPan&&(r._dispatchEvent("circleVertexScale",{action:"stop"},r),r._startPan=!1,r.view.off(i.ViewEventType.pointerUp,e),r.view.off(i.ViewEventType.pointerMove,u),r._parent&&r._parent.undoRedoManager&&r._parent.undoRedoManager.addProcess("update",r._parent.sketchStage),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(i.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(u),this._hitTestEventHandlers.push(l),this.view.on(i.ViewEventType.pointerUp,l),this.view.on(i.ViewEventType.pointerMove,u)}},{key:"startVertexMoveGraphics",value:function(e,t){var r=this;this.view._mapActionControl("drag-pan",!1);var n=!1;this._startPan=!0;var o=null;o=t.mapPoint;var a=e.attributes?e.attributes.vertexIndex:-2;"midVertex"===e.attributes.type?(this._fireAddVertexEvent(this._parent.sketchStage.entityGraphic,this._parent),this._dispatchEvent("midVertexAdd",{point:o,vertexIndex:e.attributes?a:void 0,action:"changeFeature"},this),this._startPan=!0):this._startPan=!0,this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._parent._mapClickEvent),this._parent&&this._fireStartVertexMoveEvent(this._parent.sketchStage.entityGraphic,this._parent);var s=function(t){if(t&&t.x&&t.y&&!n&&r._startPan){clearTimeout(null),n=!0;var i={x:t.x,y:t.y},s=r.view.toMap({x:i.x,y:i.y}),u=s.coordinates[0]-o.coordinates[0],l=s.coordinates[1]-o.coordinates[1];0!==u||0!==l?("midVertex"===e.attributes.type?r._dispatchEvent("midVertexAdd",{startPoint:o,movePoint:s,vertexIndex:a,vertexType:e.attributes?e.attributes.type:void 0,action:"moveMidVertex"},r):r._dispatchEvent("vertexMove",{startPoint:o,movePoint:s,vertexIndex:a,vertexType:e.attributes?e.attributes.type:void 0},r),o=s,n=!1,r._parent&&r._fireUpdateVertex(r._parent.sketchStage.entityGraphic,r._parent)):n=!1}},u=function t(a){if(a&&a.x&&a.y&&r._startPan){if(r.view._mapActionControl("drag-pan",!1),r._startPan=!1,r.view.off(i.ViewEventType.pointerUp,t),r.view.off(i.ViewEventType.pointerMove,s),r.view._mapActionControl("drag-pan",!0),"midVertex"===e.attributes.type){var u=e.attributes.vertexIndex;r._dispatchEvent("midVertexAdd",{point:o,vertexIndex:e.attributes?u: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(i.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(s),this._hitTestEventHandlers.push(u),this.view.on(i.ViewEventType.pointerUp,u),this.view.on(i.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)}},{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 o.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(JSON.stringify([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 n=this._parent.sketchStage.entityGraphic.geometry.extent,i=this.sketchStage.entityGraphic.attributes.direction;"e"===i?r=this._getCenterCoordinate([n.xmax,n.ymin],[n.xmax,n.ymax]):"s"===i?r=this._getCenterCoordinate([n.xmax,n.ymin],[n.xmin,n.ymin]):"w"===i?r=this._getCenterCoordinate([n.xmin,n.ymin],[n.xmin,n.ymax]):"n"===i?r=this._getCenterCoordinate([n.xmax,n.ymax],[n.xmin,n.ymax]):"ne"===i?r=[n.xmax,n.ymax]:"se"===i?r=[n.xmax,n.ymin]:"sw"===i?r=[n.xmin,n.ymin]:"nw"===i&&(r=[n.xmin,n.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 o.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(JSON.stringify([this.sketchStage.entityGraphic.geometry.coordinates]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getMidScaleCoordinates([this.sketchStage.entityGraphic.geometry.coordinates],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.Point({coordinates:n[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}();t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(0),a=r(3),s=function(e){return e&&e.__esModule?e:{default:e}}(r(459)),u=r(98);var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));r._id=(0,o.defaultValue)(e.id,(0,o.getGUID)()),r.view=(0,o.defaultValue)(e.view,null),r.layer=(0,o.defaultValue)(e.layer,void 0),r.sketchInnerLayer=(0,o.defaultValue)(e.sketchInnerLayer,void 0),r.sketchStage=new s.default,void 0!==e.sketchStyle&&(r.sketchStyle=e.sketchStyle.clone()),r.elevationInfo=(0,o.defaultValue)(e.elevationInfo,void 0),r.type="sketchBaseDrawTool",r.extensionOptions=(0,o.defaultValue)(e.extensionOptions,void 0),r._editMode=i.SketchEditMode.NONE,r._spatialReference=e.view._spatialReference?e.view._spatialReference:new a.SpatialReference("EPSG:4326"),r._drawEventHandlers=[],r._hitTestEventHandlers=[],r._sketchDataType=null,r._parent=(0,o.defaultValue)(e._parent,void 0),r.undoRedoManager=(0,o.defaultValue)(e.undoRedoManager,void 0);return r.editOption=(0,o.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,o.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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Evented),n(t,[{key:"start",value:function(){this.stop(),this.drawFeature()}},{key:"stop",value:function(){this._editMode===i.SketchEditMode.DRAWING||this._editMode===i.SketchEditMode.NONE?this._stopDraw():this._editMode===i.SketchEditMode.EDITGRAGIC||this._editMode===i.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(i.ViewEventType.immediateClick,t),e.view.off(i.ViewEventType.pointerUp,t),e.view.off(i.ViewEventType.pointerMove,t),e.view.off(i.ViewEventType.pointerDown,t),e.view.off(i.ViewEventType.doubleClick,t),e.view.off(i.ViewEventType.drag,t)}),this._drawEventHandlers=[]),this._stopInitSnap()}},{key:"_stopHitTest",value:function(){var e=this;this._hitTestEventHandlers&&(this._hitTestEventHandlers.forEach(function(t){e.view.off(i.ViewEventType.pointerUp,t),e.view.off(i.ViewEventType.pointerMove,t),e.view.off(i.ViewEventType.pointerDown,t),e.view.off(i.ViewEventType.click,t),e.view.off(i.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===i.SketchEditMode.EDITGRAGIC?r():e===i.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=i.SketchEditMode.EDITGRAGIC),this.sketchStage.vertexGraphics.forEach(function(e){e.id===r&&(n=!0,t._editMode=i.SketchEditMode.EDITVERTEX)}),this.sketchStage.midVertexGraphics.forEach(function(e){e.id===r&&(n=!0,t._editMode=i.SketchEditMode.EDITVERTEX)}),n||(this._editMode=i.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()),f=n.coordinates,h=i.coordinates;o=o||[];return"ne"===r&&(s=(h[0]-t.xmin)/(f[0]-t.xmin),l=([o[0]]-t.xmin)*s+t.xmin,u=(h[1]-t.ymin)/(f[1]-t.ymin),c=(o[1]-t.ymin)*u+t.ymin),"se"===r&&(s=(h[0]-t.xmin)/(f[0]-t.xmin),l=([o[0]]-t.xmin)*s+t.xmin,u=(h[1]-t.ymax)/(f[1]-t.ymax),c=(o[1]-t.ymax)*u+t.ymax),"sw"===r&&(s=(h[0]-t.xmax)/(f[0]-t.xmax),l=([o[0]]-t.xmax)*s+t.xmax,u=(h[1]-t.ymax)/(f[1]-t.ymax),c=(o[1]-t.ymax)*u+t.ymax),"nw"===r&&(s=(h[0]-t.xmax)/(f[0]-t.xmax),l=([o[0]]-t.xmax)*s+t.xmax,u=(h[1]-t.ymin)/(f[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,f=i.coordinates;return o=o||[],"e"===r&&(a=(f[0]-t.xmin)/(c[0]-t.xmin),u=([o[0]]-t.xmin)*a+t.xmin),"s"===r&&(s=(f[1]-t.ymax)/(c[1]-t.ymax),l=(o[1]-t.ymax)*s+t.ymax),"w"===r&&(a=(f[0]-t.xmax)/(c[0]-t.xmax),u=([o[0]]-t.xmax)*a+t.xmax),"n"===r&&(s=(f[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,f=i.coordinates;return o=o||[],"e"===r&&(a=(f[0]-t.xmin)/(c[0]-t.xmin),u=([o[0]]-t.xmin)*a+t.xmin),"s"===r&&(s=(f[1]-t.ymax)/(c[1]-t.ymax),l=(o[1]-t.ymax)*s+t.ymax),"w"===r&&(a=(f[0]-t.xmax)/(c[0]-t.xmax),u=([o[0]]-t.xmax)*a+t.xmax),"n"===r&&(s=(f[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(i.ViewEventType.pointerMove,this._handlerInitMouseMove)}},{key:"_stopInitSnap",value:function(){this._handlerInitMouseMove&&(this.view.off(i.ViewEventType.pointerMove,this._handlerInitMouseMove),this._handlerInitMouseMove=void 0)}},{key:"_fireStartDrawEvent",value:function(e){e=e||this;var t=new u.SketchEditorEvent({type:i.SketchEditorEventType.create,toolEventInfo:{},state:i.SketchEditorState.start});e.fire(i.SketchEditorEventType.create,t,self)}},{key:"_fireDrawVertexEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.create,toolEventInfo:{type:i.SketchEditorToolEventType.vertexAdd},state:i.SketchEditorState.active,feature:e,geometry:e?e.geometry:void 0});t.fire(i.SketchEditorEventType.create,r,self)}},{key:"_fireChangeCursorEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.create,toolEventInfo:{type:i.SketchEditorToolEventType.cursorChange},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.create,r,self)}},{key:"_fireStopDrawEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.create,toolEventInfo:null,state:i.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.create,r,self)}},{key:"_fireStartPanEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.moveStart},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_firePanningEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.move},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireStopPanEvent",value:function(e,t){var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.moveStop},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireStartScaleEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.scaleStart},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireScalingEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.scale},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireStopScaleEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.scaleStop},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireStartVertexMoveEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.vertexMoveStart},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireUpdateVertex",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.vertexUpdate},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireStopVertexMoveEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.vertexMoveStop},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireAddVertexEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.vertexAdd},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireAddVertexEventByFun",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.vertexAdd},state:i.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,this)}},{key:"_fireUpdateVertexByFun",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.vertexUpdate},state:i.SketchEditorState.active,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireRemoveVertexByFun",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.vertexRemove},state:i.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,this)}},{key:"_fireRemoveSelectEvent",value:function(e,t){t=t||this;var r=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:null,state:i.SketchEditorState.complete,feature:e,geometry:e.geometry});t.fire(i.SketchEditorEventType.update,r,self)}},{key:"_fireUnsimpleDraw",value:function(e){e=e||this;var t=new u.SketchEditorEvent({type:i.SketchEditorEventType.create,toolEventInfo:{type:i.SketchEditorToolEventType.geometryUnsimple},state:i.SketchEditorState.active});e.fire(i.SketchEditorEventType.create,t,self)}},{key:"_fireUnsimpleUpdate",value:function(e){e=e||this;var t=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.geometryUnsimple},state:i.SketchEditorState.active});e.fire(i.SketchEditorEventType.update,t,self)}},{key:"_fireUnsimpleUpdateByFun",value:function(e){e=e||this;var t=new u.SketchEditorEvent({type:i.SketchEditorEventType.update,toolEventInfo:{type:i.SketchEditorToolEventType.geometryUnsimple},state:i.SketchEditorState.complete});e.fire(i.SketchEditorEventType.update,t,self)}},{key:"getSnapGraphics",value:function(e,t){var r=this,n=null,o=null,s=[],u=null;t&&0!==t.length?1===t.length?o=new a.LineString({coordinates:[t[0],e.coordinates],spatialReference:this._spatialReference}):(o=new a.LineString({coordinates:t.slice(-2),spatialReference:this._spatialReference}),"sketchFreehandPolylineDrawTool"!==this.type&&"sketchFreehandPolygonDrawTool"!==this.type&&(u=new a.LineString({coordinates:t.slice(0,t.length),spatialReference:this._spatialReference}))):o=e,s=this.snapAndReferGeometries,this.sketchSnappingTool.snapSketchGeometry&&u&&(s=this.snapAndReferGeometries.concat([u])),t&&t.length>0&&("sketchFreehandPolylineDrawTool"===this.type||"sketchFreehandPolygonDrawTool"===this.type)&&s.push(new a.Point({coordinates:t[0],spatialReference:this._spatialReference}));var l=this.sketchSnappingTool.snapGeometries(e,o,s);if(l.coincidentPoint){var c=new i.Feature({geometry:l.coincidentPoint.realPoint,symbol:this.sketchStyle._coincidentPointStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(c),n=l.coincidentPoint.realPoint}else if(l.inLineAndParallel){l.inLineAndParallel.lines.forEach(function(e){var t=new i.Feature({geometry:e,symbol:r.sketchStyle._parallelLineStyle,elevationInfo:r.elevationInfo});r.sketchStage.snapGraphics.push(t)});var f=new i.Feature({geometry:l.inLineAndParallel.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(f),l.inLineAndParallel.symbolGeometry){var h=new i.Feature({geometry:l.inLineAndParallel.symbolGeometry,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(h)}n=l.inLineAndParallel.realPoint}else if(l.inLineAndPerpendicular){l.inLineAndPerpendicular.lines.forEach(function(e){var t=new i.Feature({geometry:e,symbol:r.sketchStyle._perpendicularLineStyle,elevationInfo:r.elevationInfo});r.sketchStage.snapGraphics.push(t)});var p=new i.Feature({geometry:l.inLineAndPerpendicular.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(p),l.inLineAndPerpendicular.symbolGeometry){var d=new i.Feature({geometry:l.inLineAndPerpendicular.symbolGeometry,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(d)}n=l.inLineAndPerpendicular.realPoint}else if(l.pointInLine){var y=new i.Feature({geometry:l.pointInLine.line,symbol:this.sketchStyle._highlightLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(y);var g=new i.Feature({geometry:l.pointInLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(g),n=l.pointInLine.realPoint}else if(l.parallelLine){var v=new i.Feature({geometry:l.parallelLine.line,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(v);var m=new i.Feature({geometry:l.parallelLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(m),l.parallelLine.symbolGeometry){var _=new i.Feature({geometry:l.parallelLine.symbolGeometry,symbol:this.sketchStyle._parallelLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(_)}n=l.parallelLine.realPoint}else if(l.perpendicularLine){var b=new i.Feature({geometry:l.perpendicularLine.line,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(b);var S=new i.Feature({geometry:l.perpendicularLine.realPoint,symbol:this.sketchStyle._highlightPointStyle,elevationInfo:this.elevationInfo});if(this.sketchStage.snapGraphics.push(S),l.perpendicularLine.symbolGeometry){var x=new i.Feature({geometry:l.perpendicularLine.symbolGeometry,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(x)}n=l.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}();t.default=l},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=h(r(22)),i=h(r(240)),o=h(r(113)),a=r(114),s=h(r(241)),u=h(r(242)),l=h(r(243)),c=h(r(244)),f=h(r(245));function h(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=f.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initPropertys(t)}return n(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=i},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(15)),i=r(0),o=r(1),a=r(3),s=r(86);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=void 0;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,t=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 f=0;f<e.length;f++)for(var h=0;h<e[f].length;h++)c.push(e[f][h][2]);break;case o.GeometryType.lineString:for(var p=0;p<e.length;p++)c.push(e[p][2]);break;case o.GeometryType.multiPolygon:for(var d=0;d<e.length;d++)for(var y=0;y<e[d].length;y++)for(var g=0;g<e[d][y].length;g++)c.push(e[d][y][g][2])}c.sort(function(e,t){return e-t});var v=c[0],m=c[c.length-1];return new a.Extent({xmin:l[0],ymin:l[1],xmax:l[2],ymax:l[3],zmin:v,zmax:m,spatialReference:s})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="unkown"}return n(e,[{key:"toJSON",value:function(){return{type:this.type}}},{key:"clone",value:function(){}}],[{key:"fromJSON",value:function(){}}]),e}();t.default=i},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=r(1),i=r(0),o=r(2),a=r(114);function s(e){switch((e=(0,i.defaultValue)(e,{})).type){case n.SymbolType.simpleMarker:case n.SymbolType.simpleFill:e.color&&(e.color=new o.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255)),e.outline&&e.outline.color&&(e.outline.color=new o.Color(e.outline.color[0],e.outline.color[1],e.outline.color[2],e.outline.color[3]/255));break;case n.SymbolType.simpleLine:e.color&&(e.color=new o.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255));break;case n.SymbolType.pictureMarker:e.color&&(e.color=new o.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255)),e.url||(e.url=e.imageData);break;case n.SymbolType.pictureFill:e.outline&&e.outline.color&&(e.outline.color=new o.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 n.SymbolType.text:e.color&&(e.color=new o.Color(e.color[0],e.color[1],e.color[2],e.color[3]/255)),e.backgroundColor&&(e.backgroundColor=new o.Color(e.backgroundColor[0],e.backgroundColor[1],e.backgroundColor[2],e.backgroundColor[3]/255)),e.borderLineColor&&(e.borderLineColor=new o.Color(e.borderLineColor[0],e.borderLineColor[1],e.borderLineColor[2],e.borderLineColor[3]/255)),e.haloColor&&(e.haloColor=new o.Color(e.haloColor[0],e.haloColor[1],e.haloColor[2],e.haloColor[3]/255))}return e}function u(e,t){t=(0,i.defaultValue)(t,{});var r="";return Object.keys(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$"),i=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$"),f=new RegExp("^https://[0-9.a-zA-Z]+/arcgis/rest/services/[一-龟\\w/:_]+/WMTSServer$");return r.test(e)?t=n.UrlServerType.tdt:i.test(e)||o.test(e)||a.test(e)||s.test(e)?t=n.UrlServerType.igs_2:(u.test(e)||l.test(e)||c.test(e)||f.test(e))&&(t=n.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 a.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=s,t.formatIGSRenderer=function(e){switch((e=(0,i.defaultValue)(e,{})).type){case n.RendererType.simple:e.symbol=s(e.symbol);break;case n.RendererType.uniqueValue:e.defaultSymbol=s(e.defaultSymbol);for(var t=0;t<e.uniqueValueInfos.length;t++)e.uniqueValueInfos[t].symbol=s(e.uniqueValueInfos[t].symbol);break;case n.RendererType.classBreak:e.defaultSymbol=s(e.defaultSymbol);for(var r=0;r<e.classBreakInfos.length;r++)e.classBreakInfos[r].symbol=s(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 o=1;o<e.classBreakInfos.length;o++)e.classBreakInfos[o].minValue=e.classBreakInfos[o-1].classMaxValue,e.classBreakInfos[o].maxValue=e.classBreakInfos[o].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?n.WMTSCorporation.none:e.search("arcgis/rest/services")>0?n.WMTSCorporation.corporationArcGIS:e.search("WMTSServer")>0||e.search("WMSServer")>0?n.WMTSCorporation.corporationZD:e.search("geoserver")>0?n.WMTSCorporation.corporationGeoServer:e.search("tianditu.com")>0||e.search("tianditu.gov.cn")>0?n.WMTSCorporation.corporationTianDiTu:n.WMTSCorporation.corporationOther},t.getTileResolution=function(e,t,r,i){var o="",a=-1,s=0,u=0,l=0,c=25.4/96,f=1e3;return t===n.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),i.isGeographic?0===s?(f=111319490.79327358,c=.28):1===s?(c=.28,f=111194872.221777):2===s&&(f=111319490.79327358,c=25.4/96):0===s?c=.28:1===s?c=.28:2===s?c=25.4/96:3===s&&(c=.28)):i.isGeographic?(f=111194872.221777,c=25.4/96):c=25.4/96:t===n.WMTSCorporation.corporationArcGIS?(u=e.includes("default")?0:e.includes("native")?1:e.includes("GoogleMapsCompatible")?2:3,i.isGeographic?0===u?(r=.28*r*96/25.4,f=111194872.221777,c=.2645838625):1===u&&(f=111194872.221777,c=.2645838625):0===u?(r=.28*r*96/25.4,c=.2645838625):1===u?c=.2645838625:2===u&&(c=.28)):t===n.WMTSCorporation.corporationGeoServer?i.isGeographic?(f=111319490.79327358,c=.28):c=.28:t===n.WMTSCorporation.corporationTianDiTu?i.isGeographic?(f=111319490.79327358,c=25.4/96):c=25.4/96:(e.includes("028")&&(l=1),"".includes("GoogleMapsCompatible")&&(l=1),"".includes("GoogleCRS84Quad")&&(l=1),i.isGeographic?1===l?(r=.28*r*96/25.4,f=111194872.221777,c=.2645838625):(f=111319490.79327358,c=25.4/96):1===l?(r=.28*r*96/25.4,c=.2645838625):c=25.4/96),r*c/f},t.getZoomOffset=function(e,t,r){r=(0,i.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=n.GeometryType.geometry;return e&&e.features&&Array.isArray(e.features)&&e.features.length>0&&(t=e.features[0].geometry.type),t},t.appendUrlParams=u,t.getFullBaseUrl=function(e){var t={};return e.tokenKey&&e.tokenValue&&(t[e.tokenKey]=e.tokenValue),u(e.url,t)},t.getGeometryFilter=function(e,t){var r={geometryType:void 0,geometry:"",spatialRel:t=(0,i.defaultValue)(t,o.SpatialRelation.Intersects)};function a(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=t.substring(0,t.length-1)}switch(e.type){case n.GeometryType.extent:return r.geometryType="rect",r.geometry=e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,r;case n.GeometryType.polygon:return r.geometryType="polygon",r.geometry=a(e.coordinates),r;case n.GeometryType.multiPolygon:r.geometryType="polygon";for(var s=0;s<e.coordinates.length;s++)r.geometry+=a(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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(0),a=r(1),s=r(21),u=function(e){return e&&e.__esModule?e:{default:e}}(r(32)),l=r(3),c=r(25),f=r(27);var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e=(0,o.defaultValue)(e,{}),r.id=(0,o.defaultValue)(e.id,(0,o.getGUID)()),r.description=(0,o.defaultValue)(e.description,"图层基类"),r.copyright=(0,o.defaultValue)(e.copyright,"中地数码版权所有"),r.loadStatus=(0,o.defaultValue)(e.loadStatus,a.LoadStatus.notLoaded),r.loaded=!1,r.tokenKey=(0,o.defaultValue)(e.tokenKey,"token"),r.tokenValue=(0,o.defaultValue)(e.tokenValue,void 0),r.tokenAttachType=(0,o.defaultValue)(e.tokenAttachType,a.TokenAttachType.normal),r.index=(0,o.defaultValue)(e.index,void 0),r.title=(0,o.defaultValue)(e.title,void 0),r.minScale=(0,o.defaultValue)(e.minScale,0),r.maxScale=(0,o.defaultValue)(e.maxScale,0),r.extendProps=(0,o.defaultValue)(e.extendProps,{}),r.type=a.LayerType.baseLayer,r.httpMethod=(0,o.defaultValue)(e.httpMethod,a.FetchMethod.get),r.headers=(0,o.defaultValue)(e.headers,{}),r.extensionOptions=(0,o.defaultValue)(e.extensionOptions,{}),r._visible=(0,o.defaultValue)(e.visible,!0),r._opacity=parseFloat((0,o.defaultValue)(e.opacity,1)),r._spatialReference=e.spatialReference?u.default.fromJSON(e.spatialReference):void 0,r._realIndex=void 0,r._isBasemapLayer=!1,r.autoAddTo2D=(0,o.defaultValue)(e.autoAddTo2D,!0),r.autoAddTo3D=(0,o.defaultValue)(e.autoAddTo3D,!0),r._loadPromise=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Evented),n(t,[{key:"isLoaded",value:function(){return this.loadStatus===a.LoadStatus.loaded}},{key:"load",value:function(){return this.loadStatus===a.LoadStatus.notLoaded?(this.loadStatus=a.LoadStatus.loading,this._loadPromise=this._load()):(this.loadStatus,a.LoadStatus.loading),this._loadPromise}},{key:"_load",value:function(){var e=this;return new Promise(function(t){e.loadStatus=a.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(a.LayerEventType.layerUpdate,new s.LayerViewUpdateEvent({type:a.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,o.toJSON)(this.spatialReference,u.default),extent:(0,o.toJSON)(this.extent,l.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,c.appendUrlParams)(this.url,e)}}],[{key:"fromJSON",value:function(e){return e=e||{},(0,f.createLayer)(e)}},{key:"fromServerUrl",value:function(e,r){return new Promise(function(n){r.url=e,n(new t(r))})}}]),t}();Object.defineProperties(h.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=h},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=r(2),i=r(1),o=r(7),a=r(17);t.setSublayer=function(e,t,r){for(var n=!0,i=0;i<e._sublayers.length;i++)if(String(e._sublayers[i].name)===String(t.name)||String(e._sublayers[i].id)===String(t.id)){Object.assign(e._sublayers[i],t),n=!1;break}for(var o=0;o<e.allSublayers.length;o++)if(String(e.allSublayers[o].name)===String(t.name)||String(e.allSublayers[o].id)===String(t.id)){Object.assign(e.allSublayers[o],t),n=!1;break}if(n)if(t instanceof r)e._sublayers.push(t);else if(t instanceof Object&&!(t instanceof Array))for(var a=0;a<e.allSublayers.length;a++)if(String(t.id)===String(e.allSublayers[a].id)||String(t.name)===String(e.allSublayers[a].name)){e._sublayers.push(new r(Object.assign(e.allSublayers[a].toJSON(),t)));break}},t.fireEvent=function(e,t,r){e._map&&e._map.fire(t,new n.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 n.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 i.LayerType.arcgisMapImage:t=a.ArcGISMapImageLayer.fromJSON(e);break;case i.LayerType.arcgisTile:t=a.ArcGISTileLayer.fromJSON(e);break;case i.LayerType.arcgisVectorTile:t=a.ArcGISVectorTileLayer.fromJSON(e);break;case i.LayerType.cesium3DTiles:t=a.Cesium3DTilesCacheLayer.fromJSON(e);break;case i.LayerType.echarts:t=a.EchartsLayer.fromJSON(e);break;case i.LayerType.feature:t=a.FeatureLayer.fromJSON(e);break;case i.LayerType.geojson:t=a.GeoJSONLayer.fromJSON(e);break;case i.LayerType.graphics:t=a.GraphicsLayer.fromJSON(e);break;case i.LayerType.group:t=a.GroupLayer.fromJSON(e);break;case i.LayerType.igsFeature:t=a.IGSFeatureLayer.fromJSON(e);break;case i.LayerType.igsMapImage:t=a.IGSMapImageLayer.fromJSON(e);break;case i.LayerType.igsVectorTile:t=a.IGSVectorTileLayer.fromJSON(e);break;case i.LayerType.igsTile:t=a.IGSTileLayer.fromJSON(e);break;case i.LayerType.m3dCache:t=a.M3DModelCacheLayer.fromJSON(e);break;case i.LayerType.mapv:t=a.MapVLayer.fromJSON(e);break;case i.LayerType.terrain:t=a.TerrainCacheLayer.fromJSON(e);break;case i.LayerType.webTileLayer:t=a.WebTileLayer.fromJSON(e);break;case i.LayerType.wfs:t=a.WFSLayer.fromJSON(e);break;case i.LayerType.wms:t=a.WMSLayer.fromJSON(e);break;case i.LayerType.wmts:t=a.WMTSLayer.fromJSON(e);break;case i.LayerType.unknown:default:t=a.UnknownLayer.fromJSON(e)}return t},t.getLayersCollection=function(e){return(e=e||[])instanceof n.Collection?e:(e=e.filter(function(e){return e}).map(function(e){return e instanceof a.Layer?e:a.Layer.fromJSON(e)}),new n.Collection(e))},t.toSublayerArr=function(e){if(e){var t=[];return e instanceof n.Collection?t=e.items:Array.isArray(e)&&(t=e),t=t.map(function(e){return e instanceof o.SubLayer?e.toJSON():e})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(40),o=r(2),a=r(0);var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e=(0,a.defaultValue)(e,{}),r.id=(0,a.defaultValue)(e.id,(0,a.getGUID)()),r.type="",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Evented),n(t,[{key:"toJSON",value:function(){return{type:this.type,id:this.id}}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}();s.fromJSON=function(e){return(0,i.createRender)(e)},t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(115));var a=function(){function e(t,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.red=(0,i.defaultValue)(t,0),this.green=(0,i.defaultValue)(r,0),this.blue=(0,i.defaultValue)(n,0),this.alpha=(0,i.defaultValue)(o,1)}return n(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}();a.fromRGBString=function(e){if(a.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 a(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 a(Number(r[0]),Number(r[1]),Number(r[2]))}},a.fromHexString=function(e){if(a.isHex(e)){var t=a.hexToRgb(e);if(t.indexOf("rgba")>-1||t.indexOf("RGBA")>-1)return a.fromRGBString(t);if(t.indexOf("rgb")>-1||t.indexOf("RGB")>-1)return a.fromRGBString(t)}},a.fromJSON=function(e){e=(0,i.defaultValue)(e,{});var t=(0,i.defaultValue)(e.red,255),r=(0,i.defaultValue)(e.green,255),n=(0,i.defaultValue)(e.blue,255),o=(0,i.defaultValue)(e.alpha,1);return new a(t,r,n,o)},a.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}},a.rgbToHex=function(e){if(/^(rgb|rgba|RGB|RGBA)/.test(e)){var t=void 0;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}},a.fromCssString=function(e){if(!e||"string"!=typeof e)return a.fromHexString("#000000");var t=e.toLowerCase(),r=o.default[t];return r?a.fromHexString(r):a.fromHexString("#000000")},a.fromColor=function(e){return"string"==typeof e?a.isHex(e)?a.fromHexString(e):a.isRGB(e)?a.fromRGBString(e):a.fromCssString(e):e instanceof a?e:Array.isArray(e)?3===e.length?new a(e[0],e[1],e[2]):4===e.length?new a(e[0],e[1],e[2],e[3]):(i.Log.info("非法颜色值数组!"),new a):e instanceof Object?a.fromJSON(e):new a},a.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)},a.isRGB=function(e){return/^(rgb|rgba|RGB|RGBA)/.test(e)},t.default=a},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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(44)),o=r(2),a=r(0),s=r(1),u=r(10);var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e=(0,a.defaultValue)(e,{}),r.id=(0,a.defaultValue)(e.id,(0,a.getGUID)()),r.color=o.Color.fromColor((0,a.defaultValue)(e.color,new o.Color(255,255,255,.25))),r.type=s.SymbolType.default,r.extensionOptions=(0,a.defaultValue)(e.extensionOptions,{}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"toJSON",value:function(){return{color:o.Color.fromColor(this.color).toJSON(),type:this.type,extensionOptions:(0,a.cloneObject)(this.extensionOptions),id:this.id}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return(0,u.createSymbol)(e)}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r(0),a=r(129),s=function(e){return e&&e.__esModule?e:{default:e}}(r(85));var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,o.defaultValue)(t,{});var r=this._parseSpatialReferenceOptions(t),n=r.wkid,i=r.wkt;this.wkid=n,this.wkt=i,this.unit=t.unit}return i(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":n(e))?((0,o.defined)(e.wkid)&&(t=parseInt(e.wkid)),e.wkt&&(r=e.wkt,t=void 0)):o.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===a.ProjUnitWkidMap[this.wkid]||/^GEOGCS/.test(this.wkt)||/^[+]proj=longlat/.test(this.wkt))||(this.wkid===s.default.bd09ll||this.wkid===s.default.gcj02ll)}},{key:"isWebMercator",get:function(){return[102113,102100,900913,3857].indexOf(this.wkid)>-1||(this.wkid===s.default.bd09mc||this.wkid===s.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,o.defaultValue)(t,{}))}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=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(15)),o=p(r(12)),a=r(0),s=p(r(16)),u=r(1),l=p(r(45)),c=p(r(32)),f=p(r(37)),h=p(r(47));function p(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,a.defaultValue)(e,{}),r.xmin=(0,a.defaultValue)(e.xmin,0),r.ymin=(0,a.defaultValue)(e.ymin,0),r.xmax=(0,a.defaultValue)(e.xmax,0),r.ymax=(0,a.defaultValue)(e.ymax,0),r.zmin=(0,a.defaultValue)(e.zmin,void 0),r.zmax=(0,a.defaultValue)(e.zmax,void 0),r.type=u.GeometryType.extent,r.hasZ=!(!(0,a.isNumber)(r.zmin)||!(0,a.isNumber)(r.zmax)),!(0,a.isNumber)(r.xmin)||!(0,a.isNumber)(r.ymin)||!(0,a.isNumber)(r.xmax)||!(0,a.isNumber)(r.ymax)||void 0!==r.zmin&&!(0,a.isNumber)(r.zmin)||void 0!==r.zmax&&!(0,a.isNumber)(r.zmax))throw new Error("坐标必须为数字");return r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"centerAt",value:function(e){if(!e)throw new Error("传入参数错误");var t=s.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 s.default||e instanceof t))return!1;var r=e;r.isGeographic||(r=l.default.project(e,new c.default({wkid:4326})));var n=this;n.isGeographic||(n=l.default.project(this,new c.default({wkid:4326})));var o=i.polygon([[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]),a=void 0;return a=r instanceof s.default?i.point(r._cloneCoordinates()):i.polygon([[[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin]]]),i.booleanContains(o,a)}},{key:"intersection",value:function(e){e||a.Log.error("传入参数错误!"),e instanceof t||a.Log.error("extent不是Extent几何!"),this.spatialReference.equals(e.spatialReference)||a.Log.error("不是同一个坐标系!");var r=e;r.isGeographic||(r=l.default.project(e,new c.default({wkid:4326})));var n=this;n.isGeographic||(n=l.default.project(this,new c.default({wkid:4326})));var o=i.polygon([[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]),s=i.polygon([[[r.xmin,r.ymin],[r.xmin,r.ymax],[r.xmax,r.ymax],[r.xmax,r.ymin],[r.xmin,r.ymin]]]),u=null,f=i.intersect(o,s);if(f&&f.geometry){var h=void 0;"Polygon"===f.geometry.type?h=i.bbox(i.polygon(f.geometry.coordinates)):"MultiPolygon"===f.geometry.type&&(h=i.bbox(i.multiPolygon(f.geometry.coordinates))),h&&(u=new t({xmin:h[0],ymin:h[1],xmax:h[2],ymax:h[3]}),this.spatialReference.isGeographic||(u=l.default.project(u,c.default.fromJSON(this.spatialReference))))}return u}},{key:"intersects",value:function(e){return f.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,a.isNumber)(e)||!(0,a.isNumber)(t)||this.hasZ&&!(0,a.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=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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?u.IGSGeometryType.extent3D:u.IGSGeometryType.extent}},{key:"normalize",value:function(){var e=new s.default({coordinates:[this.xmin,this.ymin]}),r=new s.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 h.default.fromExtent(this)}},{key:"toGeoJSON",value:function(){return this.toPolygon().toGeoJSON()}}],[{key:"fromJSON",value:function(e){return new t(e=(0,a.defaultValue)(e,{}))}}]),t}();Object.defineProperties(d.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 s.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 s.default({coordinates:[(this.xmax-this.xmin)/2+this.xmin,(this.ymax-this.ymin)/2+this.ymin],spatialReference:this.spatialReference})}}}),t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(3),a=c(r(20)),s=c(r(19)),u=c(r(18)),l=r(0);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._initEvent(),r.type="sketchPolygonDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r.vertexNum=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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=i.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,n=null,a=[],u=[];this.vertexNum=0;var c=null;this.cursorStyle=this.view.cursor,(0,l.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var f=this._getInteractiveDom(),h=this.extensionOptions&&this.extensionOptions.vertexNumber?this.extensionOptions.vertexNumber:null;this._setInitSnap(),this._fireStartDrawEvent();var p=function r(a){if(a&&a.x&&a.y){e._stopInitSnap(),clearTimeout(null);var f={x:a.x,y:a.y};f,e._editMode=i.SketchEditMode.DRAWING;var p=null;p=e._snapPoint?e._snapPoint:e.view.toMap({x:f.x,y:f.y});var d=e.vertexNum+1;if(1===d)u=[p.coordinates],(n=e._getFeature()).geometry.coordinates=[[u[0],u[0],u[0],u[0]]];else if(2===d){var y=n.geometry.coordinates[0][0];if(y&&y[0]===p.coordinates[0]&&y[1]===p.coordinates[1])return l.Log.info("相邻两顶点重复!");u=[n.geometry.coordinates[0][0],n.geometry.coordinates[0][1]]}else{var g=(u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-2))[u.length-1];if(g&&g[0]===p.coordinates[0]&&g[1]===p.coordinates[1])return l.Log.info("相邻两顶点重复!");if(u.push(p.coordinates),e._sketchEditor.isSimple){var v=new o.Polygon({coordinates:[u.concat([u[0]])],spatialReference:e._spatialReference,extensionOptions:{arcType:e.arcType}});if(!o.GeometryEngine.isSimple(v))return e._fireUnsimpleDraw(),l.Log.info("该坐标构成的几何不符合拓扑规范!")}}if(e.vertexNum=d,h&&d>=h)e.view.off(i.ViewEventType.immediateClick,r);else{e.sketchStage.entityGraphic=n;var m=new s.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});m.addFeature(p,void 0,void 0,e.sketchInnerLayer),e._drawTools.push(m);var _=m.sketchStage.entityGraphic;e.sketchStage.vertexGraphics.push(_),n&&(t=!0),c="click",e.fire("drawn-vertex",{geometry:m.sketchStage.entityGraphic.geometry,feature:m.sketchStage.entityGraphic},self),e._fireDrawVertexEvent(n),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode)}}},d=!0,y=function(i){if(i&&i.x&&i.y&&t&&!r){clearTimeout(null),r=!0,n=e.sketchStage.entityGraphic,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var o={x:i.x,y:i.y};a[a.length-1]=o;var s=e.view.toMap({x:o.x,y:o.y}),l=h&&e.vertexNum===h?e.vertexNum-1:e.vertexNum;1===l?u=[n.geometry.coordinates[0][0]]:2===l?(n.geometry.coordinates[0][2]=s.coordinates,u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-2)):u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-2),1===e.vertexNum?e._snapPoint=e.getSnapGraphics(s,u):e.vertexNum>1&&(e._snapPoint=e.getSnapGraphics(s,u)),e._snapPoint&&(s=e._snapPoint),e._currentMovePoint=s,1===l?(n.geometry.coordinates[0][1]=s.coordinates,n.geometry.coordinates[0][2]=s.coordinates):2===l?n.geometry.coordinates[0][2]=s.coordinates:"click"===c?n.geometry.coordinates[0].splice(n.geometry.coordinates[0].length-1,0,s.coordinates):"move"===c&&n.geometry.coordinates[0].splice(n.geometry.coordinates[0].length-2,1,s.coordinates),e.sketchStage.entityGraphic=n,n.geometry.coordinates=[JSON.parse(JSON.stringify(n.geometry.coordinates[0]))],d&&(e._addFeatureToLayer(n,e.layer),d=!1),r=!1,c="move";var p=e._getInteractiveDom();f=f.concat(p),e._removeInteractiveStyle(p),e._fireChangeCursorEvent(n)}},g=function(){if(clearTimeout(null),clearTimeout(null),!t)return n=null,u=[],void(a=[]);if((n=e.sketchStage.entityGraphic)&&e._sketchEditor.isSimple&&!o.GeometryEngine.isSimple(n.geometry))return e._fireUnsimpleDraw(),l.Log.info("该坐标构成的几何不符合拓扑规范!");if(e.vertexNum<3&&e.sketchStage.entityGraphic)return l.Log.info("区几何顶点少于三个,不符合规范!");u=[],a=[],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=i.SketchEditMode.NONE,c="doubleClick",e.view.cursor=e.cursorStyle,e._addInteractiveStyle(f),e.fire("drawn",{geometry:n.geometry,feature:n},self),e._fireStopDrawEvent(n),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.vertexNum=0,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(p,y,g),this.view.on(i.ViewEventType.immediateClick,p),this.view.on(i.ViewEventType.pointerMove,y),this.view.on(i.ViewEventType.doubleClick,g)}},{key:"addFeature",value:function(e,t,r,n){var i=null;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 o=null;o=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var a=new i.Feature({geometry:e,symbol:o,elevationInfo:this.elevationInfo});r&&(a.attributes=r),this.sketchStage.entityGraphic=a,this._addFeatureToLayer(a,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[0,0],[0,0],[0,0]]);var t=new o.Polygon({coordinates:[e],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),r=this.sketchStyle.fillStyle.clone(),n=new i.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===i.SketchEditMode.NONE?this._editMode=i.SketchEditMode.EDITGRAGIC:this._editMode===i.SketchEditMode.EDITVERTEX&&(this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=i.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===i.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,a=new t({view:this.view,layer:this.layer,sketchStyle:new u.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(a),a.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=[a.sketchStage.entityGraphic];var l=[];if(l=[{point:new o.Point({coordinates:[n.xmax,n.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new o.Point({coordinates:[n.xmax,n.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new o.Point({coordinates:[n.xmin,n.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new o.Point({coordinates:[n.xmin,n.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var c=[{point:new o.Point({coordinates:this._getCenterCoordinate([n.xmax,n.ymax],[n.xmax,n.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([n.xmax,n.ymin],[n.xmin,n.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([n.xmin,n.ymin],[n.xmin,n.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([n.xmin,n.ymax],[n.xmax,n.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];l=l.concat(c)}var f=[],h=[];l.forEach(function(e){var t=new s.default({view:r.view,layer:r.layer,sketchStyle:new u.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),f.push(t),h.push(t.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=h,this._otherDrawTools?this._otherDrawTools.push(a):this._otherDrawTools=[a],this._otherDrawTools=this._otherDrawTools.concat(f),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(i.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=i.SketchEditMode.NONE,r.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),setTimeout(function(){r.view.on(i.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,a){if(a<e.geometry.coordinates[0].length-1){var l=new s.default({view:t.view,layer:t.layer,sketchStyle:new u.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),c=new o.Point({coordinates:i,spatialReference:t._spatialReference});t._drawTools.push(l),l.addFeature(c,void 0,{vertexIndex:a},t.sketchInnerLayer),r.push(l),t.sketchStage.vertexGraphics.push(l.sketchStage.entityGraphic)}if(a>0){var f=new s.default({view:t.view,layer:t.layer,sketchStyle:new u.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(f);var h,p=e.geometry.coordinates[0][a-1],d=t._getCenterCoordinate(i,p);h=new o.Point({coordinates:d,spatialReference:t._spatialReference}),t._drawTools.push(f),f.addFeature(h,void 0,{vertexIndex:a-1,type:"midVertex"},t.sketchInnerLayer),t.sketchStage.midVertexGraphics.push(f.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 a=null;a=t.mapPoint;var s=!0,u=setTimeout(function(){s=!1,r._parent&&r._fireStartPanEvent(r._parent.sketchStage.entityGraphic,r._parent)},200);this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._parent._mapClickEvent);var l=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==i.SketchEditMode.EDITGRAGIC&&!s){clearTimeout(null),n=!0;var u={x:t.x,y:t.y},l=r.view.toMap({x:u.x,y:u.y}),c=l.coordinates[0]-a.coordinates[0],f=l.coordinates[1]-a.coordinates[1];if(0!==c||0!==f){var h=[];e.geometry.coordinates[0].forEach(function(e){h.push(r.getPanCoordinates(e,c,f))});var p=new o.Polygon({coordinates:[h],spatialReference:r._spatialReference,extensionOptions:{arcType:r.arcType}});a=l,r._dispatchEvent("pan",{deltaPosition:{x:c,y:f},extent:p.extent},r),r.updateFeature(p,e),n=!1,r._parent&&r._firePanningEvent(r._parent.sketchStage.entityGraphic,r._parent)}else n=!1}},c=function e(){if(!r._editMode!==i.SketchEditMode.EDITGRAGIC&&r._startPan){if(s&&r._parent&&r._parent._editMode===i.SketchEditMode.EDITGRAGIC&&"sketchPointDrawTool"!==r._parent.type&&r._parent.selectFeatureVertex)return r._parent._editMode=i.SketchEditMode.EDITVERTEX,clearTimeout(u),r._parent.selectFeatureVertex(r._parent.sketchStage.entityGraphic),r._parent&&r._parent._mapClickEvent&&setTimeout(function(){r.view.on(i.ViewEventType.immediateClick,r._parent._mapClickEvent)},0),r._startPan=!1,r.view.off(i.ViewEventType.pointerMove,l),void r.view.off(i.ViewEventType.pointerUp,e);r._editMode=i.SketchEditMode.NONE,r._startPan=!1,r.view.off(i.ViewEventType.pointerMove,l),r.view.off(i.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(i.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(l),this._hitTestEventHandlers.push(c),this.view.on(i.ViewEventType.pointerUp,c),this.view.on(i.ViewEventType.pointerMove,l)}},{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 o.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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.Polygon({coordinates:[n],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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.Polygon({coordinates:[n],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=null,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 o.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],n=JSON.parse(JSON.stringify(r));n[e.vertexIndex]=e.movePoint.coordinates,n.length-1===e.vertexIndex?n[0]=e.movePoint.coordinates:0===e.vertexIndex&&(n[t.geometry.coordinates[0].length-1]=e.movePoint.coordinates);var i=new o.Polygon({coordinates:[n],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!o.GeometryEngine.isSimple(i))return this._fireUnsimpleUpdate(),l.Log.info("该坐标构成的几何不符合拓扑规范!");if(t.geometry=i,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,c=this.sketchStage.midVertexGraphics[a],f=this.sketchStage.midVertexGraphics[s],h=this.sketchStage.vertexGraphics[a],p=n[s],d=n[a],y=n[u];c.geometry.coordinates=this._getCenterCoordinate(d,y),f.geometry.coordinates=this._getCenterCoordinate(d,p),h.geometry.coordinates=d}}},{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 o.Polygon({coordinates:[this.sketchStage.entityGraphic.geometry.coordinates[0]],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})),"moveMidVertex"===e.action){var r=JSON.parse(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates[0]));r[e.vertexIndex+1]=e.movePoint.coordinates;var n=new o.Polygon({coordinates:[r],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(n))return this._fireUnsimpleUpdate(),l.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.currentVertexIndex=e.vertexIndex,this.sketchStage.entityGraphic.geometry=n,this.sketchStage.midVertexGraphics[e.vertexIndex].geometry.coordinates=e.movePoint.coordinates}if("addVertex"===e.action){var i=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),a=new s.default({view:this.view,layer:this.layer,sketchStyle:new u.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 c,f=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex];this._getHight&&0;var h=this._getCenterCoordinate(f,e.point.coordinates);c=new o.Point({coordinates:h,spatialReference:this._spatialReference});var p=new s.default({view:this.view,layer:this.layer,sketchStyle:new u.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(p),p.addFeature(c,void 0,{type:"midVertex"},this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,p.sketchStage.entityGraphic);var d,y=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+2];this._getHight&&0;var g=this._getCenterCoordinate(y,e.point.coordinates);d=new o.Point({coordinates:g,spatialReference:this._spatialReference});var v=new s.default({view:this.view,layer:this.layer,sketchStyle:new u.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===i&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t.sketchInnerLayer)}),this._otherDrawTools.push(a),this._otherDrawTools.push(p),this._otherDrawTools.push(v)}}},{key:"addMidVertex",value:function(e,t){var r=new s.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){if((n=JSON.parse(JSON.stringify(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),r=new o.Polygon({coordinates:[n],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),l.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var i=void 0,a=void 0,c=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[c.xmax,c.ymax],[c.xmax,c.ymin],[c.xmin,c.ymin],[c.xmin,c.ymax],[c.xmax,c.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var f=[[c.xmax,c.ymax],[c.xmax,c.ymin],[c.xmin,c.ymin],[c.xmin,c.ymax],this._getCenterCoordinate([c.xmax,c.ymax],[c.xmin,c.ymax]),this._getCenterCoordinate([c.xmax,c.ymin],[c.xmin,c.ymin]),this._getCenterCoordinate([c.xmax,c.ymax],[c.xmax,c.ymin]),this._getCenterCoordinate([c.xmin,c.ymax],[c.xmin,c.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=f[t]})}if(this.sketchStage.vertexGraphics.length>0&&(i=new s.default({view:this.view,layer:this.layer,sketchStyle:new u.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(i),i.addFeatureByGeometry(e,void 0,void 0,this.sketchInnerLayer),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 h=-1,p=-1,d=null,y=null;0===t?(p=0,h=this.sketchStage.midVertexGraphics.length-1,d=this.sketchStage.entityGraphic.geometry.coordinates[0][this.sketchStage.entityGraphic.geometry.coordinates[0].length-2],y=this.sketchStage.entityGraphic.geometry.coordinates[0][1]):(h=t-1,p=t+1,d=this.sketchStage.entityGraphic.geometry.coordinates[0][h],y=this.sketchStage.entityGraphic.geometry.coordinates[0][p]);var g=new o.Point({coordinates:this._getCenterCoordinate(d,e.coordinates),spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[h].geometry.coordinates=g.coordinates;var v=new o.Point({coordinates:this._getCenterCoordinate(y,e.coordinates),spatialReference:this._spatialReference});a=new s.default({view:this.view,layer:this.layer,sketchStyle:new u.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}})}i&&this._otherDrawTools.push(i),a&&this._otherDrawTools.push(a),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireAddVertexEventByFun(i.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 n=this.sketchStage.entityGraphic,i=JSON.parse(JSON.stringify(n.geometry.coordinates[0]));if(this.currentVertexIndex=t,i[t]=e.coordinates,i.length-1===t?i[0]=e.coordinates:0===t&&(i[i.length-1]=e.coordinates),r=new o.Polygon({coordinates:[i],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),l.Log.info("该坐标构成的几何不符合拓扑规范!");n.geometry.coordinates=[i];var a=n.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,c=0===u?u-1+this.sketchStage.midVertexGraphics.length:u-1,f=u===this.sketchStage.midVertexGraphics.length-1?0:u+1,h=this.sketchStage.midVertexGraphics[u],p=this.sketchStage.midVertexGraphics[c],d=i[c],y=i[u],g=i[f];h.geometry.coordinates=this._getCenterCoordinate(g,y),h.geometry=new o.Point({coordinates:h.geometry.coordinates,spatialReference:this._spatialReference}),p.geometry.coordinates=this._getCenterCoordinate(d,y),p.geometry=new o.Point({coordinates:p.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 n=JSON.parse(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates[0]));if(n.splice(e,1),0===e&&n.splice(n.length-1,1,n[0]),t=new o.Polygon({coordinates:[n],spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(t))return this._fireUnsimpleUpdateByFun(),l.Log.info("该坐标构成的几何不符合拓扑规范!");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 a=[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],this._getCenterCoordinate([i.xmax,i.ymax],[i.xmin,i.ymax]),this._getCenterCoordinate([i.xmax,i.ymin],[i.xmin,i.ymin]),this._getCenterCoordinate([i.xmax,i.ymax],[i.xmax,i.ymin]),this._getCenterCoordinate([i.xmin,i.ymax],[i.xmin,i.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=[],c=-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],c=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],c=e-1),this.sketchStage.midVertexGraphics[c].geometry=new o.Point({coordinates:u,spatialReference:this._spatialReference});var f=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!==f)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireRemoveVertexByFun(this.sketchStage.entityGraphic,this._parent)}return t}}]),t}();t.default=f},function(e,t,r){"use strict";r.r(t),t.default=function(e,t,r){var n=e*t;return r/Math.sqrt(1-n*n)}},function(e,t,r){"use strict";r.r(t),t.default=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!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(15)),i=r(0),o=r(1),a=m(r(12)),s=m(r(47)),u=m(r(130)),l=m(r(131)),c=m(r(45)),f=m(r(32)),h=m(r(62)),p=m(r(132)),d=m(r(16)),y=m(r(133)),g=m(r(33)),v=m(r(134));function m(e){return e&&e.__esModule?e:{default:e}}var _=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};_.difference=function(e,t){(0,i.isNull)(e)&&i.Log.error("inputGeometry不能为空!"),(0,i.isNull)(t)&&i.Log.error("subtractGeometry不能为空!"),e instanceof s.default||e instanceof l.default||e instanceof g.default||e instanceof y.default||i.Log.error("inputGeometry类型错误!"),t instanceof s.default||t instanceof l.default||t instanceof g.default||t instanceof y.default||i.Log.error("subtractGeometry类型错误!");var r=void 0;switch(e.type){case h.default.polygon:r=_._polygonDifferenceGeometry(n.polygon(e.coordinates),t);break;case h.default.extent:var o=new s.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});r=_._polygonDifferenceGeometry(n.polygon(o.coordinates),t);break;case h.default.circle:r=_._polygonDifferenceGeometry(n.polygon(e.toPolygon().coordinates),t);break;case h.default.multiPolygon:r=_._polygonDifferenceGeometry(n.multiPolygon(e.coordinates),t)}return(0,i.isNull)(r)||(r="Polygon"===r.geometry.type?new s.default({coordinates:r.geometry.coordinates,spatialReference:f.default.fromJSON(e.spatialReference)}):new l.default({coordinates:r.geometry.coordinates,spatialReference:f.default.fromJSON(e.spatialReference)})),r},_._polygonDifferenceGeometry=function(e,t){var r=e,i=void 0;switch(t.type){case h.default.polygon:i=n.polygon(t.coordinates);break;case h.default.multiPolygon:i=n.multiPolygon(t.coordinates);break;case h.default.circle:i=n.polygon(t.toPolygon().coordinates);break;case h.default.extent:var o=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});i=n.polygon(o.coordinates)}return n.difference(r,i)},_.buffer=function(e,t,r,n){r=(0,i.defaultValue)(r,o.LengthUnit.meter),n=(0,i.defaultValue)(n,!1),t=(0,i.defaultValue)(t,1e3),_._checkBufferOptions(e,t,r,n);var u=void 0;if(e instanceof Array)if(t instanceof Array){if(t.length<e.length){u=[];for(var l=t.length>0?t[t.length-1]:1e3,p=t.length;p<e.length;p++)u.push(l)}}else{u=[];for(var d=0;d<e.length;d++)u.push(t)}else u=t instanceof Array?t.length>0?t[0]:1e3:t;var y=e;if(e instanceof Array){y=[];for(var g=0;g<e.length;g++)y.push(c.default.projectGeometry(e[g],new f.default({wkid:4326})))}else 4326!==e.spatialReference.wkid&&(y=c.default.projectGeometry(e,new f.default({wkid:4326})));var v=void 0;if(e instanceof Array){if(e instanceof Array){if(v=[],t instanceof Array&&t.length<e.length)for(var m=t[t.length-1],b=t.length-1;b<e.length;b++)t.push(m);for(var S=0;S<y.length;S++){var x=0;x=t instanceof Array?t[S]:t,v.push(_._polygonBuffer(y[S],x,r))}n&&(v=_.union(v))}}else switch(e.type){case h.default.point:case h.default.multiPoint:case h.default.lineString:case h.default.multiLineString:case h.default.polygon:case h.default.multiPolygon:v=_._polygonBuffer(y,u,r);break;case h.default.extent:var w=new s.default({coordinates:[[[y.xmin,y.ymin],[y.xmax,y.ymin],[y.xmax,y.ymax],[y.xmin,y.ymax],[y.xmin,y.ymin]]]});v=_._polygonBuffer(w,u,r);break;case h.default.circle:(v=a.default.fromJSON(e)).radius+=u;break;default:i.Log.error("geometry是不支持的几何类型!")}if(e instanceof Array){if(!e[0].spatialReference.isGeographic)if(v instanceof Array)for(var O=0;O<v.length;O++)v[O].type!==h.default.circle&&(v[O]=c.default.projectGeometry(v[O],f.default.fromJSON(e[0].spatialReference)));else v.type!==h.default.circle&&(v=c.default.projectGeometry(v,f.default.fromJSON(e[0].spatialReference)))}else e.spatialReference.isGeographic||e.type===h.default.circle||(v=c.default.projectGeometry(v,f.default.fromJSON(e.spatialReference)));return v},_._checkBufferOptions=function(e,t,r,n){if((0,i.isNull)(e)&&i.Log.error("geometry不能为空!"),(0,i.isNull)(t)&&i.Log.error("distance不能为空!"),(0,i.isNull)(e)&&i.Log.error("unit不能为空!"),(0,i.isNull)(e)&&i.Log.error("unionResults不能为空!"),e instanceof Array){for(var u=0;u<e.length;u++)if(!(e[u]instanceof s.default||e[u]instanceof l.default)){i.Log.error("geometry的子元素类型不为Polygon或者MultiPolygon!");break}0===e.length&&i.Log.error("geometry的长度为0!")}else e instanceof a.default||i.Log.error("geometry不是基础几何类型!");if(t instanceof Array){e instanceof Array||i.Log.error("distance的类型为数组,但是geometry的类型不是数组!");for(var c=0;c<t.length;c++)if("number"!=typeof t[c]){i.Log.error("distance的子元素不是数字类型!");break}}else"number"!=typeof t&&i.Log.error("distance的不是数字类型!");if("string"==typeof r)if(r){var f=!1;Object.keys(o.LengthUnit).forEach(function(e){f||o.LengthUnit[e]!==r||(f=!0)}),f||i.Log.error("unit是不支持的单位类型!")}else i.Log.error("unit的值不能为空!");else i.Log.error("unit类型不是字符串!");"boolean"!=typeof n&&i.Log.error("unionResults类型不是布尔值类型!")},_._polygonBuffer=function(e,t,r){var i=void 0;switch(e.type){case h.default.point:i=n.point(e.coordinates);break;case h.default.multiPoint:i=n.multiPoint(e.coordinates);break;case h.default.lineString:i=n.lineString(e.coordinates);break;case h.default.multiLineString:i=n.multiLineString(e.coordinates);break;case h.default.polygon:i=n.polygon(e.coordinates);break;case h.default.multiPolygon:i=n.multiPolygon(e.coordinates)}var o=n.buffer(i,t,{units:r});return a.default.fromJSON({type:o.geometry.type,coordinates:o.geometry.coordinates})},_._multiPolygonBuffer=function(e,t,r){var i=n.multiPolygon(e.coordinates),o=n.buffer(i,t,{units:r});return"Polygon"===o.geometry.type?new s.default({coordinates:o.geometry.coordinates}):new l.default({coordinates:o.geometry.coordinates})},_._buffer=function(e,t,r){if(e.hasOwnProperty("coordinates")||i.Log.error("geometry缺少coordinates属性!"),e instanceof s.default){var o=n.polygon(e.coordinates);return n.buffer(o,t,{units:r})}},_.union=function(e){if((e=(0,i.defaultValue)(e,[]))instanceof Array||i.Log.error("geometries必须为数组类型!"),0===e.length)return[];var t=!0,r=!0,o=e[0].type;if(e.length>1){switch(e[0].type){case h.default.polygon:case h.default.multiPolygon:for(var a=1;a<e.length;a++)if(e[a].type!==h.default.polygon&&e[a].type!==h.default.multiPolygon){t=!1;break}break;case h.default.point:case h.default.multiPoint:for(var c=1;c<e.length;c++)if(e[c].type!==h.default.point&&e[c].type!==h.default.multiPoint){t=!1;break}break;case h.default.circle:for(var y=1;y<e.length;y++)if(e[y].type!==h.default.circle){t=!1;break}break;case h.default.extent:for(var g=1;g<e.length;g++)if(e[g].type!==h.default.extent){t=!1;break}break;case h.default.lineString:case h.default.multiLineString:for(var m=1;m<e.length;m++)if(e[m].type!==h.default.lineString&&e[m].type!==h.default.multiLineString){t=!1;break}break;default:i.Log.error("geometries的子元素中有求并方法不支持的数据类型!")}t||i.Log.error("几何数组的类型不同!");for(var b=e[0].spatialReference,S=1;S<e.length;S++)b.equals(e[S].spatialReference)||(r=!1);r||i.Log.error("几何数组的坐标系不同!");var x=void 0,w=[];switch(o){case h.default.point:case h.default.multiPoint:for(var O=[],E=0;E<e.length;E++)e[E]instanceof d.default?O.push(e[E].coordinates):e[E]instanceof p.default&&(O=O.concat(e[E].coordinates));if(1===O.length)x=new d.default({coordinates:O[0],spatialReference:f.default.fromJSON(e[0].spatialReference)});else{var P=n.multiPoint(O);P=n.cleanCoords(P),x=new p.default({coordinates:P.geometry.coordinates,spatialReference:f.default.fromJSON(e[0].spatialReference)})}break;case h.default.polygon:case h.default.multiPolygon:var k=void 0,T=e[0].type===h.default.polygon?n.polygon(e[0].coordinates):n.multiPolygon(e[0].coordinates),I=e[1].type===h.default.polygon?n.polygon(e[1].coordinates):n.multiPolygon(e[1].coordinates);k=n.union(T,I);for(var M=2;M<e.length;M++){var L=e[M].type===h.default.polygon?n.polygon(e[M].coordinates):n.multiPolygon(e[M].coordinates);k=n.union(k.geometry,L)}x=k.geometry.type===h.default.polygon?new s.default({coordinates:k.geometry.coordinates,spatialReference:f.default.fromJSON(e[0].spatialReference)}):new l.default({coordinates:k.geometry.coordinates,spatialReference:f.default.fromJSON(e[0].spatialReference)});break;case h.default.lineString:case h.default.multiLineString:for(var C=[],N=0;N<e.length;N++)e[N]instanceof u.default?C.push(e[N].coordinates):C=C.concat(e[N].coordinates);x=1===C.length?new u.default({coordinates:C[0],spatialReference:f.default.fromJSON(e[0].spatialReference)}):new v.default({coordinates:C,spatialReference:f.default.fromJSON(e[0].spatialReference)});break;case h.default.extent:w=[];for(var R=0;R<e.length;R++){var j=new s.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:f.default.fromJSON(e[0].spatialReference)});w.push(j)}x=_.union(w);break;case h.default.circle:w=[];for(var G=0;G<e.length;G++)w.push(e[G].toPolygon());x=_.union(w)}return x}return 1===e.length?e[0]:void 0},_.intersects=function(e,t){_._checkTwoGeometry(e,t);var r=_._geometryToTurf(e),i=_._geometryToTurf(t);return!n.booleanDisjoint(r,i)},_.geodesicLength=function(e,t){(0,i.isNull)(e)&&i.Log.error("geometry对象不能为空!"),e instanceof u.default||i.Log.error("geometry类型不正确!"),"string"!=typeof(t=(0,i.defaultValue)(t,o.LengthUnit.meter))&&i.Log.error("unit类型不正确!");var r=0;switch(e.type){case h.default.lineString:var a=n.lineString(e.coordinates);r=1e3*n.length(a,{units:"kilometers"})}if(!e.spatialReference.isGeographic)switch(t){case o.LengthUnit.kilometer:r/=1e3;break;case o.LengthUnit.mile:r*=.000621371192237}return r},_.geodesicArea=function(e,t){(0,i.isNull)(e)&&i.Log.error("geometry对象不能为空!"),e instanceof s.default||e instanceof l.default||e instanceof y.default||e instanceof g.default||i.Log.error("polygon对象不是Polyon或MultiPolygon或Circle或Extent类型!"),t=(0,i.defaultValue)(t,o.LinearUnits.meters);var r=0;switch(e instanceof s.default||e instanceof l.default?r=_._geodesicPolygonArea(e):(e instanceof y.default||e instanceof g.default)&&(r=_._geodesicPolygonArea(e.toPolygon())),t){case o.AreaUnits.squareKilometers:r*=1e-6;break;case o.AreaUnits.squareMiles:r*=6214e-7*6214e-7;break;case o.AreaUnits.squareYards:r*=1.1959900499368898;break;case o.AreaUnits.squareFeet:r*=10.763910416689228;break;case o.AreaUnits.acres:r*=2471e-7;break;case o.AreaUnits.ares:r*=.01;break;case o.AreaUnits.hectares:r*=1e-4;break;case o.AreaUnits.squareMeters:}return r},_._geodesicPolygonArea=function(e){return n.area(n.polygon(e.coordinates))},_._geometryToTurf=function(e){var t=void 0;switch(e.type!==h.default.extent&&e.type!==h.default.circle&&(t=JSON.parse(JSON.stringify(e.coordinates))),e.type){case h.default.point:return n.point(t);case h.default.multiPoint:return n.multiPoint(t);case h.default.lineString:return n.lineString(t);case h.default.multiLineString:return n.multiLineString(t);case h.default.polygon:return n.polygon(t);case h.default.multiPolygon:return n.multiPolygon(t);case h.default.extent:return n.polygon([[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]);case h.default.circle:return n.polygon(e.toPolygon().coordinates);default:i.Log.error("geometry为不支持的几何类型!")}},_._lineContainPoint=function(e,t){var r=n.point(t.coordinates),i=n.lineString(e.coordinates),o=n.booleanContains(i,r);if(!o)for(var a=0;a<e.coordinates.length;a++){var s=new d.default({coordinates:e.coordinates[a],spatialReference:f.default.fromJSON(e.spatialReference)});if(_.equals(t,s)){o=!0;break}}return o},_._multiLineContainPoint=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new u.default({coordinates:e.coordinates[n],spatialReference:f.default.fromJSON(e.spatialReference)});if(_._lineContainPoint(i,t)){r=!0;break}}return r},_._polygonContainPoint=function(e,t){var r=n.point(t.coordinates),i=n.polygon(e.coordinates);return n.booleanContains(i,r)},_._polygonContainLine=function(e,t){var r=n.polygon(e.coordinates),i=n.lineString(t.coordinates);return n.booleanContains(r,i)},_._multiPointContainsPoint=function(e,t){var r=n.point(t.coordinates),i=n.multiPoint(e.coordinates);return n.booleanContains(i,r)},_._lineContainMultiPoint=function(e,t){for(var r=!0,n=0;n<t.coordinates.length;n++){var i=new d.default({coordinates:t.coordinates[n]});if(!(r=_._lineContainPoint(e,i)))break}return r},_._polygonContainMultiPoint=function(e,t){for(var r=!0,n=0;n<t.coordinates.length;n++){var i=new d.default({coordinates:t.coordinates[n]});if(!(r=_._polygonContainPoint(e,i)))break}return r},_._checkTwoGeometry=function(e,t){(0,i.isNull)(e)&&i.Log.error("geometry1对象为空!"),(0,i.isNull)(t)&&i.Log.error("geometry2对象为空!"),e instanceof a.default||i.Log.error("geometry1对象未继承于Geometry对象!"),t instanceof a.default||i.Log.error("geometry2对象未继承于Geometry对象!"),e.spatialReference.equals(t.spatialReference)||i.Log.error("geometry1和geometry2的坐标系不相同!")},_.intersect=function(e,t){(0,i.isNull)(e)&&i.Log.error("geometry1不能为空!"),(0,i.isNull)(t)&&i.Log.error("geometry2不能为空!"),e instanceof a.default||e instanceof Array||i.Log.error("geometry1必须为几何对象或者数组对象!"),t instanceof a.default||i.Log.error("geometry2必须为几何对象或者数组对象!");var r=void 0;if(e instanceof Array){r=[];for(var n=0;n<e.length;n++)r.push(_.intersect(e[n],t));return r}switch(e.type){case h.default.point:r=_._pointIntersectGeometry(e,t);break;case h.default.multiPoint:r=_._multiPointIntersectGeometry(e,t);break;case h.default.lineString:switch(t.type){case h.default.point:_.contains(e,t)&&(r=new d.default({coordinates:t.coordinates}));break;case h.default.multiPoint:r=_._lineIntersectMultiPoint(e,t);break;case h.default.polygon:r=_._lineIntersectPolygon(e,t);break;case h.default.multiPolygon:r=_._lineIntersectMultiPolygon(e,t);break;case h.default.lineString:case h.default.multiLineString:r=_._lineIntersectLine(e,t);break;case h.default.extent:r=_._lineIntersectExtent(e,t);break;case h.default.circle:r=_._lineIntersectPolygon(e,t.toPolygon())}break;case h.default.polygon:switch(t.type){case h.default.point:r=_._pointIntersectGeometry(t,e);break;case h.default.multiPoint:r=_._multiPointIntersectGeometry(t,e);break;case h.default.lineString:r=_._lineIntersectPolygon(t,e);break;case h.default.multiLineString:r=_._multiLineIntersectPolygon(t,e);break;case h.default.polygon:r=_._polygonIntersectPolygon(e,t);break;case h.default.multiPolygon:r=_._polygonIntersectMultiPolygon(e,t);break;case h.default.circle:r=_._polygonIntersectPolygon(e,t.toPolygon());break;case h.default.extent:r=_._polygonIntersectExtent(e,t)}break;case h.default.multiPolygon:switch(t.type){case h.default.point:r=_._pointIntersectGeometry(t,e);break;case h.default.multiPoint:r=_._multiPointIntersectGeometry(t,e);break;case h.default.lineString:r=_._lineIntersectMultiPolygon(t,e);break;case h.default.multiLineString:r=_._multiLineIntersectMultiPolygon(t,e);break;case h.default.polygon:r=_._polygonIntersectMultiPolygon(t,e);break;case h.default.multiPolygon:r=_._multiPolygonIntersectMultiPolygon(e,t);break;case h.default.extent:r=_._multiPolygonIntersectExtent(e,t);break;case h.default.circle:r=_._polygonIntersectMultiPolygon(t.toPolygon(),e)}break;case h.default.extent:switch(t.type){case h.default.point:r=_._pointIntersectGeometry(t,e);break;case h.default.multiPoint:r=_._multiPointIntersectGeometry(t,e);break;case h.default.lineString:r=_._lineIntersectExtent(t,e);break;case h.default.multiLineString:r=_._multiLineIntersectExtent(t,e);break;case h.default.polygon:r=_._polygonIntersectExtent(t,e);break;case h.default.multiPolygon:r=_._multiPolygonIntersectExtent(t,e);break;case h.default.extent:var o=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=_._polygonIntersectExtent(o,e);break;case h.default.circle:var l=new s.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});r=_._polygonIntersectPolygon(l,t.toPolygon())}break;case h.default.circle:var c=e.toPolygon();switch(t.type){case h.default.point:r=_._pointIntersectGeometry(t,c);break;case h.default.multiPoint:r=_._multiPointIntersectGeometry(t,c);break;case h.default.lineString:r=_._lineIntersectPolygon(t,c);break;case h.default.multiLineString:r=_._multiLineIntersectPolygon(t,c);break;case h.default.polygon:r=_._polygonIntersectPolygon(t,c);break;case h.default.multiPolygon:r=_._polygonIntersectMultiPolygon(c,t);break;case h.default.circle:r=_._polygonIntersectPolygon(t.toPolygon(),c);break;case h.default.extent:r=_._polygonIntersectExtent(c,t)}break;case h.default.multiLineString:switch(t.type){case h.default.point:r=_._pointIntersectGeometry(t,e);break;case h.default.multiPoint:r=_._multiPointIntersectGeometry(t,e);break;case h.default.lineString:r=_._lineIntersectLine(t,e);break;case h.default.multiLineString:for(var f=[],p=[],y=0;y<e.coordinates.length;y++){var g=new u.default({coordinates:e.coordinates[y]}),v=_._lineIntersectLine(g,t);v&&v.point&&f.push(v.point),v&&v.lineString&&p.push(v.lineString)}(r={point:void 0,lineString:void 0}).point=_.union(f),r.lineString=_.union(p);break;case h.default.polygon:r=_._multiLineIntersectPolygon(e,t);break;case h.default.multiPolygon:r=_._multiLineIntersectMultiPolygon(e,t)}}return r},_._lineIntersectLine=function(e,t){var r=void 0,i=void 0;r=e.type===h.default.lineString?n.lineString(e.coordinates):n.multiLineString(e.coordinates),i=t.type===h.default.lineString?n.lineString(t.coordinates):n.multiLineString(t.coordinates);var o=void 0,a=void 0;if(e.type===h.default.lineString)o=[e];else{o=[];for(var s=0;s<e.coordinates.length;s++)o.push(new u.default({coordinates:e.coordinates[s]}))}if(t.type===h.default.lineString)a=[t];else{a=[];for(var l=0;l<t.coordinates.length;l++)a.push(new u.default({coordinates:t.coordinates[l]}))}for(var c=[],f=0;f<o.length;f++)for(var y=0;y<a.length;y++){var g=n.lineString(o[f].coordinates),v=n.lineString(a[y].coordinates),m=n.lineOverlap(g,v);if(m.features.length>0)for(var b=0;b<m.features.length;b++)c.push(new u.default({coordinates:m.features[b].geometry.coordinates}))}var S=n.lineIntersect(r,i),x={point:void 0,lineString:void 0};1===c.length?x.lineString=new u.default({coordinates:c[0].coordinates}):c.length>1&&(x.lineString=_.union(c));for(var w=0;w<S.features.length;w++){var O=new d.default({coordinates:S.features[w].geometry.coordinates});x.lineString&&_.contains(x.lineString,O)&&S.features.splice(w,1)}if(1===S.features.length)x.point=new d.default({coordinates:S.features[0].geometry.coordinates});else if(S.features.length>1){for(var E=[],P=0;P<S.features.length;P++)E.push(S.features[P].geometry.coordinates);x.point=new p.default({coordinates:E})}return x},_._lineIntersectMultiPoint=function(e,t){for(var r=[],n=void 0,i=0;i<t.coordinates.length;i++){var o=new d.default({coordinates:t.coordinates[i]});_.contains(e,o)&&r.push(o.coordinates)}return 1===r.length?n=new d.default({coordinates:r[0]}):r.length>1&&(n=new p.default({coordinates:r})),n},_._lineIntersectPolygon=function(e,t){var r=n.lineString(e.coordinates),i=n.polygon(t.coordinates),o=n.lineIntersect(r,i);o.features=o.features.sort(function(e,t){return e.geometry.coordinates[0]-t.geometry.coordinates[0]});for(var a=[],s=0;s<e.coordinates.length-1;s++){var l=new u.default({coordinates:[e.coordinates[s],e.coordinates[s+1]]});l.coordinates=l.coordinates.sort(function(e,t){return e-t});for(var c=[],f=0;f<o.features.length;f++){var y=new d.default({coordinates:o.features[f].geometry.coordinates});_.contains(l,y)&&c.push(y)}var g=new d.default({coordinates:e.coordinates[s]});c[0]&&_.equals(g,c[0])||(c=[g].concat(c));var m=new d.default({coordinates:e.coordinates[s+1]});0!==c.length&&_.equals(m,c[c.length-1])||c.push(m);for(var b=0;b<c.length-1;b++){var S=new u.default({coordinates:[c[b].coordinates,c[b+1].coordinates]});_.contains(t,S)&&a.push(S)}}if(1===a.length)return a[0];if(a.length>1){for(var x=[],w=0;w<a.length;w++)x.push(a[w].coordinates);return new v.default({coordinates:x})}for(var O=[],E=0;E<o.features.length;E++)o.features[E].geometry.type===h.default.point&&O.push(o.features[E].geometry.coordinates);return 1===O.length?new d.default({coordinates:O[0]}):O.length>1?new p.default({coordinates:O}):void 0},_._multiLineIntersectPolygon=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new u.default({coordinates:e.coordinates[n]}),o=_._lineIntersectPolygon(i,t);o&&r.push(o)}if(1===r.length)return new u.default({coordinates:r[0].coordinates});if(r.length>1){for(var a=[],s=0;s<r.length;s++)r[s].type===h.default.lineString?a.push(r[s].coordinates):a=a.concat(r[s].coordinates);return new v.default({coordinates:a})}},_._multiLineIntersectMultiPolygon=function(e,t){for(var r=[],n=0;n<t.coordinates.length;n++){var i=new s.default({coordinates:t.coordinates[n]}),o=_._multiLineIntersectPolygon(e,i);o&&r.push(o)}return _.union(r)},_._lineIntersectExtent=function(e,t){var r=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return _._lineIntersectPolygon(e,r)},_._multiLineIntersectExtent=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new u.default({coordinates:e.coordinates[n]}),o=_._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 v.default({coordinates:a})}},_._lineIntersectMultiPolygon=function(e,t){for(var r=void 0,n=[],i=0;i<t.coordinates.length;i++){var o=new s.default({coordinates:t.coordinates[i]});n.push(_._lineIntersectPolygon(e,o))}for(var a=[],l=0;l<n.length;l++)n[l].type===h.default.lineString?a.push(n[l].coordinates):a=a.concat(n[l].coordinates);return 1===a.length?r=new u.default({coordinates:a}):a.length>1&&(r=new v.default({coordinates:a})),r},_._pointIntersectGeometry=function(e,t){if(_.contains(t,e))return new d.default({coordinates:e.coordinates})},_._multiPointIntersectGeometry=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new d.default({coordinates:e.coordinates[n]});_.contains(t,i)&&r.push(i.coordinates)}var o=void 0;return 1===r.length?o=new d.default({coordinates:r[0]}):r.length>1&&(o=new p.default({coordinates:r})),o},_._polygonIntersectPolygon=function(e,t){var r=n.polygon(e.coordinates),i=n.polygon(t.coordinates),o=n.intersect(r,i);if(o)return o.geometry.type===h.default.polygon?new s.default({coordinates:o.geometry.coordinates}):new l.default({coordinates:o.geometry.coordinates})},_._polygonIntersectMultiPolygon=function(e,t){for(var r=[],n=0;n<t.coordinates.length;n++){var i=new s.default({coordinates:t.coordinates[n]}),o=_._polygonIntersectPolygon(e,i);o&&r.push(o)}return _.union(r)},_._multiPolygonIntersectMultiPolygon=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new s.default({coordinates:e.coordinates[n]}),o=_._polygonIntersectMultiPolygon(i,t);o&&r.push(o)}return _.union(r)},_._polygonIntersectExtent=function(e,t){var r=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return _._polygonIntersectPolygon(e,r)},_._multiPolygonIntersectExtent=function(e,t){for(var r=[],n=0;n<e.coordinates.length;n++){var i=new s.default({coordinates:e.coordinates[n]}),o=_._polygonIntersectExtent(i,t);o&&r.push(o)}return _.union(r)},_.overlaps=function(e,t){return!!_.intersects(e,t)&&(!_.contains(e,t)&&!_.contains(t,e))},_.rotate=function(e,t,r){t=(0,i.defaultValue)(t,0),(0,i.isNull)(e)&&i.Log.error("geometry不能为空!"),(0,i.isNull)(t)&&i.Log.error("angle不能为空!"),e instanceof a.default||i.Log.error("geometry不是基础几何对象!"),"number"!=typeof t&&i.Log.error("angle不是数字!"),!r||r instanceof d.default||i.Log.error("rotationOrigin不是Point对象!"),r&&!e.spatialReference.equals(r.spatialReference)&&i.Log.error("rotationOrigin和geometry不是同一个坐标系!");var o=void 0,s=void 0;e.spatialReference.isGeographic?(o=e,s=r):(o=c.default.projectGeometry(e,new f.default({wkid:4326})),s=c.default.projectGeometry(r,new f.default({wkid:4326})));var u=_._geometryToTurf(o),l=void 0;s&&(l=[s.coordinates[0],s.coordinates[1]]);var h={pivot:l,mutate:!0},p=n.transformRotate(u,t,h);return p=_._turfFeatureToGeometry(p),e.spatialReference.isGeographic||(p=c.default.projectGeometry(p,f.default.fromJSON(e.spatialReference))),p},_._turfFeatureToGeometry=function(e){switch(e.geometry.type){case h.default.point:return new d.default({coordinates:e.geometry.coordinates});case h.default.multiPoint:return new p.default({coordinates:e.geometry.coordinates});case h.default.lineString:return new u.default({coordinates:e.geometry.coordinates});case h.default.multiLineString:return new v.default({coordinates:e.geometry.coordinates});case h.default.polygon:return new s.default({coordinates:e.geometry.coordinates});case h.default.multiPolygon:return new l.default({coordinates:e.geometry.coordinates})}},_.nearestCoordinate=function(e,t){(0,i.isNull)(e)&&i.Log.error("geometry不能为空!"),(0,i.isNull)(t)&&i.Log.error("inputPoint不能为空!");var r=e,o=t;if(o instanceof d.default||i.Log.error("inputPoint类型错误,需要输入Point!"),r instanceof d.default||r instanceof u.default||r instanceof s.default||r instanceof p.default||r instanceof v.default||r instanceof l.default||r instanceof g.default||r instanceof y.default||i.Log.error("geometry类型错误!"),r.spatialReference.equals(o.spatialReference)||i.Log.error("_geometryPro1、inputPoint坐标系不同!"),r=(0,i.defaultValue)(r,void 0),o=(0,i.defaultValue)(o,void 0),r.spatialReference.isGeographic||(r=c.default.projectGeometry(r,new f.default({wkid:4326})),o=c.default.projectGeometry(o,new f.default({wkid:4326}))),!(0,i.isNull)(r)&&!(0,i.isNull)(o)){var m=void 0,_=void 0,b=void 0,S=[],x=n.point(o.coordinates);switch(r.type){case h.default.multiPoint:for(var w=0;w<r.coordinates.length;w++)S.push(n.point(r.coordinates[w]));var O=n.featureCollection(S);m=n.nearestPoint(x,O);break;case h.default.lineString:_=n.lineString(r.coordinates),m=n.nearestPointOnLine(_,x,{units:"kilometers"});break;case h.default.multiLineString:_=n.multiLineString(r.coordinates),m=n.nearestPointOnLine(_,x,{units:"kilometers"});break;case h.default.polygon:for(var E=0;E<r.coordinates[0].length;E++)S.push(r.coordinates[0][E]);_=n.lineString(S),m=n.nearestPointOnLine(_,x,{units:"kilometers"});break;case h.default.multiPolygon:for(var P=[],k=0;k<r.coordinates.length;k++){S=[];for(var T=0;T<r.coordinates[k][0].length;T++)S.push(r.coordinates[k][0][T]);P.push(S),_=n.multiLineString(P)}m=n.nearestPointOnLine(_,x,{units:"kilometers"});break;case h.default.circle:b=n.polygon(r.toPolygon().coordinates);for(var I=0;I<b.geometry.coordinates[0].length;I++)S.push(b.geometry.coordinates[0][I]);_=n.lineString(S),m=n.nearestPointOnLine(_,x,{units:"kilometers"});break;case h.default.extent:b=new s.default({coordinates:[[[r.xmin,r.ymin],[r.xmax,r.ymin],[r.xmax,r.ymax],[r.xmin,r.ymax],[r.xmin,r.ymin]]]});for(var M=0;M<b.coordinates[0].length;M++)S.push(b.coordinates[0][M]);_=n.lineString(S),m=n.nearestPointOnLine(_,x,{units:"kilometers"})}return m=a.default.fromJSON(m.geometry),t.spatialReference.isGeographic||(m=c.default.projectGeometry(m,t.spatialReference)),m}},_.planarArea=function(e,t){t=(0,i.defaultValue)(t,o.LinearUnits.meters),e instanceof s.default||e instanceof l.default||e instanceof y.default||e instanceof g.default||i.Log.error("polygon对象不是Polyon或MultiPolygon或Circle或Extent类型!");var r=0;if(e instanceof s.default)r=_._polygonArea(e);else if(e instanceof l.default)for(var n=e.toPolygonArray(),a=0;a<n.length;a++)r+=_._polygonArea(n[a]);else e instanceof y.default?r=Math.abs(Math.PI*e.radius*e.radius):e instanceof g.default&&(r=Math.abs((e.xmax-e.xmin)*(e.ymax-e.ymin)));switch(t){case o.AreaUnits.squareKilometers:r*=1e-6;break;case o.AreaUnits.squareMiles:r*=6214e-7*6214e-7;break;case o.AreaUnits.squareYards:r*=1.1959900499368898;break;case o.AreaUnits.squareFeet:r*=10.763910416689228;break;case o.AreaUnits.acres:r*=2471e-7;break;case o.AreaUnits.ares:r*=.01;break;case o.AreaUnits.hectares:r*=1e-4;break;case o.AreaUnits.squareMeters:}return r},_._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)},_._polygonArea=function(e){for(var t=_._ringArea(e.coordinates[0]),r=0,n=1;n<e.coordinates.length;n++)r+=_._ringArea(e.coordinates[n]);return t-r},_.planarLength=function(e,t){t=(0,i.defaultValue)(t,o.LinearUnits.meters),(0,i.isNull)(e)&&i.Log.error("geometry对象不能为空!"),e instanceof u.default||e instanceof v.default||e instanceof s.default||e instanceof l.default||e instanceof y.default||e instanceof g.default||i.Log.error("geometry类型不正确!");var r=0,n=void 0;switch(e.type){case h.default.lineString:r=_._planarLineStringLength(e);break;case h.default.multiLineString:r=_._planarMultiLineStringLength(e);break;case h.default.polygon:n=new s.default({coordinates:[e.coordinates[0]]}),r=_._planarMultiLineStringLength(n);break;case h.default.multiPolygon:for(var a=0;a<e.coordinates.length;a++){var c=new s.default({coordinates:[e.coordinates[a][0]]});r+=_._planarMultiLineStringLength(c)}break;case h.default.circle:r=2*Math.PI*e.radius;break;case h.default.extent:n=new s.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]}),r+=_._planarMultiLineStringLength(n)}switch(t){case o.LinearUnits.kilometers:r*=.001;break;case o.LinearUnits.feet:r*=3.28083989501;break;case o.LinearUnits.miles:r*=6214e-7;break;case o.LinearUnits.nauticalMiles:r*=54e-5;break;case o.LinearUnits.yards:r*=1.0936133;break;case o.LinearUnits.meters:}return r},_._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},_._planarMultiLineStringLength=function(e){for(var t=0,r=0;r<e.coordinates.length;r++){var n=new u.default({coordinates:e.coordinates[r]});t+=_._planarLineStringLength(n)}return t},_.contains=function(e,t){_._checkTwoGeometry(e,t);var r=!1,n=void 0;switch(e.type){case h.default.point:switch(t.type){case h.default.point:return _.equals(e,t)}break;case h.default.multiPoint:switch(t.type){case h.default.point:return _._multiPointContainsPoint(e,t);case h.default.multiPoint:r=!0;for(var i=0;i<t.coordinates.length&&(n=new d.default({coordinates:t.coordinates[i]}),r=_._lineContainPoint(e,n));i++);return r}break;case h.default.lineString:switch(t.type){case h.default.point:return _._lineContainPoint(e,t);case h.default.multiPoint:r=!0;for(var o=0;o<t.coordinates.length;o++)if(n=new d.default({coordinates:t.coordinates[o],spatialReference:f.default.fromJSON(t.spatialReference)}),!_._lineContainPoint(e,n)){r=!1;break}return r;case h.default.lineString:return _._lineContainLine(e,t);case h.default.multiLineString:r=!0;for(var a=0;a<t.coordinates.length;a++){var l=new u.default({coordinates:t.coordinates[a],spatialReference:f.default.fromJSON(t.spatialReference)});if(!_._lineContainLine(e,l)){r=!1;break}}return r}break;case h.default.multiLineString:switch(t.type){case h.default.point:return _._multiLineContainPoint(e,t);case h.default.multiPoint:r=!0;for(var c=0;c<t.coordinates.length;c++){var p=new d.default({coordinates:t.coordinates[c],spatialReference:f.default.fromJSON(t.spatialReference)});if(!_._multiLineContainPoint(e,p)){r=!1;break}}return r;case h.default.lineString:return _._multiLineContainLine(e,t);case h.default.multiLineString:r=!0;for(var y=0;y<t.coordinates.length;y++){var g=new u.default({coordinates:t.coordinates[y],spatialReference:f.default.fromJSON(t.spatialReference)});if(!_._multiLineContainLine(e,g)){r=!1;break}}return r}break;case h.default.polygon:switch(t.type){case h.default.point:return _._polygonContainPoint(e,t);case h.default.multiPoint:r=!0;for(var v=0;v<t.coordinates.length;v++){var m=new d.default({coordinates:t.coordinates[v]});if(!_._polygonContainPoint(e,m)){r=!1;break}}return r;case h.default.lineString:return _._polygonContainLine(e,t);case h.default.multiLineString:r=!0;for(var b=0;b<t.coordinates.length;b++){var S=new u.default({coordinates:t.coordinates[b]});if(!_._polygonContainLine(e,S)){r=!1;break}}return r;case h.default.polygon:return _._polygonContainPolygon(e,t);case h.default.multiPolygon:r=!0;for(var x=0;x<t.coordinates.length;x++){var w=new s.default({coordinates:t.coordinates[x]});if(!_._polygonContainPolygon(e,w)){r=!1;break}}return r;case h.default.circle:return _._polygonContainPolygon(e,t.toPolygon());case h.default.extent:var O=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return _._polygonContainPolygon(e,O)}break;case h.default.multiPolygon:switch(t.type){case h.default.point:return _._multiPolygonContainsPoint(e,t);case h.default.multiPoint:return _._multiContainsMulti(e,t,d.default,_._multiPolygonContainsPoint);case h.default.lineString:return _._multiPolygonContainsLine(e,t);case h.default.multiLineString:return _._multiContainsMulti(e,t,u.default,_._multiPolygonContainsLine);case h.default.polygon:return _._multiPolygonContainsPolygon(e,t);case h.default.multiPolygon:return _._multiContainsMulti(e,t,s.default,_._multiPolygonContainsPolygon);case h.default.circle:r=!1;for(var E=0;E<e.coordinates.length;E++){var P=new s.default({coordinates:e.coordinates[E]});if(_._polygonContainPolygon(P,t.toPolygon())){r=!0;break}}return r;case h.default.extent:r=!1;for(var k=0;k<e.coordinates.length;k++){var T=new s.default({coordinates:e.coordinates[k]}),I=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});if(_._polygonContainPolygon(T,I)){r=!0;break}}return r}break;case h.default.circle:switch(t.type){case h.default.point:return _._polygonContainPoint(e.toPolygon(),t);case h.default.multiPoint:return _._singleContainsMulti(e.toPolygon(),t,d.default,_._polygonContainPoint);case h.default.lineString:return _._polygonContainMultiPoint(e.toPolygon(),t);case h.default.multiLineString:return _._singleContainsMulti(e.toPolygon(),t,u.default,_._polygonContainMultiPoint);case h.default.polygon:return _._polygonContainPolygon(e.toPolygon(),t);case h.default.multiPolygon:return _._singleContainsMulti(e.toPolygon(),t,s.default,_._polygonContainPolygon);case h.default.circle:return _._polygonContainPolygon(e.toPolygon(),t.toPolygon());case h.default.extent:var M=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return _._polygonContainPolygon(e.toPolygon(),M)}break;case h.default.extent:var L=new s.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 h.default.point:return _._polygonContainPoint(L,t);case h.default.multiPoint:return _._singleContainsMulti(L,t,d.default,_._polygonContainPoint);case h.default.lineString:return _._polygonContainMultiPoint(L,t);case h.default.multiLineString:return _._singleContainsMulti(L,t,u.default,_._polygonContainMultiPoint);case h.default.polygon:return _._polygonContainPolygon(L,t);case h.default.multiPolygon:return _._singleContainsMulti(L,t,s.default,_._polygonContainPolygon);case h.default.circle:return _._polygonContainPolygon(L,t.toPolygon());case h.default.extent:var C=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});return _._polygonContainPolygon(L,C)}break;default:return!1}},_._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},_._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},_._multiPolygonContainsPoint=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new s.default({coordinates:e.coordinates[n]});if(_._polygonContainPoint(i,t)){r=!0;break}}return r},_._multiPolygonContainsLine=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new s.default({coordinates:e.coordinates[n]});if(_._polygonContainMultiPoint(i,t)){r=!0;break}}return r},_._multiPolygonContainsPolygon=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new s.default({coordinates:e.coordinates[n]});if(_._polygonContainPolygon(i,t)){r=!0;break}}return r},_._lineContainLine=function(e,t){var r=n.lineString(e.coordinates),i=n.lineString(t.coordinates),o=n.booleanContains(r,i);if(o||(o=_.equals(e,t)),!o){var a=new u.default({coordinates:[t.coordinates[1],t.coordinates[0]]});o=_.equals(e,a)}return o},_._multiLineContainLine=function(e,t){for(var r=!1,n=0;n<e.coordinates.length;n++){var i=new u.default({coordinates:e.coordinates[n],spatialReference:f.default.fromJSON(e.spatialReference)});if(_._lineContainLine(i,t)){r=!0;break}}return r},_._polygonContainPolygon=function(e,t){var r=n.polygon(e.coordinates),i=n.polygon(t.coordinates);return n.booleanContains(r,i)},_.distance=function(e,t,r){((0,i.isNull)(e)&&i.Log.error("geometry1不能为空!"),(0,i.isNull)(t)&&i.Log.error("geometry2不能为空!"),e instanceof d.default||i.Log.error("geometry1类型错误,需要输入Point!"),t instanceof d.default||t instanceof u.default||t instanceof s.default||t instanceof p.default||t instanceof v.default||t instanceof l.default||t instanceof g.default||t instanceof y.default||i.Log.error("geometry2类型错误!"),e.spatialReference.equals(t.spatialReference)||i.Log.error("geometry1、geometry2坐标系不同!"),r=(0,i.defaultValue)(r,o.LengthUnit.kilometer),e=(0,i.defaultValue)(e,void 0),t=(0,i.defaultValue)(t,void 0),e.spatialReference.isGeographic)||(e=c.default.projectGeometry(e,new f.default({wkid:4326})),t=c.default.projectGeometry(t,new f.default({wkid:4326})));if(!(0,i.isNull)(e)&&!(0,i.isNull)(t)){var a=void 0,m=void 0,_=void 0,b=[],S=[],x=n.point(e.coordinates);switch(t.type){case h.default.point:m=n.point(t.coordinates),a=n.distance(x,m,{units:r});break;case h.default.multiPoint:for(var w=0;w<t.coordinates.length;w++)b.push(n.point(t.coordinates[w]));var O=n.featureCollection(b),E=n.nearestPoint(x,O);a=n.distance(x,E,{units:r});break;case h.default.lineString:m=n.lineString(t.coordinates),a=n.pointToLineDistance(x,m,{units:r});break;case h.default.multiLineString:for(var P=0;P<t.coordinates.length;P++)m=n.lineString(t.coordinates[P]),S.push(n.pointToLineDistance(x,m,{units:r}));S.sort(function(e,t){return e-t}),a=S[0];break;case h.default.polygon:for(var k=0;k<t.coordinates[0].length;k++)b.push(t.coordinates[0][k]);m=n.lineString(b),a=n.pointToLineDistance(x,m,{units:r});break;case h.default.multiPolygon:for(var T=0;T<t.coordinates.length;T++){b=[];for(var I=0;I<t.coordinates[T][0].length;I++)b.push(t.coordinates[T][0][I]);m=n.lineString(b),S.push(n.pointToLineDistance(x,m,{units:r}))}S.sort(function(e,t){return e-t}),a=S[0];break;case h.default.circle:_=n.polygon(t.toPolygon().coordinates);for(var M=0;M<_.geometry.coordinates[0].length;M++)b.push(_.geometry.coordinates[0][M]);m=n.lineString(b),a=n.pointToLineDistance(x,m,{units:r});break;case h.default.extent:for(var L=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]}),C=0;C<L.coordinates[0].length;C++)b.push(L.coordinates[0][C]);m=n.lineString(b),a=n.pointToLineDistance(x,m,{units:r})}return a}},_.equals=function(e,t){if((0,i.isNull)(e)&&i.Log.error("geometry1对象为空!"),(0,i.isNull)(t)&&i.Log.error("geometry2对象为空!"),e instanceof a.default||i.Log.error("geometry1对象未继承于Geometry对象!"),t instanceof a.default||i.Log.error("geometry2对象未继承于Geometry对象!"),e.type!==t.type)return!1;if(!e.spatialReference.equals(t.spatialReference))return!1;switch(e.type){case h.default.point:if(!e.equals(t))return!1;break;case h.default.polygon:return _._equalPolygon(e,t);case h.default.lineString:return _._equalLinePoint(e,t);case h.default.extent:if(e.xmin!==t.xmin||e.ymin!==t.ymin||e.xmax!==t.xmax||e.ymax!==t.ymax)return!1;break;case h.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 h.default.multiPoint:return _._equalLinePoint(e,t);case h.default.multiLineString:if(e.coordinates.length!==t.coordinates.length)return!1;for(var n=0;n<e.coordinates.length;n++){var o=new u.default({coordinates:e.coordinates[n],spatialReference:e.spatialReference}),l=new u.default({coordinates:t.coordinates[n],spatialReference:t.spatialReference});if(!_.equals(o,l))return!1}break;case h.default.multiPolygon:if(e.coordinates.length!==t.coordinates.length)return!1;for(var c=0;c<e.coordinates.length;c++){var f=new s.default({coordinates:e.coordinates[c],spatialReference:e.spatialReference}),p=new s.default({coordinates:t.coordinates[c],spatialReference:t.spatialReference});if(!_.equals(f,p))return!1}}return!0},_._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 d.default({coordinates:e.coordinates[r]}),i=new d.default({coordinates:t.coordinates[r]});if(!n.equals(i))return!1}return!0},_._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 u.default({coordinates:e.coordinates[n],spatialReference:e.spatialReference}),o=new u.default({coordinates:t.coordinates[n],spatialReference:t.spatialReference});if(!_.equals(i,o))return!1}return!0},_.disjoint=function(e,t){return!_.intersects(e,t)},_.within=function(e,t){return _.contains(t,e)},_.crosses=function(e,t){if((0,i.isNull)(e)&&i.Log.error("geometry1不能为空!"),(0,i.isNull)(t)&&i.Log.error("geometry2不能为空!"),e.spatialReference.equals(t.spatialReference)||i.Log.error("geometry1、geometry2坐标系不同!"),e instanceof u.default||e instanceof v.default)return _._crosses(e,t);if(t instanceof u.default||t instanceof v.default){var r=e;return _._crosses(e=t,t=r)}i.Log.error("geometry1和geometry2中至少有一个参数类型必须为lineString和multiLineString中的一个!")},_._crosses=function(e,t){(t instanceof u.default||t instanceof s.default||t instanceof v.default||t instanceof l.default||t instanceof g.default||t instanceof y.default||i.Log.error("geometry2类型错误!"),e=(0,i.defaultValue)(e,void 0),t=(0,i.defaultValue)(t,void 0),e.spatialReference.isGeographic)||(e=c.default.projectGeometry(e,new f.default({wkid:4326})),t=c.default.projectGeometry(t,new f.default({wkid:4326})));if(!(0,i.isNull)(e)&&!(0,i.isNull)(t)){var r=void 0,o=void 0,a=void 0;switch(e.type){case h.default.lineString:switch(t.type){case h.default.lineString:if(o=_._geometryToTurf(e),a=_._geometryToTurf(t),!(r=n.booleanCrosses(o,a))&&_.intersects(e,t)){var m=[],b=new p.default({coordinates:[t.coordinates[0],t.coordinates[t.coordinates.length-1]]});if(b.coordinates[0].toString()===b.coordinates[1].toString()){var S=_.intersect(e,t);if("MultiPoint"===S.point.type)r=!0;else if("Point"===S.point.type){var x=new d.default({coordinates:e.coordinates[0]}),w=new d.default({coordinates:e.coordinates[e.coordinates.length-1]});r=!_.contains(t,x)&&!_.contains(t,w)}}else{for(var O=0;O<e.coordinates.length;O++)m.push(e.coordinates[O]);for(var E=0;E<t.coordinates.length;E++)m.push(t.coordinates[E]);var P=n.multiPoint(m);if(!(n.cleanCoords(P).geometry.coordinates.length<P.geometry.coordinates.length)){for(var k=void 0,T=0;T<e.coordinates.length;T++){if(k){r=!k;break}var I=new d.default({coordinates:e.coordinates[T]});k=_.contains(t,I)}for(var M=0;M<t.coordinates.length;M++){if(k){r=!k;break}var L=new d.default({coordinates:t.coordinates[M]});k=_.contains(e,L)}k||(r=!0);break}r=!1}}break;case h.default.multiLineString:for(var C=0;C<t.coordinates.length&&!r;C++)a=new u.default({coordinates:t.coordinates[C]}),r=_._crosses(e,a);break;case h.default.polygon:case h.default.extent:case h.default.circle:if(o=_._geometryToTurf(e),a=_._geometryToTurf(t),r=n.booleanCrosses(o,a))"Point"===_.intersect(e,t).type&&(r=!1);break;case h.default.multiPolygon:for(var N=0;N<t.coordinates.length&&!r;N++)a=new s.default({coordinates:t.coordinates[N]}),r=_._crosses(e,a)}break;case h.default.multiLineString:for(var R=0;R<e.coordinates.length&&!r;R++)o=new u.default({coordinates:e.coordinates[R]}),r=_._crosses(o,t)}return r}},_.touches=function(e,t){((0,i.isNull)(e)&&i.Log.error("geometry1不能为空!"),(0,i.isNull)(t)&&i.Log.error("geometry2不能为空!"),e instanceof u.default||e instanceof s.default||e instanceof v.default||e instanceof l.default||e instanceof g.default||e instanceof y.default||i.Log.error("geometry1类型错误,需要输入LineString、Polygon、MultiLineString、MultiPolygon、Circle、Extent!"),t instanceof d.default||t instanceof u.default||t instanceof s.default||t instanceof p.default||t instanceof v.default||t instanceof l.default||t instanceof g.default||t instanceof y.default||i.Log.error("geometry2类型错误!"),e.spatialReference.equals(t.spatialReference)||i.Log.error("geometry1、geometry2坐标系不同!"),e=(0,i.defaultValue)(e,void 0),t=(0,i.defaultValue)(t,void 0),e.spatialReference.isGeographic)||(e=c.default.projectGeometry(e,new f.default({wkid:4326})),t=c.default.projectGeometry(t,new f.default({wkid:4326})));if(!(0,i.isNull)(e)&&!(0,i.isNull)(t)){var r=!1,n=void 0,o=void 0,a=[];switch(e.type){case h.default.lineString:switch(t.type){case h.default.point:var m=new p.default({coordinates:[e.coordinates[0],e.coordinates[e.coordinates.length-1]]});_.contains(m,t)&&m.coordinates[0].toString()!==m.coordinates[1].toString()&&(r=!0);break;case h.default.multiPoint:for(var b=0;b<t.coordinates.length;b++){var S=new d.default({coordinates:t.coordinates[b]}),x=_.touches(e,S);if(x)r=x;else if(_.intersects(e,S)){r=!1;break}}break;case h.default.lineString:if(_.intersect(e,t).point){var w=new d.default({coordinates:e.coordinates[0]}),O=new d.default({coordinates:e.coordinates[e.coordinates.length-1]});if(_.contains(t,w)||_.contains(t,O))r=!_.crosses(e,t);else{var E=new d.default({coordinates:t.coordinates[0]}),P=new d.default({coordinates:t.coordinates[t.coordinates.length-1]});r=!(!_.contains(e,E)&&!_.contains(e,P))&&!_.crosses(e,t)}}else r=!1;break;case h.default.multiLineString:for(var k=0;k<t.coordinates.length;k++){o=new u.default({coordinates:t.coordinates[k]});var T=_.touches(e,o);if(T)r=T;else if(_.intersects(e,o)){r=!1;break}}break;case h.default.polygon:for(var I=0;I<t.coordinates[0].length;I++)a.push(t.coordinates[0][I]);o=new u.default({coordinates:a}),_.intersects(e,o)&&(_.crosses(e,o)||(r=!0));break;case h.default.multiPolygon:for(var M=0;M<t.coordinates.length;M++){o=new s.default({coordinates:t.coordinates[M]});var L=_.touches(e,o);if(L)r=L;else if(_.intersects(e,o)){r=!1;break}}break;case h.default.circle:var C=new d.default({coordinates:t.center}),N=_.nearestCoordinate(e,C),R=new u.default({coordinates:[t.center,N.geometry.coordinates]}),j=_.planarLength(R);Math.round(j)===t.radius&&(r=!0);break;case h.default.extent:var G=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=_.touches(e,G)}break;case h.default.multiLineString:for(var V=0;V<e.coordinates.length;V++){n=new u.default({coordinates:e.coordinates[V]});var A=_.touches(n,t);if(A)r=A;else if(_.intersects(n,t)){r=!1;break}}break;case h.default.polygon:switch(t.type){case h.default.point:if(!_.contains(e,t)){for(var D=0;D<e.coordinates.length;D++)a.push(e.coordinates[D]);n=new v.default({coordinates:a}),_.contains(n,t)&&(r=!0)}break;case h.default.multiPoint:for(var F=0;F<t.coordinates.length;F++){var B=new d.default({coordinates:t.coordinates[F]}),q=_.touches(e,B);if(q)r=q;else if(_.contains(e,B)){r=!1;break}}break;case h.default.lineString:case h.default.multiLineString:r=_.touches(t,e);break;case h.default.polygon:_.intersects(e,t)&&(_.intersect(e,t)||(r=!0));break;case h.default.multiPolygon:for(var J=0;J<t.coordinates.length;J++){o=new s.default({coordinates:t.coordinates[J]});var U=_.touches(e,o);if(U)r=U;else if(_.intersects(e,o)){r=!1;break}}break;case h.default.circle:for(var z=0;z<e.coordinates[0].length;z++)a.push(e.coordinates[0][z]);n=new u.default({coordinates:a});var W=new d.default({coordinates:t.center}),H=_.nearestCoordinate(n,W),X=new u.default({coordinates:[t.center,H.geometry.coordinates]}),Y=_.planarLength(X);Math.round(Y)===t.radius&&(_.intersect(e,t)||(r=!0));break;case h.default.extent:var Z=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=_.touches(e,Z)}break;case h.default.multiPolygon:switch(t.type){case h.default.point:for(var K=0;K<e.coordinates.length;K++){n=new s.default({coordinates:e.coordinates[K]});var Q=_.touches(n,t);if(Q)r=Q;else if(_.contains(n,t)){r=!1;break}}break;case h.default.multiPoint:for(var $=0;$<t.coordinates.length;$++){var ee=new d.default({coordinates:t.coordinates[$]}),te=_.touches(e,ee);if(te)r=te;else if(_.contains(e,ee)){r=!1;break}}break;case h.default.lineString:case h.default.multiLineString:case h.default.polygon:r=_.touches(t,e);break;case h.default.multiPolygon:for(var re=0;re<t.coordinates.length;re++){o=new s.default({coordinates:t.coordinates[re]});var ne=_.touches(e,o);if(ne)r=ne;else if(_.intersects(e,o)){r=!1;break}}break;case h.default.extent:var ie=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]]});r=_.touches(e,ie);break;case h.default.circle:for(var oe=0;oe<e.coordinates.length;oe++){n=new s.default({coordinates:e.coordinates[oe]});var ae=_.touches(n,t);if(ae)r=ae;else if(_.intersects(n,t)){r=!1;break}}}break;case h.default.extent:var se=new s.default({coordinates:[[[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin]]]});r=_.touches(se,t);break;case h.default.circle:switch(t.type){case h.default.point:var ue=new u.default({coordinates:[e.center,t.coordinates]}),le=_.planarLength(ue);Math.round(le)===e.radius&&(r=!0);break;case h.default.multiPoint:for(var ce=0;ce<t.coordinates.length;ce++){var fe=new d.default({coordinates:t.coordinates[ce]}),he=_.touches(e,fe);if(he)r=he;else{var pe=new u.default({coordinates:[e.center,fe.coordinates]}),de=_.planarLength(pe);if(Math.round(de)<e.radius){r=!1;break}}}break;case h.default.lineString:case h.default.multiLineString:case h.default.polygon:case h.default.multiPolygon:case h.default.extent:r=_.touches(t,e);break;case h.default.circle:var ye=new u.default({coordinates:[e.center,t.center]}),ge=_.planarLength(ye);Math.round(ge)===e.radius+t.radius&&(r=!0)}}return r}},_.cut=function(e,t){if((0,i.isNull)(e)&&i.Log.error("geometry不能为空!"),(0,i.isNull)(t)&&i.Log.error("cutter不能为空!"),e instanceof u.default||e instanceof v.default||e instanceof s.default||e instanceof l.default||i.Log.error("geometry类型错误!"),t instanceof u.default||i.Log.error("cutter类型错误!"),e.spatialReference.equals(t.spatialReference)||i.Log.error("geometry对象和cutter对象的坐标系不同!"),!_.intersects(e,t))return[];var r=[],n=void 0,o=void 0;switch(e.type){case h.default.lineString:r=_._lineCutLine(e,t);break;case h.default.multiLineString:for(var a=0;a<e.coordinates.length;a++){var c=new u.default({coordinates:e.coordinates[a],spatialReference:f.default.fromJSON(e.spatialReference)});r=r.concat(_._lineCutLine(c,t))}break;case h.default.polygon:if(n=void 0,e.spatialReference.isGeographic)n=e,o=t;else{var p=_._polygonAndCutterToWGS84(e,t);n=p.polygon,o=p.cutter}if(r=_._lineCutPolygon(n,o),!e.spatialReference.isGeographic)for(var d=0;d<r.length;d++)r[d]=_._geometryToOrigin(r[d]);break;case h.default.multiPolygon:if(n=void 0,e.spatialReference.isGeographic)n=e,o=t;else{var y=_._polygonAndCutterToWGS84(e,t);n=y.polygon,o=y.cutter}for(var g=0;g<n.coordinates.length;g++){var m=new s.default({coordinates:n.coordinates[g],spatialReference:f.default.fromJSON(e.spatialReference)});r=r.concat(_._lineCutPolygon(m,o))}if(!e.spatialReference.isGeographic)for(var b=0;b<r.length;b++)r[b]=_._geometryToOrigin(r[b])}return r},_._polygonAndCutterToWGS84=function(e,t){return{polygon:e.spatialReference.isGeographic?e:_._geometryToWGS84(e),cutter:t.spatialReference.isGeographic?t:_._geometryToWGS84(t)}},_._lineCutLine=function(e,t){for(var r=[],i=n.lineString(e.coordinates),o=n.lineString(t.coordinates),a=n.lineSplit(i,o),s=0;s<a.features.length;s++)r.push(new u.default({coordinates:a.features[s].geometry.coordinates,spatialReference:f.default.fromJSON(e.spatialReference)}));return r},_._lineCutPolygon=function(e,t){var r=[],i=new u.default({coordinates:e.coordinates[0]}),o=n.lineString(i.coordinates),a=n.lineString(t.coordinates);if(n.booleanDisjoint(a,i))return e.clone();for(var l=[],c=0;c<t.coordinates.length-1;c++){var p=n.lineString([t.coordinates[c],t.coordinates[c+1]]);n.booleanDisjoint(p,i)||l.push(t.coordinates[c],t.coordinates[c+1])}a=n.lineString(l),a=n.cleanCoords(a);for(var d=n.lineSplit(o,a),y=n.lineSplit(a,o),g=[],v=new s.default({coordinates:[e.coordinates[0]]}),m=0;m<y.features.length;m++){var b=new u.default({coordinates:y.features[m].geometry.coordinates});_.contains(v,b)&&g.push(y.features[m])}d.features=d.features.concat(g);for(var S=0;S<d.features.length;S++)for(var x=0;x<d.features[S].geometry.coordinates.length;x++)d.features[S].geometry.coordinates[x][0]=d.features[S].geometry.coordinates[x][0].toFixed(7)/1,d.features[S].geometry.coordinates[x][1]=d.features[S].geometry.coordinates[x][1].toFixed(7)/1;for(var w=n.polygonize(d),O=0;O<w.features.length;O++){var E=new s.default({coordinates:w.features[O].geometry.coordinates,spatialReference:f.default.fromJSON(e.spatialReference)});r.push(E)}if(e.coordinates.length>1)for(var P=0;P<r.length;P++)for(var k=1;k<e.coordinates.length;k++){var T=new s.default({coordinates:[e.coordinates[k]]}),I=n.polygon(T.coordinates),M=n.polygon(r[P].coordinates);n.booleanDisjoint(I,M)||(r[P]=_.difference(r[P],T))}for(var L=[],C=0;C<r.length;C++)if(r[C].type===h.default.multiPolygon)for(var N=0;N<r[C].coordinates.length;N++)L.push(new s.default({coordinates:r[C].coordinates[N],spatialReference:f.default.fromJSON(e.spatialReference)}));else L.push(r[C]);return r=L},_._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]},_._coordinateToOrigin=function(e){return[20037508.34*e[0]/180,20037508.34*e[1]/180]},_._geometryToWGS84=function(e){var t=void 0;switch(e.type){case h.default.polygon:t=s.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]=_._coordinateToWGS84(t.coordinates[r][n]);break;case h.default.multiPolygon:t=l.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]=_._coordinateToWGS84(t.coordinates[i][o][a]);break;case h.default.lineString:t=u.default.fromJSON(e.toJSON());for(var c=0;c<t.coordinates.length;c++)t.coordinates[c]=_._coordinateToWGS84(t.coordinates[c])}return t},_._geometryToOrigin=function(e){var t=void 0;switch(e.type){case h.default.polygon:t=s.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]=_._coordinateToOrigin(t.coordinates[r][n]);break;case h.default.lineString:t=u.default.fromJSON(e.toJSON());for(var i=0;i<t.coordinates.length;i++)t.coordinates[i]=_._coordinateToOrigin(t.coordinates[i])}return t},_.isSimple=function(e){(0,i.isNull)(e)&&i.Log.error("geometry不能为空!"),e instanceof u.default||e instanceof v.default||e instanceof s.default||e instanceof l.default||i.Log.error("geometry为不支持的类型!");var t=!0;switch(e.type){case h.default.lineString:t=_._lineIsSimple(e);break;case h.default.multiLineString:t=_._multiLineIsSimple(e);break;case h.default.polygon:t=_._polygonIsSimple(e);break;case h.default.multiPolygon:t=_._multiPolygonIsSimple(e)}return t},_._lineIsSimple=function(e){var t=!0;if(e.coordinates.length>2){for(var r=[],i=0;i<e.coordinates.length-1;i++)r.push(new u.default({coordinates:[e.coordinates[i],e.coordinates[i+1]]}));for(var o=0;o<r.length-1;o++)for(var a=o+1;a<r.length;a++)if(_.contains(r[o],r[a])||_.contains(r[a],r[o])){t=!1;break}for(var s=0;s<r.length-2;s++)for(var l=s+2;l<r.length;l++)if(_.intersects(r[s],r[l])){var c=n.multiPoint([r[s].coordinates[0],r[s].coordinates[1],r[l].coordinates[0],r[l].coordinates[1]]);if(3!==(c=n.cleanCoords(c)).geometry.coordinates.length){t=!1;break}t=!0}for(var f=0;f<e.coordinates.length;f++){for(var h=!1,p=f+1;p<e.coordinates.length;p++)if(_._equalPoints(e.coordinates[f],e.coordinates[p])){h=!0;break}if(h){t=!1;break}}return t}return 2===e.coordinates.length?_._equalPoints(e.coordinates[0],e.coordinates[1]):t},_._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])},_._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 u.default({coordinates:[e.coordinates[r][n],e.coordinates[r][n+1]]}));return t},_._multiLineIsSimple=function(e){var t=!0;if(1===e.coordinates.length){var r=new u.default({coordinates:e.coordinates[0]});t=_._lineIsSimple(r)}else{for(var n=0;n<e.coordinates.length;n++){var i=new u.default({coordinates:e.coordinates[n]});if(_._lineIsSimple(i)){t=!1;break}}if(t)for(var o=0;o<e.coordinates.length-1;o++){var a=new u.default({coordinates:e.coordinates[o]}),s=new u.default({coordinates:e.coordinates[o+1]});if(_.intersects(a,s)){t=!1;break}}}return t},_._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 v.default({coordinates:t}),i=_._multiLineIsSimple(n),o=!1,a=0;a<r.length;a++){for(var s=new u.default({coordinates:r[a][r[a].length-1]}),l=0;l<r[a].length-1;l++)if(o=_.intersects(new u.default({coordinates:r[a][l]}),s)){i=!1;break}if(o)break}return i},_._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 v.default({coordinates:t});return _._multiLineIsSimple(r)},_.getPositionsFromArc=function(e){var t=[(e=(0,i.defaultValue)(e,{})).point1,e.point2,e.point3],r=_.getCenter(t[0],t[1],t[2]);return t=_._tranArcToPath({center:r,pointBegan:t[0],pointEnd:t[2],spatialReference:e.spatialReference,numberOfPoints:e.numberOfPoints})},_._tranArcToPath=function(e){var t=(0,i.defaultValue)(e.center,void 0);t=JSON.parse(JSON.stringify(t));var r=(0,i.defaultValue)(e.pointBegan,void 0);r=JSON.parse(JSON.stringify(r));var n=(0,i.defaultValue)(e.pointEnd,void 0);n=JSON.parse(JSON.stringify(n));var o=(0,i.defaultValue)(e.numberOfPoints,360),a=(0,i.defaultValue)(e.spatialReference,new f.default({wkid:4326}));if(!(a=f.default.fromJSON(a)).isGeographic){var s=new f.default({wkid:4326});t=c.default.project(new d.default({coordinates:t,spatialReference:a}),s).coordinates,r=c.default.project(new d.default({coordinates:r,spatialReference:a}),s).coordinates,n=c.default.project(new d.default({coordinates:n,spatialReference:a}),s).coordinates}var l=new u.default({coordinates:[t,r]}),h=_.planarLength(l),p=_.getAngleFromPoints(r,t,[t[0]+10,t[1]]),y=_.getAngleFromPoints(n,t,[t[0]+10,t[1]])-p;o*=y/360,o=Math.abs(o);var g=Math.PI*(y/180)/o;p=Math.PI*(p/180);for(var v=[r],m=0;m<o-1;m++){p+=g;var b=[t[0]+h*Math.cos(p),t[1]+h*Math.sin(p)];v.push(b)}return v.push(n),this.hasZ&&v.map(function(e){return[e[0],e[1],t[2]]}),v},_.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,f=-(0*i-0*o-0*i+0*a+0*o-0*a),h=i*u-o*s-i*l+a*s+o*l-a*u,p=-(i*u*0-i*l*0-o*s*0+o*l*0+a*s*0-a*u*0),d=2*(o-i),y=2*(u-s),g=i*i+s*s+0-o*o-u*u-0,v=2*(a-i),m=2*(l-s),_=i*i+s*s+0-a*a-l*l-0,b=-(0*f*_-0*f*g-y*h*_+0*y*p+m*h*g-0*m*p)/(c*y*0-c*m*0-d*f*0+d*m*h+v*f*0-v*y*h),S=(0*c*_-0*c*g-d*h*_+0*d*p+v*h*g-0*v*p)/(c*y*0-c*m*0-d*f*0+d*m*h+v*f*0-v*y*h);return n?[b,S,e[2]]:[b,S]},_._getArcFromPath=function(e){e=(0,i.defaultValue)(e,{});var t=(0,i.defaultValue)(e.coordinates,[]),r=(0,i.defaultValue)(e.arcInfo,[]),n=(0,i.defaultValue)(e.spatialReference,new f.default({wkid:4326})),o=(0,i.defaultValue)(e.numberOfPoints,360),a=[],s=t.slice(0,r[0].centerPointIndex-1);a=a.concat(s);var u=Number(r[0].centerPointIndex),l=[t[u-1],t[u],t[u+1]],c=_.getPositionsFromArc({point1:l[0],point2:l[1],point3:l[2],spatialReference:n,numberOfPoints:o});a=a.concat(c);for(var h=1;h<r.length;h++)if(r[h].hasOwnProperty("centerPointIndex")){var p=t.slice(r[h-1].centerPointIndex+2,r[h].centerPointIndex+1);a=a.concat(p);var d=Number(r[h].centerPointIndex),y=[t[d-1],t[d],t[d+1]],g=_.getPositionsFromArc({point1:y[0],point2:y[1],point3:y[2],spatialReference:n,numberOfPoints:o});a=a.concat(g)}var v=t.slice(r[r.length-1].centerPointIndex+2,t.length);return a=a.concat(v)},_._getArcInfos=function(e,t,r){var n={};switch(r){case h.default.multiLineString:case h.default.polygon:for(var i=0;i<t.length;i++){n[i]=[];for(var o=0;o<e.length;o++){(r===h.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 h.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]=_._getArcInfos(n[a],t[a],h.default.polygon)}return n;default:return n}},_.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},_.getArcFromGeometry=function(e){e=(0,i.defaultValue)(e,{});var t=(0,i.defaultValue)(e.geometry,void 0),r=(0,i.defaultValue)(e.numberOfPoints,360),n=(0,i.defaultValue)(e.arcInfo,[]);if(!t)return t;if(!(t instanceof a.default))return i.Log.error("geometry不是基础几何类型!"),t;if(!n)return t;if(!(n instanceof Array))return t;if(n.length<1)return t;var o=t.coordinates,c=t.spatialReference,p=void 0,d=void 0;switch(t.type){case h.default.lineString:return p=_._getArcFromPath({coordinates:o,arcInfo:n,spatialReference:c,numberOfPoints:r}),new u.default({coordinates:p,spatialReference:f.default.fromJSON(t.spatialReference)});case h.default.multiLineString:return d=_._getArcInfos(n,o,h.default.multiLineString),p=[],Object.keys(d).forEach(function(e){p.push(_._getArcFromPath({coordinates:o[e],arcInfo:d[e],spatialReference:c,numberOfPoints:r}))}),new v.default({coordinates:p,spatialReference:c});case h.default.polygon:return d=_._getArcInfos(n,o,h.default.polygon),p=[],Object.keys(d).forEach(function(e){var t=o[e].slice(0,o[e].length),n=_._getArcFromPath({coordinates:t,arcInfo:d[e],spatialReference:c,numberOfPoints:r});n.push(n[0]),p.push(n)}),new s.default({coordinates:p,spatialReference:c});case h.default.multiPolygon:d=_._getArcInfos(n,o,h.default.multiPolygon),p=[];for(var y=function(e){var t=[];Object.keys(d[e]).forEach(function(n){var i=o[e][n].slice(0,o[e][n].length),a=_._getArcFromPath({coordinates:i,arcInfo:d[e][n],spatialReference:c,numberOfPoints:r});a.push(a[0]),t.push(a)}),p.push(t)},g=0;g<o.length;g++)y(g);return new l.default({coordinates:p,spatialReference:c});default:return t}},_._getTurfMultiLineStringFromLines=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].coordinates);return n.multiLineString(t)},_._initIntersects=function(e){for(var t={},r=0;r<e.length;r++)e[r].id=r,t[r]={intersectPoints:[],intersectLines:[]};return t},_._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]},_._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]},_._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]},_._singRingSimplify=function(e){for(var t=_._getLinesFromPolygon(e),r=_._initIntersects(t),i=0;i<t.length-1;i++)for(var o=i+1;o<t.length;o++){var a=_.intersect(t[i],t[o]);a.point&&(_._pointOnLineEndPoint(a.point,t[i])||_._pointOnLineEndPoint(a.point,t[o])||(r[i].intersectPoints.push(a.point),r[o].intersectPoints.push(a.point))),a.lineString&&(r[i].intersectLines.push(a.lineString),r[o].intersectLines.push(a.lineString))}for(var s=[],u=0;u<t.length;u++){for(var l=!1,c=0;c<r[u].intersectLines.length;c++){if(_._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 d.default({coordinates:r[u].intersectLines[c].coordinates[0]}),new d.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 d.default({coordinates:r[u].intersectLines[c].coordinates[1]}),new d.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 d.default({coordinates:t[u].coordinates[0]})),r[u].intersectPoints.push(new d.default({coordinates:t[u].coordinates[1]}));for(var f=_.union(r[u].intersectPoints),h=0;h<f.coordinates.length-1;h++)s.push(n.lineString([f.coordinates[h],f.coordinates[h+1]]))}}for(var p=0;p<s.length;p++)for(var y=p+1;y<s.length;y++)_._lineEqualLineTurf(s[p],s[y])&&(s.splice(y,1),y--);var g=n.featureCollection(s);return n.polygonize(g)},_._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++)_.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++)_.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 f=_._getPolygonsFromRings(s,[]);o=o.concat(f)}}return t=t.concat(o)},_._singlePolygonSimplify=function(e){for(var t={largerInnerPolygon:[],intersectInnerPolygon:[],smallInnerPolygon:[]},r=new s.default({coordinates:[e.coordinates[0]],spatialReference:f.default.fromJSON(e.spatialReference)}),n=[],i=1;i<e.coordinates.length;i++){var o=new s.default({coordinates:[e.coordinates[i]],spatialReference:f.default.fromJSON(e.spatialReference)});n.push(o)}for(var u=0;u<n.length-1;u++)for(var c=u+1;c<n.length;c++){var h=_.intersect(n[u],n[c]);(h instanceof s.default||h instanceof l.default)&&(n[u]=_.difference(n[u],h),n[c]=_.difference(n[c],h))}for(var p=0;p<n.length;p++){var d=n[p];if(_.contains(r,d)){var y=_.difference(r,d),g=JSON.parse(JSON.stringify(r.coordinates[0])),v=JSON.parse(JSON.stringify(y.coordinates[0]));g.sort(function(e,t){return e[0]-t[0]}),g.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]}),JSON.stringify(g)===JSON.stringify(v)?t.smallInnerPolygon.push(d):t.intersectInnerPolygon.push(d)}else if(_.contains(d,r)){var m=r.toJSON(),b=d.toJSON();r=a.default.fromJSON(b),d=a.default.fromJSON(m),t.smallInnerPolygon.push(d)}else _.intersects(r,d)?t.intersectInnerPolygon.push(d):_.disjoint(r,d)&&t.largerInnerPolygon.push(d)}for(var S=[],x=0;x<t.intersectInnerPolygon.length;x++){var w=_.intersect(r,t.intersectInnerPolygon[x]);if(w instanceof s.default||w instanceof l.default){r=_.difference(r,w);var O=_.difference(t.intersectInnerPolygon[x],w);S.push(O)}}for(var E=_._singRingSimplify(r),P=0;P<E.features.length;P++)S.push(new s.default({coordinates:E.features[P].geometry.coordinates}));if(t.largerInnerPolygon.length>0)for(var k=0;k<t.largerInnerPolygon.length;k++)S.push(t.largerInnerPolygon[k]);for(var T=[],I=0;I<t.smallInnerPolygon.length;I++)for(var M=_._singRingSimplify(t.smallInnerPolygon[I]),L=0;L<M.features.length;L++){var C=new s.default({coordinates:M.features[L].geometry.coordinates});C.isPicked=!1,T.push(C)}!(T=_.union(T))||T instanceof Array||(T=[T]);for(var N=0;N<S.length;N++)for(var R=0;R<T.length;R++)!T[R].isPicked&&S[N]&&T[R]&&_.contains(S[N],T[R])&&(S[N].coordinates.push(T[R].coordinates[0]),T[R].isPicked=!0);return S},_.simplify=function(e){if((0,i.isNull)(e)&&i.Log.error("geometry不能为空!"),e.type===h.default.point||e.type===h.default.multiPoint||e.type===h.default.extent||e.type===h.default.circle)return e;switch(e.type){case h.default.polygon:case h.default.multiPolygon:var t=[],r=void 0;if(e.type===h.default.polygon){r=JSON.parse(JSON.stringify(e.coordinates));for(var n=0;n<r.length;n++)t.push(new s.default({coordinates:[r[n]],spatialReference:f.default.fromJSON(e.spatialReference)}))}else for(var o=JSON.parse(JSON.stringify(e.coordinates)),a=0;a<o.length;a++)for(var u=0;u<o[a].length;u++)t.push(new s.default({coordinates:[o[a][u]],spatialReference:f.default.fromJSON(e.spatialReference)}));for(var c=0;c<t.length;c++)t[c].area=_.planarArea(t[c]);t.sort(function(e,t){return t.area-e.area});for(var p=_._getPolygonsFromRings(t,[]),d=0;d<p.length-1;d++)for(var y=d+1;y<p.length;y++)if(!_.contains(p[d],p[y])){var g=_.intersect(p[d],p[y]);g&&(p[d].coordinates=_.difference(p[d],g).coordinates,p[y].coordinates=_.difference(p[y],g).coordinates)}for(var v=[],m=0;m<p.length;m++){for(var b=0;b<p[m].innerPolygons.length;b++)p[m].coordinates.push(p[m].innerPolygons[b].coordinates[0]);var S=_._singlePolygonSimplify(p[m]);v=v.concat(S)}if(1===v.length)return v[0];if(v.length>1){for(var x=[],w=0;w<v.length;w++)v[w]&&x.push(v[w].coordinates);return new l.default({coordinates:x,spatialReference:f.default.fromJSON(e.spatialReference)})}break;case h.default.lineString:}},_.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},_.getCenterOID=function(e){var t=e.type;if(t===h.default.circle)return new d.default({coordinates:[e.center[0],e.center[1],0]});if(t===h.default.extent)return new d.default({coordinates:[(e.xmin+e.xmax)/2,(e.ymin+e.ymax)/2,0]});var r=[],i=void 0;switch(t){case h.default.point:return d.default.fromJSON(e.toJSON());case h.default.multiPoint:case h.default.lineString:i=e.coordinates;break;case h.default.polygon:i=e.coordinates[0];break;default:return}for(var o=0;o<i.length;o++)r.push(n.point(i[o]));var a=n.featureCollection(r),s=n.center(a);return new d.default({coordinates:[s.geometry.coordinates[0],s.geometry.coordinates[1],0]})},t.default=_},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(17),i=r(40),o=r(450),a=function(e){return e&&e.__esModule?e:{default:e}}(r(67));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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(0),a=r(1);var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,o.defaultValue)(e,{}),r.id=(0,o.defaultValue)(e.id,(0,o.getGUID)()),r.layer=(0,o.defaultValue)(e.layer,void 0),r.sublayers=(0,o.defaultValue)(e.sublayers,new i.Collection),r.title=(0,o.defaultValue)(e.title||e.layerName,void 0),r.extensionOptions=(0,o.defaultValue)(e.extensionOptions,{}),r.extendProps=(0,o.defaultValue)(e.extendProps,{}),r._visible=(0,o.defaultValue)(e.visible,!0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Evented),n(t,[{key:"toJSON",value:function(){var e=[];return this.sublayers.forEach(function(r){e.push((0,o.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}();Object.defineProperties(s.prototype,{visible:{get:function(){return this._visible},set:function(e){if(this._visible=e,this.layer&&this.layer.refresh)switch(this.layer.type){case a.LayerType.wms:this.layer.setSubLayer(this)}}}}),t.default=s},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(28)),i=g(r(404)),o=g(r(411)),a=g(r(412)),s=g(r(413)),u=g(r(416)),l=g(r(417)),c=g(r(418)),f=r(1),h=r(0),p=r(419),d=g(r(166)),y=r(50);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,h.defaultValue)(e,{})).type){case f.RendererType.simple:return new a.default(e);case f.RendererType.uniqueValue:return new i.default(e);case f.RendererType.classBreak:return new o.default(e);case f.RendererType.cluster:return new s.default(e);case f.RendererType.random:return new u.default(e);case f.RendererType.rank:return new l.default(e);case f.RendererType.heatmap:return new c.default(e);default:return new a.default(e)}},t.getIGSDynamicLayer=p.getIGSDynamicLayer,t.HeatmapColorStop=d.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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(69)),a=r(3);var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.dpi=(0,i.defaultValue)(t.dpi,-1),this.format=(0,i.defaultValue)(t.format,"png"),this.origin=t.origin?a.Point.fromJSON(t.origin):void 0;for(var r=[],n=(0,i.defaultValue)(t.lods,[]),s=0;s<n.length;s++)r.push(o.default.fromJSON(n[s]));this.lods=r,this.size=t.size,this.spatialReference=t.spatialReference}return n(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=s},function(e,t,r){"use strict";r.r(t),t.default=function(e){return e<0?-1:1}},function(e,t,r){"use strict";r.r(t);var n=r(4),i=r(42);t.default=function(e){return Math.abs(e)<n.HALF_PI?e:e-Object(i.default)(e)*Math.PI}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=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(246)),s=r(21);var u=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._createEventedProxy()}return i(e,[{key:"_createEventedProxy",value:function(){this._decorateParents=[],this._decorateProperties={};var e=this;return new Proxy(this,{set:function(t,r,n,i){if(e._decorateProperties[r]){var o=e._decorateProperties[r],a=o.type,s=o.createInstance;a&&n instanceof a||(n=s(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 u={target:t,key:r,value:n,oldValue:Reflect.get(t,r),receiver:i},l=Reflect.set(t,r,n,i);return/^_[^_].*/.test(r)?l:(e._decorateEventFire(e,e,[],"set",u,u),l)},get:function(e,t,r){return Reflect.get(e,t,r)}})}},{key:"_decorateEventFire",value:function(e,t,r,n,i,o){for(var a=i.key,u=i.value,l=i.oldValue,c=[a],f=0;f<r.length;f++)c.push(r[f]);var h={key:a,value:u,oldValue:l},p=new s.ProxyEvent({eventName:n,target:e,eventData:h,eventPath:c,sourceTarget:t,sourceEventData:o});e.fire(n,p,!1);var d=e._decorateParents||[];if(0!==d.length)for(var y=0;y<d.length;y++){var g=d[y],v=g.instance,m={key:g.key,value:e,oldValue:e};this._decorateEventFire(v,t,c,n,m,o)}}},{key:"_decorate",value:function(e,t,r,n){n=(0,o.defaultValue)(n,function(e){return e});var i=t;return r&&t instanceof r||(i=n((0,o.defaultValue)(t,{}))),this._decorateProperties[e]={type:r,createInstance:n},i}},{key:"on",value:function(e,t,r){if("object"===(void 0===e?"undefined":n(e)))for(var i in e)this._on(i,e[i],t);else for(var o=0,s=(e=a.splitWords(e)).length;o<s;o++)this._on(e[o],t,r);return this}},{key:"off",value:function(e,t,r){if(e)if("object"===(void 0===e?"undefined":n(e)))for(var i in e)this._off(i,e[i],t);else for(var o=0,s=(e=a.splitWords(e)).length;o<s;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 s=n[i];if(s.ctx===r&&s.fn===t)return s.fn=a.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=a.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":n(e))){for(var o in e)this.once(o,e[o],t);return this}var s=a.bind(function(){i.off(e,t,r).off(e,s,r)},this);return this.on(e,t,r).on(e,s,r)}},{key:"addEventParent",value:function(e){return this._eventParents=this._eventParents||{},this._eventParents[a.stamp(e)]=e,this}},{key:"removeEventParent",value:function(e){return this._eventParents&&delete this._eventParents[a.stamp(e)],this}},{key:"_propagateEvent",value:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,a.extend({layer:e.target,propagatedFrom:e.target},e),!0)}}]),e}();t.default=u,u.addEventListener=u.on,u.removeEventListener=u.clearAllEventListeners=u.off,u.addOneTimeEventListener=u.once,u.fireEvent=u.fire,u.hasEventListeners=u.listens},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(99)),i=f(r(79)),o=r(0),a=r(3),s=f(r(62)),u=f(r(135)),l=f(r(136)),c=f(r(85));function f(e){return e&&e.__esModule?e:{default:e}}var h=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};h.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},h.projectToGeographyPoints=function(e){e=(0,o.defaultValue)(e,{});var t=(0,o.defaultValue)(e.points,[]),r=(0,o.defaultValue)(e.wkid,-1),i=(0,o.defaultValue)(e.proj4Defs,void 0),a=[],s=void 0;if(i)s=i;else{var u=h.getEPSGByWKID(r);u&&(s=u.strProject)}if(s)for(var l=0;l<t.length;l++)a.push((0,n.default)(s,"+proj=longlat +datum=WGS84 +no_defs +type=crs",t[l]));return a},h.projectPoints=function(e){e=(0,o.defaultValue)(e,{});var t=(0,o.defaultValue)(e.points,[]),r=(0,o.defaultValue)(e.originWKID,-1),i=(0,o.defaultValue)(e.originDefs,void 0),a=(0,o.defaultValue)(e.targetWKID,-1),s=(0,o.defaultValue)(e.targetDefs,void 0),u=void 0,l=void 0,c=[];try{if(i)u=i;else{var f=h.getEPSGByWKID(r);f&&(u=f.strProject)}if(s)l=s;else{var p=h.getEPSGByWKID(a);p&&(l=p.strProject)}for(var d=[],y=[],g=0;g<t.length;g++)d=t[g],y=u&&l?(0,n.default)(u,l,d):u&&!l?h._toCustomWkidPoint(u,a,d):!u&&l?h._fromCustomWkidPoint(r,l,d):h._CustomWkidToCustomWkidPoint(r,a,d),c.push(y);return c}catch(e){o.Log.error("proj4投影超限")}return c},h.getEPSGByWKID=function(e){for(var t=void 0,r=0;r<i.default.length;r++)if(String(i.default[r].id)===String(e)){t=i.default[r];break}return t||o.Log.info("epsg未定义wkid为"+e+"的坐标系信息"),t},h.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 s.default.point:return r=[e.coordinates],n.points=r,r=h.projectPoints(n),new a.Point({coordinates:r[0],spatialReference:new a.SpatialReference(t)});case s.default.multiPoint:return r=e.coordinates,n.points=r,r=h.projectPoints(n),new a.MultiPoint({coordinates:r,spatialReference:new a.SpatialReference(t)});case s.default.lineString:return r=e.coordinates,n.points=r,r=h.projectPoints(n),new a.LineString({coordinates:r,spatialReference:new a.SpatialReference(t)});case s.default.multiLineString:r=e.coordinates;for(var i=[],o=0;o<r.length;o++)n.points=r[o],i.push(h.projectPoints(n));return new a.MultiLineString({coordinates:i,spatialReference:new a.SpatialReference(t)});case s.default.polygon:r=e.coordinates;for(var u=[],l=0;l<r.length;l++)n.points=r[l],u.push(h.projectPoints(n));return new a.Polygon({coordinates:u,spatialReference:new a.SpatialReference(t)});case s.default.multiPolygon:r=e.coordinates;for(var c=[],f=0;f<r.length;f++){for(var p=[],d=0;d<r[f].length;d++)n.points=r[f][d],p.push(h.projectPoints(n));c.push(p)}return new a.MultiPolygon({coordinates:c,spatialReference:new a.SpatialReference(t)});case s.default.circle:return r=[e.clone().center],n.points=r,r=h.projectPoints(n),new a.Circle({center:r[0],radius:e.radius,radiusUnit:e.radiusUnit,spatialReference:new a.SpatialReference(t)});case s.default.extent:return r=[[e.xmin,e.ymin,e.zmin],[e.xmax,e.ymax,e.zmax]],n.points=r,r=h.projectPoints(n),new a.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 a.SpatialReference(t)});default:return e}},h.project=function(e,t){if(e instanceof Array){for(var r=[],n=0;n<e.length;n++)r.push(h.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 h.projectGeometry(e,t)},h.isCustomWKID=function(e){return e===c.default.gcj02ll||e===c.default.gcj02mc||e===c.default.bd09ll||e===c.default.bd09mc},h._toCustomWkidPoint=function(e,t,r){var i=void 0,a=h.getEPSGByWKID(4326).strProject,s=(0,n.default)(e,a,r);if(t===c.default.bd09ll)i=u.default.wgs84tobd09(s[0],s[1]);else if(t===c.default.bd09mc){var f=u.default.wgs84tobd09(s[0],s[1]);f[0]=Math.min(f[0],180),f[0]=Math.max(f[0],-180),f[1]=Math.min(f[1],74.000022),f[1]=Math.max(f[1],-71.988531);var p=(new l.default).convertLL2MC({lng:f[0],lat:f[1]});i=[p.lng,p.lat]}else if(t===c.default.gcj02ll)i=u.default.wgs84togcj02(s[0],s[1]);else if(t===c.default.gcj02mc){var d=u.default.wgs84togcj02(s[0],s[1]);i=(0,n.default)(a,h.getEPSGByWKID(3857).strProject,d)}else o.Log.error("wkid为"+t+"的投影方式未定义!");return i},h._fromCustomWkidPoint=function(e,t,r){var i=void 0,a=h.getEPSGByWKID(4326).strProject;if(e===c.default.bd09ll){var s=u.default.bd09towgs84(r[0],r[1]);i=(0,n.default)(a,t,s)}else if(e===c.default.bd09mc){var f=(new l.default).convertMC2LL({lng:r[0],lat:r[1]});i=u.default.bd09towgs84(f.lng,f.lat)}else if(e===c.default.gcj02ll){var p=u.default.gcj02towgs84(r[0],r[1]);i=(0,n.default)(a,t,p)}else if(e===c.default.gcj02mc){var d=(0,n.default)(h.getEPSGByWKID(3857).strProject,a,r),y=u.default.gcj02towgs84(d[0],d[1]);i=(0,n.default)(h.getEPSGByWKID(4326).strProject,t,y)}else o.Log.error("wkid为"+e+"的投影方式未定义!");return i},h._CustomWkidToCustomWkidPoint=function(e,t,r){var n=void 0,i=h.getEPSGByWKID(4326).strProject;if(e===c.default.bd09ll){var a=h._fromCustomWkidPoint(e,i,r);n=h._toCustomWkidPoint(i,t,a)}else o.Log.error("wkid为"+e+"的投影方式未定义!");return n},h.getProj=function(e,t){return n.default.defs(e,t),(0,n.default)(e)},t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=u(r(77)),a=u(r(31)),s=r(122);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));e=(0,i.defaultValue)(e,{}),r.styleOrigin=void 0,r.symbolLayers=new o.default;var n=(0,i.defaultValue)(e.symbolLayers,[]);if(n instanceof Array&&n.length>0)for(var a=0;a<n.length;a++)r.symbolLayers.add((0,s.createSymbol3DLayer)(n[a]));return r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=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(15)),o=f(r(12)),a=r(0),s=r(1),u=f(r(16)),l=f(r(33)),c=r(23);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,a.defaultValue)(e,{}),r.coordinates=(0,a.defaultValue)(e.coordinates,[]),r.type=s.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 o=0;o<i[i.length-1].length;o++)if(i[i.length-1][o]!==i[0][o])throw new Error("第一个位置和最后一个位置不相等")}return 3===r.coordinates[0][0].length&&(r.hasZ=!0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"addRing",value:function(e){if(!Array.isArray(e))throw new Error("传入参数错误");var t=[];return e.forEach(function(e){t.push(u.default.toCoordinates(e))}),this.coordinates.push(t),this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),this}},{key:"removeRing",value:function(e){if(e=Number(e),!this._isValidate(e,0))return null;var t=JSON.parse(JSON.stringify(this._cloneCoordinates()[e]));this.coordinates.splice(e,1),this.coordinates=JSON.parse(JSON.stringify(this.coordinates));for(var r=[],n=0;n<t.length;n++){var i=new u.default({coordinates:t[n]});r.push(i)}return r}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse(JSON.stringify(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=i.polygon(this._cloneCoordinates()),r=i.point(u.default.toCoordinates(e));return i.booleanPointInPolygon(r,t)}},{key:"getPoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this._cloneCoordinates()[e];return new u.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(JSON.stringify(this.coordinates)),this}},{key:"removePoint",value:function(e,t){if(!this._isValidate(e,t))return null;var r=this.clone(),n=r.coordinates[e],i=new u.default({coordinates:n[t]});return Array.isArray(n)&&n.splice(t,1),this.coordinates=r.coordinates,this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),i}},{key:"setPoint",value:function(e,t,r){if(!this._isValidate(e,t))return this;r instanceof u.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(JSON.stringify(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=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 s.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=!1,r=[];if(!(e instanceof Array))throw new Error("ring不是数组类型!");for(var n=0;n<e.length;n++)if(e[n]instanceof u.default)r.push(e[n].coordinates);else{if(!(e[n]instanceof Array&&e[n].length>=2))throw new Error("ring中的点不是数组或Point类型!");r.push(e[n])}var o=i.lineString(r);return t=i.booleanClockwise(o),t}},{key:"_isValidate",value:function(e,t){var r=this.coordinates.length;if(!(0,a.isNumber)(e)||e<0||e>=r)return!1;var n=this.coordinates[e].length;return!(!(0,a.isNumber)(t)||t<0||t>=n)}},{key:"_cloneCoordinates",value:function(){return JSON.parse(JSON.stringify(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,c.calcExtent)(e,t,s.GeometryType.polygon,this.spatialReference)}},{key:"_isSelfIntersecting",value:function(){var e=i.polygon(this.coordinates);return i.kinks(e).features.length>0}},{key:"_setCentroid",value:function(){var e=i.polygon(this.coordinates),t=i.centroid(e);if(this.hasZ){for(var r=0,n=0,o=0;o<this.coordinates.length;o++){r+=this.coordinates[o].length;for(var a=0;a<this.coordinates[o].length;a++)n+=this.coordinates[o][a][2]}return n/=r,new u.default({coordinates:[t.geometry.coordinates[0],t.geometry.coordinates[1],n],spatialReference:this.spatialReference})}return new u.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 l.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,a.defaultValue)(e,{}))}}]),t}();Object.defineProperties(h.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=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEncoded=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=r(3),i=function(e){return e&&e.__esModule?e:{default:e}}(r(63)),o=r(0),a=r(2),s=r(25);function u(e,t,r){for(var i="",a=function(a){var s=(0,o.defaultValue)(t[e[a]],r[e[a]].default);if(void 0!==s){var u="";if((0,o.isNull)(r[e[a]].process))switch(r[e[a]].type){case"String":case"Number":case"Boolean":i+="&"+(r[e[a]].alias||e[a])+"="+encodeURIComponent(s);break;case"Geometry":case"Point":case"MultiPoint":case"Extent":case"Circle":case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":i+="&"+e[a]+"="+encodeURIComponent(s.toString())+"&geometryType="+encodeURIComponent(s.getIGSType());break;case"layerDefs":u="[";for(var l=function(e){s[e]instanceof Object&&!(s[e]instanceof Array)&&(u+="{",Object.keys(s[e]).forEach(function(t){s[e].hasOwnProperty(t)&&(u+='"'+t+'":"'+s[e][t]+'",')}),u=u.substring(0,u.length-1),u+="},")},c=0;c<s.length;c++)l(c);s.length>0&&(u=u.substring(0,u.length-1)),"[]"!==(u+="]")&&(i+="&"+e[a]+"="+encodeURIComponent(u));break;case"OutStatistics":u+="[";for(var f=function(e){s[e]instanceof Object&&!(s[e]instanceof Array)&&(u+="{",Object.keys(s[e]).forEach(function(t){s[e].hasOwnProperty(t)&&("statisticType"!==t&&"onStatisticField"!==t&&"outStatisticFieldName"!==t||(u+='"'+t+'":"'+s[e][t]+'",'))}),u=u.substring(0,u.length-1),u+="},")},h=0;h<s.length;h++)f(h);s.length>0&&(u=u.substring(0,u.length-1)),"[]"!==(u+="]")&&(i+="&"+e[a]+"="+encodeURIComponent(u));break;case"FeatureSet":u="&"+e[a]+"="+encodeURIComponent(JSON.stringify(t[e[a]].toGeoJSON())),i+=u;break;case"FeatureCollection":case"Array":case"Object":i+="&"+e[a]+"="+encodeURIComponent(JSON.stringify(t[e[a]]));break;default:i+="&"+e[a]+"="+encodeURIComponent(s)}else if("string"==typeof r[e[a]].process)switch(r[e[a]].process){case"igsGeometryServer":i+="&"+e[a]+"="+encodeURIComponent(JSON.stringify(s.toGeoJSON()))+"&srs=",s.spatialReference?s.spatialReference instanceof n.SpatialReference?i+=encodeURIComponent(s.spatialReference.toString()):s.spatialReference instanceof Object&&!(s.spatialReference instanceof Array)?i+=encodeURIComponent(s.spatialReference.wkt?s.spatialReference.wkt:"EPSG:4326"):"string"==typeof s.spatialReference&&(i+=encodeURIComponent(s.spatialReference)):i+=encodeURIComponent("EPSG:4326");break;case"igsGeometryServerNoSRS":i+="&"+e[a]+"="+encodeURIComponent(JSON.stringify(s.toGeoJSON()));break;case"igsRange$":i+="&"+(r[e[a]].alias||e[a])+"="+encodeURIComponent(s.toIGSOldString());break;case"igsGeometryOld":"Point"===s.type||"LineString"===s.type?"Point"===s.type&&!0===s.hasZ?i+="&"+e[a]+"="+encodeURIComponent(s.toString()+","+(t.distance||r.distance.default))+"&geometryType="+encodeURIComponent(s.getIGSType()):i+="&"+e[a]+"="+encodeURIComponent(s.toString()+";"+(t.distance||r.distance.default))+"&geometryType="+encodeURIComponent(s.getIGSType()):i+="&"+e[a]+"="+encodeURIComponent(s.toString())+"&geometryType="+encodeURIComponent(s.getIGSType());break;default:i+="&"+e[a]+"="+encodeURIComponent(s.toString())+"&geometryType="+encodeURIComponent(s.getIGSType())}else r[e[a]].process instanceof Function&&(i+=r[e[a]].process(t[e[a]],r[e[a]].default))}},s=0;s<e.length;s++)a(s);return i}function l(e,t,r){for(var n={},i=0;i<e.length;i++){var a=(0,o.defaultValue)(t[e[i]],r[e[i]].default);if(void 0!==a)if((0,o.isNull)(r[e[i]].process))switch(r[e[i]].type){case"String":case"Number":case"Boolean":default:n[r[e[i]].alias||e[i]]=a;break;case"Geometry":case"Point":case"MultiPoint":case"Extent":case"Circle":case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":n[r[e[i]].alias||e[i]]=a.toString()+"&geometryType="+a.getIGSType()}else if("string"==typeof r[e[i]].process)switch(r[e[i]].process){case"igsDots":n[r[e[i]].alias||"Dots"]=a.toDots();break;case"toOldIGSGeometry":switch(a.type){case"Point":n[r[e[i]].alias||"Pnt"]=a.toOldIGSGeometry().PntGeom[0];break;case"LineString":n[r[e[i]].alias||"Line"]=a.toOldIGSGeometry().LinGeom[0];break;case"Polygon":n[r[e[i]].alias||"Reg"]=a.toOldIGSGeometry().RegGeom[0]}break;default:n[r[e[i]].alias||e[i]]=a}else r[e[i]].process instanceof Function&&(n[e[i]]=r[e[i]].process(t[e[i]],r[e[i]].default))}return encodeURIComponent(JSON.stringify(n))}function c(e,t){if("function"==typeof e)return e(t);var r=void 0;switch(e){case"String":r=(0,o.isString)(t);break;case"Number":r=(0,o.isNumber)(t);break;case"Boolean":r=(0,o.isBoolean)(t);break;case"Extent":r=t instanceof n.Extent;break;case"Geometry":r=t instanceof n.Geometry;break;case"Point":r=t instanceof n.Point;break;case"Polygon":r=t instanceof n.Polygon;break;case"MultiPolygon":r=t instanceof n.MultiPolygon;break;case"Circle":r=t instanceof n.Circle;break;case"LineString":r=t instanceof n.LineString;break;case"MultiLineString":r=t instanceof n.MultiLineString;break;case"LineString | MultiLineString":r=t instanceof n.LineString||t instanceof n.MultiLineString;break;case"Polygon | Extent":r=t instanceof n.Polygon||t instanceof n.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,o.isNull)(e[t].statisticType)||(0,o.isNull)(e[t].onStatisticField)||(0,o.isNull)(e[t].outStatisticFieldName))return!1;if(!(0,o.isString)(e[t].statisticType)||!(0,o.isString)(e[t].onStatisticField)||!(0,o.isString)(e[t].outStatisticFieldName))return!1}return!0}(t);break;case"FeatureSet":r=t instanceof a.FeatureSet;break;case"FeatureCollection":r=t instanceof Object&&!(t instanceof Array)&&t.hasOwnProperty("features")&&"FeatureCollection"===t.type;break;case"Color":r=t instanceof a.Color;break;default:r=(0,o.isString)(t)}return r}function f(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 h(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===a.WMTSCorporation.corporationZD?f(e,r.version):(r.corporation,a.WMTSCorporation.corporationArcGIS,f(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 p(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]=p(e.childNodes[n]);0===e.childNodes.length&&(t[e.nodeName]=e.textContent)}return t}function d(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,i=new a.FeatureSet({spatialReference:new n.SpatialReference("EPSG:0000")}),o=void 0,s=void 0,u=void 0,l=0;l<t.length;l++){for(var c={},f=0;f<t[l].AttValue.length;f++)""!==t[l].AttValue[f]&&(c[r.FldName[f]]=t[l].AttValue[f]);if(t[l].fGeom)switch(t[l].ftype){case 1:var h=t[l].fGeom.PntGeom;u=[];for(var p=0;p<h.length;p++){var d=h[p].Dot;u.push([d.x,d.y])}s=new n.MultiPoint({coordinates:u});break;case 2:var y=t[l].fGeom.LinGeom;u=[];for(var g=0;g<y.length;g++){for(var v=y[g].Line.Arcs[0].Dots,m=[],_=0;_<v.length;_++)m.push([v[_].x,v[_].y]);u.push(m)}s=new n.MultiLineString({coordinates:u});break;case 3:default:var b=t[l].fGeom.RegGeom;u=[];for(var S=0;S<b.length;S++){for(var x=b[S].Rings[0].Arcs[0].Dots,w=[],O=0;O<x.length;O++)w.push([x[O].x,x[O].y]);for(var E=[w],P=1;P<b[S].Rings.length;P++){for(var k=b[S].Rings[P].Arcs[0].Dots,T=[],I=0;I<k.length;I++)T.push([k[I].x,k[I].y]);E.push(T)}u.push(E)}s=new n.MultiPolygon({coordinates:u})}var M=void 0;if(t[l].GraphicInfo){var L=t[l].GraphicInfo;switch(L.InfoType){case 1:M=L.PntInfo;break;case 2:M=L.LinInfo;break;case 3:default:M=L.RegInfo}}o=new a.Feature({id:t[l].FID,attributes:c,geometry:s,symbol:M}),i.features.push(o)}return i}if(e instanceof Array){for(var r=[],i=0;i<e.length;i++)r.push(t(e[i]));return r}return[t(e)]},t.checkParam=function(e,t){var r=!0,n="",a="",s=void 0,f="";try{var h=!0;if(Object.keys(t).forEach(function(r){if(e.hasOwnProperty(r)&&t.hasOwnProperty(r)||t.hasOwnProperty(r)&&t[r].required){if(t[r].required)if((0,o.isNull)(t[r].oneOf)){if((0,o.isNull)(e[r]))throw s=r,new Error("isNull")}else{var n=!1;(0,o.isNull)(e[r])&&(n=!0);for(var i=0;i<t[r].oneOf.length;i++)if(!(0,o.isNull)(e[t[r].oneOf[i]])){n=!1;break}if(n)throw s=r+","+t[r].oneOf.toString(),new Error("isNull")}if((0,o.isNull)(e[r])||(h=c(t[r].type,e[r])),!h)throw s=r,new Error("wrongType")}}),h){var p=[];Object.keys(t).forEach(function(e){t.hasOwnProperty(e)&&p.push(e)}),f=e.useObject?l(p,e,t):u(p,e,t)}}catch(e){switch(r=!1,e.message){case"isNull":n=s+"值不能为空!",a="isNull",i.default.error(n);break;case"wrongType":n=s+"类型错误!",a="isWrongType",i.default.error(n);break;default:n=s+"值不能为空!",a="isNull",i.default.error(n)}}return{isChecked:r,errorMessage:n,errorType:a,queryString:f}},t.getParameters=u,t.checkPathParameters=function(e,t){var r="",n="",a=!0;try{Object.keys(e).forEach(function(n){if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n))throw r="isNull",a=!1,new Error(n+"不能为空!");var i=t[n];if((0,o.isNull)(i))throw r="isNull",a=!1,new Error(n+"不能为空!");if(!c(e[n].type,t[n]))throw r="isWrongType",a=!1,new Error(n+"类型错误!")}})}catch(e){return i.default.error(e),{isChecked:a,errorMessage:n=e,errorType:r}}return{isChecked:a,errorMessage:n,errorType:r}},t.getWMSInfoFromXML=function(e,t,r){var n=(0,s.initCorporationType)(r),i="1.0";n===a.WMTSCorporation.corporationZD&&r.indexOf("igs/rest/ogc/doc")<0&&(i="2.0");for(var o={boundingBox:[],layer:[],crs:[]},u=e.childNodes,l=0;l<u.length;l++)if(("WMT_MS_Capabilities"===u[l].nodeName||"WMS_Capabilities"===u[l].nodeName)&&u[l].childNodes.length>0){for(var c=u[l].childNodes,f=0;f<c.length;f++)if("Capability"===c[f].nodeName){for(var p=c[f].childNodes,d=0;d<p.length;d++)if("Layer"===p[d].nodeName){for(var y=p[d].childNodes,g=0;g<y.length;g++)if("Layer"===y[g].nodeName){for(var v=y[g].childNodes,m={boundingBox:[],crs:[]},_=0;_<v.length;_++)h(v[_],m,{corporation:n,version:t,igsVersion:i});o.layer.push(m)}else h(y[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 f={},h=0;h<l[c].childNodes.length;h++)"ows:LowerCorner"===l[c].childNodes[h].nodeName&&(f.lowerCorner=l[c].childNodes[h].innerHTML),"ows:UpperCorner"===l[c].childNodes[h].nodeName&&(f.upperCorner=l[c].childNodes[h].innerHTML);u.boundingBox=f}else if("Style"===l[c].nodeName){for(var d={},y=0;y<l[c].childNodes.length;y++)"ows:Identifier"===l[c].childNodes[y].nodeName&&(d.identifier=l[c].childNodes[y].innerHTML),"ows:Title"===l[c].childNodes[y].nodeName&&(d.title=l[c].childNodes[y].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 g=l[c].childNodes,v={tileMatrixSetLimits:[]},m=0;m<g.length;m++)if("TileMatrixSet"===g[m].nodeName)v.tileMatrixSet=g[m].innerHTML;else if("TileMatrixSetLimits"===g[m].nodeName)for(var _=g[m].childNodes,b=0;b<_.length;b++){for(var S=_[b].childNodes,x={},w=0;w<S.length;w++)"TileMatrix"===S[w].nodeName?x.tileMatrix=S[w].innerHTML:"MinTileRow"===S[w].nodeName?x.minTileRow=S[w].innerHTML:"MaxTileRow"===S[w].nodeName?x.maxTileRow=S[w].innerHTML:"MinTileCol"===S[w].nodeName?x.minTileCol=S[w].innerHTML:"MaxTileCol"===S[w].nodeName&&(x.maxTileCol=S[w].innerHTML);v.tileMatrixSetLimits.push(x)}u.tileMatrixSetLink.push(v)}r.layers.push(u)}else if("TileMatrixSet"===a[s].nodeName){for(var O=a[s].childNodes,E={tileMatrix:[]},P=0;P<O.length;P++)if("ows:Title"===O[P].nodeName)E.title=O[P].innerHTML;else if("ows:Abstract"===O[P].nodeName)E.abstract=O[P].innerHTML;else if("ows:Identifier"===O[P].nodeName)E.identifier=O[P].innerHTML;else if("ows:SupportedCRS"===O[P].nodeName)E.supportedCRS=O[P].innerHTML;else if("TileMatrix"===O[P].nodeName){for(var k=O[P].childNodes,T={},I=0;I<k.length;I++)"ows:Identifier"===k[I].nodeName?T.identifier=k[I].innerHTML:"ScaleDenominator"===k[I].nodeName?T.scaleDenominator=k[I].innerHTML:"TopLeftCorner"===k[I].nodeName?T.topLeftCorner=k[I].innerHTML:"TileWidth"===k[I].nodeName?T.tileWidth=k[I].innerHTML:"TileHeight"===k[I].nodeName?T.tileHeight=k[I].innerHTML:"MatrixWidth"===k[I].nodeName?T.matrixWidth=k[I].innerHTML:"MatrixHeight"===k[I].nodeName&&(T.matrixHeight=k[I].innerHTML);E.tileMatrix.push(T)}r.tileMatrixSets.push(E)}r.XMLInfo[i[o].nodeName]=p(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={},f=u[l].childNodes,h=0;h<f.length;h++)"name"===f[h].nodeName.toLowerCase()?c.name=f[h].innerHTML:"title"===f[h].nodeName.toLowerCase()?c.title=f[h].innerHTML:"abstract"===f[h].nodeName.toLowerCase()?c.abstract=f[h].innerHTML:"defaultsrs"===f[h].nodeName.toLowerCase()?c.defaultSRS=f[h].innerHTML:"ows:wgs84boundingbox"===f[h].nodeName.toLowerCase()&&(c.WGS84BoundingBox={lowerCorner:f[h].childNodes[0].innerHTML,UpperCorner:f[h].childNodes[1].innerHTML});r.featureTypeList.push(c)}break}return r},t.getParametersObject=l,t.getWFSFeature=function(e,t){var r=e.childNodes[0].childNodes,i=new a.FeatureSet;t=(0,o.defaultValue)(t,"2.0.0");for(var s=0;s<r.length;s++){for(var u=r[s].childNodes[0].childNodes,l={},c=void 0,f=0;f<u.length;f++)if(u[f].nodeName.indexOf(":the_geom")>-1){var h=u[f],p=d(h.childNodes[0]),y=Number(p.split(":")[1]);if(i.spatialReference=new n.SpatialReference(p),h.childNodes[0].nodeName.indexOf("MultiSurface")>-1){var g=h.childNodes[0].childNodes;if(1===g.length){for(var v=g[0].childNodes[0].childNodes,m=0;m<v.length;m++)if(v[m].nodeName.indexOf("exterior")>-1){var _=v[m].childNodes[0].childNodes[0].innerHTML.split(" "),b=[];switch(t){case"2.0.0":case"1.1.0":default:for(var S=0;S<_.length;S+=2)[4326,4490,4610,4214].indexOf(y)>-1||y>=2327&&y<=2442||y>=4491&&y<=4554||y>=21413&&y<=21423||y>=21473&&y<=21483?b.push([Number(_[S+1]),Number(_[S])]):b.push([Number(_[S]),Number(_[S+1])]);break;case"1.0.0":for(var x=0;x<_.length;x+=2)b.push([Number(_[x]),Number(_[x+1])])}c=new n.Polygon({coordinates:[b],spatialReference:new n.SpatialReference(p)})}}else g.length}else if(h.childNodes[0].nodeName.indexOf("MultiCurve")>-1){var w=h.childNodes[0].childNodes;if(1===w.length){for(var O=w[0].childNodes[0].childNodes,E=0;E<O.length;E++)if(O[E].nodeName.indexOf("posList")>-1){var P=O[E].innerHTML.split(" "),k=[];switch(t){case"2.0.0":case"1.1.0":default:if([4326,4490,4610,4214].indexOf(y)>-1||y>=2327&&y<=2442||y>=4491&&y<=4554||y>=21413&&y<=21423||y>=21473&&y<=21483)for(var T=0;T<P.length;T+=2)k.push([Number(P[T+1]),Number(P[T])]);else for(var I=0;I<P.length;I+=2)k.push([Number(P[I]),Number(P[I+1])]);break;case"1.0.0":for(var M=0;M<P.length;M+=2)k.push([Number(P[M]),Number(P[M+1])])}c=new n.LineString({coordinates:k,spatialReference:new n.SpatialReference(p)})}}else w.length}else if(h.childNodes[0].nodeName.indexOf("MultiPoint")>-1){var L=h.childNodes[0].childNodes;if(1===L.length){var C=L[0].childNodes[0].childNodes[0].innerHTML.split(" "),N=void 0;switch(t){case"2.0.0":case"1.1.0":default:N=[4326,4490,4610,4214].indexOf(y)>-1||y>=2327&&y<=2442||y>=4491&&y<=4554||y>=21413&&y<=21423||y>=21473&&y<=21483?[Number(C[1]),Number(C[0])]:[Number(C[0]),Number(C[1])];break;case"1.0.0":N=[Number(C[0]),Number(C[1])]}c=new n.Point({coordinates:N,spatialReference:new n.SpatialReference(p)})}else L.length}}else{var R=u[f].nodeName;l[R=R.split(":")[1]]=u[f].innerHTML}var j=new a.Feature({geometry:c,attributes:l});i.features.push(j)}return i},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,o.defaultValue)(t,"");var r=e.request.interceptors,n=decodeURI(t);if(r&&r instanceof Array)for(var i="",a=0;a<r.length;a++){var s=r[a].urls,u=r[a].before;if(s){if("string"==typeof s){var l=decodeURI(s);if(n.indexOf(l)>-1&&u&&u instanceof Function){var c=u(t);c&&(i+=c)}}else if(s instanceof Array)for(var f=0;f<s.length;f++){var h=decodeURI(s[f]);if(n.indexOf(h)>-1&&u&&u instanceof Function){var p=u(t);p&&(i+=p)}}}else if(u&&u instanceof Function){var d=u(t);d&&(i+=d)}i&&(t=i)}return t},t.ServiceConfigResponseInterceptors=function(e,t,r){t=(0,o.defaultValue)(t,"");var n=e.request.interceptors,i=decodeURI(t);if(n&&n instanceof Array)for(var a=0;a<n.length;a++){var s=n[a].urls,u=n[a].after;if(!s||s instanceof Array&&0===s.length){if(u&&u instanceof Function){var l=u(r);if(l)return l}}else if("string"==typeof s){var c=decodeURI(s);if(i.indexOf(c)>-1&&u&&u instanceof Function){var f=u(r);if(f)return f}}else if(s instanceof Array)for(var h=0;h<s.length;h++){var p=decodeURI(s[h]);if(i.indexOf(p)>-1&&u&&u instanceof Function){var d=u(r);if(d)return d}}}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("|")},t.isEncoded=function(e){try{return decodeURI(e),!0}catch(e){return!1}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.default=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,n.defaultValue)(t,{}),(0,n.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(0),i=l(r(30)),o=l(r(68)),a=l(r(405)),s=l(r(407)),u=l(r(409));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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(3),o=r(0),a=c(r(69)),s=c(r(41)),u=r(1),l=r(2);function c(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 h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,null,[{key:"parseTileInfo1",value:function(e){e||o.Log.error("tileInfo未定义");var t=e.tileWidth,r=e.tileHeight,n=e.lods,u=e.originX,l=e.originY,c=e.startLevel,h=e.endLevel;return new s.default({origin:new i.Point({coordinates:[u,l]}),lods:f(n,c,h).map(function(e){return a.default.fromJSON(e)}),size:[t,r]})}},{key:"parseTileInfo2",value:function(e){e||o.Log.error("tileInfo未定义");var t=e.cols,r=e.rows,n=e.dpi,u=e.format,l=e.origin,c=e.lods,h=e.spatialReference,p=e.startLevel,d=e.endLevel;return new s.default({dpi:n,format:u,origin:new i.Point({coordinates:[l.x,l.y],spatialReference:new i.SpatialReference(h)}),lods:f(c,p,d).map(function(e){return a.default.fromJSON(e)}),size:[t,r],spatialReference:new i.SpatialReference(h)})}},{key:"parseArcgisTileInfo",value:function(e){e||o.Log.error("tileInfo未定义");var t=e.cols,r=e.rows,n=e.dpi,u=e.format,l=e.origin,c=e.lods,f=e.spatialReference;return new s.default({dpi:n,format:u,origin:new i.Point({coordinates:[l.x,l.y],spatialReference:new i.SpatialReference({wkid:f.latestWkid||f.wkid})}),lods:c.map(function(e){return a.default.fromJSON(e)}),size:[t,r],spatialReference:new i.SpatialReference({wkid:f.latestWkid||f.wkid})})}},{key:"parseWMSTileInfo",value:function(t){t||o.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||o.Log.error("动态计算tileInfo传入参数不合法");var n=Math.max(e.ymax-e.ymin,e.xmax-e.xmin)/t,u=[];u.push(n);for(var l=0;l<20;l++)u.push(u[l]/2);var c=new i.Point({coordinates:[e.xmin,e.ymax],spatialReference:r});return new s.default({origin:c,lods:u.map(function(e,t){return a.default.fromJSON({level:t,resolution:e,scale:96*e/.0254})}),size:[t,t],spatialReference:r})}},{key:"parseWebTileLayerInfo",value:function(e,t,r){e||o.Log.error("IGSMapImageLayer未定义"),r=(0,o.defaultValue)(r,2);var n=e.tileSize,u=(t.xmax-t.xmin)/r/n,l=[];l.push(u);for(var c=0;c<19;c++)l.push(l[c]/2);var f=new i.Point({coordinates:[t.xmin,t.ymax],spatialReference:e.spatialReference}),h=1;return e.spatialReference.isGeographic&&(h=111319490.79327358),new s.default({origin:f,lods:l.map(function(e,t){return a.default.fromJSON({level:t,resolution:e,scale:h*(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,o.defaultValue)(e.origin,new i.Point({coordinates:[t.xmin,t.ymax],spatialReference:r})),u=(0,o.defaultValue)(e.tileSize,256),l=(0,o.defaultValue)(e.minLevel,0),c=(0,o.defaultValue)(e.maxLevel,19),f=(0,o.defaultValue)(e.numberOfMinLevelTilesX,1),h=((0,o.defaultValue)(e.numberOfMinLevelTilesY,1),(t.xmax-t.xmin)/f/u),p=[];p.push(h);for(var d=l;d<c;d++)p.push(p[d]/2);var y=1;return r.isGeographic&&(y=111319490.79327358),new s.default({origin:n,lods:p.map(function(e,t){return a.default.fromJSON({level:t,resolution:e,scale:y*(96*e)/.0254})}),size:[u,u],spatialReference:r})}}},{key:"getLods",value:function(e,t,r){for(var n=Math.max(0,r),i=[],o=2*Math.PI*6378137/360,s=0;s<n;s++){var u=e/Math.pow(2,s),l=void 0;l="degree"===t?o*u:96*u/.0254,i.push(new a.default({level:s,resolution:u,scale:l}))}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===u.LayerType.igsTile||i.type===u.LayerType.arcgisTile||i.type===u.LayerType.wmts||i.type===u.LayerType.igsVectorTile||i.type===u.LayerType.arcgisVectorTile||i.type===u.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===u.LayerType.igsMapImage||a.type===u.LayerType.arcgisMapImage||a.type===u.LayerType.wms||a.type===u.LayerType.igsFeature||a.type===u.LayerType.wfs||a.type===u.LayerType.geojson)){r=a,t=a.spatialReference;break}}return r}},{key:"setLayerSpatialReference",value:function(e,t){t&&e.forEach(function(e){if((e.type===u.LayerType.igsMapImage||e.type===u.LayerType.arcgisMapImage||e.type===u.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=l.Projection.project(e._extentSrc,t))}})}},{key:"isSameSpatialReference",value:function(e,t){var r=!1,n=void 0,o=void 0,a=void 0,s=void 0,u=void 0,l=void 0;return void 0!==e&&void 0!==t&&(e instanceof i.SpatialReference?(n=e.wkt?e.wkt.toString():void 0,o=e.wkid?e.wkid.toString():void 0):a=e.toString(),t instanceof i.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:o&&u&&(o===u||["4326","4490","4610","4214"].indexOf(o)>-1&&["4326","4490","4610","4214"].indexOf(u)>-1||["102113","102100","900913","3857"].indexOf(o)>-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===u.LayerType.wmts)r=t.getCurrentTileInfo();else if(t.type===u.LayerType.wms)r=e.parseWMSTileInfo(t,t.extent);else if(t.type===u.LayerType.igsMapImage||t.type===u.LayerType.arcgisMapImage||t.type===u.LayerType.igsFeature||t.type===u.LayerType.wfs||t.type===u.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=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(0),a=r(17);var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),n=(0,o.defaultValue)(e,{});return r.view=n.view,r.view||o.Log.error("视图对象不存在!"),r.layer=n.layer,r.layer||o.Log.error("图层对象不存在!"),r.innerLayer=null,r.id=r.layer.id,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Evented),n(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,a.getLayerViewScaleVisible)(this);t=e&&r}else t=e;return t}}]),t}();Object.defineProperties(s.prototype,{innerView:{get:function(){return this.view.getInnerView()}}}),t.default=s},function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return i});var n=/[\s_\-\/\(\)]/g;function i(e,t){if(e[t])return e[t];for(var r,i=Object.keys(e),o=t.toLowerCase().replace(n,""),a=-1;++a<i.length;)if((r=i[a]).toLowerCase().replace(n,"")===o)return e[r]}},function(e,t,r){"use strict";r.r(t);var n=r(4);t.default=function(e,t,r){var i=e*r,o=.5*e;return i=Math.pow((1-i)/(1+i),o),Math.tan(.5*(n.HALF_PI-t))/i}},function(e,t,r){"use strict";r.r(t);var n=r(4);t.default=function(e,t){for(var r,i,o=.5*e,a=n.HALF_PI-2*Math.atan(t),s=0;s<=15;s++)if(r=e*Math.sin(a),a+=i=n.HALF_PI-2*Math.atan(t*Math.pow((1-r)/(1+r),o))-a,Math.abs(i)<=1e-10)return a;return-9999}},function(e,t,r){"use strict";r.r(t),t.default=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))}},function(e,t,r){"use strict";r.r(t),t.default=function(e,t,r,n,i){return e*i-t*Math.sin(2*i)+r*Math.sin(4*i)-n*Math.sin(6*i)}},function(e,t,r){"use strict";r.r(t),t.default=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))}},function(e,t,r){"use strict";r.r(t),t.default=function(e){return.375*e*(1+.25*e*(1+.46875*e))}},function(e,t,r){"use strict";r.r(t),t.default=function(e){return.05859375*e*e*(1+.75*e)}},function(e,t,r){"use strict";r.r(t),t.default=function(e){return e*e*e*(35/3072)}},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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(1);var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,null,[{key:"info",value:function(){if([i.LogType.info,i.LogType.all,i.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([i.LogType.error,i.LogType.all,i.LogType.infoAndError,i.LogType.warningAndError].indexOf(window.zondy.LOGTYPE)>-1){var e=Array.prototype.slice.call(arguments);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.error.apply(console,e)}}},{key:"warning",value:function(){if([i.LogType.warning,i.LogType.warningAndError,i.LogType.all].indexOf(window.zondy.LOGTYPE)>-1){var e=Array.prototype.slice.call(arguments);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=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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]:{},n=void 0,i=void 0,o=void 0,a=[];return function(){var s=function(e){return"function"==typeof e?e():e}(t),u=(new Date).getTime(),l=!n||u-n>s;n=u;for(var c=arguments.length,f=Array(c),h=0;h<c;h++)f[h]=arguments[h];if(l&&r.leading)return r.accumulate?Promise.resolve(e.call(this,[f])).then(function(e){return e[0]}):Promise.resolve(e.call.apply(e,[this].concat(f)));if(i?clearTimeout(o):i=function(){var e={};return e.promise=new Promise(function(t,r){e.resolve=t,e.reject=r}),e}(),a.push(f),o=setTimeout(function(){var t=i;clearTimeout(o),Promise.resolve(r.accumulate?e.call(this,a):e.apply(this,a[a.length-1])).then(t.resolve,t.reject),a=[],i=null}.bind(this),s),r.accumulate){var p=a.length-1;return i.promise.then(function(e){return e[p]})}return i.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}},n=e.map(function(e){return Promise.resolve(e).then(r,t)});return Promise.all(n)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(1),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(0);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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(0),a=r(10);var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,o.defaultValue)(t,{}),this.symbol=new a.MapGISTextSymbol(t.symbol),this.renderMode=(0,o.defaultValue)(t.renderMode,"canvas"),this.deconflictionStrategy=(0,o.defaultValue)(t.deconflictionStrategy,"static"),this.maxScale=t.maxScale,this.minScale=t.minScale,this.elevationInfo=new i.ElevationInfo(t.elevationInfo),this.labelPlacement=t.labelPlacement,this.currentAttributeName=t.currentAttributeName,this.labelExpression=t.labelExpression,this.repeatLabel=(0,o.defaultValue)(t.repeatLabel,!0),this.repeatLabelDistance=(0,o.defaultValue)(t.repeatLabelDistance,6e3),this.repeatStartRate=(0,o.defaultValue)(t.repeatStartRate,.3),this.repeatEndRate=(0,o.defaultValue)(t.repeatEndRate,.7),this.lineLabelSpread=(0,o.defaultValue)(t.lineLabelSpread,"auto-spread"),this.labelPositionAlong=(0,o.defaultValue)(t.labelPositionAlong,"middle"),this.skeletonLineStartRate=(0,o.defaultValue)(t.skeletonLineStartRate,.4),this.skeletonLineEndRate=(0,o.defaultValue)(t.skeletonLineEndRate,.6),this.groundScale=(0,o.defaultValue)(t.groundScale,20),this.extensionOptions=(0,o.defaultValue)(t.extensionOptions,{})}return n(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,o.cloneObject)(this.extensionOptions)}}},{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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(30)),o=r(0),a=r(50);var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,o.defaultValue)(t,{}),this.type=i.default.default,this.field=(0,o.defaultValue)(t.field,""),this.valueExpression=(0,o.defaultValue)(t.valueExpression,""),this.valueExpressionTitle=(0,o.defaultValue)(t.valueExpressionTitle,"")}return n(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,o.defaultValue)(e,{}),(0,a.createVisualVariable)(e)}}]),e}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.level=t.level,this.resolution=t.resolution,this.scale=t.scale}return n(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=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(7);var a=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.version=(0,i.defaultValue)(e.version,""),r.customParameters=(0,i.defaultValue)(e.customParameters,{}),r.customLayerParameters=(0,i.defaultValue)(e.customLayerParameters,{}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Layer),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.version=this.version,e.customParameters=JSON.parse(JSON.stringify(this.customParameters)),e.customLayerParameters=JSON.parse(JSON.stringify(this.customLayerParameters)),e}}]),t}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlUtil=t.deleteNullValue=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=function(e){return e&&e.__esModule?e:{default:e}}(r(99)),i=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(15)),o=r(11),a=r(92),s=r(38),u=r(3),l=r(2),c=r(0),f=r(1),h=r(10),p=r(452),d=r(458),y=r(465);window.zondy={};var g=window.zondy;g.service={},g.geometry={},g.layer={},g.enum={},g.symbol={},g.widget={},g.tool={},g.renderer={},g.renderer.visualvariable={},g.themelayer={},g.util={},g.video={},g.LOGTYPE="warningAndError",g.VERSION="17.2.11",g.service.FetchServer=o.FetchServer,g.service.RequestInterceptor=o.RequestInterceptor,g.service.ResponseInterceptor=o.ResponseInterceptor,g.service.MapServer=o.MapServer,g.service.FeatureServer=o.FeatureServer,g.service.M3DServer=o.M3DServer,g.service.ImageServer=o.ImageServer,g.service.GeometryServer=o.GeometryServer,g.service.AddressServer=o.AddressServer,g.service.Cesium3DTilesServer=o.Cesium3DTilesServer,g.service.PoiServer=o.PoiServer,g.service.TerrainServer=o.TerrainServer,g.service.SecurityServer=o.SecurityServer,g.service.RootServer=o.RootServer,g.service.TileServer=o.TileServer,g.service.VectorTileServer=o.VectorTileServer,g.service.PlotServer=o.PlotServer,g.service.ResourceServer=o.ResourceServer,g.service.SceneServer=o.SceneServer,g.service.WMSServer=o.WMSServer,g.service.WMTSServer=o.WMTSServer,g.service.WFSServer=o.WFSServer,g.service.ArcGISMapServer=o.ArcGISMapServer,g.service.ThemeServer=o.ThemeServer,g.service.ArcGISGeometryServer=o.ArcGISGeometryServer,g.service.ArcGISFeatureServer=o.ArcGISFeatureServer,g.service.ArcGISVectorTileServer=o.ArcGISVectorTileServer,g.service.Config=o.Config,g.service.FetchRequest=o.FetchRequest,g.service.GeometryFilter=o.GeometryFilter,g.service.Interceptor=o.Interceptor,g.service.WorkFlowServer=o.WorkFlowServer,g.service.BaseServer=o.BaseServer,g.service.RequestConfig=o.RequestConfig,g.themelayer.CAllOtherDataItemInfoSource=o.CAllOtherDataItemInfoSource,g.themelayer.CAnnInfo=o.CAnnInfo,g.themelayer.CChartLabelFormat=o.CChartLabelFormat,g.themelayer.CChartTheme=o.CChartTheme,g.themelayer.CChartThemeInfo=o.CChartThemeInfo,g.themelayer.CChartThemeRepresentInfo=o.CChartThemeRepresentInfo,g.themelayer.CChartType=o.CChartType,g.themelayer.CDotDensityTheme=o.CDotDensityTheme,g.themelayer.CFourColorTheme=o.CFourColorTheme,g.themelayer.CGraduatedSymbolTheme=o.CGraduatedSymbolTheme,g.themelayer.CLinInfo=o.CLinInfo,g.themelayer.CMultiClassTheme=o.CMultiClassTheme,g.themelayer.CPntInfo=o.CPntInfo,g.themelayer.CRandomTheme=o.CRandomTheme,g.themelayer.CRangeTheme=o.CRangeTheme,g.themelayer.CRangeThemeInfo=o.CRangeThemeInfo,g.themelayer.CRegInfo=o.CRegInfo,g.themelayer.CSimpleTheme=o.CSimpleTheme,g.themelayer.CTheme=o.CTheme,g.themelayer.CThemeInfo=o.CThemeInfo,g.themelayer.CUniqueTheme=o.CUniqueTheme,g.themelayer.CUniqueThemeInfo=o.CUniqueThemeInfo,g.themelayer.ExpInfo=o.ExpInfo,g.themelayer.FolderInfo=o.FolderInfo,g.themelayer.FolderInfoAttribute=o.FolderInfoAttribute,g.themelayer.ItemValue=o.ItemValue,g.themelayer.ThemesInfo=o.ThemesInfo,g.layer.WMTSLayer=s.WMTSLayer,g.layer.WMSLayer=s.WMSLayer,g.layer.WMSSubLayer=s.WMSSubLayer,g.layer.WFSLayer=s.WFSLayer,g.layer.WMTSSubLayer=s.WMTSSubLayer,g.layer.VectorTileLayer=s.VectorTileLayer,g.layer.IGSVectorTileLayer=s.IGSVectorTileLayer,g.layer.IGSVectorTileSubLayer=s.IGSVectorTileSubLayer,g.layer.IGSMapImageLayer=s.IGSMapImageLayer,g.layer.IGSMapImageSubLayer=s.IGSMapImageSubLayer,g.layer.IGSSceneLayer=s.IGSSceneLayer,g.layer.IGSSceneSubLayer=s.IGSSceneSubLayer,g.layer.IGSTileLayer=s.IGSTileLayer,g.layer.Scene=s.Scene,g.layer.IGSFeatureLayer=s.IGSFeatureLayer,g.layer.EchartsLayer=s.EchartsLayer,g.layer.MapVLayer=s.MapVLayer,g.layer.GroupLayer=s.GroupLayer,g.layer.GraphicsLayer=s.GraphicsLayer,g.layer.GeoJSONLayer=s.GeoJSONLayer,g.layer.Cesium3DTilesCacheLayer=s.Cesium3DTilesCacheLayer,g.layer.TerrainCacheLayer=s.TerrainCacheLayer,g.layer.VideoLayer=s.VideoLayer,g.layer.LabelClass=s.LabelClass,g.layer.ArcGISMapImageLayer=s.ArcGISMapImageLayer,g.layer.ArcGISMapImageSubLayer=s.ArcGISMapImageSubLayer,g.layer.M3DModelCacheLayer=s.M3DModelCacheLayer,g.layer.ArcGISTileLayer=s.ArcGISTileLayer,g.layer.Layer=s.Layer,g.layer.ArcGISVectorTileLayer=s.ArcGISVectorTileLayer,g.layer.WebTileLayer=s.WebTileLayer,g.layer.TileInfo=s.TileInfo,g.layer.LOD=s.LOD,g.layer.TileLayer=s.TileLayer,g.layer.UnknownLayer=s.UnknownLayer,g.layer.OverlayLayer=s.OverlayLayer,g.layer.OGCLayer=s.OGCLayer,g.Map=s.Map,g.Basemap=s.Basemap,g.SpatialReference=u.SpatialReference,g.Color=l.Color,g.Collection=l.Collection,g.FeatureSet=l.FeatureSet,g.Feature=l.Feature,g.ElevationInfo=l.ElevationInfo,g.ProjectInfo=l.ProjectInfo,g.OutStatistic=l.OutStatistic,g.TileMatrixSet=l.TileMatrixSet,g.ProjectInfoBySrsID=l.ProjectInfoBySrsID,g.FeatureExpressionInfo=l.FeatureExpressionInfo,g.BaseView=p.BaseView,g.MapView=p.MapView,g.SceneView=p.SceneView,g.BaseFeatureLayerView=p.BaseFeatureLayerView,g.BaseRendererLayerView=p.BaseRendererLayerView,g.GroupLayerView=p.GroupLayerView,g.WMTSStyle=l.WMTSStyle,g.CAttDataRow=o.CAttDataRow,g.CAttStruct=o.CAttStruct,g.renderer.UniqueValueRenderer=s.UniqueValueRenderer,g.renderer.ClassBreakRenderer=s.ClassBreakRenderer,g.renderer.SimpleRenderer=s.SimpleRenderer,g.renderer.ClusterRenderer=s.ClusterRenderer,g.renderer.RandomRenderer=s.RandomRenderer,g.renderer.RankRenderer=s.RankRenderer,g.renderer.HeatmapRenderer=s.HeatmapRenderer,g.renderer.BaseRenderer=s.BaseRenderer,g.renderer.HeatmapColorStop=s.HeatmapColorStop,g.renderer.visualvariable.SizeVariable=s.SizeVariable,g.renderer.visualvariable.ColorVariable=s.ColorVariable,g.renderer.visualvariable.OpacityVariable=s.OpacityVariable,g.renderer.visualvariable.VisualVariable=s.VisualVariable,g.geometry.Extent=u.Extent,g.geometry.Polygon=u.Polygon,g.geometry.MultiPolygon=u.MultiPolygon,g.geometry.LineString=u.LineString,g.geometry.MultiLineString=u.MultiLineString,g.geometry.Point=u.Point,g.geometry.MultiPoint=u.MultiPoint,g.geometry.Circle=u.Circle,g.geometry.GeometryEngine=u.GeometryEngine,g.geometry.Geometry=u.Geometry,g.geometry.Projection=l.Projection,g.geometry.Proj4=n.default,g.geometry.T=i,g.enum.ReturnFormat=f.ReturnFormat,g.enum.FetchMethod=f.FetchMethod,g.enum.LayerEventType=f.LayerEventType,g.enum.MapEventType=f.MapEventType,g.enum.StatisticType=f.StatisticType,g.enum.SpatialRelation=f.SpatialRelation,g.enum.CustomWKID=f.CustomWKID,g.enum.LayerType=f.LayerType,g.enum.TokenAttachType=f.TokenAttachType,g.enum.IGSGeometryType=f.IGSGeometryType,g.enum.LogType=f.LogType,g.enum.LoadStatus=f.LoadStatus,g.enum.ViewEventType=f.ViewEventType,g.enum.LengthUnit=f.LengthUnit,g.enum.AngleUnit=f.AngleUnit,g.enum.RendererType=f.RendererType,g.enum.VectorTileGeometryType=f.VectorTileGeometryType,g.enum.VideoSourceType=f.VideoSourceType,g.enum.SketchDataType=f.SketchDataType,g.enum.SketchEditMode=f.SketchEditMode,g.enum.SketchEditorEventType=f.SketchEditorEventType,g.enum.SketchEditorState=f.SketchEditorState,g.enum.SketchEditorToolEventType=f.SketchEditorToolEventType,g.enum.IGSRendererType=f.IGSRendererType,g.enum.SymbolType=f.SymbolType,g.enum.IGSSymbolType=f.IGSSymbolType,g.enum.ElevationMode=f.ElevationMode,g.enum.HorizontalAlignment=f.HorizontalAlignment,g.enum.VerticalAlignment=f.VerticalAlignment,g.enum.SceneMode=f.SceneMode,g.enum.ShadowMode=f.ShadowMode,g.enum.UrlServerType=f.UrlServerType,g.enum.PictureFormat=f.PictureFormat,g.enum.RadiusUnit=f.RadiusUnit,g.enum.WMTSCorporation=f.WMTSCorporation,g.enum.Symbol3DLayerType=f.Symbol3DLayerType,g.enum.LineCapType=f.LineCapType,g.enum.LineJoinType=f.LineJoinType,g.enum.LineMarkerPlacement=f.LineMarkerPlacement,g.enum.LineMarkerStyle=f.LineMarkerStyle,g.enum.LinePatternStyle=f.LinePatternStyle,g.enum.AnchorType=f.AnchorType,g.enum.ProfileType=f.ProfileType,g.enum.PatternStyle=f.PatternStyle,g.enum.WaterbodySize=f.WaterbodySize,g.enum.WaveStrength=f.WaveStrength,g.enum.MaterialType=f.MaterialType,g.enum.LinearUnits=f.LinearUnits,g.enum.AreaUnits=f.AreaUnits,g.enum.ArcType=f.ArcType,g.enum.SceneSubLayerType=f.SceneSubLayerType,g.enum.ColorNameToHexMap=f.ColorNameToHexMap,g.enum.SeverVectorTileSubLayerType=f.SeverVectorTileSubLayerType,g.enum.GeometryType=f.GeometryType,g.enum.VisualVariableType=f.VisualVariableType,g.enum.TDTLayerType=f.TDTLayerType,g.enum.TileSliceType=f.TileSliceType,g.util.formatBaseUrl=o.formatBaseUrl,g.util.ServiceConfigToken=o.ServiceConfigToken,g.util.ServiceConfigRequestInterceptors=o.ServiceConfigRequestInterceptors,g.util.convertIGSClippingString=o.convertIGSClippingString,g.util.getUrlType=s.getUrlType,g.util.is4326=s.is4326,g.util.isCustomSP=s.isCustomSP,g.util.showLayerByScale=s.showLayerByScale,g.util.getIGSDynamicLayer=s.getIGSDynamicLayer,g.util.setElevationInfo=s.setElevationInfo,g.util.TileInfoUtil=s.TileInfoUtil,g.util.getZoomOffset=s.getZoomOffset,g.util.appendUrlParams=s.appendUrlParams,g.util.getFullBaseUrl=s.getFullBaseUrl,g.util.editFeatureByArc3=u.editFeatureByArc3,g.util.editGeometryByArc3=u.editGeometryByArc3,g.util.CoordnateTransform=l.CoordnateTransform,g.util.getFeaturesFromFeatureSet=l.getFeaturesFromFeatureSet,g.util.EPSG=l.EPSG,g.util.extend=c.extend,g.util.isArray=c.isArray,g.util.isNumber=c.isNumber,g.util.isInTheSameDomain=c.isInTheSameDomain,g.util.transformResult=c.transformResult,g.util.urlAppend=c.urlAppend,g.util.getParameterString=c.getParameterString,g.util.bind=c.bind,g.util.getGUID=c.getGUID,g.util.defaultValue=c.defaultValue,g.util.defined=c.defined,g.util.normalize=c.normalize,g.util.createGeometry=c.createGeometry,g.util.isNull=c.isNull,g.util.getGeometryParameter=c.getGeometryParameter,g.util.getOutStatisticsParameter=c.getOutStatisticsParameter,g.util.Log=c.Log,g.util.isString=c.isString,g.util.deepClone=c.deepClone,g.util.isBoolean=c.isBoolean,g.util.extendDeep=c.extendDeep,g.util.newGuid=c.newGuid,g.util.formatPoints=c.formatPoints,g.util.returnPoint=c.returnPoint,g.util.cloneObject=c.cloneObject,g.util.notNULL=c.notNULL,g.util.isObject=c.isObject,g.util.getVideoType=c.getVideoType,g.util.toJSON=c.toJSON,g.util.getBaseUrl=c.getBaseUrl,g.util.inputCss=c.inputCss,g.util.getProjectionSrs=c.getProjectionSrs,g.util.isWMSReverse=c.isWMSReverse,g.util.convertImageSourceToBase64=c.convertImageSourceToBase64,g.util.throttle=c.throttle,g.util.compareObject=c.compareObject,g.util.debouncePromise=c.debouncePromise,g.util.inOrderPromise=c.inOrderPromise,g.util.allSettled=c.allSettled,g.util.ExpressionParser=c.ExpressionParser,g.util.RendererUtil=p.RendererUtil,g.util.createSimpleMarkerSymbolCanvas=y.createSimpleMarkerSymbolCanvas,g.util.createSimpleFillSymbolCanvas=y.createSimpleFillSymbolCanvas,g.util.getValidLayers=a.getValidLayers,g.util.getLayerViewsGeographicExtent=a.getLayerViewsGeographicExtent,g.util.getCrsOptions=a.getCrsOptions,g.util.getLayersExtent=a.getLayersExtent,g.util.deleteNullValue=c.deleteNullValue,g.util.UrlUtil=o.UrlUtil,g.symbol.SimpleFillSymbol=h.SimpleFillSymbol,g.symbol.SimpleLineSymbol=h.SimpleLineSymbol,g.symbol.SimpleMarkerSymbol=h.SimpleMarkerSymbol,g.symbol.TextSymbol=h.TextSymbol,g.symbol.Symbol=h.Symbol,g.symbol.PictureMarkerSymbol=h.PictureMarkerSymbol,g.symbol.PictureFillSymbol=h.PictureFillSymbol,g.symbol.MapGISTextSymbol=h.MapGISTextSymbol,g.symbol.Symbol3D=h.Symbol3D,g.symbol.LabelSymbol3D=h.LabelSymbol3D,g.symbol.LineSymbol3D=h.LineSymbol3D,g.symbol.PointSymbol3D=h.PointSymbol3D,g.symbol.PolygonSymbol3D=h.PolygonSymbol3D,g.symbol.LineCallout3D=h.LineCallout3D,g.symbol.Callout3D=h.Callout3D,g.symbol.Symbol3DVerticalOffset=h.Symbol3DVerticalOffset,g.symbol.Symbol3DLayer=h.Symbol3DLayer,g.symbol.LineStyleMarker3D=h.LineStyleMarker3D,g.symbol.LineStylePattern3D=h.LineStylePattern3D,g.symbol.LineSymbol3DLayer=h.LineSymbol3DLayer,g.symbol.PathSymbol3DLayer=h.PathSymbol3DLayer,g.symbol.FillSymbol3DLayer=h.FillSymbol3DLayer,g.symbol.FillSymbol3DOutline=h.FillSymbol3DOutline,g.symbol.IconSymbol3DLayer=h.IconSymbol3DLayer,g.symbol.PointSymbol3DOutline=h.PointSymbol3DOutline,g.symbol.IconResource=h.IconResource,g.symbol.ObjectSymbol3DLayer=h.ObjectSymbol3DLayer,g.symbol.ExtrudeSymbol3DLayer=h.ExtrudeSymbol3DLayer,g.symbol.Edges3D=h.Edges3D,g.symbol.TextSymbol3DLayer=h.TextSymbol3DLayer,g.symbol.TextHalo=h.TextHalo,g.symbol.WaterSymbol3DLayer=h.WaterSymbol3DLayer,g.symbol.ColorMaterial=h.ColorMaterial,g.symbol.StylePattern3D=h.StylePattern3D,g.symbol.Font=l.Font,g.tool.sketch={},g.tool.sketch.SketchStyle=d.SketchStyle,g.tool.sketch.SketchEditorEvent=d.SketchEditorEvent,g.tool.sketch.SketchEditor=d.SketchEditor,g.tool.sketch.SketchEditor3D=d.SketchEditor3D,g.tool.sketch.SketchBaseDrawTool=d.SketchBaseDrawTool,g.tool.sketch.SketchPointDrawTool=d.SketchPointDrawTool,g.tool.sketch.SketchPolylineDrawTool=d.SketchPolylineDrawTool,g.tool.sketch.SketchPolygonDrawTool=d.SketchPolygonDrawTool,g.tool.sketch.SketchCircleDrawTool=d.SketchCircleDrawTool,g.tool.sketch.SketchExtentDrawTool=d.SketchExtentDrawTool,g.tool.sketch.SketchFreehandPolylineDrawTool=d.SketchFreehandPolylineDrawTool,g.tool.sketch.SketchFreehandPolygonDrawTool=d.SketchFreehandPolygonDrawTool,window.Zondy={};var v=window.Zondy;v.Service=g.service,v.Geometry=g.geometry,v.Layer=g.layer,v.Enum=g.enum,v.Symbol=g.symbol,v.Widget=g.widget,v.Tool={},v.Tool.Sketch=g.widget.sketch,v.Renderer={},Object.keys(g.renderer).forEach(function(e){"visualvariable"!==e&&(v.Renderer[e]=g.renderer[e])}),v.Renderer.VisualVariable=g.renderer.visualvariable,v.Object={},v.Object.Theme={},v.Object.Theme.CAllOtherDataItemInfoSource=o.CAllOtherDataItemInfoSource,v.Object.Theme.CAnnInfo=o.CAnnInfo,v.Object.Theme.CChartLabelFormat=o.CChartLabelFormat,v.Object.Theme.CChartTheme=o.CChartTheme,v.Object.Theme.CChartThemeInfo=o.CChartThemeInfo,v.Object.Theme.CChartThemeRepresentInfo=o.CChartThemeRepresentInfo,v.Object.Theme.CChartType=o.CChartType,v.Object.Theme.CDotDensityTheme=o.CDotDensityTheme,v.Object.Theme.CFourColorTheme=o.CFourColorTheme,v.Object.Theme.CGraduatedSymbolTheme=o.CGraduatedSymbolTheme,v.Object.Theme.CLinInfo=o.CLinInfo,v.Object.Theme.CMultiClassTheme=o.CMultiClassTheme,v.Object.Theme.CPntInfo=o.CPntInfo,v.Object.Theme.CRandomTheme=o.CRandomTheme,v.Object.Theme.CRangeTheme=o.CRangeTheme,v.Object.Theme.CRangeThemeInfo=o.CRangeThemeInfo,v.Object.Theme.CRegInfo=o.CRegInfo,v.Object.Theme.CSimpleTheme=o.CSimpleTheme,v.Object.Theme.CTheme=o.CTheme,v.Object.Theme.CThemeInfo=o.CThemeInfo,v.Object.Theme.CUniqueTheme=o.CUniqueTheme,v.Object.Theme.CUniqueThemeInfo=o.CUniqueThemeInfo,v.Object.Theme.ExpInfo=o.ExpInfo,v.Object.Theme.FolderInfo=o.FolderInfo,v.Object.Theme.FolderInfoAttribute=o.FolderInfoAttribute,v.Object.Theme.ItemValue=o.ItemValue,v.Object.Theme.ThemesInfo=o.ThemesInfo,v.Object.CAttDataRow=o.CAttDataRow,v.Object.CAttStruct=o.CAttStruct,v.Utils=g.util,v.Map=s.Map,v.Basemap=s.Basemap,v.SpatialReference=u.SpatialReference,v.Color=l.Color,v.Font=l.Font,v.Collection=l.Collection,v.FeatureSet=l.FeatureSet,v.Feature=l.Feature,v.ElevationInfo=l.ElevationInfo,v.ProjectInfo=l.ProjectInfo,v.OutStatistic=l.OutStatistic,v.TileMatrixSet=l.TileMatrixSet,v.ProjectInfoBySrsID=l.ProjectInfoBySrsID,v.FeatureExpressionInfo=l.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=l.WMTSStyle,v.SketchPolygonDrawTool=d.SketchPolygonDrawTool,v.SketchStyle=d.SketchStyle,v.LogType=g.LOGTYPE,v.Version=g.VERSION;var m={FetchServer:o.FetchServer,RequestInterceptor:o.RequestInterceptor,ResponseInterceptor:o.ResponseInterceptor,MapServer:o.MapServer,FeatureServer:o.FeatureServer,M3DServer:o.M3DServer,ImageServer:o.ImageServer,GeometryServer:o.GeometryServer,AddressServer:o.AddressServer,Cesium3DTilesServer:o.Cesium3DTilesServer,PoiServer:o.PoiServer,TerrainServer:o.TerrainServer,SecurityServer:o.SecurityServer,RootServer:o.RootServer,TileServer:o.TileServer,VectorTileServer:o.VectorTileServer,PlotServer:o.PlotServer,ResourceServer:o.ResourceServer,SceneServer:o.SceneServer,WMSServer:o.WMSServer,WMTSServer:o.WMTSServer,WFSServer:o.WFSServer,ArcGISMapServer:o.ArcGISMapServer,CAllOtherDataItemInfoSource:o.CAllOtherDataItemInfoSource,CAnnInfo:o.CAnnInfo,CChartLabelFormat:o.CChartLabelFormat,CChartTheme:o.CChartTheme,CChartThemeInfo:o.CChartThemeInfo,CChartThemeRepresentInfo:o.CChartThemeRepresentInfo,CChartType:o.CChartType,CDotDensityTheme:o.CDotDensityTheme,CFourColorTheme:o.CFourColorTheme,CGraduatedSymbolTheme:o.CGraduatedSymbolTheme,CLinInfo:o.CLinInfo,CMultiClassTheme:o.CMultiClassTheme,CPntInfo:o.CPntInfo,CRandomTheme:o.CRandomTheme,CRangeTheme:o.CRangeTheme,CRangeThemeInfo:o.CRangeThemeInfo,CRegInfo:o.CRegInfo,CSimpleTheme:o.CSimpleTheme,CTheme:o.CTheme,CThemeInfo:o.CThemeInfo,CUniqueTheme:o.CUniqueTheme,CUniqueThemeInfo:o.CUniqueThemeInfo,ExpInfo:o.ExpInfo,FolderInfo:o.FolderInfo,FolderInfoAttribute:o.FolderInfoAttribute,ItemValue:o.ItemValue,ThemeServer:o.ThemeServer,ThemesInfo:o.ThemesInfo,ArcGISGeometryServer:o.ArcGISGeometryServer,ArcGISFeatureServer:o.ArcGISFeatureServer,ArcGISVectorTileServer:o.ArcGISVectorTileServer,Map:s.Map,Basemap:s.Basemap,ArcGISMapImageLayer:s.ArcGISMapImageLayer,M3DModelCacheLayer:s.M3DModelCacheLayer,ArcGISMapImageSubLayer:s.ArcGISMapImageSubLayer,ArcGISTileLayer:s.ArcGISTileLayer,WMTSLayer:s.WMTSLayer,WMSLayer:s.WMSLayer,WMSSubLayer:s.WMSSubLayer,WFSLayer:s.WFSLayer,WMTSSubLayer:s.WMTSSubLayer,IGSVectorTileLayer:s.IGSVectorTileLayer,IGSVectorTileSubLayer:s.IGSVectorTileSubLayer,IGSMapImageLayer:s.IGSMapImageLayer,IGSMapImageSubLayer:s.IGSMapImageSubLayer,IGSSceneLayer:s.IGSSceneLayer,IGSSceneSubLayer:s.IGSSceneSubLayer,IGSTileLayer:s.IGSTileLayer,Scene:s.Scene,IGSFeatureLayer:s.IGSFeatureLayer,EchartsLayer:s.EchartsLayer,MapVLayer:s.MapVLayer,GroupLayer:s.GroupLayer,GraphicsLayer:s.GraphicsLayer,GeoJSONLayer:s.GeoJSONLayer,Cesium3DTilesCacheLayer:s.Cesium3DTilesCacheLayer,TerrainCacheLayer:s.TerrainCacheLayer,VideoLayer:s.VideoLayer,Layer:s.Layer,Projection:l.Projection,WMTSStyle:l.WMTSStyle,CoordnateTransform:l.CoordnateTransform,SketchEditor:d.SketchEditor,SketchEditor3D:d.SketchEditor3D,SketchBaseDrawTool:d.SketchBaseDrawTool,SketchPointDrawTool:d.SketchPointDrawTool,SketchPolylineDrawTool:d.SketchPolylineDrawTool,SketchPolygonDrawTool:d.SketchPolygonDrawTool,SketchCircleDrawTool:d.SketchCircleDrawTool,SketchExtentDrawTool:d.SketchExtentDrawTool,SketchFreehandPolylineDrawTool:d.SketchFreehandPolylineDrawTool,SketchFreehandPolygonDrawTool:d.SketchFreehandPolygonDrawTool,SketchStyle:d.SketchStyle,SketchEditorEvent:d.SketchEditorEvent,Extent:u.Extent,Polygon:u.Polygon,LineString:u.LineString,Point:u.Point,Circle:u.Circle,MultiPolygon:u.MultiPolygon,MultiLineString:u.MultiLineString,MultiPoint:u.MultiPoint,GeometryEngine:u.GeometryEngine,Color:l.Color,Font:l.Font,LayerEvent:l.LayerEvent,Event:l.Event,Zondy:v,zondy:g,Evented:l.Evented,FeatureRender:l.FeatureRender,ErrorEvent:l.ErrorEvent,Collection:l.Collection,FeatureSet:l.FeatureSet,Feature:l.Feature,getFeaturesFromFeatureSet:l.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:l.ElevationInfo,ProjectInfo:l.ProjectInfo,OutStatistic:l.OutStatistic,TileMatrixSet:l.TileMatrixSet,ProjectInfoBySrsID:l.ProjectInfoBySrsID,FeatureExpressionInfo:l.FeatureExpressionInfo,HorizontalAlignment:f.HorizontalAlignment,VerticalAlignment:f.VerticalAlignment,SceneMode:f.SceneMode,ShadowMode:f.ShadowMode,SimpleFillSymbol:h.SimpleFillSymbol,SimpleLineSymbol:h.SimpleLineSymbol,SimpleMarkerSymbol:h.SimpleMarkerSymbol,TextSymbol:h.TextSymbol,Symbol:h.Symbol,PictureMarkerSymbol:h.PictureMarkerSymbol,PictureFillSymbol:h.PictureFillSymbol,MapGISTextSymbol:h.MapGISTextSymbol,UniqueValueRenderer:s.UniqueValueRenderer,ClassBreakRenderer:s.ClassBreakRenderer,SimpleRenderer:s.SimpleRenderer,ClusterRenderer:s.ClusterRenderer,RandomRenderer:s.RandomRenderer,RankRenderer:s.RankRenderer,HeatmapRenderer:s.HeatmapRenderer,BaseRenderer:s.BaseRenderer,getIGSDynamicLayer:s.getIGSDynamicLayer,extend:c.extend,isArray:c.isArray,isNumber:c.isNumber,isInTheSameDomain:c.isInTheSameDomain,transformResult:c.transformResult,urlAppend:c.urlAppend,getParameterString:c.getParameterString,bind:c.bind,getGUID:c.getGUID,defaultValue:c.defaultValue,defined:c.defined,normalize:c.normalize,createGeometry:c.createGeometry,isNull:c.isNull,getGeometryParameter:c.getGeometryParameter,getOutStatisticsParameter:c.getOutStatisticsParameter,Log:c.Log,isString:c.isString,deepClone:c.deepClone,isBoolean:c.isBoolean,extendDeep:c.extendDeep,newGuid:c.newGuid,formatPoints:c.formatPoints,returnPoint:c.returnPoint,cloneObject:c.cloneObject,notNULL:c.notNULL,isObject:c.isObject,getVideoType:c.getVideoType,toJSON:c.toJSON,getBaseUrl:c.getBaseUrl,inputCss:c.inputCss,BaseView:p.BaseView,MapView:p.MapView,SceneView:p.SceneView,BaseGraphicsLayerView:p.BaseGraphicsLayerView,BaseRendererLayerView:p.BaseRendererLayerView,GroupLayerView:p.GroupLayerView,LayerView:p.LayerView,SpatialReference:u.SpatialReference,UrlServerType:f.UrlServerType,PictureFormat:f.PictureFormat,getUrlType:s.getUrlType,is4326:s.is4326,isCustomSP:s.isCustomSP,EPSG:l.EPSG,proj4:n.default,T:i,showLayerByScale:s.showLayerByScale,formatBaseUrl:o.formatBaseUrl,RadiusUnit:f.RadiusUnit,Geometry:u.Geometry,editFeatureByArc3:u.editFeatureByArc3,editGeometryByArc3:u.editGeometryByArc3,Config:o.Config,ServiceConfigToken:o.ServiceConfigToken,ServiceConfigRequestInterceptors:o.ServiceConfigRequestInterceptors,createSimpleMarkerSymbolCanvas:y.createSimpleMarkerSymbolCanvas,createSimpleFillSymbolCanvas:y.createSimpleFillSymbolCanvas,BaseFeatureLayerView:p.BaseFeatureLayerView,TileInfoUtil:s.TileInfoUtil,WMTSCorporation:f.WMTSCorporation,setElevationInfo:s.setElevationInfo,LabelClass:s.LabelClass,HeatmapColorStop:s.HeatmapColorStop,SizeVariable:s.SizeVariable,ColorVariable:s.ColorVariable,OpacityVariable:s.OpacityVariable,VisualVariable:s.VisualVariable,RendererUtil:p.RendererUtil,Symbol3D:h.Symbol3D,LabelSymbol3D:h.LabelSymbol3D,LineSymbol3D:h.LineSymbol3D,PointSymbol3D:h.PointSymbol3D,PolygonSymbol3D:h.PolygonSymbol3D,LineCallout3D:h.LineCallout3D,Callout3D:h.Callout3D,Symbol3DVerticalOffset:h.Symbol3DVerticalOffset,Symbol3DLayer:h.Symbol3DLayer,Symbol3DLayerType:f.Symbol3DLayerType,LineCapType:f.LineCapType,LineJoinType:f.LineJoinType,LineMarkerPlacement:f.LineMarkerPlacement,LineMarkerStyle:f.LineMarkerStyle,LineStyleMarker3D:h.LineStyleMarker3D,LinePatternStyle:f.LinePatternStyle,LineStylePattern3D:h.LineStylePattern3D,LineSymbol3DLayer:h.LineSymbol3DLayer,PathSymbol3DLayer:h.PathSymbol3DLayer,AnchorType:f.AnchorType,ProfileType:f.ProfileType,FillSymbol3DLayer:h.FillSymbol3DLayer,FillSymbol3DOutline:h.FillSymbol3DOutline,PatternStyle:f.PatternStyle,IconSymbol3DLayer:h.IconSymbol3DLayer,PointSymbol3DOutline:h.PointSymbol3DOutline,IconResource:h.IconResource,ObjectSymbol3DLayer:h.ObjectSymbol3DLayer,ExtrudeSymbol3DLayer:h.ExtrudeSymbol3DLayer,Edges3D:h.Edges3D,TextSymbol3DLayer:h.TextSymbol3DLayer,TextHalo:h.TextHalo,WaterSymbol3DLayer:h.WaterSymbol3DLayer,WaterbodySize:f.WaterbodySize,WaveStrength:f.WaveStrength,MaterialType:f.MaterialType,ColorMaterial:h.ColorMaterial,StylePattern3D:h.StylePattern3D,ArcGISVectorTileLayer:s.ArcGISVectorTileLayer,WebTileLayer:s.WebTileLayer,getZoomOffset:s.getZoomOffset,FeatureCollection:s.FeatureCollection,CAttDataRow:o.CAttDataRow,CAttStruct:o.CAttStruct,Interceptor:o.Interceptor,WorkFlowServer:o.WorkFlowServer,TileLayer:s.TileLayer,BaseServer:o.BaseServer,RequestConfig:o.RequestConfig,OverlayLayer:s.OverlayLayer,OGCLayer:s.OGCLayer,UnknownLayer:s.UnknownLayer,getProjectionSrs:c.getProjectionSrs,isWMSReverse:c.isWMSReverse,convertImageSourceToBase64:c.convertImageSourceToBase64,throttle:c.throttle,compareObject:c.compareObject,debouncePromise:c.debouncePromise,inOrderPromise:c.inOrderPromise,allSettled:c.allSettled,LinearUnits:f.LinearUnits,AreaUnits:f.AreaUnits,ArcType:f.ArcType,FetchRequest:o.FetchRequest,TileInfo:s.TileInfo,appendUrlParams:s.appendUrlParams,getFullBaseUrl:s.getFullBaseUrl,LOD:s.LOD,SceneSubLayerType:f.SceneSubLayerType,VectorTileLayer:s.VectorTileLayer,SeverVectorTileSubLayerType:f.SeverVectorTileSubLayerType,ExpressionParser:c.ExpressionParser,VisualVariableType:f.VisualVariableType,TDTLayerType:f.TDTLayerType,TileSliceType:f.TileSliceType,getValidLayers:a.getValidLayers,getLayerViewsGeographicExtent:a.getLayerViewsGeographicExtent,getCrsOptions:a.getCrsOptions,getLayersExtent:a.getLayersExtent,deleteNullValue:c.deleteNullValue,UrlUtil:o.UrlUtil};window.MapGISCommon=m,t.FetchServer=o.FetchServer,t.RequestInterceptor=o.RequestInterceptor,t.ResponseInterceptor=o.ResponseInterceptor,t.MapServer=o.MapServer,t.FeatureServer=o.FeatureServer,t.M3DServer=o.M3DServer,t.ImageServer=o.ImageServer,t.GeometryServer=o.GeometryServer,t.AddressServer=o.AddressServer,t.Cesium3DTilesServer=o.Cesium3DTilesServer,t.PoiServer=o.PoiServer,t.TerrainServer=o.TerrainServer,t.SecurityServer=o.SecurityServer,t.RootServer=o.RootServer,t.TileServer=o.TileServer,t.VectorTileServer=o.VectorTileServer,t.PlotServer=o.PlotServer,t.ResourceServer=o.ResourceServer,t.SceneServer=o.SceneServer,t.WMSServer=o.WMSServer,t.WMTSServer=o.WMTSServer,t.WFSServer=o.WFSServer,t.ArcGISMapServer=o.ArcGISMapServer,t.CAllOtherDataItemInfoSource=o.CAllOtherDataItemInfoSource,t.CAnnInfo=o.CAnnInfo,t.CChartLabelFormat=o.CChartLabelFormat,t.CChartTheme=o.CChartTheme,t.CChartThemeInfo=o.CChartThemeInfo,t.CChartThemeRepresentInfo=o.CChartThemeRepresentInfo,t.CChartType=o.CChartType,t.CDotDensityTheme=o.CDotDensityTheme,t.CFourColorTheme=o.CFourColorTheme,t.CGraduatedSymbolTheme=o.CGraduatedSymbolTheme,t.CLinInfo=o.CLinInfo,t.CMultiClassTheme=o.CMultiClassTheme,t.CPntInfo=o.CPntInfo,t.CRandomTheme=o.CRandomTheme,t.CRangeTheme=o.CRangeTheme,t.CRangeThemeInfo=o.CRangeThemeInfo,t.CRegInfo=o.CRegInfo,t.CSimpleTheme=o.CSimpleTheme,t.CTheme=o.CTheme,t.CThemeInfo=o.CThemeInfo,t.CUniqueTheme=o.CUniqueTheme,t.CUniqueThemeInfo=o.CUniqueThemeInfo,t.ExpInfo=o.ExpInfo,t.FolderInfo=o.FolderInfo,t.FolderInfoAttribute=o.FolderInfoAttribute,t.ItemValue=o.ItemValue,t.ThemeServer=o.ThemeServer,t.ThemesInfo=o.ThemesInfo,t.ArcGISGeometryServer=o.ArcGISGeometryServer,t.ArcGISFeatureServer=o.ArcGISFeatureServer,t.ArcGISVectorTileServer=o.ArcGISVectorTileServer,t.Map=s.Map,t.Basemap=s.Basemap,t.ArcGISMapImageLayer=s.ArcGISMapImageLayer,t.M3DModelCacheLayer=s.M3DModelCacheLayer,t.ArcGISMapImageSubLayer=s.ArcGISMapImageSubLayer,t.ArcGISTileLayer=s.ArcGISTileLayer,t.WMTSLayer=s.WMTSLayer,t.WMSLayer=s.WMSLayer,t.WMSSubLayer=s.WMSSubLayer,t.WFSLayer=s.WFSLayer,t.WMTSSubLayer=s.WMTSSubLayer,t.IGSVectorTileLayer=s.IGSVectorTileLayer,t.IGSVectorTileSubLayer=s.IGSVectorTileSubLayer,t.IGSMapImageLayer=s.IGSMapImageLayer,t.IGSMapImageSubLayer=s.IGSMapImageSubLayer,t.IGSSceneLayer=s.IGSSceneLayer,t.IGSSceneSubLayer=s.IGSSceneSubLayer,t.IGSTileLayer=s.IGSTileLayer,t.Scene=s.Scene,t.IGSFeatureLayer=s.IGSFeatureLayer,t.EchartsLayer=s.EchartsLayer,t.MapVLayer=s.MapVLayer,t.GroupLayer=s.GroupLayer,t.GraphicsLayer=s.GraphicsLayer,t.GeoJSONLayer=s.GeoJSONLayer,t.Cesium3DTilesCacheLayer=s.Cesium3DTilesCacheLayer,t.TerrainCacheLayer=s.TerrainCacheLayer,t.VideoLayer=s.VideoLayer,t.Layer=s.Layer,t.Projection=l.Projection,t.WMTSStyle=l.WMTSStyle,t.CoordnateTransform=l.CoordnateTransform,t.SketchEditor=d.SketchEditor,t.SketchEditor3D=d.SketchEditor3D,t.SketchBaseDrawTool=d.SketchBaseDrawTool,t.SketchPointDrawTool=d.SketchPointDrawTool,t.SketchPolylineDrawTool=d.SketchPolylineDrawTool,t.SketchPolygonDrawTool=d.SketchPolygonDrawTool,t.SketchCircleDrawTool=d.SketchCircleDrawTool,t.SketchExtentDrawTool=d.SketchExtentDrawTool,t.SketchFreehandPolylineDrawTool=d.SketchFreehandPolylineDrawTool,t.SketchFreehandPolygonDrawTool=d.SketchFreehandPolygonDrawTool,t.SketchStyle=d.SketchStyle,t.SketchEditorEvent=d.SketchEditorEvent,t.Extent=u.Extent,t.Polygon=u.Polygon,t.LineString=u.LineString,t.Point=u.Point,t.Circle=u.Circle,t.MultiPolygon=u.MultiPolygon,t.MultiLineString=u.MultiLineString,t.MultiPoint=u.MultiPoint,t.GeometryEngine=u.GeometryEngine,t.Color=l.Color,t.Font=l.Font,t.LayerEvent=l.LayerEvent,t.Event=l.Event,t.Zondy=v,t.zondy=g,t.Evented=l.Evented,t.FeatureRender=l.FeatureRender,t.ErrorEvent=l.ErrorEvent,t.Collection=l.Collection,t.FeatureSet=l.FeatureSet,t.Feature=l.Feature,t.getFeaturesFromFeatureSet=l.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=l.ElevationInfo,t.ProjectInfo=l.ProjectInfo,t.OutStatistic=l.OutStatistic,t.TileMatrixSet=l.TileMatrixSet,t.ProjectInfoBySrsID=l.ProjectInfoBySrsID,t.FeatureExpressionInfo=l.FeatureExpressionInfo,t.HorizontalAlignment=f.HorizontalAlignment,t.VerticalAlignment=f.VerticalAlignment,t.SceneMode=f.SceneMode,t.ShadowMode=f.ShadowMode,t.SimpleFillSymbol=h.SimpleFillSymbol,t.SimpleLineSymbol=h.SimpleLineSymbol,t.SimpleMarkerSymbol=h.SimpleMarkerSymbol,t.TextSymbol=h.TextSymbol,t.Symbol=h.Symbol,t.PictureMarkerSymbol=h.PictureMarkerSymbol,t.PictureFillSymbol=h.PictureFillSymbol,t.MapGISTextSymbol=h.MapGISTextSymbol,t.UniqueValueRenderer=s.UniqueValueRenderer,t.ClassBreakRenderer=s.ClassBreakRenderer,t.SimpleRenderer=s.SimpleRenderer,t.ClusterRenderer=s.ClusterRenderer,t.RandomRenderer=s.RandomRenderer,t.RankRenderer=s.RankRenderer,t.HeatmapRenderer=s.HeatmapRenderer,t.BaseRenderer=s.BaseRenderer,t.getIGSDynamicLayer=s.getIGSDynamicLayer,t.extend=c.extend,t.isArray=c.isArray,t.isNumber=c.isNumber,t.isInTheSameDomain=c.isInTheSameDomain,t.transformResult=c.transformResult,t.urlAppend=c.urlAppend,t.getParameterString=c.getParameterString,t.bind=c.bind,t.getGUID=c.getGUID,t.defaultValue=c.defaultValue,t.defined=c.defined,t.normalize=c.normalize,t.createGeometry=c.createGeometry,t.isNull=c.isNull,t.getGeometryParameter=c.getGeometryParameter,t.getOutStatisticsParameter=c.getOutStatisticsParameter,t.Log=c.Log,t.isString=c.isString,t.deepClone=c.deepClone,t.isBoolean=c.isBoolean,t.extendDeep=c.extendDeep,t.newGuid=c.newGuid,t.formatPoints=c.formatPoints,t.returnPoint=c.returnPoint,t.cloneObject=c.cloneObject,t.notNULL=c.notNULL,t.isObject=c.isObject,t.getVideoType=c.getVideoType,t.toJSON=c.toJSON,t.getBaseUrl=c.getBaseUrl,t.inputCss=c.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=u.SpatialReference,t.UrlServerType=f.UrlServerType,t.PictureFormat=f.PictureFormat,t.getUrlType=s.getUrlType,t.is4326=s.is4326,t.isCustomSP=s.isCustomSP,t.EPSG=l.EPSG,t.proj4=n.default,t.T=i,t.showLayerByScale=s.showLayerByScale,t.formatBaseUrl=o.formatBaseUrl,t.RadiusUnit=f.RadiusUnit,t.Geometry=u.Geometry,t.editFeatureByArc3=u.editFeatureByArc3,t.editGeometryByArc3=u.editGeometryByArc3,t.Config=o.Config,t.ServiceConfigToken=o.ServiceConfigToken,t.ServiceConfigRequestInterceptors=o.ServiceConfigRequestInterceptors,t.createSimpleMarkerSymbolCanvas=y.createSimpleMarkerSymbolCanvas,t.createSimpleFillSymbolCanvas=y.createSimpleFillSymbolCanvas,t.BaseFeatureLayerView=p.BaseFeatureLayerView,t.TileInfoUtil=s.TileInfoUtil,t.WMTSCorporation=f.WMTSCorporation,t.setElevationInfo=s.setElevationInfo,t.LabelClass=s.LabelClass,t.HeatmapColorStop=s.HeatmapColorStop,t.SizeVariable=s.SizeVariable,t.ColorVariable=s.ColorVariable,t.OpacityVariable=s.OpacityVariable,t.VisualVariable=s.VisualVariable,t.RendererUtil=p.RendererUtil,t.Symbol3D=h.Symbol3D,t.LabelSymbol3D=h.LabelSymbol3D,t.LineSymbol3D=h.LineSymbol3D,t.PointSymbol3D=h.PointSymbol3D,t.PolygonSymbol3D=h.PolygonSymbol3D,t.LineCallout3D=h.LineCallout3D,t.Callout3D=h.Callout3D,t.Symbol3DVerticalOffset=h.Symbol3DVerticalOffset,t.Symbol3DLayer=h.Symbol3DLayer,t.Symbol3DLayerType=f.Symbol3DLayerType,t.LineCapType=f.LineCapType,t.LineJoinType=f.LineJoinType,t.LineMarkerPlacement=f.LineMarkerPlacement,t.LineMarkerStyle=f.LineMarkerStyle,t.LineStyleMarker3D=h.LineStyleMarker3D,t.LinePatternStyle=f.LinePatternStyle,t.LineStylePattern3D=h.LineStylePattern3D,t.LineSymbol3DLayer=h.LineSymbol3DLayer,t.PathSymbol3DLayer=h.PathSymbol3DLayer,t.AnchorType=f.AnchorType,t.ProfileType=f.ProfileType,t.FillSymbol3DLayer=h.FillSymbol3DLayer,t.FillSymbol3DOutline=h.FillSymbol3DOutline,t.PatternStyle=f.PatternStyle,t.IconSymbol3DLayer=h.IconSymbol3DLayer,t.PointSymbol3DOutline=h.PointSymbol3DOutline,t.IconResource=h.IconResource,t.ObjectSymbol3DLayer=h.ObjectSymbol3DLayer,t.ExtrudeSymbol3DLayer=h.ExtrudeSymbol3DLayer,t.Edges3D=h.Edges3D,t.TextSymbol3DLayer=h.TextSymbol3DLayer,t.TextHalo=h.TextHalo,t.WaterSymbol3DLayer=h.WaterSymbol3DLayer,t.WaterbodySize=f.WaterbodySize,t.WaveStrength=f.WaveStrength,t.MaterialType=f.MaterialType,t.ColorMaterial=h.ColorMaterial,t.StylePattern3D=h.StylePattern3D,t.ArcGISVectorTileLayer=s.ArcGISVectorTileLayer,t.WebTileLayer=s.WebTileLayer,t.getZoomOffset=s.getZoomOffset,t.FeatureCollection=s.FeatureCollection,t.CAttDataRow=o.CAttDataRow,t.CAttStruct=o.CAttStruct,t.Interceptor=o.Interceptor,t.WorkFlowServer=o.WorkFlowServer,t.TileLayer=s.TileLayer,t.BaseServer=o.BaseServer,t.RequestConfig=o.RequestConfig,t.UnknownLayer=s.UnknownLayer,t.OverlayLayer=s.OverlayLayer,t.OGCLayer=s.OGCLayer,t.getProjectionSrs=c.getProjectionSrs,t.isWMSReverse=c.isWMSReverse,t.convertImageSourceToBase64=c.convertImageSourceToBase64,t.throttle=c.throttle,t.compareObject=c.compareObject,t.debouncePromise=c.debouncePromise,t.inOrderPromise=c.inOrderPromise,t.allSettled=c.allSettled,t.LinearUnits=f.LinearUnits,t.AreaUnits=f.AreaUnits,t.ArcType=f.ArcType,t.FetchRequest=o.FetchRequest,t.TileInfo=s.TileInfo,t.appendUrlParams=s.appendUrlParams,t.getFullBaseUrl=s.getFullBaseUrl,t.LOD=s.LOD,t.convertIGSClippingString=o.convertIGSClippingString,t.SceneSubLayerType=f.SceneSubLayerType,t.GeometryFilter=o.GeometryFilter,t.ColorNameToHexMap=f.ColorNameToHexMap,t.SeverVectorTileSubLayerType=f.SeverVectorTileSubLayerType,t.VisualVariableType=f.VisualVariableType,t.TDTLayerType=f.TDTLayerType,t.TileSliceType=f.TileSliceType,t.VectorTileLayer=s.VectorTileLayer,t.ExpressionParser=c.ExpressionParser,t.isLayerViewValid=a.isLayerViewValid,t.getValidLayers=a.getValidLayers,t.getLayerViewsGeographicExtent=a.getLayerViewsGeographicExtent,t.getCrsOptions=a.getCrsOptions,t.getLayersExtent=a.getLayersExtent,t.deleteNullValue=c.deleteNullValue,t.UrlUtil=o.UrlUtil},function(e,t,r){"use strict";r.r(t);var n=r(183),i=r(189),o=r(190),a=r(193),s=r(195),u=r(196),l=r(53),c=r(103);function f(e,t){if(!(this instanceof f))return new f(e);t=t||function(e){if(e)throw e};var r=Object(n.default)(e);if("object"==typeof r){var o=f.projections.get(r.projName);if(o){if(r.datumCode&&"none"!==r.datumCode){var h=Object(l.default)(s.default,r.datumCode);h&&(r.datum_params=r.datum_params||(h.towgs84?h.towgs84.split(","):null),r.ellps=h.ellipse,r.datumName=h.datumName?h.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 p=Object(a.sphere)(r.a,r.b,r.rf,r.ellps,r.sphere),d=Object(a.eccentricity)(p.a,p.b,p.rf,r.R_A),y=Object(c.getNadgrids)(r.nadgrids),g=r.datum||Object(u.default)(r.datumCode,r.datum_params,p.a,p.b,d.es,d.ep2,y);Object(i.default)(this,r),Object(i.default)(this,o),this.a=p.a,this.b=p.b,this.rf=p.rf,this.sphere=p.sphere,this.es=d.es,this.e=d.e,this.ep2=d.ep2,this.datum=g,this.init(),t(null,this)}else t(e)}else t(e)}f.projections=o.default,f.projections.start(),t.default=f},function(e,t,r){"use strict";r.r(t),t.default=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])))}},function(e,t,r){"use strict";r.r(t),t.default=function(e,t,r){var n=t*r;return e/Math.sqrt(1-n*n)}},function(e,t,r){"use strict";r.r(t),t.default=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}},function(e,t,r){"use strict";r.r(t),t.default=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}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r(0),a=function(e){return e&&e.__esModule?e:{default:e}}(r(44)),s=r(21);var u=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),i(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,o.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":n(e))&&(t=[],Object.keys(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 t=!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,o.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 Object.keys(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)}):Object.keys(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=void 0;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 s.CollectionChangeEvent(e),!1),this.fire("collection-refresh",new s.CollectionChangeEvent(e),!1),this._parentCollection)for(var t=this._parentCollection;t;)t.fire("collection-refresh",new s.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,o.defaultValue)(e,this._items.length),e=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,o.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}();Object.defineProperties(u.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=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.family=(0,i.defaultValue)(t.family,"微软雅黑"),this.size=(0,i.defaultValue)(t.size,12),this.style=(0,i.defaultValue)(t.style,"normal"),this.weight=(0,i.defaultValue)(t.weight,"normal"),this.decoration=(0,i.defaultValue)(t.decoration,"none")}return n(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,i.defaultValue)(t,{}))}}]),e}();t.default=o},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(121)),i=a(r(327)),o=r(328);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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=u(r(317)),s=u(r(318));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));e=(0,i.defaultValue)(e,{}),r.type=o.SymbolType.simpleLine,r.cap=(0,i.defaultValue)(e.cap,"round"),r.join=(0,i.defaultValue)(e.join,"round"),r.miterLimit=(0,i.defaultValue)(e.miterLimit,2),r.style=(0,i.defaultValue)(e.style,"solid");var n=(0,i.defaultValue)(e.marker,null);return n?(n.color=(0,i.defaultValue)(n.color,r.color.clone()),r.marker=s.default.fromJSON(n)):r.marker=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,i.defaultValue)(e,{}))}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(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=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.default=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,n.defaultValue)(t,{}),this.before=(0,n.defaultValue)(t.success,void 0),this.failure=(0,n.defaultValue)(t.failure,void 0)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.default=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,n.defaultValue)(t,{}),this.success=(0,n.defaultValue)(t.success,void 0),this.failure=(0,n.defaultValue)(t.failure,void 0)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);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(3),i=r(1),o=r(2),a=r(0),s=r(38);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())),a=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 f=256;e.imageWidth&&e.imageHeight&&(f=Math.max(e.imageWidth,e.imageHeight)),l=s.TileInfoUtil.generateTileInfo(o,f,c)}var h=n.Point.toCoordinates(l.origin),p=[];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}))}p=p.concat(t)}),0===p.length&&(p=l.lods),p.sort(function(e,t){return t.resolution-e.resolution});for(var d=[p[0]],y=1;y<p.length;y++){var g=p[y];d[d.length-1].resolution/g.resolution<=u||d.push(g)}return d.forEach(function(e,t){e.level=t}),{spatialReference:c,resolutions:d.map(function(e){return e.resolution}),origin:h,extent:o,lods:d,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}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(7),a=r(0),s=r(3);var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));e=(0,a.defaultValue)(e,{}),r.id=(0,a.defaultValue)(e.id,(0,a.getGUID)()),r.layerIndex=(0,a.defaultValue)(e.layerIndex,0),r.layerRenderIndex=(0,a.defaultValue)(e.layerRenderIndex,0),r.type=(0,a.defaultValue)(e.layerType,void 0),r.renderType=(0,a.defaultValue)(e.layerRenderType,void 0),r._labelingInfo=(0,a.defaultValue)(e.labelingInfo,[]),r.beginLevel=(0,a.defaultValue)(e.beginLevel,-1),r.endLevel=(0,a.defaultValue)(e.endLevel,-1),r._renderer=(0,a.defaultValue)(e.renderer,void 0),e.originalPoints?r.originPoint=new s.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,a.defaultValue)(e.url||e.gdbpUrl,void 0),e.range?r.range=new s.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 s.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,a.defaultValue)(e.layer,void 0),r.spatialReference=(0,a.defaultValue)(e.spatialReference,void 0);var n=e.sublayers;if(r.sublayers=new i.Collection,n instanceof Array)for(var o=0;o<n.length;o++)r.sublayers.add(new t(n[o]));else n instanceof i.Collection&&n.forEach(function(e){r.sublayers.add(new t(e))});return r.elevationScale=(0,a.defaultValue)(e.elevationScale,void 0),r.requestVertexNormals=(0,a.defaultValue)(e.requestVertexNormals,!1),r.labelLayer=(0,a.defaultValue)(e.labelLayer,void 0),r.layerName=(0,a.defaultValue)(e.layerName,void 0),r._opacity=(0,a.defaultValue)(e.opacity,1),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.SubLayer),n(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,a.toJSON)(this.sublayers[r],t));var n=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return n=Object.assign(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}();u.fromJSON=function(e){return new u(e)},Object.defineProperties(u.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=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(7),o=r(0),a=r(1);var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,o.defaultValue)(e,{}),r.type=a.LayerType.overlay,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Layer),n(t,[{key:"toJSON",value:function(){return function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this)}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2);var o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Collection),n(t,[{key:"createInstance",value:function(e){var t=e;return e instanceof i.Feature||(t=i.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}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(0),a=r(1),s=p(r(52)),u=r(3),l=p(r(173)),c=p(r(97)),f=p(r(453)),h=r(38);function p(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e=(0,o.defaultValue)(e,{}),r._map=null,r._id=(0,o.getGUID)(),r._cursor=(0,o.defaultValue)(e.cursor,void 0),r.scale=(0,o.defaultValue)(e.scale,void 0),r.minScale=void 0,r.maxScale=void 0,r.rotation=0,r.center=(0,o.defaultValue)(e.center,[0,0]),r.minZoom=(0,o.defaultValue)(e.minZoom,0),r.maxZoom=(0,o.defaultValue)(e.maxZoom,19),r.zoom=(0,o.defaultValue)(e.zoom,1),r.extensionOptions=(0,o.defaultValue)(e.extensionOptions,{}),r.extendProps=(0,o.defaultValue)(e.extendProps,{}),r.popup=void 0,r.stationary=!0,r._spatialReference=new u.SpatialReference("EPSG:4326"),r.layerViews=new i.Collection,r.basemapLayerViews=new i.Collection,r._viewLayersMap=new l.default,r._graphicsLayers=r._viewLayersMap.groupLayer,r._viewLayersGroupLayerView=void 0,r._setViewLayers(r._graphicsLayers),r.allLayerViews=new i.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,o.defaultValue)(e.viewId,""),r._innerView=null,r._initCursor(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Evented),n(t,[{key:"setMap",value:function(e){this._map||(this._map=e instanceof l.default?e:l.default.fromJSON(e),this._linkMapEvent(this._map),this._linkLayerEvent(this._map),this._map._loadLayers(),this.groupLayerView=new c.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 f.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(a.LayerEventType[r],function(e){var t=e;t instanceof i.Event?t.addProperty("view",n):t&&(t.view=n),n.fire(a.LayerEventType[r],t)},e)};for(var n in a.LayerEventType)r(n)}}},{key:"_linkMapEvent",value:function(e){var t=this;if(e){var r=function(r){var n=t;e.on(a.MapEventType[r],function(e){var t=e;t instanceof i.Event?t.addProperty("view",n):t&&(t.view=n),n.fire(a.MapEventType[r],t)})};for(var n in a.MapEventType)r(n)}}},{key:"_getLayerView",value:function(e){if(e)return this._findLayerViewById(e.id)}},{key:"_initMapEventHandlers",value:function(){this.on(a.MapEventType.layerLoaded,this._processEvent,this),this.on(a.MapEventType.layerChange,this._processEvent,this),this.on(a.LayerEventType.layerUpdate,this._processEvent,this),this.on(a.MapEventType.basemapChange,this._processEvent,this)}},{key:"_processEvent",value:function(e){e.type===a.MapEventType.layerChange&&this._processLayerChange(e),e.type===a.MapEventType.layerLoaded&&this._processLayerLoad(e),e.type===a.LayerEventType.layerUpdate&&e.layer instanceof h.Layer&&this._updateLayerView(e.layer,e),e.type===a.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=Promise.resolve()),this._prePromise=this._prePromise.then(function(){return t._loadViewSpatialReference().then(function(e){if(!1!==e){var n=Promise.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){o.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,a=e.sourceTarget,s=this._findGroupLayerViewById(a.id);if(s){var u=void 0;0===n.length&&0===r.length&&0===i.length?u=s.removeAll():n.length>0&&(u=s.removeMany(n)),u&&u.then(function(){return t._loadViewSpatialReference().then().catch(function(e){o.Log.info(e)})}),i.length>0&&i.forEach(function(e){s.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 Promise(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 Promise(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 u.Point({coordinates:r,spatialReference:new u.SpatialReference(n)})}else e.center instanceof u.Point?t=u.Point.fromJSON(e.center):e.center instanceof u.Point||o.Log.error("center类型为不支持的类型!");t.spatialReference.isGeographic||(t=i.Projection.project(t,new u.SpatialReference({wkid:4326})))}return t}},{key:"_getFlyToExtent",value:function(e){var t=void 0;return e.extent&&(e.extent instanceof u.Extent?(t=u.Extent.fromJSON(e.extent)).spatialReference.isGeographic||(t=i.Projection.project(t,new u.SpatialReference({wkid:4326}))):o.Log.error("extent类型为不支持的类型!")),t}},{key:"_updateLayerView",value:function(e,t){var r=this,n=this._findLayerViewById(e.id);return n instanceof s.default?n.onUpdate(t).then(function(){return n}).then(function(n){o.Log.info("更新图层",e),t&&(t.addProperty("view",self),t.addProperty("layerView",n)),r.dispatchEvent(a.LayerEventType.layerViewUpdate,t)}):(o.Log.info("图层更新失败,未找到该类型的视图!"),Promise.resolve())}},{key:"dispatchEvent",value:function(e,t,r){return t instanceof i.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 c.default&&n.layerViews.remove(t)}}}},{key:"_showLayerByScale",value:function(){var e=this;this._map.allLayers.forEach(function(t){(0,h.showLayerByScale)(e,t)})}},{key:"_orderLayerView",value:function(e,t){if(e instanceof c.default)this._moveGroupLayerView(e,t);else if(t instanceof c.default){var r=this._getLastLayerView(t);this._moveLayerView(e,r)}else if(t instanceof c.default&&e instanceof c.default){var n=this._getLastLayerView(t);this._moveGroupLayerView(e,n)}else this._moveLayerView(e,t)}},{key:"_isLayerViewSupportReorder",value:function(e){return!(e.layer instanceof h.IGSFeatureLayer||e.layer instanceof h.M3DModelCacheLayer||e.layer instanceof h.IGSSceneLayer||e.layer instanceof h.TerrainCacheLayer||e.layer instanceof h.Cesium3DTilesCacheLayer||e.layer instanceof h.GeoJSONLayer||e.layer instanceof h.WFSLayer||e.layer instanceof h.GroupLayer||e.layer instanceof h.EchartsLayer||e.layer instanceof h.MapVLayer)}},{key:"_moveGroupLayerView",value:function(e,t){var r=this;e.allLayerViews.forEach(function(e){e instanceof c.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 c.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 u.Geometry)e instanceof u.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 i.Collection&&(r=e.items),r.forEach(function(e){var t=void 0;e instanceof u.Extent?t=e:e instanceof u.Geometry&&e.extent&&(t=e.extent),t.spatialReference.isGeographic||(t=i.Projection.project(t.clone(),new u.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 c.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,o.toJSON)(this._center,u.Point),minZoom:this.minZoom,maxZoom:this.maxZoom,zoom:this.zoom,extensionOptions:this.extensionOptions,extendProps:this.extendProps}}}]),t}();Object.defineProperties(d.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=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(52)),o=r(2),a=r(1),s=r(64),u=r(0);var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.layerViews=e.layerViews||new o.Collection,r.allLayerViews=new o.CollectionFlattener({getCollections:function(){return[r.layerViews]},getChildrenFunction:function(e){return e.layerViews}}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(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 Promise.resolve([]);var n=this.view,o=this.layer,l=e.filter(function(e){return e&&(e.loaded||e.type===a.LayerType.group)&&o.findLayerById(e.id)&&!r._findLayerViewById(e.id)}).map(function(e){return n._createLayerView(e)}).filter(function(e){return e}),c=(0,s.inOrderPromise)(l.map(function(e){return function(){return e.onAdd().catch(function(t){u.Log.error(t),r._fireLayerCreatedError(e.layer,e,t)}).then(function(e){return e||void 0})}}));return c.catch(function(e){r._fireLayerCreatedError(r.layer,r,e)}),c.then(function(e){var n=e.filter(function(e){return e instanceof i.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 Promise.resolve([]);var r=e.map(function(e){return t._findLayerViewById(e.id)}).filter(function(e){return e});return 0===r.length?Promise.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){u.Log.error(e)})});return(0,s.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];if(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)});else 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 Promise.all(r.map(function(t){return t.onUpdate(e)})).then(function(){return t})}},{key:"_setItemParent",value:function(e,t){(e instanceof o.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 i.default){if(n instanceof t){var o=n.layerViews.items;this._fireLayerViewCreatedByLayerViews(o)}this._fireLayerViewCreated(n.layer,n)}}}},{key:"_fireLayerViewCreated",value:function(e,t){var r=new o.LayerEvent({type:a.LayerEventType.layerViewCreated,message:"图层在视图中创建完毕",layer:e});r.addProperty("view",this.view),r.addProperty("layerView",t),e.fire(a.LayerEventType.layerViewCreated,r),this.view.fire(a.LayerEventType.layerViewCreated,r)}},{key:"_fireLayerCreatedError",value:function(e,t,r){var n=new o.LayerEvent({type:a.LayerEventType.layerViewCreatedError,target:e,error:r||"图层在视图中创建失败",layer:e});n.addProperty("view",this.view),n.addProperty("layerView",t),e.fire(a.LayerEventType.layerViewCreatedError,n),this.view.fire(a.LayerEventType.layerViewCreatedError,n)}},{key:"_fireLayerViewRemove",value:function(e,t){var r=new o.LayerEvent({type:a.LayerEventType.layerViewRemove,message:"移除图层视图",layer:e});r.addProperty("view",this.view),r.addProperty("layerView",t),e.fire(a.LayerEventType.layerViewRemove,r),this.view.fire(a.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}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchEditorEvent=void 0;var n=r(0);t.SketchEditorEvent=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=(0,n.defaultValue)(t,{});this.type=(0,n.defaultValue)(r.type,""),this.toolEventInfo=(0,n.defaultValue)(r.toolEventInfo,null),this.state=(0,n.defaultValue)(r.state,null),this.feature=(0,n.defaultValue)(r.feature,null)}},function(e,t,r){"use strict";r.r(t);var n=r(182),i=r(72),o=r(200),a=r(106),s=r(100),u=r(103),l=r(104),c=r(107),f=r(201);n.default.defaultDatum="WGS84",n.default.Proj=i.default,n.default.WGS84=new n.default.Proj("WGS84"),n.default.Point=o.default,n.default.toPoint=a.default,n.default.defs=s.default,n.default.nadgrid=u.default,n.default.transform=l.default,n.default.mgrs=c.default,n.default.version="__VERSION__",Object(f.default)(n.default),t.default=n.default},function(e,t,r){"use strict";r.r(t);var n=r(184),i=r(101),o=r(102);function a(e){var t=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?a[e]=Object(i.default)(arguments[1]):a[e]=Object(o.default)(arguments[1]):a[e]=r}else if(1===arguments.length){if(Array.isArray(e))return e.map(function(e){Array.isArray(e)?a.apply(t,e):a(e)});if("string"==typeof e){if(e in a)return a[e]}else"EPSG"in e?a["EPSG:"+e.EPSG]=e:"ESRI"in e?a["ESRI:"+e.ESRI]=e:"IAU2000"in e?a["IAU2000:"+e.IAU2000]=e:console.log(e);return}}Object(n.default)(a),t.default=a},function(e,t,r){"use strict";r.r(t);var n=r(4),i=r(185),o=r(186),a=r(53);t.default=function(e){var t,r,s,u={},l=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},{}),c={proj:"projName",datum:"datumCode",rf:function(e){u.rf=parseFloat(e)},lat_0:function(e){u.lat0=e*n.D2R},lat_1:function(e){u.lat1=e*n.D2R},lat_2:function(e){u.lat2=e*n.D2R},lat_ts:function(e){u.lat_ts=e*n.D2R},lon_0:function(e){u.long0=e*n.D2R},lon_1:function(e){u.long1=e*n.D2R},lon_2:function(e){u.long2=e*n.D2R},alpha:function(e){u.alpha=parseFloat(e)*n.D2R},gamma:function(e){u.rectified_grid_angle=parseFloat(e)},lonc:function(e){u.longc=e*n.D2R},x_0:function(e){u.x0=parseFloat(e)},y_0:function(e){u.y0=parseFloat(e)},k_0:function(e){u.k0=parseFloat(e)},k:function(e){u.k0=parseFloat(e)},a:function(e){u.a=parseFloat(e)},b:function(e){u.b=parseFloat(e)},r_a:function(){u.R_A=!0},zone:function(e){u.zone=parseInt(e,10)},south:function(){u.utmSouth=!0},towgs84:function(e){u.datum_params=e.split(",").map(function(e){return parseFloat(e)})},to_meter:function(e){u.to_meter=parseFloat(e)},units:function(e){u.units=e;var t=Object(a.default)(o.default,e);t&&(u.to_meter=t.to_meter)},from_greenwich:function(e){u.from_greenwich=e*n.D2R},pm:function(e){var t=Object(a.default)(i.default,e);u.from_greenwich=(t||parseFloat(e))*n.D2R},nadgrids:function(e){"@null"===e?u.datumCode="none":u.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))&&(u.axis=e)},approx:function(){u.approx=!0}};for(t in l)r=l[t],t in c?"function"==typeof(s=c[t])?s(r):u[s]=r:u[t]=r;return"string"==typeof u.datumCode&&"WGS84"!==u.datumCode&&(u.datumCode=u.datumCode.toLowerCase()),u}},function(e,t,r){"use strict";r.r(t);var n=r(187),i=r(188),o=.017453292519943295,a=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function s(e){return e*o}function u(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 u(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",s],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",s],["x0","false_easting",u],["y0","false_northing",u],["long0","central_meridian",s],["lat0","latitude_of_origin",s],["lat0","standard_parallel_1",s],["lat1","standard_parallel_1",s],["lat2","standard_parallel_2",s],["azimuth","Azimuth"],["alpha","azimuth",s],["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=s(e.lat0>0?90:-90)):(e.lat0=s(e.lat1>0?90:-90),e.lat_ts=e.lat1)}t.default=function(e){var t=Object(n.default)(e),r=t[0],o={};return Object(i.sExpr)(t,o),function e(t){for(var r=Object.keys(t),n=0,i=r.length;n<i;++n){var o=r[n];-1!==a.indexOf(o)&&u(t[o]),"object"==typeof t[o]&&e(t[o])}}(o),o[r]}},function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return i}),r.d(t,"getNadgrids",function(){return o});var n={};function i(e,t){var r=new DataView(t),i=function(e){var t=e.getInt32(8,!1);if(11===t)return!1;11!==(t=e.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(r),o=function(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:u(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,i);o.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var a={header:o,subgrids:function(e,t,r){for(var n=[],i=0;i<t.nSubgrids;i++){var o=c(e,176,r),a=f(e,176,o,r),u=Math.round(1+(o.upperLongitude-o.lowerLongitude)/o.longitudeInterval),h=Math.round(1+(o.upperLatitude-o.lowerLatitude)/o.latitudeInterval);n.push({ll:[s(o.lowerLongitude),s(o.lowerLatitude)],del:[s(o.longitudeInterval),s(o.latitudeInterval)],lim:[u,h],count:o.gridNodeCount,cvs:l(a)})}return n}(r,o,i)};return n[e]=a,a}function o(e){return void 0===e?null:e.split(",").map(a)}function a(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:n[e]||null,isNull:!1}}function s(e){return e/3600*Math.PI/180}function u(e,t,r){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,r)))}function l(e){return e.map(function(e){return[s(e.longitudeShift),s(e.latitudeShift)]})}function c(e,t,r){return{name:u(e,t+8,t+16).trim(),parent:u(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 f(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(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return l});var n=r(4),i=r(197),o=r(198),a=r(72),s=r(106),u=r(199);function l(e,t,r,c){var f,h=void 0!==(r=Array.isArray(r)?Object(s.default)(r):{x:r.x,y:r.y,z:r.z,m:r.m}).z;if(Object(u.default)(r),e.datum&&t.datum&&function(e,t){return(e.datum.datum_type===n.PJD_3PARAM||e.datum.datum_type===n.PJD_7PARAM||e.datum.datum_type===n.PJD_GRIDSHIFT)&&"WGS84"!==t.datumCode||(t.datum.datum_type===n.PJD_3PARAM||t.datum.datum_type===n.PJD_7PARAM||t.datum.datum_type===n.PJD_GRIDSHIFT)&&"WGS84"!==e.datumCode}(e,t)&&(r=l(e,f=new a.default("WGS84"),r,c),e=f),c&&"enu"!==e.axis&&(r=Object(o.default)(e,!1,r)),"longlat"===e.projName)r={x:r.x*n.D2R,y:r.y*n.D2R,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=Object(i.default)(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*n.R2D,y:r.y*n.R2D,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})),c&&"enu"!==t.axis?Object(o.default)(t,!0,r):(h||delete r.z,r)}},function(e,t,r){"use strict";r.r(t),r.d(t,"compareDatums",function(){return i}),r.d(t,"geodeticToGeocentric",function(){return o}),r.d(t,"geocentricToGeodetic",function(){return a}),r.d(t,"geocentricToWgs84",function(){return s}),r.d(t,"geocentricFromWgs84",function(){return u});var n=r(4);function i(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.PJD_3PARAM?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!==n.PJD_7PARAM||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]))}function o(e,t,r){var i,o,a,s,u=e.x,l=e.y,c=e.z?e.z:0;if(l<-n.HALF_PI&&l>-1.001*n.HALF_PI)l=-n.HALF_PI;else if(l>n.HALF_PI&&l<1.001*n.HALF_PI)l=n.HALF_PI;else{if(l<-n.HALF_PI)return{x:-1/0,y:-1/0,z:e.z};if(l>n.HALF_PI)return{x:1/0,y:1/0,z:e.z}}return u>Math.PI&&(u-=2*Math.PI),o=Math.sin(l),s=Math.cos(l),a=o*o,{x:((i=r/Math.sqrt(1-t*a))+c)*s*Math.cos(u),y:(i+c)*s*Math.sin(u),z:(i*(1-t)+c)*o}}function a(e,t,r,i){var o,a,s,u,l,c,f,h,p,d,y,g,v,m,_,b=e.x,S=e.y,x=e.z?e.z:0;if(o=Math.sqrt(b*b+S*S),a=Math.sqrt(b*b+S*S+x*x),o/r<1e-12){if(m=0,a/r<1e-12)return n.HALF_PI,_=-i,{x:e.x,y:e.y,z:e.z}}else m=Math.atan2(S,b);s=x/a,h=(u=o/a)*(1-t)*(l=1/Math.sqrt(1-t*(2-t)*u*u)),p=s*l,v=0;do{v++,c=t*(f=r/Math.sqrt(1-t*p*p))/(f+(_=o*h+x*p-f*(1-t*p*p))),g=(y=s*(l=1/Math.sqrt(1-c*(2-c)*u*u)))*h-(d=u*(1-c)*l)*p,h=d,p=y}while(g*g>1e-24&&v<30);return{x:m,y:Math.atan(y/Math.abs(d)),z:_}}function s(e,t,r){if(t===n.PJD_3PARAM)return{x:e.x+r[0],y:e.y+r[1],z:e.z+r[2]};if(t===n.PJD_7PARAM){var i=r[0],o=r[1],a=r[2],s=r[3],u=r[4],l=r[5],c=r[6];return{x:c*(e.x-l*e.y+u*e.z)+i,y:c*(l*e.x+e.y-s*e.z)+o,z:c*(-u*e.x+s*e.y+e.z)+a}}}function u(e,t,r){if(t===n.PJD_3PARAM)return{x:e.x-r[0],y:e.y-r[1],z:e.z-r[2]};if(t===n.PJD_7PARAM){var i=r[0],o=r[1],a=r[2],s=r[3],u=r[4],l=r[5],c=r[6],f=(e.x-i)/c,h=(e.y-o)/c,p=(e.z-a)/c;return{x:f+l*h-u*p,y:-l*f+h+s*p,z:u*f-s*h+p}}}},function(e,t,r){"use strict";r.r(t),t.default=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}},function(e,t,r){"use strict";r.r(t),r.d(t,"forward",function(){return f}),r.d(t,"inverse",function(){return h}),r.d(t,"toPoint",function(){return p});var n=6,i="AJSAJS",o="AFAFAF",a=65,s=73,u=79,l=86,c=90;function f(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=v(r),f=Math.floor(e/1e5),h=Math.floor(t/1e5)%20;return function(e,t,r){var n=r-1,f=i.charCodeAt(n),h=o.charCodeAt(n),p=f+e-1,d=h+t,y=!1;p>c&&(p=p-c+a-1,y=!0);(p===s||f<s&&p>s||(p>s||f<s)&&y)&&p++;(p===u||f<u&&p>u||(p>u||f<u)&&y)&&++p===s&&p++;p>c&&(p=p-c+a-1);d>l?(d=d-l+a-1,y=!0):y=!1;(d===s||h<s&&d>s||(d>s||h<s)&&y)&&d++;(d===u||h<u&&d>u||(d>u||h<u)&&y)&&++d===s&&d++;d>l&&(d=d-l+a-1);return String.fromCharCode(p)+String.fromCharCode(d)}(f,h,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,u=e.lat,l=e.lon,c=6378137,f=d(u),h=d(l);s=Math.floor((l+180)/6)+1,180===l&&(s=60);u>=56&&u<64&&l>=3&&l<12&&(s=32);u>=72&&u<84&&(l>=0&&l<9?s=31:l>=9&&l<21?s=33:l>=21&&l<33?s=35:l>=33&&l<42&&(s=37));a=d(6*(s-1)-180+3),.006739496752268451,t=c/Math.sqrt(1-.00669438*Math.sin(f)*Math.sin(f)),r=Math.tan(f)*Math.tan(f),n=.006739496752268451*Math.cos(f)*Math.cos(f),i=Math.cos(f)*(h-a),o=c*(.9983242984503243*f-.002514607064228144*Math.sin(2*f)+2639046602129982e-21*Math.sin(4*f)-3.418046101696858e-9*Math.sin(6*f));var p=.9996*t*(i+(1-r+n)*i*i*i/6+(5-18*r+r*r+72*n-.39089081163157013)*i*i*i*i*i/120)+5e5,y=.9996*(o+t*Math.tan(f)*(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));u<0&&(y+=1e7);return{northing:Math.round(y),easting:Math.round(p),zoneNumber:s,zoneLetter:function(e){var t="Z";84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C");return t}(u)}}({lat:e[1],lon:e[0]}),t)}function h(e){var t=g(m(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]}function p(e){var t=g(m(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function d(e){return e*(Math.PI/180)}function y(e){return e/Math.PI*180}function g(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,f,h,p=6378137,d=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),v=r-5e5,m=t;n<"N"&&(m-=1e7),c=6*(i-1)-180+3,h=(f=m/.9996/6367449.145945056)+(3*d/2-27*d*d*d/32)*Math.sin(2*f)+(21*d*d/16-55*d*d*d*d/32)*Math.sin(4*f)+151*d*d*d/96*Math.sin(6*f),o=p/Math.sqrt(1-.00669438*Math.sin(h)*Math.sin(h)),a=Math.tan(h)*Math.tan(h),s=.006739496752268451*Math.cos(h)*Math.cos(h),u=.99330562*p/Math.pow(1-.00669438*Math.sin(h)*Math.sin(h),1.5),l=v/(.9996*o);var _=h-o*Math.tan(h)/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);_=y(_);var b,S=(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(h);if(S=c+y(S),e.accuracy){var x=g({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});b={top:x.lat,right:x.lon,bottom:_,left:S}}else b={lat:_,lon:S};return b}function v(e){var t=e%n;return 0===t&&(t=n),t}function m(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,r=e.length,n=null,f="",h=0;!/[A-Z]/.test(t=e.charAt(h));){if(h>=2)throw"MGRSPoint bad conversion from: "+e;f+=t,h++}var p=parseInt(f,10);if(0===h||h+3>r)throw"MGRSPoint bad conversion from: "+e;var d=e.charAt(h++);if(d<="A"||"B"===d||"Y"===d||d>="Z"||"I"===d||"O"===d)throw"MGRSPoint zone letter "+d+" not handled: "+e;n=e.substring(h,h+=2);for(var y=v(p),g=function(e,t){var r=i.charCodeAt(t-1),n=1e5,o=!1;for(;r!==e.charCodeAt(0);){if(++r===s&&r++,r===u&&r++,r>c){if(o)throw"Bad character: "+e;r=a,o=!0}n+=1e5}return n}(n.charAt(0),y),m=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;var r=o.charCodeAt(t-1),n=0,i=!1;for(;r!==e.charCodeAt(0);){if(++r===s&&r++,r===u&&r++,r>l){if(i)throw"Bad character: "+e;r=a,i=!0}n+=1e5}return n}(n.charAt(1),y);m<_(d);)m+=2e6;var b=r-h;if(b%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 S,x,w,O=b/2,E=0,P=0;return O>0&&(S=1e5/Math.pow(10,O),x=e.substring(h,h+O),E=parseFloat(x)*S,w=e.substring(h+O),P=parseFloat(w)*S),{easting:E+g,northing:P+m,zoneLetter:d,zoneNumber:p,accuracy:S}}function _(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}t.default={forward:f,inverse:h,toPoint:p}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return l}),r.d(t,"forward",function(){return c}),r.d(t,"inverse",function(){return f}),r.d(t,"names",function(){return h});var n=r(109),i=r(73),o=r(110),a=r(6),s=r(4),u=r(42);function l(){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=Object(n.default)(this.es),this.ml0=Object(i.default)(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function c(e){var t,r,n,o=e.x,u=e.y,l=Object(a.default)(o-this.long0),c=Math.sin(u),f=Math.cos(u);if(this.es){var h=f*l,p=Math.pow(h,2),d=this.ep2*Math.pow(f,2),y=Math.pow(d,2),g=Math.abs(f)>s.EPSLN?Math.tan(u):0,v=Math.pow(g,2),m=Math.pow(v,2);t=1-this.es*Math.pow(c,2),h/=Math.sqrt(t);var _=Object(i.default)(u,c,f,this.en);r=this.a*(this.k0*h*(1+p/6*(1-v+d+p/20*(5-18*v+m+14*d-58*v*d+p/42*(61+179*m-m*v-479*v)))))+this.x0,n=this.a*(this.k0*(_-this.ml0+c*l*h/2*(1+p/12*(5-v+9*d+4*y+p/30*(61+m-58*v+270*d-330*v*d+p/56*(1385+543*m-m*v-3111*v))))))+this.y0}else{var b=f*Math.sin(l);if(Math.abs(Math.abs(b)-1)<s.EPSLN)return 93;if(r=.5*this.a*this.k0*Math.log((1+b)/(1-b))+this.x0,n=f*Math.cos(l)/Math.sqrt(1-Math.pow(b,2)),(b=Math.abs(n))>=1){if(b-1>s.EPSLN)return 93;n=0}else n=Math.acos(n);u<0&&(n=-n),n=this.a*this.k0*(n-this.lat0)+this.y0}return e.x=r,e.y=n,e}function f(e){var t,r,n,i,l=(e.x-this.x0)*(1/this.a),c=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+c/this.k0,r=Object(o.default)(t,this.es,this.en),Math.abs(r)<s.HALF_PI){var f=Math.sin(r),h=Math.cos(r),p=Math.abs(h)>s.EPSLN?Math.tan(r):0,d=this.ep2*Math.pow(h,2),y=Math.pow(d,2),g=Math.pow(p,2),v=Math.pow(g,2);t=1-this.es*Math.pow(f,2);var m=l*Math.sqrt(t)/this.k0,_=Math.pow(m,2);n=r-(t*=p)*_/(1-this.es)*.5*(1-_/12*(5+3*g-9*d*g+d-4*y-_/30*(61+90*g-252*d*g+45*v+46*d-_/56*(1385+3633*g+4095*v+1574*v*g)))),i=Object(a.default)(this.long0+m*(1-_/6*(1+2*g+d-_/20*(5+28*g+24*v+8*d*g+6*d-_/42*(61+662*g+1320*v+720*v*g))))/h)}else n=s.HALF_PI*Object(u.default)(c),i=0;else{var b=Math.exp(l/this.k0),S=.5*(b-1/b),x=this.lat0+c/this.k0,w=Math.cos(x);t=Math.sqrt((1-Math.pow(w,2))/(1+Math.pow(S,2))),n=Math.asin(t),c<0&&(n=-n),i=0===S&&0===w?0:Object(a.default)(Math.atan2(S,w)+this.long0)}return e.x=i,e.y=n,e}var h=["Fast_Transverse_Mercator","Fast Transverse Mercator"];t.default={init:l,forward:c,inverse:f,names:h}},function(e,t,r){"use strict";r.r(t);var n=.01068115234375;t.default=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*n))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*n)));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}},function(e,t,r){"use strict";r.r(t);var n=r(73),i=r(4);t.default=function(e,t,r){for(var o=1/(1-t),a=e,s=20;s;--s){var u=Math.sin(a),l=1-t*u*u;if(a-=l=(Object(n.default)(a,u,Math.cos(a),r)-e)*(l*Math.sqrt(l))*o,Math.abs(l)<i.EPSLN)return a}return a}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return f}),r.d(t,"forward",function(){return h}),r.d(t,"inverse",function(){return p}),r.d(t,"names",function(){return d});var n=r(108),i=r(112),o=r(56),a=r(202),s=r(204),u=r(205),l=r(206),c=r(6);function f(){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&&(n.default.init.apply(this),this.forward=n.default.forward,this.inverse=n.default.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 i=Object(s.default)(this.cbg,this.lat0);this.Zb=-this.Qn*(i+Object(u.default)(this.gtu,2*i))}function h(e){var t=Object(c.default)(e.x-this.long0),r=e.y;r=Object(s.default)(this.cbg,r);var n=Math.sin(r),i=Math.cos(r),u=Math.sin(t),f=Math.cos(t);r=Math.atan2(n,f*i),t=Math.atan2(u*i,Object(o.default)(n,i*f)),t=Object(a.default)(Math.tan(t));var h,p,d=Object(l.default)(this.gtu,2*r,2*t);return r+=d[0],t+=d[1],Math.abs(t)<=2.623395162778?(h=this.a*(this.Qn*t)+this.x0,p=this.a*(this.Qn*r+this.Zb)+this.y0):(h=1/0,p=1/0),e.x=h,e.y=p,e}function p(e){var t,r,n=(e.x-this.x0)*(1/this.a),a=(e.y-this.y0)*(1/this.a);if(a=(a-this.Zb)/this.Qn,n/=this.Qn,Math.abs(n)<=2.623395162778){var u=Object(l.default)(this.utg,2*a,2*n);a+=u[0],n+=u[1],n=Math.atan(Object(i.default)(n));var f=Math.sin(a),h=Math.cos(a),p=Math.sin(n),d=Math.cos(n);a=Math.atan2(f*d,Object(o.default)(p,d*h)),n=Math.atan2(p,d*h),t=Object(c.default)(n+this.long0),r=Object(s.default)(this.cgb,a)}else t=1/0,r=1/0;return e.x=t,e.y=r,e}var d=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"];t.default={init:f,forward:h,inverse:p,names:d}},function(e,t,r){"use strict";r.r(t),t.default=function(e){var t=Math.exp(e);return t=(t-1/t)/2}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(22));var o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"initPropertys",value:function(e){var r=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayerViewUpdateEvent=t.LayerViewUpdateContent=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(113));function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(e){function t(){return a(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"initPropertys",value:function(e){var r=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initPropertys",this).call(this,e);return this.updateContent=(0,i.defaultValue)(r.updateContent,[]),r}}]),t}();t.LayerViewUpdateContent=function e(t){a(this,e);var r=(0,i.defaultValue)(t,{});this.dataChanged=(0,i.defaultValue)(r.dataChanged,!1),this.name=(0,i.defaultValue)(r.name,""),this.operationType=(0,i.defaultValue)(r.operationType,"method"),this.params=(0,i.defaultValue)(r.params,[]),this.extendProps=(0,i.defaultValue)(r.extendProps,{})},t.LayerViewUpdateEvent=s},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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.extent=(0,i.defaultValue)(t.extent,void 0),this.id=(0,i.defaultValue)(t.id,(0,i.getGUID)()),this.tileInfo=t.tileInfo,this.layer=(0,i.defaultValue)(t.layer,void 0),this.tileMatrix=(0,i.defaultValue)(t.tileMatrix,[]),this.identifier=(0,i.defaultValue)(t.identifier,void 0),this.supportedCRS=(0,i.defaultValue)(t.supportedCRS,void 0)}return n(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,i.defaultValue)(t,{}))}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=(0,i.defaultValue)(t,{});this.expression=(0,i.defaultValue)(r.expression,"")}return n(e,[{key:"clone",value:function(){return new e({expression:this.expression})}},{key:"toJSON",value:function(){return{expression:this.expression}}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(44)),o=r(0),a=r(3),s=r(10),u=r(1);var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,o.defaultValue)(e,{}),r.id=(0,o.defaultValue)(e.id,(0,o.getGUID)()),r.attributes=(0,o.defaultValue)(e.attributes,{}),r.geometry=r._decorate("geometry",e.geometry,a.Geometry,a.Geometry.fromJSON),r.geometry||o.Log.error("要素几何信息缺失"),r.symbol=r._decorate("symbol",e.symbol,s.Symbol,r._getSymbol.bind(r)),r.visible=(0,o.defaultValue)(e.visible,!0),r.type="Feature",r.elevationInfo=(0,o.defaultValue)(e.elevationInfo,void 0),r.additional=(0,o.defaultValue)(e.additional,{}),r.styleInfo=(0,o.defaultValue)(e.styleInfo,{}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"_getSymbol",value:function(e){var t=e?e.type:"undefine",r=this.geometry.type,n=e instanceof s.Symbol?e:s.Symbol.fromJSON(e);switch(r){case u.GeometryType.multiPoint:case u.GeometryType.point:var i=[u.SymbolType.simpleMarker,u.SymbolType.text,u.SymbolType.mapgisText,u.SymbolType.pictureMarker,u.SymbolType.point3D,u.SymbolType.label3D];(0,o.defined)(e)||(n=new s.SimpleMarkerSymbol),i.some(function(e){return e===t})||(o.Log.info("图元几何和符号不匹配"),n=new s.SimpleMarkerSymbol({color:n.color.clone()}));break;case u.GeometryType.multiLineString:case u.GeometryType.lineString:var a=[u.SymbolType.simpleLine,u.SymbolType.line3D];(0,o.defined)(e)||(n=new s.SimpleLineSymbol),a.some(function(e){return e===t})||(o.Log.info("图元几何和符号不匹配"),n=new s.SimpleLineSymbol({color:n.color.clone()}));break;case u.GeometryType.polygon:case u.GeometryType.extent:case u.GeometryType.circle:case u.GeometryType.multiPolygon:var l=[u.SymbolType.simpleFill,u.SymbolType.simpleMarker,u.SymbolType.text,u.SymbolType.mapgisText,u.SymbolType.pictureMarker,u.SymbolType.pictureFill,u.SymbolType.polygon3D];(0,o.defined)(e)||(n=new s.SimpleFillSymbol),l.some(function(e){return e===t})||(o.Log.info("图元几何和符号不匹配"),n=new s.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(JSON.stringify(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,o.defaultValue)(e,{});var t=this,r=(0,o.defaultValue)(e.geometry,{});t.geometry=a.Geometry.fromGeoJSON(r);var n=(0,o.defaultValue)(e.properties,{});Object.keys(n).forEach(function(e){n.hasOwnProperty(e)&&(t.attributes[e]=n[e])})}},{key:"toGeoJSON",value:function(){var e=JSON.parse(JSON.stringify(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=null;this.styleInfo instanceof Object&&"{}"!==JSON.stringify(this.styleInfo)&&(e=JSON.parse(JSON.stringify(this.styleInfo)));var t=this.geometry.toJSON();return{type:"Feature",geometry:{type:t.type,coordinates:t.coordinates},attributes:JSON.parse(JSON.stringify(this.attributes)),styleInfo:e}}},{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 Object.keys(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,o.defaultValue)(e,{}))}}]),t}();t.default=l},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=p(r(24)),i=p(r(298)),o=p(r(309)),a=p(r(310)),s=p(r(311)),u=p(r(312)),l=p(r(313)),c=p(r(314)),f=p(r(315)),h=r(1);function p(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=f.default,t.createSymbol3DLayer=function(e){var t=e||{},r=null;switch(t.type){case h.Symbol3DLayerType.line:r=new o.default(t);break;case h.Symbol3DLayerType.path:r=new i.default(t);break;case h.Symbol3DLayerType.fill:r=new a.default(t);break;case h.Symbol3DLayerType.icon:r=new s.default(t);break;case h.Symbol3DLayerType.object:r=new u.default(t);break;case h.Symbol3DLayerType.extrude:r=new l.default(t);break;case h.Symbol3DLayerType.text:r=new c.default(t);break;case h.Symbol3DLayerType.water:r=new f.default(t)}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,[{key:"toJSON",value:function(){}},{key:"clone",value:function(){}}],[{key:"fromJSON",value:function(){}}]),e}();t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(2);var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.color=t.color?o.Color.fromJSON(t.color):new o.Color,this.size=(0,i.defaultValue)(t.size,0)}return n(e,[{key:"toJSON",value:function(){return{color:(0,i.toJSON)(this.color,o.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=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1);var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.style=(0,i.defaultValue)(t.style,o.LinePatternStyle.solid),this.type="style"}return n(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=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=f(r(31)),o=r(0),a=r(1),s=f(r(29)),u=f(r(81)),l=f(r(82)),c=f(r(78));function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,o.defaultValue)(e,{}),r.type=a.SymbolType.text,r.angle=(0,o.defaultValue)(e.angle,0),r.backgroundColor=(0,o.defined)(e.backgroundColor)?s.default.fromColor((0,o.defaultValue)(e.backgroundColor,new s.default(255,255,255,.25))):void 0,r.borderLineColor=s.default.fromColor((0,o.defaultValue)(e.borderLineColor,new s.default(0,0,0,1))),r.borderLineSize=(0,o.defaultValue)(e.borderLineSize,0),r.color=s.default.fromColor((0,o.defaultValue)(e.color,new s.default)),r.font=c.default.fromJSON((0,o.defaultValue)(e.font,{})),r.haloColor=s.default.fromColor((0,o.defaultValue)(e.haloColor,new s.default)),r.haloSize=(0,o.defaultValue)(e.haloSize,0),r.horizontalAlignment=(0,o.defaultValue)(e.horizontalAlignment,u.default.center),r.kerning=(0,o.defaultValue)(e.kerning,!1),r.lineHeight=(0,o.defaultValue)(e.lineHeight,1.1),r.lineWidth=(0,o.defaultValue)(e.lineWidth,192),r.rotated=(0,o.defaultValue)(e.rotated,!1),r.text=(0,o.defaultValue)(e.text,""),r.verticalAlignment=(0,o.defaultValue)(e.verticalAlignment,l.default.baseline),r.xoffset=(0,o.defaultValue)(e.xoffset,0),r.yoffset=(0,o.defaultValue)(e.yoffset,0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.angle=this.angle,e.backgroundColor=(0,o.toJSON)(this.backgroundColor,s.default),e.borderLineColor=(0,o.toJSON)(this.borderLineColor,s.default),e.borderLineSize=this.borderLineSize,e.color=(0,o.toJSON)(this.color,s.default),e.font=(0,o.toJSON)(this.font,c.default),e.haloColor=(0,o.toJSON)(this.haloColor,s.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,o.defaultValue)(e,{}))}}]),t}();t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=function(e){return e&&e.__esModule?e:{default:e}}(r(31));var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.SymbolType.simpleMarker,r.xoffset=(0,i.defaultValue)(e.xoffset,0),r.yoffset=(0,i.defaultValue)(e.yoffset,0),r.angle=(0,i.defaultValue)(e.angle,0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=u(r(31)),a=u(r(87)),s=r(1);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=s.SymbolType.simpleFill,r.outline=r._decorate("outline",e.outline,a.default,a.default.fromJSON),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.type=this.type,e.outline=this.outline.toJSON(),e}}]),t}();t.default=l},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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=l(r(12)),o=r(0),a=r(1),s=l(r(16)),u=r(23);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,o.defaultValue)(e,{}),r.type=a.GeometryType.lineString,r.coordinates=(0,o.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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"getPoint",value:function(e){return e=Number(e),this._isValidate(e)?new s.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,s.default.toCoordinates(t)),this.coordinates=JSON.parse(JSON.stringify(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(JSON.stringify(this.coordinates)),new s.default({coordinates:t})}},{key:"setPoint",value:function(e,t){return this._isValidate(e)?(Array.isArray(this.coordinates)&&this.coordinates.splice(e,1,s.default.toCoordinates(t)),this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),this):this}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse(JSON.stringify(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=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 a.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,o.isNumber)(e)||e<0||e>=t)}},{key:"_cloneCoordinates",value:function(){return JSON.parse(JSON.stringify(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,u.calcExtent)(e,t,a.GeometryType.lineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,o.defaultValue)(e,{}))}}]),t}();Object.defineProperties(c.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=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(15)),o=p(r(12)),a=r(0),s=r(1),u=p(r(47)),l=p(r(16)),c=p(r(32)),f=p(r(63)),h=r(23);function p(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,a.defaultValue)(e,{}),r.coordinates=(0,a.defaultValue)(e.coordinates,[]),r.isSelfIntersecting=(0,a.defaultValue)(e.isSelfIntersecting,!1),r.type=s.GeometryType.multiPolygon,!Array.isArray(r.coordinates))throw new Error("坐标必须为数组");for(var n=0;n<r.coordinates.length;n++){var i=r.coordinates[n],o=!0,u=!1,l=void 0;try{for(var c,f=i[Symbol.iterator]();!(o=(c=f.next()).done);o=!0){var h=c.value;if(h.length<4)throw new Error("每个环至少有四个点");if(h[h.length-1].length!==h[0].length)throw new Error("首尾点维度不相等");for(var p=0;p<h[h.length-1].length;p++)if(h[h.length-1][p]!==h[0][p])throw new Error("第一个位置和最后一个位置不相等")}}catch(e){u=!0,l=e}finally{try{!o&&f.return&&f.return()}finally{if(u)throw l}}}return 3===r.coordinates[0][0][0].length&&(r.hasZ=!0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"addPolygon",value:function(e,t){if(t=(0,a.defaultValue)(t,"add"),e instanceof u.default||f.default.error("polygon类型不是Polygon对象类型!"),"add"===t)this.coordinates.push(e._cloneCoordinates());else{for(var r=[],n=0;n<this.coordinates.length;n++){var o=i.polygon(this.coordinates[n]),s=i.polygon(e.coordinates);i.booleanDisjoint(o,s)||(r.push(o),this.coordinates[n]=void 0)}for(var l=0;l<this.coordinates.length;l++)this.coordinates[l]||this.coordinates.splice(l,1);for(var c=i.polygon(e.coordinates),h=0;h<r.length;h++)c=i.union(c,r[h]).geometry;this.coordinates.push(c.coordinates)}return this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),this}},{key:"removePolygon",value:function(e){if(!this._isValidate(e))return null;var t=JSON.parse(JSON.stringify(this._cloneCoordinates()[e]));return this.coordinates.splice(e,1),this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),new u.default({coordinates:t})}},{key:"toXMl",value:function(){return""}},{key:"contains",value:function(e){if(!e)throw new Error("传入参数错误");var t=i.multiPolygon(this._cloneCoordinates()),r=i.point(l.default.toCoordinates(e));return i.booleanPointInPolygon(r,t)}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse(JSON.stringify(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=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(JSON.stringify(this.coordinates))}},{key:"_isValidate",value:function(e){var t=this.coordinates.length;return!(!(0,a.isNumber)(e)||e<0||e>=t)}},{key:"_calcExtent",value:function(e,t){return(0,h.calcExtent)(e,t,s.GeometryType.multiPolygon,this.spatialReference)}},{key:"getIGSType",value:function(){return s.IGSGeometryType.multiPolygon}},{key:"toPolygonArray",value:function(){for(var e=[],t=0;t<this.coordinates.length;t++)e.push(new u.default({coordinates:this.coordinates[t],spatialReference:c.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,a.defaultValue)(e,{}))}}]),t}();Object.defineProperties(d.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=c(r(12)),a=r(1),s=c(r(16)),u=c(r(63)),l=r(23);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,i.defaultValue)(e,{}),r.coordinates=(0,i.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=a.GeometryType.multiPoint,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"addPoint",value:function(e,t){if(t=(0,i.defaultValue)(t,"add"),e instanceof s.default)this._addPoint(e,t);else if(e instanceof Array){if(this._isNumberArray(e))this._addPoint(new s.default({coordinates:e}),t);else for(var r=0;r<e.length;r++)if(e[r]instanceof s.default)this._addPoint(e[r],t);else if(e[r]instanceof Array){this._isNumberArray(e[r])?this._addPoint(new s.default({coordinates:e[r]}),t):e instanceof s.default?this._addPoint(e[r],t):u.default.error("point的子元素类型不是点几何对象或者点坐标数组!")}else u.default.error("point的类型不是点几何对象或者点坐标数组!")}else u.default.error("point的类型不是点几何对象或者点坐标数组!");return this.coordinates.length>=2&&(this.extent=this._calcExtent(this.coordinates,this.hasZ)),this.coordinates=JSON.parse(JSON.stringify(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 s.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 s.default({coordinates:e}).equals(this.coordinates[r]))return!0}else u.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 s.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(JSON.stringify(this.coordinates)),new s.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,s.default.toCoordinates(t)),this.coordinates=r),this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),this}},{key:"getIGSType",value:function(){return a.IGSGeometryType.multiPoint}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse(JSON.stringify(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=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,i.isNumber)(e)||e<0||e>=t)}},{key:"_cloneCoordinates",value:function(){return JSON.parse(JSON.stringify(this.coordinates))}},{key:"_calcExtent",value:function(e,t){if(e.length>1)return(0,l.calcExtent)(e,t,a.GeometryType.lineString,this.spatialReference)}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,i.defaultValue)(e,{}))}}]),t}();Object.defineProperties(f.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=h(r(12)),o=r(0),a=r(1),s=h(r(47)),u=h(r(16)),l=h(r(32)),c=r(23),f=r(330);function h(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,o.defaultValue)(e,{}),r.center=(0,o.defaultValue)(e.center,void 0),!r.center)throw new Error("缺少圆心坐标");if(r.center=u.default.toCoordinates(r.center),r.radius=(0,o.defaultValue)(e.radius,1e3),!(0,o.isNumber)(r.radius))throw new Error("半径必须为数字");if(r.geodesic=(0,o.defaultValue)(e.geodesic,!1),r.radiusUnit=(0,o.defaultValue)(e.radiusUnit,a.RadiusUnit.meters),r.numberOfPoints=(0,o.defaultValue)(e.numberOfPoints,40),!(0,o.isNumber)(r.numberOfPoints))throw new Error("圆曲线上点的数量必须为数字");return r.type=a.GeometryType.circle,3===r.center.length&&(r.hasZ=!0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.center=JSON.parse(JSON.stringify(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=f.RadiusUnitToMeter[this.radiusUnit]||1,n=this.radius*r,i="geographic";if(e.isWebMercator)i="webMercator";else if(e.wkid&&(0,o.defined)(f.ProjUnitWkidMap[e.wkid]))i="proj";else if(e.wkt){var a=e.wkt;["PROJS","proj4","PROJCRS","+proj"].some(function(e){return 0===a.indexOf(e)})&&(i="proj")}if(!t){"geographic"===i&&(n/=f.RadiusUnitToMeter.degrees);var u=this._tranCircleToPath(this.center,n,this.numberOfPoints);return new s.default({coordinates:u,spatialReference:l.default.fromJSON(this.spatialReference)})}switch(i){case"proj":o.Log.error("暂时仅支持墨卡托投影坐标系和地理坐标系使用geodesic属性");break;case"webMercator":case"geographic":var c=6378137,h=Math.PI/180,p={latitude:this.center[1],longitude:this.center[0]};"webMercator"===i&&(p={longitude:180*p.longitude/Math.PI/c,latitude:180*(2*Math.atan(Math.exp(p.latitude/c))-Math.PI/2)/Math.PI});for(var d=n/1e3,y=d/(111.32*Math.cos(p.latitude*Math.PI/180)),g=d/110.574,v=[],m=0;m<this.numberOfPoints;m+=1){var _=m/this.numberOfPoints*(2*Math.PI),b=y*Math.cos(_),S=g*Math.sin(_),x=p.longitude+b,w=p.latitude+S;if("webMercator"===i){var O=Math.max(Math.min(85.0511287798,w),-85.0511287798),E=Math.sin(O*h);v.push([c*x*h,c*Math.log((1+E)/(1-E))/2])}else v.push([x,w])}return v.length<=3&&o.Log.error("生成圆几何点个数不能小于3"),v.push(v[0]),new s.default({coordinates:[v],spatialReference:l.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 a.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,c.calcExtent)(t._cloneCoordinates(),e,a.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,o.defaultValue)(e,{}))}}]),t}();Object.defineProperties(p.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.hasZ)}}}),t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=l(r(12)),o=r(0),a=r(1),s=l(r(16)),u=r(23);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,o.defaultValue)(e,{}),r.coordinates=(0,o.defaultValue)(e.coordinates,[]),r.type=a.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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"addPath",value:function(e){if(!Array.isArray(e))throw new Error("传入参数错误");var t=[];return e.forEach(function(e){t.push(s.default.toCoordinates(e))}),this.coordinates.push(t),this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),this}},{key:"removePath",value:function(e){if(!this._isValidate(e,0))return null;var t=JSON.parse(JSON.stringify(this._cloneCoordinates()[e]));return this.coordinates.splice(e,1),this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),t.map(function(e){return new s.default({coordinates:e})})}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.coordinates=JSON.parse(JSON.stringify(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 s.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,s.default.toCoordinates(r)),this.coordinates[e]=n,this.coordinates=JSON.parse(JSON.stringify(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(JSON.stringify(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,s.default.toCoordinates(r)),this.coordinates[e]=n,this.coordinates=JSON.parse(JSON.stringify(this.coordinates)),this}},{key:"toString",value:function(){return""}},{key:"toXMl",value:function(){return""}},{key:"getIGSType",value:function(){return a.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,o.isNumber)(e)||e<0||e>=r)return!1;var n=this.coordinates[e].length;return!(!(0,o.isNumber)(t)||t<0||t>=n)}},{key:"_cloneCoordinates",value:function(){return JSON.parse(JSON.stringify(this.coordinates))}},{key:"_calcExtent",value:function(e,t){return(0,u.calcExtent)(e,t,a.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,o.defaultValue)(e,{}))}}]),t}();Object.defineProperties(c.prototype,{extent:{configurable:!1,get:function(){return this._calcExtent(this.coordinates,this.hasZ)}}}),t.default=c},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,r+=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,r+=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}Object.defineProperties(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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=p(r(65)),a=p(r(89)),s=p(r(90)),u=r(1),l=r(48),c=r(2),f=r(3),h=p(r(138));function p(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=(0,i.defaultValue)(r,{}),this.url=t,this.requestInterceptor=(0,i.defaultValue)(r.requestInterceptor,new a.default),this.responseInterceptor=(0,i.defaultValue)(r.responseInterceptor,new s.default),this.requestTimeout=(0,i.defaultValue)(r.requestTimeout,45e3),this.headers=(0,i.defaultValue)(r.headers,{}),this.tokenKey=(0,i.defaultValue)(r.tokenKey,"token"),this.tokenValue=(0,i.defaultValue)(r.tokenValue,void 0),this.tokenAttachType=(0,i.defaultValue)(r.tokenAttachType,u.TokenAttachType.normal)}return n(e,[{key:"destroy",value:function(){this.url=null,this.options=null}},{key:"request",value:function(e){if(e=(0,i.defaultValue)(e,{}),!(0,i.isNull)(e.url))return!(0,i.isNull)(this.requestInterceptor)&&!(0,i.isNull)(this.requestInterceptor.before)&&this.requestInterceptor.before instanceof Function&&(e=this.requestInterceptor.before(e)),(0,i.isNull)(e)?void 0:this._commit(e);i.Log.error("url不存在!")}},{key:"_commit",value:function(e){var t=this;e.url=(0,l.ServiceConfigRequestInterceptors)(h.default,(0,l.isEncoded)(e.url)?e.url:encodeURI(e.url)),e.headers=(0,i.defaultValue)(e.headers,{});var r=Object.assign(e.headers,this.headers),n={headers:r=Object.assign(r,h.default.headers),withCredentials:e.withCredentials,requestTimeout:this.requestTimeout,proxy:e.proxy,tokenKey:this.tokenKey||h.default.tokenKey,tokenValue:this.tokenValue||h.default.tokenValue,tokenAttachType:e.tokenAttachType||this.tokenAttachType};return e.responseType&&(n.responseType=e.responseType),o.default.commit(e.method,e.url,e.data,n).then(function(r){var o=void 0;if(r.text){if("blob"===n.responseType)return r.blob();o=function(){return r.text()}}else o=function(){return r.json()};return 200===r.status?new Promise(function(r){o().then(function(n){var o=void 0;if((0,i.isNull)(n))o={succeed:!0,msg:"服务器没有返回信息",data:void 0};else{var a=void 0;if("string"==typeof n)if(n.indexOf("<?xml")>-1)if(n.indexOf("OGC:WMS")>-1||n.indexOf("WMS_Capabilities")>-1||n.indexOf("<Keyword>WMS</Keyword>")>-1){var s="1.1.1";n.indexOf("1.3.0")>-1&&(s="1.3.0");var u=(0,l.getDoc)(n);a=(0,l.getWMSInfoFromXML)(u,s,e.url)}else if(n.indexOf("WMTS")>-1||n.indexOf("wmts/1.0")>-1){var p=(0,l.getDoc)(n);a=(0,l.getWMTSInfoFromXML)(p)}else if(n.indexOf("wfs:WFS_Capabilities")>-1){var d=(0,l.getDoc)(n);a=(0,l.getWFSInfoFromXML)(d)}else if(n.indexOf("wfs:FeatureCollection")>-1){var y=(0,l.getDoc)(n),g=e.url.toLowerCase(),v="2.0.0";g.indexOf("version=1.0.0")>-1?v="1.0.0":g.indexOf("version=1.1.0")>-1?v="1.1.0":g.indexOf("version=2.0.0")>-1&&(v="1.1.0"),a=(0,l.getWFSFeature)(y,v)}else n.indexOf("<svg")>-1&&(a=n);else{if(n.indexOf("html>")>-1)return!(0,i.isNull)(t.responseInterceptor)&&!(0,i.isNull)(t.responseInterceptor.failure)&&t.responseInterceptor.failure instanceof Function&&t.responseInterceptor.failure({succeed:!1,msg:"服务器不支持"+e.method+"请求或其他错误",data:void 0,errorType:"unKnownError"}),!(0,i.isNull)(e.failure)&&e.failure instanceof Function&&e.failure({succeed:!1,msg:"服务器不支持"+e.method+"请求或其他错误",data:void 0,errorType:"unKnownError"}),Promise.reject({succeed:!1,msg:"服务器不支持"+e.method+"请求或其他错误",data:void 0,errorType:"unKnownError"});if((a=JSON.parse(n))instanceof Object&&(e.url.indexOf("/igs/rest/mrfs/layer/query")>-1||e.url.indexOf("/igs/rest/mrfs/docs/")>-1)){var m=(0,l.fromQueryResult)(a);delete a.SFEleArray,a.featureSets=m;var _=[];if(m.length>1)for(var b=0;b<m.length;b++)_.push(a[String(b)]),delete a[String(b)];else a.AttStruct.TotalCount=a.TotalCount,_.push(a.AttStruct),delete a.AttStruct,delete a.TotalCount;a.featureInfos=_,(e.url.indexOf("/igs/rest/mrfs/docs/")>-1||e.url.indexOf("/igs/rest/mrfs/layer/")>-1)&&(m.length>0?a.featureSet=m[0]:a.featureSet=new c.FeatureSet)}}if(a instanceof Object){if(a.hasOwnProperty("features")&&a.features instanceof Array){var S=void 0,x=!1;a.spatialReference?S=new f.SpatialReference(a.spatialReference):e.extensionOptions&&e.extensionOptions.outSrs?S=new f.SpatialReference(e.extensionOptions.outSrs):(x=!0,S=f.SpatialReference.fromJSON(a.spatialReference));var w=!1;/(igs)\/rest\/services\/.*\/WFSServer/.test(e.url)&&4326===S.wkid&&x&&(w=!0),a.featureSet=c.FeatureSet.fromArray(a.features,new c.FeatureSet({spatialReference:S}),{reverse:w})}else if(a.hasOwnProperty("layers")&&e.url.indexOf("igs/rest/mrcs/tiles")<0)for(var O=0;O<a.layers.length;O++){var E=void 0;E=e.extensionOptions&&e.extensionOptions.outSrs?new f.SpatialReference(e.extensionOptions.outSrs):f.SpatialReference.fromJSON(a.layers[O].spatialReference),a.layers[O].featureSet=c.FeatureSet.fromArray(a.layers[O].features,new c.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 P=new f.SpatialReference("EPSG:4326");a.spatialReference&&(P=new f.SpatialReference({wkid:a.spatialReference.wkid,wkt:a.spatialReference.wkt}));for(var k=a.layers,T=0;T<k.length;T++)k[T].features&&(k[T].featureSet=c.FeatureSet.fromArray(k[T].features,new c.FeatureSet({spatialReference:P})),delete k[T].features)}}else if(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,l.ServiceConfigResponseInterceptors)(h.default,(0,l.isEncoded)(e.url)?e.url:encodeURI(e.url),o),!(0,i.isNull)(t.responseInterceptor)&&!(0,i.isNull)(t.responseInterceptor.success)&&t.responseInterceptor.success instanceof Function&&(o=t.responseInterceptor.success(o)),!(0,i.isNull)(o)&&!(0,i.isNull)(e.success)&&e.success instanceof Function&&e.success(o),r(o)})},function(e){console.log("Fetch返回异常",e)}):new Promise(function(r){o().then(function(n){var o=void 0;if((0,i.isNull)(n))o={succeed:!1,msg:"请求失败,服务器没有返回信息",data:void 0};else{var a=JSON.parse(n);o=a instanceof Object?{succeed:!1,msg:"请求失败",data:a}:{succeed:!1,msg:a,data:void 0}}!(0,i.isNull)(t.responseInterceptor)&&!(0,i.isNull)(t.responseInterceptor.failure)&&t.responseInterceptor.failure instanceof Function&&(o=t.responseInterceptor.failure(o)),!(0,i.isNull)(o)&&!(0,i.isNull)(e.failure)&&e.failure instanceof Function&&e.failure(o),r(o)})},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=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={tokenKey:"token",tokenValue:void 0,headers:{},request:{interceptors:[]}};t.default=n},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=E(r(341)),i=E(r(342)),o=E(r(343)),a=E(r(344)),s=E(r(345)),u=E(r(346)),l=E(r(347)),c=E(r(348)),f=E(r(140)),h=E(r(349)),p=E(r(350)),d=E(r(351)),y=E(r(352)),g=E(r(353)),v=E(r(354)),m=E(r(355)),_=E(r(91)),b=E(r(66)),S=r(356),x=r(362),w=r(366),O=r(159);function E(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=f.default,t.SecurityServer=h.default,t.RootServer=p.default,t.TileServer=d.default,t.VectorTileServer=y.default,t.PlotServer=g.default,t.ResourceServer=v.default,t.SceneServer=m.default,t.WMSServer=S.WMSServer,t.WMTSServer=S.WMTSServer,t.WFSServer=S.WFSServer,t.WorkFlowServer=O.WorkFlowServer,t.ArcGISMapServer=x.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=x.ArcGISGeometryServer,t.ArcGISFeatureServer=x.ArcGISFeatureServer,t.ArcGISVectorTileServer=x.ArcGISVectorTileServer,t.CAttDataRow=_.default,t.CAttStruct=b.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(5));var o=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"getLayerJSON",value:function(e){return this._queryByParameters(e,{},{},function(e){return e+"/layer.json"})}}]),t}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(5));var o=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(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}();t.default=o},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(0);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=a(r(14)),i=a(r(146)),o=r(0);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,o.defaultValue)(e,{}),r.ChartType=void 0!==e.ChartType?e.ChartType:i.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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=s},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=function(e){return e&&e.__esModule?e:{default:e}}(r(14)),i=r(0);var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,i.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(14)),i=r(0);var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,i.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.ClrInfo=void 0!==e.ClrInfo?e.ClrInfo:[25,57,89,121],r.Type="CFourColorTheme",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(14)),i=r(0);var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,i.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=o},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=function(e){return e&&e.__esModule?e:{default:e}}(r(14)),i=r(0);var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,i.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(14)),i=r(0);var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,i.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.Type="CRandomTheme",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(14)),i=a(r(142)),o=r(0);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,o.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.AllOtherDataItemInfoSource=void 0!==e.AllOtherDataItemInfoSource?e.AllOtherDataItemInfoSource:i.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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(14)),i=a(r(49)),o=r(0);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,o.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.ThemeInfo=void 0!==e.ThemeInfo?e.ThemeInfo:new i.default,r.Type="CSimpleTheme",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();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(14)),i=r(0);var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,i.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.default),t}();t.default=o},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=P(r(8)),i=P(r(377)),o=P(r(378)),a=P(r(379)),s=P(r(380)),u=P(r(381)),l=P(r(382)),c=P(r(383)),f=P(r(384)),h=P(r(385)),p=P(r(386)),d=P(r(387)),y=P(r(388)),g=P(r(389)),v=P(r(390)),m=P(r(391)),_=P(r(392)),b=P(r(393)),S=P(r(394)),x=P(r(395)),w=P(r(396)),O=P(r(397)),E=P(r(398));function P(e){return e&&e.__esModule?e:{default:e}}var k={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:f.default,WorkFlowServer600237:h.default,WorkFlowServer600238:p.default,WorkFlowServer600239:d.default,WorkFlowServer600307:y.default,WorkFlowServer600308:g.default,WorkFlowServer600309:v.default,WorkFlowServer600314:m.default,WorkFlowServer600334:_.default,WorkFlowServer600336:b.default,WorkFlowServer600340:S.default,WorkFlowServer600354:x.default,WorkFlowServer600368:w.default,WorkFlowServer600369:O.default,WorkFlowServer600370:E.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=k["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=h(r(399)),i=h(r(167)),o=h(r(425)),a=h(r(168)),s=h(r(426)),u=h(r(427)),l=h(r(93)),c=h(r(169)),f=h(r(428));function h(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=f.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=l(r(67)),a=l(r(401)),s=l(r(39)),u=r(1);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=u.LayerType.vectorTileSubLayer,r._labelingInfo=(0,i.defaultValue)(e.labelingInfo,[]),r._styleLayers=(0,i.defaultValue)(e.styleLayers,[]),r._visible=(0,i.defaultValue)(e.visible,!0),r._opacity=(0,i.defaultValue)(e.opacity,1),r._renderer=(0,i.defaultValue)(e.renderer,void 0),r._updateStyle(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),n(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");Object.keys(r).forEach(function(n){e.paint[n]=Number(r[n])*t.opacity*t.layer.opacity})}},{key:"_updateStyleLayerByRenderer",value:function(e){var t=a.default.renderToStyle(this._renderer,e.type,JSON.parse(JSON.stringify(e)));if(t){var r=t.paint,n=t.layout;e.paint=Object.assign(e.paint,r),e.layout=Object.assign(e.layout,n)}}},{key:"_convertLabelInfoToLabelClass",value:function(){for(var e=(0,i.cloneObject)(this._labelingInfo),t=[],r=0;r<e.length;r++)t.push(new o.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,i.defaultValue)(e,"setStyleLayer"),t=(0,i.defaultValue)(t,[]),this.layer._fireLayerUpdateEvent([{params:t,dataChanged:!0,name:e,operationType:"method"}])}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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}();Object.defineProperties(c.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=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMapboxExpression=t.convertColorToRgb=t.convertLineStyle=void 0;var n=r(2);var i="== != > < >= <= 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";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]&&i.indexOf(e[0])>-1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(10),a=function(e){return e&&e.__esModule?e:{default:e}}(r(164));var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.value=e.value,r.symbol=o.Symbol.fromJSON(e.symbol),r.visible=(0,i.defaultValue)(e.visible,!0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,i.defaultValue)(e,{}))}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.id=(0,i.defaultValue)(t.id,(0,i.getGUID)()),this.label=(0,i.defaultValue)(t.label,""),this.description=(0,i.defaultValue)(t.description,"")}return n(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,i.defaultValue)(t,{}))}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(10),a=function(e){return e&&e.__esModule?e:{default:e}}(r(164));var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.minValue=e.minValue,r.maxValue=e.maxValue,r.symbol=o.Symbol.fromJSON(e.symbol),r.visible=(0,i.defaultValue)(e.visible,!0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,i.defaultValue)(e,{}))}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(2);var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.ratio=t.ratio,this.color=o.Color.fromColor((0,i.defaultValue)(t.color,{}))}return n(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,i.defaultValue)(t,{}))}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(161));var o=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(3),a=r(7),s=r(25),u=r(160),l=r(40),c=r(2);var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(r.url=(0,i.defaultValue)(e.url,""),r.name=(0,i.defaultValue)(e.name,""),r.type=(0,i.defaultValue)(e.type,""),r.fields=(0,i.defaultValue)(e.fields,[]),r.geomType=(0,i.defaultValue)(e.geomType||e.GeomType,""),r.maxScale=(0,i.defaultValue)(e.maxScale,0),r.minScale=(0,i.defaultValue)(e.minScale,0),e.range?r.extent=new o.Extent({xmin:e.range.xmin,ymin:e.range.ymin,xmax:e.range.xmax,ymax:e.range.ymax}):r.extent=new o.Extent({xmin:-180,ymin:-90,xmax:180,ymax:90}),r.spatialReference=e.spatialReference?new o.SpatialReference(e.spatialReference):new o.SpatialReference({wkid:4326}),r.supportedMethods=(0,i.defaultValue)(e.supportedMethods,[]),r.systemLibGuid=(0,i.defaultValue)(e.systemLibGuid,void 0),r.systemLibName=(0,i.defaultValue)(e.systemLibName,void 0),r.id=(0,i.defaultValue)(e.id,e.LayerIndex||e.index),void 0!==r.id&&null!==r.id&&""!==r.id||(r.id=(0,i.getGUID)()),r.index=(0,i.defaultValue)(e.index,void 0),r._renderer=e.renderer?l.BaseRenderer.fromJSON(e.renderer):void 0,r._definitionExpression=(0,i.defaultValue)(e.definitionExpression,void 0),r.geometryFilter=(0,i.defaultValue)(e.geometryFilter,void 0),e.sublayers&&Array.isArray(e.sublayers)){for(var n=new c.Collection,a=0;a<e.sublayers.length;a++){var s=e.sublayers[a];s.layer=r,n.add(new t(s))}r.sublayers=n}return r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.SubLayer),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,s.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 o.Extent({xmin:r.range.xmin,ymin:r.range.ymin,xmax:r.range.xmax,ymax:r.range.ymax}),e.spatialReference=r.spatialReference?new o.SpatialReference(r.spatialReference):new o.SpatialReference({wkid:4326}),e.systemLibGuid=r.systemLibGuid,e.systemLibName=r.systemLibName,e.type=r.type,e.url=r.url),new Promise(function(t){t(e)})})}}},{key:"_getSourceLayer",value:function(){for(var e=this.layer;e&&!(e instanceof u.IGSMapImageLayer);)e=e.layer;return e instanceof u.IGSMapImageLayer?e:null}}]),t}();Object.defineProperties(f.prototype,{renderer:{get:function(){return this._renderer},set:function(e){e instanceof l.BaseRenderer?this._renderer=e:this._renderer=l.BaseRenderer.fromJSON(e);var t=this._getSourceLayer();t&&t.refresh()}},definitionExpression:{get:function(){return this._definitionExpression},set:function(e){if(e){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=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(3),a=function(e){return e&&e.__esModule?e:{default:e}}(r(93)),s=r(2),u=r(1);var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.sceneIndex=(0,i.defaultValue)(t.sceneIndex,0),this.sceneName=(0,i.defaultValue)(t.sceneName,void 0),this.sceneMode=(0,i.defaultValue)(t.sceneMode,void 0),this.sceneRange=(0,i.defaultValue)(new o.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,i.defaultValue)(t.sublayers,new s.Collection),this.layer=(0,i.defaultValue)(t.layer,void 0),this.extendedProps=(0,i.defaultValue)(t.extendedProps,void 0),this._allSublayers=new s.Collection,this._initAllSubLayers(this.sublayers)}return n(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,i.toJSON)(this.sublayers[t],a.default));return{sceneIndex:this.sceneIndex,sceneName:this.sceneName,sceneMode:this.sceneMode,sceneRange:(0,i.toJSON)(this.sceneRange,o.Extent),extendedProps:this.extendedProps,sublayers:e}}},{key:"_initAllSubLayers",value:function(e){var t=this;e.forEach(function(e){e.type!==u.SceneSubLayerType.groupLayer3D?t._allSublayers.add(e):e.sublayers.items.length>0&&t._initAllSubLayers(e.sublayers)})}}]),e}();Object.defineProperties(l.prototype,{allSublayers:{get:function(){return this._allSublayers}}}),t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(3),a=r(7);var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.url=(0,i.defaultValue)(e.url,""),r.name=(0,i.defaultValue)(e.name,""),r.type=(0,i.defaultValue)(e.type,""),r.fields=(0,i.defaultValue)(e.fields,[]),r.geomType=(0,i.defaultValue)(e.geomType||e.GeomType,""),r.maxScale=(0,i.defaultValue)(e.maxScale,0),r.minScale=(0,i.defaultValue)(e.minScale,0),e.range?r.extent=new o.Extent({xmin:e.range.xmin,ymin:e.range.ymin,xmax:e.range.xmax,ymax:e.range.ymax}):r.extent=new o.Extent({xmin:-180,ymin:-90,xmax:180,ymax:90}),r.spatialReference=(0,i.defaultValue)(e.spatialReference,void 0),r.supportedMethods=(0,i.defaultValue)(e.supportedMethods,[]),r.systemLibGuid=(0,i.defaultValue)(e.systemLibGuid,void 0),r.systemLibName=(0,i.defaultValue)(e.systemLibName,void 0),r.id=e.id,r.index=(0,i.defaultValue)(e.index,void 0),r.moveIndex=(0,i.defaultValue)(e.moveIndex,void 0),r._renderer=(0,i.defaultValue)(e.renderer,void 0),r.layer=(0,i.defaultValue)(e.layer,void 0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.SubLayer),n(t,null,[{key:"fromJSON",value:function(e){return new t(e=(0,i.defaultValue)(e,{}))}}]),t}();Object.defineProperties(s.prototype,{renderer:{get:function(){return this._renderer},set:function(e){this._renderer=e,this.layer.setSubLayer(this)}}}),t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(7),o=r(2),a=r(0),s=r(3),u=c(r(33)),l=c(r(41));function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(e=(0,a.defaultValue)(e,{}),r.description="IGS WMTS子图层",r.imageFormat=(0,a.defaultValue)(e.imageFormat,"image/png"),r.identifier=(0,a.defaultValue)(e.identifier,""),r.title=(0,a.defaultValue)(e.title,""),r.imageFormats=(0,a.defaultValue)(e.imageFormats,void 0),r.styleId=(0,a.defaultValue)(e.styleId,void 0),r.styles=(0,a.defaultValue)(e.styles,void 0),r.tileMatrixSets=(0,a.defaultValue)(e.tileMatrixSets,void 0),r.tileMatrixSets&&r.tileMatrixSets instanceof Array)for(var n=0;n<r.tileMatrixSets.length;n++)r.tileMatrixSets[n]instanceof o.TileMatrixSet||(r.tileMatrixSets[n]=o.TileMatrixSet.fromJSON(r.tileMatrixSets[n]),!r.tileMatrixSets[n].tileInfo||r.tileMatrixSets[n].tileInfo instanceof l.default||(r.tileMatrixSets[n].tileInfo=l.default.fromJSON(r.tileMatrixSets[n].tileInfo)));r.tileMatrixSetId=(0,a.defaultValue)(e.tileMatrixSetId,void 0),r.tileMatrixSet=(0,a.defaultValue)(e.tileMatrixSet,void 0),r.extent=(0,a.defaultValue)(e.extent,void 0),r.resourceURLTemplates=(0,a.defaultValue)(e.resourceURLTemplates,void 0);for(var i=0;i<r.tileMatrixSets.length;i++)r.tileMatrixSets[i].id===r.tileMatrixSetId&&(r.spatialReference=s.SpatialReference.fromJSON(r.tileMatrixSets[i].tileInfo.spatialReference));return r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Layer),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,a.toJSON)(this.tileMatrixSet,o.TileMatrixSet),e.extent=this.extent instanceof u.default?this.extent.toJSON():this.extent,e.resourceURLTemplates=this.resourceURLTemplates,e.spatialReference=this.spatialReference instanceof s.SpatialReference?this.spatialReference.toJSON():this.spatialReference;var r=[];if(this.styles)for(var n=0;n<this.styles.length;n++)r.push(this.styles[n]instanceof o.WMTSStyle?this.styles[n].toJSON():this.styles[n]);return e.styles=r,e}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}();f.fromJSON=function(e){return e=(0,a.defaultValue)(e,{}),new f(e)},t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(39)),a=r(3);var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.name=(0,i.defaultValue)(e.name,void 0),r.description=(0,i.defaultValue)(e.abstract,void 0),r.queryable=(0,i.defaultValue)(e.queryable,!0),r.spatialReferences=(0,i.defaultValue)(e.spatialReferences,[]),r.spatialReference=(0,i.defaultValue)(e.spatialReference,void 0),r.extent=(0,i.defaultValue)(e.extent,void 0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);e.spatialReference=(0,i.toJSON)(this.spatialReference,a.SpatialReference),e.name=this.name,e.extent=(0,i.toJSON)(this.extent,a.Extent);for(var r=[],n=0;n<this.spatialReferences.length;n++)r.push((0,i.toJSON)(this.spatialReferences[n],a.SpatialReference));return e.spatialReferences=r,e}},{key:"clone",value:function(){return new t(this.toJSON())}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(1),a=r(7),s=r(0),u=r(17),l=r(21),c=r(3),f=r(64),h=r(92);var p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,s.defaultValue)(e,{});var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r._id=(0,s.defaultValue)(e.id,(0,s.getGUID)()),r._basemap=(0,s.defaultValue)(e.basemap,void 0),r.groupLayer=new u.GroupLayer({layers:e.layers,copyright:""}),r.groupLayer.setMap(r),r.layers=r.groupLayer.layers,r.allLayers=new i.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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Evented),n(t,[{key:"toJSON",value:function(){for(var e={layers:[]},t=0;t<this.layers.items.length;t++)e.layers.push((0,s.toJSON)(this.layers.items[t],a.Layer));return e.exportTime=(new Date).toISOString(),e}},{key:"clone",value:function(){return(0,s.cloneObject)(this)}},{key:"add",value:function(e,t){if(e){var r=e instanceof a.Layer?e:a.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 a.Layer?e:a.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(o.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_removeHandlers",value:function(){this.groupLayer.off(o.MapEventType.layerChange,this._processGroupLayerChange,this),this._basemap&&this._basemap._baseGroupLayer.off(o.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(o.MapEventType.layerChange,new l.LayerChangeEvent({added:this._basemap._baseGroupLayer.layers.items.map(function(e){return e}),path:[this._basemap._baseGroupLayer]})),this.fire(o.MapEventType.basemapChange,new l.BasemapChangeEvent({basemap:this._basemap,detail:[{action:"basemap-create"}]})))}},{key:"_initBasemapHandlers",value:function(){this._basemap&&this._basemap._baseGroupLayer.on(o.MapEventType.layerChange,this._processGroupLayerChange,this)}},{key:"_processGroupLayerChange",value:function(e){var t=e.added,r=e.moved,n=e.removed,i=e.sourceTarget,a=e.path;this._dispatchOldMapEvent(e),this.fire(o.MapEventType.layerChange,new l.LayerChangeEvent({type:o.MapEventType.layerChange,sourceTarget:i,removed:n,path:a,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,f.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,f.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!==o.LayerType.unknown});n.length>0&&r.push({added:n,sourceTarget:t.sourceTarget})}),r.length>0&&(e._isInitLayersLoaded=!0,e.fire(o.MapEventType.layerLoaded,new l.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(o.MapEventType.layerAdd,{type:o.MapEventType.layerAdd,layer:t[0]}):this.dispatchEvent(o.MapEventType.layerAddMany,{type:o.MapEventType.layerAddMany,layers:t})),Array.isArray(r))){var i=n.layers;i&&i.items&&0===i.items.length&&0===r.length?this.dispatchEvent(o.MapEventType.layerRemoveAll,{type:o.MapEventType.layerRemoveAll,layers:r}):1===r.length?this.dispatchEvent(o.MapEventType.layerRemove,{type:o.MapEventType.layerRemove,layer:r[0]}):r.length>1&&this.dispatchEvent(o.MapEventType.layerRemoveMany,{type:o.MapEventType.layerRemoveMany,layers:r})}}},{key:"_loadLayers",value:function(){return this._basemap&&this._basemap._baseGroupLayer.fire(o.MapEventType.layerChange,new l.LayerChangeEvent({added:this._basemap._baseGroupLayer.layers.items.map(function(e){return e}),path:[this._basemap._baseGroupLayer]})),this.groupLayer&&this.groupLayer.fire(o.MapEventType.layerChange,new l.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,h.getLayersExtent)(e,this._spatialReference);return t&&!t.spatialReference.isGeographic&&(t=i.Projection.project(t,new c.SpatialReference("EPSG:4326"))),this._fullExtent=t,t}}],[{key:"fromJSON",value:function(e){e=(0,s.defaultValue)(e,{});for(var r=(0,s.defaultValue)(e.layers,[]),n=new t,i=0;i<r.length;i++)n.add(a.Layer.fromJSON(r[i]));return n}}]),t}();Object.defineProperties(p.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 i.Projection.project(this._fullExtent,this._spatialReference)},set:function(){}}}),t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(52));var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._initInstance(e),r._initHandlers(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(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){(function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onRemove",this).call(this,e),this._removeHandlers()}}]),t}();t.default=o},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _index=__webpack_require__(71),_util=__webpack_require__(0),_symbol=__webpack_require__(10),_VisualVariableType=__webpack_require__(30),_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 n=(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(Number.isNaN(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():JSON.stringify(e.symbol),u=0;u<n.length;u++){var l=n[u],c=l.field,f=l.type,h=parseFieldAndExpression(e,c,l.valueExpression);if(h=parseFloat(h),!Number.isNaN(h)){switch(f){case _VisualVariableType2.default.color:var p=calcGradientInStops(h,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)(p)&&(s.color=p);break;case _VisualVariableType2.default.size:var d=l.stops,y=l.maxDataValue,g=l.minDataValue,v=l.maxSize,m=l.minSize,_=d;(0,_util.isNumber)(y)&&(0,_util.isNumber)(g)&&(0,_util.isNumber)(v)&&(0,_util.isNumber)(m)&&(_=[{size:m,value:g},{size:v,value:y}]);var b=calcGradientInStops(h,_,function(e,t,r){var n=e.size,i=t.size;return parseInt(n+(i-n)*r)});(0,_util.defined)(b)&&(s.size=b);break;case _VisualVariableType2.default.opacity:var S=calcGradientInStops(h,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)(S)&&s.color){var x=_index.Color.fromColor(s.color);x.alpha=S,s.color=x}}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 f=null,h=null,p=0;p<a.length;p++){var d=a[p];if(d.value===c){f=d.symbol,h=d;break}}if(f){updateFeatureSymbol(l,f,h.visible,r);continue}}updateFeatureSymbol(l,i,o,r)}break;case _index.RendererType.classBreak:for(var y=t.defaultSymbol||{},g=t.classBreakInfos||[],v=t.valueExpression||"",m=t.defaultVisible,_=0;_<e.length;_++){var b=e[_],S=parseFieldAndExpression(b,t.field||"",v);if((0,_util.defined)(S)){for(var x=null,w=null,O=0;O<g.length;O++){var E=g[O],P=E.maxValue;if(S>=E.minValue&&S<P){x=E.symbol,w=E;break}}if(x){updateFeatureSymbol(b,x,w.visible,r);continue}}updateFeatureSymbol(b,y,m,r)}break;case _index.RendererType.random:e.forEach(function(e){updateRandomFeatureSymbol(e)});break;case _index.RendererType.rank:var k=t.symbol,T=t,I=T.minSize,M=T.maxSize,L=T.maxDataValue,C=T.minDataValue,N=T.field,R=T.valueExpression;(!k||I>M||!N&&!R)&&_index.Log.error("等级符号专题图参数异常!");var j=void 0,G=void 0;e.forEach(function(e){var t=parseFieldAndExpression(e,N,R);t=parseFloat(t),(0,_util.defined)(j)||(j=t),(0,_util.defined)(G)||(G=t),j=Math.max(j,t),G=Math.min(G,t)}),(0,_util.defined)(C)&&(0,_util.defined)(L)&&L>C&&(j=L,G=C),j-G==0&&(j+=1e-4),e.forEach(function(e){var t=k.clone(),n=parseFieldAndExpression(e,N,R),i=void 0;i=(n=parseFloat(n))<G?0:n>j?1:(n-G)/(j-G);var o=parseInt(i*(M-I)+I);if((0,_util.isNumber)(o))switch(t.type){case _index.SymbolType.simpleMarker:t.size=o;break;case _index.SymbolType.pictureMarker:t.width=o,t.height=o;break;case _index.SymbolType.text:var a=t.font||{};a.size=o,t.font=a}updateFeatureSymbol(e,t,!0,r)});break;default:var V=t.symbol;e.forEach(function(e){updateFeatureSymbol(e,V,!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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(0),a=r(3),s=S(r(18)),u=S(r(19)),l=S(r(34)),c=S(r(460)),f=S(r(177)),h=S(r(178)),p=S(r(179)),d=S(r(461)),y=S(r(462)),g=S(r(463)),v=S(r(180)),m=S(r(181)),_=r(98),b=r(38);function S(e){return e&&e.__esModule?e:{default:e}}var x=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if((e=(0,o.defaultValue)(e,{})).view||o.Log.error("options.view is null!",e),r.view=e.view,r._spatialReference=r.view&&r.view._spatialReference?r.view._spatialReference:new a.SpatialReference("EPSG:4326"),r._sketchInnerLayer=new b.GraphicsLayer,r.layer=(0,o.defaultValue)(e.layer,void 0),r._layer=r.layer||r._sketchInnerLayer,r.sketchStyle=(0,o.defaultValue)(e.sketchStyle,new s.default),r._editable=(0,o.defaultValue)(e.editable,!0),r.isSimple=(0,o.defaultValue)(e.isSimple,!1),r.snapOption=(0,o.defaultValue)(e.snapOption,{}),r.snapAndReferGeometries=(0,o.defaultValue)(e.snapAndReferGeometries,[]),r.measureOption=(0,o.defaultValue)(e.measureOption,void 0),r._drawTool=null,r._sketchDataType=null,r._sketchSnappingTool={},r._sketchTopologyTool={},r._undoRedoManager=new y.default,r._editorState={editMode:0,undoRedoManager:r.undoRedoManager,_hitTestEvent:r._hitTestEvent},r._layer){var n=r.view._map.findLayerById(r._layer.id),i=r.view.getInnerLayer(r._layer);n&&i?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 c.default(Object.assign(r.snapOption,{view:r.view})),r._sketchTopologyTool=new d.default):r._hitTestSketchEvent(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Evented),n(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,o=!1;"number"==typeof e?r=e:e instanceof a.Point?(r=i.SketchDataType.POINT,o=!0):e instanceof a.LineString?(r=i.SketchDataType.POLYLINE,o=!0):e instanceof a.Polygon?(r=i.SketchDataType.POLYGON,o=!0):e instanceof a.Circle?(r=i.SketchDataType.CIRCLE,o=!0):e instanceof a.Extent&&(r=i.SketchDataType.RECTANGLE,o=!0);var s={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 i.SketchDataType.POINT:n=new u.default(s);break;case i.SketchDataType.POLYLINE:n=new f.default(s);break;case i.SketchDataType.POLYGON:n=new l.default(s);break;case i.SketchDataType.CIRCLE:n=new h.default(s);break;case i.SketchDataType.RECTANGLE:n=new p.default(s);break;case i.SketchDataType.FREEHANDPOLYLINE:n=new v.default(s);break;case i.SketchDataType.FREEHANDPOLYGON:n=new m.default(s)}return{drawTool:n,sketchType:r,isGeometry:o}}},{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)if(!a.GeometryEngine.isSimple(n)){var s=new _.SketchEditorEvent({type:i.SketchEditorEventType.create,toolEventInfo:{type:i.SketchEditorToolEventType.geometryUnsimple},state:i.SketchEditorState.complete});return this._drawTool.fire(i.SketchEditorEventType.create,s,self),o.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===i.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,o.isNull)(r.entityGraphic)||("Point"===r.entityGraphic.geometry.type?this._drawTool._sketchDataType===i.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,o.isNull)(r.vertexGraphics)||r.vertexGraphics.forEach(function(t){t.symbol=e._vertexStyle}),(0,o.isNull)(r.midVertexGraphics)||r.midVertexGraphics.forEach(function(t){t.symbol=e._selectVertexStyle}),(0,o.isNull)(r.selectBoxGraphics)||r.selectBoxGraphics.forEach(function(r){t._drawTool._sketchDataType===i.SketchDataType.TEXT?r.symbol=e._selectTextStyle:r.symbol=e._selectBoxStyle}),(0,o.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(!a.GeometryEngine.isSimple(e[n]))return o.Log.error("输入的几何不符合拓扑规范!")}var s=i.Projection.project(this._sketchTopologyTool.unionPolygons(e),this._spatialReference);if("Polygon"===s.type){var u=r.view.allLayerViews.items.filter(function(e){return e.id===r._layer.id});return this.start(s),u.length>0?(this._selectEvent(),this._drawEvent(),this._sketchEvent()):r._layer.once("layerview-created",function(){r._selectEvent(),r._drawEvent(),t._sketchEvent()}),s}o.Log.error("合并结果不符合规范,请检查输入的几何!")}},{key:"split",value:function(e,r){var n=null,s=this;if(e instanceof a.Polygon)n=e;else{if(!(e instanceof t&&e.drawTool._sketchDataType===i.SketchDataType.POLYGON))return void o.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=s._sketchTopologyTool.splitPolygonByPolyline(e,t);n.length>0&&(s.view.allLayerViews.items.filter(function(e){return e.id===s._layer.id}).length>0?n.forEach(function(e){e=i.Projection.project(e,s._spatialReference),s.start(e)}):s._layer.once("layerview-created",function(){n.forEach(function(e){e=i.Projection.project(e,s._spatialReference),s.start(e)})}));return 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 g.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 a.Polygon?r.start(e.geometry):e.geometry.coordinates.forEach(function(e){var n=new a.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 s.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 y.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 o=r._updateDrawToolByFeature(n);if(o)if(o._editMode===i.SketchEditMode.DRAWING)if(n.id===e.entityGraphic.id){var a=n.clone(),s=[],u=o._currentMovePoint;if(u){if(o.vertexNum&&("undo"===t?o.vertexNum--:"redo"===t&&o.vertexNum++),"Polygon"===a.geometry.type){s=a.geometry.coordinates[0];var l=o.vertexNum||0;1===l?(s[1]=u.coordinates,s[2]=u.coordinates):2===l||1===l?s[2]=u.coordinates:s.splice(s.length-1,0,u.coordinates)}else"LineString"===a.geometry.type&&(s=a.geometry.coordinates,1===o.vertexNum?s[1]=u.coordinates:s[s.length]=u.coordinates);o.sketchStage.entityGraphic=a,o._addFeatureToLayer(a,r._layer)}}else o._addFeatureToLayer(n,r._sketchInnerLayer);else n.id===e.entityGraphic.id?o._addFeatureToLayer(n,r._layer):o._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(i.SketchEditorEventType.create,function(t){e.fire(i.SketchEditorEventType.create,t,e),t.state===i.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(i.SketchEditorEventType.update,function(t){e.fire(i.SketchEditorEventType.update,t,e),t.state===i.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(i.SketchEditorEventType.create),this.off(i.SketchEditorEventType.update),this.off(i.SketchEditorEventType.undo),this.off(i.SketchEditorEventType.redo),this.off(i.SketchEditorEventType.remove),this.off("drawn"),this.off("selected")}},{key:"_fireUndoEvent",value:function(e){var t=new _.SketchEditorEvent({type:i.SketchEditorEventType.undo,feature:e,geometry:e.geometry});this.fire(i.SketchEditorEventType.undo,t,this)}},{key:"_fireRedoEvent",value:function(e){var t=new _.SketchEditorEvent({type:i.SketchEditorEventType.redo,feature:e,geometry:e.geometry});this.fire(i.SketchEditorEventType.redo,t,this)}},{key:"_fireRemoveEvent",value:function(e){var t=new _.SketchEditorEvent({type:i.SketchEditorEventType.remove,feature:e,geometry:e.geometry});this.fire(i.SketchEditorEventType.remove,t,this)}},{key:"_fireCancelDrawEvent",value:function(){var e=new _.SketchEditorEvent({type:i.SketchEditorEventType.create,eventInfo:null,state:i.SketchEditorState.cancel});this.fire(i.SketchEditorEventType.create,e,self)}},{key:"getGeometry",value:function(){return this._drawTool?this._drawTool.sketchStage.entityGraphic.geometry:null}},{key:"setSnapOption",value:function(e){this.snapOption=Object.assign(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}();Object.defineProperties(x.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=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(3),a=f(r(20)),s=f(r(19)),u=f(r(34)),l=f(r(18)),c=r(0);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._initEvent(),r.type="sketchPolylineDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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=i.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,n=!1,a=null,u=[],l=[];this.vertexNum=0;var f=[];this.cursorStyle=this.view.cursor,(0,c.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var h=this._getInteractiveDom(),p=this.extensionOptions&&this.extensionOptions.vertexNumber?this.extensionOptions.vertexNumber:null;this._setInitSnap(),this._fireStartDrawEvent();var d=function n(u){if(u&&u.x&&u.y){e._stopInitSnap(),clearTimeout(null);var h={x:u.x,y:u.y};h,(new Date).getTime(),e._editMode=i.SketchEditMode.DRAWING;var d=null;d=e._snapPoint?e._snapPoint:e.view.toMap({x:h.x,y:h.y});var y=e.vertexNum+1;if(1===y)l=[d.coordinates],(a=e._getFeature()).geometry.coordinates=[l[0],l[0]];else if(2===y){var g=a.geometry.coordinates[0];if(g&&g[0]===d.coordinates[0]&&g[1]===d.coordinates[1])return c.Log.info("相邻两顶点重复!");l=[a.geometry.coordinates[0],d.coordinates],a.geometry.coordinates=l,e._polylineGeometry=a}else{var v=(l=a.geometry.coordinates)[l.length-2];if(v&&v[0]===d.coordinates[0]&&v[1]===d.coordinates[1])return c.Log.info("相邻两顶点重复!");if(l[l.length-1]=d.coordinates,e._sketchEditor.isSimple){var m=new o.LineString({coordinates:l,spatialReference:e._spatialReference,extensionOptions:{arcType:e.arcType}});if(!o.GeometryEngine.isSimple(m))return e._fireUnsimpleDraw(),c.Log.info("该坐标构成的几何不符合拓扑规范!")}a.geometry.coordinates=l}if(e.vertexNum=y,p&&y>=p)e.view.off(i.ViewEventType.immediateClick,n);else{var _=new s.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});_.addFeature(d,void 0,void 0,e.sketchInnerLayer),e._drawTools.push(_);var b=_.sketchStage.entityGraphic;e.sketchStage.entityGraphic=a,e.sketchStage.vertexGraphics.push(b),a&&(r=t=!0),l.length>1&&f.push(function(e,t){return(e[1]-t[1])/(e[0]-t[0])}(l[l.length-1],l[l.length-2])),"click",e.fire("drawn-vertex",{geometry:_.sketchStage.entityGraphic.geometry,feature:_.sketchStage.entityGraphic},self),e._fireDrawVertexEvent(a),e.undoRedoManager&&e.undoRedoManager.addProcess("add-vertex",e.sketchStage,e._editMode)}}},y=!0,g=function(i){if(i&&i.x&&i.y&&t&&!n){clearTimeout(null),n=!0,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var o={x:i.x,y:i.y},s=e.view.toMap({x:o.x,y:o.y});a=e.sketchStage.entityGraphic;var c=p&&e.vertexNum===p?e.vertexNum-1:e.vertexNum;l=1===c?[a.geometry.coordinates[0]]:a.geometry.coordinates.slice(0,a.geometry.coordinates.length-1),c>=1&&(e._snapPoint=e.getSnapGraphics(s,l)),e._snapPoint&&(s=e._snapPoint),e._currentMovePoint=s,1===c?a.geometry.coordinates[1]=s.coordinates:c>1&&(r?(a.geometry.coordinates.push(s.coordinates),r=!1):a.geometry.coordinates[a.geometry.coordinates.length-1]=s.coordinates),a.geometry._pixelCoords=u,a.geometry.coordinates=JSON.parse(JSON.stringify(a.geometry.coordinates)),y&&(e._addFeatureToLayer(a,e.layer),y=!1),n=!1,"move";var f=e._getInteractiveDom();h=h.concat(f),e._removeInteractiveStyle(f),e._fireChangeCursorEvent(a)}},v=function(){if((clearTimeout(null),clearTimeout(null),(a=e.sketchStage.entityGraphic)&&e._sketchEditor.isSimple)&&!o.GeometryEngine.isSimple(a.geometry))return e._fireUnsimpleDraw(),c.Log.info("该坐标构成的几何不符合拓扑规范!");if(e.vertexNum<2&&e.sketchStage.entityGraphic)return c.Log.info("线几何顶点少于两个,不符合规范!");l=[],u=[],e.stop(),e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]),e._editMode=i.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(h),e.fire("drawn",{geometry:a.geometry,feature:a},self),e._fireStopDrawEvent(a),e.sketchStage.vertexGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.vertexNum=0,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),"double-click"};this._drawEventHandlers.push(d,g,v),this.view.on(i.ViewEventType.immediateClick,d),this.view.on(i.ViewEventType.pointerMove,g),this.view.on(i.ViewEventType.doubleClick,v)}},{key:"addFeature",value:function(e,t,r,n){var i=null;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 o=null;o=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var a=new i.Feature({geometry:e,symbol:o,elevationInfo:this.elevationInfo});r&&(a.attributes=r),this.sketchStage.entityGraphic=a,this._addFeatureToLayer(a,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[1,1]]);var t=new o.LineString({coordinates:e,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),r=this.sketchStyle.lineStyle.clone();return new i.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===i.SketchEditMode.NONE?this._editMode=i.SketchEditMode.EDITGRAGIC:this._editMode===i.SketchEditMode.EDITVERTEX&&(this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=i.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===i.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 u.default({view:this.view,layer:this.layer,sketchStyle:new l.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 a=[];if(a=[{point:new o.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new o.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new o.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new o.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var c=[{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];a=a.concat(c)}var f=[],h=[];a.forEach(function(e){var r=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.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),f.push(r),h.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=h,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(f),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(i.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=i.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(i.ViewEventType.immediateClick,this._mapClickEvent))}}},{key:"selectFeatureVertex",value:function(e){var t=this;this._clearEditGraphics(1);var r=[],n=[];e.geometry.coordinates.forEach(function(i,a){var u=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),c=new o.Point({coordinates:i,spatialReference:t._spatialReference});if(t._drawTools.push(u),u.addFeature(c,void 0,{vertexIndex:a},t.sketchInnerLayer),r.push(u),t.sketchStage.vertexGraphics.push(u.sketchStage.entityGraphic),a>0){var f=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(f);var h,p=e.geometry.coordinates[a-1],d=t._getCenterCoordinate(i,p);h=new o.Point({coordinates:d,spatialReference:t._spatialReference}),t._drawTools.push(f),f.addFeature(h,void 0,{vertexIndex:a-1,type:"midVertex"},t.sketchInnerLayer),t.sketchStage.midVertexGraphics.push(f.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 o.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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.LineString({coordinates:n,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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.LineString({coordinates:n,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,n=JSON.parse(JSON.stringify(r));n[e.vertexIndex]=e.movePoint.coordinates;var i=new o.LineString({coordinates:n,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple&&!o.GeometryEngine.isSimple(i))return this._fireUnsimpleUpdate(),c.Log.info("该坐标构成的几何不符合拓扑规范!");if(t.geometry=i,this._otherDrawTools){if(0===e.vertexIndex){var a=this.sketchStage.midVertexGraphics[e.vertexIndex],s=n[e.vertexIndex],u=n[e.vertexIndex+1];a.geometry.coordinates=this._getCenterCoordinate(s,u),a.geometry=new o.Point({coordinates:a.geometry.coordinates,spatialReference:this._spatialReference})}else if(e.vertexIndex===n.length-1){var l=this.sketchStage.midVertexGraphics[e.vertexIndex-1],f=n[e.vertexIndex-1],h=n[e.vertexIndex];l.geometry.coordinates=this._getCenterCoordinate(f,h),l.geometry=new o.Point({coordinates:l.geometry.coordinates,spatialReference:this._spatialReference})}else{var p=this.sketchStage.midVertexGraphics[e.vertexIndex],d=this.sketchStage.midVertexGraphics[e.vertexIndex-1],y=n[e.vertexIndex-1],g=n[e.vertexIndex],v=n[e.vertexIndex+1];p.geometry.coordinates=this._getCenterCoordinate(v,g),d.geometry.coordinates=this._getCenterCoordinate(y,g)}this.sketchStage.vertexGraphics[e.vertexIndex].geometry.coordinates=n[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 o.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}})),"moveMidVertex"===e.action){var r=JSON.parse(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates));r[e.vertexIndex+1]=e.movePoint.coordinates;var n=new o.LineString({coordinates:r,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}});if(this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(n))return this._fireUnsimpleUpdate(),c.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 i=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),a=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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 u,f=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex];this._getHight&&0;var h=this._getCenterCoordinate(f,e.point.coordinates);u=new o.Point({coordinates:h,spatialReference:this._spatialReference});var p=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(p),p.addFeature(u,void 0,{type:"midVertex"},this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,p.sketchStage.entityGraphic);var d,y=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+2];this._getHight&&0;var g=this._getCenterCoordinate(y,e.point.coordinates);d=new o.Point({coordinates:g,spatialReference:this._spatialReference});var v=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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===i&&t._removeFeatureFromLayer(e.sketchStage.entityGraphic,t.sketchInnerLayer)}),this._otherDrawTools.push(a),this._otherDrawTools.push(p),this._otherDrawTools.push(v)}}},{key:"addMidVertex",value:function(e,t){var r=new s.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 n=[];if(t<=this.sketchStage.entityGraphic.geometry.coordinates.length-1){if((n=JSON.parse(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates))).splice(t,0,e.coordinates),r=new o.LineString({coordinates:n,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),c.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var i=void 0,a=void 0,u=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[u.xmax,u.ymax],[u.xmax,u.ymin],[u.xmin,u.ymin],[u.xmin,u.ymax],[u.xmax,u.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var f=[[u.xmax,u.ymax],[u.xmax,u.ymin],[u.xmin,u.ymin],[u.xmin,u.ymax],this._getCenterCoordinate([u.xmax,u.ymax],[u.xmin,u.ymax]),this._getCenterCoordinate([u.xmax,u.ymin],[u.xmin,u.ymin]),this._getCenterCoordinate([u.xmax,u.ymax],[u.xmax,u.ymin]),this._getCenterCoordinate([u.xmin,u.ymax],[u.xmin,u.ymin])];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=f[t]})}if(this.sketchStage.vertexGraphics.length>0&&(i=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.default({vertexStyle:this.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(i),i.addFeatureByGeometry(e,void 0,void 0,this.sketchInnerLayer),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 h=-1,p=-1,d=null,y=null;if(0===t?(p=0,y=this.sketchStage.entityGraphic.geometry.coordinates[1]):t===this.sketchStage.midVertexGraphics.length+1?(p=this.sketchStage.midVertexGraphics.length-2,y=this.sketchStage.entityGraphic.geometry.coordinates[p]):(h=t-1,p=t+1,d=this.sketchStage.entityGraphic.geometry.coordinates[h],y=this.sketchStage.entityGraphic.geometry.coordinates[p]),h>-1){var g=new o.Point({coordinates:this._getCenterCoordinate(d,e.coordinates),spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[h].geometry.coordinates=g.coordinates}if(p>-1){var v=new o.Point({coordinates:this._getCenterCoordinate(y,e.coordinates),spatialReference:this._spatialReference});a=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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}})}i&&this._otherDrawTools.push(i),a&&this._otherDrawTools.push(a),this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode),this._fireAddVertexEventByFun(i.sketchStage.entityGraphic,this._parent)}return r}}},{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,a=JSON.parse(JSON.stringify(i.geometry.coordinates));if(this.currentVertexIndex=t,r=e.coordinates,i.geometry=new o.LineString({coordinates:i.geometry.coordinates,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(r))return this._fireUnsimpleUpdateByFun(),c.Log.info("该坐标构成的几何不符合拓扑规范!");this.sketchStage.entityGraphic.geometry=r;var s=i.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],f=a[t],h=a[t+1],p=-1,d=-1;if(0===t?p=t:t===n-1?d=t-1:(p=t,d=t-1),p>-1){var y=this.sketchStage.midVertexGraphics[p];y.geometry.coordinates=this._getCenterCoordinate(h,f),y.geometry=new o.Point({coordinates:y.geometry.coordinates,spatialReference:this._spatialReference})}if(d>-1){var g=this.sketchStage.midVertexGraphics[d];g.geometry.coordinates=this._getCenterCoordinate(l,f),g.geometry=new o.Point({coordinates:g.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 n=JSON.parse(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates));if(n.splice(e,1),t=new o.LineString({coordinates:n,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),this._sketchEditor.isSimple)if(!o.GeometryEngine.isSimple(t))return this._fireUnsimpleUpdateByFun(),c.Log.info("该坐标构成的几何不符合拓扑规范!");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 a=[[i.xmax,i.ymax],[i.xmax,i.ymin],[i.xmin,i.ymin],[i.xmin,i.ymax],this._getCenterCoordinate([i.xmax,i.ymax],[i.xmin,i.ymax]),this._getCenterCoordinate([i.xmax,i.ymin],[i.xmin,i.ymin]),this._getCenterCoordinate([i.xmax,i.ymax],[i.xmax,i.ymin]),this._getCenterCoordinate([i.xmin,i.ymax],[i.xmin,i.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,f=-1;0===e?f=0:e===r-1?f=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,f=e),l>-1&&(this.sketchStage.midVertexGraphics[l].geometry=new o.Point({coordinates:u,spatialReference:this._spatialReference}));var h=this.sketchStage.vertexGraphics[f].id.toString();this._removeFeatureFromLayer(this.sketchStage.midVertexGraphics[f],this.sketchInnerLayer),this.sketchStage.midVertexGraphics.splice(f,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}();t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(3),a=h(r(20)),s=h(r(19)),u=h(r(34)),l=h(r(18)),c=h(r(37)),f=r(0);function h(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="sketchCircleDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._initEvent(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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=i.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,f.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var a=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var s=function(s){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===s.button)if("start"===s.action)n=e._snapPoint?e._snapPoint:n||e.view.toMap(s.origin),e._fireDrawVertexEvent();else if("update"===s.action){var u=e.view.toMap({x:s.x,y:s.y});e._snapPoint=e.getSnapGraphics(u),e._snapPoint&&(u=e._snapPoint),r=c.default.planarLength(new o.LineString({coordinates:[n.coordinates,u.coordinates],spatialReference:e._spatialReference})),t?t.geometry.radius=r:(t=e._getFeature(n,r),e._addFeatureToLayer(t,e.layer),e.sketchStage.entityGraphic=t);var l=e._getInteractiveDom();a=a.concat(l),e._removeInteractiveStyle(l),e._fireChangeCursorEvent(t)}else"end"===s.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=i.SketchEditMode.NONE,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(a),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(s),this.view.on(i.ViewEventType.drag,s)}},{key:"addFeature",value:function(e,t,r,n){var i=null;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 o=null;o=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var a=new i.Feature({geometry:e,symbol:o,elevationInfo:this.elevationInfo});r&&(a.attributes=r),this.sketchStage.entityGraphic=a,this._addFeatureToLayer(a,n)}},{key:"_getFeature",value:function(e,t){e?e instanceof Array?e=new o.Point({coordinates:e,spatialReference:this._spatialReference}):e instanceof o.Point||(e=new o.Point({coordinates:[0,0],spatialReference:this._spatialReference})):e=new o.Point({coordinates:[0,0],spatialReference:this._spatialReference}),t=void 0!==t?t:0;var r=this._spatialReference.isGeographic?i.RadiusUnit.degrees:i.RadiusUnit.meters,n=new o.Circle({center:e,radius:t,radiusUnit:r,spatialReference:this._spatialReference}),a=this.sketchStyle.fillStyle.clone();return new i.Feature({geometry:n,symbol:a,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===i.SketchEditMode.NONE&&(this._editMode=i.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 u.default({view:this.view,layer:this.layer,sketchStyle:new l.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 a=[];if(this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var c=[{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"circleVertex"}];a=a.concat(c)}var f=[],h=[];a.forEach(function(e){var r=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.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),f.push(r),h.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=h,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(f),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(i.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=i.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(i.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=c.default.planarLength(new o.LineString({coordinates:[this.sketchStage.entityGraphic.geometry.center,[e.movePoint.coordinates[0],this.sketchStage.entityGraphic.geometry.center[1]]],spatialReference:this._spatialReference})),r=this._spatialReference.isGeographic?i.RadiusUnit.degrees:i.RadiusUnit.meters,n=new o.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}();t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(3),a=f(r(20)),s=f(r(19)),u=f(r(34)),l=f(r(18)),c=r(0);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="sketchExtentDrawTool",r._initEvent(),r._drawTools=[r],r._otherDrawTools=[],r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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=i.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,c.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var n=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var o=function(o){if(clearTimeout(null),e.view.off(i.ViewEventType.pointerMove,e._handlerInitMouseMove),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)r=e._snapPoint?e._snapPoint:r||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);var s=Math.min(r.coordinates[0],a.coordinates[0]),u=Math.min(r.coordinates[1],a.coordinates[1]),l=Math.max(r.coordinates[0],a.coordinates[0]),c=Math.max(r.coordinates[1],a.coordinates[1]);t?(t.geometry.xmin=s,t.geometry.ymin=u,t.geometry.xmax=l,t.geometry.ymax=c):(t=e._getFeature(s,u,l,c),e._addFeatureToLayer(t,e.layer),e.sketchStage.entityGraphic=t);var f=e._getInteractiveDom();n=n.concat(f),e._removeInteractiveStyle(f),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=[]),e._editMode=i.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(o),this.view.on(i.ViewEventType.drag,o)}},{key:"addFeature",value:function(e,t,r,n){var i=null;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 o=null;o=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var a=new i.Feature({geometry:e,symbol:o,elevationInfo:this.elevationInfo});r&&(a.attributes=r),this.sketchStage.entityGraphic=a,this._addFeatureToLayer(a,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 a=new o.Extent({xmin:e,ymin:t,xmax:r,ymax:n,spatialReference:this._spatialReference,extensionOptions:{arcType:this.arcType}}),s=this.sketchStyle.fillStyle.clone();return new i.Feature({geometry:a,symbol:s,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e){this.view._mapActionControl("video-map-active",!0),!this._parent&&this.editOption.showSelectBox&&(this._editMode===i.SketchEditMode.NONE?this._editMode=i.SketchEditMode.EDITGRAGIC:this._editMode===i.SketchEditMode.EDITVERTEX&&(this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=i.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 u.default({view:this.view,layer:this.layer,sketchStyle:new l.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 a=[];if(a=[{point:new o.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new o.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new o.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new o.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var c=[{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new o.Point({coordinates:this._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];a=a.concat(c)}var f=[],h=[];a.forEach(function(e){var r=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.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),f.push(r),h.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=h,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(f),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(i.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=i.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(i.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}();t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(3),a=f(r(20)),s=f(r(19)),u=f(r(34)),l=f(r(18)),c=r(0);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._initEvent(),r.type="sketchFreehandPolylineDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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=i.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,n=null,o=[],a=[];this.vertexNum=0;var u=[],l="";this.cursorStyle=this.view.cursor,(0,c.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var f=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var h=function r(o){if(o&&o.x&&o.y){e._stopInitSnap(),clearTimeout(null),e._editMode=i.SketchEditMode.DRAWING;var c={x:o.x,y:o.y},f=null;f=e._snapPoint?e._snapPoint:e.view.toMap({x:c.x,y:c.y}),e.vertexNum++,1===e.vertexNum?(a=[f.coordinates],(n=e._getFeature()).geometry.coordinates=[a[0],a[0]]):2===e.vertexNum?(a=[n.geometry.coordinates[0],f.coordinates],n.geometry.coordinates=a):((a=n.geometry.coordinates)[a.length-1]=f.coordinates,n.geometry.coordinates=a),"move"===l&&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 s.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});h.addFeature(f,void 0,void 0,e.sketchInnerLayer);var p=h.sketchStage.entityGraphic;e.sketchStage.entityGraphic=n,e.sketchStage.vertexGraphics.push(p),t=!0,n&&t,a.length>1&&u.push(function(e,t){return(e[1]-t[1])/(e[0]-t[0])}(a[a.length-1],a[a.length-2])),l="click",e.fire("drawn-vertex",{geometry:h.sketchStage.entityGraphic.geometry,feature:h.sketchStage.entityGraphic},self),e.view.off(i.ViewEventType.immediateClick,r)}},p=!0,d=function(i){if(i&&i.x&&i.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 s={x:i.x,y:i.y},u=e.view.toMap({x:s.x,y:s.y});e.vertexNum>0&&(e._snapPoint=e.getSnapGraphics(u,[n.geometry.coordinates[0]])),e._snapPoint&&(u=e._snapPoint),e.vertexNum,a.push(u.coordinates),n.geometry.coordinates=a,e.vertexNum++,e.sketchStage.entityGraphic=n,n.geometry._pixelCoords=o,n.geometry.coordinates=JSON.parse(JSON.stringify(a)),p&&(e._addFeatureToLayer(n,e.layer),p=!1),r=!1,l="move";var c=e._getInteractiveDom();f=f.concat(c),e._removeInteractiveStyle(c),e._fireDrawVertexEvent(n)}},y=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=i.SketchEditMode.NONE,r=!1,t=!1,e.view.cursor=e.cursorStyle,e._addInteractiveStyle(f),e.fire("drawn",{geometry:n.geometry,feature:n},self),e._fireStopDrawEvent(n),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),l="double-click"};this._drawEventHandlers.push(h,d,y),this.view.on(i.ViewEventType.immediateClick,h),this.view.on(i.ViewEventType.pointerMove,this.debounce(d,5)),this.view.on(i.ViewEventType.doubleClick,y)}},{key:"addFeature",value:function(e,t,r,n){var i=null;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 o=null;o=t&&t.lineStyle?t.lineStyle:this.sketchStyle.lineStyle;var a=new i.Feature({geometry:e,symbol:o,elevationInfo:this.elevationInfo});r&&(a.attributes=r),this.sketchStage.entityGraphic=a,this._addFeatureToLayer(a,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[1,1]]);var t=new o.LineString({coordinates:e,spatialReference:this._spatialReference}),r=this.sketchStyle.lineStyle.clone();return new i.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===i.SketchEditMode.NONE?this._editMode=i.SketchEditMode.EDITGRAGIC:this._editMode===i.SketchEditMode.EDITVERTEX&&(this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=i.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===i.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 u.default({view:this.view,layer:this.layer,sketchStyle:new l.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 a=[];if(a=[{point:new o.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new o.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new o.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new o.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var c=[{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];a=a.concat(c)}var f=[],h=[];a.forEach(function(e){var r=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.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),f.push(r),h.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=h,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(f),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(i.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=i.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(i.ViewEventType.immediateClick,this._mapClickEvent))}}},{key:"selectFeatureVertex",value:function(e){var t=this;this._clearEditGraphics(1);var r=[],n=[];e.geometry.coordinates.forEach(function(i,a){var u=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.default({vertexStyle:t.sketchStyle._selectVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t}),c=new o.Point({coordinates:i,spatialReference:t._spatialReference});if(t._drawTools.push(u),u.addFeature(c,void 0,{vertexIndex:a}),r.push(u),t.sketchStage.vertexGraphics.push(u.sketchStage.entityGraphic),a>0){var f=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.default({vertexStyle:t.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_parent:t});n.push(f);var h=e.geometry.coordinates[a-1],p=null;p=i.length>2?new o.Point({coordinates:[(i[0]+h[0])/2,(i[1]+h[1])/2,(i[2]+h[2])/2],spatialReference:t._spatialReference}):new o.Point({coordinates:[(i[0]+h[0])/2,(i[1]+h[1])/2],spatialReference:t._spatialReference}),t._drawTools.push(f),f.addFeature(p,void 0,{vertexIndex:a-1,type:"midVertex"}),t.sketchStage.midVertexGraphics.push(f.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 a=t.mapPoint.coordinates[0],s=t.mapPoint.coordinates[1],u=null;u=i.Projection.project(new o.Point({coordinates:[a,s]}),this._spatialReference);var l=!0,c=setTimeout(function(){l=!1},200);this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._parent._mapClickEvent);var f=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==i.SketchEditMode.EDITGRAGIC&&!l){clearTimeout(null),n=!0;var a={x:t.x,y:t.y},s=r.view.toMap({x:a.x,y:a.y}),c=s.coordinates[0]-u.coordinates[0],f=s.coordinates[1]-u.coordinates[1];if(0!==c||0!==f){var h=[];e.geometry.coordinates[0].forEach(function(e){h.push(r.getPanCoordinates(e,c,f))});var p=new o.Polygon({coordinates:[h],spatialReference:r._spatialReference});u=s,r._dispatchEvent("pan",{deltaPosition:{x:c,y:f}},r),r.updateFeature(p,e),n=!1}else n=!1}},h=function e(){if(!r._editMode!==i.SketchEditMode.EDITGRAGIC&&r._startPan){if(l&&r._parent&&r._parent._editMode===i.SketchEditMode.EDITGRAGIC)return r._parent._editMode=i.SketchEditMode.EDITVERTEX,clearTimeout(c),r._parent.selectFeatureVertex(r._parent.sketchStage.entityGraphic),r._parent&&r._parent._mapClickEvent&&r.view.on(i.ViewEventType.immediateClick,r._parent._mapClickEvent),r._startPan=!1,r.view.off(i.ViewEventType.pointerMove,f),void r.view.off(i.ViewEventType.pointerUp,e);r._editMode=i.SketchEditMode.NONE,r._startPan=!1,r._enableMapDrag&&r._enableMapDrag(),r.view.off(i.ViewEventType.pointerMove,f),r.view.off(i.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(i.ViewEventType.immediateClick,r._parent._mapClickEvent))}};this._hitTestEventHandlers.push(f),this._hitTestEventHandlers.push(h),this.view.on(i.ViewEventType.pointerUp,h),this.view.on(i.ViewEventType.pointerMove,f)}},{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 o.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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.LineString({coordinates:n,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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates,e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.LineString({coordinates:n,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 o.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],a=r[e.vertexIndex+1];n.geometry.coordinates=[(a[0]+i[0])/2,(a[1]+i[1])/2],n.geometry=new o.Point({coordinates:n.geometry.coordinates,spatialReference:this._spatialReference})}else if(e.vertexIndex===r.length-1){var s=this.sketchStage.midVertexGraphics[e.vertexIndex-1],u=r[e.vertexIndex-1],l=r[e.vertexIndex];s.geometry.coordinates=[(u[0]+l[0])/2,(u[1]+l[1])/2],s.geometry=new o.Point({coordinates:s.geometry.coordinates,spatialReference:this._spatialReference})}else{var c=this.sketchStage.midVertexGraphics[e.vertexIndex],f=this.sketchStage.midVertexGraphics[e.vertexIndex-1],h=r[e.vertexIndex-1],p=r[e.vertexIndex],d=r[e.vertexIndex+1];c.geometry.coordinates=[(d[0]+p[0])/2,(d[1]+p[1])/2],c.geometry=new o.Point({coordinates:c.geometry.coordinates,spatialReference:this._spatialReference}),f.geometry.coordinates=[(h[0]+p[0])/2,(h[1]+p[1])/2],f.geometry=new o.Point({coordinates:f.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 o.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 o.LineString({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"addVertex"===e.action){var r=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),n=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex],a=null,u=null;this._getHight&&(u=0),a=u?new o.Point({coordinates:[(i[0]+e.point.coordinates[0])/2,(i[1]+e.point.coordinates[1])/2,u],spatialReference:this._spatialReference}):new o.Point({coordinates:[(i[0]+e.point.coordinates[0])/2,(i[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var c=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(c),c.addFeature(a,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,c.sketchStage.entityGraphic);var f=this.sketchStage.entityGraphic.geometry.coordinates[e.vertexIndex+2],h=null,p=null;this._getHight&&(p=0),h=p?new o.Point({coordinates:[(f[0]+e.point.coordinates[0])/2,(f[1]+e.point.coordinates[1])/2,p],spatialReference:this._spatialReference}):new o.Point({coordinates:[(f[0]+e.point.coordinates[0])/2,(f[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var d=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(d),d.addFeature(h,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(c),this._otherDrawTools.push(d)}}},{key:"addMidVertex",value:function(e,t){var r=new s.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 o.LineString({coordinates:r,spatialReference:this._spatialReference});var n=void 0,i=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 u=[[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=u[t]})}if(this.sketchStage.vertexGraphics.length>0&&(n=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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 c=-1,f=-1,h=null,p=null;if(0===t?(f=0,p=this.sketchStage.entityGraphic.geometry.coordinates[1]):t===this.sketchStage.midVertexGraphics.length+1?(f=this.sketchStage.midVertexGraphics.length-2,p=this.sketchStage.entityGraphic.geometry.coordinates[f]):(c=t-1,f=t+1,h=this.sketchStage.entityGraphic.geometry.coordinates[c],p=this.sketchStage.entityGraphic.geometry.coordinates[f]),c>-1){var d=new o.Point({coordinates:[(h[0]+e.coordinates[0])/2,(h[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[c].geometry.coordinates=d.coordinates}if(f>-1){var y=new o.Point({coordinates:[(p[0]+e.coordinates[0])/2,(p[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});i=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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,a=i.geometry.coordinates;i.geometry.coordinates=a,this.currentVertexIndex=t,a[t]=e.coordinates,i.geometry=new o.LineString({coordinates:i.geometry.coordinates,spatialReference:this._spatialReference}),r=i.geometry,this.sketchStage.entityGraphic.geometry=r;var s=i.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],[(s.xmax+s.xmin)/2,s.ymax],[(s.xmax+s.xmin)/2,s.ymin],[s.xmax,(s.ymax+s.ymin)/2],[s.xmin,(s.ymax+s.ymin)/2]];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],c=a[t],f=a[t+1],h=-1,p=-1;if(0===t?h=t:t===n-1?p=t-1:(h=t,p=t-1),h>-1){var d=this.sketchStage.midVertexGraphics[h];d.geometry.coordinates=[(f[0]+c[0])/2,(f[1]+c[1])/2],d.geometry=new o.Point({coordinates:d.geometry.coordinates,spatialReference:this._spatialReference})}if(p>-1){var y=this.sketchStage.midVertexGraphics[p];y.geometry.coordinates=[(l[0]+c[0])/2,(l[1]+c[1])/2],y.geometry=new o.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 o.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 a=[[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=a[t]})}if(this.sketchStage.vertexGraphics.length>0){var s=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!==s)return e})}if(this.sketchStage.midVertexGraphics.length>0){var u=[],l=-1,c=-1;0===e?c=0:e===r-1?c=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,c=e),l>-1&&(this.sketchStage.midVertexGraphics[l].geometry=new o.Point({coordinates:u,spatialReference:this._spatialReference}));var f=this.sketchStage.vertexGraphics[c].id.toString();this._removeFeatureFromMap(this.sketchStage.midVertexGraphics[c]),this.sketchStage.midVertexGraphics.splice(c,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)}return t}}]),t}();t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(2),o=r(3),a=f(r(20)),s=f(r(19)),u=f(r(34)),l=f(r(18)),c=r(0);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="sketchFreehandPolygonDrawTool",r._initEvent(),r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r.vertexNum=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(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=i.SketchEditMode.DRAWING,this.view._mapActionControl("double-click-zoom",!1),this.view._mapActionControl("video-map-active",!0);var t=!1,r=!1,n=null,o=[],a=null,u=[];this.vertexNum=0;var l=null;this.cursorStyle=this.view.cursor,(0,c.isNull)(this.cursorStyle)&&(this.view.cursor="crosshair");var f=this._getInteractiveDom();this._setInitSnap(),this._fireStartDrawEvent();var h=function r(o){if(o&&o.x&&o.y){e._stopInitSnap(),clearTimeout(null);var c={x:o.x,y:o.y};if(!(a&&l&&c.x===a.x&&c.y===a.y&&(new Date).getTime()-l<200)){a=c,l=(new Date).getTime(),e._editMode=i.SketchEditMode.DRAWING;var f=null;f=e._snapPoint?e._snapPoint:e.view.toMap({x:c.x,y:c.y}),e.vertexNum++,1===e.vertexNum?(u=[f.coordinates],(n=e._getFeature()).geometry.coordinates=[[u[0],u[0],u[0],u[0]]],t=!1):2===e.vertexNum?u=[n.geometry.coordinates[0][0],n.geometry.coordinates[0][1]]:(u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-2)).push(f.coordinates),e.sketchStage.entityGraphic=n;var h=new s.default({view:e.view,layer:e.layer,_parent:e,sketchStyle:e.sketchStyle,elevationInfo:e.elevationInfo});h.addFeature(f,void 0,void 0,e.sketchInnerLayer),e._drawTools.push(h);var p=h.sketchStage.entityGraphic;e.sketchStage.vertexGraphics.push(p),n&&(t=!0),"click",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(i.ViewEventType.immediateClick,r)}}},p=!0,d=function(i){if(i&&i.x&&i.y&&t&&!r){clearTimeout(null),r=!0,n=e.sketchStage.entityGraphic,e.sketchStage.snapGraphics.length>0&&(e.sketchStage.snapGraphics.forEach(function(t){e._removeFeatureFromLayer(t,e.sketchInnerLayer)}),e.sketchStage.snapGraphics=[]);var a={x:i.x,y:i.y};o[o.length-1]=a;var s=e.view.toMap({x:a.x,y:a.y});1===e.vertexNum?u=[n.geometry.coordinates[0][0]]:2===e.vertexNum?(n.geometry.coordinates[0][2]=s.coordinates,u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-2)):u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-2),e.vertexNum>0&&(e._snapPoint=e.getSnapGraphics(s,[n.geometry.coordinates[0][0]])),e._snapPoint&&(s=e._snapPoint),e._currentMovePoint=s,1===e.vertexNum?(n.geometry.coordinates[0][1]=s.coordinates,n.geometry.coordinates[0][2]=s.coordinates,u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-2)):2===e.vertexNum?(n.geometry.coordinates[0][2]=s.coordinates,u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-1)):(n.geometry.coordinates[0].splice(n.geometry.coordinates[0].length-1,0,s.coordinates),u=n.geometry.coordinates[0].slice(0,n.geometry.coordinates[0].length-1)),e.vertexNum++,e.sketchStage.entityGraphic=n,n.geometry.coordinates=[JSON.parse(JSON.stringify(n.geometry.coordinates[0]))],p&&(e._addFeatureToLayer(n,e.layer),p=!1),r=!1,"move";var l=e._getInteractiveDom();f=f.concat(l),e._removeInteractiveStyle(l),e._fireDrawVertexEvent(n)}},y=function(){if(clearTimeout(null),clearTimeout(null),!t)return n=null,u=[],void(o=[]);n=e.sketchStage.entityGraphic,u=[],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=i.SketchEditMode.NONE,"doubleClick",e.view.cursor=e.cursorStyle,e._addInteractiveStyle(f),e.fire("drawn",{geometry:n.geometry,feature:n},self),e._fireStopDrawEvent(n),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,d,y),this.view.on(i.ViewEventType.immediateClick,h),this.view.on(i.ViewEventType.pointerMove,d),this.view.on(i.ViewEventType.doubleClick,y)}},{key:"addFeature",value:function(e,t,r,n){var i=null;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 o=null;o=t&&t.fillStyle?t.fillStyle:this.sketchStyle._fillStyle;var a=new i.Feature({geometry:e,symbol:o,elevationInfo:this.elevationInfo});r&&(a.attributes=r),this.sketchStage.entityGraphic=a,this._addFeatureToLayer(a,n)}},{key:"_getFeature",value:function(e){e||(e=[[0,0],[0,0],[0,0],[0,0]]);var t=new o.Polygon({coordinates:[e],spatialReference:this._spatialReference}),r=this.sketchStyle.fillStyle.clone(),n=new i.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===i.SketchEditMode.NONE?this._editMode=i.SketchEditMode.EDITGRAGIC:this._editMode===i.SketchEditMode.EDITVERTEX&&(this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=i.SketchEditMode.EDITGRAGIC),this.selectFeature(e)),this._parent&&this._parent._editMode===i.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 u.default({view:this.view,layer:this.layer,sketchStyle:new l.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 a=[];if(a=[{point:new o.Point({coordinates:[r.xmax,r.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new o.Point({coordinates:[r.xmax,r.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new o.Point({coordinates:[r.xmin,r.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new o.Point({coordinates:[r.xmin,r.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var c=[{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymin],[r.xmin,r.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymin],[r.xmin,r.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new o.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmin,r.ymax],[r.xmax,r.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];a=a.concat(c)}var f=[],h=[];a.forEach(function(e){var r=new s.default({view:t.view,layer:t.layer,sketchStyle:new l.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),f.push(r),h.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=h,this._otherDrawTools?this._otherDrawTools.push(n):this._otherDrawTools=[n],this._otherDrawTools=this._otherDrawTools.concat(f),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(i.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=i.SketchEditMode.NONE,t.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),this._preventFirstCall=!0,this.view.on(i.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 a=null;a=t.mapPoint;var s=!0;setTimeout(function(){s=!1},200);this._parent&&this._parent._mapClickEvent&&this.view.off(i.ViewEventType.immediateClick,this._parent._mapClickEvent);var u=function(t){if(t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==i.SketchEditMode.EDITGRAGIC&&!s){clearTimeout(null),n=!0;var u={x:t.x,y:t.y},l=r.view.toMap({x:u.x,y:u.y}),c=l.coordinates[0]-a.coordinates[0],f=l.coordinates[1]-a.coordinates[1];if(0!==c||0!==f){var h=[];e.geometry.coordinates[0].forEach(function(e){h.push(r.getPanCoordinates(e,c,f))});var p=new o.Polygon({coordinates:[h],spatialReference:r._spatialReference});a=l,r._dispatchEvent("pan",{deltaPosition:{x:c,y:f}},r),r.updateFeature(p,e),n=!1}else n=!1}},l=function e(){!r._editMode!==i.SketchEditMode.EDITGRAGIC&&r._startPan&&(r._editMode=i.SketchEditMode.NONE,r._startPan=!1,r.view.off(i.ViewEventType.pointerMove,u),r.view.off(i.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(i.ViewEventType.immediateClick,r._parent._mapClickEvent)),r.view._mapActionControl("drag-pan",!0))};this._hitTestEventHandlers.push(u),this._hitTestEventHandlers.push(l),this.view.on(i.ViewEventType.pointerUp,l),this.view.on(i.ViewEventType.pointerMove,u)}},{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 o.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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.Polygon({coordinates:[n],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(JSON.stringify(this.sketchStage.entityGraphic.geometry.coordinates[0]));this.sketchStage.entityGraphic.attributes.lastCoordinates=r}var n=this.getMidScaleCoordinates(this.sketchStage.entityGraphic.geometry.coordinates[0],e.direction,e.extent,e.startPoint,e.movePoint,this.sketchStage.entityGraphic.attributes.lastCoordinates);t=new o.Polygon({coordinates:[n],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=null,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 o.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 o.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,a=n===this.sketchStage.midVertexGraphics.length-1?0:n+1,s=this.sketchStage.midVertexGraphics[n],u=this.sketchStage.midVertexGraphics[i],l=r[i],c=r[n],f=r[a];s.geometry.coordinates=[(f[0]+c[0])/2,(f[1]+c[1])/2],s.geometry=new o.Point({coordinates:s.geometry.coordinates,spatialReference:this._spatialReference}),u.geometry.coordinates=[(l[0]+c[0])/2,(l[1]+c[1])/2],u.geometry=new o.Point({coordinates:u.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 o.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 o.Polygon({coordinates:this.sketchStage.entityGraphic.geometry.coordinates,spatialReference:this._spatialReference})),"addVertex"===e.action){var r=this.sketchStage.midVertexGraphics[e.vertexIndex].id.toString(),n=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex],a=null,u=null;this._getHight&&(u=0),a=u?new o.Point({coordinates:[(i[0]+e.point.coordinates[0])/2,(i[1]+e.point.coordinates[1])/2,u],spatialReference:this._spatialReference}):new o.Point({coordinates:[(i[0]+e.point.coordinates[0])/2,(i[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var c=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(c),c.addFeature(a,void 0,{type:"midVertex"}),this.sketchStage.midVertexGraphics.splice(e.vertexIndex,1,c.sketchStage.entityGraphic);var f=this.sketchStage.entityGraphic.geometry.coordinates[0][e.vertexIndex+2],h=null,p=null;this._getHight&&(p=0),h=p?new o.Point({coordinates:[(f[0]+e.point.coordinates[0])/2,(f[1]+e.point.coordinates[1])/2,p],spatialReference:this._spatialReference}):new o.Point({coordinates:[(f[0]+e.point.coordinates[0])/2,(f[1]+e.point.coordinates[1])/2],spatialReference:this._spatialReference});var d=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this});this._drawTools.push(d),d.addFeature(h,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(c),this._otherDrawTools.push(d)}}},{key:"addMidVertex",value:function(e,t){var r=new s.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,a=void 0,u=this.sketchStage.entityGraphic.geometry.extent;if(this.sketchStage.selectBoxGraphics.length>0&&this.sketchStage.selectBoxGraphics.forEach(function(e){e.geometry.coordinates=[[[u.xmax,u.ymax],[u.xmax,u.ymin],[u.xmin,u.ymin],[u.xmin,u.ymax],[u.xmax,u.ymax]]]}),this.sketchStage.selectBoxVertexGraphics.length>0){var c=[[u.xmax,u.ymax],[u.xmax,u.ymin],[u.xmin,u.ymin],[u.xmin,u.ymax],[(u.xmax+u.xmin)/2,u.ymax],[(u.xmax+u.xmin)/2,u.ymin],[u.xmax,(u.ymax+u.ymin)/2],[u.xmin,(u.ymax+u.ymin)/2]];this.sketchStage.selectBoxVertexGraphics.forEach(function(e,t){e.geometry.coordinates=c[t]})}if(this.sketchStage.vertexGraphics.length>0&&(i=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.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 f=-1,h=-1,p=null,d=null;0===t?(h=0,f=this.sketchStage.midVertexGraphics.length-1,p=this.sketchStage.entityGraphic.geometry.coordinates[0][this.sketchStage.entityGraphic.geometry.coordinates[0].length-2],d=this.sketchStage.entityGraphic.geometry.coordinates[0][1]):(f=t-1,h=t+1,p=this.sketchStage.entityGraphic.geometry.coordinates[0][f],d=this.sketchStage.entityGraphic.geometry.coordinates[0][h]);var y=new o.Point({coordinates:[(p[0]+e.coordinates[0])/2,(p[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});this.sketchStage.midVertexGraphics[f].geometry.coordinates=y.coordinates;var g=new o.Point({coordinates:[(d[0]+e.coordinates[0])/2,(d[1]+e.coordinates[1])/2],spatialReference:this._spatialReference});a=new s.default({view:this.view,layer:this.layer,sketchStyle:new l.default({vertexStyle:this.sketchStyle._selectMidVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),this._drawTools.push(a),a.addFeatureByGeometry(g,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}})}i&&this._otherDrawTools.push(i),a&&this._otherDrawTools.push(a),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 o.Polygon({coordinates:n.geometry.coordinates,spatialReference:this._spatialReference}),r=n.geometry;var a=n.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=t,l=0===u?u-1+this.sketchStage.midVertexGraphics.length:u-1,c=u===this.sketchStage.midVertexGraphics.length-1?0:u+1,f=this.sketchStage.midVertexGraphics[u],h=this.sketchStage.midVertexGraphics[l],p=i[l],d=i[u],y=i[c];f.geometry.coordinates=[(y[0]+d[0])/2,(y[1]+d[1])/2],f.geometry=new o.Point({coordinates:f.geometry.coordinates,spatialReference:this._spatialReference}),h.geometry.coordinates=[(p[0]+d[0])/2,(p[1]+d[1])/2],h.geometry=new o.Point({coordinates:h.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 o.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 a=[[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=a[t]})}if(this.sketchStage.vertexGraphics.length>0){var s=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!==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 o.Point({coordinates:u,spatialReference:this._spatialReference});var c=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!==c)return e})}}this.undoRedoManager.addProcess("update",this.sketchStage,this._editMode)}return t}}]),t}();t.default=h},function(e,t,r){"use strict";r.r(t);var n=r(72),i=r(104),o=Object(n.default)("WGS84");function a(e,t,r,n){var o,a,s;return Array.isArray(r)?(o=Object(i.default)(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 o.z?[o.x,o.y,o.z].concat(r.splice(3)):[o.x,o.y,r[2]].concat(r.splice(3)):[o.x,o.y].concat(r.splice(2)):[o.x,o.y]):(a=Object(i.default)(e,t,r,n),2===(s=Object.keys(r)).length?a:(s.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;a[n]=r[n]}),a))}function s(e){return e instanceof n.default?e:e.oProj?e.oProj:Object(n.default)(e)}t.default=function(e,t,r){e=s(e);var n,i=!1;return void 0===t?(t=e,e=o,i=!0):(void 0!==t.x||Array.isArray(t))&&(r=t,t=e,e=o,i=!0),t=s(t),r?a(e,t,r):(n={forward:function(r,n){return a(e,t,r,n)},inverse:function(r,n){return a(t,e,r,n)}},i&&(n.oProj=t),n)}},function(e,t,r){"use strict";r.r(t);var n=r(100),i=r(102),o=r(101),a=r(53);var s=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var u=["3857","900913","3785","102113"];t.default=function(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in n.default}(e))return n.default[e];if(function(e){return s.some(function(t){return e.indexOf(t)>-1})}(e)){var t=Object(i.default)(e);if(function(e){var t=Object(a.default)(e,"authority");if(t){var r=Object(a.default)(t,"epsg");return r&&u.indexOf(r)>-1}}(t))return n.default["EPSG:3857"];var r=function(e){var t=Object(a.default)(e,"extension");if(t)return Object(a.default)(t,"proj4")}(t);return r?Object(o.default)(r):t}return function(e){return"+"===e[0]}(e)?Object(o.default)(e):void 0}},function(e,t,r){"use strict";r.r(t),t.default=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"]}},function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return n});var n={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}},function(e,t,r){"use strict";r.r(t),t.default={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}}},function(e,t,r){"use strict";r.r(t),t.default=function(e){return new l(e).output()};var n=1,i=/\s/,o=/[A-Za-z]/,a=/[A-Za-z84_]/,s=/[,\]]/,u=/[\d\.E\-\+]/;function l(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=n}l.prototype.readCharicter=function(){var e=this.text[this.place++];if(4!==this.state)for(;i.test(e);){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case n: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}},l.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(s.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)},l.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=n)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=n,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},l.prototype.number=function(e){if(!u.test(e)){if(s.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},l.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},l.prototype.keyword=function(e){if(a.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=n)}if(!s.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},l.prototype.neutral=function(e){if(o.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(u.test(e))return this.word=e,void(this.state=3);if(!s.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},l.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)}},function(e,t,r){"use strict";function n(e,t,r){Array.isArray(t)&&(r.unshift(t),t=null);var n=t?{}:e,o=r.reduce(function(e,t){return i(t,e),e},n);t&&(e[t]=o)}function i(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 i(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 o;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&&i(e[2],t[r]));case"SPHEROID":case"ELLIPSOID":return t[r]={name:e[0],a:e[1],rf:e[2]},void(4===e.length&&i(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 n(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]],n(t,r,e),void(t[r].type=r);default:for(o=-1;++o<e.length;)if(!Array.isArray(e[o]))return i(e,t[r]);return n(t,r,e)}}else t[r]=e;else t[r]=!0}else t[e]=!0}r.r(t),r.d(t,"sExpr",function(){return i})},function(e,t,r){"use strict";r.r(t),t.default=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}},function(e,t,r){"use strict";r.r(t),r.d(t,"add",function(){return u}),r.d(t,"get",function(){return l}),r.d(t,"start",function(){return c});var n=r(191),i=r(192),o=[n.default,i.default],a={},s=[];function u(e,t){var r=s.length;return e.names?(s[r]=e,e.names.forEach(function(e){a[e.toLowerCase()]=r}),this):(console.log(t),!0)}function l(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==a[t]&&s[a[t]]?s[a[t]]:void 0}function c(){o.forEach(u)}t.default={start:c,add:u,get:l}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return u}),r.d(t,"forward",function(){return l}),r.d(t,"inverse",function(){return c}),r.d(t,"names",function(){return f});var n=r(35),i=r(6),o=r(54),a=r(55),s=r(4);function u(){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=Object(n.default)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function l(e){var t,r,n=e.x,a=e.y;if(a*s.R2D>90&&a*s.R2D<-90&&n*s.R2D>180&&n*s.R2D<-180)return null;if(Math.abs(Math.abs(a)-s.HALF_PI)<=s.EPSLN)return null;if(this.sphere)t=this.x0+this.a*this.k0*Object(i.default)(n-this.long0),r=this.y0+this.a*this.k0*Math.log(Math.tan(s.FORTPI+.5*a));else{var u=Math.sin(a),l=Object(o.default)(this.e,a,u);t=this.x0+this.a*this.k0*Object(i.default)(n-this.long0),r=this.y0-this.a*this.k0*Math.log(l)}return e.x=t,e.y=r,e}function c(e){var t,r,n=e.x-this.x0,o=e.y-this.y0;if(this.sphere)r=s.HALF_PI-2*Math.atan(Math.exp(-o/(this.a*this.k0)));else{var u=Math.exp(-o/(this.a*this.k0));if(-9999===(r=Object(a.default)(this.e,u)))return null}return t=Object(i.default)(this.long0+n/(this.a*this.k0)),e.x=t,e.y=r,e}var f=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];t.default={init:u,forward:l,inverse:c,names:f}},function(e,t,r){"use strict";function n(){}function i(e){return e}r.r(t),r.d(t,"init",function(){return n}),r.d(t,"forward",function(){return i}),r.d(t,"inverse",function(){return i}),r.d(t,"names",function(){return o});var o=["longlat","identity"];t.default={init:n,forward:i,inverse:i,names:o}},function(e,t,r){"use strict";r.r(t),r.d(t,"eccentricity",function(){return a}),r.d(t,"sphere",function(){return s});var n=r(4),i=r(194),o=r(53);function a(e,t,r,i){var o=e*e,a=t*t,s=(o-a)/o,u=0;return i?(o=(e*=1-s*(n.SIXTH+s*(n.RA4+s*n.RA6)))*e,s=0):u=Math.sqrt(s),{es:s,e:u,ep2:(o-a)/a}}function s(e,t,r,a,s){if(!e){var u=Object(o.default)(i.default,a);u||(u=i.WGS84),e=u.a,t=u.b,r=u.rf}return r&&!t&&(t=(1-1/r)*e),(0===r||Math.abs(e-t)<n.EPSLN)&&(s=!0,t=e),{a:e,b:t,rf:r,sphere:s}}},function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return n}),r.d(t,"WGS84",function(){return i});var n={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"}},i=n.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};n.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return n});var n={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"}}},function(e,t,r){"use strict";r.r(t);var n=r(4);t.default=function(e,t,r,i,o,a,s){var u={};return u.datum_type=void 0===e||"none"===e?n.PJD_NODATUM:n.PJD_WGS84,t&&(u.datum_params=t.map(parseFloat),0===u.datum_params[0]&&0===u.datum_params[1]&&0===u.datum_params[2]||(u.datum_type=n.PJD_3PARAM),u.datum_params.length>3&&(0===u.datum_params[3]&&0===u.datum_params[4]&&0===u.datum_params[5]&&0===u.datum_params[6]||(u.datum_type=n.PJD_7PARAM,u.datum_params[3]*=n.SEC_TO_RAD,u.datum_params[4]*=n.SEC_TO_RAD,u.datum_params[5]*=n.SEC_TO_RAD,u.datum_params[6]=u.datum_params[6]/1e6+1))),s&&(u.datum_type=n.PJD_GRIDSHIFT,u.grids=s),u.a=r,u.b=i,u.es=o,u.ep2=a,u}},function(e,t,r){"use strict";r.r(t),r.d(t,"applyGridShift",function(){return s});var n=r(4),i=r(105),o=r(6);function a(e){return e===n.PJD_3PARAM||e===n.PJD_7PARAM}function s(e,t,r){if(null===e.grids||0===e.grids.length)return console.log("Grid shift grids not found"),-1;for(var i={x:-r.x,y:r.y},o={x:Number.NaN,y:Number.NaN},a=[],s=0;s<e.grids.length;s++){var l=e.grids[s];if(a.push(l.name),l.isNull){o=i;break}if(l.mandatory,null!==l.grid){var c=l.grid.subgrids[0],f=(Math.abs(c.del[1])+Math.abs(c.del[0]))/1e4,h=c.ll[0]-f,p=c.ll[1]-f,d=c.ll[0]+(c.lim[0]-1)*c.del[0]+f,y=c.ll[1]+(c.lim[1]-1)*c.del[1]+f;if(!(p>i.y||h>i.x||y<i.y||d<i.x||(o=u(i,t,c),isNaN(o.x))))break}else if(l.mandatory)return console.log("Unable to find mandatory grid '"+l.name+"'"),-1}return isNaN(o.x)?(console.log("Failed to find a grid shift table for location '"+-i.x*n.R2D+" "+i.y*n.R2D+" tried: '"+a+"'"),-1):(r.x=-o.x,r.y=o.y,0)}function u(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=Object(o.default)(i.x-Math.PI)+Math.PI;var a=l(i,r);if(t){if(isNaN(a.x))return n;a.x=i.x-a.x,a.y=i.y-a.y;var s,u,c=9;do{if(u=l(a,r),isNaN(u.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}s={x:i.x-(u.x+a.x),y:i.y-(u.y+a.y)},a.x+=s.x,a.y+=s.y}while(c--&&Math.abs(s.x)>1e-12&&Math.abs(s.y)>1e-12);if(c<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=Object(o.default)(a.x+r.ll[0]),n.y=a.y+r.ll[1]}else isNaN(a.x)||(n.x=e.x+a.x,n.y=e.y+a.y);return n}function l(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 f=t.cvs[r][0],h=t.cvs[r][1];r+=t.lim[0];var p=t.cvs[r][0],d=t.cvs[r][1];r--;var y=t.cvs[r][0],g=t.cvs[r][1],v=a*s,m=a*(1-s),_=(1-a)*(1-s),b=(1-a)*s;return u.x=_*l+m*f+b*y+v*p,u.y=_*c+m*h+b*g+v*d,u}t.default=function(e,t,r){if(Object(i.compareDatums)(e,t))return r;if(e.datum_type===n.PJD_NODATUM||t.datum_type===n.PJD_NODATUM)return r;var o=e.a,u=e.es;if(e.datum_type===n.PJD_GRIDSHIFT){if(0!==s(e,!1,r))return;o=n.SRS_WGS84_SEMIMAJOR,u=n.SRS_WGS84_ESQUARED}var l=t.a,c=t.b,f=t.es;if(t.datum_type===n.PJD_GRIDSHIFT&&(l=n.SRS_WGS84_SEMIMAJOR,c=n.SRS_WGS84_SEMIMINOR,f=n.SRS_WGS84_ESQUARED),u===f&&o===l&&!a(e.datum_type)&&!a(t.datum_type))return r;if((r=Object(i.geodeticToGeocentric)(r,u,o),a(e.datum_type)&&(r=Object(i.geocentricToWgs84)(r,e.datum_type,e.datum_params)),a(t.datum_type)&&(r=Object(i.geocentricFromWgs84)(r,t.datum_type,t.datum_params)),r=Object(i.geocentricToGeodetic)(r,f,l,c),t.datum_type===n.PJD_GRIDSHIFT)&&0!==s(t,!0,r))return;return r}},function(e,t,r){"use strict";r.r(t),t.default=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}},function(e,t,r){"use strict";function n(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")}r.r(t),t.default=function(e){n(e.x),n(e.y)}},function(e,t,r){"use strict";r.r(t);var n=r(107);function i(e,t,r){if(!(this instanceof i))return new i(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")}i.fromMGRS=function(e){return new i(Object(n.toPoint)(e))},i.prototype.toMGRS=function(e){return Object(n.forward)([this.x,this.y],e)},t.default=i},function(e,t,r){"use strict";r.r(t);var n=r(108),i=r(111),o=r(208),a=r(210),s=r(213),u=r(214),l=r(215),c=r(216),f=r(217),h=r(218),p=r(219),d=r(220),y=r(221),g=r(222),v=r(224),m=r(225),_=r(226),b=r(227),S=r(228),x=r(229),w=r(230),O=r(231),E=r(232),P=r(233),k=r(234),T=r(235),I=r(236),M=r(237),L=r(238);t.default=function(e){e.Proj.projections.add(n.default),e.Proj.projections.add(i.default),e.Proj.projections.add(o.default),e.Proj.projections.add(a.default),e.Proj.projections.add(s.default),e.Proj.projections.add(u.default),e.Proj.projections.add(l.default),e.Proj.projections.add(c.default),e.Proj.projections.add(f.default),e.Proj.projections.add(h.default),e.Proj.projections.add(p.default),e.Proj.projections.add(d.default),e.Proj.projections.add(y.default),e.Proj.projections.add(g.default),e.Proj.projections.add(v.default),e.Proj.projections.add(m.default),e.Proj.projections.add(_.default),e.Proj.projections.add(b.default),e.Proj.projections.add(S.default),e.Proj.projections.add(x.default),e.Proj.projections.add(w.default),e.Proj.projections.add(O.default),e.Proj.projections.add(E.default),e.Proj.projections.add(P.default),e.Proj.projections.add(k.default),e.Proj.projections.add(T.default),e.Proj.projections.add(I.default),e.Proj.projections.add(M.default),e.Proj.projections.add(L.default)}},function(e,t,r){"use strict";r.r(t);var n=r(56),i=r(203);t.default=function(e){var t=Math.abs(e);return t=Object(i.default)(t*(1+t/(Object(n.default)(1,t)+1))),e<0?-t:t}},function(e,t,r){"use strict";r.r(t),t.default=function(e){var t=1+e,r=t-1;return 0===r?e:e*Math.log(t)/r}},function(e,t,r){"use strict";r.r(t),t.default=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)}},function(e,t,r){"use strict";r.r(t),t.default=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}},function(e,t,r){"use strict";r.r(t);var n=r(112),i=r(207);t.default=function(e,t,r){for(var o,a,s=Math.sin(t),u=Math.cos(t),l=Object(n.default)(r),c=Object(i.default)(r),f=2*u*c,h=-2*s*l,p=e.length-1,d=e[p],y=0,g=0,v=0;--p>=0;)o=g,a=y,d=f*(g=d)-o-h*(y=v)+e[p],v=h*g-a+f*y;return[(f=s*c)*d-(h=u*l)*v,f*v+h*d]}},function(e,t,r){"use strict";r.r(t),t.default=function(e){var t=Math.exp(e);return t=(t+1/t)/2}},function(e,t,r){"use strict";r.r(t),r.d(t,"dependsOn",function(){return a}),r.d(t,"init",function(){return s}),r.d(t,"names",function(){return u});var n=r(209),i=r(111),o=r(4),a="etmerc";function s(){var e=Object(n.default)(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*o.D2R,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,i.default.init.apply(this),this.forward=i.default.forward,this.inverse=i.default.inverse}var u=["Universal Transverse Mercator System","utm"];t.default={init:s,names:u,dependsOn:a}},function(e,t,r){"use strict";r.r(t);var n=r(6);t.default=function(e,t){if(void 0===e){if((e=Math.floor(30*(Object(n.default)(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return o}),r.d(t,"forward",function(){return a}),r.d(t,"inverse",function(){return s}),r.d(t,"names",function(){return u});var n=r(211),i=r(6);function o(){n.default.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"))}function a(e){var t,r,o,a;return e.x=Object(i.default)(e.x-this.long0),n.default.forward.apply(this,[e]),t=Math.sin(e.y),r=Math.cos(e.y),o=Math.cos(e.x),a=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*r*o),e.x=a*r*Math.sin(e.x),e.y=a*(this.cosc0*t-this.sinc0*r*o),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function s(e){var t,r,o,a,s;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,s=Math.sqrt(e.x*e.x+e.y*e.y)){var u=2*Math.atan2(s,this.R2);t=Math.sin(u),r=Math.cos(u),a=Math.asin(r*this.sinc0+e.y*t*this.cosc0/s),o=Math.atan2(e.x*t,s*this.cosc0*r-e.y*this.sinc0*t)}else a=this.phic0,o=0;return e.x=o,e.y=a,n.default.inverse.apply(this,[e]),e.x=Object(i.default)(e.x+this.long0),e}var u=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"];t.default={init:o,forward:a,inverse:s,names:u}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return a}),r.d(t,"forward",function(){return s}),r.d(t,"inverse",function(){return u}),r.d(t,"names",function(){return l});var n=r(212),i=r(4),o=20;function a(){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+i.FORTPI)/(Math.pow(Math.tan(.5*this.lat0+i.FORTPI),this.C)*Object(n.default)(this.e*e,this.ratexp))}function s(e){var t=e.x,r=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+i.FORTPI),this.C)*Object(n.default)(this.e*Math.sin(r),this.ratexp))-i.HALF_PI,e.x=this.C*t,e}function u(e){for(var t=e.x/this.C,r=e.y,a=Math.pow(Math.tan(.5*r+i.FORTPI)/this.K,1/this.C),s=o;s>0&&(r=2*Math.atan(a*Object(n.default)(this.e*Math.sin(e.y),-.5*this.e))-i.HALF_PI,!(Math.abs(r-e.y)<1e-14));--s)e.y=r;return s?(e.x=t,e.y=r,e):null}var l=["gauss"];t.default={init:a,forward:s,inverse:u,names:l}},function(e,t,r){"use strict";r.r(t),t.default=function(e,t){return Math.pow((1-e)/(1+e),t)}},function(e,t,r){"use strict";r.r(t),r.d(t,"ssfn_",function(){return l}),r.d(t,"init",function(){return c}),r.d(t,"forward",function(){return f}),r.d(t,"inverse",function(){return h}),r.d(t,"names",function(){return p});var n=r(4),i=r(42),o=r(35),a=r(54),s=r(55),u=r(6);function l(e,t,r){return t*=r,Math.tan(.5*(n.HALF_PI+e))*Math.pow((1-t)/(1+t),.5*r)}function c(){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)<=n.EPSLN&&(this.k0=.5*(1+Object(i.default)(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=n.EPSLN&&(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)<=n.EPSLN&&(this.k0=.5*this.cons*Object(o.default)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Object(a.default)(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=Object(o.default)(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-n.HALF_PI,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function f(e){var t,r,i,o,s,l,c=e.x,f=e.y,h=Math.sin(f),p=Math.cos(f),d=Object(u.default)(c-this.long0);return Math.abs(Math.abs(c-this.long0)-Math.PI)<=n.EPSLN&&Math.abs(f+this.lat0)<=n.EPSLN?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*h+this.coslat0*p*Math.cos(d)),e.x=this.a*t*p*Math.sin(d)+this.x0,e.y=this.a*t*(this.coslat0*h-this.sinlat0*p*Math.cos(d))+this.y0,e):(r=2*Math.atan(this.ssfn_(f,h,this.e))-n.HALF_PI,o=Math.cos(r),i=Math.sin(r),Math.abs(this.coslat0)<=n.EPSLN?(s=Object(a.default)(this.e,f*this.con,this.con*h),l=2*this.a*this.k0*s/this.cons,e.x=this.x0+l*Math.sin(c-this.long0),e.y=this.y0-this.con*l*Math.cos(c-this.long0),e):(Math.abs(this.sinlat0)<n.EPSLN?(t=2*this.a*this.k0/(1+o*Math.cos(d)),e.y=t*i):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*i+this.cosX0*o*Math.cos(d))),e.y=t*(this.cosX0*i-this.sinX0*o*Math.cos(d))+this.y0),e.x=t*o*Math.sin(d)+this.x0,e))}function h(e){var t,r,i,o,a;e.x-=this.x0,e.y-=this.y0;var l=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var c=2*Math.atan(l/(2*this.a*this.k0));return t=this.long0,r=this.lat0,l<=n.EPSLN?(e.x=t,e.y=r,e):(r=Math.asin(Math.cos(c)*this.sinlat0+e.y*Math.sin(c)*this.coslat0/l),t=Math.abs(this.coslat0)<n.EPSLN?this.lat0>0?Object(u.default)(this.long0+Math.atan2(e.x,-1*e.y)):Object(u.default)(this.long0+Math.atan2(e.x,e.y)):Object(u.default)(this.long0+Math.atan2(e.x*Math.sin(c),l*this.coslat0*Math.cos(c)-e.y*this.sinlat0*Math.sin(c))),e.x=t,e.y=r,e)}if(Math.abs(this.coslat0)<=n.EPSLN){if(l<=n.EPSLN)return r=this.lat0,t=this.long0,e.x=t,e.y=r,e;e.x*=this.con,e.y*=this.con,i=l*this.cons/(2*this.a*this.k0),r=this.con*Object(s.default)(this.e,i),t=this.con*Object(u.default)(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else o=2*Math.atan(l*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,l<=n.EPSLN?a=this.X0:(a=Math.asin(Math.cos(o)*this.sinX0+e.y*Math.sin(o)*this.cosX0/l),t=Object(u.default)(this.long0+Math.atan2(e.x*Math.sin(o),l*this.cosX0*Math.cos(o)-e.y*this.sinX0*Math.sin(o)))),r=-1*Object(s.default)(this.e,Math.tan(.5*(n.HALF_PI+a)));return e.x=t,e.y=r,e}var p=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"];t.default={init:c,forward:f,inverse:h,names:p,ssfn_:l}},function(e,t,r){"use strict";function n(){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}function i(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}function o(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,f=0;Math.abs(l-c)>1e-7;){if(++f>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}r.r(t),r.d(t,"init",function(){return n}),r.d(t,"forward",function(){return i}),r.d(t,"inverse",function(){return o}),r.d(t,"names",function(){return a});var a=["somerc"];t.default={init:n,forward:i,inverse:o,names:a}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return u}),r.d(t,"forward",function(){return l}),r.d(t,"inverse",function(){return c}),r.d(t,"names",function(){return f});var n=r(54),i=r(6),o=r(55),a=r(4),s=1e-7;function u(){var e,t,r,o,u,l,c,f,h,p,d,y=0,g=0,v=0,m=0,_=0,b=0,S=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 x=!1;"alpha"in this&&(x=!0);var w=!1;if("rectified_grid_angle"in this&&(w=!0),x&&(S=this.alpha),w&&(y=this.rectified_grid_angle*a.D2R),x||w)g=this.longc;else if(v=this.long1,_=this.lat1,m=this.long2,b=this.lat2,Math.abs(_-b)<=s||(e=Math.abs(_))<=s||Math.abs(e-a.HALF_PI)<=s||Math.abs(Math.abs(this.lat0)-a.HALF_PI)<=s||Math.abs(Math.abs(b)-a.HALF_PI)<=s)throw new Error;var O=1-this.es;t=Math.sqrt(O),Math.abs(this.lat0)>a.EPSLN?(f=Math.sin(this.lat0),r=Math.cos(this.lat0),e=1-this.es*f*f,this.B=r*r,this.B=Math.sqrt(1+this.es*this.B*this.B/O),this.A=this.B*this.k0*t/e,(u=(o=this.B*t/(r*Math.sqrt(e)))*o-1)<=0?u=0:(u=Math.sqrt(u),this.lat0<0&&(u=-u)),this.E=u+=o,this.E*=Math.pow(Object(n.default)(this.e,this.lat0,f),this.B)):(this.B=1/t,this.A=this.k0,this.E=o=u=1),x||w?(x?(d=Math.asin(Math.sin(S)/o),w||(y=S)):(d=y,S=Math.asin(o*Math.sin(d))),this.lam0=g-Math.asin(.5*(u-1/u)*Math.tan(d))/this.B):(l=Math.pow(Object(n.default)(this.e,_,Math.sin(_)),this.B),c=Math.pow(Object(n.default)(this.e,b,Math.sin(b)),this.B),u=this.E/l,h=(c-l)/(c+l),p=((p=this.E*this.E)-c*l)/(p+c*l),(e=v-m)<-Math.pi?m-=a.TWO_PI:e>Math.pi&&(m+=a.TWO_PI),this.lam0=Object(i.default)(.5*(v+m)-Math.atan(p*Math.tan(.5*this.B*(v-m))/h)/this.B),d=Math.atan(2*Math.sin(this.B*Object(i.default)(v-this.lam0))/(u-1/u)),y=S=Math.asin(o*Math.sin(d))),this.singam=Math.sin(d),this.cosgam=Math.cos(d),this.sinrot=Math.sin(y),this.cosrot=Math.cos(y),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(o*o-1)/Math.cos(S))),this.lat0<0&&(this.u_0=-this.u_0)),u=.5*d,this.v_pole_n=this.ArB*Math.log(Math.tan(a.FORTPI-u)),this.v_pole_s=this.ArB*Math.log(Math.tan(a.FORTPI+u))}function l(e){var t,r,i,o,u,l,c,f,h={};if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-a.HALF_PI)>a.EPSLN){if(t=.5*((u=this.E/Math.pow(Object(n.default)(this.e,e.y,Math.sin(e.y)),this.B))-(l=1/u)),r=.5*(u+l),o=Math.sin(this.B*e.x),i=(t*this.singam-o*this.cosgam)/r,Math.abs(Math.abs(i)-1)<a.EPSLN)throw new Error;f=.5*this.ArB*Math.log((1-i)/(1+i)),l=Math.cos(this.B*e.x),c=Math.abs(l)<s?this.A*e.x:this.ArB*Math.atan2(t*this.cosgam+o*this.singam,l)}else f=e.y>0?this.v_pole_n:this.v_pole_s,c=this.ArB*e.y;return this.no_rot?(h.x=c,h.y=f):(c-=this.u_0,h.x=f*this.cosrot+c*this.sinrot,h.y=c*this.cosrot-f*this.sinrot),h.x=this.a*h.x+this.x0,h.y=this.a*h.y+this.y0,h}function c(e){var t,r,n,i,s,u,l,c={};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),s=.5*(n+1/n),l=((u=Math.sin(this.BrA*t))*this.cosgam+i*this.singam)/s,Math.abs(Math.abs(l)-1)<a.EPSLN)c.x=0,c.y=l<0?-a.HALF_PI:a.HALF_PI;else{if(c.y=this.E/Math.sqrt((1+l)/(1-l)),c.y=Object(o.default)(this.e,Math.pow(c.y,1/this.B)),c.y===1/0)throw new Error;c.x=-this.rB*Math.atan2(i*this.cosgam-u*this.singam,Math.cos(this.BrA*t))}return c.x+=this.lam0,c}var f=["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"];t.default={init:u,forward:l,inverse:c,names:f}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return l}),r.d(t,"forward",function(){return c}),r.d(t,"inverse",function(){return f}),r.d(t,"names",function(){return h});var n=r(35),i=r(54),o=r(42),a=r(6),s=r(55),u=r(4);function l(){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)<u.EPSLN)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),r=Math.cos(this.lat1),o=Object(n.default)(this.e,t,r),a=Object(i.default)(this.e,this.lat1,t),s=Math.sin(this.lat2),l=Math.cos(this.lat2),c=Object(n.default)(this.e,s,l),f=Object(i.default)(this.e,this.lat2,s),h=Object(i.default)(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>u.EPSLN?this.ns=Math.log(o/c)/Math.log(a/f):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=o/(this.ns*Math.pow(a,this.ns)),this.rh=this.a*this.f0*Math.pow(h,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function c(e){var t=e.x,r=e.y;Math.abs(2*Math.abs(r)-Math.PI)<=u.EPSLN&&(r=Object(o.default)(r)*(u.HALF_PI-2*u.EPSLN));var n,s,l=Math.abs(Math.abs(r)-u.HALF_PI);if(l>u.EPSLN)n=Object(i.default)(this.e,r,Math.sin(r)),s=this.a*this.f0*Math.pow(n,this.ns);else{if((l=r*this.ns)<=0)return null;s=0}var c=this.ns*Object(a.default)(t-this.long0);return e.x=this.k0*(s*Math.sin(c))+this.x0,e.y=this.k0*(this.rh-s*Math.cos(c))+this.y0,e}function f(e){var t,r,n,i,o,l=(e.x-this.x0)/this.k0,c=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(l*l+c*c),r=1):(t=-Math.sqrt(l*l+c*c),r=-1);var f=0;if(0!==t&&(f=Math.atan2(r*l,r*c)),0!==t||this.ns>0){if(r=1/this.ns,n=Math.pow(t/(this.a*this.f0),r),-9999===(i=Object(s.default)(this.e,n)))return null}else i=-u.HALF_PI;return o=Object(a.default)(f/this.ns+this.long0),e.x=o,e.y=i,e}var h=["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)"];t.default={init:l,forward:c,inverse:f,names:h}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return i}),r.d(t,"forward",function(){return o}),r.d(t,"inverse",function(){return a}),r.d(t,"names",function(){return s});var n=r(6);function i(){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}function o(e){var t,r,i,o,a,s,u,l=e.x,c=e.y,f=Object(n.default)(l-this.long0);return t=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),r=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/t)-this.s45),i=-f*this.alfa,o=Math.asin(Math.cos(this.ad)*Math.sin(r)+Math.sin(this.ad)*Math.cos(r)*Math.cos(i)),a=Math.asin(Math.cos(r)*Math.sin(i)/Math.cos(o)),s=this.n*a,u=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(o/2+this.s45),this.n),e.y=u*Math.cos(s)/1,e.x=u*Math.sin(s)/1,this.czech||(e.y*=-1,e.x*=-1),e}function a(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}var s=["Krovak","krovak"];t.default={init:i,forward:o,inverse:a,names:s}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return p}),r.d(t,"forward",function(){return d}),r.d(t,"inverse",function(){return y}),r.d(t,"names",function(){return g});var n=r(57),i=r(58),o=r(59),a=r(60),s=r(61),u=r(74),l=r(6),c=r(43),f=r(75),h=r(4);function p(){this.sphere||(this.e0=Object(i.default)(this.es),this.e1=Object(o.default)(this.es),this.e2=Object(a.default)(this.es),this.e3=Object(s.default)(this.es),this.ml0=this.a*Object(n.default)(this.e0,this.e1,this.e2,this.e3,this.lat0))}function d(e){var t,r,i=e.x,o=e.y;if(i=Object(l.default)(i-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(o)*Math.sin(i)),r=this.a*(Math.atan2(Math.tan(o),Math.cos(i))-this.lat0);else{var a=Math.sin(o),s=Math.cos(o),c=Object(u.default)(this.a,this.e,a),f=Math.tan(o)*Math.tan(o),h=i*Math.cos(o),p=h*h,d=this.es*s*s/(1-this.es);t=c*h*(1-p*f*(1/6-(8-f+8*d)*p/120)),r=this.a*Object(n.default)(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+c*a/s*p*(.5+(5-f+6*d)*p/24)}return e.x=t+this.x0,e.y=r+this.y0,e}function y(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,s=Object(f.default)(a,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(s)-h.HALF_PI)<=h.EPSLN)return e.x=this.long0,e.y=h.HALF_PI,i<0&&(e.y*=-1),e;var p=Object(u.default)(this.a,this.e,Math.sin(s)),d=p*p*p/this.a/this.a*(1-this.es),y=Math.pow(Math.tan(s),2),g=n*this.a/p,v=g*g;t=s-p*Math.tan(s)/d*g*g*(.5-(1+3*y)*g*g/24),r=g*(1-v*(y/3+(1+3*y)*y*v/15))/Math.cos(s)}return e.x=Object(l.default)(r+this.long0),e.y=Object(c.default)(t),e}var g=["Cassini","Cassini_Soldner","cass"];t.default={init:p,forward:d,inverse:y,names:g}},function(e,t,r){"use strict";r.r(t),r.d(t,"S_POLE",function(){return a}),r.d(t,"N_POLE",function(){return s}),r.d(t,"EQUIT",function(){return u}),r.d(t,"OBLIQ",function(){return l}),r.d(t,"init",function(){return c}),r.d(t,"forward",function(){return f}),r.d(t,"inverse",function(){return h}),r.d(t,"names",function(){return _});var n=r(4),i=r(76),o=r(6),a=1,s=2,u=3,l=4;function c(){var e,t=Math.abs(this.lat0);if(Math.abs(t-n.HALF_PI)<n.EPSLN?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<n.EPSLN?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=Object(i.default)(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,r=[];return r[0]=e*p,t=e*e,r[0]+=t*d,r[1]=t*g,t*=e,r[0]+=t*y,r[1]+=t*v,r[2]=t*m,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=Object(i.default)(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))}function f(e){var t,r,a,s,u,l,c,f,h,p,d=e.x,y=e.y;if(d=Object(o.default)(d-this.long0),this.sphere){if(u=Math.sin(y),p=Math.cos(y),a=Math.cos(d),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((r=this.mode===this.EQUIT?1+p*a:1+this.sinph0*u+this.cosph0*p*a)<=n.EPSLN)return null;t=(r=Math.sqrt(2/r))*p*Math.sin(d),r*=this.mode===this.EQUIT?u:this.cosph0*u-this.sinph0*p*a}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(a=-a),Math.abs(y+this.lat0)<n.EPSLN)return null;r=n.FORTPI-.5*y,t=(r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)))*Math.sin(d),r*=a}}else{switch(c=0,f=0,h=0,a=Math.cos(d),s=Math.sin(d),u=Math.sin(y),l=Object(i.default)(this.e,u),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(c=l/this.qp,f=Math.sqrt(1-c*c)),this.mode){case this.OBLIQ:h=1+this.sinb1*c+this.cosb1*f*a;break;case this.EQUIT:h=1+f*a;break;case this.N_POLE:h=n.HALF_PI+y,l=this.qp-l;break;case this.S_POLE:h=y-n.HALF_PI,l=this.qp+l}if(Math.abs(h)<n.EPSLN)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:h=Math.sqrt(2/h),r=this.mode===this.OBLIQ?this.ymf*h*(this.cosb1*c-this.sinb1*f*a):(h=Math.sqrt(2/(1+f*a)))*c*this.ymf,t=this.xmf*h*f*s;break;case this.N_POLE:case this.S_POLE:l>=0?(t=(h=Math.sqrt(l))*s,r=a*(this.mode===this.S_POLE?h:-h)):t=r=0}}return e.x=this.a*t+this.x0,e.y=this.a*r+this.y0,e}function h(e){e.x-=this.x0,e.y-=this.y0;var t,r,i,a,s,u,l,c=e.x/this.a,f=e.y/this.a;if(this.sphere){var h,p=0,d=0;if((r=.5*(h=Math.sqrt(c*c+f*f)))>1)return null;switch(r=2*Math.asin(r),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(d=Math.sin(r),p=Math.cos(r)),this.mode){case this.EQUIT:r=Math.abs(h)<=n.EPSLN?0:Math.asin(f*d/h),c*=d,f=p*h;break;case this.OBLIQ:r=Math.abs(h)<=n.EPSLN?this.lat0:Math.asin(p*this.sinph0+f*d*this.cosph0/h),c*=d*this.cosph0,f=(p-Math.sin(r)*this.sinph0)*h;break;case this.N_POLE:f=-f,r=n.HALF_PI-r;break;case this.S_POLE:r-=n.HALF_PI}t=0!==f||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(c,f):0}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(c/=this.dd,f*=this.dd,(u=Math.sqrt(c*c+f*f))<n.EPSLN)return e.x=this.long0,e.y=this.lat0,e;a=2*Math.asin(.5*u/this.rq),i=Math.cos(a),c*=a=Math.sin(a),this.mode===this.OBLIQ?(l=i*this.sinb1+f*a*this.cosb1/u,s=this.qp*l,f=u*this.cosb1*i-f*this.sinb1*a):(l=f*a/u,s=this.qp*l,f=u*i)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(f=-f),!(s=c*c+f*f))return e.x=this.long0,e.y=this.lat0,e;l=1-s/this.qp,this.mode===this.S_POLE&&(l=-l)}t=Math.atan2(c,f),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(l),this.apa)}return e.x=Object(o.default)(this.long0+t),e.y=r,e}var p=.3333333333333333,d=.17222222222222222,y=.10257936507936508,g=.06388888888888888,v=.0664021164021164,m=.016415012942191543;var _=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"];t.default={init:c,forward:f,inverse:h,names:_,S_POLE:a,N_POLE:s,EQUIT:u,OBLIQ:l}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return u}),r.d(t,"forward",function(){return l}),r.d(t,"inverse",function(){return c}),r.d(t,"phi1z",function(){return f}),r.d(t,"names",function(){return h});var n=r(35),i=r(76),o=r(6),a=r(36),s=r(4);function u(){Math.abs(this.lat1+this.lat2)<s.EPSLN||(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=Object(n.default)(this.e3,this.sin_po,this.cos_po),this.qs1=Object(i.default)(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=Object(n.default)(this.e3,this.sin_po,this.cos_po),this.qs2=Object(i.default)(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=Object(i.default)(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>s.EPSLN?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)}function l(e){var t=e.x,r=e.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var n=Object(i.default)(this.e3,this.sin_phi),a=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,s=this.ns0*Object(o.default)(t-this.long0),u=a*Math.sin(s)+this.x0,l=this.rh-a*Math.cos(s)+this.y0;return e.x=u,e.y=l,e}function c(e){var t,r,n,i,a,s;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?s=Math.asin((this.c-n*n)/(2*this.ns0)):(r=(this.c-n*n)/this.ns0,s=this.phi1z(this.e3,r)),a=Object(o.default)(i/this.ns0+this.long0),e.x=a,e.y=s,e}function f(e,t){var r,n,i,o,u,l=Object(a.default)(.5*t);if(e<s.EPSLN)return l;for(var c=e*e,f=1;f<=25;f++)if(r=Math.sin(l),n=Math.cos(l),l+=u=.5*(o=1-(i=e*r)*i)*o/n*(t/(1-c)-r/o+.5/e*Math.log((1-i)/(1+i))),Math.abs(u)<=1e-7)return l;return null}var h=["Albers_Conic_Equal_Area","Albers","aea"];t.default={init:u,forward:l,inverse:c,names:h,phi1z:f}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return a}),r.d(t,"forward",function(){return s}),r.d(t,"inverse",function(){return u}),r.d(t,"names",function(){return l});var n=r(6),i=r(36),o=r(4);function a(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function s(e){var t,r,i,a,s,u,l,c=e.x,f=e.y;return i=Object(n.default)(c-this.long0),t=Math.sin(f),r=Math.cos(f),a=Math.cos(i),1,(s=this.sin_p14*t+this.cos_p14*r*a)>0||Math.abs(s)<=o.EPSLN?(u=this.x0+1*this.a*r*Math.sin(i)/s,l=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*a)/s):(u=this.x0+this.infinity_dist*r*Math.sin(i),l=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*r*a)),e.x=u,e.y=l,e}function u(e){var t,r,o,a,s,u;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))?(a=Math.atan2(t,this.rc),r=Math.sin(a),o=Math.cos(a),u=Object(i.default)(o*this.sin_p14+e.y*r*this.cos_p14/t),s=Math.atan2(e.x*r,t*this.cos_p14*o-e.y*this.sin_p14*r),s=Object(n.default)(this.long0+s)):(u=this.phic0,s=0),e.x=s,e.y=u,e}var l=["gnom"];t.default={init:a,forward:s,inverse:u,names:l}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return s}),r.d(t,"forward",function(){return u}),r.d(t,"inverse",function(){return l}),r.d(t,"names",function(){return c});var n=r(6),i=r(76),o=r(35),a=r(223);function s(){this.sphere||(this.k0=Object(o.default)(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function u(e){var t,r,o=e.x,a=e.y,s=Object(n.default)(o-this.long0);if(this.sphere)t=this.x0+this.a*s*Math.cos(this.lat_ts),r=this.y0+this.a*Math.sin(a)/Math.cos(this.lat_ts);else{var u=Object(i.default)(this.e,Math.sin(a));t=this.x0+this.a*this.k0*s,r=this.y0+this.a*u*.5/this.k0}return e.x=t,e.y=r,e}function l(e){var t,r;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=Object(n.default)(this.long0+e.x/this.a/Math.cos(this.lat_ts)),r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(r=Object(a.default)(this.e,2*e.y*this.k0/this.a),t=Object(n.default)(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=r,e}var c=["cea"];t.default={init:s,forward:u,inverse:l,names:c}},function(e,t,r){"use strict";r.r(t);var n=r(4);t.default=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*n.HALF_PI:n.HALF_PI;for(var i,o,a,s,u=Math.asin(.5*t),l=0;l<30;l++)if(o=Math.sin(u),a=Math.cos(u),s=e*o,u+=i=Math.pow(1-s*s,2)/(2*a)*(t/(1-e*e)-o/(1-s*s)+.5/e*Math.log((1-s)/(1+s))),Math.abs(i)<=1e-10)return u;return NaN}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return o}),r.d(t,"forward",function(){return a}),r.d(t,"inverse",function(){return s}),r.d(t,"names",function(){return u});var n=r(6),i=r(43);function o(){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)}function a(e){var t=e.x,r=e.y,o=Object(n.default)(t-this.long0),a=Object(i.default)(r-this.lat0);return e.x=this.x0+this.a*o*this.rc,e.y=this.y0+this.a*a,e}function s(e){var t=e.x,r=e.y;return e.x=Object(n.default)(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=Object(i.default)(this.lat0+(r-this.y0)/this.a),e}var u=["Equirectangular","Equidistant_Cylindrical","eqc"];t.default={init:o,forward:a,inverse:s,names:u}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return p}),r.d(t,"forward",function(){return d}),r.d(t,"inverse",function(){return y}),r.d(t,"names",function(){return g});var n=r(58),i=r(59),o=r(60),a=r(61),s=r(6),u=r(43),l=r(57),c=r(4),f=r(74),h=20;function p(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Object(n.default)(this.es),this.e1=Object(i.default)(this.es),this.e2=Object(o.default)(this.es),this.e3=Object(a.default)(this.es),this.ml0=this.a*Object(l.default)(this.e0,this.e1,this.e2,this.e3,this.lat0)}function d(e){var t,r,n,i=e.x,o=e.y,a=Object(s.default)(i-this.long0);if(n=a*Math.sin(o),this.sphere)Math.abs(o)<=c.EPSLN?(t=this.a*a,r=-1*this.a*this.lat0):(t=this.a*Math.sin(n)/Math.tan(o),r=this.a*(Object(u.default)(o-this.lat0)+(1-Math.cos(n))/Math.tan(o)));else if(Math.abs(o)<=c.EPSLN)t=this.a*a,r=-1*this.ml0;else{var h=Object(f.default)(this.a,this.e,Math.sin(o))/Math.tan(o);t=h*Math.sin(n),r=this.a*Object(l.default)(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+h*(1-Math.cos(n))}return e.x=t+this.x0,e.y=r+this.y0,e}function y(e){var t,r,n,i,o,a,u,f,p;if(n=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=c.EPSLN)t=Object(s.default)(n/this.a+this.long0),r=0;else{var d;for(a=this.lat0+i/this.a,u=n*n/this.a/this.a+a*a,f=a,o=h;o;--o)if(f+=p=-1*(a*(f*(d=Math.tan(f))+1)-f-.5*(f*f+u)*d)/((f-a)/d-1),Math.abs(p)<=c.EPSLN){r=f;break}t=Object(s.default)(this.long0+Math.asin(n*Math.tan(f)/this.a)/Math.sin(r))}else if(Math.abs(i+this.ml0)<=c.EPSLN)r=0,t=Object(s.default)(this.long0+n/this.a);else{var y,g,v,m,_;for(a=(this.ml0+i)/this.a,u=n*n/this.a/this.a+a*a,f=a,o=h;o;--o)if(_=this.e*Math.sin(f),y=Math.sqrt(1-_*_)*Math.tan(f),g=this.a*Object(l.default)(this.e0,this.e1,this.e2,this.e3,f),v=this.e0-2*this.e1*Math.cos(2*f)+4*this.e2*Math.cos(4*f)-6*this.e3*Math.cos(6*f),f-=p=(a*(y*(m=g/this.a)+1)-m-.5*y*(m*m+u))/(this.es*Math.sin(2*f)*(m*m+u-2*a*m)/(4*y)+(a-m)*(y*v-2/Math.sin(2*f))-v),Math.abs(p)<=c.EPSLN){r=f;break}y=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),t=Object(s.default)(this.long0+Math.asin(n*y/this.a)/Math.sin(r))}return e.x=t,e.y=r,e}var g=["Polyconic","poly"];t.default={init:p,forward:d,inverse:y,names:g}},function(e,t,r){"use strict";r.r(t),r.d(t,"iterations",function(){return i}),r.d(t,"init",function(){return o}),r.d(t,"forward",function(){return a}),r.d(t,"inverse",function(){return s}),r.d(t,"names",function(){return u});var n=r(4),i=1;function o(){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}function a(e){var t,r=e.x,i=e.y-this.lat0,o=r-this.long0,a=i/n.SEC_TO_RAD*1e-5,s=o,u=1,l=0;for(t=1;t<=10;t++)u*=a,l+=this.A[t]*u;var c,f=l,h=s,p=1,d=0,y=0,g=0;for(t=1;t<=6;t++)c=d*f+p*h,p=p*f-d*h,d=c,y=y+this.B_re[t]*p-this.B_im[t]*d,g=g+this.B_im[t]*p+this.B_re[t]*d;return e.x=g*this.a+this.x0,e.y=y*this.a+this.y0,e}function s(e){var t,r,i=e.x,o=e.y,a=i-this.x0,s=(o-this.y0)/this.a,u=a/this.a,l=1,c=0,f=0,h=0;for(t=1;t<=6;t++)r=c*s+l*u,l=l*s-c*u,c=r,f=f+this.C_re[t]*l-this.C_im[t]*c,h=h+this.C_im[t]*l+this.C_re[t]*c;for(var p=0;p<this.iterations;p++){var d,y=f,g=h,v=s,m=u;for(t=2;t<=6;t++)d=g*f+y*h,y=y*f-g*h,g=d,v+=(t-1)*(this.B_re[t]*y-this.B_im[t]*g),m+=(t-1)*(this.B_im[t]*y+this.B_re[t]*g);y=1,g=0;var _=this.B_re[1],b=this.B_im[1];for(t=2;t<=6;t++)d=g*f+y*h,y=y*f-g*h,g=d,_+=t*(this.B_re[t]*y-this.B_im[t]*g),b+=t*(this.B_im[t]*y+this.B_re[t]*g);var S=_*_+b*b;f=(v*_+m*b)/S,h=(m*_-v*b)/S}var x=f,w=h,O=1,E=0;for(t=1;t<=9;t++)O*=x,E+=this.D[t]*O;var P=this.lat0+E*n.SEC_TO_RAD*1e5,k=this.long0+w;return e.x=k,e.y=P,e}var u=["New_Zealand_Map_Grid","nzmg"];t.default={init:o,forward:a,inverse:s,names:u}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return i}),r.d(t,"forward",function(){return o}),r.d(t,"inverse",function(){return a}),r.d(t,"names",function(){return s});var n=r(6);function i(){}function o(e){var t=e.x,r=e.y,i=Object(n.default)(t-this.long0),o=this.x0+this.a*i,a=this.y0+this.a*Math.log(Math.tan(Math.PI/4+r/2.5))*1.25;return e.x=o,e.y=a,e}function a(e){e.x-=this.x0,e.y-=this.y0;var t=Object(n.default)(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}var s=["Miller_Cylindrical","mill"];t.default={init:i,forward:o,inverse:a,names:s}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return f}),r.d(t,"forward",function(){return h}),r.d(t,"inverse",function(){return p}),r.d(t,"names",function(){return d});var n=r(6),i=r(43),o=r(109),a=r(73),s=r(110),u=r(4),l=r(36),c=20;function f(){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=Object(o.default)(this.es)}function h(e){var t,r,i=e.x,o=e.y;if(i=Object(n.default)(i-this.long0),this.sphere){if(this.m)for(var s=this.n*Math.sin(o),l=c;l;--l){var f=(this.m*o+Math.sin(o)-s)/(this.m+Math.cos(o));if(o-=f,Math.abs(f)<u.EPSLN)break}else o=1!==this.n?Math.asin(this.n*Math.sin(o)):o;t=this.a*this.C_x*i*(this.m+Math.cos(o)),r=this.a*this.C_y*o}else{var h=Math.sin(o),p=Math.cos(o);r=this.a*Object(a.default)(o,h,p,this.en),t=this.a*i*p/Math.sqrt(1-this.es*h*h)}return e.x=t,e.y=r,e}function p(e){var t,r,o,a;return e.x-=this.x0,o=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this.C_y,o/=this.C_x*(this.m+Math.cos(t)),this.m?t=Object(l.default)((this.m*t+Math.sin(t))/this.n):1!==this.n&&(t=Object(l.default)(Math.sin(t)/this.n)),o=Object(n.default)(o+this.long0),t=Object(i.default)(t)):(t=Object(s.default)(e.y/this.a,this.es,this.en),(a=Math.abs(t))<u.HALF_PI?(a=Math.sin(t),r=this.long0+e.x*Math.sqrt(1-this.es*a*a)/(this.a*Math.cos(t)),o=Object(n.default)(r)):a-u.EPSLN<u.HALF_PI&&(o=this.long0)),e.x=o,e.y=t,e}var d=["Sinusoidal","sinu"];t.default={init:f,forward:h,inverse:p,names:d}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return o}),r.d(t,"forward",function(){return a}),r.d(t,"inverse",function(){return s}),r.d(t,"names",function(){return u});var n=r(6),i=r(4);function o(){}function a(e){for(var t=e.x,r=e.y,o=Object(n.default)(t-this.long0),a=r,s=Math.PI*Math.sin(r);;){var u=-(a+Math.sin(a)-s)/(1+Math.cos(a));if(a+=u,Math.abs(u)<i.EPSLN)break}a/=2,Math.PI/2-Math.abs(r)<i.EPSLN&&(o=0);var l=.900316316158*this.a*o*Math.cos(a)+this.x0,c=1.4142135623731*this.a*Math.sin(a)+this.y0;return e.x=l,e.y=c,e}function s(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 i=Object(n.default)(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));i<-Math.PI&&(i=-Math.PI),i>Math.PI&&(i=Math.PI),r=(2*t+Math.sin(2*t))/Math.PI,Math.abs(r)>1&&(r=1);var o=Math.asin(r);return e.x=i,e.y=o,e}var u=["Mollweide","moll"];t.default={init:o,forward:a,inverse:s,names:u}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return p}),r.d(t,"forward",function(){return d}),r.d(t,"inverse",function(){return y}),r.d(t,"names",function(){return g});var n=r(58),i=r(59),o=r(60),a=r(61),s=r(35),u=r(57),l=r(6),c=r(43),f=r(75),h=r(4);function p(){Math.abs(this.lat1+this.lat2)<h.EPSLN||(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=Object(n.default)(this.es),this.e1=Object(i.default)(this.es),this.e2=Object(o.default)(this.es),this.e3=Object(a.default)(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=Object(s.default)(this.e,this.sinphi,this.cosphi),this.ml1=Object(u.default)(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<h.EPSLN?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=Object(s.default)(this.e,this.sinphi,this.cosphi),this.ml2=Object(u.default)(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=Object(u.default)(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function d(e){var t,r=e.x,n=e.y;if(this.sphere)t=this.a*(this.g-n);else{var i=Object(u.default)(this.e0,this.e1,this.e2,this.e3,n);t=this.a*(this.g-i)}var o=this.ns*Object(l.default)(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}function y(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=Object(l.default)(this.long0+o/this.ns),n=Object(c.default)(this.g-r/this.a),e.x=i,e.y=n,e;var a=this.g-r/this.a;return n=Object(f.default)(a,this.e0,this.e1,this.e2,this.e3),i=Object(l.default)(this.long0+o/this.ns),e.x=i,e.y=n,e}var g=["Equidistant_Conic","eqdc"];t.default={init:p,forward:d,inverse:y,names:g}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return a}),r.d(t,"forward",function(){return s}),r.d(t,"inverse",function(){return u}),r.d(t,"names",function(){return l});var n=r(6),i=r(4),o=r(36);function a(){this.R=this.a}function s(e){var t,r,a=e.x,s=e.y,u=Object(n.default)(a-this.long0);Math.abs(s)<=i.EPSLN&&(t=this.x0+this.R*u,r=this.y0);var l=Object(o.default)(2*Math.abs(s/Math.PI));(Math.abs(u)<=i.EPSLN||Math.abs(Math.abs(s)-i.HALF_PI)<=i.EPSLN)&&(t=this.x0,r=s>=0?this.y0+Math.PI*this.R*Math.tan(.5*l):this.y0+Math.PI*this.R*-Math.tan(.5*l));var c=.5*Math.abs(Math.PI/u-u/Math.PI),f=c*c,h=Math.sin(l),p=Math.cos(l),d=p/(h+p-1),y=d*d,g=d*(2/h-1),v=g*g,m=Math.PI*this.R*(c*(d-v)+Math.sqrt(f*(d-v)*(d-v)-(v+f)*(y-v)))/(v+f);u<0&&(m=-m),t=this.x0+m;var _=f+d;return m=Math.PI*this.R*(g*_-c*Math.sqrt((v+f)*(f+1)-_*_))/(v+f),r=s>=0?this.y0+m:this.y0-m,e.x=t,e.y=r,e}function u(e){var t,r,o,a,s,u,l,c,f,h,p,d;return e.x-=this.x0,e.y-=this.y0,p=Math.PI*this.R,s=(o=e.x/p)*o+(a=e.y/p)*a,p=3*(a*a/(c=-2*(u=-Math.abs(a)*(1+s))+1+2*a*a+s*s)+(2*(l=u-2*a*a+o*o)*l*l/c/c/c-9*u*l/c/c)/27)/(f=(u-l*l/3/c)/c)/(h=2*Math.sqrt(-f/3)),Math.abs(p)>1&&(p=p>=0?1:-1),d=Math.acos(p)/3,r=e.y>=0?(-h*Math.cos(d+Math.PI/3)-l/3/c)*Math.PI:-(-h*Math.cos(d+Math.PI/3)-l/3/c)*Math.PI,t=Math.abs(o)<i.EPSLN?this.long0:Object(n.default)(this.long0+Math.PI*(s-1+Math.sqrt(1+2*(o*o-a*a)+s*s))/2/o),e.x=t,e.y=r,e}var l=["Van_der_Grinten_I","VanDerGrinten","vandg"];t.default={init:a,forward:s,inverse:u,names:l}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return p}),r.d(t,"forward",function(){return d}),r.d(t,"inverse",function(){return y}),r.d(t,"names",function(){return g});var n=r(6),i=r(4),o=r(57),a=r(58),s=r(59),u=r(60),l=r(61),c=r(74),f=r(36),h=r(75);function p(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)}function d(e){var t,r,f,h,p,d,y,g,v,m,_,b,S,x,w,O,E,P,k,T,I,M,L=e.x,C=e.y,N=Math.sin(e.y),R=Math.cos(e.y),j=Object(n.default)(L-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=i.EPSLN?(e.x=this.x0+this.a*(i.HALF_PI-C)*Math.sin(j),e.y=this.y0-this.a*(i.HALF_PI-C)*Math.cos(j),e):Math.abs(this.sin_p12+1)<=i.EPSLN?(e.x=this.x0+this.a*(i.HALF_PI+C)*Math.sin(j),e.y=this.y0+this.a*(i.HALF_PI+C)*Math.cos(j),e):(P=this.sin_p12*N+this.cos_p12*R*Math.cos(j),E=(O=Math.acos(P))?O/Math.sin(O):1,e.x=this.x0+this.a*E*R*Math.sin(j),e.y=this.y0+this.a*E*(this.cos_p12*N-this.sin_p12*R*Math.cos(j)),e):(t=Object(a.default)(this.es),r=Object(s.default)(this.es),f=Object(u.default)(this.es),h=Object(l.default)(this.es),Math.abs(this.sin_p12-1)<=i.EPSLN?(p=this.a*Object(o.default)(t,r,f,h,i.HALF_PI),d=this.a*Object(o.default)(t,r,f,h,C),e.x=this.x0+(p-d)*Math.sin(j),e.y=this.y0-(p-d)*Math.cos(j),e):Math.abs(this.sin_p12+1)<=i.EPSLN?(p=this.a*Object(o.default)(t,r,f,h,i.HALF_PI),d=this.a*Object(o.default)(t,r,f,h,C),e.x=this.x0+(p+d)*Math.sin(j),e.y=this.y0+(p+d)*Math.cos(j),e):(y=N/R,g=Object(c.default)(this.a,this.e,this.sin_p12),v=Object(c.default)(this.a,this.e,N),m=Math.atan((1-this.es)*y+this.es*g*this.sin_p12/(v*R)),k=0===(_=Math.atan2(Math.sin(j),this.cos_p12*Math.tan(m)-this.sin_p12*Math.cos(j)))?Math.asin(this.cos_p12*Math.sin(m)-this.sin_p12*Math.cos(m)):Math.abs(Math.abs(_)-Math.PI)<=i.EPSLN?-Math.asin(this.cos_p12*Math.sin(m)-this.sin_p12*Math.cos(m)):Math.asin(Math.sin(j)*Math.cos(m)/Math.sin(_)),b=this.e*this.sin_p12/Math.sqrt(1-this.es),O=g*k*(1-(T=k*k)*(w=(S=this.e*this.cos_p12*Math.cos(_)/Math.sqrt(1-this.es))*S)*(1-w)/6+(I=T*k)/8*(x=b*S)*(1-2*w)+(M=I*k)/120*(w*(4-7*w)-3*b*b*(1-7*w))-M*k/48*x),e.x=this.x0+O*Math.sin(_),e.y=this.y0+O*Math.cos(_),e))}function y(e){var t,r,p,d,y,g,v,m,_,b,S,x,w,O,E,P,k,T,I,M,L,C,N,R;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*i.HALF_PI*this.a)return;return r=t/this.a,p=Math.sin(r),d=Math.cos(r),y=this.long0,Math.abs(t)<=i.EPSLN?g=this.lat0:(g=Object(f.default)(d*this.sin_p12+e.y*p*this.cos_p12/t),v=Math.abs(this.lat0)-i.HALF_PI,y=Math.abs(v)<=i.EPSLN?this.lat0>=0?Object(n.default)(this.long0+Math.atan2(e.x,-e.y)):Object(n.default)(this.long0-Math.atan2(-e.x,e.y)):Object(n.default)(this.long0+Math.atan2(e.x*p,t*this.cos_p12*d-e.y*this.sin_p12*p))),e.x=y,e.y=g,e}return m=Object(a.default)(this.es),_=Object(s.default)(this.es),b=Object(u.default)(this.es),S=Object(l.default)(this.es),Math.abs(this.sin_p12-1)<=i.EPSLN?(w=(x=this.a*Object(o.default)(m,_,b,S,i.HALF_PI))-(t=Math.sqrt(e.x*e.x+e.y*e.y)),g=Object(h.default)(w/this.a,m,_,b,S),y=Object(n.default)(this.long0+Math.atan2(e.x,-1*e.y)),e.x=y,e.y=g,e):Math.abs(this.sin_p12+1)<=i.EPSLN?(x=this.a*Object(o.default)(m,_,b,S,i.HALF_PI),w=(t=Math.sqrt(e.x*e.x+e.y*e.y))-x,g=Object(h.default)(w/this.a,m,_,b,S),y=Object(n.default)(this.long0+Math.atan2(e.x,e.y)),e.x=y,e.y=g,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),P=Math.atan2(e.x,e.y),O=Object(c.default)(this.a,this.e,this.sin_p12),k=Math.cos(P),I=-(T=this.e*this.cos_p12*k)*T/(1-this.es),M=3*this.es*(1-I)*this.sin_p12*this.cos_p12*k/(1-this.es),N=1-I*(C=(L=t/O)-I*(1+I)*Math.pow(L,3)/6-M*(1+3*I)*Math.pow(L,4)/24)*C/2-L*C*C*C/6,E=Math.asin(this.sin_p12*Math.cos(C)+this.cos_p12*Math.sin(C)*k),y=Object(n.default)(this.long0+Math.asin(Math.sin(P)*Math.sin(C)/Math.cos(E))),R=Math.sin(E),g=Math.atan2((R-this.es*N*this.sin_p12)*Math.tan(E),R*(1-this.es)),e.x=y,e.y=g,e)}var g=["Azimuthal_Equidistant","aeqd"];t.default={init:p,forward:d,inverse:y,names:g}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return a}),r.d(t,"forward",function(){return s}),r.d(t,"inverse",function(){return u}),r.d(t,"names",function(){return l});var n=r(6),i=r(36),o=r(4);function a(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function s(e){var t,r,i,a,s,u,l,c=e.x,f=e.y;return i=Object(n.default)(c-this.long0),t=Math.sin(f),r=Math.cos(f),a=Math.cos(i),1,((s=this.sin_p14*t+this.cos_p14*r*a)>0||Math.abs(s)<=o.EPSLN)&&(u=1*this.a*r*Math.sin(i),l=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*a)),e.x=u,e.y=l,e}function u(e){var t,r,a,s,u,l,c;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),r=Object(i.default)(t/this.a),a=Math.sin(r),s=Math.cos(r),l=this.long0,Math.abs(t)<=o.EPSLN?(c=this.lat0,e.x=l,e.y=c,e):(c=Object(i.default)(s*this.sin_p14+e.y*a*this.cos_p14/t),u=Math.abs(this.lat0)-o.HALF_PI,Math.abs(u)<=o.EPSLN?(l=this.lat0>=0?Object(n.default)(this.long0+Math.atan2(e.x,-e.y)):Object(n.default)(this.long0-Math.atan2(-e.x,e.y)),e.x=l,e.y=c,e):(l=Object(n.default)(this.long0+Math.atan2(e.x*a,t*this.cos_p14*s-e.y*this.sin_p14*a)),e.x=l,e.y=c,e))}var l=["ortho"];t.default={init:a,forward:s,inverse:u,names:l}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return a}),r.d(t,"forward",function(){return s}),r.d(t,"inverse",function(){return u}),r.d(t,"names",function(){return f});var n=r(4),i={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},o={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function a(){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>=n.HALF_PI-n.FORTPI/2?this.face=i.TOP:this.lat0<=-(n.HALF_PI-n.FORTPI/2)?this.face=i.BOTTOM:Math.abs(this.long0)<=n.FORTPI?this.face=i.FRONT:Math.abs(this.long0)<=n.HALF_PI+n.FORTPI?this.face=this.long0>0?i.RIGHT:i.LEFT:this.face=i.BACK,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)}function s(e){var t,r,a,s,u,f,h={x:0,y:0},p={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===i.TOP)s=n.HALF_PI-t,r>=n.FORTPI&&r<=n.HALF_PI+n.FORTPI?(p.value=o.AREA_0,a=r-n.HALF_PI):r>n.HALF_PI+n.FORTPI||r<=-(n.HALF_PI+n.FORTPI)?(p.value=o.AREA_1,a=r>0?r-n.SPI:r+n.SPI):r>-(n.HALF_PI+n.FORTPI)&&r<=-n.FORTPI?(p.value=o.AREA_2,a=r+n.HALF_PI):(p.value=o.AREA_3,a=r);else if(this.face===i.BOTTOM)s=n.HALF_PI+t,r>=n.FORTPI&&r<=n.HALF_PI+n.FORTPI?(p.value=o.AREA_0,a=-r+n.HALF_PI):r<n.FORTPI&&r>=-n.FORTPI?(p.value=o.AREA_1,a=-r):r<-n.FORTPI&&r>=-(n.HALF_PI+n.FORTPI)?(p.value=o.AREA_2,a=-r-n.HALF_PI):(p.value=o.AREA_3,a=r>0?-r+n.SPI:-r-n.SPI);else{var d,y,g,v,m,_;this.face===i.RIGHT?r=c(r,+n.HALF_PI):this.face===i.BACK?r=c(r,+n.SPI):this.face===i.LEFT&&(r=c(r,-n.HALF_PI)),v=Math.sin(t),m=Math.cos(t),_=Math.sin(r),d=m*Math.cos(r),y=m*_,g=v,this.face===i.FRONT?a=l(s=Math.acos(d),g,y,p):this.face===i.RIGHT?a=l(s=Math.acos(y),g,-d,p):this.face===i.BACK?a=l(s=Math.acos(-d),g,-y,p):this.face===i.LEFT?a=l(s=Math.acos(-y),g,d,p):(s=a=0,p.value=o.AREA_0)}return f=Math.atan(12/n.SPI*(a+Math.acos(Math.sin(a)*Math.cos(n.FORTPI))-n.HALF_PI)),u=Math.sqrt((1-Math.cos(s))/(Math.cos(f)*Math.cos(f))/(1-Math.cos(Math.atan(1/Math.cos(a))))),p.value===o.AREA_1?f+=n.HALF_PI:p.value===o.AREA_2?f+=n.SPI:p.value===o.AREA_3&&(f+=1.5*n.SPI),h.x=u*Math.cos(f),h.y=u*Math.sin(f),h.x=h.x*this.a+this.x0,h.y=h.y*this.a+this.y0,e.x=h.x,e.y=h.y,e}function u(e){var t,r,a,s,u,l,f,h,p,d,y,g,v={lam:0,phi:0},m={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)?m.value=o.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(m.value=o.AREA_1,t-=n.HALF_PI):e.x<0&&-e.x>=Math.abs(e.y)?(m.value=o.AREA_2,t=t<0?t+n.SPI:t-n.SPI):(m.value=o.AREA_3,t+=n.HALF_PI),p=n.SPI/12*Math.tan(t),u=Math.sin(p)/(Math.cos(p)-1/Math.sqrt(2)),l=Math.atan(u),(f=1-(a=Math.cos(t))*a*(s=Math.tan(r))*s*(1-Math.cos(Math.atan(1/Math.cos(l)))))<-1?f=-1:f>1&&(f=1),this.face===i.TOP)h=Math.acos(f),v.phi=n.HALF_PI-h,m.value===o.AREA_0?v.lam=l+n.HALF_PI:m.value===o.AREA_1?v.lam=l<0?l+n.SPI:l-n.SPI:m.value===o.AREA_2?v.lam=l-n.HALF_PI:v.lam=l;else if(this.face===i.BOTTOM)h=Math.acos(f),v.phi=h-n.HALF_PI,m.value===o.AREA_0?v.lam=-l+n.HALF_PI:m.value===o.AREA_1?v.lam=-l:m.value===o.AREA_2?v.lam=-l-n.HALF_PI:v.lam=l<0?-l-n.SPI:-l+n.SPI;else{var _,b,S;p=(_=f)*_,b=(p+=(S=p>=1?0:Math.sqrt(1-p)*Math.sin(l))*S)>=1?0:Math.sqrt(1-p),m.value===o.AREA_1?(p=b,b=-S,S=p):m.value===o.AREA_2?(b=-b,S=-S):m.value===o.AREA_3&&(p=b,b=S,S=-p),this.face===i.RIGHT?(p=_,_=-b,b=p):this.face===i.BACK?(_=-_,b=-b):this.face===i.LEFT&&(p=_,_=b,b=-p),v.phi=Math.acos(-S)-n.HALF_PI,v.lam=Math.atan2(b,_),this.face===i.RIGHT?v.lam=c(v.lam,-n.HALF_PI):this.face===i.BACK?v.lam=c(v.lam,-n.SPI):this.face===i.LEFT&&(v.lam=c(v.lam,+n.HALF_PI))}0!==this.es&&(d=v.phi<0?1:0,y=Math.tan(v.phi),g=this.b/Math.sqrt(y*y+this.one_minus_f_squared),v.phi=Math.atan(Math.sqrt(this.a*this.a-g*g)/(this.one_minus_f*g)),d&&(v.phi=-v.phi));return v.lam+=this.long0,e.x=v.lam,e.y=v.phi,e}function l(e,t,r,i){var a;return e<n.EPSLN?(i.value=o.AREA_0,a=0):(a=Math.atan2(t,r),Math.abs(a)<=n.FORTPI?i.value=o.AREA_0:a>n.FORTPI&&a<=n.HALF_PI+n.FORTPI?(i.value=o.AREA_1,a-=n.HALF_PI):a>n.HALF_PI+n.FORTPI||a<=-(n.HALF_PI+n.FORTPI)?(i.value=o.AREA_2,a=a>=0?a-n.SPI:a+n.SPI):(i.value=o.AREA_3,a+=n.HALF_PI)),a}function c(e,t){var r=e+t;return r<-n.SPI?r+=n.TWO_PI:r>+n.SPI&&(r-=n.TWO_PI),r}var f=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];t.default={init:a,forward:s,inverse:u,names:f}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return d}),r.d(t,"forward",function(){return y}),r.d(t,"inverse",function(){return g}),r.d(t,"names",function(){return v});var n=r(4),i=r(6),o=[[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]],a=[[-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]],s=.8487,u=1.3523,l=n.R2D/5,c=1/l,f=18,h=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},p=function(e,t){return e[1]+t*(2*e[2]+3*t*e[3])};function d(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function y(e){var t=Object(i.default)(e.x-this.long0),r=Math.abs(e.y),p=Math.floor(r*l);p<0?p=0:p>=f&&(p=f-1),r=n.R2D*(r-c*p);var d={x:h(o[p],r)*t,y:h(a[p],r)};return e.y<0&&(d.y=-d.y),d.x=d.x*this.a*s+this.x0,d.y=d.y*this.a*u+this.y0,d}function g(e){var t={x:(e.x-this.x0)/(this.a*s),y:Math.abs(e.y-this.y0)/(this.a*u)};if(t.y>=1)t.x/=o[f][0],t.y=e.y<0?-n.HALF_PI:n.HALF_PI;else{var r=Math.floor(t.y*f);for(r<0?r=0:r>=f&&(r=f-1);;)if(a[r][0]>t.y)--r;else{if(!(a[r+1][0]<=t.y))break;++r}var l=a[r],c=5*(t.y-l[0])/(a[r+1][0]-l[0]);c=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(h(l,e)-t.y)/p(l,e)},c,n.EPSLN,100),t.x/=h(o[r],c),t.y=(5*r+c)*n.D2R,e.y<0&&(t.y=-t.y)}return t.x=Object(i.default)(t.x+this.long0),t}var v=["Robinson","robin"];t.default={init:d,forward:y,inverse:g,names:v}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return i}),r.d(t,"forward",function(){return o}),r.d(t,"inverse",function(){return a}),r.d(t,"names",function(){return s});var n=r(105);function i(){this.name="geocent"}function o(e){return Object(n.geodeticToGeocentric)(e,this.es,this.a)}function a(e){return Object(n.geocentricToGeodetic)(e,this.es,this.a,this.b)}var s=["Geocentric","geocentric","geocent","Geocent"];t.default={init:i,forward:o,inverse:a,names:s}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return s}),r.d(t,"forward",function(){return u}),r.d(t,"inverse",function(){return l}),r.d(t,"names",function(){return c});var n=r(4),i=r(56),o={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},a={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}};function s(){if(Object.keys(a).forEach(function(e){if(void 0===this[e])this[e]=a[e].def;else{if(a[e].num&&isNaN(this[e]))throw new Error("Invalid parameter value, must be numeric "+e+" = "+this[e]);a[e].num&&(this[e]=parseFloat(this[e]))}a[e].degrees&&(this[e]=this[e]*n.D2R)}.bind(this)),Math.abs(Math.abs(this.lat0)-n.HALF_PI)<n.EPSLN?this.mode=this.lat0<0?o.S_POLE:o.N_POLE:Math.abs(this.lat0)<n.EPSLN?this.mode=o.EQUIT:(this.mode=o.OBLIQ,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)}function u(e){e.x-=this.long0;var t,r,n,i,a=Math.sin(e.y),s=Math.cos(e.y),u=Math.cos(e.x);switch(this.mode){case o.OBLIQ:r=this.sinph0*a+this.cosph0*s*u;break;case o.EQUIT:r=s*u;break;case o.S_POLE:r=-a;break;case o.N_POLE:r=a}switch(t=(r=this.pn1/(this.p-r))*s*Math.sin(e.x),this.mode){case o.OBLIQ:r*=this.cosph0*a-this.sinph0*s*u;break;case o.EQUIT:r*=a;break;case o.N_POLE:r*=-s*u;break;case o.S_POLE:r*=s*u}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}function l(e){e.x/=this.a,e.y/=this.a;var t,r,a,s={x:e.x,y:e.y};a=1/(this.pn1-e.y*this.sw),t=this.pn1*e.x*a,r=this.pn1*e.y*this.cw*a,e.x=t*this.cg+r*this.sg,e.y=r*this.cg-t*this.sg;var u=Object(i.default)(e.x,e.y);if(Math.abs(u)<n.EPSLN)s.x=0,s.y=e.y;else{var l,c;switch(c=1-u*u*this.pfact,c=(this.p-Math.sqrt(c))/(this.pn1/u+u/this.pn1),l=Math.sqrt(1-c*c),this.mode){case o.OBLIQ:s.y=Math.asin(l*this.sinph0+e.y*c*this.cosph0/u),e.y=(l-this.sinph0*Math.sin(s.y))*u,e.x*=c*this.cosph0;break;case o.EQUIT:s.y=Math.asin(e.y*c/u),e.y=l*u,e.x*=c;break;case o.N_POLE:s.y=Math.asin(l),e.y=-e.y;break;case o.S_POLE:s.y=-Math.asin(l)}s.x=Math.atan2(e.x,e.y)}return e.x=s.x+this.long0,e.y=s.y,e}var c=["Tilted_Perspective","tpers"];t.default={init:s,forward:u,inverse:l,names:c}},function(e,t,r){"use strict";r.r(t),r.d(t,"init",function(){return i}),r.d(t,"names",function(){return o});var n=r(56);function i(){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")}var o=["Geostationary Satellite View","Geostationary_Satellite","geos"];t.default={init:i,forward:function(e){var t,r,i,o,a=e.x,s=e.y;if(a-=this.long0,"ellipse"===this.shape){s=Math.atan(this.radius_p2*Math.tan(s));var u=this.radius_p/Object(n.default)(this.radius_p*Math.cos(s),Math.sin(s));if(r=u*Math.cos(a)*Math.cos(s),i=u*Math.sin(a)*Math.cos(s),o=u*Math.sin(s),(this.radius_g-r)*r-i*i-o*o*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(i/Object(n.default)(o,t)),e.y=this.radius_g_1*Math.atan(o/t)):(e.x=this.radius_g_1*Math.atan(i/t),e.y=this.radius_g_1*Math.atan(o/Object(n.default)(i,t)))}else"sphere"===this.shape&&(t=Math.cos(s),r=Math.cos(a)*t,i=Math.sin(a)*t,o=Math.sin(s),t=this.radius_g-r,this.flip_axis?(e.x=this.radius_g_1*Math.atan(i/Object(n.default)(o,t)),e.y=this.radius_g_1*Math.atan(o/t)):(e.x=this.radius_g_1*Math.atan(i/t),e.y=this.radius_g_1*Math.atan(o/Object(n.default)(i,t))));return e.x=e.x*this.a,e.y=e.y*this.a,e},inverse:function(e){var t,r,i,o,a=-1,s=0,u=0;if(e.x=e.x/this.a,e.y=e.y/this.a,"ellipse"===this.shape){this.flip_axis?(u=Math.tan(e.y/this.radius_g_1),s=Math.tan(e.x/this.radius_g_1)*Object(n.default)(1,u)):(s=Math.tan(e.x/this.radius_g_1),u=Math.tan(e.y/this.radius_g_1)*Object(n.default)(1,s));var l=u/this.radius_p;if(t=s*s+l*l+a*a,(i=(r=2*this.radius_g*a)*r-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;o=(-r-Math.sqrt(i))/(2*t),a=this.radius_g+o*a,s*=o,u*=o,e.x=Math.atan2(s,a),e.y=Math.atan(u*Math.cos(e.x)/a),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if("sphere"===this.shape){if(this.flip_axis?(u=Math.tan(e.y/this.radius_g_1),s=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+u*u)):(s=Math.tan(e.x/this.radius_g_1),u=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+s*s)),t=s*s+u*u+a*a,(i=(r=2*this.radius_g*a)*r-4*t*this.C)<0)return e.x=Number.NaN,e.y=Number.NaN,e;o=(-r-Math.sqrt(i))/(2*t),a=this.radius_g+o*a,s*=o,u*=o,e.x=Math.atan2(s,a),e.y=Math.atan(u*Math.cos(e.x)/a)}return e.x=e.x+this.long0,e},names:o}},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,f=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&p())}function p(){if(!c){var e=s(h);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-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 d(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 d(e,t)),1!==l.length||c||s(p)},d.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){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(22));var o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"initPropertys",value:function(e){var r=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"initPropertys",this).call(this,e);this.message=r.message}}]),t}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(22));var o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(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}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(22));var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"initPropertys",value:function(e){var t=(0,i.defaultValue)(e,{});return this.added=(0,i.defaultValue)(t.added,[]),this.removed=(0,i.defaultValue)(t.removed,[]),this.moved=(0,i.defaultValue)(t.moved,[]),this.sourceTarget=t.sourceTarget,this.target=t.target,t}}]),t}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(22));var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"initPropertys",value:function(e){var t=(0,i.defaultValue)(e,{});return this.added=(0,i.defaultValue)(t.added,[]),this.removed=(0,i.defaultValue)(t.removed,[]),this.moved=(0,i.defaultValue)(t.moved,[]),this.path=(0,i.defaultValue)(t.path,[]),this.sourceTarget=t.sourceTarget,this.target=t.target,t}}]),t}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(22));var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"initPropertys",value:function(e){var t=(0,i.defaultValue)(e,{});return this.addDetail=(0,i.defaultValue)(t.addDetail,[]),t}}]),t}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(22));var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"initPropertys",value:function(e){var t=(0,i.defaultValue)(e,{});return this.basemap=(0,i.defaultValue)(t.basemap,null),this.detail=(0,i.defaultValue)(t.detail,[]),t}}]),t}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extend=function(e){var t=void 0,r=void 0,n=void 0,i=void 0;for(r=1,n=arguments.length;r<n;r++)for(t in i=arguments[r])e[t]=i[t];return e},t.bind=i,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=o,t.splitWords=function(e){return o(e).split(/\s+/)},t.setOptions=function(e,t){Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?n(e.options):{});for(var r in 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(a,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||c!==l)return c.call(window,i(e,t));e.call(t)},t.cancelAnimFrame=function(e){e&&f.call(window,e)};var n=t.create=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function i(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)}}t.lastId=0;function o(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}var a=/\{ *([\w_-]+) *\}/g;t.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};t.emptyImageUrl="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function s(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var u=0;function l(e){var t=+new Date,r=Math.max(0,16-(t-u));return u=t+r,window.setTimeout(e,r)}var c=t.requestFn=window.requestAnimationFrame||s("RequestAnimationFrame")||l,f=t.cancelFn=window.cancelAnimationFrame||s("CancelAnimationFrame")||s("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(77));var a=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="collection-flat",e=(0,i.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 function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(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 a=r.getChildrenFunction(n);a&&(Array.isArray(a)?a.forEach(function(n){n instanceof o.default&&(e=r._processCollection(e,n),n._addParentCollection(t))}):a instanceof o.default&&(e=r._processCollection(e,a),a._addParentCollection(t)))}}}),e):e}},{key:"_addCollection",value:function(e,t){var r=(0,i.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}();Object.defineProperties(a.prototype,{items:{get:function(){return this._items},set:function(e){}}}),t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.statisticType=(0,i.defaultValue)(t.statisticType,void 0),this.onStatisticField=(0,i.defaultValue)(t.onStatisticField,void 0),this.outStatisticFieldName=(0,i.defaultValue)(t.outStatisticFieldName,void 0),(0,i.isNull)(this.statisticType)&&console.warn("statisticType不能为空!"),(0,i.isNull)(this.onStatisticField)&&console.warn("onStatisticField不能为空!")}return n(e,[{key:"toString",value:function(){var e="";return(0,i.isNull)(this.statisticType)||(0,i.isNull)(this.onStatisticField)||((0,i.isNull)(this.outStatisticFieldName)?e+='{"statisticType":"'+this.statisticType+'","onStatisticField":"'+this.onStatisticField+'"}':e+='{"statisticType":"'+this.statisticType+'","onStatisticField":"'+this.onStatisticField+'","outStatisticFieldName":"'+this.outStatisticFieldName+'"}'),e}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.default=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ProjAngleUnit=(0,n.defaultValue)(4,t.ProjAngleUnit),this.ProjLat=(0,n.defaultValue)(0,t.ProjLat),this.ProjLat1=(0,n.defaultValue)(25e4,t.ProjLat1),this.ProjLat2=(0,n.defaultValue)(47e4,t.ProjLat2),this.ProjLon=(0,n.defaultValue)(105e4,t.ProjLon),this.ProjRate=(0,n.defaultValue)(14e6,t.ProjRate),this.ProjType=(0,n.defaultValue)(3,t.ProjType),this.ProjTypeID=(0,n.defaultValue)(2,t.ProjTypeID),this.ProjUnit=(0,n.defaultValue)(1,t.ProjUnit),this.ProjZoneNO=(0,n.defaultValue)(18,t.ProjZoneNO),this.ProjZoneType=(0,n.defaultValue)(0,t.ProjZoneType),this.SphereID=(0,n.defaultValue)(2,t.SphereID)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.default=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.DesSrsID=(0,n.defaultValue)(610,t.DesSrsID),this.GdbInfo=(0,n.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=Object.freeze({rtmp:"rtmp",mp4:"mp4",hls:"m3u8",videoPlayer:"videoPlayer",videoHTML:"videoHTML"});t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.freeze({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=Object.freeze({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=Object.freeze({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=Object.freeze({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=Object.freeze({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=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.description=(0,i.defaultValue)(t.description,void 0),this.id=(0,i.defaultValue)(t.id,(0,i.getGUID)()),this.isDefault=(0,i.defaultValue)(t.isDefault,!1),this.title=(0,i.defaultValue)(t.title,void 0)}return n(e,[{key:"fromJSON",value:function(e){e=(0,i.defaultValue)(e,{}),this.description=(0,i.defaultValue)(e.description,void 0),this.id=(0,i.defaultValue)(e.id,(0,i.getGUID)()),this.isDefault=(0,i.defaultValue)(e.isDefault,!1),this.title=(0,i.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=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(120)),a=r(1);var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.mode=(0,i.defaultValue)(t.mode,a.ElevationMode.AbsoluteHeight),this.offset=(0,i.defaultValue)(t.offset,0),this.featureExpressionInfo=new o.default(t.featureExpressionInfo),this.unit=(0,i.defaultValue)(t.unit,a.LengthUnit.meter)}return n(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=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=c(r(83)),s=c(r(84)),u=c(r(24)),l=r(13);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.Symbol3DLayerType.path,r.anchor=(0,i.defaultValue)(e.anchor,o.AnchorType.center),r.cap=(0,i.defaultValue)(e.cap,a.default.butt),r.castShadows=(0,i.defaultValue)(e.castShadows,!0),r.height=(0,i.defaultValue)(e.height,void 0),r.width=(0,i.defaultValue)(e.width,void 0),r.join=(0,i.defaultValue)(e.join,s.default.miter),r.material=e.material?l.ColorMaterial.fromJSON(e.material):new l.ColorMaterial,r.profile=(0,i.defaultValue)(e.profile,o.ProfileType.circle),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.default),n(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}();t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(2),a=function(e){return e&&e.__esModule?e:{default:e}}(r(123));var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e=(0,i.defaultValue)(e,{}),r.type="line",r.border=(0,i.defaultValue)(e.border,void 0),r.border&&r.border.hasOwnProperty("color")&&(r.border.color=new o.Color(r.border.color)),r.color=(0,i.defaultValue)(e.color,new o.Color),r.size=(0,i.defaultValue)(e.size,1),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"toJSON",value:function(){return{type:this.type,border:this.border?{color:this.border.color.toJSON()}:void 0,color:(0,i.toJSON)(this.color,o.Color),size:this.size}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.maxWorldLength=(0,i.defaultValue)(t.maxWorldLength,void 0),this.minWorldLength=(0,i.defaultValue)(t.minWorldLength,0),this.screenLength=(0,i.defaultValue)(t.screenLength,0)}return n(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=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1);var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.color=(0,i.defaultValue)(t.color,void 0),this.placement=(0,i.defaultValue)(t.placement,o.LineMarkerPlacement.beginAndEnd),this.style=(0,i.defaultValue)(t.style,o.LineMarkerStyle.arrow),this.type="style"}return n(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=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1);var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.style=(0,i.defaultValue)(t.style,o.LinePatternStyle.solid),this.type="style"}return n(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=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(2),a=function(e){return e&&e.__esModule?e:{default:e}}(r(116));var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.color=(0,i.defaultValue)(t.color,new o.Color),this.size=(0,i.defaultValue)(t.size,1),this.pattern=(0,i.defaultValue)(t.pattern,a.default.solid)}return n(e,[{key:"toJSON",value:function(){return{color:(0,i.toJSON)(this.color,o.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=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(2);var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.color=(0,i.defaultValue)(t.color,new o.Color),this.size=(0,i.defaultValue)(t.size,1)}return n(e,[{key:"toJSON",value:function(){return{color:(0,i.toJSON)(this.color,o.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=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.primitive=(0,i.defaultValue)(t.primitive,"circle"),this.href=(0,i.defaultValue)(t.href,void 0)}return n(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=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(2);var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.color=(0,i.defaultValue)(t.color,new o.Color),this.size=(0,i.defaultValue)(t.size,1),this.extensionLength=(0,i.defaultValue)(t.extensionLength,0)}return n(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=a},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(308));t.ColorMaterial=n.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(2),a=r(1);var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.type=a.MaterialType.color,this.color=(0,i.defaultValue)(t.color,new o.Color)}return n(e,[{key:"toJSON",value:function(){return{color:(0,i.toJSON)(this.color,o.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=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=c(r(24)),o=r(1),a=r(0),s=c(r(83)),u=c(r(84)),l=r(13);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,a.defaultValue)(e,{}),r.type=o.Symbol3DLayerType.line,r.cap=(0,a.defaultValue)(e.cap,s.default.butt),r.join=(0,a.defaultValue)(e.join,u.default.miter),r.marker=(0,a.defaultValue)(e.marker,void 0),r.material=e.material?l.ColorMaterial.fromJSON(e.material):new l.ColorMaterial,r.pattern=e.pattern?l.LineStylePattern3D.fromJSON(e.pattern):new l.LineStylePattern3D,r.size=(0,a.defaultValue)(e.size,1),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"toJSON",value:function(){return{type:this.type,cap:this.cap,join:this.join,marker:(0,a.toJSON)(this.marker,l.LineStyleMarker3D),material:(0,a.toJSON)(this.material,l.ColorMaterial),pattern:(0,a.toJSON)(this.pattern,l.LineStylePattern3D),size:this.size}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=l(r(125)),s=l(r(24)),u=r(13);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.Symbol3DLayerType.fill,r.material=e.material?u.ColorMaterial.fromJSON(e.material):new u.ColorMaterial,r.castShadows=(0,i.defaultValue)(e.castShadows,!0),r.outline=e.outline?u.FillSymbol3DOutline.fromJSON(e.outline):new u.FillSymbol3DOutline,r.pattern=e.pattern?a.default.fromJSON(e.pattern):new a.default,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),n(t,[{key:"toJSON",value:function(){return{type:this.type,material:(0,i.toJSON)(this.material,u.ColorMaterial),outline:(0,i.toJSON)(this.outline,u.FillSymbol3DOutline),pattern:(0,i.toJSON)(this.pattern,a.default)}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=r(13),s=r(2),u=r(3);var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.type=o.Symbol3DLayerType.icon,this.anchor=(0,i.defaultValue)(t.anchor,o.AnchorType.center),this.anchorPosition=t.anchorPosition?u.Point.fromJSON(t.anchorPosition):new u.Point({coordinates:[0,0]}),this.material=t.material?a.ColorMaterial.fromJSON(t.material):new a.ColorMaterial({color:new s.Color(255,255,255,1)}),this.outline=t.outline?a.PointSymbol3DOutline.fromJSON(t.outline):new a.PointSymbol3DOutline,this.resource=t.resource?a.IconResource.fromJSON(t.resource):new a.IconResource,this.size=(0,i.defaultValue)(t.size,12)}return n(e,[{key:"toJSON",value:function(){return{type:this.type,anchor:this.anchor,anchorPosition:JSON.parse(JSON.stringify(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=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=r(13),s=function(e){return e&&e.__esModule?e:{default:e}}(r(24)),u=r(3),l=r(2);var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.Symbol3DLayerType.object,r.anchor=(0,i.defaultValue)(e.anchor,o.AnchorType.center),r.anchorPosition=e.anchorPosition?u.Point.fromJSON(e.anchorPosition):new u.Point({coordinates:[0,0]}),r.castShadows=(0,i.defaultValue)(e.castShadows,!0),r.depth=(0,i.defaultValue)(e.depth,10),r.heading=(0,i.defaultValue)(e.heading,0),r.height=(0,i.defaultValue)(e.height,10),r.material=e.material?a.ColorMaterial.fromJSON(e.material):new a.ColorMaterial({color:new l.Color(255,255,255,1)}),r.resource=e.resource?a.IconResource.fromJSON(e.resource):new a.IconResource,r.roll=(0,i.defaultValue)(e.roll,0),r.tilt=(0,i.defaultValue)(e.tilt,0),r.width=(0,i.defaultValue)(e.width,10),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),n(t,[{key:"toJSON",value:function(){return{type:this.type,anchor:this.anchor,anchorPosition:(0,i.toJSON)(this.anchorPosition,u.Point),castShadows:this.castShadows,depth:this.depth,heading:this.heading,height:this.height,material:(0,i.toJSON)(this.material,a.ColorMaterial),resource:(0,i.toJSON)(this.resource,a.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}();t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=r(13),s=function(e){return e&&e.__esModule?e:{default:e}}(r(24));var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.Symbol3DLayerType.extrude,r.castShadows=(0,i.defaultValue)(e.castShadows,!0),r.material=e.material?a.ColorMaterial.fromJSON(e.material):new a.ColorMaterial,r.size=(0,i.defaultValue)(e.size,1),r.edges=e.edges?a.Edges3D.fromJSON(e.edges):new a.Edges3D,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),n(t,[{key:"toJSON",value:function(){return{type:this.type,castShadows:this.castShadows,material:(0,i.toJSON)(this.material,a.ColorMaterial),size:this.size,pattern:(0,i.toJSON)(this.edges,a.Edges3D)}}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=r(2),s=p(r(78)),u=p(r(81)),l=p(r(82)),c=p(r(124)),f=p(r(24)),h=r(13);function p(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.Symbol3DLayerType.text,r.background=e.background?a.Color.fromJSON(e.background):new a.Color,r.font=e.font?s.default.fromJSON(e.font):new s.default,r.halo=e.halo?c.default.fromJSON(e.halo):new c.default,r.horizontalAlignment=(0,i.defaultValue)(e.horizontalAlignment,u.default.center),r.verticalAlignment=(0,i.defaultValue)(e.verticalAlignment,l.default.baseline),r.lineHeight=(0,i.defaultValue)(e.lineHeight,1),r.material=e.material?h.ColorMaterial.fromJSON(e.material):new h.ColorMaterial,r.size=(0,i.defaultValue)(e.size,9),r.text=(0,i.defaultValue)(e.text,void 0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,f.default),n(t,[{key:"toJSON",value:function(){return{type:this.type,background:(0,i.toJSON)(this.background,a.Color),font:(0,i.toJSON)(this.font,s.default),halo:(0,i.toJSON)(this.halo,c.default),horizontalAlignment:this.horizontalAlignment,verticalAlignment:this.verticalAlignment,lineHeight:this.lineHeight,material:(0,i.toJSON)(this.material,h.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}();t.default=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=r(2),s=c(r(117)),u=c(r(118)),l=c(r(24));function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.Symbol3DLayerType.water,r.color=(0,i.defaultValue)(e.color,new a.Color),r.waterbodySize=(0,i.defaultValue)(e.waterbodySize,s.default.medium),r.waveDirection=(0,i.defaultValue)(e.waveDirection,void 0),r.waveStrength=(0,i.defaultValue)(e.waveStrength,u.default.moderate),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default),n(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}();t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=u(r(87)),s=u(r(127));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.SymbolType.simpleMarker,r.size=(0,i.defaultValue)(e.size,20),r.outline=r._decorate("outline",e.outline,a.default,a.default.fromJSON),r.style=(0,i.defaultValue)(e.style,"circle"),r.path=(0,i.defaultValue)(e.path,""),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,i.defaultValue)(e,{}))}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=u(r(31)),o=r(0),a=r(1),s=u(r(29));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,o.defaultValue)(e,{}),r.color=s.default.fromColor((0,o.defaultValue)(e.color,new s.default(0,0,0,1))),r.type=a.SymbolType.simpleLine,r.width=(0,o.defaultValue)(e.width,1),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.type=this.type,e.width=this.width,e}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r(29));var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.type="line-marker",this.color=o.default.fromColor((0,i.defaultValue)(t.color,{})),this.placement=(0,i.defaultValue)(t.placement,"begin-end"),this.style=(0,i.defaultValue)(t.style,"arrow")}return n(e,[{key:"toJSON",value:function(){return{type:this.type,color:o.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,i.defaultValue)(t,{}))}}]),e}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=function(e){return e&&e.__esModule?e:{default:e}}(r(128));var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.SymbolType.simpleFill,r.style=(0,i.defaultValue)(e.style,"solid"),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.style=this.style,e}}],[{key:"fromJSON",value:function(e){return new t(e=(0,i.defaultValue)(e,{}))}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=function(e){return e&&e.__esModule?e:{default:e}}(r(127));var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.SymbolType.pictureMarker,r.width=(0,i.defaultValue)(e.width,20),r.height=(0,i.defaultValue)(e.height,20),r.url=r._decorate("url",(0,i.defaultValue)(e.url,""),null,i.convertImageSourceToBase64),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,i.defaultValue)(e,{}))}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=u(r(128)),o=r(1),a=r(0),s=u(r(29));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,a.defaultValue)(e,{}),r.type=o.SymbolType.pictureFill,r.height=(0,a.defaultValue)(e.height,12),r.url=r._decorate("url",(0,a.defaultValue)(e.url,""),null,a.convertImageSourceToBase64),r.width=(0,a.defaultValue)(e.width,12),r.xoffset=(0,a.defaultValue)(e.xoffset,0),r.xscale=(0,a.defaultValue)(e.xscale,1),r.yoffset=(0,a.defaultValue)(e.yoffset,0),r.yscale=(0,a.defaultValue)(e.yscale,1),r.color=s.default.fromColor((0,a.defaultValue)(e.color,new s.default(255,255,255,1))),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(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,a.defaultValue)(e,{}))}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=u(r(29)),s=u(r(126));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.SymbolType.mapgisText,r.backgroundPadding=(0,i.defaultValue)(e.backgroundPadding,[5,5]),r.backgroundImage=e.backgroundImage,r.textDecorationUnderlineColor=(0,i.defaultValue)(a.default.fromColor(e.textDecorationUnderlineColor),void 0),r.textDecorationUnderlineWidth=(0,i.defaultValue)(e.textDecorationUnderlineWidth,0),r.textDecorationThroughlineColor=(0,i.defaultValue)(a.default.fromColor(e.textDecorationThroughlineColor),void 0),r.textDecorationThroughlineWidth=(0,i.defaultValue)(e.textDecorationThroughlineWidth,0),r.textShadowOffsetX=(0,i.defaultValue)(e.textShadowOffsetX,0),r.textShadowOffsetY=(0,i.defaultValue)(e.textShadowOffsetY,0),r.textShadowBlur=(0,i.defaultValue)(e.textShadowBlur,1),r.textShadowColor=(0,i.defaultValue)(a.default.fromColor(e.textShadowColor),void 0),r.letterSpacing=(0,i.defaultValue)(e.letterSpacing,0),r.lineMaxNum=(0,i.defaultValue)(e.lineMaxNum,3),r.textWraps=(0,i.defaultValue)(e.textWraps,!1),r.textExtraIcon=e.textExtraIcon,r.textExtraIconAnchor=(0,i.defaultValue)(e.textExtraIconAnchor,"top"),r.textExtraIconSize=(0,i.defaultValue)(e.textExtraIconSize,14),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.backgroundPadding=this.backgroundPadding,e.textDecorationUnderlineColor=a.default.fromColor(this.textDecorationUnderlineColor).toJSON(),e.textDecorationUnderlineWidth=this.textDecorationUnderlineWidth,e.textDecorationThroughlineColor=a.default.fromColor(this.textDecorationThroughlineColor).toJSON(),e.textDecorationThroughlineWidth=this.textDecorationThroughlineWidth,e.textShadowOffsetX=this.textShadowOffsetX,e.textShadowOffsetY=this.textShadowOffsetY,e.textShadowBlur=this.textShadowBlur,e.textShadowColor=a.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,i.defaultValue)(e,{}))}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=u(r(46)),o=r(0),a=u(r(80)),s=r(13);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,o.defaultValue)(e,{}),r.type=a.default.label3D,r.callout=e.callout?s.LineCallout3D.fromJSON(e.callout):new s.LineCallout3D,r.verticalOffset=e.verticalOffset?s.Symbol3DVerticalOffset.fromJSON(e.verticalOffset):new s.Symbol3DVerticalOffset,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.callout=(0,o.toJSON)(this.callout,s.LineCallout3D),e.verticalOffset=(0,o.toJSON)(this.verticalOffset,s.Symbol3DVerticalOffset),e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(1),o=function(e){return e&&e.__esModule?e:{default:e}}(r(46));var a=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type=i.SymbolType.line3D,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),n(t,[{key:"toJSON",value:function(){return function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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}();t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=u(r(80)),a=u(r(46)),s=r(13);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=(0,i.defaultValue)(e,{}),r.type=o.default.point3D,r.callout=(0,i.defaultValue)(e.callout,void 0),r.verticalOffset=(0,i.defaultValue)(e.verticalOffset,void 0),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"toJSON",value:function(){var e=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.callout=(0,i.toJSON)(this.callout,s.LineCallout3D),e.verticalOffset=(0,i.toJSON)(this.verticalOffset,s.Symbol3DVerticalOffset),e}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=r(1),a=function(e){return e&&e.__esModule?e:{default:e}}(r(46));var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type=o.SymbolType.polygon3D,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),n(t,[{key:"toJSON",value:function(){return function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(n):void 0}(t.prototype.__proto__||Object.getPrototypeOf(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,i.defaultValue)(e,{}))}}]),t}();t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0),o=l(r(121)),a=r(3),s=r(1),u=l(r(45));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return t&&e&&"4326"!==e.wkid?(t.spatialReference=e,u.default.project(t,new a.SpatialReference("EPSG:4326"))):t}function f(e){return e.length>2?[e[1],e[0],e[2]]:[e[1],e[0]]}function h(e,t,r){for(var n,i=[],o=0,a=e.length;o<a;o++)n=t?h(e[o],t-1,r):(r||f)(e[o]),i.push(n);return i}var p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=(0,i.defaultValue)(t,{}),this.id=(0,i.defaultValue)(t.id,(0,i.getGUID)()),this.features=(0,i.defaultValue)(t.features,[]),this.spatialReference=(0,i.defaultValue)(t.spatialReference,new a.SpatialReference("EPSG:4326")),this.type="FeatureCollection"}return n(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=c(r.geometry.spatialReference,r.geometry);r.geometry=a.Geometry.fromGeoJSON(n)}e.features.push(r.toGeoJSON())}return e}}],[{key:"fromJSON",value:function(t){return new e(t=(0,i.defaultValue)(t,{}))}},{key:"fromGeoJSON",value:function(t){var r=(t=(0,i.defaultValue)(t,{})).type,n=[],s=new a.SpatialReference("EPSG:4326");if(t.crs&&t.crs.properties&&t.crs.properties.name&&(s=new a.SpatialReference({wkt:t.crs.properties.name})),"FeatureCollection"===r)for(var u=(0,i.defaultValue)(t.features,[]),l=0;l<u.length;l++){u[l].properties=(0,i.defaultValue)(u[l].properties,{});var c=u[l].id||u[l].properties.id,f=new o.default({id:c,attributes:JSON.parse(JSON.stringify(u[l].properties)),geometry:a.Geometry.fromGeoJSON(u[l].geometry)});f.geometry.spatialReference=s.clone(),n.push(f)}return new e({spatialReference:s,features:n})}},{key:"fromArray",value:function(t,r,n){var u=(n=(0,i.defaultValue)(n,{})).reverse,l=(0,i.defaultValue)(t,[]);t instanceof e&&(l=(0,i.defaultValue)(t.features,[])),r=(0,i.defaultValue)(r,new e);for(var c=0;c<l.length;c++)if(l[c]&&l[c].geometry&&l[c].geometry.type&&l[c].geometry.coordinates){var p=void 0;switch(l[c].geometry.type){case s.GeometryType.point:var d=l[c].geometry.coordinates;u&&(d=f(d)),p=new a.Point({coordinates:d});break;case s.GeometryType.multiPoint:var y=l[c].geometry.coordinates;u&&(y=h(y,0,f)),p=new a.MultiPoint({coordinates:y});break;case s.GeometryType.lineString:var g=l[c].geometry.coordinates;u&&(g=h(g,0,f)),p=new a.LineString({coordinates:g});break;case s.GeometryType.multiLineString:var v=l[c].geometry.coordinates;u&&(v=h(v,1,f)),p=new a.MultiLineString({coordinates:v});break;case s.GeometryType.polygon:var m=l[c].geometry.coordinates;u&&(m=h(m,1,f)),p=new a.Polygon({coordinates:m});break;case s.GeometryType.multiPolygon:var _=l[c].geometry.coordinates;u&&(_=h(_,2,f)),p=new a.MultiPolygon({coordinates:_})}if(p){var b=a.SpatialReference.fromJSON(l[c].geometry.spatialReference||r.spatialReference),S=new o.default({attributes:t[c].attributes,geometry:p,symbol:t[c].symbol,additional:t[c].additional,styleInfo:t[c].styleInfo});S.geometry.spatialReference=b,r.features.push(S)}}return r}}]),e}();t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeaturesFromFeatureSet=void 0;var n=r(329);t.getFeaturesFromFeatureSet=n.getFeaturesFromFeatureSet},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeaturesFromFeatureSet=void 0;var n=r(86),i=r(0);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){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjUnitWkidMap=t.getProjUnitByWkid=t.RadiusUnitToMeter=void 0;var n=r(129);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(9),i=function(e){return e&&e.__esModule?e:{default:e}}(r(62)),o=r(71);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=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=r(334),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(335));i.Parser.createValueExpressionParser=function(){var e=new i.Parser;return Object.entries(o).forEach(function(t){var r=n(t,2),i=r[0],o=r[1];e.functions[i]=o}),e.binaryOps["+"]=function(e,t){return e+t},e},t.ExpressionParser=i.Parser},function(e,t,r){"use strict";r.r(t),r.d(t,"Expression",function(){return T}),r.d(t,"Parser",function(){return Ne});var n="INUMBER",i="IOP1",o="IOP2",a="IOP3",s="IVAR",u="IVARNAME",l="IFUNCALL",c="IFUNDEF",f="IEXPR",h="IEXPREVAL",p="IMEMBER",d="IENDSTATEMENT",y="IARRAY";function g(e,t){this.type=e,this.value=void 0!==t&&null!==t?t:0}function v(e){return new g(i,e)}function m(e){return new g(o,e)}function _(e){return new g(a,e)}function b(e,t,r){var g,v,m,_,O,E,P=[];if(x(e))return w(e,r);for(var k=e.length,T=0;T<k;T++){var I=e[T],M=I.type;if(M===n||M===u)P.push(I.value);else if(M===o)v=P.pop(),g=P.pop(),"and"===I.value?P.push(!!g&&!!b(v,t,r)):"or"===I.value?P.push(!!g||!!b(v,t,r)):"="===I.value?(_=t.binaryOps[I.value],P.push(_(g,b(v,t,r),r))):(_=t.binaryOps[I.value],P.push(_(w(g,r),w(v,r))));else if(M===a)m=P.pop(),v=P.pop(),g=P.pop(),"?"===I.value?P.push(b(g?v:m,t,r)):(_=t.ternaryOps[I.value],P.push(_(w(g,r),w(v,r),w(m,r))));else if(M===s)if(I.value in t.functions)P.push(t.functions[I.value]);else if(I.value in t.unaryOps&&t.parser.isOperatorEnabled(I.value))P.push(t.unaryOps[I.value]);else{var L=r[I.value];if(void 0===L)throw new Error("undefined variable: "+I.value);P.push(L)}else if(M===i)g=P.pop(),_=t.unaryOps[I.value],P.push(_(w(g,r)));else if(M===l){for(E=I.value,O=[];E-- >0;)O.unshift(w(P.pop(),r));if(!(_=P.pop()).apply||!_.call)throw new Error(_+" is not a function");P.push(_.apply(void 0,O))}else if(M===c)P.push(function(){for(var e=P.pop(),n=[],i=I.value;i-- >0;)n.unshift(P.pop());var o=P.pop(),a=function(){for(var i=Object.assign({},r),o=0,a=n.length;o<a;o++)i[n[o]]=arguments[o];return b(e,t,i)};return Object.defineProperty(a,"name",{value:o,writable:!1}),r[o]=a,a}());else if(M===f)P.push(S(I,t));else if(M===h)P.push(I);else if(M===p)g=P.pop(),P.push(g[I.value]);else if(M===d)P.pop();else{if(M!==y)throw new Error("invalid Expression");for(E=I.value,O=[];E-- >0;)O.unshift(P.pop());P.push(O)}}if(P.length>1)throw new Error("invalid Expression (parity)");return 0===P[0]?0:w(P[0],r)}function S(e,t,r){return x(e)?e:{type:h,value:function(r){return b(e.value,t,r)}}}function x(e){return e&&e.type===h}function w(e,t){return x(e)?e.value(t):e}function O(e,t){for(var r,h,g,v,m,_,b=[],S=0;S<e.length;S++){var x=e[S],w=x.type;if(w===n)"number"==typeof x.value&&x.value<0?b.push("("+x.value+")"):Array.isArray(x.value)?b.push("["+x.value.map(E).join(", ")+"]"):b.push(E(x.value));else if(w===o)h=b.pop(),r=b.pop(),v=x.value,t?"^"===v?b.push("Math.pow("+r+", "+h+")"):"and"===v?b.push("(!!"+r+" && !!"+h+")"):"or"===v?b.push("(!!"+r+" || !!"+h+")"):"||"===v?b.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }(("+r+"),("+h+")))"):"=="===v?b.push("("+r+" === "+h+")"):"!="===v?b.push("("+r+" !== "+h+")"):"["===v?b.push(r+"[("+h+") | 0]"):b.push("("+r+" "+v+" "+h+")"):"["===v?b.push(r+"["+h+"]"):b.push("("+r+" "+v+" "+h+")");else if(w===a){if(g=b.pop(),h=b.pop(),r=b.pop(),"?"!==(v=x.value))throw new Error("invalid Expression");b.push("("+r+" ? "+h+" : "+g+")")}else if(w===s||w===u)b.push(x.value);else if(w===i)r=b.pop(),"-"===(v=x.value)||"+"===v?b.push("("+v+r+")"):t?"not"===v?b.push("(!"+r+")"):"!"===v?b.push("fac("+r+")"):b.push(v+"("+r+")"):"!"===v?b.push("("+r+"!)"):b.push("("+v+" "+r+")");else if(w===l){for(_=x.value,m=[];_-- >0;)m.unshift(b.pop());v=b.pop(),b.push(v+"("+m.join(", ")+")")}else if(w===c){for(h=b.pop(),_=x.value,m=[];_-- >0;)m.unshift(b.pop());r=b.pop(),t?b.push("("+r+" = function("+m.join(", ")+") { return "+h+" })"):b.push("("+r+"("+m.join(", ")+") = "+h+")")}else if(w===p)r=b.pop(),b.push(r+"."+x.value);else if(w===y){for(_=x.value,m=[];_-- >0;)m.unshift(b.pop());b.push("["+m.join(", ")+"]")}else if(w===f)b.push("("+O(x.value,t)+")");else if(w!==d)throw new Error("invalid Expression")}return b.length>1&&(b=t?[b.join(",")]:[b.join(";")]),String(b[0])}function E(e){return"string"==typeof e?JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):e}function P(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return!0;return!1}function k(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||P(t,a.value)?null!==i?(P(t,i)||t.push(i),i=a.value):i=a.value:t.push(a.value):a.type===p&&n&&null!==i?i+="."+a.value:a.type===f?k(a.value,t,r):null!==i&&(P(t,i)||t.push(i),i=null)}null===i||P(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 d:return this.value;case l:return"CALL "+this.value;case c:return"DEF "+this.value;case y:return"ARRAY "+this.value;case p:return"."+this.value;default:return"Invalid Instruction"}},T.prototype.simplify=function(e){return e=e||{},new T(function e(t,r,l,c,h){for(var d,v,m,_,b=[],S=[],x=0;x<t.length;x++){var w=t[x],O=w.type;if(O===n||O===u)Array.isArray(w.value)?b.push.apply(b,e(w.value.map(function(e){return new g(n,e)}).concat(new g(y,w.value.length)),r,l,c,h)):b.push(w);else if(O===s&&h.hasOwnProperty(w.value))w=new g(n,h[w.value]),b.push(w);else if(O===o&&b.length>1)v=b.pop(),d=b.pop(),_=l[w.value],w=new g(n,_(d.value,v.value)),b.push(w);else if(O===a&&b.length>2)m=b.pop(),v=b.pop(),d=b.pop(),"?"===w.value?b.push(d.value?v.value:m.value):(_=c[w.value],w=new g(n,_(d.value,v.value,m.value)),b.push(w));else if(O===i&&b.length>0)d=b.pop(),_=r[w.value],w=new g(n,_(d.value)),b.push(w);else if(O===f){for(;b.length>0;)S.push(b.shift());S.push(new g(f,e(w.value,r,l,c,h)))}else if(O===p&&b.length>0)d=b.pop(),b.push(new g(n,d.value[w.value]));else{for(;b.length>0;)S.push(b.shift());S.push(w)}}for(;b.length>0;)S.push(b.shift());return S}(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],h=c.type;if(h===s&&c.value===r)for(var p=0;p<n.tokens.length;p++){var d,y=n.tokens[p];d=y.type===i?v(y.value):y.type===o?m(y.value):y.type===a?_(y.value):new g(y.type,y.value),u.push(d)}else h===f?u.push(new g(f,e(c.value,r,n))):u.push(c)}return u}(this.tokens,e,t),this.parser)},T.prototype.evaluate=function(e){return e=e||{},b(this.tokens,this,e)},T.prototype.toString=function(){return O(this.tokens,!1)},T.prototype.symbols=function(e){e=e||{};var t=[];return k(this.tokens,t,e),t},T.prototype.variables=function(e){e=e||{};var t=[];k(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 "+O(this.simplify(t).tokens,!0)+"; }");return function(){return n.apply(r,arguments)}};var I="TOP",M="TPAREN";function L(e,t,r){this.type=e,this.value=t,this.index=r}function C(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}L.prototype.toString=function(){return this.type+": "+this.value},C.prototype.newToken=function(e,t,r){return new L(e,t,null!=r?r:this.pos)},C.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current},C.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent},C.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)+'"')},C.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},C.prototype.isParen=function(){var e=this.expression.charAt(this.pos);return("("===e||")"===e)&&(this.current=this.newToken(M,e),this.pos++,!0)},C.prototype.isBracket=function(){var e=this.expression.charAt(this.pos);return!("["!==e&&"]"!==e||!this.isOperatorEnabled("["))&&(this.current=this.newToken("TBRACKET",e),this.pos++,!0)},C.prototype.isComma=function(){return","===this.expression.charAt(this.pos)&&(this.current=this.newToken("TCOMMA",","),this.pos++,!0)},C.prototype.isSemicolon=function(){return";"===this.expression.charAt(this.pos)&&(this.current=this.newToken("TSEMICOLON",";"),this.pos++,!0)},C.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},C.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(I,n),this.pos+=n.length,!0}return!1},C.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},C.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 N=/^[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}C.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);N.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},C.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)},C.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},C.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},C.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(I,t);else if("∙"===t||"•"===t)this.current=this.newToken(I,"*");else if(">"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(I,">="),this.pos++):this.current=this.newToken(I,">");else if("<"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(I,"<="),this.pos++):this.current=this.newToken(I,"<");else if("|"===t){if("|"!==this.expression.charAt(this.pos+1))return!1;this.current=this.newToken(I,"||"),this.pos++}else if("="===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(I,"=="),this.pos++):this.current=this.newToken(I,t);else{if("!"!==t)return!1;"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(I,"!="),this.pos++):this.current=this.newToken(I,t)}return this.pos++,!!this.isOperatorEnabled(this.current.value)||(this.pos=e,!1)},C.prototype.isOperatorEnabled=function(e){return this.parser.isOperatorEnabled(e)},C.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}},C.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)?P(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(I,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(M,"("))this.parseExpression(e),this.expect(M,")");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===M&&")"===this.nextToken.value||t.push(new g(d)),"TEOF"!==this.nextToken.type&&this.parseExpression(t),e.push(new g(f,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(I,"=");){var t=e.pop(),r=[],n=e.length-1;if(t.type!==l){if(t.type!==s&&t.type!==p)throw new Error("expected variable for assignment");this.parseVariableAssignmentExpression(r),e.push(new g(u,t.value)),e.push(new g(f,r)),e.push(m("="))}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(f,r)),e.push(new g(c,t.value))}}},R.prototype.parseConditionalExpression=function(e){for(this.parseOrExpression(e);this.accept(I,"?");){var t=[],r=[];this.parseConditionalExpression(t),this.expect(I,":"),this.parseConditionalExpression(r),e.push(new g(f,t)),e.push(new g(f,r)),e.push(_("?"))}},R.prototype.parseOrExpression=function(e){for(this.parseAndExpression(e);this.accept(I,"or");){var t=[];this.parseAndExpression(t),e.push(new g(f,t)),e.push(m("or"))}},R.prototype.parseAndExpression=function(e){for(this.parseComparison(e);this.accept(I,"and");){var t=[];this.parseComparison(t),e.push(new g(f,t)),e.push(m("and"))}};var j=["==","!=","<","<=",">=",">","in"];R.prototype.parseComparison=function(e){for(this.parseAddSub(e);this.accept(I,j);){var t=this.current;this.parseAddSub(e),e.push(m(t.value))}};var G=["+","-","||"];R.prototype.parseAddSub=function(e){for(this.parseTerm(e);this.accept(I,G);){var t=this.current;this.parseTerm(e),e.push(m(t.value))}};var V=["*","/","%"];function A(e,t){return Number(e)+Number(t)}function D(e,t){return e-t}function F(e,t){return e*t}function B(e,t){return e/t}function q(e,t){return e%t}function J(e,t){return Array.isArray(e)&&Array.isArray(t)?e.concat(t):""+e+t}function U(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 P(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 pe(e+1)}R.prototype.parseTerm=function(e){for(this.parseFactor(e);this.accept(I,V);){var t=this.current;this.parseFactor(e),e.push(m(t.value))}},R.prototype.parseFactor=function(e){var t=this.tokens.unaryOps;if(this.save(),this.accept(I,function(e){return e.value in t})){if("-"!==this.current.value&&"+"!==this.current.value){if(this.nextToken.type===M&&"("===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===M&&")"===this.nextToken.value)return this.restore(),void this.parseAtom(e)}var r=this.current;this.parseFactor(e),e.push(v(r.value))}else this.parseExponential(e)},R.prototype.parseExponential=function(e){for(this.parsePostfixExpression(e);this.accept(I,"^");)this.parseFactor(e),e.push(m("^"))},R.prototype.parsePostfixExpression=function(e){for(this.parseFunctionCall(e);this.accept(I,"!");)e.push(v("!"))},R.prototype.parseFunctionCall=function(e){var t=this.tokens.unaryOps;if(this.accept(I,function(e){return e.value in t})){var r=this.current;this.parseAtom(e),e.push(v(r.value))}else for(this.parseMemberExpression(e);this.accept(M,"(");)if(this.accept(M,")"))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(M,")");)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(I,".")||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(p,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(m("["))}}};var fe=4.7421875,he=[.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 pe(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)*pe(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=he[0];for(var l=1;l<he.length;++l)r+=he[l]/(e+l);return t=e+fe+.5,Math.sqrt(2*Math.PI)*Math.pow(t,e+.5)*Math.exp(-t)*r}function de(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 ve(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 me(e,t,r){return r&&(r[e]=t),t}function _e(e,t){return e[0|t]}function be(e){return 1===arguments.length&&Array.isArray(e)?Math.max.apply(Math,e):Math.max.apply(Math,arguments)}function Se(e){return 1===arguments.length&&Array.isArray(e)?Math.min.apply(Math,e):Math.min.apply(Math,arguments)}function xe(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 Oe(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 Ee(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 Pe(e,t){if(!Array.isArray(t))throw new Error("Second argument to join is not an array");return t.join(e)}function ke(e){return(e>0)-(e<0)||+e}var Te=1/3;function Ie(e){return e<0?-Math.pow(-e,Te):Math.pow(e,Te)}function Me(e){return Math.exp(e)-1}function Le(e){return Math.log(1+e)}function Ce(e){return Math.log(e)/Math.LN2}function Ne(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||Ie,log:Math.log,log2:Math.log2||Ce,ln:Math.log,lg:Math.log10||oe,log10:Math.log10||oe,expm1:Math.expm1||Me,log1p:Math.log1p||Le,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||ue,"-":ae,"+":Number,exp:Math.exp,not:se,length:de,"!":ce,sign:Math.sign||ke},this.binaryOps={"+":A,"-":D,"*":F,"/":B,"%":q,"^":Math.pow,"||":J,"==":U,"!=":z,">":W,"<":H,">=":X,"<=":Y,and:Z,or:K,in:Q,"=":me,"[":_e},this.ternaryOps={"?":ge},this.functions={random:le,fac:ce,min:Se,max:be,hypot:Math.hypot||ye,pyt:Math.hypot||ye,pow:Math.pow,atan2:Math.atan2,if:ge,gamma:pe,roundTo:ve,map:xe,fold:we,filter:Oe,indexOf:Ee,join:Pe},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}Ne.prototype.parse=function(e){var t=[],r=new R(this,new C(this,e),{allowMemberAccess:this.options.allowMemberAccess});return r.parseExpression(t),r.expect("TEOF","EOF"),new T(t,this)},Ne.prototype.evaluate=function(e,t){return this.parse(e).evaluate(t)};var Re=new Ne;Ne.parse=function(e){return Re.parse(e)},Ne.evaluate=function(e,t){return Re.parse(e).evaluate(t)};var je={"+":"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"};Ne.prototype.isOperatorEnabled=function(e){var t=function(e){return je.hasOwnProperty(e)?je[e]:e}(e),r=this.options.operators||{};return!(t in r&&!r[t])};
91
91
  /*!
92
92
  Based on ndef.parser, by Raphael Graf(r@undefined.ch)
93
93
  http://www.undefined.ch/mparser/index.html