@mapgis/webclient-common
Version:
An important part of the MapGIS Client for JavaScript product, which provides interfaces and functions unrelated to the map engine.
8 lines • 2.29 MB
JavaScript
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=101)}([function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GdalUtil=t.buildModuleUrl=t.getMapGISBaseUrl=t.deleteNullValue=t.toDate=t.getFunctionArguments=t.ExpressionParser=t.allSettled=t.inOrderPromise=t.debouncePromise=t.compareObject=t.throttle=t.getTileLayerNearestCenterAndScale=t.convertImageSourceToBase64=t.isWMTSOriginReverse=t.isWMTSBBoxReverse=t.isWMTSReverse=t.isWMSReverse=t.getProjectionSrs=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=t.bind=t.getParameterString=t.urlAppend=t.transformResult=t.isInTheSameDomain=t.isNumber=t.isArray=t.extend=void 0;var n=r(24),i=r(449),o=r(450),a=r(110),s=h(r(79)),u=r(451),l=r(458),c=r(216),f=h(r(459));function h(e){return e&&e.__esModule?e:{default:e}}t.extend=n.extend,t.isArray=n.isArray,t.isNumber=n.isNumber,t.isInTheSameDomain=n.isInTheSameDomain,t.transformResult=n.transformResult,t.urlAppend=n.urlAppend,t.getParameterString=n.getParameterString,t.bind=n.bind,t.getGUID=n.getGUID,t.defaultValue=n.defaultValue,t.defined=n.defined,t.normalize=i.normalize,t.createGeometry=o.createGeometry,t.getExtendExtentByPixel=o.getExtendExtentByPixel,t.limitExtentToSRSMaxExtent=o.limitExtentToSRSMaxExtent,t.isNull=n.isNull,t.getGeometryParameter=n.getGeometryParameter,t.getOutStatisticsParameter=n.getOutStatisticsParameter,t.Log=s.default,t.isString=n.isString,t.deepClone=n.deepClone,t.isBoolean=n.isBoolean,t.extendDeep=n.extendDeep,t.newGuid=n.newGuid,t.formatPoints=n.formatPoints,t.returnPoint=n.returnPoint,t.cloneObject=n.cloneObject,t.notNULL=n.notNULL,t.isObject=n.isObject,t.getVideoType=n.getVideoType,t.toJSON=n.toJSON,t.getBaseUrl=n.getBaseUrl,t.inputCss=n.inputCss,t.getProjectionSrs=n.getProjectionSrs,t.isWMSReverse=n.isWMSReverse,t.isWMTSReverse=n.isWMTSReverse,t.isWMTSBBoxReverse=n.isWMTSBBoxReverse,t.isWMTSOriginReverse=n.isWMTSOriginReverse,t.convertImageSourceToBase64=n.convertImageSourceToBase64,t.getTileLayerNearestCenterAndScale=n.getTileLayerNearestCenterAndScale,t.throttle=n.throttle,t.compareObject=n.compareObject,t.debouncePromise=a.debouncePromise,t.inOrderPromise=a.inOrderPromise,t.allSettled=a.allSettled,t.ExpressionParser=u.ExpressionParser,t.getFunctionArguments=n.getFunctionArguments,t.toDate=l.toDate,t.deleteNullValue=n.deleteNullValue,t.getMapGISBaseUrl=c.getMapGISBaseUrl,t.buildModuleUrl=c.buildModuleUrl,t.GdalUtil=f.default},function(e,t,r){"use strict";t.__esModule=!0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(184));t.default=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,n.default)(e,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()},function(e,t,r){e.exports={default:r(337),__esModule:!0}},function(e,t,r){"use strict";t.__esModule=!0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(66));t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,n.default)(t))&&"function"!=typeof t?e:t}},function(e,t,r){"use strict";t.__esModule=!0;var n=a(r(342)),i=a(r(188)),o=a(r(66));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,o.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(n.default?(0,n.default)(e,t):e.__proto__=t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EngineType=t.RasterInterpolationType=t.NormalizationType=t.TemporalUnit=t.TDTLayerType=t.VisualVariableType=t.CustomWKID=t.SeverVectorTileSubLayerType=t.TileSliceType=t.ColorNameToHexMap=t.IGSSceneOriginLayerType=t.ArcType=t.AreaUnits=t.LinearUnits=t.MaterialType=t.WaveStrength=t.WaterbodySize=t.PatternStyle=t.ProfileType=t.AnchorType=t.LinePatternStyle=t.LineMarkerStyle=t.LineMarkerPlacement=t.LineJoinType=t.LineCapType=t.Symbol3DLayerType=t.Corporation=t.WMTSCorporation=t.RadiusUnit=t.PictureFormat=t.UrlServerType=t.ShadowMode=t.SceneMode=t.VerticalAlignment=t.HorizontalAlignment=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.SpatialRelation=t.StatisticType=t.MapEventType=t.LayerEventType=t.FetchMethod=t.ReturnFormat=void 0;var n=fe(r(365)),i=fe(r(366)),o=fe(r(367)),a=fe(r(368)),s=fe(r(369)),u=fe(r(370)),l=fe(r(109)),c=fe(r(371)),f=fe(r(372)),h=fe(r(373)),d=fe(r(374)),p=fe(r(375)),y=fe(r(376)),g=fe(r(377)),m=fe(r(378)),v=fe(r(379)),_=fe(r(380)),S=fe(r(381)),b=fe(r(382)),x=fe(r(383)),w=fe(r(384)),E=fe(r(385)),T=fe(r(386)),I=fe(r(387)),k=fe(r(144)),M=fe(r(388)),P=fe(r(389)),L=fe(r(145)),C=fe(r(146)),O=fe(r(390)),N=fe(r(391)),R=fe(r(392)),G=fe(r(393)),A=fe(r(394)),V=fe(r(395)),D=fe(r(396)),F=fe(r(397)),j=fe(r(147)),B=fe(r(148)),q=fe(r(398)),U=fe(r(399)),J=fe(r(400)),z=fe(r(401)),W=fe(r(402)),H=fe(r(190)),Y=fe(r(191)),X=fe(r(192)),K=fe(r(403)),Z=fe(r(404)),Q=fe(r(405)),$=fe(r(406)),ee=fe(r(407)),te=fe(r(189)),re=fe(r(408)),ne=fe(r(409)),ie=fe(r(149)),oe=fe(r(67)),ae=fe(r(410)),se=fe(r(411)),ue=fe(r(193)),le=fe(r(412)),ce=fe(r(413));function fe(e){return e&&e.__esModule?e:{default:e}}t.ReturnFormat=n.default,t.FetchMethod=i.default,t.LayerEventType=o.default,t.MapEventType=a.default,t.StatisticType=s.default,t.SpatialRelation=u.default,t.GeometryType=l.default,t.LayerType=c.default,t.SubLayerType=f.default,t.TokenAttachType=h.default,t.IGSGeometryType=d.default,t.LogType=p.default,t.LoadStatus=y.default,t.ViewEventType=g.default,t.LengthUnit=m.default,t.AngleUnit=v.default,t.RendererType=_.default,t.VectorTileGeometryType=S.default,t.VideoSourceType=b.default,t.SketchDataType=x.default,t.SketchEditMode=w.default,t.SketchEditorEventType=E.default,t.SketchEditorState=T.default,t.SketchEditorToolEventType=I.default,t.SymbolType=k.default,t.IGSSymbolType=M.default,t.ElevationMode=P.default,t.HorizontalAlignment=L.default,t.VerticalAlignment=C.default,t.SceneMode=O.default,t.ShadowMode=N.default,t.UrlServerType=R.default,t.PictureFormat=G.default,t.RadiusUnit=A.default,t.WMTSCorporation=V.default,t.Corporation=D.default,t.Symbol3DLayerType=F.default,t.LineCapType=j.default,t.LineJoinType=B.default,t.LineMarkerPlacement=q.default,t.LineMarkerStyle=U.default,t.LinePatternStyle=J.default,t.AnchorType=z.default,t.ProfileType=W.default,t.PatternStyle=H.default,t.WaterbodySize=Y.default,t.WaveStrength=X.default,t.MaterialType=K.default,t.LinearUnits=Z.default,t.AreaUnits=Q.default,t.ArcType=$.default,t.IGSSceneOriginLayerType=ee.default,t.ColorNameToHexMap=te.default,t.TileSliceType=re.default,t.SeverVectorTileSubLayerType=ne.default,t.CustomWKID=ie.default,t.VisualVariableType=oe.default,t.TDTLayerType=ae.default,t.TemporalUnit=se.default,t.NormalizationType=ue.default,t.RasterInterpolationType=le.default,t.EngineType=ce.default},function(e,t,r){"use strict";t.__esModule=!0;var n=o(r(3)),i=o(r(339));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function e(t,r,o){null===t&&(t=Function.prototype);var a=(0,i.default)(t,r);if(void 0===a){var s=(0,n.default)(t);return null===s?void 0:e(s,r,o)}if("value"in a)return a.value;var u=a.get;return void 0!==u?u.call(o):void 0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zondy=t.TimeInterval=t.TimeInfo=t.TimeExtent=t.NormalizationType=t.TemporalUnit=t.FeatureExpressionInfo=t.CustomWKID=t.SeverVectorTileSubLayerType=t.SpatialRelation=t.IGSSceneOriginLayerType=t.ArcType=t.AreaUnits=t.LinearUnits=t.LineMarkerStyle=t.LineMarkerPlacement=t.LineJoinType=t.LineCapType=t.Symbol3DLayerType=t.Corporation=t.WMTSCorporation=t.FeatureRender=t.RadiusUnit=t.EPSG=t.Font=t.UrlServerType=t.CoordnateTransform=t.BaiduProject=t.Projection=t.ShadowMode=t.SceneMode=t.ElevationInfo=t.WMTSStyle=t.TileMatrixSet=t.SketchEditorToolEventType=t.SketchEditorState=t.SketchEditorEventType=t.SketchEditMode=t.SketchDataType=t.VideoSourceType=t.ViewEventType=t.ProjectInfoBySrsID=t.ProjectInfo=t.getFeaturesFromFeatureSet=t.FeatureSet=t.Feature=t.OutStatistic=t.ErrorEvent=t.LayerEvent=t.Color=t.Event=t.Evented=t.CollectionFlattener=t.Collection=void 0;var n=k(r(0)),i=r(46),o=k(r(92)),a=k(r(142)),s=k(r(361)),u=k(r(47)),l=k(r(143)),c=k(r(108)),f=k(r(362)),h=k(r(363)),d=k(r(364)),p=r(6),y=k(r(194)),g=k(r(414)),m=k(r(415)),v=k(r(93)),_=k(r(213)),S=k(r(212)),b=r(150),x=k(r(152)),w=k(r(195)),E=k(r(214)),T=k(r(448)),I=k(r(215));function k(e){return e&&e.__esModule?e:{default:e}}t.Collection=a.default,t.CollectionFlattener=s.default,t.Evented=o.default,t.Event=i.Event,t.Color=u.default,t.LayerEvent=i.LayerEvent,t.ErrorEvent=i.ErrorEvent,t.OutStatistic=f.default,t.Feature=b.Feature,t.FeatureSet=b.FeatureSet,t.getFeaturesFromFeatureSet=b.getFeaturesFromFeatureSet,t.ProjectInfo=h.default,t.ProjectInfoBySrsID=d.default,t.ViewEventType=p.ViewEventType,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.TileMatrixSet=y.default,t.WMTSStyle=g.default,t.ElevationInfo=m.default,t.SceneMode=p.SceneMode,t.ShadowMode=p.ShadowMode,t.Projection=v.default,t.BaiduProject=_.default,t.CoordnateTransform=S.default,t.UrlServerType=p.UrlServerType,t.Font=l.default,t.EPSG=c.default,t.RadiusUnit=p.RadiusUnit,t.FeatureRender=x.default,t.WMTSCorporation=p.WMTSCorporation,t.Corporation=p.Corporation,t.Symbol3DLayerType=p.Symbol3DLayerType,t.LineCapType=p.LineCapType,t.LineJoinType=p.LineJoinType,t.LineMarkerPlacement=p.LineMarkerPlacement,t.LineMarkerStyle=p.LineMarkerStyle,t.LinearUnits=p.LinearUnits,t.AreaUnits=p.AreaUnits,t.ArcType=p.ArcType,t.IGSSceneOriginLayerType=p.IGSSceneOriginLayerType,t.SpatialRelation=p.SpatialRelation,t.SeverVectorTileSubLayerType=p.SeverVectorTileSubLayerType,t.CustomWKID=p.CustomWKID,t.FeatureExpressionInfo=w.default,t.TemporalUnit=p.TemporalUnit,t.NormalizationType=p.NormalizationType,t.TimeExtent=E.default,t.TimeInfo=T.default,t.TimeInterval=I.default,t.zondy=function e(){(0,n.default)(this,e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editGeometryByArc3=t.editFeatureByArc3=t.GeometryEngine=t.createGeometry=t.SpatialReference=t.MultiLineString=t.MultiPolygon=t.Circle=t.MultiPoint=t.Point=t.LineString=t.Polygon=t.Extent=t.Geometry=void 0;var n=y(r(40)),i=y(r(78)),o=y(r(95)),a=y(r(206)),s=y(r(49)),u=y(r(208)),l=y(r(209)),c=y(r(207)),f=y(r(211)),h=y(r(69)),d=r(48),p=y(r(70));function y(e){return e&&e.__esModule?e:{default:e}}t.Geometry=n.default,t.Extent=i.default,t.Polygon=o.default,t.LineString=a.default,t.Point=s.default,t.MultiPoint=u.default,t.Circle=l.default,t.MultiPolygon=c.default,t.MultiLineString=f.default,t.SpatialReference=h.default,t.createGeometry=d.createGeometry,t.GeometryEngine=p.default,t.editFeatureByArc3=d.editFeatureByArc3,t.editGeometryByArc3=d.editGeometryByArc3},function(e,t,r){e.exports={default:r(326),__esModule:!0}},function(e,t,r){"use strict";(function(e){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var n=r(297),i=r(298),o=r(299);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return l(this,e,t,r)}function l(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,r),i=(e=s(e,n)).write(t,r);return i!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|d(t.length);return 0===(e=s(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?s(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=s(e,t<0?0:0|d(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function h(e,t){var r=t.length<0?0:0|d(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function d(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(e).length;default:if(n)return j(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;o<s;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(l(e,o+h)!==l(t,h)){f=!1;break}if(f)return o}return-1}function v(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function _(e,t,r,n){return q(j(t,e.length-r),e,r,n)}function S(e,t,r,n){return q(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function b(e,t,r,n){return S(e,t,r,n)}function x(e,t,r,n){return q(B(t),e,r,n)}function w(e,t,r,n){return q(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function E(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function T(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,l=e[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=r)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=f}return function(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=I));return r}(n)}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return l(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return c(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return E(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),l=this.slice(n,i),c=e.slice(t,r),f=0;f<s;++f)if(l[f]!==c[f]){o=l[f],a=c[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return S(this,e,t,r);case"latin1":case"binary":return b(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function k(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function M(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function P(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=F(e[o]);return i}function L(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function C(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function N(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function R(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function G(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function A(e,t,r,n,o){return o||G(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function V(e,t,r,n,o){return o||G(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||C(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||C(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||C(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||C(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||C(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||C(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||C(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||C(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||C(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||C(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||C(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||C(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||C(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||O(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||O(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);O(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);O(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return A(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return A(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return V(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return V(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=u.isBuffer(e)?e:j(new u(e,n).toString()),s=a.length;for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var D=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function B(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(125))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultSymbolByGeometryType=t.mergeCommonClientCapbilities=t.toSublayerArr=t.getLayersCollection=t.createSublayer=t.createLayer=t.flatServerSublayerInfos=t.setElevationInfo=t.fireEvent=t.setSublayer=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(20)),i=r(8),o=r(6),a=r(27),s=r(16),u=r(59);t.setSublayer=function(e,t,r){for(var i=!0,o=0;o<e._sublayers.length;o++)if(String(e._sublayers[o].name)===String(t.name)||String(e._sublayers[o].id)===String(t.id)){(0,n.default)(e._sublayers[o],t),i=!1;break}for(var a=0;a<e.allSublayers.length;a++)if(String(e.allSublayers[a].name)===String(t.name)||String(e.allSublayers[a].id)===String(t.id)){(0,n.default)(e.allSublayers[a],t),i=!1;break}if(i)if(t instanceof r)e._sublayers.push(t);else if(t instanceof Object&&!(t instanceof Array))for(var s=0;s<e.allSublayers.length;s++)if(String(t.id)===String(e.allSublayers[s].id)||String(t.name)===String(e.allSublayers[s].name)){e._sublayers.push(new r((0,n.default)(e.allSublayers[s].toJSON(),t)));break}},t.fireEvent=function(e,t,r){e._map&&e._map.fire(t,new i.LayerEvent({type:r,target:e._map,layer:e,extend:{type:r}}))},t.setElevationInfo=function(e,t){e.elevationInfo||(t.elevationInfo?e.elevationInfo=t.elevationInfo:e.elevationInfo=new i.ElevationInfo)},t.flatServerSublayerInfos=function e(t,r){!t||!Array.isArray(t)||t.length<=0||t.forEach(function(t){r.push(t),t.children&&e(t.children,r)})},t.createLayer=function(e){var t=void 0;switch((e=e||{}).type){case o.LayerType.ArcGISMapImage:t=u.ArcGISMapImageLayer.fromJSON(e);break;case o.LayerType.ArcGISTile:t=u.ArcGISTileLayer.fromJSON(e);break;case o.LayerType.ArcGISVectorTile:t=u.ArcGISVectorTileLayer.fromJSON(e);break;case o.LayerType.cesium3DTiles:case o.LayerType.cesium3DTilesModelCache:t=u.Cesium3DTilesCacheLayer.fromJSON(e);break;case o.LayerType.ECharts:t=u.EchartsLayer.fromJSON(e);break;case o.LayerType.feature:t=u.FeatureLayer.fromJSON(e);break;case o.LayerType.GeoJSON:t=u.GeoJSONLayer.fromJSON(e);break;case o.LayerType.graphics:t=u.GraphicsLayer.fromJSON(e);break;case o.LayerType.group:t=u.GroupLayer.fromJSON(e);break;case o.LayerType.IGSFeature:t=u.IGSFeatureLayer.fromJSON(e);break;case o.LayerType.IGSMapImage:t=u.IGSMapImageLayer.fromJSON(e);break;case o.LayerType.IGSVectorTile:t=u.IGSVectorTileLayer.fromJSON(e);break;case o.LayerType.IGSTile:t=u.IGSTileLayer.fromJSON(e);break;case o.LayerType.m3dCache:case o.LayerType.M3DModelCache:t=u.M3DModelCacheLayer.fromJSON(e);break;case o.LayerType.MapV:t=u.MapVLayer.fromJSON(e);break;case o.LayerType.terrain:t=u.TerrainCacheLayer.fromJSON(e);break;case o.LayerType.webTile:t=u.WebTileLayer.fromJSON(e);break;case o.LayerType.WFS:t=u.WFSLayer.fromJSON(e);break;case o.LayerType.WMS:t=u.WMSLayer.fromJSON(e);break;case o.LayerType.WMTS:t=u.WMTSLayer.fromJSON(e);break;case o.LayerType.s3m:case o.LayerType.S3MModelCache:t=u.S3MTilesCacheLayer.fromJSON(e);break;case o.LayerType.unknown:default:t=u.UnknownLayer.fromJSON(e)}return t},t.createSublayer=function(e){var t=void 0;switch((e=e||{}).type){case o.SubLayerType.vectorTileSub:t=s.VectorTileSubLayer.fromJSON(e);break;case o.SubLayerType.WMSSub:t=u.WMSSubLayer.fromJSON(e);break;case o.SubLayerType.ArcGISMapImageSub:t=u.ArcGISMapImageSubLayer.fromJSON(e);break;case o.SubLayerType.IGSMapImageSub:t=u.IGSMapImageSubLayer.fromJSON(e);break;case o.SubLayerType.ArcGISVectorTileSub:t=u.ArcGISVectorTileSubLayer.fromJSON(e);break;case o.SubLayerType.IGSVectorTileSub:t=u.IGSVectorTileSubLayer.fromJSON(e);break;case o.SubLayerType.IGSSceneSub:t=u.IGSSceneSubLayer.fromJSON(e);break;case o.SubLayerType.IGSSceneSubLabel:t=u.IGSSceneLabelSubLayer.fromJSON(e);break;case o.SubLayerType.IGSSceneSubM3DCache:t=u.IGSSceneModelCacheSubLayer.fromJSON(e);break;case o.SubLayerType.IGSSceneSubMapRef:t=u.IGSSceneMapRefSubLayer.fromJSON(e);break;case o.SubLayerType.IGSSceneSubTerrian:t=u.IGSSceneTerrainSubLayer.fromJSON(e);break;case o.SubLayerType.ISSceneSub:t=u.ISSceneSubLayer.fromJSON(e);break;case o.SubLayerType.ISSceneSubS3MCache:t=u.ISSceneModelCacheSubLayer.fromJSON(e);break;case o.SubLayerType.baseSub:default:t=new s.SubLayer(e)}return t},t.getLayersCollection=function(e){return(e=e||[])instanceof i.Collection?e:(e=e.filter(function(e){return e}).map(function(e){return e instanceof u.Layer?e:u.Layer.fromJSON(e)}),new i.Collection(e))},t.toSublayerArr=function(e){if(e){var t=[];return e instanceof i.Collection?t=e.items:Array.isArray(e)&&(t=e),t.map(function(e){return e instanceof s.SubLayer?e.toJSON():e})}},t.mergeCommonClientCapbilities=function(e,t){var r=e&&e.client?e.client:{},i=e&&e.server?e.server:{},a={};for(var s in o.EngineType){var u=o.EngineType[s],l=r[u]?r[u]:{};a[u]=(0,n.default)({},l,t)}return{client:a,server:(0,n.default)({},i)}},t.getDefaultSymbolByGeometryType=function(e){var t=void 0;switch(e){case o.GeometryType.multiPoint:case o.GeometryType.point:t=a.Symbol.fromJSON({type:o.SymbolType.simpleMarker});break;case o.GeometryType.multiLineString:case o.GeometryType.lineString:t=a.Symbol.fromJSON({type:o.SymbolType.simpleLine});break;case o.GeometryType.polygon:case o.GeometryType.extent:case o.GeometryType.circle:case o.GeometryType.multiPolygon:t=a.Symbol.fromJSON({type:o.SymbolType.simpleFill})}return t}},function(e,t,r){e.exports={default:r(300),__esModule:!0}},function(e,t,r){(function(t){e.exports=function(){var e=e||function(e,n){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==t&&t.crypto&&(i=t.crypto),!i)try{i=r(271)}catch(e){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},u=s.lib={},l=u.Base={extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=u.WordArray=l.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(o());return new c.init(t,e)}}),f=s.enc={},h=f.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},d=f.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},p=f.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},y=u.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*u,o);if(u){for(var f=0;f<u;f+=a)this._doProcessBlock(i,f);r=i.splice(0,u),n.sigBytes-=l}return new c.init(r,l)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(u.Hasher=y.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new g.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math);return e}()}).call(this,r(125))},function(e,t,r){e.exports={default:r(302),__esModule:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModelCacheLayer=t.TileLayer=t.SubLayer=t.SceneLayer=t.MapImageLayer=t.FeatureLayer=t.VectorTileSubLayer=t.VectorTileLayer=t.Layer=void 0;var n=h(r(60)),i=h(r(489)),o=h(r(158)),a=h(r(512)),s=h(r(513)),u=h(r(514)),l=h(r(111)),c=h(r(515)),f=h(r(516));function h(e){return e&&e.__esModule?e:{default:e}}t.Layer=n.default,t.VectorTileLayer=i.default,t.VectorTileSubLayer=o.default,t.FeatureLayer=a.default,t.MapImageLayer=s.default,t.SceneLayer=u.default,t.SubLayer=l.default,t.TileLayer=c.default,t.ModelCacheLayer=f.default},function(e,t,r){(function(){var t;function r(e,t,r){null!=e&&("number"==typeof e?this.fromNumber(e,t,r):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function n(){return new r(null)}var i="undefined"!=typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(r.prototype.am=function(e,t,r,n,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var u=32767&this[e],l=this[e++]>>15,c=s*u+l*a;i=((u=a*u+((32767&c)<<15)+r[n]+(1073741823&i))>>>30)+(c>>>15)+s*l+(i>>>30),r[n++]=1073741823&u}return i},t=30):i&&"Netscape"!=navigator.appName?(r.prototype.am=function(e,t,r,n,i,o){for(;--o>=0;){var a=t*this[e++]+r[n]+i;i=Math.floor(a/67108864),r[n++]=67108863&a}return i},t=26):(r.prototype.am=function(e,t,r,n,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],l=this[e++]>>14,c=s*u+l*a;i=((u=a*u+((16383&c)<<14)+r[n]+i)>>28)+(c>>14)+s*l,r[n++]=268435455&u}return i},t=28),r.prototype.DB=t,r.prototype.DM=(1<<t)-1,r.prototype.DV=1<<t,r.prototype.FV=Math.pow(2,52),r.prototype.F1=52-t,r.prototype.F2=2*t-52;var o,a,s="0123456789abcdefghijklmnopqrstuvwxyz",u=new Array;for(o="0".charCodeAt(0),a=0;a<=9;++a)u[o++]=a;for(o="a".charCodeAt(0),a=10;a<36;++a)u[o++]=a;for(o="A".charCodeAt(0),a=10;a<36;++a)u[o++]=a;function l(e){return s.charAt(e)}function c(e,t){var r=u[e.charCodeAt(t)];return null==r?-1:r}function f(e){var t=n();return t.fromInt(e),t}function h(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function d(e){this.m=e}function p(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function y(e,t){return e&t}function g(e,t){return e|t}function m(e,t){return e^t}function v(e,t){return e&~t}function _(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function S(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function b(){}function x(e){return e}function w(e){this.r2=n(),this.q3=n(),r.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}d.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},d.prototype.revert=function(e){return e},d.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},d.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},d.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},p.prototype.convert=function(e){var t=n();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(r.ZERO)>0&&this.m.subTo(t,t),t},p.prototype.revert=function(e){var t=n();return e.copyTo(t),this.reduce(t),t},p.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],n=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},p.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},p.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},r.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},r.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},r.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var s=8==n?255&e[i]:c(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=n)>=this.DB&&(a-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},r.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},r.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},r.prototype.lShiftTo=function(e,t){var r,n=e%this.DB,i=this.DB-n,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)t[r+a+1]=this[r]>>i|s,s=(this[r]&o)<<n;for(r=a-1;r>=0;--r)t[r]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},r.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var n=e%this.DB,i=this.DB-n,o=(1<<n)-1;t[0]=this[r]>>n;for(var a=r+1;a<this.t;++a)t[a-r-1]|=(this[a]&o)<<i,t[a-r]=this[a]>>n;n>0&&(t[this.t-r-1]|=(this.s&o)<<i),t.t=this.t-r,t.clamp()}},r.prototype.subTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this[r]-e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n-=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n-=e[r],t[r++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()},r.prototype.multiplyTo=function(e,t){var n=this.abs(),i=e.abs(),o=n.t;for(t.t=o+i.t;--o>=0;)t[o]=0;for(o=0;o<i.t;++o)t[o+n.t]=n.am(0,i[o],t,o,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&r.ZERO.subTo(t,t)},r.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var n=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,n,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},r.prototype.divRemTo=function(e,t,i){var o=e.abs();if(!(o.t<=0)){var a=this.abs();if(a.t<o.t)return null!=t&&t.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=n());var s=n(),u=this.s,l=e.s,c=this.DB-h(o[o.t-1]);c>0?(o.lShiftTo(c,s),a.lShiftTo(c,i)):(o.copyTo(s),a.copyTo(i));var f=s.t,d=s[f-1];if(0!=d){var p=d*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),y=this.FV/p,g=(1<<this.F1)/p,m=1<<this.F2,v=i.t,_=v-f,S=null==t?n():t;for(s.dlShiftTo(_,S),i.compareTo(S)>=0&&(i[i.t++]=1,i.subTo(S,i)),r.ONE.dlShiftTo(f,S),S.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--_>=0;){var b=i[--v]==d?this.DM:Math.floor(i[v]*y+(i[v-1]+m)*g);if((i[v]+=s.am(0,b,i,_,0,f))<b)for(s.dlShiftTo(_,S),i.subTo(S,i);i[v]<--b;)i.subTo(S,i)}null!=t&&(i.drShiftTo(f,t),u!=l&&r.ZERO.subTo(t,t)),i.t=f,i.clamp(),c>0&&i.rShiftTo(c,i),u<0&&r.ZERO.subTo(i,i)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},r.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},r.prototype.exp=function(e,t){if(e>4294967295||e<1)return r.ONE;var i=n(),o=n(),a=t.convert(this),s=h(e)-1;for(a.copyTo(i);--s>=0;)if(t.sqrTo(i,o),(e&1<<s)>0)t.mulTo(o,a,i);else{var u=i;i=o,o=u}return t.revert(i)},r.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var r,n=(1<<t)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&