@mapgis/webclient-common 17.6.20 → 17.6.21

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=Io(To(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=Z(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]&&!k(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(!k(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(!k(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(!k(t=t||{}))throw new Error("options is invalid");var r=t.zProperty||"elevation",n=t.flip,i=t.flags;ne(e,"Point","input must contain Points");for(var o=function(e,t){var r={};return A(e,function(e){var t=$(e)[1];r[t]||(r[t]=[]),r[t].push(e)}),Object.keys(r).map(function(e){return r[e].sort(function(e,t){return $(e)[0]-$(t)[0]})}).sort(function(e,r){return t?$(e[0])[1]-$(r[0])[1]:$(r[0])[1]-$(e[0])[1]})}(e,n),a=[],s=0;s<o.length;s++){for(var u=o[s],l=[],c=0;c<u.length;c++){var 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=Z(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=w,t.lengthToRadians=S,t.lineArc=ti,t.lineChunk=function(e,t,r){if(!k(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 U(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(Tn(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(!k(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 U(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=Vr,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=Tn,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=Rn(t,{precision:7});switch(n){case"Point":return Qn(e,i);case"MultiPoint":return Zn(e,i);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return Zn(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=K,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=[];A(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=Dr,t.nearestPoint=Dr,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 A(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=jn,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=Z(t),c=0,f=null;switch(a[0]>l[0]&&a[0]<l[2]&&a[1]>l[1]&&a[1]<l[3]&&(c=(f=Dr(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=wi(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=wi(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=Uo.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=R,t.propReduce=G,t.propertiesContainsFilter=Rs,t.radians2degrees=O,t.radiansToDegrees=O,t.radiansToDistance=b,t.radiansToLength=b,t.random=ks,t.randomLineString=Ps,t.randomPoint=Os,t.randomPolygon=Es,t.randomPosition=xs,t.rewind=function(e,t){if(!k(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=wt(e));var i=[];switch(e.type){case"GeometryCollection":return F(e,function(e){Pi(e,r)}),e;case"FeatureCollection":return A(e,function(e){A(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(!k(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=J,t.segmentReduce=z,t.shortestPath=function(e,t,r){if(!k(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&&!I(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=Z(Co(nr(Z(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,w=Math.floor(b/m),x=Math.floor(S/_),O=(b-w*m)/2,E=[],P=[],T=[],M=[],L=1/0,C=1/0,N=v-(S-x*_)/2,j=0;N>=y;){for(var R=[],G=[],A=p+O,D=0;A<=g;){var V=u([A,N]),F=Oa(V,o);R.push(F?0:1),G.push(A+"|"+N);var B=vt(V,e);!F&&B<L&&(L=B,T={x:D,y:j});var U=vt(V,t);!F&&U<C&&(C=U,M={x:D,y:j}),A+=m,D++}P.push(R),E.push(G),N-=_,j++}var q=new Sa(P,{diagonal:!0}),J=q.grid[T.y][T.x],z=q.grid[M.y][M.x],W=ba.search(q,J,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(!k(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=wt(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(!k(t=t||{}))throw new Error("options is invalid");var r=t.steps||64,n=t.weight,i=t.properties||{};if(!I(r))throw new Error("steps must be a number");if(!k(i))throw new Error("properties must be a number");var o=V(e).length,a=ls(e,{weight:n}),s=0,u=0,l=0;A(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;A(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}),w=gt(e,d([S])),x={meanCenterCoordinates:$(a),semiMajorAxis:_,semiMinorAxis:b,numberOfFeatures:o,angle:y,percentageWithinEllipse:100*V(w).length/o};return S.properties.standardDeviationalEllipse=x,S},t.tag=function(e,t,r,n){return e=wt(e),t=wt(t),A(e,function(e){e.properties||(e.properties={}),A(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=Ar(e.geometry.coordinates):e.geometry.coordinates.forEach(function(e){t.features=t.features.concat(Ar(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(!k(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=wt(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=wy,t.truncate=Rn,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 U(e,function(e){"Polygon"===e.geometry.type&&A(Dn(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(!k(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=Ta,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(141))},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(19)),o=f(r(58)),a=r(0),s=r(1),u=r(26),l=f(r(42)),c=r(3);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,a.defaultValue)(e,{}),r.spatialReference=(0,a.defaultValue)(l.default.fromJSON(e.spatialReference),new l.default("EPSG:4326")),r.hasZ=!1,r.type=s.GeometryType.geometry,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,o.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){return{spatialReference:this.spatialReference instanceof l.default?this.spatialReference.toJSON():this.spatialReference,hasZ:this.hasZ,type:this.type,extensionOptions:(0,a.cloneObject)(this.extensionOptions)}}},{key:"toGeoJSON",value:function(){return{type:this.type,coordinates:this.coordinates}}},{key:"fromGeoJSON",value:function(e){(e||e.type!==this.type)&&new Error("GeoJSON类型和几何类型不一致"),(0,a.defined)(this.coordinates)&&(this.coordinates=e.coordinates)}},{key:"toXML",value:function(){return""}},{key:"getType",value:function(){return this.type}},{key:"getIGSType",value:function(){return s.IGSGeometryType.geometry}},{key:"getGeometryType",value:function(){return this.type}},{key:"toString",value:function(){return""}}],[{key:"fromGeoJSON",value:function(e){return(0,u.createGeometryByGeoJSON)(e,new l.default("EPSG:4326"))}},{key:"fromJSON",value:function(e){return e=(0,a.defaultValue)(e,{}),(0,u.createGeometry)(e)}},{key:"isClockwise",value:function(e){e=(0,a.defaultValue)(e,void 0),(0,a.isNull)(e)&&a.Log.error("geometry1不能为空!"),e instanceof Array||a.Log.error("输入参数类型错误,需要输入点数组!");for(var t=0;t<e.length;t++)if(e[t]instanceof Array)for(var r=0;r<e[t].length;r++)e[t][r]instanceof Array&&a.Log.error("输入参数类型错误,需要输入二维数组!");else a.Log.error("输入参数类型错误,需要输入二维数组!");if(e[0].length===e[e.length-1].length&&JSON.stringify(e[0])===JSON.stringify(e[e.length-1])||a.Log.error("输入的点数组必须首尾闭合!"),!(0,a.isNull)(e)){var n=i.lineString(e);return i.booleanClockwise(n)}}},{key:"fromRings",value:function(e,t){e=(0,a.defaultValue)(e,void 0);var r=(0,a.defaultValue)(l.default.fromJSON(t),new l.default("EPSG:4326"));(0,a.isNull)(e)&&a.Log.error("geometry1不能为空!"),e instanceof Array||a.Log.error("输入参数类型错误,需要输入点数组!"),3!==this._multiarr(e)&&a.Log.error("输入参数错误,需要输入三维数组!");var n=void 0;if(1===e.length){var i=e[0];return i[0].length===i[i.length-1].length&&JSON.stringify(i[0])===JSON.stringify(i[i.length-1])||i.push(i[0]),n=new c.Polygon({coordinates:[i],spatialReference:r})}for(var o=[],s=0;s<e.length;s++){var u={geometry:void 0,area:null,inner:[]};JSON.stringify(e[s][0])!==JSON.stringify(e[s][e[s].length-1])&&e[s].push(e[s][0]);var f=new c.Polygon({coordinates:[e[s]],spatialReference:r});u.geometry=f,u.area=c.GeometryEngine.planarArea(f),o.push(u)}for(var h=this._processArr([],o),p=[],d=function(e){var t=[h[e].geometry.coordinates[0]];h[e].inner.length>=1&&h[e].inner.forEach(function(e){t.push(e.geometry.coordinates[0])}),p.push(t)},y=0;y<h.length;y++)d(y);for(var g=[],v=0;v<h.length;v++)n=new c.Polygon({coordinates:p[v],spatialReference:r}),g.push(n);return g}},{key:"_processArr",value:function(e,t){t.sort(function(e,t){return t.area-e.area});for(var r=t[0],n=[],i=1;i<t.length;i++)c.GeometryEngine.disjoint(r.geometry,t[i].geometry)?n.push(t[i]):c.GeometryEngine.contains(r.geometry,t[i].geometry)?r.inner.push(t[i]):n.push(t[i]);if(r.inner.length>1)for(var o=0;o<r.inner.length;o++)for(var s=r.inner[o],u=o+1;u<r.inner.length;u++)c.GeometryEngine.intersects(s.geometry,r.inner[u].geometry)&&(c.GeometryEngine.contains(s.geometry,r.inner[u].geometry)?(n.push(r.inner[u]),r.inner.splice(u,1),u--):a.Log.error("输入的几何存在拓扑错误,请检查"));return e.push(r),n.length>1?this._processArr(e,n):1===n.length&&e.push(n[0]),e}},{key:"_multiarr",value:function(e){for(var t=[],r=1,n=0;n<e.length;n++)if(e[n]instanceof Array)for(var i=0;i<e[n].length;i++)t.push(e[n][i]);return t.length&&(r=1,r+=this._multiarr(t)),r}},{key:"_parseString",value:function(e){for(var t=[],r=e.split("*"),n=0;n<r.length;n++){for(var i=r[n].split(" "),o=[],a=0;a<i.length;a++)if(o.push(i[a].split(",")),i[a].indexOf("#")>-1){i[a]=i[a].replace("#",""),o.splice(a-1,2);var s=[i[a-1].split(","),i[a].split(","),i[a+1].split(",")];o.push(s),a++}for(var u=[],l=0;l<o.length;l++){var c=void 0;if(o[l][0]instanceof Array){for(var f=[],h=0;h<o[l].length;h++)c=o[l][h].map(function(e){return Number(e)}),f.push(c);u.push(f)}else c=o[l].map(function(e){return Number(e)}),u.push(c)}t.push(u)}return t}},{key:"reduceDimension",value:function(e){if(e){var r=t.fromJSON(e).toJSON();switch(e.type){case s.GeometryType.point:r.coordinates=n(r.coordinates);break;case s.GeometryType.multiPoint:case s.GeometryType.lineString:r.coordinates=i(r.coordinates,0);break;case s.GeometryType.multiLineString:case s.GeometryType.polygon:r.coordinates=i(r.coordinates,1);break;case s.GeometryType.multiPolygon:r.coordinates=i(r.coordinates,2);break;case s.GeometryType.extent:delete r.zmin,delete r.zmax;break;case s.GeometryType.circle:r.center=[r.center[0],r.center[1]]}return t.fromJSON(r)}function n(e){return[e[0],e[1]]}function i(e,t){for(var r=[],o=e.length,a=0;a<o;a++){var s=t?i(e[a],t-1):n(e[a]);r.push(s)}return r}}}]),t}();Object.defineProperties(h.prototype,{extent:{configurable:!1,get:function(){}}}),t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasemapChangeEvent=t.LayerLoadedEvent=t.LayerChangeEvent=t.CollectionChangeEvent=t.ProxyEvent=t.LayerViewScaleVisibleEvent=t.LayerViewUpdateEvent=t.LayerEvent=t.ErrorEvent=t.Event=void 0;var n=p(r(31)),i=p(r(320)),o=p(r(98)),a=r(80),s=p(r(321)),u=p(r(322)),l=p(r(323)),c=p(r(324)),f=p(r(325)),h=p(r(326));function p(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.LayerViewScaleVisibleEvent=h.default,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}),t.ColorMaterial=t.TextHalo=t.Edges3D=t.IconResource=t.PointSymbol3DOutline=t.FillSymbol3DOutline=t.LineStylePattern3D=t.LineStyleMarker3D=t.Symbol3DVerticalOffset=t.Callout3D=t.LineCallout3D=void 0;var n=d(r(385)),i=d(r(154)),o=d(r(386)),a=d(r(387)),s=d(r(388)),u=d(r(389)),l=d(r(390)),c=d(r(391)),f=d(r(392)),h=d(r(155)),p=r(393);function d(e){return e&&e.__esModule?e:{default:e}}t.LineCallout3D=n.default,t.Callout3D=i.default,t.Symbol3DVerticalOffset=o.default,t.LineStyleMarker3D=a.default,t.LineStylePattern3D=s.default,t.FillSymbol3DOutline=u.default,t.PointSymbol3DOutline=l.default,t.IconResource=c.default,t.Edges3D=f.default,t.TextHalo=h.default,t.ColorMaterial=p.ColorMaterial},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(37)),i=g(r(439)),o=g(r(446)),a=g(r(447)),s=g(r(448)),u=g(r(451)),l=g(r(452)),c=g(r(453)),f=r(1),h=r(0),p=r(454),d=g(r(180)),y=r(62);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=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.Name=t&&t.Name?t.Name:null,this.IsBaseTheme=!t||!t.IsBaseTheme||t.IsBaseTheme,this.Visible=!t||!t.Visible||t.Visible}},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(14),a=r(0);function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=function(){function e(t){var r;!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._selectBoxScaleStyle=(0,a.defaultValue)(t.selectBoxScaleStyle,new o.SimpleFillSymbol({color:new i.Color(241,188,0,.05),outline:new o.SimpleLineSymbol({color:new i.Color(241,188,0,.8),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),this._tipTextStyle=(0,a.defaultValue)(t.tipTextStyle,new o.TextSymbol((s(r={color:new i.Color(256,256,256,1),text:"默认文字",backgroundColor:new i.Color(60,71,79,1),haloColor:new i.Color(60,71,79,1),haloSize:3},"backgroundColor",new i.Color(60,71,79,1)),s(r,"borderLineSize",1),s(r,"xoffset",10),s(r,"horizontalAlignment","left"),s(r,"kerning",!1),s(r,"font",{family:"微软雅黑",size:12,style:"normal",weight:"normal"}),s(r,"extensionOptions",{disableDepthTestDistance:1/0}),r)))}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.selectBoxScaleStyle=this._selectBoxScaleStyle.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.tipTextStyle=this._tipTextStyle.clone(),e}},{key:"fromJSON",value:function(){}}]),e}();Object.defineProperties(u.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}},selectBoxScaleStyle:{get:function(){return this._selectBoxScaleStyle},set:function(e){this._selectBoxScaleStyle=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}},tipTextStyle:{get:function(){return this._tipTextStyle},set:function(e){this._tipTextStyle=e}}}),t.default=u},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(19)),i=r(0),o=r(1),a=r(3),s=r(107);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,t){var r=void 0;switch((r="Feature"===e.type?e.geometry:e).type){case o.GeometryType.point:return new a.Point({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.multiPoint:case o.GeometryType.lineString:return new a.LineString({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.multiLineString:return new a.MultiLineString({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.polygon:return new a.Polygon({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.multiPolygon:return new a.MultiPolygon({coordinates:r.coordinates,spatialReference:t});default:i.Log.error("无法解析type类型为"+r.type+"的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}}(),i=r(0),o=u(r(20)),a=r(1),s=u(r(50));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});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(29)),s=c(r(25)),u=r(0),l=r(56);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="sketchPointDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),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._fireDrawVertexEvent(o),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.clone():this.sketchStyle.vertexStyle.clone()).id=(0,u.getGUID)()),new i.Feature({geometry:e,symbol:t,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e,t){this.view._mapActionControl("video-map-active",!0);this._getEditOptionMode(this._editOption);this.editOption.showSelectBox?(this._editMode=i.SketchEditMode.editGraphic,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.editGraphic?"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=void 0;this._sketchDataType===i.SketchDataType.text?(this.sketchStyle._selectTextStyle.text=this.sketchStage.entityGraphic&&this.sketchStage.entityGraphic.symbol&&this.sketchStage.entityGraphic.symbol.text?this.sketchStage.entityGraphic.symbol.text:this.sketchStyle._textStyle.text,n=this.sketchStyle._selectTextStyle):n=this.sketchStyle._selectVertexStyle;var o=new t({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new s.default({vertexStyle:n}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),a=e.geometry;if(this._drawTools.push(o),o.addFeatureByGeometry(a,null,null,this._sketchInnerLayer),this.sketchStage.selectBoxGraphics=[o.sketchStage.entityGraphic],this._otherDrawTools.push(o),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),!this._parent||this._parent&&!this._parent._mapClickEvent){var u=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._fireRemoveSelectEvent(r.sketchStage.entityGraphic),r.sketchStage.selectBoxGraphics=[],r._editMode=i.SketchEditMode.none,r._isAddTip&&r._updateTipText((0,l.getTipTextByEditOption)("draw-end",r._tipText,r._editOption),r._sketchInnerLayer),r.view._mapActionControl("video-map-active",!1))};this._mapClickEvent||(this._mapClickEvent=u,this._hitTestEventHandlers.push(this._mapClickEvent),this.view.on(i.ViewEventType.immediateClick,u)),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 instanceof o.Extent?this._parent.sketchStage.entityGraphic.geometry: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=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(2),o=r(0),a=r(3),s=p(r(566)),u=r(123),l=r(34),c=r(214),f=p(r(25)),h=r(56);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));r.type="SketchBaseDrawTool",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._isAddTip=r._sketchEditor._isAddTip,r._isShowTip=r._sketchEditor._isShowTip,r._tipTextGraphics=r._sketchEditor._tipTextGraphics),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._isAddTip&&this._updateTipText(this._tipText.drawStart,this._sketchInnerLayer),this.drawFeature()}},{key:"stop",value:function(){this._editMode===i.SketchEditMode.drawing||this._editMode===i.SketchEditMode.none?this._stopDraw():this._editMode===i.SketchEditMode.editGraphic||this._editMode===i.SketchEditMode.editVertex?this._stopHitTest():(this._stopDraw(),this._stopHitTest())}},{key:"hitTestFeature",value:function(e,t){switch(this.type){case"sketchPolygonDrawTool":case"sketchPolylineDrawTool":case"sketchFreehandPolygonDrawTool":case"sketchFreehandPolylineDrawTool":case"sketchCircleDrawTool":case"sketchExtentDrawTool":default:this._hitTestFeatureInPolygon(e,t);break;case"sketchPointDrawTool":}}},{key:"selectFeature",value:function(e){switch(this.type){case"sketchPolygonDrawTool":case"sketchPolylineDrawTool":case"sketchFreehandPolygonDrawTool":case"sketchFreehandPolylineDrawTool":default:this._selectFeatureInPolygon(e,e.geometry.extent);break;case"sketchPointDrawTool":break;case"sketchCircleDrawTool":this._selectFeatureInCircle(e,e.geometry);break;case"sketchExtentDrawTool":this._selectFeatureInPolygon(e,e.geometry)}}},{key:"_hitTestFeatureInPolygon",value:function(e,t){this.view._mapActionControl("video-map-active",!0);var r=this._getEditOptionMode(this._editOption);!r||r.editGraphic&&r.editVertex?(this._parent&&this._parent._editMode===i.SketchEditMode.editGraphic&&this.startPanGraphics(e,t,r),!this._parent&&this.editOption.showSelectBox&&(this._editMode===i.SketchEditMode.none?this._editMode=i.SketchEditMode.editGraphic:this._editMode===i.SketchEditMode.editVertex&&(this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=i.SketchEditMode.editGraphic),this.selectFeature(e))):r.editGraphic?(this.selectFeature(e),this._parent&&this._parent._editMode===i.SketchEditMode.editGraphic&&this.startPanGraphics(e,t),this._parent||(this._editMode=i.SketchEditMode.editGraphic)):r.editVertex&&(this._mapClickEvent||this._parent||this._registeMapClickEvent(),this._editMode!==i.SketchEditMode.editVertex&&this.selectFeatureVertex&&this.selectFeatureVertex(this.sketchStage.entityGraphic),this._parent||(this._editMode=i.SketchEditMode.editVertex))}},{key:"_selectFeatureInPolygon",value:function(e,t){var r=this;if(this.editOption.showSelectBox){if(this._clearEditGraphics(2),this._editOption.graphic.move||this._editOption.graphic.scale){var n=this.sketchStyle._selectBoxStyle;!this._editOption.graphic.move&&this._editOption.graphic.scale&&(n=this.sketchStyle._selectBoxScaleStyle);var i=new c.SketchPolygonDrawTool({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new f.default({fillStyle:n,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate,_parent:this});this._drawTools.push(i),i.addFeature([[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax]],void 0,void 0,this._sketchInnerLayer),this.sketchStage.selectBoxGraphics=[i.sketchStage.entityGraphic],this._otherDrawTools?this._otherDrawTools.push(i):this._otherDrawTools=[i]}if(this._editOption.graphic.scale){var o=[];if(o=[{point:new a.Point({coordinates:[t.xmax,t.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new a.Point({coordinates:[t.xmax,t.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new a.Point({coordinates:[t.xmin,t.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new a.Point({coordinates:[t.xmin,t.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var s=[{point:new a.Point({coordinates:this._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new a.Point({coordinates:this._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new a.Point({coordinates:this._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new a.Point({coordinates:this._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];o=o.concat(s)}var u=[],l=[];o.forEach(function(e){var t=new c.SketchPointDrawTool({view:r.view,layer:r._sketchInnerLayer,sketchInnerLayer:r._sketchInnerLayer,sketchStyle:new f.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),u.push(t),l.push(t.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=l,this._otherDrawTools=this._otherDrawTools.concat(u)}this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this._editMode),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||this._registeMapClickEvent()}}},{key:"_selectFeatureInCircle",value:function(e){var t=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var r=e.geometry.extent;if(this._editOption.graphic.move||this._editOption.graphic.scale){var n=this.sketchStyle._selectBoxStyle,i=1;!this._editOption.graphic.move&&this._editOption.graphic.scale&&(n=this.sketchStyle._selectBoxScaleStyle),!this._editOption.graphic.scale||this._editOption.vertex.move||this._editOption.vertex.add||(i=void 0);var o=new c.SketchPolygonDrawTool({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new f.default({fillStyle:n,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:i},elevationInfo:this.elevationInfo,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate,_parent:this});this._drawTools.push(o),o.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=[o.sketchStage.entityGraphic],this._otherDrawTools?this._otherDrawTools.push(o):this._otherDrawTools=[o]}var s=[];if(this._editOption.graphic.scale){if(this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var u=[{point:new a.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"circleVertex"}];s=s.concat(u)}var l=[],h=[];s.forEach(function(e){var r=new c.SketchPointDrawTool({view:t.view,layer:t.layer,sketchStyle:new f.default({vertexStyle:t.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_getCenterCoordinate:t._getCenterCoordinate,_parent:t});t._drawTools.push(r),r.addFeature(e.point,t.sketchStage,{direction:e.direction,type:e.type},t._sketchInnerLayer),l.push(r),h.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=h,this._otherDrawTools=this._otherDrawTools.concat(l)}this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||this._registeMapClickEvent()}}},{key:"_registeMapClickEvent",value:function(){var e=this;this._mapClickEvent=function(){e._preventFirstCall?e._preventFirstCall=void 0:(e.sketchStage.selectBoxGraphics.concat(e.sketchStage.selectBoxVertexGraphics).concat(e.sketchStage.vertexGraphics).concat(e.sketchStage.midVertexGraphics).forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.view.off(i.ViewEventType.immediateClick,e._mapClickEvent),e.view._mapActionControl("drag-pan",!0),e._mapClickEvent=null,e.fire("selected",{isSelected:!1},self),e._fireRemoveSelectEvent(e.sketchStage.entityGraphic),e.sketchStage.selectBoxGraphics=[],e.sketchStage.selectBoxVertexGraphics=[],e.sketchStage.vertexGraphics=[],e.sketchStage.midVertexGraphics=[],e._editMode=i.SketchEditMode.none,e._isAddTip&&e._updateTipText((0,h.getTipTextByEditOption)("draw-end",e._tipText,e._editOption),e._sketchInnerLayer),e.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),setTimeout(function(){e.view.on(i.ViewEventType.immediateClick,e._mapClickEvent)},0)}},{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){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.editGraphic?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.editGraphic),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:"_addFeatureToLayer",value:function(e,t){if(t instanceof l.GraphicsLayer)t.add(e);else if(t instanceof l.GroupLayer){var r=t.allLayers.find(function(e){return e instanceof l.GraphicsLayer});r&&r.add(e)}}},{key:"_removeFeatureFromLayer",value:function(e,t){if(t instanceof l.GraphicsLayer)t.remove(e);else if(t instanceof l.GroupLayer){var r=t.allLayers.find(function(e){return e instanceof l.GraphicsLayer});r&&r.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:"_clearDrawToolSketchStage",value:function(){this._removeFeatureFromLayer(this.sketchStage.entityGraphic,this.layer),this._removeEditGraphics()}},{key:"removeDrawTool",value:function(){this._stopAll(),this.sketchStage=null}},{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).concat(this.sketchStage.snapGraphics).forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),this.sketchStage.selectBoxGraphics=[],this.sketchStage.selectBoxVertexGraphics=[],this.sketchStage.vertexGraphics=[],this.sketchStage.midVertexGraphics=[],this.sketchStage.snapGraphics=[]}},{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 w=new i.Feature({geometry:l.perpendicularLine.symbolGeometry,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(w)}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)}}},{key:"_updateTipText",value:function(e,t,r){if(e&&(t=t||this._sketchInnerLayer,this.sketchStyle&&this.sketchStyle.tipTextStyle)){var n=this.sketchStyle.tipTextStyle.clone();n.id=(0,o.getGUID)(),e.text&&(n.text=e.text),e.lineWidth&&(n.lineWidth=e.lineWidth),this._tipTextGraphics&&this._tipTextGraphics.length>0&&(this._tipTextGraphics[0].symbol=n,this._tipTextGraphics[0].visible=this._isShowTip)}}},{key:"_getTipTextObject",value:function(){var e=void 0;switch(this.type){case"sketchPolygonDrawTool":case"sketchPolylineDrawTool":case"sketchFreehandPolygonDrawTool":case"sketchFreehandPolylineDrawTool":e={drawStart:{text:"左键单击增加一个顶点,双击完成绘制;",lineWidth:150},editGraphic:{text:"左键拖动外包盒,更改位置;左键拖动外包盒顶点,更改大小;左键单击外包盒,进入顶点编辑",lineWidth:200},beforeEditGraphic:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveGraphic:{text:"左键拖动外包盒,更改位置;",lineWidth:200},scaleGraphic:{text:"左键拖动外包盒顶点,更改大小;",lineWidth:200},editVertex:{text:"左键拖动外包盒顶点,更改顶点位置;左键拖动中点,增加一个顶点;",lineWidth:250},beforeEditVertex:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveVertex:{text:"左键拖动外包盒顶点,更改顶点位置;",lineWidth:120},addVertex:{text:"左键拖动中点,增加一个顶点;",lineWidth:120}};break;case"sketchCircleDrawTool":default:e={drawStart:{text:"左键按下确定圆心,拖动确定半径;",lineWidth:200},editGraphic:{text:"左键拖动外包盒,更改位置;左键拖动外包盒顶点,更改大小;",lineWidth:200},beforeEditGraphic:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveGraphic:{text:"左键拖动外包盒,更改位置;",lineWidth:200},scaleGraphic:{text:"左键拖动外包盒顶点,更改大小;",lineWidth:200}};break;case"sketchExtentDrawTool":e={drawStart:{text:"左键按下确定矩形左上角,拖动确定矩形右下角;",lineWidth:200},editGraphic:{text:"左键拖动外包盒,更改位置;左键拖动外包盒顶点,更改大小;",lineWidth:200},beforeEditGraphic:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveGraphic:{text:"左键拖动外包盒,更改位置;",lineWidth:200},scaleGraphic:{text:"左键拖动外包盒顶点,更改大小;",lineWidth:200}};break;case"sketchPointDrawTool":e={drawStart:{text:"左键单击绘制点;",lineWidth:140},editGraphic:{text:"左键按下移动选中要素;",lineWidth:140},beforeEditGraphic:{text:"左键按下移动选中要素;",lineWidth:140},moveGraphic:{text:"左键按下移动选中要素;",lineWidth:140},beforeEditVertex:{text:"左键按下移动选中要素;",lineWidth:160},editVertex:{text:"左键按下移动选中要素;",lineWidth:250},moveVertex:{text:"左键按下移动选中要素;",lineWidth:120}}}return e}},{key:"_getEditOption",value:function(){var e=void 0;switch(this._sketchEditor?e=this._sketchEditor._editOption:this._parent&&this._parent._editOption&&(e=this._parent._editOption),e=(0,o.defaultValue)(e,{graphic:{},vertex:{}}),e=(0,o.extendDeep)({graphic:{move:!0,scale:!0},vertex:{move:!0,add:!0}},e),this.type){case"sketchCircleDrawTool":case"sketchExtentDrawTool":e.vertex.move=!1,e.vertex.add=!1;break;case"sketchPointDrawTool":e.graphic.scale=!1,e.vertex.add=!1}return e}},{key:"_getEditOptionMode",value:function(e){var t={editGraphic:!0,editVertex:!0};return e&&0!==Object.keys(e).length||(this._editOption={graphic:{move:!0,scale:!0},vertex:{move:!0,add:!0}}),e.graphic.move||e.graphic.scale||(t.editGraphic=!1),e.vertex.move||e.vertex.add||(t.editVertex=!1),t}}]),t}();t.default=d},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),s=a.words,u=n.keySize,l=n.iterations;s.length<u;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var c=1;c<l;c++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*u,a}});t.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)}}(),e.EvpKDF}(r(6),r(143),r(95))},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),this.initPropertys(t),this.sourceTarget=(0,i.defaultValue)(t.sourceTarget,null),this.target=(0,i.defaultValue)(t.target,null)}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=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(145));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});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.formatWebTileUrl=t.RasterInfo=t.RasterFunction=t.IGSImageryTileLayer=t.IGSImageryLayer=t.SubLayer=t.VoxelFilter=t.FeatureFilter=t.S3MTilesCacheLayer=t.OverlayLayer=t.UnknownLayer=t.TileLayer=t.VectorTileLayer=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.ArcGISVectorTileSubLayer=t.ArcGISVectorTileLayer=t.VisualVariable=t.OpacityVariable=t.ColorVariable=t.SizeVariable=t.HeatmapColorStop=t.setElevationInfo=t.Layer=t.TileInfoUtil=t.getIGSDynamicLayer=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.ISSceneModelCacheSubLayer=t.ISSceneSubLayer=t.ISSceneLayer=t.IGSFeatureLayer=t.BaseScene=t.ISScene=t.IGSScene=t.IGSTileLayer=t.IGSSceneTerrainSubLayer=t.IGSSceneMapRefSubLayer=t.IGSSceneModelCacheSubLayer=t.IGSSceneLabelSubLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=t.WMTSSubLayer=t.WFSLayer=t.WMSSubLayer=t.WMSLayer=t.WMTSLayer=t.OGCLayer=void 0;var n=r(35),i=r(23),o=r(499),a=function(e){return e&&e.__esModule?e:{default:e}}(r(54));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.IGSSceneLabelSubLayer=n.IGSSceneLabelSubLayer,t.IGSSceneModelCacheSubLayer=n.IGSSceneModelCacheSubLayer,t.IGSSceneMapRefSubLayer=n.IGSSceneMapRefSubLayer,t.IGSSceneTerrainSubLayer=n.IGSSceneTerrainSubLayer,t.IGSTileLayer=n.IGSTileLayer,t.IGSScene=n.IGSScene,t.ISScene=n.ISScene,t.BaseScene=n.BaseScene,t.IGSFeatureLayer=n.IGSFeatureLayer,t.ISSceneLayer=n.ISSceneLayer,t.ISSceneSubLayer=n.ISSceneSubLayer,t.ISSceneModelCacheSubLayer=n.ISSceneModelCacheSubLayer,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.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.ArcGISVectorTileSubLayer=n.ArcGISVectorTileSubLayer,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,t.S3MTilesCacheLayer=n.S3MTilesCacheLayer,t.FeatureFilter=n.FeatureFilter,t.VoxelFilter=n.VoxelFilter,t.SubLayer=n.SubLayer,t.IGSImageryLayer=n.IGSImageryLayer,t.IGSImageryTileLayer=n.IGSImageryTileLayer,t.RasterFunction=n.RasterFunction,t.RasterInfo=n.RasterInfo,t.formatWebTileUrl=n.formatWebTileUrl},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatWebTileUrl=t.RasterInfo=t.RasterFunction=t.IGSImageryTileLayer=t.IGSImageryLayer=t.SubLayer=t.VoxelFilter=t.FeatureFilter=t.S3MTilesCacheLayer=t.SceneLayer=t.OverlayLayer=t.TileLayer=t.VectorTileLayer=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.setElevationInfo=t.TileInfoUtil=t.getLayerViewScaleVisible=t.isCustomSP=t.is4326=t.getUrlType=t.ArcGISVectorTileSubLayer=t.ArcGISVectorTileLayer=t.ArcGISTileLayer=t.ArcGISMapImageSubLayer=t.ArcGISMapImageLayer=t.Projection=t.M3DModelCacheLayer=t.ISSceneModelCacheSubLayer=t.ISSceneSubLayer=t.ISSceneLayer=t.IGSFeatureLayer=t.BaseScene=t.ISScene=t.IGSScene=t.IGSTileLayer=t.IGSSceneTerrainSubLayer=t.IGSSceneMapRefSubLayer=t.IGSSceneModelCacheSubLayer=t.IGSSceneLabelSubLayer=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(434),i=r(474),o=L(r(116)),a=r(7),s=r(477),u=r(4),l=r(482),c=L(r(486)),f=L(r(487)),h=r(488),p=L(r(491)),d=L(r(492)),y=L(r(493)),g=L(r(494)),v=L(r(495)),m=L(r(59)),_=r(15),b=L(r(44)),S=L(r(55)),w=L(r(85)),x=L(r(118)),O=L(r(496)),E=L(r(497)),P=L(r(498)),T=L(r(183)),I=L(r(192)),k=L(r(184)),M=L(r(64));function L(e){return e&&e.__esModule?e:{default:e}}t.Layer=a.Layer,t.OGCLayer=l.OGCLayer,t.WMTSLayer=l.WMTSLayer,t.WMSLayer=l.WMSLayer,t.WMSSubLayer=l.WMSSubLayer,t.WFSLayer=l.WFSLayer,t.WMTSSubLayer=l.WMTSSubLayer,t.FeatureLayer=a.FeatureLayer,t.Cesium3DTilesCacheLayer=c.default,t.TerrainCacheLayer=f.default,t.EchartsLayer=h.EchartsLayer,t.MapVLayer=h.MapVLayer,t.GroupLayer=p.default,t.GraphicsLayer=d.default,t.GeoJSONLayer=y.default,t.UnknownLayer=E.default,t.VideoLayer=v.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.IGSSceneLabelSubLayer=n.IGSSceneLabelSubLayer,t.IGSSceneModelCacheSubLayer=n.IGSSceneModelCacheSubLayer,t.IGSSceneMapRefSubLayer=n.IGSSceneMapRefSubLayer,t.IGSSceneTerrainSubLayer=n.IGSSceneTerrainSubLayer,t.IGSTileLayer=n.IGSTileLayer,t.IGSScene=n.IGSScene,t.ISScene=i.ISScene,t.BaseScene=o.default,t.IGSFeatureLayer=n.IGSFeatureLayer,t.ISSceneLayer=i.ISSceneLayer,t.ISSceneSubLayer=i.ISSceneSubLayer,t.ISSceneModelCacheSubLayer=i.ISSceneModelCacheSubLayer,t.M3DModelCacheLayer=g.default,t.Projection=m.default,t.ArcGISMapImageLayer=s.ArcGISMapImageLayer,t.ArcGISMapImageSubLayer=s.ArcGISMapImageSubLayer,t.ArcGISTileLayer=s.ArcGISTileLayer,t.ArcGISVectorTileLayer=s.ArcGISVectorTileLayer,t.ArcGISVectorTileSubLayer=s.ArcGISVectorTileSubLayer,t.getUrlType=_.getUrlType,t.is4326=_.is4326,t.isCustomSP=_.isCustomSP,t.getLayerViewScaleVisible=_.getLayerViewScaleVisible,t.TileInfoUtil=S.default,t.setElevationInfo=u.setElevationInfo,t.WebTileLayer=O.default,t.getZoomOffset=_.getZoomOffset,t.FeatureCollection=x.default,t.TileInfo=b.default,t.appendUrlParams=_.appendUrlParams,t.getFullBaseUrl=_.getFullBaseUrl,t.LOD=w.default,t.VectorTileLayer=a.VectorTileLayer,t.TileLayer=a.TileLayer,t.OverlayLayer=h.OverlayLayer,t.SceneLayer=a.SceneLayer,t.S3MTilesCacheLayer=P.default,t.FeatureFilter=T.default,t.VoxelFilter=I.default,t.SubLayer=a.SubLayer,t.IGSImageryLayer=n.IGSImageryLayer,t.IGSImageryTileLayer=n.IGSImageryTileLayer,t.RasterFunction=k.default,t.RasterInfo=M.default,t.formatWebTileUrl=_.formatWebTileUrl},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(42)),l=r(3),c=r(4),f=r(11);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=(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=(0,o.defaultValue)(e.loaded,!1),r.loadError=null,r.tokenKey=(0,o.defaultValue)(e.tokenKey,"token"),r.tokenValue=(0,o.defaultValue)(e.tokenValue,null),r.tokenAttachType=(0,o.defaultValue)(e.tokenAttachType,a.TokenAttachType.normal),r.title=(0,o.defaultValue)(e.title,""),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.base,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.extent=r._decorate("extent",(0,o.defaultValue)(e.extent,null),l.Extent,l.Extent.fromJSON),r.spatialReference=r._decorate("spatialReference",(0,o.defaultValue)(e.spatialReference,null),u.default,u.default.fromJSON),r.forceRefreshDebounceDelay=(0,o.defaultValue)(e.forceRefreshDebounceDelay,5);return r.capabilities=(0,c.mergeCommonClientCapbilities)(e.capabilities,{description:!0,copyright:!0,loaded:!0,tokenKey:!0,tokenValue:!0,title:!0,minScale:!0,maxScale:!0,extensionOptions:!0,type:!0,httpMethod:!0,headers:!0,extendProps:!0,visible:!0,opacity:!0,extent:!0,spatialReference:!0}),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(){var e=this;return this.loadStatus===a.LoadStatus.notLoaded?(this.loadStatus=a.LoadStatus.loading,this._loadPromise=this._load().catch(function(t){return t&&(t.layer=e),o.Log.error(e.type+"图层load失败,错误信息:",t),e.loadError=t,e.loadStatus=a.LoadStatus.failed,e.loaded=!1,e})):(this.loadStatus,a.LoadStatus.loading),this._loadPromise}},{key:"setMap",value:function(e){this._map=e}},{key:"destroy",value:function(){}},{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,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:(0,f.jsonClone)(this.extendProps),extensionOptions:(0,f.jsonClone)(this.extensionOptions),capabilities:(0,f.jsonClone)(this.capabilities),httpMethod:this.httpMethod,headers:this.headers}}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"_load",value:function(){var e=this;return new Promise(function(t){e.loadStatus=a.LoadStatus.loaded,e.loaded=!0,t(e)})}},{key:"_fireUpdateEvent",value:function(e,t){if(this._map){var r=new s.LayerViewUpdateEvent({type:a.LayerEventType.layerUpdate,target:this._map,layer:this,message:e,updateContent:t});this.fire(a.LayerEventType.layerUpdate,r),this._map.fire(a.LayerEventType.layerUpdate,r)}}},{key:"_updateDiff",value:function(e,t,r){this._fireUpdateEvent("",[{name:e,params:[t],dataChanged:!0,operationType:"property"}])}},{key:"refresh",value:function(){this._fireUpdateEvent("刷新图层",[{params:arguments,dataChanged:!0,name:"refresh",operationType:"method"}])}},{key:"getCumulative",value:function(e,t){for(var r=this[e],n=this.parent;n;)r=t(r,n[e]),n=n.parent;return r}}],[{key:"fromServerUrl",value:function(e,t){return t=t||{},new Promise(function(r){t.url=e,r((0,c.createLayer)(t))})}},{key:"fromJSON",value:function(e){return e=e||{},(0,c.createLayer)(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(23),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){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray;t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,u=n[e.charCodeAt(a)]>>>6-a%4*2,l=s|u;i[o>>>2]|=l<<24-o%4*8,o++}return r.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(r(6))},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],p=e[t+2],d=e[t+3],y=e[t+4],g=e[t+5],v=e[t+6],m=e[t+7],_=e[t+8],b=e[t+9],S=e[t+10],w=e[t+11],x=e[t+12],O=e[t+13],E=e[t+14],P=e[t+15],T=o[0],I=o[1],k=o[2],M=o[3];I=h(I=h(I=h(I=h(I=f(I=f(I=f(I=f(I=c(I=c(I=c(I=c(I=l(I=l(I=l(I=l(I,k=l(k,M=l(M,T=l(T,I,k,M,a,7,s[0]),I,k,u,12,s[1]),T,I,p,17,s[2]),M,T,d,22,s[3]),k=l(k,M=l(M,T=l(T,I,k,M,y,7,s[4]),I,k,g,12,s[5]),T,I,v,17,s[6]),M,T,m,22,s[7]),k=l(k,M=l(M,T=l(T,I,k,M,_,7,s[8]),I,k,b,12,s[9]),T,I,S,17,s[10]),M,T,w,22,s[11]),k=l(k,M=l(M,T=l(T,I,k,M,x,7,s[12]),I,k,O,12,s[13]),T,I,E,17,s[14]),M,T,P,22,s[15]),k=c(k,M=c(M,T=c(T,I,k,M,u,5,s[16]),I,k,v,9,s[17]),T,I,w,14,s[18]),M,T,a,20,s[19]),k=c(k,M=c(M,T=c(T,I,k,M,g,5,s[20]),I,k,S,9,s[21]),T,I,P,14,s[22]),M,T,y,20,s[23]),k=c(k,M=c(M,T=c(T,I,k,M,b,5,s[24]),I,k,E,9,s[25]),T,I,d,14,s[26]),M,T,_,20,s[27]),k=c(k,M=c(M,T=c(T,I,k,M,O,5,s[28]),I,k,p,9,s[29]),T,I,m,14,s[30]),M,T,x,20,s[31]),k=f(k,M=f(M,T=f(T,I,k,M,g,4,s[32]),I,k,_,11,s[33]),T,I,w,16,s[34]),M,T,E,23,s[35]),k=f(k,M=f(M,T=f(T,I,k,M,u,4,s[36]),I,k,y,11,s[37]),T,I,m,16,s[38]),M,T,S,23,s[39]),k=f(k,M=f(M,T=f(T,I,k,M,O,4,s[40]),I,k,a,11,s[41]),T,I,d,16,s[42]),M,T,v,23,s[43]),k=f(k,M=f(M,T=f(T,I,k,M,b,4,s[44]),I,k,x,11,s[45]),T,I,P,16,s[46]),M,T,p,23,s[47]),k=h(k,M=h(M,T=h(T,I,k,M,a,6,s[48]),I,k,m,10,s[49]),T,I,E,15,s[50]),M,T,g,21,s[51]),k=h(k,M=h(M,T=h(T,I,k,M,x,6,s[52]),I,k,d,10,s[53]),T,I,S,15,s[54]),M,T,u,21,s[55]),k=h(k,M=h(M,T=h(T,I,k,M,_,6,s[56]),I,k,P,10,s[57]),T,I,v,15,s[58]),M,T,O,21,s[59]),k=h(k,M=h(M,T=h(T,I,k,M,y,6,s[60]),I,k,w,10,s[61]),T,I,p,15,s[62]),M,T,b,21,s[63]),o[0]=o[0]+T|0,o[1]=o[1]+I|0,o[2]=o[2]+k|0,o[3]=o[3]+M|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,l=0;l<4;l++){var c=u[l];u[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function c(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}r.MD5=o._createHelper(u),r.HmacMD5=o._createHmacHelper(u)}(Math),e.MD5}(r(6))},function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0});var o=(i=n=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n.default="default",n.color="color",n.opacity="opacity",n.size="size",i);Object.defineProperty(o,"default",{writable:!1}),Object.defineProperty(o,"color",{writable:!1}),Object.defineProperty(o,"opacity",{writable:!1}),Object.defineProperty(o,"size",{writable:!1}),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(58)),o=r(2),a=r(0),s=r(1),u=r(14);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(0,0,0,.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(161),s=function(e){return e&&e.__esModule?e:{default:e}}(r(106));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)||/^GEOGCRS/.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(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(19)),i=r(0),o=r(1),a=m(r(20)),s=m(r(61)),u=m(r(162)),l=m(r(163)),c=m(r(59)),f=m(r(42)),h=m(r(82)),p=m(r(164)),d=m(r(27)),y=m(r(165)),g=m(r(50)),v=m(r(167));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: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.extent:case h.default.circle:i=n.polygon(t.toPolygon().coordinates)}return n.difference(r,i)},_.buffer=function(e,t,r,n){r=(0,i.defaultValue)(r,o.LengthUnit.meters),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 w=0;w=t instanceof Array?t[S]:t,v.push(_._polygonBuffer(y[S],w,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 x=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(x,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 w=void 0,x=[];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)w=new d.default({coordinates:O[0],spatialReference:f.default.fromJSON(e[0].spatialReference)});else{var P=n.multiPoint(O);P=n.cleanCoords(P),w=new p.default({coordinates:P.geometry.coordinates,spatialReference:f.default.fromJSON(e[0].spatialReference)})}break;case h.default.polygon:case h.default.multiPolygon:var T=void 0,I=e[0].type===h.default.polygon?n.polygon(e[0].coordinates):n.multiPolygon(e[0].coordinates),k=e[1].type===h.default.polygon?n.polygon(e[1].coordinates):n.multiPolygon(e[1].coordinates);T=n.union(I,k);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);T=n.union(T.geometry,L)}w=T.geometry.type===h.default.polygon?new s.default({coordinates:T.geometry.coordinates,spatialReference:f.default.fromJSON(e[0].spatialReference)}):new l.default({coordinates:T.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);w=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:x=[];for(var j=0;j<e.length;j++){var R=new s.default({coordinates:[[[e[j].xmin,e[j].ymin],[e[j].xmax,e[j].ymin],[e[j].xmax,e[j].ymax],[e[j].xmin,e[j].ymax],[e[j].xmin,e[j].ymin]]],spatialReference:f.default.fromJSON(e[0].spatialReference)});x.push(R)}w=_.union(x);break;case h.default.circle:x=[];for(var G=0;G<e.length;G++)x.push(e[G].toPolygon());w=_.union(x)}return w}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||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=void 0;r=e.spatialReference.isGeographic?e:c.default.project(e,new f.default({wkid:4326})),"string"!=typeof(t=(0,i.defaultValue)(t,o.LengthUnit.meters))&&i.Log.error("unit类型不正确!");var a=_._geometryToTurf(r),h=1e3*n.length(a,{units:"kilometers"});switch(t){case o.LengthUnit.kilometers:h/=1e3;break;case o.LengthUnit.miles:h*=.000621371192237}return h},_.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=void 0;r=e.spatialReference.isGeographic?e:c.default.project(e,new f.default({wkid:4326}));var a=_._geometryToTurf(r),u=n.area(a);switch(t){case o.AreaUnits.squareKilometers:u*=1e-6;break;case o.AreaUnits.squareMiles:u*=6214e-7*6214e-7;break;case o.AreaUnits.squareYards:u*=1.1959900499368898;break;case o.AreaUnits.squareFeet:u*=10.763910416689228;break;case o.AreaUnits.acres:u*=2471e-7;break;case o.AreaUnits.ares:u*=.01;break;case o.AreaUnits.hectares:u*=1e-4;break;case o.AreaUnits.squareMeters:}return u},_._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=t.toPolygon();r=_._polygonIntersectExtent(o,e);break;case h.default.circle:var s=e.toPolygon();r=_._polygonIntersectPolygon(s,t.toPolygon())}break;case h.default.circle:var l=e.toPolygon();switch(t.type){case h.default.point:r=_._pointIntersectGeometry(t,l);break;case h.default.multiPoint:r=_._multiPointIntersectGeometry(t,l);break;case h.default.lineString:r=_._lineIntersectPolygon(t,l);break;case h.default.multiLineString:r=_._multiLineIntersectPolygon(t,l);break;case h.default.polygon:r=_._polygonIntersectPolygon(t,l);break;case h.default.multiPolygon:r=_._polygonIntersectMultiPolygon(l,t);break;case h.default.circle:r=_._polygonIntersectPolygon(t.toPolygon(),l);break;case h.default.extent:r=_._polygonIntersectExtent(l,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 c=[],f=[],p=0;p<e.coordinates.length;p++){var y=new u.default({coordinates:e.coordinates[p]}),g=_._lineIntersectLine(y,t);g&&g.point&&c.push(g.point),g&&g.lineString&&f.push(g.lineString)}(r={point:void 0,lineString:void 0}).point=_.union(c),r.lineString=_.union(f);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=e.spatialReference,i=void 0,o=void 0;i=e.type===h.default.lineString?n.lineString(e.coordinates):n.multiLineString(e.coordinates),o=t.type===h.default.lineString?n.lineString(t.coordinates):n.multiLineString(t.coordinates);var a=void 0,s=void 0;if(e.type===h.default.lineString)a=[e];else{a=[];for(var l=0;l<e.coordinates.length;l++)a.push(new u.default({coordinates:e.coordinates[l],spatialReference:r}))}if(t.type===h.default.lineString)s=[t];else{s=[];for(var c=0;c<t.coordinates.length;c++)s.push(new u.default({coordinates:t.coordinates[c],spatialReference:r}))}for(var f=[],y=0;y<a.length;y++)for(var g=0;g<s.length;g++){var v=n.lineString(a[y].coordinates),m=n.lineString(s[g].coordinates),b=n.lineOverlap(v,m);if(b.features.length>0)for(var S=0;S<b.features.length;S++)f.push(new u.default({coordinates:b.features[S].geometry.coordinates,spatialReference:r}))}var w=n.lineIntersect(i,o),x={point:void 0,lineString:void 0};1===f.length?x.lineString=new u.default({coordinates:f[0].coordinates,spatialReference:r}):f.length>1&&(x.lineString=_.union(f));for(var O=0;O<w.features.length;O++){var E=new d.default({coordinates:w.features[O].geometry.coordinates,spatialReference:r});x.lineString&&_.contains(x.lineString,E)&&w.features.splice(O,1)}if(1===w.features.length)x.point=new d.default({coordinates:w.features[0].geometry.coordinates,spatialReference:r});else if(w.features.length>1){for(var P=[],T=0;T<w.features.length;T++)P.push(w.features[T].geometry.coordinates);x.point=new p.default({coordinates:P,spatialReference:r})}return x},_._lineIntersectMultiPoint=function(e,t){for(var r=[],n=void 0,i=e.spatialReference,o=0;o<t.coordinates.length;o++){var a=new d.default({coordinates:t.coordinates[o],spatialReference:i});_.contains(e,a)&&r.push(a.coordinates)}return 1===r.length?n=new d.default({coordinates:r[0],spatialReference:i}):r.length>1&&(n=new p.default({coordinates:r,spatialReference:i})),n},_._lineIntersectPolygon=function(e,t){var r=e.spatialReference,i=n.lineString(e.coordinates),o=n.polygon(t.coordinates),a=n.lineIntersect(i,o);a.features=a.features.sort(function(e,t){return e.geometry.coordinates[0]-t.geometry.coordinates[0]});for(var s=[],l=0;l<e.coordinates.length-1;l++){var c=new u.default({coordinates:[e.coordinates[l],e.coordinates[l+1]],spatialReference:r});c.coordinates=c.coordinates.sort(function(e,t){return e-t});for(var f=[],y=0;y<a.features.length;y++){var g=new d.default({coordinates:a.features[y].geometry.coordinates,spatialReference:r});_.contains(c,g)&&f.push(g)}var m=new d.default({coordinates:e.coordinates[l],spatialReference:r});f[0]&&_.equals(m,f[0])||(f=[m].concat(f));var b=new d.default({coordinates:e.coordinates[l+1],spatialReference:r});0!==f.length&&_.equals(b,f[f.length-1])||f.push(b);for(var S=0;S<f.length-1;S++){var w=new u.default({coordinates:[f[S].coordinates,f[S+1].coordinates],spatialReference:r});_.contains(t,w)&&s.push(w)}}if(1===s.length)return s[0];if(s.length>1){for(var x=[],O=0;O<s.length;O++)x.push(s[O].coordinates);return new v.default({coordinates:x,spatialReference:r})}for(var E=[],P=0;P<a.features.length;P++)a.features[P].geometry.type===h.default.point&&E.push(a.features[P].geometry.coordinates);return 1===E.length?new d.default({coordinates:E[0],spatialReference:r}):E.length>1?new p.default({coordinates:E,spatialReference:r}):void 0},_._multiLineIntersectPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new u.default({coordinates:e.coordinates[i],spatialReference:r}),a=_._lineIntersectPolygon(o,t);a&&n.push(a)}if(1===n.length)return new u.default({coordinates:n[0].coordinates,spatialReference:r});if(n.length>1){for(var s=[],l=0;l<n.length;l++)n[l].type===h.default.lineString?s.push(n[l].coordinates):s=s.concat(n[l].coordinates);return new v.default({coordinates:s,spatialReference:r})}},_._multiLineIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<t.coordinates.length;i++){var o=new s.default({coordinates:t.coordinates[i],spatialReference:r}),a=_._multiLineIntersectPolygon(e,o);a&&n.push(a)}return _.union(n)},_._lineIntersectExtent=function(e,t){var r=e.spatialReference,n=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]],spatialReference:r});return _._lineIntersectPolygon(e,n)},_._multiLineIntersectExtent=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new u.default({coordinates:e.coordinates[i],spatialReference:r}),a=_._lineIntersectExtent(o,t);a&&n.push(a)}if(1===n.length)return n[0];if(n.length>1){for(var s=[],l=0;l<n.length;l++)s.push(n[l].coordinates);return new v.default({coordinates:s,spatialReference:r})}},_._lineIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=void 0,i=[],o=0;o<t.coordinates.length;o++){var a=new s.default({coordinates:t.coordinates[o],spatialReference:r});i.push(_._lineIntersectPolygon(e,a))}for(var l=[],c=0;c<i.length;c++)i[c].type===h.default.lineString?l.push(i[c].coordinates):l=l.concat(i[c].coordinates);return 1===l.length?n=new u.default({coordinates:l,spatialReference:r}):l.length>1&&(n=new v.default({coordinates:l,spatialReference:r})),n},_._pointIntersectGeometry=function(e,t){var r=e.spatialReference;if(_.contains(t,e))return new d.default({coordinates:e.coordinates,spatialReference:r})},_._multiPointIntersectGeometry=function(e,t){for(var r=[],n=e.spatialReference,i=0;i<e.coordinates.length;i++){var o=new d.default({coordinates:e.coordinates[i],spatialReference:n});_.contains(t,o)&&r.push(o.coordinates)}var a=void 0;return 1===r.length?a=new d.default({coordinates:r[0],spatialReference:n}):r.length>1&&(a=new p.default({coordinates:r,spatialReference:n})),a},_._polygonIntersectPolygon=function(e,t){var r=e.spatialReference,i=n.polygon(e.coordinates),o=n.polygon(t.coordinates),a=n.intersect(i,o);if(a)return a.geometry.type===h.default.polygon?new s.default({coordinates:a.geometry.coordinates,spatialReference:r}):new l.default({coordinates:a.geometry.coordinates,spatialReference:r})},_._polygonIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<t.coordinates.length;i++){var o=new s.default({coordinates:t.coordinates[i],spatialReference:r}),a=_._polygonIntersectPolygon(e,o);a&&n.push(a)}return _.union(n)},_._multiPolygonIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new s.default({coordinates:e.coordinates[i],spatialReference:r}),a=_._polygonIntersectMultiPolygon(o,t);a&&n.push(a)}return _.union(n)},_._polygonIntersectExtent=function(e,t){var r=e.spatialReference,n=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]],spatialReference:r});return _._polygonIntersectPolygon(e,n)},_._multiPolygonIntersectExtent=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new s.default({coordinates:e.coordinates[i],spatialReference:r}),a=_._polygonIntersectExtent(o,t);a&&n.push(a)}return _.union(n)},_.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=[],w=n.point(o.coordinates);switch(r.type){case h.default.multiPoint:for(var x=0;x<r.coordinates.length;x++)S.push(n.point(r.coordinates[x]));var O=n.featureCollection(S);m=n.nearestPoint(w,O);break;case h.default.lineString:_=n.lineString(r.coordinates),m=n.nearestPointOnLine(_,w,{units:"kilometers"});break;case h.default.multiLineString:_=n.multiLineString(r.coordinates),m=n.nearestPointOnLine(_,w,{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(_,w,{units:"kilometers"});break;case h.default.multiPolygon:for(var P=[],T=0;T<r.coordinates.length;T++){S=[];for(var I=0;I<r.coordinates[T][0].length;I++)S.push(r.coordinates[T][0][I]);P.push(S),_=n.multiLineString(P)}m=n.nearestPointOnLine(_,w,{units:"kilometers"});break;case h.default.circle:b=n.polygon(r.toPolygon().coordinates);for(var k=0;k<b.geometry.coordinates[0].length;k++)S.push(b.geometry.coordinates[0][k]);_=n.lineString(S),m=n.nearestPointOnLine(_,w,{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(_,w,{units:"kilometers"})}return m=a.default.fromJSON(m.geometry),t.spatialReference.isGeographic||(m=c.default.projectGeometry(m,t.spatialReference)),m}},_.planarArea=function(e,t){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){(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 w=0;w<t.coordinates.length;w++){var x=new s.default({coordinates:t.coordinates[w]});if(!_._polygonContainPolygon(e,x)){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 T=0;T<e.coordinates.length;T++){var I=new s.default({coordinates:e.coordinates[T]}),k=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(I,k)){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.kilometers),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=[],w=n.point(e.coordinates);switch(t.type){case h.default.point:m=n.point(t.coordinates),a=n.distance(w,m,{units:r});break;case h.default.multiPoint:for(var x=0;x<t.coordinates.length;x++)b.push(n.point(t.coordinates[x]));var O=n.featureCollection(b),E=n.nearestPoint(w,O);a=n.distance(w,E,{units:r});break;case h.default.lineString:m=n.lineString(t.coordinates),a=n.pointToLineDistance(w,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(w,m,{units:r}));S.sort(function(e,t){return e-t}),a=S[0];break;case h.default.polygon:for(var T=0;T<t.coordinates[0].length;T++)b.push(t.coordinates[0][T]);m=n.lineString(b),a=n.pointToLineDistance(w,m,{units:r});break;case h.default.multiPolygon:for(var I=0;I<t.coordinates.length;I++){b=[];for(var k=0;k<t.coordinates[I][0].length;k++)b.push(t.coordinates[I][0][k]);m=n.lineString(b),S.push(n.pointToLineDistance(w,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(w,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(w,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 w=new d.default({coordinates:e.coordinates[0]}),x=new d.default({coordinates:e.coordinates[e.coordinates.length-1]});r=!_.contains(t,w)&&!_.contains(t,x)}}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 T=void 0,I=0;I<e.coordinates.length;I++){if(T){r=!T;break}var k=new d.default({coordinates:e.coordinates[I]});T=_.contains(t,k)}for(var M=0;M<t.coordinates.length;M++){if(T){r=!T;break}var L=new d.default({coordinates:t.coordinates[M]});T=_.contains(e,L)}T||(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 j=0;j<e.coordinates.length&&!r;j++)o=new u.default({coordinates:e.coordinates[j]}),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]}),w=_.touches(e,S);if(w)r=w;else if(_.intersects(e,S)){r=!1;break}}break;case h.default.lineString:if(_.intersect(e,t).point){var x=new d.default({coordinates:e.coordinates[0]}),O=new d.default({coordinates:e.coordinates[e.coordinates.length-1]});if(_.contains(t,x)||_.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 T=0;T<t.coordinates.length;T++){o=new u.default({coordinates:t.coordinates[T]});var I=_.touches(e,o);if(I)r=I;else if(_.intersects(e,o)){r=!1;break}}break;case h.default.polygon:for(var k=0;k<t.coordinates[0].length;k++)a.push(t.coordinates[0][k]);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),j=new u.default({coordinates:[t.center,N.geometry.coordinates]}),R=_.planarLength(j);Math.round(R)===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 A=0;A<e.coordinates.length;A++){n=new u.default({coordinates:e.coordinates[A]});var D=_.touches(n,t);if(D)r=D;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 V=0;V<e.coordinates.length;V++)a.push(e.coordinates[V]);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]}),U=_.touches(e,B);if(U)r=U;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 q=0;q<t.coordinates.length;q++){o=new s.default({coordinates:t.coordinates[q]});var J=_.touches(e,o);if(J)r=J;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),Y=new u.default({coordinates:[t.center,H.geometry.coordinates]}),X=_.planarLength(Y);Math.round(X)===t.radius&&(_.intersect(e,t)||(r=!0));break;case h.default.extent:var K=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,K)}break;case h.default.multiPolygon:switch(t.type){case h.default.point:for(var Z=0;Z<e.coordinates.length;Z++){n=new s.default({coordinates:e.coordinates[Z]});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:n=void 0,r=_._lineCutPolygon(n=e,o=t);break;case h.default.multiPolygon:n=void 0;for(var p=0;p<n.coordinates.length;p++){var d=new s.default({coordinates:n.coordinates[p],spatialReference:f.default.fromJSON(e.spatialReference)});r=r.concat(_._lineCutPolygon(d,o))}}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=e.spatialReference,i=[],o=new u.default({coordinates:e.coordinates[0],spatialReference:r}),a=n.lineString(o.coordinates),l=n.lineString(t.coordinates);if(n.booleanDisjoint(l,o))return e.clone();for(var c=[],f=0;f<t.coordinates.length-1;f++){var p=n.lineString([t.coordinates[f],t.coordinates[f+1]]);n.booleanDisjoint(p,o)||c.push(t.coordinates[f],t.coordinates[f+1])}l=n.lineString(c),l=n.cleanCoords(l);for(var d=n.lineSplit(a,l),y=n.lineSplit(l,a),g=[],v=new s.default({coordinates:[e.coordinates[0]],spatialReference:r}),m=0;m<y.features.length;m++){var b=new u.default({coordinates:y.features[m].geometry.coordinates,spatialReference:r});_.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 w=0;w<d.features[S].geometry.coordinates.length;w++)d.features[S].geometry.coordinates[w][0]=d.features[S].geometry.coordinates[w][0].toFixed(7)/1,d.features[S].geometry.coordinates[w][1]=d.features[S].geometry.coordinates[w][1].toFixed(7)/1;for(var x=n.polygonize(d),O=0;O<x.features.length;O++){var E=new s.default({coordinates:x.features[O].geometry.coordinates,spatialReference:r});i.push(E)}if(e.coordinates.length>1)for(var P=0;P<i.length;P++)for(var T=1;T<e.coordinates.length;T++){var I=new s.default({coordinates:[e.coordinates[T]],spatialReference:r}),k=n.polygon(I.coordinates),M=n.polygon(i[P].coordinates);n.booleanDisjoint(k,M)||(i[P]=_.difference(i[P],I))}for(var L=[],C=0;C<i.length;C++)if(i[C].type===h.default.multiPolygon)for(var N=0;N<i[C].coordinates.length;N++)L.push(new s.default({coordinates:i[C].coordinates[N],spatialReference:r}));else L.push(i[C]);return i=L},_._coordinateToWGS84=function(e){var t=e[0]/20037508.342789244*180,r=e[1]/20037508.342789244*180;return[t.toFixed(7)/1,r.toFixed(7)/1]},_._coordinateToOrigin=function(e){return[20037508.342789244*e[0]/180,20037508.342789244*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=e.spatialReference,r=!0;if(e.coordinates.length>2){for(var i=[],o=0;o<e.coordinates.length-1;o++)i.push(new u.default({coordinates:[e.coordinates[o],e.coordinates[o+1]],spatialReference:t}));for(var a=0;a<i.length-1;a++)for(var s=a+1;s<i.length;s++)if(_.contains(i[a],i[s])||_.contains(i[s],i[a])){r=!1;break}for(var l=0;l<i.length-2;l++)for(var c=l+2;c<i.length;c++)if(_.intersects(i[l],i[c])){var f=n.multiPoint([i[l].coordinates[0],i[l].coordinates[1],i[c].coordinates[0],i[c].coordinates[1]]);if(3!==(f=n.cleanCoords(f)).geometry.coordinates.length){r=!1;break}r=!0}for(var h=0;h<e.coordinates.length;h++){for(var p=!1,d=h+1;d<e.coordinates.length;d++)if(_._equalPoints(e.coordinates[h],e.coordinates[d])){p=!0;break}if(p){r=!1;break}}return r}return 2===e.coordinates.length?_._equalPoints(e.coordinates[0],e.coordinates[1]):r},_._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=e.spatialReference,r=!0;if(1===e.coordinates.length){var n=new u.default({coordinates:e.coordinates[0],spatialReference:t});r=_._lineIsSimple(n)}else{for(var i=0;i<e.coordinates.length;i++){var o=new u.default({coordinates:e.coordinates[i],spatialReference:t});if(_._lineIsSimple(o)){r=!1;break}}if(r)for(var a=0;a<e.coordinates.length-1;a++){var s=new u.default({coordinates:e.coordinates[a],spatialReference:t}),l=new u.default({coordinates:e.coordinates[a+1],spatialReference:t});if(_.intersects(s,l)){r=!1;break}}}return r},_._polygonIsSimple=function(e){var t=e.spatialReference,r=[],n=[];e.coordinates.forEach(function(e){r.push(e.slice(0,e.length-1));for(var t=[],i=1;i<e.length-3;i++)t.push([e[i],e[i+1]]);t.push([e[e.length-2],e[e.length-1]]),n.push(t)});for(var i=new v.default({coordinates:r,spatialReference:t}),o=_._multiLineIsSimple(i),a=!1,s=0;s<n.length;s++){for(var l=new u.default({coordinates:n[s][n[s].length-1],spatialReference:t}),c=0;c<n[s].length-1;c++)if(a=_.intersects(new u.default({coordinates:n[s][c],spatialReference:t}),l)){o=!1;break}if(a)break}return o},_._multiPolygonIsSimple=function(e){var t=e.spatialReference,r=[];e.coordinates.forEach(function(e){e.forEach(function(e){r.push(e.slice(0,e.length-1))})});var n=new v.default({coordinates:r,spatialReference:t});return _._multiLineIsSimple(n)},_.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],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}));a=f.default.fromJSON(a);var s=new u.default({coordinates:[t,r]}),l=_.planarLength(s),c=_.getAngleFromPoints(r,t,[t[0]+10,t[1]]),h=_.getAngleFromPoints(n,t,[t[0]+10,t[1]])-c;o*=h/360,o=Math.abs(o);var p=Math.PI*(h/180)/o;c=Math.PI*(c/180);for(var d=[r],y=0;y<o-1;y++){c+=p;var g=[t[0]+l*Math.cos(c),t[1]+l*Math.sin(c)];d.push(g)}return d.push(n),this.hasZ&&d.map(function(e){return[e[0],e[1],t[2]]}),d},_.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.numberOfPoints,360),o=[],a=t.slice(0,r[0].centerPointIndex-1);o=o.concat(a);var s=Number(r[0].centerPointIndex),u=[t[s-1],t[s],t[s+1]],l=_.getPositionsFromArc({point1:u[0],point2:u[1],point3:u[2],numberOfPoints:n});o=o.concat(l);for(var c=1;c<r.length;c++)if(r[c].hasOwnProperty("centerPointIndex")){var f=t.slice(r[c-1].centerPointIndex+2,r[c].centerPointIndex+1);o=o.concat(f);var h=Number(r[c].centerPointIndex),p=[t[h-1],t[h],t[h+1]],d=_.getPositionsFromArc({point1:p[0],point2:p[1],point3:p[2],numberOfPoints:n});o=o.concat(d)}var y=t.slice(r[r.length-1].centerPointIndex+2,t.length);return o=o.concat(y)},_._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,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],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],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],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=[],w=0;w<t.intersectInnerPolygon.length;w++){var x=_.intersect(r,t.intersectInnerPolygon[w]);if(x instanceof s.default||x instanceof l.default){r=_.difference(r,x);var O=_.difference(t.intersectInnerPolygon[w],x);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 T=0;T<t.largerInnerPolygon.length;T++)S.push(t.largerInnerPolygon[T]);for(var I=[],k=0;k<t.smallInnerPolygon.length;k++)for(var M=_._singRingSimplify(t.smallInnerPolygon[k]),L=0;L<M.features.length;L++){var C=new s.default({coordinates:M.features[L].geometry.coordinates});C.isPicked=!1,I.push(C)}!(I=_.union(I))||I instanceof Array||(I=[I]);for(var N=0;N<S.length;N++)for(var j=0;j<I.length;j++)!I[j].isPicked&&S[N]&&I[j]&&_.contains(S[N],I[j])&&(S[N].coordinates.push(I[j].coordinates[0]),I[j].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 w=[],x=0;x<v.length;x++)v[x]&&w.push(v[x].coordinates);return new l.default({coordinates:w,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},_.getCenterPoint=function(e){return _._getCenterOrCentroid(e,"center")},_.getCentroid=function(e){return _._getCenterOrCentroid(e,"centroid")},_._getCenterOrCentroid=function(e,t){var r=e.type,i=e.spatialReference;if(r===h.default.circle)return new d.default({coordinates:[e.center[0],e.center[1],0],spatialReference:i});if(r===h.default.extent)return new d.default({coordinates:[(e.xmin+e.xmax)/2,(e.ymin+e.ymax)/2,0],spatialReference:i});var o=void 0,a=void 0;switch(r){case h.default.point:return d.default.fromJSON(e.toJSON());case h.default.multiPoint:o=e.coordinates,a=n.points(e.coordinates);case h.default.lineString:o=e.coordinates,a=n.lineString(e.coordinates);break;case h.default.polygon:o=e.coordinates[0],a=n.polygon(e.coordinates);break;default:return null}var s=void 0;if(s="centroid"===t?n.centroid(a):n.center(a),this.hasZ){for(var u=0,l=0,c=0;c<o.length;c++){u+=o[c].length;for(var f=0;f<o[c].length;f++)l+=o[c][f][2]}return l/=u,new d.default({coordinates:[s.geometry.coordinates[0],s.geometry.coordinates[1],l],spatialReference:i})}return new d.default({coordinates:[s.geometry.coordinates[0],s.geometry.coordinates[1]],spatialReference:i})},_.getLabelPoint=function(e){if(!(e instanceof a.default))return null;var t=e.clone(),r=t.type,n=t.spatialReference;switch(r){case h.default.circle:return[new d.default({coordinates:[t.center[0],t.center[1],0],spatialReference:n})];case h.default.extent:return[new d.default({coordinates:[(t.xmin+t.xmax)/2,(t.ymin+t.ymax)/2,0],spatialReference:n})];case h.default.polygon:return _._getPolygonLabel(t);default:return null}},_._getPolygonLabel=function(e){var t=e.coordinates,r=e.extent,n=(r.ymin+r.ymax)/2,i=[],o={x:void 0,x2:void 0,hasTwoXCoordinate:!1},a=!1,s=void 0;do{s=[];for(var u=0;u<t.length;u++)for(var l=t[u],c=1;c<l.length;c++)Math.min(l[c-1][1],l[c][1])<=n&&Math.max(l[c-1][1],l[c][1])>n&&(l[c][1]===n?((o={x:void 0,x2:void 0,hasTwoXCoordinate:!1}).x=l[c][0],o.hasTwoXCoordinate=!1,c<l.length-1&&l[c+1][1]===n&&(o.hasTwoXCoordinate=!0,o.x2=l[c+1][0]),i.push(o)):l[c-1][1]===n?((o={x:void 0,x2:void 0,hasTwoXCoordinate:!1}).x=l[c-1][0],o.hasTwoXCoordinate=!1,c>1&&l[c-2]===n&&(o.hasTwoXCoordinate=!0,o.x2=l[c-2][0]),i.push(o)):((o={x:void 0,x2:void 0,hasTwoXCoordinate:!1}).x=l[c][0]-(l[c][0]-l[c-1][0])/(l[c][1]-l[c-1][1])*(l[c][1]-n),o.hasTwoXCoordinate=!1,i.push(o)));if(i.length>=2){i.sort(function(e,t){return e.x>t.x});for(var h=0,p=0;p<i.length-1;p+=2){var y=i[p].x,g=i[p+1].x;y!==g&&Math.abs(y-g)>h&&(h=Math.abs(y-g),i[p].hasTwoXCoordinate&&(y=Math.max(y,i[p].x2)),i[p+1].hasTwoXCoordinate&&(g=Math.min(g,i[p+1].x2)),s[0]=(y+g)/2,s[1]=n,a=!0)}if(a)_.contains(e,new d.default({coordinates:[s[0],s[1]],spatialReference:f.default.fromJSON(e.spatialReference)}))||(a=!1,s=[])}else a=!0;a||(n+=(r.ymax-r.ymin)/101)}while(!a);return 0===s.length?null:new d.default({coordinates:[s[0],s[1],0],spatialReference:f.default.fromJSON(e.spatialReference)})},t.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=function(e){return e&&e.__esModule?e:{default:e}}(r(85)),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++){var u=o.default.fromJSON(n[s]);(0,i.defined)(u.levelValue)||(u.levelValue=String(u.level)),r.push(u)}this.lods=r,this.size=Array.isArray(t.size)?[t.size[0],t.size[1]]:null,this.spatialReference=t.spatialReference?a.SpatialReference.fromJSON(t.spatialReference):null}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";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(29)),s=f(r(28)),u=f(r(25)),l=r(0),c=r(56);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="sketchPolygonDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r.vertexNum=0,r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),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._sketchInnerLayer,sketchInnerLayer:e._sketchInnerLayer,_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(r){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(),r.native&&r.native.preventDefault&&r.native.preventDefault(),r.innerViewerEvent&&r.innerViewerEvent.preventDefault&&r.innerViewerEvent.preventDefault(),e.view._mapActionControl("double-click-zoom",!0),e.view._mapActionControl("video-map-active",!1)};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();r.id=(0,l.getGUID)();var 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:"selectFeature",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),"selectFeature",this).call(this,e)}},{key:"selectFeatureVertex",value:function(e){var t=this;!this._parent&&this._isAddTip&&this._updateTipText((0,c.getTipTextByEditOption)("edit-vertex",this._tipText,this._editOption),this._sketchInnerLayer),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._sketchInnerLayer,sketchInnerLayer:t._sketchInnerLayer,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._sketchInnerLayer,sketchInnerLayer:t._sketchInnerLayer,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),l=this._getEditOptionMode(this._editOption);this._parent&&this._parent._mapClickEvent&&l.editVertex&&this.view.off(i.ViewEventType.immediateClick,this._parent._mapClickEvent);var c=function(t){if(r._editOption.graphic.move&&t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==i.SketchEditMode.editGraphic&&!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}},f=function e(){if(!r._editMode!==i.SketchEditMode.editGraphic&&r._startPan){if(s&&r._parent&&r._parent._editMode===i.SketchEditMode.editGraphic&&"sketchPointDrawTool"!==r._parent.type&&r._parent.selectFeatureVertex)return r._parent._editMode=i.SketchEditMode.editVertex,clearTimeout(u),l.editVertex&&(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,c),void r.view.off(i.ViewEventType.pointerUp,e);r._editMode=i.SketchEditMode.none,r._startPan=!1,r.view.off(i.ViewEventType.pointerMove,c),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(f),this.view.on(i.ViewEventType.pointerUp,f),this._hitTestEventHandlers.push(c),this.view.on(i.ViewEventType.pointerMove,c)}},{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._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,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._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,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._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,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._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,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._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,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=h},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,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);var n=r(5),i=r(57);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";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(){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(19)),o=p(r(20)),a=r(0),s=p(r(27)),u=r(1),l=p(r(59)),c=p(r(42)),f=p(r(43)),h=p(r(61));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(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)}}},{key:"throwError",value:function(e){throw new Error(e)}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);var i=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};i.getBaseUrlAndParams=function(e){var t=void 0,r={},i=e.split("?");if(0===i.length)throw new Error("url传入不合法");return 1===i.length?t=i[0]:(t=i[0],i[1].split("&").map(function(e){var t=e.indexOf("=");if(t>0){var n=e.substring(0,t),i=e.substring(t+1,e.length);r[n]=i}}),i.length>=3&&n.Log.error("url有多个'?'连接符,不合法")),{baseUrl:t,params:r=(0,n.deleteNullValue)(r)}},i.completeUrlEndMark=function(e){return e.indexOf("?")>-1?"?"===e.slice(-1)||"&"===e.slice(-1)?e+="":e+="&":e+="?",e},i.getObjectFromExtensions=function(e){var t={},r=(0,n.defaultValue)(e,[]);return r instanceof Array&&(r=Array.from(new Set(r))).forEach(function(e){t[e.key]=e.value}),t},i.getStringFromObject=function(e){var t="";return(e=(0,n.defaultValue)(e,{}))instanceof Object&&(e=(0,n.deleteNullValue)(e),Object.keys(e).forEach(function(r){t+=r+"=",e[r]instanceof Function?t+=e[r]():e[r]instanceof Object?t+=JSON.stringify(e[r]):t+=e[r],t+="&"}),t.length>0&&(t=t.substring(0,t.length-1))),t},i.deleteNullValue=n.deleteNullValue,t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSublayerOptionsArr=void 0;var n=r(0),i=r(2);t.createSublayerOptionsArr=function e(t,r,o,a,s){r=r||[],s=s||{};var u=void 0,l=void 0,c=void 0;if(t){var f=t instanceof i.Collection?t.items:t;u=new window.Map,l=new window.Map,c=new window.Map,f.forEach(function(e){(0,n.defined)(e.name)&&u.set(e.name,e.toJSON?e.toJSON():e),(0,n.defined)(e.id)&&l.set(e.id,e.toJSON?e.toJSON():e),(0,n.defined)(e.layerIndex)&&c.set(e.layerIndex,e.toJSON?e.toJSON():e)})}for(var h=[],p=0;p<r.length;p++){var d=r[p],y=!1,g=void 0;if(l||u||c?(g=l.get(String(d.id))||l.get(String(d.name))||l.get(String(d.index))||u.get(String(d.name))||l.get(String(d.layerIndex))||c.get(String(d.layerIndex)))&&(y=!0):y=!0,y){var v=o(d,g||{},s);v.sublayers=e(g?g.sublayers:null,a(d),o,a,s),h.push(v)}}return 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(14);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.onScreenLabelCount=(0,o.defaultValue)(t.onScreenLabelCount,4e3),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,onScreenLabelCount:this.onScreenLabelCount,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}),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(85)),s=c(r(44)),u=r(1),l=(r(2),r(15));function c(e){return e&&e.__esModule?e:{default:e}}window.CustomWKID=u.CustomWKID;var f=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;e.startLevel,e.endLevel;return new s.default({origin:new i.Point({coordinates:[u,l]}),lods:n.map(function(e){var t=a.default.fromJSON(e);return(0,o.defined)(t.levelValue)||(t.levelValue=String(t.level)),t}),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,c=e.origin,f=e.lods,h=e.spatialReference,p=void 0;return p=h&&h.srsWkt?new i.SpatialReference({wkt:h.srsWkt,wkid:(0,o.defined)(h.wkid)&&0!==h.wkid?h.wkid:void 0}):h&&h.tileSRefInfo&&h.tileSRefInfo.Name?(0,l.getSpatialReferenceBySrsName)(h.tileSRefInfo.Name):new i.SpatialReference(h),new s.default({dpi:n,format:u,origin:new i.Point({coordinates:[c.x,c.y],spatialReference:p}),lods:f.map(function(e){var t=a.default.fromJSON(e);return(0,o.defined)(t.levelValue)||(t.levelValue=String(t.level)),t}),size:[t,r],spatialReference:p})}},{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){var t=a.default.fromJSON(e);return(0,o.defined)(t.levelValue)||(t.levelValue=String(t.level)),t}),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}),f=1;return r.isGeographic&&(f=111319.49079327358),new s.default({origin:c,lods:u.map(function(e,t){return a.default.fromJSON({level:t,levelValue:String(t),resolution:e,scale:f*(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=111319.49079327358),new s.default({origin:f,lods:l.map(function(e,t){return a.default.fromJSON({level:t,levelValue:String(t),resolution:e,scale:h*(96*e)/.0254})}),size:[n,n],spatialReference:e.spatialReference})}},{key:"parseIGSImageTileInfo",value:function(e){var t=e.cols,r=e.rows,n=e.lods,u=e.origin,l=(e.startLevel,e.endLevel,e.spatialReference),c=e.dpi;return new s.default({origin:new i.Point({coordinates:[u.x,u.y],spatialReference:new i.SpatialReference(l)}),lods:n.map(function(e,t){return a.default.fromJSON({level:t,resolution:e.resolution,scale:e.scale,levelValue:(0,o.defined)(e.levelValue)?e.levelValue:String(t)})}),size:[t,r],spatialReference:new i.SpatialReference(l),dpi:c})}},{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=111319.49079327358),new s.default({origin:n,lods:p.map(function(e,t){return a.default.fromJSON({level:t,levelValue:String(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,levelValue:s,resolution:u,scale:l}))}return i}},{key:"getReferenceLayer",value:function(e,t){for(var r=null,n=null,i=0;i<e.length;i++){var o=e[i];if(o.loaded&&(o.type===u.LayerType.IGSTile||o.type===u.LayerType.IGSImageTile||o.type===u.LayerType.ArcGISTile||o.type===u.LayerType.WMTS||o.type===u.LayerType.IGSVectorTile||o.type===u.LayerType.ArcGISVectorTile||o.type===u.LayerType.webTile)&&(!t||t.equals(o.spatialReference)||t.isWebMercator&&o.spatialReference.wkid&&[u.CustomWKID.gcj02mc,u.CustomWKID.bd09mc].indexOf(o.spatialReference.wkid)>-1)){n=o,r=o.spatialReference;break}}if(!r)for(var a=0;a<e.length;a++){var s=e[a];if(s.loaded&&(s.type===u.LayerType.IGSMapImage||s.type===u.LayerType.ArcGISMapImage||s.type===u.LayerType.WMS||s.type===u.LayerType.IGSFeature||s.type===u.LayerType.WFS||s.type===u.LayerType.GeoJSON||s.type===u.LayerType.IGSImage)){n=s,r=t||s.spatialReference;break}}return n}},{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,t){if(!e||!Array.isArray(e.lods)||0===e.lods.length)return[0,22];for(var r=e.lods,n=r.slice().reverse(),i=r[0].level,o=r[r.length-1].level,a=0,s=r.length-1,u=0;u<r.length;u++)if(0!==r[u].scale){i=r[u].level,a=u;break}for(var l=0;l<n.length;l++)if(0!==n[l].scale){o=n[l].level,s=n.length-1-l;break}return t?[a,s]:[i,o]}},{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.IGSImage||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}},{key:"scaleToResolution",value:function(e,t,r){var n=1;return r.isGeographic&&(n=111319.49079327358),.0254*e/t/n}},{key:"resolutionToScale",value:function(e,t,r){var n=1;return r.isGeographic&&(n=111319.49079327358),n*(e*t)/.0254}}]),e}();t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTipTextByEditOption=function(e,t,r){if(r&&r.graphic&&r.vertex){var n={text:"",lineWidth:0};switch(e){case"before-edit":case"draw-end":r.graphic.move||r.graphic.scale?(n.text=t.beforeEditGraphic.text,n.lineWidth=t.beforeEditGraphic.lineWidth):(r.vertex.move||r.vertex.add)&&(n.text=t.beforeEditVertex.text,n.lineWidth=t.beforeEditVertex.lineWidth);break;case"edit-graphic":var i=0;r.graphic.move&&(n.text=t.moveGraphic.text,i+=t.moveGraphic.lineWidth),r.graphic.scale&&(n.text+=t.scaleGraphic.text,i+=t.scaleGraphic.lineWidth),(r.vertex.move||r.vertex.add)&&(n.text+=t.beforeEditVertex.text,i+=t.beforeEditVertex.lineWidth),n.editGraphic&&n.editGraphic.lineWidth?n.lineWidth=t.moveGraphic.lineWidth:n.lineWidth=i;break;case"edit-vertex":var o=0;r.vertex.move&&(n.text=t.moveVertex.text,o+=t.moveVertex.lineWidth),r.vertex.add&&(n.text+=t.addVertex.text,o+=t.addVertex.lineWidth),n.editVertex&&n.editVertex.lineWidth?n.lineWidth=t.moveGraphic.lineWidth:n.lineWidth=o;break;default:n=void 0}return n}}},function(e,t,r){"use strict";r.r(t),t.default=function(e){return e<0?-1:1}},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(327)),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.initialize.apply(this,arguments),this._createEventedProxy()}return i(e,[{key:"initialize",value:function(){}},{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 a=e._decorateProperties[r],s=a.type,u=a.createInstance;n=e._constructDecorateValue(n,s,u),(0,o.defined)(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 l=Reflect.get(t,r);null!==l&&void 0!==l&&l._decorateParents&&(l._decorateParents=[]);var c={target:t,key:r,value:n,oldValue:l,receiver:i},f=Reflect.set(t,r,n,i);return/^_[^_].*/.test(r)?f:(e._decorateEventFire(e,e,[],"set",c,c),e._updateDiff(r,n,l),f)},get:function(e,t,r){return Reflect.get(e,t,r)}})}},{key:"_updateDiff",value:function(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){return n=(0,o.defaultValue)(n,function(e){return e}),t=this._constructDecorateValue(t,r,n),this._decorateProperties[e]={type:r,createInstance:n},t}},{key:"_constructDecorateValue",value:function(e,t,r){return(0,o.defined)(e)&&r&&(t&&e instanceof t||(e=r(e))),e}},{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(124)),i=f(r(81)),o=r(0),a=r(3),s=f(r(82)),u=f(r(168)),l=f(r(169)),c=f(r(106));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.342789244*180,n=e.y/20037508.342789244*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){return h.projectPoints({points:e.points,originDefs:e.proj4Defs,originWKID:e.wkid,targetWKID:4326})},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投影报错",e)}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.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]],n.points=r,r=h.projectPoints(n),new a.Extent({xmin:Math.min(r[0][0],r[1][0],r[2][0],r[3][0]),ymin:Math.min(r[0][1],r[1][1],r[2][1],r[3][1]),zmin:e.zmin,xmax:Math.max(r[0][0],r[1][0],r[2][0],r[3][0]),ymax:Math.max(r[0][1],r[1][1],r[2][1],r[3][1]),zmax:e.zmax,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]}),p=u.default.bd09towgs84(f.lng,f.lat);i=(0,n.default)(a,t,p)}else if(e===c.default.gcj02ll){var d=u.default.gcj02towgs84(r[0],r[1]);i=(0,n.default)(a,t,d)}else if(e===c.default.gcj02mc){var y=(0,n.default)(h.getEPSGByWKID(3857).strProject,a,r),g=u.default.gcj02towgs84(y[0],y[1]);i=(0,n.default)(h.getEPSGByWKID(4326).strProject,t,g)}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(99)),a=u(r(41)),s=r(153);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.styleOrigin=void 0,r.symbolLayers=new o.default,(0,i.defaultValue)(e.symbolLayers,[]).forEach(function(e){r.symbolLayers.add((0,s.createSymbol3DLayer)(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),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(19)),o=h(r(20)),a=r(0),s=r(1),u=h(r(27)),l=h(r(50)),c=r(26),f=h(r(43));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,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._centroid=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:"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}},{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:"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){e.push(i)})}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(p.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._centroid=f.default.getCentroid(this),this._centroid}}}),t.default=p},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(40)),o=l(r(86)),a=l(r(440)),s=l(r(442)),u=l(r(444));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});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(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},o=r(7),a=r(0),s=r(3),u=r(1),l=r(4),c=r(15);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));e=(0,a.defaultValue)(e,{}),r.type=u.SubLayerType.IGSSceneSub,r.originLayerType=(0,a.defaultValue)(e.originLayerType,""),r.layerIndex=(0,a.defaultValue)(e.layerIndex,0),r.renderType=(0,a.defaultValue)(e.renderType,""),r.beginLevel=(0,a.defaultValue)(e.beginLevel,-1),r.endLevel=(0,a.defaultValue)(e.endLevel,-1),r.originPoint=e.originPoint?s.Point.fromJSON(e.originPoint):null,r.maxFrameSize=e.maxFrameSize?e.maxFrameSize:null,r.layerName=(0,a.defaultValue)(e.layerName,null),r.layerRenderIndex=(0,a.defaultValue)(e.layerRenderIndex,null),r.elevationScale=(0,a.defaultValue)(e.elevationScale,null),r.originLayerType===u.IGSSceneOriginLayerType.groupLayer3D&&(r.extent=(0,c.getExtentBySubLayers)(r.sublayers.items));return r.capabilities=(0,l.mergeCommonClientCapbilities)(r.capabilities,{type:!0,layerIndex:!0,maxFrameSize:!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.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(){var e=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.originLayerType=this.originLayerType,e.layerIndex=this.layerIndex,e.renderType=this.renderType,e.beginLevel=this.beginLevel,e.endLevel=this.endLevel,e.originPoint=this.originPoint?this.originPoint.toJSON():null,e.maxFrameSize=this.maxFrameSize?this.maxFrameSize:null,e.layerName=this.layerName,e.layerRenderIndex=this.layerRenderIndex,e.elevationScale=this.elevationScale,e}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"_updateDiff",value:function(e,r,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_updateDiff",this).call(this,e,r,n),this.layer&&this.layer._fireSublayerUpdateEvent(this.id,e,this[e])}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();Object.defineProperties(f.prototype,{visible:{get:function(){return this._visible},set:function(e){this._visible=e}},opacity:{get:function(){return this._opacity},set:function(e){this._opacity=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(3),o=r(0);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,o.defaultValue)(t,{}),this.bandCount=t.bandCount,this.pixelType=t.pixelType,this.width=t.width,this.height=t.height,this.spatialReference=i.SpatialReference.fromJSON(t.spatialReference),this.colormap=t.colormap,this.extent=t.extent?i.Extent.fromJSON(t.extent):null,this.histograms=t.histograms,this.pixelSize=t.pixelSize?i.Point.fromJSON(t.pixelSize):null,this.statistics=t.statistics}return n(e,[{key:"toJSON",value:function(){var e={};return e.bandCount=this.bandCount,e.pixelType=this.pixelType,e.width=this.width,e.height=this.height,e.spatialReference=this.spatialReference?this.spatialReference.toJSON():null,e.colormap=JSON.parse(JSON.stringify(this.colormap)),e.extent=this.extent?this.extent.toJSON():null,e.histograms=JSON.parse(JSON.stringify(this.histograms)),e.pixelSize=this.pixelSize?this.pixelSize.toJSON():null,e.statistics=JSON.parse(JSON.stringify(this.statistics)),e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=a},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});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(21),s=r(80),u=r(0),l=r(11);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)),n=(0,u.defaultValue)(e,{});return r.view=n.view,r.view||u.Log.error("视图对象不存在!"),r.layer=n.layer,r.layer||u.Log.error("图层对象不存在!"),r.innerLayer=null,r.id=r.layer.id,r._updateScaleVisible(),r.onRefresh=(0,l.debounce)(r.onRefresh,r.layer.forceRefreshDebounceDelay,r),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){return e||this._updateScaleVisible(),this._getVisible()&&this._scaleVisible}},{key:"_updateScaleVisible",value:function(){var e=this.view,t=e.scale;t&&e.getScale&&(t=e.getScale());var r=this._getMinScale(),n=this._getMaxScale(),i=!1;(!t||0===n&&0===r||0===n&&t<=r||0===r&&t>=n||0!==n&&0!==n&&n<=t&&t<=r)&&(i=!0),this._scaleVisible=i}},{key:"_getOpacity",value:function(){return this.layer.getCumulative("opacity",function(e,t){return e*t})}},{key:"_getVisible",value:function(){return this.layer.getCumulative("visible",function(e,t){return e&&t})}},{key:"_getMinScale",value:function(){return this.layer.getCumulative("minScale",function(e,t){return"number"==typeof t&&0!==t?0===e?t:Math.min(e,t):e})}},{key:"_getMaxScale",value:function(){return this.layer.getCumulative("maxScale",function(e,t){return"number"==typeof t&&0!==t?0===e?t:Math.max(e,t):e})}},{key:"checkLayerCanAddedStatus",value:function(){var e=this.layer.parent;return!(!e||!e.findLayerById(this.id))}},{key:"onRefresh",value:function(){}},{key:"_fireLayerViewUpdateEvent",value:function(e,t){var r=this.layer,n=new a.LayerViewUpdateEvent({type:o.LayerEventType.layerViewUpdate,target:this,layer:r,message:e,view:this.view,layerView:this,updateContent:Array.isArray(t)?t.map(function(e){return new s.LayerViewUpdateContent(e)}):[new s.LayerViewUpdateContent(t)]});r.fire(o.LayerEventType.layerViewUpdate,n),this.view.fire(o.LayerEventType.layerViewUpdate,n)}},{key:"_fireLayerViewEvent",value:function(e,t){var r=this.layer,n=new i.LayerEvent({type:e,message:t||"",layer:r});n.addProperty("view",this.view),n.addProperty("layerView",this),r.fire(e,n),this.view.fire(e,n)}}]),t}();Object.defineProperties(c.prototype,{innerView:{get:function(){return this.view.getInnerView()}}}),t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMapGISBaseUrl=t.buildModuleUrl=t.decryptIGS=t.formatWebTileUrl=t.LayerBaseUrlRegExp=t.ServerBaseUrlRegExp=t.BaseRegExp=t.deleteNullValue=t.ServerUtil=t.UrlUtil=t.getFunctionArguments=t.TileMonitor=t.TimeInterval=t.TimeInfo=t.TimeExtent=t.EngineType=t.RasterInterpolationType=t.NormalizationType=t.TemporalUnit=t.getLayersExtent=t.getCrsOptions=t.getCrsOptionsBySpatialReference=t.getLayerViewsGeographicExtent=t.getValidLayers=t.isLayerViewValid=t.ExpressionParser=t.VectorTileLayer=t.TileSliceType=t.TDTLayerType=t.VisualVariableType=t.SeverVectorTileSubLayerType=t.ColorNameToHexMap=t.GeometryFilter=t.IGSSceneOriginLayerType=t.convertIGSClippingString=t.RasterInfo=t.RasterFunction=t.IGSImageryTileLayer=t.IGSImageryLayer=t.VoxelFilter=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FetchRequest=t.ArcType=t.AreaUnits=t.LinearUnits=t.allSettled=t.inOrderPromise=t.debouncePromise=t.compareObject=t.throttle=t.getTileLayerNearestCenterAndScale=t.convertImageSourceToBase64=t.isWMTSReverse=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.ArcGISVectorTileSubLayer=t.ArcGISVectorTileLayer=t.StylePattern3D=t.ColorMaterial=void 0,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.Corporation=t.WMTSCorporation=t.TileInfoUtil=t.BaseFeatureLayerView=t.createSimpleFillSymbolCanvas=t.createSimpleMarkerSymbolCanvas=t.ServiceConfigResponseInterceptors=t.ServiceConfigRequestInterceptors=t.ServiceConfigToken=t.Config=t.editGeometryByArc3=t.editFeatureByArc3=t.Geometry=t.RadiusUnit=t.formatBaseUrl=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=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.limitExtentToSRSMaxExtent=t.getExtendExtentByPixel=t.createGeometry=t.normalize=t.defined=t.defaultValue=t.getGUID=void 0,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.BaseSwipeTool=t.SwipeMode=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.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.SubLayerType=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.CollectionFlattener=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=t.Polygon=t.Extent=t.SketchEditorEvent=t.SketchStyle=t.getTipTextByEditOption=t.SketchFreehandPolygonDrawTool=t.SketchFreehandPolylineDrawTool=t.SketchExtentDrawTool=t.SketchCircleDrawTool=t.SketchPolygonDrawTool=t.SketchPolylineDrawTool=t.SketchPointDrawTool=t.SketchBaseDrawTool=t.SketchEditor3D=void 0,t.SketchEditor=t.CoordnateTransform=t.WMTSStyle=t.Projection=t.Layer=t.S3MTilesCacheLayer=t.VideoLayer=t.TerrainCacheLayer=t.Cesium3DTilesCacheLayer=t.GeoJSONLayer=t.GraphicsLayer=t.GroupLayer=t.MapVLayer=t.EchartsLayer=t.SubLayer=t.ISSceneModelCacheSubLayer=t.ISSceneSubLayer=t.ISSceneLayer=t.FeatureFilter=t.IGSFeatureLayer=t.BaseScene=t.ISScene=t.IGSScene=t.IGSTileLayer=t.IGSSceneTerrainSubLayer=t.IGSSceneMapRefSubLayer=t.IGSSceneModelCacheSubLayer=t.IGSSceneLabelSubLayer=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.ISSceneServer=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(124)),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(19)),o=r(285),a=r(318),s=r(13),u=r(119),l=r(34),c=r(3),f=r(2),h=r(0),p=r(1),d=r(14),y=r(559),g=r(214),v=r(572),m=r(573);window.zondy={};var _=window.zondy;_.service={},_.geometry={},_.layer={},_.enum={},_.symbol={},_.widget={},_.tool={},_.renderer={},_.renderer.visualvariable={},_.themelayer={},_.util={},_.video={},_.LOGTYPE="warningAndError",_.VERSION="17.6.20",_.service.FetchServer=s.FetchServer,_.service.RequestInterceptor=s.RequestInterceptor,_.service.ResponseInterceptor=s.ResponseInterceptor,_.service.MapServer=s.MapServer,_.service.FeatureServer=s.FeatureServer,_.service.M3DServer=s.M3DServer,_.service.ImageServer=s.ImageServer,_.service.GeometryServer=s.GeometryServer,_.service.AddressServer=s.AddressServer,_.service.Cesium3DTilesServer=s.Cesium3DTilesServer,_.service.PoiServer=s.PoiServer,_.service.TerrainServer=s.TerrainServer,_.service.SecurityServer=s.SecurityServer,_.service.RootServer=s.RootServer,_.service.TileServer=s.TileServer,_.service.VectorTileServer=s.VectorTileServer,_.service.PlotServer=s.PlotServer,_.service.ResourceServer=s.ResourceServer,_.service.SceneServer=s.SceneServer,_.service.WMSServer=s.WMSServer,_.service.WMTSServer=s.WMTSServer,_.service.WFSServer=s.WFSServer,_.service.ArcGISMapServer=s.ArcGISMapServer,_.service.ThemeServer=s.ThemeServer,_.service.ArcGISGeometryServer=s.ArcGISGeometryServer,_.service.ArcGISFeatureServer=s.ArcGISFeatureServer,_.service.ArcGISVectorTileServer=s.ArcGISVectorTileServer,_.service.Config=s.Config,_.service.FetchRequest=s.FetchRequest,_.service.GeometryFilter=s.GeometryFilter,_.service.Interceptor=s.Interceptor,_.service.WorkFlowServer=s.WorkFlowServer,_.service.BaseServer=s.BaseServer,_.service.RequestConfig=s.RequestConfig,_.service.ISSceneServer=s.ISSceneServer,_.themelayer.CAllOtherDataItemInfoSource=s.CAllOtherDataItemInfoSource,_.themelayer.CAnnInfo=s.CAnnInfo,_.themelayer.CChartLabelFormat=s.CChartLabelFormat,_.themelayer.CChartTheme=s.CChartTheme,_.themelayer.CChartThemeInfo=s.CChartThemeInfo,_.themelayer.CChartThemeRepresentInfo=s.CChartThemeRepresentInfo,_.themelayer.CChartType=s.CChartType,_.themelayer.CDotDensityTheme=s.CDotDensityTheme,_.themelayer.CFourColorTheme=s.CFourColorTheme,_.themelayer.CGraduatedSymbolTheme=s.CGraduatedSymbolTheme,_.themelayer.CLinInfo=s.CLinInfo,_.themelayer.CMultiClassTheme=s.CMultiClassTheme,_.themelayer.CPntInfo=s.CPntInfo,_.themelayer.CRandomTheme=s.CRandomTheme,_.themelayer.CRangeTheme=s.CRangeTheme,_.themelayer.CRangeThemeInfo=s.CRangeThemeInfo,_.themelayer.CRegInfo=s.CRegInfo,_.themelayer.CSimpleTheme=s.CSimpleTheme,_.themelayer.CTheme=s.CTheme,_.themelayer.CThemeInfo=s.CThemeInfo,_.themelayer.CUniqueTheme=s.CUniqueTheme,_.themelayer.CUniqueThemeInfo=s.CUniqueThemeInfo,_.themelayer.ExpInfo=s.ExpInfo,_.themelayer.FolderInfo=s.FolderInfo,_.themelayer.FolderInfoAttribute=s.FolderInfoAttribute,_.themelayer.ItemValue=s.ItemValue,_.themelayer.ThemesInfo=s.ThemesInfo,_.layer.WMTSLayer=l.WMTSLayer,_.layer.WMSLayer=l.WMSLayer,_.layer.WMSSubLayer=l.WMSSubLayer,_.layer.WFSLayer=l.WFSLayer,_.layer.WMTSSubLayer=l.WMTSSubLayer,_.layer.VectorTileLayer=l.VectorTileLayer,_.layer.IGSVectorTileLayer=l.IGSVectorTileLayer,_.layer.IGSVectorTileSubLayer=l.IGSVectorTileSubLayer,_.layer.IGSMapImageLayer=l.IGSMapImageLayer,_.layer.IGSMapImageSubLayer=l.IGSMapImageSubLayer,_.layer.IGSSceneLayer=l.IGSSceneLayer,_.layer.IGSSceneSubLayer=l.IGSSceneSubLayer,_.layer.IGSSceneLabelSubLayer=l.IGSSceneLabelSubLayer,_.layer.IGSSceneModelCacheSubLayer=l.IGSSceneModelCacheSubLayer,_.layer.IGSSceneMapRefSubLayer=l.IGSSceneMapRefSubLayer,_.layer.IGSSceneTerrainSubLayer=l.IGSSceneTerrainSubLayer,_.layer.IGSTileLayer=l.IGSTileLayer,_.layer.IGSScene=l.IGSScene,_.layer.ISScene=l.ISScene,_.layer.BaseScene=l.BaseScene,_.layer.IGSFeatureLayer=l.IGSFeatureLayer,_.layer.FeatureFilter=l.FeatureFilter,_.layer.EchartsLayer=l.EchartsLayer,_.layer.MapVLayer=l.MapVLayer,_.layer.GroupLayer=l.GroupLayer,_.layer.GraphicsLayer=l.GraphicsLayer,_.layer.GeoJSONLayer=l.GeoJSONLayer,_.layer.Cesium3DTilesCacheLayer=l.Cesium3DTilesCacheLayer,_.layer.TerrainCacheLayer=l.TerrainCacheLayer,_.layer.VideoLayer=l.VideoLayer,_.layer.LabelClass=l.LabelClass,_.layer.ArcGISMapImageLayer=l.ArcGISMapImageLayer,_.layer.ArcGISMapImageSubLayer=l.ArcGISMapImageSubLayer,_.layer.M3DModelCacheLayer=l.M3DModelCacheLayer,_.layer.ArcGISTileLayer=l.ArcGISTileLayer,_.layer.Layer=l.Layer,_.layer.ArcGISVectorTileLayer=l.ArcGISVectorTileLayer,_.layer.ArcGISVectorTileSubLayer=l.ArcGISVectorTileSubLayer,_.layer.WebTileLayer=l.WebTileLayer,_.layer.TileInfo=l.TileInfo,_.layer.LOD=l.LOD,_.layer.VoxelFilter=l.VoxelFilter,_.layer.IGSImageryLayer=l.IGSImageryLayer,_.layer.IGSImageryTileLayer=l.IGSImageryTileLayer,_.layer.RasterFunction=l.RasterFunction,_.layer.RasterInfo=l.RasterInfo,_.layer.TileLayer=l.TileLayer,_.layer.UnknownLayer=l.UnknownLayer,_.layer.OverlayLayer=l.OverlayLayer,_.layer.OGCLayer=l.OGCLayer,_.layer.ISSceneLayer=l.ISSceneLayer,_.layer.ISSceneSubLayer=l.ISSceneSubLayer,_.layer.ISSceneModelCacheSubLayer=l.ISSceneModelCacheSubLayer,_.layer.SubLayer=l.SubLayer,_.layer.S3MTilesCacheLayer=l.S3MTilesCacheLayer,_.Map=l.Map,_.Basemap=l.Basemap,_.SpatialReference=c.SpatialReference,_.Color=f.Color,_.Collection=f.Collection,_.CollectionFlattener=f.CollectionFlattener,_.FeatureSet=f.FeatureSet,_.Feature=f.Feature,_.ElevationInfo=f.ElevationInfo,_.ProjectInfo=f.ProjectInfo,_.OutStatistic=f.OutStatistic,_.TileMatrixSet=f.TileMatrixSet,_.ProjectInfoBySrsID=f.ProjectInfoBySrsID,_.FeatureExpressionInfo=f.FeatureExpressionInfo,_.BaseView=y.BaseView,_.MapView=y.MapView,_.SceneView=y.SceneView,_.BaseFeatureLayerView=y.BaseFeatureLayerView,_.BaseRendererLayerView=y.BaseRendererLayerView,_.GroupLayerView=y.GroupLayerView,_.WMTSStyle=f.WMTSStyle,_.CAttDataRow=s.CAttDataRow,_.CAttStruct=s.CAttStruct,_.TimeExtent=f.TimeExtent,_.TimeInfo=f.TimeInfo,_.TimeInterval=f.TimeInterval,_.TileMonitor=f.TileMonitor,_.renderer.UniqueValueRenderer=l.UniqueValueRenderer,_.renderer.ClassBreakRenderer=l.ClassBreakRenderer,_.renderer.SimpleRenderer=l.SimpleRenderer,_.renderer.ClusterRenderer=l.ClusterRenderer,_.renderer.RandomRenderer=l.RandomRenderer,_.renderer.RankRenderer=l.RankRenderer,_.renderer.HeatmapRenderer=l.HeatmapRenderer,_.renderer.BaseRenderer=l.BaseRenderer,_.renderer.HeatmapColorStop=l.HeatmapColorStop,_.renderer.visualvariable.SizeVariable=l.SizeVariable,_.renderer.visualvariable.ColorVariable=l.ColorVariable,_.renderer.visualvariable.OpacityVariable=l.OpacityVariable,_.renderer.visualvariable.VisualVariable=l.VisualVariable,_.geometry.Extent=c.Extent,_.geometry.Polygon=c.Polygon,_.geometry.MultiPolygon=c.MultiPolygon,_.geometry.LineString=c.LineString,_.geometry.MultiLineString=c.MultiLineString,_.geometry.Point=c.Point,_.geometry.MultiPoint=c.MultiPoint,_.geometry.Circle=c.Circle,_.geometry.GeometryEngine=c.GeometryEngine,_.geometry.Geometry=c.Geometry,_.geometry.Projection=f.Projection,_.geometry.Proj4=n.default,_.geometry.T=i,_.enum.ReturnFormat=p.ReturnFormat,_.enum.FetchMethod=p.FetchMethod,_.enum.LayerEventType=p.LayerEventType,_.enum.MapEventType=p.MapEventType,_.enum.StatisticType=p.StatisticType,_.enum.SpatialRelation=p.SpatialRelation,_.enum.CustomWKID=p.CustomWKID,_.enum.LayerType=p.LayerType,_.enum.SubLayerType=p.SubLayerType,_.enum.TokenAttachType=p.TokenAttachType,_.enum.IGSGeometryType=p.IGSGeometryType,_.enum.LogType=p.LogType,_.enum.LoadStatus=p.LoadStatus,_.enum.ViewEventType=p.ViewEventType,_.enum.LengthUnit=p.LengthUnit,_.enum.AngleUnit=p.AngleUnit,_.enum.RendererType=p.RendererType,_.enum.VectorTileGeometryType=p.VectorTileGeometryType,_.enum.VideoSourceType=p.VideoSourceType,_.enum.SketchDataType=p.SketchDataType,_.enum.SketchEditMode=p.SketchEditMode,_.enum.SketchEditorEventType=p.SketchEditorEventType,_.enum.SketchEditorState=p.SketchEditorState,_.enum.SketchEditorToolEventType=p.SketchEditorToolEventType,_.enum.SymbolType=p.SymbolType,_.enum.IGSSymbolType=p.IGSSymbolType,_.enum.ElevationMode=p.ElevationMode,_.enum.HorizontalAlignment=p.HorizontalAlignment,_.enum.VerticalAlignment=p.VerticalAlignment,_.enum.SceneMode=p.SceneMode,_.enum.ShadowMode=p.ShadowMode,_.enum.SwipeMode=p.SwipeMode,_.enum.UrlServerType=p.UrlServerType,_.enum.PictureFormat=p.PictureFormat,_.enum.RadiusUnit=p.RadiusUnit,_.enum.WMTSCorporation=p.WMTSCorporation,_.enum.Corporation=p.Corporation,_.enum.Symbol3DLayerType=p.Symbol3DLayerType,_.enum.LineCapType=p.LineCapType,_.enum.LineJoinType=p.LineJoinType,_.enum.LineMarkerPlacement=p.LineMarkerPlacement,_.enum.LineMarkerStyle=p.LineMarkerStyle,_.enum.LinePatternStyle=p.LinePatternStyle,_.enum.AnchorType=p.AnchorType,_.enum.ProfileType=p.ProfileType,_.enum.PatternStyle=p.PatternStyle,_.enum.WaterbodySize=p.WaterbodySize,_.enum.WaveStrength=p.WaveStrength,_.enum.MaterialType=p.MaterialType,_.enum.LinearUnits=p.LinearUnits,_.enum.AreaUnits=p.AreaUnits,_.enum.ArcType=p.ArcType,_.enum.IGSSceneOriginLayerType=p.IGSSceneOriginLayerType,_.enum.ColorNameToHexMap=p.ColorNameToHexMap,_.enum.SeverVectorTileSubLayerType=p.SeverVectorTileSubLayerType,_.enum.GeometryType=p.GeometryType,_.enum.VisualVariableType=p.VisualVariableType,_.enum.TDTLayerType=p.TDTLayerType,_.enum.TileSliceType=p.TileSliceType,_.enum.TemporalUnit=p.TemporalUnit,_.enum.NormalizationType=p.NormalizationType,_.enum.RasterInterpolationType=p.RasterInterpolationType,_.enum.EngineType=p.EngineType,_.util.formatBaseUrl=s.formatBaseUrl,_.util.ServiceConfigToken=s.ServiceConfigToken,_.util.ServiceConfigRequestInterceptors=s.ServiceConfigRequestInterceptors,_.util.ServiceConfigResponseInterceptors=s.ServiceConfigResponseInterceptors,_.util.convertIGSClippingString=s.convertIGSClippingString,_.util.getUrlType=l.getUrlType,_.util.is4326=l.is4326,_.util.isCustomSP=l.isCustomSP,_.util.getIGSDynamicLayer=l.getIGSDynamicLayer,_.util.setElevationInfo=l.setElevationInfo,_.util.TileInfoUtil=l.TileInfoUtil,_.util.getZoomOffset=l.getZoomOffset,_.util.appendUrlParams=l.appendUrlParams,_.util.getFullBaseUrl=l.getFullBaseUrl,_.util.editFeatureByArc3=c.editFeatureByArc3,_.util.editGeometryByArc3=c.editGeometryByArc3,_.util.CoordnateTransform=f.CoordnateTransform,_.util.getFeaturesFromFeatureSet=f.getFeaturesFromFeatureSet,_.util.EPSG=f.EPSG,_.util.extend=h.extend,_.util.isArray=h.isArray,_.util.isNumber=h.isNumber,_.util.isInTheSameDomain=h.isInTheSameDomain,_.util.transformResult=h.transformResult,_.util.urlAppend=h.urlAppend,_.util.getParameterString=h.getParameterString,_.util.bind=h.bind,_.util.getGUID=h.getGUID,_.util.defaultValue=h.defaultValue,_.util.defined=h.defined,_.util.normalize=h.normalize,_.util.createGeometry=h.createGeometry,_.util.getExtendExtentByPixel=h.getExtendExtentByPixel,_.util.limitExtentToSRSMaxExtent=h.limitExtentToSRSMaxExtent,_.util.isNull=h.isNull,_.util.getGeometryParameter=h.getGeometryParameter,_.util.getOutStatisticsParameter=h.getOutStatisticsParameter,_.util.Log=h.Log,_.util.isString=h.isString,_.util.deepClone=h.deepClone,_.util.isBoolean=h.isBoolean,_.util.extendDeep=h.extendDeep,_.util.newGuid=h.newGuid,_.util.formatPoints=h.formatPoints,_.util.returnPoint=h.returnPoint,_.util.cloneObject=h.cloneObject,_.util.notNULL=h.notNULL,_.util.isObject=h.isObject,_.util.getVideoType=h.getVideoType,_.util.toJSON=h.toJSON,_.util.getBaseUrl=h.getBaseUrl,_.util.inputCss=h.inputCss,_.util.getProjectionSrs=h.getProjectionSrs,_.util.isWMSReverse=h.isWMSReverse,_.util.isWMTSReverse=h.isWMTSReverse,_.util.convertImageSourceToBase64=h.convertImageSourceToBase64,_.util.getTileLayerNearestCenterAndScale=h.getTileLayerNearestCenterAndScale,_.util.throttle=h.throttle,_.util.compareObject=h.compareObject,_.util.debouncePromise=h.debouncePromise,_.util.inOrderPromise=h.inOrderPromise,_.util.allSettled=h.allSettled,_.util.ExpressionParser=h.ExpressionParser,_.util.RendererUtil=y.RendererUtil,_.util.createSimpleMarkerSymbolCanvas=v.createSimpleMarkerSymbolCanvas,_.util.createSimpleFillSymbolCanvas=v.createSimpleFillSymbolCanvas,_.util.isLayerViewValid=u.isLayerViewValid,_.util.getValidLayers=u.getValidLayers,_.util.getLayerViewsGeographicExtent=u.getLayerViewsGeographicExtent,_.util.getCrsOptionsBySpatialReference=u.getCrsOptionsBySpatialReference,_.util.getCrsOptions=u.getCrsOptions,_.util.getLayersExtent=u.getLayersExtent,_.util.getFunctionArguments=h.getFunctionArguments,_.util.deleteNullValue=h.deleteNullValue,_.util.ServerUtil=s.ServerUtil,_.util.UrlUtil=s.UrlUtil,_.util.BaseRegExp=s.BaseRegExp,_.util.ServerBaseUrlRegExp=s.ServerBaseUrlRegExp,_.util.LayerBaseUrlRegExp=s.LayerBaseUrlRegExp,_.util.formatWebTileUrl=l.formatWebTileUrl,_.util.decryptIGS=o.decryptIGS,_.util.buildModuleUrl=h.buildModuleUrl,_.util.getMapGISBaseUrl=h.getMapGISBaseUrl,_.symbol.SimpleFillSymbol=d.SimpleFillSymbol,_.symbol.SimpleLineSymbol=d.SimpleLineSymbol,_.symbol.SimpleMarkerSymbol=d.SimpleMarkerSymbol,_.symbol.TextSymbol=d.TextSymbol,_.symbol.Symbol=d.Symbol,_.symbol.PictureMarkerSymbol=d.PictureMarkerSymbol,_.symbol.PictureFillSymbol=d.PictureFillSymbol,_.symbol.MapGISTextSymbol=d.MapGISTextSymbol,_.symbol.Symbol3D=d.Symbol3D,_.symbol.LabelSymbol3D=d.LabelSymbol3D,_.symbol.LineSymbol3D=d.LineSymbol3D,_.symbol.PointSymbol3D=d.PointSymbol3D,_.symbol.PolygonSymbol3D=d.PolygonSymbol3D,_.symbol.LineCallout3D=d.LineCallout3D,_.symbol.Callout3D=d.Callout3D,_.symbol.Symbol3DVerticalOffset=d.Symbol3DVerticalOffset,_.symbol.Symbol3DLayer=d.Symbol3DLayer,_.symbol.LineStyleMarker3D=d.LineStyleMarker3D,_.symbol.LineStylePattern3D=d.LineStylePattern3D,_.symbol.LineSymbol3DLayer=d.LineSymbol3DLayer,_.symbol.PathSymbol3DLayer=d.PathSymbol3DLayer,_.symbol.FillSymbol3DLayer=d.FillSymbol3DLayer,_.symbol.FillSymbol3DOutline=d.FillSymbol3DOutline,_.symbol.IconSymbol3DLayer=d.IconSymbol3DLayer,_.symbol.PointSymbol3DOutline=d.PointSymbol3DOutline,_.symbol.IconResource=d.IconResource,_.symbol.ObjectSymbol3DLayer=d.ObjectSymbol3DLayer,_.symbol.ExtrudeSymbol3DLayer=d.ExtrudeSymbol3DLayer,_.symbol.Edges3D=d.Edges3D,_.symbol.TextSymbol3DLayer=d.TextSymbol3DLayer,_.symbol.TextHalo=d.TextHalo,_.symbol.WaterSymbol3DLayer=d.WaterSymbol3DLayer,_.symbol.ColorMaterial=d.ColorMaterial,_.symbol.StylePattern3D=d.StylePattern3D,_.symbol.Font=f.Font,_.tool.sketch={},_.tool.sketch.SketchStyle=g.SketchStyle,_.tool.sketch.SketchEditorEvent=g.SketchEditorEvent,_.tool.sketch.SketchEditor=g.SketchEditor,_.tool.sketch.SketchEditor3D=g.SketchEditor3D,_.tool.sketch.SketchBaseDrawTool=g.SketchBaseDrawTool,_.tool.sketch.SketchPointDrawTool=g.SketchPointDrawTool,_.tool.sketch.SketchPolylineDrawTool=g.SketchPolylineDrawTool,_.tool.sketch.SketchPolygonDrawTool=g.SketchPolygonDrawTool,_.tool.sketch.SketchCircleDrawTool=g.SketchCircleDrawTool,_.tool.sketch.SketchExtentDrawTool=g.SketchExtentDrawTool,_.tool.sketch.SketchFreehandPolylineDrawTool=g.SketchFreehandPolylineDrawTool,_.tool.sketch.SketchFreehandPolygonDrawTool=g.SketchFreehandPolygonDrawTool,_.tool.sketch.Utils={},_.tool.sketch.Utils.getTipTextByEditOption=g.getTipTextByEditOption,_.tool.BaseSwipeTool=a.BaseSwipeTool,window.Zondy={};var b=window.Zondy;b.Service=_.service,b.Geometry=_.geometry,b.Layer=_.layer,b.Enum=_.enum,b.Symbol=_.symbol,b.Widget=_.widget,b.Tool={},b.Tool.Sketch=_.widget.sketch,b.Renderer={},Object.keys(_.renderer).forEach(function(e){"visualvariable"!==e&&(b.Renderer[e]=_.renderer[e])}),b.Renderer.VisualVariable=_.renderer.visualvariable,b.Object={},b.Object.Theme={},b.Object.Theme.CAllOtherDataItemInfoSource=s.CAllOtherDataItemInfoSource,b.Object.Theme.CAnnInfo=s.CAnnInfo,b.Object.Theme.CChartLabelFormat=s.CChartLabelFormat,b.Object.Theme.CChartTheme=s.CChartTheme,b.Object.Theme.CChartThemeInfo=s.CChartThemeInfo,b.Object.Theme.CChartThemeRepresentInfo=s.CChartThemeRepresentInfo,b.Object.Theme.CChartType=s.CChartType,b.Object.Theme.CDotDensityTheme=s.CDotDensityTheme,b.Object.Theme.CFourColorTheme=s.CFourColorTheme,b.Object.Theme.CGraduatedSymbolTheme=s.CGraduatedSymbolTheme,b.Object.Theme.CLinInfo=s.CLinInfo,b.Object.Theme.CMultiClassTheme=s.CMultiClassTheme,b.Object.Theme.CPntInfo=s.CPntInfo,b.Object.Theme.CRandomTheme=s.CRandomTheme,b.Object.Theme.CRangeTheme=s.CRangeTheme,b.Object.Theme.CRangeThemeInfo=s.CRangeThemeInfo,b.Object.Theme.CRegInfo=s.CRegInfo,b.Object.Theme.CSimpleTheme=s.CSimpleTheme,b.Object.Theme.CTheme=s.CTheme,b.Object.Theme.CThemeInfo=s.CThemeInfo,b.Object.Theme.CUniqueTheme=s.CUniqueTheme,b.Object.Theme.CUniqueThemeInfo=s.CUniqueThemeInfo,b.Object.Theme.ExpInfo=s.ExpInfo,b.Object.Theme.FolderInfo=s.FolderInfo,b.Object.Theme.FolderInfoAttribute=s.FolderInfoAttribute,b.Object.Theme.ItemValue=s.ItemValue,b.Object.Theme.ThemesInfo=s.ThemesInfo,b.Object.CAttDataRow=s.CAttDataRow,b.Object.CAttStruct=s.CAttStruct,b.Utils=_.util,b.Map=l.Map,b.Basemap=l.Basemap,b.SpatialReference=c.SpatialReference,b.Color=f.Color,b.Font=f.Font,b.Collection=f.Collection,b.FeatureSet=f.FeatureSet,b.Feature=f.Feature,b.ElevationInfo=f.ElevationInfo,b.ProjectInfo=f.ProjectInfo,b.OutStatistic=f.OutStatistic,b.TileMatrixSet=f.TileMatrixSet,b.ProjectInfoBySrsID=f.ProjectInfoBySrsID,b.FeatureExpressionInfo=f.FeatureExpressionInfo,b.BaseView=y.BaseView,b.MapView=y.MapView,b.SceneView=y.SceneView,b.BaseFeatureLayerView=y.BaseFeatureLayerView,b.BaseRendererLayerView=y.BaseRendererLayerView,b.GroupLayerView=y.GroupLayerView,b.WMTSStyle=f.WMTSStyle,b.SketchPolygonDrawTool=g.SketchPolygonDrawTool,b.SketchStyle=g.SketchStyle,b.LogType=_.LOGTYPE,b.Version=_.VERSION;var S={FetchServer:s.FetchServer,RequestInterceptor:s.RequestInterceptor,ResponseInterceptor:s.ResponseInterceptor,MapServer:s.MapServer,FeatureServer:s.FeatureServer,M3DServer:s.M3DServer,ImageServer:s.ImageServer,GeometryServer:s.GeometryServer,AddressServer:s.AddressServer,Cesium3DTilesServer:s.Cesium3DTilesServer,PoiServer:s.PoiServer,TerrainServer:s.TerrainServer,SecurityServer:s.SecurityServer,RootServer:s.RootServer,TileServer:s.TileServer,VectorTileServer:s.VectorTileServer,PlotServer:s.PlotServer,ResourceServer:s.ResourceServer,SceneServer:s.SceneServer,WMSServer:s.WMSServer,WMTSServer:s.WMTSServer,WFSServer:s.WFSServer,ArcGISMapServer:s.ArcGISMapServer,ISSceneServer:s.ISSceneServer,CAllOtherDataItemInfoSource:s.CAllOtherDataItemInfoSource,CAnnInfo:s.CAnnInfo,CChartLabelFormat:s.CChartLabelFormat,CChartTheme:s.CChartTheme,CChartThemeInfo:s.CChartThemeInfo,CChartThemeRepresentInfo:s.CChartThemeRepresentInfo,CChartType:s.CChartType,CDotDensityTheme:s.CDotDensityTheme,CFourColorTheme:s.CFourColorTheme,CGraduatedSymbolTheme:s.CGraduatedSymbolTheme,CLinInfo:s.CLinInfo,CMultiClassTheme:s.CMultiClassTheme,CPntInfo:s.CPntInfo,CRandomTheme:s.CRandomTheme,CRangeTheme:s.CRangeTheme,CRangeThemeInfo:s.CRangeThemeInfo,CRegInfo:s.CRegInfo,CSimpleTheme:s.CSimpleTheme,CTheme:s.CTheme,CThemeInfo:s.CThemeInfo,CUniqueTheme:s.CUniqueTheme,CUniqueThemeInfo:s.CUniqueThemeInfo,ExpInfo:s.ExpInfo,FolderInfo:s.FolderInfo,FolderInfoAttribute:s.FolderInfoAttribute,ItemValue:s.ItemValue,ThemeServer:s.ThemeServer,ThemesInfo:s.ThemesInfo,ArcGISGeometryServer:s.ArcGISGeometryServer,ArcGISFeatureServer:s.ArcGISFeatureServer,ArcGISVectorTileServer:s.ArcGISVectorTileServer,Map:l.Map,Basemap:l.Basemap,ArcGISMapImageLayer:l.ArcGISMapImageLayer,M3DModelCacheLayer:l.M3DModelCacheLayer,ArcGISMapImageSubLayer:l.ArcGISMapImageSubLayer,ArcGISTileLayer:l.ArcGISTileLayer,WMTSLayer:l.WMTSLayer,WMSLayer:l.WMSLayer,WMSSubLayer:l.WMSSubLayer,WFSLayer:l.WFSLayer,WMTSSubLayer:l.WMTSSubLayer,IGSVectorTileLayer:l.IGSVectorTileLayer,IGSVectorTileSubLayer:l.IGSVectorTileSubLayer,IGSMapImageLayer:l.IGSMapImageLayer,IGSMapImageSubLayer:l.IGSMapImageSubLayer,IGSSceneLayer:l.IGSSceneLayer,IGSSceneSubLayer:l.IGSSceneSubLayer,IGSSceneLabelSubLayer:l.IGSSceneLabelSubLayer,IGSSceneModelCacheSubLayer:l.IGSSceneModelCacheSubLayer,IGSSceneMapRefSubLayer:l.IGSSceneMapRefSubLayer,IGSSceneTerrainSubLayer:l.IGSSceneTerrainSubLayer,IGSTileLayer:l.IGSTileLayer,IGSScene:l.IGSScene,ISScene:l.ISScene,BaseScene:l.BaseScene,IGSFeatureLayer:l.IGSFeatureLayer,FeatureFilter:l.FeatureFilter,ISSceneLayer:l.ISSceneLayer,ISSceneSubLayer:l.ISSceneSubLayer,ISSceneModelCacheSubLayer:l.ISSceneModelCacheSubLayer,SubLayer:l.SubLayer,EchartsLayer:l.EchartsLayer,MapVLayer:l.MapVLayer,GroupLayer:l.GroupLayer,GraphicsLayer:l.GraphicsLayer,GeoJSONLayer:l.GeoJSONLayer,Cesium3DTilesCacheLayer:l.Cesium3DTilesCacheLayer,TerrainCacheLayer:l.TerrainCacheLayer,VideoLayer:l.VideoLayer,S3MTilesCacheLayer:l.S3MTilesCacheLayer,Layer:l.Layer,Projection:f.Projection,WMTSStyle:f.WMTSStyle,CoordnateTransform:f.CoordnateTransform,SketchEditor:g.SketchEditor,SketchEditor3D:g.SketchEditor3D,SketchBaseDrawTool:g.SketchBaseDrawTool,SketchPointDrawTool:g.SketchPointDrawTool,SketchPolylineDrawTool:g.SketchPolylineDrawTool,SketchPolygonDrawTool:g.SketchPolygonDrawTool,SketchCircleDrawTool:g.SketchCircleDrawTool,SketchExtentDrawTool:g.SketchExtentDrawTool,SketchFreehandPolylineDrawTool:g.SketchFreehandPolylineDrawTool,SketchFreehandPolygonDrawTool:g.SketchFreehandPolygonDrawTool,getTipTextByEditOption:g.getTipTextByEditOption,SketchStyle:g.SketchStyle,SketchEditorEvent:g.SketchEditorEvent,Extent:c.Extent,Polygon:c.Polygon,LineString:c.LineString,Point:c.Point,Circle:c.Circle,MultiPolygon:c.MultiPolygon,MultiLineString:c.MultiLineString,MultiPoint:c.MultiPoint,GeometryEngine:c.GeometryEngine,Color:f.Color,Font:f.Font,LayerEvent:f.LayerEvent,Event:f.Event,Zondy:b,zondy:_,Evented:f.Evented,FeatureRender:f.FeatureRender,ErrorEvent:f.ErrorEvent,Collection:f.Collection,CollectionFlattener:f.CollectionFlattener,FeatureSet:f.FeatureSet,Feature:f.Feature,getFeaturesFromFeatureSet:f.getFeaturesFromFeatureSet,ReturnFormat:p.ReturnFormat,FetchMethod:p.FetchMethod,LayerEventType:p.LayerEventType,MapEventType:p.MapEventType,StatisticType:p.StatisticType,SpatialRelation:p.SpatialRelation,CustomWKID:p.CustomWKID,GeometryType:p.GeometryType,LayerType:p.LayerType,SubLayerType:p.SubLayerType,TokenAttachType:p.TokenAttachType,IGSGeometryType:p.IGSGeometryType,LogType:p.LogType,LoadStatus:p.LoadStatus,ViewEventType:p.ViewEventType,LengthUnit:p.LengthUnit,AngleUnit:p.AngleUnit,RendererType:p.RendererType,VectorTileGeometryType:p.VectorTileGeometryType,VideoSourceType:p.VideoSourceType,SketchDataType:p.SketchDataType,SketchEditMode:p.SketchEditMode,SketchEditorEventType:p.SketchEditorEventType,SketchEditorState:p.SketchEditorState,SketchEditorToolEventType:p.SketchEditorToolEventType,SymbolType:p.SymbolType,IGSSymbolType:p.IGSSymbolType,ElevationMode:p.ElevationMode,ElevationInfo:f.ElevationInfo,ProjectInfo:f.ProjectInfo,OutStatistic:f.OutStatistic,TileMatrixSet:f.TileMatrixSet,ProjectInfoBySrsID:f.ProjectInfoBySrsID,FeatureExpressionInfo:f.FeatureExpressionInfo,HorizontalAlignment:p.HorizontalAlignment,VerticalAlignment:p.VerticalAlignment,SceneMode:p.SceneMode,ShadowMode:p.ShadowMode,SwipeMode:p.SwipeMode,BaseSwipeTool:a.BaseSwipeTool,SimpleFillSymbol:d.SimpleFillSymbol,SimpleLineSymbol:d.SimpleLineSymbol,SimpleMarkerSymbol:d.SimpleMarkerSymbol,TextSymbol:d.TextSymbol,Symbol:d.Symbol,PictureMarkerSymbol:d.PictureMarkerSymbol,PictureFillSymbol:d.PictureFillSymbol,MapGISTextSymbol:d.MapGISTextSymbol,UniqueValueRenderer:l.UniqueValueRenderer,ClassBreakRenderer:l.ClassBreakRenderer,SimpleRenderer:l.SimpleRenderer,ClusterRenderer:l.ClusterRenderer,RandomRenderer:l.RandomRenderer,RankRenderer:l.RankRenderer,HeatmapRenderer:l.HeatmapRenderer,BaseRenderer:l.BaseRenderer,getIGSDynamicLayer:l.getIGSDynamicLayer,extend:h.extend,isArray:h.isArray,isNumber:h.isNumber,isInTheSameDomain:h.isInTheSameDomain,transformResult:h.transformResult,urlAppend:h.urlAppend,getParameterString:h.getParameterString,bind:h.bind,getGUID:h.getGUID,defaultValue:h.defaultValue,defined:h.defined,normalize:h.normalize,createGeometry:h.createGeometry,getExtendExtentByPixel:h.getExtendExtentByPixel,limitExtentToSRSMaxExtent:h.limitExtentToSRSMaxExtent,isNull:h.isNull,getGeometryParameter:h.getGeometryParameter,getOutStatisticsParameter:h.getOutStatisticsParameter,Log:h.Log,isString:h.isString,deepClone:h.deepClone,isBoolean:h.isBoolean,extendDeep:h.extendDeep,newGuid:h.newGuid,formatPoints:h.formatPoints,returnPoint:h.returnPoint,cloneObject:h.cloneObject,notNULL:h.notNULL,isObject:h.isObject,getVideoType:h.getVideoType,toJSON:h.toJSON,getBaseUrl:h.getBaseUrl,inputCss:h.inputCss,BaseView:y.BaseView,MapView:y.MapView,SceneView:y.SceneView,BaseGraphicsLayerView:y.BaseGraphicsLayerView,BaseRendererLayerView:y.BaseRendererLayerView,GroupLayerView:y.GroupLayerView,LayerView:y.LayerView,SpatialReference:c.SpatialReference,UrlServerType:p.UrlServerType,PictureFormat:p.PictureFormat,getUrlType:l.getUrlType,is4326:l.is4326,isCustomSP:l.isCustomSP,EPSG:f.EPSG,proj4:n.default,T:i,formatBaseUrl:s.formatBaseUrl,RadiusUnit:p.RadiusUnit,Geometry:c.Geometry,editFeatureByArc3:c.editFeatureByArc3,editGeometryByArc3:c.editGeometryByArc3,Config:s.Config,ServiceConfigToken:s.ServiceConfigToken,ServiceConfigRequestInterceptors:s.ServiceConfigRequestInterceptors,ServiceConfigResponseInterceptors:s.ServiceConfigResponseInterceptors,createSimpleMarkerSymbolCanvas:v.createSimpleMarkerSymbolCanvas,createSimpleFillSymbolCanvas:v.createSimpleFillSymbolCanvas,BaseFeatureLayerView:y.BaseFeatureLayerView,TileInfoUtil:l.TileInfoUtil,WMTSCorporation:p.WMTSCorporation,Corporation:p.Corporation,setElevationInfo:l.setElevationInfo,LabelClass:l.LabelClass,HeatmapColorStop:l.HeatmapColorStop,SizeVariable:l.SizeVariable,ColorVariable:l.ColorVariable,OpacityVariable:l.OpacityVariable,VisualVariable:l.VisualVariable,RendererUtil:y.RendererUtil,Symbol3D:d.Symbol3D,LabelSymbol3D:d.LabelSymbol3D,LineSymbol3D:d.LineSymbol3D,PointSymbol3D:d.PointSymbol3D,PolygonSymbol3D:d.PolygonSymbol3D,LineCallout3D:d.LineCallout3D,Callout3D:d.Callout3D,Symbol3DVerticalOffset:d.Symbol3DVerticalOffset,Symbol3DLayer:d.Symbol3DLayer,Symbol3DLayerType:p.Symbol3DLayerType,LineCapType:p.LineCapType,LineJoinType:p.LineJoinType,LineMarkerPlacement:p.LineMarkerPlacement,LineMarkerStyle:p.LineMarkerStyle,LineStyleMarker3D:d.LineStyleMarker3D,LinePatternStyle:p.LinePatternStyle,LineStylePattern3D:d.LineStylePattern3D,LineSymbol3DLayer:d.LineSymbol3DLayer,PathSymbol3DLayer:d.PathSymbol3DLayer,AnchorType:p.AnchorType,ProfileType:p.ProfileType,FillSymbol3DLayer:d.FillSymbol3DLayer,FillSymbol3DOutline:d.FillSymbol3DOutline,PatternStyle:p.PatternStyle,IconSymbol3DLayer:d.IconSymbol3DLayer,PointSymbol3DOutline:d.PointSymbol3DOutline,IconResource:d.IconResource,ObjectSymbol3DLayer:d.ObjectSymbol3DLayer,ExtrudeSymbol3DLayer:d.ExtrudeSymbol3DLayer,Edges3D:d.Edges3D,TextSymbol3DLayer:d.TextSymbol3DLayer,TextHalo:d.TextHalo,WaterSymbol3DLayer:d.WaterSymbol3DLayer,WaterbodySize:p.WaterbodySize,WaveStrength:p.WaveStrength,MaterialType:p.MaterialType,ColorMaterial:d.ColorMaterial,StylePattern3D:d.StylePattern3D,ArcGISVectorTileLayer:l.ArcGISVectorTileLayer,ArcGISVectorTileSubLayer:l.ArcGISVectorTileSubLayer,WebTileLayer:l.WebTileLayer,getZoomOffset:l.getZoomOffset,FeatureCollection:l.FeatureCollection,CAttDataRow:s.CAttDataRow,CAttStruct:s.CAttStruct,Interceptor:s.Interceptor,WorkFlowServer:s.WorkFlowServer,TileLayer:l.TileLayer,BaseServer:s.BaseServer,RequestConfig:s.RequestConfig,OverlayLayer:l.OverlayLayer,OGCLayer:l.OGCLayer,UnknownLayer:l.UnknownLayer,getProjectionSrs:h.getProjectionSrs,isWMSReverse:h.isWMSReverse,isWMTSReverse:h.isWMTSReverse,convertImageSourceToBase64:h.convertImageSourceToBase64,getTileLayerNearestCenterAndScale:h.getTileLayerNearestCenterAndScale,throttle:h.throttle,compareObject:h.compareObject,debouncePromise:h.debouncePromise,inOrderPromise:h.inOrderPromise,allSettled:h.allSettled,LinearUnits:p.LinearUnits,AreaUnits:p.AreaUnits,ArcType:p.ArcType,FetchRequest:s.FetchRequest,TileInfo:l.TileInfo,appendUrlParams:l.appendUrlParams,getFullBaseUrl:l.getFullBaseUrl,LOD:l.LOD,VoxelFilter:l.VoxelFilter,IGSImageryLayer:l.IGSImageryLayer,IGSImageryTileLayer:l.IGSImageryTileLayer,RasterFunction:l.RasterFunction,RasterInfo:l.RasterInfo,convertIGSClippingString:s.convertIGSClippingString,IGSSceneOriginLayerType:p.IGSSceneOriginLayerType,GeometryFilter:s.GeometryFilter,ColorNameToHexMap:p.ColorNameToHexMap,VectorTileLayer:l.VectorTileLayer,SeverVectorTileSubLayerType:p.SeverVectorTileSubLayerType,ExpressionParser:h.ExpressionParser,VisualVariableType:p.VisualVariableType,TDTLayerType:p.TDTLayerType,TileSliceType:p.TileSliceType,isLayerViewValid:u.isLayerViewValid,getValidLayers:u.getValidLayers,getLayerViewsGeographicExtent:u.getLayerViewsGeographicExtent,getCrsOptionsBySpatialReference:u.getCrsOptionsBySpatialReference,getCrsOptions:u.getCrsOptions,getLayersExtent:u.getLayersExtent,TemporalUnit:p.TemporalUnit,NormalizationType:p.NormalizationType,RasterInterpolationType:p.RasterInterpolationType,EngineType:p.EngineType,TimeExtent:f.TimeExtent,TimeInfo:f.TimeInfo,TimeInterval:f.TimeInterval,TileMonitor:f.TileMonitor,getFunctionArguments:h.getFunctionArguments,UrlUtil:s.UrlUtil,ServerUtil:s.ServerUtil,deleteNullValue:h.deleteNullValue,BaseRegExp:s.BaseRegExp,ServerBaseUrlRegExp:s.ServerBaseUrlRegExp,LayerBaseUrlRegExp:s.LayerBaseUrlRegExp,formatWebTileUrl:l.formatWebTileUrl,buildModuleUrl:h.buildModuleUrl,getMapGISBaseUrl:h.getMapGISBaseUrl};window.MapGISCommon=S,(0,m.initMapGISEvn)(),t.FetchServer=s.FetchServer,t.RequestInterceptor=s.RequestInterceptor,t.ResponseInterceptor=s.ResponseInterceptor,t.MapServer=s.MapServer,t.FeatureServer=s.FeatureServer,t.M3DServer=s.M3DServer,t.ImageServer=s.ImageServer,t.GeometryServer=s.GeometryServer,t.AddressServer=s.AddressServer,t.Cesium3DTilesServer=s.Cesium3DTilesServer,t.PoiServer=s.PoiServer,t.TerrainServer=s.TerrainServer,t.SecurityServer=s.SecurityServer,t.RootServer=s.RootServer,t.TileServer=s.TileServer,t.VectorTileServer=s.VectorTileServer,t.PlotServer=s.PlotServer,t.ResourceServer=s.ResourceServer,t.SceneServer=s.SceneServer,t.WMSServer=s.WMSServer,t.WMTSServer=s.WMTSServer,t.WFSServer=s.WFSServer,t.ArcGISMapServer=s.ArcGISMapServer,t.ISSceneServer=s.ISSceneServer,t.CAllOtherDataItemInfoSource=s.CAllOtherDataItemInfoSource,t.CAnnInfo=s.CAnnInfo,t.CChartLabelFormat=s.CChartLabelFormat,t.CChartTheme=s.CChartTheme,t.CChartThemeInfo=s.CChartThemeInfo,t.CChartThemeRepresentInfo=s.CChartThemeRepresentInfo,t.CChartType=s.CChartType,t.CDotDensityTheme=s.CDotDensityTheme,t.CFourColorTheme=s.CFourColorTheme,t.CGraduatedSymbolTheme=s.CGraduatedSymbolTheme,t.CLinInfo=s.CLinInfo,t.CMultiClassTheme=s.CMultiClassTheme,t.CPntInfo=s.CPntInfo,t.CRandomTheme=s.CRandomTheme,t.CRangeTheme=s.CRangeTheme,t.CRangeThemeInfo=s.CRangeThemeInfo,t.CRegInfo=s.CRegInfo,t.CSimpleTheme=s.CSimpleTheme,t.CTheme=s.CTheme,t.CThemeInfo=s.CThemeInfo,t.CUniqueTheme=s.CUniqueTheme,t.CUniqueThemeInfo=s.CUniqueThemeInfo,t.ExpInfo=s.ExpInfo,t.FolderInfo=s.FolderInfo,t.FolderInfoAttribute=s.FolderInfoAttribute,t.ItemValue=s.ItemValue,t.ThemeServer=s.ThemeServer,t.ThemesInfo=s.ThemesInfo,t.ArcGISGeometryServer=s.ArcGISGeometryServer,t.ArcGISFeatureServer=s.ArcGISFeatureServer,t.ArcGISVectorTileServer=s.ArcGISVectorTileServer,t.Map=l.Map,t.Basemap=l.Basemap,t.ArcGISMapImageLayer=l.ArcGISMapImageLayer,t.M3DModelCacheLayer=l.M3DModelCacheLayer,t.ArcGISMapImageSubLayer=l.ArcGISMapImageSubLayer,t.ArcGISTileLayer=l.ArcGISTileLayer,t.WMTSLayer=l.WMTSLayer,t.WMSLayer=l.WMSLayer,t.WMSSubLayer=l.WMSSubLayer,t.WFSLayer=l.WFSLayer,t.WMTSSubLayer=l.WMTSSubLayer,t.IGSVectorTileLayer=l.IGSVectorTileLayer,t.IGSVectorTileSubLayer=l.IGSVectorTileSubLayer,t.IGSMapImageLayer=l.IGSMapImageLayer,t.IGSMapImageSubLayer=l.IGSMapImageSubLayer,t.IGSSceneLayer=l.IGSSceneLayer,t.IGSSceneSubLayer=l.IGSSceneSubLayer,t.IGSSceneLabelSubLayer=l.IGSSceneLabelSubLayer,t.IGSSceneModelCacheSubLayer=l.IGSSceneModelCacheSubLayer,t.IGSSceneMapRefSubLayer=l.IGSSceneMapRefSubLayer,t.IGSSceneTerrainSubLayer=l.IGSSceneTerrainSubLayer,t.IGSTileLayer=l.IGSTileLayer,t.IGSScene=l.IGSScene,t.ISScene=l.ISScene,t.BaseScene=l.BaseScene,t.IGSFeatureLayer=l.IGSFeatureLayer,t.FeatureFilter=l.FeatureFilter,t.ISSceneLayer=l.ISSceneLayer,t.ISSceneSubLayer=l.ISSceneSubLayer,t.ISSceneModelCacheSubLayer=l.ISSceneModelCacheSubLayer,t.SubLayer=l.SubLayer,t.EchartsLayer=l.EchartsLayer,t.MapVLayer=l.MapVLayer,t.GroupLayer=l.GroupLayer,t.GraphicsLayer=l.GraphicsLayer,t.GeoJSONLayer=l.GeoJSONLayer,t.Cesium3DTilesCacheLayer=l.Cesium3DTilesCacheLayer,t.TerrainCacheLayer=l.TerrainCacheLayer,t.VideoLayer=l.VideoLayer,t.S3MTilesCacheLayer=l.S3MTilesCacheLayer,t.Layer=l.Layer,t.Projection=f.Projection,t.WMTSStyle=f.WMTSStyle,t.CoordnateTransform=f.CoordnateTransform,t.SketchEditor=g.SketchEditor,t.SketchEditor3D=g.SketchEditor3D,t.SketchBaseDrawTool=g.SketchBaseDrawTool,t.SketchPointDrawTool=g.SketchPointDrawTool,t.SketchPolylineDrawTool=g.SketchPolylineDrawTool,t.SketchPolygonDrawTool=g.SketchPolygonDrawTool,t.SketchCircleDrawTool=g.SketchCircleDrawTool,t.SketchExtentDrawTool=g.SketchExtentDrawTool,t.SketchFreehandPolylineDrawTool=g.SketchFreehandPolylineDrawTool,t.SketchFreehandPolygonDrawTool=g.SketchFreehandPolygonDrawTool,t.getTipTextByEditOption=g.getTipTextByEditOption,t.SketchStyle=g.SketchStyle,t.SketchEditorEvent=g.SketchEditorEvent,t.Extent=c.Extent,t.Polygon=c.Polygon,t.LineString=c.LineString,t.Point=c.Point,t.Circle=c.Circle,t.MultiPolygon=c.MultiPolygon,t.MultiLineString=c.MultiLineString,t.MultiPoint=c.MultiPoint,t.GeometryEngine=c.GeometryEngine,t.Color=f.Color,t.Font=f.Font,t.LayerEvent=f.LayerEvent,t.Event=f.Event,t.Zondy=b,t.zondy=_,t.Evented=f.Evented,t.FeatureRender=f.FeatureRender,t.ErrorEvent=f.ErrorEvent,t.Collection=f.Collection,t.CollectionFlattener=f.CollectionFlattener,t.FeatureSet=f.FeatureSet,t.Feature=f.Feature,t.getFeaturesFromFeatureSet=f.getFeaturesFromFeatureSet,t.ReturnFormat=p.ReturnFormat,t.FetchMethod=p.FetchMethod,t.LayerEventType=p.LayerEventType,t.MapEventType=p.MapEventType,t.StatisticType=p.StatisticType,t.SpatialRelation=p.SpatialRelation,t.CustomWKID=p.CustomWKID,t.GeometryType=p.GeometryType,t.LayerType=p.LayerType,t.SubLayerType=p.SubLayerType,t.TokenAttachType=p.TokenAttachType,t.IGSGeometryType=p.IGSGeometryType,t.LogType=p.LogType,t.LoadStatus=p.LoadStatus,t.ViewEventType=p.ViewEventType,t.LengthUnit=p.LengthUnit,t.AngleUnit=p.AngleUnit,t.RendererType=p.RendererType,t.VectorTileGeometryType=p.VectorTileGeometryType,t.VideoSourceType=p.VideoSourceType,t.SketchDataType=p.SketchDataType,t.SketchEditMode=p.SketchEditMode,t.SketchEditorEventType=p.SketchEditorEventType,t.SketchEditorState=p.SketchEditorState,t.SketchEditorToolEventType=p.SketchEditorToolEventType,t.SymbolType=p.SymbolType,t.IGSSymbolType=p.IGSSymbolType,t.ElevationMode=p.ElevationMode,t.ElevationInfo=f.ElevationInfo,t.ProjectInfo=f.ProjectInfo,t.OutStatistic=f.OutStatistic,t.TileMatrixSet=f.TileMatrixSet,t.ProjectInfoBySrsID=f.ProjectInfoBySrsID,t.FeatureExpressionInfo=f.FeatureExpressionInfo,t.HorizontalAlignment=p.HorizontalAlignment,t.VerticalAlignment=p.VerticalAlignment,t.SceneMode=p.SceneMode,t.ShadowMode=p.ShadowMode,t.SwipeMode=p.SwipeMode,t.BaseSwipeTool=a.BaseSwipeTool,t.SimpleFillSymbol=d.SimpleFillSymbol,t.SimpleLineSymbol=d.SimpleLineSymbol,t.SimpleMarkerSymbol=d.SimpleMarkerSymbol,t.TextSymbol=d.TextSymbol,t.Symbol=d.Symbol,t.PictureMarkerSymbol=d.PictureMarkerSymbol,t.PictureFillSymbol=d.PictureFillSymbol,t.MapGISTextSymbol=d.MapGISTextSymbol,t.UniqueValueRenderer=l.UniqueValueRenderer,t.ClassBreakRenderer=l.ClassBreakRenderer,t.SimpleRenderer=l.SimpleRenderer,t.ClusterRenderer=l.ClusterRenderer,t.RandomRenderer=l.RandomRenderer,t.RankRenderer=l.RankRenderer,t.HeatmapRenderer=l.HeatmapRenderer,t.BaseRenderer=l.BaseRenderer,t.getIGSDynamicLayer=l.getIGSDynamicLayer,t.extend=h.extend,t.isArray=h.isArray,t.isNumber=h.isNumber,t.isInTheSameDomain=h.isInTheSameDomain,t.transformResult=h.transformResult,t.urlAppend=h.urlAppend,t.getParameterString=h.getParameterString,t.bind=h.bind,t.getGUID=h.getGUID,t.defaultValue=h.defaultValue,t.defined=h.defined,t.normalize=h.normalize,t.createGeometry=h.createGeometry,t.getExtendExtentByPixel=h.getExtendExtentByPixel,t.limitExtentToSRSMaxExtent=h.limitExtentToSRSMaxExtent,t.isNull=h.isNull,t.getGeometryParameter=h.getGeometryParameter,t.getOutStatisticsParameter=h.getOutStatisticsParameter,t.Log=h.Log,t.isString=h.isString,t.deepClone=h.deepClone,t.isBoolean=h.isBoolean,t.extendDeep=h.extendDeep,t.newGuid=h.newGuid,t.formatPoints=h.formatPoints,t.returnPoint=h.returnPoint,t.cloneObject=h.cloneObject,t.notNULL=h.notNULL,t.isObject=h.isObject,t.getVideoType=h.getVideoType,t.toJSON=h.toJSON,t.getBaseUrl=h.getBaseUrl,t.inputCss=h.inputCss,t.BaseView=y.BaseView,t.MapView=y.MapView,t.SceneView=y.SceneView,t.BaseGraphicsLayerView=y.BaseGraphicsLayerView,t.BaseRendererLayerView=y.BaseRendererLayerView,t.GroupLayerView=y.GroupLayerView,t.LayerView=y.LayerView,t.SpatialReference=c.SpatialReference,t.UrlServerType=p.UrlServerType,t.PictureFormat=p.PictureFormat,t.getUrlType=l.getUrlType,t.is4326=l.is4326,t.isCustomSP=l.isCustomSP,t.EPSG=f.EPSG,t.proj4=n.default,t.T=i,t.formatBaseUrl=s.formatBaseUrl,t.RadiusUnit=p.RadiusUnit,t.Geometry=c.Geometry,t.editFeatureByArc3=c.editFeatureByArc3,t.editGeometryByArc3=c.editGeometryByArc3,t.Config=s.Config,t.ServiceConfigToken=s.ServiceConfigToken,t.ServiceConfigRequestInterceptors=s.ServiceConfigRequestInterceptors,t.ServiceConfigResponseInterceptors=s.ServiceConfigResponseInterceptors,t.createSimpleMarkerSymbolCanvas=v.createSimpleMarkerSymbolCanvas,t.createSimpleFillSymbolCanvas=v.createSimpleFillSymbolCanvas,t.BaseFeatureLayerView=y.BaseFeatureLayerView,t.TileInfoUtil=l.TileInfoUtil,t.WMTSCorporation=p.WMTSCorporation,t.Corporation=p.Corporation,t.setElevationInfo=l.setElevationInfo,t.LabelClass=l.LabelClass,t.HeatmapColorStop=l.HeatmapColorStop,t.SizeVariable=l.SizeVariable,t.ColorVariable=l.ColorVariable,t.OpacityVariable=l.OpacityVariable,t.VisualVariable=l.VisualVariable,t.RendererUtil=y.RendererUtil,t.Symbol3D=d.Symbol3D,t.LabelSymbol3D=d.LabelSymbol3D,t.LineSymbol3D=d.LineSymbol3D,t.PointSymbol3D=d.PointSymbol3D,t.PolygonSymbol3D=d.PolygonSymbol3D,t.LineCallout3D=d.LineCallout3D,t.Callout3D=d.Callout3D,t.Symbol3DVerticalOffset=d.Symbol3DVerticalOffset,t.Symbol3DLayer=d.Symbol3DLayer,t.Symbol3DLayerType=p.Symbol3DLayerType,t.LineCapType=p.LineCapType,t.LineJoinType=p.LineJoinType,t.LineMarkerPlacement=p.LineMarkerPlacement,t.LineMarkerStyle=p.LineMarkerStyle,t.LineStyleMarker3D=d.LineStyleMarker3D,t.LinePatternStyle=p.LinePatternStyle,t.LineStylePattern3D=d.LineStylePattern3D,t.LineSymbol3DLayer=d.LineSymbol3DLayer,t.PathSymbol3DLayer=d.PathSymbol3DLayer,t.AnchorType=p.AnchorType,t.ProfileType=p.ProfileType,t.FillSymbol3DLayer=d.FillSymbol3DLayer,t.FillSymbol3DOutline=d.FillSymbol3DOutline,t.PatternStyle=p.PatternStyle,t.IconSymbol3DLayer=d.IconSymbol3DLayer,t.PointSymbol3DOutline=d.PointSymbol3DOutline,t.IconResource=d.IconResource,t.ObjectSymbol3DLayer=d.ObjectSymbol3DLayer,t.ExtrudeSymbol3DLayer=d.ExtrudeSymbol3DLayer,t.Edges3D=d.Edges3D,t.TextSymbol3DLayer=d.TextSymbol3DLayer,t.TextHalo=d.TextHalo,t.WaterSymbol3DLayer=d.WaterSymbol3DLayer,t.WaterbodySize=p.WaterbodySize,t.WaveStrength=p.WaveStrength,t.MaterialType=p.MaterialType,t.ColorMaterial=d.ColorMaterial,t.StylePattern3D=d.StylePattern3D,t.ArcGISVectorTileLayer=l.ArcGISVectorTileLayer,t.ArcGISVectorTileSubLayer=l.ArcGISVectorTileSubLayer,t.WebTileLayer=l.WebTileLayer,t.getZoomOffset=l.getZoomOffset,t.FeatureCollection=l.FeatureCollection,t.CAttDataRow=s.CAttDataRow,t.CAttStruct=s.CAttStruct,t.Interceptor=s.Interceptor,t.WorkFlowServer=s.WorkFlowServer,t.TileLayer=l.TileLayer,t.BaseServer=s.BaseServer,t.RequestConfig=s.RequestConfig,t.UnknownLayer=l.UnknownLayer,t.OverlayLayer=l.OverlayLayer,t.OGCLayer=l.OGCLayer,t.getProjectionSrs=h.getProjectionSrs,t.isWMSReverse=h.isWMSReverse,t.isWMTSReverse=h.isWMTSReverse,t.convertImageSourceToBase64=h.convertImageSourceToBase64,t.getTileLayerNearestCenterAndScale=h.getTileLayerNearestCenterAndScale,t.throttle=h.throttle,t.compareObject=h.compareObject,t.debouncePromise=h.debouncePromise,t.inOrderPromise=h.inOrderPromise,t.allSettled=h.allSettled,t.LinearUnits=p.LinearUnits,t.AreaUnits=p.AreaUnits,t.ArcType=p.ArcType,t.FetchRequest=s.FetchRequest,t.TileInfo=l.TileInfo,t.appendUrlParams=l.appendUrlParams,t.getFullBaseUrl=l.getFullBaseUrl,t.LOD=l.LOD,t.VoxelFilter=l.VoxelFilter,t.IGSImageryLayer=l.IGSImageryLayer,t.IGSImageryTileLayer=l.IGSImageryTileLayer,t.RasterFunction=l.RasterFunction,t.RasterInfo=l.RasterInfo,t.convertIGSClippingString=s.convertIGSClippingString,t.IGSSceneOriginLayerType=p.IGSSceneOriginLayerType,t.GeometryFilter=s.GeometryFilter,t.ColorNameToHexMap=p.ColorNameToHexMap,t.SeverVectorTileSubLayerType=p.SeverVectorTileSubLayerType,t.VisualVariableType=p.VisualVariableType,t.TDTLayerType=p.TDTLayerType,t.TileSliceType=p.TileSliceType,t.VectorTileLayer=l.VectorTileLayer,t.ExpressionParser=h.ExpressionParser,t.isLayerViewValid=u.isLayerViewValid,t.getValidLayers=u.getValidLayers,t.getLayerViewsGeographicExtent=u.getLayerViewsGeographicExtent,t.getCrsOptionsBySpatialReference=u.getCrsOptionsBySpatialReference,t.getCrsOptions=u.getCrsOptions,t.getLayersExtent=u.getLayersExtent,t.TemporalUnit=p.TemporalUnit,t.NormalizationType=p.NormalizationType,t.RasterInterpolationType=p.RasterInterpolationType,t.EngineType=p.EngineType,t.TimeExtent=f.TimeExtent,t.TimeInfo=f.TimeInfo,t.TimeInterval=f.TimeInterval,t.TileMonitor=f.TileMonitor,t.getFunctionArguments=h.getFunctionArguments,t.UrlUtil=s.UrlUtil,t.ServerUtil=s.ServerUtil,t.deleteNullValue=h.deleteNullValue,t.BaseRegExp=s.BaseRegExp,t.ServerBaseUrlRegExp=s.ServerBaseUrlRegExp,t.LayerBaseUrlRegExp=s.LayerBaseUrlRegExp,t.formatWebTileUrl=l.formatWebTileUrl,t.decryptIGS=o.decryptIGS,t.buildModuleUrl=h.buildModuleUrl,t.getMapGISBaseUrl=h.getMapGISBaseUrl},function(e,t,r){"use strict";r.r(t);var n=r(222),i=r(233),o=r(130),a=r(235),s=r(237),u=r(238),l=r(69),c=r(132);function f(e,t){if(!(this instanceof f))return new f(e);this.forward=null,this.inverse=null,this.init=null,this.name,this.names=null,this.title,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,"init"in this&&"function"==typeof this.init&&this.init(),t(null,this)}else t("Could not get projection name from: "+e)}else t("Could not parse to valid json: "+e)}f.projections=o.default,f.projections.start(),t.default=f},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(5);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(5);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,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,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){e.exports=function(e){return e}(r(6),r(79),r(287),r(288),r(38),r(289),r(39),r(143),r(94),r(290),r(144),r(291),r(292),r(293),r(95),r(294),r(30),r(12),r(295),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311))},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,a=r.x64={};a.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return o.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}})}(),e}(r(6))},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(98));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,[]),this.layerView=(0,i.defaultValue)(r.layerView,null),this.view=(0,i.defaultValue)(r.view,null),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=[{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:'GEOGCRS["Beijing 1954",DATUM["Beijing 1954",ELLIPSOID["Krassowsky 1940",6378245,298.3,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["Geodesy."],AREA["China - onshore and offshore."],BBOX[16.7,73.62,53.56,134.77]],ID["EPSG",4214]]'},{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";var n,i;Object.defineProperty(t,"__esModule",{value:!0});var o=(i=n=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n.geometry="Geometry",n.point="Point",n.lineString="LineString",n.polygon="Polygon",n.multiPoint="MultiPoint",n.multiLineString="MultiLineString",n.multiPolygon="MultiPolygon",n.circle="Circle",n.extent="Extent",i);Object.defineProperty(o,"geometry",{writable:!1}),Object.defineProperty(o,"point",{writable:!1}),Object.defineProperty(o,"lineString",{writable:!1}),Object.defineProperty(o,"polygon",{writable:!1}),Object.defineProperty(o,"multiPoint",{writable:!1}),Object.defineProperty(o,"multiLineString",{writable:!1}),Object.defineProperty(o,"multiPolygon",{writable:!1}),Object.defineProperty(o,"circle",{writable:!1}),Object.defineProperty(o,"extent",{writable:!1}),t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allSettled=t.inOrderPromise=t.debouncePromise=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(51));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 i=await e[r]();t.push(i)}catch(e){n.default.error(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=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(0),s=r(3),u=r(4);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,a.defaultValue)(e,{}),r.id=(0,a.defaultValue)(e.id,(0,a.getGUID)()),r.type=o.SubLayerType.baseSub,r.layer=(0,a.defaultValue)(e.layer,null),r.sublayers=r._decorate("sublayers",(0,a.defaultValue)(e.sublayers,null),null,function(e){return e instanceof i.Collection?e:Array.isArray(e)?new i.Collection(e.map(function(e){return e.layer=r.layer,e.parent=r,r._createSublayer(e)})):null}),r.copyright=(0,a.defaultValue)(e.copyright,""),r.title=(0,a.defaultValue)(e.title||e.layerName,null),r.extensionOptions=(0,a.defaultValue)(e.extensionOptions,{}),r.extendProps=(0,a.defaultValue)(e.extendProps,{}),r.description=(0,a.defaultValue)(e.description,""),r.parent=(0,a.defaultValue)(e.parent,null),r.spatialReference=e.spatialReference?s.SpatialReference.fromJSON(e.spatialReference):null,r.extent=e.extent?s.Extent.fromJSON(e.extent):null;return r.capabilities=(0,u.mergeCommonClientCapbilities)(e.capabilities,{layer:!0,sublayers:!0,title:!0,extensionOptions:!0,extendProps:!0,description:!0,copyright:!0,parent:!0,spatialReference:!0,extent:!0,visible:!0,opacity:!0,minScale:!0,maxScale:!0}),r._visible=(0,a.defaultValue)(e.visible,!0),r._opacity=(0,a.defaultValue)(e.opacity,1),r._minScale=(0,a.defaultValue)(e.minScale,0),r._maxScale=(0,a.defaultValue)(e.maxScale,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 e.id=this.id,e.type=this.type,e.copyright=this.copyright,e.sublayers=this.sublayers?this.sublayers.map(function(e){return e.toJSON()}):null,e.title=this.title,e.description=this.description,e.visible=this.visible,e.opacity=this.opacity,e.extendProps=JSON.parse(JSON.stringify(this.extendProps)),e.extensionOptions=JSON.parse(JSON.stringify(this.extensionOptions)),e.spatialReference=this.spatialReference?this.spatialReference.toJSON():null,e.extent=this.extent?this.extent.toJSON():null,e.maxScale=this.maxScale,e.minScale=this.minScale,e.capabilities=JSON.parse(JSON.stringify(this.capabilities)),e}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"_createSublayer",value:function(e){return(0,u.createSublayer)(e)}},{key:"getCumulative",value:function(e,t){for(var r=this[e],n=this.parent;n;)r=t(r,n[e]),n=n.parent;return r}}],[{key:"fromJSON",value:function(e){return(0,u.createSublayer)(e)}}]),t}();Object.defineProperties(l.prototype,{visible:{get:function(){return this._visible},set:function(e){this._visible=e,this.layer&&this.layer.refresh()}},opacity:{get:function(){return this._opacity},set:function(e){this._opacity=e}},maxScale:{get:function(){return this._maxScale},set:function(e){this._maxScale=e}},minScale:{get:function(){return this._minScale},set:function(e){this._minScale=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);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=t||{},this.level=t.level,this.resolution=t.resolution,this.scale=t.scale,this._levelValue=String((0,i.defaultValue)(t.levelValue,"")),(0,i.defined)(this._levelValue)||(this._levelValue=String(this.level))}return n(e,[{key:"toJSON",value:function(){return{level:this.level,levelValue:this.levelValue,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}();Object.defineProperties(o.prototype,{levelValue:{get:function(){return this._levelValue},set:function(e){this._levelValue=String((0,i.defaultValue)(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(40)),o=r(0),a=r(62);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}}(),i=r(1),o=r(0),a=r(7),s=r(4);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,o.defaultValue)(e,{}),r.type=i.LayerType.OGC,r.version=(0,o.defaultValue)(e.version,""),r.customParameters=(0,o.defaultValue)(e.customParameters,{}),r.customLayerParameters=(0,o.defaultValue)(e.customLayerParameters,{});return r.capabilities=(0,s.mergeCommonClientCapbilities)(r.capabilities,{type:!0,customParameters:!0,customLayerParameters:!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.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}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,o.defaultValue)(e,{}))}}]),t}();t.default=u},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";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(72),i=r(5);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),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){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],u=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(s[i]=r(t.pow(n,.5))),u[i]=r(t.pow(n,1/3)),i++),n++}();var l=[],c=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=r[5],f=r[6],h=r[7],p=0;p<64;p++){if(p<16)l[p]=0|e[t+p];else{var d=l[p-15],y=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,g=l[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[p]=y+l[p-7]+v+l[p-16]}var m=n&i^n&o^i&o,_=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),b=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&f)+u[p]+l[p];h=f,f=c,c=s,s=a+b|0,a=o,o=i,i=n,n=b+(_+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(c),r.HmacSHA256=o._createHmacHelper(c)}(Math),e.SHA256}(r(6))},function(e,t,r){e.exports=function(e){!function(){var t=e,r=t.lib,n=r.Base,i=t.enc,o=i.Utf8,a=t.algo;a.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,u=a.words,l=0;l<r;l++)s[l]^=1549556828,u[l]^=909522486;i.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);t.reset();var n=t.finalize(this._oKey.clone().concat(r));return n}})}()}(r(6))},function(e,t,r){"use strict";r.r(t),r.d(t,"SM2",function(){return E}),r.d(t,"SM3",function(){return m}),r.d(t,"SM4",function(){return A});var n=r(312),i=r.n(n),o=r(97),a=r(316),s=a.BigInteger.prototype.Barrett;function u(e,t){this.x=t,this.q=e}function l(e,t,r,n){this.curve=e,this.x=t,this.y=r,this.z=null==n?a.BigInteger.ONE:n,this.zinv=null}function c(e,t,r){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(r),this.infinity=new l(this,null,null),this.reducer=new s(this.q)}u.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},u.prototype.toBigInteger=function(){return this.x},u.prototype.negate=function(){return new u(this.q,this.x.negate().mod(this.q))},u.prototype.add=function(e){return new u(this.q,this.x.add(e.toBigInteger()).mod(this.q))},u.prototype.subtract=function(e){return new u(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},u.prototype.multiply=function(e){return new u(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},u.prototype.square=function(){return new u(this.q,this.x.square().mod(this.q))},u.prototype.divide=function(e){return new u(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},l.prototype.getX=function(){null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q));var e=this.x.toBigInteger().multiply(this.zinv);return this.curve.reduce(e),this.curve.fromBigInteger(e)},l.prototype.getY=function(){null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q));var e=this.y.toBigInteger().multiply(this.zinv);return this.curve.reduce(e),this.curve.fromBigInteger(e)},l.prototype.equals=function(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(a.BigInteger.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(a.BigInteger.ZERO))},l.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(a.BigInteger.ZERO)&&!this.y.toBigInteger().equals(a.BigInteger.ZERO)},l.prototype.negate=function(){return new l(this.curve,this.x,this.y.negate(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),r=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(a.BigInteger.ZERO.equals(r))return a.BigInteger.ZERO.equals(t)?this.twice():this.curve.getInfinity();var n=new a.BigInteger("3"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),s=(e.x.toBigInteger(),e.y.toBigInteger(),r.square()),u=s.multiply(r),c=i.multiply(s),f=t.square().multiply(this.z),h=f.subtract(c.shiftLeft(1)).multiply(e.z).subtract(u).multiply(r).mod(this.curve.q),p=c.multiply(n).multiply(t).subtract(o.multiply(u)).subtract(f.multiply(t)).multiply(e.z).add(t.multiply(u)).mod(this.curve.q),d=u.multiply(this.z).multiply(e.z).mod(this.curve.q);return new l(this.curve,this.curve.fromBigInteger(h),this.curve.fromBigInteger(p),d)},l.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new a.BigInteger("3"),t=this.x.toBigInteger(),r=this.y.toBigInteger(),n=r.multiply(this.z),i=n.multiply(r).mod(this.curve.q),o=this.curve.a.toBigInteger(),s=t.square().multiply(e);a.BigInteger.ZERO.equals(o)||(s=s.add(this.z.square().multiply(o)));var u=(s=s.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(n).mod(this.curve.q),c=s.multiply(e).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(s.square().multiply(s)).mod(this.curve.q),f=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new l(this.curve,this.curve.fromBigInteger(u),this.curve.fromBigInteger(c),f)},l.prototype.multiply=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,r=e,n=r.multiply(new a.BigInteger("3")),i=this.negate(),o=this;for(t=n.bitLength()-2;t>0;--t){o=o.twice();var s=n.testBit(t);s!=r.testBit(t)&&(o=o.add(s?this:i))}return o},l.prototype.multiplyTwo=function(e,t,r){var n;n=e.bitLength()>r.bitLength()?e.bitLength()-1:r.bitLength()-1;for(var i=this.curve.getInfinity(),o=this.add(t);n>=0;)i=i.twice(),e.testBit(n)?i=r.testBit(n)?i.add(o):i.add(this):r.testBit(n)&&(i=i.add(t)),--n;return i},c.prototype.getQ=function(){return this.q},c.prototype.getA=function(){return this.a},c.prototype.getB=function(){return this.b},c.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},c.prototype.getInfinity=function(){return this.infinity},c.prototype.fromBigInteger=function(e){return new u(this.q,e)},c.prototype.reduce=function(e){this.reducer.reduce(e)},c.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var t=(e.length-2)/2,r=e.substr(2,t),n=e.substr(t+2,t);return new l(this,this.fromBigInteger(new a.BigInteger(r,16)),this.fromBigInteger(new a.BigInteger(n,16)));default:return null}},c.prototype.encodePointHex=function(e){if(e.isInfinity())return"00";var t=e.getX().toBigInteger().toString(16),r=e.getY().toBigInteger().toString(16),n=this.getQ().toString(16).length;for(n%2!=0&&n++;t.length<n;)t="0"+t;for(;r.length<n;)r="0"+r;return"04"+t+r};var f=function(e,t){return e<<(t%=32)|e>>>32-t},h=function(e,t){var r=t-e.length;return(r>0?"0".repeat(r):"")+e},p=function(e){return e<16?2043430169:2055708042},d=function(e,t,r,n){return n<16?e^t^r:e&t|e&r|t&r},y=function(e,t,r,n){return n<16?e^t^r:e&t|~e&r},g=function(e,t,r){for(var n,i,o,a,s,u=function(e){var t,r=new Array(132);e.forEach(function(e,t){r[t]=e});for(var n=16;n<68;n++)r[n]=(t=r[n-16]^r[n-9]^f(r[n-3],15))^f(t,15)^f(t,23)^f(r[n-13],7)^r[n-6];for(var i=0;i<64;i++)r[i+68]=r[i]^r[i+4];return r}(t),l=e[0],c=e[1],h=e[2],g=e[3],v=e[4],m=e[5],_=e[6],b=e[7],S=0;S<64;S++)i=(n=f(f(l,12)+v+f(p(S),S),7))^f(l,12),o=d(l,c,h,S)+g+i+u[S+68],a=y(v,m,_,S)+b+n+u[S],g=h,h=f(c,9),c=l,l=o,b=_,_=f(m,19),m=v,v=(s=a)^f(s,9)^f(s,17);return[l^e[0],c^e[1],h^e[2],g^e[3],v^e[4],m^e[5],_^e[6],b^e[7]]},v=function(e,t,r){if("string"==typeof e?e=o.Buffer.from(e,t||"utf8"):e instanceof ArrayBuffer&&(e=o.Buffer.from(e)),!o.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');var n,a,s,u,l,c;n=e,a=o.Buffer.alloc(1,128),u=o.Buffer.alloc(s=(s=n.length%64)>=56?64-s%56-1:56-s-1,0),l=o.Buffer.alloc(8),c=8*n.length,l.writeUInt32BE(Math.floor(c/Math.pow(2,32)),0),l.writeUInt32BE(c%Math.pow(2,32),4);for(var f=(e=o.Buffer.concat([n,a,u,l],n.length+1+s+8)).length/64,h=new Array(f),p=0;p<f;p++){h[p]=new Array(16);for(var d=0;d<16;d++)h[p][d]=e.readUInt32BE(64*p+4*d)}var y=new Array(f);y[0]=[1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214];for(var v=0;v<f;v++)y[v+1]=g(y[v],h[v]);var m=o.Buffer.alloc(32);return y[f].forEach(function(e,t){return m.writeInt32BE(e,4*t)}),r?m.toString(r):i()(m)},m={__proto__:null,digest:v},_=new a.SecureRandom,b=function(){var e=new c(new a.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),new a.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),new a.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16));return{curve:e,G:e.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"),n:new a.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}(),S=b.curve,w=b.G,x=b.n;function O(e,t){for(var r=[],n=Math.ceil(t/32),i=t%32,a=1;a<=n;a++){var s=o.Buffer.allocUnsafe(4);s.writeUInt32BE(a);var u=v(o.Buffer.concat([e,s]));r.push(a===n&&i?o.Buffer.from(u).slice(0,i):o.Buffer.from(u))}return o.Buffer.concat(r,t)}var E={__proto__:null,constants:{C1C2C3:0,C1C3C2:1,PC:"04"},generateKeyPair:function(){var e=new a.BigInteger(x.bitLength(),_).mod(x.subtract(new a.BigInteger("2"))).add(a.BigInteger.ONE),t=h(e.toString(16),64),r=w.multiply(e);return{privateKey:t,publicKey:"04"+h(r.getX().toBigInteger().toString(16),64)+h(r.getY().toBigInteger().toString(16),64)}},encrypt:function(e,t,r){var n=r||{},s=n.mode,u=void 0===s?1:s,l=n.outputEncoding,c=n.pc;if("string"==typeof e?e=o.Buffer.from(e,n.inputEncoding||"utf8"):e instanceof ArrayBuffer&&(e=o.Buffer.from(e)),!o.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');var f=new a.BigInteger(x.bitLength(),_).mod(x.subtract(a.BigInteger.ONE)).add(a.BigInteger.ONE),p=w.multiply(f),d=h(p.getX().toBigInteger().toString(16),64)+h(p.getY().toBigInteger().toString(16),64),y=S.decodePointHex(t).multiply(f),g=h(y.getX().toBigInteger().toString(16),64),m=h(y.getY().toBigInteger().toString(16),64),b=O(o.Buffer.from(g+m,"hex"),e.length),E=h(new a.BigInteger(e.toString("hex"),16).xor(new a.BigInteger(b.toString("hex"),16)).toString(16),2*e.length),P=v(g+e.toString("hex")+m,"hex","hex"),T=o.Buffer.from((c?"04":"")+(0===u?d+E+P:d+P+E),"hex");return l?T.toString(l):i()(T)},decrypt:function(e,t,r){var n=r||{},s=n.mode,u=void 0===s?1:s,l=n.outputEncoding,c=n.pc;if("string"==typeof e?e=o.Buffer.from(e,n.inputEncoding):e instanceof ArrayBuffer&&(e=o.Buffer.from(e)),!o.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');var f=(e=c?e.slice(1):e).slice(0,32).toString("hex"),p=e.slice(32,64).toString("hex"),d=S.decodePointHex("04"+f+p).multiply(new a.BigInteger(t,16)),y=h(d.getX().toBigInteger().toString(16),64),g=h(d.getY().toBigInteger().toString(16),64),m=e.slice(64,96),_=e.slice(96);0===u&&(m=e.slice(e.length-32),_=e.slice(64,e.length-32));var b=O(o.Buffer.from(y+g,"hex"),_.length),w=new a.BigInteger(_.toString("hex"),16).xor(new a.BigInteger(b.toString("hex"),16)).toString(16),x=v(y+w+g,"hex","hex")===m.toString("hex")?o.Buffer.from(w,"hex"):o.Buffer.alloc(0);return l?x.toString(l):i()(x)}},P=[[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5],[43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153],[156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98],[228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166],[71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168],[104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53],[30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135],[212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158],[234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161],[224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227],[29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111],[213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81],[141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216],[10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176],[137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132],[24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72]],T=[2746333894,1453994832,1736282519,2993693404],I=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257],k=/^[0-9a-f]{32}$/i,M=function(e){return P[(4026531840&e)>>>28][(251658240&e)>>>24]<<24|P[(15728640&e)>>>20][(983040&e)>>>16]<<16|P[(61440&e)>>>12][(3840&e)>>>8]<<8|P[(240&e)>>>4][(15&e)>>>0]<<0},L=function(e){return(t=M(e))^f(t,2)^f(t,10)^f(t,18)^f(t,24);var t},C=function(e){var t,r=new Array(36);r[0]=e[0]^T[0],r[1]=e[1]^T[1],r[2]=e[2]^T[2],r[3]=e[3]^T[3];for(var n=new Array(32),i=0;i<32;i++)r[i+4]=r[i]^(t=M(r[i+1]^r[i+2]^r[i+3]^I[i]))^f(t,13)^f(t,23),n[i]=r[i+4];return n},N=function(e,t){for(var r=C(t),n=0;n<32;n++)e[n+4]=e[n]^L(e[n+1]^e[n+2]^e[n+3]^r[n]);return[e[35],e[34],e[33],e[32]]},j=function(e,t){for(var r=C(t).reverse(),n=0;n<32;n++)e[n+4]=e[n]^L(e[n+1]^e[n+2]^e[n+3]^r[n]);return[e[35],e[34],e[33],e[32]]},R=function(e){return[e.readInt32BE(0),e.readInt32BE(4),e.readInt32BE(8),e.readInt32BE(12)]},G=function(e){for(var t=o.Buffer.alloc(16),r=0;r<4;r++)t.writeInt32BE(e[r],4*r);return t},A={__proto__:null,constants:{ECB:1,CBC:2},encrypt:function(e,t,r){var n=r||{},a=n.mode,s=n.iv,u=n.outputEncoding;if("string"==typeof e?e=o.Buffer.from(e,n.inputEncoding||"utf8"):e instanceof ArrayBuffer&&(e=o.Buffer.from(e)),!o.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');if(!k.test(t))throw new TypeError("Invalid value of cipher `key`");if(t=o.Buffer.from(t,"hex"),2===a&&!k.test(s))throw new TypeError("Invalid value of `iv` option");return function(e,t,r,n){r&&(r=R(r)),t=R(t);for(var a=[],s=(e=function(e){var t=16-e.length%16,r=o.Buffer.alloc(t,t);return o.Buffer.concat([e,r],e.length+t)}(e)).length/16,u=0;u<s;u++)if(r){var l=16*u,c=[r[0]^e.readInt32BE(l),r[1]^e.readInt32BE(l+4),r[2]^e.readInt32BE(l+8),r[3]^e.readInt32BE(l+12)],f=N(c,t);a.push(G(f)),r=f.slice(0)}else{var h=16*u,p=[e.readInt32BE(h),e.readInt32BE(h+4),e.readInt32BE(h+8),e.readInt32BE(h+12)],d=N(p,t);a.push(G(d))}var y=o.Buffer.concat(a,e.length);return n?y.toString(n):i()(y)}(e,t,s=2===a?o.Buffer.from(s,"hex"):null,u)},decrypt:function(e,t,r){var n=r||{},a=n.mode,s=n.iv,u=n.outputEncoding;if("string"==typeof e?e=o.Buffer.from(e,n.inputEncoding):e instanceof ArrayBuffer&&(e=o.Buffer.from(e)),!o.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');if(!k.test(t))throw new TypeError("Invalid value of cipher `key`");if(t=o.Buffer.from(t,"hex"),2===a&&!k.test(s))throw new TypeError("Invalid value of `iv` option");return function(e,t,r,n){r&&(r=R(r)),t=R(t);var a=[],s=e.length/16;if(r)for(var u=s-1;u>=0;u--){var l,c=16*u;l=u>0?[e.readInt32BE(c-16),e.readInt32BE(c-16+4),e.readInt32BE(c-16+8),e.readInt32BE(c-16+12)]:r;var f=[e.readInt32BE(c),e.readInt32BE(c+4),e.readInt32BE(c+8),e.readInt32BE(c+12)],h=j(f,t);a.unshift(G([h[0]^l[0],h[1]^l[1],h[2]^l[2],h[3]^l[3]]))}else for(var p=0;p<s;p++){var d=16*p,y=[e.readInt32BE(d),e.readInt32BE(d+4),e.readInt32BE(d+8),e.readInt32BE(d+12)],g=j(y,t);a.push(G(g))}var v=o.Buffer.concat(a,e.length-a[a.length-1][15]);return n?v.toString(n):i()(v)}(e,t,s=2===a?o.Buffer.from(s,"hex"):null,u)}}},function(e,t,r){"use strict";(function(e){
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=Io(To(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=Z(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]&&!k(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(!k(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(!k(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(!k(t=t||{}))throw new Error("options is invalid");var r=t.zProperty||"elevation",n=t.flip,i=t.flags;ne(e,"Point","input must contain Points");for(var o=function(e,t){var r={};return A(e,function(e){var t=$(e)[1];r[t]||(r[t]=[]),r[t].push(e)}),Object.keys(r).map(function(e){return r[e].sort(function(e,t){return $(e)[0]-$(t)[0]})}).sort(function(e,r){return t?$(e[0])[1]-$(r[0])[1]:$(r[0])[1]-$(e[0])[1]})}(e,n),a=[],s=0;s<o.length;s++){for(var u=o[s],l=[],c=0;c<u.length;c++){var 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=Z(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=w,t.lengthToRadians=S,t.lineArc=ti,t.lineChunk=function(e,t,r){if(!k(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 U(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(Tn(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(!k(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 U(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=Vr,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=Tn,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=Rn(t,{precision:7});switch(n){case"Point":return Qn(e,i);case"MultiPoint":return Zn(e,i);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return Zn(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=K,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=[];A(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=Dr,t.nearestPoint=Dr,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 A(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=jn,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=Z(t),c=0,f=null;switch(a[0]>l[0]&&a[0]<l[2]&&a[1]>l[1]&&a[1]<l[3]&&(c=(f=Dr(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=wi(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=wi(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=Uo.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=R,t.propReduce=G,t.propertiesContainsFilter=Rs,t.radians2degrees=O,t.radiansToDegrees=O,t.radiansToDistance=b,t.radiansToLength=b,t.random=ks,t.randomLineString=Ps,t.randomPoint=Os,t.randomPolygon=Es,t.randomPosition=xs,t.rewind=function(e,t){if(!k(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=wt(e));var i=[];switch(e.type){case"GeometryCollection":return F(e,function(e){Pi(e,r)}),e;case"FeatureCollection":return A(e,function(e){A(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(!k(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=J,t.segmentReduce=z,t.shortestPath=function(e,t,r){if(!k(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&&!I(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=Z(Co(nr(Z(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,w=Math.floor(b/m),x=Math.floor(S/_),O=(b-w*m)/2,E=[],P=[],T=[],M=[],L=1/0,C=1/0,N=v-(S-x*_)/2,j=0;N>=y;){for(var R=[],G=[],A=p+O,D=0;A<=g;){var V=u([A,N]),F=Oa(V,o);R.push(F?0:1),G.push(A+"|"+N);var B=vt(V,e);!F&&B<L&&(L=B,T={x:D,y:j});var U=vt(V,t);!F&&U<C&&(C=U,M={x:D,y:j}),A+=m,D++}P.push(R),E.push(G),N-=_,j++}var q=new Sa(P,{diagonal:!0}),J=q.grid[T.y][T.x],z=q.grid[M.y][M.x],W=ba.search(q,J,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(!k(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=wt(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(!k(t=t||{}))throw new Error("options is invalid");var r=t.steps||64,n=t.weight,i=t.properties||{};if(!I(r))throw new Error("steps must be a number");if(!k(i))throw new Error("properties must be a number");var o=V(e).length,a=ls(e,{weight:n}),s=0,u=0,l=0;A(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;A(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}),w=gt(e,d([S])),x={meanCenterCoordinates:$(a),semiMajorAxis:_,semiMinorAxis:b,numberOfFeatures:o,angle:y,percentageWithinEllipse:100*V(w).length/o};return S.properties.standardDeviationalEllipse=x,S},t.tag=function(e,t,r,n){return e=wt(e),t=wt(t),A(e,function(e){e.properties||(e.properties={}),A(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=Ar(e.geometry.coordinates):e.geometry.coordinates.forEach(function(e){t.features=t.features.concat(Ar(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(!k(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=wt(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=wy,t.truncate=Rn,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 U(e,function(e){"Polygon"===e.geometry.type&&A(Dn(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(!k(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=Ta,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(141))},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(19)),o=f(r(58)),a=r(0),s=r(1),u=r(26),l=f(r(42)),c=r(3);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,a.defaultValue)(e,{}),r.spatialReference=(0,a.defaultValue)(l.default.fromJSON(e.spatialReference),new l.default("EPSG:4326")),r.hasZ=!1,r.type=s.GeometryType.geometry,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,o.default),n(t,[{key:"clone",value:function(){return new t(this.toJSON())}},{key:"toJSON",value:function(){return{spatialReference:this.spatialReference instanceof l.default?this.spatialReference.toJSON():this.spatialReference,hasZ:this.hasZ,type:this.type,extensionOptions:(0,a.cloneObject)(this.extensionOptions)}}},{key:"toGeoJSON",value:function(){return{type:this.type,coordinates:this.coordinates}}},{key:"fromGeoJSON",value:function(e){(e||e.type!==this.type)&&new Error("GeoJSON类型和几何类型不一致"),(0,a.defined)(this.coordinates)&&(this.coordinates=e.coordinates)}},{key:"toXML",value:function(){return""}},{key:"getType",value:function(){return this.type}},{key:"getIGSType",value:function(){return s.IGSGeometryType.geometry}},{key:"getGeometryType",value:function(){return this.type}},{key:"toString",value:function(){return""}}],[{key:"fromGeoJSON",value:function(e){return(0,u.createGeometryByGeoJSON)(e,new l.default("EPSG:4326"))}},{key:"fromJSON",value:function(e){return e=(0,a.defaultValue)(e,{}),(0,u.createGeometry)(e)}},{key:"isClockwise",value:function(e){e=(0,a.defaultValue)(e,void 0),(0,a.isNull)(e)&&a.Log.error("geometry1不能为空!"),e instanceof Array||a.Log.error("输入参数类型错误,需要输入点数组!");for(var t=0;t<e.length;t++)if(e[t]instanceof Array)for(var r=0;r<e[t].length;r++)e[t][r]instanceof Array&&a.Log.error("输入参数类型错误,需要输入二维数组!");else a.Log.error("输入参数类型错误,需要输入二维数组!");if(e[0].length===e[e.length-1].length&&JSON.stringify(e[0])===JSON.stringify(e[e.length-1])||a.Log.error("输入的点数组必须首尾闭合!"),!(0,a.isNull)(e)){var n=i.lineString(e);return i.booleanClockwise(n)}}},{key:"fromRings",value:function(e,t){e=(0,a.defaultValue)(e,void 0);var r=(0,a.defaultValue)(l.default.fromJSON(t),new l.default("EPSG:4326"));(0,a.isNull)(e)&&a.Log.error("geometry1不能为空!"),e instanceof Array||a.Log.error("输入参数类型错误,需要输入点数组!"),3!==this._multiarr(e)&&a.Log.error("输入参数错误,需要输入三维数组!");var n=void 0;if(1===e.length){var i=e[0];return i[0].length===i[i.length-1].length&&JSON.stringify(i[0])===JSON.stringify(i[i.length-1])||i.push(i[0]),n=new c.Polygon({coordinates:[i],spatialReference:r})}for(var o=[],s=0;s<e.length;s++){var u={geometry:void 0,area:null,inner:[]};JSON.stringify(e[s][0])!==JSON.stringify(e[s][e[s].length-1])&&e[s].push(e[s][0]);var f=new c.Polygon({coordinates:[e[s]],spatialReference:r});u.geometry=f,u.area=c.GeometryEngine.planarArea(f),o.push(u)}for(var h=this._processArr([],o),p=[],d=function(e){var t=[h[e].geometry.coordinates[0]];h[e].inner.length>=1&&h[e].inner.forEach(function(e){t.push(e.geometry.coordinates[0])}),p.push(t)},y=0;y<h.length;y++)d(y);for(var g=[],v=0;v<h.length;v++)n=new c.Polygon({coordinates:p[v],spatialReference:r}),g.push(n);return g}},{key:"_processArr",value:function(e,t){t.sort(function(e,t){return t.area-e.area});for(var r=t[0],n=[],i=1;i<t.length;i++)c.GeometryEngine.disjoint(r.geometry,t[i].geometry)?n.push(t[i]):c.GeometryEngine.contains(r.geometry,t[i].geometry)?r.inner.push(t[i]):n.push(t[i]);if(r.inner.length>1)for(var o=0;o<r.inner.length;o++)for(var s=r.inner[o],u=o+1;u<r.inner.length;u++)c.GeometryEngine.intersects(s.geometry,r.inner[u].geometry)&&(c.GeometryEngine.contains(s.geometry,r.inner[u].geometry)?(n.push(r.inner[u]),r.inner.splice(u,1),u--):a.Log.error("输入的几何存在拓扑错误,请检查"));return e.push(r),n.length>1?this._processArr(e,n):1===n.length&&e.push(n[0]),e}},{key:"_multiarr",value:function(e){for(var t=[],r=1,n=0;n<e.length;n++)if(e[n]instanceof Array)for(var i=0;i<e[n].length;i++)t.push(e[n][i]);return t.length&&(r=1,r+=this._multiarr(t)),r}},{key:"_parseString",value:function(e){for(var t=[],r=e.split("*"),n=0;n<r.length;n++){for(var i=r[n].split(" "),o=[],a=0;a<i.length;a++)if(o.push(i[a].split(",")),i[a].indexOf("#")>-1){i[a]=i[a].replace("#",""),o.splice(a-1,2);var s=[i[a-1].split(","),i[a].split(","),i[a+1].split(",")];o.push(s),a++}for(var u=[],l=0;l<o.length;l++){var c=void 0;if(o[l][0]instanceof Array){for(var f=[],h=0;h<o[l].length;h++)c=o[l][h].map(function(e){return Number(e)}),f.push(c);u.push(f)}else c=o[l].map(function(e){return Number(e)}),u.push(c)}t.push(u)}return t}},{key:"reduceDimension",value:function(e){if(e){var r=t.fromJSON(e).toJSON();switch(e.type){case s.GeometryType.point:r.coordinates=n(r.coordinates);break;case s.GeometryType.multiPoint:case s.GeometryType.lineString:r.coordinates=i(r.coordinates,0);break;case s.GeometryType.multiLineString:case s.GeometryType.polygon:r.coordinates=i(r.coordinates,1);break;case s.GeometryType.multiPolygon:r.coordinates=i(r.coordinates,2);break;case s.GeometryType.extent:delete r.zmin,delete r.zmax;break;case s.GeometryType.circle:r.center=[r.center[0],r.center[1]]}return t.fromJSON(r)}function n(e){return[e[0],e[1]]}function i(e,t){for(var r=[],o=e.length,a=0;a<o;a++){var s=t?i(e[a],t-1):n(e[a]);r.push(s)}return r}}}]),t}();Object.defineProperties(h.prototype,{extent:{configurable:!1,get:function(){}}}),t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasemapChangeEvent=t.LayerLoadedEvent=t.LayerChangeEvent=t.CollectionChangeEvent=t.ProxyEvent=t.LayerViewScaleVisibleEvent=t.LayerViewUpdateEvent=t.LayerEvent=t.ErrorEvent=t.Event=void 0;var n=p(r(31)),i=p(r(320)),o=p(r(98)),a=r(80),s=p(r(321)),u=p(r(322)),l=p(r(323)),c=p(r(324)),f=p(r(325)),h=p(r(326));function p(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.LayerViewScaleVisibleEvent=h.default,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}),t.ColorMaterial=t.TextHalo=t.Edges3D=t.IconResource=t.PointSymbol3DOutline=t.FillSymbol3DOutline=t.LineStylePattern3D=t.LineStyleMarker3D=t.Symbol3DVerticalOffset=t.Callout3D=t.LineCallout3D=void 0;var n=d(r(385)),i=d(r(154)),o=d(r(386)),a=d(r(387)),s=d(r(388)),u=d(r(389)),l=d(r(390)),c=d(r(391)),f=d(r(392)),h=d(r(155)),p=r(393);function d(e){return e&&e.__esModule?e:{default:e}}t.LineCallout3D=n.default,t.Callout3D=i.default,t.Symbol3DVerticalOffset=o.default,t.LineStyleMarker3D=a.default,t.LineStylePattern3D=s.default,t.FillSymbol3DOutline=u.default,t.PointSymbol3DOutline=l.default,t.IconResource=c.default,t.Edges3D=f.default,t.TextHalo=h.default,t.ColorMaterial=p.ColorMaterial},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(37)),i=g(r(439)),o=g(r(446)),a=g(r(447)),s=g(r(448)),u=g(r(451)),l=g(r(452)),c=g(r(453)),f=r(1),h=r(0),p=r(454),d=g(r(180)),y=r(62);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=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.Name=t&&t.Name?t.Name:null,this.IsBaseTheme=!t||!t.IsBaseTheme||t.IsBaseTheme,this.Visible=!t||!t.Visible||t.Visible}},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(14),a=r(0);function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=function(){function e(t){var r;!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._selectBoxScaleStyle=(0,a.defaultValue)(t.selectBoxScaleStyle,new o.SimpleFillSymbol({color:new i.Color(241,188,0,.05),outline:new o.SimpleLineSymbol({color:new i.Color(241,188,0,.8),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),this._tipTextStyle=(0,a.defaultValue)(t.tipTextStyle,new o.TextSymbol((s(r={color:new i.Color(256,256,256,1),text:"默认文字",backgroundColor:new i.Color(60,71,79,1),haloColor:new i.Color(60,71,79,1),haloSize:3},"backgroundColor",new i.Color(60,71,79,1)),s(r,"borderLineSize",1),s(r,"xoffset",10),s(r,"horizontalAlignment","left"),s(r,"kerning",!1),s(r,"font",{family:"微软雅黑",size:12,style:"normal",weight:"normal"}),s(r,"extensionOptions",{disableDepthTestDistance:1/0}),r)))}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.selectBoxScaleStyle=this._selectBoxScaleStyle.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.tipTextStyle=this._tipTextStyle.clone(),e}},{key:"fromJSON",value:function(){}}]),e}();Object.defineProperties(u.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}},selectBoxScaleStyle:{get:function(){return this._selectBoxScaleStyle},set:function(e){this._selectBoxScaleStyle=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}},tipTextStyle:{get:function(){return this._tipTextStyle},set:function(e){this._tipTextStyle=e}}}),t.default=u},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(19)),i=r(0),o=r(1),a=r(3),s=r(107);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,t){var r=void 0;switch((r="Feature"===e.type?e.geometry:e).type){case o.GeometryType.point:return new a.Point({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.multiPoint:case o.GeometryType.lineString:return new a.LineString({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.multiLineString:return new a.MultiLineString({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.polygon:return new a.Polygon({coordinates:r.coordinates,spatialReference:t});case o.GeometryType.multiPolygon:return new a.MultiPolygon({coordinates:r.coordinates,spatialReference:t});default:i.Log.error("无法解析type类型为"+r.type+"的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}}(),i=r(0),o=u(r(20)),a=r(1),s=u(r(50));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});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(29)),s=c(r(25)),u=r(0),l=r(56);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="sketchPointDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),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._fireDrawVertexEvent(o),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.clone():this.sketchStyle.vertexStyle.clone()).id=(0,u.getGUID)()),new i.Feature({geometry:e,symbol:t,elevationInfo:this.elevationInfo})}},{key:"hitTestFeature",value:function(e,t){this.view._mapActionControl("video-map-active",!0);this._getEditOptionMode(this._editOption);this.editOption.showSelectBox?(this._editMode=i.SketchEditMode.editGraphic,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.editGraphic?"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=void 0;this._sketchDataType===i.SketchDataType.text?(this.sketchStyle._selectTextStyle.text=this.sketchStage.entityGraphic&&this.sketchStage.entityGraphic.symbol&&this.sketchStage.entityGraphic.symbol.text?this.sketchStage.entityGraphic.symbol.text:this.sketchStyle._textStyle.text,n=this.sketchStyle._selectTextStyle):n=this.sketchStyle._selectVertexStyle;var o=new t({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new s.default({vertexStyle:n}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,_parent:this}),a=e.geometry;if(this._drawTools.push(o),o.addFeatureByGeometry(a,null,null,this._sketchInnerLayer),this.sketchStage.selectBoxGraphics=[o.sketchStage.entityGraphic],this._otherDrawTools.push(o),this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),!this._parent||this._parent&&!this._parent._mapClickEvent){var u=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._fireRemoveSelectEvent(r.sketchStage.entityGraphic),r.sketchStage.selectBoxGraphics=[],r._editMode=i.SketchEditMode.none,r._isAddTip&&r._updateTipText((0,l.getTipTextByEditOption)("draw-end",r._tipText,r._editOption),r._sketchInnerLayer),r.view._mapActionControl("video-map-active",!1))};this._mapClickEvent||(this._mapClickEvent=u,this._hitTestEventHandlers.push(this._mapClickEvent),this.view.on(i.ViewEventType.immediateClick,u)),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 instanceof o.Extent?this._parent.sketchStage.entityGraphic.geometry: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=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(2),o=r(0),a=r(3),s=p(r(566)),u=r(123),l=r(34),c=r(214),f=p(r(25)),h=r(56);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));r.type="SketchBaseDrawTool",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._isAddTip=r._sketchEditor._isAddTip,r._isShowTip=r._sketchEditor._isShowTip,r._tipTextGraphics=r._sketchEditor._tipTextGraphics),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._isAddTip&&this._updateTipText(this._tipText.drawStart,this._sketchInnerLayer),this.drawFeature()}},{key:"stop",value:function(){this._editMode===i.SketchEditMode.drawing||this._editMode===i.SketchEditMode.none?this._stopDraw():this._editMode===i.SketchEditMode.editGraphic||this._editMode===i.SketchEditMode.editVertex?this._stopHitTest():(this._stopDraw(),this._stopHitTest())}},{key:"hitTestFeature",value:function(e,t){switch(this.type){case"sketchPolygonDrawTool":case"sketchPolylineDrawTool":case"sketchFreehandPolygonDrawTool":case"sketchFreehandPolylineDrawTool":case"sketchCircleDrawTool":case"sketchExtentDrawTool":default:this._hitTestFeatureInPolygon(e,t);break;case"sketchPointDrawTool":}}},{key:"selectFeature",value:function(e){switch(this.type){case"sketchPolygonDrawTool":case"sketchPolylineDrawTool":case"sketchFreehandPolygonDrawTool":case"sketchFreehandPolylineDrawTool":default:this._selectFeatureInPolygon(e,e.geometry.extent);break;case"sketchPointDrawTool":break;case"sketchCircleDrawTool":this._selectFeatureInCircle(e,e.geometry);break;case"sketchExtentDrawTool":this._selectFeatureInPolygon(e,e.geometry)}}},{key:"_hitTestFeatureInPolygon",value:function(e,t){this.view._mapActionControl("video-map-active",!0);var r=this._getEditOptionMode(this._editOption);!r||r.editGraphic&&r.editVertex?(this._parent&&this._parent._editMode===i.SketchEditMode.editGraphic&&this.startPanGraphics(e,t,r),!this._parent&&this.editOption.showSelectBox&&(this._editMode===i.SketchEditMode.none?this._editMode=i.SketchEditMode.editGraphic:this._editMode===i.SketchEditMode.editVertex&&(this.view.off(i.ViewEventType.immediateClick,this._mapClickEvent),this._mapClickEvent=null,this._editMode=i.SketchEditMode.editGraphic),this.selectFeature(e))):r.editGraphic?(this.selectFeature(e),this._parent&&this._parent._editMode===i.SketchEditMode.editGraphic&&this.startPanGraphics(e,t),this._parent||(this._editMode=i.SketchEditMode.editGraphic)):r.editVertex&&(this._mapClickEvent||this._parent||this._registeMapClickEvent(),this._editMode!==i.SketchEditMode.editVertex&&this.selectFeatureVertex&&this.selectFeatureVertex(this.sketchStage.entityGraphic),this._parent||(this._editMode=i.SketchEditMode.editVertex))}},{key:"_selectFeatureInPolygon",value:function(e,t){var r=this;if(this.editOption.showSelectBox){if(this._clearEditGraphics(2),this._editOption.graphic.move||this._editOption.graphic.scale){var n=this.sketchStyle._selectBoxStyle;!this._editOption.graphic.move&&this._editOption.graphic.scale&&(n=this.sketchStyle._selectBoxScaleStyle);var i=new c.SketchPolygonDrawTool({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new f.default({fillStyle:n,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:this.elevationInfo,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate,_parent:this});this._drawTools.push(i),i.addFeature([[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax]],void 0,void 0,this._sketchInnerLayer),this.sketchStage.selectBoxGraphics=[i.sketchStage.entityGraphic],this._otherDrawTools?this._otherDrawTools.push(i):this._otherDrawTools=[i]}if(this._editOption.graphic.scale){var o=[];if(o=[{point:new a.Point({coordinates:[t.xmax,t.ymax],spatialReference:this._spatialReference}),direction:"ne"},{point:new a.Point({coordinates:[t.xmax,t.ymin],spatialReference:this._spatialReference}),direction:"se"},{point:new a.Point({coordinates:[t.xmin,t.ymin],spatialReference:this._spatialReference}),direction:"sw"},{point:new a.Point({coordinates:[t.xmin,t.ymax],spatialReference:this._spatialReference}),direction:"nw"}],this._sketchEditor&&this._getCenterCoordinate){var s=[{point:new a.Point({coordinates:this._getCenterCoordinate([t.xmax,t.ymax],[t.xmax,t.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"midVertex"},{point:new a.Point({coordinates:this._getCenterCoordinate([t.xmax,t.ymin],[t.xmin,t.ymin]),spatialReference:this._spatialReference}),direction:"s",type:"midVertex"},{point:new a.Point({coordinates:this._getCenterCoordinate([t.xmin,t.ymin],[t.xmin,t.ymax]),spatialReference:this._spatialReference}),direction:"w",type:"midVertex"},{point:new a.Point({coordinates:this._getCenterCoordinate([t.xmin,t.ymax],[t.xmax,t.ymax]),spatialReference:this._spatialReference}),direction:"n",type:"midVertex"}];o=o.concat(s)}var u=[],l=[];o.forEach(function(e){var t=new c.SketchPointDrawTool({view:r.view,layer:r._sketchInnerLayer,sketchInnerLayer:r._sketchInnerLayer,sketchStyle:new f.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),u.push(t),l.push(t.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=l,this._otherDrawTools=this._otherDrawTools.concat(u)}this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage,this._editMode),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||this._registeMapClickEvent()}}},{key:"_selectFeatureInCircle",value:function(e){var t=this;if(this.editOption.showSelectBox){this._clearEditGraphics(2);var r=e.geometry.extent;if(this._editOption.graphic.move||this._editOption.graphic.scale){var n=this.sketchStyle._selectBoxStyle,i=1;!this._editOption.graphic.move&&this._editOption.graphic.scale&&(n=this.sketchStyle._selectBoxScaleStyle),!this._editOption.graphic.scale||this._editOption.vertex.move||this._editOption.vertex.add||(i=void 0);var o=new c.SketchPolygonDrawTool({view:this.view,layer:this._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,sketchStyle:new f.default({fillStyle:n,isShowSegmentLength:!0,isShowArea:!0}),editOption:{showSelectBox:!1,_hitTestMode:i},elevationInfo:this.elevationInfo,arcType:this.arcType,_getCenterCoordinate:this._getCenterCoordinate,_parent:this});this._drawTools.push(o),o.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=[o.sketchStage.entityGraphic],this._otherDrawTools?this._otherDrawTools.push(o):this._otherDrawTools=[o]}var s=[];if(this._editOption.graphic.scale){if(this._sketchEditor&&this._sketchEditor._getCenterCoordinate){var u=[{point:new a.Point({coordinates:this._sketchEditor._getCenterCoordinate([r.xmax,r.ymax],[r.xmax,r.ymin]),spatialReference:this._spatialReference}),direction:"e",type:"circleVertex"}];s=s.concat(u)}var l=[],h=[];s.forEach(function(e){var r=new c.SketchPointDrawTool({view:t.view,layer:t.layer,sketchStyle:new f.default({vertexStyle:t.sketchStyle._selectBoxVertexStyle}),editOption:{showSelectBox:!1,_hitTestMode:1},elevationInfo:t.elevationInfo,_getCenterCoordinate:t._getCenterCoordinate,_parent:t});t._drawTools.push(r),r.addFeature(e.point,t.sketchStage,{direction:e.direction,type:e.type},t._sketchInnerLayer),l.push(r),h.push(r.sketchStage.entityGraphic)}),this.sketchStage.selectBoxVertexGraphics=h,this._otherDrawTools=this._otherDrawTools.concat(l)}this.undoRedoManager&&this.undoRedoManager.addProcess("add",this.sketchStage),this._mapClickEvent||this._parent&&(!this._parent||this._parent._mapClickEvent)||this._registeMapClickEvent()}}},{key:"_registeMapClickEvent",value:function(){var e=this;this._mapClickEvent=function(){e._preventFirstCall?e._preventFirstCall=void 0:(e.sketchStage.selectBoxGraphics.concat(e.sketchStage.selectBoxVertexGraphics).concat(e.sketchStage.vertexGraphics).concat(e.sketchStage.midVertexGraphics).forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),e.view.off(i.ViewEventType.immediateClick,e._mapClickEvent),e.view._mapActionControl("drag-pan",!0),e._mapClickEvent=null,e.fire("selected",{isSelected:!1},self),e._fireRemoveSelectEvent(e.sketchStage.entityGraphic),e.sketchStage.selectBoxGraphics=[],e.sketchStage.selectBoxVertexGraphics=[],e.sketchStage.vertexGraphics=[],e.sketchStage.midVertexGraphics=[],e._editMode=i.SketchEditMode.none,e._isAddTip&&e._updateTipText((0,h.getTipTextByEditOption)("draw-end",e._tipText,e._editOption),e._sketchInnerLayer),e.view._mapActionControl("video-map-active",!1))},this._hitTestEventHandlers.push(this._mapClickEvent),setTimeout(function(){e.view.on(i.ViewEventType.immediateClick,e._mapClickEvent)},0)}},{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){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.editGraphic?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.editGraphic),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:"_addFeatureToLayer",value:function(e,t){if(t instanceof l.GraphicsLayer)t.add(e);else if(t instanceof l.GroupLayer){var r=t.allLayers.find(function(e){return e instanceof l.GraphicsLayer});r&&r.add(e)}}},{key:"_removeFeatureFromLayer",value:function(e,t){if(t instanceof l.GraphicsLayer)t.remove(e);else if(t instanceof l.GroupLayer){var r=t.allLayers.find(function(e){return e instanceof l.GraphicsLayer});r&&r.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:"_clearDrawToolSketchStage",value:function(){this._removeFeatureFromLayer(this.sketchStage.entityGraphic,this.layer),this._removeEditGraphics()}},{key:"removeDrawTool",value:function(){this._stopAll(),this.sketchStage=null}},{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).concat(this.sketchStage.snapGraphics).forEach(function(t){e._removeFeatureFromLayer(t,e._sketchInnerLayer)}),this.sketchStage.selectBoxGraphics=[],this.sketchStage.selectBoxVertexGraphics=[],this.sketchStage.vertexGraphics=[],this.sketchStage.midVertexGraphics=[],this.sketchStage.snapGraphics=[]}},{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 w=new i.Feature({geometry:l.perpendicularLine.symbolGeometry,symbol:this.sketchStyle._perpendicularLineStyle,elevationInfo:this.elevationInfo});this.sketchStage.snapGraphics.push(w)}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)}}},{key:"_updateTipText",value:function(e,t,r){if(e&&(t=t||this._sketchInnerLayer,this.sketchStyle&&this.sketchStyle.tipTextStyle)){var n=this.sketchStyle.tipTextStyle.clone();n.id=(0,o.getGUID)(),e.text&&(n.text=e.text),e.lineWidth&&(n.lineWidth=e.lineWidth),this._tipTextGraphics&&this._tipTextGraphics.length>0&&(this._tipTextGraphics[0].symbol=n,this._tipTextGraphics[0].visible=this._isShowTip)}}},{key:"_getTipTextObject",value:function(){var e=void 0;switch(this.type){case"sketchPolygonDrawTool":case"sketchPolylineDrawTool":case"sketchFreehandPolygonDrawTool":case"sketchFreehandPolylineDrawTool":e={drawStart:{text:"左键单击增加一个顶点,双击完成绘制;",lineWidth:150},editGraphic:{text:"左键拖动外包盒,更改位置;左键拖动外包盒顶点,更改大小;左键单击外包盒,进入顶点编辑",lineWidth:200},beforeEditGraphic:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveGraphic:{text:"左键拖动外包盒,更改位置;",lineWidth:200},scaleGraphic:{text:"左键拖动外包盒顶点,更改大小;",lineWidth:200},editVertex:{text:"左键拖动外包盒顶点,更改顶点位置;左键拖动中点,增加一个顶点;",lineWidth:250},beforeEditVertex:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveVertex:{text:"左键拖动外包盒顶点,更改顶点位置;",lineWidth:120},addVertex:{text:"左键拖动中点,增加一个顶点;",lineWidth:120}};break;case"sketchCircleDrawTool":default:e={drawStart:{text:"左键按下确定圆心,拖动确定半径;",lineWidth:200},editGraphic:{text:"左键拖动外包盒,更改位置;左键拖动外包盒顶点,更改大小;",lineWidth:200},beforeEditGraphic:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveGraphic:{text:"左键拖动外包盒,更改位置;",lineWidth:200},scaleGraphic:{text:"左键拖动外包盒顶点,更改大小;",lineWidth:200}};break;case"sketchExtentDrawTool":e={drawStart:{text:"左键按下确定矩形左上角,拖动确定矩形右下角;",lineWidth:200},editGraphic:{text:"左键拖动外包盒,更改位置;左键拖动外包盒顶点,更改大小;",lineWidth:200},beforeEditGraphic:{text:"左键单击外包盒,进入顶点编辑;",lineWidth:160},moveGraphic:{text:"左键拖动外包盒,更改位置;",lineWidth:200},scaleGraphic:{text:"左键拖动外包盒顶点,更改大小;",lineWidth:200}};break;case"sketchPointDrawTool":e={drawStart:{text:"左键单击绘制点;",lineWidth:140},editGraphic:{text:"左键按下移动选中要素;",lineWidth:140},beforeEditGraphic:{text:"左键按下移动选中要素;",lineWidth:140},moveGraphic:{text:"左键按下移动选中要素;",lineWidth:140},beforeEditVertex:{text:"左键按下移动选中要素;",lineWidth:160},editVertex:{text:"左键按下移动选中要素;",lineWidth:250},moveVertex:{text:"左键按下移动选中要素;",lineWidth:120}}}return e}},{key:"_getEditOption",value:function(){var e=void 0;switch(this._sketchEditor?e=this._sketchEditor._editOption:this._parent&&this._parent._editOption&&(e=this._parent._editOption),e=(0,o.defaultValue)(e,{graphic:{},vertex:{}}),e=(0,o.extendDeep)({graphic:{move:!0,scale:!0},vertex:{move:!0,add:!0}},e),this.type){case"sketchCircleDrawTool":case"sketchExtentDrawTool":e.vertex.move=!1,e.vertex.add=!1;break;case"sketchPointDrawTool":e.graphic.scale=!1,e.vertex.add=!1}return e}},{key:"_getEditOptionMode",value:function(e){var t={editGraphic:!0,editVertex:!0};return e&&0!==Object.keys(e).length||(this._editOption={graphic:{move:!0,scale:!0},vertex:{move:!0,add:!0}}),e.graphic.move||e.graphic.scale||(t.editGraphic=!1),e.vertex.move||e.vertex.add||(t.editVertex=!1),t}}]),t}();t.default=d},function(e,t,r){e.exports=function(e){return function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),s=a.words,u=n.keySize,l=n.iterations;s.length<u;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var c=1;c<l;c++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*u,a}});t.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)}}(),e.EvpKDF}(r(6),r(143),r(95))},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),this.initPropertys(t),this.sourceTarget=(0,i.defaultValue)(t.sourceTarget,null),this.target=(0,i.defaultValue)(t.target,null)}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=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(145));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});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.formatWebTileUrl=t.RasterInfo=t.RasterFunction=t.IGSImageryTileLayer=t.IGSImageryLayer=t.SubLayer=t.VoxelFilter=t.FeatureFilter=t.S3MTilesCacheLayer=t.OverlayLayer=t.UnknownLayer=t.TileLayer=t.VectorTileLayer=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.ArcGISVectorTileSubLayer=t.ArcGISVectorTileLayer=t.VisualVariable=t.OpacityVariable=t.ColorVariable=t.SizeVariable=t.HeatmapColorStop=t.setElevationInfo=t.Layer=t.TileInfoUtil=t.getIGSDynamicLayer=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.ISSceneModelCacheSubLayer=t.ISSceneSubLayer=t.ISSceneLayer=t.IGSFeatureLayer=t.BaseScene=t.ISScene=t.IGSScene=t.IGSTileLayer=t.IGSSceneTerrainSubLayer=t.IGSSceneMapRefSubLayer=t.IGSSceneModelCacheSubLayer=t.IGSSceneLabelSubLayer=t.IGSSceneSubLayer=t.IGSSceneLayer=t.IGSMapImageSubLayer=t.IGSMapImageLayer=t.IGSVectorTileSubLayer=t.IGSVectorTileLayer=t.WMTSSubLayer=t.WFSLayer=t.WMSSubLayer=t.WMSLayer=t.WMTSLayer=t.OGCLayer=void 0;var n=r(35),i=r(23),o=r(499),a=function(e){return e&&e.__esModule?e:{default:e}}(r(54));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.IGSSceneLabelSubLayer=n.IGSSceneLabelSubLayer,t.IGSSceneModelCacheSubLayer=n.IGSSceneModelCacheSubLayer,t.IGSSceneMapRefSubLayer=n.IGSSceneMapRefSubLayer,t.IGSSceneTerrainSubLayer=n.IGSSceneTerrainSubLayer,t.IGSTileLayer=n.IGSTileLayer,t.IGSScene=n.IGSScene,t.ISScene=n.ISScene,t.BaseScene=n.BaseScene,t.IGSFeatureLayer=n.IGSFeatureLayer,t.ISSceneLayer=n.ISSceneLayer,t.ISSceneSubLayer=n.ISSceneSubLayer,t.ISSceneModelCacheSubLayer=n.ISSceneModelCacheSubLayer,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.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.ArcGISVectorTileSubLayer=n.ArcGISVectorTileSubLayer,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,t.S3MTilesCacheLayer=n.S3MTilesCacheLayer,t.FeatureFilter=n.FeatureFilter,t.VoxelFilter=n.VoxelFilter,t.SubLayer=n.SubLayer,t.IGSImageryLayer=n.IGSImageryLayer,t.IGSImageryTileLayer=n.IGSImageryTileLayer,t.RasterFunction=n.RasterFunction,t.RasterInfo=n.RasterInfo,t.formatWebTileUrl=n.formatWebTileUrl},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatWebTileUrl=t.RasterInfo=t.RasterFunction=t.IGSImageryTileLayer=t.IGSImageryLayer=t.SubLayer=t.VoxelFilter=t.FeatureFilter=t.S3MTilesCacheLayer=t.SceneLayer=t.OverlayLayer=t.TileLayer=t.VectorTileLayer=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FeatureCollection=t.getZoomOffset=t.WebTileLayer=t.setElevationInfo=t.TileInfoUtil=t.getLayerViewScaleVisible=t.isCustomSP=t.is4326=t.getUrlType=t.ArcGISVectorTileSubLayer=t.ArcGISVectorTileLayer=t.ArcGISTileLayer=t.ArcGISMapImageSubLayer=t.ArcGISMapImageLayer=t.Projection=t.M3DModelCacheLayer=t.ISSceneModelCacheSubLayer=t.ISSceneSubLayer=t.ISSceneLayer=t.IGSFeatureLayer=t.BaseScene=t.ISScene=t.IGSScene=t.IGSTileLayer=t.IGSSceneTerrainSubLayer=t.IGSSceneMapRefSubLayer=t.IGSSceneModelCacheSubLayer=t.IGSSceneLabelSubLayer=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(434),i=r(474),o=L(r(116)),a=r(7),s=r(477),u=r(4),l=r(482),c=L(r(486)),f=L(r(487)),h=r(488),p=L(r(491)),d=L(r(492)),y=L(r(493)),g=L(r(494)),v=L(r(495)),m=L(r(59)),_=r(15),b=L(r(44)),S=L(r(55)),w=L(r(85)),x=L(r(118)),O=L(r(496)),E=L(r(497)),P=L(r(498)),T=L(r(183)),I=L(r(192)),k=L(r(184)),M=L(r(64));function L(e){return e&&e.__esModule?e:{default:e}}t.Layer=a.Layer,t.OGCLayer=l.OGCLayer,t.WMTSLayer=l.WMTSLayer,t.WMSLayer=l.WMSLayer,t.WMSSubLayer=l.WMSSubLayer,t.WFSLayer=l.WFSLayer,t.WMTSSubLayer=l.WMTSSubLayer,t.FeatureLayer=a.FeatureLayer,t.Cesium3DTilesCacheLayer=c.default,t.TerrainCacheLayer=f.default,t.EchartsLayer=h.EchartsLayer,t.MapVLayer=h.MapVLayer,t.GroupLayer=p.default,t.GraphicsLayer=d.default,t.GeoJSONLayer=y.default,t.UnknownLayer=E.default,t.VideoLayer=v.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.IGSSceneLabelSubLayer=n.IGSSceneLabelSubLayer,t.IGSSceneModelCacheSubLayer=n.IGSSceneModelCacheSubLayer,t.IGSSceneMapRefSubLayer=n.IGSSceneMapRefSubLayer,t.IGSSceneTerrainSubLayer=n.IGSSceneTerrainSubLayer,t.IGSTileLayer=n.IGSTileLayer,t.IGSScene=n.IGSScene,t.ISScene=i.ISScene,t.BaseScene=o.default,t.IGSFeatureLayer=n.IGSFeatureLayer,t.ISSceneLayer=i.ISSceneLayer,t.ISSceneSubLayer=i.ISSceneSubLayer,t.ISSceneModelCacheSubLayer=i.ISSceneModelCacheSubLayer,t.M3DModelCacheLayer=g.default,t.Projection=m.default,t.ArcGISMapImageLayer=s.ArcGISMapImageLayer,t.ArcGISMapImageSubLayer=s.ArcGISMapImageSubLayer,t.ArcGISTileLayer=s.ArcGISTileLayer,t.ArcGISVectorTileLayer=s.ArcGISVectorTileLayer,t.ArcGISVectorTileSubLayer=s.ArcGISVectorTileSubLayer,t.getUrlType=_.getUrlType,t.is4326=_.is4326,t.isCustomSP=_.isCustomSP,t.getLayerViewScaleVisible=_.getLayerViewScaleVisible,t.TileInfoUtil=S.default,t.setElevationInfo=u.setElevationInfo,t.WebTileLayer=O.default,t.getZoomOffset=_.getZoomOffset,t.FeatureCollection=x.default,t.TileInfo=b.default,t.appendUrlParams=_.appendUrlParams,t.getFullBaseUrl=_.getFullBaseUrl,t.LOD=w.default,t.VectorTileLayer=a.VectorTileLayer,t.TileLayer=a.TileLayer,t.OverlayLayer=h.OverlayLayer,t.SceneLayer=a.SceneLayer,t.S3MTilesCacheLayer=P.default,t.FeatureFilter=T.default,t.VoxelFilter=I.default,t.SubLayer=a.SubLayer,t.IGSImageryLayer=n.IGSImageryLayer,t.IGSImageryTileLayer=n.IGSImageryTileLayer,t.RasterFunction=k.default,t.RasterInfo=M.default,t.formatWebTileUrl=_.formatWebTileUrl},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(42)),l=r(3),c=r(4),f=r(11);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=(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=(0,o.defaultValue)(e.loaded,!1),r.loadError=null,r.tokenKey=(0,o.defaultValue)(e.tokenKey,"token"),r.tokenValue=(0,o.defaultValue)(e.tokenValue,null),r.tokenAttachType=(0,o.defaultValue)(e.tokenAttachType,a.TokenAttachType.normal),r.title=(0,o.defaultValue)(e.title,""),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.base,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.extent=r._decorate("extent",(0,o.defaultValue)(e.extent,null),l.Extent,l.Extent.fromJSON),r.spatialReference=r._decorate("spatialReference",(0,o.defaultValue)(e.spatialReference,null),u.default,u.default.fromJSON),r.forceRefreshDebounceDelay=(0,o.defaultValue)(e.forceRefreshDebounceDelay,5);return r.capabilities=(0,c.mergeCommonClientCapbilities)(e.capabilities,{description:!0,copyright:!0,loaded:!0,tokenKey:!0,tokenValue:!0,title:!0,minScale:!0,maxScale:!0,extensionOptions:!0,type:!0,httpMethod:!0,headers:!0,extendProps:!0,visible:!0,opacity:!0,extent:!0,spatialReference:!0}),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(){var e=this;return this.loadStatus===a.LoadStatus.notLoaded?(this.loadStatus=a.LoadStatus.loading,this._loadPromise=this._load().catch(function(t){return t&&(t.layer=e),o.Log.error(e.type+"图层load失败,错误信息:",t),e.loadError=t,e.loadStatus=a.LoadStatus.failed,e.loaded=!1,e})):(this.loadStatus,a.LoadStatus.loading),this._loadPromise}},{key:"setMap",value:function(e){this._map=e}},{key:"destroy",value:function(){}},{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,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:(0,f.jsonClone)(this.extendProps),extensionOptions:(0,f.jsonClone)(this.extensionOptions),capabilities:(0,f.jsonClone)(this.capabilities),httpMethod:this.httpMethod,headers:this.headers}}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"_load",value:function(){var e=this;return new Promise(function(t){e.loadStatus=a.LoadStatus.loaded,e.loaded=!0,t(e)})}},{key:"_fireUpdateEvent",value:function(e,t){if(this._map){var r=new s.LayerViewUpdateEvent({type:a.LayerEventType.layerUpdate,target:this._map,layer:this,message:e,updateContent:t});this.fire(a.LayerEventType.layerUpdate,r),this._map.fire(a.LayerEventType.layerUpdate,r)}}},{key:"_updateDiff",value:function(e,t,r){this._fireUpdateEvent("",[{name:e,params:[t],dataChanged:!0,operationType:"property"}])}},{key:"refresh",value:function(){this._fireUpdateEvent("刷新图层",[{params:arguments,dataChanged:!0,name:"refresh",operationType:"method"}])}},{key:"getCumulative",value:function(e,t){for(var r=this[e],n=this.parent;n;)r=t(r,n[e]),n=n.parent;return r}}],[{key:"fromServerUrl",value:function(e,t){return t=t||{},new Promise(function(r){t.url=e,r((0,c.createLayer)(t))})}},{key:"fromJSON",value:function(e){return e=e||{},(0,c.createLayer)(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(23),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){e.exports=function(e){return function(){var t=e,r=t.lib.WordArray;t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,u=n[e.charCodeAt(a)]>>>6-a%4*2,l=s|u;i[o>>>2]|=l<<24-o%4*8,o++}return r.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(r(6))},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],p=e[t+2],d=e[t+3],y=e[t+4],g=e[t+5],v=e[t+6],m=e[t+7],_=e[t+8],b=e[t+9],S=e[t+10],w=e[t+11],x=e[t+12],O=e[t+13],E=e[t+14],P=e[t+15],T=o[0],I=o[1],k=o[2],M=o[3];I=h(I=h(I=h(I=h(I=f(I=f(I=f(I=f(I=c(I=c(I=c(I=c(I=l(I=l(I=l(I=l(I,k=l(k,M=l(M,T=l(T,I,k,M,a,7,s[0]),I,k,u,12,s[1]),T,I,p,17,s[2]),M,T,d,22,s[3]),k=l(k,M=l(M,T=l(T,I,k,M,y,7,s[4]),I,k,g,12,s[5]),T,I,v,17,s[6]),M,T,m,22,s[7]),k=l(k,M=l(M,T=l(T,I,k,M,_,7,s[8]),I,k,b,12,s[9]),T,I,S,17,s[10]),M,T,w,22,s[11]),k=l(k,M=l(M,T=l(T,I,k,M,x,7,s[12]),I,k,O,12,s[13]),T,I,E,17,s[14]),M,T,P,22,s[15]),k=c(k,M=c(M,T=c(T,I,k,M,u,5,s[16]),I,k,v,9,s[17]),T,I,w,14,s[18]),M,T,a,20,s[19]),k=c(k,M=c(M,T=c(T,I,k,M,g,5,s[20]),I,k,S,9,s[21]),T,I,P,14,s[22]),M,T,y,20,s[23]),k=c(k,M=c(M,T=c(T,I,k,M,b,5,s[24]),I,k,E,9,s[25]),T,I,d,14,s[26]),M,T,_,20,s[27]),k=c(k,M=c(M,T=c(T,I,k,M,O,5,s[28]),I,k,p,9,s[29]),T,I,m,14,s[30]),M,T,x,20,s[31]),k=f(k,M=f(M,T=f(T,I,k,M,g,4,s[32]),I,k,_,11,s[33]),T,I,w,16,s[34]),M,T,E,23,s[35]),k=f(k,M=f(M,T=f(T,I,k,M,u,4,s[36]),I,k,y,11,s[37]),T,I,m,16,s[38]),M,T,S,23,s[39]),k=f(k,M=f(M,T=f(T,I,k,M,O,4,s[40]),I,k,a,11,s[41]),T,I,d,16,s[42]),M,T,v,23,s[43]),k=f(k,M=f(M,T=f(T,I,k,M,b,4,s[44]),I,k,x,11,s[45]),T,I,P,16,s[46]),M,T,p,23,s[47]),k=h(k,M=h(M,T=h(T,I,k,M,a,6,s[48]),I,k,m,10,s[49]),T,I,E,15,s[50]),M,T,g,21,s[51]),k=h(k,M=h(M,T=h(T,I,k,M,x,6,s[52]),I,k,d,10,s[53]),T,I,S,15,s[54]),M,T,u,21,s[55]),k=h(k,M=h(M,T=h(T,I,k,M,_,6,s[56]),I,k,P,10,s[57]),T,I,v,15,s[58]),M,T,O,21,s[59]),k=h(k,M=h(M,T=h(T,I,k,M,y,6,s[60]),I,k,w,10,s[61]),T,I,p,15,s[62]),M,T,b,21,s[63]),o[0]=o[0]+T|0,o[1]=o[1]+I|0,o[2]=o[2]+k|0,o[3]=o[3]+M|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,l=0;l<4;l++){var c=u[l];u[l]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function c(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}r.MD5=o._createHelper(u),r.HmacMD5=o._createHmacHelper(u)}(Math),e.MD5}(r(6))},function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0});var o=(i=n=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n.default="default",n.color="color",n.opacity="opacity",n.size="size",i);Object.defineProperty(o,"default",{writable:!1}),Object.defineProperty(o,"color",{writable:!1}),Object.defineProperty(o,"opacity",{writable:!1}),Object.defineProperty(o,"size",{writable:!1}),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(58)),o=r(2),a=r(0),s=r(1),u=r(14);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(0,0,0,.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(161),s=function(e){return e&&e.__esModule?e:{default:e}}(r(106));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)||/^GEOGCRS/.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(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(19)),i=r(0),o=r(1),a=m(r(20)),s=m(r(61)),u=m(r(162)),l=m(r(163)),c=m(r(59)),f=m(r(42)),h=m(r(82)),p=m(r(164)),d=m(r(27)),y=m(r(165)),g=m(r(50)),v=m(r(167));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: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.extent:case h.default.circle:i=n.polygon(t.toPolygon().coordinates)}return n.difference(r,i)},_.buffer=function(e,t,r,n){r=(0,i.defaultValue)(r,o.LengthUnit.meters),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 w=0;w=t instanceof Array?t[S]:t,v.push(_._polygonBuffer(y[S],w,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 x=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(x,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 w=void 0,x=[];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)w=new d.default({coordinates:O[0],spatialReference:f.default.fromJSON(e[0].spatialReference)});else{var P=n.multiPoint(O);P=n.cleanCoords(P),w=new p.default({coordinates:P.geometry.coordinates,spatialReference:f.default.fromJSON(e[0].spatialReference)})}break;case h.default.polygon:case h.default.multiPolygon:var T=void 0,I=e[0].type===h.default.polygon?n.polygon(e[0].coordinates):n.multiPolygon(e[0].coordinates),k=e[1].type===h.default.polygon?n.polygon(e[1].coordinates):n.multiPolygon(e[1].coordinates);T=n.union(I,k);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);T=n.union(T.geometry,L)}w=T.geometry.type===h.default.polygon?new s.default({coordinates:T.geometry.coordinates,spatialReference:f.default.fromJSON(e[0].spatialReference)}):new l.default({coordinates:T.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);w=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:x=[];for(var j=0;j<e.length;j++){var R=new s.default({coordinates:[[[e[j].xmin,e[j].ymin],[e[j].xmax,e[j].ymin],[e[j].xmax,e[j].ymax],[e[j].xmin,e[j].ymax],[e[j].xmin,e[j].ymin]]],spatialReference:f.default.fromJSON(e[0].spatialReference)});x.push(R)}w=_.union(x);break;case h.default.circle:x=[];for(var G=0;G<e.length;G++)x.push(e[G].toPolygon());w=_.union(x)}return w}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||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=void 0;r=e.spatialReference.isGeographic?e:c.default.project(e,new f.default({wkid:4326})),"string"!=typeof(t=(0,i.defaultValue)(t,o.LengthUnit.meters))&&i.Log.error("unit类型不正确!");var a=_._geometryToTurf(r),h=1e3*n.length(a,{units:"kilometers"});switch(t){case o.LengthUnit.kilometers:h/=1e3;break;case o.LengthUnit.miles:h*=.000621371192237}return h},_.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=void 0;r=e.spatialReference.isGeographic?e:c.default.project(e,new f.default({wkid:4326}));var a=_._geometryToTurf(r),u=n.area(a);switch(t){case o.AreaUnits.squareKilometers:u*=1e-6;break;case o.AreaUnits.squareMiles:u*=6214e-7*6214e-7;break;case o.AreaUnits.squareYards:u*=1.1959900499368898;break;case o.AreaUnits.squareFeet:u*=10.763910416689228;break;case o.AreaUnits.acres:u*=2471e-7;break;case o.AreaUnits.ares:u*=.01;break;case o.AreaUnits.hectares:u*=1e-4;break;case o.AreaUnits.squareMeters:}return u},_._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=t.toPolygon();r=_._polygonIntersectExtent(o,e);break;case h.default.circle:var s=e.toPolygon();r=_._polygonIntersectPolygon(s,t.toPolygon())}break;case h.default.circle:var l=e.toPolygon();switch(t.type){case h.default.point:r=_._pointIntersectGeometry(t,l);break;case h.default.multiPoint:r=_._multiPointIntersectGeometry(t,l);break;case h.default.lineString:r=_._lineIntersectPolygon(t,l);break;case h.default.multiLineString:r=_._multiLineIntersectPolygon(t,l);break;case h.default.polygon:r=_._polygonIntersectPolygon(t,l);break;case h.default.multiPolygon:r=_._polygonIntersectMultiPolygon(l,t);break;case h.default.circle:r=_._polygonIntersectPolygon(t.toPolygon(),l);break;case h.default.extent:r=_._polygonIntersectExtent(l,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 c=[],f=[],p=0;p<e.coordinates.length;p++){var y=new u.default({coordinates:e.coordinates[p]}),g=_._lineIntersectLine(y,t);g&&g.point&&c.push(g.point),g&&g.lineString&&f.push(g.lineString)}(r={point:void 0,lineString:void 0}).point=_.union(c),r.lineString=_.union(f);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=e.spatialReference,i=void 0,o=void 0;i=e.type===h.default.lineString?n.lineString(e.coordinates):n.multiLineString(e.coordinates),o=t.type===h.default.lineString?n.lineString(t.coordinates):n.multiLineString(t.coordinates);var a=void 0,s=void 0;if(e.type===h.default.lineString)a=[e];else{a=[];for(var l=0;l<e.coordinates.length;l++)a.push(new u.default({coordinates:e.coordinates[l],spatialReference:r}))}if(t.type===h.default.lineString)s=[t];else{s=[];for(var c=0;c<t.coordinates.length;c++)s.push(new u.default({coordinates:t.coordinates[c],spatialReference:r}))}for(var f=[],y=0;y<a.length;y++)for(var g=0;g<s.length;g++){var v=n.lineString(a[y].coordinates),m=n.lineString(s[g].coordinates),b=n.lineOverlap(v,m);if(b.features.length>0)for(var S=0;S<b.features.length;S++)f.push(new u.default({coordinates:b.features[S].geometry.coordinates,spatialReference:r}))}var w=n.lineIntersect(i,o),x={point:void 0,lineString:void 0};1===f.length?x.lineString=new u.default({coordinates:f[0].coordinates,spatialReference:r}):f.length>1&&(x.lineString=_.union(f));for(var O=0;O<w.features.length;O++){var E=new d.default({coordinates:w.features[O].geometry.coordinates,spatialReference:r});x.lineString&&_.contains(x.lineString,E)&&w.features.splice(O,1)}if(1===w.features.length)x.point=new d.default({coordinates:w.features[0].geometry.coordinates,spatialReference:r});else if(w.features.length>1){for(var P=[],T=0;T<w.features.length;T++)P.push(w.features[T].geometry.coordinates);x.point=new p.default({coordinates:P,spatialReference:r})}return x},_._lineIntersectMultiPoint=function(e,t){for(var r=[],n=void 0,i=e.spatialReference,o=0;o<t.coordinates.length;o++){var a=new d.default({coordinates:t.coordinates[o],spatialReference:i});_.contains(e,a)&&r.push(a.coordinates)}return 1===r.length?n=new d.default({coordinates:r[0],spatialReference:i}):r.length>1&&(n=new p.default({coordinates:r,spatialReference:i})),n},_._lineIntersectPolygon=function(e,t){var r=e.spatialReference,i=n.lineString(e.coordinates),o=n.polygon(t.coordinates),a=n.lineIntersect(i,o);a.features=a.features.sort(function(e,t){return e.geometry.coordinates[0]-t.geometry.coordinates[0]});for(var s=[],l=0;l<e.coordinates.length-1;l++){var c=new u.default({coordinates:[e.coordinates[l],e.coordinates[l+1]],spatialReference:r});c.coordinates=c.coordinates.sort(function(e,t){return e-t});for(var f=[],y=0;y<a.features.length;y++){var g=new d.default({coordinates:a.features[y].geometry.coordinates,spatialReference:r});_.contains(c,g)&&f.push(g)}var m=new d.default({coordinates:e.coordinates[l],spatialReference:r});f[0]&&_.equals(m,f[0])||(f=[m].concat(f));var b=new d.default({coordinates:e.coordinates[l+1],spatialReference:r});0!==f.length&&_.equals(b,f[f.length-1])||f.push(b);for(var S=0;S<f.length-1;S++){var w=new u.default({coordinates:[f[S].coordinates,f[S+1].coordinates],spatialReference:r});_.contains(t,w)&&s.push(w)}}if(1===s.length)return s[0];if(s.length>1){for(var x=[],O=0;O<s.length;O++)x.push(s[O].coordinates);return new v.default({coordinates:x,spatialReference:r})}for(var E=[],P=0;P<a.features.length;P++)a.features[P].geometry.type===h.default.point&&E.push(a.features[P].geometry.coordinates);return 1===E.length?new d.default({coordinates:E[0],spatialReference:r}):E.length>1?new p.default({coordinates:E,spatialReference:r}):void 0},_._multiLineIntersectPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new u.default({coordinates:e.coordinates[i],spatialReference:r}),a=_._lineIntersectPolygon(o,t);a&&n.push(a)}if(1===n.length)return new u.default({coordinates:n[0].coordinates,spatialReference:r});if(n.length>1){for(var s=[],l=0;l<n.length;l++)n[l].type===h.default.lineString?s.push(n[l].coordinates):s=s.concat(n[l].coordinates);return new v.default({coordinates:s,spatialReference:r})}},_._multiLineIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<t.coordinates.length;i++){var o=new s.default({coordinates:t.coordinates[i],spatialReference:r}),a=_._multiLineIntersectPolygon(e,o);a&&n.push(a)}return _.union(n)},_._lineIntersectExtent=function(e,t){var r=e.spatialReference,n=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]],spatialReference:r});return _._lineIntersectPolygon(e,n)},_._multiLineIntersectExtent=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new u.default({coordinates:e.coordinates[i],spatialReference:r}),a=_._lineIntersectExtent(o,t);a&&n.push(a)}if(1===n.length)return n[0];if(n.length>1){for(var s=[],l=0;l<n.length;l++)s.push(n[l].coordinates);return new v.default({coordinates:s,spatialReference:r})}},_._lineIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=void 0,i=[],o=0;o<t.coordinates.length;o++){var a=new s.default({coordinates:t.coordinates[o],spatialReference:r});i.push(_._lineIntersectPolygon(e,a))}for(var l=[],c=0;c<i.length;c++)i[c].type===h.default.lineString?l.push(i[c].coordinates):l=l.concat(i[c].coordinates);return 1===l.length?n=new u.default({coordinates:l,spatialReference:r}):l.length>1&&(n=new v.default({coordinates:l,spatialReference:r})),n},_._pointIntersectGeometry=function(e,t){var r=e.spatialReference;if(_.contains(t,e))return new d.default({coordinates:e.coordinates,spatialReference:r})},_._multiPointIntersectGeometry=function(e,t){for(var r=[],n=e.spatialReference,i=0;i<e.coordinates.length;i++){var o=new d.default({coordinates:e.coordinates[i],spatialReference:n});_.contains(t,o)&&r.push(o.coordinates)}var a=void 0;return 1===r.length?a=new d.default({coordinates:r[0],spatialReference:n}):r.length>1&&(a=new p.default({coordinates:r,spatialReference:n})),a},_._polygonIntersectPolygon=function(e,t){var r=e.spatialReference,i=n.polygon(e.coordinates),o=n.polygon(t.coordinates),a=n.intersect(i,o);if(a)return a.geometry.type===h.default.polygon?new s.default({coordinates:a.geometry.coordinates,spatialReference:r}):new l.default({coordinates:a.geometry.coordinates,spatialReference:r})},_._polygonIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<t.coordinates.length;i++){var o=new s.default({coordinates:t.coordinates[i],spatialReference:r}),a=_._polygonIntersectPolygon(e,o);a&&n.push(a)}return _.union(n)},_._multiPolygonIntersectMultiPolygon=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new s.default({coordinates:e.coordinates[i],spatialReference:r}),a=_._polygonIntersectMultiPolygon(o,t);a&&n.push(a)}return _.union(n)},_._polygonIntersectExtent=function(e,t){var r=e.spatialReference,n=new s.default({coordinates:[[[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin]]],spatialReference:r});return _._polygonIntersectPolygon(e,n)},_._multiPolygonIntersectExtent=function(e,t){for(var r=e.spatialReference,n=[],i=0;i<e.coordinates.length;i++){var o=new s.default({coordinates:e.coordinates[i],spatialReference:r}),a=_._polygonIntersectExtent(o,t);a&&n.push(a)}return _.union(n)},_.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=[],w=n.point(o.coordinates);switch(r.type){case h.default.multiPoint:for(var x=0;x<r.coordinates.length;x++)S.push(n.point(r.coordinates[x]));var O=n.featureCollection(S);m=n.nearestPoint(w,O);break;case h.default.lineString:_=n.lineString(r.coordinates),m=n.nearestPointOnLine(_,w,{units:"kilometers"});break;case h.default.multiLineString:_=n.multiLineString(r.coordinates),m=n.nearestPointOnLine(_,w,{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(_,w,{units:"kilometers"});break;case h.default.multiPolygon:for(var P=[],T=0;T<r.coordinates.length;T++){S=[];for(var I=0;I<r.coordinates[T][0].length;I++)S.push(r.coordinates[T][0][I]);P.push(S),_=n.multiLineString(P)}m=n.nearestPointOnLine(_,w,{units:"kilometers"});break;case h.default.circle:b=n.polygon(r.toPolygon().coordinates);for(var k=0;k<b.geometry.coordinates[0].length;k++)S.push(b.geometry.coordinates[0][k]);_=n.lineString(S),m=n.nearestPointOnLine(_,w,{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(_,w,{units:"kilometers"})}return m=a.default.fromJSON(m.geometry),t.spatialReference.isGeographic||(m=c.default.projectGeometry(m,t.spatialReference)),m}},_.planarArea=function(e,t){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){(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 w=0;w<t.coordinates.length;w++){var x=new s.default({coordinates:t.coordinates[w]});if(!_._polygonContainPolygon(e,x)){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 T=0;T<e.coordinates.length;T++){var I=new s.default({coordinates:e.coordinates[T]}),k=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(I,k)){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.kilometers),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=[],w=n.point(e.coordinates);switch(t.type){case h.default.point:m=n.point(t.coordinates),a=n.distance(w,m,{units:r});break;case h.default.multiPoint:for(var x=0;x<t.coordinates.length;x++)b.push(n.point(t.coordinates[x]));var O=n.featureCollection(b),E=n.nearestPoint(w,O);a=n.distance(w,E,{units:r});break;case h.default.lineString:m=n.lineString(t.coordinates),a=n.pointToLineDistance(w,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(w,m,{units:r}));S.sort(function(e,t){return e-t}),a=S[0];break;case h.default.polygon:for(var T=0;T<t.coordinates[0].length;T++)b.push(t.coordinates[0][T]);m=n.lineString(b),a=n.pointToLineDistance(w,m,{units:r});break;case h.default.multiPolygon:for(var I=0;I<t.coordinates.length;I++){b=[];for(var k=0;k<t.coordinates[I][0].length;k++)b.push(t.coordinates[I][0][k]);m=n.lineString(b),S.push(n.pointToLineDistance(w,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(w,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(w,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 w=new d.default({coordinates:e.coordinates[0]}),x=new d.default({coordinates:e.coordinates[e.coordinates.length-1]});r=!_.contains(t,w)&&!_.contains(t,x)}}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 T=void 0,I=0;I<e.coordinates.length;I++){if(T){r=!T;break}var k=new d.default({coordinates:e.coordinates[I]});T=_.contains(t,k)}for(var M=0;M<t.coordinates.length;M++){if(T){r=!T;break}var L=new d.default({coordinates:t.coordinates[M]});T=_.contains(e,L)}T||(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 j=0;j<e.coordinates.length&&!r;j++)o=new u.default({coordinates:e.coordinates[j]}),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]}),w=_.touches(e,S);if(w)r=w;else if(_.intersects(e,S)){r=!1;break}}break;case h.default.lineString:if(_.intersect(e,t).point){var x=new d.default({coordinates:e.coordinates[0]}),O=new d.default({coordinates:e.coordinates[e.coordinates.length-1]});if(_.contains(t,x)||_.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 T=0;T<t.coordinates.length;T++){o=new u.default({coordinates:t.coordinates[T]});var I=_.touches(e,o);if(I)r=I;else if(_.intersects(e,o)){r=!1;break}}break;case h.default.polygon:for(var k=0;k<t.coordinates[0].length;k++)a.push(t.coordinates[0][k]);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),j=new u.default({coordinates:[t.center,N.geometry.coordinates]}),R=_.planarLength(j);Math.round(R)===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 A=0;A<e.coordinates.length;A++){n=new u.default({coordinates:e.coordinates[A]});var D=_.touches(n,t);if(D)r=D;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 V=0;V<e.coordinates.length;V++)a.push(e.coordinates[V]);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]}),U=_.touches(e,B);if(U)r=U;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 q=0;q<t.coordinates.length;q++){o=new s.default({coordinates:t.coordinates[q]});var J=_.touches(e,o);if(J)r=J;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),Y=new u.default({coordinates:[t.center,H.geometry.coordinates]}),X=_.planarLength(Y);Math.round(X)===t.radius&&(_.intersect(e,t)||(r=!0));break;case h.default.extent:var K=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,K)}break;case h.default.multiPolygon:switch(t.type){case h.default.point:for(var Z=0;Z<e.coordinates.length;Z++){n=new s.default({coordinates:e.coordinates[Z]});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:n=void 0,r=_._lineCutPolygon(n=e,o=t);break;case h.default.multiPolygon:n=void 0;for(var p=0;p<n.coordinates.length;p++){var d=new s.default({coordinates:n.coordinates[p],spatialReference:f.default.fromJSON(e.spatialReference)});r=r.concat(_._lineCutPolygon(d,o))}}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=e.spatialReference,i=[],o=new u.default({coordinates:e.coordinates[0],spatialReference:r}),a=n.lineString(o.coordinates),l=n.lineString(t.coordinates);if(n.booleanDisjoint(l,o))return e.clone();for(var c=[],f=0;f<t.coordinates.length-1;f++){var p=n.lineString([t.coordinates[f],t.coordinates[f+1]]);n.booleanDisjoint(p,o)||c.push(t.coordinates[f],t.coordinates[f+1])}l=n.lineString(c),l=n.cleanCoords(l);for(var d=n.lineSplit(a,l),y=n.lineSplit(l,a),g=[],v=new s.default({coordinates:[e.coordinates[0]],spatialReference:r}),m=0;m<y.features.length;m++){var b=new u.default({coordinates:y.features[m].geometry.coordinates,spatialReference:r});_.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 w=0;w<d.features[S].geometry.coordinates.length;w++)d.features[S].geometry.coordinates[w][0]=d.features[S].geometry.coordinates[w][0].toFixed(7)/1,d.features[S].geometry.coordinates[w][1]=d.features[S].geometry.coordinates[w][1].toFixed(7)/1;for(var x=n.polygonize(d),O=0;O<x.features.length;O++){var E=new s.default({coordinates:x.features[O].geometry.coordinates,spatialReference:r});i.push(E)}if(e.coordinates.length>1)for(var P=0;P<i.length;P++)for(var T=1;T<e.coordinates.length;T++){var I=new s.default({coordinates:[e.coordinates[T]],spatialReference:r}),k=n.polygon(I.coordinates),M=n.polygon(i[P].coordinates);n.booleanDisjoint(k,M)||(i[P]=_.difference(i[P],I))}for(var L=[],C=0;C<i.length;C++)if(i[C].type===h.default.multiPolygon)for(var N=0;N<i[C].coordinates.length;N++)L.push(new s.default({coordinates:i[C].coordinates[N],spatialReference:r}));else L.push(i[C]);return i=L},_._coordinateToWGS84=function(e){var t=e[0]/20037508.342789244*180,r=e[1]/20037508.342789244*180;return[t.toFixed(7)/1,r.toFixed(7)/1]},_._coordinateToOrigin=function(e){return[20037508.342789244*e[0]/180,20037508.342789244*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=e.spatialReference,r=!0;if(e.coordinates.length>2){for(var i=[],o=0;o<e.coordinates.length-1;o++)i.push(new u.default({coordinates:[e.coordinates[o],e.coordinates[o+1]],spatialReference:t}));for(var a=0;a<i.length-1;a++)for(var s=a+1;s<i.length;s++)if(_.contains(i[a],i[s])||_.contains(i[s],i[a])){r=!1;break}for(var l=0;l<i.length-2;l++)for(var c=l+2;c<i.length;c++)if(_.intersects(i[l],i[c])){var f=n.multiPoint([i[l].coordinates[0],i[l].coordinates[1],i[c].coordinates[0],i[c].coordinates[1]]);if(3!==(f=n.cleanCoords(f)).geometry.coordinates.length){r=!1;break}r=!0}for(var h=0;h<e.coordinates.length;h++){for(var p=!1,d=h+1;d<e.coordinates.length;d++)if(_._equalPoints(e.coordinates[h],e.coordinates[d])){p=!0;break}if(p){r=!1;break}}return r}return 2===e.coordinates.length?_._equalPoints(e.coordinates[0],e.coordinates[1]):r},_._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=e.spatialReference,r=!0;if(1===e.coordinates.length){var n=new u.default({coordinates:e.coordinates[0],spatialReference:t});r=_._lineIsSimple(n)}else{for(var i=0;i<e.coordinates.length;i++){var o=new u.default({coordinates:e.coordinates[i],spatialReference:t});if(_._lineIsSimple(o)){r=!1;break}}if(r)for(var a=0;a<e.coordinates.length-1;a++){var s=new u.default({coordinates:e.coordinates[a],spatialReference:t}),l=new u.default({coordinates:e.coordinates[a+1],spatialReference:t});if(_.intersects(s,l)){r=!1;break}}}return r},_._polygonIsSimple=function(e){var t=e.spatialReference,r=[],n=[];e.coordinates.forEach(function(e){r.push(e.slice(0,e.length-1));for(var t=[],i=1;i<e.length-3;i++)t.push([e[i],e[i+1]]);t.push([e[e.length-2],e[e.length-1]]),n.push(t)});for(var i=new v.default({coordinates:r,spatialReference:t}),o=_._multiLineIsSimple(i),a=!1,s=0;s<n.length;s++){for(var l=new u.default({coordinates:n[s][n[s].length-1],spatialReference:t}),c=0;c<n[s].length-1;c++)if(a=_.intersects(new u.default({coordinates:n[s][c],spatialReference:t}),l)){o=!1;break}if(a)break}return o},_._multiPolygonIsSimple=function(e){var t=e.spatialReference,r=[];e.coordinates.forEach(function(e){e.forEach(function(e){r.push(e.slice(0,e.length-1))})});var n=new v.default({coordinates:r,spatialReference:t});return _._multiLineIsSimple(n)},_.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],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}));a=f.default.fromJSON(a);var s=new u.default({coordinates:[t,r]}),l=_.planarLength(s),c=_.getAngleFromPoints(r,t,[t[0]+10,t[1]]),h=_.getAngleFromPoints(n,t,[t[0]+10,t[1]])-c;o*=h/360,o=Math.abs(o);var p=Math.PI*(h/180)/o;c=Math.PI*(c/180);for(var d=[r],y=0;y<o-1;y++){c+=p;var g=[t[0]+l*Math.cos(c),t[1]+l*Math.sin(c)];d.push(g)}return d.push(n),this.hasZ&&d.map(function(e){return[e[0],e[1],t[2]]}),d},_.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.numberOfPoints,360),o=[],a=t.slice(0,r[0].centerPointIndex-1);o=o.concat(a);var s=Number(r[0].centerPointIndex),u=[t[s-1],t[s],t[s+1]],l=_.getPositionsFromArc({point1:u[0],point2:u[1],point3:u[2],numberOfPoints:n});o=o.concat(l);for(var c=1;c<r.length;c++)if(r[c].hasOwnProperty("centerPointIndex")){var f=t.slice(r[c-1].centerPointIndex+2,r[c].centerPointIndex+1);o=o.concat(f);var h=Number(r[c].centerPointIndex),p=[t[h-1],t[h],t[h+1]],d=_.getPositionsFromArc({point1:p[0],point2:p[1],point3:p[2],numberOfPoints:n});o=o.concat(d)}var y=t.slice(r[r.length-1].centerPointIndex+2,t.length);return o=o.concat(y)},_._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,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],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],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],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=[],w=0;w<t.intersectInnerPolygon.length;w++){var x=_.intersect(r,t.intersectInnerPolygon[w]);if(x instanceof s.default||x instanceof l.default){r=_.difference(r,x);var O=_.difference(t.intersectInnerPolygon[w],x);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 T=0;T<t.largerInnerPolygon.length;T++)S.push(t.largerInnerPolygon[T]);for(var I=[],k=0;k<t.smallInnerPolygon.length;k++)for(var M=_._singRingSimplify(t.smallInnerPolygon[k]),L=0;L<M.features.length;L++){var C=new s.default({coordinates:M.features[L].geometry.coordinates});C.isPicked=!1,I.push(C)}!(I=_.union(I))||I instanceof Array||(I=[I]);for(var N=0;N<S.length;N++)for(var j=0;j<I.length;j++)!I[j].isPicked&&S[N]&&I[j]&&_.contains(S[N],I[j])&&(S[N].coordinates.push(I[j].coordinates[0]),I[j].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 w=[],x=0;x<v.length;x++)v[x]&&w.push(v[x].coordinates);return new l.default({coordinates:w,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},_.getCenterPoint=function(e){return _._getCenterOrCentroid(e,"center")},_.getCentroid=function(e){return _._getCenterOrCentroid(e,"centroid")},_._getCenterOrCentroid=function(e,t){var r=e.type,i=e.spatialReference;if(r===h.default.circle)return new d.default({coordinates:[e.center[0],e.center[1],0],spatialReference:i});if(r===h.default.extent)return new d.default({coordinates:[(e.xmin+e.xmax)/2,(e.ymin+e.ymax)/2,0],spatialReference:i});var o=void 0,a=void 0;switch(r){case h.default.point:return d.default.fromJSON(e.toJSON());case h.default.multiPoint:o=e.coordinates,a=n.points(e.coordinates);case h.default.lineString:o=e.coordinates,a=n.lineString(e.coordinates);break;case h.default.polygon:o=e.coordinates[0],a=n.polygon(e.coordinates);break;default:return null}var s=void 0;if(s="centroid"===t?n.centroid(a):n.center(a),this.hasZ){for(var u=0,l=0,c=0;c<o.length;c++){u+=o[c].length;for(var f=0;f<o[c].length;f++)l+=o[c][f][2]}return l/=u,new d.default({coordinates:[s.geometry.coordinates[0],s.geometry.coordinates[1],l],spatialReference:i})}return new d.default({coordinates:[s.geometry.coordinates[0],s.geometry.coordinates[1]],spatialReference:i})},_.getLabelPoint=function(e){if(!(e instanceof a.default))return null;var t=e.clone(),r=t.type,n=t.spatialReference;switch(r){case h.default.circle:return[new d.default({coordinates:[t.center[0],t.center[1],0],spatialReference:n})];case h.default.extent:return[new d.default({coordinates:[(t.xmin+t.xmax)/2,(t.ymin+t.ymax)/2,0],spatialReference:n})];case h.default.polygon:return _._getPolygonLabel(t);default:return null}},_._getPolygonLabel=function(e){var t=e.coordinates,r=e.extent,n=(r.ymin+r.ymax)/2,i=[],o={x:void 0,x2:void 0,hasTwoXCoordinate:!1},a=!1,s=void 0;do{s=[];for(var u=0;u<t.length;u++)for(var l=t[u],c=1;c<l.length;c++)Math.min(l[c-1][1],l[c][1])<=n&&Math.max(l[c-1][1],l[c][1])>n&&(l[c][1]===n?((o={x:void 0,x2:void 0,hasTwoXCoordinate:!1}).x=l[c][0],o.hasTwoXCoordinate=!1,c<l.length-1&&l[c+1][1]===n&&(o.hasTwoXCoordinate=!0,o.x2=l[c+1][0]),i.push(o)):l[c-1][1]===n?((o={x:void 0,x2:void 0,hasTwoXCoordinate:!1}).x=l[c-1][0],o.hasTwoXCoordinate=!1,c>1&&l[c-2]===n&&(o.hasTwoXCoordinate=!0,o.x2=l[c-2][0]),i.push(o)):((o={x:void 0,x2:void 0,hasTwoXCoordinate:!1}).x=l[c][0]-(l[c][0]-l[c-1][0])/(l[c][1]-l[c-1][1])*(l[c][1]-n),o.hasTwoXCoordinate=!1,i.push(o)));if(i.length>=2){i.sort(function(e,t){return e.x>t.x});for(var h=0,p=0;p<i.length-1;p+=2){var y=i[p].x,g=i[p+1].x;y!==g&&Math.abs(y-g)>h&&(h=Math.abs(y-g),i[p].hasTwoXCoordinate&&(y=Math.max(y,i[p].x2)),i[p+1].hasTwoXCoordinate&&(g=Math.min(g,i[p+1].x2)),s[0]=(y+g)/2,s[1]=n,a=!0)}if(a)_.contains(e,new d.default({coordinates:[s[0],s[1]],spatialReference:f.default.fromJSON(e.spatialReference)}))||(a=!1,s=[])}else a=!0;a||(n+=(r.ymax-r.ymin)/101)}while(!a);return 0===s.length?null:new d.default({coordinates:[s[0],s[1],0],spatialReference:f.default.fromJSON(e.spatialReference)})},t.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=function(e){return e&&e.__esModule?e:{default:e}}(r(85)),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++){var u=o.default.fromJSON(n[s]);(0,i.defined)(u.levelValue)||(u.levelValue=String(u.level)),r.push(u)}this.lods=r,this.size=Array.isArray(t.size)?[t.size[0],t.size[1]]:null,this.spatialReference=t.spatialReference?a.SpatialReference.fromJSON(t.spatialReference):null}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";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(29)),s=f(r(28)),u=f(r(25)),l=r(0),c=r(56);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="sketchPolygonDrawTool",r._drawTools=[r],r._otherDrawTools=[],r._currentMovePoint=void 0,r.vertexNum=0,r._tipText=r._getTipTextObject(),r._editOption=r._getEditOption(),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._sketchInnerLayer,sketchInnerLayer:e._sketchInnerLayer,_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(r){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(),r.native&&r.native.preventDefault&&r.native.preventDefault(),r.innerViewerEvent&&r.innerViewerEvent.preventDefault&&r.innerViewerEvent.preventDefault(),e.view._mapActionControl("double-click-zoom",!0),e.view._mapActionControl("video-map-active",!1)};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();r.id=(0,l.getGUID)();var 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:"selectFeature",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),"selectFeature",this).call(this,e)}},{key:"selectFeatureVertex",value:function(e){var t=this;!this._parent&&this._isAddTip&&this._updateTipText((0,c.getTipTextByEditOption)("edit-vertex",this._tipText,this._editOption),this._sketchInnerLayer),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._sketchInnerLayer,sketchInnerLayer:t._sketchInnerLayer,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._sketchInnerLayer,sketchInnerLayer:t._sketchInnerLayer,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),l=this._getEditOptionMode(this._editOption);this._parent&&this._parent._mapClickEvent&&l.editVertex&&this.view.off(i.ViewEventType.immediateClick,this._parent._mapClickEvent);var c=function(t){if(r._editOption.graphic.move&&t&&t.x&&t.y&&!n&&r._startPan&&!r._editMode!==i.SketchEditMode.editGraphic&&!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}},f=function e(){if(!r._editMode!==i.SketchEditMode.editGraphic&&r._startPan){if(s&&r._parent&&r._parent._editMode===i.SketchEditMode.editGraphic&&"sketchPointDrawTool"!==r._parent.type&&r._parent.selectFeatureVertex)return r._parent._editMode=i.SketchEditMode.editVertex,clearTimeout(u),l.editVertex&&(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,c),void r.view.off(i.ViewEventType.pointerUp,e);r._editMode=i.SketchEditMode.none,r._startPan=!1,r.view.off(i.ViewEventType.pointerMove,c),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(f),this.view.on(i.ViewEventType.pointerUp,f),this._hitTestEventHandlers.push(c),this.view.on(i.ViewEventType.pointerMove,c)}},{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._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,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._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,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._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,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._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,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._sketchInnerLayer,sketchInnerLayer:this._sketchInnerLayer,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=h},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,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);var n=r(5),i=r(57);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";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(){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(19)),o=p(r(20)),a=r(0),s=p(r(27)),u=r(1),l=p(r(59)),c=p(r(42)),f=p(r(43)),h=p(r(61));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(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)}}},{key:"throwError",value:function(e){throw new Error(e)}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);var i=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};i.getBaseUrlAndParams=function(e){var t=void 0,r={},i=e.split("?");if(0===i.length)throw new Error("url传入不合法");return 1===i.length?t=i[0]:(t=i[0],i[1].split("&").map(function(e){var t=e.indexOf("=");if(t>0){var n=e.substring(0,t),i=e.substring(t+1,e.length);r[n]=i}}),i.length>=3&&n.Log.error("url有多个'?'连接符,不合法")),{baseUrl:t,params:r=(0,n.deleteNullValue)(r)}},i.completeUrlEndMark=function(e){return e.indexOf("?")>-1?"?"===e.slice(-1)||"&"===e.slice(-1)?e+="":e+="&":e+="?",e},i.getObjectFromExtensions=function(e){var t={},r=(0,n.defaultValue)(e,[]);return r instanceof Array&&(r=Array.from(new Set(r))).forEach(function(e){t[e.key]=e.value}),t},i.getStringFromObject=function(e){var t="";return(e=(0,n.defaultValue)(e,{}))instanceof Object&&(e=(0,n.deleteNullValue)(e),Object.keys(e).forEach(function(r){t+=r+"=",e[r]instanceof Function?t+=e[r]():e[r]instanceof Object?t+=JSON.stringify(e[r]):t+=e[r],t+="&"}),t.length>0&&(t=t.substring(0,t.length-1))),t},i.deleteNullValue=n.deleteNullValue,t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSublayerOptionsArr=void 0;var n=r(0),i=r(2);t.createSublayerOptionsArr=function e(t,r,o,a,s){r=r||[],s=s||{};var u=void 0,l=void 0,c=void 0;if(t){var f=t instanceof i.Collection?t.items:t;u=new window.Map,l=new window.Map,c=new window.Map,f.forEach(function(e){(0,n.defined)(e.name)&&u.set(e.name,e.toJSON?e.toJSON():e),(0,n.defined)(e.id)&&l.set(e.id,e.toJSON?e.toJSON():e),(0,n.defined)(e.layerIndex)&&c.set(e.layerIndex,e.toJSON?e.toJSON():e)})}for(var h=[],p=0;p<r.length;p++){var d=r[p],y=!1,g=void 0;if(l||u||c?(g=l.get(String(d.id))||l.get(String(d.name))||l.get(String(d.index))||u.get(String(d.name))||l.get(String(d.layerIndex))||c.get(String(d.layerIndex)))&&(y=!0):y=!0,y){var v=o(d,g||{},s);v.sublayers=e(g?g.sublayers:null,a(d),o,a,s),h.push(v)}}return 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(14);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.onScreenLabelCount=(0,o.defaultValue)(t.onScreenLabelCount,4e3),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,onScreenLabelCount:this.onScreenLabelCount,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}),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(85)),s=c(r(44)),u=r(1),l=(r(2),r(15));function c(e){return e&&e.__esModule?e:{default:e}}window.CustomWKID=u.CustomWKID;var f=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;e.startLevel,e.endLevel;return new s.default({origin:new i.Point({coordinates:[u,l]}),lods:n.map(function(e){var t=a.default.fromJSON(e);return(0,o.defined)(t.levelValue)||(t.levelValue=String(t.level)),t}),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,c=e.origin,f=e.lods,h=e.spatialReference,p=void 0;return p=h&&h.srsWkt?new i.SpatialReference({wkt:h.srsWkt,wkid:(0,o.defined)(h.wkid)&&0!==h.wkid?h.wkid:void 0}):h&&h.tileSRefInfo&&h.tileSRefInfo.Name?(0,l.getSpatialReferenceBySrsName)(h.tileSRefInfo.Name):new i.SpatialReference(h),new s.default({dpi:n,format:u,origin:new i.Point({coordinates:[c.x,c.y],spatialReference:p}),lods:f.map(function(e){var t=a.default.fromJSON(e);return(0,o.defined)(t.levelValue)||(t.levelValue=String(t.level)),t}),size:[t,r],spatialReference:p})}},{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){var t=a.default.fromJSON(e);return(0,o.defined)(t.levelValue)||(t.levelValue=String(t.level)),t}),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}),f=1;return r.isGeographic&&(f=111319.49079327358),new s.default({origin:c,lods:u.map(function(e,t){return a.default.fromJSON({level:t,levelValue:String(t),resolution:e,scale:f*(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=111319.49079327358),new s.default({origin:f,lods:l.map(function(e,t){return a.default.fromJSON({level:t,levelValue:String(t),resolution:e,scale:h*(96*e)/.0254})}),size:[n,n],spatialReference:e.spatialReference})}},{key:"parseIGSImageTileInfo",value:function(e){var t=e.cols,r=e.rows,n=e.lods,u=e.origin,l=(e.startLevel,e.endLevel,e.spatialReference),c=e.dpi;return new s.default({origin:new i.Point({coordinates:[u.x,u.y],spatialReference:new i.SpatialReference(l)}),lods:n.map(function(e,t){return a.default.fromJSON({level:t,resolution:e.resolution,scale:e.scale,levelValue:(0,o.defined)(e.levelValue)?e.levelValue:String(t)})}),size:[t,r],spatialReference:new i.SpatialReference(l),dpi:c})}},{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=111319.49079327358),new s.default({origin:n,lods:p.map(function(e,t){return a.default.fromJSON({level:t,levelValue:String(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,levelValue:s,resolution:u,scale:l}))}return i}},{key:"getReferenceLayer",value:function(e,t){for(var r=null,n=null,i=0;i<e.length;i++){var o=e[i];if(o.loaded&&(o.type===u.LayerType.IGSTile||o.type===u.LayerType.IGSImageTile||o.type===u.LayerType.ArcGISTile||o.type===u.LayerType.WMTS||o.type===u.LayerType.IGSVectorTile||o.type===u.LayerType.ArcGISVectorTile||o.type===u.LayerType.webTile)&&(!t||t.equals(o.spatialReference)||t.isWebMercator&&o.spatialReference.wkid&&[u.CustomWKID.gcj02mc,u.CustomWKID.bd09mc].indexOf(o.spatialReference.wkid)>-1)){n=o,r=o.spatialReference;break}}if(!r)for(var a=0;a<e.length;a++){var s=e[a];if(s.loaded&&(s.type===u.LayerType.IGSMapImage||s.type===u.LayerType.ArcGISMapImage||s.type===u.LayerType.WMS||s.type===u.LayerType.IGSFeature||s.type===u.LayerType.WFS||s.type===u.LayerType.GeoJSON||s.type===u.LayerType.IGSImage)){n=s,r=t||s.spatialReference;break}}return n}},{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,t){if(!e||!Array.isArray(e.lods)||0===e.lods.length)return[0,22];for(var r=e.lods,n=r.slice().reverse(),i=r[0].level,o=r[r.length-1].level,a=0,s=r.length-1,u=0;u<r.length;u++)if(0!==r[u].scale){i=r[u].level,a=u;break}for(var l=0;l<n.length;l++)if(0!==n[l].scale){o=n[l].level,s=n.length-1-l;break}return t?[a,s]:[i,o]}},{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.IGSImage||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}},{key:"scaleToResolution",value:function(e,t,r){var n=1;return r.isGeographic&&(n=111319.49079327358),.0254*e/t/n}},{key:"resolutionToScale",value:function(e,t,r){var n=1;return r.isGeographic&&(n=111319.49079327358),n*(e*t)/.0254}}]),e}();t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTipTextByEditOption=function(e,t,r){if(r&&r.graphic&&r.vertex){var n={text:"",lineWidth:0};switch(e){case"before-edit":case"draw-end":r.graphic.move||r.graphic.scale?(n.text=t.beforeEditGraphic.text,n.lineWidth=t.beforeEditGraphic.lineWidth):(r.vertex.move||r.vertex.add)&&(n.text=t.beforeEditVertex.text,n.lineWidth=t.beforeEditVertex.lineWidth);break;case"edit-graphic":var i=0;r.graphic.move&&(n.text=t.moveGraphic.text,i+=t.moveGraphic.lineWidth),r.graphic.scale&&(n.text+=t.scaleGraphic.text,i+=t.scaleGraphic.lineWidth),(r.vertex.move||r.vertex.add)&&(n.text+=t.beforeEditVertex.text,i+=t.beforeEditVertex.lineWidth),n.editGraphic&&n.editGraphic.lineWidth?n.lineWidth=t.moveGraphic.lineWidth:n.lineWidth=i;break;case"edit-vertex":var o=0;r.vertex.move&&(n.text=t.moveVertex.text,o+=t.moveVertex.lineWidth),r.vertex.add&&(n.text+=t.addVertex.text,o+=t.addVertex.lineWidth),n.editVertex&&n.editVertex.lineWidth?n.lineWidth=t.moveGraphic.lineWidth:n.lineWidth=o;break;default:n=void 0}return n}}},function(e,t,r){"use strict";r.r(t),t.default=function(e){return e<0?-1:1}},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(327)),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.initialize.apply(this,arguments),this._createEventedProxy()}return i(e,[{key:"initialize",value:function(){}},{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 a=e._decorateProperties[r],s=a.type,u=a.createInstance;n=e._constructDecorateValue(n,s,u),(0,o.defined)(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 l=Reflect.get(t,r);null!==l&&void 0!==l&&l._decorateParents&&(l._decorateParents=[]);var c={target:t,key:r,value:n,oldValue:l,receiver:i},f=Reflect.set(t,r,n,i);return/^_[^_].*/.test(r)?f:(e._decorateEventFire(e,e,[],"set",c,c),e._updateDiff(r,n,l),f)},get:function(e,t,r){return Reflect.get(e,t,r)}})}},{key:"_updateDiff",value:function(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){return n=(0,o.defaultValue)(n,function(e){return e}),t=this._constructDecorateValue(t,r,n),this._decorateProperties[e]={type:r,createInstance:n},t}},{key:"_constructDecorateValue",value:function(e,t,r){return(0,o.defined)(e)&&r&&(t&&e instanceof t||(e=r(e))),e}},{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(124)),i=f(r(81)),o=r(0),a=r(3),s=f(r(82)),u=f(r(168)),l=f(r(169)),c=f(r(106));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.342789244*180,n=e.y/20037508.342789244*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){return h.projectPoints({points:e.points,originDefs:e.proj4Defs,originWKID:e.wkid,targetWKID:4326})},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投影报错",e)}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.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]],n.points=r,r=h.projectPoints(n),new a.Extent({xmin:Math.min(r[0][0],r[1][0],r[2][0],r[3][0]),ymin:Math.min(r[0][1],r[1][1],r[2][1],r[3][1]),zmin:e.zmin,xmax:Math.max(r[0][0],r[1][0],r[2][0],r[3][0]),ymax:Math.max(r[0][1],r[1][1],r[2][1],r[3][1]),zmax:e.zmax,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]}),p=u.default.bd09towgs84(f.lng,f.lat);i=(0,n.default)(a,t,p)}else if(e===c.default.gcj02ll){var d=u.default.gcj02towgs84(r[0],r[1]);i=(0,n.default)(a,t,d)}else if(e===c.default.gcj02mc){var y=(0,n.default)(h.getEPSGByWKID(3857).strProject,a,r),g=u.default.gcj02towgs84(y[0],y[1]);i=(0,n.default)(h.getEPSGByWKID(4326).strProject,t,g)}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(99)),a=u(r(41)),s=r(153);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.styleOrigin=void 0,r.symbolLayers=new o.default,(0,i.defaultValue)(e.symbolLayers,[]).forEach(function(e){r.symbolLayers.add((0,s.createSymbol3DLayer)(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),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(19)),o=h(r(20)),a=r(0),s=r(1),u=h(r(27)),l=h(r(50)),c=r(26),f=h(r(43));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,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._centroid=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:"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}},{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:"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){e.push(i)})}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(p.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._centroid=f.default.getCentroid(this),this._centroid}}}),t.default=p},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(40)),o=l(r(86)),a=l(r(440)),s=l(r(442)),u=l(r(444));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});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(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},o=r(7),a=r(0),s=r(3),u=r(1),l=r(4),c=r(15);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));e=(0,a.defaultValue)(e,{}),r.type=u.SubLayerType.IGSSceneSub,r.originLayerType=(0,a.defaultValue)(e.originLayerType,""),r.layerIndex=(0,a.defaultValue)(e.layerIndex,0),r.renderType=(0,a.defaultValue)(e.renderType,""),r.beginLevel=(0,a.defaultValue)(e.beginLevel,-1),r.endLevel=(0,a.defaultValue)(e.endLevel,-1),r.originPoint=e.originPoint?s.Point.fromJSON(e.originPoint):null,r.maxFrameSize=e.maxFrameSize?e.maxFrameSize:null,r.layerName=(0,a.defaultValue)(e.layerName,null),r.layerRenderIndex=(0,a.defaultValue)(e.layerRenderIndex,null),r.elevationScale=(0,a.defaultValue)(e.elevationScale,null),r.originLayerType===u.IGSSceneOriginLayerType.groupLayer3D&&(r.extent=(0,c.getExtentBySubLayers)(r.sublayers.items));return r.capabilities=(0,l.mergeCommonClientCapbilities)(r.capabilities,{type:!0,layerIndex:!0,maxFrameSize:!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.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(){var e=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toJSON",this).call(this);return e.originLayerType=this.originLayerType,e.layerIndex=this.layerIndex,e.renderType=this.renderType,e.beginLevel=this.beginLevel,e.endLevel=this.endLevel,e.originPoint=this.originPoint?this.originPoint.toJSON():null,e.maxFrameSize=this.maxFrameSize?this.maxFrameSize:null,e.layerName=this.layerName,e.layerRenderIndex=this.layerRenderIndex,e.elevationScale=this.elevationScale,e}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"_updateDiff",value:function(e,r,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_updateDiff",this).call(this,e,r,n),this.layer&&this.layer._fireSublayerUpdateEvent(this.id,e,this[e])}}],[{key:"fromJSON",value:function(e){return new t(e)}}]),t}();Object.defineProperties(f.prototype,{visible:{get:function(){return this._visible},set:function(e){this._visible=e}},opacity:{get:function(){return this._opacity},set:function(e){this._opacity=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(3),o=r(0);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,o.defaultValue)(t,{}),this.bandCount=t.bandCount,this.pixelType=t.pixelType,this.width=t.width,this.height=t.height,this.spatialReference=i.SpatialReference.fromJSON(t.spatialReference),this.colormap=t.colormap,this.extent=t.extent?i.Extent.fromJSON(t.extent):null,this.histograms=t.histograms,this.pixelSize=t.pixelSize?i.Point.fromJSON(t.pixelSize):null,this.statistics=t.statistics}return n(e,[{key:"toJSON",value:function(){var e={};return e.bandCount=this.bandCount,e.pixelType=this.pixelType,e.width=this.width,e.height=this.height,e.spatialReference=this.spatialReference?this.spatialReference.toJSON():null,e.colormap=JSON.parse(JSON.stringify(this.colormap)),e.extent=this.extent?this.extent.toJSON():null,e.histograms=JSON.parse(JSON.stringify(this.histograms)),e.pixelSize=this.pixelSize?this.pixelSize.toJSON():null,e.statistics=JSON.parse(JSON.stringify(this.statistics)),e}},{key:"clone",value:function(){return new e(this.toJSON())}}],[{key:"fromJSON",value:function(t){return new e(t=(0,o.defaultValue)(t,{}))}}]),e}();t.default=a},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});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(21),s=r(80),u=r(0),l=r(11);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)),n=(0,u.defaultValue)(e,{});return r.view=n.view,r.view||u.Log.error("视图对象不存在!"),r.layer=n.layer,r.layer||u.Log.error("图层对象不存在!"),r.innerLayer=null,r.id=r.layer.id,r._updateScaleVisible(),r.onRefresh=(0,l.debounce)(r.onRefresh,r.layer.forceRefreshDebounceDelay,r),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){return e||this._updateScaleVisible(),this._getVisible()&&this._scaleVisible}},{key:"_updateScaleVisible",value:function(){var e=this.view,t=e.scale;t&&e.getScale&&(t=e.getScale());var r=this._getMinScale(),n=this._getMaxScale(),i=!1;(!t||0===n&&0===r||0===n&&t<=r||0===r&&t>=n||0!==n&&0!==n&&n<=t&&t<=r)&&(i=!0),this._scaleVisible=i}},{key:"_getOpacity",value:function(){return this.layer.getCumulative("opacity",function(e,t){return e*t})}},{key:"_getVisible",value:function(){return this.layer.getCumulative("visible",function(e,t){return e&&t})}},{key:"_getMinScale",value:function(){return this.layer.getCumulative("minScale",function(e,t){return"number"==typeof t&&0!==t?0===e?t:Math.min(e,t):e})}},{key:"_getMaxScale",value:function(){return this.layer.getCumulative("maxScale",function(e,t){return"number"==typeof t&&0!==t?0===e?t:Math.max(e,t):e})}},{key:"checkLayerCanAddedStatus",value:function(){var e=this.layer.parent;return!(!e||!e.findLayerById(this.id))}},{key:"onRefresh",value:function(){}},{key:"_fireLayerViewUpdateEvent",value:function(e,t){var r=this.layer,n=new a.LayerViewUpdateEvent({type:o.LayerEventType.layerViewUpdate,target:this,layer:r,message:e,view:this.view,layerView:this,updateContent:Array.isArray(t)?t.map(function(e){return new s.LayerViewUpdateContent(e)}):[new s.LayerViewUpdateContent(t)]});r.fire(o.LayerEventType.layerViewUpdate,n),this.view.fire(o.LayerEventType.layerViewUpdate,n)}},{key:"_fireLayerViewEvent",value:function(e,t){var r=this.layer,n=new i.LayerEvent({type:e,message:t||"",layer:r});n.addProperty("view",this.view),n.addProperty("layerView",this),r.fire(e,n),this.view.fire(e,n)}}]),t}();Object.defineProperties(c.prototype,{innerView:{get:function(){return this.view.getInnerView()}}}),t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMapGISBaseUrl=t.buildModuleUrl=t.decryptIGS=t.formatWebTileUrl=t.LayerBaseUrlRegExp=t.ServerBaseUrlRegExp=t.BaseRegExp=t.deleteNullValue=t.ServerUtil=t.UrlUtil=t.getFunctionArguments=t.TileMonitor=t.TimeInterval=t.TimeInfo=t.TimeExtent=t.EngineType=t.RasterInterpolationType=t.NormalizationType=t.TemporalUnit=t.getLayersExtent=t.getCrsOptions=t.getCrsOptionsBySpatialReference=t.getLayerViewsGeographicExtent=t.getValidLayers=t.isLayerViewValid=t.ExpressionParser=t.VectorTileLayer=t.TileSliceType=t.TDTLayerType=t.VisualVariableType=t.SeverVectorTileSubLayerType=t.ColorNameToHexMap=t.GeometryFilter=t.IGSSceneOriginLayerType=t.convertIGSClippingString=t.RasterInfo=t.RasterFunction=t.IGSImageryTileLayer=t.IGSImageryLayer=t.VoxelFilter=t.LOD=t.getFullBaseUrl=t.appendUrlParams=t.TileInfo=t.FetchRequest=t.ArcType=t.AreaUnits=t.LinearUnits=t.allSettled=t.inOrderPromise=t.debouncePromise=t.compareObject=t.throttle=t.getTileLayerNearestCenterAndScale=t.convertImageSourceToBase64=t.isWMTSReverse=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.ArcGISVectorTileSubLayer=t.ArcGISVectorTileLayer=t.StylePattern3D=t.ColorMaterial=void 0,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.Corporation=t.WMTSCorporation=t.TileInfoUtil=t.BaseFeatureLayerView=t.createSimpleFillSymbolCanvas=t.createSimpleMarkerSymbolCanvas=t.ServiceConfigResponseInterceptors=t.ServiceConfigRequestInterceptors=t.ServiceConfigToken=t.Config=t.editGeometryByArc3=t.editFeatureByArc3=t.Geometry=t.RadiusUnit=t.formatBaseUrl=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=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.limitExtentToSRSMaxExtent=t.getExtendExtentByPixel=t.createGeometry=t.normalize=t.defined=t.defaultValue=t.getGUID=void 0,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.BaseSwipeTool=t.SwipeMode=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.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.SubLayerType=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.CollectionFlattener=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=t.Polygon=t.Extent=t.SketchEditorEvent=t.SketchStyle=t.getTipTextByEditOption=t.SketchFreehandPolygonDrawTool=t.SketchFreehandPolylineDrawTool=t.SketchExtentDrawTool=t.SketchCircleDrawTool=t.SketchPolygonDrawTool=t.SketchPolylineDrawTool=t.SketchPointDrawTool=t.SketchBaseDrawTool=t.SketchEditor3D=void 0,t.SketchEditor=t.CoordnateTransform=t.WMTSStyle=t.Projection=t.Layer=t.S3MTilesCacheLayer=t.VideoLayer=t.TerrainCacheLayer=t.Cesium3DTilesCacheLayer=t.GeoJSONLayer=t.GraphicsLayer=t.GroupLayer=t.MapVLayer=t.EchartsLayer=t.SubLayer=t.ISSceneModelCacheSubLayer=t.ISSceneSubLayer=t.ISSceneLayer=t.FeatureFilter=t.IGSFeatureLayer=t.BaseScene=t.ISScene=t.IGSScene=t.IGSTileLayer=t.IGSSceneTerrainSubLayer=t.IGSSceneMapRefSubLayer=t.IGSSceneModelCacheSubLayer=t.IGSSceneLabelSubLayer=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.ISSceneServer=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(124)),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(19)),o=r(285),a=r(318),s=r(13),u=r(119),l=r(34),c=r(3),f=r(2),h=r(0),p=r(1),d=r(14),y=r(559),g=r(214),v=r(572),m=r(573);window.zondy={};var _=window.zondy;_.service={},_.geometry={},_.layer={},_.enum={},_.symbol={},_.widget={},_.tool={},_.renderer={},_.renderer.visualvariable={},_.themelayer={},_.util={},_.video={},_.LOGTYPE="warningAndError",_.VERSION="17.6.21",_.service.FetchServer=s.FetchServer,_.service.RequestInterceptor=s.RequestInterceptor,_.service.ResponseInterceptor=s.ResponseInterceptor,_.service.MapServer=s.MapServer,_.service.FeatureServer=s.FeatureServer,_.service.M3DServer=s.M3DServer,_.service.ImageServer=s.ImageServer,_.service.GeometryServer=s.GeometryServer,_.service.AddressServer=s.AddressServer,_.service.Cesium3DTilesServer=s.Cesium3DTilesServer,_.service.PoiServer=s.PoiServer,_.service.TerrainServer=s.TerrainServer,_.service.SecurityServer=s.SecurityServer,_.service.RootServer=s.RootServer,_.service.TileServer=s.TileServer,_.service.VectorTileServer=s.VectorTileServer,_.service.PlotServer=s.PlotServer,_.service.ResourceServer=s.ResourceServer,_.service.SceneServer=s.SceneServer,_.service.WMSServer=s.WMSServer,_.service.WMTSServer=s.WMTSServer,_.service.WFSServer=s.WFSServer,_.service.ArcGISMapServer=s.ArcGISMapServer,_.service.ThemeServer=s.ThemeServer,_.service.ArcGISGeometryServer=s.ArcGISGeometryServer,_.service.ArcGISFeatureServer=s.ArcGISFeatureServer,_.service.ArcGISVectorTileServer=s.ArcGISVectorTileServer,_.service.Config=s.Config,_.service.FetchRequest=s.FetchRequest,_.service.GeometryFilter=s.GeometryFilter,_.service.Interceptor=s.Interceptor,_.service.WorkFlowServer=s.WorkFlowServer,_.service.BaseServer=s.BaseServer,_.service.RequestConfig=s.RequestConfig,_.service.ISSceneServer=s.ISSceneServer,_.themelayer.CAllOtherDataItemInfoSource=s.CAllOtherDataItemInfoSource,_.themelayer.CAnnInfo=s.CAnnInfo,_.themelayer.CChartLabelFormat=s.CChartLabelFormat,_.themelayer.CChartTheme=s.CChartTheme,_.themelayer.CChartThemeInfo=s.CChartThemeInfo,_.themelayer.CChartThemeRepresentInfo=s.CChartThemeRepresentInfo,_.themelayer.CChartType=s.CChartType,_.themelayer.CDotDensityTheme=s.CDotDensityTheme,_.themelayer.CFourColorTheme=s.CFourColorTheme,_.themelayer.CGraduatedSymbolTheme=s.CGraduatedSymbolTheme,_.themelayer.CLinInfo=s.CLinInfo,_.themelayer.CMultiClassTheme=s.CMultiClassTheme,_.themelayer.CPntInfo=s.CPntInfo,_.themelayer.CRandomTheme=s.CRandomTheme,_.themelayer.CRangeTheme=s.CRangeTheme,_.themelayer.CRangeThemeInfo=s.CRangeThemeInfo,_.themelayer.CRegInfo=s.CRegInfo,_.themelayer.CSimpleTheme=s.CSimpleTheme,_.themelayer.CTheme=s.CTheme,_.themelayer.CThemeInfo=s.CThemeInfo,_.themelayer.CUniqueTheme=s.CUniqueTheme,_.themelayer.CUniqueThemeInfo=s.CUniqueThemeInfo,_.themelayer.ExpInfo=s.ExpInfo,_.themelayer.FolderInfo=s.FolderInfo,_.themelayer.FolderInfoAttribute=s.FolderInfoAttribute,_.themelayer.ItemValue=s.ItemValue,_.themelayer.ThemesInfo=s.ThemesInfo,_.layer.WMTSLayer=l.WMTSLayer,_.layer.WMSLayer=l.WMSLayer,_.layer.WMSSubLayer=l.WMSSubLayer,_.layer.WFSLayer=l.WFSLayer,_.layer.WMTSSubLayer=l.WMTSSubLayer,_.layer.VectorTileLayer=l.VectorTileLayer,_.layer.IGSVectorTileLayer=l.IGSVectorTileLayer,_.layer.IGSVectorTileSubLayer=l.IGSVectorTileSubLayer,_.layer.IGSMapImageLayer=l.IGSMapImageLayer,_.layer.IGSMapImageSubLayer=l.IGSMapImageSubLayer,_.layer.IGSSceneLayer=l.IGSSceneLayer,_.layer.IGSSceneSubLayer=l.IGSSceneSubLayer,_.layer.IGSSceneLabelSubLayer=l.IGSSceneLabelSubLayer,_.layer.IGSSceneModelCacheSubLayer=l.IGSSceneModelCacheSubLayer,_.layer.IGSSceneMapRefSubLayer=l.IGSSceneMapRefSubLayer,_.layer.IGSSceneTerrainSubLayer=l.IGSSceneTerrainSubLayer,_.layer.IGSTileLayer=l.IGSTileLayer,_.layer.IGSScene=l.IGSScene,_.layer.ISScene=l.ISScene,_.layer.BaseScene=l.BaseScene,_.layer.IGSFeatureLayer=l.IGSFeatureLayer,_.layer.FeatureFilter=l.FeatureFilter,_.layer.EchartsLayer=l.EchartsLayer,_.layer.MapVLayer=l.MapVLayer,_.layer.GroupLayer=l.GroupLayer,_.layer.GraphicsLayer=l.GraphicsLayer,_.layer.GeoJSONLayer=l.GeoJSONLayer,_.layer.Cesium3DTilesCacheLayer=l.Cesium3DTilesCacheLayer,_.layer.TerrainCacheLayer=l.TerrainCacheLayer,_.layer.VideoLayer=l.VideoLayer,_.layer.LabelClass=l.LabelClass,_.layer.ArcGISMapImageLayer=l.ArcGISMapImageLayer,_.layer.ArcGISMapImageSubLayer=l.ArcGISMapImageSubLayer,_.layer.M3DModelCacheLayer=l.M3DModelCacheLayer,_.layer.ArcGISTileLayer=l.ArcGISTileLayer,_.layer.Layer=l.Layer,_.layer.ArcGISVectorTileLayer=l.ArcGISVectorTileLayer,_.layer.ArcGISVectorTileSubLayer=l.ArcGISVectorTileSubLayer,_.layer.WebTileLayer=l.WebTileLayer,_.layer.TileInfo=l.TileInfo,_.layer.LOD=l.LOD,_.layer.VoxelFilter=l.VoxelFilter,_.layer.IGSImageryLayer=l.IGSImageryLayer,_.layer.IGSImageryTileLayer=l.IGSImageryTileLayer,_.layer.RasterFunction=l.RasterFunction,_.layer.RasterInfo=l.RasterInfo,_.layer.TileLayer=l.TileLayer,_.layer.UnknownLayer=l.UnknownLayer,_.layer.OverlayLayer=l.OverlayLayer,_.layer.OGCLayer=l.OGCLayer,_.layer.ISSceneLayer=l.ISSceneLayer,_.layer.ISSceneSubLayer=l.ISSceneSubLayer,_.layer.ISSceneModelCacheSubLayer=l.ISSceneModelCacheSubLayer,_.layer.SubLayer=l.SubLayer,_.layer.S3MTilesCacheLayer=l.S3MTilesCacheLayer,_.Map=l.Map,_.Basemap=l.Basemap,_.SpatialReference=c.SpatialReference,_.Color=f.Color,_.Collection=f.Collection,_.CollectionFlattener=f.CollectionFlattener,_.FeatureSet=f.FeatureSet,_.Feature=f.Feature,_.ElevationInfo=f.ElevationInfo,_.ProjectInfo=f.ProjectInfo,_.OutStatistic=f.OutStatistic,_.TileMatrixSet=f.TileMatrixSet,_.ProjectInfoBySrsID=f.ProjectInfoBySrsID,_.FeatureExpressionInfo=f.FeatureExpressionInfo,_.BaseView=y.BaseView,_.MapView=y.MapView,_.SceneView=y.SceneView,_.BaseFeatureLayerView=y.BaseFeatureLayerView,_.BaseRendererLayerView=y.BaseRendererLayerView,_.GroupLayerView=y.GroupLayerView,_.WMTSStyle=f.WMTSStyle,_.CAttDataRow=s.CAttDataRow,_.CAttStruct=s.CAttStruct,_.TimeExtent=f.TimeExtent,_.TimeInfo=f.TimeInfo,_.TimeInterval=f.TimeInterval,_.TileMonitor=f.TileMonitor,_.renderer.UniqueValueRenderer=l.UniqueValueRenderer,_.renderer.ClassBreakRenderer=l.ClassBreakRenderer,_.renderer.SimpleRenderer=l.SimpleRenderer,_.renderer.ClusterRenderer=l.ClusterRenderer,_.renderer.RandomRenderer=l.RandomRenderer,_.renderer.RankRenderer=l.RankRenderer,_.renderer.HeatmapRenderer=l.HeatmapRenderer,_.renderer.BaseRenderer=l.BaseRenderer,_.renderer.HeatmapColorStop=l.HeatmapColorStop,_.renderer.visualvariable.SizeVariable=l.SizeVariable,_.renderer.visualvariable.ColorVariable=l.ColorVariable,_.renderer.visualvariable.OpacityVariable=l.OpacityVariable,_.renderer.visualvariable.VisualVariable=l.VisualVariable,_.geometry.Extent=c.Extent,_.geometry.Polygon=c.Polygon,_.geometry.MultiPolygon=c.MultiPolygon,_.geometry.LineString=c.LineString,_.geometry.MultiLineString=c.MultiLineString,_.geometry.Point=c.Point,_.geometry.MultiPoint=c.MultiPoint,_.geometry.Circle=c.Circle,_.geometry.GeometryEngine=c.GeometryEngine,_.geometry.Geometry=c.Geometry,_.geometry.Projection=f.Projection,_.geometry.Proj4=n.default,_.geometry.T=i,_.enum.ReturnFormat=p.ReturnFormat,_.enum.FetchMethod=p.FetchMethod,_.enum.LayerEventType=p.LayerEventType,_.enum.MapEventType=p.MapEventType,_.enum.StatisticType=p.StatisticType,_.enum.SpatialRelation=p.SpatialRelation,_.enum.CustomWKID=p.CustomWKID,_.enum.LayerType=p.LayerType,_.enum.SubLayerType=p.SubLayerType,_.enum.TokenAttachType=p.TokenAttachType,_.enum.IGSGeometryType=p.IGSGeometryType,_.enum.LogType=p.LogType,_.enum.LoadStatus=p.LoadStatus,_.enum.ViewEventType=p.ViewEventType,_.enum.LengthUnit=p.LengthUnit,_.enum.AngleUnit=p.AngleUnit,_.enum.RendererType=p.RendererType,_.enum.VectorTileGeometryType=p.VectorTileGeometryType,_.enum.VideoSourceType=p.VideoSourceType,_.enum.SketchDataType=p.SketchDataType,_.enum.SketchEditMode=p.SketchEditMode,_.enum.SketchEditorEventType=p.SketchEditorEventType,_.enum.SketchEditorState=p.SketchEditorState,_.enum.SketchEditorToolEventType=p.SketchEditorToolEventType,_.enum.SymbolType=p.SymbolType,_.enum.IGSSymbolType=p.IGSSymbolType,_.enum.ElevationMode=p.ElevationMode,_.enum.HorizontalAlignment=p.HorizontalAlignment,_.enum.VerticalAlignment=p.VerticalAlignment,_.enum.SceneMode=p.SceneMode,_.enum.ShadowMode=p.ShadowMode,_.enum.SwipeMode=p.SwipeMode,_.enum.UrlServerType=p.UrlServerType,_.enum.PictureFormat=p.PictureFormat,_.enum.RadiusUnit=p.RadiusUnit,_.enum.WMTSCorporation=p.WMTSCorporation,_.enum.Corporation=p.Corporation,_.enum.Symbol3DLayerType=p.Symbol3DLayerType,_.enum.LineCapType=p.LineCapType,_.enum.LineJoinType=p.LineJoinType,_.enum.LineMarkerPlacement=p.LineMarkerPlacement,_.enum.LineMarkerStyle=p.LineMarkerStyle,_.enum.LinePatternStyle=p.LinePatternStyle,_.enum.AnchorType=p.AnchorType,_.enum.ProfileType=p.ProfileType,_.enum.PatternStyle=p.PatternStyle,_.enum.WaterbodySize=p.WaterbodySize,_.enum.WaveStrength=p.WaveStrength,_.enum.MaterialType=p.MaterialType,_.enum.LinearUnits=p.LinearUnits,_.enum.AreaUnits=p.AreaUnits,_.enum.ArcType=p.ArcType,_.enum.IGSSceneOriginLayerType=p.IGSSceneOriginLayerType,_.enum.ColorNameToHexMap=p.ColorNameToHexMap,_.enum.SeverVectorTileSubLayerType=p.SeverVectorTileSubLayerType,_.enum.GeometryType=p.GeometryType,_.enum.VisualVariableType=p.VisualVariableType,_.enum.TDTLayerType=p.TDTLayerType,_.enum.TileSliceType=p.TileSliceType,_.enum.TemporalUnit=p.TemporalUnit,_.enum.NormalizationType=p.NormalizationType,_.enum.RasterInterpolationType=p.RasterInterpolationType,_.enum.EngineType=p.EngineType,_.util.formatBaseUrl=s.formatBaseUrl,_.util.ServiceConfigToken=s.ServiceConfigToken,_.util.ServiceConfigRequestInterceptors=s.ServiceConfigRequestInterceptors,_.util.ServiceConfigResponseInterceptors=s.ServiceConfigResponseInterceptors,_.util.convertIGSClippingString=s.convertIGSClippingString,_.util.getUrlType=l.getUrlType,_.util.is4326=l.is4326,_.util.isCustomSP=l.isCustomSP,_.util.getIGSDynamicLayer=l.getIGSDynamicLayer,_.util.setElevationInfo=l.setElevationInfo,_.util.TileInfoUtil=l.TileInfoUtil,_.util.getZoomOffset=l.getZoomOffset,_.util.appendUrlParams=l.appendUrlParams,_.util.getFullBaseUrl=l.getFullBaseUrl,_.util.editFeatureByArc3=c.editFeatureByArc3,_.util.editGeometryByArc3=c.editGeometryByArc3,_.util.CoordnateTransform=f.CoordnateTransform,_.util.getFeaturesFromFeatureSet=f.getFeaturesFromFeatureSet,_.util.EPSG=f.EPSG,_.util.extend=h.extend,_.util.isArray=h.isArray,_.util.isNumber=h.isNumber,_.util.isInTheSameDomain=h.isInTheSameDomain,_.util.transformResult=h.transformResult,_.util.urlAppend=h.urlAppend,_.util.getParameterString=h.getParameterString,_.util.bind=h.bind,_.util.getGUID=h.getGUID,_.util.defaultValue=h.defaultValue,_.util.defined=h.defined,_.util.normalize=h.normalize,_.util.createGeometry=h.createGeometry,_.util.getExtendExtentByPixel=h.getExtendExtentByPixel,_.util.limitExtentToSRSMaxExtent=h.limitExtentToSRSMaxExtent,_.util.isNull=h.isNull,_.util.getGeometryParameter=h.getGeometryParameter,_.util.getOutStatisticsParameter=h.getOutStatisticsParameter,_.util.Log=h.Log,_.util.isString=h.isString,_.util.deepClone=h.deepClone,_.util.isBoolean=h.isBoolean,_.util.extendDeep=h.extendDeep,_.util.newGuid=h.newGuid,_.util.formatPoints=h.formatPoints,_.util.returnPoint=h.returnPoint,_.util.cloneObject=h.cloneObject,_.util.notNULL=h.notNULL,_.util.isObject=h.isObject,_.util.getVideoType=h.getVideoType,_.util.toJSON=h.toJSON,_.util.getBaseUrl=h.getBaseUrl,_.util.inputCss=h.inputCss,_.util.getProjectionSrs=h.getProjectionSrs,_.util.isWMSReverse=h.isWMSReverse,_.util.isWMTSReverse=h.isWMTSReverse,_.util.convertImageSourceToBase64=h.convertImageSourceToBase64,_.util.getTileLayerNearestCenterAndScale=h.getTileLayerNearestCenterAndScale,_.util.throttle=h.throttle,_.util.compareObject=h.compareObject,_.util.debouncePromise=h.debouncePromise,_.util.inOrderPromise=h.inOrderPromise,_.util.allSettled=h.allSettled,_.util.ExpressionParser=h.ExpressionParser,_.util.RendererUtil=y.RendererUtil,_.util.createSimpleMarkerSymbolCanvas=v.createSimpleMarkerSymbolCanvas,_.util.createSimpleFillSymbolCanvas=v.createSimpleFillSymbolCanvas,_.util.isLayerViewValid=u.isLayerViewValid,_.util.getValidLayers=u.getValidLayers,_.util.getLayerViewsGeographicExtent=u.getLayerViewsGeographicExtent,_.util.getCrsOptionsBySpatialReference=u.getCrsOptionsBySpatialReference,_.util.getCrsOptions=u.getCrsOptions,_.util.getLayersExtent=u.getLayersExtent,_.util.getFunctionArguments=h.getFunctionArguments,_.util.deleteNullValue=h.deleteNullValue,_.util.ServerUtil=s.ServerUtil,_.util.UrlUtil=s.UrlUtil,_.util.BaseRegExp=s.BaseRegExp,_.util.ServerBaseUrlRegExp=s.ServerBaseUrlRegExp,_.util.LayerBaseUrlRegExp=s.LayerBaseUrlRegExp,_.util.formatWebTileUrl=l.formatWebTileUrl,_.util.decryptIGS=o.decryptIGS,_.util.buildModuleUrl=h.buildModuleUrl,_.util.getMapGISBaseUrl=h.getMapGISBaseUrl,_.symbol.SimpleFillSymbol=d.SimpleFillSymbol,_.symbol.SimpleLineSymbol=d.SimpleLineSymbol,_.symbol.SimpleMarkerSymbol=d.SimpleMarkerSymbol,_.symbol.TextSymbol=d.TextSymbol,_.symbol.Symbol=d.Symbol,_.symbol.PictureMarkerSymbol=d.PictureMarkerSymbol,_.symbol.PictureFillSymbol=d.PictureFillSymbol,_.symbol.MapGISTextSymbol=d.MapGISTextSymbol,_.symbol.Symbol3D=d.Symbol3D,_.symbol.LabelSymbol3D=d.LabelSymbol3D,_.symbol.LineSymbol3D=d.LineSymbol3D,_.symbol.PointSymbol3D=d.PointSymbol3D,_.symbol.PolygonSymbol3D=d.PolygonSymbol3D,_.symbol.LineCallout3D=d.LineCallout3D,_.symbol.Callout3D=d.Callout3D,_.symbol.Symbol3DVerticalOffset=d.Symbol3DVerticalOffset,_.symbol.Symbol3DLayer=d.Symbol3DLayer,_.symbol.LineStyleMarker3D=d.LineStyleMarker3D,_.symbol.LineStylePattern3D=d.LineStylePattern3D,_.symbol.LineSymbol3DLayer=d.LineSymbol3DLayer,_.symbol.PathSymbol3DLayer=d.PathSymbol3DLayer,_.symbol.FillSymbol3DLayer=d.FillSymbol3DLayer,_.symbol.FillSymbol3DOutline=d.FillSymbol3DOutline,_.symbol.IconSymbol3DLayer=d.IconSymbol3DLayer,_.symbol.PointSymbol3DOutline=d.PointSymbol3DOutline,_.symbol.IconResource=d.IconResource,_.symbol.ObjectSymbol3DLayer=d.ObjectSymbol3DLayer,_.symbol.ExtrudeSymbol3DLayer=d.ExtrudeSymbol3DLayer,_.symbol.Edges3D=d.Edges3D,_.symbol.TextSymbol3DLayer=d.TextSymbol3DLayer,_.symbol.TextHalo=d.TextHalo,_.symbol.WaterSymbol3DLayer=d.WaterSymbol3DLayer,_.symbol.ColorMaterial=d.ColorMaterial,_.symbol.StylePattern3D=d.StylePattern3D,_.symbol.Font=f.Font,_.tool.sketch={},_.tool.sketch.SketchStyle=g.SketchStyle,_.tool.sketch.SketchEditorEvent=g.SketchEditorEvent,_.tool.sketch.SketchEditor=g.SketchEditor,_.tool.sketch.SketchEditor3D=g.SketchEditor3D,_.tool.sketch.SketchBaseDrawTool=g.SketchBaseDrawTool,_.tool.sketch.SketchPointDrawTool=g.SketchPointDrawTool,_.tool.sketch.SketchPolylineDrawTool=g.SketchPolylineDrawTool,_.tool.sketch.SketchPolygonDrawTool=g.SketchPolygonDrawTool,_.tool.sketch.SketchCircleDrawTool=g.SketchCircleDrawTool,_.tool.sketch.SketchExtentDrawTool=g.SketchExtentDrawTool,_.tool.sketch.SketchFreehandPolylineDrawTool=g.SketchFreehandPolylineDrawTool,_.tool.sketch.SketchFreehandPolygonDrawTool=g.SketchFreehandPolygonDrawTool,_.tool.sketch.Utils={},_.tool.sketch.Utils.getTipTextByEditOption=g.getTipTextByEditOption,_.tool.BaseSwipeTool=a.BaseSwipeTool,window.Zondy={};var b=window.Zondy;b.Service=_.service,b.Geometry=_.geometry,b.Layer=_.layer,b.Enum=_.enum,b.Symbol=_.symbol,b.Widget=_.widget,b.Tool={},b.Tool.Sketch=_.widget.sketch,b.Renderer={},Object.keys(_.renderer).forEach(function(e){"visualvariable"!==e&&(b.Renderer[e]=_.renderer[e])}),b.Renderer.VisualVariable=_.renderer.visualvariable,b.Object={},b.Object.Theme={},b.Object.Theme.CAllOtherDataItemInfoSource=s.CAllOtherDataItemInfoSource,b.Object.Theme.CAnnInfo=s.CAnnInfo,b.Object.Theme.CChartLabelFormat=s.CChartLabelFormat,b.Object.Theme.CChartTheme=s.CChartTheme,b.Object.Theme.CChartThemeInfo=s.CChartThemeInfo,b.Object.Theme.CChartThemeRepresentInfo=s.CChartThemeRepresentInfo,b.Object.Theme.CChartType=s.CChartType,b.Object.Theme.CDotDensityTheme=s.CDotDensityTheme,b.Object.Theme.CFourColorTheme=s.CFourColorTheme,b.Object.Theme.CGraduatedSymbolTheme=s.CGraduatedSymbolTheme,b.Object.Theme.CLinInfo=s.CLinInfo,b.Object.Theme.CMultiClassTheme=s.CMultiClassTheme,b.Object.Theme.CPntInfo=s.CPntInfo,b.Object.Theme.CRandomTheme=s.CRandomTheme,b.Object.Theme.CRangeTheme=s.CRangeTheme,b.Object.Theme.CRangeThemeInfo=s.CRangeThemeInfo,b.Object.Theme.CRegInfo=s.CRegInfo,b.Object.Theme.CSimpleTheme=s.CSimpleTheme,b.Object.Theme.CTheme=s.CTheme,b.Object.Theme.CThemeInfo=s.CThemeInfo,b.Object.Theme.CUniqueTheme=s.CUniqueTheme,b.Object.Theme.CUniqueThemeInfo=s.CUniqueThemeInfo,b.Object.Theme.ExpInfo=s.ExpInfo,b.Object.Theme.FolderInfo=s.FolderInfo,b.Object.Theme.FolderInfoAttribute=s.FolderInfoAttribute,b.Object.Theme.ItemValue=s.ItemValue,b.Object.Theme.ThemesInfo=s.ThemesInfo,b.Object.CAttDataRow=s.CAttDataRow,b.Object.CAttStruct=s.CAttStruct,b.Utils=_.util,b.Map=l.Map,b.Basemap=l.Basemap,b.SpatialReference=c.SpatialReference,b.Color=f.Color,b.Font=f.Font,b.Collection=f.Collection,b.FeatureSet=f.FeatureSet,b.Feature=f.Feature,b.ElevationInfo=f.ElevationInfo,b.ProjectInfo=f.ProjectInfo,b.OutStatistic=f.OutStatistic,b.TileMatrixSet=f.TileMatrixSet,b.ProjectInfoBySrsID=f.ProjectInfoBySrsID,b.FeatureExpressionInfo=f.FeatureExpressionInfo,b.BaseView=y.BaseView,b.MapView=y.MapView,b.SceneView=y.SceneView,b.BaseFeatureLayerView=y.BaseFeatureLayerView,b.BaseRendererLayerView=y.BaseRendererLayerView,b.GroupLayerView=y.GroupLayerView,b.WMTSStyle=f.WMTSStyle,b.SketchPolygonDrawTool=g.SketchPolygonDrawTool,b.SketchStyle=g.SketchStyle,b.LogType=_.LOGTYPE,b.Version=_.VERSION;var S={FetchServer:s.FetchServer,RequestInterceptor:s.RequestInterceptor,ResponseInterceptor:s.ResponseInterceptor,MapServer:s.MapServer,FeatureServer:s.FeatureServer,M3DServer:s.M3DServer,ImageServer:s.ImageServer,GeometryServer:s.GeometryServer,AddressServer:s.AddressServer,Cesium3DTilesServer:s.Cesium3DTilesServer,PoiServer:s.PoiServer,TerrainServer:s.TerrainServer,SecurityServer:s.SecurityServer,RootServer:s.RootServer,TileServer:s.TileServer,VectorTileServer:s.VectorTileServer,PlotServer:s.PlotServer,ResourceServer:s.ResourceServer,SceneServer:s.SceneServer,WMSServer:s.WMSServer,WMTSServer:s.WMTSServer,WFSServer:s.WFSServer,ArcGISMapServer:s.ArcGISMapServer,ISSceneServer:s.ISSceneServer,CAllOtherDataItemInfoSource:s.CAllOtherDataItemInfoSource,CAnnInfo:s.CAnnInfo,CChartLabelFormat:s.CChartLabelFormat,CChartTheme:s.CChartTheme,CChartThemeInfo:s.CChartThemeInfo,CChartThemeRepresentInfo:s.CChartThemeRepresentInfo,CChartType:s.CChartType,CDotDensityTheme:s.CDotDensityTheme,CFourColorTheme:s.CFourColorTheme,CGraduatedSymbolTheme:s.CGraduatedSymbolTheme,CLinInfo:s.CLinInfo,CMultiClassTheme:s.CMultiClassTheme,CPntInfo:s.CPntInfo,CRandomTheme:s.CRandomTheme,CRangeTheme:s.CRangeTheme,CRangeThemeInfo:s.CRangeThemeInfo,CRegInfo:s.CRegInfo,CSimpleTheme:s.CSimpleTheme,CTheme:s.CTheme,CThemeInfo:s.CThemeInfo,CUniqueTheme:s.CUniqueTheme,CUniqueThemeInfo:s.CUniqueThemeInfo,ExpInfo:s.ExpInfo,FolderInfo:s.FolderInfo,FolderInfoAttribute:s.FolderInfoAttribute,ItemValue:s.ItemValue,ThemeServer:s.ThemeServer,ThemesInfo:s.ThemesInfo,ArcGISGeometryServer:s.ArcGISGeometryServer,ArcGISFeatureServer:s.ArcGISFeatureServer,ArcGISVectorTileServer:s.ArcGISVectorTileServer,Map:l.Map,Basemap:l.Basemap,ArcGISMapImageLayer:l.ArcGISMapImageLayer,M3DModelCacheLayer:l.M3DModelCacheLayer,ArcGISMapImageSubLayer:l.ArcGISMapImageSubLayer,ArcGISTileLayer:l.ArcGISTileLayer,WMTSLayer:l.WMTSLayer,WMSLayer:l.WMSLayer,WMSSubLayer:l.WMSSubLayer,WFSLayer:l.WFSLayer,WMTSSubLayer:l.WMTSSubLayer,IGSVectorTileLayer:l.IGSVectorTileLayer,IGSVectorTileSubLayer:l.IGSVectorTileSubLayer,IGSMapImageLayer:l.IGSMapImageLayer,IGSMapImageSubLayer:l.IGSMapImageSubLayer,IGSSceneLayer:l.IGSSceneLayer,IGSSceneSubLayer:l.IGSSceneSubLayer,IGSSceneLabelSubLayer:l.IGSSceneLabelSubLayer,IGSSceneModelCacheSubLayer:l.IGSSceneModelCacheSubLayer,IGSSceneMapRefSubLayer:l.IGSSceneMapRefSubLayer,IGSSceneTerrainSubLayer:l.IGSSceneTerrainSubLayer,IGSTileLayer:l.IGSTileLayer,IGSScene:l.IGSScene,ISScene:l.ISScene,BaseScene:l.BaseScene,IGSFeatureLayer:l.IGSFeatureLayer,FeatureFilter:l.FeatureFilter,ISSceneLayer:l.ISSceneLayer,ISSceneSubLayer:l.ISSceneSubLayer,ISSceneModelCacheSubLayer:l.ISSceneModelCacheSubLayer,SubLayer:l.SubLayer,EchartsLayer:l.EchartsLayer,MapVLayer:l.MapVLayer,GroupLayer:l.GroupLayer,GraphicsLayer:l.GraphicsLayer,GeoJSONLayer:l.GeoJSONLayer,Cesium3DTilesCacheLayer:l.Cesium3DTilesCacheLayer,TerrainCacheLayer:l.TerrainCacheLayer,VideoLayer:l.VideoLayer,S3MTilesCacheLayer:l.S3MTilesCacheLayer,Layer:l.Layer,Projection:f.Projection,WMTSStyle:f.WMTSStyle,CoordnateTransform:f.CoordnateTransform,SketchEditor:g.SketchEditor,SketchEditor3D:g.SketchEditor3D,SketchBaseDrawTool:g.SketchBaseDrawTool,SketchPointDrawTool:g.SketchPointDrawTool,SketchPolylineDrawTool:g.SketchPolylineDrawTool,SketchPolygonDrawTool:g.SketchPolygonDrawTool,SketchCircleDrawTool:g.SketchCircleDrawTool,SketchExtentDrawTool:g.SketchExtentDrawTool,SketchFreehandPolylineDrawTool:g.SketchFreehandPolylineDrawTool,SketchFreehandPolygonDrawTool:g.SketchFreehandPolygonDrawTool,getTipTextByEditOption:g.getTipTextByEditOption,SketchStyle:g.SketchStyle,SketchEditorEvent:g.SketchEditorEvent,Extent:c.Extent,Polygon:c.Polygon,LineString:c.LineString,Point:c.Point,Circle:c.Circle,MultiPolygon:c.MultiPolygon,MultiLineString:c.MultiLineString,MultiPoint:c.MultiPoint,GeometryEngine:c.GeometryEngine,Color:f.Color,Font:f.Font,LayerEvent:f.LayerEvent,Event:f.Event,Zondy:b,zondy:_,Evented:f.Evented,FeatureRender:f.FeatureRender,ErrorEvent:f.ErrorEvent,Collection:f.Collection,CollectionFlattener:f.CollectionFlattener,FeatureSet:f.FeatureSet,Feature:f.Feature,getFeaturesFromFeatureSet:f.getFeaturesFromFeatureSet,ReturnFormat:p.ReturnFormat,FetchMethod:p.FetchMethod,LayerEventType:p.LayerEventType,MapEventType:p.MapEventType,StatisticType:p.StatisticType,SpatialRelation:p.SpatialRelation,CustomWKID:p.CustomWKID,GeometryType:p.GeometryType,LayerType:p.LayerType,SubLayerType:p.SubLayerType,TokenAttachType:p.TokenAttachType,IGSGeometryType:p.IGSGeometryType,LogType:p.LogType,LoadStatus:p.LoadStatus,ViewEventType:p.ViewEventType,LengthUnit:p.LengthUnit,AngleUnit:p.AngleUnit,RendererType:p.RendererType,VectorTileGeometryType:p.VectorTileGeometryType,VideoSourceType:p.VideoSourceType,SketchDataType:p.SketchDataType,SketchEditMode:p.SketchEditMode,SketchEditorEventType:p.SketchEditorEventType,SketchEditorState:p.SketchEditorState,SketchEditorToolEventType:p.SketchEditorToolEventType,SymbolType:p.SymbolType,IGSSymbolType:p.IGSSymbolType,ElevationMode:p.ElevationMode,ElevationInfo:f.ElevationInfo,ProjectInfo:f.ProjectInfo,OutStatistic:f.OutStatistic,TileMatrixSet:f.TileMatrixSet,ProjectInfoBySrsID:f.ProjectInfoBySrsID,FeatureExpressionInfo:f.FeatureExpressionInfo,HorizontalAlignment:p.HorizontalAlignment,VerticalAlignment:p.VerticalAlignment,SceneMode:p.SceneMode,ShadowMode:p.ShadowMode,SwipeMode:p.SwipeMode,BaseSwipeTool:a.BaseSwipeTool,SimpleFillSymbol:d.SimpleFillSymbol,SimpleLineSymbol:d.SimpleLineSymbol,SimpleMarkerSymbol:d.SimpleMarkerSymbol,TextSymbol:d.TextSymbol,Symbol:d.Symbol,PictureMarkerSymbol:d.PictureMarkerSymbol,PictureFillSymbol:d.PictureFillSymbol,MapGISTextSymbol:d.MapGISTextSymbol,UniqueValueRenderer:l.UniqueValueRenderer,ClassBreakRenderer:l.ClassBreakRenderer,SimpleRenderer:l.SimpleRenderer,ClusterRenderer:l.ClusterRenderer,RandomRenderer:l.RandomRenderer,RankRenderer:l.RankRenderer,HeatmapRenderer:l.HeatmapRenderer,BaseRenderer:l.BaseRenderer,getIGSDynamicLayer:l.getIGSDynamicLayer,extend:h.extend,isArray:h.isArray,isNumber:h.isNumber,isInTheSameDomain:h.isInTheSameDomain,transformResult:h.transformResult,urlAppend:h.urlAppend,getParameterString:h.getParameterString,bind:h.bind,getGUID:h.getGUID,defaultValue:h.defaultValue,defined:h.defined,normalize:h.normalize,createGeometry:h.createGeometry,getExtendExtentByPixel:h.getExtendExtentByPixel,limitExtentToSRSMaxExtent:h.limitExtentToSRSMaxExtent,isNull:h.isNull,getGeometryParameter:h.getGeometryParameter,getOutStatisticsParameter:h.getOutStatisticsParameter,Log:h.Log,isString:h.isString,deepClone:h.deepClone,isBoolean:h.isBoolean,extendDeep:h.extendDeep,newGuid:h.newGuid,formatPoints:h.formatPoints,returnPoint:h.returnPoint,cloneObject:h.cloneObject,notNULL:h.notNULL,isObject:h.isObject,getVideoType:h.getVideoType,toJSON:h.toJSON,getBaseUrl:h.getBaseUrl,inputCss:h.inputCss,BaseView:y.BaseView,MapView:y.MapView,SceneView:y.SceneView,BaseGraphicsLayerView:y.BaseGraphicsLayerView,BaseRendererLayerView:y.BaseRendererLayerView,GroupLayerView:y.GroupLayerView,LayerView:y.LayerView,SpatialReference:c.SpatialReference,UrlServerType:p.UrlServerType,PictureFormat:p.PictureFormat,getUrlType:l.getUrlType,is4326:l.is4326,isCustomSP:l.isCustomSP,EPSG:f.EPSG,proj4:n.default,T:i,formatBaseUrl:s.formatBaseUrl,RadiusUnit:p.RadiusUnit,Geometry:c.Geometry,editFeatureByArc3:c.editFeatureByArc3,editGeometryByArc3:c.editGeometryByArc3,Config:s.Config,ServiceConfigToken:s.ServiceConfigToken,ServiceConfigRequestInterceptors:s.ServiceConfigRequestInterceptors,ServiceConfigResponseInterceptors:s.ServiceConfigResponseInterceptors,createSimpleMarkerSymbolCanvas:v.createSimpleMarkerSymbolCanvas,createSimpleFillSymbolCanvas:v.createSimpleFillSymbolCanvas,BaseFeatureLayerView:y.BaseFeatureLayerView,TileInfoUtil:l.TileInfoUtil,WMTSCorporation:p.WMTSCorporation,Corporation:p.Corporation,setElevationInfo:l.setElevationInfo,LabelClass:l.LabelClass,HeatmapColorStop:l.HeatmapColorStop,SizeVariable:l.SizeVariable,ColorVariable:l.ColorVariable,OpacityVariable:l.OpacityVariable,VisualVariable:l.VisualVariable,RendererUtil:y.RendererUtil,Symbol3D:d.Symbol3D,LabelSymbol3D:d.LabelSymbol3D,LineSymbol3D:d.LineSymbol3D,PointSymbol3D:d.PointSymbol3D,PolygonSymbol3D:d.PolygonSymbol3D,LineCallout3D:d.LineCallout3D,Callout3D:d.Callout3D,Symbol3DVerticalOffset:d.Symbol3DVerticalOffset,Symbol3DLayer:d.Symbol3DLayer,Symbol3DLayerType:p.Symbol3DLayerType,LineCapType:p.LineCapType,LineJoinType:p.LineJoinType,LineMarkerPlacement:p.LineMarkerPlacement,LineMarkerStyle:p.LineMarkerStyle,LineStyleMarker3D:d.LineStyleMarker3D,LinePatternStyle:p.LinePatternStyle,LineStylePattern3D:d.LineStylePattern3D,LineSymbol3DLayer:d.LineSymbol3DLayer,PathSymbol3DLayer:d.PathSymbol3DLayer,AnchorType:p.AnchorType,ProfileType:p.ProfileType,FillSymbol3DLayer:d.FillSymbol3DLayer,FillSymbol3DOutline:d.FillSymbol3DOutline,PatternStyle:p.PatternStyle,IconSymbol3DLayer:d.IconSymbol3DLayer,PointSymbol3DOutline:d.PointSymbol3DOutline,IconResource:d.IconResource,ObjectSymbol3DLayer:d.ObjectSymbol3DLayer,ExtrudeSymbol3DLayer:d.ExtrudeSymbol3DLayer,Edges3D:d.Edges3D,TextSymbol3DLayer:d.TextSymbol3DLayer,TextHalo:d.TextHalo,WaterSymbol3DLayer:d.WaterSymbol3DLayer,WaterbodySize:p.WaterbodySize,WaveStrength:p.WaveStrength,MaterialType:p.MaterialType,ColorMaterial:d.ColorMaterial,StylePattern3D:d.StylePattern3D,ArcGISVectorTileLayer:l.ArcGISVectorTileLayer,ArcGISVectorTileSubLayer:l.ArcGISVectorTileSubLayer,WebTileLayer:l.WebTileLayer,getZoomOffset:l.getZoomOffset,FeatureCollection:l.FeatureCollection,CAttDataRow:s.CAttDataRow,CAttStruct:s.CAttStruct,Interceptor:s.Interceptor,WorkFlowServer:s.WorkFlowServer,TileLayer:l.TileLayer,BaseServer:s.BaseServer,RequestConfig:s.RequestConfig,OverlayLayer:l.OverlayLayer,OGCLayer:l.OGCLayer,UnknownLayer:l.UnknownLayer,getProjectionSrs:h.getProjectionSrs,isWMSReverse:h.isWMSReverse,isWMTSReverse:h.isWMTSReverse,convertImageSourceToBase64:h.convertImageSourceToBase64,getTileLayerNearestCenterAndScale:h.getTileLayerNearestCenterAndScale,throttle:h.throttle,compareObject:h.compareObject,debouncePromise:h.debouncePromise,inOrderPromise:h.inOrderPromise,allSettled:h.allSettled,LinearUnits:p.LinearUnits,AreaUnits:p.AreaUnits,ArcType:p.ArcType,FetchRequest:s.FetchRequest,TileInfo:l.TileInfo,appendUrlParams:l.appendUrlParams,getFullBaseUrl:l.getFullBaseUrl,LOD:l.LOD,VoxelFilter:l.VoxelFilter,IGSImageryLayer:l.IGSImageryLayer,IGSImageryTileLayer:l.IGSImageryTileLayer,RasterFunction:l.RasterFunction,RasterInfo:l.RasterInfo,convertIGSClippingString:s.convertIGSClippingString,IGSSceneOriginLayerType:p.IGSSceneOriginLayerType,GeometryFilter:s.GeometryFilter,ColorNameToHexMap:p.ColorNameToHexMap,VectorTileLayer:l.VectorTileLayer,SeverVectorTileSubLayerType:p.SeverVectorTileSubLayerType,ExpressionParser:h.ExpressionParser,VisualVariableType:p.VisualVariableType,TDTLayerType:p.TDTLayerType,TileSliceType:p.TileSliceType,isLayerViewValid:u.isLayerViewValid,getValidLayers:u.getValidLayers,getLayerViewsGeographicExtent:u.getLayerViewsGeographicExtent,getCrsOptionsBySpatialReference:u.getCrsOptionsBySpatialReference,getCrsOptions:u.getCrsOptions,getLayersExtent:u.getLayersExtent,TemporalUnit:p.TemporalUnit,NormalizationType:p.NormalizationType,RasterInterpolationType:p.RasterInterpolationType,EngineType:p.EngineType,TimeExtent:f.TimeExtent,TimeInfo:f.TimeInfo,TimeInterval:f.TimeInterval,TileMonitor:f.TileMonitor,getFunctionArguments:h.getFunctionArguments,UrlUtil:s.UrlUtil,ServerUtil:s.ServerUtil,deleteNullValue:h.deleteNullValue,BaseRegExp:s.BaseRegExp,ServerBaseUrlRegExp:s.ServerBaseUrlRegExp,LayerBaseUrlRegExp:s.LayerBaseUrlRegExp,formatWebTileUrl:l.formatWebTileUrl,buildModuleUrl:h.buildModuleUrl,getMapGISBaseUrl:h.getMapGISBaseUrl};window.MapGISCommon=S,(0,m.initMapGISEvn)(),t.FetchServer=s.FetchServer,t.RequestInterceptor=s.RequestInterceptor,t.ResponseInterceptor=s.ResponseInterceptor,t.MapServer=s.MapServer,t.FeatureServer=s.FeatureServer,t.M3DServer=s.M3DServer,t.ImageServer=s.ImageServer,t.GeometryServer=s.GeometryServer,t.AddressServer=s.AddressServer,t.Cesium3DTilesServer=s.Cesium3DTilesServer,t.PoiServer=s.PoiServer,t.TerrainServer=s.TerrainServer,t.SecurityServer=s.SecurityServer,t.RootServer=s.RootServer,t.TileServer=s.TileServer,t.VectorTileServer=s.VectorTileServer,t.PlotServer=s.PlotServer,t.ResourceServer=s.ResourceServer,t.SceneServer=s.SceneServer,t.WMSServer=s.WMSServer,t.WMTSServer=s.WMTSServer,t.WFSServer=s.WFSServer,t.ArcGISMapServer=s.ArcGISMapServer,t.ISSceneServer=s.ISSceneServer,t.CAllOtherDataItemInfoSource=s.CAllOtherDataItemInfoSource,t.CAnnInfo=s.CAnnInfo,t.CChartLabelFormat=s.CChartLabelFormat,t.CChartTheme=s.CChartTheme,t.CChartThemeInfo=s.CChartThemeInfo,t.CChartThemeRepresentInfo=s.CChartThemeRepresentInfo,t.CChartType=s.CChartType,t.CDotDensityTheme=s.CDotDensityTheme,t.CFourColorTheme=s.CFourColorTheme,t.CGraduatedSymbolTheme=s.CGraduatedSymbolTheme,t.CLinInfo=s.CLinInfo,t.CMultiClassTheme=s.CMultiClassTheme,t.CPntInfo=s.CPntInfo,t.CRandomTheme=s.CRandomTheme,t.CRangeTheme=s.CRangeTheme,t.CRangeThemeInfo=s.CRangeThemeInfo,t.CRegInfo=s.CRegInfo,t.CSimpleTheme=s.CSimpleTheme,t.CTheme=s.CTheme,t.CThemeInfo=s.CThemeInfo,t.CUniqueTheme=s.CUniqueTheme,t.CUniqueThemeInfo=s.CUniqueThemeInfo,t.ExpInfo=s.ExpInfo,t.FolderInfo=s.FolderInfo,t.FolderInfoAttribute=s.FolderInfoAttribute,t.ItemValue=s.ItemValue,t.ThemeServer=s.ThemeServer,t.ThemesInfo=s.ThemesInfo,t.ArcGISGeometryServer=s.ArcGISGeometryServer,t.ArcGISFeatureServer=s.ArcGISFeatureServer,t.ArcGISVectorTileServer=s.ArcGISVectorTileServer,t.Map=l.Map,t.Basemap=l.Basemap,t.ArcGISMapImageLayer=l.ArcGISMapImageLayer,t.M3DModelCacheLayer=l.M3DModelCacheLayer,t.ArcGISMapImageSubLayer=l.ArcGISMapImageSubLayer,t.ArcGISTileLayer=l.ArcGISTileLayer,t.WMTSLayer=l.WMTSLayer,t.WMSLayer=l.WMSLayer,t.WMSSubLayer=l.WMSSubLayer,t.WFSLayer=l.WFSLayer,t.WMTSSubLayer=l.WMTSSubLayer,t.IGSVectorTileLayer=l.IGSVectorTileLayer,t.IGSVectorTileSubLayer=l.IGSVectorTileSubLayer,t.IGSMapImageLayer=l.IGSMapImageLayer,t.IGSMapImageSubLayer=l.IGSMapImageSubLayer,t.IGSSceneLayer=l.IGSSceneLayer,t.IGSSceneSubLayer=l.IGSSceneSubLayer,t.IGSSceneLabelSubLayer=l.IGSSceneLabelSubLayer,t.IGSSceneModelCacheSubLayer=l.IGSSceneModelCacheSubLayer,t.IGSSceneMapRefSubLayer=l.IGSSceneMapRefSubLayer,t.IGSSceneTerrainSubLayer=l.IGSSceneTerrainSubLayer,t.IGSTileLayer=l.IGSTileLayer,t.IGSScene=l.IGSScene,t.ISScene=l.ISScene,t.BaseScene=l.BaseScene,t.IGSFeatureLayer=l.IGSFeatureLayer,t.FeatureFilter=l.FeatureFilter,t.ISSceneLayer=l.ISSceneLayer,t.ISSceneSubLayer=l.ISSceneSubLayer,t.ISSceneModelCacheSubLayer=l.ISSceneModelCacheSubLayer,t.SubLayer=l.SubLayer,t.EchartsLayer=l.EchartsLayer,t.MapVLayer=l.MapVLayer,t.GroupLayer=l.GroupLayer,t.GraphicsLayer=l.GraphicsLayer,t.GeoJSONLayer=l.GeoJSONLayer,t.Cesium3DTilesCacheLayer=l.Cesium3DTilesCacheLayer,t.TerrainCacheLayer=l.TerrainCacheLayer,t.VideoLayer=l.VideoLayer,t.S3MTilesCacheLayer=l.S3MTilesCacheLayer,t.Layer=l.Layer,t.Projection=f.Projection,t.WMTSStyle=f.WMTSStyle,t.CoordnateTransform=f.CoordnateTransform,t.SketchEditor=g.SketchEditor,t.SketchEditor3D=g.SketchEditor3D,t.SketchBaseDrawTool=g.SketchBaseDrawTool,t.SketchPointDrawTool=g.SketchPointDrawTool,t.SketchPolylineDrawTool=g.SketchPolylineDrawTool,t.SketchPolygonDrawTool=g.SketchPolygonDrawTool,t.SketchCircleDrawTool=g.SketchCircleDrawTool,t.SketchExtentDrawTool=g.SketchExtentDrawTool,t.SketchFreehandPolylineDrawTool=g.SketchFreehandPolylineDrawTool,t.SketchFreehandPolygonDrawTool=g.SketchFreehandPolygonDrawTool,t.getTipTextByEditOption=g.getTipTextByEditOption,t.SketchStyle=g.SketchStyle,t.SketchEditorEvent=g.SketchEditorEvent,t.Extent=c.Extent,t.Polygon=c.Polygon,t.LineString=c.LineString,t.Point=c.Point,t.Circle=c.Circle,t.MultiPolygon=c.MultiPolygon,t.MultiLineString=c.MultiLineString,t.MultiPoint=c.MultiPoint,t.GeometryEngine=c.GeometryEngine,t.Color=f.Color,t.Font=f.Font,t.LayerEvent=f.LayerEvent,t.Event=f.Event,t.Zondy=b,t.zondy=_,t.Evented=f.Evented,t.FeatureRender=f.FeatureRender,t.ErrorEvent=f.ErrorEvent,t.Collection=f.Collection,t.CollectionFlattener=f.CollectionFlattener,t.FeatureSet=f.FeatureSet,t.Feature=f.Feature,t.getFeaturesFromFeatureSet=f.getFeaturesFromFeatureSet,t.ReturnFormat=p.ReturnFormat,t.FetchMethod=p.FetchMethod,t.LayerEventType=p.LayerEventType,t.MapEventType=p.MapEventType,t.StatisticType=p.StatisticType,t.SpatialRelation=p.SpatialRelation,t.CustomWKID=p.CustomWKID,t.GeometryType=p.GeometryType,t.LayerType=p.LayerType,t.SubLayerType=p.SubLayerType,t.TokenAttachType=p.TokenAttachType,t.IGSGeometryType=p.IGSGeometryType,t.LogType=p.LogType,t.LoadStatus=p.LoadStatus,t.ViewEventType=p.ViewEventType,t.LengthUnit=p.LengthUnit,t.AngleUnit=p.AngleUnit,t.RendererType=p.RendererType,t.VectorTileGeometryType=p.VectorTileGeometryType,t.VideoSourceType=p.VideoSourceType,t.SketchDataType=p.SketchDataType,t.SketchEditMode=p.SketchEditMode,t.SketchEditorEventType=p.SketchEditorEventType,t.SketchEditorState=p.SketchEditorState,t.SketchEditorToolEventType=p.SketchEditorToolEventType,t.SymbolType=p.SymbolType,t.IGSSymbolType=p.IGSSymbolType,t.ElevationMode=p.ElevationMode,t.ElevationInfo=f.ElevationInfo,t.ProjectInfo=f.ProjectInfo,t.OutStatistic=f.OutStatistic,t.TileMatrixSet=f.TileMatrixSet,t.ProjectInfoBySrsID=f.ProjectInfoBySrsID,t.FeatureExpressionInfo=f.FeatureExpressionInfo,t.HorizontalAlignment=p.HorizontalAlignment,t.VerticalAlignment=p.VerticalAlignment,t.SceneMode=p.SceneMode,t.ShadowMode=p.ShadowMode,t.SwipeMode=p.SwipeMode,t.BaseSwipeTool=a.BaseSwipeTool,t.SimpleFillSymbol=d.SimpleFillSymbol,t.SimpleLineSymbol=d.SimpleLineSymbol,t.SimpleMarkerSymbol=d.SimpleMarkerSymbol,t.TextSymbol=d.TextSymbol,t.Symbol=d.Symbol,t.PictureMarkerSymbol=d.PictureMarkerSymbol,t.PictureFillSymbol=d.PictureFillSymbol,t.MapGISTextSymbol=d.MapGISTextSymbol,t.UniqueValueRenderer=l.UniqueValueRenderer,t.ClassBreakRenderer=l.ClassBreakRenderer,t.SimpleRenderer=l.SimpleRenderer,t.ClusterRenderer=l.ClusterRenderer,t.RandomRenderer=l.RandomRenderer,t.RankRenderer=l.RankRenderer,t.HeatmapRenderer=l.HeatmapRenderer,t.BaseRenderer=l.BaseRenderer,t.getIGSDynamicLayer=l.getIGSDynamicLayer,t.extend=h.extend,t.isArray=h.isArray,t.isNumber=h.isNumber,t.isInTheSameDomain=h.isInTheSameDomain,t.transformResult=h.transformResult,t.urlAppend=h.urlAppend,t.getParameterString=h.getParameterString,t.bind=h.bind,t.getGUID=h.getGUID,t.defaultValue=h.defaultValue,t.defined=h.defined,t.normalize=h.normalize,t.createGeometry=h.createGeometry,t.getExtendExtentByPixel=h.getExtendExtentByPixel,t.limitExtentToSRSMaxExtent=h.limitExtentToSRSMaxExtent,t.isNull=h.isNull,t.getGeometryParameter=h.getGeometryParameter,t.getOutStatisticsParameter=h.getOutStatisticsParameter,t.Log=h.Log,t.isString=h.isString,t.deepClone=h.deepClone,t.isBoolean=h.isBoolean,t.extendDeep=h.extendDeep,t.newGuid=h.newGuid,t.formatPoints=h.formatPoints,t.returnPoint=h.returnPoint,t.cloneObject=h.cloneObject,t.notNULL=h.notNULL,t.isObject=h.isObject,t.getVideoType=h.getVideoType,t.toJSON=h.toJSON,t.getBaseUrl=h.getBaseUrl,t.inputCss=h.inputCss,t.BaseView=y.BaseView,t.MapView=y.MapView,t.SceneView=y.SceneView,t.BaseGraphicsLayerView=y.BaseGraphicsLayerView,t.BaseRendererLayerView=y.BaseRendererLayerView,t.GroupLayerView=y.GroupLayerView,t.LayerView=y.LayerView,t.SpatialReference=c.SpatialReference,t.UrlServerType=p.UrlServerType,t.PictureFormat=p.PictureFormat,t.getUrlType=l.getUrlType,t.is4326=l.is4326,t.isCustomSP=l.isCustomSP,t.EPSG=f.EPSG,t.proj4=n.default,t.T=i,t.formatBaseUrl=s.formatBaseUrl,t.RadiusUnit=p.RadiusUnit,t.Geometry=c.Geometry,t.editFeatureByArc3=c.editFeatureByArc3,t.editGeometryByArc3=c.editGeometryByArc3,t.Config=s.Config,t.ServiceConfigToken=s.ServiceConfigToken,t.ServiceConfigRequestInterceptors=s.ServiceConfigRequestInterceptors,t.ServiceConfigResponseInterceptors=s.ServiceConfigResponseInterceptors,t.createSimpleMarkerSymbolCanvas=v.createSimpleMarkerSymbolCanvas,t.createSimpleFillSymbolCanvas=v.createSimpleFillSymbolCanvas,t.BaseFeatureLayerView=y.BaseFeatureLayerView,t.TileInfoUtil=l.TileInfoUtil,t.WMTSCorporation=p.WMTSCorporation,t.Corporation=p.Corporation,t.setElevationInfo=l.setElevationInfo,t.LabelClass=l.LabelClass,t.HeatmapColorStop=l.HeatmapColorStop,t.SizeVariable=l.SizeVariable,t.ColorVariable=l.ColorVariable,t.OpacityVariable=l.OpacityVariable,t.VisualVariable=l.VisualVariable,t.RendererUtil=y.RendererUtil,t.Symbol3D=d.Symbol3D,t.LabelSymbol3D=d.LabelSymbol3D,t.LineSymbol3D=d.LineSymbol3D,t.PointSymbol3D=d.PointSymbol3D,t.PolygonSymbol3D=d.PolygonSymbol3D,t.LineCallout3D=d.LineCallout3D,t.Callout3D=d.Callout3D,t.Symbol3DVerticalOffset=d.Symbol3DVerticalOffset,t.Symbol3DLayer=d.Symbol3DLayer,t.Symbol3DLayerType=p.Symbol3DLayerType,t.LineCapType=p.LineCapType,t.LineJoinType=p.LineJoinType,t.LineMarkerPlacement=p.LineMarkerPlacement,t.LineMarkerStyle=p.LineMarkerStyle,t.LineStyleMarker3D=d.LineStyleMarker3D,t.LinePatternStyle=p.LinePatternStyle,t.LineStylePattern3D=d.LineStylePattern3D,t.LineSymbol3DLayer=d.LineSymbol3DLayer,t.PathSymbol3DLayer=d.PathSymbol3DLayer,t.AnchorType=p.AnchorType,t.ProfileType=p.ProfileType,t.FillSymbol3DLayer=d.FillSymbol3DLayer,t.FillSymbol3DOutline=d.FillSymbol3DOutline,t.PatternStyle=p.PatternStyle,t.IconSymbol3DLayer=d.IconSymbol3DLayer,t.PointSymbol3DOutline=d.PointSymbol3DOutline,t.IconResource=d.IconResource,t.ObjectSymbol3DLayer=d.ObjectSymbol3DLayer,t.ExtrudeSymbol3DLayer=d.ExtrudeSymbol3DLayer,t.Edges3D=d.Edges3D,t.TextSymbol3DLayer=d.TextSymbol3DLayer,t.TextHalo=d.TextHalo,t.WaterSymbol3DLayer=d.WaterSymbol3DLayer,t.WaterbodySize=p.WaterbodySize,t.WaveStrength=p.WaveStrength,t.MaterialType=p.MaterialType,t.ColorMaterial=d.ColorMaterial,t.StylePattern3D=d.StylePattern3D,t.ArcGISVectorTileLayer=l.ArcGISVectorTileLayer,t.ArcGISVectorTileSubLayer=l.ArcGISVectorTileSubLayer,t.WebTileLayer=l.WebTileLayer,t.getZoomOffset=l.getZoomOffset,t.FeatureCollection=l.FeatureCollection,t.CAttDataRow=s.CAttDataRow,t.CAttStruct=s.CAttStruct,t.Interceptor=s.Interceptor,t.WorkFlowServer=s.WorkFlowServer,t.TileLayer=l.TileLayer,t.BaseServer=s.BaseServer,t.RequestConfig=s.RequestConfig,t.UnknownLayer=l.UnknownLayer,t.OverlayLayer=l.OverlayLayer,t.OGCLayer=l.OGCLayer,t.getProjectionSrs=h.getProjectionSrs,t.isWMSReverse=h.isWMSReverse,t.isWMTSReverse=h.isWMTSReverse,t.convertImageSourceToBase64=h.convertImageSourceToBase64,t.getTileLayerNearestCenterAndScale=h.getTileLayerNearestCenterAndScale,t.throttle=h.throttle,t.compareObject=h.compareObject,t.debouncePromise=h.debouncePromise,t.inOrderPromise=h.inOrderPromise,t.allSettled=h.allSettled,t.LinearUnits=p.LinearUnits,t.AreaUnits=p.AreaUnits,t.ArcType=p.ArcType,t.FetchRequest=s.FetchRequest,t.TileInfo=l.TileInfo,t.appendUrlParams=l.appendUrlParams,t.getFullBaseUrl=l.getFullBaseUrl,t.LOD=l.LOD,t.VoxelFilter=l.VoxelFilter,t.IGSImageryLayer=l.IGSImageryLayer,t.IGSImageryTileLayer=l.IGSImageryTileLayer,t.RasterFunction=l.RasterFunction,t.RasterInfo=l.RasterInfo,t.convertIGSClippingString=s.convertIGSClippingString,t.IGSSceneOriginLayerType=p.IGSSceneOriginLayerType,t.GeometryFilter=s.GeometryFilter,t.ColorNameToHexMap=p.ColorNameToHexMap,t.SeverVectorTileSubLayerType=p.SeverVectorTileSubLayerType,t.VisualVariableType=p.VisualVariableType,t.TDTLayerType=p.TDTLayerType,t.TileSliceType=p.TileSliceType,t.VectorTileLayer=l.VectorTileLayer,t.ExpressionParser=h.ExpressionParser,t.isLayerViewValid=u.isLayerViewValid,t.getValidLayers=u.getValidLayers,t.getLayerViewsGeographicExtent=u.getLayerViewsGeographicExtent,t.getCrsOptionsBySpatialReference=u.getCrsOptionsBySpatialReference,t.getCrsOptions=u.getCrsOptions,t.getLayersExtent=u.getLayersExtent,t.TemporalUnit=p.TemporalUnit,t.NormalizationType=p.NormalizationType,t.RasterInterpolationType=p.RasterInterpolationType,t.EngineType=p.EngineType,t.TimeExtent=f.TimeExtent,t.TimeInfo=f.TimeInfo,t.TimeInterval=f.TimeInterval,t.TileMonitor=f.TileMonitor,t.getFunctionArguments=h.getFunctionArguments,t.UrlUtil=s.UrlUtil,t.ServerUtil=s.ServerUtil,t.deleteNullValue=h.deleteNullValue,t.BaseRegExp=s.BaseRegExp,t.ServerBaseUrlRegExp=s.ServerBaseUrlRegExp,t.LayerBaseUrlRegExp=s.LayerBaseUrlRegExp,t.formatWebTileUrl=l.formatWebTileUrl,t.decryptIGS=o.decryptIGS,t.buildModuleUrl=h.buildModuleUrl,t.getMapGISBaseUrl=h.getMapGISBaseUrl},function(e,t,r){"use strict";r.r(t);var n=r(222),i=r(233),o=r(130),a=r(235),s=r(237),u=r(238),l=r(69),c=r(132);function f(e,t){if(!(this instanceof f))return new f(e);this.forward=null,this.inverse=null,this.init=null,this.name,this.names=null,this.title,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,"init"in this&&"function"==typeof this.init&&this.init(),t(null,this)}else t("Could not get projection name from: "+e)}else t("Could not parse to valid json: "+e)}f.projections=o.default,f.projections.start(),t.default=f},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(5);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(5);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,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,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){e.exports=function(e){return e}(r(6),r(79),r(287),r(288),r(38),r(289),r(39),r(143),r(94),r(290),r(144),r(291),r(292),r(293),r(95),r(294),r(30),r(12),r(295),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311))},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,a=r.x64={};a.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return o.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}})}(),e}(r(6))},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(98));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,[]),this.layerView=(0,i.defaultValue)(r.layerView,null),this.view=(0,i.defaultValue)(r.view,null),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=[{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:'GEOGCRS["Beijing 1954",DATUM["Beijing 1954",ELLIPSOID["Krassowsky 1940",6378245,298.3,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["Geodesy."],AREA["China - onshore and offshore."],BBOX[16.7,73.62,53.56,134.77]],ID["EPSG",4214]]'},{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";var n,i;Object.defineProperty(t,"__esModule",{value:!0});var o=(i=n=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n.geometry="Geometry",n.point="Point",n.lineString="LineString",n.polygon="Polygon",n.multiPoint="MultiPoint",n.multiLineString="MultiLineString",n.multiPolygon="MultiPolygon",n.circle="Circle",n.extent="Extent",i);Object.defineProperty(o,"geometry",{writable:!1}),Object.defineProperty(o,"point",{writable:!1}),Object.defineProperty(o,"lineString",{writable:!1}),Object.defineProperty(o,"polygon",{writable:!1}),Object.defineProperty(o,"multiPoint",{writable:!1}),Object.defineProperty(o,"multiLineString",{writable:!1}),Object.defineProperty(o,"multiPolygon",{writable:!1}),Object.defineProperty(o,"circle",{writable:!1}),Object.defineProperty(o,"extent",{writable:!1}),t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allSettled=t.inOrderPromise=t.debouncePromise=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(51));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 i=await e[r]();t.push(i)}catch(e){n.default.error(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=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(0),s=r(3),u=r(4);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,a.defaultValue)(e,{}),r.id=(0,a.defaultValue)(e.id,(0,a.getGUID)()),r.type=o.SubLayerType.baseSub,r.layer=(0,a.defaultValue)(e.layer,null),r.sublayers=r._decorate("sublayers",(0,a.defaultValue)(e.sublayers,null),null,function(e){return e instanceof i.Collection?e:Array.isArray(e)?new i.Collection(e.map(function(e){return e.layer=r.layer,e.parent=r,r._createSublayer(e)})):null}),r.copyright=(0,a.defaultValue)(e.copyright,""),r.title=(0,a.defaultValue)(e.title||e.layerName,null),r.extensionOptions=(0,a.defaultValue)(e.extensionOptions,{}),r.extendProps=(0,a.defaultValue)(e.extendProps,{}),r.description=(0,a.defaultValue)(e.description,""),r.parent=(0,a.defaultValue)(e.parent,null),r.spatialReference=e.spatialReference?s.SpatialReference.fromJSON(e.spatialReference):null,r.extent=e.extent?s.Extent.fromJSON(e.extent):null;return r.capabilities=(0,u.mergeCommonClientCapbilities)(e.capabilities,{layer:!0,sublayers:!0,title:!0,extensionOptions:!0,extendProps:!0,description:!0,copyright:!0,parent:!0,spatialReference:!0,extent:!0,visible:!0,opacity:!0,minScale:!0,maxScale:!0}),r._visible=(0,a.defaultValue)(e.visible,!0),r._opacity=(0,a.defaultValue)(e.opacity,1),r._minScale=(0,a.defaultValue)(e.minScale,0),r._maxScale=(0,a.defaultValue)(e.maxScale,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 e.id=this.id,e.type=this.type,e.copyright=this.copyright,e.sublayers=this.sublayers?this.sublayers.map(function(e){return e.toJSON()}):null,e.title=this.title,e.description=this.description,e.visible=this.visible,e.opacity=this.opacity,e.extendProps=JSON.parse(JSON.stringify(this.extendProps)),e.extensionOptions=JSON.parse(JSON.stringify(this.extensionOptions)),e.spatialReference=this.spatialReference?this.spatialReference.toJSON():null,e.extent=this.extent?this.extent.toJSON():null,e.maxScale=this.maxScale,e.minScale=this.minScale,e.capabilities=JSON.parse(JSON.stringify(this.capabilities)),e}},{key:"clone",value:function(){return new t(this.toJSON())}},{key:"_createSublayer",value:function(e){return(0,u.createSublayer)(e)}},{key:"getCumulative",value:function(e,t){for(var r=this[e],n=this.parent;n;)r=t(r,n[e]),n=n.parent;return r}}],[{key:"fromJSON",value:function(e){return(0,u.createSublayer)(e)}}]),t}();Object.defineProperties(l.prototype,{visible:{get:function(){return this._visible},set:function(e){this._visible=e,this.layer&&this.layer.refresh()}},opacity:{get:function(){return this._opacity},set:function(e){this._opacity=e}},maxScale:{get:function(){return this._maxScale},set:function(e){this._maxScale=e}},minScale:{get:function(){return this._minScale},set:function(e){this._minScale=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);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=t||{},this.level=t.level,this.resolution=t.resolution,this.scale=t.scale,this._levelValue=String((0,i.defaultValue)(t.levelValue,"")),(0,i.defined)(this._levelValue)||(this._levelValue=String(this.level))}return n(e,[{key:"toJSON",value:function(){return{level:this.level,levelValue:this.levelValue,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}();Object.defineProperties(o.prototype,{levelValue:{get:function(){return this._levelValue},set:function(e){this._levelValue=String((0,i.defaultValue)(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(40)),o=r(0),a=r(62);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}}(),i=r(1),o=r(0),a=r(7),s=r(4);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,o.defaultValue)(e,{}),r.type=i.LayerType.OGC,r.version=(0,o.defaultValue)(e.version,""),r.customParameters=(0,o.defaultValue)(e.customParameters,{}),r.customLayerParameters=(0,o.defaultValue)(e.customLayerParameters,{});return r.capabilities=(0,s.mergeCommonClientCapbilities)(r.capabilities,{type:!0,customParameters:!0,customLayerParameters:!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.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}},{key:"clone",value:function(){return new t(this.toJSON())}}],[{key:"fromJSON",value:function(e){return new t(e=(0,o.defaultValue)(e,{}))}}]),t}();t.default=u},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";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(72),i=r(5);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),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){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){e.exports=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],u=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(s[i]=r(t.pow(n,.5))),u[i]=r(t.pow(n,1/3)),i++),n++}();var l=[],c=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],c=r[5],f=r[6],h=r[7],p=0;p<64;p++){if(p<16)l[p]=0|e[t+p];else{var d=l[p-15],y=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,g=l[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[p]=y+l[p-7]+v+l[p-16]}var m=n&i^n&o^i&o,_=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),b=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&f)+u[p]+l[p];h=f,f=c,c=s,s=a+b|0,a=o,o=i,i=n,n=b+(_+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(c),r.HmacSHA256=o._createHmacHelper(c)}(Math),e.SHA256}(r(6))},function(e,t,r){e.exports=function(e){!function(){var t=e,r=t.lib,n=r.Base,i=t.enc,o=i.Utf8,a=t.algo;a.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,u=a.words,l=0;l<r;l++)s[l]^=1549556828,u[l]^=909522486;i.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);t.reset();var n=t.finalize(this._oKey.clone().concat(r));return n}})}()}(r(6))},function(e,t,r){"use strict";r.r(t),r.d(t,"SM2",function(){return E}),r.d(t,"SM3",function(){return m}),r.d(t,"SM4",function(){return A});var n=r(312),i=r.n(n),o=r(97),a=r(316),s=a.BigInteger.prototype.Barrett;function u(e,t){this.x=t,this.q=e}function l(e,t,r,n){this.curve=e,this.x=t,this.y=r,this.z=null==n?a.BigInteger.ONE:n,this.zinv=null}function c(e,t,r){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(r),this.infinity=new l(this,null,null),this.reducer=new s(this.q)}u.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},u.prototype.toBigInteger=function(){return this.x},u.prototype.negate=function(){return new u(this.q,this.x.negate().mod(this.q))},u.prototype.add=function(e){return new u(this.q,this.x.add(e.toBigInteger()).mod(this.q))},u.prototype.subtract=function(e){return new u(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},u.prototype.multiply=function(e){return new u(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},u.prototype.square=function(){return new u(this.q,this.x.square().mod(this.q))},u.prototype.divide=function(e){return new u(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},l.prototype.getX=function(){null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q));var e=this.x.toBigInteger().multiply(this.zinv);return this.curve.reduce(e),this.curve.fromBigInteger(e)},l.prototype.getY=function(){null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q));var e=this.y.toBigInteger().multiply(this.zinv);return this.curve.reduce(e),this.curve.fromBigInteger(e)},l.prototype.equals=function(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(a.BigInteger.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(a.BigInteger.ZERO))},l.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(a.BigInteger.ZERO)&&!this.y.toBigInteger().equals(a.BigInteger.ZERO)},l.prototype.negate=function(){return new l(this.curve,this.x,this.y.negate(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),r=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(a.BigInteger.ZERO.equals(r))return a.BigInteger.ZERO.equals(t)?this.twice():this.curve.getInfinity();var n=new a.BigInteger("3"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),s=(e.x.toBigInteger(),e.y.toBigInteger(),r.square()),u=s.multiply(r),c=i.multiply(s),f=t.square().multiply(this.z),h=f.subtract(c.shiftLeft(1)).multiply(e.z).subtract(u).multiply(r).mod(this.curve.q),p=c.multiply(n).multiply(t).subtract(o.multiply(u)).subtract(f.multiply(t)).multiply(e.z).add(t.multiply(u)).mod(this.curve.q),d=u.multiply(this.z).multiply(e.z).mod(this.curve.q);return new l(this.curve,this.curve.fromBigInteger(h),this.curve.fromBigInteger(p),d)},l.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new a.BigInteger("3"),t=this.x.toBigInteger(),r=this.y.toBigInteger(),n=r.multiply(this.z),i=n.multiply(r).mod(this.curve.q),o=this.curve.a.toBigInteger(),s=t.square().multiply(e);a.BigInteger.ZERO.equals(o)||(s=s.add(this.z.square().multiply(o)));var u=(s=s.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(n).mod(this.curve.q),c=s.multiply(e).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(s.square().multiply(s)).mod(this.curve.q),f=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new l(this.curve,this.curve.fromBigInteger(u),this.curve.fromBigInteger(c),f)},l.prototype.multiply=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,r=e,n=r.multiply(new a.BigInteger("3")),i=this.negate(),o=this;for(t=n.bitLength()-2;t>0;--t){o=o.twice();var s=n.testBit(t);s!=r.testBit(t)&&(o=o.add(s?this:i))}return o},l.prototype.multiplyTwo=function(e,t,r){var n;n=e.bitLength()>r.bitLength()?e.bitLength()-1:r.bitLength()-1;for(var i=this.curve.getInfinity(),o=this.add(t);n>=0;)i=i.twice(),e.testBit(n)?i=r.testBit(n)?i.add(o):i.add(this):r.testBit(n)&&(i=i.add(t)),--n;return i},c.prototype.getQ=function(){return this.q},c.prototype.getA=function(){return this.a},c.prototype.getB=function(){return this.b},c.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},c.prototype.getInfinity=function(){return this.infinity},c.prototype.fromBigInteger=function(e){return new u(this.q,e)},c.prototype.reduce=function(e){this.reducer.reduce(e)},c.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var t=(e.length-2)/2,r=e.substr(2,t),n=e.substr(t+2,t);return new l(this,this.fromBigInteger(new a.BigInteger(r,16)),this.fromBigInteger(new a.BigInteger(n,16)));default:return null}},c.prototype.encodePointHex=function(e){if(e.isInfinity())return"00";var t=e.getX().toBigInteger().toString(16),r=e.getY().toBigInteger().toString(16),n=this.getQ().toString(16).length;for(n%2!=0&&n++;t.length<n;)t="0"+t;for(;r.length<n;)r="0"+r;return"04"+t+r};var f=function(e,t){return e<<(t%=32)|e>>>32-t},h=function(e,t){var r=t-e.length;return(r>0?"0".repeat(r):"")+e},p=function(e){return e<16?2043430169:2055708042},d=function(e,t,r,n){return n<16?e^t^r:e&t|e&r|t&r},y=function(e,t,r,n){return n<16?e^t^r:e&t|~e&r},g=function(e,t,r){for(var n,i,o,a,s,u=function(e){var t,r=new Array(132);e.forEach(function(e,t){r[t]=e});for(var n=16;n<68;n++)r[n]=(t=r[n-16]^r[n-9]^f(r[n-3],15))^f(t,15)^f(t,23)^f(r[n-13],7)^r[n-6];for(var i=0;i<64;i++)r[i+68]=r[i]^r[i+4];return r}(t),l=e[0],c=e[1],h=e[2],g=e[3],v=e[4],m=e[5],_=e[6],b=e[7],S=0;S<64;S++)i=(n=f(f(l,12)+v+f(p(S),S),7))^f(l,12),o=d(l,c,h,S)+g+i+u[S+68],a=y(v,m,_,S)+b+n+u[S],g=h,h=f(c,9),c=l,l=o,b=_,_=f(m,19),m=v,v=(s=a)^f(s,9)^f(s,17);return[l^e[0],c^e[1],h^e[2],g^e[3],v^e[4],m^e[5],_^e[6],b^e[7]]},v=function(e,t,r){if("string"==typeof e?e=o.Buffer.from(e,t||"utf8"):e instanceof ArrayBuffer&&(e=o.Buffer.from(e)),!o.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');var n,a,s,u,l,c;n=e,a=o.Buffer.alloc(1,128),u=o.Buffer.alloc(s=(s=n.length%64)>=56?64-s%56-1:56-s-1,0),l=o.Buffer.alloc(8),c=8*n.length,l.writeUInt32BE(Math.floor(c/Math.pow(2,32)),0),l.writeUInt32BE(c%Math.pow(2,32),4);for(var f=(e=o.Buffer.concat([n,a,u,l],n.length+1+s+8)).length/64,h=new Array(f),p=0;p<f;p++){h[p]=new Array(16);for(var d=0;d<16;d++)h[p][d]=e.readUInt32BE(64*p+4*d)}var y=new Array(f);y[0]=[1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214];for(var v=0;v<f;v++)y[v+1]=g(y[v],h[v]);var m=o.Buffer.alloc(32);return y[f].forEach(function(e,t){return m.writeInt32BE(e,4*t)}),r?m.toString(r):i()(m)},m={__proto__:null,digest:v},_=new a.SecureRandom,b=function(){var e=new c(new a.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),new a.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),new a.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16));return{curve:e,G:e.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"),n:new a.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}(),S=b.curve,w=b.G,x=b.n;function O(e,t){for(var r=[],n=Math.ceil(t/32),i=t%32,a=1;a<=n;a++){var s=o.Buffer.allocUnsafe(4);s.writeUInt32BE(a);var u=v(o.Buffer.concat([e,s]));r.push(a===n&&i?o.Buffer.from(u).slice(0,i):o.Buffer.from(u))}return o.Buffer.concat(r,t)}var E={__proto__:null,constants:{C1C2C3:0,C1C3C2:1,PC:"04"},generateKeyPair:function(){var e=new a.BigInteger(x.bitLength(),_).mod(x.subtract(new a.BigInteger("2"))).add(a.BigInteger.ONE),t=h(e.toString(16),64),r=w.multiply(e);return{privateKey:t,publicKey:"04"+h(r.getX().toBigInteger().toString(16),64)+h(r.getY().toBigInteger().toString(16),64)}},encrypt:function(e,t,r){var n=r||{},s=n.mode,u=void 0===s?1:s,l=n.outputEncoding,c=n.pc;if("string"==typeof e?e=o.Buffer.from(e,n.inputEncoding||"utf8"):e instanceof ArrayBuffer&&(e=o.Buffer.from(e)),!o.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');var f=new a.BigInteger(x.bitLength(),_).mod(x.subtract(a.BigInteger.ONE)).add(a.BigInteger.ONE),p=w.multiply(f),d=h(p.getX().toBigInteger().toString(16),64)+h(p.getY().toBigInteger().toString(16),64),y=S.decodePointHex(t).multiply(f),g=h(y.getX().toBigInteger().toString(16),64),m=h(y.getY().toBigInteger().toString(16),64),b=O(o.Buffer.from(g+m,"hex"),e.length),E=h(new a.BigInteger(e.toString("hex"),16).xor(new a.BigInteger(b.toString("hex"),16)).toString(16),2*e.length),P=v(g+e.toString("hex")+m,"hex","hex"),T=o.Buffer.from((c?"04":"")+(0===u?d+E+P:d+P+E),"hex");return l?T.toString(l):i()(T)},decrypt:function(e,t,r){var n=r||{},s=n.mode,u=void 0===s?1:s,l=n.outputEncoding,c=n.pc;if("string"==typeof e?e=o.Buffer.from(e,n.inputEncoding):e instanceof ArrayBuffer&&(e=o.Buffer.from(e)),!o.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');var f=(e=c?e.slice(1):e).slice(0,32).toString("hex"),p=e.slice(32,64).toString("hex"),d=S.decodePointHex("04"+f+p).multiply(new a.BigInteger(t,16)),y=h(d.getX().toBigInteger().toString(16),64),g=h(d.getY().toBigInteger().toString(16),64),m=e.slice(64,96),_=e.slice(96);0===u&&(m=e.slice(e.length-32),_=e.slice(64,e.length-32));var b=O(o.Buffer.from(y+g,"hex"),_.length),w=new a.BigInteger(_.toString("hex"),16).xor(new a.BigInteger(b.toString("hex"),16)).toString(16),x=v(y+w+g,"hex","hex")===m.toString("hex")?o.Buffer.from(w,"hex"):o.Buffer.alloc(0);return l?x.toString(l):i()(x)}},P=[[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5],[43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153],[156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98],[228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166],[71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168],[104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53],[30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135],[212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158],[234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161],[224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227],[29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111],[213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81],[141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216],[10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176],[137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132],[24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72]],T=[2746333894,1453994832,1736282519,2993693404],I=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257],k=/^[0-9a-f]{32}$/i,M=function(e){return P[(4026531840&e)>>>28][(251658240&e)>>>24]<<24|P[(15728640&e)>>>20][(983040&e)>>>16]<<16|P[(61440&e)>>>12][(3840&e)>>>8]<<8|P[(240&e)>>>4][(15&e)>>>0]<<0},L=function(e){return(t=M(e))^f(t,2)^f(t,10)^f(t,18)^f(t,24);var t},C=function(e){var t,r=new Array(36);r[0]=e[0]^T[0],r[1]=e[1]^T[1],r[2]=e[2]^T[2],r[3]=e[3]^T[3];for(var n=new Array(32),i=0;i<32;i++)r[i+4]=r[i]^(t=M(r[i+1]^r[i+2]^r[i+3]^I[i]))^f(t,13)^f(t,23),n[i]=r[i+4];return n},N=function(e,t){for(var r=C(t),n=0;n<32;n++)e[n+4]=e[n]^L(e[n+1]^e[n+2]^e[n+3]^r[n]);return[e[35],e[34],e[33],e[32]]},j=function(e,t){for(var r=C(t).reverse(),n=0;n<32;n++)e[n+4]=e[n]^L(e[n+1]^e[n+2]^e[n+3]^r[n]);return[e[35],e[34],e[33],e[32]]},R=function(e){return[e.readInt32BE(0),e.readInt32BE(4),e.readInt32BE(8),e.readInt32BE(12)]},G=function(e){for(var t=o.Buffer.alloc(16),r=0;r<4;r++)t.writeInt32BE(e[r],4*r);return t},A={__proto__:null,constants:{ECB:1,CBC:2},encrypt:function(e,t,r){var n=r||{},a=n.mode,s=n.iv,u=n.outputEncoding;if("string"==typeof e?e=o.Buffer.from(e,n.inputEncoding||"utf8"):e instanceof ArrayBuffer&&(e=o.Buffer.from(e)),!o.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');if(!k.test(t))throw new TypeError("Invalid value of cipher `key`");if(t=o.Buffer.from(t,"hex"),2===a&&!k.test(s))throw new TypeError("Invalid value of `iv` option");return function(e,t,r,n){r&&(r=R(r)),t=R(t);for(var a=[],s=(e=function(e){var t=16-e.length%16,r=o.Buffer.alloc(t,t);return o.Buffer.concat([e,r],e.length+t)}(e)).length/16,u=0;u<s;u++)if(r){var l=16*u,c=[r[0]^e.readInt32BE(l),r[1]^e.readInt32BE(l+4),r[2]^e.readInt32BE(l+8),r[3]^e.readInt32BE(l+12)],f=N(c,t);a.push(G(f)),r=f.slice(0)}else{var h=16*u,p=[e.readInt32BE(h),e.readInt32BE(h+4),e.readInt32BE(h+8),e.readInt32BE(h+12)],d=N(p,t);a.push(G(d))}var y=o.Buffer.concat(a,e.length);return n?y.toString(n):i()(y)}(e,t,s=2===a?o.Buffer.from(s,"hex"):null,u)},decrypt:function(e,t,r){var n=r||{},a=n.mode,s=n.iv,u=n.outputEncoding;if("string"==typeof e?e=o.Buffer.from(e,n.inputEncoding):e instanceof ArrayBuffer&&(e=o.Buffer.from(e)),!o.Buffer.isBuffer(e))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(e)+'"');if(!k.test(t))throw new TypeError("Invalid value of cipher `key`");if(t=o.Buffer.from(t,"hex"),2===a&&!k.test(s))throw new TypeError("Invalid value of `iv` option");return function(e,t,r,n){r&&(r=R(r)),t=R(t);var a=[],s=e.length/16;if(r)for(var u=s-1;u>=0;u--){var l,c=16*u;l=u>0?[e.readInt32BE(c-16),e.readInt32BE(c-16+4),e.readInt32BE(c-16+8),e.readInt32BE(c-16+12)]:r;var f=[e.readInt32BE(c),e.readInt32BE(c+4),e.readInt32BE(c+8),e.readInt32BE(c+12)],h=j(f,t);a.unshift(G([h[0]^l[0],h[1]^l[1],h[2]^l[2],h[3]^l[3]]))}else for(var p=0;p<s;p++){var d=16*p,y=[e.readInt32BE(d),e.readInt32BE(d+4),e.readInt32BE(d+8),e.readInt32BE(d+12)],g=j(y,t);a.push(G(g))}var v=o.Buffer.concat(a,e.length-a[a.length-1][15]);return n?v.toString(n):i()(v)}(e,t,s=2===a?o.Buffer.from(s,"hex"):null,u)}}},function(e,t,r){"use strict";(function(e){
91
91
  /*!
92
92
  * The buffer module from node.js, for the browser.
93
93
  *