PageSourceSearch

https://my.eroad.co.nz/2929.myeroad.e9676bf60a3f41ff127f.js

js eroad.co.nz collected 2026-09-26 07:48:19 UTC 138,913 bytes, 2 lines download raw bytes

1!function(){try{("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).__faroGitHash_myeroad="5ce3e63ee526711d9fdee9e150f093852f3a7cc4"}catch(t){}}(),function(){try{("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).__faroBundleId_myeroad="10.1.5092-apac"}catch(t){}}();try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="2dc3ffda-6677-470f-ad0c-0ea4f9264ac5",t._sentryDebugIdIdentifier="sentry-dbid-2dc3ffda-6677-470f-ad0c-0ea4f9264ac5")}catch(t){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"10.1.5092-apac"},(self.webpackChunk_eroad_myeroad=self.webpackChunk_eroad_myeroad||[]).push([[2929],{290:t=>{"use strict";t.exports=function(t){if(void 0===t)return t;var e={};return"[[Value]]"in t&&(e.value=t["[[Value]]"]),"[[Writable]]"in t&&(e.writable=!!t["[[Writable]]"]),"[[Get]]"in t&&(e.get=t["[[Get]]"]),"[[Set]]"in t&&(e.set=t["[[Set]]"]),"[[Enumerable]]"in t&&(e.enumerable=!!t["[[Enumerable]]"]),"[[Configurable]]"in t&&(e.configurable=!!t["[[Configurable]]"]),e}},448:(t,e,r)=>{"use strict";var n=r(3468),o=r(56482),i=r(20416),a=r(53154),s=r(95943);t.exports=function(t,e){if("SEQ-CST"!==e&&"UNORDERED"!==e)throw new n("Assertion failed: `order` must be ~SEQ-CST~ or ~UNORDERED~");if(!o(t))throw new n("Assertion failed: `O` must be an Object");if(!s(t))throw new n("Assertion failed: `O` must be a Typed Array");var r=a(t,e);if(i(r))throw new n("`O` must be in-bounds and backed by a non-detached buffer");return r}},742:(t,e,r)=>{"use strict";var n=r(528),o=n("%RegExp%"),i=r(3468),a=n("%parseInt%"),s=r(14607),u=r(46132),c=s("String.prototype.slice"),l=u(/^0b[01]+$/i),f=u(/^0o[0-7]+$/i),p=u(/^[-+]0x[0-9a-f]+$/i),d=u(new o("["+["…","​","￾"].join("")+"]","g")),h=r(32383);t.exports=function t(e){if("string"!=typeof e)throw new i("Assertion failed: `argument` is not a String");if(l(e))return+a(c(e,2),2);if(f(e))return+a(c(e,2),8);if(d(e)||p(e))return NaN;var r=h(e);return r!==e?t(r):+e}},1041:(t,e,r)=>{"use strict";var n=r(78554),o=r(95943),i=r(76982);t.exports=function(t){return!!t&&"object"==typeof t&&n(t,"[[Object]]")&&n(t,"[[CachedBufferByteLength]]")&&(i(t["[[CachedBufferByteLength]]"])&&t["[[CachedBufferByteLength]]"]>=0||"DETACHED"===t["[[CachedBufferByteLength]]"])&&o(t["[[Object]]"])}},1361:t=>{"use strict";const e=async function(){}.constructor;t.exports=()=>e},1487:(t,e,r)=>{"use strict";r.d(e,{W:()=>s});var n=r(76738),o=r(77359),i=Object.defineProperty,a=(t,e)=>i(t,"name",{value:e,configurable:!0});function s(t){return(0,o.jE)(t,(t,e)=>t+u(e),0)}function u(t){let e,r=0;switch(t.type){case"Polygon":return c(t.coordinates);case"MultiPolygon":for(e=0;e<t.coordinates.length;e++)r+=c(t.coordinates[e]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}function c(t){let e=0;if(t&&t.length>0){e+=Math.abs(p(t[0]));for(let r=1;r<t.length;r++)e-=Math.abs(p(t[r]))}return e}a(s,"area"),a(u,"calculateArea"),a(c,"polygonArea");var l=n.zX*n.zX/2,f=Math.PI/180;function p(t){const e=t.length;if(e<=2)return 0;let r=0,n=0;for(;n<e;){const o=t[n],i=t[n+1===e?0:n+1],a=t[n+2>=e?(n+2)%e:n+2],s=o[0]*f,u=i[1]*f;r+=(a[0]*f-s)*Math.sin(u),n++}return r*l}a(p,"ringArea")},2160:(t,e,r)=>{"use strict";var n=r(3468),o=r(88129),i=r(22387);t.exports=function(t,e,r){if("number"!=typeof t||"number"!=typeof e||"number"!=typeof r||!(e<=r))throw new n("Assertion failed: all three arguments must be MVs, and `lower` must be `<= upper`");return i(o(e,t),r)}},2222:(t,e,r)=>{"use strict";var n=r(528),o={__proto__:null,$Int8Array:n("%Int8Array%",!0),$Uint8Array:n("%Uint8Array%",!0),$Uint8ClampedArray:n("%Uint8ClampedArray%",!0),$Int16Array:n("%Int16Array%",!0),$
1Uint16Array:n("%Uint16Array%",!0),$Int32Array:n("%Int32Array%",!0),$Uint32Array:n("%Uint32Array%",!0),$BigInt64Array:n("%BigInt64Array%",!0),$BigUint64Array:n("%BigUint64Array%",!0),$Float16Array:n("%Float16Array%",!0),$Float32Array:n("%Float32Array%",!0),$Float64Array:n("%Float64Array%",!0)};t.exports=function(t){return o["$"+t]}},2337:(t,e,r)=>{"use strict";var n=r(528),o=r(85865),i=n("%Number%"),a=n("%BigInt%",!0);t.exports=function(t,e,r,n){for(var s=n?a:i,u=s(0),c=0;c<t.length;c++)u+=s(t[c]*o(2,8*c));if(!r){var l=8*e;128&t[e-1]&&(u-=s(o(2,l)))}return u}},2509:(t,e,r)=>{"use strict";var n=r(528)("%Symbol.species%",!0),o=r(3468),i=r(56482),a=r(75591);t.exports=function(t,e){if(!i(t))throw new o("Assertion failed: Type(O) is not Object");var r=t.constructor;if(void 0===r)return e;if(!i(r))throw new o("O.constructor is not an Object");var s=n?r[n]:void 0;if(null==s)return e;if(a(s))return s;throw new o("no constructor found")}},2625:(t,e,r)=>{"use strict";var n=r(14607),o=r(46132)(/^\s*(?:function)?\*/),i=r(51913)(),a=r(46369),s=n("Object.prototype.toString"),u=n("Function.prototype.toString"),c=r(14898);t.exports=function(t){if("function"!=typeof t)return!1;if(o(u(t)))return!0;if(!i)return"[object GeneratorFunction]"===s(t);if(!a)return!1;var e=c();return e&&a(t)===e.prototype}},2741:(t,e,r)=>{"use strict";var n=r(58581),o=r(89503),i=r(4721),a=r(31028);t.exports=function(t){var e=o(t);if(!a(e)||0===e)return 0;var r=i(e),s=n(r,65536);return 0===s?0:s}},3763:t=>{"use strict";t.exports=function(t){return"number"==typeof t&&t>=0&&t<=255&&(0|t)===t}},3939:(t,e,r)=>{"use strict";var n=r(3468),o=r(56482),i=r(25676),a=r(11328),s=function(){try{return delete[].length,!0}catch(t){return!1}}();t.exports=function(t,e,r,u){if(!o(t))throw new n("Assertion failed: `O` must be an Object");if(!i(e))throw new n("Assertion failed: `P` must be a Property Key");if("boolean"!=typeof u)throw new n("Assertion failed: `Throw` must be a Boolean");if(u){if(t[e]=r,s&&!a(t[e],r))throw new n("Attempted to assign to readonly property.");return!0}try{return t[e]=r,!s||a(t[e],r)}catch(t){return!1}}},4702:(t,e,r)=>{"use strict";var n=r(3468),o=r(78554),i=r(56482),a=r(25676);t.exports=function(t,e){if(!i(t))throw new n("Assertion failed: `O` must be an Object");if(!a(e))throw new n("Assertion failed: `P` must be a Property Key");return o(t,e)}},4721:(t,e,r)=>{"use strict";var n=r(61621),o=r(3468);t.exports=function(t){if("number"!=typeof t&&"bigint"!=typeof t)throw new o("argument must be a Number or a BigInt");var e=t<0?-n(-t):n(t);return 0===e?0:e}},5354:(t,e,r)=>{"use strict";
1function n(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return[...t.geometry.coordinates];if("Point"===t.type)return[...t.coordinates]}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return[...t];throw new Error("coord must be GeoJSON Point or an Array of numbers")}r.d(e,{uG:()=>n})},6715:(t,e,r)=>{"use strict";var n=r(3468),o=r(27300),i=r(14834)(),a=r(14607),s=r(56227),u=r(31189),c=a("SharedArrayBuffer.prototype.byteLength",!0);t.exports=function(t){var e=u(t);if(!s(t)&&!e)throw new n("Assertion failed: `arrayBuffer` must be an Object with an [[ArrayBufferData]] internal slot");if(0===(e?c:o)(t))try{new r.g[i[0]](t)}catch(t){return!!t&&"TypeError"===t.name}return!1}},7073:(t,e,r)=>{"use strict";function n(t){return!!t.originalEvent&&!0===t.originalEvent.shiftKey}r.d(e,{RT:()=>n}),r(10672)},8680:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(89575),o=r(14041);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"};var a=r(7543),s=function(t,e){return o.createElement(a.A,(0,n.A)({},t,{ref:e,icon:i}))};const u=o.forwardRef(s)},8809:t=>{"use strict";t.exports=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t}},10501:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(31750),o=r(10672);const i=function t(e,r={},i=null){const{type:a,coordinates:s}=e.geometry,u=e.properties&&e.properties.id;let c=[];function l(t,e){let i="",a=null;t.forEach((t,s)=>{const l=null!=e?`${e}.${s}`:String(s),p=(0,n.A)(u,t,l,f(l));if(r.midpoints&&a){const t=function(t,e,r){const n=e.geometry.coordinates,i=r.geometry.coordinates;if(n[1]>o.VN||n[1]<o.Pv||i[1]>o.VN||i[1]<o.Pv)return null;const a={lng:(n[0]+i[0])/2,lat:(n[1]+i[1])/2};return{type:o.zH.FEATURE,properties:{meta:o.mI.MIDPOINT,parent:t,lng:a.lng,lat:a.lat,coord_path:r.properties.coord_path},geometry:{type:o.zH.POINT,coordinates:[a.lng,a.lat]}}}(u,a,p);t&&c.push(t)}a=p;const d=JSON.stringify(t);i!==d&&c.push(p),0===s&&(i=d)})}function f(t){return!!r.selectedPaths&&-1!==r.selectedPaths.indexOf(t)}return a===o.zH.POINT?c.push((0,n.A)(u,s,i,f(i))):a===o.zH.POLYGON?s.forEach((t,e)=>{l(t,null!==i?`${i}.${e}`:String(e))}):a===o.zH.LINE_STRING?l(s,i):0===a.indexOf(o.zH.MULTI_PREFIX)&&function(){const n=a.replace(o.zH.MULTI_PREFIX,"");s.forEach((i,a)=>{const s={type:o.zH.FEATURE,properties:e.properties,geometry:{type:n,coordinates:i}};c=c.concat(t(s,r,a))})}(),c}},10814:(t,e,r)=>{"use strict";var n=r(3468),o=r(61621),i=r(50250),a=r(20416),s=r(87121),u=r(1041),c=r(21279),l=r(83961),f=r(15141);t.exports=function(t){if(!u(t))throw new n("Assertion failed: `taRecord` must be a TypedArray With Buffer Witness Record");if(a(t))throw new n("Assertion failed: `taRecord` is out of bounds");var e=t["[[Object]]"],r=i(c(e)),p=r?f(e):"AUTO";if("AUTO"!==p)return p;if(r)throw new n("Assertion failed: array buffer is not fixed length");var d=l(e),h=s(e),y=t["[[CachedBufferByteLength]]"];if("DETACHED"===y)throw new n("Assertion failed: typed array is detached");return o((y-d)/h)}},11328:(t,e,r)=>{"use strict";var n=r(62422);t.exports=function(t,e){return t===e?0!==t||1/t==1/e:n(t)&&n(e)}},13643:t=>{"use strict";t.exports=function(t,e){for(var r=0;r<t.length;r+=1)if(!e(t[r],r,t))return!1;return!0}},14187:(t,e,r)=>{"use strict";var n=r(58581),o=r(89503),i=r(4721),a=r(31028);t.exports=function(t){var e=o(t);if(!a(e)||0===e)return 0;var r=i(e),s=n(r,4294967296);return 0===s?0:s}},14264:(t,e,r)=>{"use strict";var n=r(528)("%BigInt%",!0),o=r(3468),i=r(5731);t.exports=function(t){if("string"!=typeof t)throw new o("`argument` must be a string");if(!n)throw new i("BigInts are not supported in this environment");try{return n(t)}catch(t){return}}},14898:t=>{"use strict";const e=function*(){}.constructor;t.exports=()=>e},15141:(t,e,r)=>{"use strict";var n=r(28498),o=r(80705),i=r(69336),a=r(95943),s=r(69501),u=r(79744)(),c={__proto__:null},l=Object.defineProperty;if(i){var f=function(t){return t.length};o(s,function(t){var e=r.g[t];if("function"==typeof e||"object"==typeof e){var o=e.prototype,a=i(o,"length");if(!a){var s=u(o);a=i(s,"length")}if(a&&a.get)c["$"+t]=n(a.get);else if(l){var p=new r.g[t](2);(a=i(p,"length"))&&a.configurable&&l(p,"length",{value:3}),2===p.length&&(c["$"+t]=f)}}})}t.exports=function(t){return!!a(t)&&function(t){var e;return o(c,function(r){if("number"!=typeof e)try{var n=r(t);"number"==typeof n&&(e=n)}catch(t){}}),e}(t)}},16230:t=>
1{t.exports.RADIUS=6378137,t.exports.FLATTENING=1/298.257223563,t.exports.POLAR_RADIUS=6356752.3142},16931:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var n=r(43032),o=r.n(n),i=r(10672);const{xu:a,rW:s,Pv:u,VN:c,jc:l,Tf:f}=i;function p(t,e){const r=function(t,e){let r=a,n=s,i=a,p=s,d=f,h=l;t.forEach(t=>{const e=o()(t),a=e[1],s=e[3],u=e[0],c=e[2];a>r&&(r=a),s<n&&(n=s),s>i&&(i=s),a<p&&(p=a),u<d&&(d=u),c>h&&(h=c)});const y=e;return r+y.lat>c&&(y.lat=c-r),i+y.lat>s&&(y.lat=s-i),n+y.lat<u&&(y.lat=u-n),p+y.lat<a&&(y.lat=a-p),d+y.lng<=l&&(y.lng+=360*Math.ceil(Math.abs(y.lng)/360)),h+y.lng>=f&&(y.lng-=360*Math.ceil(Math.abs(y.lng)/360)),y}(t.map(t=>t.toGeoJSON()),e);t.forEach(t=>{const e=t.getCoordinates(),n=t=>{const e={lng:t[0]+r.lng,lat:t[1]+r.lat};return[e.lng,e.lat]},o=t=>t.map(t=>n(t));let a;t.type===i.zH.POINT?a=n(e):t.type===i.zH.LINE_STRING||t.type===i.zH.MULTI_POINT?a=e.map(n):t.type===i.zH.POLYGON||t.type===i.zH.MULTI_LINE_STRING?a=e.map(o):t.type===i.zH.MULTI_POLYGON&&(a=e.map(t=>t.map(t=>o(t)))),t.incomingCoords(a)})}},16996:(t,e,r)=>{"use strict";var n=r(21809);t.exports=function(){return String.prototype.trim&&"​"==="​".trim()&&"᠎"==="᠎".trim()&&"_᠎"==="_᠎".trim()&&"᠎_"==="᠎_".trim()?String.prototype.trim:n}},18659:t=>{"use strict";t.exports=function(t){return null===t||"function"!=typeof t&&"object"!=typeof t}},19813:(t,e,r)=>{"use strict";var n=r(58581),o=r(89503),i=r(4721),a=r(31028);t.exports=function(t){var e=o(t);if(!a(e)||0===e)return 0;var r=i(e),s=n(r,256);return s>=128?s-256:s}},20416:(t,e,r)=>{"use strict";var n=r(3468),o=r(6715),i=r(50250),a=r(87121),s=r(1041),u=r(21279),c=r(83961),l=r(15141);t.exports=function(t){if(!s(t))throw new n("Assertion failed: `taRecord` must be a TypedArray With Buffer Witness Record");var e=t["[[Object]]"],r=t["[[CachedBufferByteLength]]"];if(o(u(e))&&"DETACHED"!==r)throw new n("Assertion failed: typed array is detached only if the byte length is ~DETACHED~");if("DETACHED"===r)return!0;var f,p=c(e),d=i(u(e))?l(e):"AUTO";return f="AUTO"===d?r:p+d*a(e),p>r||f>r}},20700:(t,e,r)=>{"use strict";var n=r(17239),o=r(64940),i=n.hasArrayLengthDefineBug(),a=i&&r(66009),s=r(14607)("Object.prototype.propertyIsEnumerable");t.exports=function(t,e,r,n,u,c){if(!o){if(!t(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(u in n&&s(n,u)!==!!c["[[Enumerable]]"])return!1;var l=c["[[Value]]"];return n[u]=l,e(n[u],l)}return i&&"length"===u&&"[[Value]]"in c&&a(n)&&n.length!==c["[[Value]]"]?(n.length=c["[[Value]]"],n.length===c["[[Value]]"]):(o(n,u,r(c)),!0)}},20763:(t,e,r)=>{"use strict";var n=r(3468);t.exports=function(t){if(null==t)throw new n(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t}},21279:(t,e,r)=>{"use strict";var n=r(3468),o=r(14607)("TypedArray.prototype.buffer",!0),i=r(95943);t.exports=o||function(t){if(!i(t))throw new n("Not a Typed Array");return t.buffer}},21809:(t,e,r)=>{"use strict";var n=r(20763),o=r(68286),i=r(14607),a=r(46132),s=i("String.prototype.replace"),u=i("String.prototype.charAt"),c=i("String.prototype.slice"),l=/^\s$/.test("᠎"),f=l?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,p=a(l?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]$/);t.exports=function(){for(var t=s(o(n(this)),f,""),e=t.length;e>0&&p(u(t,e-1));)e-=1;return c(t,0,e)}},22382:(t,e,r)=>{"use strict";var n=r(58479),o=r(18449),i=r(85865),a=r(31028),s=r(62422),u=r(36906);t.exports=function(t,e){if(s(t))return e?[0,0,192,127]:[127,192,0,0];var r;if(0===t)return r=u(t)?128:0,e?[0,0,0,r]:[r,0,0,0];if(n(t)>34028234663852886e22||!a(t))return r=t<0?255:127,e?[0,0,128,r]:[r,128,0,0];var c=t<0?1:0;t=n(t);for(var l=0;t>=2;)l+=1,t/=2;for(;t<1;)l-=1,t*=2;var f=t-1;f*=i(2,23)+.5,l+=127;var p=c<<31|(l<<=23)|(f=o(f)),d=255&p,h=255&(p>>=8),y=255&(p>>=8),g=255&(p>>=8);return e?[d,h,y,g]:[g,y,h,d]}},22786:(t,e,r)=>{"use strict";var n=r(17239)(),o=r(68993)(),i=r(3468),a=r(50728),s=r(64940);t.exports=function(){var t=a();if(o)return t;if(!n||!s)throw new i("Shimming Function.prototype.name support requires ES5 property descriptor support.");var e=Function.prototype;return s(e,"name",{configurable:!0,enumerable:!1,get:function(){var r=t.call(this);return this!==e&&s(this,"name",{configurable:!0,enumerable:!1,value:r,writable:!1}),r}}),t}},23948:(t,e,r)=>{"use strict";var n=r(5731),o=r(3468),i=r(80234),a=r(75591),s=r(20416),u=r(10814),c=r(448),l=r(14834)();t.exports=function(t,e){if(!a(t))throw new o("Assertion failed: `constructor` must be a constructor");if(!i(e))throw new o("Assertion failed: `argumentList` must be a List");if(0===l.length)throw new n("Assertion failed: Typed Arrays are not supported in this environment");var r;r=0===e.length?new t:1===e.length?new t(e[0]):2===e.length?new t(e[0],e[1]):new t(e[0],e[1],e[2]);var f=c(r,"SEQ-CST");if(1===e.length&&"number"==typeof e[0]){if(s(f))throw new o("new Typed Array is out of bounds");if(u(f)<e[0])throw new o("`argumentList[0]` must be <= `newTypedArray.length`")}return r}},24806:(t,e,r)=>{"use strict";var n=r(14607),o=r(46132),i=n("Object.prototype.toString"),a=n("Function.prototype.toString"),s=o(/^\s*async(?:\s+function(?:\s+|\()|\s*\()/),u=r(51913)(),c=r(46369),l=r(1361);t.exports=function(t){if("function"!=typeof t)return!1;if(s(a(t)))return!0;
1if(!u)return"[object AsyncFunction]"===i(t);if(!c)return!1;var e=l();return e&&e.prototype===c(t)}},25676:t=>{"use strict";t.exports=function(t){return"string"==typeof t||"symbol"==typeof t}},29028:(t,e,r)=>{"use strict";var n=r(58581),o=r(89503),i=r(4721),a=r(31028),s=4294967296;t.exports=function(t){var e=o(t);if(!a(e)||0===e)return 0;var r=i(e),u=n(r,s),c=u>=2147483648?u-s:u;return 0===c?0:c}},29594:(t,e,r)=>{"use strict";var n=r(14607)("WeakRef.prototype.deref",!0);t.exports="undefined"==typeof WeakRef?function(t){return!1}:function(t){if(!t||"object"!=typeof t)return!1;try{return n(t),!0}catch(t){return!1}}},31028:(t,e,r)=>{"use strict";var n=r(62422);t.exports=function(t){return("number"==typeof t||"bigint"==typeof t)&&!n(t)&&t!==1/0&&t!==-1/0}},32383:(t,e,r)=>{"use strict";var n=r(28498),o=r(41857),i=r(20763),a=r(21809),s=r(16996),u=r(61870),c=n(s()),l=function(t){return i(t),c(t)};o(l,{getPolyfill:s,implementation:a,shim:u}),t.exports=l},32624:(t,e,r)=>{"use strict";var n=r(68502),o=r(39334),i=r(52730),a=r(56815),s=r(19543),u=r(52672),c=r(29594),l=r(72594),f=r(62923),p=r(2625),d=r(24806),h=r(14607),y=r(51913)()&&Symbol.toStringTag,g=Object,m=h("Promise.prototype.then",!0),v=function(t){return!!t&&"BigInt"!==t&&"Boolean"!==t&&"Null"!==t&&"Number"!==t&&"String"!==t&&"Symbol"!==t&&"Undefined"!==t&&"Math"!==t&&"JSON"!==t&&"Reflect"!==t&&"Atomics"!==t&&"Map"!==t&&"Set"!==t&&"WeakMap"!==t&&"WeakSet"!==t&&"BigInt64Array"!==t&&"BigUint64Array"!==t&&"Float32Array"!==t&&"Float64Array"!==t&&"Int16Array"!==t&&"Int32Array"!==t&&"Int8Array"!==t&&"Uint16Array"!==t&&"Uint32Array"!==t&&"Uint8Array"!==t&&"Uint8ClampedArray"!==t&&"Array"!==t&&"Date"!==t&&"FinalizationRegistry"!==t&&"Promise"!==t&&"RegExp"!==t&&"WeakRef"!==t&&"Function"!==t&&"GeneratorFunction"!==t&&"AsyncFunction"!==t};t.exports=function(t){if(null==t)return t;var e=n(g(t))||o(t)||i(t);if(e)return e;if(a(t))return"Array";if(s(t))return"Date";if(u(t))return"RegExp";if(c(t))return"WeakRef";if(l(t))return"FinalizationRegistry";if("function"==typeof t)return p(t)?"GeneratorFunction":d(t)?"AsyncFunction":"Function";if(function(t){if(!t||"object"!=typeof t||!m)return!1;try{return m(t,null,function(){}),!0}catch(t){}return!1}(t))return"Promise";if(y&&y in t){var r=t[y];if(v(r))return r}if("function"==typeof t.constructor){var h=f(t.constructor);if(v(h))return h}return"Object"}},32930:(t,e,r)=>{"use strict";var n=r(5731),o=r(3468),i=r(52730),a=r(14834)(),s=r(80234),u=r(2509),c=r(23948),l=r(2222);t.exports=function(t,e){if(0===a.length)throw new n("Assertion failed: Typed Arrays are not supported in this environment");var r=i(t);if(!r)throw new o("Assertion failed: exemplar must be a TypedArray");if(!s(e))throw new o("Assertion failed: `argumentList` must be a List");var f=l(r);if("function"!=typeof f)throw new n("Assertion failed: `constructor` of `exemplar` ("+r+") must exist. Please report this!");var p=u(t,f);return c(p,e)}},34973:(t,e,r)=>{"use strict";var n=r(14607)("Object.prototype.toString"),o=!(0 in[,]),i=function(){return!1};if("object"==typeof document){var a=document.all;n(a)===n(document.all)&&(i=function(t){if((o||!t)&&(void 0===t||"object"==typeof t))try{var e=n(t);return("[object HTMLAllCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i},35622:(t,e,r)=>{"use strict";var n=r(528),o=n("%Uint8Array%",!0),i=n("%Uint32Array%",!0),a=r(21279),s=i&&new i([305419896]),u=s&&new o(a(s));t.exports=u?120===u[0]?"little":18===u[0]?"big":52===u[0]?"mixed":"unknown":"indeterminate"},36813:(t,e,r)=>{"use strict";function n(t){switch(t&&t.type||null){case"FeatureCollection":return t.features=t.features.reduce(function(t,e){return t.concat(n(e))},[]),t;case"Feature":return t.geometry?n(t.geometry).map(function(e){var r={type:"Feature",properties:JSON.parse(JSON.stringify(t.properties)),geometry:e};return void 0!==t.id&&(r.id=t.id),r}):[t];case"MultiPoint":return t.coordinates.map(function(t){return{type:"Point",coordinates:t}});case"MultiPolygon":return t.coordinates.map(function(t){return{type:"Polygon",coordinates:t}});case"MultiLineString":return t.coordinates.map(function(t){return{type:"LineString",coordinates:t}});case"GeometryCollection":return t.geometries.map(n).reduce(function(t,e){return t.concat(e)},[]);case"Point":case"Polygon":case"LineString":return[t]}}r.r(e),r.d(e,{default:()=>n})},36906:t=>{"use strict";
1t.exports=function(t){return 0===t&&1/t==-1/0}},37429:(t,e,r)=>{"use strict";var n=r(2160),o=r(89503),i=r(61621),a=r(62422);t.exports=function(t){var e=o(t);if(a(e))return 0;var r=n(e,0,255),s=i(r);return r<s+.5?s:r>s+.5?s+1:s%2==0?s:s+1}},39534:(t,e,r)=>{"use strict";var n=r(528),o=n("%Number%"),i=n("%BigInt%",!0);t.exports=function(t,e,r){var n="bigint"==typeof t?i:o;t<0&&(t>>>=0);for(var a=[],s=0;s<e;s++)a[r?s:e-1-s]=o(t&n(255)),t>>=n(8);return a}},40373:t=>{"use strict";var e=1075;t.exports=function(t){var r="";if(0===t)return r;for(var n,o=e,i=0;i<e;i+=1)if((n=2*t)>=1?(t=n-1,r+="1",o===e&&(o=i)):(t=n,r+="0"),1===n||i-o>54)return r;return r}},40564:(t,e,r)=>{"use strict";var n=r(85865);t.exports=function(t){var e=128&t[3]?-1:1,r=(127&t[3])<<1|t[2]>>7,o=(127&t[2])<<16|t[1]<<8|t[0];return 0===r&&0===o?1===e?0:-0:255===r&&0===o?1===e?1/0:-1/0:255===r&&0!==o?NaN:-127==(r-=127)?e*o*n(2,-149):e*(1+o*n(2,-23))*n(2,r)}},41445:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},41597:(t,e,r)=>{"use strict";var n=r(58479),o=r(18449),i=r(62422),a=r(31028);t.exports=function(t){if("number"!=typeof t||i(t)||!a(t))return!1;var e=n(t);return o(e)===e}},42515:t=>{"use strict";t.exports=function(t,e,r){var n=t(e,r);return n>=0?n:n+r}},43032:(t,e,r)=>{var n=r(65082),o=r(54420),i=r(73838),a={features:["FeatureCollection"],coordinates:["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],geometry:["Feature"],geometries:["GeometryCollection"]},s=Object.keys(a);function u(t){for(var e=i(),r=n(t),o=0;o<r.length;o++)e.include(r[o]);return e}t.exports=function(t){return u(t).bbox()},t.exports.polygon=function(t){return u(t).polygon()},t.exports.bboxify=function(t){return o(t).map(function(t){t&&s.some(function(e){return!!t[e]&&-1!==a[e].indexOf(t.type)})&&(t.bbox=u(t).bbox(),this.update(t))})}},43606:(t,e,r)=>{"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=r(89617),i=r(19543),a=r(43409),s=r(3468),u=r(18659),c=r(83619);t.exports=function(t){if(u(t))return t;var e,r="default";if(arguments.length>1&&(arguments[1]===String?r="string":arguments[1]===Number&&(r="number")),n&&(Symbol.toPrimitive?e=c(t,Symbol.toPrimitive):a(t)&&(e=Symbol.prototype.valueOf)),void 0!==e){var l=e.call(t,r);
1if(u(l))return l;throw new s("unable to convert exotic object to primitive")}return"default"===r&&(i(t)||a(t))&&(r="string"),function(t,e){if(null==t)throw new s("Cannot call method on "+t);if("string"!=typeof e||"number"!==e&&"string"!==e)throw new s('hint must be "string" or "number"');var r,n,i,a="string"===e?["toString","valueOf"]:["valueOf","toString"];for(i=0;i<a.length;++i)if(r=t[a[i]],o(r)&&(n=r.call(t),u(n)))return n;throw new s("No default value")}(t,"default"===r?"number":r)}},44242:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(71486),o=r(10672);const i={Point:0,LineString:1,Polygon:2};function a(t,e){const r=i[t.geometry.type]-i[e.geometry.type];return 0===r&&t.geometry.type===o.zH.POLYGON?t.area-e.area:r}function s(t){if(this._items={},this._nums={},this._length=t?t.length:0,t)for(let e=0,r=t.length;e<r;e++)this.add(t[e]),void 0!==t[e]&&("string"==typeof t[e]?this._items[t[e]]=e:this._nums[t[e]]=e)}s.prototype.add=function(t){return this.has(t)||(this._length++,"string"==typeof t?this._items[t]=this._length:this._nums[t]=this._length),this},s.prototype.delete=function(t){return!1===this.has(t)||(this._length--,delete this._items[t],delete this._nums[t]),this},s.prototype.has=function(t){return!("string"!=typeof t&&"number"!=typeof t||void 0===this._items[t]&&void 0===this._nums[t])},s.prototype.values=function(){const t=[];return Object.keys(this._items).forEach(e=>{t.push({k:e,v:this._items[e]})}),Object.keys(this._nums).forEach(e=>{t.push({k:JSON.parse(e),v:this._nums[e]})}),t.sort((t,e)=>t.v-e.v).map(t=>t.k)},s.prototype.clear=function(){return this._length=0,this._items={},this._nums={},this};const u=s,c=[o.mI.FEATURE,o.mI.MIDPOINT,o.mI.VERTEX],l={click:function(t,e,r){return f(t,e,r,r.options.clickBuffer)},touch:function(t,e,r){return f(t,e,r,r.options.touchBuffer)}};function f(t,e,r,i){if(null===r.map)return[];const s=t?function(t,e=0){return[[t.point.x-e,t.point.y-e],[t.point.x+e,t.point.y+e]]}(t,i):e,l={};r.options.styles&&(l.layers=r.options.styles.map(t=>t.id));const f=r.map.queryRenderedFeatures(s,l).filter(t=>-1!==c.indexOf(t.properties.meta)),p=new u,d=[];return f.forEach(t=>{const e=t.properties.id;p.has(e)||(p.add(e),d.push(t))}),function(t){return t.map(t=>(t.geometry.type===o.zH.POLYGON&&(t.area=n.geometry({type:o.zH.FEATURE,property:{},geometry:t.geometry})),t)).sort(a).map(t=>(delete t.area,t))}(d)}},44980:(t,e,r)=>{"use strict";var n=r(528)("%BigInt%",!0),o=r(85865),i=r(94981),a=r(65264),s=r(42515),u=n&&BigInt(o(2,32))*BigInt(o(2,31)),c=n&&BigInt(o(2,32))*BigInt(o(2,32));t.exports=function(t){var e=i(t),r=s(a,e,c);return r>=u?r-c:r}},45722:(t,e,r)=>{"use strict";var n=r(78554),o=r(3468),i=r(56482),a=r(46627),s=r(64124);t.exports=function(t){if(!i(t))throw new o("ToPropertyDescriptor requires an object");var e={};if(n(t,"enumerable")&&(e["[[Enumerable]]"]=s(t.enumerable)),n(t,"configurable")&&(e["[[Configurable]]"]=s(t.configurable)),n(t,"value")&&(e["[[Value]]"]=t.value),n(t,"writable")&&(e["[[Writable]]"]=s(t.writable)),n(t,"get")){var r=t.get;if(void 0!==r&&!a(r))throw new o("getter must be a function");e["[[Get]]"]=r}if(n(t,"set")){var u=t.set;if(void 0!==u&&!a(u))throw new o("setter must be a function");e["[[Set]]"]=u}if((n(e,"[[Get]]")||n(e,"[[Set]]"))&&(n(e,"[[Value]]")||n(e,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return e}},46627:(t,e,r)=>{"use strict";t.exports=r(89617)},47496:(t,e,r)=>{"use strict";t.exports=r(63251)},47604:(t,e,r)=>{"use strict";var n=r(3468),o=r(78554),i={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};t.exports=function(t){if(!t||"object"!=typeof t)return!1;for(var e in t)if(o(t,e)&&!i[e])return!1;var r=o(t,"[[Value]]")||o(t,"[[Writable]]"),a=o(t,"[[Get]]")||o(t,"[[Set]]");if(r&&a)throw new n("Property Descriptors may not be both accessor and data descriptors");return!0}},48949:(t,e,r)=>{"use strict";var n=r(528),o=r(46627),i=r(73365),a=r(32624),s=r(3468),u=r(46369),c=r(9629);t.exports=function(t){if(!i(t))throw new s("Reflect.getPrototypeOf called on non-object");
1if(u)return u(t);var e=a(t);if(e){var r=n("%"+e+".prototype%",!0);if(r)return r}return o(t.constructor)?t.constructor.prototype:t instanceof Object?c.prototype:null}},50250:(t,e,r)=>{"use strict";var n=r(3468),o=r(14607),i=o("%ArrayBuffer.prototype.resizable%",!0),a=o("%SharedArrayBuffer.prototype.growable%",!0),s=r(56227),u=r(31189);t.exports=function(t){var e=s(t),r=u(t);if(!e&&!r)throw new n("Assertion failed: `arrayBuffer` must be an ArrayBuffer or SharedArrayBuffer");return e&&i?!i(t):!r||!a||!a(t)}},50728:(t,e,r)=>{"use strict";var n=r(70013);t.exports=function(){return n}},52903:(t,e,r)=>{"use strict";var n=r(3468),o=r(48660),i=r(25676),a=r(56482);t.exports=function(t,e){if(!a(t))throw new n("Assertion failed: Type(O) is not Object");if(!i(e))throw new n("Assertion failed: P is not a Property Key, got "+o(e));return t[e]}},53154:(t,e,r)=>{"use strict";var n=r(3468),o=r(54486),i=r(6715),a=r(95943),s=r(21279);t.exports=function(t,e){if(!a(t))throw new n("Assertion failed: `obj` must be a Typed Array");if("SEQ-CST"!==e&&"UNORDERED"!==e)throw new n("Assertion failed: `order` must be ~SEQ-CST~ or ~UNORDERED~");var r=s(t);return{"[[Object]]":t,"[[CachedBufferByteLength]]":i(r)?"DETACHED":o(r,e)}}},54420:(t,e,r)=>{"use strict";var n=r(52730),o=r(56767),i=r(69336);function a(t){return Object.prototype.toString.call(t)}var s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function u(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)}var c=Object.keys||function(t){var e=[];for(var r in t)e[e.length]=r;return e},l=Object.prototype.propertyIsEnumerable,f=Object.getOwnPropertySymbols;function p(t){var e=c(t);if(f)for(var r=f(t),n=0;n<r.length;n++)l.call(t,r[n])&&(e[e.length]=r[n]);return e}var d=Object.prototype.hasOwnProperty||function(t,e){return e in t};function h(t,e){if("object"==typeof t&&null!==t){var r;if(s(t))r=[];else if("[object Date]"===a(t))r=new Date(t.getTime?t.getTime():t);else if("[object RegExp]"===a(t))r=new RegExp(t);else if(function(t){return"[object Error]"===a(t)}(t))r={message:t.message};else if(function(t){return"[object Boolean]"===a(t)}(t)||function(t){return"[object Number]"===a(t)}(t)||function(t){return"[object String]"===a(t)}(t))r=Object(t);else{if(n(t))return o(t);if(Object.create&&Object.getPrototypeOf)r=Object.create(Object.getPrototypeOf(t));else if(t.constructor===Object)r={};else{var i=t.constructor&&t.constructor.prototype||t.__proto__||{},l=function(){};l.prototype=i,r=new l}}return u((e.includeSymbols?p:c)(t),function(e){r[e]=t[e]}),r}return t}var y={__proto__:null};function g(t,e){var r=[],n=[],o=!0,a=arguments.length>2?arguments[2]:y,l=a.includeSymbols?p:c,f=!!a.immutable;return function t(c){var p=f?h(c,a):c,y={__proto__:null},g=!0,m={node:p,node_:c,path:[].concat(r),parent:n[n.length-1],parents:n,key:r[r.length-1],removedKeys:{__proto__:null},isRoot:0===r.length,level:r.length,circular:null,update:function(t,e){m.isRoot||(m.parent.node[m.key]=t),m.node=t,e&&(g=!1)},delete:function(t){delete m.parent.node[m.key],m.parent.removedKeys[m.key]=!0,t&&(g=!1)},remove:function(t){s(m.parent.node)?(m.parent.node.splice(m.key,1),m.parent.removedKeys[m.key]=!0,t&&(g=!1)):m.delete(t)},keys:null,before:function(t){y.before=t},after:function(t){y.after=t},pre:function(t){y.pre=t},post:function(t){y.post=t},stop:function(){o=!1},block:function(){g=!1}};if(!o)return m;function v(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=l(m.node)),m.isLeaf=0===m.keys.length;for(var t=0;t<n.length;t++)if(n[t].node_===c){m.circular=n[t];break}}else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}v();var b=e.call(m,m.node);return void 0!==b&&m.update&&m.update(b),y.before&&y.before.call(m,m.node),g?("object"!=typeof m.node||null===m.node||m.circular||(n[n.length]=m,v(),u(m.keys,function(e,n){var o=n-1 in m.removedKeys;o&&(e=m.keys[n-1]),r[r.length]=e,y.pre&&y.pre.call(m,m.node[e],e);var a=t(m.node[e]);f&&d.call(m.node,e)&&!function(t,e){if("function"!=typeof i)return!0;var r=i(t,e);return!r||!r.writable}
1(m.node,e)&&!o&&(m.node[e]=a.node),a.isLast=n===m.keys.length-1,a.isFirst=0===n,y.post&&y.post.call(m,a),r.pop()}),n.pop()),y.after&&y.after.call(m,m.node),m):m}(t).node}function m(t){this.options=arguments.length>1?arguments[1]:y,this.value=t}function v(t){return new m(t,arguments.length>1?arguments[1]:y)}m.prototype.get=function(t){for(var e=this.value,r=0;e&&r<t.length;r++){var n=t[r];if(!d.call(e,n)||!this.options.includeSymbols&&"symbol"==typeof n)return;e=e[n]}return e},m.prototype.has=function(t){var e=this.value;if(!e&&t.length>0)return!1;for(var r=0;e&&r<t.length;r++){var n=t[r];if(!d.call(e,n)||!this.options.includeSymbols&&"symbol"==typeof n)return!1;e=e[n]}return!0},m.prototype.set=function(t,e){for(var r=this.value,n=0;n<t.length-1;n++){var o=t[n];d.call(r,o)||(r[o]={}),r=r[o]}return r[t[n]]=e,e},m.prototype.map=function(t){return g(this.value,t,{__proto__:null,immutable:!0,includeSymbols:!!this.options.includeSymbols})},m.prototype.forEach=function(t){return this.value=g(this.value,t,this.options),this.value},m.prototype.reduce=function(t,e){var r=1===arguments.length,n=r?this.value:e;return this.forEach(function(e){this.isRoot&&r||(n=t.call(this,n,e))}),n},m.prototype.paths=function(){var t=[];return this.forEach(function(){t[t.length]=this.path}),t},m.prototype.nodes=function(){var t=[];return this.forEach(function(){t[t.length]=this.node}),t},m.prototype.clone=function(){var t=[],e=[],r=this.options;return n(this.value)?o(this.value):function n(o){for(var i=0;i<t.length;i++)if(t[i]===o)return e[i];if("object"==typeof o&&null!==o){var a=h(o,r);return t[t.length]=o,e[e.length]=a,u((r.includeSymbols?p:c)(o),function(t){a[t]=n(o[t])}),t.pop(),e.pop(),a}return o}(this.value)},u(p(m.prototype),function(t){v[t]=function(e){var r=[].slice.call(arguments,1),n=new m(e);return n[t].apply(n,r)}}),t.exports=v},54486:(t,e,r)=>{"use strict";var n=r(3468),o=r(6715),i=r(56227),a=r(31189),s=r(27300),u=r(14607)("SharedArrayBuffer.prototype.byteLength",!0);t.exports=function(t,e){var r=a(t);if(!i(t)&&!r)throw new n("Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer");if("SEQ-CST"!==e&&"UNORDERED"!==e)throw new n("Assertion failed: `order` must be ~SEQ-CST~ or ~UNORDERED~");if(o(t))throw new n("Assertion failed: `arrayBuffer` must not be detached");return r?u(t):s(t)}},56482:t=>{"use strict";t.exports=function(t){return!!t&&("function"==typeof t||"object"==typeof t)}},56767:(t,e,r)=>{"use strict";var n=r(41857),o=r(28498),i=r(63505),a=r(73796),s=r(70926),u=o(a());n(u,{getPolyfill:a,implementation:i,shim:s}),t.exports=u},56843:function(t,e,r){t.exports=function(){"use strict";var t=function(t,e){var r={drag:[],click:[],mousemove:[],mousedown:[],mouseup:[],mouseout:[],keydown:[],keyup:[],touchstart:[],touchmove:[],touchend:[],tap:[]},n={on:function(t,e,n){if(void 0===r[t])throw new Error("Invalid event type: "+t);r[t].push({selector:e,fn:n})},render:function(t){e.store.featureChanged(t)}},o=function(t,o){for(var i=r[t],a=i.length;a--;){var s=i[a];if(s.selector(o)){s.fn.call(n,o)||e.store.render(),e.ui.updateMapClasses();break}}};return t.start.call(n),{render:t.render,stop:function(){t.stop&&t.stop()},trash:function(){t.trash&&(t.trash(),e.store.render())},combineFeatures:function(){t.combineFeatures&&t.combineFeatures()},uncombineFeatures:function(){t.uncombineFeatures&&t.uncombineFeatures()},drag:function(t){o("drag",t)},click:function(t){o("click",t)},mousemove:function(t){o("mousemove",t)},mousedown:function(t){o("mousedown",t)},mouseup:function(t){o("mouseup",t)},mouseout:function(t){o("mouseout",t)},keydown:function(t){o("keydown",t)},keyup:function(t){o("keyup",t)},touchstart:function(t){o("touchstart",t)},touchmove:function(t){o("touchmove",t)},touchend:function(t){o("touchend",t)},tap:function(t){o("tap",t)}}},e=6378137;function n(t){var e=0;if(t&&t.length>0){e+=Math.abs(o(t[0]));for(var r=1;r<t.length;r++)e-=Math.abs(o(t[r]))}return e}function o(t){var r,n,o,a,s,u,c=0,l=t.length;if(l>2){for(u=0;u<l;u++)u===l-2?(o=l-2,a=l-1,s=0):u===l-1?(o=l-1,a=0,s=1):(o=u,a=u+1,s=u+2),r=t[o],n=t[a],c+=(i(t[s][0])-i(r[0]))*Math.sin(i(n[1]));c=c*e*e/2}return c}function i(t){return t*Math.PI/180}var a=function t(e){var r,o=0;switch(e.type){case"Polygon":return n(e.coordinates);case"MultiPolygon":for(r=0;r<e.coordinates.length;r++)o+=n(e.coordinates[r]);return o;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(r=0;r<e.geometries.length;r++)o+=t(e.geometries[r]);return o}},s="active",u="mapbox-gl-draw-hot",c="mapbox-gl-draw-cold",l="add",f="move",p="pointer",d="none",h={POLYGON:"polygon",LINE:"line_string",POINT:"point"},y="Feature",g="Polygon",m="LineString",v="Point",b="FeatureCollection",_="Multi",
1w={DRAW_LINE_STRING:"draw_line_string",DRAW_POLYGON:"draw_polygon",DRAW_POINT:"draw_point",SIMPLE_SELECT:"simple_select",DIRECT_SELECT:"direct_select",STATIC:"static"},x="draw.create",S="draw.update",A="feature",E="midpoint",I="vertex",C="true",M="false",P=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate"],T={Point:0,LineString:1,Polygon:2};function O(t,e){var r=T[t.geometry.type]-T[e.geometry.type];return 0===r&&t.geometry.type===g?t.area-e.area:r}function F(t){if(this._items={},this._nums={},this._length=t?t.length:0,t)for(var e=0,r=t.length;e<r;e++)this.add(t[e]),void 0!==t[e]&&("string"==typeof t[e]?this._items[t[e]]=e:this._nums[t[e]]=e)}F.prototype.add=function(t){return this.has(t)||(this._length++,"string"==typeof t?this._items[t]=this._length:this._nums[t]=this._length),this},F.prototype.delete=function(t){return!1===this.has(t)||(this._length--,delete this._items[t],delete this._nums[t]),this},F.prototype.has=function(t){return!("string"!=typeof t&&"number"!=typeof t||void 0===this._items[t]&&void 0===this._nums[t])},F.prototype.values=function(){var t=this,e=[];return Object.keys(this._items).forEach(function(r){e.push({k:r,v:t._items[r]})}),Object.keys(this._nums).forEach(function(r){e.push({k:JSON.parse(r),v:t._nums[r]})}),e.sort(function(t,e){return t.v-e.v}).map(function(t){return t.k})},F.prototype.clear=function(){return this._length=0,this._items={},this._nums={},this};var L=[A,E,I],N={click:function(t,e,r){return k(t,e,r,r.options.clickBuffer)},touch:function(t,e,r){return k(t,e,r,r.options.touchBuffer)}};function k(t,e,r,n){if(null===r.map)return[];var o=t?function(t,e){return void 0===e&&(e=0),[[t.point.x-e,t.point.y-e],[t.point.x+e,t.point.y+e]]}(t,n):e,i={};r.options.styles&&(i.layers=r.options.styles.map(function(t){return t.id}));var s=r.map.queryRenderedFeatures(o,i).filter(function(t){return-1!==L.indexOf(t.properties.meta)}),u=new F,c=[];return s.forEach(function(t){var e=t.properties.id;u.has(e)||(u.add(e),c.push(t))}),function(t){return t.map(function(t){return t.geometry.type===g&&(t.area=a({type:y,property:{},geometry:t.geometry})),t}).sort(O).map(function(t){return delete t.area,t})}(c)}function j(t,e){var r=N.click(t,null,e),n={mouse:d};return r[0]&&(n.mouse=r[0].properties.active===C?f:p,n.feature=r[0].properties.meta),-1!==e.events.currentModeName().indexOf("draw")&&(n.mouse=l),e.ui.queueMapClasses(n),e.ui.updateMapClasses(),r[0]}function B(t,e){var r=t.x-e.x,n=t.y-e.y;return Math.sqrt(r*r+n*n)}function D(t,e,r){void 0===r&&(r={});var n=null!=r.fineTolerance?r.fineTolerance:4,o=null!=r.grossTolerance?r.grossTolerance:12,i=null!=r.interval?r.interval:500;t.point=t.point||e.point,t.time=t.time||e.time;var a=B(t.point,e.point);return a<n||a<o&&e.time-t.time<i}function U(t,e,r){void 0===r&&(r={});var n=null!=r.tolerance?r.tolerance:25,o=null!=r.interval?r.interval:250;return t.point=t.point||e.point,t.time=t.time||e.time,B(t.point,e.point)<n&&e.time-t.time<o}function R(t,e){return t(e={exports:{}},e.exports),e.exports}var $=R(function(t){var e=t.exports=function(t,r){if(r||(r=16),void 0===t&&(t=128),t<=0)return"0";for(var n=Math.log(Math.pow(2,t))/Math.log(r),o=2;n===1/0;o*=2)n=Math.log(Math.pow(2,t/o))/Math.log(r)*o;var i=n-Math.floor(n),a="";for(o=0;o<Math.floor(n);o++)a=Math.floor(Math.random()*r).toString(r)+a;if(i){var s=Math.pow(r,i);a=Math.floor(Math.random()*s).toString(r)+a}var u=parseInt(a,r);return u!==1/0&&u>=Math.pow(2,t)?e(t,r):a};e.rack=function(t,r,n){var o=function(o){var a=0;do{if(a++>10){if(!n)throw new Error("too many ID collisions, use more bits");t+=n}var s=e(t,r)}while(Object.hasOwnProperty.call(i,s));return i[s]=o,s},i=o.hats={};return o.get=function(t){return o.hats[t]},o.set=function(t,e){return o.hats[t]=e,o},o.bits=t||128,o.base=r||16,o}}),G=function(t,e){this.ctx=t,this.properties=e.properties||{},this.coordinates=e.geometry.coordinates,this.id=e.id||$(),this.type=e.geometry.type};G.prototype.changed=function(){this.ctx.store.featureChanged(this.id)},G.prototype.incomingCoords=function(t){this.setCoordinates(t)},G.prototype.setCoordinates=function(t){this.coordinates=t,this.changed()},G.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.coordinates))},G.prototype.setProperty=function(t,e){this.properties[t]=e},G.prototype.toGeoJSON=function(){return JSON.parse(JSON.stringify({id:this.id,type:y,properties:this.properties,geometry:{coordinates:this.getCoordinates(),type:this.t
1ype}}))},G.prototype.internal=function(t){var e={id:this.id,meta:A,"meta:type":this.type,active:M,mode:t};if(this.ctx.options.userProperties)for(var r in this.properties)e["user_"+r]=this.properties[r];return{type:y,properties:e,geometry:{coordinates:this.getCoordinates(),type:this.type}}};var z=function(t,e){G.call(this,t,e)};(z.prototype=Object.create(G.prototype)).isValid=function(){return"number"==typeof this.coordinates[0]&&"number"==typeof this.coordinates[1]},z.prototype.updateCoordinate=function(t,e,r){this.coordinates=3===arguments.length?[e,r]:[t,e],this.changed()},z.prototype.getCoordinate=function(){return this.getCoordinates()};var V=function(t,e){G.call(this,t,e)};(V.prototype=Object.create(G.prototype)).isValid=function(){return this.coordinates.length>1},V.prototype.addCoordinate=function(t,e,r){this.changed();var n=parseInt(t,10);this.coordinates.splice(n,0,[e,r])},V.prototype.getCoordinate=function(t){var e=parseInt(t,10);return JSON.parse(JSON.stringify(this.coordinates[e]))},V.prototype.removeCoordinate=function(t){this.changed(),this.coordinates.splice(parseInt(t,10),1)},V.prototype.updateCoordinate=function(t,e,r){var n=parseInt(t,10);this.coordinates[n]=[e,r],this.changed()};var J=function(t,e){G.call(this,t,e),this.coordinates=this.coordinates.map(function(t){return t.slice(0,-1)})};(J.prototype=Object.create(G.prototype)).isValid=function(){return 0!==this.coordinates.length&&this.coordinates.every(function(t){return t.length>2})},J.prototype.incomingCoords=function(t){this.coordinates=t.map(function(t){return t.slice(0,-1)}),this.changed()},J.prototype.setCoordinates=function(t){this.coordinates=t,this.changed()},J.prototype.addCoordinate=function(t,e,r){this.changed();var n=t.split(".").map(function(t){return parseInt(t,10)});this.coordinates[n[0]].splice(n[1],0,[e,r])},J.prototype.removeCoordinate=function(t){this.changed();var e=t.split(".").map(function(t){return parseInt(t,10)}),r=this.coordinates[e[0]];r&&(r.splice(e[1],1),r.length<3&&this.coordinates.splice(e[0],1))},J.prototype.getCoordinate=function(t){var e=t.split(".").map(function(t){return parseInt(t,10)}),r=this.coordinates[e[0]];return JSON.parse(JSON.stringify(r[e[1]]))},J.prototype.getCoordinates=function(){return this.coordinates.map(function(t){return t.concat([t[0]])})},J.prototype.updateCoordinate=function(t,e,r){this.changed();var n=t.split("."),o=parseInt(n[0],10),i=parseInt(n[1],10);void 0===this.coordinates[o]&&(this.coordinates[o]=[]),this.coordinates[o][i]=[e,r]};var W={MultiPoint:z,MultiLineString:V,MultiPolygon:J},q=function(t,e,r,n,o){var i=r.split("."),a=parseInt(i[0],10),s=i[1]?i.slice(1).join("."):null;return t[a][e](s,n,o)},H=function(t,e){if(G.call(this,t,e),delete this.coordinates,this.model=W[e.geometry.type],void 0===this.model)throw new TypeError(e.geometry.type+" is not a valid type");this.features=this._coordinatesToFeatures(e.geometry.coordinates)};function K(t){this.map=t.map,this.drawConfig=JSON.parse(JSON.stringify(t.options||{})),this._ctx=t}(H.prototype=Object.create(G.prototype))._coordinatesToFeatures=function(t){var e=this,r=this.model.bind(this);return t.map(function(t){return new r(e.ctx,{id:$(),type:y,properties:{},geometry:{coordinates:t,type:e.type.replace("Multi","")}})})},H.prototype.isValid=function(){return this.features.every(function(t){return t.isValid()})},H.prototype.setCoordinates=function(t){this.features=this._coordinatesToFeatures(t),this.changed()},H.prototype.getCoordinate=function(t){return q(this.features,"getCoordinate",t)},H.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.features.map(function(t){return t.type===g?t.getCoordinates():t.coordinates})))},H.prototype.updateCoordinate=function(t,e,r){q(this.features,"updateCoordinate",t,e,r),this.changed()},H.prototype.addCoordinate=function(t,e,r){q(this.features,"addCoordinate",t,e,r),this.changed()},H.prototype.removeCoordinate=function(t){q(this.features,"removeCoordinate",t),this.changed()},H.prototype.getFeatures=function(){return this.features},K.prototype.setSelected=function(t){return this._ctx.store.setSelected(t)},K.prototype.setSelectedCoordinates=function(t){var e=this;this._ctx.store.setSelectedCoordinates(t),t.reduce(function(t,r){return void 0===t[r.feature_id]&&(t[r.feature_id]=!0,e._ctx.store.get(r.feature_id).changed()),t},{})},K.prototype.getSelected=function(){return this._ctx.store.getSelected()},K.prototype.getSelectedIds=function(){return this._ctx.store.getSelectedIds()},K.prototype.isSelected=function(t){return this._ctx.store.isSelected(t)},K.prototype.getFeature=function(t){return this._ctx.store.get(t)},K.prototype.select=function(t){return this._ctx.store.select(t)},K.prototype.deselect=function(t){return this._ctx.store.deselect(t)},K.prototype.deleteFeature=function(t,e){return void 0===e&&(e={}),this._ctx.store.delete(t,e)},K.prototype.addFeature=function(t){return this._ctx.store.add(t)},K.prototype.clearSelectedFeatures=function(){return this._ctx.store.clearSelected()},K.prototype.clearSelectedCoordinates=function(){return this._ctx.store.clearSelectedCoordinates()},K.prototype.setActionableState=function(t){void 0===t&&(t={});var e={trash:t.trash||!1,combineFeatures:t.combineFeatures||!1,uncombineFeatures:t.uncombineFeatures||!1};return this._ctx.events.actionable(e)},K.prototype.changeMode=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),this._ctx.events.changeMode(t,e,r)},K.prototype.updateUIClasses=function(t){return this._ctx.ui.queueMapClasses(t)},K.prototype.activateUIButton=function(t){return this._ctx.ui.setActiveButton(t)},K.prototype.featuresAt=function(t,e,r){if(void 0===r&&(r="click"),"click"!==r&&"touch"!==r)throw new Error("invalid buffer type");return N[r](t,e,this._ctx)},K.prototype.newFeature=function(t){var e=t.geometry.type;return e===v?new z(this._ctx,t):e===m?new V(this._ctx,t):e===g?new J(this._ctx,t):new H(this._ctx,t)},K.prototype.isInstanceOf=function(t,e){if(t===v)return e instanceof z;if(t===m)return e instanceof V;if(t===g)return e instanceof J;if("MultiFeature"===t)return e instanceof H;throw new Error("Unknown feature class: "+t)},K.prototype.doRender=function(t){return this._ctx.store.featureChanged(t)},K.prototype.onSetup=function(){},K.prototype.onDrag=function(){},K.prototype.onClick=function(){},K.prototype.onMouseMove=function(){},K.prototype.onMouseDown=function(){},K.prototype.onMouseUp=function(){},K.prototype.onMouseOut=function(){},K.prototype.onKeyUp=function(){},K.prototype.onKeyDown=function(){},K.prototype.onTouchStart=function(){},K.prototype.onTouchMove=function(){},K.prototype.onTouchEnd=function(){},K.prototype.onTap=function(){},K.prototype.onStop=function(){},K.prototype.onTrash=function(){},K.prototype.onCombineFeature=function(){},K.prototype.onUncombineFeature=function(){},K.prototype.toDisplayFeatures=function(){throw new Error("You must over
1write toDisplayFeatures")};var Y={drag:"onDrag",click:"onClick",mousemove:"onMouseMove",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseout:"onMouseOut",keyup:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",tap:"onTap"},Z=Object.keys(Y);function Q(t){return[].concat(t).filter(function(t){return void 0!==t})}function X(){var t=this;if(!t.ctx.map||void 0===t.ctx.map.getSource(u))return l();var e=t.ctx.events.currentModeName();t.ctx.ui.queueMapClasses({mode:e});var r=[],n=[];t.isDirty?n=t.getAllIds():(r=t.getChangedIds().filter(function(e){return void 0!==t.get(e)}),n=t.sources.hot.filter(function(e){return e.properties.id&&-1===r.indexOf(e.properties.id)&&void 0!==t.get(e.properties.id)}).map(function(t){return t.properties.id})),t.sources.hot=[];var o=t.sources.cold.length;t.sources.cold=t.isDirty?[]:t.sources.cold.filter(function(t){var e=t.properties.id||t.properties.parent;return-1===r.indexOf(e)});var i=o!==t.sources.cold.length||n.length>0;function a(r,n){var o=t.get(r).internal(e);t.ctx.events.currentModeRender(o,function(e){t.sources[n].push(e)})}if(r.forEach(function(t){return a(t,"hot")}),n.forEach(function(t){return a(t,"cold")}),i&&t.ctx.map.getSource(c).setData({type:b,features:t.sources.cold}),t.ctx.map.getSource(u).setData({type:b,features:t.sources.hot}),t._emitSelectionChange&&(t.ctx.map.fire("draw.selectionchange",{features:t.getSelected().map(function(t){return t.toGeoJSON()}),points:t.getSelectedCoordinates().map(function(t){return{type:y,properties:{},geometry:{type:v,coordinates:t.coordinates}}})}),t._emitSelectionChange=!1),t._deletedFeaturesToEmit.length){var s=t._deletedFeaturesToEmit.map(function(t){return t.toGeoJSON()});t._deletedFeaturesToEmit=[],t.ctx.map.fire("draw.delete",{features:s})}function l(){t.isDirty=!1,t.clearChangedIds()}l(),t.ctx.map.fire("draw.render",{})}function tt(t){var e,r=this;this._features={},this._featureIds=new F,this._selectedFeatureIds=new F,this._selectedCoordinates=[],this._changedFeatureIds=new F,this._deletedFeaturesToEmit=[],this._emitSelectionChange=!1,this._mapInitialConfig={},this.ctx=t,this.sources={hot:[],cold:[]},this.render=function(){e||(e=requestAnimationFrame(function(){e=null,X.call(r)}))},this.isDirty=!1}function et(t,e){var r=t._selectedCoordinates.filter(function(e){return t._selectedFeatureIds.has(e.feature_id)});t._selectedCoordinates.length===r.length||e.silent||(t._emitSelectionChange=!0),t._selectedCoordinates=r}tt.prototype.createRenderBatch=function(){var t=this,e=this.render,r=0;return this.render=function(){r++},function(){t.render=e,r>0&&t.render()}},tt.prototype.setDirty=function(){return this.isDirty=!0,this},tt.prototype.featureChanged=function(t){return this._changedFeatureIds.add(t),this},tt.prototype.getChangedIds=function(){return this._changedFeatureIds.values()},tt.prototype.clearChangedIds=function(){return this._changedFeatureIds.clear(),this},tt.prototype.getAllIds=function(){return this._featureIds.values()},tt.prototype.add=function(t){return this.featureChanged(t.id),this._features[t.id]=t,this._featureIds.add(t.id),this},tt.prototype.delete=function(t,e){var r=this;return void 0===e&&(e={}),Q(t).forEach(function(t){r._featureIds.has(t)&&(r._featureIds.delete(t),r._selectedFeatureIds.delete(t),e.silent||-1===r._deletedFeaturesToEmit.indexOf(r._features[t])&&r._deletedFeaturesToEmit.push(r._features[t]),delete r._features[t],r.isDirty=!0)}),et(this,e),this},tt.prototype.get=function(t){return this._features[t]},tt.prototype.getAll=function(){var t=this;return Object.keys(this._features).map(function(e){return t._features[e]})},tt.prototype.select=function(t,e){var r=this;return void 0===e&&(e={}),Q(t).forEach(function(t){r._selectedFeatureIds.has(t)||(r._selectedFeatureIds.add(t),r._changedFeatureIds.add(t),e.silent||(r._emitSelectionChange=!0))}),this},tt.prototype.deselect=function(t,e){var r=this;return void 0===e&&(e={}),Q(t).forEach(function(t){r._selectedFeatureIds.has(t)&&(r._selectedFeatureIds.delete(t),r._changedFeatureIds.add(t),e.silent||(r._emitSelectionChange=!0))}),et(this,e),this},tt.prototype.clearSelected=function(t){return void 0===t&&(t={}),this.deselect(this._selectedFeatureIds.values(),{silent:t.silent}),this},tt.prototype.setSelected=function(t,e){var r=this;return void 0===e&&(e={}),t=Q(t),this.deselect(this._selectedFeatureIds.values().filter(function(e){return-1===t.indexOf(e)}),{silent:e.silent}),this.select(t.filter(function(t){return!r._selectedFeatureIds.has(t)}),{silent:e.silent}),this},tt.prototype.setSelectedCoordinates=function(t){return this._selectedCoordinates=t,this._emitSelectionChange=!0,this},tt.prototype.clearSelectedCoordinates=function(){return this._selectedCoordinates=[],this._emitSelectionChange=!0,this},tt.prototype.getSelectedIds=function(){return this._selectedFeatureIds.values()},tt.prototype.getSelected=function(){var t=this;return this._selectedFeatureIds.values().map(function(e){return t.get(e)})},tt.prototype.getSelectedCoordinates=function(){var t=this;return this._selectedCoordinates.map(function(e){return{coordinates:t.get(e.feature_id).getCoordinate(e.coord_path)}})},tt.prototype.isSelected=function(t){return this._selectedFeatureIds.has(t)},tt.prototype.setFeatureProperty=function(t,e,r){this.get(t).setProperty(e,r),this.featureChanged(t)},tt.prototype.storeMapConfig=function(){var t=this;P.forEach(function(e){t.ctx.map[e]&&(t._mapInitialConfig[e]=t.ctx.map[e].isEnabled())})},tt.prototype.restoreMapConfig=function(){var t=this;Object.keys(this._mapInitialConfig).forEach(function(e){t._mapInitialConfig[e]?t.ctx.map[e].enable():t.ctx.map[e].disable()})},tt.prototype.getInitialConfigValue=function(t){return void 0===this._mapInitialConfig[t]||this._mapInitialConfig[t]};var rt=function(){for(var t=arguments,e={},r=0;r<arguments.length;r++){var n=t[r];for(var o in n)nt.call(n,o)&&(e[o]=n[o])}return e},nt=Object.prototype.hasOwnProperty,ot=["mode","feature","mouse"];function it(e){var r=null,n=null,o={onRemove:function(){return e.map.off("load",o.connect),clearInterval(n),o.removeLayers(),e.store.restoreMapConfig(),e.ui.removeButtons(),e.events.removeEventListeners(),e.ui.clearMapClasses(),e.map=null,e.container=null,e.store=null,r&&r.parentNode&&r.parentNode.removeChild(r),r=null,this},connect:function(){e.map.off("load",o.connect),clearInterval(n),o.addLayers(),e.store.storeMapConfig(),e.events.addEventListeners()},onAdd:function(i){var a=i.fire;return i.fire=function(t,e){var r=arguments;return 1===a.length&&1!==arguments.length&&(r=[rt({},{type:t},e)]),a.apply(i,r)},e.map=i,e.events=function(e){var r=Object.keys(e.options.modes).reduce(function(t,r){return t[r]=function(t){var e=Object.keys(t);return function(r,n){void 0===n&&(n={});var o={},i=e.reduce(function(e,r){return e[r]=t[r],e},new K(r));return{start:function(){var e=this;o=i.onSetup(n),Z.forEach(function(r){var n,a=Y[r],s=function(){return!1};t[a]&&(s=function(){return!0}),e.on(r,s,(n=a,function(t){return i[n](o,t)}))})},stop:function(){i.onStop(o)},trash:function(){i.onTrash(o)},combineFeatures:function(){i.onCombineFeatures(o)},uncombineFeatures:function(){i.onUncombineFeatures(o)},render:function(t,e){i.toDisplayFeatures(o,t,e)}}}}(e.options.modes[r]),t},{}),n={},o={},i={},a=null,s=null;i.drag=function(t,r){r({point:t.point,time:(new Date).getTime()})?(e.ui.queueMapClasses({mouse:"drag"}),s.drag(t)):t.originalEvent.stopPropagation()},i.mousedrag=function(t){i.drag(t,function(t){return!D(n,t)})},i.touchdrag=function(t){i.drag(t,function(t){return!U(o,t)})},i.mousemove=function(t){if(1===(void 0!==t.originalEvent.buttons?t.originalEvent.buttons:t.originalEvent.which))return i.mousedrag(t);var r=j(t,e);t.featureTarget=r,s.mousemove(t)},i.mousedown=function(t){n={time:(new Date).getTime(),point:t.point};var r=j(t,e);t.featureTarget=r,s.mousedown(t)},i.mouseup=function(t){var r=j(t,e);t.featureTarget=r,D(n,{point:t.point,time:(new Date).getTime()})?s.click(t):s.mouseup(t)},i.mouseout=function(t){s.mouseout(t)},i.touchstart=function(t){if(t.originalEvent.preventDefault(),e.options.touchEnabled){o={time:(new Date).getTime(),point:t.point};var r=N.touch(t,null,e)[0];t.featureTarget=r,s.touchstart(t)}},i.touchmove=function(t){if(t.originalEvent.preventDefault(),e.options.touchEnabled)return s.touchmove(t),i.touchdrag(t)},i.touchend=function(t){if(t.originalEvent.preventDefault(),e.options.touchEnabled){var r=N.touch(t,null,e)[0];t.featureTarget=r,U(o,{time:(new Date).getTime(),point:t.point})?s.tap(t):s.touchend(t)}};var u=function(t){return!(8===t||46===t||t>=48&&t<=57)};function c(n,o,i){void 0===i&&(i={}),s.stop();var u=r[n];
1if(void 0===u)throw new Error(n+" is not valid");a=n;var c=u(e,o);s=t(c,e),i.silent||e.map.fire("draw.modechange",{mode:n}),e.store.setDirty(),e.store.render()}i.keydown=function(t){"mapboxgl-canvas"===(t.srcElement||t.target).classList[0]&&(8!==t.keyCode&&46!==t.keyCode||!e.options.controls.trash?u(t.keyCode)?s.keydown(t):49===t.keyCode&&e.options.controls.point?c(w.DRAW_POINT):50===t.keyCode&&e.options.controls.line_string?c(w.DRAW_LINE_STRING):51===t.keyCode&&e.options.controls.polygon&&c(w.DRAW_POLYGON):(t.preventDefault(),s.trash()))},i.keyup=function(t){u(t.keyCode)&&s.keyup(t)},i.zoomend=function(){e.store.changeZoom()},i.data=function(t){if("style"===t.dataType){var r=e.setup,n=e.map,o=e.options,i=e.store;o.styles.some(function(t){return n.getLayer(t.id)})||(r.addLayers(),i.setDirty(),i.render())}};var l={trash:!1,combineFeatures:!1,uncombineFeatures:!1};return{start:function(){a=e.options.defaultMode,s=t(r[a](e),e)},changeMode:c,actionable:function(t){var r=!1;Object.keys(t).forEach(function(e){if(void 0===l[e])throw new Error("Invalid action type");l[e]!==t[e]&&(r=!0),l[e]=t[e]}),r&&e.map.fire("draw.actionable",{actions:l})},currentModeName:function(){return a},currentModeRender:function(t,e){return s.render(t,e)},fire:function(t,e){i[t]&&i[t](e)},addEventListeners:function(){e.map.on("mousemove",i.mousemove),e.map.on("mousedown",i.mousedown),e.map.on("mouseup",i.mouseup),e.map.on("data",i.data),e.map.on("touchmove",i.touchmove),e.map.on("touchstart",i.touchstart),e.map.on("touchend",i.touchend),e.container.addEventListener("mouseout",i.mouseout),e.options.keybindings&&(e.container.addEventListener("keydown",i.keydown),e.container.addEventListener("keyup",i.keyup))},removeEventListeners:function(){e.map.off("mousemove",i.mousemove),e.map.off("mousedown",i.mousedown),e.map.off("mouseup",i.mouseup),e.map.off("data",i.data),e.map.off("touchmove",i.touchmove),e.map.off("touchstart",i.touchstart),e.map.off("touchend",i.touchend),e.container.removeEventListener("mouseout",i.mouseout),e.options.keybindings&&(e.container.removeEventListener("keydown",i.keydown),e.container.removeEventListener("keyup",i.keyup))},trash:function(t){s.trash(t)},combineFeatures:function(){s.combineFeatures()},uncombineFeatures:function(){s.uncombineFeatures()},getMode:function(){return a}}}(e),e.ui=function(t){var e={},r=null,n={mode:null,feature:null,mouse:null},o={mode:null,feature:null,mouse:null};function i(t){o=rt(o,t)}function a(){var e,r;if(t.container){var i=[],a=[];ot.forEach(function(t){o[t]!==n[t]&&(i.push(t+"-"+n[t]),null!==o[t]&&a.push(t+"-"+o[t]))}),i.length>0&&(e=t.container.classList).remove.apply(e,i),a.length>0&&(r=t.container.classList).add.apply(r,a),n=rt(n,o)}}function u(t,e){void 0===e&&(e={});var n=document.createElement("button");return n.className="mapbox-gl-draw_ctrl-draw-btn "+e.className,n.setAttribute("title",e.title),e.container.appendChild(n),n.addEventListener("click",function(n){if(n.preventDefault(),n.stopPropagation(),n.target===r)return c(),void e.onDeactivate();l(t),e.onActivate()},!0),n}function c(){r&&(r.classList.remove(s),r=null)}function l(t){c();var n=e[t];n&&n&&"trash"!==t&&(n.classList.add(s),r=n)}return{setActiveButton:l,queueMapClasses:i,updateMapClasses:a,clearMapClasses:function(){i({mode:null,feature:null,mouse:null}),a()},addButtons:function(){var r=t.options.controls,n=document.createElement("div");return n.className="mapboxgl-ctrl-group mapboxgl-ctrl",r?(r[h.LINE]&&(e[h.LINE]=u(h.LINE,{container:n,className:"mapbox-gl-draw_line",title:"LineString tool "+(t.options.keybindings?"(l)":""),onActivate:function(){return t.events.changeMode(w.DRAW_LINE_STRING)},onDeactivate:function(){return t.events.trash()}})),r[h.POLYGON]&&(e[h.POLYGON]=u(h.POLYGON,{container:n,className:"mapbox-gl-draw_polygon",title:"Polygon tool "+(t.options.keybindings?"(p)":""),onActivate:function(){return t.events.changeMode(w.DRAW_POLYGON)},onDeactivate:function(){return t.events.trash()}})),r[h.POINT]&&(e[h.POINT]=u(h.POINT,{container:n,className:"mapbox-gl-draw_point",title:"Marker tool "+(t.options.keybindings?"(m)":""),onActivate:function(){return t.events.changeMode(w.DRAW_POINT)},onDeactivate:function(){return t.events.trash()}})),r.trash&&(e.trash=u("trash",{container:n,className:"mapbox-gl-draw_trash",title:"Delete",onActivate:function(){t.events.trash()}})),r.combine_features&&(e.combine_features=u("combineFeatures",{container:n,className:"mapbox-gl-draw_combine",title:"Combine",onActivate:function(){t.events.combineFeatures()}})),r.uncombine_features&&(e.uncombine_features=u("uncombineFeatures",{container:n,className:"mapbox-gl-draw_uncombine",title:"Uncombine",onActivate:function(){t.events.uncombineFeatures()}})),n):n},removeButtons:function(){Object.keys(e).forEach(function(t){var r=e[t];r.parentNode&&r.parentNode.removeChild(r),delete e[t]})}}}(e),e.container=i.getContainer(),e.store=new tt(e),r=e.ui.addButtons(),e.o
1ptions.boxSelect&&(i.boxZoom.disable(),i.dragPan.disable(),i.dragPan.enable()),i.loaded()?o.connect():(i.on("load",o.connect),n=setInterval(function(){i.loaded()&&o.connect()},16)),e.events.start(),r},addLayers:function(){e.map.addSource(c,{data:{type:b,features:[]},type:"geojson"}),e.map.addSource(u,{data:{type:b,features:[]},type:"geojson"}),e.options.styles.forEach(function(t){e.map.addLayer(t)}),e.store.setDirty(!0),e.store.render()},removeLayers:function(){e.options.styles.forEach(function(t){e.map.getLayer(t.id)&&e.map.removeLayer(t.id)}),e.map.getSource(c)&&e.map.removeSource(c),e.map.getSource(u)&&e.map.removeSource(u)}};return e.setup=o,o}function at(t){return function(e){var r=e.featureTarget;return!!r&&!!r.properties&&r.properties.meta===t}}function st(t){return!!t.featureTarget&&!!t.featureTarget.properties&&t.featureTarget.properties.active===C&&t.featureTarget.properties.meta===A}function ut(t){return!!t.featureTarget&&!!t.featureTarget.properties&&t.featureTarget.properties.active===M&&t.featureTarget.properties.meta===A}function ct(t){return void 0===t.featureTarget}function lt(t){var e=t.featureTarget;return!!e&&!!e.properties&&e.properties.meta===I}function ft(t){return!!t.originalEvent&&!0===t.originalEvent.shiftKey}function pt(t){return 27===t.keyCode}function dt(t){return 13===t.keyCode}var ht=yt;function yt(t,e){this.x=t,this.y=e}function gt(t,e){var r=e.getBoundingClientRect();return new ht(t.clientX-r.left-(e.clientLeft||0),t.clientY-r.top-(e.clientTop||0))}function mt(t,e,r,n){return{type:y,properties:{meta:I,parent:t,coord_path:r,active:n?C:M},geometry:{type:v,coordinates:e}}}function vt(t,e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n,o=t.geometry,i=o.type,a=o.coordinates,s=t.properties&&t.properties.id,u=[];function c(t,r){var n="",o=null;t.forEach(function(t,i){var a=null!=r?r+"."+i:String(i),c=mt(s,t,a,l(a));if(e.midpoints&&o){var f=function(t,e,r){var n=e.geometry.coordinates,o=r.geometry.coordinates;if(n[1]>85||n[1]<-85||o[1]>85||o[1]<-85)return null;var i={lng:(n[0]+o[0])/2,lat:(n[1]+o[1])/2};return{type:y,properties:{meta:E,parent:t,lng:i.lng,lat:i.lat,coord_path:r.properties.coord_path},geometry:{type:v,coordinates:[i.lng,i.lat]}}}(s,o,c);f&&u.push(f)}o=c;var p=JSON.stringify(t);n!==p&&u.push(c),0===i&&(n=p)})}function l(t){return!!e.selectedPaths&&-1!==e.selectedPaths.indexOf(t)}return i===v?u.push(mt(s,a,r,l(r))):i===g?a.forEach(function(t,e){c(t,null!==r?r+"."+e:String(e))}):i===m?c(a,r):0===i.indexOf(_)&&(n=i.replace(_,""),a.forEach(function(r,o){var i={type:y,properties:t.properties,geometry:{type:n,coordinates:r}};u=u.concat(vt(i,e,o))})),u}yt.prototype={clone:function(){return new yt(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=e*this.x-r*this.y,o=r*this.x+e*this.y;return this.x=n,this.y=o,this}
1,_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),o=e.x+r*(this.x-e.x)-n*(this.y-e.y),i=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=o,this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},yt.convert=function(t){return t instanceof yt?t:Array.isArray(t)?new yt(t[0],t[1]):t};var bt=function(t){setTimeout(function(){t.map&&t.map.doubleClickZoom&&t._ctx&&t._ctx.store&&t._ctx.store.getInitialConfigValue&&t._ctx.store.getInitialConfigValue("doubleClickZoom")&&t.map.doubleClickZoom.enable()},0)},_t=function(t){setTimeout(function(){t.map&&t.map.doubleClickZoom&&t.map.doubleClickZoom.disable()},0)},wt=function(t){if(!t||!t.type)return null;var e=xt[t.type];return e?"geometry"===e?{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:t}]}:"feature"===e?{type:"FeatureCollection",features:[t]}:"featurecollection"===e?t:void 0:null},xt={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"};function St(t){switch(t&&t.type||null){case"FeatureCollection":return t.features=t.features.reduce(function(t,e){return t.concat(St(e))},[]),t;case"Feature":return t.geometry?St(t.geometry).map(function(e){var r={type:"Feature",properties:JSON.parse(JSON.stringify(t.properties)),geometry:e};return void 0!==t.id&&(r.id=t.id),r}):[t];case"MultiPoint":return t.coordinates.map(function(t){return{type:"Point",coordinates:t}});case"MultiPolygon":return t.coordinates.map(function(t){return{type:"Polygon",coordinates:t}});case"MultiLineString":return t.coordinates.map(function(t){return{type:"LineString",coordinates:t}});case"GeometryCollection":return t.geometries.map(St).reduce(function(t,e){return t.concat(e)},[]);case"Point":case"Polygon":case"LineString":return[t]}}var At=R(function(t){var e=t.exports=function(t){return new r(t)};function r(t){this.value=t}function n(t,e,r){var n=[],a=[],l=!0;return function t(f){var p=r?o(f):f,d={},h=!0,y={node:p,node_:f,path:[].concat(n),parent:a[a.length-1],parents:a,key:n.slice(-1)[0],isRoot:0===n.length,level:n.length,circular:null,update:function(t,e){y.isRoot||(y.parent.node[y.key]=t),y.node=t,e&&(h=!1)},delete:function(t){delete y.parent.node[y.key],t&&(h=!1)},remove:function(t){s(y.parent.node)?y.parent.node.splice(y.key,1):delete y.parent.node[y.key],t&&(h=!1)},keys:null,before:function(t){d.before=t},after:function(t){d.after=t},pre:function(t){d.pre=t},post:function(t){d.post=t},stop:function(){l=!1},block:function(){h=!1}};if(!l)return y;function g(){if("object"==typeof y.node&&null!==y.node){y.keys&&y.node_===y.node||(y.keys=i(y.node)),y.isLeaf=0==y.keys.length;for(var t=0;t<a.length;t++)if(a[t].node_===f){y.circular=a[t];break}}else y.isLeaf=!0,y.keys=null;y.notLeaf=!y.isLeaf,y.notRoot=!y.isRoot}g();var m=e.call(y,y.node);return void 0!==m&&y.update&&y.update(m),d.before&&d.before.call(y,y.node),h?("object"!=typeof y.node||null===y.node||y.circular||(a.push(y),g(),u(y.keys,function(e,o){n.push(e),d.pre&&d.pre.call(y,y.node[e],e);var i=t(y.node[e]);r&&c.call(y.node,e)&&(y.node[e]=i.node),i.isLast=o==y.keys.length-1,i.isFirst=0==o,d.post&&d.post.call(y,i),n.pop()}),a.pop()),d.after&&d.after.call(y,y.node),y):y}(t).node}function o(t){if("object"==typeof t&&null!==t){var e;if(s(t))e=[];else if("[object Date]"===a(t))e=new Date(t.getTime?t.getTime():t);else if(function(t){return"[object RegExp]"===a(t)}(t))e=new RegExp(t);else if(function(t){return"[object Error]"===a(t)}(t))e={message:t.message};else if(function(t){return"[object Boolean]"===a(t)}(t))e=new Boolean(t);else if(function(t){return"[object Number]"===a(t)}(t))e=new Number(t);else if(function(t){return"[object String]"===a(t)}(t))e=new String(t);else if(Object.create&&Object.getPrototypeOf)e=Object.create(Object.getPrototypeOf(t));else if(t.constructor===Object)e={};else{var r=t.constructor&&t.constructor.prototype||t.__proto__||{},n=function(){};n.prototype=r,e=new n}return u(i(t),function(r){e[r]=t[r]}),e}return t}r.prototype.get=function(t){for(var e=this.value,r=0;r<t.length;r++){var n=t[r];
1if(!e||!c.call(e,n)){e=void 0;break}e=e[n]}return e},r.prototype.has=function(t){for(var e=this.value,r=0;r<t.length;r++){var n=t[r];if(!e||!c.call(e,n))return!1;e=e[n]}return!0},r.prototype.set=function(t,e){for(var r=this.value,n=0;n<t.length-1;n++){var o=t[n];c.call(r,o)||(r[o]={}),r=r[o]}return r[t[n]]=e,e},r.prototype.map=function(t){return n(this.value,t,!0)},r.prototype.forEach=function(t){return this.value=n(this.value,t,!1),this.value},r.prototype.reduce=function(t,e){var r=1===arguments.length,n=r?this.value:e;return this.forEach(function(e){this.isRoot&&r||(n=t.call(this,n,e))}),n},r.prototype.paths=function(){var t=[];return this.forEach(function(e){t.push(this.path)}),t},r.prototype.nodes=function(){var t=[];return this.forEach(function(e){t.push(this.node)}),t},r.prototype.clone=function(){var t=[],e=[];return function r(n){for(var a=0;a<t.length;a++)if(t[a]===n)return e[a];if("object"==typeof n&&null!==n){var s=o(n);return t.push(n),e.push(s),u(i(n),function(t){s[t]=r(n[t])}),t.pop(),e.pop(),s}return n}(this.value)};var i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};function a(t){return Object.prototype.toString.call(t)}var s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},u=function(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)};u(i(r.prototype),function(t){e[t]=function(e){var n=[].slice.call(arguments,1),o=new r(e);return o[t].apply(o,n)}});var c=Object.hasOwnProperty||function(t,e){return e in t}}),Et=It;function It(t){if(!(this instanceof It))return new It(t);this._bbox=t||[1/0,1/0,-1/0,-1/0],this._valid=!!t}It.prototype.include=function(t){return this._valid=!0,this._bbox[0]=Math.min(this._bbox[0],t[0]),this._bbox[1]=Math.min(this._bbox[1],t[1]),this._bbox[2]=Math.max(this._bbox[2],t[0]),this._bbox[3]=Math.max(this._bbox[3],t[1]),this},It.prototype.equals=function(t){var e;return e=t instanceof It?t.bbox():t,this._bbox[0]==e[0]&&this._bbox[1]==e[1]&&this._bbox[2]==e[2]&&this._bbox[3]==e[3]},It.prototype.center=function(t){return this._valid?[(this._bbox[0]+this._bbox[2])/2,(this._bbox[1]+this._bbox[3])/2]:null},It.prototype.union=function(t){var e;return this._valid=!0,e=t instanceof It?t.bbox():t,this._bbox[0]=Math.min(this._bbox[0],e[0]),this._bbox[1]=Math.min(this._bbox[1],e[1]),this._bbox[2]=Math.max(this._bbox[2],e[2]),this._bbox[3]=Math.max(this._bbox[3],e[3]),this},It.prototype.bbox=function(){return this._valid?this._bbox:null},It.prototype.contains=function(t){if(!t)return this._fastContains();if(!this._valid)return null;var e=t[0],r=t[1];return this._bbox[0]<=e&&this._bbox[1]<=r&&this._bbox[2]>=e&&this._bbox[3]>=r},It.prototype.intersect=function(t){return this._valid?(e=t instanceof It?t.bbox():t,!(this._bbox[0]>e[2]||this._bbox[2]<e[0]||this._bbox[3]<e[1]||this._bbox[1]>e[3])):null;var e},It.prototype._fastContains=function(){if(!this._valid)return new Function("return null;");var t="return "+this._bbox[0]+"<= ll[0] &&"+this._bbox[1]+"<= ll[1] &&"+this._bbox[2]+">= ll[0] &&"+this._bbox[3]+">= ll[1]";return new Function("ll",t)},It.prototype.polygon=function(){return this._valid?{type:"Polygon",coordinates:[[[this._bbox[0],this._bbox[1]],[this._bbox[2],this._bbox[1]],[this._bbox[2],this._bbox[3]],[this._bbox[0],this._bbox[3]],[this._bbox[0],this._bbox[1]]]]}:null};var Ct={features:["FeatureCollection"],coordinates:["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],geometry:["Feature"],geometries:["GeometryCollection"]},Mt=Object.keys(Ct),Pt=function(t){return Tt(t).bbox()};function Tt(t){for(var e=Et(),r=function(t){if(!t)return[];var e=St(wt(t)),r=[];return e.features.forEach(function(t){t.geometry&&(r=r.concat(function t(e){return Array.isArray(e)&&e.length&&"number"==typeof e[0]?[e]:e.reduce(function(e,r){return Array.isArray(r)&&Array.isArray(r[0])?e.concat(t(r)):(e.push(r),e)},[])}(t.geometry.coordinates)))}),r}(t),n=0;n<r.length;n++)e.include(r[n]);return e}function Ot(t,e){var r=-90,n=90,o=-90,i=90,a=270,s=-270;t.forEach(function(t){var e=Pt(t),u=e[1],c=e[3],l=e[0],f=e[2];u>r&&(r=u),c<n&&(n=c),c>o&&(o=c),u<i&&(i=u),l<a&&(a=l),f>s&&(s=f)});var u=e;return r+u.lat>85&&(u.lat=85-r),o+u.lat>90&&(u.lat=90-o),n+u.lat<-85&&(u.lat=-85-n),i+u.lat<-90&&(u.lat=-90-i),a+u.lng<=-270&&(u.lng+=360*Math.ceil(Math.abs(u.lng)/360)),s+u.lng>=270&&(u.lng-=360*Math.ceil(Math.abs(u.lng)/360)),u}function Ft(t,e){var r=Ot(t.map(function(t){return t.toGeoJSON()}),e);t.forEach(function(t){var e,n=t.getCoordinates(),o=function(t){var e={lng:t[0]+r.lng,lat:t[1]+r.lat};return[e.lng,e.lat]},i=function(t){return t.map(function(t){return o(t)})};t.type===v?e=o(n):t.type===m||"MultiPoint"===t.type?e=n.map(o):t.type===g||"MultiLineString"===t.type?e=n.map(i):"MultiPolygon"===t.type&&(e=n.map(function(t){return t.map(function(t){return i(t)})}
1)),t.incomingCoords(e)})}Pt.polygon=function(t){return Tt(t).polygon()},Pt.bboxify=function(t){return At(t).map(function(t){t&&Mt.some(function(e){return!!t[e]&&-1!==Ct[e].indexOf(t.type)})&&(t.bbox=Tt(t).bbox(),this.update(t))})};var Lt={onSetup:function(t){var e=this,r={dragMoveLocation:null,boxSelectStartLocation:null,boxSelectElement:void 0,boxSelecting:!1,canBoxSelect:!1,dragMoving:!1,canDragMove:!1,initiallySelectedFeatureIds:t.featureIds||[]};return this.setSelected(r.initiallySelectedFeatureIds.filter(function(t){return void 0!==e.getFeature(t)})),this.fireActionable(),this.setActionableState({combineFeatures:!0,uncombineFeatures:!0,trash:!0}),r},fireUpdate:function(){this.map.fire(S,{action:"move",features:this.getSelected().map(function(t){return t.toGeoJSON()})})},fireActionable:function(){var t=this,e=this.getSelected(),r=e.filter(function(e){return t.isInstanceOf("MultiFeature",e)}),n=!1;if(e.length>1){n=!0;var o=e[0].type.replace("Multi","");e.forEach(function(t){t.type.replace("Multi","")!==o&&(n=!1)})}var i=r.length>0,a=e.length>0;this.setActionableState({combineFeatures:n,uncombineFeatures:i,trash:a})},getUniqueIds:function(t){return t.length?t.map(function(t){return t.properties.id}).filter(function(t){return void 0!==t}).reduce(function(t,e){return t.add(e),t},new F).values():[]},stopExtendedInteractions:function(t){t.boxSelectElement&&(t.boxSelectElement.parentNode&&t.boxSelectElement.parentNode.removeChild(t.boxSelectElement),t.boxSelectElement=null),this.map.dragPan.enable(),t.boxSelecting=!1,t.canBoxSelect=!1,t.dragMoving=!1,t.canDragMove=!1},onStop:function(){bt(this)},onMouseMove:function(t){return this.stopExtendedInteractions(t),!0},onMouseOut:function(t){return!t.dragMoving||this.fireUpdate()}};Lt.onTap=Lt.onClick=function(t,e){return ct(e)?this.clickAnywhere(t,e):at(I)(e)?this.clickOnVertex(t,e):function(t){return!!t.featureTarget&&!!t.featureTarget.properties&&t.featureTarget.properties.meta===A}(e)?this.clickOnFeature(t,e):void 0},Lt.clickAnywhere=function(t){var e=this,r=this.getSelectedIds();r.length&&(this.clearSelectedFeatures(),r.forEach(function(t){return e.doRender(t)})),bt(this),this.stopExtendedInteractions(t)},Lt.clickOnVertex=function(t,e){this.changeMode(w.DIRECT_SELECT,{featureId:e.featureTarget.properties.parent,coordPath:e.featureTarget.properties.coord_path,startPos:e.lngLat}),this.updateUIClasses({mouse:f})},Lt.startOnActiveFeature=function(t,e){this.stopExtendedInteractions(t),this.map.dragPan.disable(),this.doRender(e.featureTarget.properties.id),t.canDragMove=!0,t.dragMoveLocation=e.lngLat},Lt.clickOnFeature=function(t,e){var r=this;_t(this),this.stopExtendedInteractions(t);var n=ft(e),o=this.getSelectedIds(),i=e.featureTarget.properties.id,a=this.isSelected(i);if(!n&&a&&this.getFeature(i).type!==v)return this.changeMode(w.DIRECT_SELECT,{featureId:i});a&&n?(this.deselect(i),this.updateUIClasses({mouse:p}),1===o.length&&bt(this)):!a&&n?(this.select(i),this.updateUIClasses({mouse:f})):a||n||(o.forEach(function(t){return r.doRender(t)}),this.setSelected(i),this.updateUIClasses({mouse:f})),this.doRender(i)},Lt.onMouseDown=function(t,e){return st(e)?this.startOnActiveFeature
1(t,e):this.drawConfig.boxSelect&&function(t){return!!t.originalEvent&&!!t.originalEvent.shiftKey&&0===t.originalEvent.button}(e)?this.startBoxSelect(t,e):void 0},Lt.startBoxSelect=function(t,e){this.stopExtendedInteractions(t),this.map.dragPan.disable(),t.boxSelectStartLocation=gt(e.originalEvent,this.map.getContainer()),t.canBoxSelect=!0},Lt.onTouchStart=function(t,e){if(st(e))return this.startOnActiveFeature(t,e)},Lt.onDrag=function(t,e){return t.canDragMove?this.dragMove(t,e):this.drawConfig.boxSelect&&t.canBoxSelect?this.whileBoxSelect(t,e):void 0},Lt.whileBoxSelect=function(t,e){t.boxSelecting=!0,this.updateUIClasses({mouse:l}),t.boxSelectElement||(t.boxSelectElement=document.createElement("div"),t.boxSelectElement.classList.add("mapbox-gl-draw_boxselect"),this.map.getContainer().appendChild(t.boxSelectElement));var r=gt(e.originalEvent,this.map.getContainer()),n=Math.min(t.boxSelectStartLocation.x,r.x),o=Math.max(t.boxSelectStartLocation.x,r.x),i=Math.min(t.boxSelectStartLocation.y,r.y),a=Math.max(t.boxSelectStartLocation.y,r.y),s="translate("+n+"px, "+i+"px)";t.boxSelectElement.style.transform=s,t.boxSelectElement.style.WebkitTransform=s,t.boxSelectElement.style.width=o-n+"px",t.boxSelectElement.style.height=a-i+"px"},Lt.dragMove=function(t,e){t.dragMoving=!0,e.originalEvent.stopPropagation();var r={lng:e.lngLat.lng-t.dragMoveLocation.lng,lat:e.lngLat.lat-t.dragMoveLocation.lat};Ft(this.getSelected(),r),t.dragMoveLocation=e.lngLat},Lt.onMouseUp=function(t,e){var r=this;if(t.dragMoving)this.fireUpdate();else if(t.boxSelecting){var n=[t.boxSelectStartLocation,gt(e.originalEvent,this.map.getContainer())],o=this.featuresAt(null,n,"click"),i=this.getUniqueIds(o).filter(function(t){return!r.isSelected(t)});i.length&&(this.select(i),i.forEach(function(t){return r.doRender(t)}),this.updateUIClasses({mouse:f}))}this.stopExtendedInteractions(t)},Lt.toDisplayFeatures=function(t,e,r){e.properties.active=this.isSelected(e.properties.id)?C:M,r(e),this.fireActionable(),e.properties.active===C&&e.geometry.type!==v&&vt(e).forEach(r)},Lt.onTrash=function(){this.deleteFeature(this.getSelectedIds()),this.fireActionable()},Lt.onCombineFeatures=function(){var t=this.getSelected();if(!(0===t.length||t.length<2)){for(var e=[],r=[],n=t[0].type.replace("Multi",""),o=0;o<t.length;o++){var i=t[o];if(i.type.replace("Multi","")!==n)return;
1i.type.includes("Multi")?i.getCoordinates().forEach(function(t){e.push(t)}):e.push(i.getCoordinates()),r.push(i.toGeoJSON())}if(r.length>1){var a=this.newFeature({type:y,properties:r[0].properties,geometry:{type:"Multi"+n,coordinates:e}});this.addFeature(a),this.deleteFeature(this.getSelectedIds(),{silent:!0}),this.setSelected([a.id]),this.map.fire("draw.combine",{createdFeatures:[a.toGeoJSON()],deletedFeatures:r})}this.fireActionable()}},Lt.onUncombineFeatures=function(){var t=this,e=this.getSelected();if(0!==e.length){for(var r=[],n=[],o=function(o){var i=e[o];t.isInstanceOf("MultiFeature",i)&&(i.getFeatures().forEach(function(e){t.addFeature(e),e.properties=i.properties,r.push(e.toGeoJSON()),t.select([e.id])}),t.deleteFeature(i.id,{silent:!0}),n.push(i.toGeoJSON()))},i=0;i<e.length;i++)o(i);r.length>1&&this.map.fire("draw.uncombine",{createdFeatures:r,deletedFeatures:n}),this.fireActionable()}};var Nt=at(I),kt=at(E),jt={fireUpdate:function(){this.map.fire(S,{action:"change_coordinates",features:this.getSelected().map(function(t){return t.toGeoJSON()})})},fireActionable:function(t){this.setActionableState({combineFeatures:!1,uncombineFeatures:!1,trash:t.selectedCoordPaths.length>0})},startDragging:function(t,e){this.map.dragPan.disable(),t.canDragMove=!0,t.dragMoveLocation=e.lngLat},stopDragging:function(t){this.map.dragPan.enable(),t.dragMoving=!1,t.canDragMove=!1,t.dragMoveLocation=null},onVertex:function(t,e){this.startDragging(t,e);var r=e.featureTarget.properties,n=t.selectedCoordPaths.indexOf(r.coord_path);ft(e)||-1!==n?ft(e)&&-1===n&&t.selectedCoordPaths.push(r.coord_path):t.selectedCoordPaths=[r.coord_path];var o=this.pathsToCoordinates(t.featureId,t.selectedCoordPaths);this.setSelectedCoordinates(o)},onMidpoint:function(t,e){this.startDragging(t,e);var r=e.featureTarget.properties;t.feature.addCoordinate(r.coord_path,r.lng,r.lat),this.fireUpdate(),t.selectedCoordPaths=[r.coord_path]},pathsToCoordinates:function(t,e){return e.map(function(e){return{feature_id:t,coord_path:e}})},onFeature:function(t,e){0===t.selectedCoordPaths.length?this.startDragging(t,e):this.stopDragging(t)},dragFeature:function(t,e,r){Ft(this.getSelected(),r),t.dragMoveLocation=e.lngLat},dragVertex:function(t,e,r){for(var n=t.selectedCoordPaths.map(function(e){return t.feature.getCoordinate(e)}),o=Ot(n.map(function(t){return{type:y,properties:{},geometry:{type:v,coordinates:t}}}),r),i=0;i<n.length;i++){var a=n[i];t.feature.updateCoordinate(t.selectedCoordPaths[i],a[0]+o.lng,a[1]+o.lat)}},clickNoTarget:function(){this.changeMode(w.SIMPLE_SELECT)},clickInactive:function(){this.changeMode(w.SIMPLE_SELECT)},clickActiveFeature:function(t){t.selectedCoordPaths=[],this.clearSelectedCoordinates(),t.feature.changed()},onSetup:function(t){var e=t.featureId,r=this.getFeature(e);if(!r)throw new Error("You must provide a featureId to enter direct_select mode");if(r.type===v)throw new TypeError("direct_select mode doesn't handle point features");var n={featureId:e,feature:r,dragMoveLocation:t.startPos||null,dragMoving:!1,canDragMove:!1,selectedCoordPaths:t.coordPath?[t.coordPath]:[]};return this.setSelectedCoordinates(this.pathsToCoordinates(e,n.selectedCoordPaths)),this.setSelected(e),_t(this),this.setActionableState({trash:!0}),n},onStop:function(){bt(this),this.clearSelectedCoordinates()},toDisplayFeatures:function(t,e,r){t.featureId===e.properties.id?(e.properties.active=C,r(e),vt(e,{map:this.map,midpoints:!0,selectedPaths:t.selectedCoordPaths}).forEach(r)):(e.properties.active=M,r(e)),this.fireActionable(t)},onTrash:function(t){t.selectedCoordPaths.sort(function(t,e){return e.localeCompare(t,"en",{numeric:!0})}).forEach(function(e){return t.feature.removeCoordinate(e)}),this.fireUpdate(),t.selectedCoordPaths=[],this.clearSelectedCoordinates(),this.fireActionable(t),!1===t.feature.isValid()&&(this.deleteFeature([t.featureId]),this.changeMode(w.SIMPLE_SELECT,{}))},onMouseMove:function(t,e){var r=st(e),n=Nt(e),o=0===t.selectedCoordPaths.length;return r&&o||n&&!o?this.updateUIClasses({mouse:f}):this.updateUIClasses({mouse:d}),this.stopDragging(t),!0},onMouseOut:function(t){return t.dragMoving&&this.fireUpdate(),!0}};jt.onTouchStart=jt.onMouseDown=function(t,e){return Nt(e)?this.onVertex(t,e):st(e)?this.onFeature(t,e):kt(e)?this.onMidpoint(t,e):void 0},jt.onDrag=function(t,e){if(!0===t.canDragMove){t.dragMoving=!0,e.originalEvent.stopPropagation();var r={lng:e.lngLat.lng-t.dragMoveLocation.lng,lat:e.lngLat.lat-t.dragMoveLocation.lat};t.selectedCoordPaths.length>
10?this.dragVertex(t,e,r):this.dragFeature(t,e,r),t.dragMoveLocation=e.lngLat}},jt.onClick=function(t,e){return ct(e)?this.clickNoTarget(t,e):st(e)?this.clickActiveFeature(t,e):ut(e)?this.clickInactive(t,e):void this.stopDragging(t)},jt.onTap=function(t,e){return ct(e)?this.clickNoTarget(t,e):st(e)?this.clickActiveFeature(t,e):ut(e)?this.clickInactive(t,e):void 0},jt.onTouchEnd=jt.onMouseUp=function(t){t.dragMoving&&this.fireUpdate(),this.stopDragging(t)};var Bt={};function Dt(t,e){return!!t.lngLat&&t.lngLat.lng===e[0]&&t.lngLat.lat===e[1]}Bt.onSetup=function(){var t=this.newFeature({type:y,properties:{},geometry:{type:v,coordinates:[]}});return this.addFeature(t),this.clearSelectedFeatures(),this.updateUIClasses({mouse:l}),this.activateUIButton(h.POINT),this.setActionableState({trash:!0}),{point:t}},Bt.stopDrawingAndRemove=function(t){this.deleteFeature([t.point.id],{silent:!0}),this.changeMode(w.SIMPLE_SELECT)},Bt.onTap=Bt.onClick=function(t,e){this.updateUIClasses({mouse:f}),t.point.updateCoordinate("",e.lngLat.lng,e.lngLat.lat),this.map.fire(x,{features:[t.point.toGeoJSON()]}),this.changeMode(w.SIMPLE_SELECT,{featureIds:[t.point.id]})},Bt.onStop=function(t){this.activateUIButton(),t.point.getCoordinate().length||this.deleteFeature([t.point.id],{silent:!0})},Bt.toDisplayFeatures=function(t,e,r){var n=e.properties.id===t.point.id;if(e.properties.active=n?C:M,!n)return r(e)},Bt.onTrash=Bt.stopDrawingAndRemove,Bt.onKeyUp=function(t,e){if(pt(e)||dt(e))return this.stopDrawingAndRemove(t,e)};var Ut={onSetup:function(){var t=this.newFeature({type:y,properties:{},geometry:{type:g,coordinates:[[]]}});return this.addFeature(t),this.clearSelectedFeatures(),_t(this),this.updateUIClasses({mouse:l}),this.activateUIButton(h.POLYGON),this.setActionableState({trash:!0}),{polygon:t,currentVertexPosition:0}},clickAnywhere:function(t,e){if(t.currentVertexPosition>0&&Dt(e,t.polygon.coordinates[0][t.currentVertexPosition-1]))return this.changeMode(w.SIMPLE_SELECT,{featureIds:[t.polygon.id]});this.updateUIClasses({mouse:l}),t.polygon.updateCoordinate("0."+t.currentVertexPosition,e.lngLat.lng,e.lngLat.lat),t.currentVertexPosition++,t.polygon.updateCoordinate("0."+t.currentVertexPosition,e.lngLat.lng,e.lngLat.lat)},clickOnVertex:function(t){return this.changeMode(w.SIMPLE_SELECT,{featureIds:[t.polygon.id]})},onMouseMove:function(t,e){t.polygon.updateCoordinate("0."+t.currentVertexPosition,e.lngLat.lng,e.lngLat.lat),lt(e)&&this.updateUIClasses({mouse:p})}};Ut.onTap=Ut.onClick=function(t,e){return lt(e)?this.clickOnVertex(t,e):this.clickAnywhere(t,e)},Ut.onKeyUp=function(t,e){pt(e)?(this.deleteFeature([t.polygon.id],{silent:!0}),this.changeMode(w.SIMPLE_SELECT)):dt(e)&&this.changeMode(w.SIMPLE_SELECT,{featureIds:[t.polygon.id]})},Ut.onStop=function(t){this.updateUIClasses({mouse:d}),bt(this),this.activateUIButton(),void 0!==this.getFeature(t.polygon.id)&&(t.polygon.removeCoordinate("0."+t.currentVertexPosition),t.polygon.isValid()?this.map.fire(x,{features:[t.polygon.toGeoJSON()]}):(this.deleteFeature([t.polygon.id],{silent:!0}),this.changeMode(w.SIMPLE_SELECT,{},{silent:!0})))},Ut.toDisplayFeatures=function(t,e,r){var n=e.properties.id===t.polygon.id;if(e.properties.active=n?C:M,!n)return r(e);if(0!==e.geometry.coordinates.length){var o=e.geometry.coordinates[0].length;if(!(o<3)){if(e.properties.meta=A,r(mt(t.polygon.id,e.geometry.coordinates[0][0],"0.0",!1)),o>3){var i=e.geometry.coordinates[0].length-3;r(mt(t.polygon.id,e.geometry.coordinates[0][i],"0."+i,!1))}if(o<=4){var a=[[e.geometry.coordinates[0][0][0],e.geometry.coordinates[0][0][1]],[e.geometry.coordinates[0][1][0],e.geometry.coordinates[0][1][1]]];if(r({type:y,properties:e.properties,geometry:{coordinates:a,type:m}}),3===o)return}return r(e)}}},Ut.onTrash=function(t){this.deleteFeature([t.polygon.id],{silent:!0}),this.changeMode(w.SIMPLE_SELECT)};var Rt={onSetup:function(t){var e,r,n=(t=t||{}).featureId,o="forward";if(n){if(!(e=this.getFeature(n)))throw new Error("Could not find a feature with the provided featureId");var i=t.from;if(i&&"Feature"===i.type&&i.geometry&&"Point"===i.geometry.type&&(i=i.geometry),i&&"Point"===i.type&&i.coordinates&&2===i.coordinates.length&&(i=i.coordinates),!i||!Array.isArray(i))throw new Error("Please use the `from` property to indicate which point to continue the line from");var a=e.coordinates.length-1;if(e.coordinates[a][0]===i[0]&&e.coordinates[a][1]===i[1])r=a+1,e.addCoordinate.apply(e,[r].concat(e.coordinates[a]));else{if(e.coordinates[0][0]!==i[0]||e.coordinates[0][1]!==i[1])throw new Error("`from` should match the point at either the start or the end of the provided LineString");o="backwards",r=0,e.addCoordinate.apply(e,[r].concat(e.coordinates[0]))}}else e=this.newFeature({type:y,properties:{},geometry:{type:m,coordinates:[]}}),r=0,this.addFeature(e);return this.clearSelectedFeatures(),_t(this),this.updateUIClasses({mouse:l}),this.activateUIButton(h.LINE),this.setActionableState({trash:!0}),{line:e,currentVertexPosition:r,direction:o}},clickAnywhere:function(t,e){if(t.currentVertexPosition>0&&Dt(e,t.line.coordinates[t.currentVertexPosition-1])||"backwards"===t.direction&&Dt(e,t.line.coordinates[t.currentVertexPosition+1]))return this.changeMode(w.SIMPLE_SELECT,{featureIds:[t.line.id]});this.updateUIClasses({mouse:l}),t.line.updateCoordinate(t.currentVertexPosition,e.lngLat.lng,e.lngLat.lat),"forward"===t.direction?(t.currentVertexPosition++,t.line.updateCoordinate(t.currentVertexPosition,e.lngLat.lng,e.lngLat.lat)):t.line.addCoordinate(0,e.lngLat.lng,e.lngLat.lat)},clickOnVertex:function(t){return this.changeMode(w.SIMPLE_SELECT,{featureIds:[t.line.id]})},onMouseMove:function(t,e){t.line.updateCoordinate(t.currentVertexPosition,e.lngLat.lng,e.lngLat.lat),lt(e)&&this.updateUIClasses({mouse:p})}};Rt.onTap=Rt.onClick=function(t,e){if(lt(e))return this.clickOnVertex(t,e);this.clickAnywhere(t,e)},Rt.onKeyUp=function(t,e){dt(e)?this.changeMode(w.SIMPLE_SELECT,{featureIds:[t.line.id]}
1):pt(e)&&(this.deleteFeature([t.line.id],{silent:!0}),this.changeMode(w.SIMPLE_SELECT))},Rt.onStop=function(t){bt(this),this.activateUIButton(),void 0!==this.getFeature(t.line.id)&&(t.line.removeCoordinate(""+t.currentVertexPosition),t.line.isValid()?this.map.fire(x,{features:[t.line.toGeoJSON()]}):(this.deleteFeature([t.line.id],{silent:!0}),this.changeMode(w.SIMPLE_SELECT,{},{silent:!0})))},Rt.onTrash=function(t){this.deleteFeature([t.line.id],{silent:!0}),this.changeMode(w.SIMPLE_SELECT)},Rt.toDisplayFeatures=function(t,e,r){var n=e.properties.id===t.line.id;if(e.properties.active=n?C:M,!n)return r(e);e.geometry.coordinates.length<2||(e.properties.meta=A,r(mt(t.line.id,e.geometry.coordinates["forward"===t.direction?e.geometry.coordinates.length-2:1],""+("forward"===t.direction?e.geometry.coordinates.length-2:1),!1)),r(e))};var $t={simple_select:Lt,direct_select:jt,draw_point:Bt,draw_polygon:Ut,draw_line_string:Rt},Gt={defaultMode:w.SIMPLE_SELECT,keybindings:!0,touchEnabled:!0,clickBuffer:2,touchBuffer:25,boxSelect:!0,displayControlsDefault:!0,styles:[{id:"gl-draw-polygon-fill-inactive",type:"fill",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],paint:{"fill-color":"#3bb2d0","fill-outline-color":"#3bb2d0","fill-opacity":.1}},{id:"gl-draw-polygon-fill-active",type:"fill",filter:["all",["==","active","true"],["==","$type","Polygon"]],paint:{"fill-color":"#fbb03b","fill-outline-color":"#fbb03b","fill-opacity":.1}},{id:"gl-draw-polygon-midpoint",type:"circle",filter:["all",["==","$type","Point"],["==","meta","midpoint"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-stroke-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-polygon-stroke-active",type:"line",filter:["all",["==","active","true"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-line-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","LineString"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-line-active",type:"line",filter:["all",["==","$type","LineString"],["==","active","true"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-polygon-and-line-vertex-stroke-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-color":"#fff"}},{id:"gl-draw-polygon-and-line-vertex-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-point-point-stroke-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-opacity":1,"circle-color":"#fff"}},{id:"gl-draw-point-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#3bb2d0"}},{id:"gl-draw-point-stroke-active",type:"circle",filter:["all",["==","$type","Point"],["==","active","true"],["!=","meta","midpoint"]],paint:{"circle-radius":7,"circle-color":"#fff"}},{id:"gl-draw-point-active",type:"circle",filter:["all",["==","$type","Point"],["!=","meta","midpoint"],["==","active","true"]],paint:{"circle-radius":5,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-fill-static",type:"fill",filter:["all",["==","mode","static"],["==","$type","Polygon"]],paint:{"fill-color":"#404040","fill-outline-color":"#404040","fill-opacity":.1}},{id:"gl-draw-polygon-stroke-static",type:"line",filter:["all",["==","mode","static"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-line-static",type:"line",filter:["all",["==","mode","static"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-point-static",type:"circle",filter:["all",["==","mode","static"],["==","$type","Point"]],paint:{"circle-radius":5,"circle-color":"#404040"}}],modes:$t,controls:{},userProperties:!1},zt={point:!0,line_string:!0,polygon:!0,trash:!0,combine_features:!0,uncombine_features:!0},Vt={point:!1,line_string:!1,polygon:!1,trash:!1,combine_features:!1,uncombine_features:!1};function Jt(t,e){return t.map(function(t){return t.source?t:rt(t,{id:t.id+"."+e,source:"hot"===e?u:c})})}var Wt=R(function(t,e){var n="[object Arguments]",o="[object Map]",i="[object Object]",a="[object Set]",s=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};
vendor: 3,749 bytes, line 1
1c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[n]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c[o]=c["[object Number]"]=c[i]=c["[object RegExp]"]=c[a]=c["[object String]"]=c["[object WeakMap]"]=!1;var l="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),d=e&&!e.nodeType&&e,h=d&&t&&!t.nodeType&&t,y=h&&h.exports===d,g=y&&l.process,m=function(){try{return g&&g.binding&&g.binding("util")}catch(t){}}(),v=m&&m.isTypedArray;function b(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function _(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function w(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var x,S,A,E=Array.prototype,I=Function.prototype,C=Object.prototype,M=p["__core-js_shared__"],P=I.toString,T=C.hasOwnProperty,O=(x=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",F=C.toString,L=RegExp("^"+P.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=y?p.Buffer:void 0,k=p.Symbol,j=p.Uint8Array,B=C.propertyIsEnumerable,D=E.splice,U=k?k.toStringTag:void 0,R=Object.getOwnPropertySymbols,$=N?N.isBuffer:void 0,G=(S=Object.keys,A=Object,function(t){return S(A(t))}),z=ht(p,"DataView"),V=ht(p,"Map"),J=ht(p,"Promise"),W=ht(p,"Set"),q=ht(p,"WeakMap"),H=ht(Object,"create"),K=vt(z),Y=vt(V),Z=vt(J),Q=vt(W),X=vt(q),tt=k?k.prototype:void 0,et=tt?tt.valueOf:void 0;function rt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function nt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function ot(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function it(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new ot;++e<r;)this.add(t[e])}function at(t){var e=this.__data__=new nt(t);this.size=e.size}function st(t,e){for(var r=t.length;r--;)if(bt(t[r][0],e))return r;return-1}function ut(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":U&&U in Object(t)?function(t){var e=T.call(t,U),r=t[U];try{t[U]=void 0;var n=!0}catch(t){}var o=F.call(t);return n&&(e?t[U]=r:delete t[U]),o}(t):function(t){return F.call(t)}(t)}function ct(t){return It(t)&&ut(t)==n}function lt(t,e,r,s,u){return t===e||(null==t||null==e||!It(t)&&!It(e)?t!=t&&e!=e:function(t,e,r,s,u,c){var l=wt(t),f=wt(e),p=l?"[object Array]":gt(t),d=f?"[object Array]":gt(e),h=(p=p==n?i:p)==i,y=(d=d==n?i:d)==i,g=p==d;if(g&&xt(t)){if(!xt(e))return!1;l=!0,h=!1}if(g&&!h)return c||(c=new at),l||Ct(t)?ft(t,e,r,s,u,c):function(t,e,r,n,i,s,u){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!s(new j(t),new j(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return bt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case o:var c=_;case a:var l=1&n;if(c||(c=w),t.size!=e.size&&!l)return!1;var f=u.get(t);if(f)return f==e;n|=2,u.set(t,e);var p=ft(c(t),c(e),n,i,s,u);return u.delete(t),p;case"[object Symbol]":if(et)return et.call(t)==et.call(e)}return!1}(t,e,p,r,s,u,c);if(!(1&r)){var m=h&&T.call(t,"__wrapped__"),v=y&&T.call(e,"__wrapped__");
1if(m||v){var b=m?t.value():t,x=v?e.value():e;return c||(c=new at),u(b,x,r,s,c)}}return!!g&&(c||(c=new at),function(t,e,r,n,o,i){var a=1&r,s=pt(t),u=s.length;if(u!=pt(e).length&&!a)return!1;for(var c=u;c--;){var l=s[c];if(!(a?l in e:T.call(e,l)))return!1}var f=i.get(t);if(f&&i.get(e))return f==e;var p=!0;i.set(t,e),i.set(e,t);for(var d=a;++c<u;){var h=t[l=s[c]],y=e[l];if(n)var g=a?n(y,h,l,e,t,i):n(h,y,l,t,e,i);if(!(void 0===g?h===y||o(h,y,r,n,i):g)){p=!1;break}d||(d="constructor"==l)}if(p&&!d){var m=t.constructor,v=e.constructor;m==v||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof v&&v instanceof v||(p=!1)}return i.delete(t),i.delete(e),p}(t,e,r,s,u,c))}(t,e,r,s,lt,u))}function ft(t,e,r,n,o,i){var a=1&r,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=i.get(t);if(c&&i.get(e))return c==e;var l=-1,f=!0,p=2&r?new it:void 0;for(i.set(t,e),i.set(e,t);++l<s;){var d=t[l],h=e[l];if(n)var y=a?n(h,d,l,e,t,i):n(d,h,l,t,e,i);if(void 0!==y){if(y)continue;f=!1;break}if(p){if(!b(e,function(t,e){if(a=e,!p.has(a)&&(d===t||o(d,t,r,n,i)))return p.push(e);var a})){f=!1;break}}else if(d!==h&&!o(d,h,r,n,i)){f=!1;break}}return i.delete(t),i.delete(e),f}function pt(t){return function(t,e,r){var n=e(t);return wt(t)?n:function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}(n,r(t))}(t,Mt,yt)}function dt(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function ht(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Et(t)||function(t){return!!O&&O in t}(t))&&(St(t)?L:s).test(vt(t))}(r)?r:void 0}rt.prototype.clear=function(){this.__data__=H?H(null):{},this.size=0},rt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},rt.prototype.get=function(t){var e=this.__data__;if(H){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return T.call(e,t)?e[t]:void 0},rt.prototype.has=function(t){var e=this.__data__;return H?void 0!==e[t]:T.call(e,t)},rt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=H&&void 0===e?"__lodash_hash_undefined__":e,this},nt.prototype.clear=function(){this.__data__=[],this.size=0},nt.prototype.delete=function(t){var e=this.__data__,r=st(e,t);return!(r<0||(r==e.length-1?e.pop():D.call(e,r,1),--this.size,0))},nt.prototype.get=function(t){var e=this.__data__,r=st(e,t);return r<0?void 0:e[r][1]},nt.prototype.has=function(t){return st(this.__data__,t)>-1},nt.prototype.set=function(t,e){var r=this.__data__,n=st(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},ot.prototype.clear=function(){this.size=0,this.__data__={hash:new rt,map:new(V||nt),string:new rt}},ot.prototype.delete=function(t){var e=dt(this,t).delete(t);return this.size-=e?1:0,e},ot.prototype.get=function(t){return dt(this,t).get(t)},ot.prototype.has=function(t){return dt(this,t).has(t)},ot.prototype.set=function(t,e){var r=dt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},it.prototype.add=it.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},it.prototype.has=function(t){return this.__data__.has(t)},at.prototype.clear=function(){this.__data__=new nt,this.size=0},at.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},at.prototype.get=function(t){return this.__data__.get(t)},at.prototype.has=function(t){return this.__data__.has(t)},at.prototype.set=function(t,e){var r=this.__data__;if(r instanceof nt){var n=r.__data__;if(!V||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new ot(n)}return r.set(t,e),this.size=r.size,this};var yt=R?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a)&&(i[o++]=a)}return i}(R(t),function(e){return B.call(t,e)}))}:function(){return[]},gt=ut;function mt(t,e){return!!(e=e??9007199254740991)&&("number"==typeof t||u.test(t))&&t>-1&&t%1==0&&t<e}function vt(t){if(null!=t){try{return P.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function bt(t,e){return t===e||t!=t&&e!=e}(z&&"[object DataView]"!=gt(new z(new ArrayBuffer(1)))||V&&gt(new V)!=o||J&&"[object Promise]"!=gt(J.resolve())||W&&gt(new W)!=a||q&&"[object WeakMap]"!=gt(new q))&&(gt=function(t){var e=ut(t),r=e==i?t.constructor:void 0,n=r?vt(r):"";if(n)switch(n){case K:return"[object DataView]";case Y:return o;case Z:return"[object Promise]";case Q:return a;case X:return"[object WeakMap]"}return e});var _t=ct(function(){return arguments}())?ct:function(t){return It(t)&&T.call(t,"callee")&&!B.call(t,"callee")},wt=Array.isArray,xt=$||function(){return!1};function St(t){if(!Et(t))return!1;var e=ut(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function At(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Et(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function It(t){return null!=t&&"object"==typeof t}var Ct=v?function(t){return function(e){return t(e)}}(v):function(t){return It(t)&&At(t.length)&&!!c[ut(t)]};function Mt(t){return null!=(e=t)&&At(e.length)&&!St(e)?function(t,e){var r=wt(t),n=!r&&_t(t),o=!r&&!n&&xt(t),i=!r&&!n&&!o&&Ct(t),a=r||n||o||i,s=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],u=s.length;for(var c in t)!e&&!T.call(t,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mt(c,u))||s.push(c);return s}(t):function(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||C))return G(t);var e,r,n=[];for(var o in Object(t))T.call(t,o)&&"constructor"!=o&&n.push(o);return n}(t);var e}t.exports=function(t,e){return lt(t,e)}}),qt={Polygon:J,LineString:V,Point:z,MultiPolygon:H,MultiLineString:H,MultiPoint:H};var Ht=function(t,e){var r={options:t=function(t){void 0===t&&(t={});var e=rt(t);return t.controls||(e.controls={}),!1===t.displayControlsDefault?e.controls=rt(Vt,t.controls):e.controls=rt(zt,t.controls),(e=rt(Gt,e)).styles=Jt(e.styles,"cold").concat(Jt(e.styles,"hot")),e}(t)};e=function(t,e){return e.modes=w,e.getFeatureIdsAt=function(e){return N.click({point:e},null,t).map(function(t){return t.properties.id})},e.getSelectedIds=function(){return t.store.getSelectedIds()},e.getSelected=function(){return{type:b,features:t.store.getSelectedIds().map(function(e){return t.store.get(e)}).map(function(t){return t.toGeoJSON()})}},e.getSelectedPoints=function(){return{type:b,features:t.store.getSelectedCoordinates().map(function(t){return{type:y,properties:{},geometry:{type:v,coordinates:t.coordinates}}})}},e.set=function(r){if(void 0===r.type||r.type!==b||!Array.isArray(r.features))throw new Error("Invalid FeatureCollection");var n=t.store.createRenderBatch(),o=t.store.getAllIds().slice(),i=e.add(r),a=new F(i);return(o=o.filter(function(t){return!a.has(t)})).length&&e.delete(o),n(),i},e.add=function(e){var r=JSON.parse(JSON.stringify(wt(e))).features.map(function(e){if(e.id=e.id||$(),null===e.geometry)throw new Error("Invalid geometry: null");if(void 0===t.store.get(e.id)||t.store.get(e.id).type!==e.geometry.type){var r=qt[e.geometry.type];if(void 0===r)throw new Error("Invalid geometry type: "+e.geometry.type+".");var n=new r(t,e);t.store.add(n)}else{var o=t.store.get(e.id);o.properties=e.properties,Wt(o.getCoordinates(),e.geometry.coordinates)||o.incomingCoords(e.geometry.coordinates)}return e.id});return t.store.render(),r},e.get=function(e){var r=t.store.get(e);if(r)return r.toGeoJSON()},e.getAll=function(){return{type:b,features:t.store.getAll().map(function(t){return t.toGeoJSON()})}},e.delete=function(r){return t.store.delete(r,{silent:!0}),e.getMode()!==w.DIRECT_SELECT||t.store.getSelectedIds().length?t.store.render():t.events.changeMode(w.SIMPLE_SELECT,void 0,{silent:!0}),e},e.deleteAll=function(){return t.store.delete(t.store.getAllIds(),{silent:!0}),e.getMode()===w.DIRECT_SELECT?t.events.changeMode(w.SIMPLE_SELECT,void 0,{silent:!0}):t.store.render(),e},e.changeMode=function(r,n){return void 0===n&&(n={}),r===w.SIMPLE_SELECT&&e.getMode()===w.SIMPLE_SELECT?(o=n.featureIds||[],i=t.store.getSelectedIds(),o.length===i.length&&JSON.stringify(o.map(function(t){return t}).sort())===JSON.stringify(i.map(function(t){return t}).sort())||(t.store.setSelected(n.featureIds,{silent:!0}),t.store.render()),e):(r===w.DIRECT_SELECT&&e.getMode()===w.DIRECT_SELECT&&n.featureId===t.store.getSelectedIds()[0]||t.events.changeMode(r,n,{silent:!0}),e);var o,i},e.getMode=function(){return t.events.getMode()},e.trash=function(){return t.events.trash({silent:!0}),e},e.combineFeatures=function(){return t.events.combineFeatures({silent:!0}),e},e.uncombineFeatures=function(){return t.events.uncombineFeatures({silent:!0}),e},e.setFeatureProperty=function(r,n,o){return t.store.setFeatureProperty(r,n,o),e},e}(r,e),r.api=e;var n=it(r);return e.onAdd=n.onAdd,e.onRemove=n.onRemove,e.types=h,e.options=t,e};function Kt(t){Ht(t,this)}return Kt.modes=$t,Kt}()},56878:t=>{"use strict";
1t.exports=function(t){return"BIGUINT64"===t||"BIGINT64"===t}},57326:(t,e,r)=>{"use strict";var n=r(3468),o=r(78554),i=r(47604);t.exports=function(t){if(void 0===t)return!1;if(!i(t))throw new n("Assertion failed: `Desc` must be a Property Descriptor");return!(!o(t,"[[Value]]")&&!o(t,"[[Writable]]"))}},57783:(t,e,r)=>{"use strict";var n=r(528),o=r(5731),i=r(3468),a=r(41597),s=n("%Uint8Array%",!0),u=r(56878),c=r(6715),l=r(90132),f=r(56227),p=r(31189),d=r(78554),h=r(77452),y=r(35622),g=r(90626);t.exports=function(t,e,r,n,m,v){var b=p(t);if(!f(t)&&!b)throw new i("Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer");if(!a(e)||e<0)throw new i("Assertion failed: `byteIndex` must be a non-negative integer");if("string"!=typeof r||!d(h.size,"$"+r))throw new i("Assertion failed: `type` must be one of "+h.choices);if("number"!=typeof n&&"bigint"!=typeof n)throw new i("Assertion failed: `value` must be a Number or a BigInt");if("boolean"!=typeof m)throw new i("Assertion failed: `isTypedArray` must be a boolean");if("SEQ-CST"!==v&&"UNORDERED"!==v&&"INIT"!==v)throw new i('Assertion failed: `order` must be `"SEQ-CST"`, `"UNORDERED"`, or `"INIT"`');if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("Assertion failed: `isLittleEndian` must be a boolean, if present");if(c(t))throw new i("Assertion failed: ArrayBuffer is detached");if(u(r)?"bigint"!=typeof n:"number"!=typeof n)throw new i("Assertion failed: `value` must be a BigInt if type is ~BIGINT64~ or ~BIGUINT64~, otherwise a Number");var _=h.size["$"+r],w=l(r,n,arguments.length>6?arguments[6]:"little"===y);if(b)throw new o("SharedArrayBuffer is not supported by this implementation");var x=new s(t,e,_);g(w,function(t,e){x[e]=t})}},58366:(t,e,r)=>{"use strict";var n=r(528)("%Array.prototype.concat%"),o=r(28498),i=r(14607)("Array.prototype.slice"),a=r(62908)()&&Symbol.isConcatSpreadable,s=[],u=a?o.apply(n,s):null,c=a?r(56815):null;t.exports=a?function(t){for(var e=0;e<arguments.length;e+=1){var r=arguments[e];if(r&&"object"==typeof r&&"boolean"==typeof r[a]){s[a]||(s[a]=!0);var n=c(r)?i(r):[r];n[a]=!0,arguments[e]=n}}return u(arguments)}:o(n,s)},58581:(t,e,r)=>{"use strict";var n=r(47496);t.exports=function(t,e){return n(t,e)}},58886:(t,e,r)=>{"use strict";var n=r(3468),o=r(48660),i=r(92458);t.exports=function(t,e){if(!i(e))throw new n("Assertion failed: P is not a Property Key, got "+o(e));return t[e]}},61220:(t,e,r)=>{"use strict";var n=r(528)("%BigInt%",!0),o=r(85865),i=r(94981),a=r(65264),s=r(42515),u=n&&BigInt(o(2,32))*BigInt(o(2,32));t.exports=function(t){var e=i(t);return s(a,e,u)}},61621:(t,e,r)=>{"use strict";var n=r(18449);t.exports=function(t){return"bigint"==typeof t?t:n(t)}},61870:(t,e,r)=>{"use strict";var n=r(17239)(),o=r(70686),i=r(16996);t.exports=function(){var t=i();return String.prototype.trim!==t&&(n?o(String.prototype,"trim",t,!0):o(String.prototype,"trim",t)),t}},62651:(t,e,r)=>{"use strict";t.exports=r(528)},62923:(t,e,r)=>{"use strict";var n=r(28498),o=r(70013),i=r(50728),a=r(22786),s=n(o);t.exports=s,t.exports.getPolyfill=i,t.exports.implementation=o,t.exports.shim=a},63251:(t,e,r)=>{"use strict";var n=r(18449);t.exports=function(t,e){var r=t%e;return n(r>=0?r:r+e)}},63505:(t,e,r)=>{"use strict";var n=r(3468),o=r(52903),i=r(94612),a=r(6715),s=r(88129),u=r(22387),c=r(3939),l=r(57783),f=r(92703),p=r(64527),d=r(87121),h=r(90364),y=r(32930),g=r(448),m=r(21279),v=r(83961);t.exports=function(t,e){var r=this;g(r,"SEQ-CST");var b,_=r.length,w=f(t);b=w===-1/0?0:w<0?s(_+w,0):u(w,_);var x,S=void 0===e?_:f(e);x=S===-1/0?0:S<0?s(_+S,0):u(S,_);var A=s(x-b,0),E=y(r,[A]);if(A>0){if(a(m(r)))throw new n("Cannot use a Typed Array with an underlying ArrayBuffer that is detached");if(h(r)===h(E))for(var I=m(r),C=m(E),M=d(r),P=b*M+v(r),T=v(E),O=T+A*M;T<O;){var F=i(I,P,"UINT8",!0,"UNORDERED");l(C,T,"UINT8",F,!0,"UNORDERED"),P+=1,T+=1}else for(var L=0;b<x;){var N=p(b),k=o(r,N);c(E,p(L),k,!0),b+=1,L+=1}}return E}},64124:t=>{"use strict";t.exports=function(t){return!!t}},64527:(t,e,r)=>{"use strict";var n=r(528)("%String%"),o=r(3468);t.exports=function(t){if("symbol"==typeof t)throw new o("Cannot convert a Symbol value to a string");return n(t)}},65082:(t,e,r)=>{var n=r(80127),o=r(36813),i=r(74920);o instanceof Function||(o=o.default),t.exports=function(t){if(!t)return[];var e=o(n(t)),r=[];
1return e.features.forEach(function(t){t.geometry&&(r=r.concat(i(t.geometry.coordinates)))}),r}},65264:(t,e,r)=>{"use strict";var n=r(528)("%BigInt%",!0),o=r(61155),i=r(3468),a=n&&n(0);t.exports=function(t,e){if("bigint"!=typeof t||"bigint"!=typeof e)throw new i("Assertion failed: `n` and `d` arguments must be BigInts");if(e===a)throw new o("Division by zero");return t===a?a:t%e}},66009:(t,e,r)=>{"use strict";var n=r(528)("%Array%"),o=!n.isArray&&r(14607)("Object.prototype.toString");t.exports=n.isArray||function(t){return"[object Array]"===o(t)}},68286:(t,e,r)=>{"use strict";var n=r(528)("%String%"),o=r(3468);t.exports=function(t){if("symbol"==typeof t)throw new o("Cannot convert a Symbol value to a string");return n(t)}},69454:t=>{"use strict";t.exports=function(t){return"UINT8"===t||"UINT8C"===t||"UINT16"===t||"UINT32"===t||"BIGUINT64"===t}},69594:(t,e,r)=>{"use strict";var n=r(58581),o=r(89503),i=r(4721),a=r(31028);t.exports=function(t){var e=o(t);if(!a(e)||0===e)return 0;var r=i(e),s=n(r,65536);return s>=32768?s-65536:s}},70013:(t,e,r)=>{"use strict";var n=r(89617),o=r(78554),i=r(68993)(),a=r(3468),s=r(14607),u=r(34973),c=s("Function.prototype.toString"),l=s("String.prototype.match"),f=/^class /,p=/\s*function\s+([^(\s]*)\s*/,d=Function.prototype;t.exports=function(){if(u(this)||!function(t){if(n(t))return!1;if("function"!=typeof t)return!1;try{return!!l(c(t),f)}catch(t){}return!1}(this)&&!n(this))throw new a("Function.prototype.name sham getter called on non-function");if(i&&o(this,"name"))return this.name;if(this===d)return"";var t=c(this),e=l(t,p);return e&&e[1]}},70926:(t,e,r)=>{"use strict";var n=r(41857),o=r(46369),i=r(73796);t.exports=function(){if("function"==typeof Uint8Array){var t=i(),e=o(Uint8Array.prototype);n(e,{slice:t},{slice:function(){return e.slice!==t}})}return t}},71486:(t,e,r)=>{var n=r(16230);function o(t){var e=0;if(t&&t.length>0){e+=Math.abs(i(t[0]));for(var r=1;r<t.length;r++)e-=Math.abs(i(t[r]))}return e}function i(t){var e,r,o,i,s,u,c=0,l=t.length;if(l>2){for(u=0;u<l;u++)u===l-2?(o=l-2,i=l-1,s=0):u===l-1?(o=l-1,i=0,s=1):(o=u,i=u+1,s=u+2),e=t[o],r=t[i],c+=(a(t[s][0])-a(e[0]))*Math.sin(a(r[1]));c=c*n.RADIUS*n.RADIUS/2}return c}function a(t){return t*Math.PI/180}t.exports.geometry=function t(e){var r,n=0;switch(e.type){case"Polygon":return o(e.coordinates);case"MultiPolygon":for(r=0;r<e.coordinates.length;r++)n+=o(e.coordinates[r]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(r=0;r<e.geometries.length;r++)n+=t(e.geometries[r]);return n}},t.exports.ring=i},72594:(t,e,r)=>{"use strict";var n=r(14607)("FinalizationRegistry.prototype.register",!0);t.exports=n?function(t){if(!t||"object"!=typeof t)return!1;try{return n(t,{},null),!0}catch(t){return!1}}:function(t){return!1}},73365:(t,e,r)=>{"use strict";t.exports=r(56482)},73796:(t,e,r)=>{"use strict";var n=r(63505);t.exports=function(){return"function"==typeof Uint8Array&&Uint8Array.prototype.slice||n}},73838:t=>{function e(t){if(!(this instanceof e))return new e(t);this._bbox=t||[1/0,1/0,-1/0,-1/0],this._valid=!!t}t.exports=e,e.prototype.include=function(t){return this._valid=!0,this._bbox[0]=Math.min(this._bbox[0],t[0]),this._bbox[1]=Math.min(this._bbox[1],t[1]),this._bbox[2]=Math.max(this._bbox[2],t[0]),this._bbox[3]=Math.max(this._bbox[3],t[1]),this},e.prototype.equals=function(t){var r;return r=t instanceof e?t.bbox():t,this._bbox[0]==r[0]&&this._bbox[1]==r[1]&&this._bbox[2]==r[2]&&this._bbox[3]==r[3]},e.prototype.center=function(t){return this._valid?[(this._bbox[0]+this._bbox[2])/2,(this._bbox[1]+this._bbox[3])/2]:null},e.prototype.union=function(t){var r;return this._valid=!0,r=t instanceof e?t.bbox():t,this._bbox[0]=Math.min(this._bbox[0],r[0]),this._bbox[1]=Math.min(this._bbox[1],r[1]),this._bbox[2]=Math.max(this._bbox[2],r[2]),this._bbox[3]=Math.max(this._bbox[3],r[3]),this},e.prototype.bbox=function(){return this._valid?this._bbox:null},e.prototype.contains=function(t){if(!t)return this._fastContains();if(!this._valid)return null;var e=t[0],r=t[1];return this._bbox[0]<=e&&this._bbox[1]<=r&&this._bbox[2]>=e&&this._bbox[3]>=r}
1,e.prototype.intersect=function(t){return this._valid?(r=t instanceof e?t.bbox():t,!(this._bbox[0]>r[2]||this._bbox[2]<r[0]||this._bbox[3]<r[1]||this._bbox[1]>r[3])):null;var r},e.prototype._fastContains=function(){if(!this._valid)return new Function("return null;");var t="return "+this._bbox[0]+"<= ll[0] &&"+this._bbox[1]+"<= ll[1] &&"+this._bbox[2]+">= ll[0] &&"+this._bbox[3]+">= ll[1]";return new Function("ll",t)},e.prototype.polygon=function(){return this._valid?{type:"Polygon",coordinates:[[[this._bbox[0],this._bbox[1]],[this._bbox[2],this._bbox[1]],[this._bbox[2],this._bbox[3]],[this._bbox[0],this._bbox[3]],[this._bbox[0],this._bbox[1]]]]}:null}},74407:(t,e,r)=>{"use strict";var n=r(528)("%parseInt%"),o=r(58479),i=r(18449),a=r(31028),s=r(36906),u=r(14607),c=u("String.prototype.indexOf"),l=u("String.prototype.slice"),f=r(40373),p=r(75524),d=r(41445),h="11111111111",y="00000000000",g=y+y+y+y+"0000000";t.exports=function(t,e){var r,u,m=t<0||s(t)?"1":"0";if(d(t))r=h,u="1"+g;else if(a(t))if(0===t)r=y,u="0"+g;else{t=o(t);var v,b=i(t),_=p(b),w=f(t-b);if(_)r=_.length-1;else{var x=c(w,"1");x>-1&&(v=x+1),r=-v}u=_+w,r<0?(r<=-1023&&(v=1022),u=l(u,v)):u=l(u,1),r=l(y+p(r+1023),-11),u=l(u+g+"0",0,52)}else r=h,u="0"+g;for(var S=m+r+u,A=[],E=0;E<8;E++)A[e?8-E-1:E]=n(l(S,8*E,8*(E+1)),2);return A}},74920:t=>{t.exports=function(t){return function t(e){return Array.isArray(e)&&e.length&&"number"==typeof e[0]?[e]:e.reduce(function(e,r){return Array.isArray(r)&&Array.isArray(r[0])?e.concat(t(r)):(e.push(r),e)},[])}(t)}},75284:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(89575),o=r(14041);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 392c8.8 0 16-7.2 16-16V192c0-8.8-7.2-16-16-16H744c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h56v240H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16V648c0-8.8-7.2-16-16-16h-56V392h56zM792 240h88v88h-88v-88zm-648 88v-88h88v88h-88zm88 456h-88v-88h88v88zm648-88v88h-88v-88h88zm-80-64h-56c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16h-56V392h56c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h56v240z"}}]},name:"gateway",theme:"outlined"};var a=r(7543),s=function(t,e){return o.createElement(a.A,(0,n.A)({},t,{ref:e,icon:i}))};const u=o.forwardRef(s)},75524:(t,e,r)=>{"use strict";var n=r(18449);t.exports=function(t){for(var e,r="";t>0;)r=(e=t/2)===(t=n(e))?"0"+r:"1"+r;return r}},75591:(t,e,r)=>{"use strict";var n=r(62651)("%Reflect.construct%",!0),o=r(81070);try{o({},"",{"[[Get]]":function(){}})}catch(t){o=null}if(o&&n){var i={},a={};o(a,"length",{"[[Get]]":function(){throw i},"[[Enumerable]]":!0}),t.exports=function(t){try{n(t,a)}catch(t){return t===i}}}else t.exports=function(t){return"function"==typeof t&&!!t.prototype}},76738:(t,e,r)=>{"use strict";r.d(e,{cJ:()=>b,n1:()=>d,tR:()=>x,zX:()=>u,zx:()=>p});var n=r(44969),o=Object.defineProperty,i=(t,e)=>o(t,"name",{value:e,configurable:!0});function a(t,e){return t.coordinates?t.coordinates.length===e.coordinates.length:t.length===e.length}function s(t){return t.coordinates.map(e=>({type:t.type.replace("Multi",""),coordinates:e}))}i(class{constructor(t){var e,r,n;this.direction=!1,this.compareProperties=!0,this.precision=10**-(null!=(e=null==t?void 0:t.precision)?e:17),this.direction=null!=(r=null==t?void 0:t.direction)&&r,this.compareProperties=null==(n=null==t?void 0:t.compareProperties)||n}compare(t,e){if(t.type!==e.type)return!1;if(!a(t,e))return!1;switch(t.type){case"Point":return this.compareCoord(t.coordinates,e.coordinates);case"LineString":return this.compareLine(t.coordinates,e.coordinates);case"Polygon":return this.comparePolygon(t,e);case"GeometryCollection":return this.compareGeometryCollection(t,e);case"Feature":return this.compareFeature(t,e);case"FeatureCollection":return this.compareFeatureCollection(t,e);default:if(t.type.startsWith("Multi")){const r=s(t),n=s(e);return r.every(t=>n.some(e=>this.compare(t,e)))}}return!1}compareCoord(t,e){return t.length===e.length&&t.every((t,r)=>Math.abs(t-e[r])<this.precision)}compareLine(t,e,r=0,n=!1){if(!a(t,e))return!1;const o=t;let i=e;if(n&&!this.compareCoord(o[0],i[0])){const t=this.fixStartIndex(i,o);if(!t)return!1;i=t}const s=this.compareCoord(o[r],i[r]);return this.direction||s?this.comparePath(o,i):!!this.compareCoord(o[r],i[i.length-(1+r)])&&this.comparePath(o.slice().reverse(),i)}fixStartIndex(t,e){let r,n=-1;for(let r=0;r<t.length;r++)if(this.compareCoord(t[r],e[0])){n=r;break}return n>=0&&(r=[].concat(t.slice(n,t.length),t.slice(1,n+1))),r}comparePath(t,e){return t.every((t,r)=>this.compareCoord(t,e[r]))}comparePolygon(t,e){if(this.compareLine(t.coordinates[0],e.coordinates[0],1,!0)){const r=t.coordinates.slice(1,t.coordinates.length),n=e.coordinates.slice(1,e.coordinates.length);return r.every(t=>n.some(e=>this.compareLine(t,e,1,!0)))}return!1}compareGeometryCollection(t,e){return a(t.geometries,e.geometries)&&this.compareBBox(t,e)&&t.geometries.every((t,r)=>this.compare(t,e.geometries[r]))}
1compareFeature(t,e){return t.id===e.id&&(!this.compareProperties||n(t.properties,e.properties))&&this.compareBBox(t,e)&&this.compare(t.geometry,e.geometry)}compareFeatureCollection(t,e){return a(t.features,e.features)&&this.compareBBox(t,e)&&t.features.every((t,r)=>this.compare(t,e.features[r]))}compareBBox(t,e){return Boolean(!t.bbox&&!e.bbox)||!(!t.bbox||!e.bbox)&&this.compareCoord(t.bbox,e.bbox)}},"GeojsonEquality"),i(a,"sameLength"),i(s,"explode");var u=6371008.8,c={centimeters:100*u,centimetres:100*u,degrees:360/(2*Math.PI),feet:3.28084*u,inches:39.37*u,kilometers:u/1e3,kilometres:u/1e3,meters:u,metres:u,miles:u/1609.344,millimeters:1e3*u,millimetres:1e3*u,nauticalmiles:u/1852,radians:1,yards:1.0936*u},l={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:2.9155334959812285e-7,millimeters:1e6,millimetres:1e6,yards:1.195990046};function f(t,e,r={}){const n={type:"Feature"};return(0===r.id||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function p(t,e,r={}){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!S(t[0])||!S(t[1]))throw new Error("coordinates must contain numbers");return f({type:"Point",coordinates:t},e,r)}function d(t,e,r={}){for(const e of t){if(e.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(e[e.length-1].length!==e[0].length)throw new Error("First and last Position are not equivalent.");for(let t=0;t<e[e.length-1].length;t++)if(e[e.length-1][t]!==e[0][t])throw new Error("First and last Position are not equivalent.")}return f({type:"Polygon",coordinates:t},e,r)}function h(t,e,r={}){if(t.length<2)throw new Error("coordinates must be an array of two or more positions");return f({type:"LineString",coordinates:t},e,r)}function y(t,e={}){const r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}function g(t,e,r={}){return f({type:"MultiLineString",coordinates:t},e,r)}function m(t,e,r={}){return f({type:"MultiPoint",coordinates:t},e,r)}function v(t,e,r={}){return f({type:"MultiPolygon",coordinates:t},e,r)}function b(t,e="kilometers"){const r=c[e];
1if(!r)throw new Error(e+" units is invalid");return t*r}function _(t,e="kilometers"){const r=c[e];if(!r)throw new Error(e+" units is invalid");return t/r}function w(t){return t%(2*Math.PI)*180/Math.PI}function x(t){return t%360*Math.PI/180}function S(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}i(f,"feature"),i(function(t,e,r={}){switch(t){case"Point":return p(e).geometry;case"LineString":return h(e).geometry;case"Polygon":return d(e).geometry;case"MultiPoint":return m(e).geometry;case"MultiLineString":return g(e).geometry;case"MultiPolygon":return v(e).geometry;default:throw new Error(t+" is invalid")}},"geometry"),i(p,"point"),i(function(t,e,r={}){return y(t.map(t=>p(t,e)),r)},"points"),i(d,"polygon"),i(function(t,e,r={}){return y(t.map(t=>d(t,e)),r)},"polygons"),i(h,"lineString"),i(function(t,e,r={}){return y(t.map(t=>h(t,e)),r)},"lineStrings"),i(y,"featureCollection"),i(g,"multiLineString"),i(m,"multiPoint"),i(v,"multiPolygon"),i(function(t,e,r={}){return f({type:"GeometryCollection",geometries:t},e,r)},"geometryCollection"),i(function(t,e=0){if(e&&!(e>=0))throw new Error("precision must be a positive number");const r=Math.pow(10,e||0);return Math.round(t*r)/r},"round"),i(b,"radiansToLength"),i(_,"lengthToRadians"),i(function(t,e){return w(_(t,e))},"lengthToDegrees"),i(function(t){let e=t%360;return e<0&&(e+=360),e},"bearingToAzimuth"),i(w,"radiansToDegrees"),i(x,"degreesToRadians"),i(function(t,e="kilometers",r="kilometers"){if(!(t>=0))throw new Error("length must be a positive number");return b(_(t,e),r)},"convertLength"),i(function(t,e="meters",r="kilometers"){if(!(t>=0))throw new Error("area must be a positive number");const n=l[e];if(!n)throw new Error("invalid original units");const o=l[r];if(!o)throw new Error("invalid final units");return t/n*o},"convertArea"),i(S,"isNumber"),i(function(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)},"isObject"),i(function(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach(t=>{if(!S(t))throw new Error("bbox must only contain numbers")})},"validateBBox"),i(function(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")},"validateId")},76982:(t,e,r)=>{"use strict";t.exports=r(41597)},77452:t=>{"use strict";t.exports={__proto__:null,name:{__proto__:null,$Int8Array:"INT8",$Uint8Array:"UINT8",$Uint8ClampedArray:"UINT8C",$Int16Array:"INT16",$Uint16Array:"UINT16",$Int32Array:"INT32",$Uint32Array:"UINT32",$BigInt64Array:"BIGINT64",$BigUint64Array:"BIGUINT64",$Float32Array:"FLOAT32",$Float64Array:"FLOAT64"},size:{__proto__:null,$INT8:1,$UINT8:1,$UINT8C:1,$INT16:2,$UINT16:2,$INT32:4,$UINT32:4,$BIGINT64:8,$BIGUINT64:8,$FLOAT32:4,$FLOAT64:8},choices:'"INT8", "UINT8", "UINT8C", "INT16", "UINT16", "INT32", "UINT32", "BIGINT64", "BIGUINT64", "FLOAT32", or "FLOAT64"'}},78352:(t,e,r)=>{"use strict";var n=r(31028),o=r(58581),i=r(89503),a=r(4721);t.exports=function(t){var e=i(t);if(!n(e)||0===e)return 0;var r=a(e);return o(r,256)}},79744:(t,e,r)=>{"use strict";var n=r(48949),o=r(46369);t.exports=function(){return"object"==typeof Reflect&&Reflect&&Reflect.getPrototypeOf?Reflect.getPrototypeOf:o?function(t){return o(t)}:n}},80127:t=>{t.exports=function(t){if(!t||!t.type)return null;var r=e[t.type];return r?"geometry"===r?{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:t}]}:"feature"===r?{type:"FeatureCollection",features:[t]}:"featurecollection"===r?t:void 0:null};var e={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"}},80234:(t,e,r)=>{"use strict";t.exports=r(66009)},80745:(t,e,r)=>{"use strict";var n=r(43606);t.exports=function(t){return arguments.length>1?n(t,arguments[1]):n(t)}},81070:(t,e,r)=>{"use strict";var n=r(3468),o=r(56482),i=r(47604),a=r(20700),s=r(84063),u=r(57326),c=r(25676),l=r(11328),f=r(45722);t.exports=function(t,e,r){if(!o(t))throw new n("Assertion failed: Type(O) 
1is not Object");if(!c(e))throw new n("Assertion failed: P is not a Property Key");var p=i(r)?r:f(r);if(!i(p))throw new n("Assertion failed: Desc is not a valid Property Descriptor");return a(u,l,s,t,e,p)}},83619:(t,e,r)=>{"use strict";var n=r(3468),o=r(89617),i=r(48660),a=r(58886),s=r(92458);t.exports=function(t,e){if(!s(e))throw new n("Assertion failed: P is not a Property Key");var r=a(t,e);if(null!=r){if(!o(r))throw new n(i(e)+" is not a function: "+i(r));return r}}},83961:(t,e,r)=>{"use strict";var n=r(80705),o=r(28498),i=r(79744)(),a=r(14834)(),s={__proto__:null},u=r(69336),c=Object.defineProperty;if(u){var l=function(t){return t.byteOffset};n(a,function(t){if("function"==typeof r.g[t]||"object"==typeof r.g[t]){var e=r.g[t].prototype,n=u(e,"byteOffset");if(!n){var a=i(e);n=u(a,"byteOffset")}if(n&&n.get)s[t]=o(n.get);else if(c){var f=new r.g[t](2);(n=u(f,"byteOffset"))&&n.configurable&&c(f,"length",{value:3}),2===f.length&&(s[t]=l)}}})}var f=r(95943);t.exports=function(t){return!!f(t)&&function(t){var e;return n(s,function(r){if("number"!=typeof e)try{var n=r(t);"number"==typeof n&&(e=n)}catch(t){}}),e}(t)}},84063:(t,e,r)=>{"use strict";var n=r(3468),o=r(47604),i=r(290);t.exports=function(t){if(void 0!==t&&!o(t))throw new n("Assertion failed: `Desc` must be a Property Descriptor");return i(t)}},86448:(t,e,r)=>{"use strict";var n=r(528),o=r(14607),i=r(61155),a=r(5731),s=r(3468),u=n("%BigInt%",!0),c=r(4702),l=r(80234),f=r(56878),p=r(69454),d=r(40564),h=r(97507),y=r(2337),g=r(13643),m=r(3763),v=o("Array.prototype.reverse"),b=o("Array.prototype.slice"),_=r(77452);t.exports=function(t,e,r){if(!c(_.size,"$"+t))throw new s("Assertion failed: `type` must be a TypedArray element type");if(!l(e)||!g(e,m))throw new s("Assertion failed: `rawBytes` must be an Array of bytes");if("boolean"!=typeof r)throw new s("Assertion failed: `isLittleEndian` must be a Boolean");var n=_.size["$"+t];if(e.length!==n)throw new i("Assertion failed: `rawBytes` must have a length of "+n+" for type "+t);var o=f(t);if(o&&!u)throw new a("this environment does not support BigInts");return e=b(e,0,n),r||v(e),"FLOAT32"===t?d(e):"FLOAT64"===t?h(e):y(e,n,p(t),o)}},87121:(t,e,r)=>{"use strict";var n=r(5731),o=r(3468),i=r(41597),a=r(52730),s=r(77452);t.exports=function(t){var e=a(t);if(!e)throw new o("Assertion failed: `O` must be a TypedArray");var r=s.size["$"+s.name["$"+e]];if(!i(r)||r<0)throw new n("Assertion failed: Unknown TypedArray type `"+e+"`");return r}},89503:(t,e,r)=>{"use strict";var n=r(528),o=r(3468),i=n("%Number%"),a=r(8809),s=r(80745),u=r(742);t.exports=function(t){var e=a(t)?t:s(t,i);if("symbol"==typeof e)throw new o("Cannot convert a Symbol value to a number");if("bigint"==typeof e)throw new o("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof e?u(e):+e}},90132:(t,e,r)=>{"use strict";var n=r(3468),o=r(4702),i=r(44980),a=r(61220),s=r(69594),u=r(29028),c=r(19813),l=r(2741),f=r(14187),p=r(78352),d=r(37429),h=r(22382),y=r(74407),g=r(39534),m=r(77452),v={__proto__:null,$INT8:c,$UINT8:p,$UINT8C:d,$INT16:s,$UINT16:l,$INT32:u,$UINT32:f,$BIGINT64:i,$BIGUINT64:a};t.exports=function(t,e,r){if("string"!=typeof t||!o(m.size,"$"+t))throw new n("Assertion failed: `type` must be a TypedArray element type");if("number"!=typeof e&&"bigint"!=typeof e)throw new n("Assertion failed: `value` must be a Number or a BigInt");if("boolean"!=typeof r)throw new n("Assertion failed: `isLittleEndian` must be a Boolean");if("FLOAT32"===t)return h(e,r);if("FLOAT64"===t)return y(e,r);var i=m.size["$"+t],a=(0,v["$"+t])(e);return g(a,i,r)}},90364:(t,e,r)=>{"use strict";var n=r(5731),o=r(3468),i=r(52730),a=r(77452);t.exports=function(t){var e=i(t);if(!e)throw new o("Assertion failed: `O` must be a TypedArray");var r=a.name["$"+e];if("string"!=typeof r)throw new n("Assertion failed: Unknown TypedArray type `"+e+"`");return r}},90626:t=>{"use strict";t.exports=function(t,e){for(var r=0;r<t.length;r+=1)e(t[r],r,t)}},92458:t=>{"use strict";t.exports=function(t){return"string"==typeof t||"symbol"==typeof t}},92703:(t,e,r)=>{"use strict";var n=r(89503),o=r(4721),i=r(62422),a=r(31028);t.exports=function(t){var e=n(t);return i(e)||0===e?0:a(e)?o(e):e}},94357:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n={enable(t){setTimeout(()=>{t.map&&t.map.doubleClickZoom&&t._ctx&&t._ctx.store&&t._ctx.store.getInitialConfigValue&&t._ctx.store.getInitialConfigValue("doubleClickZoom")&&t.map.doubleClickZoom.enable()},0)},disable(t){setTimeout(()=>{t.map&&t.map.doubleClickZoom&&t.map.doubleClickZoom.disable()},0)}}},94612:(t,e,r)=>{"use strict";
1var n=r(528),o=r(5731),i=r(3468),a=r(14607),s=r(41597),u=n("%Uint8Array%",!0),c=a("Array.prototype.slice"),l=r(6715),f=r(86448),p=r(56227),d=r(31189),h=r(58366),y=r(77452),g=r(35622);t.exports=function(t,e,r,n,a){var m=d(t);if(!p(t)&&!m)throw new i("Assertion failed: `arrayBuffer` must be an ArrayBuffer or a SharedArrayBuffer");if(!s(e))throw new i("Assertion failed: `byteIndex` must be an integer");if("string"!=typeof r||"number"!=typeof y.size["$"+r])throw new i("Assertion failed: `type` must be one of "+y.choices);if("boolean"!=typeof n)throw new i("Assertion failed: `isTypedArray` must be a boolean");if("SEQ-CST"!==a&&"UNORDERED"!==a)throw new i("Assertion failed: `order` must be either `SEQ-CST` or `UNORDERED`");if(arguments.length>5&&"boolean"!=typeof arguments[5])throw new i("Assertion failed: `isLittleEndian` must be a boolean, if present");if(l(t))throw new i("Assertion failed: `arrayBuffer` is detached");if(e<0)throw new i("Assertion failed: `byteIndex` must be non-negative");var v,b=y.size["$"+r];if(!b)throw new i("Assertion failed: `type` must be one of "+y.choices);if(m)throw new o("SharedArrayBuffer is not supported by this implementation");v=c(new u(t,e),0,b);var _=arguments.length>5?arguments[5]:"little"===g,w=_?c(h([0,0,0,0,0,0,0,0],v),-b):c(h(v,[0,0,0,0,0,0,0,0]),0,b);return f(r,w,_)}},94981:(t,e,r)=>{"use strict";var n=r(528),o=n("%BigInt%",!0),i=n("%Number%"),a=r(3468),s=r(5731),u=r(14264),c=r(80745);t.exports=function(t){if(!o)throw new s("BigInts are not supported in this environment");var e=c(t,i);if(null==e)throw new a("Cannot convert null or undefined to a BigInt");if("boolean"==typeof e)return o(e?1:0);if("number"==typeof e)throw new a("Cannot convert a Number value to a BigInt");if("string"==typeof e){var r=u(e);if(void 0===r)throw new a("Failed to parse String to BigInt");return r}if("symbol"==typeof e)throw new a("Cannot convert a Symbol value to a BigInt");if("bigint"!=typeof e)throw new s("Assertion failed: unknown primitive type");return e}},95943:(t,e,r)=>{"use strict";var n=r(52730);t.exports=function(t){return!!n(t)}},96354:(t,e,r)=>{"use strict";r.d(e,{n:()=>p});var n=6371008.8,o={centimeters:637100880,centimetres:637100880,degrees:360/(2*Math.PI),feet:20902260.511392,inches:39.37*n,kilometers:6371.0088,kilometres:6371.0088,meters:n,metres:n,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:n/1852,radians:1,yards:6967335.223679999};function i(t,e,r={}){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!u(t[0])||!u(t[1]))throw new Error("coordinates must contain numbers");return function(t,e,r={}){const n={type:"Feature"};return(0===r.id||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}({type:"Point",coordinates:t},e,r)}function a(t){return t%(2*Math.PI)*180/Math.PI}function s(t){return t%360*Math.PI/180}function u(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}var c=r(5354);function l(t,e,r,n={}){const u=(0,c.uG)(t),l=s(u[0]),f=s(u[1]),p=s(r),d=function(t,e="kilometers"){const r=o[e];
1if(!r)throw new Error(e+" units is invalid");return t/r}(e,n.units),h=Math.asin(Math.sin(f)*Math.cos(d)+Math.cos(f)*Math.sin(d)*Math.cos(p)),y=a(l+Math.atan2(Math.sin(p)*Math.sin(d)*Math.cos(f),Math.cos(d)-Math.sin(f)*Math.sin(h))),g=a(h);return void 0!==u[2]?i([y,g,u[2]],n.properties):i([y,g],n.properties)}var f=r(76738);function p(t,e,r={}){const n=r.steps||64,o=r.properties?r.properties:!Array.isArray(t)&&"Feature"===t.type&&t.properties?t.properties:{},i=[];for(let o=0;o<n;o++)i.push(l(t,e,-360*o/n,r).geometry.coordinates);return i.push(i[0]),(0,f.n1)([i],o)}(0,Object.defineProperty)(p,"name",{value:"circle",configurable:!0})},96565:(t,e,r)=>{"use strict";r.d(e,{I:()=>i});var n=r(5354),o=r(76738);function i(t,e,r={}){var i=(0,n.uG)(t),a=(0,n.uG)(e),s=(0,o.tR)(a[1]-i[1]),u=(0,o.tR)(a[0]-i[0]),c=(0,o.tR)(i[1]),l=(0,o.tR)(a[1]),f=Math.pow(Math.sin(s/2),2)+Math.pow(Math.sin(u/2),2)*Math.cos(c)*Math.cos(l);return(0,o.cJ)(2*Math.atan2(Math.sqrt(f),Math.sqrt(1-f)),r.units)}(0,Object.defineProperty)(i,"name",{value:"distance",configurable:!0})},97507:(t,e,r)=>{"use strict";var n=r(85865);t.exports=function(t){var e=128&t[7]?-1:1,r=(127&t[7])<<4|(240&t[6])>>4,o=281474976710656*(15&t[6])+1099511627776*t[5]+4294967296*t[4]+16777216*t[3]+65536*t[2]+256*t[1]+t[0];return 0===r&&0===o?0*e:2047===r&&0!==o?NaN:2047===r&&0===o?e*(1/0):-1023==(r-=1023)?e*o*5e-324:e*(1+o/4503599627370496)*n(2,r)}}}]);
2//# sourceMappingURL=2929.myeroad.e9676bf60a3f41ff127f.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.