"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7970],{40814:function(t,e,r){var n=r(41376),i=r(54354),o=r(12739),a=r(32025),u=r(22662),s=r(68675),l=r(25691),c=r(10392),h=r(5265),f=r(88460),y=r(3077),d=r(91988),w=r(75469),v=r(85528),_=r(12810),p=r(86877),b=r(32275);function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=P(t);if(e){var i=P(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Z(this,r)}}function Z(t,e){if(e&&("object"===g(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function P(t){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function E(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return L(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return L(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0,r=this.readUint32(e),n=Math.floor((268435455&r)/1e3),i=Boolean(2147483648&r)||1===n||3===n,o=Boolean(1073741824&r)||2===n||3===n,a=Boolean(536870912&r),u=(268435455&r)%1e3,s=["XY",i?"Z":"",o?"M":""].join(""),l=a?this.readUint32(e):null;if(void 0!==t&&t!==u)throw new Error("Unexpected WKB geometry type "+u);if(this.initialized_){if(this.isLittleEndian_!==e)throw new Error("Inconsistent endian");if(this.layout_!==s)throw new Error("Inconsistent geometry layout");if(l&&this.srid_!==l)throw new Error("Inconsistent coordinate system (SRID)")}else this.isLittleEndian_=e,this.hasZ_=i,this.hasM_=o,this.layout_=s,this.srid_=l,this.initialized_=!0;return u}},{key:"readWkbPayload",value:function(t){switch(t){case G:return this.readPoint();case S:return this.readLineString();case I:case j:return this.readPolygon();case B:return this.readMultiPoint();case W:return this.readMultiLineString();case T:case N:case A:return this.readMultiPolygon();case D:return this.readGeometryCollection();default:throw new Error("Unsupported WKB geometry type "+t+" is found")}}},{key:"readWkbBlock",value:function(t){return this.readWkbPayload(this.readWkbHeader(t))}},{key:"readWkbCollection",value:function(t,e){for(var r=this.readUint32(),n=[],i=0;i=0&&(t+=this.isEWKB_?2147483648:1e3),this.layout_.indexOf("M")>=0&&(t+=this.isEWKB_?1073741824:2e3),this.isEWKB_&&Number.isInteger(e)&&(t|=536870912),this.writeUint8(this.isLittleEndian_?1:0),this.writeUint32(t),this.isEWKB_&&Number.isInteger(e)&&this.writeUint32(e)}},{key:"writeMultiPoint",value:function(t,e){this.writeUint32(t.length);for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:l.Z.XYZM,r=function(t,e){return t===e?t:t===l.Z.XYZM?e:e===l.Z.XYZM?t:l.Z.XY};if(t instanceof p.ZP)return r(t.getLayout(),e);if(t instanceof s.Z)for(var n=t.getGeometriesArray(),i=0;i