qa-prevention-gwj-first-app/hybrid/html/jsmap/2D/jsmap_light.js

1 line
1.3 MiB
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=204)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"earthRadius",function(){return r}),n.d(e,"factors",function(){return i}),n.d(e,"unitsFactors",function(){return o}),n.d(e,"areaFactors",function(){return a}),e.feature=s,e.geometry=function(t,e,n){void 0===n&&(n={});switch(t){case"Point":return u(e).geometry;case"LineString":return l(e).geometry;case"Polygon":return c(e).geometry;case"MultiPoint":return p(e).geometry;case"MultiLineString":return f(e).geometry;case"MultiPolygon":return d(e).geometry;default:throw new Error(t+" is invalid")}},e.point=u,e.points=function(t,e,n){void 0===n&&(n={});return h(t.map(function(t){return u(t,e)}),n)},e.polygon=c,e.polygons=function(t,e,n){void 0===n&&(n={});return h(t.map(function(t){return c(t,e)}),n)},e.lineString=l,e.lineStrings=function(t,e,n){void 0===n&&(n={});return h(t.map(function(t){return l(t,e)}),n)},e.featureCollection=h,e.multiLineString=f,e.multiPoint=p,e.multiPolygon=d,e.geometryCollection=function(t,e,n){void 0===n&&(n={});return s({type:"GeometryCollection",geometries:t},e,n)},e.round=function(t,e){void 0===e&&(e=0);if(e&&!(e>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,e||0);return Math.round(t*n)/n},e.radiansToLength=g,e.lengthToRadians=y,e.lengthToDegrees=function(t,e){return v(y(t,e))},e.bearingToAzimuth=function(t){var e=t%360;e<0&&(e+=360);return e},e.radiansToDegrees=v,e.degreesToRadians=function(t){return t%360*Math.PI/180},e.convertLength=function(t,e,n){void 0===e&&(e="kilometers");void 0===n&&(n="kilometers");if(!(t>=0))throw new Error("length must be a positive number");return g(y(t,e),n)},e.convertArea=function(t,e,n){void 0===e&&(e="meters");void 0===n&&(n="kilometers");if(!(t>=0))throw new Error("area must be a positive number");var r=a[e];if(!r)throw new Error("invalid original units");var i=a[n];if(!i)throw new Error("invalid final units");return t/r*i},e.isNumber=m,e.isObject=function(t){return!!t&&t.constructor===Object},e.validateBBox=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(function(t){if(!m(t))throw new Error("bbox must only contain numbers")})},e.validateId=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")};var r=6371008.8,i={centimeters:100*r,centimetres:100*r,degrees:r/111325,feet:3.28084*r,inches:39.37*r,kilometers:r/1e3,kilometres:r/1e3,meters:r,metres:r,miles:r/1609.344,millimeters:1e3*r,millimetres:1e3*r,nauticalmiles:r/1852,radians:1,yards:1.0936*r},o={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r,yards:1.0936133},a={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:3.86e-7,millimeters:1e6,millimetres:1e6,yards:1.195990046};function s(t,e,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=e||{},r.geometry=t,r}function u(t,e,n){if(void 0===n&&(n={}),!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(!m(t[0])||!m(t[1]))throw new Error("coordinates must contain numbers");return s({type:"Point",coordinates:t},e,n)}function c(t,e,n){void 0===n&&(n={});for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var a=0;a<o[o.length-1].length;a++)if(o[o.length-1][a]!==o[0][a])throw new Error("First and last Position are not equivalent.")}return s({type:"Polygon",coordinates:t},e,n)}function l(t,e,n){if(void 0===n&&(n={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");return s({type:"LineString",coordinates:t},e,n)}function h(t,e){void 0===e&&(e={});var n={type:"FeatureCollection"};return e.id&&(n.id=e.id),e.bbox&&(n.bbox=e.bbox),n.features=t,n}function f(t,e,n){return void 0===n&&(n={}),s({type:"MultiLineString",coordinates:t},e,n)}function p(t,e,n){return void 0===n&&(n={}),s({type:"MultiPoint",coordinates:t},e,n)}function d(t,e,n){return void 0===n&&(n={}),s({type:"MultiPolygon",coordinates:t},e,n)}function g(t,e){void 0===e&&(e="kilometers");var n=i[e];if(!n)throw new Error(e+" units is invalid");return t*n}function y(t,e){void 0===e&&(e="kilometers");var n=i[e];if(!n)throw new Error(e+" units is invalid");return t/n}function v(t){return 180*(t%(2*Math.PI))/Math.PI}function m(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"coordAll",function(){return l}),n.d(e,"coordEach",function(){return i}),n.d(e,"coordReduce",function(){return o}),n.d(e,"featureEach",function(){return u}),n.d(e,"featureReduce",function(){return c}),n.d(e,"findPoint",function(){return b}),n.d(e,"findSegment",function(){return _}),n.d(e,"flattenEach",function(){return p}),n.d(e,"flattenReduce",function(){return d}),n.d(e,"geomEach",function(){return h}),n.d(e,"geomReduce",function(){return f}),n.d(e,"lineEach",function(){return v}),n.d(e,"lineReduce",function(){return m}),n.d(e,"propEach",function(){return a}),n.d(e,"propReduce",function(){return s}),n.d(e,"segmentEach",function(){return g}),n.d(e,"segmentReduce",function(){return y});var r=n(0);function i(t,e,n){if(null!==t)for(var r,o,a,s,u,c,l,h,f=0,p=0,d=t.type,g="FeatureCollection"===d,y="Feature"===d,v=g?t.features.length:1,m=0;m<v;m++){u=(h=!!(l=g?t.features[m].geometry:y?t.geometry:t)&&"GeometryCollection"===l.type)?l.geometries.length:1;for(var _=0;_<u;_++){var b=0,w=0;if(null!==(s=h?l.geometries[_]:l)){c=s.coordinates;var E=s.type;switch(f=!n||"Polygon"!==E&&"MultiPolygon"!==E?0:1,E){case null:break;case"Point":if(!1===e(c,p,m,b,w))return!1;p++,b++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(!1===e(c[r],p,m,b,w))return!1;p++,"MultiPoint"===E&&b++}"LineString"===E&&b++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(o=0;o<c[r].length-f;o++){if(!1===e(c[r][o],p,m,b,w))return!1;p++}"MultiLineString"===E&&b++,"Polygon"===E&&w++}"Polygon"===E&&b++;break;case"MultiPolygon":for(r=0;r<c.length;r++){for(w=0,o=0;o<c[r].length;o++){for(a=0;a<c[r][o].length-f;a++){if(!1===e(c[r][o][a],p,m,b,w))return!1;p++}w++}b++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(!1===i(s.geometries[r],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(t,e,n,r){var o=n;return i(t,function(t,r,i,a,s){o=0===r&&void 0===n?t:e(o,t,r,i,a,s)},r),o}function a(t,e){var n;switch(t.type){case"FeatureCollection":for(n=0;n<t.features.length&&!1!==e(t.features[n].properties,n);n++);break;case"Feature":e(t.properties,0)}}function s(t,e,n){var r=n;return a(t,function(t,i){r=0===i&&void 0===n?t:e(r,t,i)}),r}function u(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var n=0;n<t.features.length&&!1!==e(t.features[n],n);n++);}function c(t,e,n){var r=n;return u(t,function(t,i){r=0===i&&void 0===n?t:e(r,t,i)}),r}function l(t){var e=[];return i(t,function(t){e.push(t)}),e}function h(t,e){var n,r,i,o,a,s,u,c,l,h,f=0,p="FeatureCollection"===t.type,d="Feature"===t.type,g=p?t.features.length:1;for(n=0;n<g;n++){for(s=p?t.features[n].geometry:d?t.geometry:t,c=p?t.features[n].properties:d?t.properties:{},l=p?t.features[n].bbox:d?t.bbox:void 0,h=p?t.features[n].id:d?t.id:void 0,a=(u=!!s&&"GeometryCollection"===s.type)?s.geometries.length:1,i=0;i<a;i++)if(null!==(o=u?s.geometries[i]:s))switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(o,f,c,l,h))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===e(o.geometries[r],f,c,l,h))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,f,c,l,h))return!1;f++}}function f(t,e,n){var r=n;return h(t,function(t,i,o,a,s){r=0===i&&void 0===n?t:e(r,t,i,o,a,s)}),r}function p(t,e){h(t,function(t,n,i,o,a){var s,u=null===t?null:t.type;switch(u){case null:case"Point":case"LineString":case"Polygon":return!1!==e(Object(r.feature)(t,i,{bbox:o,id:a}),n,0)&&void 0}switch(u){case"MultiPoint":s="Point";break;case"MultiLineString":s="LineString";break;case"MultiPolygon":s="Polygon"}for(var c=0;c<t.coordinates.length;c++){var l={type:s,coordinates:t.coordinates[c]};if(!1===e(Object(r.feature)(l,i),n,c))return!1}})}function d(t,e,n){var r=n;return p(t,function(t,i,o){r=0===i&&0===o&&void 0===n?t:e(r,t,i,o)}),r}function g(t,e){p(t,function(t,n,o){var a=0;if(t.geometry){var s=t.geometry.type;if("Point"!==s&&"MultiPoint"!==s){var u,c=0,l=0,h=0;return!1!==i(t,function(i,s,f,p,d){if(void 0===u||n>c||p>l||d>h)return u=i,c=n,l=p,h=d,void(a=0);var g=Object(r.lineString)([u,i],t.properties);if(!1===e(g,n,o,d,a))return!1;a++,u=i})&&void 0}}})}function y(t,e,n){var r=n,i=!1;return g(t,function(t,o,a,s,u){r=!1===i&&void 0===n?t:e(r,t,o,a,s,u),i=!0}),r}function v(t,e){if(!t)throw new Error("geojson is required");p(t,function(t,n,i){if(null!==t.geometry){var o=t.geometry.type,a=t.geometry.coordinates;switch(o){case"LineString":if(!1===e(t,n,i,0,0))return!1;break;case"Polygon":for(var s=0;s<a.length;s++)if(!1===e(Object(r.lineString)(a[s],t.properties),n,i,s))return!1}}})}function m(t,e,n){var r=n;return v(t,function(t,i,o,a){r=0===i&&void 0===n?t:e(r,t,i,o,a)}),r}function _(t,e){if(e=e||{},!Object(r.isObject)(e))throw new Error("options is invalid");var n,i=e.featureIndex||0,o=e.multiFeatureIndex||0,a=e.geometryIndex||0,s=e.segmentIndex||0,u=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),u=u||t.features[i].properties,n=t.features[i].geometry;break;case"Feature":u=u||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return s<0&&(s=c.length+s-1),Object(r.lineString)([c[s],c[s+1]],u,e);case"Polygon":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s-1),Object(r.lineString)([c[a][s],c[a][s+1]],u,e);case"MultiLineString":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s-1),Object(r.lineString)([c[o][s],c[o][s+1]],u,e);case"MultiPolygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),s<0&&(s=c[o][a].length-s-1),Object(r.lineString)([c[o][a][s],c[o][a][s+1]],u,e)}throw new Error("geojson is invalid")}function b(t,e){if(e=e||{},!Object(r.isObject)(e))throw new Error("options is invalid");var n,i=e.featureIndex||0,o=e.multiFeatureIndex||0,a=e.geometryIndex||0,s=e.coordIndex||0,u=e.properties;switch(t.type){case"FeatureCollection":i<0&&(i=t.features.length+i),u=u||t.features[i].properties,n=t.features[i].geometry;break;case"Feature":u=u||t.properties,n=t.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=t;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":return Object(r.point)(c,u,e);case"MultiPoint":return o<0&&(o=c.length+o),Object(r.point)(c[o],u,e);case"LineString":return s<0&&(s=c.length+s),Object(r.point)(c[s],u,e);case"Polygon":return a<0&&(a=c.length+a),s<0&&(s=c[a].length+s),Object(r.point)(c[a][s],u,e);case"MultiLineString":return o<0&&(o=c.length+o),s<0&&(s=c[o].length+s),Object(r.point)(c[o][s],u,e);case"MultiPolygon":return o<0&&(o=c.length+o),a<0&&(a=c[o].length+a),s<0&&(s=c[o][a].length-s),Object(r.point)(c[o][a][s],u,e)}throw new Error("geojson is invalid")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCoord=function(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")},e.getCoords=function(t){if(Array.isArray(t))return t;if("Feature"===t.type){if(null!==t.geometry)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")},e.containsNumber=function t(e){if(e.length>1&&Object(r.isNumber)(e[0])&&Object(r.isNumber)(e[1]))return!0;if(Array.isArray(e[0])&&e[0].length)return t(e[0]);throw new Error("coordinates must only contain numbers")},e.geojsonType=function(t,e,n){if(!e||!n)throw new Error("type and name required");if(!t||t.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+t.type)},e.featureOf=function(t,e,n){if(!t)throw new Error("No feature passed");if(!n)throw new Error(".featureOf() requires a name");if(!t||"Feature"!==t.type||!t.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!t.geometry||t.geometry.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+t.geometry.type)},e.collectionOf=function(t,e,n){if(!t)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!t||"FeatureCollection"!==t.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var r=0,i=t.features;r<i.length;r++){var o=i[r];if(!o||"Feature"!==o.type||!o.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!o.geometry||o.geometry.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+o.geometry.type)}},e.getGeom=function(t){if("Feature"===t.type)return t.geometry;return t},e.getType=function(t,e){if("FeatureCollection"===t.type)return"FeatureCollection";if("GeometryCollection"===t.type)return"GeometryCollection";if("Feature"===t.type&&null!==t.geometry)return t.geometry.type;return t.type};var r=n(0)},function(t,e,n){"use strict";n.d(e,"i",function(){return r}),n.d(e,"j",function(){return i}),n.d(e,"o",function(){return o}),n.d(e,"l",function(){return a}),n.d(e,"q",function(){return s}),n.d(e,"w",function(){return u}),n.d(e,"h",function(){return c}),n.d(e,"r",function(){return l}),n.d(e,"a",function(){return h}),n.d(e,"d",function(){return f}),n.d(e,"e",function(){return p}),n.d(e,"g",function(){return d}),n.d(e,"f",function(){return g}),n.d(e,"k",function(){return y}),n.d(e,"n",function(){return v}),n.d(e,"p",function(){return m}),n.d(e,"t",function(){return _}),n.d(e,"s",function(){return b}),n.d(e,"u",function(){return w}),n.d(e,"v",function(){return E}),e.b=function(t){return t>1?0:t<-1?o:Math.acos(t)},e.c=function(t){return t>1?a:t<-1?-a:Math.asin(t)},e.m=function(t){return(t=_(t/2))*t};var r=1e-6,i=1e-12,o=Math.PI,a=o/2,s=o/4,u=2*o,c=180/o,l=o/180,h=Math.abs,f=Math.atan,p=Math.atan2,d=Math.cos,g=Math.ceil,y=Math.exp,v=(Math.floor,Math.log),m=Math.pow,_=Math.sin,b=Math.sign||function(t){return t>0?1:t<0?-1:0},w=Math.sqrt,E=Math.tan},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.JSControlPosition={LEFT_BOTTOM:Symbol("bottomleft"),LEFT_CENTER:Symbol("centerleft"),LEFT_TOP:Symbol("topleft"),RIGHT_TOP:Symbol("topright"),RIGHT_CENTER:Symbol("centerright"),RIGHT_BOTTOM:Symbol("bottomright"),CENTER_TOP:Symbol("topcenter"),CENTER:Symbol("center"),CENTER_BOTTOM:Symbol("bottomcenter")},e.JSPOSITION_DEFAULT_RATIO=1e7,e.JSLayerType={POINT_MARKER_LAYER:"pointmarkerlayer",IMAGE_MARKER_LAYER:"imagemarkerlayer",LABEL_MARKER_LAYER:"labelmarkerlayer",LINE_MARKER_LAYER:"linemarkerlayer",POLYGON_MARKER_LAYER:"polygonmarkerlayer",POPINFO_MARKER_LAYER:"popinfomarkerlayer",ICON_TEXT_MARKER_LAYER:"icontextmarkerlayer",CIRCLE_MARKER_LAYER:"circlemarkerlayer",DOM_MARKER_LAYER:"dommarkerlayer",RECTANGLE_MARKER_LAYER:"rectanglemarkerlayer"},e.JSIconTextType={LEFTICON_RIGHTTEXT:Symbol("lefticonrighttext"),LEFTTEXT_RIGHTICON:Symbol("lefttextrighticon"),TOPICON_BOTTOMTEXT:Symbol("topiconbottomtext"),TOPTEXT_BOTTOMICON:Symbol("toptextbottomicon")},e.JSDrawMode={POINT:Symbol("point"),POLYLINE:Symbol("polyline"),POLYGON:Symbol("polygon"),CIRCLE:Symbol("circle"),RECTANGLE:Symbol("rectangle"),EDITED:Symbol("edited")};var r=e.JSNodeType={FLOOR:Symbol("floor"),IMAGE_MARKER:Symbol("imagemarker"),LABEL_MARKER:Symbol("labelmarker"),LINE_MARKER:Symbol("linemarker"),POINT_MARKER:Symbol("pointmarker"),POLYGON_MARKER:Symbol("polygonmarker"),POPINFO_MARKER:Symbol("popinfomarker"),ICON_TEXT_MARKER:Symbol("icontextmaker"),CIRCLE_MARKER:Symbol("circlemarker"),DOM_MARKER:Symbol("dommarker"),RECTANGLE_MARKER:Symbol("rectanglemarker"),NONE:Symbol("none")};e.JSLineType={DASH:Symbol("dash"),ARROW:Symbol("arrow"),FILL:Symbol("fill")},e.JSImageryProviderType={IMAGE_TDT:Symbol("image_tdt"),VECTOR_TDT:Symbol("vector_tdt"),TERRAIN_TDT:Symbol("terrain_tdt"),IMAGE_GD:Symbol("image_gd"),VECTOR_GD:Symbol("vector_gd"),VECTOR_OSM:Symbol("vector_osm"),IMAGE_ARCGIS:Symbol("image_arcgis"),VECTOR_GEOQ:Symbol("vector_geoq"),VECTOR_GEOQ_GRAY:Symbol("vector_geoq_gray"),VECTOR_GEOQ_PINCINE:Symbol("vector_geoq_pincine"),VECTOR_GEOQ_WARM:Symbol("vector_geoq_warm"),IMAGE_MAPBOX:Symbol("image_mapbox"),VECTOR_MAPBOX:Symbol("vector_mapbox")},e.JSMarkerType=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(26)),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(33)),a=s(n(25));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(t,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i._x=t,i._y=n,i._z=r||0,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a.default),r(e,[{key:"toString",value:function(){return"x = "+this._x+", y = "+this._y+", z = "+this._z}},{key:"equal",value:function(t){return this.toString()==t.toString()}},{key:"distanceTo",value:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2)+Math.pow(this.z-t.z,2))}},{key:"clone",value:function(){return new e(this.x,this.y,this.z)}},{key:"getRectangle",value:function(t){return t/=2,new i.default(this._x-t,this._y-t,this._x+t,this._y+t)}},{key:"toGeoJSONCoordinates",value:function(){return[this._x,this._y]}},{key:"toGeoJSON",value:function(){return o.point(this.toGeoJSONCoordinates())}},{key:"x",get:function(){return this._x},set:function(t){this._x=t}},{key:"y",get:function(){return this._y},set:function(t){this._y=t}},{key:"z",get:function(){return this._z},set:function(t){this._z=t}},{key:"envelope",get:function(){return new i.default(this._x,this._y,this._x,this._y)}},{key:"center",get:function(){return new e(this._x,this._y,this._z)}}]),e}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return void 0!==t&&null!==t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSBOUNDSPHERE_DEFAULT_RADIUS=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=d(n(211)),o=n(4),a=d(n(394)),s=d(n(421)),u=(d(n(5)),d(n(14))),c=(d(n(69)),d(n(12)),n(55)),l=d(n(425)),h=d(n(426)),f=d(n(458)),p=d(n(38));function d(t){return t&&t.__esModule?t:{default:t}}var g=e.JSBOUNDSPHERE_DEFAULT_RADIUS=8e-5,y=window.L,v=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=24,r=1,a=e.mapServerURL,u=e.mapScaleLevelRange,c=e.defaultMapScaleLevel,p=e.viewOptions,d=e.container,g=e.showGlobe,v=e.imageryProvider,m=e.showLoading;u&&u instanceof Array&&2==u.length&&(r=u[0]||1,n=u[1]||24,r=r<1?1:Math.round(r),n=n>24?24:Math.round(n));var _=void 0;p&&p.center&&(_=p.center),v||(v=o.JSImageryProviderType.IMAGE_TDT),this._options={showGlobe:void 0==g||g,defaultMapScaleLevel:c||18,maxZoom:n,minZoom:r,center:_,container:d,mapServerURL:a,showLoading:void 0==m||m},f.default.leafletSettings(y),this._map=y.map(e.container,{attributionControl:!1,zoomControl:!1,minZoom:r,maxZoom:n,tag:!1}),this._layerManager=new i.default(this),this._eventManager=new s.default(this),this._baseLayerManager=new h.default(this),this.imageryProvider=v,l.default.printVersion()}return r(t,[{key:"openMapById",value:function(t,e){var n=this;n._mapId=t;var r=n._options.mapServerURL,i=r+"/"+t+"/mapConfig.json";a.default.fetchJson({url:i}).then(function(i){n._mapConfig=i;var o=i.root,a=i.floors,s=i.format,c=s||"jpg";if(void 0!=o||void 0!=a){var l=void 0;if(o){var h=o.minZoom,f=o.maxZoom,p=o.leftBottom,d=o.rightTop,g=y.latLngBounds(y.latLng(p.y,p.x),y.latLng(d.y,d.x));if("raster"==c)n._rootLayer=y.tileLayer(r+"/"+t+"/map/G/{z}/{x}/{y}.png",{minZoom:h||12,maxZoom:24,maxNativeZoom:f||21,bounds:g}),n._rootLayer._bounds=g,n._rootLayer.bringToFront();else{var v=r+"/"+t+"/map/G."+c;n._rootLayer=y.imageOverlay(v,g)}n._rootLayer.addTo(n._map)}if(a){n._floorLayerSet=new Map,l=u.default.getFloorItemsByFloorNos(Object.keys(a));var m=!0,_=!1,b=void 0;try{for(var w,E=l[Symbol.iterator]();!(m=(w=E.next()).done);m=!0){var x=w.value,O=x.floorId,M=x.floorNo,S=a[M],P=void 0,C=y.latLngBounds(y.latLng(S.leftBottom.y,S.leftBottom.x),y.latLng(S.rightTop.y,S.rightTop.x));"raster"==s?((P=y.tileLayer(r+"/"+t+"/map/"+M+"/{z}/{x}/{y}.png",{minZoom:S.minZoom||12,maxZoom:24,maxNativeZoom:S.maxZoom||21,bounds:C}))._bounds=C,P.bringToFront()):P=y.imageOverlay(r+"/"+t+"/map/"+M+"."+c,C),P.addTo(n._map),n._floorLayerSet.set(M,{layer:P,floorId:O})}}catch(t){_=!0,b=t}finally{try{!m&&E.return&&E.return()}finally{if(_)throw b}}}var T=0;e&&void 0!==e.focusFloorId?T=e.focusFloorId:void 0==n._rootLayer&&void 0!=n._floorLayerSet&&(T=l[0].floorId),n.focusFloorId=T,n.resetView(),n._layerManager.initLayerGroups(),n._eventManager.raise("loadComplete",{target:n._map})}else console.error("The mapConfig is wrong")}).otherwise(function(t){console.error(t)})}},{key:"addMarker",value:function(t){var e=this._layerManager.addMarker(t);return this._eventManager.registerMarkerClickEvent(e),e}},{key:"removeMarker",value:function(t){return this._layerManager.removeMarker(t)}},{key:"updateMarkerPosition",value:function(t,e){this._layerManager.updateMarkerPosition(t,e)}},{key:"removeAllIconTextMarker",value:function(){this._layerManager.removeAllMarker(o.JSLayerType.ICON_TEXT_MARKER_LAYER)}},{key:"removeAllImageMarker",value:function(){this._layerManager.removeAllMarker(o.JSLayerType.IMAGE_MARKER_LAYER)}},{key:"removeAllPointMarker",value:function(){this._layerManager.removeAllMarker(o.JSLayerType.POINT_MARKER_LAYER)}},{key:"removeAllPolygonMarker",value:function(){this._layerManager.removeAllMarker(o.JSLayerType.POLYGON_MARKER_LAYER)}},{key:"removeAllLineMarker",value:function(){this._layerManager.removeAllMarker(o.JSLayerType.LINE_MARKER_LAYER)}},{key:"removeAllDomMarker",value:function(){this._layerManager.removeAllMarker(o.JSLayerType.DOM_MARKER_LAYER)}},{key:"removeAllCircleMarker",value:function(){this._layerManager.removeAllMarker(o.JSLayerType.CIRCLE_MARKER_LAYER)}},{key:"removeAllMarker",value:function(){this._layerManager.removeAllMarker()}},{key:"removeMarkerByFilter",value:function(t,e){this._layerManager.removeMarkerByFilter(t,e)}},{key:"setMarkerVisibleByFilter",value:function(t,e,n){this._layerManager.setMarkerVisibleByFilter(t,e,n)}},{key:"setMarkerOnlyVisibleByFilter",value:function(t,e,n){this._layerManager.setMarkerOnlyVisibleByFilter(t,e,n)}},{key:"resetView",value:function(){var t=this._options,e=t.center,n=t.defaultMapScaleLevel;if(e)this._map.setView([e.y,e.x],n);else{var r=this.focusFloorId;if(0===r&&this._rootLayer)this._map.fitBounds(this._rootLayer._bounds);else if(this._floorLayerSet){var i=u.default.getFloorNoByFloorId(r),o=this._floorLayerSet.get(i);o&&this._map.fitBounds(o.layer._bounds)}}}},{key:"removeControl",value:function(t){t&&(t.removeFromMap(),t.destroy())}},{key:"addControl",value:function(t){t.addToMap(this)}},{key:"flyToPosition",value:function(t,e){var n=1e3;e&&(0,c.isNumber)(e.duration)&&(n=e.duration);var r=g/2,i=void 0;if(t instanceof Array){var o=u.default.getEnvelope(t);r=o.radius+g/2,i=o.center}else i=t;var a=i,s=a.x,l=a.y;this._map.fitBounds([[l-r,s-r],[l+r,s+r]],{zoom:{animate:n>0},pan:{animate:n>0,duration:n/1e3,easeLinearity:1}})}},{key:"flyToMarker",value:function(t,e){if(t)if(t.destroyed())console.error("The marker has been removed!");else{var n=1e3,r=0;e&&((0,c.isNumber)(e.duration)&&(n=e.duration),e.offset&&(0,c.isNumber)(e.offset.range)&&(r=e.offset.range)),this.focusFloorId=t.floorId;var i=t.boundingSphere,o=i.center,a=i.radius,s=0===r?a:r,u=o.x,l=o.y;this._map.fitBounds([[l-s,u-s],[l+s,u+s]],{animate:!0,duration:n/1e3})}else console.error("The marker can not be empty!")}},{key:"trackMarker",value:function(t,e){t?t.destroyed()?console.error("The marker has been removed!"):this._layerManager.trackMarker(t,e):console.error("The marker can not be empty!")}},{key:"cancelTrack",value:function(){this._layerManager.cancelTrack()}},{key:"on",value:function(t,e){this._eventManager.on(t,e)}},{key:"off",value:function(t,e){this._eventManager.off(t,e)}},{key:"getFloorList",value:function(){return this._layerManager.getFloorList()}},{key:"_setLayerBounds",value:function(t,e){if(e&&e instanceof p.default){var n=e.west,r=e.south,i=e.east,o=[[r,n],[e.north,i]];if(0===t)return this._rootLayer?void this._rootLayer.setBounds(o):void console.error("This floorId is wrong!");var a=u.default.getFloorNoByFloorId(t),s=this._floorLayerSet.get(a);s?s.layer.setBounds(o):console.error("The floorId is wrong!!")}else console.error("The bounds is not been supported!!")}},{key:"_setLayerOpacity",value:function(t,e){if(0===t)return this._rootLayer?void this._rootLayer.setOpacity(e):void console.error("This floorId is wrong!");var n=u.default.getFloorNoByFloorId(t),r=this._floorLayerSet.get(n);r?r.layer.setOpacity(e):console.error("The floorId is wrong!!")}},{key:"_updateFocusFloorId",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this._focusFloorId;if(this._focusFloorId=t,t!=n){if(0===t){if(!this._rootLayer)return void console.error("This floorId is wrong!");this._rootLayer.setOpacity(1),this._floorLayerSet&&this._floorLayerSet.forEach(function(t){t.layer.setOpacity(0)}),e&&this._eventManager.raise("floorChange",n,t)}else{if(!this._floorLayerSet)return void console.error("This floorId is wrong!");var r=!1;if(this._floorLayerSet.forEach(function(e){var n=e.layer;e.floorId===t?(n.setOpacity(1),r=!0):n.setOpacity(0)}),this._rootLayer&&this._rootLayer.setOpacity(0),!r)return void console.error("This floorId is wrong!");e&&this._eventManager.raise("floorChange",n,t)}this._layerManager.changeFloor(t)}}},{key:"zoomIn",value:function(){this._map.zoomIn()}},{key:"zoomOut",value:function(){this._map.zoomOut()}},{key:"destroy",value:function(){this._layerManager&&this._layerManager.destroy(),this._eventManager&&this._eventManager.destroy(),this._baseLayerManager&&this._baseLayerManager.destroy(),this._map&&this._map.remove(),this._map=void 0,this._floorLayerSet=void 0,this._rootLayer=void 0,this._options=void 0,this._focusFloorId=void 0}},{key:"focusFloorId",get:function(){return this._focusFloorId},set:function(t){this._updateFocusFloorId(t)}},{key:"imageryProvider",set:function(t){t?this._baseLayerManager.setBaseLayer(t,this._options.showGlobe):console.error("The type of imageryProvider can not be empty!!")},get:function(){return this._baseLayerManager._currentImageryProvider}},{key:"showGlobe",set:function(t){this._baseLayerManager.setBaseLayer(this.imageryProvider,t)},get:function(){return this._options.showGlobe}}]),t}();e.default=v},function(t,e,n){"use strict";var r=n(2),i=n(0);e.a=function(t,e,n){void 0===n&&(n={});var o=Object(r.getCoord)(t),a=Object(r.getCoord)(e),s=Object(i.degreesToRadians)(a[1]-o[1]),u=Object(i.degreesToRadians)(a[0]-o[0]),c=Object(i.degreesToRadians)(o[1]),l=Object(i.degreesToRadians)(a[1]),h=Math.pow(Math.sin(s/2),2)+Math.pow(Math.sin(u/2),2)*Math.cos(c)*Math.cos(l);return Object(i.radiansToLength)(2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h)),n.units)}},function(t,e,n){"use strict";function r(t){var e={type:"Feature"};return Object.keys(t).forEach(function(n){switch(n){case"type":case"properties":case"geometry":return;default:e[n]=t[n]}}),e.properties=function t(e){var n={};if(!e)return n;Object.keys(e).forEach(function(r){var i=e[r];"object"==typeof i?null===i?n[r]=null:Array.isArray(i)?n[r]=i.map(function(t){return t}):n[r]=t(i):n[r]=i});return n}(t.properties),e.geometry=i(t.geometry),e}function i(t){var e={type:t.type};return t.bbox&&(e.bbox=t.bbox),"GeometryCollection"===t.type?(e.geometries=t.geometries.map(function(t){return i(t)}),e):(e.coordinates=function t(e){var n=e;if("object"!=typeof n[0])return n.slice();return n.map(function(e){return t(e)})}(t.coordinates),e)}e.a=function(t){if(!t)throw new Error("geojson is required");switch(t.type){case"Feature":return r(t);case"FeatureCollection":return function(t){var e={type:"FeatureCollection"};return Object.keys(t).forEach(function(n){switch(n){case"type":case"features":return;default:e[n]=t[n]}}),e.features=t.features.map(function(t){return r(t)}),e}(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return i(t);default:throw new Error("unknown GeoJSON type")}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);function i(t){var e=[1/0,1/0,-1/0,-1/0];return Object(r.coordEach)(t,function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])}),e}i.default=i,e.default=i},function(t,e,n){"use strict";e.a=function(t,e,n){void 0===n&&(n={});if(!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");var o=Object(r.getCoord)(t),a=Object(r.getGeom)(e),s=a.type,u=e.bbox,c=a.coordinates;if(u&&!1===function(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}(o,u))return!1;"Polygon"===s&&(c=[c]);for(var l=!1,h=0;h<c.length&&!l;h++)if(i(o,c[h][0],n.ignoreBoundary)){for(var f=!1,p=1;p<c[h].length&&!f;)i(o,c[h][p],!n.ignoreBoundary)&&(f=!0),p++;f||(l=!0)}return l};var r=n(2);function i(t,e,n){var r=!1;e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]&&(e=e.slice(0,e.length-1));for(var i=0,o=e.length-1;i<e.length;o=i++){var a=e[i][0],s=e[i][1],u=e[o][0],c=e[o][1];if(t[1]*(a-u)+s*(u-t[0])+c*(t[0]-a)==0&&(a-t[0])*(u-t[0])<=0&&(s-t[1])*(c-t[1])<=0)return!n;s>t[1]!=c>t[1]&&t[0]<(u-a)*(t[1]-s)/(c-s)+a&&(r=!r)}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(183)),o=(s(n(21)),s(n(5))),a=n(4);function s(t){return t&&t.__esModule?t:{default:t}}window.L;var u=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._id=e.id+"",this._floorId=Number(e.floorId||0),0==e.show?this._show=!1:this._show=!0,this._callback=function(t){n._node=t,n._nodeId=t._leaflet_id,n.setProperties(e.properties),e.callback&&e.callback(n)}}return r(t,[{key:"setPosition",value:function(t){if(this._position.x!=t.x||this._position.y!=t.y){var e=this._node;e&&(this._position=new o.default(t.x,t.y,0),this._moveAnimator&&this._moveAnimator.clear(),e.setLatLng([t.y,t.x]),this._positionChangeCallback&&this._positionChangeCallback(t))}}},{key:"moveTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments[2],r=this,s=arguments[3],u=arguments[4];if(this._node){if(this._position.x==t.x&&this._position.y==t.y)return;if(0==e)this.setPosition(t);else{this.clearAnimators();var c=this;c._positionChangeCallback&&c._positionChangeCallback(t,e),c._moveAnimator=new i.default({x:this._position.x*a.JSPOSITION_DEFAULT_RATIO,y:this._position.y*a.JSPOSITION_DEFAULT_RATIO},{x:t.x*a.JSPOSITION_DEFAULT_RATIO,y:t.y*a.JSPOSITION_DEFAULT_RATIO},{update:function(t){c._node&&(c._position=new o.default(t.x/a.JSPOSITION_DEFAULT_RATIO,t.y/a.JSPOSITION_DEFAULT_RATIO,0),c._node.setLatLng([c._position.y,c._position.x]),n&&n(r._position))},duration:e,begin:u,complete:s})}}}},{key:"setProperties",value:function(t){if(this._node){if(!Object.entries){var e=Function.bind.call(Function.call,Array.prototype.reduce),n=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),r=Function.bind.call(Function.call,Array.prototype.concat),i=Reflect.ownKeys;Object.entries=function(t){return e(i(t),function(e,i){return r(e,"string"==typeof i&&n(t,i)?[[i,t[i]]]:[])},[])}}null==t||0==t.size?this._node.properties=new Map:t instanceof Map?this._node.properties=t:t instanceof Object&&(this._node.properties=new Map(Object.entries(t)))}}},{key:"addProperty",value:function(t,e){this._node.properties||(this._node.properties=new Map);var n=this._node.properties;n.has(t)||n.set(t,e)}},{key:"getProperties",value:function(){return this.node&&this.node.properties?this.node.properties:new Map}},{key:"clearAnimators",value:function(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._moveAnimator&&this._moveAnimator.clear()}},{key:"destroy",value:function(){this.clearAnimators(!0),this._id=void 0,this._nodeId=void 0,this._floorId=void 0,this._node=void 0,this._show=void 0,this._callback=void 0,this._position=void 0,this._moveAnimator=void 0,this._positionChangeCallback=void 0,this._updateCallback=void 0}},{key:"destroyed",value:function(){return!this._node}},{key:"node",get:function(){return this._node}},{key:"position",get:function(){return this._position},set:function(t){this._position=t,this._positionChangeCallback&&this._positionChangeCallback(this._position)}},{key:"floorId",get:function(){return this._floorId},set:function(t){this._floorId=t}},{key:"show",get:function(){return this._show},set:function(t){t!=this._show&&(this._show=t,this._node.setOpacity(t?1:0))}},{key:"callback",get:function(){return this._callback}},{key:"boundingSphere",get:function(){return null}},{key:"positionChangeCallback",get:function(){return this._positionChangeCallback},set:function(t){this._positionChangeCallback=t}}]),t}();e.default=u},function(t,e,n){"use strict";function r(t,e){return void 0!==t&&null!==t?t:e}Object.defineProperty(e,"__esModule",{value:!0}),r.EMPTY_OBJECT=Object.freeze({}),e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=(l(n(32)),function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(33))),o=l(n(26)),a=n(4),s=(l(n(5)),l(n(18))),u=l(n(20)),c=(l(n(51)),l(n(370)));function l(t){return t&&t.__esModule?t:{default:t}}var h=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"generateUUID",value:function(){return(1e7*Math.random()).toString(16).substr(0,4)+"-"+(new Date).getTime()+"-"+Math.random().toString().substr(2,5)}},{key:"getEnvelope",value:function(t){var e=void 0;t instanceof Array?e=t:(t instanceof u.default||t instanceof s.default)&&(e=t.points);var n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY,a=Number.NEGATIVE_INFINITY;return e.forEach(function(t){n>t.x&&(n=t.x),r>t.y&&(r=t.y),i<t.x&&(i=t.x),a<t.y&&(a=t.y)}),new o.default(n,r,i,a)}},{key:"calculateCircleGeoJSONCoordinates",value:function(t){var e=t.center,n=t.radius,r=i.point([e.x,e.y]);return i.buffer(r,n,{units:"meters"}).geometry.coordinates}},{key:"calculateCircleEnvelope",value:function(t){var e=i.envelope(i.featureCollection([t.toGeoJSON()])).geometry.coordinates[0],n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY;return e.forEach(function(t){var e=t[0],i=t[1];n>e&&(n=e),r>i&&(r=i),a<e&&(a=e),s<i&&(s=i)}),(0,o.default)(n,r,a,s)}},{key:"getFloorItemsByFloorNos",value:function(t){var e=[],n=this;return t.forEach(function(t){e.push({floorId:n.getFloorIdByFloorNo(t),floorNo:t})}),e.sort(function(t,e){return t.floorId-e.floorId})}},{key:"getFloorIdByFloorNo",value:function(t){var e=void 0;return/^(F[1-9]\d*)$/.test(t)?(e=t.replace("F",""),parseInt(e)):/^(B[1-9]\d*)$/.test(t)?(e=t.replace("B",""),-parseInt(e)):/^(M[1-9]\d*)$/.test(t)?(e=t.replace("M",""),Number(e)+.5):/^(U[1-9]\d*)$/.test(t)?(e=t.replace("U",""),.5-Number(e)):1}},{key:"getFloorNoByFloorId",value:function(t){return Number.isInteger(t)?t>0?"F"+t:t<0?"B"+-t:"G":t<0?"U"+Math.ceil(-t):"M"+Math.floor(t)}},{key:"getLeafletPosition",value:function(t){var e=void 0;switch(t){case a.JSControlPosition.RIGHT_TOP:e="topright";break;case a.JSControlPosition.RIGHT_BOTTOM:e="bottomright";break;case a.JSControlPosition.LEFT_BOTTOM:e="bottomleft";break;default:e="topleft"}return e}},{key:"iconTextToImage",value:function(t){var e=document.createElement("canvas"),n=e.getContext("2d"),r=t._font||"20px Tahoma",i=this.getNumFromString(r),o=4*t._backgroundRadius,s=4*t._backgroundStrokeWidth,u=t._backgroundStrokeColor,c=t._fontStrokeColor,l=t._fontStrokeWidth;isNaN(i)||(0==i?(i=10,r="40px "+r):r=r.replace(i+"",4*i+"")),i*=4,n.font=r;var h=n.measureText(t._text).width,f=h/i,p=f>2?f<4?2:1.2:3,d=1.6*i,g=h*p,y=4*t._imageWidth||d,v=4*t._imageHeight||d,m=void 0;t._image instanceof Image||((m=new Image).src=t._image),m.setAttribute("crossOrigin","Anonymous");var _=void 0,b=void 0,w=void 0,E=void 0,x=void 0,O=void 0;switch(t._iconTextType){case a.JSIconTextType.LEFTTEXT_RIGHTICON:e.height=Math.max(d+8,v+8),e.width=h*p+y+16,x=4,O=.5*e.height-.5*d,w=4+.5*g-.5*h,E=e.height/2,_=g+12,b=.5*e.height-.5*v;break;case a.JSIconTextType.TOPICON_BOTTOMTEXT:e.width=Math.max(g+8,v+8),e.height=d+v+16,_=.5*(e.width-y),b=4,x=.5*(e.width-g),O=12+v,w=.5*(e.width-h),E=O+.5*d;break;case a.JSIconTextType.TOPTEXT_BOTTOMICON:e.width=Math.max(g+8,v+8),e.height=d+v+16,x=.5*(e.width-g),O=4,w=.5*(e.width-h),E=O+.5*d,_=.5*(e.width-y),b=12+d;break;default:e.height=Math.max(d+8,v+8),e.width=h*p+y+16,_=4,b=.5*e.height-.5*v,x=12+y,O=.5*e.height-.5*d,w=4+.5*g-.5*h+y,E=e.height/2}n.drawImage(m,_,b,y,v),2*o<=g&&2*o<=d?(n.save(),n.translate(x+s,O+s),this.drawRoundRectPath(n,g-2*s,d-2*s,o),n.fillStyle=t._backgroundColor,n.fill(),n.lineWidth=s,n.strokeStyle=u,n.stroke(),n.restore()):(n.fillStyle=t._backgroundColor,n.fillRect(x,O,g,d)),n.fillStyle=t._fontColor,n.textBaseline="middle",n.font=r,n.strokeStyle=c,n.lineWidth=l,n.strokeText(t._text,w,E),n.fillText(t._text,w,E);var M=document.createElement("div");return M.appendChild(e),{image:M,width:e.width,height:e.height}}},{key:"getImageMarkerOffsetAnchor",value:function(t){var e=t.height,n=t.width,r=[n/2,e/2];switch(t._offset){case a.JSControlPosition.LEFT_TOP:r=[0,0];break;case a.JSControlPosition.LEFT_CENTER:r=[0,e/2];break;case a.JSControlPosition.LEFT_BOTTOM:r=[0,e];break;case a.JSControlPosition.CENTER_TOP:r=[n/2,0];break;case a.JSControlPosition.CENTER_BOTTOM:r=[n/2,e];break;case a.JSControlPosition.RIGHT_TOP:r=[n,0];break;case a.JSControlPosition.RIGHT_CENTER:r=[n,e/2];break;case a.JSControlPosition.RIGHT_BOTTOM:r=[n,e]}return r}},{key:"getLineOrPolygonLatlngs",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[],r=void 0;return(r=t instanceof u.default?e?c.default.simpleLine(t.points,1e-6,!0):t.points:t instanceof s.default?t.points:e?c.default.simpleLine(t,1e-6,!0):t).forEach(function(t){n.push([t.y,t.x])}),{latlngs:n,points:r}}},{key:"getNumFromString",value:function(t){var e=t.replace(/[^0-9]/gi,"");return Number(e)}},{key:"drawRoundRectPath",value:function(t,e,n,r){t.beginPath(0),t.arc(e-r,n-r,r,0,Math.PI/2),t.lineTo(r,n),t.arc(r,n-r,r,Math.PI/2,Math.PI),t.lineTo(0,r),t.arc(r,r,r,Math.PI,3*Math.PI/2),t.lineTo(e-r,0),t.arc(e-r,r,r,3*Math.PI/2,2*Math.PI),t.lineTo(e,n-r),t.closePath()}}]),t}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(13),a=(r=o)&&r.__esModule?r:{default:r};var s=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,u=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,c=/^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i,l=/^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i,h=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"getAlphafromCssString",value:function(t){var e=s.exec(t);return null!==e?parseInt((0,a.default)(e[4],"f"),16)/15:null!==(e=u.exec(t))?parseInt((0,a.default)(e[4],"ff"),16)/255:null!==(e=c.exec(t))?parseFloat((0,a.default)(e[4],"1.0")):null!==(e=l.exec(t))?parseFloat((0,a.default)(e[4],"1.0")):void 0}}]),t}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(6),o=(r=i)&&r.__esModule?r:{default:r};function a(t){var e;this.name="DeveloperError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}(0,o.default)(Object.create)&&(a.prototype=Object.create(Error.prototype),a.prototype.constructor=a),a.prototype.toString=function(){var t=this.name+": "+this.message;return(0,o.default)(this.stack)&&(t+="\n"+this.stack.toString()),t},a.throwInstantiationError=function(){throw new a("This function defines an interface and should not be called directly.")},e.default=a},function(t,e,n){"use strict";e.a=function(t){return d(function(){return t})()},e.b=d;var r=n(349),i=n(350),o=n(88),a=n(157),s=n(91),u=n(3),c=n(62),l=n(63),h=n(94),f=n(351),p=Object(l.a)({point:function(t,e){this.stream.point(t*u.r,e*u.r)}});function d(t){var e,n,l,d,g,y,v,m,_,b,w=150,E=480,x=250,O=0,M=0,S=0,P=0,C=0,T=null,I=r.a,L=null,A=s.a,N=.5,k=Object(f.a)(D,N);function j(t){return[(t=g(t[0]*u.r,t[1]*u.r))[0]*w+n,l-t[1]*w]}function R(t){return(t=g.invert((t[0]-n)/w,(l-t[1])/w))&&[t[0]*u.h,t[1]*u.h]}function D(t,r){return[(t=e(t,r))[0]*w+n,l-t[1]*w]}function F(){g=Object(a.a)(d=Object(c.b)(S,P,C),e);var t=e(O,M);return n=E-t[0]*w,l=x+t[1]*w,z()}function z(){return _=b=null,j}return j.stream=function(t){return _&&b===t?_:_=p(I(d,k(A(b=t))))},j.clipAngle=function(t){return arguments.length?(I=+t?Object(i.a)(T=t*u.r,6*u.r):(T=null,r.a),z()):T*u.h},j.clipExtent=function(t){return arguments.length?(A=null==t?(L=y=v=m=null,s.a):Object(o.a)(L=+t[0][0],y=+t[0][1],v=+t[1][0],m=+t[1][1]),z()):null==L?null:[[L,y],[v,m]]},j.scale=function(t){return arguments.length?(w=+t,F()):w},j.translate=function(t){return arguments.length?(E=+t[0],x=+t[1],F()):[E,x]},j.center=function(t){return arguments.length?(O=t[0]%360*u.r,M=t[1]%360*u.r,F()):[O*u.h,M*u.h]},j.rotate=function(t){return arguments.length?(S=t[0]%360*u.r,P=t[1]%360*u.r,C=t.length>2?t[2]%360*u.r:0,F()):[S*u.h,P*u.h,C*u.h]},j.precision=function(t){return arguments.length?(k=Object(f.a)(D,N=t*t),z()):Object(u.u)(N)},j.fitExtent=function(t,e){return Object(h.a)(j,t,e)},j.fitSize=function(t,e){return Object(h.b)(j,t,e)},function(){return e=t.apply(this,arguments),j.invert=e.invert&&R,F()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=u(n(5)),o=(u(n(26)),u(n(14))),a=u(n(25)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(33));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n._points=t,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a.default),r(e,[{key:"clone",value:function(){var t=[];return this._points.forEach(function(e){t.push(new i.default(e.x,e.y,e.z))}),new e(t)}},{key:"getEnvelope",value:function(){return this.envelope}},{key:"toGeoJSONCoordinates",value:function(){var t=[];this.points.forEach(function(e){t.push([e.x,e.y])});var e=t[0],n=t[t.length-1];return e[0]==n[0]&&e[1]==n[1]||t.push([this.points[0].x,this.points[0].y]),[t]}},{key:"toGeoJSON",value:function(){return s.polygon(this.toGeoJSONCoordinates())}},{key:"points",get:function(){return this._points},set:function(t){this._points=t}},{key:"envelope",get:function(){return o.default.getEnvelope(this._points)}},{key:"center",get:function(){return this.envelope.center}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"EPSILON",function(){return r}),n.d(e,"ARRAY_TYPE",function(){return i}),n.d(e,"RANDOM",function(){return o}),e.setMatrixArrayType=function(t){i=t},e.toRadian=function(t){return t*a},e.equals=function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))};var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,o=Math.random;var a=Math.PI/180},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=u(n(5)),o=(u(n(26)),u(n(14))),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(33)),s=u(n(25));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n._points=t,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s.default),r(e,[{key:"clone",value:function(){var t=[];return this._points.forEach(function(e){t.push(new i.default(e.x,e.y,e.z))}),new e(t)}},{key:"getEnvelope",value:function(){return this.envelope}},{key:"toGeoJSONCoordinates",value:function(){var t=[];return this.points.forEach(function(e){t.push([e.x,e.y])}),t}},{key:"toGeoJSON",value:function(){return a.lineString(this.toGeoJSONCoordinates())}},{key:"points",get:function(){return this._points},set:function(t){this._points=t}},{key:"envelope",get:function(){return o.default.getEnvelope(this._points)}},{key:"center",get:function(){return this.envelope.center}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(5);(r=o)&&r.__esModule;var a=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._center=e,this._radius=n}return i(t,[{key:"center",get:function(){return this._center},set:function(t){this._center=t}},{key:"radius",get:function(){return this._radius},set:function(t){this._radius=t}}]),t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=(n(4),o(n(7)),o(n(12)),o(n(380)));function o(t){return t&&t.__esModule?t:{default:t}}var a=window.L,s=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._layer=new a.layerGroup,this._pane=n,this._renderer=a.svg({pane:this._pane}),this.show(e)}return r(t,[{key:"addToMap",value:function(t){this._layer.addTo(t._map)}},{key:"addMarker",value:function(t){!(arguments.length>1&&void 0!==arguments[1])||arguments[1]}},{key:"removeMarker",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!!t&&(e&&t.clearAnimators(),this._layer.removeLayer(t._node),e&&(t._removeCallback&&t._removeCallback(),t.destroy()),!0)}},{key:"removeAll",value:function(){var t=this;t._layer.eachLayer(function(e){t.removeMarker(e.parentMarker)})}},{key:"removeMarkerByFilter",value:function(t){var e=this;if(t instanceof Function)this._layer.eachLayer(function(n){t(n.properties)&&e.removeMarker(n.parentMarker)});else{var n=i.default.getFilter(t);if(3==n.length&&n[2]){var r=n[0],o=n[1],a=i.default.isString(n[2]),s=null===a?Number(n[2]):a;e._layer.eachLayer(function(t){var n=t.properties.get(r);r&&i.default.getResultByOperation(n,o,s)&&e.removeMarker(t.parentMarker)})}else console.error("filter表达式不正确")}}},{key:"setMarkerVisibleByFilter",value:function(t,e){if(e instanceof Function)this._layer.eachLayer(function(n){e(n.properties)&&(n.parentMarker.show=t)});else{var n=i.default.getFilter(e);if(3==n.length&&n[2]){var r=n[0],o=n[1],a=i.default.isString(n[2]),s=null===a?Number(n[2]):a;this._layer.eachLayer(function(e){var n=e.properties.get(r);r&&i.default.getResultByOperation(n,o,s)&&(e.parentMarker.show=t)})}else console.error("filter表达式不正确")}}},{key:"setMarkerOnlyVisibleByFilter",value:function(t,e){if(e instanceof Function)this._layer.eachLayer(function(n){e(n.properties)?n.parentMarker.show=t:n.parentMarker.show=!t});else{var n=i.default.getFilter(e);if(3==n.length&&n[2]){var r=n[0],o=n[1],a=i.default.isString(n[2]),s=null===a?Number(n[2]):a;this._layer.eachLayer(function(e){var n=e.properties.get(r);r&&i.default.getResultByOperation(n,o,s)?e.parentMarker.show=t:e.parentMarker.show=!t})}else console.error("filter表达式不正确")}}},{key:"show",value:function(t){this._pane.style.display=t?"block":"none"}}]),t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enableTextSelection=e.disableTextSelection=e.TRANSITION_END=e.TRANSITION=e.TRANSFORM=void 0,e.get=function(t){return"string"==typeof t?document.getElementById(t):t},e.getStyle=function(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(t,null);n=r?r[e]:null}return"auto"===n?null:n},e.create=function(t,e,n){var r=document.createElement(t);r.className=e||"",n&&n.appendChild(r);return r},e.remove=function(t){var e=t.parentNode;e&&e.removeChild(t)},e.empty=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.toFront=function(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)},e.toBack=function(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)},e.hasClass=h,e.addClass=function(t,e){if(void 0!==t.classList)for(var n=i.splitWords(e),r=0,o=n.length;r<o;r++)t.classList.add(n[r]);else if(!h(t,e)){var a=d(t);p(t,(a?a+" ":"")+e)}},e.hyphenate=f,e.addStyle=function(t,e){var n=Object.keys(e);(0,s.isString)(t.style.cssText)?t.style.cssText=n.map(function(t){return f(t)+": "+e[t]}).join(";"):n.forEach(function(n){t.style.setProperty(n,e[n])})},e.removeClass=function(t,e){void 0!==t.classList?t.classList.remove(e):p(t,i.trim((" "+d(t)+" ").replace(" "+e+" "," ")))},e.setClass=p,e.getClass=d,e.setOpacity=function(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(r)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+r+"(opacity="+e+")"}(t,e)},e.testProp=g,e.setTransform=y,e.setPosition=function(t,e){t._leaflet_pos=e,a.any3d?y(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")},e.getPosition=function(t){return t._leaflet_pos||new o.Point(0,0)},e.disableImageDrag=function(){r.on(window,"dragstart",r.preventDefault)},e.enableImageDrag=function(){r.off(window,"dragstart",r.preventDefault)},e.preventOutline=function(t){for(;-1===t.tabIndex;)t=t.parentNode;if(!t.style)return;w(),m=t,_=t.style.outline,t.style.outline="none",r.on(window,"keydown",w)},e.restoreOutline=w,e.getSizedParentNode=function(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t},e.getScale=function(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}};var r=u(n(66)),i=u(n(52)),o=n(190),a=u(n(53)),s=n(55);function u(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}var c=e.TRANSFORM=g(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),l=e.TRANSITION=g(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);e.TRANSITION_END="webkitTransition"===l||"OTransition"===l?l+"End":"transitionend";function h(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=d(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function f(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function p(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function d(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function g(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function y(t,e,n){var r=e||new o.Point(0,0);t.style[c]=(a.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}var v,m,_;e.disableTextSelection=void 0,e.enableTextSelection=void 0;if("onselectstart"in document)e.disableTextSelection=function(){r.on(window,"selectstart",r.preventDefault)},e.enableTextSelection=function(){r.off(window,"selectstart",r.preventDefault)};else{var b=g(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);e.disableTextSelection=function(){if(b){var t=document.documentElement.style;v=t[b],t[b]="none"}},e.enableTextSelection=function(){b&&(document.documentElement.style[b]=v,v=void 0)}}function w(){m&&(m.style.outline=_,m=void 0,_=void 0,r.off(window,"keydown",w))}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=o(n(26));o(n(5));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,[{key:"clone",value:function(){}},{key:"getEnvelope",value:function(){return this.envelope}},{key:"toGeoJSONCoordinates",value:function(){}},{key:"toGeoJSON",value:function(){}},{key:"envelope",get:function(){return new i.default}},{key:"center",get:function(){return this.envelope.center}}]),t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(5),a=(r=o)&&r.__esModule?r:{default:r};var s=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._xMin=e,this._yMin=n,this._xMax=r,this._yMax=i}return i(t,[{key:"extent",value:function(t){var e=t.xMin,n=t.yMin,r=t.xMax,i=t.yMax;e<this._xMin&&(this._xMin=e),r>this._xMax&&(this._xMax=r),n<this._yMin&&(this._yMin=n),i>this._yMax&&(this._yMax=i)}},{key:"xMin",get:function(){return this._xMin},set:function(t){this._xMin=t}},{key:"yMin",get:function(){return this._yMin},set:function(t){this._yMin=t}},{key:"xMax",get:function(){return this._xMax},set:function(t){this._xMax=t}},{key:"yMax",get:function(){return this._yMax},set:function(t){this._yMax=t}},{key:"center",get:function(){var t=(this._xMax+this._xMin)/2,e=(this._yMax+this._yMin)/2;return new a.default(t,e,0)}},{key:"radius",get:function(){var t=Math.abs(this._yMax-this._yMin),e=Math.abs(this._xMax-this._xMin);return t>e?t/2:e/2}}]),t}();e.default=s},function(t,e,n){"use strict";e.a=function(t,e,n,o){void 0===o&&(o={});var a=Object(i.getCoord)(t),s=Object(r.degreesToRadians)(a[0]),u=Object(r.degreesToRadians)(a[1]),c=Object(r.degreesToRadians)(n),l=Object(r.lengthToRadians)(e,o.units),h=Math.asin(Math.sin(u)*Math.cos(l)+Math.cos(u)*Math.sin(l)*Math.cos(c)),f=s+Math.atan2(Math.sin(c)*Math.sin(l)*Math.cos(u),Math.cos(l)-Math.sin(u)*Math.sin(h)),p=Object(r.radiansToDegrees)(f),d=Object(r.radiansToDegrees)(h);return Object(r.point)([p,d],o.properties)};var r=n(0),i=n(2)},function(t,e,n){"use strict";var r=n(1),i=n(0);e.a=function(t,e){void 0===e&&(e={});var n=0,o=0,a=0;return Object(r.coordEach)(t,function(t){n+=t[0],o+=t[1],a++},!0),Object(i.point)([n/a,o/a],e.properties)}},function(t,e,n){"use strict";function r(t,e){t&&o.hasOwnProperty(t.type)&&o[t.type](t,e)}var i={Feature:function(t,e){r(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,o=n.length;++i<o;)r(n[i].geometry,e)}},o={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){a(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)a(n[r],e,0)},Polygon:function(t,e){s(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)s(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,o=n.length;++i<o;)r(n[i],e)}};function a(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function s(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)a(t[n],e,1);e.polygonEnd()}e.a=function(t,e){t&&i.hasOwnProperty(t.type)?i[t.type](t,e):r(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=window.L,i=e.JSMapEvents={TOUCHSTART:"touchstart",TOUCHEND:"touchend",TOUCHMOVE:"touchmove",TOUCHCANCEL:"touchcancel",TOUCHLEAVE:"touchleave",MSPOINTERDOWN:"MSPointerDown",MSPOINTERUP:"MSPointerUp",MSPOINTERMOVE:"MSPointerMove",MSPOINTERCANCEL:"MSPointerCancel",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEOUT:"mouseout",MOUSEOVER:"mouseover",MOUSEMOVE:"mousemove",CLICK:"click",DBLCLICK:"dblclick",CONTEXTMENU:"contextmenu",DRAGSTART:"dragstart",DRAG:"drag",DRAGEND:"dragend"};e.JSTouchExtend=r.Handler.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane},addHooks:function(){r.DomEvent.on(this._container,i.TOUCHSTART,this._onTouchStart,this),r.DomEvent.on(this._container,i.TOUCHEND,this._onTouchEnd,this),r.DomEvent.on(this._container,i.TOUCHMOVE,this._onTouchMove,this),this._detectIE()?(r.DomEvent.on(this._container,i.MSPOINTERDOWN,this._onTouchStart,this),r.DomEvent.on(this._container,i.MSPOINTERUP,this._onTouchEnd,this),r.DomEvent.on(this._container,i.MSPOINTERMOVE,this._onTouchMove,this),r.DomEvent.on(this._container,i.MSPOINTERCANCEL,this._onTouchCancel,this)):(r.DomEvent.on(this._container,i.TOUCHCANCEL,this._onTouchCancel,this),r.DomEvent.on(this._container,i.TOUCHLEAVE,this._onTouchLeave,this))},removeHooks:function(){r.DomEvent.off(this._container,i.TOUCHSTART,this._onTouchStart,this),r.DomEvent.off(this._container,i.TOUCHEND,this._onTouchEnd,this),r.DomEvent.off(this._container,i.TOUCHMOVE,this._onTouchMove,this),this._detectIE()?(r.DomEvent.off(this._container,i.MSPOINTERDOWN,this._onTouchStart,this),r.DomEvent.off(this._container,i.MSPOINTERUP,this._onTouchEnd,this),r.DomEvent.off(this._container,i.MSPOINTERMOVE,this._onTouchMove,this),r.DomEvent.off(this._container,i.MSPOINTERCANCEL,this._onTouchCancel,this)):(r.DomEvent.off(this._container,i.TOUCHCANCEL,this._onTouchCancel,this),r.DomEvent.off(this._container,i.TOUCHLEAVE,this._onTouchLeave,this))},_touchEvent:function(t,e){var n={};if(void 0!==t.touches){if(!t.touches.length)return;n=t.touches[0]}else{if("touch"!==t.pointerType)return;if(n=t,!this._filterClick(t))return}var r=this._map.mouseEventToContainerPoint(n),i=this._map.mouseEventToLayerPoint(n),o=this._map.layerPointToLatLng(i);this._map.fire(e,{latlng:o,layerPoint:i,containerPoint:r,pageX:n.pageX,pageY:n.pageY,originalEvent:t})},_filterClick:function(t){var e=t.timeStamp||t.originalEvent.timeStamp,n=r.DomEvent._lastClick&&e-r.DomEvent._lastClick;return n&&n>100&&n<500||t.target._simulatedClick&&!t._simulated?(r.DomEvent.stop(t),!1):(r.DomEvent._lastClick=e,!0)},_onTouchStart:function(t){if(this._map._loaded){var e=i.TOUCHSTART;this._touchEvent(t,e)}},_onTouchEnd:function(t){if(this._map._loaded){var e=i.TOUCHEND;this._touchEvent(t,e)}},_onTouchCancel:function(t){if(this._map._loaded){var e=i.TOUCHCANCEL;this._detectIE()&&(e="pointercancel"),this._touchEvent(t,e)}},_onTouchLeave:function(t){if(this._map._loaded){var e=i.TOUCHLEAVE;this._touchEvent(t,e)}},_onTouchMove:function(t){if(this._map._loaded){var e=i.TOUCHMOVE;this._touchEvent(t,e)}},_detectIE:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var r=t.indexOf("Edge/");return r>0&&parseInt(t.substring(r+5,t.indexOf(".",r)),10)}}),e.JSTouchMarker=r.Marker.extend({_initInteraction:function(){return this.addInteractiveTarget?r.Marker.prototype._initInteraction.apply(this):this._initInteractionLegacy()},_initInteractionLegacy:function(){if(this.options.clickable){var t=this._icon,e=[i.DBLCLICK,i.MOUSEDOWN,i.MOUSEOVER,i.MOUSEOUT,i.CONTEXTMENU,i.TOUCHSTART,i.TOUCHEND,i.TOUCHMOVE];this._detectIE?e.concat([i.MSPOINTERDOWN,i.MSPOINTERUP,i.MSPOINTERMOVE,i.MSPOINTERCANCEL]):e.concat([i.TOUCHCANCEL]),r.DomUtil.addClass(t,"leaflet-clickable"),r.DomEvent.on(t,i.CLICK,this._onMouseClick,this),r.DomEvent.on(t,"keypress",this._onKeyPress,this);for(var n=0;n<e.length;n++)r.DomEvent.on(t,e[n],this._fireMouseEvent,this);r.Handler.MarkerDrag&&(this.dragging=new r.Handler.MarkerDrag(this),this.options.draggable&&this.dragging.enable())}},_detectIE:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var r=t.indexOf("Edge/");return r>0&&parseInt(t.substring(r+5,t.indexOf(".",r)),10)}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.JSDrawEvent={CREATED:"draw:created",EDITED:"draw:edited",DELETED:"draw:deleted",DRAWSTART:"draw:drawstart",DRAWSTOP:"draw:drawstop",DRAWVERTEX:"draw:drawvertex",EDITSTART:"draw:editstart",EDITMOVE:"draw:editmove",EDITRESIZE:"draw:editresize",EDITVERTEX:"draw:editvertex",EDITSTOP:"draw:editstop",DELETESTART:"draw:deletestart",DELETESTOP:"draw:deletestop",TOOLBAROPENED:"draw:toolbaropened",TOOLBARCLOSED:"draw:toolbarclosed",MARKERCONTEXT:"draw:markercontext"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=u(n(5)),o=(u(n(26)),u(n(14))),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(33)),s=u(n(25));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r._center=new i.default(t.x,t.y,t.z||0),r._radius=n,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,s.default),r(e,[{key:"clone",value:function(){return new e(this._center.clone(),this._radius)}},{key:"getEnvelope",value:function(){return this.envelope}},{key:"toGeoJSONCoordinates",value:function(){return o.default.calculateCircleGeoJSONCoordinates(this)}},{key:"toGeoJSON",value:function(){return a.polygon(this.toGeoJSONCoordinates())}},{key:"envelope",get:function(){return o.default.calculateCircleEnvelope(this)}},{key:"center",get:function(){return this._center}},{key:"radius",get:function(){return this._radius}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(212);n.d(e,"isolines",function(){return r.a});var i=n(107);n.d(e,"convex",function(){return i.a});var o=n(109);n.d(e,"pointsWithinPolygon",function(){return o.a}),n.d(e,"within",function(){return o.a});var a=n(220);n.d(e,"concave",function(){return a.a});var s=n(242);n.d(e,"collect",function(){return s.a});var u=n(244);n.d(e,"flip",function(){return u.a});var c=n(245);n.d(e,"simplify",function(){return c.a});var l=n(246);n.d(e,"bezier",function(){return l.a}),n.d(e,"bezierSpline",function(){return l.a});var h=n(248);n.d(e,"tag",function(){return h.a});var f=n(249);n.d(e,"sample",function(){return f.a});var p=n(118);n.d(e,"envelope",function(){return p.a});var d=n(119);n.d(e,"square",function(){return d.a});var g=n(76);n.d(e,"circle",function(){return g.a});var y=n(250);n.d(e,"midpoint",function(){return y.a});var v=n(57);n.d(e,"center",function(){return v.a});var m=n(251);n.d(e,"centerOfMass",function(){return m.a});var _=n(28);n.d(e,"centroid",function(){return _.a});var b=n(252);n.d(e,"combine",function(){return b.a});var w=n(8);n.d(e,"distance",function(){return w.a});var E=n(58);n.d(e,"explode",function(){return E.a});var x=n(10);n.d(e,"bbox",function(){return x.default});var O=n(253);n.d(e,"tesselate",function(){return O.a});var M=n(75);n.d(e,"bboxPolygon",function(){return M.a});var S=n(11);n.d(e,"booleanPointInPolygon",function(){return S.a}),n.d(e,"inside",function(){return S.a});var P=n(77);n.d(e,"nearest",function(){return P.a}),n.d(e,"nearestPoint",function(){return P.a});var C=n(59);n.d(e,"nearestPointOnLine",function(){return C.a}),n.d(e,"pointOnLine",function(){return C.a});var T=n(255);n.d(e,"nearestPointToLine",function(){return T.a});var I=n(256);n.d(e,"planepoint",function(){return I.a});var L=n(110);n.d(e,"tin",function(){return L.a});var A=n(34);n.d(e,"bearing",function(){return A.a});var N=n(27);n.d(e,"destination",function(){return N.a});var k=n(257);n.d(e,"kinks",function(){return k.a});var j=n(258);n.d(e,"pointOnFeature",function(){return j.a}),n.d(e,"pointOnSurface",function(){return j.a});var R=n(79);n.d(e,"area",function(){return R.a});var D=n(259);n.d(e,"along",function(){return D.a});var F=n(121);n.d(e,"length",function(){return F.a}),n.d(e,"lineDistance",function(){return F.a});var z=n(260);n.d(e,"lineSlice",function(){return z.a});var B=n(122);n.d(e,"lineSliceAlong",function(){return B.a});var q=n(123);n.d(e,"pointGrid",function(){return q.a});var G=n(125);n.d(e,"truncate",function(){return G.a});var U=n(126);n.d(e,"flatten",function(){return U.a});var V=n(35);n.d(e,"lineIntersect",function(){return V.a});var J=n(261);n.d(e,"lineChunk",function(){return J.a});var H=n(262);n.d(e,"unkinkPolygon",function(){return H.a});var Y=n(263);n.d(e,"greatCircle",function(){return Y.a});var X=n(42);n.d(e,"lineSegment",function(){return X.a});var Z=n(264);n.d(e,"lineSplit",function(){return Z.a});var W=n(127);n.d(e,"lineArc",function(){return W.a});var K=n(80);n.d(e,"polygonToLine",function(){return K.a}),n.d(e,"polygonToLineString",function(){return K.a});var Q=n(265);n.d(e,"lineStringToPolygon",function(){return Q.a}),n.d(e,"lineToPolygon",function(){return Q.a});var $=n(266);n.d(e,"bboxClip",function(){return $.a});var tt=n(128);n.d(e,"lineOverlap",function(){return tt.a});var et=n(279);n.d(e,"sector",function(){return et.a});var nt=n(44);n.d(e,"rhumbBearing",function(){return nt.a});var rt=n(60);n.d(e,"rhumbDistance",function(){return rt.a});var it=n(45);n.d(e,"rhumbDestination",function(){return it.a});var ot=n(280);n.d(e,"polygonTangents",function(){return ot.a});var at=n(281);n.d(e,"rewind",function(){return at.a});var st=n(282);n.d(e,"isobands",function(){return st.a});var ut=n(140);n.d(e,"transformRotate",function(){return ut.a});var ct=n(141);n.d(e,"transformScale",function(){return ct.a});var lt=n(283);n.d(e,"transformTranslate",function(){return lt.a});var ht=n(284);n.d(e,"lineOffset",function(){return ht.a});var ft=n(285);n.d(e,"polygonize",function(){return ft.a});var pt=n(143);n.d(e,"booleanDisjoint",function(){return pt.a});var dt=n(289);n.d(e,"booleanContains",function(){return dt.a});var gt=n(290);n.d(e,"booleanCrosses",function(){return gt.a});var yt=n(139);n.d(e,"booleanClockwise",function(){return yt.a});var vt=n(291);n.d(e,"booleanOverlap",function(){return vt.a});var mt=n(61);n.d(e,"booleanPointOnLine",function(){return mt.a});var _t=n(292);n.d(e,"booleanEqual",function(){return _t.a});var bt=n(124);n.d(e,"booleanWithin",function(){return bt.a});var wt=n(145);n.d(e,"booleanIntersects",function(){return wt.a});var Et=n(9);n.d(e,"clone",function(){return Et.a});var xt=n(41);n.d(e,"cleanCoords",function(){return xt.a});var Ot=n(293);n.d(e,"clustersDbscan",function(){return Ot.a});var Mt=n(298);n.d(e,"clustersKmeans",function(){return Mt.a});var St=n(120);n.d(e,"pointToLineDistance",function(){return St.a});var Pt=n(301);n.d(e,"booleanParallel",function(){return Pt.a});var Ct=n(302);n.d(e,"shortestPath",function(){return Ct.a});var Tt=n(303);n.d(e,"voronoi",function(){return Tt.a});var It=n(150);n.d(e,"ellipse",function(){return It.a});var Lt=n(87);n.d(e,"centerMean",function(){return Lt.a});var At=n(309);n.d(e,"centerMedian",function(){return At.a});var Nt=n(310);n.d(e,"standardDeviationalEllipse",function(){return Nt.a});var kt=n(311);n.d(e,"angle",function(){return kt.a});var jt=n(312);n.d(e,"polygonSmooth",function(){return jt.a});var Rt=n(313);n.d(e,"moranIndex",function(){return Rt.a});var Dt=n(151);n.d(e,"distanceWeight",function(){return Dt.a});var Ft=n(152);n.d(e,"toMercator",function(){return Ft.toMercator}),n.d(e,"toWgs84",function(){return Ft.toWgs84}),n.d(e,"projection",function(){return Ft});var zt=n(153);n.d(e,"randomPosition",function(){return zt.randomPosition}),n.d(e,"randomPoint",function(){return zt.randomPoint}),n.d(e,"randomPolygon",function(){return zt.randomPolygon}),n.d(e,"randomLineString",function(){return zt.randomLineString}),n.d(e,"random",function(){return zt});var Bt=n(154);n.d(e,"getCluster",function(){return Bt.getCluster}),n.d(e,"clusterEach",function(){return Bt.clusterEach}),n.d(e,"clusterReduce",function(){return Bt.clusterReduce}),n.d(e,"createBins",function(){return Bt.createBins}),n.d(e,"applyFilter",function(){return Bt.applyFilter}),n.d(e,"propertiesContainsFilter",function(){return Bt.propertiesContainsFilter}),n.d(e,"filterProperties",function(){return Bt.filterProperties}),n.d(e,"clusters",function(){return Bt});var qt=n(0);n.d(e,"earthRadius",function(){return qt.earthRadius}),n.d(e,"factors",function(){return qt.factors}),n.d(e,"unitsFactors",function(){return qt.unitsFactors}),n.d(e,"areaFactors",function(){return qt.areaFactors}),n.d(e,"feature",function(){return qt.feature}),n.d(e,"geometry",function(){return qt.geometry}),n.d(e,"point",function(){return qt.point}),n.d(e,"points",function(){return qt.points}),n.d(e,"polygon",function(){return qt.polygon}),n.d(e,"polygons",function(){return qt.polygons}),n.d(e,"lineString",function(){return qt.lineString}),n.d(e,"lineStrings",function(){return qt.lineStrings}),n.d(e,"featureCollection",function(){return qt.featureCollection}),n.d(e,"multiLineString",function(){return qt.multiLineString}),n.d(e,"multiPoint",function(){return qt.multiPoint}),n.d(e,"multiPolygon",function(){return qt.multiPolygon}),n.d(e,"geometryCollection",function(){return qt.geometryCollection}),n.d(e,"round",function(){return qt.round}),n.d(e,"radiansToLength",function(){return qt.radiansToLength}),n.d(e,"lengthToRadians",function(){return qt.lengthToRadians}),n.d(e,"lengthToDegrees",function(){return qt.lengthToDegrees}),n.d(e,"bearingToAzimuth",function(){return qt.bearingToAzimuth}),n.d(e,"radiansToDegrees",function(){return qt.radiansToDegrees}),n.d(e,"degreesToRadians",function(){return qt.degreesToRadians}),n.d(e,"convertLength",function(){return qt.convertLength}),n.d(e,"convertArea",function(){return qt.convertArea}),n.d(e,"isNumber",function(){return qt.isNumber}),n.d(e,"isObject",function(){return qt.isObject}),n.d(e,"validateBBox",function(){return qt.validateBBox}),n.d(e,"validateId",function(){return qt.validateId}),n.d(e,"helpers",function(){return qt}),n.d(e,"bearingToAngle",function(){return qt.bearingToAzimuth}),n.d(e,"convertDistance",function(){return qt.convertLength}),n.d(e,"degrees2radians",function(){return qt.degreesToRadians}),n.d(e,"distanceToDegrees",function(){return qt.lengthToDegrees}),n.d(e,"distanceToRadians",function(){return qt.lengthToRadians}),n.d(e,"radians2degrees",function(){return qt.radiansToDegrees}),n.d(e,"radiansToDistance",function(){return qt.radiansToLength});var Gt=n(2);n.d(e,"getCoord",function(){return Gt.getCoord}),n.d(e,"getCoords",function(){return Gt.getCoords}),n.d(e,"containsNumber",function(){return Gt.containsNumber}),n.d(e,"geojsonType",function(){return Gt.geojsonType}),n.d(e,"featureOf",function(){return Gt.featureOf}),n.d(e,"collectionOf",function(){return Gt.collectionOf}),n.d(e,"getGeom",function(){return Gt.getGeom}),n.d(e,"getType",function(){return Gt.getType}),n.d(e,"invariant",function(){return Gt});var Ut=n(1);n.d(e,"coordAll",function(){return Ut.coordAll}),n.d(e,"coordEach",function(){return Ut.coordEach}),n.d(e,"coordReduce",function(){return Ut.coordReduce}),n.d(e,"featureEach",function(){return Ut.featureEach}),n.d(e,"featureReduce",function(){return Ut.featureReduce}),n.d(e,"findPoint",function(){return Ut.findPoint}),n.d(e,"findSegment",function(){return Ut.findSegment}),n.d(e,"flattenEach",function(){return Ut.flattenEach}),n.d(e,"flattenReduce",function(){return Ut.flattenReduce}),n.d(e,"geomEach",function(){return Ut.geomEach}),n.d(e,"geomReduce",function(){return Ut.geomReduce}),n.d(e,"lineEach",function(){return Ut.lineEach}),n.d(e,"lineReduce",function(){return Ut.lineReduce}),n.d(e,"propEach",function(){return Ut.propEach}),n.d(e,"propReduce",function(){return Ut.propReduce}),n.d(e,"segmentEach",function(){return Ut.segmentEach}),n.d(e,"segmentReduce",function(){return Ut.segmentReduce}),n.d(e,"meta",function(){return Ut});var Vt=n(314);n.d(e,"difference",function(){return Vt.a});var Jt=n(317);n.d(e,"buffer",function(){return Jt.a});var Ht=n(364);n.d(e,"union",function(){return Ht.a});var Yt=n(96);n.d(e,"intersect",function(){return Yt.a});var Xt=n(365);n.d(e,"dissolve",function(){return Xt.a});var Zt=n(180);n.d(e,"hexGrid",function(){return Zt.a});var Wt=n(366);n.d(e,"mask",function(){return Wt.a});var Kt=n(181);n.d(e,"squareGrid",function(){return Kt.a});var Qt=n(182);n.d(e,"triangleGrid",function(){return Qt.a});var $t=n(368);n.d(e,"interpolate",function(){return $t.a})},function(t,e,n){"use strict";e.a=o;var r=n(0),i=n(2);function o(t,e,n){if(void 0===n&&(n={}),!0===n.final)return function(t,e){var n=o(e,t);return n=(n+180)%360}(t,e);var a=Object(i.getCoord)(t),s=Object(i.getCoord)(e),u=Object(r.degreesToRadians)(a[0]),c=Object(r.degreesToRadians)(s[0]),l=Object(r.degreesToRadians)(a[1]),h=Object(r.degreesToRadians)(s[1]),f=Math.sin(c-u)*Math.cos(h),p=Math.cos(l)*Math.sin(h)-Math.sin(l)*Math.cos(h)*Math.cos(c-u);return Object(r.radiansToDegrees)(Math.atan2(f,p))}},function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(42),a=n(1),s=n(78),u=n.n(s);function c(t,e){var n=Object(i.getCoords)(t),o=Object(i.getCoords)(e);if(2!==n.length)throw new Error("<intersects> line1 must only contain 2 coordinates");if(2!==o.length)throw new Error("<intersects> line2 must only contain 2 coordinates");var a=n[0][0],s=n[0][1],u=n[1][0],c=n[1][1],l=o[0][0],h=o[0][1],f=o[1][0],p=o[1][1],d=(p-h)*(u-a)-(f-l)*(c-s),g=(f-l)*(s-h)-(p-h)*(a-l),y=(u-a)*(s-h)-(c-s)*(a-l);if(0===d)return null;var v=g/d,m=y/d;if(v>=0&&v<=1&&m>=0&&m<=1){var _=a+v*(u-a),b=s+v*(c-s);return Object(r.point)([_,b])}return null}e.a=function(t,e){var n={},s=[];if("LineString"===t.type&&(t=Object(r.feature)(t)),"LineString"===e.type&&(e=Object(r.feature)(e)),"Feature"===t.type&&"Feature"===e.type&&null!==t.geometry&&null!==e.geometry&&"LineString"===t.geometry.type&&"LineString"===e.geometry.type&&2===t.geometry.coordinates.length&&2===e.geometry.coordinates.length){var l=c(t,e);return l&&s.push(l),Object(r.featureCollection)(s)}var h=u()();return h.load(Object(o.a)(e)),Object(a.featureEach)(Object(o.a)(t),function(t){Object(a.featureEach)(h.search(t),function(e){var r=c(t,e);if(r){var o=Object(i.getCoords)(r).join(",");n[o]||(n[o]=!0,s.push(r))}})}),Object(r.featureCollection)(s)}},function(t,e,n){"use strict";function r(){this.reset()}e.a=function(){return new r},r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){o(i,t,this.t),o(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new r;function o(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}},function(t,e,n){"use strict";e.a=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=u(n(25)),o=u(n(26)),a=u(n(5)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(33));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o._east=t,o._south=n,o._west=r,o._north=i,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"clone",value:function(){return new e(this._east,this._south,this._west,this._north)}},{key:"getEnvelope",value:function(){return this.envelope}},{key:"toGeoJSONCoordinates",value:function(){return[[[this._east,this._south],[this._east,this._north],[this._west,this._north],[this._west,this._south],[this._east,this._south]]]}},{key:"toGeoJSON",value:function(){return s.polygon(this.toGeoJSONCoordinates())}},{key:"east",get:function(){return this._east},set:function(t){this._east=t}},{key:"south",get:function(){return this._south},set:function(t){this._south=t}},{key:"west",get:function(){return this._west},set:function(t){this._west=t}},{key:"north",get:function(){return this._north},set:function(t){this._north=t}},{key:"envelope",get:function(){return new o.default(this._east,this._south,this._west,this._north)}},{key:"center",get:function(){return new a.default((this._east+this._west)/2,(this._south+this._north)/2,0)}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=a(n(6)),o=a(n(16));function a(t){return t&&t.__esModule?t:{default:t}}var s={};function u(t,e,n){return"Expected "+n+" to be typeof "+e+", actual typeof was "+t}s.typeOf={},s.defined=function(t,e){if(!(0,i.default)(e))throw new o.default(function(t){return t+" is required, actual value was undefined"}(t))},s.typeOf.func=function(t,e){if("function"!=typeof e)throw new o.default(u(void 0===e?"undefined":r(e),"function",t))},s.typeOf.string=function(t,e){if("string"!=typeof e)throw new o.default(u(void 0===e?"undefined":r(e),"string",t))},s.typeOf.number=function(t,e){if("number"!=typeof e)throw new o.default(u(void 0===e?"undefined":r(e),"number",t))},s.typeOf.number.lessThan=function(t,e,n){if(s.typeOf.number(t,e),e>=n)throw new o.default("Expected "+t+" to be less than "+n+", actual value was "+e)},s.typeOf.number.lessThanOrEquals=function(t,e,n){if(s.typeOf.number(t,e),e>n)throw new o.default("Expected "+t+" to be less than or equal to "+n+", actual value was "+e)},s.typeOf.number.greaterThan=function(t,e,n){if(s.typeOf.number(t,e),e<=n)throw new o.default("Expected "+t+" to be greater than "+n+", actual value was "+e)},s.typeOf.number.greaterThanOrEquals=function(t,e,n){if(s.typeOf.number(t,e),e<n)throw new o.default("Expected "+t+" to be greater than or equal to"+n+", actual value was "+e)},s.typeOf.object=function(t,e){if("object"!==(void 0===e?"undefined":r(e)))throw new o.default(u(void 0===e?"undefined":r(e),"object",t))},s.typeOf.bool=function(t,e){if("boolean"!=typeof e)throw new o.default(u(void 0===e?"undefined":r(e),"boolean",t))},s.typeOf.number.equals=function(t,e,n,r){if(s.typeOf.number(t,n),s.typeOf.number(e,r),n!==r)throw new o.default(t+" must be equal to "+e+", the actual values are "+n+" and "+r)},e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(25);(r=o)&&r.__esModule;window.L;var a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._layer=e}return i(t,[{key:"stopEdit",value:function(){}},{key:"startEdit",value:function(){}},{key:"updatePointNode",value:function(t){}},{key:"addPointNode",value:function(t){}},{key:"isEntity",value:function(){}},{key:"toGeometry",value:function(){}},{key:"destroy",value:function(){this._layer=void 0,this._entity=void 0,this._positions=void 0}}]),t}();e.default=a},function(t,e,n){"use strict";var r=n(0),i=n(2);function o(t){var e=Object(i.getCoords)(t);if(2===e.length&&!a(e[0],e[1]))return e;var n=[],r=e.length-1,o=n.length;n.push(e[0]);for(var u=1;u<r;u++){var c=n[n.length-1];e[u][0]===c[0]&&e[u][1]===c[1]||(n.push(e[u]),(o=n.length)>2&&s(n[o-3],n[o-1],n[o-2])&&n.splice(n.length-2,1))}if(n.push(e[e.length-1]),o=n.length,a(e[0],e[e.length-1])&&o<4)throw new Error("invalid polygon");return s(n[o-3],n[o-1],n[o-2])&&n.splice(n.length-2,1),n}function a(t,e){return t[0]===e[0]&&t[1]===e[1]}function s(t,e,n){var r=n[0],i=n[1],o=t[0],a=t[1],s=e[0],u=e[1],c=s-o,l=u-a;return 0===(r-o)*l-(i-a)*c&&(Math.abs(c)>=Math.abs(l)?c>0?o<=r&&r<=s:s<=r&&r<=o:l>0?a<=i&&i<=u:u<=i&&i<=a)}e.a=function(t,e){void 0===e&&(e={});var n="object"==typeof e?e.mutate:e;if(!t)throw new Error("geojson is required");var a=Object(i.getType)(t),s=[];switch(a){case"LineString":s=o(t);break;case"MultiLineString":case"Polygon":Object(i.getCoords)(t).forEach(function(t){s.push(o(t))});break;case"MultiPolygon":Object(i.getCoords)(t).forEach(function(t){var e=[];t.forEach(function(t){e.push(o(t))}),s.push(e)});break;case"Point":return t;case"MultiPoint":var u={};Object(i.getCoords)(t).forEach(function(t){var e=t.join("-");Object.prototype.hasOwnProperty.call(u,e)||(s.push(t),u[e]=!0)});break;default:throw new Error(a+" geometry not supported")}return t.coordinates?!0===n?(t.coordinates=s,t):{type:a,coordinates:s}:!0===n?(t.geometry.coordinates=s,t):Object(r.feature)({type:a,coordinates:s},t.properties,{bbox:t.bbox,id:t.id})}},function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(1);e.a=function(t){if(!t)throw new Error("geojson is required");var e=[];return Object(o.flattenEach)(t,function(t){!function(t,e){var n=[],o=t.geometry;if(null!==o){switch(o.type){case"Polygon":n=Object(i.getCoords)(o);break;case"LineString":n=[Object(i.getCoords)(o)]}n.forEach(function(n){var i=function(t,e){var n=[];return t.reduce(function(t,i){var o,a,s,u,c,l,h=Object(r.lineString)([t,i],e);return h.bbox=(a=i,s=(o=t)[0],u=o[1],c=a[0],l=a[1],[s<c?s:c,u<l?u:l,s>c?s:c,u>l?u:l]),n.push(h),i}),n}(n,t.properties);i.forEach(function(t){t.id=e.length,e.push(t)})})}}(t,e)}),Object(r.featureCollection)(e)}},function(t,e,n){"use strict";var r=n(130),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=s&&function(){var t={};try{for(var e in s(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),c=function(t,e,n,r){var i;e in t&&("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())||(u?s(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},l=function(t,e){var n=arguments.length>2?arguments[2]:{},o=r(e);i&&(o=a.call(o,Object.getOwnPropertySymbols(e)));for(var s=0;s<o.length;s+=1)c(t,o[s],e[o[s]],n[o[s]])};l.supportsDescriptors=!!u,t.exports=l},function(t,e,n){"use strict";var r=n(0),i=n(2);function o(t,e){var n=Object(r.degreesToRadians)(t[1]),i=Object(r.degreesToRadians)(e[1]),o=Object(r.degreesToRadians)(e[0]-t[0]);o>Math.PI&&(o-=2*Math.PI),o<-Math.PI&&(o+=2*Math.PI);var a=Math.log(Math.tan(i/2+Math.PI/4)/Math.tan(n/2+Math.PI/4)),s=Math.atan2(o,a);return(Object(r.radiansToDegrees)(s)+360)%360}e.a=function(t,e,n){var r;return void 0===n&&(n={}),(r=n.final?o(Object(i.getCoord)(e),Object(i.getCoord)(t)):o(Object(i.getCoord)(t),Object(i.getCoord)(e)))>180?-(360-r):r}},function(t,e,n){"use strict";var r=n(0),i=n(2);e.a=function(t,e,n,o){void 0===o&&(o={});var a=e<0,s=Object(r.convertLength)(Math.abs(e),o.units,"meters");a&&(s=-Math.abs(s));var u=Object(i.getCoord)(t),c=function(t,e,n,i){i=void 0===i?r.earthRadius:Number(i);var o=e/i,a=t[0]*Math.PI/180,s=Object(r.degreesToRadians)(t[1]),u=Object(r.degreesToRadians)(n),c=o*Math.cos(u),l=s+c;Math.abs(l)>Math.PI/2&&(l=l>0?Math.PI-l:-Math.PI-l);var h=Math.log(Math.tan(l/2+Math.PI/4)/Math.tan(s/2+Math.PI/4)),f=Math.abs(h)>1e-11?c/h:Math.cos(s),p=o*Math.sin(u)/f;return[(180*(a+p)/Math.PI+540)%360-180,180*l/Math.PI]}(u,s,n);return c[0]+=c[0]-u[0]>180?-360:u[0]-c[0]>180?360:0,Object(r.point)(c,o.properties)}},function(t,e,n){"use strict";n.d(e,"f",function(){return f}),n.d(e,"g",function(){return p}),n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return o}),n.d(e,"e",function(){return a}),e.d=g;var r,i,o,a,s=n(308),u=n(148),c=n(149),l=n(86),h=n(85),f=1e-6,p=1e-12;function d(t,e){return e[1]-t[1]||e[0]-t[0]}function g(t,e){var n,f,p,g=t.sort(d).pop();for(a=[],i=new Array(t.length),r=new h.b,o=new h.b;;)if(p=c.c,g&&(!p||g[1]<p.y||g[1]===p.y&&g[0]<p.x))g[0]===n&&g[1]===f||(Object(s.a)(g),n=g[0],f=g[1]),g=t.pop();else{if(!p)break;Object(s.b)(p.arc)}if(Object(u.d)(),e){var y=+e[0][0],v=+e[0][1],m=+e[1][0],_=+e[1][1];Object(l.a)(y,v,m,_),Object(u.b)(y,v,m,_)}this.edges=a,this.cells=i,r=o=a=i=null}g.prototype={constructor:g,polygons:function(){var t=this.edges;return this.cells.map(function(e){var n=e.halfedges.map(function(n){return Object(u.a)(e,t[n])});return n.data=e.site.data,n})},triangles:function(){var t=[],e=this.edges;return this.cells.forEach(function(n,r){if(o=(i=n.halfedges).length)for(var i,o,a,s,u,c,l=n.site,h=-1,f=e[i[o-1]],p=f.left===l?f.right:f.left;++h<o;)a=p,p=(f=e[i[h]]).left===l?f.right:f.left,a&&p&&r<a.index&&r<p.index&&(u=a,c=p,((s=l)[0]-c[0])*(u[1]-s[1])-(s[0]-u[0])*(c[1]-s[1])<0)&&t.push([l.data,a.data,p.data])}),t},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(t,e,n){for(var r,i,o=this,a=o._found||0,s=o.cells.length;!(i=o.cells[a]);)if(++a>=s)return null;var u=t-i.site[0],c=e-i.site[1],l=u*u+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach(function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var u=t-s[0],c=e-s[1],h=u*u+c*c;h<l&&(l=h,a=s.index)}})}while(null!==a);return o._found=r,null==n||l<=n*n?i.site:null}}},function(t,e,n){"use strict";(function(t){var r=n(316);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=function(t,e){return t.ll.x<=e.x&&e.x<=t.ur.x&&t.ll.y<=e.y&&e.y<=t.ur.y},u=function(t,e){if(e.ur.x<t.ll.x||t.ur.x<e.ll.x||e.ur.y<t.ll.y||t.ur.y<e.ll.y)return null;var n=t.ll.x<e.ll.x?e.ll.x:t.ll.x,r=t.ur.x<e.ur.x?t.ur.x:e.ur.x;return{ll:{x:n,y:t.ll.y<e.ll.y?e.ll.y:t.ll.y},ur:{x:r,y:t.ur.y<e.ur.y?t.ur.y:e.ur.y}}},c=Number.EPSILON;void 0===c&&(c=Math.pow(2,-52));var l=c*c,h=function(t,e){if(-c<t&&t<c&&-c<e&&e<c)return 0;var n=t-e;return n*n<l*t*e?0:t<e?-1:1},f=function(){function t(){i(this,t),this.reset()}return a(t,[{key:"reset",value:function(){this.xRounder=new p,this.yRounder=new p}},{key:"round",value:function(t,e){return{x:this.xRounder.round(t),y:this.yRounder.round(e)}}}]),t}(),p=function(){function t(){i(this,t),this.tree=new r.a,this.round(0)}return a(t,[{key:"round",value:function(t){var e=this.tree.add(t),n=this.tree.prev(e);if(null!==n&&0===h(e.key,n.key))return this.tree.remove(t),n.key;var r=this.tree.next(e);return null!==r&&0===h(e.key,r.key)?(this.tree.remove(t),r.key):t}}]),t}(),d=new f,g=function(t,e){return t.x*e.y-t.y*e.x},y=function(t,e){return t.x*e.x+t.y*e.y},v=function(t,e,n){var r={x:e.x-t.x,y:e.y-t.y},i={x:n.x-t.x,y:n.y-t.y},o=g(r,i);return h(o,0)},m=function(t){return Math.sqrt(y(t,t))},_=function(t,e,n){return 0===e.y?null:{x:t.x+e.x/e.y*(n-t.y),y:n}},b=function(t,e,n){return 0===e.x?null:{x:n,y:t.y+e.y/e.x*(n-t.x)}},w=function(){function t(e,n){i(this,t),void 0===e.events?e.events=[this]:e.events.push(this),this.point=e,this.isLeft=n}return a(t,null,[{key:"compare",value:function(e,n){var r=t.comparePoints(e.point,n.point);return 0!==r?r:(e.point!==n.point&&e.link(n),e.isLeft!==n.isLeft?e.isLeft?1:-1:x.compare(e.segment,n.segment))}},{key:"comparePoints",value:function(t,e){return t.x<e.x?-1:t.x>e.x?1:t.y<e.y?-1:t.y>e.y?1:0}}]),a(t,[{key:"link",value:function(t){if(t.point===this.point)throw new Error("Tried to link already linked events");for(var e=t.point.events,n=0,r=e.length;n<r;n++){var i=e[n];this.point.events.push(i),i.point=this.point}this.checkForConsuming()}},{key:"checkForConsuming",value:function(){for(var t=this.point.events.length,e=0;e<t;e++){var n=this.point.events[e];if(void 0===n.segment.consumedBy)for(var r=e+1;r<t;r++){var i=this.point.events[r];void 0===i.consumedBy&&(n.otherSE.point.events===i.otherSE.point.events&&n.segment.consume(i.segment))}}}},{key:"getAvailableLinkedEvents",value:function(){for(var t=[],e=0,n=this.point.events.length;e<n;e++){var r=this.point.events[e];r!==this&&!r.segment.ringOut&&r.segment.isInResult()&&t.push(r)}return t}},{key:"getLeftmostComparator",value:function(t){var e=this,n=new Map,r=function(r){var i,o,a,s,u,c=r.otherSE;n.set(r,{sine:(i=e.point,o=t.point,a=c.point,s={x:o.x-i.x,y:o.y-i.y},u={x:a.x-i.x,y:a.y-i.y},g(u,s)/m(u)/m(s)),cosine:function(t,e,n){var r={x:e.x-t.x,y:e.y-t.y},i={x:n.x-t.x,y:n.y-t.y};return y(i,r)/m(i)/m(r)}(e.point,t.point,c.point)})};return function(t,e){n.has(t)||r(t),n.has(e)||r(e);var i=n.get(t),o=i.sine,a=i.cosine,s=n.get(e),u=s.sine,c=s.cosine;return o>=0&&u>=0?a<c?1:a>c?-1:0:o<0&&u<0?a<c?-1:a>c?1:0:u<o?-1:u>o?1:0}}}]),t}(),E=0,x=function(){function t(e,n,r,o){i(this,t),this.id=++E,this.leftSE=e,e.segment=this,e.otherSE=n,this.rightSE=n,n.segment=this,n.otherSE=e,this.rings=r,this.windings=o}return a(t,null,[{key:"compare",value:function(t,e){var n=t.leftSE.point.x,r=e.leftSE.point.x,i=t.rightSE.point.x,o=e.rightSE.point.x;if(o<n)return 1;if(i<r)return-1;var a=t.leftSE.point.y,s=e.leftSE.point.y,u=t.rightSE.point.y,c=e.rightSE.point.y;if(n<r){if(s<a&&s<u)return 1;if(s>a&&s>u)return-1;var l=t.comparePoint(e.leftSE.point);if(l<0)return 1;if(l>0)return-1;var h=e.comparePoint(t.rightSE.point);return 0!==h?h:-1}if(n>r){if(a<s&&a<c)return-1;if(a>s&&a>c)return 1;var f=e.comparePoint(t.leftSE.point);if(0!==f)return f;var p=t.comparePoint(e.rightSE.point);return p<0?1:p>0?-1:1}if(a<s)return-1;if(a>s)return 1;if(i<o){var d=e.comparePoint(t.rightSE.point);if(0!==d)return d}if(i>o){var g=t.comparePoint(e.rightSE.point);if(g<0)return 1;if(g>0)return-1}if(i!==o){var y=u-a,v=i-n,m=c-s,_=o-r;if(y>v&&m<_)return 1;if(y<v&&m>_)return-1}return i>o?1:i<o?-1:u<c?-1:u>c?1:t.id<e.id?-1:t.id>e.id?1:0}}]),a(t,[{key:"replaceRightSE",value:function(t){this.rightSE=t,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var t=this.leftSE.point.y,e=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:t<e?t:e},ur:{x:this.rightSE.point.x,y:t>e?t:e}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(t){return t.x===this.leftSE.point.x&&t.y===this.leftSE.point.y||t.x===this.rightSE.point.x&&t.y===this.rightSE.point.y}},{key:"comparePoint",value:function(t){if(this.isAnEndpoint(t))return 0;var e=this.leftSE.point,n=this.rightSE.point,r=this.vector();if(e.x===n.x)return t.x===e.x?0:t.x<e.x?1:-1;var i=(t.y-e.y)/r.y,o=e.x+i*r.x;if(t.x===o)return 0;var a=(t.x-e.x)/r.x,s=e.y+a*r.y;return t.y===s?0:t.y<s?-1:1}},{key:"getIntersection",value:function(t){var e=this.bbox(),n=t.bbox(),r=u(e,n);if(null===r)return null;var i=this.leftSE.point,o=this.rightSE.point,a=t.leftSE.point,c=t.rightSE.point,l=s(e,a)&&0===this.comparePoint(a),h=s(n,i)&&0===t.comparePoint(i),f=s(e,c)&&0===this.comparePoint(c),p=s(n,o)&&0===t.comparePoint(o);if(h&&l)return p&&!f?o:!p&&f?c:null;if(h)return f&&i.x===c.x&&i.y===c.y?null:i;if(l)return p&&o.x===a.x&&o.y===a.y?null:a;if(p&&f)return null;if(p)return o;if(f)return c;var y=function(t,e,n,r){if(0===e.x)return b(n,r,t.x);if(0===r.x)return b(t,e,n.x);if(0===e.y)return _(n,r,t.y);if(0===r.y)return _(t,e,n.y);var i=g(e,r);if(0==i)return null;var o={x:n.x-t.x,y:n.y-t.y},a=g(o,e)/i,s=g(o,r)/i;return{x:(t.x+s*e.x+(n.x+a*r.x))/2,y:(t.y+s*e.y+(n.y+a*r.y))/2}}(i,this.vector(),a,t.vector());return null===y?null:s(r,y)?d.round(y.x,y.y):null}},{key:"split",value:function(e){var n=[],r=void 0!==e.events,i=new w(e,!0),o=new w(e,!1),a=this.rightSE;this.replaceRightSE(o),n.push(o),n.push(i);var s=new t(i,a,this.rings.slice(),this.windings.slice());return w.comparePoints(s.leftSE.point,s.rightSE.point)>0&&s.swapEvents(),w.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),r&&(i.checkForConsuming(),o.checkForConsuming()),n}},{key:"swapEvents",value:function(){var t=this.rightSE;this.rightSE=this.leftSE,this.leftSE=t,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var e=0,n=this.windings.length;e<n;e++)this.windings[e]*=-1}},{key:"consume",value:function(e){for(var n=this,r=e;n.consumedBy;)n=n.consumedBy;for(;r.consumedBy;)r=r.consumedBy;var i=t.compare(n,r);if(0!==i){if(i>0){var o=n;n=r,r=o}if(n.prev===r){var a=n;n=r,r=a}for(var s=0,u=r.rings.length;s<u;s++){var c=r.rings[s],l=r.windings[s],h=n.rings.indexOf(c);-1===h?(n.rings.push(c),n.windings.push(l)):n.windings[h]+=l}r.rings=null,r.windings=null,r.consumedBy=n,r.leftSE.consumedBy=n.leftSE,r.rightSE.consumedBy=n.rightSE}}},{key:"prevInResult",value:function(){return void 0!==this._prevInResult?this._prevInResult:(this.prev?this.prev.isInResult()?this._prevInResult=this.prev:this._prevInResult=this.prev.prevInResult():this._prevInResult=null,this._prevInResult)}},{key:"beforeState",value:function(){if(void 0!==this._beforeState)return this._beforeState;if(this.prev){var t=this.prev.consumedBy||this.prev;this._beforeState=t.afterState()}else this._beforeState={rings:[],windings:[],multiPolys:[]};return this._beforeState}},{key:"afterState",value:function(){if(void 0!==this._afterState)return this._afterState;var t=this.beforeState();this._afterState={rings:t.rings.slice(0),windings:t.windings.slice(0),multiPolys:[]};for(var e=this._afterState.rings,n=this._afterState.windings,r=this._afterState.multiPolys,i=0,o=this.rings.length;i<o;i++){var a=this.rings[i],s=this.windings[i],u=e.indexOf(a);-1===u?(e.push(a),n.push(s)):n[u]+=s}for(var c=[],l=[],h=0,f=e.length;h<f;h++)if(0!==n[h]){var p=e[h],d=p.poly;if(-1===l.indexOf(d))if(p.isExterior)c.push(d);else{-1===l.indexOf(d)&&l.push(d);var g=c.indexOf(p.poly);-1!==g&&c.splice(g,1)}}for(var y=0,v=c.length;y<v;y++){var m=c[y].multiPoly;-1===r.indexOf(m)&&r.push(m)}return this._afterState}},{key:"isInResult",value:function(){if(this.consumedBy)return!1;if(void 0!==this._isInResult)return this._isInResult;var t=this.beforeState().multiPolys,e=this.afterState().multiPolys;switch(N.type){case"union":var n=0===t.length,r=0===e.length;this._isInResult=n!==r;break;case"intersection":var i,o;t.length<e.length?(i=t.length,o=e.length):(i=e.length,o=t.length),this._isInResult=o===N.numMultiPolys&&i<o;break;case"xor":var a=Math.abs(t.length-e.length);this._isInResult=a%2==1;break;case"difference":var s=function(t){return 1===t.length&&t[0].isSubject};this._isInResult=s(t)!==s(e);break;default:throw new Error("Unrecognized operation type found ".concat(N.type))}return this._isInResult}}],[{key:"fromRing",value:function(e,n,r){var i,o,a,s=w.comparePoints(e,n);if(s<0)i=e,o=n,a=1;else{if(!(s>0))throw new Error("Tried to create degenerate segment at [".concat(e.x,", ").concat(e.y,"]"));i=n,o=e,a=-1}return new t(new w(i,!0),new w(o,!1),[r],[a])}}]),t}(),O=function(){function t(e,n,r){if(i(this,t),!Array.isArray(e)||0===e.length)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=n,this.isExterior=r,this.segments=[],"number"!=typeof e[0][0]||"number"!=typeof e[0][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var o=d.round(e[0][0],e[0][1]);this.bbox={ll:{x:o.x,y:o.y},ur:{x:o.x,y:o.y}};for(var a=o,s=1,u=e.length;s<u;s++){if("number"!=typeof e[s][0]||"number"!=typeof e[s][1])throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var c=d.round(e[s][0],e[s][1]);c.x===a.x&&c.y===a.y||(this.segments.push(x.fromRing(a,c,this)),c.x<this.bbox.ll.x&&(this.bbox.ll.x=c.x),c.y<this.bbox.ll.y&&(this.bbox.ll.y=c.y),c.x>this.bbox.ur.x&&(this.bbox.ur.x=c.x),c.y>this.bbox.ur.y&&(this.bbox.ur.y=c.y),a=c)}o.x===a.x&&o.y===a.y||this.segments.push(x.fromRing(a,o,this))}return a(t,[{key:"getSweepEvents",value:function(){for(var t=[],e=0,n=this.segments.length;e<n;e++){var r=this.segments[e];t.push(r.leftSE),t.push(r.rightSE)}return t}}]),t}(),M=function(){function t(e,n){if(i(this,t),!Array.isArray(e))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");this.exteriorRing=new O(e[0],this,!0),this.bbox={ll:{x:this.exteriorRing.bbox.ll.x,y:this.exteriorRing.bbox.ll.y},ur:{x:this.exteriorRing.bbox.ur.x,y:this.exteriorRing.bbox.ur.y}},this.interiorRings=[];for(var r=1,o=e.length;r<o;r++){var a=new O(e[r],this,!1);a.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=a.bbox.ll.x),a.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=a.bbox.ll.y),a.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=a.bbox.ur.x),a.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=a.bbox.ur.y),this.interiorRings.push(a)}this.multiPoly=n}return a(t,[{key:"getSweepEvents",value:function(){for(var t=this.exteriorRing.getSweepEvents(),e=0,n=this.interiorRings.length;e<n;e++)for(var r=this.interiorRings[e].getSweepEvents(),i=0,o=r.length;i<o;i++)t.push(r[i]);return t}}]),t}(),S=function(){function t(e,n){if(i(this,t),!Array.isArray(e))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");try{"number"==typeof e[0][0][0]&&(e=[e])}catch(t){}this.polys=[],this.bbox={ll:{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY},ur:{x:Number.NEGATIVE_INFINITY,y:Number.NEGATIVE_INFINITY}};for(var r=0,o=e.length;r<o;r++){var a=new M(e[r],this);a.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=a.bbox.ll.x),a.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=a.bbox.ll.y),a.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=a.bbox.ur.x),a.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=a.bbox.ur.y),this.polys.push(a)}this.isSubject=n}return a(t,[{key:"getSweepEvents",value:function(){for(var t=[],e=0,n=this.polys.length;e<n;e++)for(var r=this.polys[e].getSweepEvents(),i=0,o=r.length;i<o;i++)t.push(r[i]);return t}}]),t}(),P=function(){function t(e){i(this,t),this.events=e;for(var n=0,r=e.length;n<r;n++)e[n].segment.ringOut=this;this.poly=null}return a(t,null,[{key:"factory",value:function(e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];if(o.isInResult()&&!o.ringOut){for(var a=null,s=o.leftSE,u=o.rightSE,c=[s],l=s.point,h=[];a=s,s=u,c.push(s),s.point!==l;)for(;;){var f=s.getAvailableLinkedEvents();if(0===f.length){var p=c[0].point,d=c[c.length-1].point;throw new Error("Unable to complete output ring starting at [".concat(p.x,",")+" ".concat(p.y,"]. Last matching segment found ends at")+" [".concat(d.x,", ").concat(d.y,"]."))}if(1===f.length){u=f[0].otherSE;break}for(var g=null,y=0,v=h.length;y<v;y++)if(h[y].point===s.point){g=y;break}if(null===g){h.push({index:c.length,point:s.point});var m=s.getLeftmostComparator(a);u=f.sort(m)[0].otherSE;break}var _=h.splice(g)[0],b=c.splice(_.index);b.unshift(b[0].otherSE),n.push(new t(b.reverse()))}n.push(new t(c))}}return n}}]),a(t,[{key:"getGeom",value:function(){for(var t=this.events[0].point,e=[t],n=1,r=this.events.length-1;n<r;n++){var i=this.events[n].point,o=this.events[n+1].point;0!==v(i,t,o)&&(e.push(i),t=i)}if(1===e.length)return null;var a=e[0],s=e[1];0===v(a,t,s)&&e.shift(),e.push(e[0]);for(var u=this.isExteriorRing()?1:-1,c=this.isExteriorRing()?0:e.length-1,l=this.isExteriorRing()?e.length:-1,h=[],f=c;f!=l;f+=u)h.push([e[f].x,e[f].y]);return h}},{key:"isExteriorRing",value:function(){if(void 0===this._isExteriorRing){var t=this.enclosingRing();this._isExteriorRing=!t||!t.isExteriorRing()}return this._isExteriorRing}},{key:"enclosingRing",value:function(){return void 0===this._enclosingRing&&(this._enclosingRing=this._calcEnclosingRing()),this._enclosingRing}},{key:"_calcEnclosingRing",value:function(){for(var t=this.events[0],e=1,n=this.events.length;e<n;e++){var r=this.events[e];w.compare(t,r)>0&&(t=r)}for(var i=t.segment.prevInResult(),o=i?i.prevInResult():null;;){if(!i)return null;if(!o)return i.ringOut;if(o.ringOut!==i.ringOut)return o.ringOut.enclosingRing()!==i.ringOut?i.ringOut:i.ringOut.enclosingRing();o=(i=o.prevInResult())?i.prevInResult():null}}}]),t}(),C=function(){function t(e){i(this,t),this.exteriorRing=e,e.poly=this,this.interiorRings=[]}return a(t,[{key:"addInterior",value:function(t){this.interiorRings.push(t),t.poly=this}},{key:"getGeom",value:function(){var t=[this.exteriorRing.getGeom()];if(null===t[0])return null;for(var e=0,n=this.interiorRings.length;e<n;e++){var r=this.interiorRings[e].getGeom();null!==r&&t.push(r)}return t}}]),t}(),T=function(){function t(e){i(this,t),this.rings=e,this.polys=this._composePolys(e)}return a(t,[{key:"getGeom",value:function(){for(var t=[],e=0,n=this.polys.length;e<n;e++){var r=this.polys[e].getGeom();null!==r&&t.push(r)}return t}},{key:"_composePolys",value:function(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t[n];if(!i.poly)if(i.isExteriorRing())e.push(new C(i));else{var o=i.enclosingRing();o.poly||e.push(new C(o)),o.poly.addInterior(i)}}return e}}]),t}(),I=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.compare;i(this,t),this.queue=e,this.tree=new r.a(n),this.segments=[]}return a(t,[{key:"process",value:function(t){var e=t.segment,n=[];if(t.consumedBy)return t.isLeft?this.queue.remove(t.otherSE):this.tree.remove(e),n;var r=t.isLeft?this.tree.insert(e):this.tree.find(e);if(!r)throw new Error("Unable to find segment #".concat(e.id," ")+"[".concat(e.leftSE.point.x,", ").concat(e.leftSE.point.y,"] -> ")+"[".concat(e.rightSE.point.x,", ").concat(e.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var i=r,o=r,a=void 0,s=void 0;void 0===a;)null===(i=this.tree.prev(i))?a=null:void 0===i.key.consumedBy&&(a=i.key);for(;void 0===s;)null===(o=this.tree.next(o))?s=null:void 0===o.key.consumedBy&&(s=o.key);if(t.isLeft){var u=null;if(a){var c=a.getIntersection(e);if(null!==c&&(e.isAnEndpoint(c)||(u=c),!a.isAnEndpoint(c)))for(var l=this._splitSafely(a,c),h=0,f=l.length;h<f;h++)n.push(l[h])}var p=null;if(s){var d=s.getIntersection(e);if(null!==d&&(e.isAnEndpoint(d)||(p=d),!s.isAnEndpoint(d)))for(var g=this._splitSafely(s,d),y=0,v=g.length;y<v;y++)n.push(g[y])}if(null!==u||null!==p){var m=null;if(null===u)m=p;else if(null===p)m=u;else{m=w.comparePoints(u,p)<=0?u:p}this.queue.remove(e.rightSE),n.push(e.rightSE);for(var _=e.split(m),b=0,E=_.length;b<E;b++)n.push(_[b])}n.length>0?(this.tree.remove(e),n.push(t)):(this.segments.push(e),e.prev=a)}else{if(a&&s){var x=a.getIntersection(s);if(null!==x){if(!a.isAnEndpoint(x))for(var O=this._splitSafely(a,x),M=0,S=O.length;M<S;M++)n.push(O[M]);if(!s.isAnEndpoint(x))for(var P=this._splitSafely(s,x),C=0,T=P.length;C<T;C++)n.push(P[C])}}this.tree.remove(e)}return n}},{key:"_splitSafely",value:function(t,e){this.tree.remove(t);var n=t.rightSE;this.queue.remove(n);var r=t.split(e);return r.push(n),void 0===t.consumedBy&&this.tree.insert(t),r}}]),t}(),L=void 0!==t&&t.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE||1e6,A=void 0!==t&&t.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS||1e6,N=new(function(){function t(){i(this,t)}return a(t,[{key:"run",value:function(t,e,n){N.type=t,d.reset();for(var i=[new S(e,!0)],o=0,a=n.length;o<a;o++)i.push(new S(n[o],!1));if(N.numMultiPolys=i.length,"difference"===N.type)for(var s=i[0],c=1;c<i.length;)null!==u(i[c].bbox,s.bbox)?c++:i.splice(c,1);if("intersection"===N.type)for(var l=0,h=i.length;l<h;l++)for(var f=i[l],p=l+1,g=i.length;p<g;p++)if(null===u(f.bbox,i[p].bbox))return[];for(var y=new r.a(w.compare),v=0,m=i.length;v<m;v++)for(var _=i[v].getSweepEvents(),b=0,E=_.length;b<E;b++)if(y.insert(_[b]),y.size>L)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var x=new I(y),O=y.size,M=y.pop();M;){var C=M.key;if(y.size===O){var k=C.segment;throw new Error("Unable to pop() ".concat(C.isLeft?"left":"right"," SweepEvent ")+"[".concat(C.point.x,", ").concat(C.point.y,"] from segment #").concat(k.id," ")+"[".concat(k.leftSE.point.x,", ").concat(k.leftSE.point.y,"] -> ")+"[".concat(k.rightSE.point.x,", ").concat(k.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(y.size>L)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(x.segments.length>A)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var j=x.process(C),R=0,D=j.length;R<D;R++){var F=j[R];void 0===F.consumedBy&&y.insert(F)}O=y.size,M=y.pop()}d.reset();var z=P.factory(x.segments);return new T(z).getGeom()}}]),t}()),k={union:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return N.run("union",t,n)},intersection:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return N.run("intersection",t,n)},xor:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return N.run("xor",t,n)},difference:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return N.run("difference",t,n)}};e.a=k}).call(e,n(315))},function(t,e,n){"use strict";e.g=function(t){return[Object(r.e)(t[1],t[0]),Object(r.c)(t[2])]},e.a=function(t){var e=t[0],n=t[1],i=Object(r.g)(n);return[i*Object(r.g)(e),i*Object(r.t)(e),Object(r.t)(n)]},e.d=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},e.c=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]},e.b=function(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]},e.f=function(t,e){return[t[0]*e,t[1]*e,t[2]*e]},e.e=function(t){var e=Object(r.u)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e};var r=n(3)},function(t,e,n){"use strict";e.a=function(t){return null===t?NaN:+t}},function(t,e,n){"use strict";e.b=function(t){return function(e,n){var i=Object(r.g)(e),o=Object(r.g)(n),a=t(i*o);return[a*o*Object(r.t)(e),a*Object(r.t)(n)]}},e.a=function(t){return function(e,n){var i=Object(r.u)(e*e+n*n),o=t(i),a=Object(r.t)(o),s=Object(r.g)(o);return[Object(r.e)(e*a,i*s),Object(r.c)(i&&n*a/i)]}};var r=n(3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=c(n(12)),o=c(n(5)),a=n(4),s=c(n(21)),u=n(7);function c(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=t.position;return n._position=new o.default(r.x,r.y,r.z||0),n._width=t.width||32,n._height=t.height||n._width,n._image=t.image,n._offset=t.offset||a.JSControlPosition.CENTER_BOTTOM,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"destroy",value:function(){(function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this._position=void 0,this._height=void 0,this._width=void 0,this._image=void 0,this._offset=void 0}},{key:"offset",get:function(){return this._offset},set:function(t){t!=this._offset&&(this._offset=t,this._updateIcon(this))}},{key:"width",get:function(){return this._width},set:function(t){t!=this._width&&(this._width=t,this._updateIcon(this))}},{key:"height",get:function(){return this._height},set:function(t){t!=this._height&&(this._height=t,this._updateIcon(this))}},{key:"image",get:function(){return this._image},set:function(t){t!=this._image&&(this._image=t,this._updateIcon(this))}},{key:"boundingSphere",get:function(){return new s.default(this._position,u.JSBOUNDSPHERE_DEFAULT_RADIUS)}}]),e}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extend=function(t){var e,n,r,i;for(n=1,r=arguments.length;n<r;n++)for(e in i=arguments[n])t[e]=i[e];return t},e.bind=i,e.stamp=function(t){return t._leaflet_id=t._leaflet_id||(e.lastId=o+=1),t._leaflet_id},e.throttle=function(t,e,n){var r,i,o,a;return a=function(){r=!1,i&&(o.apply(n,i),i=!1)},o=function(){r?i=arguments:(t.apply(n,arguments),setTimeout(a,e),r=!0)}},e.wrapNum=function(t,e,n){var r=e[1],i=e[0],o=r-i;return t===r&&n?t:((t-i)%o+o)%o+i},e.falseFn=function(){return!1},e.formatNum=function(t,e){var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n},e.trim=a,e.splitWords=function(t){return a(t).split(/\s+/)},e.setOptions=function(t,e){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?r(t.options):{});for(var n in e)t.options[n]=e[n];return t.options},e.getParamString=function(t,e,n){var r=[];for(var i in t)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(t[i]));return(e&&-1!==e.indexOf("?")?"&":"?")+r.join("&")},e.template=function(t,e){return t.replace(s,function(t,n){var r=e[n];if(void 0===r)throw new Error("No value provided for variable "+t);return"function"==typeof r&&(r=r(e)),r})},e.indexOf=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1},e.requestAnimFrame=function(t,e,n){if(!n||h!==l)return h.call(window,i(t,e));t.call(e)},e.cancelAnimFrame=function(t){t&&f.call(window,t)};var r=e.create=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function i(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var r=n.call(arguments,2);return function(){return t.apply(e,r.length?r.concat(n.call(arguments)):arguments)}}var o=e.lastId=0;function a(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}var s=/\{ *([\w_-]+) *\}/g;e.isArray=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};e.emptyImageUrl="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function u(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var c=0;function l(t){var e=+new Date,n=Math.max(0,16-(e-c));return c=e+n,window.setTimeout(t,n)}var h=e.requestFn=window.requestAnimationFrame||u("RequestAnimationFrame")||l,f=e.cancelFn=window.cancelAnimationFrame||u("CancelAnimationFrame")||u("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.vml=e.svg=e.canvas=e.passiveEvents=e.retina=e.mobileGecko=e.mobileOpera=e.touch=e.pointer=e.msPointer=e.mobileWebkit3d=e.mobileWebkit=e.mobile=e.any3d=e.gecko3d=e.webkit3d=e.ie3d=e.win=e.opera12=e.phantom=e.safari=e.gecko=e.chrome=e.opera=e.androidStock=e.android23=e.android=e.webkit=e.edge=e.ielt9=e.ie=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(52)),o=n(388);var a=document.documentElement.style,s=e.ie="ActiveXObject"in window,u=(e.ielt9=s&&!document.addEventListener,e.edge="msLaunchUri"in navigator&&!("documentMode"in document)),c=e.webkit=M("webkit"),l=e.android=M("android"),h=e.android23=M("android 2")||M("android 3"),f=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),p=(e.androidStock=l&&M("Google")&&f<537&&!("AudioNode"in window),e.opera=!!window.opera),d=e.chrome=!u&&M("chrome"),g=e.gecko=M("gecko")&&!c&&!p&&!s,y=(e.safari=!d&&M("safari"),e.phantom=M("phantom")),v=e.opera12="OTransition"in a,m=(e.win=0===navigator.platform.indexOf("Win"),e.ie3d=s&&"transition"in a),_=e.webkit3d="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!h,b=e.gecko3d="MozPerspective"in a,w=(e.any3d=!window.L_DISABLE_3D&&(m||_||b)&&!v&&!y,e.mobile="undefined"!=typeof orientation||M("mobile")),E=(e.mobileWebkit=w&&c,e.mobileWebkit3d=w&&_,e.msPointer=!window.PointerEvent&&window.MSPointerEvent),x=e.pointer=!(!window.PointerEvent&&!E),O=(e.touch=!window.L_NO_TOUCH&&(x||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),e.mobileOpera=w&&p,e.mobileGecko=w&&g,e.retina=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,e.passiveEvents=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",i.falseFn,e),window.removeEventListener("testPassiveEventSupport",i.falseFn,e)}catch(t){}return t}(),e.canvas=!!document.createElement("canvas").getContext,e.svg=!(!document.createElementNS||!(0,o.svgCreate)("svg").createSVGRect));e.vml=!O&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"===r(e.adj)}catch(t){return!1}}();function M(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}},function(t,e,n){"use strict";function r(t){if(t instanceof r)this.scheme=t.scheme,this.authority=t.authority,this.path=t.path,this.query=t.query,this.fragment=t.fragment;else if(t){var e=i.exec(t);this.scheme=e[1],this.authority=e[2],this.path=e[3],this.query=e[4],this.fragment=e[5]}}Object.defineProperty(e,"__esModule",{value:!0}),r.prototype.scheme=null,r.prototype.authority=null,r.prototype.path="",r.prototype.query=null,r.prototype.fragment=null;var i=new RegExp("^(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*)(?:\\?([^#]*))?(?:#(.*))?$");r.prototype.getScheme=function(){return this.scheme},r.prototype.getAuthority=function(){return this.authority},r.prototype.getPath=function(){return this.path},r.prototype.getQuery=function(){return this.query},r.prototype.getFragment=function(){return this.fragment},r.prototype.isAbsolute=function(){return!!this.scheme&&!this.fragment},r.prototype.isSameDocumentAs=function(t){return t.scheme==this.scheme&&t.authority==this.authority&&t.path==this.path&&t.query==this.query},r.prototype.equals=function(t){return this.isSameDocumentAs(t)&&t.fragment==this.fragment},r.prototype.normalize=function(){this.removeDotSegments(),this.scheme&&(this.scheme=this.scheme.toLowerCase()),this.authority&&(this.authority=this.authority.replace(s,c).replace(o,u)),this.path&&(this.path=this.path.replace(o,u)),this.query&&(this.query=this.query.replace(o,u)),this.fragment&&(this.fragment=this.fragment.replace(o,u))};var o=/%[0-9a-z]{2}/gi,a=/[a-zA-Z0-9\-\._~]/,s=/(.*@)?([^@:]*)(:.*)?/;function u(t){var e=unescape(t);return a.test(e)?e:t.toUpperCase()}function c(t,e,n,r){return(e||"")+n.toLowerCase()+(r||"")}r.prototype.resolve=function(t){var e=new r;return this.scheme?(e.scheme=this.scheme,e.authority=this.authority,e.path=this.path,e.query=this.query):(e.scheme=t.scheme,this.authority?(e.authority=this.authority,e.path=this.path,e.query=this.query):(e.authority=t.authority,""==this.path?(e.path=t.path,e.query=this.query||t.query):("/"==this.path.charAt(0)?(e.path=this.path,e.removeDotSegments()):(t.authority&&""==t.path?e.path="/"+this.path:e.path=t.path.substring(0,t.path.lastIndexOf("/")+1)+this.path,e.removeDotSegments()),e.query=this.query))),e.fragment=this.fragment,e},r.prototype.removeDotSegments=function(){var t,e=this.path.split("/"),n=[],r=""==e[0];r&&e.shift();for(""==e[0]&&e.shift();e.length;)".."==(t=e.shift())?n.pop():"."!=t&&n.push(t);"."!=t&&".."!=t||n.push(""),r&&n.unshift(""),this.path=n.join("/")},r.prototype.toString=function(){var t="";return this.scheme&&(t+=this.scheme+":"),this.authority&&(t+="//"+this.authority),t+=this.path,this.query&&(t+="?"+this.query),this.fragment&&(t+="#"+this.fragment),t},e.default=r},function(t,e,n){"use strict";function r(t){return"string"==typeof t}function i(t){return Array.isArray(t)}function o(t){return t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY}function a(t){return"number"==typeof t&&!isNaN(t)&&!o(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.isNull=function(t){return void 0===t||null===t},e.isString=r,e.emptyString=function(t){return""===t},e.nonEmptyString=function(t){return r(0)&&""!==t},e.isArray=i,e.emptyArray=function(t){return i(t)&&0===t.length},e.nonEmptyArray=function(t){return i(t)&&0!==t.length},e.isInfinity=o,e.isNumber=a,e.isInteger=function(t){return a(t)&&t%1==0},e.isFunction=function(t){return"function"==typeof t},e.isObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Object.prototype.hasOwnProperty},function(t,e,n){"use strict";var r=n(10),i=n(0);e.a=function(t,e){void 0===e&&(e={});var n=Object(r.default)(t),o=(n[0]+n[2])/2,a=(n[1]+n[3])/2;return Object(i.point)([o,a],e.properties,e)}},function(t,e,n){"use strict";var r=n(1),i=n(0);e.a=function(t){var e=[];return"FeatureCollection"===t.type?Object(r.featureEach)(t,function(t){Object(r.coordEach)(t,function(n){e.push(Object(i.point)(n,t.properties))})}):Object(r.coordEach)(t,function(n){e.push(Object(i.point)(n,t.properties))}),Object(i.featureCollection)(e)}},function(t,e,n){"use strict";var r=n(34),i=n(8),o=n(27),a=n(35),s=n(1),u=n(0),c=n(2);e.a=function(t,e,n){void 0===n&&(n={});var l=Object(u.point)([1/0,1/0],{dist:1/0}),h=0;return Object(s.flattenEach)(t,function(t){for(var s=Object(c.getCoords)(t),f=0;f<s.length-1;f++){var p=Object(u.point)(s[f]);p.properties.dist=Object(i.a)(e,p,n);var d=Object(u.point)(s[f+1]);d.properties.dist=Object(i.a)(e,d,n);var g=Object(i.a)(p,d,n),y=Math.max(p.properties.dist,d.properties.dist),v=Object(r.a)(p,d),m=Object(o.a)(e,y,v+90,n),_=Object(o.a)(e,y,v-90,n),b=Object(a.a)(Object(u.lineString)([m.geometry.coordinates,_.geometry.coordinates]),Object(u.lineString)([p.geometry.coordinates,d.geometry.coordinates])),w=null;b.features.length>0&&((w=b.features[0]).properties.dist=Object(i.a)(e,w,n),w.properties.location=h+Object(i.a)(p,w,n)),p.properties.dist<l.properties.dist&&((l=p).properties.index=f,l.properties.location=h),d.properties.dist<l.properties.dist&&((l=d).properties.index=f+1,l.properties.location=h+g),w&&w.properties.dist<l.properties.dist&&((l=w).properties.index=f),h+=g}}),l}},function(t,e,n){"use strict";var r=n(0),i=n(2);e.a=function(t,e,n){void 0===n&&(n={});var o=Object(i.getCoord)(t),a=Object(i.getCoord)(e);a[0]+=a[0]-o[0]>180?-360:o[0]-a[0]>180?360:0;var s=function(t,e,n){var i=n=void 0===n?r.earthRadius:Number(n),o=t[1]*Math.PI/180,a=e[1]*Math.PI/180,s=a-o,u=Math.abs(e[0]-t[0])*Math.PI/180;u>Math.PI&&(u-=2*Math.PI);var c=Math.log(Math.tan(a/2+Math.PI/4)/Math.tan(o/2+Math.PI/4)),l=Math.abs(c)>1e-11?s/c:Math.cos(o);return Math.sqrt(s*s+l*l*u*u)*i}(o,a);return Object(r.convertLength)(s,"meters",n.units)}},function(t,e,n){"use strict";var r=n(2);function i(t,e,n,r,i){var o=n[0],a=n[1],s=t[0],u=t[1],c=e[0],l=e[1],h=c-s,f=l-u,p=(n[0]-s)*f-(n[1]-u)*h;if(null!==i){if(Math.abs(p)>i)return!1}else if(0!==p)return!1;return r?"start"===r?Math.abs(h)>=Math.abs(f)?h>0?s<o&&o<=c:c<=o&&o<s:f>0?u<a&&a<=l:l<=a&&a<u:"end"===r?Math.abs(h)>=Math.abs(f)?h>0?s<=o&&o<c:c<o&&o<=s:f>0?u<=a&&a<l:l<a&&a<=u:"both"===r&&(Math.abs(h)>=Math.abs(f)?h>0?s<o&&o<c:c<o&&o<s:f>0?u<a&&a<l:l<a&&a<u):Math.abs(h)>=Math.abs(f)?h>0?s<=o&&o<=c:c<=o&&o<=s:f>0?u<=a&&a<=l:l<=a&&a<=u}e.a=function(t,e,n){void 0===n&&(n={});for(var o=Object(r.getCoord)(t),a=Object(r.getCoords)(e),s=0;s<a.length-1;s++){var u=!1;if(n.ignoreEndVertices&&(0===s&&(u="start"),s===a.length-2&&(u="end"),0===s&&s+1===a.length-1&&(u="both")),i(a[s],a[s+1],o,u,void 0===n.epsilon?null:n.epsilon))return!0}return!1}},function(t,e,n){"use strict";e.b=a;var r=n(157),i=n(3);function o(t,e){return[t>i.o?t-i.w:t<-i.o?t+i.w:t,e]}function a(t,e,n){return(t%=i.w)?e||n?Object(r.a)(u(t),c(e,n)):u(t):e||n?c(e,n):o}function s(t){return function(e,n){return[(e+=t)>i.o?e-i.w:e<-i.o?e+i.w:e,n]}}function u(t){var e=s(t);return e.invert=s(-t),e}function c(t,e){var n=Object(i.g)(t),r=Object(i.t)(t),o=Object(i.g)(e),a=Object(i.t)(e);function s(t,e){var s=Object(i.g)(e),u=Object(i.g)(t)*s,c=Object(i.t)(t)*s,l=Object(i.t)(e),h=l*n+u*r;return[Object(i.e)(c*o-h*a,u*n-l*r),Object(i.c)(h*o+c*a)]}return s.invert=function(t,e){var s=Object(i.g)(e),u=Object(i.g)(t)*s,c=Object(i.t)(t)*s,l=Object(i.t)(e),h=l*o-c*a;return[Object(i.e)(c*o+l*a,u*n+h*r),Object(i.c)(h*n-u*r)]},s}o.invert=o,e.a=function(t){function e(e){return(e=t(e[0]*i.r,e[1]*i.r))[0]*=i.h,e[1]*=i.h,e}return t=a(t[0]*i.r,t[1]*i.r,t.length>2?t[2]*i.r:0),e.invert=function(e){return(e=t.invert(e[0]*i.r,e[1]*i.r))[0]*=i.h,e[1]*=i.h,e},e}},function(t,e,n){"use strict";e.a=r;function r(t){return function(e){var n=new i;for(var r in t)n[r]=t[r];return n.stream=e,n}}function i(){}i.prototype={constructor:i,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=l(n(12)),a=(l(n(5)),l(n(18))),s=l(n(15)),u=l(n(14)),c=l(n(21));function l(t){return t&&t.__esModule?t:{default:t}}var h=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n._position=t.position,n._color=t.color||"#0e03ff",n._strokeColor=t.strokeColor||"#FFF",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),r(e,[{key:"setPosition",value:function(t){t instanceof Array&&(this._position=new a.default(t)),this._position=t;var e=u.default.getLineOrPolygonLatlngs(this._position,!1).latlngs;this._node.setLatLngs(e)}},{key:"moveTo",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=arguments[2],o=arguments[3],a=arguments[4];i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveTo",this).call(this,t,n,r,o,a),this.setPosition(t)}},{key:"destroy",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this._color=void 0,this._strokeColor=void 0}},{key:"color",get:function(){return this._color},set:function(t){t!=this._color&&(this._color=t,this._node.setStyle({fillColor:t,fillOpacity:this._show?s.default.getAlphafromCssString(t):0}))}},{key:"strokeColor",get:function(){return this._strokeColor},set:function(t){t!=this._strokeColor&&(this._strokeColor=t,this._node.setStyle({color:t,opacity:this._show?s.default.getAlphafromCssString(t):0}))}},{key:"show",get:function(){return this._show},set:function(t){t!=this._show&&(t?this._node.setStyle({opacity:s.default.getAlphafromCssString(this._strokeColor),fillOpacity:s.default.getAlphafromCssString(this._color)}):this._node.setStyle({opacity:0,fillOpacity:0}),this._show=t)}},{key:"boundingSphere",get:function(){var t=this._position.envelope;return new c.default(t.center,t.radius)}}]),e}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=l(n(12)),o=(l(n(5)),l(n(20))),a=l(n(15)),s=l(n(21)),u=l(n(14)),c=n(4);function l(t){return t&&t.__esModule?t:{default:t}}var h=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n._position=t.position,n._width=t.width||2,n._color=t.color||"#0e03ff",n._smooth=0!=t.smooth,n._lineType=t.lineType||c.JSLineType.FILL,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"setPosition",value:function(t){var e=u.default.getLineOrPolygonLatlngs(t,this._smooth),n=e.latlngs,r=e.points;this._position=new o.default(r),this._node.setLatLngs(n),this._node._symbol&&this._node._symbol.setLatLngs(n)}},{key:"moveTo",value:function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1],arguments[2],arguments[3],arguments[4];this.setPosition(t)}},{key:"destroy",value:function(){(function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this._color=void 0,this._width=void 0,this._smooth=void 0}},{key:"width",get:function(){return this._width},set:function(t){if(t!=this._width){this._width=t;var e=this._show?a.default.getAlphafromCssString(this._color):0;this._lineType==c.JSLineType.DASH?this._node.setWidthAndColor(t,this._color,e,!1):(this._node.setStyle({weight:t,opacity:e}),this._node._symbol&&this._node._symbol.setWidthAndColor(t,this._color,e))}}},{key:"lineType",get:function(){return this._lineType},set:function(t){t!==this._lineType&&(this._updateLineType(this,t),this._lineType=t)}},{key:"color",get:function(){return this._color},set:function(t){if(t!=this._color){this._color=t;var e=this._show?a.default.getAlphafromCssString(t):0;this._lineType==c.JSLineType.DASH?this._node.setWidthAndColor(this._width,t,e,!1):(this._node.setStyle({color:t,opacity:e}),this._node._symbol&&this._node._symbol.setWidthAndColor(this._width,t,e))}}},{key:"smooth",get:function(){return this._smooth}},{key:"show",get:function(){return this._show},set:function(t){if(t!=this._show){this._show=t;var e=t?a.default.getAlphafromCssString(this._color):0;this._lineType==c.JSLineType.DASH?this._node.setWidthAndColor(this._width,this._color,e,!1):(this._node.setStyle({opacity:e}),this._node._symbol&&this._node._symbol.setWidthAndColor(this._width,this._color,e))}}},{key:"boundingSphere",get:function(){var t=this._position.envelope;return new s.default(t.center,t.radius)}}]),e}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeListener=e.addListener=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.on=h,e.off=p,e.stopPropagation=m,e.disableScrollPropagation=function(t){return y(t,"wheel",m),this},e.disableClickPropagation=function(t){return h(t,"mousedown touchstart dblclick",m),y(t,"click",E),this},e.preventDefault=_,e.stop=function(t){return _(t),m(t),this},e.getMousePosition=function(t,e){if(!e)return new i.Point(t.clientX,t.clientY);var n=(0,c.getScale)(e),r=n.boundingClientRect;return new i.Point((t.clientX-r.left)/n.x-e.clientLeft,(t.clientY-r.top)/n.y-e.clientTop)},e.getWheelDelta=function(t){return a.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/b:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0},e.fakeStop=E,e.skipped=x,e.isExternalTarget=O;var i=n(190),o=l(n(52)),a=l(n(53)),s=n(389),u=n(390),c=n(23);function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function h(t,e,n,i){if("object"===(void 0===e?"undefined":r(e)))for(var a in e)y(t,a,e[a],n);else for(var s=0,u=(e=o.splitWords(e)).length;s<u;s++)y(t,e[s],n,i);return this}var f="_leaflet_events";function p(t,e,n,i){if("object"===(void 0===e?"undefined":r(e)))for(var a in e)v(t,a,e[a],n);else if(e)for(var s=0,u=(e=o.splitWords(e)).length;s<u;s++)v(t,e[s],n,i);else{for(var c in t[f])v(t,c,t[f][c]);delete t[f]}return this}function d(){if(a.pointer)return!(a.edge||a.safari)}var g={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function y(t,e,n,r){var i=e+o.stamp(n)+(r?"_"+o.stamp(r):"");if(t[f]&&t[f][i])return this;var c=function(e){return n.call(r||t,e||window.event)},l=c;a.pointer&&0===e.indexOf("touch")?(0,s.addPointerListener)(t,e,c,i):a.touch&&"dblclick"===e&&!d()?(0,u.addDoubleTapListener)(t,c,i):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(g[e]||e,c,!!a.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(c=function(e){e=e||window.event,O(t,e)&&l(e)},t.addEventListener(g[e],c,!1)):t.addEventListener(e,l,!1):"attachEvent"in t&&t.attachEvent("on"+e,c),t[f]=t[f]||{},t[f][i]=c}function v(t,e,n,r){var i=e+o.stamp(n)+(r?"_"+o.stamp(r):""),c=t[f]&&t[f][i];if(!c)return this;a.pointer&&0===e.indexOf("touch")?(0,s.removePointerListener)(t,e,i):a.touch&&"dblclick"===e&&!d()?(0,u.removeDoubleTapListener)(t,i):"removeEventListener"in t?t.removeEventListener(g[e]||e,c,!1):"detachEvent"in t&&t.detachEvent("on"+e,c),t[f][i]=null}function m(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,x(t),this}function _(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}var b=a.win&&a.chrome?2*window.devicePixelRatio:a.gecko?window.devicePixelRatio:1;var w={};function E(t){w[t.type]=!0}function x(t){var e=w[t.type];return w[t.type]=!1,e}function O(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}e.addListener=h,e.removeListener=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=c(n(12)),o=c(n(5)),a=c(n(15)),s=c(n(21)),u=n(7);function c(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=t.position;return n._position=new o.default(r.x,r.y),n._radius=t.radius||10,n._color=t.color||"rgba(255,0,0,1.0)",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"boundingSphere",get:function(){var t=this._node.getBounds(),e=t.getEast(),n=t.getWest(),r=t.getNorth(),i=t.getSouth(),o=Math.abs(e-n),a=Math.abs(i-r);return new s.default(this._position,Math.max(o,a)+u.JSBOUNDSPHERE_DEFAULT_RADIUS)}},{key:"radius",get:function(){return this._radius},set:function(t){t!==this._radius&&(this._radius=t,this._node.setRadius(t))}},{key:"color",get:function(){return this._color},set:function(t){if(t!=this._color){this._color=t;var e=a.default.getAlphafromCssString(t);this._node.setStyle({color:t,fillColor:t,opacity:this._show?e+.2:0,fillOpacity:this._show?e:0})}}},{key:"show",get:function(){return this._show},set:function(t){if(t!=this._show){if(t){var e=a.default.getAlphafromCssString(this._color);this._node.setStyle({opacity:e+.2,fillOpacity:e})}else this._node.setStyle({opacity:0,fillOpacity:0});this._show=t}}}]),e}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=u(n(12)),a=(u(n(38)),u(n(15))),s=u(n(21));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n._position=t.position,n._color=t.color||"#0e03ff",n._strokeColor=t.strokeColor||"#FFF",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),r(e,[{key:"setPosition",value:function(t){this._position=t;var e=t.west,n=t.south,r=t.east,i=t.north;this._node.setBounds([[n,e],[i,r]])}},{key:"moveTo",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=arguments[2],o=arguments[3],a=arguments[4];i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveTo",this).call(this,t,n,r,o,a),this.setPosition(t)}},{key:"destroy",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this._color=void 0,this._strokeColor=void 0}},{key:"color",get:function(){return this._color},set:function(t){t!=this._color&&(this._color=t,this._node.setStyle({fillColor:t,fillOpacity:this._show?a.default.getAlphafromCssString(t):0}))}},{key:"strokeColor",get:function(){return this._strokeColor},set:function(t){t!=this._strokeColor&&(this._strokeColor=t,this._node.setStyle({color:t,opacity:this._show?a.default.getAlphafromCssString(t):0}))}},{key:"show",get:function(){return this._show},set:function(t){t!=this._show&&(t?this._node.setStyle({opacity:a.default.getAlphafromCssString(this._strokeColor),fillOpacity:a.default.getAlphafromCssString(this._color)}):this._node.setStyle({opacity:0,fillOpacity:0}),this._show=t)}},{key:"boundingSphere",get:function(){var t=this._position.envelope;return new s.default(t.center,t.radius)}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(23)),o=n(4),a=(s(n(7)),s(n(14)));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._options=e}return r(t,[{key:"addToMap",value:function(t){this.removeFromMap(),this._map=t;var e=this._container=this.onAdd(t),n=this._options,r=n.position,s=n.offset,u=a.default.getLeafletPosition(r),c=t._map._controlCorners[u];switch(i.addClass(e,"leaflet-control"),-1!==u.indexOf("bottom")?c.insertBefore(e,c.firstChild):c.appendChild(e),r){case o.JSControlPosition.LEFT_TOP:i.addStyle(e,{"margin-top":s.y+"px","margin-left":s.x+"px"});break;case o.JSControlPosition.RIGHT_TOP:i.addStyle(e,{"margin-top":s.y+"px","margin-right":s.x+"px"});break;case o.JSControlPosition.LEFT_BOTTOM:i.addStyle(e,{"margin-bottom":s.y+"px","margin-left":s.x+"px"});break;case o.JSControlPosition.RIGHT_BOTTOM:i.addStyle(e,{"margin-bottom":s.y+"px","margin-right":s.x+"px"});break;default:i.addStyle(e,{"margin-top":s.y+"px","margin-left":s.x+"px"})}return t._map.on("unload",this.removeFromMap,this),this}},{key:"removeFromMap",value:function(){if(this._map)return i.remove(this._container),this.onRemove&&this.onRemove(this._map),this._map._map.off("unload",this.removeFromMap,this),this._map=null,this}},{key:"onRemove",value:function(t){}},{key:"getPosition",value:function(){return this._options.position}},{key:"setPosition",value:function(t){var e=this._map;return e&&e.removeControl(),this._options.position=t,e&&e.addControl(this),this}},{key:"onAdd",value:function(t){}},{key:"_refocusOnMap",value:function(t){var e=this._map._map;e&&t&&t.screenX>0&&t.screenY>0&&e.getContainer().focus()}},{key:"destroy",value:function(){this._map=void 0,this._container=void 0,this._options=void 0}}]),t}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return void 0!==t&&null!==t}},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,s=function(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(s[c]=n[c]);if(r){a=r(n);for(var l=0;l<a.length;l++)o.call(n,a[l])&&(s[a[l]]=n[a[l]])}}return s}},function(t,e,n){"use strict";var r=n(112);e.a=function(t){if(null==t)return r.a;var e,n,i=t.scale[0],o=t.scale[1],a=t.translate[0],s=t.translate[1];return function(t,r){r||(e=n=0);var u=2,c=t.length,l=new Array(c);for(l[0]=(e+=t[0])*i+a,l[1]=(n+=t[1])*o+s;u<c;)l[u]=t[u],++u;return l}}},function(t,e,n){"use strict";e.a=o;var r=n(225),i=n(72);function o(t,e){var n=Object(i.a)(t.transform),o=t.arcs;function a(t,e){e.length&&e.pop();for(var i=o[t<0?~t:t],a=0,s=i.length;a<s;++a)e.push(n(i[a],a));t<0&&Object(r.a)(e,s)}function s(t){return n(t)}function u(t){for(var e=[],n=0,r=t.length;n<r;++n)a(t[n],e);return e.length<2&&e.push(e[0]),e}function c(t){for(var e=u(t);e.length<4;)e.push(e[0]);return e}function l(t){return t.map(c)}return function t(e){var n,r=e.type;switch(r){case"GeometryCollection":return{type:r,geometries:e.geometries.map(t)};case"Point":n=s(e.coordinates);break;case"MultiPoint":n=e.coordinates.map(s);break;case"LineString":n=u(e.arcs);break;case"MultiLineString":n=e.arcs.map(u);break;case"Polygon":n=l(e.arcs);break;case"MultiPolygon":n=e.arcs.map(l);break;default:return null}return{type:r,coordinates:n}}(e)}},function(t,e,n){"use strict";e.a=function(t,e,n,r,i,o){3===arguments.length&&(r=o=Array,i=null);for(var a=new r(t=1<<Math.max(4,Math.ceil(Math.log(t)/Math.LN2))),s=new o(t),u=t-1,c=0;c<t;++c)a[c]=i;return{set:function(r,o){for(var c=e(r)&u,l=a[c],h=0;l!=i;){if(n(l,r))return s[c]=o;if(++h>=t)throw new Error("full hashmap");l=a[c=c+1&u]}return a[c]=r,s[c]=o,o},maybeSet:function(r,o){for(var c=e(r)&u,l=a[c],h=0;l!=i;){if(n(l,r))return s[c];if(++h>=t)throw new Error("full hashmap");l=a[c=c+1&u]}return a[c]=r,s[c]=o,o},get:function(r,o){for(var c=e(r)&u,l=a[c],h=0;l!=i;){if(n(l,r))return s[c];if(++h>=t)break;l=a[c=c+1&u]}return o},keys:function(){for(var t=[],e=0,n=a.length;e<n;++e){var r=a[e];r!=i&&t.push(r)}return t}}}},function(t,e,n){"use strict";e.a=function(t,e){void 0===e&&(e={});var n=Number(t[0]),i=Number(t[1]),o=Number(t[2]),a=Number(t[3]);if(6===t.length)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var s=[n,i],u=[n,a],c=[o,a],l=[o,i];return Object(r.polygon)([[s,l,c,u,s]],e.properties,{bbox:t,id:e.id})};var r=n(0)},function(t,e,n){"use strict";var r=n(27),i=n(0);e.a=function(t,e,n){void 0===n&&(n={});for(var o=n.steps||64,a=n.properties?n.properties:!Array.isArray(t)&&"Feature"===t.type&&t.properties?t.properties:{},s=[],u=0;u<o;u++)s.push(Object(r.a)(t,e,-360*u/o,n).geometry.coordinates);return s.push(s[0]),Object(i.polygon)([s],a)}},function(t,e,n){"use strict";var r=n(9),i=n(8),o=n(1);e.a=function(t,e){if(!t)throw new Error("targetPoint is required");if(!e)throw new Error("points is required");var n,a=1/0,s=0;return Object(o.featureEach)(e,function(e,n){var r=Object(i.a)(t,e);r<a&&(s=n,a=r)}),(n=Object(r.a)(e.features[s])).properties.featureIndex=s,n.properties.distanceToPoint=a,n}},function(t,e,n){var r=n(108),i=n(0),o=n(1),a=n(10).default,s=o.featureEach,u=(o.coordEach,i.polygon,i.featureCollection);function c(t){var e=new r(t);return e.insert=function(t){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:a(t),r.prototype.insert.call(this,t)},e.load=function(t){var e=[];return Array.isArray(t)?t.forEach(function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:a(t),e.push(t)}):s(t,function(t){if("Feature"!==t.type)throw new Error("invalid features");t.bbox=t.bbox?t.bbox:a(t),e.push(t)}),r.prototype.load.call(this,e)},e.remove=function(t,e){if("Feature"!==t.type)throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:a(t),r.prototype.remove.call(this,t,e)},e.clear=function(){return r.prototype.clear.call(this)},e.search=function(t){var e=r.prototype.search.call(this,this.toBBox(t));return u(e)},e.collides=function(t){return r.prototype.collides.call(this,this.toBBox(t))},e.all=function(){var t=r.prototype.all.call(this);return u(t)},e.toJSON=function(){return r.prototype.toJSON.call(this)},e.fromJSON=function(t){return r.prototype.fromJSON.call(this,t)},e.toBBox=function(t){var e;if(t.bbox)e=t.bbox;else if(Array.isArray(t)&&4===t.length)e=t;else if(Array.isArray(t)&&6===t.length)e=[t[0],t[1],t[3],t[4]];else if("Feature"===t.type)e=a(t);else{if("FeatureCollection"!==t.type)throw new Error("invalid geojson");e=a(t)}return{minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}},e}t.exports=c,t.exports.default=c},function(t,e,n){"use strict";e.a=function(t){return Object(r.geomReduce)(t,function(t,e){return t+function(t){var e,n=0;switch(t.type){case"Polygon":return o(t.coordinates);case"MultiPolygon":for(e=0;e<t.coordinates.length;e++)n+=o(t.coordinates[e]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(e)},0)};var r=n(1),i=6378137;function o(t){var e=0;if(t&&t.length>0){e+=Math.abs(a(t[0]));for(var n=1;n<t.length;n++)e-=Math.abs(a(t[n]))}return e}function a(t){var e,n,r,o,a,u,c=0,l=t.length;if(l>2){for(u=0;u<l;u++)u===l-2?(r=l-2,o=l-1,a=0):u===l-1?(r=l-1,o=0,a=1):(r=u,o=u+1,a=u+2),e=t[r],n=t[o],c+=(s(t[a][0])-s(e[0]))*Math.sin(s(n[1]));c=c*i*i/2}return c}function s(t){return t*Math.PI/180}},function(t,e,n){"use strict";e.b=o;var r=n(0),i=n(2);function o(t,e){return void 0===e&&(e={}),a(Object(i.getGeom)(t).coordinates,e.properties?e.properties:"Feature"===t.type?t.properties:{})}function a(t,e){return t.length>1?Object(r.multiLineString)(t,e):Object(r.lineString)(t[0],e)}e.a=function(t,e){void 0===e&&(e={});var n=Object(i.getGeom)(t);switch(e.properties||"Feature"!==t.type||(e.properties=t.properties),n.type){case"Polygon":return o(n,e);case"MultiPolygon":return function(t,e){void 0===e&&(e={});var n=Object(i.getGeom)(t).coordinates,o=e.properties?e.properties:"Feature"===t.type?t.properties:{},s=[];return n.forEach(function(t){s.push(a(t,o))}),Object(r.featureCollection)(s)}(n,e);default:throw new Error("invalid poly")}}},function(t,e,n){"use strict";var r=n(132);t.exports=function(){return r()&&!!Symbol.toStringTag}},function(t,e,n){"use strict";var r=n(271);t.exports=Function.prototype.bind||r},function(t,e,n){"use strict";var r=n(82),i=n(134),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(r,a,arguments);u&&c&&(u(e,"length").configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))}));return e};var h=function(){return s(r,o,arguments)};c?c(t.exports,"apply",{value:h}):t.exports.apply=h},function(t,e,n){"use strict";e.d=function(t,e,n){var r=e[0]-t[0],i=e[1]-t[1],o=n[0]-e[0],a=n[1]-e[1];return s=r*a-o*i,(s>0)-(s<0)||+s;var s},e.c=function(t,e){var n=t.geometry.coordinates[0].map(function(t){return t[0]}),r=t.geometry.coordinates[0].map(function(t){return t[1]}),i=e.geometry.coordinates[0].map(function(t){return t[0]}),o=e.geometry.coordinates[0].map(function(t){return t[1]});return Math.max.apply(null,n)===Math.max.apply(null,i)&&Math.max.apply(null,r)===Math.max.apply(null,o)&&Math.min.apply(null,n)===Math.min.apply(null,i)&&Math.min.apply(null,r)===Math.min.apply(null,o)},e.b=function(t,e){return e.geometry.coordinates[0].every(function(e){return Object(r.a)(Object(i.point)(e),t)})},e.a=function(t,e){return t[0]===e[0]&&t[1]===e[1]};var r=n(11),i=n(0)},function(t,e,n){"use strict";function r(){this._=null}function i(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function o(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function a(t){for(;t.L;)t=t.L;return t}e.a=function(t){t.U=t.C=t.L=t.R=t.P=t.N=null},r.prototype={constructor:r,insert:function(t,e){var n,r,s;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=a(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(s=r.R)&&s.C?(n.C=s.C=!1,r.C=!0,t=r):(t===n.R&&(i(this,n),n=(t=n).U),n.C=!1,r.C=!0,o(this,r)):(s=r.L)&&s.C?(n.C=s.C=!1,r.C=!0,t=r):(t===n.L&&(o(this,n),n=(t=n).U),n.C=!1,r.C=!0,i(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,s=t.U,u=t.L,c=t.R;if(n=u?c?a(c):u:c,s?s.L===t?s.L=n:s.R=n:this._=n,u&&c?(r=n.C,n.C=t.C,n.L=u,u.U=n,n!==c?(s=n.U,n.U=t.U,t=n.R,s.L=t,n.R=c,c.U=n):(n.U=s,s=n,t=n.R)):(r=t.C,t=n),t&&(t.U=s),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===s.L){if((e=s.R).C&&(e.C=!1,s.C=!0,i(this,s),e=s.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,o(this,e),e=s.R),e.C=s.C,s.C=e.R.C=!1,i(this,s),t=this._;break}}else if((e=s.L).C&&(e.C=!1,s.C=!0,o(this,s),e=s.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,i(this,e),e=s.L),e.C=s.C,s.C=e.L.C=!1,o(this,s),t=this._;break}e.C=!0,t=s,s=s.U}while(!t.C);t&&(t.C=!1)}}},e.b=r},function(t,e,n){"use strict";e.c=function(t,e,n,o){var a=[null,null],s=r.e.push(a)-1;a.left=t,a.right=e,n&&i(a,t,e,n);o&&i(a,e,t,o);return r.b[t.index].halfedges.push(s),r.b[e.index].halfedges.push(s),a},e.b=function(t,e,n){var r=[e,n];return r.left=t,r},e.d=i,e.a=function(t,e,n,i){var s,u=r.e.length;for(;u--;)a(s=r.e[u],t,e,n,i)&&o(s,t,e,n,i)&&(Math.abs(s[0][0]-s[1][0])>r.f||Math.abs(s[0][1]-s[1][1])>r.f)||delete r.e[u]};var r=n(46);function i(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function o(t,e,n,r,i){var o,a=t[0],s=t[1],u=a[0],c=a[1],l=0,h=1,f=s[0]-u,p=s[1]-c;if(o=e-u,f||!(o>0)){if(o/=f,f<0){if(o<l)return;o<h&&(h=o)}else if(f>0){if(o>h)return;o>l&&(l=o)}if(o=r-u,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>l&&(l=o)}else if(f>0){if(o<l)return;o<h&&(h=o)}if(o=n-c,p||!(o>0)){if(o/=p,p<0){if(o<l)return;o<h&&(h=o)}else if(p>0){if(o>h)return;o>l&&(l=o)}if(o=i-c,p||!(o<0)){if(o/=p,p<0){if(o>h)return;o>l&&(l=o)}else if(p>0){if(o<l)return;o<h&&(h=o)}return!(l>0||h<1)||(l>0&&(t[0]=[u+l*f,c+l*p]),h<1&&(t[1]=[u+h*f,c+h*p]),!0)}}}}}function a(t,e,n,r,i){var o=t[1];if(o)return!0;var a,s,u=t[0],c=t.left,l=t.right,h=c[0],f=c[1],p=l[0],d=l[1],g=(h+p)/2,y=(f+d)/2;if(d===f){if(g<e||g>=r)return;if(h>p){if(u){if(u[1]>=i)return}else u=[g,n];o=[g,i]}else{if(u){if(u[1]<n)return}else u=[g,i];o=[g,n]}}else if(s=y-(a=(h-p)/(d-f))*g,a<-1||a>1)if(h>p){if(u){if(u[1]>=i)return}else u=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(u){if(u[1]<n)return}else u=[(i-s)/a,i];o=[(n-s)/a,n]}else if(f<d){if(u){if(u[0]>=r)return}else u=[e,a*e+s];o=[r,a*r+s]}else{if(u){if(u[0]<e)return}else u=[r,a*r+s];o=[e,a*e+s]}return t[0]=u,t[1]=o,!0}},function(t,e,n){"use strict";var r=n(1),i=n(0);e.a=function(t,e){void 0===e&&(e={});var n=0,o=0,a=0;return Object(r.geomEach)(t,function(t,s,u){var c=e.weight?null===u||void 0===u?void 0:u[e.weight]:void 0;if(c=void 0===c||null===c?1:c,!Object(i.isNumber)(c))throw new Error("weight value must be a number for feature index "+s);(c=Number(c))>0&&Object(r.coordEach)(t,function(t){n+=t[0]*c,o+=t[1]*c,a+=c})}),Object(i.point)([n/a,o/a],e.properties,e)}},function(t,e,n){"use strict";e.a=l;var r=n(3),i=n(158),o=n(323),a=n(159),s=n(89),u=1e9,c=-u;function l(t,e,n,l){function h(r,i){return t<=r&&r<=n&&e<=i&&i<=l}function f(r,i,o,a){var s=0,u=0;if(null==r||(s=p(r,o))!==(u=p(i,o))||g(r,i)<0^o>0)do{a.point(0===s||3===s?t:n,s>1?l:e)}while((s=(s+o+4)%4)!==u);else a.point(i[0],i[1])}function p(i,o){return Object(r.a)(i[0]-t)<r.i?o>0?0:3:Object(r.a)(i[0]-n)<r.i?o>0?2:1:Object(r.a)(i[1]-e)<r.i?o>0?1:0:o>0?3:2}function d(t,e){return g(t.x,e.x)}function g(t,e){var n=p(t,1),r=p(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(r){var p,g,y,v,m,_,b,w,E,x,O,M=r,S=Object(i.a)(),P={point:C,lineStart:function(){P.point=T,g&&g.push(y=[]);x=!0,E=!1,b=w=NaN},lineEnd:function(){p&&(T(v,m),_&&E&&S.rejoin(),p.push(S.result()));P.point=C,E&&M.lineEnd()},polygonStart:function(){M=S,p=[],g=[],O=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,r=g.length;n<r;++n)for(var i,o,a=g[n],s=1,u=a.length,c=a[0],h=c[0],f=c[1];s<u;++s)i=h,o=f,c=a[s],h=c[0],f=c[1],o<=l?f>l&&(h-i)*(l-o)>(f-o)*(t-i)&&++e:f<=l&&(h-i)*(l-o)<(f-o)*(t-i)&&--e;return e}(),n=O&&e,i=(p=Object(s.a)(p)).length;(n||i)&&(r.polygonStart(),n&&(r.lineStart(),f(null,null,1,r),r.lineEnd()),i&&Object(a.a)(p,d,e,f,r),r.polygonEnd());M=r,p=g=y=null}};function C(t,e){h(t,e)&&M.point(t,e)}function T(r,i){var a=h(r,i);if(g&&y.push([r,i]),x)v=r,m=i,_=a,x=!1,a&&(M.lineStart(),M.point(r,i));else if(a&&E)M.point(r,i);else{var s=[b=Math.max(c,Math.min(u,b)),w=Math.max(c,Math.min(u,w))],f=[r=Math.max(c,Math.min(u,r)),i=Math.max(c,Math.min(u,i))];Object(o.a)(s,f,t,e,n,l)?(E||(M.lineStart(),M.point(s[0],s[1])),M.point(f[0],f[1]),a||M.lineEnd(),O=!1):a&&(M.lineStart(),M.point(r,i),O=!1)}b=r,w=i,E=a}return P}}},function(t,e,n){"use strict";n(161),n(37),n(162),n(324),n(325),n(164),n(166),n(326),n(329),n(330),n(170),n(331),n(332),n(333);var r=n(334);n.d(e,"a",function(){return r.a});n(171),n(163),n(335),n(90);var i=n(168);n.d(e,"b",function(){return i.a});n(336),n(337),n(338),n(169),n(172),n(165),n(339)},function(t,e,n){"use strict";var r=n(49);e.a=function(t,e,n){if(null==n&&(n=r.a),i=t.length){if((e=+e)<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,o=(i-1)*e,a=Math.floor(o),s=+n(t[a],a,t);return s+(+n(t[a+1],a+1,t)-s)*(o-a)}}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";var r=n(3),i=n(93),o=n(352);function a(t,e){var n=Object(r.t)(t),i=(n+Object(r.t)(e))/2;if(Object(r.a)(i)<r.i)return Object(o.a)(t);var a=1+n*(2*i-n),s=Object(r.u)(a)/i;function u(t,e){var n=Object(r.u)(a-2*i*Object(r.t)(e))/i;return[n*Object(r.t)(t*=i),s-n*Object(r.g)(t)]}return u.invert=function(t,e){var n=s-e;return[Object(r.e)(t,Object(r.a)(n))/i*Object(r.s)(n),Object(r.c)((a-(t*t+n*n)*i*i)/(2*i))]},u}e.a=function(){return Object(i.a)(a).scale(155.424).center([0,33.6442])}},function(t,e,n){"use strict";e.a=function(t){var e=0,n=r.o/3,o=Object(i.b)(t),a=o(e,n);return a.parallels=function(t){return arguments.length?o(e=t[0]*r.r,n=t[1]*r.r):[e*r.h,n*r.h]},a};var r=n(3),i=n(17)},function(t,e,n){"use strict";e.a=o,e.b=function(t,e,n){return o(t,[[0,0],e],n)};var r=n(29),i=n(176);function o(t,e,n){var o=e[1][0]-e[0][0],a=e[1][1]-e[0][1],s=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=s&&t.clipExtent(null),Object(r.a)(n,t.stream(i.a));var u=i.a.result(),c=Math.min(o/(u[1][0]-u[0][0]),a/(u[1][1]-u[0][1])),l=+e[0][0]+(o-c*(u[1][0]+u[0][0]))/2,h=+e[0][1]+(a-c*(u[1][1]+u[0][1]))/2;return null!=s&&t.clipExtent(s),t.scale(150*c).translate([l,h])}},function(t,e,n){"use strict";e.b=a,e.a=s;var r=n(3),i=n(62),o=n(17);function a(t,e){return[t,Object(r.n)(Object(r.v)((r.l+e)/2))]}a.invert=function(t,e){return[t,2*Object(r.d)(Object(r.k)(e))-r.l]};function s(t){var e,n,s,u=Object(o.a)(t),c=u.center,l=u.scale,h=u.translate,f=u.clipExtent,p=null;function d(){var o=r.o*l(),c=u(Object(i.a)(u.rotate()).invert([0,0]));return f(null==p?[[c[0]-o,c[1]-o],[c[0]+o,c[1]+o]]:t===a?[[Math.max(c[0]-o,p),e],[Math.min(c[0]+o,n),s]]:[[p,Math.max(c[1]-o,e)],[n,Math.min(c[1]+o,s)]])}return u.scale=function(t){return arguments.length?(l(t),d()):l()},u.translate=function(t){return arguments.length?(h(t),d()):h()},u.center=function(t){return arguments.length?(c(t),d()):c()},u.clipExtent=function(t){return arguments.length?(null==t?p=e=n=s=null:(p=+t[0][0],e=+t[0][1],n=+t[1][0],s=+t[1][1]),d()):null==p?null:[[p,e],[n,s]]},d()}},function(t,e,n){"use strict";e.a=function(t,e,n){void 0===n&&(n={});var a=Object(i.getGeom)(t),s=Object(i.getGeom)(e),u=o.a.intersection(a.coordinates,s.coordinates);return 0===u.length?null:1===u.length?Object(r.polygon)(u[0],n.properties):Object(r.multiPolygon)(u,n.properties)};var r=n(0),i=n(2),o=n(47)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SymbolMarker=e.ArrowSymbol=e.DashSymbol=void 0,n(385);var r=window.L;e.DashSymbol=r.Class.extend({options:{pixelSize:10,pathOptions:{}},initialize:function(t){r.Util.setOptions(this,t),this.options.pathOptions.clickable=!1},buildSymbol:function(t,e,n){var i=this.options,o=Math.PI/180;if(i.pixelSize<=1)return r.polyline([t.latLng,t.latLng],i.pathOptions);var a=n.project(t.latLng),s=-(t.heading-90)*o,u=r.point(a.x+i.pixelSize*Math.cos(s+Math.PI)/2,a.y+i.pixelSize*Math.sin(s)/2),c=a.add(a.subtract(u));return r.polyline([n.unproject(u),n.unproject(c)],i.pathOptions)}}),e.ArrowSymbol=r.Class.extend({options:{polygon:!0,pixelSize:10,headAngle:60,pathOptions:{stroke:!1,weight:2}},initialize:function(t){r.Util.setOptions(this,t),this.options.pathOptions.clickable=!1},buildSymbol:function(t,e,n,i,o){return this.options.polygon?r.polygon(this._buildArrowPath(t,n),this.options.pathOptions):r.polyline(this._buildArrowPath(t,n),this.options.pathOptions)},_buildArrowPath:function(t,e){var n=Math.PI/180,i=e.project(t.latLng),o=-(t.heading-90)*n,a=this.options.headAngle/2*n,s=o+a,u=o-a,c=r.point(i.x-this.options.pixelSize*Math.cos(s),i.y+this.options.pixelSize*Math.sin(s)),l=r.point(i.x-this.options.pixelSize*Math.cos(u),i.y+this.options.pixelSize*Math.sin(u));return[e.unproject(c),t.latLng,e.unproject(l)]}}),e.SymbolMarker=r.Class.extend({options:{markerOptions:{},rotate:!1},initialize:function(t){r.Util.setOptions(this,t),this.options.markerOptions.clickable=!1,this.options.markerOptions.draggable=!1},buildSymbol:function(t,e,n,i,o){return this.options.rotate&&(this.options.markerOptions.rotationAngle=t.heading+(this.options.angleCorrection||0)),r.marker(t.latLng,this.options.markerOptions)}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=c(n(12)),o=c(n(5)),a=c(n(15)),s=c(n(21)),u=n(7);function c(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));n._color=t.color||"#0000CD";var r=t.position;return n._position=new o.default(r.x,r.y,r.z||0),n._size=t.size||5,n._outlineColor=t.outlineColor||n._color,n._outlineWidth=t.outlineWidth||2,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"destroy",value:function(){(function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this._color=void 0,this._outlineColor=void 0,this._outlineWidth=void 0,this._size=void 0}},{key:"size",get:function(){return this._size},set:function(t){t!==this._size&&(this._size=t,this._node.setRadius(t/2))}},{key:"outlineColor",get:function(){return this._outlineColor},set:function(t){t!==this._outlineColor&&(this._outlineColor=t,this._node.setStyle({color:t,opacity:this._show?a.default.getAlphafromCssString(t):0}))}},{key:"color",get:function(){return this._color},set:function(t){t!==this._color&&(this._color=t,this._node.setStyle({fillColor:t,fillOpacity:this._show?a.default.getAlphafromCssString(t):0}))}},{key:"outlineWidth",get:function(){return this._outlineWidth},set:function(t){this._outlineWidth!==t&&(this._outlineWidth=t,this._node.setStyle({weight:t}))}},{key:"boundingSphere",get:function(){return new s.default(this._position,u.JSBOUNDSPHERE_DEFAULT_RADIUS)}},{key:"show",get:function(){return this._show},set:function(t){t!=this._show&&(t?this._node.setStyle({opacity:a.default.getAlphafromCssString(this._outlineColor),fillOpacity:a.default.getAlphafromCssString(this._color)}):this._node.setStyle({opacity:0,fillOpacity:0}),this._show=t)}}]),e}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=c(n(12)),o=c(n(5)),a=n(4),s=c(n(21)),u=n(7);function c(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=window.mergeOptions({marginOffset:{x:0,y:0},offset:a.JSControlPosition.CENTER_BOTTOM},t),r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n)),i=n.position;return r._position=new o.default(i.x,i.y,i.z||0),r._offset=n.offset,r._marginOffset=n.marginOffset,r._content=n.content,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"destroy",value:function(){(function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this._content=void 0,this._offset=void 0,this._marginOffset=void 0}},{key:"offset",get:function(){return this._offset},set:function(t){t!=this._offset&&(this._offset=t,this._updateIcon(this))}},{key:"marginOffset",get:function(){return this._marginOffset},set:function(t){t!==this._marginOffset&&(this._marginOffset=t,this._updateIcon(this))}},{key:"content",get:function(){return this._content},set:function(t){t!==this._content&&(this._content=t,this._updateIcon(this))}},{key:"boundingSphere",get:function(){return new s.default(this._position,u.JSBOUNDSPHERE_DEFAULT_RADIUS)}}]),e}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=c(n(12)),o=c(n(5)),a=n(4),s=c(n(21)),u=n(7);function c(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=t.position;return n._position=new o.default(r.x,r.y,r.z||0),n._text=t.text,n._font=t.font,n._fontColor=t.fontColor||"#000000",n._fontStrokeColor=t.fontStrokeColor||n._fontColor,n._fontStrokeWidth=t.fontStrokeWidth||0,n._backgroundColor=t.backgroundColor||"rgba(78,77,77,0.5)",n._backgroundRadius=1|t.backgroundRadius,n._backgroundStrokeColor=t.backgroundStrokeColor||n._backgroundColor,n._backgroundStrokeWidth=t.backgroundStrokeWidth||1,n._image=t.image,n._imageHeight=t.imageHeight,n._imageWidth=t.imageWidth,n._offset=t.offset||a.JSControlPosition.CENTER_BOTTOM,n._iconTextType=t.iconTextType||a.JSIconTextType.TOPTEXT_BOTTOMICON,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"destroy",value:function(){(function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this._text=void 0,this._font=void 0,this._fontColor=void 0,this._fontStrokeColor=void 0,this._fontStrokeWidth=void 0,this._backgroundColor=void 0,this._backgroundRadius=void 0,this._backgroundStrokeColor=void 0,this._backgroundStrokeWidth=void 0,this._image=void 0,this._imageHeight=void 0,this._imageWidth=void 0,this._offset=void 0,this._iconTextType=void 0}},{key:"text",get:function(){return this._text},set:function(t){t!==this._text&&(this._text=t,this._updateIcon(this))}},{key:"font",get:function(){return this._font},set:function(t){t!==this._font&&(this._font=t,this._updateIcon(this))}},{key:"fontColor",get:function(){return this._fontColor},set:function(t){t!=this._fontColor&&(this._fontColor=t,this._updateIcon(this))}},{key:"fontStrokeColor",get:function(){return this._fontStrokeColor},set:function(t){t!==this._fontStrokeColor&&(this._fontStrokeColor=t,this._updateIcon(this))}},{key:"fontStrokeWidth",get:function(){return this._fontStrokeWidth},set:function(t){t!==this._fontStrokeWidth&&(this._fontStrokeWidth=t,this._updateIcon(this))}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){t!==this._backgroundColor&&(this._backgroundColor=t,this._updateIcon(this))}},{key:"backgroundRadius",get:function(){return this._backgroundRadius},set:function(t){t!==this._backgroundRadius&&(this._backgroundRadius=t,this._updateIcon(this))}},{key:"backgroundStrokeColor",get:function(){return this._backgroundStrokeColor},set:function(t){t!==this._backgroundStrokeColor&&(this._backgroundStrokeColor=t,this._updateIcon(this))}},{key:"backgroundStrokeWidth",get:function(){return this._backgroundStrokeWidth},set:function(t){t!==this._backgroundStrokeWidth&&(this._backgroundStrokeWidth=t,this._updateIcon(this))}},{key:"image",get:function(){return this._image},set:function(t){t!==this._image&&(this._image=t,this._updateIcon(this))}},{key:"imageHeight",get:function(){return this._imageHeight},set:function(t){t!==this._imageHeight&&(this._imageHeight=t,this._updateIcon(this))}},{key:"imageWidth",get:function(){return this._imageWidth},set:function(t){t!==this._imageWidth&&(this._imageWidth=t,this._updateIcon(this))}},{key:"offset",get:function(){return this._offset},set:function(t){t!==this._offset&&(this._offset=t,this._updateIcon(this))}},{key:"iconTextType",get:function(){return this._iconTextType},set:function(t){t!==this._iconTextType&&(this._iconTextType=t,this._updateIcon(this))}},{key:"boundingSphere",get:function(){return new s.default(this._position,u.JSBOUNDSPHERE_DEFAULT_RADIUS)}}]),e}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=Object.freeze({UNISSUED:0,ISSUED:1,ACTIVE:2,RECEIVED:3,CANCELLED:4,FAILED:5})},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(430)),i=a(n(431)),o=a(n(432));function a(t){return t&&t.__esModule?t:{default:t}}i.default.attachToKo(r.default),o.default.register(r.default),e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSDrawFeature=void 0;var r,i=n(31),o=n(25);(r=o)&&r.__esModule;var a=window.L,s=e.JSDrawFeature=a.Handler.extend({initialize:function(t,e){this._map=t,this._container=t._container,this._overlayPane=t._panes.overlayPane,this._popupPane=t._panes.popupPane,e&&e.shapeOptions&&(e.shapeOptions=a.Util.extend({},this.options.shapeOptions,e.shapeOptions)),a.setOptions(this,e),s.include(a.Evented.prototype)},enable:function(){this._enabled||(a.Handler.prototype.enable.call(this),this.fire("enabled",{handler:this.type}),this._map.fire(i.JSDrawEvent.DRAWSTART,{layerType:this.type}))},disable:function(){this._enabled&&(a.Handler.prototype.disable.call(this),this._map.fire(i.JSDrawEvent.DRAWSTOP,{layerType:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var t=this._map;t&&(a.DomUtil.disableTextSelection(),t.getContainer().focus(),a.DomEvent.on(this._container,"keyup",this._cancelDrawing,this))},removeHooks:function(){this._map&&(a.DomUtil.enableTextSelection(),a.DomEvent.off(this._container,"keyup",this._cancelDrawing,this))},setOptions:function(t){a.setOptions(this,t)},_fireCreatedEvent:function(t){this._map.fire(i.JSDrawEvent.CREATED,{geometry:t,layerType:this.type})},_cancelDrawing:function(t){27===t.keyCode&&(this._map.fire("draw:canceled",{layerType:this.type}),this.disable())},finishDrawing:function(){},toGeometry:function(){}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSEditSimpleShape=void 0;var r=n(30),i=window.L,o=e.JSEditSimpleShape=i.Handler.extend({options:{moveIcon:new i.DivIcon({iconSize:new i.Point(8,8),className:"jsmap2d-div-icon jsmap2d-editing-icon jsmap2d-edit-move"}),resizeIcon:new i.DivIcon({iconSize:new i.Point(8,8),className:"jsmap2d-div-icon jsmap2d-editing-icon jsmap2d-edit-resize"}),touchMoveIcon:new i.DivIcon({iconSize:new i.Point(20,20),className:"jsmap2d-div-icon jsmap2d-editing-icon jsmap2d-edit-move jsmap2d-touch-icon"}),touchResizeIcon:new i.DivIcon({iconSize:new i.Point(20,20),className:"jsmap2d-div-icon jsmap2d-editing-icon jsmap2d-edit-resize jsmap2d-touch-icon"})},initialize:function(t,e){i.Browser.touch&&(this.options.moveIcon=this.options.touchMoveIcon,this.options.resizeIcon=this.options.touchResizeIcon),this._shape=t,i.Util.setOptions(this,e)},addHooks:function(){var t=this._shape;this._shape._map&&(this._map=this._shape._map,t.setStyle(t.options.editing),t._map&&(this._map=t._map,this._markerGroup||this._initMarkers(),this._map.addLayer(this._markerGroup)))},removeHooks:function(){var t=this._shape;if(t.setStyle(t.options.original),t._map){this._unbindMarker(this._moveMarker);for(var e=0,n=this._resizeMarkers.length;e<n;e++)this._unbindMarker(this._resizeMarkers[e]);this._resizeMarkers=null,this._map.removeLayer(this._markerGroup),delete this._markerGroup}this._map=null},updateMarkers:function(){this._markerGroup.clearLayers(),this._initMarkers()},_initMarkers:function(){this._markerGroup||(this._markerGroup=new i.LayerGroup),this._createMoveMarker(),this._createResizeMarker()},_createMoveMarker:function(){},_createResizeMarker:function(){},_createMarker:function(t,e){var n=new r.JSTouchMarker(t,{draggable:!0,icon:e,zIndexOffset:10});return this._bindMarker(n),this._markerGroup.addLayer(n),n},_bindMarker:function(t){t.on(r.JSMapEvents.DRAGSTART,this._onMarkerDragStart,this).on(r.JSMapEvents.DRAG,this._onMarkerDrag,this).on(r.JSMapEvents.DRAGEND,this._onMarkerDragEnd,this).on(r.JSMapEvents.TOUCHSTART,this._onTouchStart,this).on(r.JSMapEvents.TOUCHMOVE,this._onTouchMove,this).on(r.JSMapEvents.MSPOINTERMOVE,this._onTouchMove,this).on(r.JSMapEvents.TOUCHEND,this._onTouchEnd,this).on(r.JSMapEvents.MSPOINTERUP,this._onTouchEnd,this)},_unbindMarker:function(t){t.off(r.JSMapEvents.DRAGSTART,this._onMarkerDragStart,this).off(r.JSMapEvents.DRAG,this._onMarkerDrag,this).off(r.JSMapEvents.DRAGEND,this._onMarkerDragEnd,this).off(r.JSMapEvents.TOUCHSTART,this._onTouchStart,this).off(r.JSMapEvents.TOUCHMOVE,this._onTouchMove,this).off(r.JSMapEvents.MSPOINTERMOVE,this._onTouchMove,this).off(r.JSMapEvents.TOUCHEND,this._onTouchEnd,this).off(r.JSMapEvents.MSPOINTERUP,this._onTouchEnd,this)},_onMarkerDragStart:function(t){t.target.setOpacity(0),this._shape.fire("editstart")},_fireEdit:function(){this._shape.edited=!0,this._shape.fire("edit")},_onMarkerDrag:function(t){var e=t.target,n=e.getLatLng();e===this._moveMarker?this._move(n):this._resize(n),this._shape.redraw(),this._shape.fire("editdrag")},_onMarkerDragEnd:function(t){t.target.setOpacity(1),this._fireEdit()},_onTouchStart:function(t){if(o.prototype._onMarkerDragStart.call(this,t),"function"==typeof this._getCorners){var e=this._getCorners(),n=t.target,r=n._cornerIndex;n.setOpacity(0),this._oppositeCorner=e[(r+2)%4],this._toggleCornerMarkers(0,r)}this._shape.fire("editstart")},_onTouchMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent.touches[0]),n=this._map.layerPointToLatLng(e);return t.target===this._moveMarker?this._move(n):this._resize(n),this._shape.redraw(),!1},_onTouchEnd:function(t){t.target.setOpacity(1),this.updateMarkers(),this._fireEdit()},_move:function(){},_resize:function(){},getShape:function(){return this._shape}})},function(t,e,n){"use strict";e.a=function(t,e){void 0===e&&(e={});e.concavity=e.concavity||1/0;var n=[];if(Object(i.coordEach)(t,function(t){n.push([t[0],t[1]])}),!n.length)return null;var o=a()(n,e.concavity);if(o.length>3)return Object(r.polygon)([o]);return null};var r=n(0),i=n(1),o=n(213),a=n.n(o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(214);function i(t,e,n){if(!n)return e.indexOf(t);for(let r=0;r<e.length;r++)if(n(t,e[r]))return r;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,n,r,i){i||(i=g(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let o=e;o<n;o++){const e=t.children[o];s(i,t.leaf?r(e):e)}return i}function s(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function u(t,e){return t.minX-e.minX}function c(t,e){return t.minY-e.minY}function l(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function f(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),o=Math.min(t.maxY,e.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function d(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(t,e,n,i,o){const a=[e,n];for(;a.length;){if((n=a.pop())-(e=a.pop())<=i)continue;const s=e+Math.ceil((n-e)/i/2)*i;Object(r.a)(t,s,e,n,o),a.push(e,s,s,n)}}e.default=class{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data;const n=[];if(!d(t,e))return n;const r=this.toBBox,i=[];for(;e;){for(let o=0;o<e.children.length;o++){const a=e.children[o],s=e.leaf?r(a):a;d(t,s)&&(e.leaf?n.push(a):p(t,s)?this._all(a,n):i.push(a))}e=i.pop()}return n}collides(t){let e=this.data;if(!d(t,e))return!1;const n=[];for(;e;){for(let r=0;r<e.children.length;r++){const i=e.children[r],o=e.leaf?this.toBBox(i):i;if(d(t,o)){if(e.leaf||p(t,o))return!0;n.push(i)}}e=n.pop()}return!1}load(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(let e=0;e<t.length;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===e.height)this._splitRoot(this.data,e);else{if(this.data.height<e.height){const t=this.data;this.data=e,e=t}this._insert(e,this.data.height-e.height-1,!0)}else this.data=e;return this}insert(t){return t&&this._insert(t,this.data.height-1),this}clear(){return this.data=g([]),this}remove(t,e){if(!t)return this;let n=this.data;const r=this.toBBox(t),o=[],a=[];let s,u,c;for(;n||o.length;){if(n||(n=o.pop(),u=o[o.length-1],s=a.pop(),c=!0),n.leaf){const r=i(t,n.children,e);if(-1!==r)return n.children.splice(r,1),o.push(n),this._condense(o),this}c||n.leaf||!p(n,r)?u?(s++,n=u.children[s],c=!1):n=null:(o.push(n),a.push(s),s=0,u=n,n=n.children[0])}return this}toBBox(t){return t}compareMinX(t,e){return t.minX-e.minX}compareMinY(t,e){return t.minY-e.minY}toJSON(){return this.data}fromJSON(t){return this.data=t,this}_all(t,e){const n=[];for(;t;)t.leaf?e.push(...t.children):n.push(...t.children),t=n.pop();return e}_build(t,e,n,r){const i=n-e+1;let a,s=this._maxEntries;if(i<=s)return o(a=g(t.slice(e,n+1)),this.toBBox),a;r||(r=Math.ceil(Math.log(i)/Math.log(s)),s=Math.ceil(i/Math.pow(s,r-1))),(a=g([])).leaf=!1,a.height=r;const u=Math.ceil(i/s),c=u*Math.ceil(Math.sqrt(s));y(t,e,n,c,this.compareMinX);for(let i=e;i<=n;i+=c){const e=Math.min(i+c-1,n);y(t,i,e,u,this.compareMinY);for(let n=i;n<=e;n+=u){const i=Math.min(n+u-1,e);a.children.push(this._build(t,n,i,r-1))}}return o(a,this.toBBox),a}_chooseSubtree(t,e,n,r){for(;r.push(e),!e.leaf&&r.length-1!==n;){let n,r=1/0,a=1/0;for(let s=0;s<e.children.length;s++){const u=e.children[s],c=l(u),h=(i=t,o=u,(Math.max(o.maxX,i.maxX)-Math.min(o.minX,i.minX))*(Math.max(o.maxY,i.maxY)-Math.min(o.minY,i.minY))-c);h<a?(a=h,r=c<r?c:r,n=u):h===a&&c<r&&(r=c,n=u)}e=n||e.children[0]}var i,o;return e}_insert(t,e,n){const r=n?t:this.toBBox(t),i=[],o=this._chooseSubtree(r,this.data,e,i);for(o.children.push(t),s(o,r);e>=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(r,i,e)}_split(t,e){const n=t[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);const a=this._chooseSplitIndex(n,i,r),s=g(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)}_splitRoot(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)}_chooseSplitIndex(t,e,n){let r,i=1/0,o=1/0;for(let s=e;s<=n-e;s++){const e=a(t,0,s,this.toBBox),u=a(t,s,n,this.toBBox),c=f(e,u),h=l(e)+l(u);c<i?(i=c,r=s,o=h<o?h:o):c===i&&h<o&&(o=h,r=s)}return r||n-e}_chooseSplitAxis(t,e,n){const r=t.leaf?this.compareMinX:u,i=t.leaf?this.compareMinY:c;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const i=this.toBBox,o=a(t,0,e,i),u=a(t,n-e,n,i);let c=h(o)+h(u);for(let r=e;r<n-e;r++){const e=t.children[r];s(o,t.leaf?i(e):e),c+=h(o)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];s(u,t.leaf?i(e):e),c+=h(u)}return c}_adjustParentBBoxes(t,e,n){for(let r=n;r>=0;r--)s(e[r],t)}_condense(t){for(let e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children).splice(e.indexOf(t[n]),1):this.clear():o(t[n],this.toBBox)}}},function(t,e,n){"use strict";var r=n(11),i=n(0),o=n(1);e.a=function(t,e){var n=[];return Object(o.featureEach)(t,function(t){var a=!1;if("Point"===t.geometry.type)Object(o.geomEach)(e,function(e){Object(r.a)(t,e)&&(a=!0)}),a&&n.push(t);else{if("MultiPoint"!==t.geometry.type)throw new Error("Input geometry must be a Point or MultiPoint");var s=[];Object(o.geomEach)(e,function(e){Object(o.coordEach)(t,function(t){Object(r.a)(t,e)&&(a=!0,s.push(t))})}),a&&n.push(Object(i.multiPoint)(s))}}),Object(i.featureCollection)(n)}},function(t,e,n){"use strict";e.a=function(t,e){var n=!1;return Object(r.featureCollection)(function(t){if(t.length<3)return[];t.sort(o);var e,n,r,s,u,c,l=t.length-1,h=t[l].x,f=t[0].x,p=t[l].y,d=p;for(;l--;)t[l].y<p&&(p=t[l].y),t[l].y>d&&(d=t[l].y);var g,y=f-h,v=d-p,m=y>v?y:v,_=.5*(f+h),b=.5*(d+p),w=[new i({__sentinel:!0,x:_-20*m,y:b-m},{__sentinel:!0,x:_,y:b+20*m},{__sentinel:!0,x:_+20*m,y:b-m})],E=[],x=[];l=t.length;for(;l--;){for(x.length=0,g=w.length;g--;)(y=t[l].x-w[g].x)>0&&y*y>w[g].r?(E.push(w[g]),w.splice(g,1)):(v=t[l].y-w[g].y,y*y+v*v>w[g].r||(x.push(w[g].a,w[g].b,w[g].b,w[g].c,w[g].c,w[g].a),w.splice(g,1)));for(a(x),g=x.length;g;)n=x[--g],e=x[--g],r=t[l],s=n.x-e.x,u=n.y-e.y,c=2*(s*(r.y-n.y)-u*(r.x-n.x)),Math.abs(c)>1e-12&&w.push(new i(e,n,r))}Array.prototype.push.apply(E,w),l=E.length;for(;l--;)(E[l].a.__sentinel||E[l].b.__sentinel||E[l].c.__sentinel)&&E.splice(l,1);return E}(t.features.map(function(t){var r={x:t.geometry.coordinates[0],y:t.geometry.coordinates[1]};return e?r.z=t.properties[e]:3===t.geometry.coordinates.length&&(n=!0,r.z=t.geometry.coordinates[2]),r})).map(function(t){var e=[t.a.x,t.a.y],i=[t.b.x,t.b.y],o=[t.c.x,t.c.y],a={};return n?(e.push(t.a.z),i.push(t.b.z),o.push(t.c.z)):a={a:t.a.z,b:t.b.z,c:t.c.z},Object(r.polygon)([[e,i,o,e]],a)}))};var r=n(0);var i=function(){return function(t,e,n){this.a=t,this.b=e,this.c=n;var r,i,o=e.x-t.x,a=e.y-t.y,s=n.x-t.x,u=n.y-t.y,c=o*(t.x+e.x)+a*(t.y+e.y),l=s*(t.x+n.x)+u*(t.y+n.y),h=2*(o*(n.y-e.y)-a*(n.x-e.x));this.x=(u*c-a*l)/h,this.y=(o*l-s*c)/h,r=this.x-t.x,i=this.y-t.y,this.r=r*r+i*i}}();function o(t,e){return e.x-t.x}function a(t){var e,n,r,i,o,a=t.length;t:for(;a;)for(n=t[--a],e=t[--a],r=a;r;)if(o=t[--r],e===(i=t[--r])&&n===o||e===o&&n===i){t.splice(a,2),t.splice(r,2),a-=2;continue t}}},function(t,e,n){"use strict";var r=n(72);e.a=function(t){var e,n=Object(r.a)(t.transform),i=1/0,o=i,a=-i,s=-i;function u(t){(t=n(t))[0]<i&&(i=t[0]),t[0]>a&&(a=t[0]),t[1]<o&&(o=t[1]),t[1]>s&&(s=t[1])}function c(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(c);break;case"Point":u(t.coordinates);break;case"MultiPoint":t.coordinates.forEach(u)}}for(e in t.arcs.forEach(function(t){for(var e,r=-1,u=t.length;++r<u;)(e=n(t[r],r))[0]<i&&(i=e[0]),e[0]>a&&(a=e[0]),e[1]<o&&(o=e[1]),e[1]>s&&(s=e[1])}),t.objects)c(t.objects[e]);return[i,o,a,s]}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";e.a=function(t,e){var n={},r={},i={},o=[],a=-1;function s(t,e){for(var r in t){var i=t[r];delete e[i.start],delete i.start,delete i.end,i.forEach(function(t){n[t<0?~t:t]=1}),o.push(i)}}return e.forEach(function(n,r){var i,o=t.arcs[n<0?~n:n];o.length<3&&!o[1][0]&&!o[1][1]&&(i=e[++a],e[a]=n,e[r]=i)}),e.forEach(function(e){var n,o,a=function(e){var n,r=t.arcs[e<0?~e:e],i=r[0];t.transform?(n=[0,0],r.forEach(function(t){n[0]+=t[0],n[1]+=t[1]})):n=r[r.length-1];return e<0?[n,i]:[i,n]}(e),s=a[0],u=a[1];if(n=i[s])if(delete i[n.end],n.push(e),n.end=u,o=r[u]){delete r[o.start];var c=o===n?n:n.concat(o);r[c.start=n.start]=i[c.end=o.end]=c}else r[n.start]=i[n.end]=n;else if(n=r[u])if(delete r[n.start],n.unshift(e),n.start=s,o=i[s]){delete i[o.end];var l=o===n?n:o.concat(n);r[l.start=o.start]=i[l.end=n.end]=l}else r[n.start]=i[n.end]=n;else r[(n=[e]).start=s]=i[n.end=u]=n}),s(i,r),s(r,i),e.forEach(function(t){n[t<0?~t:t]||o.push([t])}),o}},function(t,e,n){"use strict";var r=n(112);e.a=function(t){if(null==t)return r.a;var e,n,i=t.scale[0],o=t.scale[1],a=t.translate[0],s=t.translate[1];return function(t,r){r||(e=n=0);var u=2,c=t.length,l=new Array(c),h=Math.round((t[0]-a)/i),f=Math.round((t[1]-s)/o);for(l[0]=h-e,e=h,l[1]=f-n,n=f;u<c;)l[u]=t[u],++u;return l}}},function(t,e,n){"use strict";e.a=function(t,e){return t[0]===e[0]&&t[1]===e[1]}},function(t,e,n){"use strict";var r=new ArrayBuffer(16),i=new Float64Array(r),o=new Uint32Array(r);e.a=function(t){i[0]=t[0],i[1]=t[1];var e=o[0]^o[1];return 2147483647&(e=e<<5^e>>7^o[2]^o[3])}},function(t,e,n){"use strict";t.exports=i,t.exports.default=i;var r=n(243);function i(t,e){if(!(this instanceof i))return new i(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function o(t,e,n){if(!n)return e.indexOf(t);for(var r=0;r<e.length;r++)if(n(t,e[r]))return r;return-1}function a(t,e){s(t,0,t.children.length,e,t)}function s(t,e,n,r,i){i||(i=g(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o,a=e;a<n;a++)o=t.children[a],u(i,t.leaf?r(o):o);return i}function u(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function c(t,e){return t.minX-e.minX}function l(t,e){return t.minY-e.minY}function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function f(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function d(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(t,e,n,i,o){for(var a,s=[e,n];s.length;)(n=s.pop())-(e=s.pop())<=i||(a=e+Math.ceil((n-e)/i/2)*i,r(t,a,e,n,o),s.push(e,a,a,n))}i.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[],r=this.toBBox;if(!d(t,e))return n;for(var i,o,a,s,u=[];e;){for(i=0,o=e.children.length;i<o;i++)a=e.children[i],d(t,s=e.leaf?r(a):a)&&(e.leaf?n.push(a):p(t,s)?this._all(a,n):u.push(a));e=u.pop()}return n},collides:function(t){var e=this.data,n=this.toBBox;if(!d(t,e))return!1;for(var r,i,o,a,s=[];e;){for(r=0,i=e.children.length;r<i;r++)if(o=e.children[r],d(t,a=e.leaf?n(o):o)){if(e.leaf||p(t,a))return!0;s.push(o)}e=s.pop()}return!1},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}var r=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var i=this.data;this.data=r,r=i}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},insert:function(t){return t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data=g([]),this},remove:function(t,e){if(!t)return this;for(var n,r,i,a,s=this.data,u=this.toBBox(t),c=[],l=[];s||c.length;){if(s||(s=c.pop(),r=c[c.length-1],n=l.pop(),a=!0),s.leaf&&-1!==(i=o(t,s.children,e)))return s.children.splice(i,1),c.push(s),this._condense(c),this;a||s.leaf||!p(s,u)?r?(n++,s=r.children[n],a=!1):s=null:(c.push(s),l.push(n),n=0,r=s,s=s.children[0])}return this},toBBox:function(t){return t},compareMinX:c,compareMinY:l,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},_build:function(t,e,n,r){var i,o=n-e+1,s=this._maxEntries;if(o<=s)return a(i=g(t.slice(e,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/Math.pow(s,r-1))),(i=g([])).leaf=!1,i.height=r;var u,c,l,h,f=Math.ceil(o/s),p=f*Math.ceil(Math.sqrt(s));for(y(t,e,n,p,this.compareMinX),u=e;u<=n;u+=p)for(y(t,u,l=Math.min(u+p-1,n),f,this.compareMinY),c=u;c<=l;c+=f)h=Math.min(c+f-1,l),i.children.push(this._build(t,c,h,r-1));return a(i,this.toBBox),i},_chooseSubtree:function(t,e,n,r){for(var i,o,a,s,u,c,l,f,p,d;r.push(e),!e.leaf&&r.length-1!==n;){for(l=f=1/0,i=0,o=e.children.length;i<o;i++)u=h(a=e.children[i]),p=t,d=a,(c=(Math.max(d.maxX,p.maxX)-Math.min(d.minX,p.minX))*(Math.max(d.maxY,p.maxY)-Math.min(d.minY,p.minY))-u)<f?(f=c,l=u<l?u:l,s=a):c===f&&u<l&&(l=u,s=a);e=s||e.children[0]}return e},_insert:function(t,e,n){var r=this.toBBox,i=n?t:r(t),o=[],a=this._chooseSubtree(i,this.data,e,o);for(a.children.push(t),u(a,i);e>=0&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(i,o,e)},_split:function(t,e){var n=t[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),s=g(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,a(n,this.toBBox),a(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,n){var r,i,o,a,u,c,l,f,p,d,g,y,v,m;for(c=l=1/0,r=e;r<=n-e;r++)i=s(t,0,r,this.toBBox),o=s(t,r,n,this.toBBox),p=i,d=o,void 0,void 0,void 0,void 0,g=Math.max(p.minX,d.minX),y=Math.max(p.minY,d.minY),v=Math.min(p.maxX,d.maxX),m=Math.min(p.maxY,d.maxY),a=Math.max(0,v-g)*Math.max(0,m-y),u=h(i)+h(o),a<c?(c=a,f=r,l=u<l?u:l):a===c&&u<l&&(l=u,f=r);return f},_chooseSplitAxis:function(t,e,n){var r=t.leaf?this.compareMinX:c,i=t.leaf?this.compareMinY:l;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)},_allDistMargin:function(t,e,n,r){t.children.sort(r);var i,o,a=this.toBBox,c=s(t,0,e,a),l=s(t,n-e,n,a),h=f(c)+f(l);for(i=e;i<n-e;i++)o=t.children[i],u(c,t.leaf?a(o):o),h+=f(c);for(i=n-e-1;i>=e;i--)o=t.children[i],u(l,t.leaf?a(o):o),h+=f(l);return h},_adjustParentBBoxes:function(t,e,n){for(var r=n;r>=0;r--)u(e[r],t)},_condense:function(t){for(var e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children).splice(e.indexOf(t[n]),1):this.clear():a(t[n],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},function(t,e,n){"use strict";var r=n(10),i=n(75);e.a=function(t){return Object(i.a)(Object(r.default)(t))}},function(t,e,n){"use strict";var r=n(8);e.a=function(t){var e=t[0],n=t[1],i=t[2],o=t[3];if(Object(r.a)(t.slice(0,2),[i,n])>=Object(r.a)(t.slice(0,2),[e,o])){var a=(n+o)/2;return[e,a-(i-e)/2,i,a+(i-e)/2]}var s=(e+i)/2;return[s-(o-n)/2,n,s+(o-n)/2,o]}},function(t,e,n){"use strict";var r=n(8),i=n(0),o=n(2),a=n(1),s=n(60);function u(t,e){return t[0]*e[0]+t[1]*e[1]}function c(t,e,n){return"planar"===n.method?Object(s.a)(t,e,n):Object(r.a)(t,e,n)}e.a=function(t,e,n){if(void 0===n&&(n={}),n.method||(n.method="geodesic"),n.units||(n.units="kilometers"),!t)throw new Error("pt is required");if(Array.isArray(t)?t=Object(i.point)(t):"Point"===t.type?t=Object(i.feature)(t):Object(o.featureOf)(t,"Point","point"),!e)throw new Error("line is required");Array.isArray(e)?e=Object(i.lineString)(e):"LineString"===e.type?e=Object(i.feature)(e):Object(o.featureOf)(e,"LineString","line");var r=1/0,s=t.geometry.coordinates;return Object(a.segmentEach)(e,function(t){var e=t.geometry.coordinates[0],i=t.geometry.coordinates[1],o=function(t,e,n,r){var i=[n[0]-e[0],n[1]-e[1]],o=u([t[0]-e[0],t[1]-e[1]],i);if(o<=0)return c(t,e,{method:r.method,units:"degrees"});var a=u(i,i);if(a<=o)return c(t,n,{method:r.method,units:"degrees"});var s=o/a,l=[e[0]+s*i[0],e[1]+s*i[1]];return c(t,l,{method:r.method,units:"degrees"})}(s,e,i,n);o<r&&(r=o)}),Object(i.convertLength)(r,"degrees",n.units)}},function(t,e,n){"use strict";e.a=function(t,e){void 0===e&&(e={});return Object(i.segmentReduce)(t,function(t,n){var i=n.geometry.coordinates;return t+Object(r.a)(i[0],i[1],e)},0)};var r=n(8),i=n(1)},function(t,e,n){"use strict";var r=n(34),i=n(8),o=n(27),a=n(0);e.a=function(t,e,n,s){if(s=s||{},!Object(a.isObject)(s))throw new Error("options is invalid");var u,c=[];if("Feature"===t.type)u=t.geometry.coordinates;else{if("LineString"!==t.type)throw new Error("input must be a LineString Feature or Geometry");u=t.coordinates}for(var l,h,f,p=u.length,d=0,g=0;g<u.length&&!(e>=d&&g===u.length-1);g++){if(d>e&&0===c.length){if(!(l=e-d))return c.push(u[g]),Object(a.lineString)(c);h=Object(r.a)(u[g],u[g-1])-180,f=Object(o.a)(u[g],l,h,s),c.push(f.geometry.coordinates)}if(d>=n)return(l=n-d)?(h=Object(r.a)(u[g],u[g-1])-180,f=Object(o.a)(u[g],l,h,s),c.push(f.geometry.coordinates),Object(a.lineString)(c)):(c.push(u[g]),Object(a.lineString)(c));if(d>=e&&c.push(u[g]),g===u.length-1)return Object(a.lineString)(c);d+=Object(i.a)(u[g],u[g+1],s)}if(d<e&&u.length===p)throw new Error("Start position is beyond line");var y=u[u.length-1];return Object(a.lineString)([y,y])}},function(t,e,n){"use strict";var r=n(124),i=n(8),o=n(0);e.a=function(t,e,n){void 0===n&&(n={}),n.mask&&!n.units&&(n.units="kilometers");for(var a=[],s=t[0],u=t[1],c=t[2],l=t[3],h=e/Object(i.a)([s,u],[c,u],n)*(c-s),f=e/Object(i.a)([s,u],[s,l],n)*(l-u),p=c-s,d=l-u,g=Math.floor(p/h),y=(d-Math.floor(d/f)*f)/2,v=s+(p-g*h)/2;v<=c;){for(var m=u+y;m<=l;){var _=Object(o.point)([v,m],n.properties);n.mask?Object(r.a)(_,n.mask)&&a.push(_):a.push(_),m+=f}v+=h}return Object(o.featureCollection)(a)}},function(t,e,n){"use strict";var r=n(10),i=n(61),o=n(11),a=n(2);function s(t,e){return!(t[0]>e[0])&&(!(t[2]<e[2])&&(!(t[1]>e[1])&&!(t[3]<e[3])))}function u(t,e){return t[0]===e[0]&&t[1]===e[1]}e.a=function(t,e){var n=Object(a.getGeom)(t),c=Object(a.getGeom)(e),l=n.type,h=c.type;switch(l){case"Point":switch(h){case"MultiPoint":return function(t,e){var n,r=!1;for(n=0;n<e.coordinates.length;n++)if(u(e.coordinates[n],t.coordinates)){r=!0;break}return r}(n,c);case"LineString":return Object(i.a)(n,c,{ignoreEndVertices:!0});case"Polygon":case"MultiPolygon":return Object(o.a)(n,c,{ignoreBoundary:!0});default:throw new Error("feature2 "+h+" geometry not supported")}case"MultiPoint":switch(h){case"MultiPoint":return function(t,e){for(var n=0;n<t.coordinates.length;n++){for(var r=!1,i=0;i<e.coordinates.length;i++)u(t.coordinates[n],e.coordinates[i])&&(r=!0);if(!r)return!1}return!0}(n,c);case"LineString":return function(t,e){for(var n=!1,r=0;r<t.coordinates.length;r++){if(!Object(i.a)(t.coordinates[r],e))return!1;n||(n=Object(i.a)(t.coordinates[r],e,{ignoreEndVertices:!0}))}return n}(n,c);case"Polygon":case"MultiPolygon":return function(t,e){for(var n=!0,r=!1,i=0;i<t.coordinates.length;i++){if(!(r=Object(o.a)(t.coordinates[1],e))){n=!1;break}r=Object(o.a)(t.coordinates[1],e,{ignoreBoundary:!0})}return n&&r}(n,c);default:throw new Error("feature2 "+h+" geometry not supported")}case"LineString":switch(h){case"LineString":return function(t,e){for(var n=0;n<t.coordinates.length;n++)if(!Object(i.a)(t.coordinates[n],e))return!1;return!0}(n,c);case"Polygon":case"MultiPolygon":return function(t,e){var n,i,a=Object(r.default)(e),u=Object(r.default)(t);if(!s(a,u))return!1;for(var c=!1,l=0;l<t.coordinates.length-1;l++){if(!Object(o.a)(t.coordinates[l],e))return!1;if(c||(c=Object(o.a)(t.coordinates[l],e,{ignoreBoundary:!0})),!c){var h=(n=t.coordinates[l],i=t.coordinates[l+1],[(n[0]+i[0])/2,(n[1]+i[1])/2]);c=Object(o.a)(h,e,{ignoreBoundary:!0})}}return c}(n,c);default:throw new Error("feature2 "+h+" geometry not supported")}case"Polygon":switch(h){case"Polygon":case"MultiPolygon":return function(t,e){var n=Object(r.default)(t);if(!s(Object(r.default)(e),n))return!1;for(var i=0;i<t.coordinates[0].length;i++)if(!Object(o.a)(t.coordinates[0][i],e))return!1;return!0}(n,c);default:throw new Error("feature2 "+h+" geometry not supported")}default:throw new Error("feature1 "+l+" geometry not supported")}}},function(t,e,n){"use strict";var r=n(1);e.a=function(t,e){void 0===e&&(e={});var n=e.precision,i=e.coordinates,o=e.mutate;if(n=void 0===n||null===n||isNaN(n)?6:n,i=void 0===i||null===i||isNaN(i)?3:i,!t)throw new Error("<geojson> is required");if("number"!=typeof n)throw new Error("<precision> must be a number");if("number"!=typeof i)throw new Error("<coordinates> must be a number");!1!==o&&void 0!==o||(t=JSON.parse(JSON.stringify(t)));var a=Math.pow(10,n);return Object(r.coordEach)(t,function(t){!function(t,e,n){t.length>n&&t.splice(n,t.length);for(var r=0;r<t.length;r++)t[r]=Math.round(t[r]*e)/e}(t,a,i)}),t}},function(t,e,n){"use strict";var r=n(1),i=n(0);e.a=function(t){if(!t)throw new Error("geojson is required");var e=[];return Object(r.flattenEach)(t,function(t){e.push(t)}),Object(i.featureCollection)(e)}},function(t,e,n){"use strict";e.a=function(t,e,n,s,u){void 0===u&&(u={});var c=u.steps||64,l=a(n),h=a(s),f=Array.isArray(t)||"Feature"!==t.type?{}:t.properties;if(l===h)return Object(o.lineString)(Object(r.a)(t,e,u).geometry.coordinates[0],f);var p=l,d=l<h?h:h+360,g=p,y=[],v=0;for(;g<d;)y.push(Object(i.a)(t,e,g,u).geometry.coordinates),g=p+360*++v/c;g>d&&y.push(Object(i.a)(t,e,d,u).geometry.coordinates);return Object(o.lineString)(y,f)};var r=n(76),i=n(27),o=n(0);function a(t){var e=t%360;return e<0&&(e+=360),e}},function(t,e,n){"use strict";var r=n(78),i=n.n(r),o=n(42),a=n(59),s=n(61),u=n(2),c=n(1),l=n(0),h=n(129),f=n.n(h);function p(t,e){var n=Object(u.getCoords)(e),r=Object(u.getCoords)(t),i=r[0],o=r[r.length-1],a=t.geometry.coordinates;return f()(n[0],i)?a.unshift(n[1]):f()(n[0],o)?a.push(n[1]):f()(n[1],i)?a.unshift(n[0]):f()(n[1],o)&&a.push(n[0]),t}e.a=function(t,e,n){if(void 0===n&&(n={}),n=n||{},!Object(l.isObject)(n))throw new Error("options is invalid");var r,h=n.tolerance||0,d=[],g=i()(),y=Object(o.a)(t);return g.load(y),Object(c.segmentEach)(e,function(t){var e=!1;t&&(Object(c.featureEach)(g.search(t),function(n){if(!1===e){var i=Object(u.getCoords)(t).sort(),o=Object(u.getCoords)(n).sort();f()(i,o)?(e=!0,r=r?p(r,t):t):(0===h?Object(s.a)(i[0],n)&&Object(s.a)(i[1],n):Object(a.a)(n,i[0]).properties.dist<=h&&Object(a.a)(n,i[1]).properties.dist<=h)?(e=!0,r=r?p(r,t):t):(0===h?Object(s.a)(o[0],t)&&Object(s.a)(o[1],t):Object(a.a)(t,o[0]).properties.dist<=h&&Object(a.a)(t,o[1]).properties.dist<=h)&&(r=r?p(r,n):n)}}),!1===e&&r&&(d.push(r),r=void 0))}),r&&d.push(r),Object(l.featureCollection)(d)}},function(t,e,n){var r=n(130),i=n(269),o=n(273),a=n(275),s=n(276),u=n(278),c=Date.prototype.getTime;function l(t,e,n){var p=n||{};return!(p.strict?!o(t,e):t!==e)||(!t||!e||"object"!=typeof t&&"object"!=typeof e?p.strict?o(t,e):t==e:function(t,e,n){var o,p;if(typeof t!=typeof e)return!1;if(h(t)||h(e))return!1;if(t.prototype!==e.prototype)return!1;if(i(t)!==i(e))return!1;var d=a(t),g=a(e);if(d!==g)return!1;if(d||g)return t.source===e.source&&s(t)===s(e);if(u(t)&&u(e))return c.call(t)===c.call(e);var y=f(t),v=f(e);if(y!==v)return!1;if(y||v){if(t.length!==e.length)return!1;for(o=0;o<t.length;o++)if(t[o]!==e[o])return!1;return!0}if(typeof t!=typeof e)return!1;try{var m=r(t),_=r(e)}catch(t){return!1}if(m.length!==_.length)return!1;for(m.sort(),_.sort(),o=m.length-1;o>=0;o--)if(m[o]!=_[o])return!1;for(o=m.length-1;o>=0;o--)if(p=m[o],!l(t[p],e[p],n))return!1;return!0}(t,e,p))}function h(t){return null===t||void 0===t}function f(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}t.exports=l},function(t,e,n){"use strict";var r=Array.prototype.slice,i=n(131),o=Object.keys,a=o?function(t){return o(t)}:n(268),s=Object.keys;a.shim=function(){Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return i(t)?s(r.call(t)):s(t)}):Object.keys=a;return Object.keys||a},t.exports=a},function(t,e,n){"use strict";var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),n}},function(t,e,n){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(t,e,n){"use strict";var r=n(134),i=n(83),o=i(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&o(t,".prototype.")>-1?i(n):n}},function(t,e,n){"use strict";var r=SyntaxError,i=Function,o=TypeError,a=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var u=function(){throw new o},c=s?function(){try{return arguments.callee,u}catch(t){try{return s(arguments,"callee").get}catch(t){return u}}}():u,l=n(270)(),h=Object.getPrototypeOf||function(t){return t.__proto__},f={},p="undefined"==typeof Uint8Array?void 0:h(Uint8Array),d={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l?h([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?h(h([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?h((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?h((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?h(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":c,"%TypedArray%":p,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(82),v=n(272),m=y.call(Function.call,Array.prototype.concat),_=y.call(Function.apply,Array.prototype.splice),b=y.call(Function.call,String.prototype.replace),w=y.call(Function.call,String.prototype.slice),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,O=function(t,e){var n,i=t;if(v(g,i)&&(i="%"+(n=g[i])[0]+"%"),v(d,i)){var s=d[i];if(s===f&&(s=function t(e){var n;if("%AsyncFunction%"===e)n=a("async function () {}");else if("%GeneratorFunction%"===e)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=a("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(n=h(i.prototype))}return d[e]=n,n}(i)),void 0===s&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new r("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new o('"allowMissing" argument must be a boolean');var n=function(t){var e=w(t,0,1),n=w(t,-1);if("%"===e&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return b(t,E,function(t,e,n,r){i[i.length]=n?b(r,x,"$1"):e||t}),i}(t),i=n.length>0?n[0]:"",a=O("%"+i+"%",e),u=a.name,c=a.value,l=!1,h=a.alias;h&&(i=h[0],_(n,m([0,1],h)));for(var f=1,p=!0;f<n.length;f+=1){var g=n[f],y=w(g,0,1),M=w(g,-1);if(('"'===y||"'"===y||"`"===y||'"'===M||"'"===M||"`"===M)&&y!==M)throw new r("property names with quotes must have matching quotes");if("constructor"!==g&&p||(l=!0),v(d,u="%"+(i+="."+g)+"%"))c=d[u];else if(null!=c){if(!(g in c)){if(!e)throw new o("base intrinsic for "+t+" exists, but the property is not available.");return}if(s&&f+1>=n.length){var S=s(c,g);c=(p=!!S)&&"get"in S&&!("originalValue"in S.get)?S.get:c[g]}else p=v(c,g),c=c[g];p&&!l&&(d[u]=c)}}return c}},function(t,e,n){"use strict";var r=function(t){return t!=t};t.exports=function(t,e){return 0===t&&0===e?1/t==1/e:t===e||!(!r(t)||!r(e))}},function(t,e,n){"use strict";var r=n(135);t.exports=function(){return"function"==typeof Object.is?Object.is:r}},function(t,e,n){"use strict";var r=Object,i=TypeError;t.exports=function(){if(null!=this&&this!==r(this))throw new i("RegExp.prototype.flags getter called on non-object");var t="";return this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.sticky&&(t+="y"),t}},function(t,e,n){"use strict";var r=n(137),i=n(43).supportsDescriptors,o=Object.getOwnPropertyDescriptor,a=TypeError;t.exports=function(){if(!i)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var t=o(RegExp.prototype,"flags");if(t&&"function"==typeof t.get&&"boolean"==typeof/a/.dotAll)return t.get}return r}},function(t,e,n){"use strict";e.a=function(t){var e,n,i=Object(r.getCoords)(t),o=0,a=1;for(;a<i.length;)e=n||i[0],n=i[a],o+=(n[0]-e[0])*(n[1]+e[1]),a++;return o>0};var r=n(2)},function(t,e,n){"use strict";var r=n(28),i=n(44),o=n(60),a=n(45),s=n(9),u=n(1),c=n(2),l=n(0);e.a=function(t,e,n){if(n=n||{},!Object(l.isObject)(n))throw new Error("options is invalid");var h=n.pivot,f=n.mutate;if(!t)throw new Error("geojson is required");if(void 0===e||null===e||isNaN(e))throw new Error("angle is required");return 0===e?t:(h||(h=Object(r.a)(t)),!1!==f&&void 0!==f||(t=Object(s.a)(t)),Object(u.coordEach)(t,function(t){var n=Object(i.a)(h,t)+e,r=Object(o.a)(h,t),s=Object(c.getCoords)(Object(a.a)(h,r,n));t[0]=s[0],t[1]=s[1]}),t)}},function(t,e,n){"use strict";var r=n(9),i=n(57),o=n(28),a=n(10),s=n(44),u=n(60),c=n(45),l=n(1),h=n(0),f=n(2);function p(t,e,n){var r="Point"===Object(f.getType)(t);return n=function(t,e){void 0!==e&&null!==e||(e="centroid");if(Array.isArray(e)||"object"==typeof e)return Object(f.getCoord)(e);var n=t.bbox?t.bbox:Object(a.default)(t),r=n[0],s=n[1],u=n[2],c=n[3];switch(e){case"sw":case"southwest":case"westsouth":case"bottomleft":return Object(h.point)([r,s]);case"se":case"southeast":case"eastsouth":case"bottomright":return Object(h.point)([u,s]);case"nw":case"northwest":case"westnorth":case"topleft":return Object(h.point)([r,c]);case"ne":case"northeast":case"eastnorth":case"topright":return Object(h.point)([u,c]);case"center":return Object(i.a)(t);case void 0:case null:case"centroid":return Object(o.a)(t);default:throw new Error("invalid origin")}}(t,n),1===e||r?t:(Object(l.coordEach)(t,function(t){var r=Object(u.a)(n,t),i=Object(s.a)(n,t),o=r*e,a=Object(f.getCoords)(Object(c.a)(n,o,i));t[0]=a[0],t[1]=a[1],3===t.length&&(t[2]*=e)}),t)}e.a=function(t,e,n){if(n=n||{},!Object(h.isObject)(n))throw new Error("options is invalid");var i=n.origin,o=n.mutate;if(!t)throw new Error("geojson required");if("number"!=typeof e||0===e)throw new Error("invalid factor");var a=Array.isArray(i)||"object"==typeof i;return!0!==o&&(t=Object(r.a)(t)),"FeatureCollection"!==t.type||a?p(t,e,i):(Object(l.featureEach)(t,function(n,r){t.features[r]=p(n,e,i)}),t)}},function(t,e,n){"use strict";var r=n(84),i=n(0),o=n(118),a=n(11),s=function(){function t(){this.edges=[],this.polygon=void 0,this.envelope=void 0}return t.prototype.push=function(t){this.edges.push(t),this.polygon=this.envelope=void 0},t.prototype.get=function(t){return this.edges[t]},Object.defineProperty(t.prototype,"length",{get:function(){return this.edges.length},enumerable:!0,configurable:!0}),t.prototype.forEach=function(t){this.edges.forEach(t)},t.prototype.map=function(t){return this.edges.map(t)},t.prototype.some=function(t){return this.edges.some(t)},t.prototype.isValid=function(){return!0},t.prototype.isHole=function(){var t=this,e=this.edges.reduce(function(e,n,r){return n.from.coordinates[1]>t.edges[e].from.coordinates[1]&&(e=r),e},0),n=(0===e?this.length:e)-1,i=(e+1)%this.length,o=Object(r.d)(this.edges[n].from.coordinates,this.edges[e].from.coordinates,this.edges[i].from.coordinates);return 0===o?this.edges[n].from.coordinates[0]>this.edges[i].from.coordinates[0]:o>0},t.prototype.toMultiPoint=function(){return Object(i.multiPoint)(this.edges.map(function(t){return t.from.coordinates}))},t.prototype.toPolygon=function(){if(this.polygon)return this.polygon;var t=this.edges.map(function(t){return t.from.coordinates});return t.push(this.edges[0].from.coordinates),this.polygon=Object(i.polygon)([t])},t.prototype.getEnvelope=function(){return this.envelope?this.envelope:this.envelope=Object(o.a)(this.toPolygon())},t.findEdgeRingContaining=function(t,e){var n,o,a=t.getEnvelope();return e.forEach(function(e){var s=e.getEnvelope();if(o&&(n=o.getEnvelope()),!Object(r.c)(s,a)&&Object(r.b)(s,a)){for(var u=void 0,c=function(t){e.some(function(e){return Object(r.a)(t,e.from.coordinates)})||(u=t)},l=0,h=t.map(function(t){return t.from.coordinates});l<h.length;l++){c(h[l])}u&&e.inside(Object(i.point)(u))&&(o&&!Object(r.b)(n,s)||(o=e))}}),o},t.prototype.inside=function(t){return Object(a.a)(t,this.toPolygon())},t}();e.a=s},function(t,e,n){"use strict";var r=n(11),i=n(35),o=n(1),a=n(80);function s(t,e){for(var n=0;n<t.coordinates.length-1;n++)if(c(t.coordinates[n],t.coordinates[n+1],e.coordinates))return!0;return!1}function u(t,e){for(var n=0,o=e.coordinates;n<o.length;n++){var s=o[n];if(Object(r.a)(s,t))return!0}return Object(i.a)(e,Object(a.a)(t)).features.length>0}function c(t,e,n){var r=n[0]-t[0],i=n[1]-t[1],o=e[0]-t[0],a=e[1]-t[1];return 0==r*a-i*o&&(Math.abs(o)>=Math.abs(a)?o>0?t[0]<=n[0]&&n[0]<=e[0]:e[0]<=n[0]&&n[0]<=t[0]:a>0?t[1]<=n[1]&&n[1]<=e[1]:e[1]<=n[1]&&n[1]<=t[1])}e.a=function(t,e){var n=!0;return Object(o.flattenEach)(t,function(t){Object(o.flattenEach)(e,function(e){if(!1===n)return!1;n=function(t,e){switch(t.type){case"Point":switch(e.type){case"Point":return c=t.coordinates,l=e.coordinates,!(c[0]===l[0]&&c[1]===l[1]);case"LineString":return!s(e,t);case"Polygon":return!Object(r.a)(t,e)}break;case"LineString":switch(e.type){case"Point":return!s(t,e);case"LineString":return n=t,o=e,!(Object(i.a)(n,o).features.length>0);case"Polygon":return!u(e,t)}break;case"Polygon":switch(e.type){case"Point":return!Object(r.a)(e,t);case"LineString":return!u(t,e);case"Polygon":return!function(t,e){for(var n=0,o=t.coordinates[0];n<o.length;n++){var s=o[n];if(Object(r.a)(s,e))return!0}for(var u=0,c=e.coordinates[0];u<c.length;u++){var l=c[u];if(Object(r.a)(l,t))return!0}return Object(i.a)(Object(a.a)(t),Object(a.a)(e)).features.length>0}(e,t)}}var n,o,c,l;return!1}(t.geometry,e.geometry)})}),n}},function(t,e,n){var r=n(129),i=function(t){this.precision=t&&t.precision?t.precision:17,this.direction=!(!t||!t.direction)&&t.direction,this.pseudoNode=!(!t||!t.pseudoNode)&&t.pseudoNode,this.objectComparator=t&&t.objectComparator?t.objectComparator:s};function o(t){return t.coordinates.map(function(e){return{type:t.type.replace("Multi",""),coordinates:e}})}function a(t,e){return t.hasOwnProperty("coordinates")?t.coordinates.length===e.coordinates.length:t.length===e.length}function s(t,e){return r(t,e,{strict:!0})}i.prototype.compare=function(t,e){if(t.type!==e.type||!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,0,!1);case"Polygon":return this.comparePolygon(t,e);case"Feature":return this.compareFeature(t,e);default:if(0===t.type.indexOf("Multi")){var n=this,r=o(t),i=o(e);return r.every(function(t){return this.some(function(e){return n.compare(t,e)})},i)}}return!1},i.prototype.compareCoord=function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n].toFixed(this.precision)!==e[n].toFixed(this.precision))return!1;return!0},i.prototype.compareLine=function(t,e,n,r){if(!a(t,e))return!1;var i=this.pseudoNode?t:this.removePseudo(t),o=this.pseudoNode?e:this.removePseudo(e);if(!r||this.compareCoord(i[0],o[0])||(o=this.fixStartIndex(o,i))){var s=this.compareCoord(i[n],o[n]);return this.direction||s?this.comparePath(i,o):!!this.compareCoord(i[n],o[o.length-(1+n)])&&this.comparePath(i.slice().reverse(),o)}},i.prototype.fixStartIndex=function(t,e){for(var n,r=-1,i=0;i<t.length;i++)if(this.compareCoord(t[i],e[0])){r=i;break}return r>=0&&(n=[].concat(t.slice(r,t.length),t.slice(1,r+1))),n},i.prototype.comparePath=function(t,e){var n=this;return t.every(function(t,e){return n.compareCoord(t,this[e])},e)},i.prototype.comparePolygon=function(t,e){if(this.compareLine(t.coordinates[0],e.coordinates[0],1,!0)){var n=t.coordinates.slice(1,t.coordinates.length),r=e.coordinates.slice(1,e.coordinates.length),i=this;return n.every(function(t){return this.some(function(e){return i.compareLine(t,e,1,!0)})},r)}return!1},i.prototype.compareFeature=function(t,e){return!(t.id!==e.id||!this.objectComparator(t.properties,e.properties)||!this.compareBBox(t,e))&&this.compare(t.geometry,e.geometry)},i.prototype.compareBBox=function(t,e){return!!(!t.bbox&&!e.bbox||t.bbox&&e.bbox&&this.compareCoord(t.bbox,e.bbox))},i.prototype.removePseudo=function(t){return t},t.exports=i},function(t,e,n){"use strict";e.a=function(t,e){var n=!1;return Object(i.flattenEach)(t,function(t){Object(i.flattenEach)(e,function(e){if(!0===n)return!0;n=!Object(r.a)(t.geometry,e.geometry)})}),n};var r=n(143),i=n(1)},function(t,e){function n(t,e,n){this._queue=[],this._priorities=[],this._sorting="desc",this._init(t,e,n)}n.prototype.insert=function(t,e){for(var n=this._queue.length,r=n;r--;){var i=this._priorities[r];"desc"===this._sorting?e>i&&(n=r):e<i&&(n=r)}this._insertAt(t,e,n)},n.prototype.remove=function(t){for(var e=this._queue.length;e--;){if(t===this._queue[e]){this._queue.splice(e,1),this._priorities.splice(e,1);break}}},n.prototype.forEach=function(t){this._queue.forEach(t)},n.prototype.getElements=function(){return this._queue},n.prototype.getElementPriority=function(t){return this._priorities[t]},n.prototype.getPriorities=function(){return this._priorities},n.prototype.getElementsWithPriorities=function(){for(var t=[],e=0,n=this._queue.length;e<n;e++)t.push([this._queue[e],this._priorities[e]]);return t},n.prototype._init=function(t,e,n){if(t&&e){if(this._queue=[],this._priorities=[],t.length!==e.length)throw new Error("Arrays must have the same length");for(var r=0;r<t.length;r++)this.insert(t[r],e[r])}n&&(this._sorting=n)},n.prototype._insertAt=function(t,e,n){this._queue.length===n?(this._queue.push(t),this._priorities.push(e)):(this._queue.splice(n,0,t),this._priorities.splice(n,0,e))},void 0!==t&&t.exports&&(t.exports=n)},function(t,e,n){"use strict";t.exports={eudist:function(t,e,n){for(var r=t.length,i=0,o=0;o<r;o++){var a=(t[o]||0)-(e[o]||0);i+=a*a}return n?Math.sqrt(i):i},mandist:function(t,e,n){for(var r=t.length,i=0,o=0;o<r;o++)i+=Math.abs((t[o]||0)-(e[o]||0));return n?Math.sqrt(i):i},dist:function(t,e,n){var r=Math.abs(t-e);return n?r:r*r}}},function(t,e,n){"use strict";e.c=function(t){return i.b[t.index]={site:t,halfedges:[]}},e.a=a,e.d=function(){for(var t,e,n,r,a=0,s=i.b.length;a<s;++a)if((t=i.b[a])&&(r=(e=t.halfedges).length)){var u=new Array(r),c=new Array(r);for(n=0;n<r;++n)u[n]=n,c[n]=o(t,i.e[e[n]]);for(u.sort(function(t,e){return c[e]-c[t]}),n=0;n<r;++n)c[n]=e[u[n]];for(n=0;n<r;++n)e[n]=c[n]}},e.b=function(t,e,n,o){var u,c,l,h,f,p,d,g,y,v,m,_,b=i.b.length,w=!0;for(u=0;u<b;++u)if(c=i.b[u]){for(l=c.site,f=c.halfedges,h=f.length;h--;)i.e[f[h]]||f.splice(h,1);for(h=0,p=f.length;h<p;)v=s(c,i.e[f[h]]),m=v[0],_=v[1],d=a(c,i.e[f[++h%p]]),g=d[0],y=d[1],(Math.abs(m-g)>i.f||Math.abs(_-y)>i.f)&&(f.splice(h,0,i.e.push(Object(r.b)(l,v,Math.abs(m-t)<i.f&&o-_>i.f?[t,Math.abs(g-t)<i.f?y:o]:Math.abs(_-o)<i.f&&n-m>i.f?[Math.abs(y-o)<i.f?g:n,o]:Math.abs(m-n)<i.f&&_-e>i.f?[n,Math.abs(g-n)<i.f?y:e]:Math.abs(_-e)<i.f&&m-t>i.f?[Math.abs(y-e)<i.f?g:t,e]:null))-1),++p);p&&(w=!1)}if(w){var E,x,O,M=1/0;for(u=0,w=null;u<b;++u)(c=i.b[u])&&(l=c.site,E=l[0]-t,x=l[1]-e,(O=E*E+x*x)<M&&(M=O,w=c));if(w){var S=[t,e],P=[t,o],C=[n,o],T=[n,e];w.halfedges.push(i.e.push(Object(r.b)(l=w.site,S,P))-1,i.e.push(Object(r.b)(l,P,C))-1,i.e.push(Object(r.b)(l,C,T))-1,i.e.push(Object(r.b)(l,T,S))-1)}}for(u=0;u<b;++u)(c=i.b[u])&&(c.halfedges.length||delete i.b[u])};var r=n(86),i=n(46);function o(t,e){var n=t.site,r=e.left,i=e.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=e[1],i=e[0]):(r=e[0],i=e[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function a(t,e){return e[+(e.left!==t.site)]}function s(t,e){return e[+(e.left===t.site)]}},function(t,e,n){"use strict";n.d(e,"c",function(){return r}),e.a=function(t){var e=t.P,n=t.N;if(!e||!n)return;var s=e.site,u=t.site,c=n.site;if(s===c)return;var l=u[0],h=u[1],f=s[0]-l,p=s[1]-h,d=c[0]-l,g=c[1]-h,y=2*(f*g-p*d);if(y>=-o.g)return;var v=f*f+p*p,m=d*d+g*g,_=(g*v-p*m)/y,b=(f*m-d*v)/y,w=a.pop()||new function(){Object(i.a)(this),this.x=this.y=this.arc=this.site=this.cy=null};w.arc=t,w.site=u,w.x=_+l,w.y=(w.cy=b+h)+Math.sqrt(_*_+b*b),t.circle=w;var E=null,x=o.c._;for(;x;)if(w.y<x.y||w.y===x.y&&w.x<=x.x){if(!x.L){E=x.P;break}x=x.L}else{if(!x.R){E=x;break}x=x.R}o.c.insert(E,w),E||(r=w)},e.b=function(t){var e=t.circle;e&&(e.P||(r=e.N),o.c.remove(e),a.push(e),Object(i.a)(e),t.circle=null)};var r,i=n(85),o=n(46),a=[]},function(t,e,n){"use strict";var r=n(0),i=n(45),o=n(140),a=n(2);function s(t){var e=t*Math.PI/180;return Math.tan(e)}e.a=function(t,e,n,u){var c=(u=u||{}).steps||64,l=u.units||"kilometers",h=u.angle||0,f=u.pivot||t,p=u.properties||t.properties||{};if(!t)throw new Error("center is required");if(!e)throw new Error("xSemiAxis is required");if(!n)throw new Error("ySemiAxis is required");if(!Object(r.isObject)(u))throw new Error("options must be an object");if(!Object(r.isNumber)(c))throw new Error("steps must be a number");if(!Object(r.isNumber)(h))throw new Error("angle must be a number");var d=Object(a.getCoord)(t);if("degrees"===l)var g=Object(r.degreesToRadians)(h);else e=Object(i.a)(t,e,90,{units:l}),n=Object(i.a)(t,n,0,{units:l}),e=Object(a.getCoord)(e)[0]-d[0],n=Object(a.getCoord)(n)[1]-d[1];for(var y=[],v=0;v<c;v+=1){var m=-360*v/c,_=e*n/Math.sqrt(Math.pow(n,2)+Math.pow(e,2)*Math.pow(s(m),2)),b=e*n/Math.sqrt(Math.pow(e,2)+Math.pow(n,2)/Math.pow(s(m),2));if(m<-90&&m>=-270&&(_=-_),m<-180&&m>=-360&&(b=-b),"degrees"===l){var w=_*Math.cos(g)+b*Math.sin(g),E=b*Math.cos(g)-_*Math.sin(g);_=w,b=E}y.push([_+d[0],b+d[1]])}return y.push(y[0]),"degrees"===l?Object(r.polygon)([y],p):Object(o.a)(Object(r.polygon)([y],p),h,{pivot:f})}},function(t,e,n){"use strict";e.a=function(t,e){var n=(e=e||{}).threshold||1e4,i=e.p||2,s=e.binary||!1,u=e.alpha||-1,c=e.standardization||!1,l=[];Object(o.featureEach)(t,function(t){l.push(Object(r.a)(t))});for(var h=[],f=0;f<l.length;f++)h[f]=[];for(var f=0;f<l.length;f++)for(var p=f;p<l.length;p++){f===p&&(h[f][p]=0);var d=a(l[f],l[p],i);h[f][p]=d,h[p][f]=d}for(var f=0;f<l.length;f++)for(var p=0;p<l.length;p++){var d=h[f][p];0!==d&&(h[f][p]=s?d<=n?1:0:d<=n?Math.pow(d,u):0)}if(c)for(var f=0;f<l.length;f++)for(var g=h[f].reduce(function(t,e){return t+e},0),p=0;p<l.length;p++)h[f][p]=h[f][p]/g;return h};var r=n(28),i=n(2),o=n(1);function a(t,e,n){void 0===n&&(n=2);var r=Object(i.getCoord)(t),o=Object(i.getCoord)(e),a=r[0]-o[0],s=r[1]-o[1];return 1===n?Math.abs(a)+Math.abs(s):Math.pow(Math.pow(a,n)+Math.pow(s,n),1/n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toMercator=function(t,e){void 0===e&&(e={});return a(t,"mercator",e)},e.toWgs84=function(t,e){void 0===e&&(e={});return a(t,"wgs84",e)};var r=n(1),i=n(0),o=n(9);function a(t,e,n){void 0===n&&(n={});var a=(n=n||{}).mutate;if(!t)throw new Error("geojson is required");return Array.isArray(t)&&Object(i.isNumber)(t[0])?t="mercator"===e?s(t):u(t):(!0!==a&&(t=Object(o.a)(t)),Object(r.coordEach)(t,function(t){var n="mercator"===e?s(t):u(t);t[0]=n[0],t[1]=n[1]})),t}function s(t){var e,n=Math.PI/180,r=6378137,i=20037508.342789244,o=[r*(Math.abs(t[0])<=180?t[0]:t[0]-360*((e=t[0])<0?-1:e>0?1:0))*n,r*Math.log(Math.tan(.25*Math.PI+.5*t[1]*n))];return o[0]>i&&(o[0]=i),o[0]<-i&&(o[0]=-i),o[1]>i&&(o[1]=i),o[1]<-i&&(o[1]=-i),o}function u(t){var e=180/Math.PI,n=6378137;return[t[0]*e/n,(.5*Math.PI-2*Math.atan(Math.exp(-t[1]/n)))*e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomPosition=o,e.randomPoint=function(t,e){void 0===e&&(e={});void 0!==t&&null!==t||(t=1);for(var n=[],i=0;i<t;i++)n.push(Object(r.point)(o(e.bbox)));return Object(r.featureCollection)(n)},e.randomPolygon=function(t,e){void 0===e&&(e={});void 0!==t&&null!==t||(t=1);Object(r.isNumber)(e.num_vertices)&&void 0!==e.num_vertices||(e.num_vertices=10);Object(r.isNumber)(e.max_radial_length)&&void 0!==e.max_radial_length||(e.max_radial_length=10);for(var n=[],a=function(t){var a,s=[],u=i(Array(e.num_vertices+1)).map(Math.random);u.forEach(function(t,e,n){n[e]=e>0?t+n[e-1]:t}),u.forEach(function(t){t=2*t*Math.PI/u[u.length-1];var n=Math.random();s.push([n*(e.max_radial_length||10)*Math.sin(t),n*(e.max_radial_length||10)*Math.cos(t)])}),s[s.length-1]=s[0],s=s.map((a=o(e.bbox),function(t){return[t[0]+a[0],t[1]+a[1]]})),n.push(Object(r.polygon)([s]))},s=0;s<t;s++)a(s);return Object(r.featureCollection)(n)},e.randomLineString=function(t,e){void 0===e&&(e={});if(e=e||{},!Object(r.isObject)(e))throw new Error("options is invalid");var n=e.bbox,i=e.num_vertices,a=e.max_length,s=e.max_rotation;void 0!==t&&null!==t||(t=1);(!Object(r.isNumber)(i)||void 0===i||i<2)&&(i=10);Object(r.isNumber)(a)&&void 0!==a||(a=1e-4);Object(r.isNumber)(s)&&void 0!==s||(s=Math.PI/8);for(var u=[],c=0;c<t;c++){for(var l=o(n),h=[l],f=0;f<i-1;f++){var p=0===f?2*Math.random()*Math.PI:Math.tan((h[f][1]-h[f-1][1])/(h[f][0]-h[f-1][0])),d=p+(Math.random()-.5)*s*2,g=Math.random()*a;h.push([h[f][0]+g*Math.cos(d),h[f][1]+g*Math.sin(d)])}u.push(Object(r.lineString)(h))}return Object(r.featureCollection)(u)};var r=n(0),i=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function o(t){return Array.isArray(t)?s(t):t&&t.bbox?s(t.bbox):[360*a(),180*a()]}function a(){return Math.random()-.5}function s(t){return[Math.random()*(t[2]-t[0])+t[0],Math.random()*(t[3]-t[1])+t[1]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCluster=function(t,e){if(!t)throw new Error("geojson is required");if("FeatureCollection"!==t.type)throw new Error("geojson must be a FeatureCollection");if(void 0===e||null===e)throw new Error("filter is required");var n=[];return Object(r.featureEach)(t,function(t){s(t.properties,e)&&n.push(t)}),Object(i.featureCollection)(n)},e.clusterEach=o,e.clusterReduce=function(t,e,n,r){var i=r;return o(t,e,function(t,e,o){i=0===o&&void 0===r?t:n(i,t,e,o)}),i},e.createBins=a,e.applyFilter=s,e.propertiesContainsFilter=u,e.filterProperties=function(t,e){if(!e)return{};if(!e.length)return{};for(var n={},r=0;r<e.length;r++){var i=e[r];Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n};var r=n(1),i=n(0);function o(t,e,n){if(!t)throw new Error("geojson is required");if("FeatureCollection"!==t.type)throw new Error("geojson must be a FeatureCollection");if(void 0===e||null===e)throw new Error("property is required");for(var r=a(t,e),o=Object.keys(r),s=0;s<o.length;s++){for(var u=o[s],c=r[u],l=[],h=0;h<c.length;h++)l.push(t.features[c[h]]);n(Object(i.featureCollection)(l),u,s)}}function a(t,e){var n={};return Object(r.featureEach)(t,function(t,r){var i=t.properties||{};if(Object.prototype.hasOwnProperty.call(i,String(e))){var o=i[e];Object.prototype.hasOwnProperty.call(n,o)?n[o].push(r):n[o]=[r]}}),n}function s(t,e){if(void 0===t)return!1;var n=typeof e;if("number"===n||"string"===n)return Object.prototype.hasOwnProperty.call(t,e);if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(!s(t,e[r]))return!1;return!0}return u(t,e)}function u(t,e){for(var n=Object.keys(e),r=0;r<n.length;r++){var i=n[r];if(t[i]!==e[i])return!1}return!0}},function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n.d(e,"b",function(){return p});var r,i,o,a,s,u=n(36),c=n(3),l=n(24),h=(n(29),Object(u.a)()),f=Object(u.a)(),p={point:l.a,lineStart:l.a,lineEnd:l.a,polygonStart:function(){h.reset(),p.lineStart=d,p.lineEnd=g},polygonEnd:function(){var t=+h;f.add(t<0?c.w+t:t),this.lineStart=this.lineEnd=this.point=l.a},sphere:function(){f.add(c.w)}};function d(){p.point=y}function g(){v(r,i)}function y(t,e){p.point=v,r=t,i=e,t*=c.r,e*=c.r,o=t,a=Object(c.g)(e=e/2+c.q),s=Object(c.t)(e)}function v(t,e){t*=c.r,e=(e*=c.r)/2+c.q;var n=t-o,r=n>=0?1:-1,i=r*n,u=Object(c.g)(e),l=Object(c.t)(e),f=s*l,p=a*u+f*Object(c.g)(i),d=f*r*Object(c.t)(i);h.add(Object(c.e)(d,p)),o=t,a=u,s=l}},function(t,e,n){"use strict";e.a=o;var r=n(48),i=(n(322),n(3));n(62);function o(t,e,n,o,s,u){if(n){var c=Object(i.g)(e),l=Object(i.t)(e),h=o*n;null==s?(s=e+o*i.w,u=e-h/2):(s=a(c,s),u=a(c,u),(o>0?s<u:s>u)&&(s+=o*i.w));for(var f,p=s;o>0?p>u:p<u;p-=h)f=Object(r.g)([c,-l*Object(i.g)(p),-l*Object(i.t)(p)]),t.point(f[0],f[1])}}function a(t,e){(e=Object(r.a)(e))[0]-=t,Object(r.e)(e);var n=Object(i.b)(-e[1]);return((-e[2]<0?-n:n)+i.w-i.i)%i.w}},function(t,e,n){"use strict";e.a=function(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}},function(t,e,n){"use strict";var r=n(24);e.a=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:r.a,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}},function(t,e,n){"use strict";var r=n(160);function i(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function o(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}e.a=function(t,e,n,a,s){var u,c,l=[],h=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,o=t[0],a=t[e];if(Object(r.a)(o,a)){for(s.lineStart(),u=0;u<e;++u)s.point((o=t[u])[0],o[1]);s.lineEnd()}else l.push(n=new i(o,t,null,!0)),h.push(n.o=new i(o,null,n,!1)),l.push(n=new i(a,t,null,!1)),h.push(n.o=new i(a,null,n,!0))}}),l.length){for(h.sort(e),o(l),o(h),u=0,c=h.length;u<c;++u)h[u].e=n=!n;for(var f,p,d=l[0];;){for(var g=d,y=!0;g.v;)if((g=g.n)===d)return;f=g.z,s.lineStart();do{if(g.v=g.o.v=!0,g.e){if(y)for(u=0,c=f.length;u<c;++u)s.point((p=f[u])[0],p[1]);else a(g.x,g.n.x,1,s);g=g.n}else{if(y)for(f=g.p.z,u=f.length-1;u>=0;--u)s.point((p=f[u])[0],p[1]);else a(g.x,g.p.x,-1,s);g=g.p}f=(g=g.o).z,y=!y}while(!g.v);s.lineEnd()}}}},function(t,e,n){"use strict";var r=n(3);e.a=function(t,e){return Object(r.a)(t[0]-e[0])<r.i&&Object(r.a)(t[1]-e[1])<r.i}},function(t,e,n){"use strict";var r=n(37),i=n(162),o=Object(i.a)(r.a),a=o.right;o.left;e.a=a},function(t,e,n){"use strict";var r=n(37);e.a=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return Object(r.a)(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}},function(t,e,n){"use strict";e.a=r;function r(t,e){return[t,e]}},function(t,e,n){"use strict";var r=n(165);e.a=function(t,e){var n=Object(r.a)(t,e);return n?Math.sqrt(n):n}},function(t,e,n){"use strict";var r=n(49);e.a=function(t,e){var n,i,o=t.length,a=0,s=-1,u=0,c=0;if(null==e)for(;++s<o;)isNaN(n=Object(r.a)(t[s]))||(c+=(i=n-u)*(n-(u+=i/++a)));else for(;++s<o;)isNaN(n=Object(r.a)(e(t[s],s,t)))||(c+=(i=n-u)*(n-(u+=i/++a)));if(a>1)return c/(a-1)}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a<o;)if(null!=(n=t[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=i=n;++a<o;)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}},function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o});var r=Array.prototype,i=r.slice,o=r.map},function(t,e,n){"use strict";e.a=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}},function(t,e,n){"use strict";e.a=function(t,e,n){var a=Math.abs(e-t)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),u=a/s;u>=r?s*=10:u>=i?s*=5:u>=o&&(s*=2);return e<t?-s:s};var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2)},function(t,e,n){"use strict";e.a=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<i;)null!=(n=t[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&r>n&&(r=n);return r}},function(t,e,n){"use strict";var r=n(171);function i(t){return t.length}e.a=function(t){if(!(a=t.length))return[];for(var e=-1,n=Object(r.a)(t,i),o=new Array(n);++e<n;)for(var a,s=-1,u=o[e]=new Array(a);++s<a;)u[s]=t[s][e];return o}},function(t,e,n){"use strict";var r=n(36),i=n(48),o=n(3),a=Object(r.a)();e.a=function(t,e){var n=e[0],r=e[1],s=[Object(o.t)(n),-Object(o.g)(n),0],u=0,c=0;a.reset();for(var l=0,h=t.length;l<h;++l)if(p=(f=t[l]).length)for(var f,p,d=f[p-1],g=d[0],y=d[1]/2+o.q,v=Object(o.t)(y),m=Object(o.g)(y),_=0;_<p;++_,g=w,v=x,m=O,d=b){var b=f[_],w=b[0],E=b[1]/2+o.q,x=Object(o.t)(E),O=Object(o.g)(E),M=w-g,S=M>=0?1:-1,P=S*M,C=P>o.o,T=v*x;if(a.add(Object(o.e)(T*S*Object(o.t)(P),m*O+T*Object(o.g)(P))),u+=C?M+S*o.w:M,C^g>=n^w>=n){var I=Object(i.c)(Object(i.a)(d),Object(i.a)(b));Object(i.e)(I);var L=Object(i.c)(s,I);Object(i.e)(L);var A=(C^M>=0?-1:1)*Object(o.c)(L[2]);(r>A||r===A&&(I[0]||I[1]))&&(c+=C^M>=0?1:-1)}}return(u<-o.i||u<o.i&&a<-o.i)^1&c}},function(t,e,n){"use strict";var r=n(175),i=[null,null],o={type:"LineString",coordinates:i};e.a=function(t,e){return i[0]=t,i[1]=e,Object(r.a)(o)}},function(t,e,n){"use strict";var r,i,o,a=n(36),s=n(3),u=n(24),c=n(29),l=Object(a.a)(),h={sphere:u.a,point:u.a,lineStart:function(){h.point=p,h.lineEnd=f},lineEnd:u.a,polygonStart:u.a,polygonEnd:u.a};function f(){h.point=h.lineEnd=u.a}function p(t,e){t*=s.r,e*=s.r,r=t,i=Object(s.t)(e),o=Object(s.g)(e),h.point=d}function d(t,e){t*=s.r,e*=s.r;var n=Object(s.t)(e),a=Object(s.g)(e),u=Object(s.a)(t-r),c=Object(s.g)(u),h=a*Object(s.t)(u),f=o*n-i*a*c,p=i*n+o*a*c;l.add(Object(s.e)(Object(s.u)(h*h+f*f),p)),r=t,i=n,o=a}e.a=function(t){return l.reset(),Object(c.a)(t,h),+l}},function(t,e,n){"use strict";var r=n(24),i=1/0,o=i,a=-i,s=a,u={point:function(t,e){t<i&&(i=t);t>a&&(a=t);e<o&&(o=e);e>s&&(s=e)},lineStart:r.a,lineEnd:r.a,polygonStart:r.a,polygonEnd:r.a,result:function(){var t=[[i,o],[a,s]];return a=s=-(o=i=1/0),t}};e.a=u},function(t,e,n){"use strict";var r=n(92);e.a=function(){return Object(r.a)().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}},function(t,e,n){"use strict";var r=n(158),i=n(159),o=n(3),a=n(173),s=n(89);function u(t){return t.length>1}function c(t,e){return((t=t.x)[0]<0?t[1]-o.l-o.i:o.l-t[1])-((e=e.x)[0]<0?e[1]-o.l-o.i:o.l-e[1])}e.a=function(t,e,n,o){return function(l,h){var f,p,d,g=e(h),y=l.invert(o[0],o[1]),v=Object(r.a)(),m=e(v),_=!1,b={point:w,lineStart:x,lineEnd:O,polygonStart:function(){b.point=M,b.lineStart=S,b.lineEnd=P,p=[],f=[]},polygonEnd:function(){b.point=w,b.lineStart=x,b.lineEnd=O,p=Object(s.a)(p);var t=Object(a.a)(f,y);p.length?(_||(h.polygonStart(),_=!0),Object(i.a)(p,c,t,n,h)):t&&(_||(h.polygonStart(),_=!0),h.lineStart(),n(null,null,1,h),h.lineEnd()),_&&(h.polygonEnd(),_=!1),p=f=null},sphere:function(){h.polygonStart(),h.lineStart(),n(null,null,1,h),h.lineEnd(),h.polygonEnd()}};function w(e,n){var r=l(e,n);t(e=r[0],n=r[1])&&h.point(e,n)}function E(t,e){var n=l(t,e);g.point(n[0],n[1])}function x(){b.point=E,g.lineStart()}function O(){b.point=w,g.lineEnd()}function M(t,e){d.push([t,e]);var n=l(t,e);m.point(n[0],n[1])}function S(){m.lineStart(),d=[]}function P(){M(d[0][0],d[0][1]),m.lineEnd();var t,e,n,r,i=m.clean(),o=v.result(),a=o.length;if(d.pop(),f.push(d),d=null,a)if(1&i){if((e=(n=o[0]).length-1)>0){for(_||(h.polygonStart(),_=!0),h.lineStart(),t=0;t<e;++t)h.point((r=n[t])[0],r[1]);h.lineEnd()}}else a>1&&2&i&&o.push(o.pop().concat(o.shift())),p.push(o.filter(u))}return b}}},function(t,e,n){"use strict";e.a=r;n(17);function r(t,e){return[t,e]}r.invert=r},function(t,e,n){"use strict";var r=n(8),i=n(96),o=n(0);function a(t,e,n,r,i,a){for(var s=[],u=0;u<6;u++){var c=t[0]+e*i[u],l=t[1]+n*a[u];s.push([c,l])}return s.push(s[0].slice()),Object(o.polygon)([s],r)}function s(t,e,n,r,i,a){for(var s=[],u=0;u<6;u++){var c=[];c.push(t),c.push([t[0]+e*i[u],t[1]+n*a[u]]),c.push([t[0]+e*i[(u+1)%6],t[1]+n*a[(u+1)%6]]),c.push(t),s.push(Object(o.polygon)([c],r))}return s}e.a=function(t,e,n){void 0===n&&(n={});var u=JSON.stringify(n.properties||{}),c=t[0],l=t[1],h=t[2],f=t[3],p=(l+f)/2,d=(c+h)/2,g=2*e/Object(r.a)([c,p],[h,p],n)*(h-c),y=2*e/Object(r.a)([d,l],[d,f],n)*(f-l),v=g/2,m=2*v,_=Math.sqrt(3)/2*y,b=h-c,w=f-l,E=.75*m,x=_,O=(b-m)/(m-v/2),M=Math.floor(O),S=(M*E-v/2-b)/2-v/2+E/2,P=Math.floor((w-_)/_),C=(w-P*_)/2,T=P*_-w>_/2;T&&(C-=_/4);for(var I=[],L=[],A=0;A<6;A++){var N=2*Math.PI/6*A;I.push(Math.cos(N)),L.push(Math.sin(N))}for(var k=[],j=0;j<=M;j++)for(var R=0;R<=P;R++){var D=j%2==1;if(!(0===R&&D||0===R&&T)){var F=j*E+c-S,z=R*x+l+C;if(D&&(z-=_/2),!0===n.triangles)s([F,z],g/2,y/2,JSON.parse(u),I,L).forEach(function(t){n.mask?Object(i.a)(n.mask,t)&&k.push(t):k.push(t)});else{var B=a([F,z],g/2,y/2,JSON.parse(u),I,L);n.mask?Object(i.a)(n.mask,B)&&k.push(B):k.push(B)}}}return Object(o.featureCollection)(k)}},function(t,e,n){"use strict";e.a=function(t,e,n){void 0===n&&(n={});return Object(r.a)(t,e,e,n)};var r=n(367)},function(t,e,n){"use strict";var r=n(8),i=n(96),o=n(0);e.a=function(t,e,n){void 0===n&&(n={});for(var a=[],s=e/Object(r.a)([t[0],t[1]],[t[2],t[1]],n)*(t[2]-t[0]),u=e/Object(r.a)([t[0],t[1]],[t[0],t[3]],n)*(t[3]-t[1]),c=0,l=t[0];l<=t[2];){for(var h=0,f=t[1];f<=t[3];){var p=null,d=null;c%2==0&&h%2==0?(p=Object(o.polygon)([[[l,f],[l,f+u],[l+s,f],[l,f]]],n.properties),d=Object(o.polygon)([[[l,f+u],[l+s,f+u],[l+s,f],[l,f+u]]],n.properties)):c%2==0&&h%2==1?(p=Object(o.polygon)([[[l,f],[l+s,f+u],[l+s,f],[l,f]]],n.properties),d=Object(o.polygon)([[[l,f],[l,f+u],[l+s,f+u],[l,f]]],n.properties)):h%2==0&&c%2==1?(p=Object(o.polygon)([[[l,f],[l,f+u],[l+s,f+u],[l,f]]],n.properties),d=Object(o.polygon)([[[l,f],[l+s,f+u],[l+s,f],[l,f]]],n.properties)):h%2==1&&c%2==1&&(p=Object(o.polygon)([[[l,f],[l,f+u],[l+s,f],[l,f]]],n.properties),d=Object(o.polygon)([[[l,f+u],[l+s,f+u],[l+s,f],[l,f+u]]],n.properties)),n.mask?(Object(i.a)(n.mask,p)&&a.push(p),Object(i.a)(n.mask,d)&&a.push(d)):(a.push(p),a.push(d)),f+=u,h++}c++,l+=s}return Object(o.featureCollection)(a)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(369),a=(r=o)&&r.__esModule?r:{default:r};var s=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=window.mergeOptions({duration:1e3,delay:0,loop:!1,easing:"linear"},r),o=this._from=e;this._to=n,this._update=i.update,this._complete=i.complete,this._begin=i.begin,this._animeLoop=!0===i.loop||i.loop===Number.MAX_VALUE;var s=this,u=window.mergeOptions({targets:e,duration:i.duration,easing:i.easing,begin:function(t){s._begin&&s._begin(t)},update:function(){s._update&&s._update(o)},complete:function(t){s._complete&&s._complete(t)},loop:i.loop},n);this._anime=(0,a.default)(u)}return i(t,[{key:"end",value:function(){this._anime&&(this._animeLoop?(this._anime.pause(),this._anime.seek(0)):this._anime.seek(this._anime.duration))}},{key:"duration",value:function(t){this._anime&&(this._anime.duration=t)}},{key:"clear",value:function(){this.end(),this._anime=null}},{key:"play",value:function(){this._anime&&this._anime.play()}},{key:"pause",value:function(){this._anime&&this._anime.pause()}},{key:"restart",value:function(){this._anime&&this._anime.restart()}},{key:"destroy",value:function(){this.end(),this._anime=null,this._begin=null,this._complete=null,this._update=null,this._from=null,this._to=null,this._animeLoop=null}}]),t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=function(){var t=new r.ARRAY_TYPE(9);r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0);return t[0]=1,t[4]=1,t[8]=1,t},e.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.clone=function(t){var e=new r.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromValues=function(t,e,n,i,o,a,s,u,c){var l=new r.ARRAY_TYPE(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=i,l[4]=o,l[5]=a,l[6]=s,l[7]=u,l[8]=c,l},e.set=function(t,e,n,r,i,o,a,s,u,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=c,t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],h=l*a-s*c,f=-l*o+s*u,p=c*o-a*u,d=n*h+r*f+i*p;if(!d)return null;return d=1/d,t[0]=h*d,t[1]=(-l*r+i*c)*d,t[2]=(s*r-i*a)*d,t[3]=f*d,t[4]=(l*n-i*u)*d,t[5]=(-s*n+i*o)*d,t[6]=p*d,t[7]=(-c*n+r*u)*d,t[8]=(a*n-r*o)*d,t},e.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8];return t[0]=a*l-s*c,t[1]=i*c-r*l,t[2]=r*s-i*a,t[3]=s*u-o*l,t[4]=n*l-i*u,t[5]=i*o-n*s,t[6]=o*c-a*u,t[7]=r*u-n*c,t[8]=n*a-r*o,t},e.determinant=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8];return e*(c*o-a*u)+n*(-c*i+a*s)+r*(u*i-o*s)},e.multiply=i,e.translate=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=n[0],p=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=f*r+p*a+c,t[7]=f*i+p*s+l,t[8]=f*o+p*u+h,t},e.rotate=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*r+f*a,t[1]=p*i+f*s,t[2]=p*o+f*u,t[3]=p*a-f*r,t[4]=p*s-f*i,t[5]=p*u-f*o,t[6]=c,t[7]=l,t[8]=h,t},e.scale=function(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,c=n*a,l=r*a,h=r*s,f=i*a,p=i*s,d=i*u,g=o*a,y=o*s,v=o*u;return t[0]=1-h-d,t[3]=l-v,t[6]=f+y,t[1]=l+v,t[4]=1-c-d,t[7]=p-g,t[2]=f-y,t[5]=p+g,t[8]=1-c-h,t},e.normalFromMat4=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],h=e[9],f=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*s-r*a,_=n*u-i*a,b=n*c-o*a,w=r*u-i*s,E=r*c-o*s,x=i*c-o*u,O=l*g-h*d,M=l*y-f*d,S=l*v-p*d,P=h*y-f*g,C=h*v-p*g,T=f*v-p*y,I=m*T-_*C+b*P+w*S-E*M+x*O;if(!I)return null;return I=1/I,t[0]=(s*T-u*C+c*P)*I,t[1]=(u*S-a*T-c*M)*I,t[2]=(a*C-s*S+c*O)*I,t[3]=(i*C-r*T-o*P)*I,t[4]=(n*T-i*S+o*M)*I,t[5]=(r*S-n*C-o*O)*I,t[6]=(g*x-y*E+v*w)*I,t[7]=(y*b-d*x-v*_)*I,t[8]=(d*E-g*b+v*m)*I,t},e.projection=function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},e.subtract=o,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},e.equals=function(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],_=e[7],b=e[8];return Math.abs(n-f)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-p)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(o-d)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(a-g)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-y)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(u-v)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(c-m)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(l-_)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(_))&&Math.abs(h-b)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(b))},n.d(e,"mul",function(){return a}),n.d(e,"sub",function(){return s});var r=n(19);function i(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=n[0],p=n[1],d=n[2],g=n[3],y=n[4],v=n[5],m=n[6],_=n[7],b=n[8];return t[0]=f*r+p*a+d*c,t[1]=f*i+p*s+d*l,t[2]=f*o+p*u+d*h,t[3]=g*r+y*a+v*c,t[4]=g*i+y*s+v*l,t[5]=g*o+y*u+v*h,t[6]=m*r+_*a+b*c,t[7]=m*i+_*s+b*l,t[8]=m*o+_*u+b*h,t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}var a=i,s=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=function(){var t=new r.ARRAY_TYPE(16);r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0);return t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.fromValues=function(t,e,n,i,o,a,s,u,c,l,h,f,p,d,g,y){var v=new r.ARRAY_TYPE(16);return v[0]=t,v[1]=e,v[2]=n,v[3]=i,v[4]=o,v[5]=a,v[6]=s,v[7]=u,v[8]=c,v[9]=l,v[10]=h,v[11]=f,v[12]=p,v[13]=d,v[14]=g,v[15]=y,v},e.set=function(t,e,n,r,i,o,a,s,u,c,l,h,f,p,d,g,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=c,t[9]=l,t[10]=h,t[11]=f,t[12]=p,t[13]=d,t[14]=g,t[15]=y,t},e.identity=i,e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],h=e[9],f=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*s-r*a,_=n*u-i*a,b=n*c-o*a,w=r*u-i*s,E=r*c-o*s,x=i*c-o*u,O=l*g-h*d,M=l*y-f*d,S=l*v-p*d,P=h*y-f*g,C=h*v-p*g,T=f*v-p*y,I=m*T-_*C+b*P+w*S-E*M+x*O;if(!I)return null;return I=1/I,t[0]=(s*T-u*C+c*P)*I,t[1]=(i*C-r*T-o*P)*I,t[2]=(g*x-y*E+v*w)*I,t[3]=(f*E-h*x-p*w)*I,t[4]=(u*S-a*T-c*M)*I,t[5]=(n*T-i*S+o*M)*I,t[6]=(y*b-d*x-v*_)*I,t[7]=(l*x-f*b+p*_)*I,t[8]=(a*C-s*S+c*O)*I,t[9]=(r*S-n*C-o*O)*I,t[10]=(d*E-g*b+v*m)*I,t[11]=(h*b-l*E-p*m)*I,t[12]=(s*M-a*P-u*O)*I,t[13]=(n*P-r*M+i*O)*I,t[14]=(g*_-d*w-y*m)*I,t[15]=(l*w-h*_+f*m)*I,t},e.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],h=e[9],f=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15];return t[0]=s*(f*v-p*y)-h*(u*v-c*y)+g*(u*p-c*f),t[1]=-(r*(f*v-p*y)-h*(i*v-o*y)+g*(i*p-o*f)),t[2]=r*(u*v-c*y)-s*(i*v-o*y)+g*(i*c-o*u),t[3]=-(r*(u*p-c*f)-s*(i*p-o*f)+h*(i*c-o*u)),t[4]=-(a*(f*v-p*y)-l*(u*v-c*y)+d*(u*p-c*f)),t[5]=n*(f*v-p*y)-l*(i*v-o*y)+d*(i*p-o*f),t[6]=-(n*(u*v-c*y)-a*(i*v-o*y)+d*(i*c-o*u)),t[7]=n*(u*p-c*f)-a*(i*p-o*f)+l*(i*c-o*u),t[8]=a*(h*v-p*g)-l*(s*v-c*g)+d*(s*p-c*h),t[9]=-(n*(h*v-p*g)-l*(r*v-o*g)+d*(r*p-o*h)),t[10]=n*(s*v-c*g)-a*(r*v-o*g)+d*(r*c-o*s),t[11]=-(n*(s*p-c*h)-a*(r*p-o*h)+l*(r*c-o*s)),t[12]=-(a*(h*y-f*g)-l*(s*y-u*g)+d*(s*f-u*h)),t[13]=n*(h*y-f*g)-l*(r*y-i*g)+d*(r*f-i*h),t[14]=-(n*(s*y-u*g)-a*(r*y-i*g)+d*(r*u-i*s)),t[15]=n*(s*f-u*h)-a*(r*f-i*h)+l*(r*u-i*s),t},e.determinant=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8],l=t[9],h=t[10],f=t[11],p=t[12],d=t[13],g=t[14],y=t[15];return(e*a-n*o)*(h*y-f*g)-(e*s-r*o)*(l*y-f*d)+(e*u-i*o)*(l*g-h*d)+(n*s-r*a)*(c*y-f*p)-(n*u-i*a)*(c*g-h*p)+(r*u-i*s)*(c*d-l*p)},e.multiply=o,e.translate=function(t,e,n){var r=n[0],i=n[1],o=n[2],a=void 0,s=void 0,u=void 0,c=void 0,l=void 0,h=void 0,f=void 0,p=void 0,d=void 0,g=void 0,y=void 0,v=void 0;e===t?(t[12]=e[0]*r+e[4]*i+e[8]*o+e[12],t[13]=e[1]*r+e[5]*i+e[9]*o+e[13],t[14]=e[2]*r+e[6]*i+e[10]*o+e[14],t[15]=e[3]*r+e[7]*i+e[11]*o+e[15]):(a=e[0],s=e[1],u=e[2],c=e[3],l=e[4],h=e[5],f=e[6],p=e[7],d=e[8],g=e[9],y=e[10],v=e[11],t[0]=a,t[1]=s,t[2]=u,t[3]=c,t[4]=l,t[5]=h,t[6]=f,t[7]=p,t[8]=d,t[9]=g,t[10]=y,t[11]=v,t[12]=a*r+l*i+d*o+e[12],t[13]=s*r+h*i+g*o+e[13],t[14]=u*r+f*i+y*o+e[14],t[15]=c*r+p*i+v*o+e[15]);return t},e.scale=function(t,e,n){var r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.rotate=function(t,e,n,i){var o=i[0],a=i[1],s=i[2],u=Math.sqrt(o*o+a*a+s*s),c=void 0,l=void 0,h=void 0,f=void 0,p=void 0,d=void 0,g=void 0,y=void 0,v=void 0,m=void 0,_=void 0,b=void 0,w=void 0,E=void 0,x=void 0,O=void 0,M=void 0,S=void 0,P=void 0,C=void 0,T=void 0,I=void 0,L=void 0,A=void 0;if(u<r.EPSILON)return null;o*=u=1/u,a*=u,s*=u,c=Math.sin(n),l=Math.cos(n),h=1-l,f=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],_=e[7],b=e[8],w=e[9],E=e[10],x=e[11],O=o*o*h+l,M=a*o*h+s*c,S=s*o*h-a*c,P=o*a*h-s*c,C=a*a*h+l,T=s*a*h+o*c,I=o*s*h+a*c,L=a*s*h-o*c,A=s*s*h+l,t[0]=f*O+y*M+b*S,t[1]=p*O+v*M+w*S,t[2]=d*O+m*M+E*S,t[3]=g*O+_*M+x*S,t[4]=f*P+y*C+b*T,t[5]=p*P+v*C+w*T,t[6]=d*P+m*C+E*T,t[7]=g*P+_*C+x*T,t[8]=f*I+y*L+b*A,t[9]=p*I+v*L+w*A,t[10]=d*I+m*L+E*A,t[11]=g*I+_*L+x*A,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t},e.rotateX=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[4],a=e[5],s=e[6],u=e[7],c=e[8],l=e[9],h=e[10],f=e[11];e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=o*i+c*r,t[5]=a*i+l*r,t[6]=s*i+h*r,t[7]=u*i+f*r,t[8]=c*i-o*r,t[9]=l*i-a*r,t[10]=h*i-s*r,t[11]=f*i-u*r,t},e.rotateY=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],c=e[8],l=e[9],h=e[10],f=e[11];e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=o*i-c*r,t[1]=a*i-l*r,t[2]=s*i-h*r,t[3]=u*i-f*r,t[8]=o*r+c*i,t[9]=a*r+l*i,t[10]=s*r+h*i,t[11]=u*r+f*i,t},e.rotateZ=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],c=e[4],l=e[5],h=e[6],f=e[7];e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=o*i+c*r,t[1]=a*i+l*r,t[2]=s*i+h*r,t[3]=u*i+f*r,t[4]=c*i-o*r,t[5]=l*i-a*r,t[6]=h*i-s*r,t[7]=f*i-u*r,t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromRotation=function(t,e,n){var i=n[0],o=n[1],a=n[2],s=Math.sqrt(i*i+o*o+a*a),u=void 0,c=void 0,l=void 0;if(s<r.EPSILON)return null;return i*=s=1/s,o*=s,a*=s,u=Math.sin(e),c=Math.cos(e),l=1-c,t[0]=i*i*l+c,t[1]=o*i*l+a*u,t[2]=a*i*l-o*u,t[3]=0,t[4]=i*o*l-a*u,t[5]=o*o*l+c,t[6]=a*o*l+i*u,t[7]=0,t[8]=i*a*l+o*u,t[9]=o*a*l-i*u,t[10]=a*a*l+c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromXRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromYRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromZRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromRotationTranslation=a,e.fromQuat2=function(t,e){var n=new r.ARRAY_TYPE(3),i=-e[0],o=-e[1],s=-e[2],u=e[3],c=e[4],l=e[5],h=e[6],f=e[7],p=i*i+o*o+s*s+u*u;p>0?(n[0]=2*(c*u+f*i+l*s-h*o)/p,n[1]=2*(l*u+f*o+h*i-c*s)/p,n[2]=2*(h*u+f*s+c*o-l*i)/p):(n[0]=2*(c*u+f*i+l*s-h*o),n[1]=2*(l*u+f*o+h*i-c*s),n[2]=2*(h*u+f*s+c*o-l*i));return a(t,e,n),t},e.getTranslation=function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},e.getScaling=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],u=e[8],c=e[9],l=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(o*o+a*a+s*s),t[2]=Math.sqrt(u*u+c*c+l*l),t},e.getRotation=function(t,e){var n=e[0]+e[5]+e[10],r=0;n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r);return t},e.fromRotationTranslationScale=function(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3],u=i+i,c=o+o,l=a+a,h=i*u,f=i*c,p=i*l,d=o*c,g=o*l,y=a*l,v=s*u,m=s*c,_=s*l,b=r[0],w=r[1],E=r[2];return t[0]=(1-(d+y))*b,t[1]=(f+_)*b,t[2]=(p-m)*b,t[3]=0,t[4]=(f-_)*w,t[5]=(1-(h+y))*w,t[6]=(g+v)*w,t[7]=0,t[8]=(p+m)*E,t[9]=(g-v)*E,t[10]=(1-(h+d))*E,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},e.fromRotationTranslationScaleOrigin=function(t,e,n,r,i){var o=e[0],a=e[1],s=e[2],u=e[3],c=o+o,l=a+a,h=s+s,f=o*c,p=o*l,d=o*h,g=a*l,y=a*h,v=s*h,m=u*c,_=u*l,b=u*h,w=r[0],E=r[1],x=r[2],O=i[0],M=i[1],S=i[2],P=(1-(g+v))*w,C=(p+b)*w,T=(d-_)*w,I=(p-b)*E,L=(1-(f+v))*E,A=(y+m)*E,N=(d+_)*x,k=(y-m)*x,j=(1-(f+g))*x;return t[0]=P,t[1]=C,t[2]=T,t[3]=0,t[4]=I,t[5]=L,t[6]=A,t[7]=0,t[8]=N,t[9]=k,t[10]=j,t[11]=0,t[12]=n[0]+O-(P*O+I*M+N*S),t[13]=n[1]+M-(C*O+L*M+k*S),t[14]=n[2]+S-(T*O+A*M+j*S),t[15]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,c=n*a,l=r*a,h=r*s,f=i*a,p=i*s,d=i*u,g=o*a,y=o*s,v=o*u;return t[0]=1-h-d,t[1]=l+v,t[2]=f-y,t[3]=0,t[4]=l-v,t[5]=1-c-d,t[6]=p+g,t[7]=0,t[8]=f+y,t[9]=p-g,t[10]=1-c-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.frustum=function(t,e,n,r,i,o,a){var s=1/(n-e),u=1/(i-r),c=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(a+o)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*c,t[15]=0,t},e.perspective=function(t,e,n,r,i){var o=1/Math.tan(e/2),a=void 0;t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=(i+r)*a,t[14]=2*i*r*a):(t[10]=-1,t[14]=-2*r);return t},e.perspectiveFromFieldOfView=function(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(a+s),c=2/(i+o);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(a-s)*u*.5,t[9]=(i-o)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},e.ortho=function(t,e,n,r,i,o,a){var s=1/(e-n),u=1/(r-i),c=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(a+o)*c,t[15]=1,t},e.lookAt=function(t,e,n,o){var a=void 0,s=void 0,u=void 0,c=void 0,l=void 0,h=void 0,f=void 0,p=void 0,d=void 0,g=void 0,y=e[0],v=e[1],m=e[2],_=o[0],b=o[1],w=o[2],E=n[0],x=n[1],O=n[2];if(Math.abs(y-E)<r.EPSILON&&Math.abs(v-x)<r.EPSILON&&Math.abs(m-O)<r.EPSILON)return i(t);f=y-E,p=v-x,d=m-O,g=1/Math.sqrt(f*f+p*p+d*d),a=b*(d*=g)-w*(p*=g),s=w*(f*=g)-_*d,u=_*p-b*f,(g=Math.sqrt(a*a+s*s+u*u))?(a*=g=1/g,s*=g,u*=g):(a=0,s=0,u=0);c=p*u-d*s,l=d*a-f*u,h=f*s-p*a,(g=Math.sqrt(c*c+l*l+h*h))?(c*=g=1/g,l*=g,h*=g):(c=0,l=0,h=0);return t[0]=a,t[1]=c,t[2]=f,t[3]=0,t[4]=s,t[5]=l,t[6]=p,t[7]=0,t[8]=u,t[9]=h,t[10]=d,t[11]=0,t[12]=-(a*y+s*v+u*m),t[13]=-(c*y+l*v+h*m),t[14]=-(f*y+p*v+d*m),t[15]=1,t},e.targetTo=function(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=r[0],u=r[1],c=r[2],l=i-n[0],h=o-n[1],f=a-n[2],p=l*l+h*h+f*f;p>0&&(p=1/Math.sqrt(p),l*=p,h*=p,f*=p);var d=u*f-c*h,g=c*l-s*f,y=s*h-u*l;(p=d*d+g*g+y*y)>0&&(p=1/Math.sqrt(p),d*=p,g*=p,y*=p);return t[0]=d,t[1]=g,t[2]=y,t[3]=0,t[4]=h*y-f*g,t[5]=f*d-l*y,t[6]=l*g-h*d,t[7]=0,t[8]=l,t[9]=h,t[10]=f,t[11]=0,t[12]=i,t[13]=o,t[14]=a,t[15]=1,t},e.str=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},e.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2)+Math.pow(t[9],2)+Math.pow(t[10],2)+Math.pow(t[11],2)+Math.pow(t[12],2)+Math.pow(t[13],2)+Math.pow(t[14],2)+Math.pow(t[15],2))},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},e.subtract=s,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]},e.equals=function(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],h=t[8],f=t[9],p=t[10],d=t[11],g=t[12],y=t[13],v=t[14],m=t[15],_=e[0],b=e[1],w=e[2],E=e[3],x=e[4],O=e[5],M=e[6],S=e[7],P=e[8],C=e[9],T=e[10],I=e[11],L=e[12],A=e[13],N=e[14],k=e[15];return Math.abs(n-_)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(i-b)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(o-w)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(a-E)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(s-x)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(x))&&Math.abs(u-O)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(O))&&Math.abs(c-M)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(l-S)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(h-P)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(P))&&Math.abs(f-C)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(C))&&Math.abs(p-T)<=r.EPSILON*Math.max(1,Math.abs(p),Math.abs(T))&&Math.abs(d-I)<=r.EPSILON*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(g-L)<=r.EPSILON*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(y-A)<=r.EPSILON*Math.max(1,Math.abs(y),Math.abs(A))&&Math.abs(v-N)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(N))&&Math.abs(m-k)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(k))},n.d(e,"mul",function(){return u}),n.d(e,"sub",function(){return c});var r=n(19);function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function o(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=e[9],p=e[10],d=e[11],g=e[12],y=e[13],v=e[14],m=e[15],_=n[0],b=n[1],w=n[2],E=n[3];return t[0]=_*r+b*s+w*h+E*g,t[1]=_*i+b*u+w*f+E*y,t[2]=_*o+b*c+w*p+E*v,t[3]=_*a+b*l+w*d+E*m,_=n[4],b=n[5],w=n[6],E=n[7],t[4]=_*r+b*s+w*h+E*g,t[5]=_*i+b*u+w*f+E*y,t[6]=_*o+b*c+w*p+E*v,t[7]=_*a+b*l+w*d+E*m,_=n[8],b=n[9],w=n[10],E=n[11],t[8]=_*r+b*s+w*h+E*g,t[9]=_*i+b*u+w*f+E*y,t[10]=_*o+b*c+w*p+E*v,t[11]=_*a+b*l+w*d+E*m,_=n[12],b=n[13],w=n[14],E=n[15],t[12]=_*r+b*s+w*h+E*g,t[13]=_*i+b*u+w*f+E*y,t[14]=_*o+b*c+w*p+E*v,t[15]=_*a+b*l+w*d+E*m,t}function a(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=r+r,u=i+i,c=o+o,l=r*s,h=r*u,f=r*c,p=i*u,d=i*c,g=o*c,y=a*s,v=a*u,m=a*c;return t[0]=1-(p+g),t[1]=h+m,t[2]=f-v,t[3]=0,t[4]=h-m,t[5]=1-(l+g),t[6]=d+y,t[7]=0,t[8]=f+v,t[9]=d-y,t[10]=1-(l+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}var u=o,c=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=s,e.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},e.setAxisAngle=u,e.getAxisAngle=function(t,e){var n=2*Math.acos(e[3]),i=Math.sin(n/2);i>r.EPSILON?(t[0]=e[0]/i,t[1]=e[1]/i,t[2]=e[2]/i):(t[0]=1,t[1]=0,t[2]=0);return n},e.multiply=c,e.rotateX=function(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+a*s,t[1]=i*u+o*s,t[2]=o*u-i*s,t[3]=a*u-r*s,t},e.rotateY=function(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u-o*s,t[1]=i*u+a*s,t[2]=o*u+r*s,t[3]=a*u-i*s,t},e.rotateZ=function(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+i*s,t[1]=i*u-r*s,t[2]=o*u+a*s,t[3]=a*u-o*s,t},e.calculateW=function(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t},e.slerp=l,e.random=function(t){var e=r.RANDOM(),n=r.RANDOM(),i=r.RANDOM(),o=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=o*Math.sin(2*Math.PI*n),t[1]=o*Math.cos(2*Math.PI*n),t[2]=a*Math.sin(2*Math.PI*i),t[3]=a*Math.cos(2*Math.PI*i),t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o,s=a?1/a:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=o*s,t},e.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},e.fromMat3=h,e.fromEuler=function(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var o=Math.sin(e),a=Math.cos(e),s=Math.sin(n),u=Math.cos(n),c=Math.sin(r),l=Math.cos(r);return t[0]=o*u*l-a*s*c,t[1]=a*s*l+o*u*c,t[2]=a*u*c-o*s*l,t[3]=a*u*l+o*s*c,t},e.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},n.d(e,"clone",function(){return m}),n.d(e,"fromValues",function(){return _}),n.d(e,"copy",function(){return b}),n.d(e,"set",function(){return w}),n.d(e,"add",function(){return E}),n.d(e,"mul",function(){return x}),n.d(e,"scale",function(){return O}),n.d(e,"dot",function(){return M}),n.d(e,"lerp",function(){return S}),n.d(e,"length",function(){return P}),n.d(e,"len",function(){return C}),n.d(e,"squaredLength",function(){return T}),n.d(e,"sqrLen",function(){return I}),n.d(e,"normalize",function(){return L}),n.d(e,"exactEquals",function(){return A}),n.d(e,"equals",function(){return N}),n.d(e,"rotationTo",function(){return k}),n.d(e,"sqlerp",function(){return j}),n.d(e,"setAxes",function(){return R});var r=n(19),i=n(184),o=n(187),a=n(188);function s(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function u(t,e,n){n*=.5;var r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function c(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1],c=n[2],l=n[3];return t[0]=r*l+a*s+i*c-o*u,t[1]=i*l+a*u+o*s-r*c,t[2]=o*l+a*c+r*u-i*s,t[3]=a*l-r*s-i*u-o*c,t}function l(t,e,n,i){var o=e[0],a=e[1],s=e[2],u=e[3],c=n[0],l=n[1],h=n[2],f=n[3],p=void 0,d=void 0,g=void 0,y=void 0,v=void 0;return(d=o*c+a*l+s*h+u*f)<0&&(d=-d,c=-c,l=-l,h=-h,f=-f),1-d>r.EPSILON?(p=Math.acos(d),g=Math.sin(p),y=Math.sin((1-i)*p)/g,v=Math.sin(i*p)/g):(y=1-i,v=i),t[0]=y*o+v*c,t[1]=y*a+v*l,t[2]=y*s+v*h,t[3]=y*u+v*f,t}function h(t,e){var n=e[0]+e[4]+e[8],r=void 0;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var o=(i+1)%3,a=(i+2)%3;r=Math.sqrt(e[3*i+i]-e[3*o+o]-e[3*a+a]+1),t[i]=.5*r,r=.5/r,t[3]=(e[3*o+a]-e[3*a+o])*r,t[o]=(e[3*o+i]+e[3*i+o])*r,t[a]=(e[3*a+i]+e[3*i+a])*r}return t}var f,p,d,g,y,v,m=a.clone,_=a.fromValues,b=a.copy,w=a.set,E=a.add,x=c,O=a.scale,M=a.dot,S=a.lerp,P=a.length,C=P,T=a.squaredLength,I=T,L=a.normalize,A=a.exactEquals,N=a.equals,k=(f=o.create(),p=o.fromValues(1,0,0),d=o.fromValues(0,1,0),function(t,e,n){var r=o.dot(e,n);return r<-.999999?(o.cross(f,p,e),o.len(f)<1e-6&&o.cross(f,d,e),o.normalize(f,f),u(t,f,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(o.cross(f,e,n),t[0]=f[0],t[1]=f[1],t[2]=f[2],t[3]=1+r,L(t,t))}),j=(g=s(),y=s(),function(t,e,n,r,i,o){return l(g,e,i,o),l(y,n,r,o),l(t,g,y,2*o*(1-o)),t}),R=(v=i.create(),function(t,e,n,r){return v[0]=n[0],v[3]=n[1],v[6]=n[2],v[1]=r[0],v[4]=r[1],v[7]=r[2],v[2]=-e[0],v[5]=-e[1],v[8]=-e[2],L(t,h(t,v))})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=i,e.clone=function(t){var e=new r.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=o,e.fromValues=a,e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=s,e.multiply=u,e.divide=c,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t},e.distance=l,e.squaredDistance=h,e.squaredLength=f,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=p,e.dot=d,e.cross=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2];return t[0]=i*u-o*s,t[1]=o*a-r*u,t[2]=r*s-i*a,t},e.lerp=function(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t},e.hermite=function(t,e,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,u=a*(o-2)+o,c=a*(o-1),l=a*(3-2*o);return t[0]=e[0]*s+n[0]*u+r[0]*c+i[0]*l,t[1]=e[1]*s+n[1]*u+r[1]*c+i[1]*l,t[2]=e[2]*s+n[2]*u+r[2]*c+i[2]*l,t},e.bezier=function(t,e,n,r,i,o){var a=1-o,s=a*a,u=o*o,c=s*a,l=3*o*s,h=3*u*a,f=u*o;return t[0]=e[0]*c+n[0]*l+r[0]*h+i[0]*f,t[1]=e[1]*c+n[1]*l+r[1]*h+i[1]*f,t[2]=e[2]*c+n[2]*l+r[2]*h+i[2]*f,t},e.random=function(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI,i=2*r.RANDOM()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t},e.transformQuat=function(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],u=e[1],c=e[2],l=i*c-o*u,h=o*s-r*c,f=r*u-i*s,p=i*f-o*h,d=o*l-r*f,g=r*h-i*l,y=2*a;return l*=y,h*=y,f*=y,p*=2,d*=2,g*=2,t[0]=s+l+p,t[1]=u+h+d,t[2]=c+f+g,t},e.rotateX=function(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},e.rotateY=function(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},e.rotateZ=function(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},e.angle=function(t,e){var n=a(t[0],t[1],t[2]),r=a(e[0],e[1],e[2]);p(n,n),p(r,r);var i=d(n,r);return i>1?0:i<-1?Math.PI:Math.acos(i)},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],s=e[1],u=e[2];return Math.abs(n-a)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-u)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(u))},n.d(e,"sub",function(){return y}),n.d(e,"mul",function(){return v}),n.d(e,"div",function(){return m}),n.d(e,"dist",function(){return _}),n.d(e,"sqrDist",function(){return b}),n.d(e,"len",function(){return w}),n.d(e,"sqrLen",function(){return E}),n.d(e,"forEach",function(){return x});var r=n(19);function i(){var t=new r.ARRAY_TYPE(3);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function a(t,e,n){var i=new r.ARRAY_TYPE(3);return i[0]=t,i[1]=e,i[2]=n,i}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function l(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function h(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function f(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function p(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function d(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}var g,y=s,v=u,m=c,_=l,b=h,w=o,E=f,x=(g=i(),function(t,e,n,r,i,o){var a=void 0,s=void 0;for(e||(e=3),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)g[0]=t[a],g[1]=t[a+1],g[2]=t[a+2],i(g,g,o),t[a]=g[0],t[a+1]=g[1],t[a+2]=g[2];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=i,e.clone=function(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},e.fromValues=function(t,e,n,i){var o=new r.ARRAY_TYPE(4);return o[0]=t,o[1]=e,o[2]=n,o[3]=i,o},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},e.set=function(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},e.subtract=o,e.multiply=a,e.divide=s,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},e.distance=u,e.squaredDistance=c,e.length=l,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o;a>0&&(a=1/Math.sqrt(a),t[0]=n*a,t[1]=r*a,t[2]=i*a,t[3]=o*a);return t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},e.lerp=function(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t[3]=s+r*(n[3]-s),t},e.random=function(t,e){var n,i,o,a,s,u;e=e||1;do{n=2*r.RANDOM()-1,i=2*r.RANDOM()-1,s=n*n+i*i}while(s>=1);do{o=2*r.RANDOM()-1,a=2*r.RANDOM()-1,u=o*o+a*a}while(u>=1);var c=Math.sqrt((1-s)/u);return t[0]=e*n,t[1]=e*i,t[2]=e*o*c,t[3]=e*a*c,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,t},e.transformQuat=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2],c=n[3],l=c*r+s*o-u*i,h=c*i+u*r-a*o,f=c*o+a*i-s*r,p=-a*r-s*i-u*o;return t[0]=l*c+p*-a+h*-u-f*-s,t[1]=h*c+p*-s+f*-a-l*-u,t[2]=f*c+p*-u+l*-s-h*-a,t[3]=e[3],t},e.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},e.equals=function(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=e[0],u=e[1],c=e[2],l=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-c)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(a-l)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))},n.d(e,"sub",function(){return p}),n.d(e,"mul",function(){return d}),n.d(e,"div",function(){return g}),n.d(e,"dist",function(){return y}),n.d(e,"sqrDist",function(){return v}),n.d(e,"len",function(){return m}),n.d(e,"sqrLen",function(){return _}),n.d(e,"forEach",function(){return b});var r=n(19);function i(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function a(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function s(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function u(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return Math.sqrt(n*n+r*r+i*i+o*o)}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return n*n+r*r+i*i+o*o}function l(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.sqrt(e*e+n*n+r*r+i*i)}function h(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}var f,p=o,d=a,g=s,y=u,v=c,m=l,_=h,b=(f=i(),function(t,e,n,r,i,o){var a=void 0,s=void 0;for(e||(e=4),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)f[0]=t[a],f[1]=t[a+1],f[2]=t[a+2],f[3]=t[a+3],i(f,f,o),t[a]=f[0],t[a+1]=f[1],t[a+2]=f[2],t[a+3]=f[3];return t})},function(t,e,n){"use strict";function r(t){return"string"==typeof t}function i(t){return Array.isArray(t)}function o(t){return t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY}function a(t){return"number"==typeof t&&!isNaN(t)&&!o(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.isNull=function(t){return void 0===t||null===t},e.isString=r,e.emptyString=function(t){return""===t},e.nonEmptyString=function(t){return r(0)&&""!==t},e.isArray=i,e.emptyArray=function(t){return i(t)&&0===t.length},e.nonEmptyArray=function(t){return i(t)&&0!==t.length},e.isInfinity=o,e.isNumber=a,e.isInteger=function(t){return a(t)&&t%1==0},e.isFunction=function(t){return"function"==typeof t},e.isObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.Point=o,e.toPoint=s;var i=n(52);function o(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var a=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function s(t,e,n){return t instanceof o?t:(0,i.isArray)(t)?new o(t[0],t[1]):void 0===t||null===t?t:"object"===(void 0===t?"undefined":r(t))&&"x"in t&&"y"in t?new o(t.x,t.y):new o(t,e,n)}o.prototype={clone:function(){return new o(this.x,this.y)},add:function(t){return this.clone()._add(s(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(s(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new o(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new o(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=a(this.x),this.y=a(this.y),this},distanceTo:function(t){var e=(t=s(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=s(t)).x===this.x&&t.y===this.y},contains:function(t){return t=s(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+(0,i.formatNum)(this.x)+", "+(0,i.formatNum)(this.y)+")"}}},function(t,e,n){"use strict";var r,i,o;function a(t,e,n,r){return s(t).then(e,n,r)}function s(t){var e,n,r;return t instanceof u?e=t:h(t)?(n=l(),t.then(function(t){n.resolve(t)},function(t){n.reject(t)},function(t){n.progress(t)}),e=n.promise):(r=t,e=new u(function(t){try{return s(t?t(r):r)}catch(t){return c(t)}})),e}function u(t){this.then=t}function c(t){return new u(function(e,n){try{return n?s(n(t)):c(t)}catch(t){return c(t)}})}function l(){var t,e,n,r,i,a;return t=new u(h),e=[],n=[],r=function(t,r,i){var o,a;return o=l(),a="function"==typeof i?function(t){try{o.progress(i(t))}catch(t){o.progress(t)}}:function(t){o.progress(t)},e.push(function(e){e.then(t,r).then(o.resolve,o.reject,a)}),n.push(a),o.promise},i=function(t){return g(n,t),t},a=function(t){return t=s(t),r=t.then,a=s,i=v,g(e,t),n=e=o,t},{then:h,resolve:f,reject:p,progress:d,promise:t,resolver:{resolve:f,reject:p,progress:d}};function h(t,e,n){return r(t,e,n)}function f(t){return a(t)}function p(t){return a(c(t))}function d(t){return i(t)}}function h(t){return t&&"function"==typeof t.then}function f(t,e,n,r,i){return y(2,arguments),a(t,function(t){var o,s,u,c,h,f,p,d,g,y;if(g=t.length>>>0,o=Math.max(0,Math.min(e,g)),u=[],s=g-o+1,c=[],h=l(),o)for(d=h.progress,p=function(t){c.push(t),--s||(f=p=v,h.reject(c))},f=function(t){u.push(t),--o||(f=p=v,h.resolve(u))},y=0;y<g;++y)y in t&&a(t[y],_,m,d);else h.resolve(u);return h.then(n,r,i);function m(t){p(t)}function _(t){f(t)}})}function p(t,e,n,r){return y(1,arguments),d(t,m).then(e,n,r)}function d(t,e){return a(t,function(t){var n,r,i,o,s,u;if(i=r=t.length>>>0,n=[],u=l(),i)for(o=function(t,r){a(t,e).then(function(t){n[r]=t,--i||u.resolve(n)},u.reject)},s=0;s<r;s++)s in t?o(t[s],s):--i;else u.resolve(n);return u.promise})}function g(t,e){for(var n,r=0;n=t[r++];)n(e)}function y(t,e){for(var n,r=e.length;r>t;)if(null!=(n=e[--r])&&"function"!=typeof n)throw new Error("arg "+r+" must be a function")}function v(){}function m(t){return t}Object.defineProperty(e,"__esModule",{value:!0}),a.defer=l,a.resolve=s,a.reject=function(t){return a(t,c)},a.join=function(){return d(arguments,m)},a.all=p,a.map=d,a.reduce=function(t,e){var n=i.call(arguments,1);return a(t,function(t){var i;return i=t.length,n[0]=function(t,n,r){return a(t,function(t){return a(n,function(n){return e(t,n,r,i)})})},r.apply(t,n)})},a.any=function(t,e,n,r){return f(t,1,function(t){return e?e(t[0]):t[0]},n,r)},a.some=f,a.chain=function(t,e,n){var r=arguments.length>2;return a(t,function(t){return t=r?n:t,e.resolve(t),t},function(t){return e.reject(t),c(t)},e.progress)},a.isPromise=h,u.prototype={always:function(t,e){return this.then(t,t,e)},otherwise:function(t){return this.then(o,t)},yield:function(t){return this.then(function(){return t})},spread:function(t){return this.then(function(e){return p(e,function(e){return t.apply(o,e)})})}},i=[].slice,r=[].reduce||function(t){var e,n,r,i,o;if(o=0,i=(e=Object(this)).length>>>0,(n=arguments).length<=1)for(;;){if(o in e){r=e[o++];break}if(++o>=i)throw new TypeError}else r=n[1];for(;o<i;++o)o in e&&(r=t(r,e[o],o,e));return r},e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(39),o=(r=i)&&r.__esModule?r:{default:r};var a=/^blob:/i;e.default=function(t){return o.default.typeOf.string("uri",t),a.test(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(39),o=(r=i)&&r.__esModule?r:{default:r};var a=/^data:/i;e.default=function(t){return o.default.typeOf.string("uri",t),a.test(t)}},function(t,e,n){"use strict";var r,i,o;function a(t,e,n,r){return s(t).then(e,n,r)}function s(t){var e,n,r;return t instanceof u?e=t:h(t)?(n=l(),t.then(function(t){n.resolve(t)},function(t){n.reject(t)},function(t){n.progress(t)}),e=n.promise):(r=t,e=new u(function(t){try{return s(t?t(r):r)}catch(t){return c(t)}})),e}function u(t){this.then=t}function c(t){return new u(function(e,n){try{return n?s(n(t)):c(t)}catch(t){return c(t)}})}function l(){var t,e,n,r,i,a;return t=new u(h),e=[],n=[],r=function(t,r,i){var o,a;return o=l(),a="function"==typeof i?function(t){try{o.progress(i(t))}catch(t){o.progress(t)}}:function(t){o.progress(t)},e.push(function(e){e.then(t,r).then(o.resolve,o.reject,a)}),n.push(a),o.promise},i=function(t){return g(n,t),t},a=function(t){return t=s(t),r=t.then,a=s,i=v,g(e,t),n=e=o,t},{then:h,resolve:f,reject:p,progress:d,promise:t,resolver:{resolve:f,reject:p,progress:d}};function h(t,e,n){return r(t,e,n)}function f(t){return a(t)}function p(t){return a(c(t))}function d(t){return i(t)}}function h(t){return t&&"function"==typeof t.then}function f(t,e,n,r,i){return y(2,arguments),a(t,function(t){var o,s,u,c,h,f,p,d,g,y;if(g=t.length>>>0,o=Math.max(0,Math.min(e,g)),u=[],s=g-o+1,c=[],h=l(),o)for(d=h.progress,p=function(t){c.push(t),--s||(f=p=v,h.reject(c))},f=function(t){u.push(t),--o||(f=p=v,h.resolve(u))},y=0;y<g;++y)y in t&&a(t[y],_,m,d);else h.resolve(u);return h.then(n,r,i);function m(t){p(t)}function _(t){f(t)}})}function p(t,e,n,r){return y(1,arguments),d(t,m).then(e,n,r)}function d(t,e){return a(t,function(t){var n,r,i,o,s,u;if(i=r=t.length>>>0,n=[],u=l(),i)for(o=function(t,r){a(t,e).then(function(t){n[r]=t,--i||u.resolve(n)},u.reject)},s=0;s<r;s++)s in t?o(t[s],s):--i;else u.resolve(n);return u.promise})}function g(t,e){for(var n,r=0;n=t[r++];)n(e)}function y(t,e){for(var n,r=e.length;r>t;)if(null!=(n=e[--r])&&"function"!=typeof n)throw new Error("arg "+r+" must be a function")}function v(){}function m(t){return t}Object.defineProperty(e,"__esModule",{value:!0}),a.defer=l,a.resolve=s,a.reject=function(t){return a(t,c)},a.join=function(){return d(arguments,m)},a.all=p,a.map=d,a.reduce=function(t,e){var n=i.call(arguments,1);return a(t,function(t){var i;return i=t.length,n[0]=function(t,n,r){return a(t,function(t){return a(n,function(n){return e(t,n,r,i)})})},r.apply(t,n)})},a.any=function(t,e,n,r){return f(t,1,function(t){return e?e(t[0]):t[0]},n,r)},a.some=f,a.chain=function(t,e,n){var r=arguments.length>2;return a(t,function(t){return t=r?n:t,e.resolve(t),t},function(t){return e.reject(t),c(t)},e.progress)},a.isPromise=h,u.prototype={always:function(t,e){return this.then(t,t,e)},otherwise:function(t){return this.then(o,t)},yield:function(t){return this.then(function(){return t})},spread:function(t){return this.then(function(e){return p(e,function(e){return t.apply(o,e)})})}},i=[].slice,r=[].reduce||function(t){var e,n,r,i,o;if(o=0,i=(e=Object(this)).length>>>0,(n=arguments).length<=1)for(;;){if(o in e){r=e[o++];break}if(++o>=i)throw new TypeError}else r=n[1];for(;o<i;++o)o in e&&(r=t(r,e[o],o,e));return r},e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(39)),i=o(n(6));function o(t){return t&&t.__esModule?t:{default:t}}function a(){this._listeners=[],this._scopes=[],this._toRemove=[],this._insideRaiseEvent=!1}function s(t,e){return e-t}Object.defineProperties(a.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}}),a.prototype.addEventListener=function(t,e){r.default.typeOf.func("listener",t),this._listeners.push(t),this._scopes.push(e);var n=this;return function(){n.removeEventListener(t,e)}},a.prototype.removeEventListener=function(t,e){r.default.typeOf.func("listener",t);for(var n=this._listeners,i=this._scopes,o=-1,a=0;a<n.length;a++)if(n[a]===t&&i[a]===e){o=a;break}return-1!==o&&(this._insideRaiseEvent?(this._toRemove.push(o),n[o]=void 0,i[o]=void 0):(n.splice(o,1),i.splice(o,1)),!0)},a.prototype.raiseEvent=function(){var t;this._insideRaiseEvent=!0;var e=this._listeners,n=this._scopes,r=e.length;for(t=0;t<r;t++){var o=e[t];(0,i.default)(o)&&e[t].apply(n[t],arguments)}var a=this._toRemove;if((r=a.length)>0){for(a.sort(s),t=0;t<r;t++){var u=a[t];e.splice(u,1),n.splice(u,1)}a.length=0}this._insideRaiseEvent=!1},e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=u(n(69)),o=u(n(427)),a=n(4),s=(u(n(7)),n(23));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,window.mergeOptions({offset:{x:10,y:50},position:a.JSControlPosition.LEFT_TOP},t)))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"onAdd",value:function(t){var e=t._baseLayerManager;e._baseLayerControl=this,e.removeAllImageryProviders(),e.createImageryProviderViewModels(),this._baseLayerPicker=new o.default(t,{imageryProviderViewModels:e._imageryProviderViewModels,selectedImageryProviderViewModel:e._getImageryProviderViewModelByType(t._options.imageryProvider)});var n=this._baseLayerPicker._container,r=n.getElementsByClassName("jsmap2d-baseLayerPicker-dropDown")[0];switch(this._options.position){case a.JSControlPosition.RIGHT_TOP:(0,s.addStyle)(r,{top:"0px",right:"40px"});break;case a.JSControlPosition.LEFT_BOTTOM:(0,s.addStyle)(r,{bottom:"2px",left:"40px"});break;case a.JSControlPosition.RIGHT_BOTTOM:(0,s.addStyle)(r,{bottom:"2px",right:"40px"});break;default:(0,s.addStyle)(r,{top:"-38px",left:"40px",position:"relative"})}return n}},{key:"destroy",value:function(){this._baseLayerPicker.destroy(),this._baseLayerPicker=null,function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=u(n(433)),i=u(n(70)),o=u(n(198)),a=u(n(434)),s=u(n(436));function u(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if(!(0,i.default)(t))throw new o.default("func is required.");e=(0,r.default)(e,!0);var n=new a.default,u=new a.default;function c(){if(!c.canExecute)throw new o.default("Cannot execute command, canExecute is false.");var e,r={args:arguments,cancel:!1};return n.raiseEvent(r),r.cancel||(e=t.apply(null,arguments),u.raiseEvent(e)),e}return c.canExecute=e,s.default.track(c,["canExecute"]),Object.defineProperties(c,{beforeExecute:{value:n},afterExecute:{value:u}}),c}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(70),o=(r=i)&&r.__esModule?r:{default:r};function a(t){var e;this.name="DeveloperError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}(0,o.default)(Object.create)&&(a.prototype=Object.create(Error.prototype),a.prototype.constructor=a),a.prototype.toString=function(){var t=this.name+": "+this.message;return(0,o.default)(this.stack)&&(t+="\n"+this.stack.toString()),t},a.throwInstantiationError=function(){throw new a("This function defines an interface and should not be called directly.")},e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(5),a=(r=o)&&r.__esModule?r:{default:r};var s=52.35987755982988,u=3.141592653589793,c=6378245,l=.006693421622965943,h=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"BD09ToGCJ02",value:function(t,e){var n=t-.0065,r=e-.006,i=Math.sqrt(n*n+r*r)-2e-5*Math.sin(r*s),o=Math.atan2(r,n)-3e-6*Math.cos(n*s);return[i*Math.cos(o),i*Math.sin(o)]}},{key:"GCJ02ToBD09",value:function(t,e){var n=Math.sqrt(t*t+e*e)+2e-5*Math.sin(e*s),r=Math.atan2(e,t)+3e-6*Math.cos(t*s);return[n*Math.cos(r)+.0065,n*Math.sin(r)+.006]}},{key:"WGS84ToGCJ02",value:function(t,e){if(this.outOfChina(t,e))return[t,e];var n=this.transformLat(t-105,e-35),r=this.transformLng(t-105,e-35),i=e/180*u,o=Math.sin(i);o=1-l*o*o;var a=Math.sqrt(o);return n=180*n/(c*(1-l)/(o*a)*u),[t+(r=180*r/(c/a*Math.cos(i)*u)),e+n]}},{key:"GCJ02ToWGS84",value:function(t,e){if(this.outOfChina(t,e))return[t,e];var n=this.transformLat(t-105,e-35),r=this.transformLng(t-105,e-35),i=e/180*u,o=Math.sin(i);o=1-l*o*o;var a=Math.sqrt(o);return n=180*n/(c*(1-l)/(o*a)*u),[2*t-(t+(r=180*r/(c/a*Math.cos(i)*u))),2*e-(e+n)]}},{key:"transformLat",value:function(t,e){var n=2*t-100+3*e+.2*e*e+.1*t*e+.2*Math.sqrt(Math.abs(t));return n+=2*(20*Math.sin(6*t*u)+20*Math.sin(2*t*u))/3,n+=2*(20*Math.sin(e*u)+40*Math.sin(e/3*u))/3,n+=2*(160*Math.sin(e/12*u)+320*Math.sin(e*u/30))/3}},{key:"transformLng",value:function(t,e){var n=300+t+2*e+.1*t*t+.1*t*e+.1*Math.sqrt(Math.abs(t));return n+=2*(20*Math.sin(6*t*u)+20*Math.sin(2*t*u))/3,n+=2*(20*Math.sin(t*u)+40*Math.sin(t/3*u))/3,n+=2*(150*Math.sin(t/12*u)+300*Math.sin(t/30*u))/3}},{key:"cgs2Project",value:function(t){var e=t.x,n=t.y,r=20037508.34*e/180,i=Math.log(Math.tan((90+n)*Math.PI/360))/Math.PI*20037508.34;return new a.default(r,i,t.z)}},{key:"project2Cgs",value:function(t){var e=t.x,n=t.y,r=e/20037508.34*180,i=Math.atan(Math.pow(Math.E,n/20037508.34*Math.PI))/Math.PI*360-90;return new a.default(r,i,t.z)}},{key:"outOfChina",value:function(t,e){return!(t>73.66&&t<135.05&&e>3.86&&e<53.55)}}]),t}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(189);function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function a(t,e,n){for(var r=arguments.length,o=Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];window.assert((0,i.isString)(n));var s=e[n];s&&s.forEach(function(e){var n=e.ctx;e.fn.apply(n||t,o)})}function s(t,e){var n=t[e];if(n)for(var r=0;r<n.length;r++)delete n[r].fn;delete t[e]}function u(t,e){return!!t[e]}var c=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._events={},this._onceEvents={}}return r(t,[{key:"on",value:function(t,e,n){return this.on_(this._events,t,e,n)}},{key:"off",value:function(t,e,n){var r=this;window.assert((0,i.isString)(t));var o=t.split(",");return o.length>0&&o.map(function(t){!function(t,e,n,r,i){var o=e[n];if(o)if(r){if(i===t&&(i=null),o)for(var a=0;a<o.length;a++){var s=o[a],u=s.fn;if(s.ctx===i&&u===r)return void o.splice(a,1)}}else{for(var c=0;c<o.length;c++)delete o[c].fn;delete e[n]}}(r,r._events,t,e,n)}),this}},{key:"fire",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return a.apply(void 0,[this,this._events,t].concat(o(n))),u(this._onceEvents,t)&&(a.apply(void 0,[this,this._onceEvents,t].concat(o(n))),s(this._onceEvents,t)),this}},{key:"once",value:function(t,e,n){return this.on_(this._onceEvents,t,e,n)}},{key:"cleanListens",value:function(t){return s(this._events,t),u(this._onceEvents,t)&&s(this._onceEvents,t),this}},{key:"destroy",value:function(){for(var t in this._events)this.cleanListens(t);for(var e in this._onceEvents)this.cleanListens(e)}},{key:"listens",value:function(t){return window.assert((0,i.isString)(t)),u(this._events,t)||u(this._onceEvents,t)}},{key:"on_",value:function(t,e,n,r){var o=this;window.assert((0,i.isString)(e)),window.assert((0,i.isFunction)(n));var a=e.split(",");return a.length>0&&a.map(function(e){!function(t,e,n,r,i){var o=e[n];o||(o=[],e[n]=o),i===t&&(i=null);var a={fn:r,ctx:i};if(o){var s=!0,u=!1,c=void 0;try{for(var l,h=o[Symbol.iterator]();!(s=(l=h.next()).done);s=!0){var f=l.value,p=f.fn,d=f.ctx;if(r===p&&i===d)return}}catch(t){u=!0,c=t}finally{try{!s&&h.return&&h.return()}finally{if(u)throw c}}}o.push(a)}(o,t,e,n,r)}),this}}]),t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSDrawSimpleShape=void 0;var r=n(105),i=n(30),o=window.L;e.JSDrawSimpleShape=r.JSDrawFeature.extend({options:{repeatMode:!1},initialize:function(t,e){r.JSDrawFeature.prototype.initialize.call(this,t,e)},addHooks:function(){r.JSDrawFeature.prototype.addHooks.call(this),this._map&&(this._container.style.cursor="crosshair",this._mouseMarker||(this._mouseMarker=o.marker(this._map.getCenter(),{icon:o.divIcon({className:"jsmap2d-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on(i.JSMapEvents.CLICK,this._onMouseDown,this).on(i.JSMapEvents.MOUSEMOVE,this._onMouseMove,this).on(i.JSMapEvents.CONTEXTMENU,this._onRightMouseDown,this).addTo(this._map),this._map.on(i.JSMapEvents.MOUSEMOVE,this._onMouseMove,this).on(i.JSMapEvents.TOUCHMOVE,this._onMouseMove,this).on(i.JSMapEvents.CONTEXTMENU,this._onRightMouseDown,this),document.addEventListener(i.JSMapEvents.TOUCHSTART,o.DomEvent.preventDefault,{passive:!1}))},removeHooks:function(){r.JSDrawFeature.prototype.removeHooks.call(this),this._map&&(this._container.style.cursor="",this._map.off(i.JSMapEvents.MOUSEMOVE,this._onMouseMove,this).off(i.JSMapEvents.TOUCHMOVE,this._onMouseMove,this).off(i.JSMapEvents.CONTEXTMENU,this._onRightMouseDown,this),this._mouseMarker.off(i.JSMapEvents.MOUSEMOVE,this._onMouseMove,this).off(i.JSMapEvents.CLICK,this._onMouseDown,this).off(i.JSMapEvents.CONTEXTMENU,this._onRightMouseDown,this),this._map.removeLayer(this._mouseMarker),document.removeEventListener(i.JSMapEvents.TOUCHSTART,o.DomEvent.preventDefault),this._shape&&(this._map.removeLayer(this._shape),this._map.removeLayer(this._firstPointNode),this._map.removeLayer(this._lastPointNode),delete this._lastPointNode,delete this._firstPointNode,delete this._shape)),this._isDrawing=!1},finishDrawing:function(){this._shape&&(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_onRightMouseDown:function(){this.finishDrawing()},_onMouseMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent),n=this._map.layerPointToLatLng(e);this._mouseMarker.setLatLng(n),this._isDrawing&&this._drawShape(n)},_onMouseDown:function(t){if(this._isDrawing=!0,!this._startLatLng){var e=this._map.mouseEventToLayerPoint(t.originalEvent),n=this._map.layerPointToLatLng(e);this._startLatLng=n,this._mouseMarker.setLatLng(n)}}})},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII="},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSDrawPolyline=void 0;var r,i=n(105),o=n(30),a=n(31),s=n(20),u=(r=s)&&r.__esModule?r:{default:r};var c=window.L,l=e.JSDrawPolyline=i.JSDrawFeature.extend({statics:{TYPE:"polyline"},Poly:c.Polyline,options:{allowIntersection:!0,repeatMode:!1,drawError:{color:"#b00b00",timeout:2500},icon:new c.DivIcon({iconSize:new c.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new c.DivIcon({iconSize:new c.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#F00",weight:2,opacity:.5,fill:!1,clickable:!0},markerOptions:{radius:1,color:"#0FF"}},initialize:function(t,e){c.Browser.touch&&(this.options.icon=this.options.touchIcon),e&&e.drawError&&(e.drawError=c.Util.extend({},this.options.drawError,e.drawError)),this.type=l.TYPE,i.JSDrawFeature.prototype.initialize.call(this,t,e)},addHooks:function(){i.JSDrawFeature.prototype.addHooks.call(this),this._map&&(this._markers=[],this._markerGroup=new c.LayerGroup,this._map.addLayer(this._markerGroup),this._poly=new c.Polyline([],this.options.shapeOptions),this._mouseMarker||(this._mouseMarker=c.marker(this._map.getCenter(),{icon:c.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on(o.JSMapEvents.MOUSEMOVE,this._onMouseMove,this).on(o.JSMapEvents.CLICK,this._onMouseDown,this).on(o.JSMapEvents.CONTEXTMENU,this.completeShape,this).addTo(this._map),this._map.on(o.JSMapEvents.CONTEXTMENU,this.completeShape,this).on(o.JSMapEvents.MOUSEMOVE,this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("zoomend",this._onZoomEnd,this))},removeHooks:function(){i.JSDrawFeature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers,this._map.removeLayer(this._poly),delete this._poly,this._mouseMarker.off(o.JSMapEvents.MOUSEMOVE,this._onMouseMove,this).off(o.JSMapEvents.CLICK,this._onMouseDown,this).off(o.JSMapEvents.CONTEXTMENU,this.completeShape,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._clearGuides(),this._map.off(o.JSMapEvents.CONTEXTMENU,this.completeShape,this).off(o.JSMapEvents.MOUSEMOVE,this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this)},deleteLastVertex:function(){if(!(this._markers.length<=1)){var t=this._markers.pop(),e=this._poly,n=e.getLatLngs(),r=n.splice(-1,1)[0];this._poly.setLatLngs(n),this._markerGroup.removeLayer(t),e.getLatLngs().length<2&&this._map.removeLayer(e),this._vertexChanged(r,!1)}},addVertex:function(t){this._markers.push(this._createMarker(t)),this._poly.addLatLng(t),2===this._poly.getLatLngs().length&&this._map.addLayer(this._poly),this._vertexChanged(t,!0)},completeShape:function(t){this._onMouseDown(t),this._markers.length<=1||!this._shapeIsValid()||(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},finishDrawing:function(){this._shapeIsValid()&&this._fireCreatedEvent(),this.disable()},_shapeIsValid:function(){var t=this._poly._defaultShape?this._poly._defaultShape():this._poly.getLatLngs();return t.length>2||2==t.length&&!t[0].equals(t[1])},_onZoomEnd:function(){null!==this._markers&&this._updateGuide()},_onMouseMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent),n=this._map.layerPointToLatLng(e);this._currentLatLng=n,this._updateGuide(e),this._mouseMarker.setLatLng(n),c.DomEvent.preventDefault(t.originalEvent)},_vertexChanged:function(){this._map.fire(a.JSDrawEvent.DRAWVERTEX,{layers:this._markerGroup}),this._clearGuides()},_onMouseDown:function(t){if(!this._clickHandled&&!this._touchHandled&&!this._disableMarkers){this._onMouseMove(t),this._clickHandled=!0,this._disableNewMarkers();var e=t.originalEvent,n=e.clientX,r=e.clientY;this._touchHandled=!0,this._startPoint.call(this,n,r),this._endPoint.call(this,n,r,t),this._touchHandled=null}this._clickHandled=null},_startPoint:function(t,e){this._mouseDownOrigin=c.point(t,e)},_onMouseUp:function(t){var e=t.originalEvent,n=e.clientX,r=e.clientY;this._endPoint.call(this,n,r,t),this._clickHandled=null},_endPoint:function(t,e,n){this._mouseDownOrigin&&(this.addVertex(n.latlng),this._enableNewMarkers()),this._mouseDownOrigin=null},_createMarker:function(t){var e=new c.CircleMarker(t,this.options.markerOptions);return this._markerGroup.addLayer(e),e},_updateGuide:function(t){var e=this._markers?this._markers.length:0;e>0&&(t=t||this._map.latLngToLayerPoint(this._currentLatLng),this._clearGuides(),this._drawGuide(this._map.latLngToLayerPoint(this._markers[e-1].getLatLng()),t))},_drawGuide:function(t,e){var n=Math.floor(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))),r=this.options.guidelineDistance,i=this.options.maxGuideLineLength,o=n>i?n-i:r,a=void 0,s=void 0,u=void 0;for(this._guidesContainer||(this._guidesContainer=c.DomUtil.create("div","jsmap2d-draw-guides",this._overlayPane));o<n;o+=this.options.guidelineDistance)a=o/n,s={x:Math.floor(t.x*(1-a)+a*e.x),y:Math.floor(t.y*(1-a)+a*e.y)},(u=c.DomUtil.create("div","jsmap2d-draw-guide-dash",this._guidesContainer)).style.backgroundColor=this._errorShown?this.options.drawError.color:this.options.shapeOptions.color,c.DomUtil.setPosition(u,s)},_updateGuideColor:function(t){if(this._guidesContainer)for(var e=0,n=this._guidesContainer.childNodes.length;e<n;e++)this._guidesContainer.childNodes[e].style.backgroundColor=t},_clearGuides:function(){if(this._guidesContainer)for(;this._guidesContainer.firstChild;)this._guidesContainer.removeChild(this._guidesContainer.firstChild)},_showError:function(){this._errorShown=!0,this._updateGuideColor(this.options.drawError.color),this._poly.setStyle({color:this.options.drawError.color}),this._clearHideErrorTimeout(),this._hideErrorTimeout=setTimeout(c.Util.bind(this._hideError,this),this.options.drawError.timeout)},_hideError:function(){this._errorShown=!1,this._clearHideErrorTimeout(),this._updateGuideColor(this.options.shapeOptions.color),this._poly.setStyle({color:this.options.shapeOptions.color})},_clearHideErrorTimeout:function(){this._hideErrorTimeout&&(clearTimeout(this._hideErrorTimeout),this._hideErrorTimeout=null)},_disableNewMarkers:function(){this._disableMarkers=!0},_enableNewMarkers:function(){setTimeout(function(){this._disableMarkers=!1}.bind(this),50)},_fireCreatedEvent:function(){i.JSDrawFeature.prototype._fireCreatedEvent.call(this,this.toGeometry())},toGeometry:function(){var t=[],e=void 0;return this._poly.getLatLngs().forEach(function(n){e&&e.lng==n.lng&&e.lat==n.lat||(t.push({x:n.lng,y:n.lat}),e=n)}),t.length>1?new u.default(t):null}})},function(t,e,n){t.exports=n(205)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(206),n(207),n(208),n(209);var r=M(n(210)),i=M(n(7)),o=n(4),a=M(n(459)),s=M(n(460)),u=M(n(51)),c=M(n(65)),l=M(n(64)),h=M(n(98)),f=M(n(99)),p=M(n(100)),d=M(n(463)),g=M(n(67)),y=M(n(5)),v=M(n(20)),m=M(n(18)),_=M(n(32)),b=M(n(38)),w=M(n(196)),E=M(n(469)),x=M(n(470)),O=M(n(68));function M(t){return t&&t.__esModule?t:{default:t}}var S={JSMap:i.default,JSZoomControl:a.default,JSFloorControl:s.default,JSBaseLayerControl:w.default,JSIconTextMarker:p.default,JSImageMarker:u.default,JSDomMarker:f.default,JSPointMarker:h.default,JSLineMarker:c.default,JSPolygonMarker:l.default,JSCircleMarker:g.default,JSRectangleMarker:O.default,JSDrawTool:d.default,JSEditTool:x.default,JSImageryProviderType:o.JSImageryProviderType,JSControlPosition:o.JSControlPosition,JSMarkerType:o.JSMarkerType,JSIconTextType:o.JSIconTextType,JSDrawMode:o.JSDrawMode,JSLineType:o.JSLineType,JSPoint:y.default,JSLine:v.default,JSPolygon:m.default,JSCircle:_.default,JSRectangle:b.default,JSMapCoordTool:E.default};window.jsmaplight=S,window.L=r.default,e.default=S},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(55);var o,a,s,u,c=Object.prototype.hasOwnProperty,l=Object.getOwnPropertyNames?Object.getOwnPropertyNames:function(t){var e=[];for(var n in t)c.call(t,n)&&e.push(n);return e},h=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertySymbols,p=Object.propertyIsEnumerable;if(Object.getPrototypeOf||(Object.getPrototypeOf="object"===r("".__proto__)?function(t){return t.__proto__}:function(t){return t.constructor.prototype}),!Object.keys){var d=!p.call({toString:null},"toString"),g=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];Object.keys=function(t){if(!(0,i.isObject)(t)&&!(0,i.isFunction)(t))throw new TypeError("Cannot convert undefined or null to object");var e=l(t);return d&&e.push.apply(e,function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(g.filter(function(e){return c(t,e)}))),e.filter(function(e){return p.call(t,e)})}}Object.assign||(Object.assign=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!t)throw new TypeError("Cannot convert undefined or null to object");return[].forEach.call(n,function(e){var n=Object(e);(Object.keys(n).map(function(e){return t[e]=n[e]}),f)&&f(n).filter(function(t){return p.call(n,t)}).map(function(e){return t[e]=n[e]})}),t}),window.mergeOptions||(window.mergeOptions=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.forEach(function(e){var n=Object(e);(Object.keys(n).forEach(function(n){var r=t[n];(0,i.isObject)(r)?window.mergeOptions(t[n],e[n]):t[n]=e[n]}),f)&&f(n).filter(function(t){return p.call(n,t)}).map(function(e){return t[e]=n[e]})}),t}),window.assignEx||(window.assignEx=function(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=e.context,a=void 0===o?t:o,s=e.includes,u=void 0===s?new Set:s,c=e.cover,f=void 0!==c&&c,p=e.needPrivate,d=void 0!==p&&p;[].forEach.call(r,function(e){var n=Object(e);l(n).filter(function(e){return function(t,e,n){return f||void 0===t[n]}(t,0,e)&&(d||/^[^_]\S+/.test(e))&&u.has(e)}).forEach(function(e){var r=h(n,e),i=Object.assign({},r);"function"==typeof r.value&&(i.value=r.value.bind(a)),r.get&&(i.get=r.get.bind(a)),r.set&&(i.set=r.set.bind(a)),Object.defineProperty(t,e,i)})})}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}),o="resize",a="optimizedResize",u=!1,(s=s||window).addEventListener(o,function(){u||(u=!0,requestAnimationFrame(function(){s.dispatchEvent(new CustomEvent(a)),u=!1}))})},function(t,e,n){"use strict";window.assert=function(t,e){if(!t)throw new Error(e||"Assert false.")},window.debug=function(t){t()}},function(t,e,n){(function(t){"use strict";function e(t){for(var e,n,r=1,i=arguments.length;r<i;r++)for(e in n=arguments[r])t[e]=n[e];return t}var n=Object.create||function(t){return r.prototype=t,new r};function r(){}function i(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var r=n.call(arguments,2);return function(){return t.apply(e,r.length?r.concat(n.call(arguments)):arguments)}}var o=0;function a(t){return t._leaflet_id=t._leaflet_id||++o,t._leaflet_id}function s(t,e,n){var r,i,o=function(){r=!1,i&&(a.apply(n,i),i=!1)},a=function(){r?i=arguments:(t.apply(n,arguments),setTimeout(o,e),r=!0)};return a}function u(t,e,n){var r=e[1],i=e[0],o=r-i;return t===r&&n?t:((t-i)%o+o)%o+i}function c(){return!1}function l(t,e){var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function h(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function f(t){return h(t).split(/\s+/)}function p(t,e){for(var r in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?n(t.options):{}),e)t.options[r]=e[r];return t.options}function d(t,e,n){var r=[];for(var i in t)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(t[i]));return(e&&-1!==e.indexOf("?")?"&":"?")+r.join("&")}var g=/\{ *([\w_-]+) *\}/g;function y(t,e){return t.replace(g,function(t,n){var r=e[n];if(void 0===r)throw new Error("No value provided for variable "+t);return"function"==typeof r&&(r=r(e)),r})}var v=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function m(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var _="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var w=0;function E(t){var e=+new Date,n=Math.max(0,16-(e-w));return w=e+n,window.setTimeout(t,n)}var x=window.requestAnimationFrame||b("RequestAnimationFrame")||E,O=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function M(t,e,n){if(!n||x!==E)return x.call(window,i(t,e));t.call(e)}function S(t){t&&O.call(window,t)}var P={extend:e,create:n,bind:i,lastId:o,stamp:a,throttle:s,wrapNum:u,falseFn:c,formatNum:l,trim:h,splitWords:f,setOptions:p,getParamString:d,template:y,isArray:v,indexOf:m,emptyImageUrl:_,requestFn:x,cancelFn:O,requestAnimFrame:M,cancelAnimFrame:S};function C(){}C.extend=function(t){function r(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var i=r.__super__=this.prototype,o=n(i);for(var a in(o.constructor=r).prototype=o,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(r[a]=this[a]);return t.statics&&(e(r,t.statics),delete t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=v(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),e.apply(null,[o].concat(t.includes)),delete t.includes),o.options&&(t.options=e(n(o.options),t.options)),e(o,t),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},r},C.include=function(t){return e(this.prototype,t),this},C.mergeOptions=function(t){return e(this.prototype.options,t),this},C.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var T={on:function(t,e,n){if("object"==typeof t)for(var r in t)this._on(r,t[r],e);else for(var i=0,o=(t=f(t)).length;i<o;i++)this._on(t[i],e,n);return this},off:function(t,e,n){if(t)if("object"==typeof t)for(var r in t)this._off(r,t[r],e);else for(var i=0,o=(t=f(t)).length;i<o;i++)this._off(t[i],e,n);else delete this._events;return this},_on:function(t,e,n){this._events=this._events||{};var r=this._events[t];r||(r=[],this._events[t]=r),n===this&&(n=void 0);for(var i={fn:e,ctx:n},o=r,a=0,s=o.length;a<s;a++)if(o[a].fn===e&&o[a].ctx===n)return;o.push(i)},_off:function(t,e,n){var r,i,o;if(this._events&&(r=this._events[t]))if(e){if(n===this&&(n=void 0),r)for(i=0,o=r.length;i<o;i++){var a=r[i];if(a.ctx===n&&a.fn===e)return a.fn=c,this._firingCount&&(this._events[t]=r=r.slice()),void r.splice(i,1)}}else{for(i=0,o=r.length;i<o;i++)r[i].fn=c;delete this._events[t]}},fire:function(t,n,r){if(!this.listens(t,r))return this;var i=e({},n,{type:t,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,s=o.length;a<s;a++){var u=o[a];u.fn.call(u.ctx||this,i)}this._firingCount--}}return r&&this._propagateEvent(i),this},listens:function(t,e){var n=this._events&&this._events[t];if(n&&n.length)return!0;if(e)for(var r in this._eventParents)if(this._eventParents[r].listens(t,e))return!0;return!1},once:function(t,e,n){if("object"==typeof t){for(var r in t)this.once(r,t[r],e);return this}var o=i(function(){this.off(t,e,n).off(t,o,n)},this);return this.on(t,e,n).on(t,o,n)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[a(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[a(t)],this},_propagateEvent:function(t){for(var n in this._eventParents)this._eventParents[n].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}};T.addEventListener=T.on,T.removeEventListener=T.clearAllEventListeners=T.off,T.addOneTimeEventListener=T.once,T.fireEvent=T.fire,T.hasEventListeners=T.listens;var I=C.extend(T);function A(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var N=Math.trunc||function(t){return 0<t?Math.floor(t):Math.ceil(t)};function k(t,e,n){return t instanceof A?t:v(t)?new A(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new A(t.x,t.y):new A(t,e,n)}function j(t,e){if(t)for(var n=e?[t,e]:t,r=0,i=n.length;r<i;r++)this.extend(n[r])}function R(t,e){return!t||t instanceof j?t:new j(t,e)}function D(t,e){if(t)for(var n=e?[t,e]:t,r=0,i=n.length;r<i;r++)this.extend(n[r])}function F(t,e){return t instanceof D?t:new D(t,e)}function z(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function B(t,e,n){return t instanceof z?t:v(t)&&"object"!=typeof t[0]?3===t.length?new z(t[0],t[1],t[2]):2===t.length?new z(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new z(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new z(t,e,n)}A.prototype={clone:function(){return new A(this.x,this.y)},add:function(t){return this.clone()._add(k(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(k(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new A(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new A(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=N(this.x),this.y=N(this.y),this},distanceTo:function(t){var e=(t=k(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=k(t)).x===this.x&&t.y===this.y},contains:function(t){return t=k(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+l(this.x)+", "+l(this.y)+")"}},j.prototype={extend:function(t){return t=k(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new A((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new A(this.min.x,this.max.y)},getTopRight:function(){return new A(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t=("number"==typeof t[0]||t instanceof A?k:R)(t))instanceof j?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=R(t);var e=this.min,n=this.max,r=t.min,i=t.max,o=i.x>=e.x&&r.x<=n.x,a=i.y>=e.y&&r.y<=n.y;return o&&a},overlaps:function(t){t=R(t);var e=this.min,n=this.max,r=t.min,i=t.max,o=i.x>e.x&&r.x<n.x,a=i.y>e.y&&r.y<n.y;return o&&a},isValid:function(){return!(!this.min||!this.max)}},D.prototype={extend:function(t){var e,n,r=this._southWest,i=this._northEast;if(t instanceof z)n=e=t;else{if(!(t instanceof D))return t?this.extend(B(t)||F(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return r||i?(r.lat=Math.min(e.lat,r.lat),r.lng=Math.min(e.lng,r.lng),i.lat=Math.max(n.lat,i.lat),i.lng=Math.max(n.lng,i.lng)):(this._southWest=new z(e.lat,e.lng),this._northEast=new z(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,r=Math.abs(e.lat-n.lat)*t,i=Math.abs(e.lng-n.lng)*t;return new D(new z(e.lat-r,e.lng-i),new z(n.lat+r,n.lng+i))},getCenter:function(){return new z((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new z(this.getNorth(),this.getWest())},getSouthEast:function(){return new z(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t=("number"==typeof t[0]||t instanceof z||"lat"in t?B:F)(t);var e,n,r=this._southWest,i=this._northEast;return t instanceof D?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=r.lat&&n.lat<=i.lat&&e.lng>=r.lng&&n.lng<=i.lng},intersects:function(t){t=F(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>=e.lat&&r.lat<=n.lat,a=i.lng>=e.lng&&r.lng<=n.lng;return o&&a},overlaps:function(t){t=F(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>e.lat&&r.lat<n.lat,a=i.lng>e.lng&&r.lng<n.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=F(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}};var q,G={latLngToPoint:function(t,e){var n=this.projection.project(t),r=this.scale(e);return this.transformation._transform(n,r)},pointToLatLng:function(t,e){var n=this.scale(e),r=this.transformation.untransform(t,n);return this.projection.unproject(r)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t);return new j(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!(z.prototype={equals:function(t,e){return!!t&&(t=B(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+l(this.lat,t)+", "+l(this.lng,t)+")"},distanceTo:function(t){return U.distance(this,B(t))},wrap:function(){return U.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return F([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new z(this.lat,this.lng,this.alt)}}),wrapLatLng:function(t){var e=this.wrapLng?u(t.lng,this.wrapLng,!0):t.lng;return new z(this.wrapLat?u(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),r=e.lat-n.lat,i=e.lng-n.lng;if(0==r&&0==i)return t;var o=t.getSouthWest(),a=t.getNorthEast();return new D(new z(o.lat-r,o.lng-i),new z(a.lat-r,a.lng-i))}},U=e({},G,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,r=t.lat*n,i=e.lat*n,o=Math.sin((e.lat-t.lat)*n/2),a=Math.sin((e.lng-t.lng)*n/2),s=o*o+Math.cos(r)*Math.cos(i)*a*a,u=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*u}}),V=6378137,J={R:V,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,t.lat),-n),i=Math.sin(r*e);return new A(this.R*t.lng*e,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(t){var e=180/Math.PI;return new z((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:new j([-(q=V*Math.PI),-q],[q,q])};function H(t,e,n,r){if(v(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=r}function Y(t,e,n,r){return new H(t,e,n,r)}H.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new A((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var X,Z=e({},U,{code:"EPSG:3857",projection:J,transformation:Y(X=.5/(Math.PI*J.R),.5,-X,.5)}),W=e({},Z,{code:"EPSG:900913"});function K(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Q(t,e){for(var n,r,i,o,a="",s=0,u=t.length;s<u;s++){for(n=0,r=(i=t[s]).length;n<r;n++)a+=(n?"L":"M")+(o=i[n]).x+" "+o.y;a+=e?It?"z":"x":""}return a||"M0 0"}var $=document.documentElement.style,tt="ActiveXObject"in window,et=tt&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),rt=At("webkit"),it=At("android"),ot=At("android 2")||At("android 3"),at=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),st=it&&At("Google")&&at<537&&!("AudioNode"in window),ut=!!window.opera,ct=!nt&&At("chrome"),lt=At("gecko")&&!rt&&!ut&&!tt,ht=!ct&&At("safari"),ft=At("phantom"),pt="OTransition"in $,dt=0===navigator.platform.indexOf("Win"),gt=tt&&"transition"in $,yt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot,vt="MozPerspective"in $,mt=!window.L_DISABLE_3D&&(gt||yt||vt)&&!pt&&!ft,_t="undefined"!=typeof orientation||At("mobile"),bt=_t&&rt,wt=_t&&yt,Et=!window.PointerEvent&&window.MSPointerEvent,xt=!(!window.PointerEvent&&!Et),Ot=!window.L_NO_TOUCH&&(xt||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Mt=_t&&ut,St=_t&&lt,Pt=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),Ct=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",c,e),window.removeEventListener("testPassiveEventSupport",c,e)}catch(t){}return t}(),Tt=!!document.createElement("canvas").getContext,It=!(!document.createElementNS||!K("svg").createSVGRect),Lt=!It&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function At(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var Nt={ie:tt,ielt9:et,edge:nt,webkit:rt,android:it,android23:ot,androidStock:st,opera:ut,chrome:ct,gecko:lt,safari:ht,phantom:ft,opera12:pt,win:dt,ie3d:gt,webkit3d:yt,gecko3d:vt,any3d:mt,mobile:_t,mobileWebkit:bt,mobileWebkit3d:wt,msPointer:Et,pointer:xt,touch:Ot,mobileOpera:Mt,mobileGecko:St,retina:Pt,passiveEvents:Ct,canvas:Tt,svg:It,vml:Lt},kt=Et?"MSPointerDown":"pointerdown",jt=Et?"MSPointerMove":"pointermove",Rt=Et?"MSPointerUp":"pointerup",Dt=Et?"MSPointerCancel":"pointercancel",Ft={},zt=!1;function Bt(t,e,n,r){function o(t){Vt(t,s)}var a,s,u,c,l,h,f,p;function d(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||Vt(t,c)}return"touchstart"===e?(l=t,h=n,f=r,p=i(function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&De(t),Vt(t,h)}),l["_leaflet_touchstart"+f]=p,l.addEventListener(kt,p,!1),zt||(document.addEventListener(kt,qt,!0),document.addEventListener(jt,Gt,!0),document.addEventListener(Rt,Ut,!0),document.addEventListener(Dt,Ut,!0),zt=!0)):"touchmove"===e?(c=n,(u=t)["_leaflet_touchmove"+r]=d,u.addEventListener(jt,d,!1)):"touchend"===e&&(s=n,(a=t)["_leaflet_touchend"+r]=o,a.addEventListener(Rt,o,!1),a.addEventListener(Dt,o,!1)),this}function qt(t){Ft[t.pointerId]=t}function Gt(t){Ft[t.pointerId]&&(Ft[t.pointerId]=t)}function Ut(t){delete Ft[t.pointerId]}function Vt(t,e){for(var n in t.touches=[],Ft)t.touches.push(Ft[n]);t.changedTouches=[t],e(t)}var Jt,Ht,Yt,Xt,Zt,Wt,Kt=Et?"MSPointerDown":xt?"pointerdown":"touchstart",Qt=Et?"MSPointerUp":xt?"pointerup":"touchend",$t="_leaflet_",te=ye(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ee=ye(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ne="webkitTransition"===ee||"OTransition"===ee?ee+"End":"transitionend";function re(t){return"string"==typeof t?document.getElementById(t):t}function ie(t,e){var n,r=t.style[e]||t.currentStyle&&t.currentStyle[e];return r&&"auto"!==r||!document.defaultView||(r=(n=document.defaultView.getComputedStyle(t,null))?n[e]:null),"auto"===r?null:r}function oe(t,e,n){var r=document.createElement(t);return r.className=e||"",n&&n.appendChild(r),r}function ae(t){var e=t.parentNode;e&&e.removeChild(t)}function se(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ue(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ce(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function le(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=de(t);return 0<n.length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function he(t,e){var n;if(void 0!==t.classList)for(var r=f(e),i=0,o=r.length;i<o;i++)t.classList.add(r[i]);else le(t,e)||pe(t,((n=de(t))?n+" ":"")+e)}function fe(t,e){void 0!==t.classList?t.classList.remove(e):pe(t,h((" "+de(t)+" ").replace(" "+e+" "," ")))}function pe(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function de(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function ge(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(r)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+r+"(opacity="+e+")"}(t,e)}function ye(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function ve(t,e,n){var r=e||new A(0,0);t.style[te]=(gt?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}function me(t,e){t._leaflet_pos=e,mt?ve(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function _e(t){return t._leaflet_pos||new A(0,0)}function be(){Pe(window,"dragstart",De)}function we(){Te(window,"dragstart",De)}function Ee(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(xe(),Wt=(Zt=t).style.outline,t.style.outline="none",Pe(window,"keydown",xe))}function xe(){Zt&&(Zt.style.outline=Wt,Wt=Zt=void 0,Te(window,"keydown",xe))}function Oe(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function Me(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}Xt="onselectstart"in document?(Yt=function(){Pe(window,"selectstart",De)},function(){Te(window,"selectstart",De)}):(Ht=ye(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),Yt=function(){var t;Ht&&(t=document.documentElement.style,Jt=t[Ht],t[Ht]="none")},function(){Ht&&(document.documentElement.style[Ht]=Jt,Jt=void 0)});var Se={TRANSFORM:te,TRANSITION:ee,TRANSITION_END:ne,get:re,getStyle:ie,create:oe,remove:ae,empty:se,toFront:ue,toBack:ce,hasClass:le,addClass:he,removeClass:fe,setClass:pe,getClass:de,setOpacity:ge,testProp:ye,setTransform:ve,setPosition:me,getPosition:_e,disableTextSelection:Yt,enableTextSelection:Xt,disableImageDrag:be,enableImageDrag:we,preventOutline:Ee,restoreOutline:xe,getSizedParentNode:Oe,getScale:Me};function Pe(t,e,n,r){if("object"==typeof e)for(var i in e)Ae(t,i,e[i],n);else for(var o=0,a=(e=f(e)).length;o<a;o++)Ae(t,e[o],n,r);return this}var Ce="_leaflet_events";function Te(t,e,n,r){if("object"==typeof e)for(var i in e)Ne(t,i,e[i],n);else if(e)for(var o=0,a=(e=f(e)).length;o<a;o++)Ne(t,e[o],n,r);else{for(var s in t[Ce])Ne(t,s,t[Ce][s]);delete t[Ce]}return this}function Ie(){return xt&&!nt&&!ht}var Le={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ae(t,e,n,r){var i=e+a(n)+(r?"_"+a(r):"");if(t[Ce]&&t[Ce][i])return this;var o,s,u,c,l,h,f=function(e){return n.call(r||t,e||window.event)},p=f;function d(t){if(xt){if(!t.isPrimary)return;if("mouse"===t.pointerType)return}else if(1<t.touches.length)return;var e=Date.now(),n=e-(c||e);l=t.touches?t.touches[0]:t,h=0<n&&n<=250,c=e}function g(t){if(h&&!l.cancelBubble){if(xt){if("mouse"===t.pointerType)return;var e,n,r={};for(n in l)e=l[n],r[n]=e&&e.bind?e.bind(l):e;l=r}l.type="dblclick",l.button=0,s(l),c=null}}xt&&0===e.indexOf("touch")?Bt(t,e,f,i):Ot&&"dblclick"===e&&!Ie()?(s=f,h=!1,(o=t)[$t+Kt+(u=i)]=d,o[$t+Qt+u]=g,o[$t+"dblclick"+u]=s,o.addEventListener(Kt,d,!!Ct&&{passive:!1}),o.addEventListener(Qt,g,!!Ct&&{passive:!1}),o.addEventListener("dblclick",s,!1)):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Le[e]||e,f,!!Ct&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(f=function(e){e=e||window.event,Je(t,e)&&p(e)},t.addEventListener(Le[e],f,!1)):t.addEventListener(e,p,!1):"attachEvent"in t&&t.attachEvent("on"+e,f),t[Ce]=t[Ce]||{},t[Ce][i]=f}function Ne(t,e,n,r){var i,o,s,u,c,l,h,f,p=e+a(n)+(r?"_"+a(r):""),d=t[Ce]&&t[Ce][p];if(!d)return this;xt&&0===e.indexOf("touch")?(f=(l=t)["_leaflet_"+(h=e)+p],"touchstart"===h?l.removeEventListener(kt,f,!1):"touchmove"===h?l.removeEventListener(jt,f,!1):"touchend"===h&&(l.removeEventListener(Rt,f,!1),l.removeEventListener(Dt,f,!1))):Ot&&"dblclick"===e&&!Ie()?(s=(i=t)[$t+Kt+(o=p)],u=i[$t+Qt+o],c=i[$t+"dblclick"+o],i.removeEventListener(Kt,s,!!Ct&&{passive:!1}),i.removeEventListener(Qt,u,!!Ct&&{passive:!1}),i.removeEventListener("dblclick",c,!1)):"removeEventListener"in t?t.removeEventListener(Le[e]||e,d,!1):"detachEvent"in t&&t.detachEvent("on"+e,d),t[Ce][p]=null}function ke(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Ve(t),this}function je(t){return Ae(t,"wheel",ke),this}function Re(t){return Pe(t,"mousedown touchstart dblclick",ke),Ae(t,"click",Ue),this}function De(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Fe(t){return De(t),ke(t),this}function ze(t,e){if(!e)return new A(t.clientX,t.clientY);var n=Me(e),r=n.boundingClientRect;return new A((t.clientX-r.left)/n.x-e.clientLeft,(t.clientY-r.top)/n.y-e.clientTop)}var Be=dt&&ct?2*window.devicePixelRatio:lt?window.devicePixelRatio:1;function qe(t){return nt?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Be:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}var Ge={};function Ue(t){Ge[t.type]=!0}function Ve(t){var e=Ge[t.type];return Ge[t.type]=!1,e}function Je(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var He={on:Pe,off:Te,stopPropagation:ke,disableScrollPropagation:je,disableClickPropagation:Re,preventDefault:De,stop:Fe,getMousePosition:ze,getWheelDelta:qe,fakeStop:Ue,skipped:Ve,isExternalTarget:Je,addListener:Pe,removeListener:Te},Ye=I.extend({run:function(t,e,n,r){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=_e(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=M(this._animate,this),this._step()},_step:function(t){var e=new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),me(this._el,n),this.fire("step")},_complete:function(){S(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Xe=I.extend({options:{crs:Z,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=p(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(B(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ee&&mt&&!Mt&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Pe(this._proxy,ne,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,n,r){return n=void 0===n?this._zoom:this._limitZoom(n),t=this._limitCenter(B(t),n,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=e({animate:r.animate},r.zoom),r.pan=e({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,n,r.zoom):this._tryAnimatedPan(t,r.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,n),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(mt?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(mt?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var r=this.getZoomScale(e),i=this.getSize().divideBy(2),o=(t instanceof A?t:this.latLngToContainerPoint(t)).subtract(i).multiplyBy(1-1/r),a=this.containerPointToLatLng(i.add(o));return this.setView(a,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():F(t);var n=k(e.paddingTopLeft||e.padding||[0,0]),r=k(e.paddingBottomRight||e.padding||[0,0]),i=this.getBoundsZoom(t,!1,n.add(r));if((i="number"==typeof e.maxZoom?Math.min(e.maxZoom,i):i)===1/0)return{center:t.getCenter(),zoom:i};var o=r.subtract(n).divideBy(2),a=this.project(t.getSouthWest(),i),s=this.project(t.getNorthEast(),i);return{center:this.unproject(a.add(s).divideBy(2).add(o),i),zoom:i}},fitBounds:function(t,e){if(!(t=F(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){return e=e||{},(t=k(t).round()).x||t.y?(!0===e.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new Ye,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate?(he(this._mapPane,"leaflet-pan-anim"),n=this._getMapPanePos().subtract(t).round(),this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)):(this._rawPanBy(t),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this):this.fire("moveend");var n},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!mt)return this.setView(t,e,n);this._stop();var r=this.project(this.getCenter()),i=this.project(t),o=this.getSize(),a=this._zoom;t=B(t),e=void 0===e?a:e;var s=Math.max(o.x,o.y),u=s*this.getZoomScale(a,e),c=i.distanceTo(r)||1,l=1.42,h=l*l;function f(t){var e=(u*u-s*s+(t?-1:1)*h*h*c*c)/(2*(t?u:s)*h*c),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function d(t){return(Math.exp(t)+Math.exp(-t))/2}var g=f(0);function y(t){return s*(d(g)*(p(e=g+l*t)/d(e))-p(g))/h;var e}var v=Date.now(),m=(f(1)-g)/l,_=n.duration?1e3*n.duration:1e3*m*.8;return this._moveStart(!0,n.noMoveStart),function n(){var o,u,h=(Date.now()-v)/_,f=(o=h,(1-Math.pow(1-o,1.5))*m);h<=1?(this._flyToFrame=M(n,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(y(f)/c)),a),this.getScaleZoom(s/(u=f,s*(d(g)/d(g+l*u))),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return(t=F(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,F(t));return n.equals(r)||this.panTo(r,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n,r,i=k((e=e||{}).paddingTopLeft||e.padding||[0,0]),o=k(e.paddingBottomRight||e.padding||[0,0]),a=this.getCenter(),s=this.project(a),u=this.project(t),c=this.getPixelBounds(),l=c.getSize().divideBy(2),h=R([c.min.add(i),c.max.subtract(o)]);return h.contains(u)||(this._enforcingBounds=!0,n=s.subtract(u),r=k(u.x+n.x,u.y+n.y),(u.x<h.min.x||u.x>h.max.x)&&(r.x=s.x-n.x,0<n.x?r.x+=l.x-i.x:r.x-=l.x-o.x),(u.y<h.min.y||u.y>h.max.y)&&(r.y=s.y-n.y,0<n.y?r.y+=l.y-i.y:r.y-=l.y-o.y),this.panTo(this.unproject(r),e),this._enforcingBounds=!1),this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),o=n.divideBy(2).round(),a=r.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,r,t):navigator.geolocation.getCurrentPosition(n,r,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(t){var e,n=new z(t.coords.latitude,t.coords.longitude),r=n.toBounds(2*t.coords.accuracy),i=this._locateOptions;i.setView&&(e=this.getBoundsZoom(r),this.setView(n,i.maxZoom?Math.min(e,i.maxZoom):e));var o={latlng:n,bounds:r,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(o[a]=t.coords[a]);this.fire("locationfound",o)},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ae(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(S(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ae(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=oe("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new D(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=F(t),n=k(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),u=this.getSize().subtract(n),c=R(this.project(s,r),this.project(a,r)).getSize(),l=mt?this.options.zoomSnap:1,h=u.x/c.x,f=u.y/c.y,p=e?Math.max(h,f):Math.min(h,f);r=this.getScaleZoom(p,r);return l&&(r=Math.round(r/(l/100))*(l/100),r=e?Math.ceil(r/l)*l:Math.floor(r/l)*l),Math.max(i,Math.min(o,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new j(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var r=n.zoom(t*n.scale(e));return isNaN(r)?1/0:r},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(B(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(k(t),e)},layerPointToLatLng:function(t){var e=k(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(B(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(B(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(F(t))},distance:function(t,e){return this.options.crs.distance(B(t),B(e))},containerPointToLayerPoint:function(t){return k(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return k(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(k(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(B(t)))},mouseEventToContainerPoint:function(t){return ze(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=re(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Pe(e,"scroll",this._onScroll,this),this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&mt,he(t,"leaflet-container"+(Ot?" leaflet-touch":"")+(Pt?" leaflet-retina":"")+(et?" leaflet-oldie":"")+(ht?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ie(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),me(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(he(t.markerPane,"leaflet-zoom-hide"),he(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){me(this._mapPane,new A(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var r=this._zoom!==e;this._moveStart(r,!1)._move(t,e)._moveEnd(r),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n){void 0===e&&(e=this._zoom);var r=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return S(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){me(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={};var e=t?Te:Pe;e((this._targets[a(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),mt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){S(this._resizeRequest),this._resizeRequest=M(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,r=[],i="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,s=!1;o;){if((n=this._targets[a(o)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(i&&!Je(o,t))break;if(r.push(n),i)break}if(o===this._container)break;o=o.parentNode}return r.length||s||i||!Je(o,t)||(r=[this]),r},_handleDOMEvent:function(t){var e;this._loaded&&!Ve(t)&&("mousedown"!==(e=t.type)&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||Ee(t.target||t.srcElement),this._fireDOMEvent(t,e))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,r){var i;if("click"===t.type&&((i=e({},t)).type="preclick",this._fireDOMEvent(i,i.type,r)),!t._stopped&&(r=(r||[]).concat(this._findEventTargets(t,n))).length){var o=r[0];"contextmenu"===n&&o.listens(n,!0)&&De(t);var a,s={originalEvent:t};"keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(a=o.getLatLng&&(!o._radius||o._radius<=10),s.containerPoint=a?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),s.layerPoint=this.containerPointToLayerPoint(s.containerPoint),s.latlng=a?o.getLatLng():this.layerPointToLatLng(s.layerPoint));for(var u=0;u<r.length;u++)if(r[u].fire(n,s,!0),s.originalEvent._stopped||!1===r[u].options.bubblingMouseEvents&&-1!==m(this._mouseEvents,n))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return _e(this._mapPane)||new A(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var r=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(r)},_latLngBoundsToNewLayerBounds:function(t,e,n){var r=this._getNewPixelOrigin(n,e);return R([this.project(t.getSouthWest(),e)._subtract(r),this.project(t.getNorthWest(),e)._subtract(r),this.project(t.getSouthEast(),e)._subtract(r),this.project(t.getNorthEast(),e)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var r=this.project(t,e),i=this.getSize().divideBy(2),o=new j(r.subtract(i),r.add(i)),a=this._getBoundsOffset(o,n,e);return a.round().equals([0,0])?t:this.unproject(r.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),r=new j(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(r,e))},_getBoundsOffset:function(t,e,n){var r=R(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),i=r.min.subtract(t.min),o=r.max.subtract(t.max);return new A(this._rebound(i.x,-o.x),this._rebound(i.y,-o.y))},_rebound:function(t,e){return 0<t+e?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),r=mt?this.options.zoomSnap:1;return r&&(t=Math.round(t/r)*r),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){fe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=oe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=te,n=this._proxy.style[e];ve(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ae(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ve(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(e),i=this._getCenterOffset(t)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(i)||(M(function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)},this),0))},_animateZoom:function(t,e,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,he(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:r}),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&fe(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),M(function(){this._moveEnd(!0)},this))}});function Ze(t){return new We(t)}var We=C.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),r=t._controlCorners[n];return he(e,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(e,r.firstChild):r.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(ae(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0<t.screenX&&0<t.screenY&&this._map.getContainer().focus()}});Xe.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=oe("div",e+"control-container",this._container);function r(r,i){var o=e+r+" "+e+i;t[r+i]=oe("div",o,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ae(this._controlCorners[t]);ae(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ke=We.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,r){return n<r?-1:r<n?1:0}},initialize:function(t,e,n){for(var r in p(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[r],r);for(r in e)this._addLayer(e[r],r,!0)},onAdd:function(t){this._initLayout(),this._update(),(this._map=t).on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return We.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(a(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){he(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(he(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):fe(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return fe(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=oe("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Re(e),je(e);var r=this._section=oe("section",t+"-list");n&&(this._map.on("click",this.collapse,this),it||Pe(e,{mouseenter:this.expand,mouseleave:this.collapse},this));var i=this._layersLink=oe("a",t+"-toggle",e);i.href="#",i.title="Layers",Ot?(Pe(i,"click",Fe),Pe(i,"click",this.expand,this)):Pe(i,"focus",this.expand,this),n||this.expand(),this._baseLayersList=oe("div",t+"-base",r),this._separator=oe("div",t+"-separator",r),this._overlaysList=oe("div",t+"-overlays",r),e.appendChild(r)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&a(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(i(function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;se(this._baseLayersList),se(this._overlaysList),this._layerControlInputs=[];for(var t,e,n,r=0,i=0;i<this._layers.length;i++)n=this._layers[i],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,r+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&1<r,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(t){var e,n=document.createElement("label"),r=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=r):e=this._createRadioElement("leaflet-base-layers_"+a(this),r),this._layerControlInputs.push(e),e.layerId=a(t.layer),Pe(e,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+t.name;var o=document.createElement("div");return n.appendChild(o),o.appendChild(e),o.appendChild(i),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var o=n.length-1;0<=o;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.checked?r.push(e):t.checked||i.push(e);for(o=0;o<i.length;o++)this._map.hasLayer(i[o])&&this._map.removeLayer(i[o]);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])||this._map.addLayer(r[o]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,r=this._map.getZoom(),i=n.length-1;0<=i;i--)t=n[i],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&r<e.options.minZoom||void 0!==e.options.maxZoom&&r>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Qe=We.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=oe("div",e+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,r,i){var o=oe("a",n,r);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),Re(o),Pe(o,"click",Fe),Pe(o,"click",i,this),Pe(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";fe(this._zoomInButton,e),fe(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMinZoom()||he(this._zoomOutButton,e),!this._disabled&&t._zoom!==t.getMaxZoom()||he(this._zoomInButton,e)}});Xe.mergeOptions({zoomControl:!0}),Xe.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Qe,this.addControl(this.zoomControl))});var $e=We.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=oe("div",e),r=this.options;return this._addScales(r,e+"-line",n),t.on(r.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=oe("div",e,n)),t.imperial&&(this._iScale=oe("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,r,i=3.2808399*t;5280<i?(e=i/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(10<=n?10:5<=n?5:3<=n?3:2<=n?2:1)}}),tn=We.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in(t.attributionControl=this)._container=oe("div","leaflet-control-attribution"),Re(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});Xe.mergeOptions({attributionControl:!0}),Xe.addInitHook(function(){this.options.attributionControl&&(new tn).addTo(this)}),We.Layers=Ke,We.Zoom=Qe,We.Scale=$e,We.Attribution=tn,Ze.layers=function(t,e,n){return new Ke(t,e,n)},Ze.zoom=function(t){return new Qe(t)},Ze.scale=function(t){return new $e(t)},Ze.attribution=function(t){return new tn(t)};var en=C.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}});en.addTo=function(t,e){return t.addHandler(e,this),this};var nn,rn={Events:T},on=Ot?"touchstart mousedown":"mousedown",an={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},sn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},un=I.extend({options:{clickTolerance:3},initialize:function(t,e,n,r){p(this,r),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Pe(this._dragStartTarget,on,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(un._dragging===this&&this.finishDrag(),Te(this._dragStartTarget,on,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var e,n;!t._simulated&&this._enabled&&(this._moved=!1,le(this._element,"leaflet-zoom-anim")||un._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((un._dragging=this)._preventOutline&&Ee(this._element),be(),Yt(),this._moving||(this.fire("down"),e=t.touches?t.touches[0]:t,n=Oe(this._element),this._startPoint=new A(e.clientX,e.clientY),this._parentScale=Me(n),Pe(document,sn[t.type],this._onMove,this),Pe(document,an[t.type],this._onUp,this))))},_onMove:function(t){var e,n;!t._simulated&&this._enabled&&(t.touches&&1<t.touches.length?this._moved=!0:((n=new A((e=t.touches&&1===t.touches.length?t.touches[0]:t).clientX,e.clientY)._subtract(this._startPoint)).x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,De(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=_e(this._element).subtract(n),he(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),he(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,S(this._animRequest),this._lastEvent=t,this._animRequest=M(this._updatePosition,this,!0))))},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),me(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in fe(document.body,"leaflet-dragging"),this._lastTarget&&(fe(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),sn)Te(document,sn[t],this._onMove,this),Te(document,an[t],this._onUp,this);we(),Xt(),this._moved&&this._moving&&(S(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,un._dragging=!1}});function cn(t,e){if(!e||!t.length)return t.slice();var n=e*e;return function(t,e){var n=t.length,r=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);r[0]=r[n-1]=1,function t(e,n,r,i,o){var a,s,u,c=0;for(s=i+1;s<=o-1;s++)c<(u=dn(e[s],e[i],e[o],!0))&&(a=s,c=u);r<c&&(n[a]=1,t(e,n,r,i,a),t(e,n,r,a,o))}(t,r,e,0,n-1);var i,o=[];for(i=0;i<n;i++)r[i]&&o.push(t[i]);return o}(t=function(t,e){for(var n=[t[0]],r=1,i=0,o=t.length;r<o;r++)(function(t,e){var n=e.x-t.x,r=e.y-t.y;return n*n+r*r})(t[r],t[i])>e&&(n.push(t[r]),i=r);return i<o-1&&n.push(t[o-1]),n}(t,n),n)}function ln(t,e,n){return Math.sqrt(dn(t,e,n,!0))}function hn(t,e,n,r,i){var o,a,s,u=r?nn:pn(t,n),c=pn(e,n);for(nn=c;;){if(!(u|c))return[t,e];if(u&c)return!1;s=pn(a=fn(t,e,o=u||c,n,i),n),o===u?(t=a,u=s):(e=a,c=s)}}function fn(t,e,n,r,i){var o,a,s=e.x-t.x,u=e.y-t.y,c=r.min,l=r.max;return 8&n?(o=t.x+s*(l.y-t.y)/u,a=l.y):4&n?(o=t.x+s*(c.y-t.y)/u,a=c.y):2&n?(o=l.x,a=t.y+u*(l.x-t.x)/s):1&n&&(o=c.x,a=t.y+u*(c.x-t.x)/s),new A(o,a,i)}function pn(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function dn(t,e,n,r){var i,o=e.x,a=e.y,s=n.x-o,u=n.y-a,c=s*s+u*u;return 0<c&&(1<(i=((t.x-o)*s+(t.y-a)*u)/c)?(o=n.x,a=n.y):0<i&&(o+=s*i,a+=u*i)),s=t.x-o,u=t.y-a,r?s*s+u*u:new A(o,a)}function gn(t){return!v(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function yn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),gn(t)}var vn={simplify:cn,pointToSegmentDistance:ln,closestPointOnSegment:function(t,e,n){return dn(t,e,n)},clipSegment:hn,_getEdgeIntersection:fn,_getBitCode:pn,_sqClosestPointOnSegment:dn,isFlat:gn,_flat:yn};function mn(t,e,n){for(var r,i,o,a,s,u,c,l=[1,4,2,8],h=0,f=t.length;h<f;h++)t[h]._code=pn(t[h],e);for(o=0;o<4;o++){for(u=l[o],r=[],h=0,i=(f=t.length)-1;h<f;i=h++)a=t[h],s=t[i],a._code&u?s._code&u||((c=fn(s,a,u,e,n))._code=pn(c,e),r.push(c)):(s._code&u&&((c=fn(s,a,u,e,n))._code=pn(c,e),r.push(c)),r.push(a));t=r}return t}var _n,bn={clipPolygon:mn},wn={project:function(t){return new A(t.lng,t.lat)},unproject:function(t){return new z(t.y,t.x)},bounds:new j([-180,-90],[180,90])},En={R:6378137,R_MINOR:6356752.314245179,bounds:new j([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,r=t.lat*e,i=this.R_MINOR/n,o=Math.sqrt(1-i*i),a=o*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/Math.pow((1-a)/(1+a),o/2);r=-n*Math.log(Math.max(s,1e-10));return new A(t.lng*e*n,r)},unproject:function(t){for(var e,n=180/Math.PI,r=this.R,i=this.R_MINOR/r,o=Math.sqrt(1-i*i),a=Math.exp(-t.y/r),s=Math.PI/2-2*Math.atan(a),u=0,c=.1;u<15&&1e-7<Math.abs(c);u++)e=o*Math.sin(s),e=Math.pow((1-e)/(1+e),o/2),s+=c=Math.PI/2-2*Math.atan(a*e)-s;return new z(s*n,t.x*n/r)}},xn={LonLat:wn,Mercator:En,SphericalMercator:J},On=e({},U,{code:"EPSG:3395",projection:En,transformation:Y(_n=.5/(Math.PI*En.R),.5,-_n,.5)}),Mn=e({},U,{code:"EPSG:4326",projection:wn,transformation:Y(1/180,1,-1/180,.5)}),Sn=e({},G,{projection:wn,transformation:Y(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,r=e.lat-t.lat;return Math.sqrt(n*n+r*r)},infinite:!0});G.Earth=U,G.EPSG3395=On,G.EPSG3857=Z,G.EPSG900913=W,G.EPSG4326=Mn,G.Simple=Sn;var Pn=I.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[a(t)]=this},removeInteractiveTarget:function(t){return delete this._map._targets[a(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e,n=t.target;n.hasLayer(this)&&(this._map=n,this._zoomAnimated=n._zoomAnimated,this.getEvents&&(e=this.getEvents(),n.on(e,this),this.once("remove",function(){n.off(e,this)},this)),this.onAdd(n),this.getAttribution&&n.attributionControl&&n.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),n.fire("layeradd",{layer:this}))}});Xe.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=a(t);return this._layers[e]||((this._layers[e]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=a(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer:function(t){return!!t&&a(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?v(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[a(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=a(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var i=this._zoomBoundLayers[r].options;t=void 0===i.minZoom?t:Math.min(t,i.minZoom),e=void 0===i.maxZoom?e:Math.max(e,i.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Cn=Pn.extend({initialize:function(t,e){var n,r;if(p(this,e),this._layers={},t)for(n=0,r=t.length;n<r;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return!!t&&("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,r=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,r);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:a}),Tn=Cn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Cn.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Cn.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new D;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),In=C.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(r,t),r},_setIconStyles:function(t,e){var n=this.options,r=n[e+"Size"];"number"==typeof r&&(r=[r,r]);var i=k(r),o=k("shadow"===e&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),i&&(t.style.width=i.x+"px",t.style.height=i.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Pt&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),Ln=In.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return Ln.imagePath||(Ln.imagePath=this._detectIconPath()),(this.options.imagePath||Ln.imagePath)+In.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=oe("div","leaflet-default-icon-path",document.body),e=ie(t,"background-image")||ie(t,"backgroundImage");return document.body.removeChild(t),null===e||0!==e.indexOf("url")?"":e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),An=en.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new un(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),he(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&fe(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e,n=this._marker,r=n._map,i=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,a=_e(n._icon),s=r.getPixelBounds(),u=r.getPixelOrigin(),c=R(s.min._subtract(u).add(o),s.max._subtract(u).subtract(o));c.contains(a)||(e=k((Math.max(c.max.x,a.x)-c.max.x)/(s.max.x-c.max.x)-(Math.min(c.min.x,a.x)-c.min.x)/(s.min.x-c.min.x),(Math.max(c.max.y,a.y)-c.max.y)/(s.max.y-c.max.y)-(Math.min(c.min.y,a.y)-c.min.y)/(s.min.y-c.min.y)).multiplyBy(i),r.panBy(e,{animate:!1}),this._draggable._newPos._add(e),this._draggable._startPos._add(e),me(n._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=M(this._adjustPan.bind(this,t)))},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(S(this._panRequest),this._panRequest=M(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,r=_e(e._icon),i=e._map.layerPointToLatLng(r);n&&me(n,r),e._latlng=i,t.latlng=i,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){S(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Nn=Pn.extend({options:{icon:new Ln,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){p(this,e),this._latlng=B(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=B(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){var t;return this._icon&&this._map&&(t=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(t)),this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),he(n,e),t.keyboard&&(n.tabIndex="0"),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var i=t.icon.createShadow(this._shadow),o=!1;i!==this._shadow&&(this._removeShadow(),o=!0),i&&(he(i,e),i.alt=""),this._shadow=i,t.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),ae(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ae(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&me(this._icon,t),this._shadow&&me(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){var t;this.options.interactive&&(he(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),An&&(t=this.options.draggable,this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new An(this),t&&this.dragging.enable()))},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&ge(this._icon,t),this._shadow&&ge(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),kn=Pn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return p(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),jn=kn.extend({options:{fill:!0,radius:10},initialize:function(t,e){p(this,e),this._latlng=B(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=B(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return kn.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),r=[t+n,e+n];this._pxBounds=new j(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),Rn=jn.extend({initialize:function(t,n,r){if("number"==typeof n&&(n=e({},r,{radius:n})),p(this,n),this._latlng=B(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new D(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:kn.prototype.setStyle,_project:function(){var t,e,n,r,i,o,a,s,u=this._latlng.lng,c=this._latlng.lat,l=this._map,h=l.options.crs;h.distance===U.distance?(t=Math.PI/180,e=this._mRadius/U.R/t,n=l.project([c+e,u]),r=l.project([c-e,u]),i=n.add(r).divideBy(2),o=l.unproject(i).lat,a=Math.acos((Math.cos(e*t)-Math.sin(c*t)*Math.sin(o*t))/(Math.cos(c*t)*Math.cos(o*t)))/t,!isNaN(a)&&0!==a||(a=e/Math.cos(Math.PI/180*c)),this._point=i.subtract(l.getPixelOrigin()),this._radius=isNaN(a)?0:i.x-l.project([o,u-a]).x,this._radiusY=i.y-n.y):(s=h.unproject(h.project(this._latlng).subtract([this._mRadius,0])),this._point=l.latLngToLayerPoint(this._latlng),this._radius=this._point.x-l.latLngToLayerPoint(s).x),this._updateBounds()}}),Dn=kn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){p(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,r=1/0,i=null,o=dn,a=0,s=this._parts.length;a<s;a++)for(var u=this._parts[a],c=1,l=u.length;c<l;c++){var h=o(t,e=u[c-1],n=u[c],!0);h<r&&(r=h,i=o(t,e,n))}return i&&(i.distance=Math.sqrt(r)),i},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,n,r,i,o,a,s=this._rings[0],u=s.length;if(!u)return null;for(e=t=0;t<u-1;t++)e+=s[t].distanceTo(s[t+1])/2;if(0===e)return this._map.layerPointToLatLng(s[0]);for(r=t=0;t<u-1;t++)if(i=s[t],o=s[t+1],e<(r+=n=i.distanceTo(o)))return a=(r-e)/n,this._map.layerPointToLatLng([o.x-a*(o.x-i.x),o.y-a*(o.y-i.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=B(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new D,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return gn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=gn(t),r=0,i=t.length;r<i;r++)n?(e[r]=B(t[r]),this._bounds.extend(e[r])):e[r]=this._convertLatLngs(t[r]);return e},_project:function(){var t=new j;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new A(t,t);this._pxBounds=new j([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,n){var r,i,o=t[0]instanceof z,a=t.length;if(o){for(i=[],r=0;r<a;r++)i[r]=this._map.latLngToLayerPoint(t[r]),n.extend(i[r]);e.push(i)}else for(r=0;r<a;r++)this._projectLatlngs(t[r],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var e,n,r,i,o=this._parts,a=0,s=0,u=this._rings.length;a<u;a++)for(e=0,n=(i=this._rings[a]).length;e<n-1;e++)(r=hn(i[e],i[e+1],t,e,!0))&&(o[s]=o[s]||[],o[s].push(r[0]),r[1]===i[e+1]&&e!==n-2||(o[s].push(r[1]),s++))},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,r=t.length;n<r;n++)t[n]=cn(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,r,i,o,a,s,u=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,o=this._parts.length;n<o;n++)for(r=0,i=(a=(s=this._parts[n]).length)-1;r<a;i=r++)if((e||0!==r)&&ln(t,s[i],s[r])<=u)return!0;return!1}});Dn._flat=yn;var Fn=Dn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,n,r,i,o,a,s,u,c=this._rings[0],l=c.length;if(!l)return null;for(t=o=a=s=0,e=l-1;t<l;e=t++)n=c[t],r=c[e],i=n.y*r.x-r.y*n.x,a+=(n.x+r.x)*i,s+=(n.y+r.y)*i,o+=3*i;return u=0===o?c[0]:[a/o,s/o],this._map.layerPointToLatLng(u)},_convertLatLngs:function(t){var e=Dn.prototype._convertLatLngs.call(this,t),n=e.length;return 2<=n&&e[0]instanceof z&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){Dn.prototype._setLatLngs.call(this,t),gn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return gn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new A(e,e);t=new j(t.min.subtract(n),t.max.add(n));if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var r,i=0,o=this._rings.length;i<o;i++)(r=mn(this._rings[i],t,!0)).length&&this._parts.push(r)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,r,i,o,a,s,u,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,s=this._parts.length;i<s;i++)for(o=0,a=(u=(e=this._parts[i]).length)-1;o<u;a=o++)n=e[o],r=e[a],n.y>t.y!=r.y>t.y&&t.x<(r.x-n.x)*(t.y-n.y)/(r.y-n.y)+n.x&&(c=!c);return c||Dn.prototype._containsPoint.call(this,t,!0)}}),zn=Tn.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,r,i=v(t)?t:t.features;if(i){for(e=0,n=i.length;e<n;e++)((r=i[e]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var a=Bn(t,o);return a?(a.feature=Yn(t),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function Bn(t,e){var n,r,i,o,a="Feature"===t.type?t.geometry:t,s=a?a.coordinates:null,u=[],c=e&&e.pointToLayer,l=e&&e.coordsToLatLng||Gn;if(!s&&!a)return null;switch(a.type){case"Point":return qn(c,t,n=l(s),e);case"MultiPoint":for(i=0,o=s.length;i<o;i++)n=l(s[i]),u.push(qn(c,t,n,e));return new Tn(u);case"LineString":case"MultiLineString":return r=Un(s,"LineString"===a.type?0:1,l),new Dn(r,e);case"Polygon":case"MultiPolygon":return r=Un(s,"Polygon"===a.type?1:2,l),new Fn(r,e);case"GeometryCollection":for(i=0,o=a.geometries.length;i<o;i++){var h=Bn({geometry:a.geometries[i],type:"Feature",properties:t.properties},e);h&&u.push(h)}return new Tn(u);default:throw new Error("Invalid GeoJSON object.")}}function qn(t,e,n,r){return t?t(e,n):new Nn(n,r&&r.markersInheritOptions&&r)}function Gn(t){return new z(t[1],t[0],t[2])}function Un(t,e,n){for(var r,i=[],o=0,a=t.length;o<a;o++)r=e?Un(t[o],e-1,n):(n||Gn)(t[o]),i.push(r);return i}function Vn(t,e){return e="number"==typeof e?e:6,void 0!==t.alt?[l(t.lng,e),l(t.lat,e),l(t.alt,e)]:[l(t.lng,e),l(t.lat,e)]}function Jn(t,e,n,r){for(var i=[],o=0,a=t.length;o<a;o++)i.push(e?Jn(t[o],e-1,n,r):Vn(t[o],r));return!e&&n&&i.push(i[0]),i}function Hn(t,n){return t.feature?e({},t.feature,{geometry:n}):Yn(n)}function Yn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Xn={toGeoJSON:function(t){return Hn(this,{type:"Point",coordinates:Vn(this.getLatLng(),t)})}};function Zn(t,e){return new zn(t,e)}Nn.include(Xn),Rn.include(Xn),jn.include(Xn),Dn.include({toGeoJSON:function(t){var e=!gn(this._latlngs);return Hn(this,{type:(e?"Multi":"")+"LineString",coordinates:Jn(this._latlngs,e?1:0,!1,t)})}}),Fn.include({toGeoJSON:function(t){var e=!gn(this._latlngs),n=e&&!gn(this._latlngs[0]),r=Jn(this._latlngs,n?2:e?1:0,!0,t);return e||(r=[r]),Hn(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),Cn.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),Hn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,r=[];return this.eachLayer(function(e){var i,o;e.toGeoJSON&&(i=e.toGeoJSON(t),n?r.push(i.geometry):"FeatureCollection"===(o=Yn(i)).type?r.push.apply(r,o.features):r.push(o))}),n?Hn(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var Wn=Zn,Kn=Pn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=F(e),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(he(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ae(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ue(this._image),this},bringToBack:function(){return this._map&&ce(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=F(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:oe("img");he(e,"leaflet-image-layer"),this._zoomAnimated&&he(e,"leaflet-zoom-animated"),this.options.className&&he(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=i(this.fire,this,"load"),e.onerror=i(this._overlayOnError,this,"error"),!this.options.crossOrigin&&""!==this.options.crossOrigin||(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ve(this._image,n,e)},_reset:function(){var t=this._image,e=new j(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();me(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){ge(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),Qn=Kn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:oe("video");if(he(e,"leaflet-image-layer"),this._zoomAnimated&&he(e,"leaflet-zoom-animated"),this.options.className&&he(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=i(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),r=[],o=0;o<n.length;o++)r.push(n[o].src);this._url=0<n.length?r:[e.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted;for(var a=0;a<this._url.length;a++){var s=oe("source");s.src=this._url[a],e.appendChild(s)}}}}),$n=Kn.extend({_initImage:function(){var t=this._image=this._url;he(t,"leaflet-image-layer"),this._zoomAnimated&&he(t,"leaflet-zoom-animated"),this.options.className&&he(t,this.options.className),t.onselectstart=c,t.onmousemove=c}}),tr=Pn.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){p(this,t),this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ge(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ge(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(ge(this._container,0),this._removeTimeout=setTimeout(i(ae,void 0,this._container),200)):ae(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=B(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ue(this._container),this},bringToBack:function(){return this._map&&ce(this._container),this},_prepareOpen:function(t,e,n){if(e instanceof Pn||(n=e,e=t),e instanceof Tn)for(var r in t._layers){e=t._layers[r];break}if(!n)if(e.getCenter)n=e.getCenter();else{if(!e.getLatLng)throw new Error("Unable to get source layer LatLng.");n=e.getLatLng()}return this._source=e,this.update(),n},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){var t,e,n,r,i;this._map&&(t=this._map.latLngToLayerPoint(this._latlng),e=k(this.options.offset),n=this._getAnchor(),this._zoomAnimated?me(this._container,t.add(n)):e=e.add(t).add(n),r=this._containerBottom=-e.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+e.x,this._container.style.bottom=r+"px",this._container.style.left=i+"px")},_getAnchor:function(){return[0,0]}}),er=tr.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){tr.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof kn||this._source.on("preclick",ke))},onRemove:function(t){tr.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof kn||this._source.off("preclick",ke))},getEvents:function(){var t=tr.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t,e="leaflet-popup",n=this._container=oe("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),r=this._wrapper=oe("div",e+"-content-wrapper",n);this._contentNode=oe("div",e+"-content",r),Re(n),je(this._contentNode),Pe(n,"contextmenu",ke),this._tipContainer=oe("div",e+"-tip-container",n),this._tip=oe("div",e+"-tip",this._tipContainer),this.options.closeButton&&((t=this._closeButton=oe("a",e+"-close-button",n)).href="#close",t.innerHTML="&#215;",Pe(t,"click",this._onCloseButtonClick,this))},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth);n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var r=t.offsetHeight,i=this.options.maxHeight,o="leaflet-popup-scrolled";i&&i<r?(e.height=i+"px",he(t,o)):fe(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();me(this._container,e.add(n))},_adjustPan:function(){var t,e,n,r,i,o,a,s,u,c,l,h;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),t=this._map,e=parseInt(ie(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,r=this._containerWidth,(i=new A(this._containerLeft,-n-this._containerBottom))._add(_e(this._container)),o=t.layerPointToContainerPoint(i),a=k(this.options.autoPanPadding),s=k(this.options.autoPanPaddingTopLeft||a),u=k(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),h=l=0,o.x+r+u.x>c.x&&(l=o.x+r-c.x+u.x),o.x-l-s.x<0&&(l=o.x-s.x),o.y+n+u.y>c.y&&(h=o.y+n-c.y+u.y),o.y-h-s.y<0&&(h=o.y-s.y),(l||h)&&t.fire("autopanstart").panBy([l,h]))},_onCloseButtonClick:function(t){this._close(),Fe(t)},_getAnchor:function(){return k(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Xe.mergeOptions({closePopupOnClick:!0}),Xe.include({openPopup:function(t,e,n){return t instanceof er||(t=new er(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Pn.include({bindPopup:function(t,e){return t instanceof er?(p(t,e),(this._popup=t)._source=this):(this._popup&&!e||(this._popup=new er(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(Fe(t),e instanceof kn?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var nr=tr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){tr.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){tr.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=tr.prototype.getEvents.call(this);return Ot&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=oe("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n=this._map,r=this._container,i=n.latLngToContainerPoint(n.getCenter()),o=n.layerPointToContainerPoint(t),a=this.options.direction,s=r.offsetWidth,u=r.offsetHeight,c=k(this.options.offset),l=this._getAnchor(),h="top"===a?(e=s/2,u):"bottom"===a?(e=s/2,0):(e="center"===a?s/2:"right"===a?0:"left"===a?s:o.x<i.x?(a="right",0):(a="left",s+2*(c.x+l.x)),u/2);t=t.subtract(k(e,h,!0)).add(c).add(l),fe(r,"leaflet-tooltip-right"),fe(r,"leaflet-tooltip-left"),fe(r,"leaflet-tooltip-top"),fe(r,"leaflet-tooltip-bottom"),he(r,"leaflet-tooltip-"+a),me(r,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&ge(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return k(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Xe.include({openTooltip:function(t,e,n){return t instanceof nr||(t=new nr(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),Pn.include({bindTooltip:function(t,e){return t instanceof nr?(p(t,e),(this._tooltip=t)._source=this):(this._tooltip&&!e||(this._tooltip=new nr(e,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){var e,n;!t&&this._tooltipHandlersAdded||(e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),Ot&&(n.click=this._openTooltip)),this[e](n),this._tooltipHandlersAdded=!t)},openTooltip:function(t,e){return this._tooltip&&this._map&&(e=this._tooltip._prepareOpen(this,t,e),this._map.openTooltip(this._tooltip,e),this._tooltip.options.interactive&&this._tooltip._container&&(he(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(fe(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(e,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,r=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});var rr=In.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e,n=t&&"DIV"===t.tagName?t:document.createElement("div"),r=this.options;return r.html instanceof Element?(se(n),n.appendChild(r.html)):n.innerHTML=!1!==r.html?r.html:"",r.bgPos&&(e=k(r.bgPos),n.style.backgroundPosition=-e.x+"px "+-e.y+"px"),this._setIconStyles(n,"icon"),n},createShadow:function(){return null}});In.Default=Ln;var ir=Pn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:_t,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){p(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ae(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ue(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ce(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof A?t:new A(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,r=-t(-1/0,1/0),i=0,o=n.length;i<o;i++)e=n[i].style.zIndex,n[i]!==this._container&&e&&(r=t(r,+e));isFinite(r)&&(this.options.zIndex=r+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!et){ge(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var r in this._tiles){var i,o=this._tiles[r];o.current&&o.loaded&&(i=Math.min(1,(t-o.loaded)/200),ge(o.el,i),i<1?e=!0:(o.active?n=!0:this._onOpaqueTile(o),o.active=!0))}n&&!this._noPrune&&this._pruneTiles(),e&&(S(this._fadeFrame),this._fadeFrame=M(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=oe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(ae(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[t],i=this._map;return r||((r=this._levels[t]={}).el=oe("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=e,r.origin=i.project(i.unproject(i.getPixelOrigin()),t).round(),r.zoom=t,this._setZoomTransform(r,i.getCenter(),i.getZoom()),r.el.offsetWidth,this._onCreateLevel(r)),this._level=r}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var t,e,n,r=this._map.getZoom();if(r>this.options.maxZoom||r<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(n=this._tiles[t]).retain=n.current;for(t in this._tiles)(n=this._tiles[t]).current&&!n.active&&(e=n.coords,this._retainParent(e.x,e.y,e.z,e.z-5)||this._retainChildren(e.x,e.y,e.z,e.z+2));for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ae(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,r){var i=Math.floor(t/2),o=Math.floor(e/2),a=n-1,s=new A(+i,+o);s.z=+a;var u=this._tileCoordsToKey(s),c=this._tiles[u];return c&&c.active?c.retain=!0:(c&&c.loaded&&(c.retain=!0),r<a&&this._retainParent(i,o,a,r))},_retainChildren:function(t,e,n,r){for(var i=2*t;i<2*t+2;i++)for(var o=2*e;o<2*e+2;o++){var a=new A(i,o);a.z=n+1;var s=this._tileCoordsToKey(a),u=this._tiles[s];u&&u.active?u.retain=!0:(u&&u.loaded&&(u.retain=!0),n+1<r&&this._retainChildren(i,o,n+1,r))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,r){var i=Math.round(e),o=(i=void 0!==this.options.maxZoom&&i>this.options.maxZoom||void 0!==this.options.minZoom&&i<this.options.minZoom?void 0:this._clampZoom(i),this.options.updateWhenZooming&&i!==this._tileZoom);r&&!o||(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==i&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var r=this._map.getZoomScale(n,t.zoom),i=t.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(e,n)).round();mt?ve(t.el,i,r):me(t.el,i)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],r).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],r).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],r).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),r=e.getZoomScale(n,this._tileZoom),i=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*r);return new j(i.subtract(o),i.add(o))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var r=this._getTiledPixelBounds(t),i=this._pxBoundsToTileRange(r),o=i.getCenter(),a=[],s=this.options.keepBuffer,u=new j(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var l=this._tiles[c].coords;l.z===this._tileZoom&&u.contains(new A(l.x,l.y))||(this._tiles[c].current=!1)}if(1<Math.abs(n-this._tileZoom))this._setView(t,n);else{for(var h=i.min.y;h<=i.max.y;h++)for(var f=i.min.x;f<=i.max.x;f++){var p,d=new A(f,h);d.z=this._tileZoom,this._isValidTile(d)&&((p=this._tiles[this._tileCoordsToKey(d)])?p.current=!0:a.push(d))}if(a.sort(function(t,e){return t.distanceTo(o)-e.distanceTo(o)}),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var g=document.createDocumentFragment();for(f=0;f<a.length;f++)this._addTile(a[f],g);this._level.el.appendChild(g)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(t);return F(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),r=t.scaleBy(n),i=r.add(n);return[e.unproject(r,t.z),e.unproject(i,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new D(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new A(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(ae(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){he(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,et&&this.options.opacity<1&&ge(t,this.options.opacity),it&&!ot&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),r=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&M(i(this._tileReady,this,t,null,o)),me(o,n),this._tiles[r]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var r=this._tileCoordsToKey(t);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(ge(n.el,0),S(this._fadeFrame),this._fadeFrame=M(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(he(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),et||!this._map._fadeAnimated?M(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new A(this._wrapX?u(t.x,this._wrapX):t.x,this._wrapY?u(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new j(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),or=ir.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=p(this,e)).detectRetina&&Pt&&0<e.maxZoom&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),it||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Pe(n,"load",i(this._tileOnLoad,this,e,n)),Pe(n,"error",i(this._tileOnError,this,e,n)),!this.options.crossOrigin&&""!==this.options.crossOrigin||(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n,r={r:Pt?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(n=this._globalTileRange.max.y-t.y,this.options.tms&&(r.y=n),r["-y"]=n),y(this._url,e(r,this.options))},_tileOnLoad:function(t,e){et?setTimeout(i(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var r=this.options.errorTileUrl;r&&e.getAttribute("src")!==r&&(e.src=r),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=c,e.onerror=c,e.complete||(e.src=_,ae(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return st||e.el.setAttribute("src",_),ir.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==_))return ir.prototype._tileReady.call(this,t,e,n)}});function ar(t,e){return new or(t,e)}var sr=or.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var r=e({},this.defaultWmsParams);for(var i in n)i in this.options||(r[i]=n[i]);var o=(n=p(this,n)).detectRetina&&Pt?2:1,a=this.getTileSize();r.width=a.x*o,r.height=a.y*o,this.wmsParams=r},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,or.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,r=R(n.project(e[0]),n.project(e[1])),i=r.min,o=r.max,a=(1.3<=this._wmsVersion&&this._crs===Mn?[i.y,i.x,o.y,o.x]:[i.x,i.y,o.x,o.y]).join(","),s=or.prototype.getTileUrl.call(this,t);return s+d(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,n){return e(this.wmsParams,t),n||this.redraw(),this}});or.WMS=sr,ar.wms=function(t,e){return new sr(t,e)};var ur=Pn.extend({options:{padding:.1,tolerance:0},initialize:function(t){p(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&he(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),r=_e(this._container),i=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),a=this._map.project(t,e).subtract(o),s=i.multiplyBy(-n).add(r).add(i).subtract(a);mt?ve(this._container,s,n):me(this._container,s)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new j(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),cr=ur.extend({getEvents:function(){var t=ur.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ur.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Pe(t,"mousemove",this._onMouseMove,this),Pe(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Pe(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){S(this._redrawRequest),delete this._ctx,ae(this._container),Te(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){var t,e,n,r;this._map._animatingZoom&&this._bounds||(ur.prototype._update.call(this),t=this._bounds,e=this._container,n=t.getSize(),r=Pt?2:1,me(e,t.min),e.width=r*n.x,e.height=r*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Pt&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update"))},_reset:function(){ur.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t);var e=(this._layers[a(t)]=t)._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,r=e.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete t._order,delete this._layers[a(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){for(var e,n=t.options.dashArray.split(/[, ]+/),r=[],i=0;i<n.length;i++){if(e=Number(n[i]),isNaN(e))return;r.push(e)}t.options._dashArray=r}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||M(this._redraw,this))},_extendRedrawBounds:function(t){var e;t._pxBounds&&(e=(t.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new j,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e])))},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t,e=this._redrawBounds;e?(t=e.getSize(),this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)):(this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore())},_draw:function(){var t,e,n=this._redrawBounds;this._ctx.save(),n&&(e=n.getSize(),this._ctx.beginPath(),this._ctx.rect(n.min.x,n.min.y,e.x,e.y),this._ctx.clip()),this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)t=r.layer,(!n||t._pxBounds&&t._pxBounds.intersects(n))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,r,i,o,a=t._parts,s=a.length,u=this._ctx;if(s){for(u.beginPath(),n=0;n<s;n++){for(r=0,i=a[n].length;r<i;r++)o=a[n][r],u[r?"lineTo":"moveTo"](o.x,o.y);e&&u.closePath()}this._fillStroke(u,t)}}},_updateCircle:function(t){var e,n,r,i;this._drawing&&!t._empty()&&(e=t._point,n=this._ctx,r=Math.max(Math.round(t._radius),1),1!=(i=(Math.max(Math.round(t._radiusY),1)||r)/r)&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(e.x,e.y/i,r,0,2*Math.PI,!1),1!=i&&n.restore(),this._fillStroke(n,t))},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,r=this._map.mouseEventToLayerPoint(t),i=this._drawFirst;i;i=i.next)(e=i.layer).options.interactive&&e._containsPoint(r)&&(("click"===t.type||"preclick"!==t.type)&&this._map._draggableMoved(e)||(n=e));n&&(Ue(t),this._fireEvent([n],t))},_onMouseMove:function(t){var e;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(e=this._map.mouseEventToLayerPoint(t),this._handleMouseHover(t,e))},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(fe(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,r,o=this._drawFirst;o;o=o.next)(n=o.layer).options.interactive&&n._containsPoint(e)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(t),r&&(he(this._container,"leaflet-interactive"),this._fireEvent([r],t,"mouseover"),this._hoveredLayer=r)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(i(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e,n,r=t._order;r&&(e=r.next,n=r.prev,e&&((e.prev=n)?n.next=e:e&&(this._drawFirst=e),r.prev=this._drawLast,(this._drawLast.next=r).next=null,this._drawLast=r,this._requestRedraw(t)))},_bringToBack:function(t){var e,n,r=t._order;r&&(e=r.next,(n=r.prev)&&((n.next=e)?e.prev=n:n&&(this._drawLast=n),r.prev=null,r.next=this._drawFirst,this._drawFirst.prev=r,this._drawFirst=r,this._requestRedraw(t)))}});function lr(t){return Tt?new cr(t):null}var hr=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),fr={_initContainer:function(){this._container=oe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ur.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=hr("shape");he(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=hr("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ae(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,r=t.options,i=t._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(e=e||(t._stroke=hr("stroke")),i.appendChild(e),e.weight=r.weight+"px",e.color=r.color,e.opacity=r.opacity,r.dashArray?e.dashStyle=v(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=r.lineCap.replace("butt","flat"),e.joinstyle=r.lineJoin):e&&(i.removeChild(e),t._stroke=null),r.fill?(n=n||(t._fill=hr("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),r=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+r+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ue(t._container)},_bringToBack:function(t){ce(t._container)}},pr=Lt?hr:K,dr=ur.extend({getEvents:function(){var t=ur.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=pr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=pr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ae(this._container),Te(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){var t,e,n;this._map._animatingZoom&&this._bounds||(ur.prototype._update.call(this),e=(t=this._bounds).getSize(),n=this._container,this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),me(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update"))},_initPath:function(t){var e=t._path=pr("path");t.options.className&&he(e,t.options.className),t.options.interactive&&he(e,"leaflet-interactive"),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ae(t._path),t.removeInteractiveTarget(t._path),delete this._layers[a(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Q(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),r="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",i=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(t,i)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ue(t._path)},_bringToBack:function(t){ce(t._path)}});function gr(t){return It||Lt?new dr(t):null}Lt&&dr.include(fr),Xe.include({getRenderer:function(t){var e=(e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer());return this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&lr(t)||gr(t)}});var yr=Fn.extend({initialize:function(t,e){Fn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=F(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});dr.create=pr,dr.pointsToPath=Q,zn.geometryToLayer=Bn,zn.coordsToLatLng=Gn,zn.coordsToLatLngs=Un,zn.latLngToCoords=Vn,zn.latLngsToCoords=Jn,zn.getFeature=Hn,zn.asFeature=Yn,Xe.mergeOptions({boxZoom:!0});var vr=en.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Pe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Te(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ae(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Yt(),be(),this._startPoint=this._map.mouseEventToContainerPoint(t),Pe(document,{contextmenu:Fe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=oe("div","leaflet-zoom-box",this._container),he(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new j(this._point,this._startPoint),n=e.getSize();me(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ae(this._box),fe(this._container,"leaflet-crosshair")),Xt(),we(),Te(document,{contextmenu:Fe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){var e;1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0),e=new D(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})))},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});Xe.addInitHook("addHandler","boxZoom",vr),Xe.mergeOptions({doubleClickZoom:!0});var mr=en.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),r=e.options.zoomDelta,i=t.originalEvent.shiftKey?n-r:n+r;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}});Xe.addInitHook("addHandler","doubleClickZoom",mr),Xe.mergeOptions({dragging:!0,inertia:!ot,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var _r=en.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new un(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))),he(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){fe(this._map._container,"leaflet-grab"),fe(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t,e=this._map;e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=F(this._map.options.maxBounds),this._offsetLimit=R(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var e,n;this._map.options.inertia&&(e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(n),this._times.push(e),this._prunePositions(e)),this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1<this._positions.length&&50<t-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){var t,e;this._viscosity&&this._offsetLimit&&(t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit,t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-e+n)%t+e-n,o=(r+e+n)%t-e-n,a=Math.abs(i+n)<Math.abs(o+n)?i:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e,n,r,i,o,a,s,u,c,l=this._map,h=l.options,f=!h.inertia||this._times.length<2;l.fire("dragend",t),f?l.fire("moveend"):(this._prunePositions(+new Date),e=this._lastPos.subtract(this._positions[0]),n=(this._lastTime-this._times[0])/1e3,r=h.easeLinearity,o=(i=e.multiplyBy(r/n)).distanceTo([0,0]),a=Math.min(h.inertiaMaxSpeed,o),s=i.multiplyBy(a/o),u=a/(h.inertiaDeceleration*r),(c=s.multiplyBy(-u/2).round()).x||c.y?(c=l._limitOffset(c,l.options.maxBounds),M(function(){l.panBy(c,{duration:u,easeLinearity:r,noMoveStart:!0,animate:!0})})):l.fire("moveend"))}});Xe.addInitHook("addHandler","dragging",_r),Xe.mergeOptions({keyboard:!0,keyboardPanDelta:80});var br=en.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Pe(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Te(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){var t,e,n,r;this._focused||(t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,r=t.scrollLeft||e.scrollLeft,this._map._container.focus(),window.scrollTo(r,n))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){for(var e=this._panKeys={},n=this.keyCodes,r=0,i=n.left.length;r<i;r++)e[n.left[r]]=[-1*t,0];for(r=0,i=n.right.length;r<i;r++)e[n.right[r]]=[t,0];for(r=0,i=n.down.length;r<i;r++)e[n.down[r]]=[0,t];for(r=0,i=n.up.length;r<i;r++)e[n.up[r]]=[0,-1*t]},_setZoomDelta:function(t){for(var e=this._zoomKeys={},n=this.keyCodes,r=0,i=n.zoomIn.length;r<i;r++)e[n.zoomIn[r]]=t;for(r=0,i=n.zoomOut.length;r<i;r++)e[n.zoomOut[r]]=-t},_addHooks:function(){Pe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Te(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,r=this._map;if(n in this._panKeys)r._panAnim&&r._panAnim._inProgress||(e=this._panKeys[n],t.shiftKey&&(e=k(e).multiplyBy(3)),r.panBy(e),r.options.maxBounds&&r.panInsideBounds(r.options.maxBounds));else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}Fe(t)}}});Xe.addInitHook("addHandler","keyboard",br),Xe.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var wr=en.extend({addHooks:function(){Pe(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Te(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=qe(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),r),Fe(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var r=this._delta/(4*this._map.options.wheelPxPerZoomLevel),i=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,o=n?Math.ceil(i/n)*n:i,a=t._limitZoom(e+(0<this._delta?o:-o))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});Xe.addInitHook("addHandler","scrollWheelZoom",wr),Xe.mergeOptions({tap:!0,tapTolerance:15});var Er=en.extend({addHooks:function(){Pe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Te(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(De(t),this._fireClick=!0,1<t.touches.length)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new A(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&he(n,"leaflet-active"),this._holdTimeout=setTimeout(i(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))},this),1e3),this._simulateEvent("mousedown",e),Pe(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){var e,n;clearTimeout(this._holdTimeout),Te(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches&&((n=(e=t.changedTouches[0]).target)&&n.tagName&&"a"===n.tagName.toLowerCase()&&fe(n,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e))},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new A(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var n=document.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}});!Ot||xt&&!ht||Xe.addInitHook("addHandler","tap",Er),Xe.mergeOptions({touchZoom:Ot&&!ot,bounceAtZoomLimits:!0});var xr=en.extend({addHooks:function(){he(this._map._container,"leaflet-touch-zoom"),Pe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){fe(this._map._container,"leaflet-touch-zoom"),Te(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e,n,r=this._map;!t.touches||2!==t.touches.length||r._animatingZoom||this._zooming||(e=r.mouseEventToContainerPoint(t.touches[0]),n=r.mouseEventToContainerPoint(t.touches[1]),this._centerPoint=r.getSize()._divideBy(2),this._startLatLng=r.containerPointToLatLng(this._centerPoint),"center"!==r.options.touchZoom&&(this._pinchStartLatLng=r.containerPointToLatLng(e.add(n)._divideBy(2))),this._startDist=e.distanceTo(n),this._startZoom=r.getZoom(),this._moved=!1,this._zooming=!0,r._stop(),Pe(document,"touchmove",this._onTouchMove,this),Pe(document,"touchend",this._onTouchEnd,this),De(t))},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]),o=n.distanceTo(r)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&1<o)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1==o)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1==o&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),S(this._animRequest);var s=i(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=M(s,this,!0),De(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,S(this._animRequest),Te(document,"touchmove",this._onTouchMove,this),Te(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Xe.addInitHook("addHandler","touchZoom",xr),Xe.BoxZoom=vr,Xe.DoubleClickZoom=mr,Xe.Drag=_r,Xe.Keyboard=br,Xe.ScrollWheelZoom=wr,Xe.Tap=Er,Xe.TouchZoom=xr,t.version="1.7.1",t.Control=We,t.control=Ze,t.Browser=Nt,t.Evented=I,t.Mixin=rn,t.Util=P,t.Class=C,t.Handler=en,t.extend=e,t.bind=i,t.stamp=a,t.setOptions=p,t.DomEvent=He,t.DomUtil=Se,t.PosAnimation=Ye,t.Draggable=un,t.LineUtil=vn,t.PolyUtil=bn,t.Point=A,t.point=k,t.Bounds=j,t.bounds=R,t.Transformation=H,t.transformation=Y,t.Projection=xn,t.LatLng=z,t.latLng=B,t.LatLngBounds=D,t.latLngBounds=F,t.CRS=G,t.GeoJSON=zn,t.geoJSON=Zn,t.geoJson=Wn,t.Layer=Pn,t.LayerGroup=Cn,t.layerGroup=function(t,e){return new Cn(t,e)},t.FeatureGroup=Tn,t.featureGroup=function(t,e){return new Tn(t,e)},t.ImageOverlay=Kn,t.imageOverlay=function(t,e,n){return new Kn(t,e,n)},t.VideoOverlay=Qn,t.videoOverlay=function(t,e,n){return new Qn(t,e,n)},t.SVGOverlay=$n,t.svgOverlay=function(t,e,n){return new $n(t,e,n)},t.DivOverlay=tr,t.Popup=er,t.popup=function(t,e){return new er(t,e)},t.Tooltip=nr,t.tooltip=function(t,e){return new nr(t,e)},t.Icon=In,t.icon=function(t){return new In(t)},t.DivIcon=rr,t.divIcon=function(t){return new rr(t)},t.Marker=Nn,t.marker=function(t,e){return new Nn(t,e)},t.TileLayer=or,t.tileLayer=ar,t.GridLayer=ir,t.gridLayer=function(t){return new ir(t)},t.SVG=dr,t.svg=gr,t.Renderer=ur,t.Canvas=cr,t.canvas=lr,t.Path=kn,t.CircleMarker=jn,t.circleMarker=function(t,e){return new jn(t,e)},t.Circle=Rn,t.circle=function(t,e,n){return new Rn(t,e,n)},t.Polyline=Dn,t.polyline=function(t,e){return new Dn(t,e)},t.Polygon=Fn,t.polygon=function(t,e){return new Fn(t,e)},t.Rectangle=yr,t.rectangle=function(t,e){return new yr(t,e)},t.Map=Xe,t.map=function(t,e){return new Xe(t,e)};var Or=window.L;t.noConflict=function(){return window.L=Or,this},window.L=t})(e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=(x(n(7)),n(4)),o=x(n(14)),a=(x(n(12)),x(n(51))),s=x(n(379)),u=x(n(381)),c=x(n(382)),l=x(n(65)),h=(x(n(22)),x(n(5)),x(n(64))),f=x(n(386)),p=x(n(98)),d=x(n(99)),g=x(n(387)),y=x(n(391)),v=x(n(100)),m=x(n(67)),_=x(n(392)),b=n(55),w=x(n(68)),E=x(n(393));function x(t){return t&&t.__esModule?t:{default:t}}var O=window.L,M=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._map=e,this._layerGroups=new Map}return r(t,[{key:"addMarker",value:function(t){var e=this._getLayerTypeByMarker(t);if(e){var n=this.getOrCreateLayer(t.floorId,e);if(n)return n.addMarker(t);console.error("The floorId could not been supported")}else console.error("The type of marker could not been supported!!")}},{key:"getFloorList",value:function(){var t={},e=this;return e._layerGroups.forEach(function(n,r){(0!==r||0===r&&e._map._rootLayer)&&(t[r]=o.default.getFloorNoByFloorId(r))}),t}},{key:"removeMarker",value:function(t){var e=this._getLayerTypeByMarker(t);if(e){var n=this.getOrCreateLayer(t.floorId,e);if(n)return n.removeMarker(t);console.error("The floorId could not been supported")}else console.error("The type of marker could not been supported!!")}},{key:"updateMarkerPosition",value:function(t,e){var n=this._getLayerTypeByMarker(t);n?[i.JSLayerType.LINE_MARKER_LAYER,i.JSLayerType.POLYGON_MARKER_LAYER,i.JSLayerType.RECTANGLE_MARKER_LAYER].includes(n)?this._updateMarkerPositions(t,e,n):this._updateMarkerPosition(t,e,n):console.error("The marker not supports this function")}},{key:"_updateMarkerPositions",value:function(t,e,n){var r=e.floorId,i=e.position;void 0===r&&(r=t.floorId);var o=t.floorId;if(o!=r){var a=this.getOrCreateLayer(o,n),s=t.getProperties();if(a.removeMarker(t,!1))t.floorId=r,t._position=i,this.getOrCreateLayer(r,n).addMarker(t,!1),this._map._eventManager.registerMarkerClickEvent(t),t.setProperties(s)}else t.setPosition(i)}},{key:"_updateMarkerPosition",value:function(t,e,n){var r=t.position.clone(),i=e.position,o=e.floorId;void 0===o&&(o=t.floorId);var a=t.floorId;if(i&&(i.x&&i.x!=r.x&&(r.x=i.x),i.y&&i.y!=r.y&&(r.y=i.y)),o!=t.floorId){var s=this.getOrCreateLayer(a,n);t.clearAnimators(!1);var u=t.getProperties();if(s.removeMarker(t,!1))t.floorId=o,r.equal(t.position)||(t._position=r),this.getOrCreateLayer(o,n).addMarker(t,!1),this._map._eventManager.registerMarkerClickEvent(t),t.setProperties(u)}else if(!r.equal(t.position)){var c=e.animate;c?!0===c?t.moveTo(r):t.moveTo(r,c.duration,c.update,c.complete,c.begin):t.setPosition(r)}}},{key:"removeAllMarker",value:function(t){var e=void 0==t;this._layerGroups.forEach(function(n){n.forEach(function(n,r){e?n.removeAll():t==r&&n.removeAll()})})}},{key:"removeMarkerByFilter",value:function(t,e){var n=this._getLayerTypeByMarkerType(t);this._layerGroups.forEach(function(t){var r=t.get(n);r&&r.removeMarkerByFilter(e)})}},{key:"setMarkerVisibleByFilter",value:function(t,e,n){var r=this._getLayerTypeByMarkerType(t);this._layerGroups.forEach(function(t){var i=t.get(r);i&&i.setMarkerVisibleByFilter(e,n)})}},{key:"setMarkerOnlyVisibleByFilter",value:function(t,e,n){var r=this._getLayerTypeByMarkerType(t);this._layerGroups.forEach(function(t){var i=t.get(r);i&&i.setMarkerOnlyVisibleByFilter(e,n)})}},{key:"trackMarker",value:function(t,e){var n=this._getLayerTypeByMarker(t);if(n&&![i.JSLayerType.LINE_MARKER_LAYER,i.JSLayerType.POLYGON_MARKER_LAYER].includes(n)){this.cancelTrack();var r=this,o=function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;r._map.focusFloorId=t.floorId;var o=10;e&&(0,b.isNumber)(e.range)&&(o=e.range);var a=n.x,s=n.y;r._map._map.fitBounds(O.latLng(s,a).toBounds(o),{zoom:{animate:i>0},pan:{animate:i>0,duration:i/1e3,easeLinearity:1}})};o(t._position,50),t.positionChangeCallback=o,r._lastTrackMarker=t}else console.error("The type of marker is not been supported!")}},{key:"cancelTrack",value:function(){this._lastTrackMarker&&(this._lastTrackMarker.positionChangeCallback=null,this._lastTrackMarker=null)}},{key:"changeFloor",value:function(t){this._layerGroups.forEach(function(e,n){e.forEach(function(e){e.show(n==t)})})}},{key:"_getLayerTypeByMarkerType",value:function(t){var e=void 0;switch(t){case i.JSMarkerType.ICON_TEXT_MARKER:e=i.JSLayerType.ICON_TEXT_MARKER_LAYER;break;case i.JSMarkerType.POINT_MARKER:e=i.JSLayerType.POINT_MARKER_LAYER;break;case i.JSMarkerType.LINE_MARKER:e=i.JSLayerType.LINE_MARKER_LAYER;break;case i.JSMarkerType.POLYGON_MARKER:e=i.JSLayerType.POLYGON_MARKER_LAYER;break;case i.JSMarkerType.IMAGE_MARKER:e=i.JSLayerType.IMAGE_MARKER_LAYER;break;case i.JSMarkerType.DOM_MARKER:e=i.JSLayerType.DOM_MARKER_LAYER;break;case i.JSMarkerType.CIRCLE_MARKER:e=i.JSLayerType.CIRCLE_MARKER_LAYER}return e}},{key:"_getLayerTypeByMarker",value:function(t){var e=void 0;return t instanceof v.default?e=i.JSLayerType.ICON_TEXT_MARKER_LAYER:t instanceof a.default?e=i.JSLayerType.IMAGE_MARKER_LAYER:t instanceof l.default?e=i.JSLayerType.LINE_MARKER_LAYER:t instanceof h.default?e=i.JSLayerType.POLYGON_MARKER_LAYER:t instanceof p.default?e=i.JSLayerType.POINT_MARKER_LAYER:t instanceof d.default?e=i.JSLayerType.DOM_MARKER_LAYER:t instanceof m.default?e=i.JSLayerType.CIRCLE_MARKER_LAYER:t instanceof w.default&&(e=i.JSLayerType.RECTANGLE_MARKER_LAYER),e}},{key:"getOrCreateLayer",value:function(t,e){var n=this._layerGroups.get(Number(t));if(n){if(n.has(e))return n.get(e);var r=this._map._map,o=void 0,a=this._map.focusFloorId==t;switch(e){case i.JSLayerType.ICON_TEXT_MARKER_LAYER:o=new y.default(a,r.createPane("iconTextLayer_"+t));break;case i.JSLayerType.IMAGE_MARKER_LAYER:o=new s.default(a,r.createPane("imageLayer_"+t));break;case i.JSLayerType.POLYGON_MARKER_LAYER:o=new u.default(a,r.createPane("polygonLayer_"+t));break;case i.JSLayerType.LINE_MARKER_LAYER:o=new c.default(a,r.createPane("lineLayer_"+t));break;case i.JSLayerType.POINT_MARKER_LAYER:o=new f.default(a,r.createPane("pointLayer_"+t));break;case i.JSLayerType.DOM_MARKER_LAYER:o=new g.default(a,r.createPane("domLayer_"+t));break;case i.JSLayerType.CIRCLE_MARKER_LAYER:o=new _.default(a,r.createPane("circlesLayer_"+t));break;case i.JSLayerType.RECTANGLE_MARKER_LAYER:o=new E.default(a,r.createPane("rectangleMarker_"+t))}return n.set(e,o),o.addToMap(this._map),o}}},{key:"initLayerGroups",value:function(){var t=this._map,e=this;e._layerGroups.set(0,new Map),t._floorLayerSet&&t._floorLayerSet.forEach(function(t,n){var r=o.default.getFloorIdByFloorNo(n);e._layerGroups.set(r,new Map)})}},{key:"destroy",value:function(){this._map=void 0}}]),t}();e.default=M},function(t,e,n){"use strict";var r=n(10),i=n(1),o=n(2),a=n(0),s=n(71),u=n.n(s),c={successCallback:null,verbose:!1},l={};function h(t,e,n){n=n||{};for(var r=Object.keys(c),i=0;i<r.length;i++){var o=r[i],a=n[o];a=void 0!==a&&null!==a?a:c[o],l[o]=a}l.verbose&&console.log("MarchingSquaresJS-isoContours: computing isocontour for "+e);var s,u,h,y=(s=function(t,e){for(var n=t.length-1,r=t[0].length-1,i={rows:n,cols:r,cells:[]},o=0;o<n;++o){i.cells[o]=[];for(var a=0;a<r;++a){var s=0,u=t[o+1][a],c=t[o+1][a+1],l=t[o][a+1],h=t[o][a];if(!(isNaN(u)||isNaN(c)||isNaN(l)||isNaN(h))){s|=u>=e?8:0,s|=c>=e?4:0,s|=l>=e?2:0;var p,d,g,y,v=!1;if(5===(s|=h>=e?1:0)||10===s){var m=(u+c+l+h)/4;5===s&&m<e?(s=10,v=!0):10===s&&m<e&&(s=5,v=!0)}if(0!==s&&15!==s)p=d=g=y=.5,1===s?(g=1-f(e,u,h),d=1-f(e,l,h)):2===s?(d=f(e,h,l),y=1-f(e,c,l)):3===s?(g=1-f(e,u,h),y=1-f(e,c,l)):4===s?(p=f(e,u,c),y=f(e,l,c)):5===s?(p=f(e,u,c),y=f(e,l,c),d=1-f(e,l,h),g=1-f(e,u,h)):6===s?(d=f(e,h,l),p=f(e,u,c)):7===s?(g=1-f(e,u,h),p=f(e,u,c)):8===s?(g=f(e,h,u),p=1-f(e,c,u)):9===s?(d=1-f(e,l,h),p=1-f(e,c,u)):10===s?(p=1-f(e,c,u),y=1-f(e,c,l),d=f(e,h,l),g=f(e,h,u)):11===s?(p=1-f(e,c,u),y=1-f(e,c,l)):12===s?(g=f(e,h,u),y=f(e,l,c)):13===s?(d=1-f(e,l,h),y=f(e,l,c)):14===s?(g=f(e,h,u),d=f(e,h,l)):console.log("MarchingSquaresJS-isoContours: Illegal cval detected: "+s),i.cells[o][a]={cval:s,flipped:v,top:p,right:y,bottom:d,left:g}}}}return i}(t,e),u=[],h=0,s.cells.forEach(function(t,e){t.forEach(function(t,n){if(void 0!==t&&5!==(f=t).cval&&10!==f.cval&&!p(t)){var r=function(t,e,n){var r,i,o,a=t.length,s=[],u=[0,0,1,1,0,0,0,0,-1,0,1,1,-1,0,-1,0],c=[0,-1,0,0,1,1,1,1,0,-1,0,0,0,-1,0,0],l=["none","bottom","right","right","top","top","top","top","left","bottom","right","right","left","bottom","left","none"],h=t[e][n],f=h.cval,p=g(h,o=["none","left","bottom","left","right","none","bottom","left","top","top","none","top","right","right","bottom","none"][f]);s.push([n+p[0],e+p[1]]),p=g(h,o=l[f]),s.push([n+p[0],e+p[1]]),d(h);for(var y=n+u[f],v=e+c[f],m=f;y>=0&&v>=0&&v<a&&(y!=n||v!=e)&&void 0!==(h=t[v][y]);){if(0===(f=h.cval)||15===f)return{path:s,info:"mergeable"};o=l[f],r=u[f],i=c[f],5!==f&&10!==f||(5===f?h.flipped?-1===c[m]?(o="left",r=-1,i=0):(o="right",r=1,i=0):-1===u[m]&&(o="bottom",r=0,i=-1):10===f&&(h.flipped?-1===u[m]?(o="top",r=0,i=1):(o="bottom",r=0,i=-1):1===c[m]&&(o="left",r=-1,i=0))),p=g(h,o),s.push([y+p[0],v+p[1]]),d(h),y+=r,v+=i,m=f}return{path:s,info:"closed"}}(s.cells,e,n),i=!1;if("mergeable"===r.info)for(var o=r.path[r.path.length-1][0],a=r.path[r.path.length-1][1],c=h-1;c>=0;c--)if(Math.abs(u[c][0][0]-o)<=1e-7&&Math.abs(u[c][0][1]-a)<=1e-7){for(var l=r.path.length-2;l>=0;--l)u[c].unshift(r.path[l]);i=!0;break}i||(u[h++]=r.path)}var f})}),u);return"function"==typeof l.successCallback&&l.successCallback(y),y}function f(t,e,n){return(t-e)/(n-e)}function p(t){return 0===t.cval||15===t.cval}function d(t){p(t)||5===t.cval||10===t.cval||(t.cval=15)}function g(t,e){return"top"===e?[t.top,1]:"bottom"===e?[t.bottom,0]:"right"===e?[1,t.right]:"left"===e?[0,t.left]:void 0}function y(t,e){if(e=e||{},!Object(a.isObject)(e))throw new Error("options is invalid");var n=e.zProperty||"elevation",r=e.flip,s=e.flags;Object(o.collectionOf)(t,"Point","input must contain Points");for(var u=function(t,e){var n={};return Object(i.featureEach)(t,function(t){var e=Object(o.getCoords)(t)[1];n[e]||(n[e]=[]),n[e].push(t)}),Object.keys(n).map(function(t){return n[t].sort(function(t,e){return Object(o.getCoords)(t)[0]-Object(o.getCoords)(e)[0]})}).sort(function(t,n){return e?Object(o.getCoords)(t[0])[1]-Object(o.getCoords)(n[0])[1]:Object(o.getCoords)(n[0])[1]-Object(o.getCoords)(t[0])[1]})}(t,r),c=[],l=0;l<u.length;l++){for(var h=u[l],f=[],p=0;p<h.length;p++){var d=h[p];d.properties[n]?f.push(d.properties[n]):f.push(0),!0===s&&(d.properties.matrixPosition=[l,p])}c.push(f)}return c}e.a=function(t,e,n){if(n=n||{},!Object(a.isObject)(n))throw new Error("options is invalid");var s=n.zProperty||"elevation",c=n.commonProperties||{},l=n.breaksProperties||[];if(Object(o.collectionOf)(t,"Point","Input must contain Points"),!e)throw new Error("breaks is required");if(!Array.isArray(e))throw new Error("breaks must be an Array");if(!Object(a.isObject)(c))throw new Error("commonProperties must be an Object");if(!Array.isArray(l))throw new Error("breaksProperties must be an Array");var f=y(t,{zProperty:s,flip:!0}),p=function(t,e,n){var o=Object(r.default)(n),a=o[2]-o[0],s=o[3]-o[1],u=o[0],c=o[1],l=e[0].length-1,h=e.length-1,f=a/l,p=s/h,d=function(t){t[0]=t[0]*f+u,t[1]=t[1]*p+c};return t.forEach(function(t){Object(i.coordEach)(t,d)}),t}(function(t,e,n,r,i){for(var o=[],s=1;s<e.length;s++){var c=+e[s],l=u()({},r,i[s]);l[n]=c;var f=Object(a.multiLineString)(h(t,c),l);o.push(f)}return o}(f,e,s,c,l),f,t);return Object(a.featureCollection)(p)}},function(t,e,n){"use strict";var r=n(108),i=n(215),o=n(216),a=n(219).orient2d;function s(t,e,n){e=Math.max(0,void 0===e?2:e),n=n||0;var i=function(t){for(var e=t[0],n=t[0],r=t[0],i=t[0],a=0;a<t.length;a++){var s=t[a];s[0]<e[0]&&(e=s),s[0]>r[0]&&(r=s),s[1]<n[1]&&(n=s),s[1]>i[1]&&(i=s)}var u=[e,n,r,i],c=u.slice();for(a=0;a<t.length;a++)o(t[a],u)||c.push(t[a]);return function(t){t.sort(_);for(var e=[],n=0;n<t.length;n++){for(;e.length>=2&&p(e[e.length-2],e[e.length-1],t[n])<=0;)e.pop();e.push(t[n])}for(var r=[],i=t.length-1;i>=0;i--){for(;r.length>=2&&p(r[r.length-2],r[r.length-1],t[i])<=0;)r.pop();r.push(t[i])}return r.pop(),e.pop(),e.concat(r)}(c)}(t),a=new r(16);a.toBBox=function(t){return{minX:t[0],minY:t[1],maxX:t[0],maxY:t[1]}},a.compareMinX=function(t,e){return t[0]-e[0]},a.compareMinY=function(t,e){return t[1]-e[1]},a.load(t);for(var s,c=[],l=0;l<i.length;l++){var h=i[l];a.remove(h),s=g(h,s),c.push(s)}var f=new r(16);for(l=0;l<c.length;l++)f.insert(d(c[l]));for(var v=e*e,m=n*n;c.length;){var b=c.shift(),w=b.p,E=b.next.p,x=y(w,E);if(!(x<m)){var O=x/v;(h=u(a,b.prev.p,w,E,b.next.next.p,O,f))&&Math.min(y(h,w),y(h,E))<=O&&(c.push(b),c.push(g(h,b)),a.remove(h),f.remove(b),f.insert(d(b)),f.insert(d(b.next)))}}b=s;var M=[];do{M.push(b.p),b=b.next}while(b!==s);return M.push(b.p),M}function u(t,e,n,r,o,a,s){for(var u=new i([],c),h=t.data;h;){for(var p=0;p<h.children.length;p++){var d=h.children[p],g=h.leaf?v(d,n,r):l(n,r,d);g>a||u.push({node:d,dist:g})}for(;u.length&&!u.peek().node.children;){var y=u.pop(),m=y.node,_=v(m,e,n),b=v(m,r,o);if(y.dist<_&&y.dist<b&&f(n,m,s)&&f(r,m,s))return m}(h=u.pop())&&(h=h.node)}return null}function c(t,e){return t.dist-e.dist}function l(t,e,n){if(h(t,n)||h(e,n))return 0;var r=m(t[0],t[1],e[0],e[1],n.minX,n.minY,n.maxX,n.minY);if(0===r)return 0;var i=m(t[0],t[1],e[0],e[1],n.minX,n.minY,n.minX,n.maxY);if(0===i)return 0;var o=m(t[0],t[1],e[0],e[1],n.maxX,n.minY,n.maxX,n.maxY);if(0===o)return 0;var a=m(t[0],t[1],e[0],e[1],n.minX,n.maxY,n.maxX,n.maxY);return 0===a?0:Math.min(r,i,o,a)}function h(t,e){return t[0]>=e.minX&&t[0]<=e.maxX&&t[1]>=e.minY&&t[1]<=e.maxY}function f(t,e,n){for(var r,i,o,a,s=Math.min(t[0],e[0]),u=Math.min(t[1],e[1]),c=Math.max(t[0],e[0]),l=Math.max(t[1],e[1]),h=n.search({minX:s,minY:u,maxX:c,maxY:l}),f=0;f<h.length;f++)if(r=h[f].p,i=h[f].next.p,o=t,r!==(a=e)&&i!==o&&p(r,i,o)>0!=p(r,i,a)>0&&p(o,a,r)>0!=p(o,a,i)>0)return!1;return!0}function p(t,e,n){return a(t[0],t[1],e[0],e[1],n[0],n[1])}function d(t){var e=t.p,n=t.next.p;return t.minX=Math.min(e[0],n[0]),t.minY=Math.min(e[1],n[1]),t.maxX=Math.max(e[0],n[0]),t.maxY=Math.max(e[1],n[1]),t}function g(t,e){var n={p:t,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return e?(n.next=e.next,n.prev=e,e.next.prev=n,e.next=n):(n.prev=n,n.next=n),n}function y(t,e){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function v(t,e,n){var r=e[0],i=e[1],o=n[0]-r,a=n[1]-i;if(0!==o||0!==a){var s=((t[0]-r)*o+(t[1]-i)*a)/(o*o+a*a);s>1?(r=n[0],i=n[1]):s>0&&(r+=o*s,i+=a*s)}return(o=t[0]-r)*o+(a=t[1]-i)*a}function m(t,e,n,r,i,o,a,s){var u,c,l,h,f=n-t,p=r-e,d=a-i,g=s-o,y=t-i,v=e-o,m=f*f+p*p,_=f*d+p*g,b=d*d+g*g,w=f*y+p*v,E=d*y+g*v,x=m*b-_*_,O=x,M=x;0===x?(c=0,O=1,h=E,M=b):(h=m*E-_*w,(c=_*E-b*w)<0?(c=0,h=E,M=b):c>O&&(c=O,h=E+_,M=b)),h<0?(h=0,-w<0?c=0:-w>m?c=O:(c=-w,O=m)):h>M&&(h=M,-w+_<0?c=0:-w+_>m?c=O:(c=-w+_,O=m)),u=0===c?0:c/O;var S=(1-(l=0===h?0:h/M))*i+l*a-((1-u)*t+u*n),P=(1-l)*o+l*s-((1-u)*e+u*r);return S*S+P*P}function _(t,e){return t[0]===e[0]?t[1]-e[1]:t[0]-e[0]}i.default&&(i=i.default),t.exports=s,t.exports.default=s},function(t,e,n){"use strict";function r(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function i(t,e){return t<e?-1:t>e?1:0}e.a=function(t,e,n,o,a){!function t(e,n,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,u=n-i+1,c=Math.log(s),l=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*l*(s-l)/s)*(u-s/2<0?-1:1),f=Math.max(i,Math.floor(n-u*l/s+h)),p=Math.min(o,Math.floor(n+(s-u)*l/s+h));t(e,n,f,p,a)}var d=e[n],g=i,y=o;for(r(e,i,n),a(e[o],d)>0&&r(e,i,o);g<y;){for(r(e,g,y),g++,y--;a(e[g],d)<0;)g++;for(;a(e[y],d)>0;)y--}0===a(e[i],d)?r(e,i,y):r(e,++y,o),y<=n&&(i=y+1),n<=y&&(o=y-1)}}(t,e,n||0,o||t.length-1,a||i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=class{constructor(t=[],e=function(t,e){return t<e?-1:t>e?1:0}){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let t=(this.length>>1)-1;t>=0;t--)this._down(t)}push(t){this.data.push(t),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){const{data:e,compare:n}=this,r=e[t];for(;t>0;){const i=t-1>>1,o=e[i];if(n(r,o)>=0)break;e[t]=o,t=i}e[t]=r}_down(t){const{data:e,compare:n}=this,r=this.length>>1,i=e[t];for(;t<r;){let r=1+(t<<1),o=e[r];const a=r+1;if(a<this.length&&n(e[a],o)<0&&(r=a,o=e[a]),n(o,i)>=0)break;e[t]=o,t=r}e[t]=i}}},function(t,e,n){var r=n(217),i=n(218);t.exports=function(t,e,n,o){return e.length>0&&Array.isArray(e[0])?i(t,e,n,o):r(t,e,n,o)},t.exports.nested=i,t.exports.flat=r},function(t,e){t.exports=function(t,e,n,r){var i=t[0],o=t[1],a=!1;void 0===n&&(n=0),void 0===r&&(r=e.length);for(var s=(r-n)/2,u=0,c=s-1;u<s;c=u++){var l=e[n+2*u+0],h=e[n+2*u+1],f=e[n+2*c+0],p=e[n+2*c+1];h>o!=p>o&&i<(f-l)*(o-h)/(p-h)+l&&(a=!a)}return a}},function(t,e){t.exports=function(t,e,n,r){var i=t[0],o=t[1],a=!1;void 0===n&&(n=0),void 0===r&&(r=e.length);for(var s=r-n,u=0,c=s-1;u<s;c=u++){var l=e[u+n][0],h=e[u+n][1],f=e[c+n][0],p=e[c+n][1];h>o!=p>o&&i<(f-l)*(o-h)/(p-h)+l&&(a=!a)}return a}},function(t,e,n){(function(t){"use strict";const e=134217729;function n(t,e,n,r,i){let o,a,s,u,c=e[0],l=r[0],h=0,f=0;l>c==l>-c?(o=c,c=e[++h]):(o=l,l=r[++f]);let p=0;if(h<t&&f<n)for(l>c==l>-c?(s=o-((a=c+o)-c),c=e[++h]):(s=o-((a=l+o)-l),l=r[++f]),o=a,0!==s&&(i[p++]=s);h<t&&f<n;)l>c==l>-c?(s=o-((a=o+c)-(u=a-o))+(c-u),c=e[++h]):(s=o-((a=o+l)-(u=a-o))+(l-u),l=r[++f]),o=a,0!==s&&(i[p++]=s);for(;h<t;)s=o-((a=o+c)-(u=a-o))+(c-u),c=e[++h],o=a,0!==s&&(i[p++]=s);for(;f<n;)s=o-((a=o+l)-(u=a-o))+(l-u),l=r[++f],o=a,0!==s&&(i[p++]=s);return 0===o&&0!==p||(i[p++]=o),p}function r(t){return new Float64Array(t)}const i=r(4),o=r(8),a=r(12),s=r(16),u=r(4);t.orient2d=function(t,r,c,l,h,f){const p=(r-f)*(c-h),d=(t-h)*(l-f),g=p-d;if(0===p||0===d||p>0!=d>0)return g;const y=Math.abs(p+d);return Math.abs(g)>=3.3306690738754716e-16*y?g:-function(t,r,c,l,h,f,p){let d,g,y,v,m,_,b,w,E,x,O,M,S,P,C,T,I,L;const A=t-h,N=c-h,k=r-f,j=l-f;m=(C=(w=A-(b=(_=e*A)-(_-A)))*(x=j-(E=(_=e*j)-(_-j)))-((P=A*j)-b*E-w*E-b*x))-(O=C-(I=(w=k-(b=(_=e*k)-(_-k)))*(x=N-(E=(_=e*N)-(_-N)))-((T=k*N)-b*E-w*E-b*x))),i[0]=C-(O+m)+(m-I),m=(S=P-((M=P+O)-(m=M-P))+(O-m))-(O=S-T),i[1]=S-(O+m)+(m-T),m=(L=M+O)-M,i[2]=M-(L-m)+(O-m),i[3]=L;let R=function(t,e){let n=e[0];for(let t=1;t<4;t++)n+=e[t];return n}(0,i),D=2.2204460492503146e-16*p;if(R>=D||-R>=D)return R;if(d=t-(A+(m=t-A))+(m-h),y=c-(N+(m=c-N))+(m-h),g=r-(k+(m=r-k))+(m-f),v=l-(j+(m=l-j))+(m-f),0===d&&0===g&&0===y&&0===v)return R;if(D=1.1093356479670487e-31*p+3.3306690738754706e-16*Math.abs(R),(R+=A*v+j*d-(k*y+N*g))>=D||-R>=D)return R;m=(C=(w=d-(b=(_=e*d)-(_-d)))*(x=j-(E=(_=e*j)-(_-j)))-((P=d*j)-b*E-w*E-b*x))-(O=C-(I=(w=g-(b=(_=e*g)-(_-g)))*(x=N-(E=(_=e*N)-(_-N)))-((T=g*N)-b*E-w*E-b*x))),u[0]=C-(O+m)+(m-I),m=(S=P-((M=P+O)-(m=M-P))+(O-m))-(O=S-T),u[1]=S-(O+m)+(m-T),m=(L=M+O)-M,u[2]=M-(L-m)+(O-m),u[3]=L;const F=n(4,i,4,u,o);m=(C=(w=A-(b=(_=e*A)-(_-A)))*(x=v-(E=(_=e*v)-(_-v)))-((P=A*v)-b*E-w*E-b*x))-(O=C-(I=(w=k-(b=(_=e*k)-(_-k)))*(x=y-(E=(_=e*y)-(_-y)))-((T=k*y)-b*E-w*E-b*x))),u[0]=C-(O+m)+(m-I),m=(S=P-((M=P+O)-(m=M-P))+(O-m))-(O=S-T),u[1]=S-(O+m)+(m-T),m=(L=M+O)-M,u[2]=M-(L-m)+(O-m),u[3]=L;const z=n(F,o,4,u,a);m=(C=(w=d-(b=(_=e*d)-(_-d)))*(x=v-(E=(_=e*v)-(_-v)))-((P=d*v)-b*E-w*E-b*x))-(O=C-(I=(w=g-(b=(_=e*g)-(_-g)))*(x=y-(E=(_=e*y)-(_-y)))-((T=g*y)-b*E-w*E-b*x))),u[0]=C-(O+m)+(m-I),m=(S=P-((M=P+O)-(m=M-P))+(O-m))-(O=S-T),u[1]=S-(O+m)+(m-T),m=(L=M+O)-M,u[2]=M-(L-m)+(O-m),u[3]=L;const B=n(z,a,4,u,s);return s[B-1]}(t,r,c,l,h,f,y)},t.orient2dfast=function(t,e,n,r,i,o){return(e-o)*(n-i)-(t-i)*(r-o)},Object.defineProperty(t,"__esModule",{value:!0})})(e)},function(t,e,n){"use strict";var r=n(8),i=n(0),o=n(1),a=n(110),s=n(221);e.a=function(t,e){void 0===e&&(e={});var n=e.maxEdge||1/0,u=function(t){var e=[],n={};return Object(o.featureEach)(t,function(t){if(t.geometry){var r=t.geometry.coordinates.join("-");Object.prototype.hasOwnProperty.call(n,r)||(e.push(t),n[r]=!0)}}),Object(i.featureCollection)(e)}(t),c=Object(a.a)(u);if(c.features=c.features.filter(function(t){var i=t.geometry.coordinates[0][0],o=t.geometry.coordinates[0][1],a=t.geometry.coordinates[0][2],s=Object(r.a)(i,o,e),u=Object(r.a)(o,a,e),c=Object(r.a)(i,a,e);return s<=n&&u<=n&&c<=n}),c.features.length<1)return null;var l=Object(s.a)(c);return 1===l.coordinates.length&&(l.coordinates=l.coordinates[0],l.type="Polygon"),Object(i.feature)(l)}},function(t,e,n){"use strict";var r=n(9),i=n(0),o=n(2),a=n(1),s=n(222),u=n(223);e.a=function(t,e){if(void 0===e&&(e={}),e=e||{},!Object(i.isObject)(e))throw new Error("options is invalid");var n=e.mutate;if("FeatureCollection"!==Object(o.getType)(t))throw new Error("geojson must be a FeatureCollection");if(!t.features.length)throw new Error("geojson is empty");!1!==n&&void 0!==n||(t=Object(r.a)(t));var c=function(t){var e={};Object(a.flattenEach)(t,function(t){e[t.geometry.type]=!0});var n=Object.keys(e);return 1===n.length?n[0]:null}(t);if(!c)throw new Error("geojson must be homogenous");var l=t;switch(c){case"LineString":return Object(s.a)(l,e);case"Polygon":return Object(u.a)(l,e);default:throw new Error(c+" is not supported")}}},function(t,e,n){"use strict";var r=n(9),i=n(0),o=n(2),a=n(1);function s(t){return t[0].toString()+","+t[1].toString()}e.a=function(t,e){if(void 0===e&&(e={}),e=e||{},!Object(i.isObject)(e))throw new Error("options is invalid");var n=e.mutate;if("FeatureCollection"!==Object(o.getType)(t))throw new Error("geojson must be a FeatureCollection");if(!t.features.length)throw new Error("geojson is empty");!1!==n&&void 0!==n||(t=Object(r.a)(t));var u=[],c=Object(a.lineReduce)(t,function(t,e){var n=function(t,e){var n,r=t.geometry.coordinates,o=e.geometry.coordinates,a=s(r[0]),u=s(r[r.length-1]),c=s(o[0]),l=s(o[o.length-1]);if(a===l)n=o.concat(r.slice(1));else if(c===u)n=r.concat(o.slice(1));else if(a===c)n=r.slice(1).reverse().concat(o);else{if(u!==l)return null;n=r.concat(o.reverse().slice(1))}return Object(i.lineString)(n)}(t,e);return n||(u.push(t),e)});return c&&u.push(c),u.length?1===u.length?u[0]:Object(i.multiLineString)(u.map(function(t){return t.coordinates})):null}},function(t,e,n){"use strict";e.a=function(t,e){void 0===e&&(e={});if("FeatureCollection"!==Object(o.getType)(t))throw new Error("geojson must be a FeatureCollection");if(!t.features.length)throw new Error("geojson is empty");!1!==e.mutate&&void 0!==e.mutate||(t=Object(r.a)(t));var n=[];Object(a.flattenEach)(t,function(t){n.push(t.geometry)});var c=Object(u.a)({geoms:Object(i.geometryCollection)(n).geometry});return Object(s.a)(c,c.objects.geoms.geometries)};var r=n(9),i=n(0),o=n(2),a=n(1),s=n(224),u=n(231)},function(t,e,n){"use strict";n(111),n(73),n(226);var r=n(227);n.d(e,"a",function(){return r.a});n(228),n(230),n(72),n(114)},function(t,e,n){"use strict";e.a=function(t,e){for(var n,r=t.length,i=r-e;i<--r;)n=t[i],t[i++]=t[r],t[r]=n}},function(t,e,n){"use strict";n(73),n(113)},function(t,e,n){"use strict";var r=n(73),i=n(113);e.a=function(t){return Object(r.a)(t,function(t,e){var n={},o=[],a=[];function s(t){t.forEach(function(e){e.forEach(function(e){(n[e=e<0?~e:e]||(n[e]=[])).push(t)})}),o.push(t)}function u(e){return function(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[0]*i[1]-e[1]*i[0];return Math.abs(o)}(Object(r.a)(t,{type:"Polygon",arcs:[e]}).coordinates[0])}return e.forEach(function t(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(t);break;case"Polygon":s(e.arcs);break;case"MultiPolygon":e.arcs.forEach(s)}}),o.forEach(function(t){if(!t._){var e=[],r=[t];for(t._=1,a.push(e);t=r.pop();)e.push(t),t.forEach(function(t){t.forEach(function(t){n[t<0?~t:t].forEach(function(t){t._||(t._=1,r.push(t))})})})}}),o.forEach(function(t){delete t._}),{type:"MultiPolygon",arcs:a.map(function(e){var r,o=[];if(e.forEach(function(t){t.forEach(function(t){t.forEach(function(t){n[t<0?~t:t].length<2&&o.push(t)})})}),(r=(o=Object(i.a)(t,o)).length)>1)for(var a,s,c=1,l=u(o[0]);c<r;++c)(a=u(o[c]))>l&&(s=o[0],o[0]=o[c],o[c]=s,l=a);return o}).filter(function(t){return t.length>0})}}.apply(this,arguments))}},function(t,e,n){"use strict";n(229)},function(t,e,n){"use strict";e.a=function(t,e){for(var n=0,r=t.length;n<r;){var i=n+r>>>1;t[i]<e?n=i+1:r=i}return n}},function(t,e,n){"use strict";n(111),n(114)},function(t,e,n){"use strict";var r=n(232);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";var r=n(233),i=n(234),o=n(237),a=n(238),s=n(239),u=n(240),c=n(74),l=n(56),h=n(241);function f(t){var e,n=t[0],r=t[1];return r<n&&(e=n,n=r,r=e),n+31*r}function p(t,e){var n,r=t[0],i=t[1],o=e[0],a=e[1];return i<r&&(n=r,r=i,i=n),a<o&&(n=o,o=a,a=n),r===o&&i===a}e.a=function(t,e){var n=Object(r.a)(t=Object(u.a)(t)),d=e>0&&n&&Object(h.a)(t,n,e),g=Object(o.a)(Object(i.a)(Object(s.a)(t))),y=g.coordinates,v=Object(c.a)(1.4*g.arcs.length,f,p);function m(t){t&&l.a.call(_,t.type)&&_[t.type](t)}t=g.objects,g.bbox=n,g.arcs=g.arcs.map(function(t,e){return v.set(t,e),y.slice(t[0],t[1]+1)}),delete g.coordinates,y=null;var _={GeometryCollection:function(t){t.geometries.forEach(m)},LineString:function(t){t.arcs=b(t.arcs)},MultiLineString:function(t){t.arcs=t.arcs.map(b)},Polygon:function(t){t.arcs=t.arcs.map(b)},MultiPolygon:function(t){t.arcs=t.arcs.map(w)}};function b(t){var e=[];do{var n=v.get(t);e.push(t[0]<t[1]?n:~n)}while(t=t.next);return e}function w(t){return t.map(b)}for(var E in t)m(t[E]);return d&&(g.transform=d,g.arcs=Object(a.a)(g.arcs)),g}},function(t,e,n){"use strict";var r=n(56);e.a=function(t){var e=1/0,n=1/0,i=-1/0,o=-1/0;function a(t){null!=t&&r.a.call(s,t.type)&&s[t.type](t)}var s={GeometryCollection:function(t){t.geometries.forEach(a)},Point:function(t){u(t.coordinates)},MultiPoint:function(t){t.coordinates.forEach(u)},LineString:function(t){c(t.arcs)},MultiLineString:function(t){t.arcs.forEach(c)},Polygon:function(t){t.arcs.forEach(c)},MultiPolygon:function(t){t.arcs.forEach(l)}};function u(t){var r=t[0],a=t[1];r<e&&(e=r),r>i&&(i=r),a<n&&(n=a),a>o&&(o=a)}function c(t){t.forEach(u)}function l(t){t.forEach(c)}for(var h in t)a(t[h]);return i>=e&&o>=n?[e,n,i,o]:void 0}},function(t,e,n){"use strict";var r=n(235);function i(t,e,n,r){o(t,e,n),o(t,e,e+r),o(t,e+r,n)}function o(t,e,n){for(var r,i=e+(n---e>>1);e<i;++e,--n)r=t[e],t[e]=t[n],t[n]=r}e.a=function(t){var e,n,o,a=Object(r.a)(t),s=t.coordinates,u=t.lines,c=t.rings;for(n=0,o=u.length;n<o;++n)for(var l=u[n],h=l[0],f=l[1];++h<f;)a.has(s[h])&&(e={0:h,1:l[1]},l[1]=h,l=l.next=e);for(n=0,o=c.length;n<o;++n)for(var p=c[n],d=p[0],g=d,y=p[1],v=a.has(s[d]);++g<y;)a.has(s[g])&&(v?(e={0:g,1:p[1]},p[1]=g,p=p.next=e):(i(s,d,y,y-g),s[y]=s[d],v=!0,g=d));return t}},function(t,e,n){"use strict";var r=n(236),i=n(74),o=n(115),a=n(116);e.a=function(t){var e,n,s,u,c=t.coordinates,l=t.lines,h=t.rings,f=function(){for(var t=Object(i.a)(1.4*c.length,M,S,Int32Array,-1,Int32Array),e=new Int32Array(c.length),n=0,r=c.length;n<r;++n)e[n]=t.maybeSet(n,n);return e}(),p=new Int32Array(c.length),d=new Int32Array(c.length),g=new Int32Array(c.length),y=new Int8Array(c.length),v=0;for(e=0,n=c.length;e<n;++e)p[e]=d[e]=g[e]=-1;for(e=0,n=l.length;e<n;++e){var m=l[e],_=m[0],b=m[1];for(s=f[_],u=f[++_],++v,y[s]=1;++_<=b;)O(e,s,s=u,u=f[_]);++v,y[u]=1}for(e=0,n=c.length;e<n;++e)p[e]=-1;for(e=0,n=h.length;e<n;++e){var w=h[e],E=w[0]+1,x=w[1];for(O(e,f[x-1],s=f[E-1],u=f[E]);++E<=x;)O(e,s,s=u,u=f[E])}function O(t,e,n,r){if(p[n]!==t){p[n]=t;var i=d[n];if(i>=0){var o=g[n];i===e&&o===r||i===r&&o===e||(++v,y[n]=1)}else d[n]=e,g[n]=r}}function M(t){return Object(a.a)(c[t])}function S(t,e){return Object(o.a)(c[t],c[e])}p=d=g=null;var P,C=Object(r.a)(1.4*v,a.a,o.a);for(e=0,n=c.length;e<n;++e)y[P=f[e]]&&C.add(c[P]);return C}},function(t,e,n){"use strict";e.a=function(t,e,n,r,i){3===arguments.length&&(r=Array,i=null);for(var o=new r(t=1<<Math.max(4,Math.ceil(Math.log(t)/Math.LN2))),a=t-1,s=0;s<t;++s)o[s]=i;return{add:function(r){for(var s=e(r)&a,u=o[s],c=0;u!=i;){if(n(u,r))return!0;if(++c>=t)throw new Error("full hashset");u=o[s=s+1&a]}return o[s]=r,!0},has:function(r){for(var s=e(r)&a,u=o[s],c=0;u!=i;){if(n(u,r))return!0;if(++c>=t)break;u=o[s=s+1&a]}return!1},values:function(){for(var t=[],e=0,n=o.length;e<n;++e){var r=o[e];r!=i&&t.push(r)}return t}}}},function(t,e,n){"use strict";var r=n(74),i=n(115),o=n(116);e.a=function(t){var e,n,a,s,u=t.coordinates,c=t.lines,l=t.rings,h=c.length+l.length;for(delete t.lines,delete t.rings,a=0,s=c.length;a<s;++a)for(e=c[a];e=e.next;)++h;for(a=0,s=l.length;a<s;++a)for(n=l[a];n=n.next;)++h;var f=Object(r.a)(2*h*1.4,o.a,i.a),p=t.arcs=[];for(a=0,s=c.length;a<s;++a){e=c[a];do{d(e)}while(e=e.next)}for(a=0,s=l.length;a<s;++a)if((n=l[a]).next)do{d(n)}while(n=n.next);else g(n);function d(t){var e,n,r,i,o,a,s,c;if(r=f.get(e=u[t[0]]))for(s=0,c=r.length;s<c;++s)if(y(i=r[s],t))return t[0]=i[0],void(t[1]=i[1]);if(o=f.get(n=u[t[1]]))for(s=0,c=o.length;s<c;++s)if(v(a=o[s],t))return t[1]=a[0],void(t[0]=a[1]);r?r.push(t):f.set(e,[t]),o?o.push(t):f.set(n,[t]),p.push(t)}function g(t){var e,n,r,i,o;if(n=f.get(u[t[0]]))for(i=0,o=n.length;i<o;++i){if(m(r=n[i],t))return t[0]=r[0],void(t[1]=r[1]);if(_(r,t))return t[0]=r[1],void(t[1]=r[0])}if(n=f.get(e=u[t[0]+b(t)]))for(i=0,o=n.length;i<o;++i){if(m(r=n[i],t))return t[0]=r[0],void(t[1]=r[1]);if(_(r,t))return t[0]=r[1],void(t[1]=r[0])}n?n.push(t):f.set(e,[t]),p.push(t)}function y(t,e){var n=t[0],r=e[0],o=t[1];if(n-o!=r-e[1])return!1;for(;n<=o;++n,++r)if(!Object(i.a)(u[n],u[r]))return!1;return!0}function v(t,e){var n=t[0],r=e[0],o=t[1],a=e[1];if(n-o!=r-a)return!1;for(;n<=o;++n,--a)if(!Object(i.a)(u[n],u[a]))return!1;return!0}function m(t,e){var n=t[0],r=e[0],o=t[1]-n;if(o!==e[1]-r)return!1;for(var a=b(t),s=b(e),c=0;c<o;++c)if(!Object(i.a)(u[n+(c+a)%o],u[r+(c+s)%o]))return!1;return!0}function _(t,e){var n=t[0],r=e[0],o=t[1],a=e[1],s=o-n;if(s!==a-r)return!1;for(var c=b(t),l=s-b(e),h=0;h<s;++h)if(!Object(i.a)(u[n+(h+c)%s],u[a-(h+l)%s]))return!1;return!0}function b(t){for(var e=t[0],n=t[1],r=e,i=r,o=u[r];++r<n;){var a=u[r];(a[0]<o[0]||a[0]===o[0]&&a[1]<o[1])&&(i=r,o=a)}return i-e}return t}},function(t,e,n){"use strict";e.a=function(t){for(var e=-1,n=t.length;++e<n;){for(var r,i,o=t[e],a=0,s=1,u=o.length,c=o[0],l=c[0],h=c[1];++a<u;)r=(c=o[a])[0],i=c[1],r===l&&i===h||(o[s++]=[r-l,i-h],l=r,h=i);1===s&&(o[s++]=[0,0]),o.length=s}return t}},function(t,e,n){"use strict";var r=n(56);e.a=function(t){var e=-1,n=[],i=[],o=[];function a(t){t&&r.a.call(s,t.type)&&s[t.type](t)}var s={GeometryCollection:function(t){t.geometries.forEach(a)},LineString:function(t){t.arcs=u(t.arcs)},MultiLineString:function(t){t.arcs=t.arcs.map(u)},Polygon:function(t){t.arcs=t.arcs.map(c)},MultiPolygon:function(t){t.arcs=t.arcs.map(l)}};function u(t){for(var r=0,i=t.length;r<i;++r)o[++e]=t[r];var a={0:e-i+1,1:e};return n.push(a),a}function c(t){for(var n=0,r=t.length;n<r;++n)o[++e]=t[n];var a={0:e-r+1,1:e};return i.push(a),a}function l(t){return t.map(c)}for(var h in t)a(t[h]);return{type:"Topology",coordinates:o,lines:n,rings:i,objects:t}}},function(t,e,n){"use strict";function r(t){var e,n=i(t.geometry);for(e in null!=t.id&&(n.id=t.id),null!=t.bbox&&(n.bbox=t.bbox),t.properties){n.properties=t.properties;break}return n}function i(t){if(null==t)return{type:null};var e="GeometryCollection"===t.type?{type:"GeometryCollection",geometries:t.geometries.map(i)}:"Point"===t.type||"MultiPoint"===t.type?{type:t.type,coordinates:t.coordinates}:{type:t.type,arcs:t.coordinates};return null!=t.bbox&&(e.bbox=t.bbox),e}e.a=function(t){var e,n,o={};for(e in t)o[e]=null==(n=t[e])?{type:null}:("FeatureCollection"===n.type?function(t){var e={type:"GeometryCollection",geometries:t.features.map(r)};null!=t.bbox&&(e.bbox=t.bbox);return e}:"Feature"===n.type?r:i)(n);return o}},function(t,e,n){"use strict";var r=n(56);e.a=function(t,e,n){var i=e[0],o=e[1],a=e[2],s=e[3],u=a-i?(n-1)/(a-i):1,c=s-o?(n-1)/(s-o):1;function l(t){return[Math.round((t[0]-i)*u),Math.round((t[1]-o)*c)]}function h(t,e){for(var n,r,a,s,l,h=-1,f=0,p=t.length,d=new Array(p);++h<p;)n=t[h],s=Math.round((n[0]-i)*u),l=Math.round((n[1]-o)*c),s===r&&l===a||(d[f++]=[r=s,a=l]);for(d.length=f;f<e;)f=d.push([d[0][0],d[0][1]]);return d}function f(t){return h(t,2)}function p(t){return h(t,4)}function d(t){return t.map(p)}function g(t){null!=t&&r.a.call(y,t.type)&&y[t.type](t)}var y={GeometryCollection:function(t){t.geometries.forEach(g)},Point:function(t){t.coordinates=l(t.coordinates)},MultiPoint:function(t){t.coordinates=t.coordinates.map(l)},LineString:function(t){t.arcs=f(t.arcs)},MultiLineString:function(t){t.arcs=t.arcs.map(f)},Polygon:function(t){t.arcs=d(t.arcs)},MultiPolygon:function(t){t.arcs=t.arcs.map(d)}};for(var v in t)g(t[v]);return{scale:[1/u,1/c],translate:[i,o]}}},function(t,e,n){"use strict";var r=n(10),i=n(11),o=n(117),a=n.n(o);e.a=function(t,e,n,o){var s=a()(6),u=e.features.map(function(t){var e;return{minX:t.geometry.coordinates[0],minY:t.geometry.coordinates[1],maxX:t.geometry.coordinates[0],maxY:t.geometry.coordinates[1],property:null===(e=t.properties)||void 0===e?void 0:e[n]}});return s.load(u),t.features.forEach(function(t){t.properties||(t.properties={});var e=Object(r.default)(t),n=[];s.search({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}).forEach(function(e){Object(i.a)([e.minX,e.minY],t)&&n.push(e.property)}),t.properties[o]=n}),t}},function(t,e,n){var r;r=function(){"use strict";function t(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function e(t,e){return t<e?-1:t>e?1:0}return function(n,r,i,o,a){!function e(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,u=r-i+1,c=Math.log(s),l=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*l*(s-l)/s)*(u-s/2<0?-1:1),f=Math.max(i,Math.floor(r-u*l/s+h)),p=Math.min(o,Math.floor(r+(s-u)*l/s+h));e(n,r,f,p,a)}var d=n[r],g=i,y=o;for(t(n,i,r),a(n[o],d)>0&&t(n,i,o);g<y;){for(t(n,g,y),g++,y--;a(n[g],d)<0;)g++;for(;a(n[y],d)>0;)y--}0===a(n[i],d)?t(n,i,y):t(n,++y,o),y<=r&&(i=y+1),r<=y&&(o=y-1)}}(n,r,i||0,o||n.length-1,a||e)}},t.exports=r()},function(t,e,n){"use strict";var r=n(1),i=n(0),o=n(9);e.a=function(t,e){if(e=e||{},!Object(i.isObject)(e))throw new Error("options is invalid");var n=e.mutate;if(!t)throw new Error("geojson is required");return!1!==n&&void 0!==n||(t=Object(o.a)(t)),Object(r.coordEach)(t,function(t){var e=t[0],n=t[1];t[0]=n,t[1]=e}),t}},function(t,e,n){"use strict";var r=n(41),i=n(9),o=n(1),a=n(0);function s(t,e,n){var r=e.x,i=e.y,o=n.x-r,a=n.y-i;if(0!==o||0!==a){var s=((t.x-r)*o+(t.y-i)*a)/(o*o+a*a);s>1?(r=n.x,i=n.y):s>0&&(r+=o*s,i+=a*s)}return(o=t.x-r)*o+(a=t.y-i)*a}function u(t,e){var n=t.length-1,r=[t[0]];return function t(e,n,r,i,o){for(var a,u=i,c=n+1;c<r;c++){var l=s(e[c],e[n],e[r]);l>u&&(a=c,u=l)}u>i&&(a-n>1&&t(e,n,a,i,o),o.push(e[a]),r-a>1&&t(e,a,r,i,o))}(t,0,n,e,r),r.push(t[n]),r}function c(t,e,n){if(t.length<=2)return t;var r=void 0!==e?e*e:1;return t=u(t=n?t:function(t,e){for(var n,r,i,o,a,s=t[0],u=[s],c=1,l=t.length;c<l;c++)n=t[c],i=s,o=(r=n).x-i.x,a=r.y-i.y,o*o+a*a>e&&(u.push(n),s=n);return s!==n&&u.push(n),u}(t,r),r)}function l(t,e,n){return c(t.map(function(t){return{x:t[0],y:t[1],z:t[2]}}),e,n).map(function(t){return t.z?[t.x,t.y,t.z]:[t.x,t.y]})}function h(t,e,n){return t.map(function(t){var r=t.map(function(t){return{x:t[0],y:t[1]}});if(r.length<4)throw new Error("invalid polygon");for(var i=c(r,e,n).map(function(t){return[t.x,t.y]});!f(i);)i=c(r,e-=.01*e,n).map(function(t){return[t.x,t.y]});return i[i.length-1][0]===i[0][0]&&i[i.length-1][1]===i[0][1]||i.push(i[0]),i})}function f(t){return!(t.length<3)&&!(3===t.length&&t[2][0]===t[0][0]&&t[2][1]===t[0][1])}e.a=function(t,e){if(e=e||{},!Object(a.isObject)(e))throw new Error("options is invalid");var n=void 0!==e.tolerance?e.tolerance:1,s=e.highQuality||!1,u=e.mutate||!1;if(!t)throw new Error("geojson is required");if(n&&n<0)throw new Error("invalid tolerance");return!0!==u&&(t=Object(i.a)(t)),Object(o.geomEach)(t,function(t){!function(t,e,n){var i=t.type;if("Point"===i||"MultiPoint"===i)return t;Object(r.a)(t,!0);var o=t.coordinates;switch(i){case"LineString":t.coordinates=l(o,e,n);break;case"MultiLineString":t.coordinates=o.map(function(t){return l(t,e,n)});break;case"Polygon":t.coordinates=h(o,e,n);break;case"MultiPolygon":t.coordinates=o.map(function(t){return h(t,e,n)})}}(t,n,s)}),t}},function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(247);e.a=function(t,e){void 0===e&&(e={});for(var n=e.resolution||1e4,a=e.sharpness||.85,s=[],u=Object(i.getGeom)(t).coordinates.map(function(t){return{x:t[0],y:t[1]}}),c=new o.a({duration:n,points:u,sharpness:a}),l=function(t){var e=c.pos(t);Math.floor(t/100)%2==0&&s.push([e.x,e.y])},h=0;h<c.duration;h+=10)l(h);return l(c.duration),Object(r.lineString)(s,e.properties)}},function(t,e,n){"use strict";var r=function(){function t(t){this.points=t.points||[],this.duration=t.duration||1e4,this.sharpness=t.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=t.stepLength||60,this.length=this.points.length,this.delay=0;for(var e=0;e<this.length;e++)this.points[e].z=this.points[e].z||0;for(e=0;e<this.length-1;e++){var n=this.points[e],r=this.points[e+1];this.centers.push({x:(n.x+r.x)/2,y:(n.y+r.y)/2,z:(n.z+r.z)/2})}this.controls.push([this.points[0],this.points[0]]);for(e=0;e<this.centers.length-1;e++){var i=this.points[e+1].x-(this.centers[e].x+this.centers[e+1].x)/2,o=this.points[e+1].y-(this.centers[e].y+this.centers[e+1].y)/2,a=this.points[e+1].z-(this.centers[e].y+this.centers[e+1].z)/2;this.controls.push([{x:(1-this.sharpness)*this.points[e+1].x+this.sharpness*(this.centers[e].x+i),y:(1-this.sharpness)*this.points[e+1].y+this.sharpness*(this.centers[e].y+o),z:(1-this.sharpness)*this.points[e+1].z+this.sharpness*(this.centers[e].z+a)},{x:(1-this.sharpness)*this.points[e+1].x+this.sharpness*(this.centers[e+1].x+i),y:(1-this.sharpness)*this.points[e+1].y+this.sharpness*(this.centers[e+1].y+o),z:(1-this.sharpness)*this.points[e+1].z+this.sharpness*(this.centers[e+1].z+a)}])}return this.controls.push([this.points[this.length-1],this.points[this.length-1]]),this.steps=this.cacheSteps(this.stepLength),this}return t.prototype.cacheSteps=function(t){var e=[],n=this.pos(0);e.push(0);for(var r=0;r<this.duration;r+=10){var i=this.pos(r);Math.sqrt((i.x-n.x)*(i.x-n.x)+(i.y-n.y)*(i.y-n.y)+(i.z-n.z)*(i.z-n.z))>t&&(e.push(r),n=i)}return e},t.prototype.vector=function(t){var e=this.pos(t+10),n=this.pos(t-10);return{angle:180*Math.atan2(e.y-n.y,e.x-n.x)/3.14,speed:Math.sqrt((n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y)+(n.z-e.z)*(n.z-e.z))}},t.prototype.pos=function(t){var e=t-this.delay;e<0&&(e=0),e>this.duration&&(e=this.duration-1);var n=e/this.duration;if(n>=1)return this.points[this.length-1];var r=Math.floor((this.points.length-1)*n);return function(t,e,n,r,i){var o=function(t){var e=t*t;return[e*t,3*e*(1-t),3*t*(1-t)*(1-t),(1-t)*(1-t)*(1-t)]}(t);return{x:i.x*o[0]+r.x*o[1]+n.x*o[2]+e.x*o[3],y:i.y*o[0]+r.y*o[1]+n.y*o[2]+e.y*o[3],z:i.z*o[0]+r.z*o[1]+n.z*o[2]+e.z*o[3]}}((this.length-1)*n-r,this.points[r],this.controls[r][1],this.controls[r+1][0],this.points[r+1])},t}();e.a=r},function(t,e,n){"use strict";var r=n(11),i=n(9),o=n(1);e.a=function(t,e,n,a){return t=Object(i.a)(t),e=Object(i.a)(e),Object(o.featureEach)(t,function(t){t.properties||(t.properties={}),Object(o.featureEach)(e,function(e){void 0===t.properties[a]&&Object(r.a)(t,e)&&(t.properties[a]=e.properties[n])})}),t}},function(t,e,n){"use strict";var r=n(0);e.a=function(t,e){if(!t)throw new Error("featurecollection is required");if(null===e||void 0===e)throw new Error("num is required");if("number"!=typeof e)throw new Error("num must be a number");return Object(r.featureCollection)(function(t,e){for(var n,r,i=t.slice(0),o=t.length,a=o-e;o-- >a;)r=Math.floor((o+1)*Math.random()),n=i[r],i[r]=i[o],i[o]=n;return i.slice(a)}(t.features,e))}},function(t,e,n){"use strict";var r=n(34),i=n(27),o=n(8);e.a=function(t,e){var n=Object(o.a)(t,e),a=Object(r.a)(t,e);return Object(i.a)(t,n/2,a)}},function(t,e,n){"use strict";var r=n(107),i=n(28),o=n(0),a=n(2),s=n(1);e.a=function t(e,n){switch(void 0===n&&(n={}),Object(a.getType)(e)){case"Point":return Object(o.point)(Object(a.getCoord)(e),n.properties);case"Polygon":var u=[];Object(s.coordEach)(e,function(t){u.push(t)});var c,l,h,f,p,d,g,y,v=Object(i.a)(e,{properties:n.properties}),m=v.geometry.coordinates,_=0,b=0,w=0,E=u.map(function(t){return[t[0]-m[0],t[1]-m[1]]});for(c=0;c<u.length-1;c++)f=(l=E[c])[0],d=l[1],p=(h=E[c+1])[0],w+=y=f*(g=h[1])-p*d,_+=(f+p)*y,b+=(d+g)*y;if(0===w)return v;var x=1/(.5*w*6);return Object(o.point)([m[0]+x*_,m[1]+x*b],n.properties);default:var O=Object(r.a)(e);return O?t(O,{properties:n.properties}):Object(i.a)(e,{properties:n.properties})}}},function(t,e,n){"use strict";var r=n(0),i=n(1);e.a=function(t){var e={MultiPoint:{coordinates:[],properties:[]},MultiLineString:{coordinates:[],properties:[]},MultiPolygon:{coordinates:[],properties:[]}};return Object(i.featureEach)(t,function(t){var n,r,i,o;switch(null===(o=t.geometry)||void 0===o?void 0:o.type){case"Point":e.MultiPoint.coordinates.push(t.geometry.coordinates),e.MultiPoint.properties.push(t.properties);break;case"MultiPoint":(n=e.MultiPoint.coordinates).push.apply(n,t.geometry.coordinates),e.MultiPoint.properties.push(t.properties);break;case"LineString":e.MultiLineString.coordinates.push(t.geometry.coordinates),e.MultiLineString.properties.push(t.properties);break;case"MultiLineString":(r=e.MultiLineString.coordinates).push.apply(r,t.geometry.coordinates),e.MultiLineString.properties.push(t.properties);break;case"Polygon":e.MultiPolygon.coordinates.push(t.geometry.coordinates),e.MultiPolygon.properties.push(t.properties);break;case"MultiPolygon":(i=e.MultiPolygon.coordinates).push.apply(i,t.geometry.coordinates),e.MultiPolygon.properties.push(t.properties)}}),Object(r.featureCollection)(Object.keys(e).filter(function(t){return e[t].coordinates.length}).sort().map(function(t){var n={type:t,coordinates:e[t].coordinates},i={collectedProperties:e[t].properties};return Object(r.feature)(n,i)}))}},function(t,e,n){"use strict";var r=n(254),i=n.n(r),o=n(0);function a(t){var e=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[i][o][a]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n}(t),n=i()(e.vertices,e.holes,2),r=[],a=[];n.forEach(function(t,r){var i=n[r];a.push([e.vertices[2*i],e.vertices[2*i+1]])});for(var s=0;s<a.length;s+=3){var u=a.slice(s,s+3);u.push(a[s]),r.push(Object(o.polygon)([u]))}return r}e.a=function(t){if(!t.geometry||"Polygon"!==t.geometry.type&&"MultiPolygon"!==t.geometry.type)throw new Error("input must be a Polygon or MultiPolygon");var e={type:"FeatureCollection",features:[]};return"Polygon"===t.geometry.type?e.features=a(t.geometry.coordinates):t.geometry.coordinates.forEach(function(t){e.features=e.features.concat(a(t))}),e}},function(t,e,n){"use strict";function r(t,e,n){n=n||2;var r,s,u,c,l,p,d,y=e&&e.length,v=y?e[0]*n:t.length,m=i(t,0,v,n,!0),_=[];if(!m||m.next===m.prev)return _;if(y&&(m=function(t,e,n,r){var a,s,u,c,l,p=[];for(a=0,s=e.length;a<s;a++)u=e[a]*r,c=a<s-1?e[a+1]*r:t.length,(l=i(t,u,c,r,!1))===l.next&&(l.steiner=!0),p.push(g(l));for(p.sort(h),a=0;a<p.length;a++)n=o(n=f(p[a],n),n.next);return n}(t,e,m,n)),t.length>80*n){r=u=t[0],s=c=t[1];for(var b=n;b<v;b+=n)l=t[b],p=t[b+1],l<r&&(r=l),p<s&&(s=p),l>u&&(u=l),p>c&&(c=p);d=0!==(d=Math.max(u-r,c-s))?1/d:0}return a(m,_,n,r,s,d),_}function i(t,e,n,r,i){var o,a;if(i===C(t,e,n,r)>0)for(o=e;o<n;o+=r)a=M(o,t[o],t[o+1],a);else for(o=n-r;o>=e;o-=r)a=M(o,t[o],t[o+1],a);return a&&_(a,a.next)&&(S(a),a=a.next),a}function o(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!_(r,r.next)&&0!==m(r.prev,r,r.next))r=r.next;else{if(S(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function a(t,e,n,r,i,h,f){if(t){!f&&h&&function(t,e,n,r){var i=t;do{null===i.z&&(i.z=d(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,a,s,u,c=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e<c&&(s++,r=r.nextZ);e++);for(u=c;s>0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(a>1)}(i)}(t,r,i,h);for(var p,g,y=t;t.prev!==t.next;)if(p=t.prev,g=t.next,h?u(t,r,i,h):s(t))e.push(p.i/n),e.push(t.i/n),e.push(g.i/n),S(t),t=g.next,y=g.next;else if((t=g)===y){f?1===f?a(t=c(o(t),e,n),e,n,r,i,h,2):2===f&&l(t,e,n,r,i,h):a(o(t),e,n,r,i,h,1);break}}}function s(t){var e=t.prev,n=t,r=t.next;if(m(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(y(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&m(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function u(t,e,n,r){var i=t.prev,o=t,a=t.next;if(m(i,o,a)>=0)return!1;for(var s=i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,u=i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,c=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,l=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,h=d(s,u,e,n,r),f=d(c,l,e,n,r),p=t.prevZ,g=t.nextZ;p&&p.z>=h&&g&&g.z<=f;){if(p!==t.prev&&p!==t.next&&y(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,g!==t.prev&&g!==t.next&&y(i.x,i.y,o.x,o.y,a.x,a.y,g.x,g.y)&&m(g.prev,g,g.next)>=0)return!1;g=g.nextZ}for(;p&&p.z>=h;){if(p!==t.prev&&p!==t.next&&y(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;g&&g.z<=f;){if(g!==t.prev&&g!==t.next&&y(i.x,i.y,o.x,o.y,a.x,a.y,g.x,g.y)&&m(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function c(t,e,n){var r=t;do{var i=r.prev,a=r.next.next;!_(i,a)&&b(i,r,r.next,a)&&x(i,a)&&x(a,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(a.i/n),S(r),S(r.next),r=t=a),r=r.next}while(r!==t);return o(r)}function l(t,e,n,r,i,s){var u=t;do{for(var c=u.next.next;c!==u.prev;){if(u.i!==c.i&&v(u,c)){var l=O(u,c);return u=o(u,u.next),l=o(l,l.next),a(u,e,n,r,i,s),void a(l,e,n,r,i,s)}c=c.next}u=u.next}while(u!==t)}function h(t,e){return t.x-e.x}function f(t,e){var n=function(t,e){var n,r=e,i=t.x,o=t.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===a)return n;var u,c=n,l=n.x,h=n.y,f=1/0;r=n;do{i>=r.x&&r.x>=l&&i!==r.x&&y(o<h?i:a,o,l,h,o<h?a:i,o,r.x,r.y)&&(u=Math.abs(o-r.y)/(i-r.x),x(r,t)&&(u<f||u===f&&(r.x>n.x||r.x===n.x&&p(n,r)))&&(n=r,f=u)),r=r.next}while(r!==c);return n}(t,e);if(!n)return e;var r=O(n,t),i=o(n,n.next);return o(r,r.next),e===n?i:e}function p(t,e){return m(t.prev,t,e.prev)<0&&m(e.next,t,t.next)<0}function d(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function g(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function y(t,e,n,r,i,o,a,s){return(i-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(r-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&b(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(x(t,e)&&x(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(m(t.prev,t,e.prev)||m(t,e.prev,e))||_(t,e)&&m(t.prev,t,t.next)>0&&m(e.prev,e,e.next)>0)}function m(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function _(t,e){return t.x===e.x&&t.y===e.y}function b(t,e,n,r){var i=E(m(t,e,n)),o=E(m(t,e,r)),a=E(m(n,r,t)),s=E(m(n,r,e));return i!==o&&a!==s||(!(0!==i||!w(t,n,e))||(!(0!==o||!w(t,r,e))||(!(0!==a||!w(n,t,r))||!(0!==s||!w(n,e,r)))))}function w(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function E(t){return t>0?1:t<0?-1:0}function x(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function O(t,e){var n=new P(t.i,t.x,t.y),r=new P(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function M(t,e,n,r){var i=new P(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function S(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function P(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function C(t,e,n,r){for(var i=0,o=e,a=n-r;o<n;o+=r)i+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return i}t.exports=r,t.exports.default=r,r.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,a=Math.abs(C(t,0,o,n));if(i)for(var s=0,u=e.length;s<u;s++){var c=e[s]*n,l=s<u-1?e[s+1]*n:t.length;a-=Math.abs(C(t,c,l,n))}var h=0;for(s=0;s<r.length;s+=3){var f=r[s]*n,p=r[s+1]*n,d=r[s+2]*n;h+=Math.abs((t[f]-t[d])*(t[p+1]-t[f+1])-(t[f]-t[p])*(t[d+1]-t[f+1]))}return 0===a&&0===h?0:Math.abs((h-a)/a)},r.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[i][o][a]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n}},function(t,e,n){"use strict";var r=n(2),i=n(1),o=n(120),a=n(71),s=n.n(a);e.a=function(t,e,n){void 0===n&&(n={});var a=n.units,u=n.properties||{},c=function(t){var e=[];switch(t.geometry?t.geometry.type:t.type){case"GeometryCollection":return Object(i.geomEach)(t,function(t){"Point"===t.type&&e.push({type:"Feature",properties:{},geometry:t})}),{type:"FeatureCollection",features:e};case"FeatureCollection":return t.features=t.features.filter(function(t){return"Point"===t.geometry.type}),t;default:throw new Error("points must be a Point Collection")}}(t);if(!c.features.length)throw new Error("points must contain features");if(!e)throw new Error("line is required");if("LineString"!==Object(r.getType)(e))throw new Error("line must be a LineString");var l=1/0,h=null;return Object(i.featureEach)(c,function(t){var n=Object(o.a)(t,e,{units:a});n<l&&(l=n,h=t)}),h&&(h.properties=s()({dist:l},h.properties,u)),h}},function(t,e,n){"use strict";var r=n(2);e.a=function(t,e){var n=Object(r.getCoord)(t),i=Object(r.getGeom)(e).coordinates[0];if(i.length<4)throw new Error("OuterRing of a Polygon must have 4 or more Positions.");var o=e.properties||{},a=o.a,s=o.b,u=o.c,c=n[0],l=n[1],h=i[0][0],f=i[0][1],p=void 0!==a?a:i[0][2],d=i[1][0],g=i[1][1],y=void 0!==s?s:i[1][2],v=i[2][0],m=i[2][1],_=void 0!==u?u:i[2][2];return(_*(c-h)*(l-g)+p*(c-d)*(l-m)+y*(c-v)*(l-f)-y*(c-h)*(l-m)-_*(c-d)*(l-f)-p*(c-v)*(l-g))/((c-h)*(l-g)+(c-d)*(l-m)+(c-v)*(l-f)-(c-h)*(l-m)-(c-d)*(l-f)-(c-v)*(l-g))}},function(t,e,n){"use strict";e.a=function(t){var e,n,o={type:"FeatureCollection",features:[]};n="Feature"===t.type?t.geometry:t;if("LineString"===n.type)e=[n.coordinates];else if("MultiLineString"===n.type)e=n.coordinates;else if("MultiPolygon"===n.type)e=[].concat.apply([],n.coordinates);else{if("Polygon"!==n.type)throw new Error("Input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry");e=n.coordinates}return e.forEach(function(t){e.forEach(function(e){for(var n=0;n<t.length-1;n++)for(var a=n;a<e.length-1;a++){if(t===e){if(1===Math.abs(n-a))continue;if(0===n&&a===t.length-2&&t[n][0]===t[t.length-1][0]&&t[n][1]===t[t.length-1][1])continue}var s=i(t[n][0],t[n][1],t[n+1][0],t[n+1][1],e[a][0],e[a][1],e[a+1][0],e[a+1][1]);s&&o.features.push(Object(r.point)([s[0],s[1]]))}})}),o};var r=n(0);function i(t,e,n,r,i,o,a,s){var u,c,l,h,f={x:null,y:null,onLine1:!1,onLine2:!1};return 0===(u=(s-o)*(n-t)-(a-i)*(r-e))?null!==f.x&&null!==f.y&&f:(h=(n-t)*(c=e-o)-(r-e)*(l=t-i),c=((a-i)*c-(s-o)*l)/u,l=h/u,f.x=t+c*(n-t),f.y=e+c*(r-e),c>=0&&c<=1&&(f.onLine1=!0),l>=0&&l<=1&&(f.onLine2=!0),!(!f.onLine1||!f.onLine2)&&[f.x,f.y])}},function(t,e,n){"use strict";var r=n(58),i=n(57),o=n(77),a=n(11),s=n(0);function u(t,e,n,r,i,o){return Math.sqrt((i-n)*(i-n)+(o-r)*(o-r))===Math.sqrt((t-n)*(t-n)+(e-r)*(e-r))+Math.sqrt((i-t)*(i-t)+(o-e)*(o-e))}e.a=function(t){for(var e=function(t){return"FeatureCollection"!==t.type?"Feature"!==t.type?Object(s.featureCollection)([Object(s.feature)(t)]):Object(s.featureCollection)([t]):t}(t),n=Object(i.a)(e),c=!1,l=0;!c&&l<e.features.length;){var h,f=e.features[l].geometry,p=!1;if("Point"===f.type)n.geometry.coordinates[0]===f.coordinates[0]&&n.geometry.coordinates[1]===f.coordinates[1]&&(c=!0);else if("MultiPoint"===f.type){var d=!1;for(h=0;!d&&h<f.coordinates.length;)n.geometry.coordinates[0]===f.coordinates[h][0]&&n.geometry.coordinates[1]===f.coordinates[h][1]&&(c=!0,d=!0),h++}else if("LineString"===f.type)for(h=0;!p&&h<f.coordinates.length-1;)u(n.geometry.coordinates[0],n.geometry.coordinates[1],f.coordinates[h][0],f.coordinates[h][1],f.coordinates[h+1][0],f.coordinates[h+1][1])&&(p=!0,c=!0),h++;else if("MultiLineString"===f.type)for(var g=0;g<f.coordinates.length;){p=!1,h=0;for(var y=f.coordinates[g];!p&&h<y.length-1;)u(n.geometry.coordinates[0],n.geometry.coordinates[1],y[h][0],y[h][1],y[h+1][0],y[h+1][1])&&(p=!0,c=!0),h++;g++}else"Polygon"!==f.type&&"MultiPolygon"!==f.type||Object(a.a)(n,f)&&(c=!0);l++}if(c)return n;var v=Object(s.featureCollection)([]);for(l=0;l<e.features.length;l++)v.features=v.features.concat(Object(r.a)(e.features[l]).features);return Object(s.point)(Object(o.a)(n,v).geometry.coordinates)}},function(t,e,n){"use strict";e.a=function(t,e,n){void 0===n&&(n={});for(var u=Object(s.getGeom)(t).coordinates,c=0,l=0;l<u.length&&!(e>=c&&l===u.length-1);l++){if(c>=e){var h=e-c;if(h){var f=Object(r.a)(u[l],u[l-1])-180,p=Object(i.a)(u[l],h,f,n);return p}return Object(a.point)(u[l])}c+=Object(o.a)(u[l],u[l+1],n)}return Object(a.point)(u[u.length-1])};var r=n(34),i=n(27),o=n(8),a=n(0),s=n(2)},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(59);e.a=function(t,e,n){var a=Object(r.getCoords)(n);if("LineString"!==Object(r.getType)(n))throw new Error("line must be a LineString");for(var s,u=Object(o.a)(n,t),c=Object(o.a)(n,e),l=[(s=u.properties.index<=c.properties.index?[u,c]:[c,u])[0].geometry.coordinates],h=s[0].properties.index+1;h<s[1].properties.index+1;h++)l.push(a[h]);return l.push(s[1].geometry.coordinates),Object(i.lineString)(l,n.properties)}},function(t,e,n){"use strict";var r=n(121),i=n(122),o=n(1),a=n(0);e.a=function(t,e,n){if(n=n||{},!Object(a.isObject)(n))throw new Error("options is invalid");var s=n.units,u=n.reverse;if(!t)throw new Error("geojson is required");if(e<=0)throw new Error("segmentLength must be greater than 0");var c=[];return Object(o.flattenEach)(t,function(t){u&&(t.geometry.coordinates=t.geometry.coordinates.reverse()),function(t,e,n,o){var a=Object(r.a)(t,{units:n});if(a<=e)return o(t);var s=a/e;Number.isInteger(s)||(s=Math.floor(s)+1);for(var u=0;u<s;u++){var c=Object(i.a)(t,e*u,e*(u+1),{units:n});o(c,u)}}(t,e,s,function(t){c.push(t)})}),Object(a.featureCollection)(c)}},function(t,e,n){"use strict";var r=n(1),i=n(0),o=n(117),a=n.n(o),s=n(79),u=n(11);function c(t,e,n){if("Polygon"!==t.geometry.type)throw new Error("The input feature must be a Polygon");void 0===n&&(n=1);var r=t.geometry.coordinates,i=[],o={};if(n){for(var s=[],u=0;u<r.length;u++)for(var c=0;c<r[u].length-1;c++)s.push(v(u,c));var h=a()();h.load(s)}for(var f=0;f<r.length;f++)for(var p=0;p<r[f].length-1;p++){if(n)h.search(v(f,p)).forEach(function(t){var e=t.ring,n=t.edge;y(f,p,e,n)});else for(var d=0;d<r.length;d++)for(var g=0;g<r[d].length-1;g++)y(f,p,d,g)}return e||(i={type:"Feature",geometry:{type:"MultiPoint",coordinates:i}}),i;function y(t,n,a,s){var u,c,h=r[t][n],f=r[t][n+1],p=r[a][s],d=r[a][s+1],g=function(t,e,n,r){if(l(t,n)||l(t,r)||l(e,n)||l(r,n))return null;var i=t[0],o=t[1],a=e[0],s=e[1],u=n[0],c=n[1],h=r[0],f=r[1],p=(i-a)*(c-f)-(o-s)*(u-h);return 0===p?null:[((i*s-o*a)*(u-h)-(i-a)*(u*f-c*h))/p,((i*s-o*a)*(c-f)-(o-s)*(u*f-c*h))/p]}(h,f,p,d);if(null!==g&&(u=f[0]!==h[0]?(g[0]-h[0])/(f[0]-h[0]):(g[1]-h[1])/(f[1]-h[1]),c=d[0]!==p[0]?(g[0]-p[0])/(d[0]-p[0]):(g[1]-p[1])/(d[1]-p[1]),!(u>=1||u<=0||c>=1||c<=0))){var y=g,v=!o[y];v&&(o[y]=!0),e?i.push(e(g,t,n,h,f,u,a,s,p,d,c,v)):i.push(g)}}function v(t,e){var n,i,o,a,s=r[t][e],u=r[t][e+1];return s[0]<u[0]?(n=s[0],i=u[0]):(n=u[0],i=s[0]),s[1]<u[1]?(o=s[1],a=u[1]):(o=u[1],a=s[1]),{minX:n,minY:o,maxX:i,maxY:a,ring:t,edge:e}}}function l(t,e){if(!t||!e)return!1;if(t.length!==e.length)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n]instanceof Array&&e[n]instanceof Array){if(!l(t[n],e[n]))return!1}else if(t[n]!==e[n])return!1;return!0}function h(t){if("Feature"!=t.type)throw new Error("The input must a geojson object of type Feature");if(void 0===t.geometry||null==t.geometry)throw new Error("The input must a geojson object with a non-empty geometry");if("Polygon"!=t.geometry.type)throw new Error("The input must be a geojson Polygon");for(var e=t.geometry.coordinates.length,n=[],r=0;r<e;r++){var o=t.geometry.coordinates[r];y(o[0],o[o.length-1])||o.push(o[0]),n.push.apply(n,o.slice(0,o.length-1))}if(!function(t){for(var e={},n=1,r=0,i=t.length;r<i;++r){if(Object.prototype.hasOwnProperty.call(e,t[r])){n=0;break}e[t[r]]=1}return n}(n))throw new Error("The input polygon may not have duplicate vertices (except for the first and last vertex of each ring)");var l=n.length,h=c(t,function(t,e,n,r,i,o,a,s,u,c,l,h){return[t,e,n,r,i,o,a,s,u,c,l,h]}),m=h.length;if(0==m){var _=[];for(r=0;r<e;r++)_.push(Object(i.polygon)([t.geometry.coordinates[r]],{parent:-1,winding:g(t.geometry.coordinates[r])}));var b=Object(i.featureCollection)(_);return Y(),X(),b}var w=[],E=[];for(r=0;r<e;r++){w.push([]);for(var x=0;x<t.geometry.coordinates[r].length-1;x++)w[r].push([new f(t.geometry.coordinates[r][v(x+1,t.geometry.coordinates[r].length-1)],1,[r,x],[r,v(x+1,t.geometry.coordinates[r].length-1)],void 0)]),E.push(new p(t.geometry.coordinates[r][x],[r,v(x-1,t.geometry.coordinates[r].length-1)],[r,x],void 0,void 0,!1,!0))}for(r=0;r<m;r++)w[h[r][1]][h[r][2]].push(new f(h[r][0],h[r][5],[h[r][1],h[r][2]],[h[r][6],h[r][7]],void 0)),h[r][11]&&E.push(new p(h[r][0],[h[r][1],h[r][2]],[h[r][6],h[r][7]],void 0,void 0,!0,!0));var O=E.length;for(r=0;r<w.length;r++)for(x=0;x<w[r].length;x++)w[r][x].sort(function(t,e){return t.param<e.param?-1:1});var M=[];for(r=0;r<O;r++)M.push({minX:E[r].coord[0],minY:E[r].coord[1],maxX:E[r].coord[0],maxY:E[r].coord[1],index:r});var S=a()();S.load(M);for(r=0;r<w.length;r++)for(x=0;x<w[r].length;x++)for(var P=0;P<w[r][x].length;P++){T=P==w[r][x].length-1?w[r][v(x+1,t.geometry.coordinates[r].length-1)][0].coord:w[r][x][P+1].coord;var C=S.search({minX:T[0],minY:T[1],maxX:T[0],maxY:T[1]})[0];w[r][x][P].nxtIsectAlongEdgeIn=C.index}for(r=0;r<w.length;r++)for(x=0;x<w[r].length;x++)for(P=0;P<w[r][x].length;P++){var T=w[r][x][P].coord,I=(C=S.search({minX:T[0],minY:T[1],maxX:T[0],maxY:T[1]})[0]).index;I<l?E[I].nxtIsectAlongRingAndEdge2=w[r][x][P].nxtIsectAlongEdgeIn:y(E[I].ringAndEdge1,w[r][x][P].ringAndEdgeIn)?E[I].nxtIsectAlongRingAndEdge1=w[r][x][P].nxtIsectAlongEdgeIn:E[I].nxtIsectAlongRingAndEdge2=w[r][x][P].nxtIsectAlongEdgeIn}var L=[];for(r=0,x=0;x<e;x++){var A=r;for(P=0;P<t.geometry.coordinates[x].length-1;P++)E[r].coord[0]<E[A].coord[0]&&(A=r),r++;var N=E[A].nxtIsectAlongRingAndEdge2;for(P=0;P<E.length;P++)if(E[P].nxtIsectAlongRingAndEdge1==A||E[P].nxtIsectAlongRingAndEdge2==A){var k=P;break}var j=d([E[k].coord,E[A].coord,E[N].coord],!0)?1:-1;L.push({isect:A,parent:-1,winding:j})}L.sort(function(t,e){return E[t.isect].coord>E[e.isect].coord?-1:1});for(_=[];L.length>0;){var R=L.pop(),D=R.isect,F=R.parent,z=R.winding,B=_.length,q=[E[D].coord],G=D;if(E[D].ringAndEdge1Walkable)var U=E[D].ringAndEdge1,V=E[D].nxtIsectAlongRingAndEdge1;else U=E[D].ringAndEdge2,V=E[D].nxtIsectAlongRingAndEdge2;for(;!y(E[D].coord,E[V].coord);){q.push(E[V].coord);var J=void 0;for(r=0;r<L.length;r++)if(L[r].isect==V){J=r;break}if(void 0!=J&&L.splice(J,1),y(U,E[V].ringAndEdge1)){if(U=E[V].ringAndEdge2,E[V].ringAndEdge2Walkable=!1,E[V].ringAndEdge1Walkable){var H={isect:V};d([E[G].coord,E[V].coord,E[E[V].nxtIsectAlongRingAndEdge2].coord],1==z)?(H.parent=F,H.winding=-z):(H.parent=B,H.winding=z),L.push(H)}G=V,V=E[V].nxtIsectAlongRingAndEdge2}else{if(U=E[V].ringAndEdge1,E[V].ringAndEdge1Walkable=!1,E[V].ringAndEdge2Walkable){H={isect:V};d([E[G].coord,E[V].coord,E[E[V].nxtIsectAlongRingAndEdge1].coord],1==z)?(H.parent=F,H.winding=-z):(H.parent=B,H.winding=z),L.push(H)}G=V,V=E[V].nxtIsectAlongRingAndEdge1}}q.push(E[V].coord),_.push(Object(i.polygon)([q],{index:B,parent:F,winding:z,netWinding:void 0}))}b=Object(i.featureCollection)(_);function Y(){for(var t=[],e=0;e<b.features.length;e++)-1==b.features[e].properties.parent&&t.push(e);if(t.length>1)for(e=0;e<t.length;e++){for(var n=-1,r=0;r<b.features.length;r++)t[e]!=r&&Object(u.a)(b.features[t[e]].geometry.coordinates[0][0],b.features[r],{ignoreBoundary:!0})&&Object(s.a)(b.features[r])<1/0&&(n=r);b.features[t[e]].properties.parent=n}}function X(){for(var t=0;t<b.features.length;t++)if(-1==b.features[t].properties.parent){var e=b.features[t].properties.winding;b.features[t].properties.netWinding=e,Z(t,e)}}function Z(t,e){for(var n=0;n<b.features.length;n++)if(b.features[n].properties.parent==t){var r=e+b.features[n].properties.winding;b.features[n].properties.netWinding=r,Z(n,r)}}return Y(),X(),b}var f=function(t,e,n,r,i){this.coord=t,this.param=e,this.ringAndEdgeIn=n,this.ringAndEdgeOut=r,this.nxtIsectAlongEdgeIn=i},p=function(t,e,n,r,i,o,a){this.coord=t,this.ringAndEdge1=e,this.ringAndEdge2=n,this.nxtIsectAlongRingAndEdge1=r,this.nxtIsectAlongRingAndEdge2=i,this.ringAndEdge1Walkable=o,this.ringAndEdge2Walkable=a};function d(t,e){if(void 0===e&&(e=!0),3!=t.length)throw new Error("This function requires an array of three points [x,y]");return(t[1][0]-t[0][0])*(t[2][1]-t[0][1])-(t[1][1]-t[0][1])*(t[2][0]-t[0][0])>=0==e}function g(t){for(var e=0,n=0;n<t.length-1;n++)t[n][0]<t[e][0]&&(e=n);if(d([t[v(e-1,t.length-1)],t[e],t[v(e+1,t.length-1)]],!0))var r=1;else r=-1;return r}function y(t,e){if(!t||!e)return!1;if(t.length!=e.length)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n]instanceof Array&&e[n]instanceof Array){if(!y(t[n],e[n]))return!1}else if(t[n]!=e[n])return!1;return!0}function v(t,e){return(t%e+e)%e}e.a=function(t){var e=[];return Object(r.flattenEach)(t,function(t){"Polygon"===t.geometry.type&&Object(r.featureEach)(h(t),function(n){e.push(Object(i.polygon)(n.geometry.coordinates,t.properties))})}),Object(i.featureCollection)(e)}},function(t,e,n){"use strict";var r=n(2),i=Math.PI/180,o=180/Math.PI,a=function(t,e){this.lon=t,this.lat=e,this.x=i*t,this.y=i*e};a.prototype.view=function(){return String(this.lon).slice(0,4)+","+String(this.lat).slice(0,4)},a.prototype.antipode=function(){var t=-1*this.lat,e=this.lon<0?180+this.lon:-1*(180-this.lon);return new a(e,t)};var s=function(){this.coords=[],this.length=0};s.prototype.move_to=function(t){this.length++,this.coords.push(t)};var u=function(t){this.properties=t||{},this.geometries=[]};u.prototype.json=function(){if(this.geometries.length<=0)return{geometry:{type:"LineString",coordinates:null},type:"Feature",properties:this.properties};if(1===this.geometries.length)return{geometry:{type:"LineString",coordinates:this.geometries[0].coords},type:"Feature",properties:this.properties};for(var t=[],e=0;e<this.geometries.length;e++)t.push(this.geometries[e].coords);return{geometry:{type:"MultiLineString",coordinates:t},type:"Feature",properties:this.properties}},u.prototype.wkt=function(){for(var t="",e="LINESTRING(",n=function(t){e+=t[0]+" "+t[1]+","},r=0;r<this.geometries.length;r++){if(0===this.geometries[r].coords.length)return"LINESTRING(empty)";this.geometries[r].coords.forEach(n),t+=e.substring(0,e.length-1)+")"}return t};var c=function(t,e,n){if(!t||void 0===t.x||void 0===t.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");if(!e||void 0===e.x||void 0===e.y)throw new Error("GreatCircle constructor expects two args: start and end objects with x and y properties");this.start=new a(t.x,t.y),this.end=new a(e.x,e.y),this.properties=n||{};var r=this.start.x-this.end.x,i=this.start.y-this.end.y,o=Math.pow(Math.sin(i/2),2)+Math.cos(this.start.y)*Math.cos(this.end.y)*Math.pow(Math.sin(r/2),2);if(this.g=2*Math.asin(Math.sqrt(o)),this.g===Math.PI)throw new Error("it appears "+t.view()+" and "+e.view()+" are 'antipodal', e.g diametrically opposite, thus there is no single route but rather infinite");if(isNaN(this.g))throw new Error("could not calculate great circle between "+t+" and "+e)};c.prototype.interpolate=function(t){var e=Math.sin((1-t)*this.g)/Math.sin(this.g),n=Math.sin(t*this.g)/Math.sin(this.g),r=e*Math.cos(this.start.y)*Math.cos(this.start.x)+n*Math.cos(this.end.y)*Math.cos(this.end.x),i=e*Math.cos(this.start.y)*Math.sin(this.start.x)+n*Math.cos(this.end.y)*Math.sin(this.end.x),a=e*Math.sin(this.start.y)+n*Math.sin(this.end.y),s=o*Math.atan2(a,Math.sqrt(Math.pow(r,2)+Math.pow(i,2)));return[o*Math.atan2(i,r),s]},c.prototype.Arc=function(t,e){var n=[];if(!t||t<=2)n.push([this.start.lon,this.start.lat]),n.push([this.end.lon,this.end.lat]);else for(var r=1/(t-1),i=0;i<t;++i){var o=r*i,a=this.interpolate(o);n.push(a)}for(var c=!1,l=0,h=e&&e.offset?e.offset:10,f=180-h,p=-180+h,d=360-h,g=1;g<n.length;++g){var y=n[g-1][0],v=n[g][0],m=Math.abs(v-y);m>d&&(v>f&&y<p||y>f&&v<p)?c=!0:m>l&&(l=m)}var _=[];if(c&&l<h){var b=[];_.push(b);for(var w=0;w<n.length;++w){var E=parseFloat(n[w][0]);if(w>0&&Math.abs(E-n[w-1][0])>d){var x=parseFloat(n[w-1][0]),O=parseFloat(n[w-1][1]),M=parseFloat(n[w][0]),S=parseFloat(n[w][1]);if(x>-180&&x<p&&180===M&&w+1<n.length&&n[w-1][0]>-180&&n[w-1][0]<p){b.push([-180,n[w][1]]),w++,b.push([n[w][0],n[w][1]]);continue}if(x>f&&x<180&&-180===M&&w+1<n.length&&n[w-1][0]>f&&n[w-1][0]<180){b.push([180,n[w][1]]),w++,b.push([n[w][0],n[w][1]]);continue}if(x<p&&M>f){var P=x;x=M,M=P;var C=O;O=S,S=C}if(x>f&&M<p&&(M+=360),x<=180&&M>=180&&x<M){var T=(180-x)/(M-x),I=T*S+(1-T)*O;b.push([n[w-1][0]>f?180:-180,I]),(b=[]).push([n[w-1][0]>f?-180:180,I]),_.push(b)}else b=[],_.push(b);b.push([E,n[w][1]])}else b.push([n[w][0],n[w][1]])}}else{var L=[];_.push(L);for(var A=0;A<n.length;++A)L.push([n[A][0],n[A][1]])}for(var N=new u(this.properties),k=0;k<_.length;++k){var j=new s;N.geometries.push(j);for(var R=_[k],D=0;D<R.length;++D)j.move_to(R[D])}return N},e.a=function(t,e,n){if("object"!=typeof(n=n||{}))throw new Error("options is invalid");var i=n.properties,o=n.npoints,a=n.offset;return t=Object(r.getCoord)(t),e=Object(r.getCoord)(e),i=i||{},o=o||100,a=a||10,new c({x:t[0],y:t[1]},{x:e[0],y:e[1]},i).Arc(o,{offset:a}).json()}},function(t,e,n){"use strict";var r=n(78),i=n.n(r),o=n(119),a=n(10),s=n(125),u=n(42),c=n(35),l=n(59),h=n(2),f=n(1),p=n(0);function d(t,e){var n=[],r=i()();return Object(f.flattenEach)(e,function(e){if(n.forEach(function(t,e){t.id=e}),n.length){var i=r.search(e);if(i.features.length){var s=y(e,i);n=n.filter(function(t){return t.id!==s.id}),r.remove(s),Object(f.featureEach)(g(s,e),function(t){n.push(t),r.insert(t)})}}else(n=g(t,e).features).forEach(function(t){t.bbox||(t.bbox=Object(o.a)(Object(a.default)(t)))}),r.load(Object(p.featureCollection)(n))}),Object(p.featureCollection)(n)}function g(t,e){var n=[],r=Object(h.getCoords)(t)[0],o=Object(h.getCoords)(t)[t.geometry.coordinates.length-1];if(v(r,Object(h.getCoord)(e))||v(o,Object(h.getCoord)(e)))return Object(p.featureCollection)([t]);var a=i()(),s=Object(u.a)(t);a.load(s);var c=a.search(e);if(!c.features.length)return Object(p.featureCollection)([t]);var l=y(e,c),d=[r],g=Object(f.featureReduce)(s,function(t,r,i){var o=Object(h.getCoords)(r)[1],a=Object(h.getCoord)(e);return i===l.id?(t.push(a),n.push(Object(p.lineString)(t)),v(a,o)?[a]:[a,o]):(t.push(o),t)},d);return g.length>1&&n.push(Object(p.lineString)(g)),Object(p.featureCollection)(n)}function y(t,e){if(!e.features.length)throw new Error("lines must contain features");if(1===e.features.length)return e.features[0];var n,r=1/0;return Object(f.featureEach)(e,function(e){var i=Object(l.a)(e,t).properties.dist;i<r&&(n=e,r=i)}),n}function v(t,e){return t[0]===e[0]&&t[1]===e[1]}e.a=function(t,e){if(!t)throw new Error("line is required");if(!e)throw new Error("splitter is required");var n=Object(h.getType)(t),r=Object(h.getType)(e);if("LineString"!==n)throw new Error("line must be LineString");if("FeatureCollection"===r)throw new Error("splitter cannot be a FeatureCollection");if("GeometryCollection"===r)throw new Error("splitter cannot be a GeometryCollection");var i=Object(s.a)(e,{precision:7});switch(r){case"Point":return g(t,i);case"MultiPoint":return d(t,i);case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":return d(t,Object(c.a)(t,i))}}},function(t,e,n){"use strict";var r=n(10),i=n(2),o=n(0),a=n(9);function s(t,e,n,a){e=e||("Feature"===t.type?t.properties:{});var s=Object(i.getGeom)(t),c=s.coordinates,l=s.type;if(!c.length)throw new Error("line must contain coordinates");switch(l){case"LineString":return n&&(c=u(c)),Object(o.polygon)([c],e);case"MultiLineString":var h=[],f=0;return c.forEach(function(t){if(n&&(t=u(t)),a){var e=(i=Object(r.default)(Object(o.lineString)(t)),s=i[0],c=i[1],l=i[2],p=i[3],Math.abs(s-l)*Math.abs(c-p));e>f?(h.unshift(t),f=e):h.push(t)}else h.push(t);var i,s,c,l,p}),Object(o.polygon)(h,e);default:throw new Error("geometry type "+l+" is not supported")}}function u(t){var e=t[0],n=e[0],r=e[1],i=t[t.length-1],o=i[0],a=i[1];return n===o&&r===a||t.push(e),t}e.a=function(t,e){var n,r,u;void 0===e&&(e={});var c=e.properties,l=null===(n=e.autoComplete)||void 0===n||n,h=null===(r=e.orderCoords)||void 0===r||r;switch(null!==(u=e.mutate)&&void 0!==u&&u||(t=Object(a.a)(t)),t.type){case"FeatureCollection":var f=[];return t.features.forEach(function(t){f.push(Object(i.getCoords)(s(t,{},l,h)))}),Object(o.multiPolygon)(f,c);default:return s(t,c,l,h)}}},function(t,e,n){"use strict";e.a=function(t,e){var n=Object(i.getGeom)(t),s=n.type,u="Feature"===t.type?t.properties:{},c=n.coordinates;switch(s){case"LineString":case"MultiLineString":var l=[];return"LineString"===s&&(c=[c]),c.forEach(function(t){Object(o.a)(t,e,l)}),1===l.length?Object(r.lineString)(l[0],u):Object(r.multiLineString)(l,u);case"Polygon":return Object(r.polygon)(a(c,e),u);case"MultiPolygon":return Object(r.multiPolygon)(c.map(function(t){return a(t,e)}),u);default:throw new Error("geometry "+s+" not supported")}};var r=n(0),i=n(2),o=n(267);function a(t,e){for(var n=[],r=0,i=t;r<i.length;r++){var a=i[r],s=Object(o.b)(a,e);s.length>0&&(s[0][0]===s[s.length-1][0]&&s[0][1]===s[s.length-1][1]||s.push(s[0]),s.length>=4&&n.push(s))}return n}},function(t,e,n){"use strict";function r(t,e,n,r){return 8&n?[t[0]+(e[0]-t[0])*(r[3]-t[1])/(e[1]-t[1]),r[3]]:4&n?[t[0]+(e[0]-t[0])*(r[1]-t[1])/(e[1]-t[1]),r[1]]:2&n?[r[2],t[1]+(e[1]-t[1])*(r[2]-t[0])/(e[0]-t[0])]:1&n?[r[0],t[1]+(e[1]-t[1])*(r[0]-t[0])/(e[0]-t[0])]:null}function i(t,e){var n=0;return t[0]<e[0]?n|=1:t[0]>e[2]&&(n|=2),t[1]<e[1]?n|=4:t[1]>e[3]&&(n|=8),n}e.a=function(t,e,n){var o,a,s,u,c,l=t.length,h=i(t[0],e),f=[];n||(n=[]);for(o=1;o<l;o++){for(u=t[o-1],c=t[o],a=s=i(c,e);;){if(!(h|a)){f.push(u),a!==s?(f.push(c),o<l-1&&(n.push(f),f=[])):o===l-1&&f.push(c);break}if(h&a)break;h?(u=r(u,c,h,e),h=i(u,e)):(c=r(u,c,a,e),a=i(c,e))}h=s}f.length&&n.push(f);return n},e.b=function(t,e){var n,o,a,s,u,c,l;for(o=1;o<=8;o*=2){for(n=[],a=t[t.length-1],s=!(i(a,e)&o),u=0;u<t.length;u++)c=t[u],(l=!(i(c,e)&o))!==s&&n.push(r(a,c,o,e)),l&&n.push(c),a=c,s=l;if(!(t=n).length)break}return n}},function(t,e,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(131),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!f["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===o.call(t),r=a(t),s=e&&"[object String]"===o.call(t),f=[];if(!e&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var d=c&&n;if(s&&t.length>0&&!i.call(t,0))for(var g=0;g<t.length;++g)f.push(String(g));if(r&&t.length>0)for(var y=0;y<t.length;++y)f.push(String(y));else for(var v in t)d&&"prototype"===v||!i.call(t,v)||f.push(String(v));if(u)for(var m=function(t){if("undefined"==typeof window||!p)return h(t);try{return h(t)}catch(t){return!1}}(t),_=0;_<l.length;++_)m&&"constructor"===l[_]||!i.call(t,l[_])||f.push(l[_]);return f}}t.exports=r},function(t,e,n){"use strict";var r=n(81)(),i=n(133)("Object.prototype.toString"),o=function(t){return!(r&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},a=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,t.exports=s?o:a},function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(132);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},function(t,e,n){"use strict";var r=Array.prototype.slice,i=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==i.call(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var n,o=r.call(arguments,1),a=Math.max(0,e.length-o.length),s=[],u=0;u<a;u++)s.push("$"+u);if(n=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof n){var i=e.apply(this,o.concat(r.call(arguments)));return Object(i)===i?i:this}return e.apply(t,o.concat(r.call(arguments)))}),e.prototype){var c=function(){};c.prototype=e.prototype,n.prototype=new c,c.prototype=null}return n}},function(t,e,n){"use strict";var r=n(82);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e,n){"use strict";var r=n(43),i=n(83),o=n(135),a=n(136),s=n(274),u=i(a(),Object);r(u,{getPolyfill:a,implementation:o,shim:s}),t.exports=u},function(t,e,n){"use strict";var r=n(136),i=n(43);t.exports=function(){var t=r();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},function(t,e,n){"use strict";var r,i,o,a,s=n(133),u=n(81)();if(u){r=s("Object.prototype.hasOwnProperty"),i=s("RegExp.prototype.exec"),o={};var c=function(){throw o};a={toString:c,valueOf:c},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=c)}var l=s("Object.prototype.toString"),h=Object.getOwnPropertyDescriptor;t.exports=u?function(t){if(!t||"object"!=typeof t)return!1;var e=h(t,"lastIndex");if(!(e&&r(e,"value")))return!1;try{i(t,a)}catch(t){return t===o}}:function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===l(t)}},function(t,e,n){"use strict";var r=n(43),i=n(83),o=n(137),a=n(138),s=n(277),u=i(o);r(u,{getPolyfill:a,implementation:o,shim:s}),t.exports=u},function(t,e,n){"use strict";var r=n(43).supportsDescriptors,i=n(138),o=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,u=Object.getPrototypeOf,c=/a/;t.exports=function(){if(!r||!u)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=i(),e=u(c),n=o(e,"flags");return n&&n.get===t||a(e,"flags",{configurable:!0,enumerable:!1,get:t}),t}},function(t,e,n){"use strict";var r=Date.prototype.getDay,i=Object.prototype.toString,o=n(81)();t.exports=function(t){return"object"==typeof t&&null!==t&&(o?function(t){try{return r.call(t),!0}catch(t){return!1}}(t):"[object Date]"===i.call(t))}},function(t,e,n){"use strict";var r=n(76),i=n(127),o=n(1),a=n(0),s=n(2);function u(t){var e=t%360;return e<0&&(e+=360),e}e.a=function(t,e,n,c,l){if(l=l||{},!Object(a.isObject)(l))throw new Error("options is invalid");var h=l.properties;if(!t)throw new Error("center is required");if(void 0===n||null===n)throw new Error("bearing1 is required");if(void 0===c||null===c)throw new Error("bearing2 is required");if(!e)throw new Error("radius is required");if("object"!=typeof l)throw new Error("options must be an object");if(u(n)===u(c))return Object(r.a)(t,e,l);var f=Object(s.getCoords)(t),p=Object(i.a)(t,e,n,c,l),d=[[f]];return Object(o.coordEach)(p,function(t){d[0].push(t)}),d[0].push(f),Object(a.polygon)(d,h)}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(10),a=n(58),s=n(77);function u(t,e,n,r,i,o){for(var a=0;a<t.length;a++){var s=t[a],u=t[a+1];a===t.length-1&&(u=t[0]),r=l(s,u,e),n<=0&&r>0?l(e,s,i)<0||(i=s):n>0&&r<=0&&(c(e,s,o)||(o=s)),n=r}return[i,o]}function c(t,e,n){return l(t,e,n)>0}function l(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(n[0]-t[0])*(e[1]-t[1])}e.a=function(t,e){var n,c,h,f=Object(r.getCoords)(t),p=Object(r.getCoords)(e),d=Object(o.default)(e),g=0,y=null;switch(f[0]>d[0]&&f[0]<d[2]&&f[1]>d[1]&&f[1]<d[3]&&(g=(y=Object(s.a)(t,Object(a.a)(e))).properties.featureIndex),Object(r.getType)(e)){case"Polygon":n=p[0][g],c=p[0][0],null!==y&&y.geometry.coordinates[1]<f[1]&&(c=p[0][g]),h=l(p[0][0],p[0][p[0].length-1],f);var v=u(p[0],f,h,void 0,n,c);n=v[0],c=v[1];break;case"MultiPolygon":for(var m=0,_=0,b=0,w=0;w<p[0].length;w++){m=w;for(var E=!1,x=0;x<p[0][w].length;x++){if(_=x,b===g){E=!0;break}b++}if(E)break}n=p[0][m][_],c=p[0][m][_],h=l(p[0][0][0],p[0][0][p[0][0].length-1],f),p.forEach(function(t){var e=u(t[0],f,h,void 0,n,c);n=e[0],c=e[1]})}return Object(i.featureCollection)([Object(i.point)(n),Object(i.point)(c)])}},function(t,e,n){"use strict";var r=n(9),i=n(139),o=n(1),a=n(2),s=n(0);function u(t,e){switch("Feature"===t.type?t.geometry.type:t.type){case"GeometryCollection":return Object(o.geomEach)(t,function(t){u(t,e)}),t;case"LineString":return c(Object(a.getCoords)(t),e),t;case"Polygon":return l(Object(a.getCoords)(t),e),t;case"MultiLineString":return Object(a.getCoords)(t).forEach(function(t){c(t,e)}),t;case"MultiPolygon":return Object(a.getCoords)(t).forEach(function(t){l(t,e)}),t;case"Point":case"MultiPoint":return t}}function c(t,e){Object(i.a)(t)===e&&t.reverse()}function l(t,e){Object(i.a)(t[0])!==e&&t[0].reverse();for(var n=1;n<t.length;n++)Object(i.a)(t[n])===e&&t[n].reverse()}e.a=function(t,e){if(e=e||{},!Object(s.isObject)(e))throw new Error("options is invalid");var n=e.reverse||!1,i=e.mutate||!1;if(!t)throw new Error("<geojson> is required");if("boolean"!=typeof n)throw new Error("<reverse> must be a boolean");if("boolean"!=typeof i)throw new Error("<mutate> must be a boolean");!1===i&&(t=Object(r.a)(t));var a=[];switch(t.type){case"GeometryCollection":return Object(o.geomEach)(t,function(t){u(t,n)}),t;case"FeatureCollection":return Object(o.featureEach)(t,function(t){Object(o.featureEach)(u(t,n),function(t){a.push(t)})}),Object(s.featureCollection)(a)}return u(t,n)}},function(t,e,n){"use strict";var r=n(10),i=n(79),o=n(11),a=n(58),s=n(2),u=n(0),c=n(71),l=n.n(c),h=n(1);function f(t,e){if(e=e||{},!Object(u.isObject)(e))throw new Error("options is invalid");var n=e.zProperty||"elevation",r=e.flip,i=e.flags;Object(s.collectionOf)(t,"Point","input must contain Points");for(var o=function(t,e){var n={};return Object(h.featureEach)(t,function(t){var e=Object(s.getCoords)(t)[1];n[e]||(n[e]=[]),n[e].push(t)}),Object.keys(n).map(function(t){return n[t].sort(function(t,e){return Object(s.getCoords)(t)[0]-Object(s.getCoords)(e)[0]})}).sort(function(t,n){return e?Object(s.getCoords)(t[0])[1]-Object(s.getCoords)(n[0])[1]:Object(s.getCoords)(n[0])[1]-Object(s.getCoords)(t[0])[1]})}(t,r),a=[],c=0;c<o.length;c++){for(var l=o[c],f=[],p=0;p<l.length;p++){var d=l[p];d.properties[n]?f.push(d.properties[n]):f.push(0),!0===i&&(d.properties.matrixPosition=[c,p])}a.push(f)}return a}var p={successCallback:null,verbose:!1,polygons:!1},d={};function g(t,e,n,r){r=r||{};for(var i=Object.keys(p),o=0;o<i.length;o++){var a=i[o],s=r[a];s=void 0!==s&&null!==s?s:p[a],d[a]=s}d.verbose&&console.log("MarchingSquaresJS-isoBands: computing isobands for ["+e+":"+(e+n)+"]");var u,c=function(t,e,n){for(var r=t.length-1,i=t[0].length-1,o={rows:r,cols:i,cells:[]},a=e+Math.abs(n),s=0;s<r;++s){o.cells[s]=[];for(var u=0;u<i;++u){var c=0,l=t[s+1][u],h=t[s+1][u+1],f=t[s][u+1],p=t[s][u];if(!(isNaN(l)||isNaN(h)||isNaN(f)||isNaN(p))){c|=l<e?0:l>a?128:64,c|=h<e?0:h>a?32:16,c|=f<e?0:f>a?8:4;var d=+(c|=p<e?0:p>a?2:1),g=0;if(17===c||18===c||33===c||34===c||38===c||68===c||72===c||98===c||102===c||132===c||136===c||137===c||152===c||153===c){var y=(l+h+f+p)/4;g=y>a?2:y<e?0:1,34===c?1===g?c=35:0===g&&(c=136):136===c?1===g?(c=35,g=4):0===g&&(c=34):17===c?1===g?(c=155,g=4):0===g&&(c=153):68===c?1===g?(c=103,g=4):0===g&&(c=102):153===c?1===g&&(c=155):102===c?1===g&&(c=103):152===c?g<2&&(c=156,g=1):137===c?g<2&&(c=139,g=1):98===c?g<2&&(c=99,g=1):38===c?g<2&&(c=39,g=1):18===c?g>0?(c=156,g=4):c=152:33===c?g>0?(c=139,g=4):c=137:72===c?g>0?(c=99,g=4):c=98:132===c&&(g>0?(c=39,g=4):c=38)}if(0!=c&&170!=c){var v,m,_,b,w,E,x,O;v=m=_=b=w=E=x=O=.5;var M=[];1===c?(_=1-st(e,f,p),O=1-st(e,l,p),M.push(et[c])):169===c?(_=st(a,p,f),O=st(a,p,l),M.push(et[c])):4===c?(E=1-st(e,h,f),b=st(e,p,f),M.push($[c])):166===c?(E=st(a,f,h),b=1-st(a,f,p),M.push($[c])):16===c?(w=st(e,f,h),m=st(e,l,h),M.push(Q[c])):154===c?(w=1-st(a,h,f),m=1-st(a,h,l),M.push(Q[c])):64===c?(x=st(e,p,l),v=1-st(e,h,l),M.push(rt[c])):106===c?(x=1-st(a,l,p),v=st(a,l,h),M.push(rt[c])):168===c?(b=st(a,p,f),_=st(e,p,f),O=st(e,p,l),x=st(a,p,l),M.push(tt[c]),M.push(et[c])):2===c?(b=1-st(e,f,p),_=1-st(a,f,p),O=1-st(a,l,p),x=1-st(e,l,p),M.push(tt[c]),M.push(et[c])):162===c?(w=st(a,f,h),E=st(e,f,h),b=1-st(e,f,p),_=1-st(a,f,p),M.push(tt[c]),M.push(et[c])):8===c?(w=1-st(e,h,f),E=1-st(a,h,f),b=st(a,p,f),_=st(e,p,f),M.push(Q[c]),M.push($[c])):138===c?(w=1-st(e,h,f),E=1-st(a,h,f),v=1-st(a,h,l),m=1-st(e,h,l),M.push(Q[c]),M.push($[c])):32===c?(w=st(a,f,h),E=st(e,f,h),v=st(e,l,h),m=st(a,l,h),M.push(Q[c]),M.push($[c])):42===c?(O=1-st(a,l,p),x=1-st(e,l,p),v=st(e,l,h),m=st(a,l,h),M.push(nt[c]),M.push(rt[c])):128===c&&(O=st(e,p,l),x=st(a,p,l),v=1-st(a,h,l),m=1-st(e,h,l),M.push(nt[c]),M.push(rt[c])),5===c?(E=1-st(e,h,f),O=1-st(e,l,p),M.push($[c])):165===c?(E=st(a,f,h),O=st(a,p,l),M.push($[c])):20===c?(b=st(e,p,f),m=st(e,l,h),M.push(tt[c])):150===c?(b=1-st(a,f,p),m=1-st(a,h,l),M.push(tt[c])):80===c?(w=st(e,f,h),x=st(e,p,l),M.push(Q[c])):90===c?(w=1-st(a,h,f),x=1-st(a,l,p),M.push(Q[c])):65===c?(_=1-st(e,f,p),v=1-st(e,h,l),M.push(et[c])):105===c?(_=st(a,p,f),v=st(a,l,h),M.push(et[c])):160===c?(w=st(a,f,h),E=st(e,f,h),O=st(e,p,l),x=st(a,p,l),M.push(Q[c]),M.push($[c])):10===c?(w=1-st(e,h,f),E=1-st(a,h,f),O=1-st(a,l,p),x=1-st(e,l,p),M.push(Q[c]),M.push($[c])):130===c?(b=1-st(e,f,p),_=1-st(a,f,p),v=1-st(a,h,l),m=1-st(e,h,l),M.push(tt[c]),M.push(et[c])):40===c?(b=st(a,p,f),_=st(e,p,f),v=st(e,l,h),m=st(a,l,h),M.push(tt[c]),M.push(et[c])):101===c?(E=st(a,f,h),v=st(a,l,h),M.push($[c])):69===c?(E=1-st(e,h,f),v=1-st(e,h,l),M.push($[c])):149===c?(O=st(a,p,l),m=1-st(a,h,l),M.push(nt[c])):21===c?(O=1-st(e,l,p),m=st(e,l,h),M.push(nt[c])):86===c?(b=1-st(a,f,p),x=1-st(a,l,p),M.push(tt[c])):84===c?(b=st(e,p,f),x=st(e,p,l),M.push(tt[c])):89===c?(w=1-st(a,h,f),_=st(a,p,f),M.push(et[c])):81===c?(w=st(e,f,h),_=1-st(e,f,p),M.push(et[c])):96===c?(w=st(a,f,h),E=st(e,f,h),x=st(e,p,l),v=st(a,l,h),M.push(Q[c]),M.push($[c])):74===c?(w=1-st(e,h,f),E=1-st(a,h,f),x=1-st(a,l,p),v=1-st(e,h,l),M.push(Q[c]),M.push($[c])):24===c?(w=1-st(a,h,f),b=st(a,p,f),_=st(e,p,f),m=st(e,l,h),M.push(Q[c]),M.push(et[c])):146===c?(w=st(e,f,h),b=1-st(e,f,p),_=1-st(a,f,p),m=1-st(a,h,l),M.push(Q[c]),M.push(et[c])):6===c?(E=1-st(e,h,f),b=1-st(a,f,p),O=1-st(a,l,p),x=1-st(e,l,p),M.push($[c]),M.push(tt[c])):164===c?(E=st(a,f,h),b=st(e,p,f),O=st(e,p,l),x=st(a,p,l),M.push($[c]),M.push(tt[c])):129===c?(_=1-st(e,f,p),O=st(a,p,l),v=1-st(a,h,l),m=1-st(e,h,l),M.push(et[c]),M.push(nt[c])):41===c?(_=st(a,p,f),O=1-st(e,l,p),v=st(e,l,h),m=st(a,l,h),M.push(et[c]),M.push(nt[c])):66===c?(b=1-st(e,f,p),_=1-st(a,f,p),x=1-st(a,l,p),v=1-st(e,h,l),M.push(tt[c]),M.push(et[c])):104===c?(b=st(a,p,f),_=st(e,p,f),x=st(e,p,l),v=st(a,l,h),M.push(et[c]),M.push(it[c])):144===c?(w=st(e,f,h),O=st(e,p,l),x=st(a,p,l),m=1-st(a,h,l),M.push(Q[c]),M.push(rt[c])):26===c?(w=1-st(a,h,f),O=1-st(a,l,p),x=1-st(e,l,p),m=st(e,l,h),M.push(Q[c]),M.push(rt[c])):36===c?(E=st(a,f,h),b=st(e,p,f),v=st(e,l,h),m=st(a,l,h),M.push($[c]),M.push(tt[c])):134===c?(E=1-st(e,h,f),b=1-st(a,f,p),v=1-st(a,h,l),m=1-st(e,h,l),M.push($[c]),M.push(tt[c])):9===c?(w=1-st(e,h,f),E=1-st(a,h,f),_=st(a,p,f),O=1-st(e,l,p),M.push(Q[c]),M.push($[c])):161===c?(w=st(a,f,h),E=st(e,f,h),_=1-st(e,f,p),O=st(a,p,l),M.push(Q[c]),M.push($[c])):37===c?(E=st(a,f,h),O=1-st(e,l,p),v=st(e,l,h),m=st(a,l,h),M.push($[c]),M.push(nt[c])):133===c?(E=1-st(e,h,f),O=st(a,p,l),v=1-st(a,h,l),m=1-st(e,h,l),M.push($[c]),M.push(nt[c])):148===c?(b=st(e,p,f),O=st(e,p,l),x=st(a,p,l),m=1-st(a,h,l),M.push(tt[c]),M.push(rt[c])):22===c?(b=1-st(a,f,p),O=1-st(a,l,p),x=1-st(e,l,p),m=st(e,l,h),M.push(tt[c]),M.push(rt[c])):82===c?(w=st(e,f,h),b=1-st(e,f,p),_=1-st(a,f,p),x=1-st(a,l,p),M.push(Q[c]),M.push(et[c])):88===c?(w=1-st(a,h,f),b=st(a,p,f),_=st(e,p,f),x=st(e,p,l),M.push(Q[c]),M.push(et[c])):73===c?(w=1-st(e,h,f),E=1-st(a,h,f),_=st(a,p,f),v=1-st(e,h,l),M.push(Q[c]),M.push($[c])):97===c?(w=st(a,f,h),E=st(e,f,h),_=1-st(e,f,p),v=st(a,l,h),M.push(Q[c]),M.push($[c])):145===c?(w=st(e,f,h),_=1-st(e,f,p),O=st(a,p,l),m=1-st(a,h,l),M.push(Q[c]),M.push(nt[c])):25===c?(w=1-st(a,h,f),_=st(a,p,f),O=1-st(e,l,p),m=st(e,l,h),M.push(Q[c]),M.push(nt[c])):70===c?(E=1-st(e,h,f),b=1-st(a,f,p),x=1-st(a,l,p),v=1-st(e,h,l),M.push($[c]),M.push(tt[c])):100===c?(E=st(a,f,h),b=st(e,p,f),x=st(e,p,l),v=st(a,l,h),M.push($[c]),M.push(tt[c])):34===c?(0===g?(w=1-st(e,h,f),E=1-st(a,h,f),b=st(a,p,f),_=st(e,p,f),O=st(e,p,l),x=st(a,p,l),v=1-st(a,h,l),m=1-st(e,h,l)):(w=st(a,f,h),E=st(e,f,h),b=1-st(e,f,p),_=1-st(a,f,p),O=1-st(a,l,p),x=1-st(e,l,p),v=st(e,l,h),m=st(a,l,h)),M.push(Q[c]),M.push($[c]),M.push(nt[c]),M.push(rt[c])):35===c?(4===g?(w=1-st(e,h,f),E=1-st(a,h,f),b=st(a,p,f),_=st(e,p,f),O=st(e,p,l),x=st(a,p,l),v=1-st(a,h,l),m=1-st(e,h,l)):(w=st(a,f,h),E=st(e,f,h),b=1-st(e,f,p),_=1-st(a,f,p),O=1-st(a,l,p),x=1-st(e,l,p),v=st(e,l,h),m=st(a,l,h)),M.push(Q[c]),M.push($[c]),M.push(et[c]),M.push(rt[c])):136===c?(0===g?(w=st(a,f,h),E=st(e,f,h),b=1-st(e,f,p),_=1-st(a,f,p),O=1-st(a,l,p),x=1-st(e,l,p),v=st(e,l,h),m=st(a,l,h)):(w=1-st(e,h,f),E=1-st(a,h,f),b=st(a,p,f),_=st(e,p,f),O=st(e,p,l),x=st(a,p,l),v=1-st(a,h,l),m=1-st(e,h,l)),M.push(Q[c]),M.push($[c]),M.push(nt[c]),M.push(rt[c])):153===c?(0===g?(w=st(e,f,h),_=1-st(e,f,p),O=1-st(e,l,p),m=st(e,l,h)):(w=1-st(a,h,f),_=st(a,p,f),O=st(a,p,l),m=1-st(a,h,l)),M.push(Q[c]),M.push(et[c])):102===c?(0===g?(E=1-st(e,h,f),b=st(e,p,f),x=st(e,p,l),v=1-st(e,h,l)):(E=st(a,f,h),b=1-st(a,f,p),x=1-st(a,l,p),v=st(a,l,h)),M.push($[c]),M.push(rt[c])):155===c?(4===g?(w=st(e,f,h),_=1-st(e,f,p),O=1-st(e,l,p),m=st(e,l,h)):(w=1-st(a,h,f),_=st(a,p,f),O=st(a,p,l),m=1-st(a,h,l)),M.push(Q[c]),M.push(nt[c])):103===c?(4===g?(E=1-st(e,h,f),b=st(e,p,f),x=st(e,p,l),v=1-st(e,h,l)):(E=st(a,f,h),b=1-st(a,f,p),x=1-st(a,l,p),v=st(a,l,h)),M.push($[c]),M.push(tt[c])):152===c?(0===g?(w=st(e,f,h),b=1-st(e,f,p),_=1-st(a,f,p),O=1-st(a,l,p),x=1-st(e,l,p),m=st(e,l,h)):(w=1-st(a,h,f),b=st(a,p,f),_=st(e,p,f),O=st(e,p,l),x=st(a,p,l),m=1-st(a,h,l)),M.push(Q[c]),M.push(tt[c]),M.push(et[c])):156===c?(4===g?(w=st(e,f,h),b=1-st(e,f,p),_=1-st(a,f,p),O=1-st(a,l,p),x=1-st(e,l,p),m=st(e,l,h)):(w=1-st(a,h,f),b=st(a,p,f),_=st(e,p,f),O=st(e,p,l),x=st(a,p,l),m=1-st(a,h,l)),M.push(Q[c]),M.push(et[c]),M.push(rt[c])):137===c?(0===g?(w=st(a,f,h),E=st(e,f,h),_=1-st(e,f,p),O=1-st(e,l,p),v=st(e,l,h),m=st(a,l,h)):(w=1-st(e,h,f),E=1-st(a,h,f),_=st(a,p,f),O=st(a,p,l),v=1-st(a,h,l),m=1-st(e,h,l)),M.push(Q[c]),M.push($[c]),M.push(et[c])):139===c?(4===g?(w=st(a,f,h),E=st(e,f,h),_=1-st(e,f,p),O=1-st(e,l,p),v=st(e,l,h),m=st(a,l,h)):(w=1-st(e,h,f),E=1-st(a,h,f),_=st(a,p,f),O=st(a,p,l),v=1-st(a,h,l),m=1-st(e,h,l)),M.push(Q[c]),M.push($[c]),M.push(nt[c])):98===c?(0===g?(w=1-st(e,h,f),E=1-st(a,h,f),b=st(a,p,f),_=st(e,p,f),x=st(e,p,l),v=1-st(e,h,l)):(w=st(a,f,h),E=st(e,f,h),b=1-st(e,f,p),_=1-st(a,f,p),x=1-st(a,l,p),v=st(a,l,h)),M.push(Q[c]),M.push($[c]),M.push(rt[c])):99===c?(4===g?(w=1-st(e,h,f),E=1-st(a,h,f),b=st(a,p,f),_=st(e,p,f),x=st(e,p,l),v=1-st(e,h,l)):(w=st(a,f,h),E=st(e,f,h),b=1-st(e,f,p),_=1-st(a,f,p),x=1-st(a,l,p),v=st(a,l,h)),M.push(Q[c]),M.push($[c]),M.push(et[c])):38===c?(0===g?(E=1-st(e,h,f),b=st(e,p,f),O=st(e,p,l),x=st(a,p,l),v=1-st(a,h,l),m=1-st(e,h,l)):(E=st(a,f,h),b=1-st(a,f,p),O=1-st(a,l,p),x=1-st(e,l,p),v=st(e,l,h),m=st(a,l,h)),M.push($[c]),M.push(nt[c]),M.push(rt[c])):39===c?(4===g?(E=1-st(e,h,f),b=st(e,p,f),O=st(e,p,l),x=st(a,p,l),v=1-st(a,h,l),m=1-st(e,h,l)):(E=st(a,f,h),b=1-st(a,f,p),O=1-st(a,l,p),x=1-st(e,l,p),v=st(e,l,h),m=st(a,l,h)),M.push($[c]),M.push(tt[c]),M.push(rt[c])):85===c&&(w=1,E=0,b=1,_=0,O=0,x=1,v=0,m=1),(v<0||v>1||m<0||m>1||w<0||w>1||b<0||b>1||O<0||O>1||x<0||x>1)&&console.log("MarchingSquaresJS-isoBands: "+c+" "+d+" "+l+","+h+","+f+","+p+" "+g+" "+v+" "+m+" "+w+" "+E+" "+b+" "+_+" "+O+" "+x),o.cells[s][u]={cval:c,cval_real:d,flipped:g,topleft:v,topright:m,righttop:w,rightbottom:E,bottomright:b,bottomleft:_,leftbottom:O,lefttop:x,edges:M}}}}}return o}(t,e,n);return d.polygons?(d.verbose&&console.log("MarchingSquaresJS-isoBands: returning single polygons for each grid cell"),u=function(t){var e=[],n=0;return t.cells.forEach(function(t,r){t.forEach(function(t,i){if(void 0!==t){var o=at[t.cval](t);"object"==typeof o&&ut(o)?"object"==typeof o[0]&&ut(o[0])?"object"==typeof o[0][0]&&ut(o[0][0])?o.forEach(function(t){t.forEach(function(t){t[0]+=i,t[1]+=r}),e[n++]=t}):(o.forEach(function(t){t[0]+=i,t[1]+=r}),e[n++]=o):console.log("MarchingSquaresJS-isoBands: bandcell polygon with malformed coordinates"):console.log("MarchingSquaresJS-isoBands: bandcell polygon with null coordinates")}})}),e}(c)):(d.verbose&&console.log("MarchingSquaresJS-isoBands: returning polygon paths for entire data grid"),u=function(t){for(var e=[],n=t.rows,r=t.cols,i=[],o=0;o<n;o++)for(var a=0;a<r;a++)if(void 0!==t.cells[o][a]&&t.cells[o][a].edges.length>0){var s=t.cells[o][a],u=lt(s),c=null,l=a,h=o;null!==u&&i.push([u.p[0]+l,u.p[1]+h]);do{if(null===(c=ht(t.cells[h][l],u.x,u.y,u.o)))break;if(i.push([c.p[0]+l,c.p[1]+h]),l+=c.x,h+=c.y,u=c,h<0||h>=n||l<0||l>=r||void 0===t.cells[h][l]){l-=c.x,h-=c.y;var f=ct(t,l,h,c.x,c.y,c.o);if(null===f)break;f.path.forEach(function(t){i.push(t)}),l=f.i,h=f.j,u=f}}while(void 0!==t.cells[h][l]&&t.cells[h][l].edges.length>0);e.push(i),i=[],t.cells[o][a].edges.length>0&&a--}return e}(c)),"function"==typeof d.successCallback&&d.successCallback(u),u}var y=64,v=16,m=4,_=1,b=[],w=[],E=[],x=[],O=[],M=[],S=[],P=[],C=[],T=[],I=[],L=[],A=[],N=[],k=[],j=[],R=[],D=[],F=[],z=[],B=[],q=[],G=[],U=[];S[85]=T[85]=-1,P[85]=I[85]=0,C[85]=L[85]=1,F[85]=q[85]=1,z[85]=G[85]=0,B[85]=U[85]=1,b[85]=x[85]=0,w[85]=O[85]=-1,E[85]=k[85]=0,j[85]=A[85]=0,R[85]=N[85]=1,M[85]=D[85]=1,q[1]=q[169]=0,G[1]=G[169]=-1,U[1]=U[169]=0,A[1]=A[169]=-1,N[1]=N[169]=0,k[1]=k[169]=0,T[4]=T[166]=0,I[4]=I[166]=-1,L[4]=L[166]=1,j[4]=j[166]=1,R[4]=R[166]=0,D[4]=D[166]=0,S[16]=S[154]=0,P[16]=P[154]=1,C[16]=C[154]=1,x[16]=x[154]=1,O[16]=O[154]=0,M[16]=M[154]=1,F[64]=F[106]=0,z[64]=z[106]=1,B[64]=B[106]=0,b[64]=b[106]=-1,w[64]=w[106]=0,E[64]=E[106]=1,F[2]=F[168]=0,z[2]=z[168]=-1,B[2]=B[168]=1,q[2]=q[168]=0,G[2]=G[168]=-1,U[2]=U[168]=0,A[2]=A[168]=-1,N[2]=N[168]=0,k[2]=k[168]=0,j[2]=j[168]=-1,R[2]=R[168]=0,D[2]=D[168]=1,S[8]=S[162]=0,P[8]=P[162]=-1,C[8]=C[162]=0,T[8]=T[162]=0,I[8]=I[162]=-1,L[8]=L[162]=1,A[8]=A[162]=1,N[8]=N[162]=0,k[8]=k[162]=1,j[8]=j[162]=1,R[8]=R[162]=0,D[8]=D[162]=0,S[32]=S[138]=0,P[32]=P[138]=1,C[32]=C[138]=1,T[32]=T[138]=0,I[32]=I[138]=1,L[32]=L[138]=0,b[32]=b[138]=1,w[32]=w[138]=0,E[32]=E[138]=0,x[32]=x[138]=1,O[32]=O[138]=0,M[32]=M[138]=1,q[128]=q[42]=0,G[128]=G[42]=1,U[128]=U[42]=1,F[128]=F[42]=0,z[128]=z[42]=1,B[128]=B[42]=0,b[128]=b[42]=-1,w[128]=w[42]=0,E[128]=E[42]=1,x[128]=x[42]=-1,O[128]=O[42]=0,M[128]=M[42]=0,T[5]=T[165]=-1,I[5]=I[165]=0,L[5]=L[165]=0,q[5]=q[165]=1,G[5]=G[165]=0,U[5]=U[165]=0,j[20]=j[150]=0,R[20]=R[150]=1,D[20]=D[150]=1,x[20]=x[150]=0,O[20]=O[150]=-1,M[20]=M[150]=1,S[80]=S[90]=-1,P[80]=P[90]=0,C[80]=C[90]=1,F[80]=F[90]=1,z[80]=z[90]=0,B[80]=B[90]=1,A[65]=A[105]=0,N[65]=N[105]=1,k[65]=k[105]=0,b[65]=b[105]=0,w[65]=w[105]=-1,E[65]=E[105]=0,S[160]=S[10]=-1,P[160]=P[10]=0,C[160]=C[10]=1,T[160]=T[10]=-1,I[160]=I[10]=0,L[160]=L[10]=0,q[160]=q[10]=1,G[160]=G[10]=0,U[160]=U[10]=0,F[160]=F[10]=1,z[160]=z[10]=0,B[160]=B[10]=1,j[130]=j[40]=0,R[130]=R[40]=1,D[130]=D[40]=1,A[130]=A[40]=0,N[130]=N[40]=1,k[130]=k[40]=0,b[130]=b[40]=0,w[130]=w[40]=-1,E[130]=E[40]=0,x[130]=x[40]=0,O[130]=O[40]=-1,M[130]=M[40]=1,T[37]=T[133]=0,I[37]=I[133]=1,L[37]=L[133]=1,q[37]=q[133]=0,G[37]=G[133]=1,U[37]=U[133]=0,b[37]=b[133]=-1,w[37]=w[133]=0,E[37]=E[133]=0,x[37]=x[133]=1,O[37]=O[133]=0,M[37]=M[133]=0,j[148]=j[22]=-1,R[148]=R[22]=0,D[148]=D[22]=0,q[148]=q[22]=0,G[148]=G[22]=-1,U[148]=U[22]=1,F[148]=F[22]=0,z[148]=z[22]=1,B[148]=B[22]=1,x[148]=x[22]=-1,O[148]=O[22]=0,M[148]=M[22]=1,S[82]=S[88]=0,P[82]=P[88]=-1,C[82]=C[88]=1,j[82]=j[88]=1,R[82]=R[88]=0,D[82]=D[88]=1,A[82]=A[88]=-1,N[82]=N[88]=0,k[82]=k[88]=1,F[82]=F[88]=0,z[82]=z[88]=-1,B[82]=B[88]=0,S[73]=S[97]=0,P[73]=P[97]=1,C[73]=C[97]=0,T[73]=T[97]=0,I[73]=I[97]=-1,L[73]=L[97]=0,A[73]=A[97]=1,N[73]=N[97]=0,k[73]=k[97]=0,b[73]=b[97]=1,w[73]=w[97]=0,E[73]=E[97]=1,S[145]=S[25]=0,P[145]=P[25]=-1,C[145]=C[25]=0,A[145]=A[25]=1,N[145]=N[25]=0,k[145]=k[25]=1,q[145]=q[25]=0,G[145]=G[25]=1,U[145]=U[25]=1,x[145]=x[25]=-1,O[145]=O[25]=0,M[145]=M[25]=0,T[70]=T[100]=0,I[70]=I[100]=1,L[70]=L[100]=0,j[70]=j[100]=-1,R[70]=R[100]=0,D[70]=D[100]=1,F[70]=F[100]=0,z[70]=z[100]=-1,B[70]=B[100]=1,b[70]=b[100]=1,w[70]=w[100]=0,E[70]=E[100]=0,T[101]=T[69]=0,I[101]=I[69]=1,L[101]=L[69]=0,b[101]=b[69]=1,w[101]=w[69]=0,E[101]=E[69]=0,q[149]=q[21]=0,G[149]=G[21]=1,U[149]=U[21]=1,x[149]=x[21]=-1,O[149]=O[21]=0,M[149]=M[21]=0,j[86]=j[84]=-1,R[86]=R[84]=0,D[86]=D[84]=1,F[86]=F[84]=0,z[86]=z[84]=-1,B[86]=B[84]=1,S[89]=S[81]=0,P[89]=P[81]=-1,C[89]=C[81]=0,A[89]=A[81]=1,N[89]=N[81]=0,k[89]=k[81]=1,S[96]=S[74]=0,P[96]=P[74]=1,C[96]=C[74]=0,T[96]=T[74]=-1,I[96]=I[74]=0,L[96]=L[74]=1,F[96]=F[74]=1,z[96]=z[74]=0,B[96]=B[74]=0,b[96]=b[74]=1,w[96]=w[74]=0,E[96]=E[74]=1,S[24]=S[146]=0,P[24]=P[146]=-1,C[24]=C[146]=1,j[24]=j[146]=1,R[24]=R[146]=0,D[24]=D[146]=1,A[24]=A[146]=0,N[24]=N[146]=1,k[24]=k[146]=1,x[24]=x[146]=0,O[24]=O[146]=-1,M[24]=M[146]=0,T[6]=T[164]=-1,I[6]=I[164]=0,L[6]=L[164]=1,j[6]=j[164]=-1,R[6]=R[164]=0,D[6]=D[164]=0,q[6]=q[164]=0,G[6]=G[164]=-1,U[6]=U[164]=1,F[6]=F[164]=1,z[6]=z[164]=0,B[6]=B[164]=0,A[129]=A[41]=0,N[129]=N[41]=1,k[129]=k[41]=1,q[129]=q[41]=0,G[129]=G[41]=1,U[129]=U[41]=0,b[129]=b[41]=-1,w[129]=w[41]=0,E[129]=E[41]=0,x[129]=x[41]=0,O[129]=O[41]=-1,M[129]=M[41]=0,j[66]=j[104]=0,R[66]=R[104]=1,D[66]=D[104]=0,A[66]=A[104]=-1,N[66]=N[104]=0,k[66]=k[104]=1,F[66]=F[104]=0,z[66]=z[104]=-1,B[66]=B[104]=0,b[66]=b[104]=0,w[66]=w[104]=-1,E[66]=E[104]=1,S[144]=S[26]=-1,P[144]=P[26]=0,C[144]=C[26]=0,q[144]=q[26]=1,G[144]=G[26]=0,U[144]=U[26]=1,F[144]=F[26]=0,z[144]=z[26]=1,B[144]=B[26]=1,x[144]=x[26]=-1,O[144]=O[26]=0,M[144]=M[26]=1,T[36]=T[134]=0,I[36]=I[134]=1,L[36]=L[134]=1,j[36]=j[134]=0,R[36]=R[134]=1,D[36]=D[134]=0,b[36]=b[134]=0,w[36]=w[134]=-1,E[36]=E[134]=1,x[36]=x[134]=1,O[36]=O[134]=0,M[36]=M[134]=0,S[9]=S[161]=-1,P[9]=P[161]=0,C[9]=C[161]=0,T[9]=T[161]=0,I[9]=I[161]=-1,L[9]=L[161]=0,A[9]=A[161]=1,N[9]=N[161]=0,k[9]=k[161]=0,q[9]=q[161]=1,G[9]=G[161]=0,U[9]=U[161]=1,S[136]=0,P[136]=1,C[136]=1,T[136]=0,I[136]=1,L[136]=0,j[136]=-1,R[136]=0,D[136]=1,A[136]=-1,N[136]=0,k[136]=0,q[136]=0,G[136]=-1,U[136]=0,F[136]=0,z[136]=-1,B[136]=1,b[136]=1,w[136]=0,E[136]=0,x[136]=1,O[136]=0,M[136]=1,S[34]=0,P[34]=-1,C[34]=0,T[34]=0,I[34]=-1,L[34]=1,j[34]=1,R[34]=0,D[34]=0,A[34]=1,N[34]=0,k[34]=1,q[34]=0,G[34]=1,U[34]=1,F[34]=0,z[34]=1,B[34]=0,b[34]=-1,w[34]=0,E[34]=1,x[34]=-1,O[34]=0,M[34]=0,S[35]=0,P[35]=1,C[35]=1,T[35]=0,I[35]=-1,L[35]=1,j[35]=1,R[35]=0,D[35]=0,A[35]=-1,N[35]=0,k[35]=0,q[35]=0,G[35]=-1,U[35]=0,F[35]=0,z[35]=1,B[35]=0,b[35]=-1,w[35]=0,E[35]=1,x[35]=1,O[35]=0,M[35]=1,S[153]=0,P[153]=1,C[153]=1,A[153]=-1,N[153]=0,k[153]=0,q[153]=0,G[153]=-1,U[153]=0,x[153]=1,O[153]=0,M[153]=1,T[102]=0,I[102]=-1,L[102]=1,j[102]=1,R[102]=0,D[102]=0,F[102]=0,z[102]=1,B[102]=0,b[102]=-1,w[102]=0,E[102]=1,S[155]=0,P[155]=-1,C[155]=0,A[155]=1,N[155]=0,k[155]=1,q[155]=0,G[155]=1,U[155]=1,x[155]=-1,O[155]=0,M[155]=0,T[103]=0,I[103]=1,L[103]=0,j[103]=-1,R[103]=0,D[103]=1,F[103]=0,z[103]=-1,B[103]=1,b[103]=1,w[103]=0,E[103]=0,S[152]=0,P[152]=1,C[152]=1,j[152]=-1,R[152]=0,D[152]=1,A[152]=-1,N[152]=0,k[152]=0,q[152]=0,G[152]=-1,U[152]=0,F[152]=0,z[152]=-1,B[152]=1,x[152]=1,O[152]=0,M[152]=1,S[156]=0,P[156]=-1,C[156]=1,j[156]=1,R[156]=0,D[156]=1,A[156]=-1,N[156]=0,k[156]=0,q[156]=0,G[156]=-1,U[156]=0,F[156]=0,z[156]=1,B[156]=1,x[156]=-1,O[156]=0,M[156]=1,S[137]=0,P[137]=1,C[137]=1,T[137]=0,I[137]=1,L[137]=0,A[137]=-1,N[137]=0,k[137]=0,q[137]=0,G[137]=-1,U[137]=0,b[137]=1,w[137]=0,E[137]=0,x[137]=1,O[137]=0,M[137]=1,S[139]=0,P[139]=1,C[139]=1,T[139]=0,I[139]=-1,L[139]=0,A[139]=1,N[139]=0,k[139]=0,q[139]=0,G[139]=1,U[139]=0,b[139]=-1,w[139]=0,E[139]=0,x[139]=1,O[139]=0,M[139]=1,S[98]=0,P[98]=-1,C[98]=0,T[98]=0,I[98]=-1,L[98]=1,j[98]=1,R[98]=0,D[98]=0,A[98]=1,N[98]=0,k[98]=1,F[98]=0,z[98]=1,B[98]=0,b[98]=-1,w[98]=0,E[98]=1,S[99]=0,P[99]=1,C[99]=0,T[99]=0,I[99]=-1,L[99]=1,j[99]=1,R[99]=0,D[99]=0,A[99]=-1,N[99]=0,k[99]=1,F[99]=0,z[99]=-1,B[99]=0,b[99]=1,w[99]=0,E[99]=1,T[38]=0,I[38]=-1,L[38]=1,j[38]=1,R[38]=0,D[38]=0,q[38]=0,G[38]=1,U[38]=1,F[38]=0,z[38]=1,B[38]=0,b[38]=-1,w[38]=0,E[38]=1,x[38]=-1,O[38]=0,M[38]=0,T[39]=0,I[39]=1,L[39]=1,j[39]=-1,R[39]=0,D[39]=0,q[39]=0,G[39]=-1,U[39]=1,F[39]=0,z[39]=1,B[39]=0,b[39]=-1,w[39]=0,E[39]=1,x[39]=1,O[39]=0,M[39]=0;var V=function(t){return[[t.bottomleft,0],[0,0],[0,t.leftbottom]]},J=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0]]},H=function(t){return[[t.topright,1],[1,1],[1,t.righttop]]},Y=function(t){return[[0,t.lefttop],[0,1],[t.topleft,1]]},X=function(t){return[[t.bottomright,0],[t.bottomleft,0],[0,t.leftbottom],[0,t.lefttop]]},Z=function(t){return[[t.bottomright,0],[t.bottomleft,0],[1,t.righttop],[1,t.rightbottom]]},W=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.topleft,1],[t.topright,1]]},K=function(t){return[[0,t.leftbottom],[0,t.lefttop],[t.topleft,1],[t.topright,1]]},Q=[],$=[],tt=[],et=[],nt=[],rt=[],it=[],ot=[];et[1]=nt[1]=18,et[169]=nt[169]=18,tt[4]=$[4]=12,tt[166]=$[166]=12,Q[16]=ot[16]=4,Q[154]=ot[154]=4,rt[64]=it[64]=22,rt[106]=it[106]=22,tt[2]=rt[2]=17,et[2]=nt[2]=18,tt[168]=rt[168]=17,et[168]=nt[168]=18,Q[8]=et[8]=9,$[8]=tt[8]=12,Q[162]=et[162]=9,$[162]=tt[162]=12,Q[32]=ot[32]=4,$[32]=it[32]=1,Q[138]=ot[138]=4,$[138]=it[138]=1,nt[128]=ot[128]=21,rt[128]=it[128]=22,nt[42]=ot[42]=21,rt[42]=it[42]=22,$[5]=nt[5]=14,$[165]=nt[165]=14,tt[20]=ot[20]=6,tt[150]=ot[150]=6,Q[80]=rt[80]=11,Q[90]=rt[90]=11,et[65]=it[65]=3,et[105]=it[105]=3,Q[160]=rt[160]=11,$[160]=nt[160]=14,Q[10]=rt[10]=11,$[10]=nt[10]=14,tt[130]=ot[130]=6,et[130]=it[130]=3,tt[40]=ot[40]=6,et[40]=it[40]=3,$[101]=it[101]=1,$[69]=it[69]=1,nt[149]=ot[149]=21,nt[21]=ot[21]=21,tt[86]=rt[86]=17,tt[84]=rt[84]=17,Q[89]=et[89]=9,Q[81]=et[81]=9,Q[96]=it[96]=0,$[96]=rt[96]=15,Q[74]=it[74]=0,$[74]=rt[74]=15,Q[24]=tt[24]=8,et[24]=ot[24]=7,Q[146]=tt[146]=8,et[146]=ot[146]=7,$[6]=rt[6]=15,tt[6]=nt[6]=16,$[164]=rt[164]=15,tt[164]=nt[164]=16,et[129]=ot[129]=7,nt[129]=it[129]=20,et[41]=ot[41]=7,nt[41]=it[41]=20,tt[66]=it[66]=2,et[66]=rt[66]=19,tt[104]=it[104]=2,et[104]=rt[104]=19,Q[144]=nt[144]=10,rt[144]=ot[144]=23,Q[26]=nt[26]=10,rt[26]=ot[26]=23,$[36]=ot[36]=5,tt[36]=it[36]=2,$[134]=ot[134]=5,tt[134]=it[134]=2,Q[9]=nt[9]=10,$[9]=et[9]=13,Q[161]=nt[161]=10,$[161]=et[161]=13,$[37]=ot[37]=5,nt[37]=it[37]=20,$[133]=ot[133]=5,nt[133]=it[133]=20,tt[148]=nt[148]=16,rt[148]=ot[148]=23,tt[22]=nt[22]=16,rt[22]=ot[22]=23,Q[82]=tt[82]=8,et[82]=rt[82]=19,Q[88]=tt[88]=8,et[88]=rt[88]=19,Q[73]=it[73]=0,$[73]=et[73]=13,Q[97]=it[97]=0,$[97]=et[97]=13,Q[145]=et[145]=9,nt[145]=ot[145]=21,Q[25]=et[25]=9,nt[25]=ot[25]=21,$[70]=it[70]=1,tt[70]=rt[70]=17,$[100]=it[100]=1,tt[100]=rt[100]=17,Q[34]=et[34]=9,$[34]=tt[34]=12,nt[34]=ot[34]=21,rt[34]=it[34]=22,Q[136]=ot[136]=4,$[136]=it[136]=1,tt[136]=rt[136]=17,et[136]=nt[136]=18,Q[35]=ot[35]=4,$[35]=tt[35]=12,et[35]=nt[35]=18,rt[35]=it[35]=22,Q[153]=ot[153]=4,et[153]=nt[153]=18,$[102]=tt[102]=12,rt[102]=it[102]=22,Q[155]=et[155]=9,nt[155]=ot[155]=23,$[103]=it[103]=1,tt[103]=rt[103]=17,Q[152]=ot[152]=4,tt[152]=rt[152]=17,et[152]=nt[152]=18,Q[156]=tt[156]=8,et[156]=nt[156]=18,rt[156]=ot[156]=23,Q[137]=ot[137]=4,$[137]=it[137]=1,et[137]=nt[137]=18,Q[139]=ot[139]=4,$[139]=et[139]=13,nt[139]=it[139]=20,Q[98]=et[98]=9,$[98]=tt[98]=12,rt[98]=it[98]=22,Q[99]=it[99]=0,$[99]=tt[99]=12,et[99]=rt[99]=19,$[38]=tt[38]=12,nt[38]=ot[38]=21,rt[38]=it[38]=22,$[39]=ot[39]=5,tt[39]=nt[39]=16,rt[39]=it[39]=22;var at=[];function st(t,e,n){return(t-e)/(n-e)}function ut(t){return t.constructor.toString().indexOf("Array")>-1}function ct(t,e,n,r,i,o){for(var a=t.cells[n][e],s=a.cval_real,u=e+r,c=n+i,l=[],h=!1;!h;){if(void 0===t.cells[c]||void 0===t.cells[c][u])if(c-=i,u-=r,s=(a=t.cells[c][u]).cval_real,-1===i)if(0===o)if(s&_)l.push([u,c]),r=-1,i=0,o=0;else{if(!(s&m)){l.push([u+a.bottomright,c]),r=0,i=1,o=1,h=!0;break}l.push([u+1,c]),r=1,i=0,o=0}else{if(!(s&_)){if(s&m){l.push([u+a.bottomright,c]),r=0,i=1,o=1,h=!0;break}l.push([u+a.bottomleft,c]),r=0,i=1,o=0,h=!0;break}l.push([u,c]),r=-1,i=0,o=0}else if(1===i)if(0===o){if(!(s&v)){if(s&y){l.push([u+a.topleft,c+1]),r=0,i=-1,o=0,h=!0;break}l.push([u+a.topright,c+1]),r=0,i=-1,o=1,h=!0;break}l.push([u+1,c+1]),r=1,i=0,o=1}else l.push([u+1,c+1]),r=1,i=0,o=1;else if(-1===r)if(0===o){if(!(s&y)){if(s&_){l.push([u,c+a.leftbottom]),r=1,i=0,o=0,h=!0;break}l.push([u,c+a.lefttop]),r=1,i=0,o=1,h=!0;break}l.push([u,c+1]),r=0,i=1,o=0}else{if(!(s&y)){console.log("MarchingSquaresJS-isoBands: wtf");break}l.push([u,c+1]),r=0,i=1,o=0}else{if(1!==r){console.log("MarchingSquaresJS-isoBands: we came from nowhere!");break}if(0===o){if(!(s&m)){l.push([u+1,c+a.rightbottom]),r=-1,i=0,o=0,h=!0;break}l.push([u+1,c]),r=0,i=-1,o=1}else{if(!(s&m)){if(s&v){l.push([u+1,c+a.righttop]),r=-1,i=0,o=1;break}l.push([u+1,c+a.rightbottom]),r=-1,i=0,o=0,h=!0;break}l.push([u+1,c]),r=0,i=-1,o=1}}else if(s=(a=t.cells[c][u]).cval_real,-1===r)if(0===o)if(void 0!==t.cells[c-1]&&void 0!==t.cells[c-1][u])r=0,i=-1,o=1;else{if(!(s&_)){l.push([u+a.bottomright,c]),r=0,i=1,o=1,h=!0;break}l.push([u,c])}else{if(!(s&y)){console.log("MarchingSquaresJS-isoBands: found entry from top at "+u+","+c);break}console.log("MarchingSquaresJS-isoBands: proceeding in x-direction!")}else if(1===r){if(0===o){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==t.cells[c+1]&&void 0!==t.cells[c+1][u])r=0,i=1,o=0;else{if(!(s&v)){l.push([u+a.topleft,c+1]),r=0,i=-1,o=0,h=!0;break}l.push([u+1,c+1]),r=1,i=0,o=1}}else if(-1===i){if(1!==o){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==t.cells[c][u+1])r=1,i=0,o=1;else{if(!(s&m)){l.push([u+1,c+a.righttop]),r=-1,i=0,o=1,h=!0;break}l.push([u+1,c]),r=0,i=-1,o=1}}else{if(1!==i){console.log("MarchingSquaresJS-isoBands: where did we came from???");break}if(0!==o){console.log("MarchingSquaresJS-isoBands: wtf");break}if(void 0!==t.cells[c][u-1])r=-1,i=0,o=0;else{if(!(s&y)){l.push([u,c+a.leftbottom]),r=1,i=0,o=0,h=!0;break}l.push([u,c+1]),r=0,i=1,o=0}}if(c+=i,(u+=r)===e&&c===n)break}return{path:l,i:u,j:c,x:r,y:i,o:o}}function lt(t){if(t.edges.length>0){var e=t.edges[t.edges.length-1],n=t.cval_real;switch(e){case 0:return n&v?{p:[1,t.righttop],x:-1,y:0,o:1}:{p:[t.topleft,1],x:0,y:-1,o:0};case 1:return n&m?{p:[t.topleft,1],x:0,y:-1,o:0}:{p:[1,t.rightbottom],x:-1,y:0,o:0};case 2:return n&m?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[t.topleft,1],x:0,y:-1,o:0};case 3:return n&_?{p:[t.topleft,1],x:0,y:-1,o:0}:{p:[t.bottomleft,0],x:0,y:1,o:0};case 4:return n&v?{p:[1,t.righttop],x:-1,y:0,o:1}:{p:[t.topright,1],x:0,y:-1,o:1};case 5:return n&m?{p:[t.topright,1],x:0,y:-1,o:1}:{p:[1,t.rightbottom],x:-1,y:0,o:0};case 6:return n&m?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[t.topright,1],x:0,y:-1,o:1};case 7:return n&_?{p:[t.topright,1],x:0,y:-1,o:1}:{p:[t.bottomleft,0],x:0,y:1,o:0};case 8:return n&m?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[1,t.righttop],x:-1,y:0,o:1};case 9:return n&_?{p:[1,t.righttop],x:-1,y:0,o:1}:{p:[t.bottomleft,0],x:0,y:1,o:0};case 10:return n&_?{p:[0,t.leftbottom],x:1,y:0,o:0}:{p:[1,t.righttop],x:-1,y:0,o:1};case 11:return n&y?{p:[1,t.righttop],x:-1,y:0,o:1}:{p:[0,t.lefttop],x:1,y:0,o:1};case 12:return n&m?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[1,t.rightbottom],x:-1,y:0,o:0};case 13:return n&_?{p:[1,t.rightbottom],x:-1,y:0,o:0}:{p:[t.bottomleft,0],x:0,y:1,o:0};case 14:return n&_?{p:[0,t.leftbottom],x:1,y:0,o:0}:{p:[1,t.rightbottom],x:-1,y:0,o:0};case 15:return n&y?{p:[1,t.rightbottom],x:-1,y:0,o:0}:{p:[0,t.lefttop],x:1,y:0,o:1};case 16:return n&m?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[0,t.leftbottom],x:1,y:0,o:0};case 17:return n&y?{p:[t.bottomright,0],x:0,y:1,o:1}:{p:[0,t.lefttop],x:1,y:0,o:1};case 18:return n&_?{p:[0,t.leftbottom],x:1,y:0,o:0}:{p:[t.bottomleft,0],x:0,y:1,o:0};case 19:return n&y?{p:[t.bottomleft,0],x:0,y:1,o:0}:{p:[0,t.lefttop],x:1,y:0,o:1};case 20:return n&y?{p:[t.topleft,1],x:0,y:-1,o:0}:{p:[0,t.leftbottom],x:1,y:0,o:0};case 21:return n&v?{p:[0,t.leftbottom],x:1,y:0,o:0}:{p:[t.topright,1],x:0,y:-1,o:1};case 22:return n&y?{p:[t.topleft,1],x:0,y:-1,o:0}:{p:[0,t.lefttop],x:1,y:0,o:1};case 23:return n&v?{p:[0,t.lefttop],x:1,y:0,o:1}:{p:[t.topright,1],x:0,y:-1,o:1};default:console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(t)}}return null}function ht(t,e,n,r){var i,o,a,s,u,c=t.cval;switch(e){case-1:switch(r){case 0:i=$[c],a=T[c],s=I[c],u=L[c];break;default:i=Q[c],a=S[c],s=P[c],u=C[c]}break;case 1:switch(r){case 0:i=nt[c],a=q[c],s=G[c],u=U[c];break;default:i=rt[c],a=F[c],s=z[c],u=B[c]}break;default:switch(n){case-1:switch(r){case 0:i=it[c],a=b[c],s=w[c],u=E[c];break;default:i=ot[c],a=x[c],s=O[c],u=M[c]}break;case 1:switch(r){case 0:i=et[c],a=A[c],s=N[c],u=k[c];break;default:i=tt[c],a=j[c],s=R[c],u=D[c]}}}if(o=t.edges.indexOf(i),void 0===t.edges[o])return null;switch(function(t,e){delete t.edges[e];for(var n=e+1;n<t.edges.length;n++)t.edges[n-1]=t.edges[n];t.edges.pop()}(t,o),c=t.cval_real,i){case 0:c&v?(e=t.topleft,n=1):(e=1,n=t.righttop);break;case 1:c&m?(e=1,n=t.rightbottom):(e=t.topleft,n=1);break;case 2:c&m?(e=t.topleft,n=1):(e=t.bottomright,n=0);break;case 3:c&_?(e=t.bottomleft,n=0):(e=t.topleft,n=1);break;case 4:c&v?(e=t.topright,n=1):(e=1,n=t.righttop);break;case 5:c&m?(e=1,n=t.rightbottom):(e=t.topright,n=1);break;case 6:c&m?(e=t.topright,n=1):(e=t.bottomright,n=0);break;case 7:c&_?(e=t.bottomleft,n=0):(e=t.topright,n=1);break;case 8:c&m?(e=1,n=t.righttop):(e=t.bottomright,n=0);break;case 9:c&_?(e=t.bottomleft,n=0):(e=1,n=t.righttop);break;case 10:c&_?(e=1,n=t.righttop):(e=0,n=t.leftbottom);break;case 11:c&y?(e=0,n=t.lefttop):(e=1,n=t.righttop);break;case 12:c&m?(e=1,n=t.rightbottom):(e=t.bottomright,n=0);break;case 13:c&_?(e=t.bottomleft,n=0):(e=1,n=t.rightbottom);break;case 14:c&_?(e=1,n=t.rightbottom):(e=0,n=t.leftbottom);break;case 15:c&y?(e=0,n=t.lefttop):(e=1,n=t.rightbottom);break;case 16:c&m?(e=0,n=t.leftbottom):(e=t.bottomright,n=0);break;case 17:c&y?(e=0,n=t.lefttop):(e=t.bottomright,n=0);break;case 18:c&_?(e=t.bottomleft,n=0):(e=0,n=t.leftbottom);break;case 19:c&y?(e=0,n=t.lefttop):(e=t.bottomleft,n=0);break;case 20:c&y?(e=0,n=t.leftbottom):(e=t.topleft,n=1);break;case 21:c&v?(e=t.topright,n=1):(e=0,n=t.leftbottom);break;case 22:c&y?(e=0,n=t.lefttop):(e=t.topleft,n=1);break;case 23:c&v?(e=t.topright,n=1):(e=0,n=t.lefttop);break;default:return console.log("MarchingSquaresJS-isoBands: edge index out of range!"),console.log(t),null}return void 0!==e&&void 0!==n&&void 0!==a&&void 0!==s&&void 0!==u||(console.log("MarchingSquaresJS-isoBands: undefined value!"),console.log(t),console.log(e+" "+n+" "+a+" "+s+" "+u)),{p:[e,n],x:a,y:s,o:u}}function ft(t){var e=[],n=[];t.forEach(function(t){var r=Object(i.a)(Object(u.polygon)([t]));n.push(r),e.push({ring:t,area:r})}),n.sort(function(t,e){return e-t});var r=[];return n.forEach(function(t){for(var n=0;n<e.length;n++)if(e[n].area===t){r.push(e[n].ring),e.splice(n,1);break}}),r}function pt(t){for(var e=t.map(function(t){return{lrCoordinates:t,grouped:!1}}),n=[];!gt(e);)for(var r=0;r<e.length;r++)if(!e[r].grouped){var i=[];i.push(e[r].lrCoordinates),e[r].grouped=!0;for(var o=Object(u.polygon)([e[r].lrCoordinates]),a=r+1;a<e.length;a++){if(!e[a].grouped)dt(Object(u.polygon)([e[a].lrCoordinates]),o)&&(i.push(e[a].lrCoordinates),e[a].grouped=!0)}n.push(i)}return n}function dt(t,e){for(var n=Object(a.a)(t),r=0;r<n.features.length;r++)if(!Object(o.a)(n.features[r],e))return!1;return!0}function gt(t){for(var e=0;e<t.length;e++)if(!1===t[e].grouped)return!1;return!0}at[1]=at[169]=V,at[4]=at[166]=J,at[16]=at[154]=H,at[64]=at[106]=Y,at[168]=at[2]=X,at[162]=at[8]=Z,at[138]=at[32]=W,at[42]=at[128]=K,at[5]=at[165]=function(t){return[[0,0],[0,t.leftbottom],[1,t.rightbottom],[1,0]]},at[20]=at[150]=function(t){return[[1,0],[t.bottomright,0],[t.topright,1],[1,1]]},at[80]=at[90]=function(t){return[[1,1],[1,t.righttop],[0,t.lefttop],[0,1]]},at[65]=at[105]=function(t){return[[t.bottomleft,0],[0,0],[0,1],[t.topleft,1]]},at[160]=at[10]=function(t){return[[1,t.righttop],[1,t.rightbottom],[0,t.leftbottom],[0,t.lefttop]]},at[130]=at[40]=function(t){return[[t.topleft,1],[t.topright,1],[t.bottomright,0],[t.bottomleft,0]]},at[85]=function(){return[[0,0],[0,1],[1,1],[1,0]]},at[101]=at[69]=function(t){return[[1,t.rightbottom],[1,0],[0,0],[0,1],[t.topleft,1]]},at[149]=at[21]=function(t){return[[t.topright,1],[1,1],[1,0],[0,0],[0,t.leftbottom]]},at[86]=at[84]=function(t){return[[1,0],[t.bottomright,0],[0,t.lefttop],[0,1],[1,1]]},at[89]=at[81]=function(t){return[[1,1],[1,t.righttop],[t.bottomleft,0],[0,0],[0,1]]},at[96]=at[74]=function(t){return[[1,t.righttop],[1,t.rightbottom],[0,t.lefttop],[0,1],[t.topleft,1]]},at[24]=at[146]=function(t){return[[1,1],[1,t.righttop],[t.bottomright,0],[t.bottomleft,0],[t.topright,1]]},at[6]=at[164]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.leftbottom],[0,t.lefttop]]},at[129]=at[41]=function(t){return[[t.topright,1],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topleft,1]]},at[66]=at[104]=function(t){return[[t.bottomright,0],[t.bottomleft,0],[0,t.lefttop],[0,1],[t.topleft,1]]},at[144]=at[26]=function(t){return[[1,1],[1,t.righttop],[0,t.leftbottom],[0,t.lefttop],[t.topright,1]]},at[36]=at[134]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[t.topleft,1],[t.topright,1]]},at[9]=at[161]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomleft,0],[0,0],[0,t.leftbottom]]},at[37]=at[133]=function(t){return[[1,t.rightbottom],[1,0],[0,0],[0,t.leftbottom],[t.topleft,1],[t.topright,1]]},at[148]=at[22]=function(t){return[[1,1],[1,0],[t.bottomright,0],[0,t.leftbottom],[0,t.lefttop],[t.topright,1]]},at[82]=at[88]=function(t){return[[1,1],[1,t.righttop],[t.bottomright,0],[t.bottomleft,0],[0,t.lefttop],[0,1]]},at[73]=at[97]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomleft,0],[0,0],[0,1],[t.topleft,1]]},at[145]=at[25]=function(t){return[[1,1],[1,t.righttop],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topright,1]]},at[70]=at[100]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.lefttop],[0,1],[t.topleft,1]]},at[34]=function(t){return[K(t),Z(t)]},at[35]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomright,0],[t.bottomleft,0],[0,t.leftbottom],[0,t.lefttop],[t.topleft,1],[t.topright,1]]},at[136]=function(t){return[W(t),X(t)]},at[153]=function(t){return[H(t),V(t)]},at[102]=function(t){return[J(t),Y(t)]},at[155]=function(t){return[[1,1],[1,t.righttop],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topright,1]]},at[103]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.lefttop],[0,1],[t.topleft,1]]},at[152]=function(t){return[H(t),X(t)]},at[156]=function(t){return[[1,1],[1,t.righttop],[t.bottomright,0],[t.bottomleft,0],[0,t.leftbottom],[0,t.lefttop],[t.topright,1]]},at[137]=function(t){return[W(t),V(t)]},at[139]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomleft,0],[0,0],[0,t.leftbottom],[t.topleft,1],[t.topright,1]]},at[98]=function(t){return[Z(t),Y(t)]},at[99]=function(t){return[[1,t.righttop],[1,t.rightbottom],[t.bottomright,0],[t.bottomleft,0],[0,t.lefttop],[0,1],[t.topleft,1]]},at[38]=function(t){return[J(t),K(t)]},at[39]=function(t){return[[1,t.rightbottom],[1,0],[t.bottomright,0],[0,t.leftbottom],[0,t.lefttop],[t.topleft,1],[t.topright,1]]},e.a=function(t,e,n){if(n=n||{},!Object(u.isObject)(n))throw new Error("options is invalid");var i=n.zProperty||"elevation",o=n.commonProperties||{},a=n.breaksProperties||[];if(Object(s.collectionOf)(t,"Point","Input must contain Points"),!e)throw new Error("breaks is required");if(!Array.isArray(e))throw new Error("breaks is not an Array");if(!Object(u.isObject)(o))throw new Error("commonProperties is not an Object");if(!Array.isArray(a))throw new Error("breaksProperties is not an Array");var c=f(t,{zProperty:i,flip:!0}),h=function(t,e,n){for(var r=[],i=1;i<e.length;i++){var o=+e[i-1],a=+e[i],s=g(t,o,a-o),u=ft(s),c=pt(u),l={};l.groupedRings=c,l[n]=o+"-"+a,r.push(l)}return r}(c,e,i),p=(h=function(t,e,n){var i=Object(r.default)(n),o=i[2]-i[0],a=i[3]-i[1],s=i[0],u=i[1],c=e[0].length-1,l=e.length-1,h=o/c,f=a/l,p=function(t){t[0]=t[0]*h+s,t[1]=t[1]*f+u};return t.forEach(function(t){t.groupedRings.forEach(function(t){t.forEach(function(t){t.forEach(p)})})}),t}(h,c,t)).map(function(t,e){if(a[e]&&!Object(u.isObject)(a[e]))throw new Error("Each mappedProperty is required to be an Object");var n=l()({},o,a[e]);return n[i]=t[i],Object(u.multiPolygon)(t.groupedRings,n)});return Object(u.featureCollection)(p)}},function(t,e,n){"use strict";var r=n(1),i=n(0),o=n(2),a=n(9),s=n(45);e.a=function(t,e,n,u){if(u=u||{},!Object(i.isObject)(u))throw new Error("options is invalid");var c=u.units,l=u.zTranslation,h=u.mutate;if(!t)throw new Error("geojson is required");if(void 0===e||null===e||isNaN(e))throw new Error("distance is required");if(l&&"number"!=typeof l&&isNaN(l))throw new Error("zTranslation is not a number");if(l=void 0!==l?l:0,0===e&&0===l)return t;if(void 0===n||null===n||isNaN(n))throw new Error("direction is required");return e<0&&(e=-e,n+=180),!1!==h&&void 0!==h||(t=Object(a.a)(t)),Object(r.coordEach)(t,function(t){var r=Object(o.getCoords)(Object(s.a)(t,e,n,{units:c}));t[0]=r[0],t[1]=r[1],l&&3===t.length&&(t[2]+=l)}),t}},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0);function a(t){var e=t[0],n=t[1];return[n[0]-e[0],n[1]-e[1]]}function s(t,e){return t[0]*e[1]-e[0]*t[1]}function u(t,e){return!function(t,e){return 0===s(a(t),a(e))}(t,e)&&function(t,e){var n,r,i=t[0],o=a(t),u=e[0],c=a(e),l=s(o,c);return function(t,e){return[t[0]+e[0],t[1]+e[1]]}(i,function(t,e){return[t*e[0],t*e[1]]}(s((r=i,[(n=u)[0]-r[0],n[1]-r[1]]),c)/l,o))}(t,e)}function c(t,e,n){var r=[],a=Object(o.lengthToDegrees)(e,n),s=Object(i.getCoords)(t),c=[];return s.forEach(function(t,e){if(e!==s.length-1){var n=(l=t,h=s[e+1],f=a,p=Math.sqrt((l[0]-h[0])*(l[0]-h[0])+(l[1]-h[1])*(l[1]-h[1])),d=l[0]+f*(h[1]-l[1])/p,g=h[0]+f*(h[1]-l[1])/p,y=l[1]+f*(l[0]-h[0])/p,v=h[1]+f*(l[0]-h[0])/p,[[d,y],[g,v]]);if(r.push(n),e>0){var i=r[e-1],o=u(n,i);!1!==o&&(i[1]=o,n[0]=o),c.push(i[0]),e===s.length-2&&(c.push(n[0]),c.push(n[1]))}2===s.length&&(c.push(n[0]),c.push(n[1]))}var l,h,f,p,d,g,y,v}),Object(o.lineString)(c,t.properties)}e.a=function(t,e,n){if(n=n||{},!Object(o.isObject)(n))throw new Error("options is invalid");var a=n.units;if(!t)throw new Error("geojson is required");if(void 0===e||null===e||isNaN(e))throw new Error("distance is required");var s=Object(i.getType)(t),u=t.properties;switch(s){case"LineString":return c(t,e,a);case"MultiLineString":var l=[];return Object(r.flattenEach)(t,function(t){l.push(c(t,e,a).geometry.coordinates)}),Object(o.multiLineString)(l,u);default:throw new Error("geometry "+s+" is not supported")}}},function(t,e,n){"use strict";e.a=function(t){var e=i.a.fromGeoJson(t);e.deleteDangles(),e.deleteCutEdges();var n=[],a=[];return e.getEdgeRings().filter(function(t){return t.isValid()}).forEach(function(t){t.isHole()?n.push(t):a.push(t)}),n.forEach(function(t){o.a.findEdgeRingContaining(t,a)&&a.push(t)}),Object(r.featureCollection)(a.map(function(t){return t.toPolygon()}))};var r=n(0),i=n(286),o=n(142)},function(t,e,n){"use strict";var r=n(287),i=n(288),o=n(142),a=n(1),s=n(2);var u=function(){function t(){this.edges=[],this.nodes={}}return t.fromGeoJson=function(e){!function(t){if(!t)throw new Error("No geojson passed");if("FeatureCollection"!==t.type&&"GeometryCollection"!==t.type&&"MultiLineString"!==t.type&&"LineString"!==t.type&&"Feature"!==t.type)throw new Error("Invalid input type '"+t.type+"'. Geojson must be FeatureCollection, GeometryCollection, LineString, MultiLineString or Feature")}(e);var n=new t;return Object(a.flattenEach)(e,function(t){Object(s.featureOf)(t,"LineString","Graph::fromGeoJson"),Object(a.coordReduce)(t,function(t,e){if(t){var r=n.getNode(t),i=n.getNode(e);n.addEdge(r,i)}return e})}),n},t.prototype.getNode=function(t){var e=r.a.buildId(t),n=this.nodes[e];return n||(n=this.nodes[e]=new r.a(t)),n},t.prototype.addEdge=function(t,e){var n=new i.a(t,e),r=n.getSymetric();this.edges.push(n),this.edges.push(r)},t.prototype.deleteDangles=function(){var t=this;Object.keys(this.nodes).map(function(e){return t.nodes[e]}).forEach(function(e){return t._removeIfDangle(e)})},t.prototype._removeIfDangle=function(t){var e=this;if(t.innerEdges.length<=1){var n=t.getOuterEdges().map(function(t){return t.to});this.removeNode(t),n.forEach(function(t){return e._removeIfDangle(t)})}},t.prototype.deleteCutEdges=function(){var t=this;this._computeNextCWEdges(),this._findLabeledEdgeRings(),this.edges.forEach(function(e){e.label===e.symetric.label&&(t.removeEdge(e.symetric),t.removeEdge(e))})},t.prototype._computeNextCWEdges=function(t){var e=this;void 0===t?Object.keys(this.nodes).forEach(function(t){return e._computeNextCWEdges(e.nodes[t])}):t.getOuterEdges().forEach(function(e,n){t.getOuterEdge((0===n?t.getOuterEdges().length:n)-1).symetric.next=e})},t.prototype._computeNextCCWEdges=function(t,e){for(var n,r,i=t.getOuterEdges(),o=i.length-1;o>=0;--o){var a=i[o],s=a.symetric,u=void 0,c=void 0;a.label===e&&(u=a),s.label===e&&(c=s),u&&c&&(c&&(r=c),u&&(r&&(r.next=u,r=void 0),n||(n=u)))}r&&(r.next=n)},t.prototype._findLabeledEdgeRings=function(){var t=[],e=0;return this.edges.forEach(function(n){if(!(n.label>=0)){t.push(n);var r=n;do{r.label=e,r=r.next}while(!n.isEqual(r));e++}}),t},t.prototype.getEdgeRings=function(){var t=this;this._computeNextCWEdges(),this.edges.forEach(function(t){t.label=void 0}),this._findLabeledEdgeRings().forEach(function(e){t._findIntersectionNodes(e).forEach(function(n){t._computeNextCCWEdges(n,e.label)})});var e=[];return this.edges.forEach(function(n){n.ring||e.push(t._findEdgeRing(n))}),e},t.prototype._findIntersectionNodes=function(t){var e=[],n=t,r=function(){var r=0;n.from.getOuterEdges().forEach(function(e){e.label===t.label&&++r}),r>1&&e.push(n.from),n=n.next};do{r()}while(!t.isEqual(n));return e},t.prototype._findEdgeRing=function(t){var e=t,n=new o.a;do{n.push(e),e.ring=n,e=e.next}while(!t.isEqual(e));return n},t.prototype.removeNode=function(t){var e=this;t.getOuterEdges().forEach(function(t){return e.removeEdge(t)}),t.innerEdges.forEach(function(t){return e.removeEdge(t)}),delete this.nodes[t.id]},t.prototype.removeEdge=function(t){this.edges=this.edges.filter(function(e){return!e.isEqual(t)}),t.deleteEdge()},t}();e.a=u},function(t,e,n){"use strict";var r=n(84),i=function(){function t(e){this.id=t.buildId(e),this.coordinates=e,this.innerEdges=[],this.outerEdges=[],this.outerEdgesSorted=!1}return t.buildId=function(t){return t.join(",")},t.prototype.removeInnerEdge=function(t){this.innerEdges=this.innerEdges.filter(function(e){return e.from.id!==t.from.id})},t.prototype.removeOuterEdge=function(t){this.outerEdges=this.outerEdges.filter(function(e){return e.to.id!==t.to.id})},t.prototype.addOuterEdge=function(t){this.outerEdges.push(t),this.outerEdgesSorted=!1},t.prototype.sortOuterEdges=function(){var t=this;this.outerEdgesSorted||(this.outerEdges.sort(function(e,n){var i=e.to,o=n.to;if(i.coordinates[0]-t.coordinates[0]>=0&&o.coordinates[0]-t.coordinates[0]<0)return 1;if(i.coordinates[0]-t.coordinates[0]<0&&o.coordinates[0]-t.coordinates[0]>=0)return-1;if(i.coordinates[0]-t.coordinates[0]==0&&o.coordinates[0]-t.coordinates[0]==0)return i.coordinates[1]-t.coordinates[1]>=0||o.coordinates[1]-t.coordinates[1]>=0?i.coordinates[1]-o.coordinates[1]:o.coordinates[1]-i.coordinates[1];var a=Object(r.d)(t.coordinates,i.coordinates,o.coordinates);return a<0?1:a>0?-1:Math.pow(i.coordinates[0]-t.coordinates[0],2)+Math.pow(i.coordinates[1]-t.coordinates[1],2)-(Math.pow(o.coordinates[0]-t.coordinates[0],2)+Math.pow(o.coordinates[1]-t.coordinates[1],2))}),this.outerEdgesSorted=!0)},t.prototype.getOuterEdges=function(){return this.sortOuterEdges(),this.outerEdges},t.prototype.getOuterEdge=function(t){return this.sortOuterEdges(),this.outerEdges[t]},t.prototype.addInnerEdge=function(t){this.innerEdges.push(t)},t}();e.a=i},function(t,e,n){"use strict";var r=n(0),i=n(84),o=function(){function t(t,e){this.from=t,this.to=e,this.next=void 0,this.label=void 0,this.symetric=void 0,this.ring=void 0,this.from.addOuterEdge(this),this.to.addInnerEdge(this)}return t.prototype.getSymetric=function(){return this.symetric||(this.symetric=new t(this.to,this.from),this.symetric.symetric=this),this.symetric},t.prototype.deleteEdge=function(){this.from.removeOuterEdge(this),this.to.removeInnerEdge(this)},t.prototype.isEqual=function(t){return this.from.id===t.from.id&&this.to.id===t.to.id},t.prototype.toString=function(){return"Edge { "+this.from.id+" -> "+this.to.id+" }"},t.prototype.toLineString=function(){return Object(r.lineString)([this.from.coordinates,this.to.coordinates])},t.prototype.compareTo=function(t){return Object(i.d)(t.from.coordinates,t.to.coordinates,this.to.coordinates)},t}();e.a=o},function(t,e,n){"use strict";e.a=function(t,e){var n=Object(a.getGeom)(t),c=Object(a.getGeom)(e),l=n.type,h=c.type,f=n.coordinates,p=c.coordinates;switch(l){case"Point":switch(h){case"Point":return u(f,p);default:throw new Error("feature2 "+h+" geometry not supported")}case"MultiPoint":switch(h){case"Point":return function(t,e){var n,r=!1;for(n=0;n<t.coordinates.length;n++)if(u(t.coordinates[n],e.coordinates)){r=!0;break}return r}(n,c);case"MultiPoint":return function(t,e){for(var n=0,r=e.coordinates;n<r.length;n++){for(var i=r[n],o=!1,a=0,s=t.coordinates;a<s.length;a++){var c=s[a];if(u(i,c)){o=!0;break}}if(!o)return!1}return!0}(n,c);default:throw new Error("feature2 "+h+" geometry not supported")}case"LineString":switch(h){case"Point":return Object(o.a)(c,n,{ignoreEndVertices:!0});case"LineString":return function(t,e){for(var n=!1,r=0,i=e.coordinates;r<i.length;r++){var a=i[r];if(Object(o.a)({type:"Point",coordinates:a},t,{ignoreEndVertices:!0})&&(n=!0),!Object(o.a)({type:"Point",coordinates:a},t,{ignoreEndVertices:!1}))return!1}return n}(n,c);case"MultiPoint":return function(t,e){for(var n=!1,r=0,i=e.coordinates;r<i.length;r++){var a=i[r];if(Object(o.a)(a,t,{ignoreEndVertices:!0})&&(n=!0),!Object(o.a)(a,t))return!1}if(n)return!0;return!1}(n,c);default:throw new Error("feature2 "+h+" geometry not supported")}case"Polygon":switch(h){case"Point":return Object(i.a)(c,n,{ignoreBoundary:!0});case"LineString":return function(t,e){var n=!1,o=0,a=Object(r.default)(t),u=Object(r.default)(e);if(!s(a,u))return!1;for(;o<e.coordinates.length-1;o++){var c=(l=e.coordinates[o],h=e.coordinates[o+1],[(l[0]+h[0])/2,(l[1]+h[1])/2]);if(Object(i.a)({type:"Point",coordinates:c},t,{ignoreBoundary:!0})){n=!0;break}}var l,h;return n}(n,c);case"Polygon":return function(t,e){if("Feature"===t.type&&null===t.geometry)return!1;if("Feature"===e.type&&null===e.geometry)return!1;var n=Object(r.default)(t),o=Object(r.default)(e);if(!s(n,o))return!1;for(var u=0,c=Object(a.getGeom)(e).coordinates;u<c.length;u++)for(var l=c[u],h=0,f=l;h<f.length;h++){var p=f[h];if(!Object(i.a)(p,t))return!1}return!0}(n,c);case"MultiPoint":return function(t,e){for(var n=0,r=e.coordinates;n<r.length;n++){var o=r[n];if(!Object(i.a)(o,t,{ignoreBoundary:!0}))return!1}return!0}(n,c);default:throw new Error("feature2 "+h+" geometry not supported")}default:throw new Error("feature1 "+l+" geometry not supported")}};var r=n(10),i=n(11),o=n(61),a=n(2);function s(t,e){return!(t[0]>e[0])&&(!(t[2]<e[2])&&(!(t[1]>e[1])&&!(t[3]<e[3])))}function u(t,e){return t[0]===e[0]&&t[1]===e[1]}},function(t,e,n){"use strict";var r=n(35),i=n(80),o=n(11),a=n(2),s=n(0);function u(t,e){for(var n=!1,r=!1,i=t.coordinates.length,o=0;o<i&&!n&&!r;){for(var a=0;a<e.coordinates.length-1;a++){var s=!0;0!==a&&a!==e.coordinates.length-2||(s=!1),h(e.coordinates[a],e.coordinates[a+1],t.coordinates[o],s)?n=!0:r=!0}o++}return n&&r}function c(t,e){var n=Object(i.b)(e);return Object(r.a)(t,n).features.length>0}function l(t,e){for(var n=!1,r=!1,i=t.coordinates.length,a=0;a<i&&(!n||!r);a++)Object(o.a)(Object(s.point)(t.coordinates[a]),e)?n=!0:r=!0;return r&&n}function h(t,e,n,r){var i=n[0]-t[0],o=n[1]-t[1],a=e[0]-t[0],s=e[1]-t[1];return 0==i*s-o*a&&(r?Math.abs(a)>=Math.abs(s)?a>0?t[0]<=n[0]&&n[0]<=e[0]:e[0]<=n[0]&&n[0]<=t[0]:s>0?t[1]<=n[1]&&n[1]<=e[1]:e[1]<=n[1]&&n[1]<=t[1]:Math.abs(a)>=Math.abs(s)?a>0?t[0]<n[0]&&n[0]<e[0]:e[0]<n[0]&&n[0]<t[0]:s>0?t[1]<n[1]&&n[1]<e[1]:e[1]<n[1]&&n[1]<t[1])}e.a=function(t,e){var n=Object(a.getGeom)(t),i=Object(a.getGeom)(e),o=n.type,s=i.type;switch(o){case"MultiPoint":switch(s){case"LineString":return u(n,i);case"Polygon":return l(n,i);default:throw new Error("feature2 "+s+" geometry not supported")}case"LineString":switch(s){case"MultiPoint":return u(i,n);case"LineString":return function(t,e){if(Object(r.a)(t,e).features.length>0)for(var n=0;n<t.coordinates.length-1;n++)for(var i=0;i<e.coordinates.length-1;i++){var o=!0;if(0!==i&&i!==e.coordinates.length-2||(o=!1),h(t.coordinates[n],t.coordinates[n+1],e.coordinates[i],o))return!0}return!1}(n,i);case"Polygon":return c(n,i);default:throw new Error("feature2 "+s+" geometry not supported")}case"Polygon":switch(s){case"MultiPoint":return l(i,n);case"LineString":return c(i,n);default:throw new Error("feature2 "+s+" geometry not supported")}default:throw new Error("feature1 "+o+" geometry not supported")}}},function(t,e,n){"use strict";e.a=function(t,e){var n=Object(i.getGeom)(t),s=Object(i.getGeom)(e),c=n.type,l=s.type;if("MultiPoint"===c&&"MultiPoint"!==l||("LineString"===c||"MultiLineString"===c)&&"LineString"!==l&&"MultiLineString"!==l||("Polygon"===c||"MultiPolygon"===c)&&"Polygon"!==l&&"MultiPolygon"!==l)throw new Error("features must be of the same type");if("Point"===c)throw new Error("Point geometry not supported");if(new u.a({precision:6}).compare(t,e))return!1;var h=0;switch(c){case"MultiPoint":for(var f=0;f<n.coordinates.length;f++)for(var p=0;p<s.coordinates.length;p++){var d=n.coordinates[f],g=s.coordinates[p];if(d[0]===g[0]&&d[1]===g[1])return!0}return!1;case"LineString":case"MultiLineString":Object(r.segmentEach)(t,function(t){Object(r.segmentEach)(e,function(e){Object(o.a)(t,e).features.length&&h++})});break;case"Polygon":case"MultiPolygon":Object(r.segmentEach)(t,function(t){Object(r.segmentEach)(e,function(e){Object(a.a)(t,e).features.length&&h++})})}return h>0};var r=n(1),i=n(2),o=n(128),a=n(35),s=n(144),u=n.n(s)},function(t,e,n){"use strict";var r=n(144),i=n.n(r),o=n(41),a=n(2);e.a=function(t,e){return Object(a.getGeom)(t).type===Object(a.getGeom)(e).type&&new i.a({precision:6}).compare(Object(o.a)(t),Object(o.a)(e))}},function(t,e,n){"use strict";var r=n(9),i=n(8),o=n(1),a=n(0),s=n(294),u=n.n(s);e.a=function(t,e,n){void 0===n&&(n={}),!0!==n.mutate&&(t=Object(r.a)(t)),n.minPoints=n.minPoints||3;var s=new u.a.DBSCAN,c=-1;return s.run(Object(o.coordAll)(t),Object(a.convertLength)(e,n.units),n.minPoints,i.a).forEach(function(e){c++,e.forEach(function(e){var n=t.features[e];n.properties||(n.properties={}),n.properties.cluster=c,n.properties.dbscan="core"})}),s.noise.forEach(function(e){var n=t.features[e];n.properties||(n.properties={}),n.properties.cluster?n.properties.dbscan="edge":n.properties.dbscan="noise"}),t}},function(t,e,n){void 0!==t&&t.exports&&(t.exports={DBSCAN:n(295),KMEANS:n(296),OPTICS:n(297),PriorityQueue:n(146)})},function(t,e){function n(t,e,n,r){this.dataset=[],this.epsilon=1,this.minPts=2,this.distance=this._euclideanDistance,this.clusters=[],this.noise=[],this._visited=[],this._assigned=[],this._datasetLength=0,this._init(t,e,n,r)}n.prototype.run=function(t,e,n,r){this._init(t,e,n,r);for(var i=0;i<this._datasetLength;i++)if(1!==this._visited[i]){this._visited[i]=1;var o=this._regionQuery(i);if(o.length<this.minPts)this.noise.push(i);else{var a=this.clusters.length;this.clusters.push([]),this._addToCluster(i,a),this._expandCluster(a,o)}}return this.clusters},n.prototype._init=function(t,e,n,r){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this.noise=[],this._datasetLength=t.length,this._visited=new Array(this._datasetLength),this._assigned=new Array(this._datasetLength)}e&&(this.epsilon=e),n&&(this.minPts=n),r&&(this.distance=r)},n.prototype._expandCluster=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];if(1!==this._visited[r]){this._visited[r]=1;var i=this._regionQuery(r);i.length>=this.minPts&&(e=this._mergeArrays(e,i))}1!==this._assigned[r]&&this._addToCluster(r,t)}},n.prototype._addToCluster=function(t,e){this.clusters[e].push(t),this._assigned[t]=1},n.prototype._regionQuery=function(t){for(var e=[],n=0;n<this._datasetLength;n++){this.distance(this.dataset[t],this.dataset[n])<this.epsilon&&e.push(n)}return e},n.prototype._mergeArrays=function(t,e){for(var n=e.length,r=0;r<n;r++){var i=e[r];t.indexOf(i)<0&&t.push(i)}return t},n.prototype._euclideanDistance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;)n+=(t[r]-e[r])*(t[r]-e[r]);return Math.sqrt(n)},void 0!==t&&t.exports&&(t.exports=n)},function(t,e){function n(t,e,n){this.k=3,this.dataset=[],this.assignments=[],this.centroids=[],this.init(t,e,n)}n.prototype.init=function(t,e,n){this.assignments=[],this.centroids=[],void 0!==t&&(this.dataset=t),void 0!==e&&(this.k=e),void 0!==n&&(this.distance=n)},n.prototype.run=function(t,e){this.init(t,e);for(var n=this.dataset.length,r=0;r<this.k;r++)this.centroids[r]=this.randomCentroid();for(var i=!0;i;){i=this.assign();for(var o=0;o<this.k;o++){for(var a=new Array(l),s=0,u=0;u<l;u++)a[u]=0;for(var c=0;c<n;c++){var l=this.dataset[c].length;if(o===this.assignments[c]){for(u=0;u<l;u++)a[u]+=this.dataset[c][u];s++}}if(s>0){for(u=0;u<l;u++)a[u]/=s;this.centroids[o]=a}else this.centroids[o]=this.randomCentroid(),i=!0}}return this.getClusters()},n.prototype.randomCentroid=function(){var t,e,n=this.dataset.length-1;do{e=Math.round(Math.random()*n),t=this.dataset[e]}while(this.centroids.indexOf(t)>=0);return t},n.prototype.assign=function(){for(var t,e=!1,n=this.dataset.length,r=0;r<n;r++)(t=this.argmin(this.dataset[r],this.centroids,this.distance))!=this.assignments[r]&&(this.assignments[r]=t,e=!0);return e},n.prototype.getClusters=function(){for(var t,e=new Array(this.k),n=0;n<this.assignments.length;n++)void 0===e[t=this.assignments[n]]&&(e[t]=[]),e[t].push(n);return e},n.prototype.argmin=function(t,e,n){for(var r,i=Number.MAX_VALUE,o=0,a=e.length,s=0;s<a;s++)(r=n(t,e[s]))<i&&(i=r,o=s);return o},n.prototype.distance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;){var i=t[r]-e[r];n+=i*i}return Math.sqrt(n)},void 0!==t&&t.exports&&(t.exports=n)},function(t,e,n){if(void 0!==t&&t.exports)var r=n(146);function i(t,e,n,r){this.epsilon=1,this.minPts=1,this.distance=this._euclideanDistance,this._reachability=[],this._processed=[],this._coreDistance=0,this._orderedList=[],this._init(t,e,n,r)}i.prototype.run=function(t,e,n,i){this._init(t,e,n,i);for(var o=0,a=this.dataset.length;o<a;o++)if(1!==this._processed[o]){this._processed[o]=1,this.clusters.push([o]);var s=this.clusters.length-1;this._orderedList.push(o);var u=new r(null,null,"asc"),c=this._regionQuery(o);void 0!==this._distanceToCore(o)&&(this._updateQueue(o,c,u),this._expandCluster(s,u))}return this.clusters},i.prototype.getReachabilityPlot=function(){for(var t=[],e=0,n=this._orderedList.length;e<n;e++){var r=this._orderedList[e],i=this._reachability[r];t.push([r,i])}return t},i.prototype._init=function(t,e,n,r){if(t){if(!(t instanceof Array))throw Error("Dataset must be of type array, "+typeof t+" given");this.dataset=t,this.clusters=[],this._reachability=new Array(this.dataset.length),this._processed=new Array(this.dataset.length),this._coreDistance=0,this._orderedList=[]}e&&(this.epsilon=e),n&&(this.minPts=n),r&&(this.distance=r)},i.prototype._updateQueue=function(t,e,n){var r=this;this._coreDistance=this._distanceToCore(t),e.forEach(function(e){if(void 0===r._processed[e]){var i=r.distance(r.dataset[t],r.dataset[e]),o=Math.max(r._coreDistance,i);void 0===r._reachability[e]?(r._reachability[e]=o,n.insert(e,o)):o<r._reachability[e]&&(r._reachability[e]=o,n.remove(e),n.insert(e,o))}})},i.prototype._expandCluster=function(t,e){for(var n=e.getElements(),r=0,i=n.length;r<i;r++){var o=n[r];if(void 0===this._processed[o]){var a=this._regionQuery(o);this._processed[o]=1,this.clusters[t].push(o),this._orderedList.push(o),void 0!==this._distanceToCore(o)&&(this._updateQueue(o,a,e),this._expandCluster(t,e))}}},i.prototype._distanceToCore=function(t){for(var e=this.epsilon,n=0;n<e;n++){if(this._regionQuery(t,n).length>=this.minPts)return n}},i.prototype._regionQuery=function(t,e){e=e||this.epsilon;for(var n=[],r=0,i=this.dataset.length;r<i;r++)this.distance(this.dataset[t],this.dataset[r])<e&&n.push(r);return n},i.prototype._euclideanDistance=function(t,e){for(var n=0,r=Math.min(t.length,e.length);r--;)n+=(t[r]-e[r])*(t[r]-e[r]);return Math.sqrt(n)},void 0!==t&&t.exports&&(t.exports=i)},function(t,e,n){"use strict";var r=n(9),i=n(1),o=n(299),a=n.n(o);e.a=function(t,e){void 0===e&&(e={});var n=t.features.length;e.numberOfClusters=e.numberOfClusters||Math.round(Math.sqrt(n/2)),e.numberOfClusters>n&&(e.numberOfClusters=n),!0!==e.mutate&&(t=Object(r.a)(t));var o=Object(i.coordAll)(t),s=o.slice(0,e.numberOfClusters),u=a()(o,e.numberOfClusters,s),c={};return u.centroids.forEach(function(t,e){c[e]=t}),Object(i.featureEach)(t,function(t,e){var n=u.idxs[e];t.properties.cluster=n,t.properties.centroid=c[n]}),t}},function(t,e,n){"use strict";var r=n(147),i=n(300),o=r.eudist,a=(r.mandist,r.dist,i.kmrand),s=i.kmpp,u=1e4;function c(t,e,n){n=n||[];for(var r=0;r<t;r++)n[r]=e;return n}t.exports=function(t,e,n,r){var i=[],l=[],h=[],f=[],p=!1,d=r||u,g=t.length,y=t[0].length,v=y>0,m=[];if(n)i="kmrand"==n?a(t,e):"kmpp"==n?s(t,e):n;else for(var _={};i.length<e;){var b=Math.floor(Math.random()*g);_[b]||(_[b]=!0,i.push(t[b]))}do{c(e,0,m);for(var w=0;w<g;w++){for(var E=1/0,x=0,O=0;O<e;O++)(f=v?o(t[w],i[O]):Math.abs(t[w]-i[O]))<=E&&(E=f,x=O);h[w]=x,m[x]++}for(var M=[],S=(l=[],0);S<e;S++)M[S]=v?c(y,0,M[S]):0,l[S]=i[S];if(v){for(var P=0;P<e;P++)i[P]=[];for(var C=0;C<g;C++)for(var T=M[h[C]],I=t[C],L=0;L<y;L++)T[L]+=I[L];p=!0;for(var A=0;A<e;A++){for(var N=i[A],k=M[A],j=l[A],R=m[A],D=0;D<y;D++)N[D]=k[D]/R||0;if(p)for(var F=0;F<y;F++)if(j[F]!=N[F]){p=!1;break}}}else{for(var z=0;z<g;z++)M[h[z]]+=t[z];for(var B=0;B<e;B++)i[B]=M[B]/m[B]||0;p=!0;for(var q=0;q<e;q++)if(l[q]!=i[q]){p=!1;break}}p=p||--d<=0}while(!p);return{it:u-d,k:e,idxs:h,centroids:i}}},function(t,e,n){"use strict";var r=n(147),i=r.eudist,o=r.dist;t.exports={kmrand:function(t,e){for(var n={},r=[],i=e<<2,o=t.length,a=t[0].length>0;r.length<e&&i-- >0;){var s=t[Math.floor(Math.random()*o)],u=a?s.join("_"):""+s;n[u]||(n[u]=!0,r.push(s))}if(r.length<e)throw new Error("Error initializating clusters");return r},kmpp:function(t,e){var n=t[0].length?i:o,r=[],a=t.length,s=t[0].length>0,u=t[Math.floor(Math.random()*a)];s&&u.join("_");for(r.push(u);r.length<e;){for(var c=[],l=r.length,h=0,f=[],p=0;p<a;p++){for(var d=1/0,g=0;g<l;g++){var y=n(t[p],r[g]);y<=d&&(d=y)}c[p]=d}for(var v=0;v<a;v++)h+=c[v];for(var m=0;m<a;m++)f[m]={i:m,v:t[m],pr:c[m]/h,cs:0};f.sort(function(t,e){return t.pr-e.pr}),f[0].cs=f[0].pr;for(var _=1;_<a;_++)f[_].cs=f[_-1].cs+f[_].pr;for(var b=Math.random(),w=0;w<a-1&&f[w++].cs<b;);r.push(f[w-1].v)}return r}}},function(t,e,n){"use strict";var r=n(41),i=n(42),o=n(44),a=n(0);function s(t,e){return Object(a.bearingToAzimuth)(Object(o.a)(t[0],t[1]))===Object(a.bearingToAzimuth)(Object(o.a)(e[0],e[1]))}function u(t,e){if(t.geometry&&t.geometry.type)return t.geometry.type;if(t.type)return t.type;throw new Error("Invalid GeoJSON object for "+e)}e.a=function(t,e){if(!t)throw new Error("line1 is required");if(!e)throw new Error("line2 is required");if("LineString"!==u(t,"line1"))throw new Error("line1 must be a LineString");if("LineString"!==u(e,"line2"))throw new Error("line2 must be a LineString");for(var n=Object(i.a)(Object(r.a)(t)).features,o=Object(i.a)(Object(r.a)(e)).features,a=0;a<n.length;a++){var c=n[a].geometry.coordinates;if(!o[a])break;if(!s(c,o[a].geometry.coordinates))return!1}return!0}},function(t,e,n){"use strict";var r=n(10),i=n(11),o=n(8),a=n(141),s=n(41),u=n(75),c=n(2),l=n(0);function h(t){for(var e=t,n=[];e.parent;)n.unshift(e),e=e.parent;return n}var f={search:function(t,e,n,r){t.cleanDirty();var i=(r=r||{}).heuristic||f.heuristics.manhattan,o=r.closest||!1,a=new g(function(t){return t.f}),s=e;for(e.h=i(e,n),a.push(e);a.size()>0;){var u=a.pop();if(u===n)return h(u);u.closed=!0;for(var c=t.neighbors(u),l=0,p=c.length;l<p;++l){var d=c[l];if(!d.closed&&!d.isWall()){var y=u.g+d.getCost(u),v=d.visited;(!v||y<d.g)&&(d.visited=!0,d.parent=u,d.h=d.h||i(d,n),d.g=y,d.f=d.g+d.h,t.markDirty(d),o&&(d.h<s.h||d.h===s.h&&d.g<s.g)&&(s=d),v?a.rescoreElement(d):a.push(d))}}}return o?h(s):[]},heuristics:{manhattan:function(t,e){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},diagonal:function(t,e){var n=Math.sqrt(2),r=Math.abs(e.x-t.x),i=Math.abs(e.y-t.y);return 1*(r+i)+(n-2)*Math.min(r,i)}},cleanNode:function(t){t.f=0,t.g=0,t.h=0,t.visited=!1,t.closed=!1,t.parent=null}};function p(t,e){e=e||{},this.nodes=[],this.diagonal=!!e.diagonal,this.grid=[];for(var n=0;n<t.length;n++){this.grid[n]=[];for(var r=0,i=t[n];r<i.length;r++){var o=new d(n,r,i[r]);this.grid[n][r]=o,this.nodes.push(o)}}this.init()}function d(t,e,n){this.x=t,this.y=e,this.weight=n}function g(t){this.content=[],this.scoreFunction=t}function y(t,e){for(var n=0;n<e.features.length;n++)if(Object(i.a)(t,e.features[n]))return!0;return!1}p.prototype.init=function(){this.dirtyNodes=[];for(var t=0;t<this.nodes.length;t++)f.cleanNode(this.nodes[t])},p.prototype.cleanDirty=function(){for(var t=0;t<this.dirtyNodes.length;t++)f.cleanNode(this.dirtyNodes[t]);this.dirtyNodes=[]},p.prototype.markDirty=function(t){this.dirtyNodes.push(t)},p.prototype.neighbors=function(t){var e=[],n=t.x,r=t.y,i=this.grid;return i[n-1]&&i[n-1][r]&&e.push(i[n-1][r]),i[n+1]&&i[n+1][r]&&e.push(i[n+1][r]),i[n]&&i[n][r-1]&&e.push(i[n][r-1]),i[n]&&i[n][r+1]&&e.push(i[n][r+1]),this.diagonal&&(i[n-1]&&i[n-1][r-1]&&e.push(i[n-1][r-1]),i[n+1]&&i[n+1][r-1]&&e.push(i[n+1][r-1]),i[n-1]&&i[n-1][r+1]&&e.push(i[n-1][r+1]),i[n+1]&&i[n+1][r+1]&&e.push(i[n+1][r+1])),e},p.prototype.toString=function(){for(var t,e,n,r,i=[],o=this.grid,a=0,s=o.length;a<s;a++){for(t=[],n=0,r=(e=o[a]).length;n<r;n++)t.push(e[n].weight);i.push(t.join(" "))}return i.join("\n")},d.prototype.toString=function(){return"["+this.x+" "+this.y+"]"},d.prototype.getCost=function(t){return t&&t.x!==this.x&&t.y!==this.y?1.41421*this.weight:this.weight},d.prototype.isWall=function(){return 0===this.weight},g.prototype={push:function(t){this.content.push(t),this.sinkDown(this.content.length-1)},pop:function(){var t=this.content[0],e=this.content.pop();return this.content.length>0&&(this.content[0]=e,this.bubbleUp(0)),t},remove:function(t){var e=this.content.indexOf(t),n=this.content.pop();e!==this.content.length-1&&(this.content[e]=n,this.scoreFunction(n)<this.scoreFunction(t)?this.sinkDown(e):this.bubbleUp(e))},size:function(){return this.content.length},rescoreElement:function(t){this.sinkDown(this.content.indexOf(t))},sinkDown:function(t){for(var e=this.content[t];t>0;){var n=(t+1>>1)-1,r=this.content[n];if(!(this.scoreFunction(e)<this.scoreFunction(r)))break;this.content[n]=e,this.content[t]=r,t=n}},bubbleUp:function(t){for(var e=this.content.length,n=this.content[t],r=this.scoreFunction(n);;){var i,o=t+1<<1,a=o-1,s=null;if(a<e){var u=this.content[a];(i=this.scoreFunction(u))<r&&(s=a)}if(o<e){var c=this.content[o];this.scoreFunction(c)<(null===s?r:i)&&(s=o)}if(null===s)break;this.content[t]=this.content[s],this.content[s]=n,t=s}}},e.a=function(t,e,n){if(n=n||{},!Object(l.isObject)(n))throw new Error("options is invalid");var i=n.resolution,h=n.minDistance,d=n.obstacles||Object(l.featureCollection)([]);if(!t)throw new Error("start is required");if(!e)throw new Error("end is required");if(i&&!Object(l.isNumber)(i)||i<=0)throw new Error("options.resolution must be a number, greater than 0");if(h)throw new Error("options.minDistance is not yet implemented");var g=Object(c.getCoord)(t),v=Object(c.getCoord)(e);switch(t=Object(l.point)(g),e=Object(l.point)(v),Object(c.getType)(d)){case"FeatureCollection":if(0===d.features.length)return Object(l.lineString)([g,v]);break;case"Polygon":d=Object(l.featureCollection)([Object(l.feature)(Object(c.getGeom)(d))]);break;default:throw new Error("invalid obstacles")}var m=d;m.features.push(t),m.features.push(e);var _=Object(r.default)(Object(a.a)(Object(u.a)(Object(r.default)(m)),1.15));i||(i=Object(o.a)([_[0],_[1]],[_[2],_[1]],n)/100),m.features.pop(),m.features.pop();for(var b=_[0],w=_[1],E=_[2],x=_[3],O=i/Object(o.a)([b,w],[E,w],n)*(E-b),M=i/Object(o.a)([b,w],[b,x],n)*(x-w),S=E-b,P=x-w,C=(S-Math.floor(S/O)*O)/2,T=[],I=[],L=[],A=[],N=1/0,k=1/0,j=x-(P-Math.floor(P/M)*M)/2,R=0;j>=w;){for(var D=[],F=[],z=b+C,B=0;z<=E;){var q=Object(l.point)([z,j]),G=y(q,d);D.push(G?0:1),F.push(z+"|"+j);var U=Object(o.a)(q,t);!G&&U<N&&(N=U,L={x:B,y:R});var V=Object(o.a)(q,e);!G&&V<k&&(k=V,A={x:B,y:R}),z+=O,B++}I.push(D),T.push(F),j-=M,R++}var J=new p(I,{diagonal:!0}),H=J.grid[L.y][L.x],Y=J.grid[A.y][A.x],X=[g];return f.search(J,H,Y).forEach(function(t){var e=T[t.x][t.y].split("|");X.push([+e[0],+e[1]])}),X.push(v),Object(s.a)(Object(l.lineString)(X))}},function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(304);function a(t){return(t=t.slice()).push(t[0]),Object(r.polygon)([t])}e.a=function(t,e){if(e=e||{},!Object(r.isObject)(e))throw new Error("options is invalid");var n=e.bbox||[-180,-85,180,85];if(!t)throw new Error("points is required");if(!Array.isArray(n))throw new Error("bbox is invalid");return Object(i.collectionOf)(t,"Point","points"),Object(r.featureCollection)(Object(o.a)().x(function(t){return t.geometry.coordinates[0]}).y(function(t){return t.geometry.coordinates[1]}).extent([[n[0],n[1]],[n[2],n[3]]]).polygons(t.features).map(a))}},function(t,e,n){"use strict";var r=n(305);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";var r=n(306),i=n(307),o=n(46);e.a=function(){var t=i.a,e=i.b,n=null;function a(r){return new o.d(r.map(function(n,i){var a=[Math.round(t(n,i,r)/o.f)*o.f,Math.round(e(n,i,r)/o.f)*o.f];return a.index=i,a.data=n,a}),n)}return a.polygons=function(t){return a(t).polygons()},a.links=function(t){return a(t).links()},a.triangles=function(t){return a(t).triangles()},a.x=function(e){return arguments.length?(t="function"==typeof e?e:Object(r.a)(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:Object(r.a)(+t),a):e},a.extent=function(t){return arguments.length?(n=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],a):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},a.size=function(t){return arguments.length?(n=null==t?null:[[0,0],[+t[0],+t[1]]],a):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},a}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t){return t[0]},e.b=function(t){return t[1]}},function(t,e,n){"use strict";e.b=function(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],u=t.P,c=t.N,h=[t];l(t);var f=u;for(;f.circle&&Math.abs(n-f.circle.x)<s.f&&Math.abs(r-f.circle.cy)<s.f;)u=f.P,h.unshift(f),l(f),f=u;h.unshift(f),Object(o.b)(f);var p=c;for(;p.circle&&Math.abs(n-p.circle.x)<s.f&&Math.abs(r-p.circle.cy)<s.f;)c=p.N,h.push(p),l(p),p=c;h.push(p),Object(o.b)(p);var d,g=h.length;for(d=1;d<g;++d)p=h[d],f=h[d-1],Object(a.d)(p.edge,f.site,p.site,i);f=h[0],(p=h[g-1]).edge=Object(a.c)(f.site,p.site,null,i),Object(o.a)(f),Object(o.a)(p)},e.a=function(t){var e,n,r,u,l=t[0],p=t[1],d=s.a._;for(;d;)if((r=h(d,p)-l)>s.f)d=d.L;else{if(!((u=l-f(d,p))>s.f)){r>-s.f?(e=d.P,n=d):u>-s.f?(e=d,n=d.N):e=n=d;break}if(!d.R){e=d;break}d=d.R}Object(i.c)(t);var g=c(t);if(s.a.insert(e,g),!e&&!n)return;if(e===n)return Object(o.b)(e),n=c(e.site),s.a.insert(g,n),g.edge=n.edge=Object(a.c)(e.site,g.site),Object(o.a)(e),void Object(o.a)(n);if(!n)return void(g.edge=Object(a.c)(e.site,g.site));Object(o.b)(e),Object(o.b)(n);var y=e.site,v=y[0],m=y[1],_=t[0]-v,b=t[1]-m,w=n.site,E=w[0]-v,x=w[1]-m,O=2*(_*x-b*E),M=_*_+b*b,S=E*E+x*x,P=[(x*M-b*S)/O+v,(_*S-E*M)/O+m];Object(a.d)(n.edge,y,w,P),g.edge=Object(a.c)(y,t,null,P),n.edge=Object(a.c)(t,w,null,P),Object(o.a)(e),Object(o.a)(n)};var r=n(85),i=n(148),o=n(149),a=n(86),s=n(46),u=[];function c(t){var e=u.pop()||new function(){Object(r.a)(this),this.edge=this.site=this.circle=null};return e.site=t,e}function l(t){Object(o.b)(t),s.a.remove(t),u.push(t),Object(r.a)(t)}function h(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(n=a.site)[0],u=n[1],c=u-e;if(!c)return s;var l=s-r,h=1/o-1/c,f=l/c;return h?(-f+Math.sqrt(f*f-2*h*(l*l/(-2*c)-u+c/2+i-o/2)))/h+r:(r+s)/2}function f(t,e){var n=t.N;if(n)return h(n,e);var r=t.site;return r[1]===e?r[0]:1/0}},function(t,e,n){"use strict";var r=n(87),i=n(8),o=n(28),a=n(0),s=n(1);e.a=function(t,e){if(void 0===e&&(e={}),e=e||{},!Object(a.isObject)(e))throw new Error("options is invalid");var n=e.counter||10;if(!Object(a.isNumber)(n))throw new Error("counter must be a number");var u=e.weight,c=Object(r.a)(t,{weight:e.weight}),l=Object(a.featureCollection)([]);Object(s.featureEach)(t,function(t){var e;l.features.push(Object(o.a)(t,{properties:{weight:null===(e=t.properties)||void 0===e?void 0:e[u]}}))});var h={tolerance:e.tolerance,medianCandidates:[]};return function t(e,n,r,o,u){var c=o.tolerance||.001,l=0,h=0,f=0,p=0;if(Object(s.featureEach)(r,function(t){var n,r=null===(n=t.properties)||void 0===n?void 0:n.weight,o=void 0===r||null===r?1:r;if(o=Number(o),!Object(a.isNumber)(o))throw new Error("weight value must be a number");if(o>0){p+=1;var s=o*Object(i.a)(t,e);0===s&&(s=1);var u=o/s;l+=t.geometry.coordinates[0]*u,h+=t.geometry.coordinates[1]*u,f+=u}}),p<1)throw new Error("no features to measure");var d=l/f,g=h/f;return 1===p||0===u||Math.abs(d-n[0])<c&&Math.abs(g-n[1])<c?Object(a.point)([d,g],{medianCandidates:o.medianCandidates}):(o.medianCandidates.push([d,g]),t([d,g],e,r,o,u-1))}(c.geometry.coordinates,[0,0],l,h,n)}},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=n(87),s=n(109),u=n(150);function c(t,e){return{x:t[0]-e[0],y:t[1]-e[1]}}e.a=function(t,e){if(e=e||{},!Object(o.isObject)(e))throw new Error("options is invalid");var n=e.steps||64,l=e.weight,h=e.properties||{};if(!Object(o.isNumber)(n))throw new Error("steps must be a number");if(!Object(o.isObject)(h))throw new Error("properties must be a number");var f=Object(r.coordAll)(t).length,p=Object(a.a)(t,{weight:l}),d=0,g=0,y=0;Object(r.featureEach)(t,function(t){var e=t.properties[l]||1,n=c(Object(i.getCoords)(t),Object(i.getCoords)(p));d+=Math.pow(n.x,2)*e,g+=Math.pow(n.y,2)*e,y+=n.x*n.y*e});var v=d-g,m=Math.sqrt(Math.pow(v,2)+4*Math.pow(y,2)),_=2*y,b=Math.atan((v+m)/_),w=180*b/Math.PI,E=0,x=0,O=0;Object(r.featureEach)(t,function(t){var e=t.properties[l]||1,n=c(Object(i.getCoords)(t),Object(i.getCoords)(p));E+=Math.pow(n.x*Math.cos(b)-n.y*Math.sin(b),2)*e,x+=Math.pow(n.x*Math.sin(b)+n.y*Math.cos(b),2)*e,O+=e});var M=Math.sqrt(2*E/O),S=Math.sqrt(2*x/O),P=Object(u.a)(p,M,S,{units:"degrees",angle:w,steps:n,properties:h}),C=Object(s.a)(t,Object(o.featureCollection)([P])),T={meanCenterCoordinates:Object(i.getCoords)(p),semiMajorAxis:M,semiMinorAxis:S,numberOfFeatures:f,angle:w,percentageWithinEllipse:100*Object(r.coordAll)(C).length/f};return P.properties.standardDeviationalEllipse=T,P}},function(t,e,n){"use strict";var r=n(34),i=n(0),o=n(44);e.a=function(t,e,n,a){if(void 0===a&&(a={}),!Object(i.isObject)(a))throw new Error("options is invalid");if(!t)throw new Error("startPoint is required");if(!e)throw new Error("midPoint is required");if(!n)throw new Error("endPoint is required");var s=t,u=e,c=n,l=Object(i.bearingToAzimuth)(!0!==a.mercator?Object(r.a)(s,u):Object(o.a)(s,u)),h=Object(i.bearingToAzimuth)(!0!==a.mercator?Object(r.a)(c,u):Object(o.a)(c,u)),f=Math.abs(l-h);return!0===a.explementary?360-f:f}},function(t,e,n){"use strict";var r=n(1),i=n(0);function o(t,e){var n=0,i=0;Object(r.coordEach)(t,function(r,o,a,s,u){u>n&&(n=u,i=o,e.push([]));var c=o-i,l=t.coordinates[u][c+1],h=r[0],f=r[1],p=l[0],d=l[1];e[u].push([.75*h+.25*p,.75*f+.25*d]),e[u].push([.25*h+.75*p,.25*f+.75*d])},!0),e.forEach(function(t){t.push(t[0])})}function a(t,e){var n=0,i=0,o=0;Object(r.coordEach)(t,function(r,a,s,u,c){u>o&&(o=u,i=a,e.push([[]])),c>n&&(n=c,i=a,e[u].push([]));var l=a-i,h=t.coordinates[u][c][l+1],f=r[0],p=r[1],d=h[0],g=h[1];e[u][c].push([.75*f+.25*d,.75*p+.25*g]),e[u][c].push([.25*f+.75*d,.25*p+.75*g])},!0),e.forEach(function(t){t.forEach(function(t){t.push(t[0])})})}e.a=function(t,e){var n=[],s=e.iterations||1;if(!t)throw new Error("inputPolys is required");return Object(r.geomEach)(t,function(t,e,r){var u,c,l;switch(t.type){case"Polygon":u=[[]];for(var h=0;h<s;h++)l=[[]],c=t,h>0&&(c=Object(i.polygon)(u).geometry),o(c,l),u=l.slice(0);n.push(Object(i.polygon)(u,r));break;case"MultiPolygon":u=[[[]]];for(var f=0;f<s;f++)l=[[[]]],c=t,f>0&&(c=Object(i.multiPolygon)(u).geometry),a(c,l),u=l.slice(0);n.push(Object(i.multiPolygon)(u,r));break;default:throw new Error("geometry is invalid, must be Polygon or MultiPolygon")}}),Object(i.featureCollection)(n)}},function(t,e,n){"use strict";var r=n(151),i=n(1);function o(t){for(var e=0,n=0,r=t;n<r.length;n++){e+=r[n]}return e/t.length}e.a=function(t,e){var n=e.inputField,a=e.threshold||1e5,s=e.p||2,u=e.binary||!1,c=e.alpha||-1,l=e.standardization||!0,h=Object(r.a)(t,{alpha:c,binary:u,p:s,standardization:l,threshold:a}),f=[];Object(i.featureEach)(t,function(t){var e=t.properties||{};f.push(e[n])});for(var p=o(f),d=function(t){for(var e=o(t),n=0,r=0,i=t;r<i.length;r++){var a=i[r];n+=Math.pow(a-e,2)}return n/t.length}(f),g=0,y=0,v=0,m=0,_=h.length,b=0;b<_;b++){for(var w=0,E=0;E<_;E++)g+=h[b][E]*(f[b]-p)*(f[E]-p),y+=h[b][E],v+=Math.pow(h[b][E]+h[E][b],2),w+=h[b][E]+h[E][b];m+=Math.pow(w,2)}var x=g/y/d,O=-1/(_-1),M=(_*_*(v*=.5)-_*m+y*y*3)/((_-1)*(_+1)*(y*y))-O*O,S=Math.sqrt(M);return{expectedMoranIndex:O,moranIndex:x,stdNorm:S,zNorm:(x-O)/S}}},function(t,e,n){"use strict";var r=n(47),i=n(0),o=n(2);e.a=function(t,e){var n=Object(o.getGeom)(t),a=Object(o.getGeom)(e),s=t.properties||{},u=r.a.difference(n.coordinates,a.coordinates);return 0===u.length?null:1===u.length?Object(i.polygon)(u[0],s):Object(i.multiPolygon)(u,s)}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],l=!1,h=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):h=-1,c.length&&p())}function p(){if(!l){var t=s(f);l=!0;for(var e=c.length;e;){for(u=c,c=[];++h<e;)u&&u[h].run();h=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new d(t,e)),1!==c.length||l||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";var r=function(){return function(t,e){this.next=null,this.key=t,this.data=e,this.left=null,this.right=null}}();function i(t,e){return t>e?1:t<e?-1:0}function o(t,e,n){for(var i=new r(null,null),o=i,a=i;;){var s=n(t,e.key);if(s<0){if(null===e.left)break;if(n(t,e.left.key)<0){var u=e.left;if(e.left=u.right,u.right=e,null===(e=u).left)break}a.left=e,a=e,e=e.left}else{if(!(s>0))break;if(null===e.right)break;if(n(t,e.right.key)>0){u=e.right;if(e.right=u.left,u.left=e,null===(e=u).right)break}o.right=e,o=e,e=e.right}}return o.right=e.left,a.left=e.right,e.left=i.right,e.right=i.left,e}function a(t,e,n,i){var a=new r(t,e);if(null===n)return a.left=a.right=null,a;var s=i(t,(n=o(t,n,i)).key);return s<0?(a.left=n.left,a.right=n,n.left=null):s>=0&&(a.right=n.right,a.left=n,n.right=null),a}function s(t,e,n){var r=null,i=null;if(e){var a=n((e=o(t,e,n)).key,t);0===a?(r=e.left,i=e.right):a<0?(i=e.right,e.right=null,r=e):(r=e.left,e.left=null,i=e)}return{left:r,right:i}}var u=function(){function t(t){void 0===t&&(t=i),this._root=null,this._size=0,this._comparator=t}return t.prototype.insert=function(t,e){return this._size++,this._root=a(t,e,this._root,this._comparator)},t.prototype.add=function(t,e){var n=new r(t,e);null===this._root&&(n.left=n.right=null,this._size++,this._root=n);var i=this._comparator,a=o(t,this._root,i),s=i(t,a.key);return 0===s?this._root=a:(s<0?(n.left=a.left,n.right=a,a.left=null):s>0&&(n.right=a.right,n.left=a,a.right=null),this._size++,this._root=n),this._root},t.prototype.remove=function(t){this._root=this._remove(t,this._root,this._comparator)},t.prototype._remove=function(t,e,n){var r;return null===e?null:0===n(t,(e=o(t,e,n)).key)?(null===e.left?r=e.right:(r=o(t,e.left,n)).right=e.right,this._size--,r):e},t.prototype.pop=function(){var t=this._root;if(t){for(;t.left;)t=t.left;return this._root=o(t.key,this._root,this._comparator),this._root=this._remove(t.key,this._root,this._comparator),{key:t.key,data:t.data}}return null},t.prototype.findStatic=function(t){for(var e=this._root,n=this._comparator;e;){var r=n(t,e.key);if(0===r)return e;e=r<0?e.left:e.right}return null},t.prototype.find=function(t){return this._root&&(this._root=o(t,this._root,this._comparator),0!==this._comparator(t,this._root.key))?null:this._root},t.prototype.contains=function(t){for(var e=this._root,n=this._comparator;e;){var r=n(t,e.key);if(0===r)return!0;e=r<0?e.left:e.right}return!1},t.prototype.forEach=function(t,e){for(var n=this._root,r=[],i=!1;!i;)null!==n?(r.push(n),n=n.left):0!==r.length?(n=r.pop(),t.call(e,n),n=n.right):i=!0;return this},t.prototype.range=function(t,e,n,r){for(var i=[],o=this._comparator,a=this._root;0!==i.length||a;)if(a)i.push(a),a=a.left;else{if(o((a=i.pop()).key,e)>0)break;if(o(a.key,t)>=0&&n.call(r,a))return this;a=a.right}return this},t.prototype.keys=function(){var t=[];return this.forEach(function(e){var n=e.key;return t.push(n)}),t},t.prototype.values=function(){var t=[];return this.forEach(function(e){var n=e.data;return t.push(n)}),t},t.prototype.min=function(){return this._root?this.minNode(this._root).key:null},t.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},t.prototype.minNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.left;)t=t.left;return t},t.prototype.maxNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.right;)t=t.right;return t},t.prototype.at=function(t){for(var e=this._root,n=!1,r=0,i=[];!n;)if(e)i.push(e),e=e.left;else if(i.length>0){if(e=i.pop(),r===t)return e;r++,e=e.right}else n=!0;return null},t.prototype.next=function(t){var e=this._root,n=null;if(t.right){for(n=t.right;n.left;)n=n.left;return n}for(var r=this._comparator;e;){var i=r(t.key,e.key);if(0===i)break;i<0?(n=e,e=e.left):e=e.right}return n},t.prototype.prev=function(t){var e=this._root,n=null;if(null!==t.left){for(n=t.left;n.right;)n=n.right;return n}for(var r=this._comparator;e;){var i=r(t.key,e.key);if(0===i)break;i<0?e=e.left:(n=e,e=e.right)}return n},t.prototype.clear=function(){return this._root=null,this._size=0,this},t.prototype.toList=function(){return function(t){var e=t,n=[],i=!1,o=new r(null,null),a=o;for(;!i;)e?(n.push(e),e=e.left):n.length>0?e=(e=a=a.next=n.pop()).right:i=!0;return a.next=null,o.next}(this._root)},t.prototype.load=function(t,e,n){void 0===e&&(e=[]),void 0===n&&(n=!1);var i=t.length,o=this._comparator;if(n&&function t(e,n,r,i,o){if(r>=i)return;var a=e[r+i>>1];var s=r-1;var u=i+1;for(;;){do{s++}while(o(e[s],a)<0);do{u--}while(o(e[u],a)>0);if(s>=u)break;var c=e[s];e[s]=e[u],e[u]=c,c=n[s],n[s]=n[u],n[u]=c}t(e,n,r,u,o);t(e,n,u+1,i,o)}(t,e,0,i-1,o),null===this._root)this._root=function t(e,n,i,o){var a=o-i;if(a>0){var s=i+Math.floor(a/2),u=e[s],c=n[s],l=new r(u,c);return l.left=t(e,n,i,s),l.right=t(e,n,s+1,o),l}return null}(t,e,0,i),this._size=i;else{var a=function(t,e,n){var i=new r(null,null),o=i,a=t,s=e;for(;null!==a&&null!==s;)n(a.key,s.key)<0?(o.next=a,a=a.next):(o.next=s,s=s.next),o=o.next;null!==a?o.next=a:null!==s&&(o.next=s);return i.next}(this.toList(),function(t,e){for(var n=new r(null,null),i=n,o=0;o<t.length;o++)i=i.next=new r(t[o],e[o]);return i.next=null,n.next}(t,e),o);i=this._size+i,this._root=function t(e,n,r){var i=r-n;if(i>0){var o=n+Math.floor(i/2),a=t(e,n,o),s=e.head;return s.left=a,e.head=e.head.next,s.right=t(e,o+1,r),s}return null}({head:a},0,i)}return this},t.prototype.isEmpty=function(){return null===this._root},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),t.prototype.toString=function(t){void 0===t&&(t=function(t){return String(t.key)});var e=[];return function t(e,n,r,i,o){if(e){i(n+(r?"└── ":"├── ")+o(e)+"\n");var a=n+(r?" ":"│ ");e.left&&t(e.left,a,!1,i,o),e.right&&t(e.right,a,!0,i,o)}}(this._root,"",!0,function(t){return e.push(t)},t),e.join("")},t.prototype.update=function(t,e,n){var r=this._comparator,i=s(t,this._root,r),u=i.left,c=i.right;r(t,e)<0?c=a(e,n,c,r):u=a(e,n,u,r),this._root=function(t,e,n){return null===e?t:null===t?e:((e=o(t.key,e,n)).left=t,e)}(u,c,r)},t.prototype.split=function(t){return s(t,this._root,this._comparator)},t}();e.a=u},function(t,e,n){"use strict";var r=n(57),i=n(318),o=n(1),a=n(319),s=n(0);function u(t,e,n,c){var l=t.properties||{},h="Feature"===t.type?t.geometry:t;if("GeometryCollection"===h.type){var f=[];return Object(o.geomEach)(t,function(t){var r=u(t,e,n,c);r&&f.push(r)}),Object(s.featureCollection)(f)}var p=function(t){var e=Object(r.a)(t).geometry.coordinates,n=[-e[0],-e[1]];return Object(a.a)().rotate(n).scale(s.earthRadius)}(h),d={type:h.type,coordinates:function t(e,n){if("object"!=typeof e[0])return n(e);return e.map(function(e){return t(e,n)})}(h.coordinates,p)},g=(new i.b).read(d),y=Object(s.radiansToLength)(Object(s.lengthToRadians)(e,n),"meters"),v=i.a.bufferOp(g,y,c);if(!function t(e){if(Array.isArray(e[0]))return t(e[0]);return isNaN(e[0])}((v=(new i.c).write(v)).coordinates)){var m={type:v.type,coordinates:function t(e,n){if("object"!=typeof e[0])return n.invert(e);return e.map(function(e){return t(e,n)})}(v.coordinates,p)};return Object(s.feature)(m,l)}}e.a=function(t,e,n){var r=(n=n||{}).units||"kilometers",i=n.steps||8;if(!t)throw new Error("geojson is required");if("object"!=typeof n)throw new Error("options must be an object");if("number"!=typeof i)throw new Error("steps must be an number");if(void 0===e)throw new Error("radius is required");if(i<=0)throw new Error("steps must be greater than 0");var a=[];switch(t.type){case"GeometryCollection":return Object(o.geomEach)(t,function(t){var n=u(t,e,r,i);n&&a.push(n)}),Object(s.featureCollection)(a);case"FeatureCollection":return Object(o.featureEach)(t,function(t){var n=u(t,e,r,i);n&&Object(o.featureEach)(n,function(t){t&&a.push(t)})}),Object(s.featureCollection)(a)}return u(t,e,r,i)}},function(t,e,n){"use strict";n.d(e,"b",function(){return xe}),n.d(e,"c",function(){return Oe}),n.d(e,"a",function(){return vr}),"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(t){if(void 0===this||null===this)throw new TypeError(this+" is not an object");var e=Object(this),n=Math.max(Math.min(e.length,9007199254740991),0)||0,r=1 in arguments&&parseInt(Number(arguments[1]),10)||0;r=r<0?Math.max(n+r,0):Math.min(r,n);var i=2 in arguments&&void 0!==arguments[2]?parseInt(Number(arguments[2]),10)||0:n;for(i=i<0?Math.max(n+arguments[2],0):Math.min(i,n);r<i;)e[r]=t,++r;return e},writable:!0}),Number.isFinite=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Number.parseFloat=Number.parseFloat||parseFloat,Number.isNaN=Number.isNaN||function(t){return t!=t},Math.trunc=Math.trunc||function(t){return t<0?Math.ceil(t):Math.floor(t)};var r=function(){};r.prototype.interfaces_=function(){return[]},r.prototype.getClass=function(){return r},r.prototype.equalsWithTolerance=function(t,e,n){return Math.abs(t-e)<=n};var i=function(t){function e(e){t.call(this,e),this.name="IllegalArgumentException",this.message=e,this.stack=(new t).stack}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),o=function(){},a={MAX_VALUE:{configurable:!0}};o.isNaN=function(t){return Number.isNaN(t)},o.doubleToLongBits=function(t){return t},o.longBitsToDouble=function(t){return t},o.isInfinite=function(t){return!Number.isFinite(t)},a.MAX_VALUE.get=function(){return Number.MAX_VALUE},Object.defineProperties(o,a);var s=function(){},u=function(){},c=function(){};function l(){}var h=function t(){if(this.x=null,this.y=null,this.z=null,0===arguments.length)this.x=0,this.y=0,this.z=t.NULL_ORDINATE;else if(1===arguments.length){var e=arguments[0];this.x=e.x,this.y=e.y,this.z=e.z}else 2===arguments.length?(this.x=arguments[0],this.y=arguments[1],this.z=t.NULL_ORDINATE):3===arguments.length&&(this.x=arguments[0],this.y=arguments[1],this.z=arguments[2])},f={DimensionalComparator:{configurable:!0},serialVersionUID:{configurable:!0},NULL_ORDINATE:{configurable:!0},X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0}};h.prototype.setOrdinate=function(t,e){switch(t){case h.X:this.x=e;break;case h.Y:this.y=e;break;case h.Z:this.z=e;break;default:throw new i("Invalid ordinate index: "+t)}},h.prototype.equals2D=function(){if(1===arguments.length){var t=arguments[0];return this.x===t.x&&this.y===t.y}if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!r.equalsWithTolerance(this.x,e.x,n)&&!!r.equalsWithTolerance(this.y,e.y,n)}},h.prototype.getOrdinate=function(t){switch(t){case h.X:return this.x;case h.Y:return this.y;case h.Z:return this.z}throw new i("Invalid ordinate index: "+t)},h.prototype.equals3D=function(t){return this.x===t.x&&this.y===t.y&&(this.z===t.z||o.isNaN(this.z))&&o.isNaN(t.z)},h.prototype.equals=function(t){return t instanceof h&&this.equals2D(t)},h.prototype.equalInZ=function(t,e){return r.equalsWithTolerance(this.z,t.z,e)},h.prototype.compareTo=function(t){var e=t;return this.x<e.x?-1:this.x>e.x?1:this.y<e.y?-1:this.y>e.y?1:0},h.prototype.clone=function(){},h.prototype.copy=function(){return new h(this)},h.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"},h.prototype.distance3D=function(t){var e=this.x-t.x,n=this.y-t.y,r=this.z-t.z;return Math.sqrt(e*e+n*n+r*r)},h.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},h.prototype.hashCode=function(){var t=17;return t=37*(t=37*t+h.hashCode(this.x))+h.hashCode(this.y)},h.prototype.setCoordinate=function(t){this.x=t.x,this.y=t.y,this.z=t.z},h.prototype.interfaces_=function(){return[s,u,l]},h.prototype.getClass=function(){return h},h.hashCode=function(){if(1===arguments.length){var t=arguments[0],e=o.doubleToLongBits(t);return Math.trunc((e^e)>>>32)}},f.DimensionalComparator.get=function(){return p},f.serialVersionUID.get=function(){return 0x5cbf2c235c7e5800},f.NULL_ORDINATE.get=function(){return o.NaN},f.X.get=function(){return 0},f.Y.get=function(){return 1},f.Z.get=function(){return 2},Object.defineProperties(h,f);var p=function(t){if(this._dimensionsToTest=2,0===arguments.length);else if(1===arguments.length){var e=arguments[0];if(2!==e&&3!==e)throw new i("only 2 or 3 dimensions may be specified");this._dimensionsToTest=e}};p.prototype.compare=function(t,e){var n=t,r=e,i=p.compare(n.x,r.x);if(0!==i)return i;var o=p.compare(n.y,r.y);return 0!==o?o:this._dimensionsToTest<=2?0:p.compare(n.z,r.z)},p.prototype.interfaces_=function(){return[c]},p.prototype.getClass=function(){return p},p.compare=function(t,e){return t<e?-1:t>e?1:o.isNaN(t)?o.isNaN(e)?0:-1:o.isNaN(e)?1:0};var d=function(){};d.prototype.create=function(){},d.prototype.interfaces_=function(){return[]},d.prototype.getClass=function(){return d};var g=function(){},y={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};g.prototype.interfaces_=function(){return[]},g.prototype.getClass=function(){return g},g.toLocationSymbol=function(t){switch(t){case g.EXTERIOR:return"e";case g.BOUNDARY:return"b";case g.INTERIOR:return"i";case g.NONE:return"-"}throw new i("Unknown location value: "+t)},y.INTERIOR.get=function(){return 0},y.BOUNDARY.get=function(){return 1},y.EXTERIOR.get=function(){return 2},y.NONE.get=function(){return-1},Object.defineProperties(g,y);var v=function(t,e){return t.interfaces_&&t.interfaces_().indexOf(e)>-1},m=function(){},_={LOG_10:{configurable:!0}};m.prototype.interfaces_=function(){return[]},m.prototype.getClass=function(){return m},m.log10=function(t){var e=Math.log(t);return o.isInfinite(e)?e:o.isNaN(e)?e:e/m.LOG_10},m.min=function(t,e,n,r){var i=t;return e<i&&(i=e),n<i&&(i=n),r<i&&(i=r),i},m.clamp=function(){if("number"==typeof arguments[2]&&"number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1],n=arguments[2];return t<e?e:t>n?n:t}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var r=arguments[0],i=arguments[1],o=arguments[2];return r<i?i:r>o?o:r}},m.wrap=function(t,e){return t<0?e- -t%e:t%e},m.max=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],r=t;return e>r&&(r=e),n>r&&(r=n),r}if(4===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3],u=i;return o>u&&(u=o),a>u&&(u=a),s>u&&(u=s),u}},m.average=function(t,e){return(t+e)/2},_.LOG_10.get=function(){return Math.log(10)},Object.defineProperties(m,_);var b=function(t){this.str=t};b.prototype.append=function(t){this.str+=t},b.prototype.setCharAt=function(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)},b.prototype.toString=function(t){return this.str};var w=function(t){this.value=t};w.prototype.intValue=function(){return this.value},w.prototype.compareTo=function(t){return this.value<t?-1:this.value>t?1:0},w.isNaN=function(t){return Number.isNaN(t)};var E=function(){};E.isWhitespace=function(t){return t<=32&&t>=0||127===t},E.toUpperCase=function(t){return t.toUpperCase()};var x=function t(){if(this._hi=0,this._lo=0,0===arguments.length)this.init(0);else if(1===arguments.length){if("number"==typeof arguments[0]){var e=arguments[0];this.init(e)}else if(arguments[0]instanceof t){var n=arguments[0];this.init(n)}else if("string"==typeof arguments[0]){var r=arguments[0];t.call(this,t.parse(r))}}else if(2===arguments.length){var i=arguments[0],o=arguments[1];this.init(i,o)}},O={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};x.prototype.le=function(t){return(this._hi<t._hi||this._hi===t._hi)&&this._lo<=t._lo},x.prototype.extractSignificantDigits=function(t,e){var n=this.abs(),r=x.magnitude(n._hi),i=x.TEN.pow(r);(n=n.divide(i)).gt(x.TEN)?(n=n.divide(x.TEN),r+=1):n.lt(x.ONE)&&(n=n.multiply(x.TEN),r-=1);for(var o=r+1,a=new b,s=x.MAX_PRINT_DIGITS-1,u=0;u<=s;u++){t&&u===o&&a.append(".");var c=Math.trunc(n._hi);if(c<0)break;var l=!1,h=0;c>9?(l=!0,h="9"):h="0"+c,a.append(h),n=n.subtract(x.valueOf(c)).multiply(x.TEN),l&&n.selfAdd(x.TEN);var f=!0,p=x.magnitude(n._hi);if(p<0&&Math.abs(p)>=s-u&&(f=!1),!f)break}return e[0]=r,a.toString()},x.prototype.sqr=function(){return this.multiply(this)},x.prototype.doubleValue=function(){return this._hi+this._lo},x.prototype.subtract=function(){if(arguments[0]instanceof x){var t=arguments[0];return this.add(t.negate())}if("number"==typeof arguments[0]){var e=arguments[0];return this.add(-e)}},x.prototype.equals=function(){if(1===arguments.length){var t=arguments[0];return this._hi===t._hi&&this._lo===t._lo}},x.prototype.isZero=function(){return 0===this._hi&&0===this._lo},x.prototype.selfSubtract=function(){if(arguments[0]instanceof x){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t._hi,-t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e,0)}},x.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},x.prototype.min=function(t){return this.le(t)?this:t},x.prototype.selfDivide=function(){if(1===arguments.length){if(arguments[0]instanceof x){var t=arguments[0];return this.selfDivide(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfDivide(e,0)}}else if(2===arguments.length){var n,r,i,o,a=arguments[0],s=arguments[1],u=null,c=null,l=null,h=null;return i=this._hi/a,h=(u=(l=x.SPLIT*i)-(u=l-i))*(c=(h=x.SPLIT*a)-(c=h-a))-(o=i*a)+u*(r=a-c)+(n=i-u)*c+n*r,h=i+(l=(this._hi-o-h+this._lo-i*s)/a),this._hi=h,this._lo=i-h+l,this}},x.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"},x.prototype.divide=function(){if(arguments[0]instanceof x){var t,e,n,r,i=arguments[0],a=null,s=null,u=null,c=null;return n=this._hi/i._hi,a=(u=x.SPLIT*n)-n,c=x.SPLIT*i._hi,t=n-(a=u-a),s=c-i._hi,r=n*i._hi,c=a*(s=c-s)-r+a*(e=i._hi-s)+t*s+t*e,u=(this._hi-r-c+this._lo-n*i._lo)/i._hi,new x(c=n+u,n-c+u)}if("number"==typeof arguments[0]){var l=arguments[0];return o.isNaN(l)?x.createNaN():x.copy(this).selfDivide(l,0)}},x.prototype.ge=function(t){return(this._hi>t._hi||this._hi===t._hi)&&this._lo>=t._lo},x.prototype.pow=function(t){if(0===t)return x.valueOf(1);var e=new x(this),n=x.valueOf(1),r=Math.abs(t);if(r>1)for(;r>0;)r%2==1&&n.selfMultiply(e),(r/=2)>0&&(e=e.sqr());else n=e;return t<0?n.reciprocal():n},x.prototype.ceil=function(){if(this.isNaN())return x.NaN;var t=Math.ceil(this._hi),e=0;return t===this._hi&&(e=Math.ceil(this._lo)),new x(t,e)},x.prototype.compareTo=function(t){var e=t;return this._hi<e._hi?-1:this._hi>e._hi?1:this._lo<e._lo?-1:this._lo>e._lo?1:0},x.prototype.rint=function(){return this.isNaN()?this:this.add(.5).floor()},x.prototype.setValue=function(){if(arguments[0]instanceof x){var t=arguments[0];return this.init(t),this}if("number"==typeof arguments[0]){var e=arguments[0];return this.init(e),this}},x.prototype.max=function(t){return this.ge(t)?this:t},x.prototype.sqrt=function(){if(this.isZero())return x.valueOf(0);if(this.isNegative())return x.NaN;var t=1/Math.sqrt(this._hi),e=this._hi*t,n=x.valueOf(e),r=this.subtract(n.sqr())._hi*(.5*t);return n.add(r)},x.prototype.selfAdd=function(){if(1===arguments.length){if(arguments[0]instanceof x){var t=arguments[0];return this.selfAdd(t._hi,t._lo)}if("number"==typeof arguments[0]){var e,n,r,i,o,a=arguments[0],s=null;return s=(r=this._hi+a)-(i=r-this._hi),n=(o=(s=a-i+(this._hi-s))+this._lo)+(r-(e=r+o)),this._hi=e+n,this._lo=n+(e-this._hi),this}}else if(2===arguments.length){var u,c,l,h,f=arguments[0],p=arguments[1],d=null,g=null,y=null;l=this._hi+f,c=this._lo+p,g=l-(y=l-this._hi),d=c-(h=c-this._lo),g=f-y+(this._hi-g),d=p-h+(this._lo-d);var v=(u=l+(y=g+c))+(y=d+(y+(l-u))),m=y+(u-v);return this._hi=v,this._lo=m,this}},x.prototype.selfMultiply=function(){if(1===arguments.length){if(arguments[0]instanceof x){var t=arguments[0];return this.selfMultiply(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfMultiply(e,0)}}else if(2===arguments.length){var n,r,i=arguments[0],o=arguments[1],a=null,s=null,u=null,c=null;a=(u=x.SPLIT*this._hi)-this._hi,c=x.SPLIT*i,a=u-a,n=this._hi-a,s=c-i;var l=(u=this._hi*i)+(c=a*(s=c-s)-u+a*(r=i-s)+n*s+n*r+(this._hi*o+this._lo*i)),h=c+(a=u-l);return this._hi=l,this._lo=h,this}},x.prototype.selfSqr=function(){return this.selfMultiply(this)},x.prototype.floor=function(){if(this.isNaN())return x.NaN;var t=Math.floor(this._hi),e=0;return t===this._hi&&(e=Math.floor(this._lo)),new x(t,e)},x.prototype.negate=function(){return this.isNaN()?this:new x(-this._hi,-this._lo)},x.prototype.clone=function(){},x.prototype.multiply=function(){if(arguments[0]instanceof x){var t=arguments[0];return t.isNaN()?x.createNaN():x.copy(this).selfMultiply(t)}if("number"==typeof arguments[0]){var e=arguments[0];return o.isNaN(e)?x.createNaN():x.copy(this).selfMultiply(e,0)}},x.prototype.isNaN=function(){return o.isNaN(this._hi)},x.prototype.intValue=function(){return Math.trunc(this._hi)},x.prototype.toString=function(){var t=x.magnitude(this._hi);return t>=-3&&t<=20?this.toStandardNotation():this.toSciNotation()},x.prototype.toStandardNotation=function(){var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!0,e),r=e[0]+1,i=n;if("."===n.charAt(0))i="0"+n;else if(r<0)i="0."+x.stringOfChar("0",-r)+n;else if(-1===n.indexOf(".")){var o=r-n.length;i=n+x.stringOfChar("0",o)+".0"}return this.isNegative()?"-"+i:i},x.prototype.reciprocal=function(){var t,e,n,r,i=null,o=null,a=null,s=null;n=1/this._hi,i=(a=x.SPLIT*n)-n,s=x.SPLIT*this._hi,t=n-(i=a-i),o=s-this._hi;var u=n+(a=(1-(r=n*this._hi)-(s=i*(o=s-o)-r+i*(e=this._hi-o)+t*o+t*e)-n*this._lo)/this._hi);return new x(u,n-u+a)},x.prototype.toSciNotation=function(){if(this.isZero())return x.SCI_NOT_ZERO;var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!1,e),r=x.SCI_NOT_EXPONENT_CHAR+e[0];if("0"===n.charAt(0))throw new Error("Found leading zero: "+n);var i="";n.length>1&&(i=n.substring(1));var o=n.charAt(0)+"."+i;return this.isNegative()?"-"+o+r:o+r},x.prototype.abs=function(){return this.isNaN()?x.NaN:this.isNegative()?this.negate():new x(this)},x.prototype.isPositive=function(){return(this._hi>0||0===this._hi)&&this._lo>0},x.prototype.lt=function(t){return(this._hi<t._hi||this._hi===t._hi)&&this._lo<t._lo},x.prototype.add=function(){if(arguments[0]instanceof x){var t=arguments[0];return x.copy(this).selfAdd(t)}if("number"==typeof arguments[0]){var e=arguments[0];return x.copy(this).selfAdd(e)}},x.prototype.init=function(){if(1===arguments.length){if("number"==typeof arguments[0]){var t=arguments[0];this._hi=t,this._lo=0}else if(arguments[0]instanceof x){var e=arguments[0];this._hi=e._hi,this._lo=e._lo}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this._hi=n,this._lo=r}},x.prototype.gt=function(t){return(this._hi>t._hi||this._hi===t._hi)&&this._lo>t._lo},x.prototype.isNegative=function(){return(this._hi<0||0===this._hi)&&this._lo<0},x.prototype.trunc=function(){return this.isNaN()?x.NaN:this.isPositive()?this.floor():this.ceil()},x.prototype.signum=function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0},x.prototype.interfaces_=function(){return[l,s,u]},x.prototype.getClass=function(){return x},x.sqr=function(t){return x.valueOf(t).selfMultiply(t)},x.valueOf=function(){if("string"==typeof arguments[0]){var t=arguments[0];return x.parse(t)}if("number"==typeof arguments[0]){var e=arguments[0];return new x(e)}},x.sqrt=function(t){return x.valueOf(t).sqrt()},x.parse=function(t){for(var e=0,n=t.length;E.isWhitespace(t.charAt(e));)e++;var r=!1;if(e<n){var i=t.charAt(e);"-"!==i&&"+"!==i||(e++,"-"===i&&(r=!0))}for(var o=new x,a=0,s=0,u=0;!(e>=n);){var c=t.charAt(e);if(e++,E.isDigit(c)){var l=c-"0";o.selfMultiply(x.TEN),o.selfAdd(l),a++}else{if("."!==c){if("e"===c||"E"===c){var h=t.substring(e);try{u=w.parseInt(h)}catch(e){throw e instanceof Error?new Error("Invalid exponent "+h+" in string "+t):e}break}throw new Error("Unexpected character '"+c+"' at position "+e+" in string "+t)}s=a}}var f=o,p=a-s-u;if(0===p)f=o;else if(p>0){var d=x.TEN.pow(p);f=o.divide(d)}else if(p<0){var g=x.TEN.pow(-p);f=o.multiply(g)}return r?f.negate():f},x.createNaN=function(){return new x(o.NaN,o.NaN)},x.copy=function(t){return new x(t)},x.magnitude=function(t){var e=Math.abs(t),n=Math.log(e)/Math.log(10),r=Math.trunc(Math.floor(n));return 10*Math.pow(10,r)<=e&&(r+=1),r},x.stringOfChar=function(t,e){for(var n=new b,r=0;r<e;r++)n.append(t);return n.toString()},O.PI.get=function(){return new x(3.141592653589793,1.2246467991473532e-16)},O.TWO_PI.get=function(){return new x(6.283185307179586,2.4492935982947064e-16)},O.PI_2.get=function(){return new x(1.5707963267948966,6.123233995736766e-17)},O.E.get=function(){return new x(2.718281828459045,1.4456468917292502e-16)},O.NaN.get=function(){return new x(o.NaN,o.NaN)},O.EPS.get=function(){return 1.23259516440783e-32},O.SPLIT.get=function(){return 134217729},O.MAX_PRINT_DIGITS.get=function(){return 32},O.TEN.get=function(){return x.valueOf(10)},O.ONE.get=function(){return x.valueOf(1)},O.SCI_NOT_EXPONENT_CHAR.get=function(){return"E"},O.SCI_NOT_ZERO.get=function(){return"0.0E0"},Object.defineProperties(x,O);var M=function(){},S={DP_SAFE_EPSILON:{configurable:!0}};M.prototype.interfaces_=function(){return[]},M.prototype.getClass=function(){return M},M.orientationIndex=function(t,e,n){var r=M.orientationIndexFilter(t,e,n);if(r<=1)return r;var i=x.valueOf(e.x).selfAdd(-t.x),o=x.valueOf(e.y).selfAdd(-t.y),a=x.valueOf(n.x).selfAdd(-e.x),s=x.valueOf(n.y).selfAdd(-e.y);return i.selfMultiply(s).selfSubtract(o.selfMultiply(a)).signum()},M.signOfDet2x2=function(t,e,n,r){return t.multiply(r).selfSubtract(e.multiply(n)).signum()},M.intersection=function(t,e,n,r){var i=x.valueOf(r.y).selfSubtract(n.y).selfMultiply(x.valueOf(e.x).selfSubtract(t.x)),o=x.valueOf(r.x).selfSubtract(n.x).selfMultiply(x.valueOf(e.y).selfSubtract(t.y)),a=i.subtract(o),s=x.valueOf(r.x).selfSubtract(n.x).selfMultiply(x.valueOf(t.y).selfSubtract(n.y)),u=x.valueOf(r.y).selfSubtract(n.y).selfMultiply(x.valueOf(t.x).selfSubtract(n.x)),c=s.subtract(u).selfDivide(a).doubleValue(),l=x.valueOf(t.x).selfAdd(x.valueOf(e.x).selfSubtract(t.x).selfMultiply(c)).doubleValue(),f=x.valueOf(e.x).selfSubtract(t.x).selfMultiply(x.valueOf(t.y).selfSubtract(n.y)),p=x.valueOf(e.y).selfSubtract(t.y).selfMultiply(x.valueOf(t.x).selfSubtract(n.x)),d=f.subtract(p).selfDivide(a).doubleValue(),g=x.valueOf(n.y).selfAdd(x.valueOf(r.y).selfSubtract(n.y).selfMultiply(d)).doubleValue();return new h(l,g)},M.orientationIndexFilter=function(t,e,n){var r=null,i=(t.x-n.x)*(e.y-n.y),o=(t.y-n.y)*(e.x-n.x),a=i-o;if(i>0){if(o<=0)return M.signum(a);r=i+o}else{if(!(i<0))return M.signum(a);if(o>=0)return M.signum(a);r=-i-o}var s=M.DP_SAFE_EPSILON*r;return a>=s||-a>=s?M.signum(a):2},M.signum=function(t){return t>0?1:t<0?-1:0},S.DP_SAFE_EPSILON.get=function(){return 1e-15},Object.defineProperties(M,S);var P=function(){},C={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};C.X.get=function(){return 0},C.Y.get=function(){return 1},C.Z.get=function(){return 2},C.M.get=function(){return 3},P.prototype.setOrdinate=function(t,e,n){},P.prototype.size=function(){},P.prototype.getOrdinate=function(t,e){},P.prototype.getCoordinate=function(){},P.prototype.getCoordinateCopy=function(t){},P.prototype.getDimension=function(){},P.prototype.getX=function(t){},P.prototype.clone=function(){},P.prototype.expandEnvelope=function(t){},P.prototype.copy=function(){},P.prototype.getY=function(t){},P.prototype.toCoordinateArray=function(){},P.prototype.interfaces_=function(){return[u]},P.prototype.getClass=function(){return P},Object.defineProperties(P,C);var T=function(){},I=function(t){function e(){t.call(this,"Projective point not representable on the Cartesian plane.")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(T),L=function(){};L.arraycopy=function(t,e,n,r,i){for(var o=0,a=e;a<e+i;a++)n[r+o]=t[a],o++},L.getProperty=function(t){return{"line.separator":"\n"}[t]};var A=function t(){if(this.x=null,this.y=null,this.w=null,0===arguments.length)this.x=0,this.y=0,this.w=1;else if(1===arguments.length){var e=arguments[0];this.x=e.x,this.y=e.y,this.w=1}else if(2===arguments.length){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var n=arguments[0],r=arguments[1];this.x=n,this.y=r,this.w=1}else if(arguments[0]instanceof t&&arguments[1]instanceof t){var i=arguments[0],o=arguments[1];this.x=i.y*o.w-o.y*i.w,this.y=o.x*i.w-i.x*o.w,this.w=i.x*o.y-o.x*i.y}else if(arguments[0]instanceof h&&arguments[1]instanceof h){var a=arguments[0],s=arguments[1];this.x=a.y-s.y,this.y=s.x-a.x,this.w=a.x*s.y-s.x*a.y}}else if(3===arguments.length){var u=arguments[0],c=arguments[1],l=arguments[2];this.x=u,this.y=c,this.w=l}else if(4===arguments.length){var f=arguments[0],p=arguments[1],d=arguments[2],g=arguments[3],y=f.y-p.y,v=p.x-f.x,m=f.x*p.y-p.x*f.y,_=d.y-g.y,b=g.x-d.x,w=d.x*g.y-g.x*d.y;this.x=v*w-b*m,this.y=_*m-y*w,this.w=y*b-_*v}};A.prototype.getY=function(){var t=this.y/this.w;if(o.isNaN(t)||o.isInfinite(t))throw new I;return t},A.prototype.getX=function(){var t=this.x/this.w;if(o.isNaN(t)||o.isInfinite(t))throw new I;return t},A.prototype.getCoordinate=function(){var t=new h;return t.x=this.getX(),t.y=this.getY(),t},A.prototype.interfaces_=function(){return[]},A.prototype.getClass=function(){return A},A.intersection=function(t,e,n,r){var i=t.y-e.y,a=e.x-t.x,s=t.x*e.y-e.x*t.y,u=n.y-r.y,c=r.x-n.x,l=n.x*r.y-r.x*n.y,f=i*c-u*a,p=(a*l-c*s)/f,d=(u*s-i*l)/f;if(o.isNaN(p)||o.isInfinite(p)||o.isNaN(d)||o.isInfinite(d))throw new I;return new h(p,d)};var N=function t(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,0===arguments.length)this.init();else if(1===arguments.length){if(arguments[0]instanceof h){var e=arguments[0];this.init(e.x,e.x,e.y,e.y)}else if(arguments[0]instanceof t){var n=arguments[0];this.init(n)}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.init(r.x,i.x,r.y,i.y)}else if(4===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2],u=arguments[3];this.init(o,a,s,u)}},k={serialVersionUID:{configurable:!0}};N.prototype.getArea=function(){return this.getWidth()*this.getHeight()},N.prototype.equals=function(t){if(!(t instanceof N))return!1;var e=t;return this.isNull()?e.isNull():this._maxx===e.getMaxX()&&this._maxy===e.getMaxY()&&this._minx===e.getMinX()&&this._miny===e.getMinY()},N.prototype.intersection=function(t){if(this.isNull()||t.isNull()||!this.intersects(t))return new N;var e=this._minx>t._minx?this._minx:t._minx,n=this._miny>t._miny?this._miny:t._miny,r=this._maxx<t._maxx?this._maxx:t._maxx,i=this._maxy<t._maxy?this._maxy:t._maxy;return new N(e,r,n,i)},N.prototype.isNull=function(){return this._maxx<this._minx},N.prototype.getMaxX=function(){return this._maxx},N.prototype.covers=function(){if(1===arguments.length){if(arguments[0]instanceof h){var t=arguments[0];return this.covers(t.x,t.y)}if(arguments[0]instanceof N){var e=arguments[0];return!this.isNull()&&!e.isNull()&&(e.getMinX()>=this._minx&&e.getMaxX()<=this._maxx&&e.getMinY()>=this._miny&&e.getMaxY()<=this._maxy)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return!this.isNull()&&(n>=this._minx&&n<=this._maxx&&r>=this._miny&&r<=this._maxy)}},N.prototype.intersects=function(){if(1===arguments.length){if(arguments[0]instanceof N){var t=arguments[0];return!this.isNull()&&!t.isNull()&&!(t._minx>this._maxx||t._maxx<this._minx||t._miny>this._maxy||t._maxy<this._miny)}if(arguments[0]instanceof h){var e=arguments[0];return this.intersects(e.x,e.y)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return!this.isNull()&&!(n>this._maxx||n<this._minx||r>this._maxy||r<this._miny)}},N.prototype.getMinY=function(){return this._miny},N.prototype.getMinX=function(){return this._minx},N.prototype.expandToInclude=function(){if(1===arguments.length){if(arguments[0]instanceof h){var t=arguments[0];this.expandToInclude(t.x,t.y)}else if(arguments[0]instanceof N){var e=arguments[0];if(e.isNull())return null;this.isNull()?(this._minx=e.getMinX(),this._maxx=e.getMaxX(),this._miny=e.getMinY(),this._maxy=e.getMaxY()):(e._minx<this._minx&&(this._minx=e._minx),e._maxx>this._maxx&&(this._maxx=e._maxx),e._miny<this._miny&&(this._miny=e._miny),e._maxy>this._maxy&&(this._maxy=e._maxy))}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.isNull()?(this._minx=n,this._maxx=n,this._miny=r,this._maxy=r):(n<this._minx&&(this._minx=n),n>this._maxx&&(this._maxx=n),r<this._miny&&(this._miny=r),r>this._maxy&&(this._maxy=r))}},N.prototype.minExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t<e?t:e},N.prototype.getWidth=function(){return this.isNull()?0:this._maxx-this._minx},N.prototype.compareTo=function(t){var e=t;return this.isNull()?e.isNull()?0:-1:e.isNull()?1:this._minx<e._minx?-1:this._minx>e._minx?1:this._miny<e._miny?-1:this._miny>e._miny?1:this._maxx<e._maxx?-1:this._maxx>e._maxx?1:this._maxy<e._maxy?-1:this._maxy>e._maxy?1:0},N.prototype.translate=function(t,e){if(this.isNull())return null;this.init(this.getMinX()+t,this.getMaxX()+t,this.getMinY()+e,this.getMaxY()+e)},N.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"},N.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1},N.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny},N.prototype.maxExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t>e?t:e},N.prototype.expandBy=function(){if(1===arguments.length){var t=arguments[0];this.expandBy(t,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this.isNull())return null;this._minx-=e,this._maxx+=e,this._miny-=n,this._maxy+=n,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}},N.prototype.contains=function(){if(1===arguments.length){if(arguments[0]instanceof N){var t=arguments[0];return this.covers(t)}if(arguments[0]instanceof h){var e=arguments[0];return this.covers(e)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return this.covers(n,r)}},N.prototype.centre=function(){return this.isNull()?null:new h((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},N.prototype.init=function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof h){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof N){var e=arguments[0];this._minx=e._minx,this._maxx=e._maxx,this._miny=e._miny,this._maxy=e._maxy}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.init(n.x,r.x,n.y,r.y)}else if(4===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];i<o?(this._minx=i,this._maxx=o):(this._minx=o,this._maxx=i),a<s?(this._miny=a,this._maxy=s):(this._miny=s,this._maxy=a)}},N.prototype.getMaxY=function(){return this._maxy},N.prototype.distance=function(t){if(this.intersects(t))return 0;var e=0;this._maxx<t._minx?e=t._minx-this._maxx:this._minx>t._maxx&&(e=this._minx-t._maxx);var n=0;return this._maxy<t._miny?n=t._miny-this._maxy:this._miny>t._maxy&&(n=this._miny-t._maxy),0===e?n:0===n?e:Math.sqrt(e*e+n*n)},N.prototype.hashCode=function(){var t=17;return t=37*(t=37*(t=37*(t=37*t+h.hashCode(this._minx))+h.hashCode(this._maxx))+h.hashCode(this._miny))+h.hashCode(this._maxy)},N.prototype.interfaces_=function(){return[s,l]},N.prototype.getClass=function(){return N},N.intersects=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2];return n.x>=(t.x<e.x?t.x:e.x)&&n.x<=(t.x>e.x?t.x:e.x)&&n.y>=(t.y<e.y?t.y:e.y)&&n.y<=(t.y>e.y?t.y:e.y)}if(4===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],a=arguments[3],s=Math.min(o.x,a.x),u=Math.max(o.x,a.x),c=Math.min(r.x,i.x),l=Math.max(r.x,i.x);return!(c>u)&&(!(l<s)&&(s=Math.min(o.y,a.y),u=Math.max(o.y,a.y),c=Math.min(r.y,i.y),l=Math.max(r.y,i.y),!(c>u)&&!(l<s)))}},k.serialVersionUID.get=function(){return 0x51845cd552189800},Object.defineProperties(N,k);var j={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,emptyTypeStr:/^\s*(\w+)\s*EMPTY\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/},R=function(t){this.geometryFactory=t||new ve};R.prototype.read=function(t){var e,n,r;t=t.replace(/[\n\r]/g," ");var i=j.typeStr.exec(t);if(-1!==t.search("EMPTY")&&((i=j.emptyTypeStr.exec(t))[2]=void 0),i&&(n=i[1].toLowerCase(),r=i[2],F[n]&&(e=F[n].apply(this,[r]))),void 0===e)throw new Error("Could not parse WKT "+t);return e},R.prototype.write=function(t){return this.extractGeometry(t)},R.prototype.extractGeometry=function(t){var e=t.getGeometryType().toLowerCase();if(!D[e])return null;var n=e.toUpperCase();return t.isEmpty()?n+" EMPTY":n+"("+D[e].apply(this,[t])+")"};var D={coordinate:function(t){return t.x+" "+t.y},point:function(t){return D.coordinate.call(this,t._coordinates._coordinates[0])},multipoint:function(t){for(var e=[],n=0,r=t._geometries.length;n<r;++n)e.push("("+D.point.apply(this,[t._geometries[n]])+")");return e.join(",")},linestring:function(t){for(var e=[],n=0,r=t._points._coordinates.length;n<r;++n)e.push(D.coordinate.apply(this,[t._points._coordinates[n]]));return e.join(",")},linearring:function(t){for(var e=[],n=0,r=t._points._coordinates.length;n<r;++n)e.push(D.coordinate.apply(this,[t._points._coordinates[n]]));return e.join(",")},multilinestring:function(t){for(var e=[],n=0,r=t._geometries.length;n<r;++n)e.push("("+D.linestring.apply(this,[t._geometries[n]])+")");return e.join(",")},polygon:function(t){var e=[];e.push("("+D.linestring.apply(this,[t._shell])+")");for(var n=0,r=t._holes.length;n<r;++n)e.push("("+D.linestring.apply(this,[t._holes[n]])+")");return e.join(",")},multipolygon:function(t){for(var e=[],n=0,r=t._geometries.length;n<r;++n)e.push("("+D.polygon.apply(this,[t._geometries[n]])+")");return e.join(",")},geometrycollection:function(t){for(var e=[],n=0,r=t._geometries.length;n<r;++n)e.push(this.extractGeometry(t._geometries[n]));return e.join(",")}},F={point:function(t){if(void 0===t)return this.geometryFactory.createPoint();var e=t.trim().split(j.spaces);return this.geometryFactory.createPoint(new h(Number.parseFloat(e[0]),Number.parseFloat(e[1])))},multipoint:function(t){var e;if(void 0===t)return this.geometryFactory.createMultiPoint();for(var n=t.trim().split(","),r=[],i=0,o=n.length;i<o;++i)e=n[i].replace(j.trimParens,"$1"),r.push(F.point.apply(this,[e]));return this.geometryFactory.createMultiPoint(r)},linestring:function(t){if(void 0===t)return this.geometryFactory.createLineString();for(var e,n=t.trim().split(","),r=[],i=0,o=n.length;i<o;++i)e=n[i].trim().split(j.spaces),r.push(new h(Number.parseFloat(e[0]),Number.parseFloat(e[1])));return this.geometryFactory.createLineString(r)},linearring:function(t){if(void 0===t)return this.geometryFactory.createLinearRing();for(var e,n=t.trim().split(","),r=[],i=0,o=n.length;i<o;++i)e=n[i].trim().split(j.spaces),r.push(new h(Number.parseFloat(e[0]),Number.parseFloat(e[1])));return this.geometryFactory.createLinearRing(r)},multilinestring:function(t){var e;if(void 0===t)return this.geometryFactory.createMultiLineString();for(var n=t.trim().split(j.parenComma),r=[],i=0,o=n.length;i<o;++i)e=n[i].replace(j.trimParens,"$1"),r.push(F.linestring.apply(this,[e]));return this.geometryFactory.createMultiLineString(r)},polygon:function(t){var e,n,r;if(void 0===t)return this.geometryFactory.createPolygon();for(var i,o=t.trim().split(j.parenComma),a=[],s=0,u=o.length;s<u;++s)e=o[s].replace(j.trimParens,"$1"),n=F.linestring.apply(this,[e]),r=this.geometryFactory.createLinearRing(n._points),0===s?i=r:a.push(r);return this.geometryFactory.createPolygon(i,a)},multipolygon:function(t){var e;if(void 0===t)return this.geometryFactory.createMultiPolygon();for(var n=t.trim().split(j.doubleParenComma),r=[],i=0,o=n.length;i<o;++i)e=n[i].replace(j.trimParens,"$1"),r.push(F.polygon.apply(this,[e]));return this.geometryFactory.createMultiPolygon(r)},geometrycollection:function(t){if(void 0===t)return this.geometryFactory.createGeometryCollection();for(var e=(t=t.replace(/,\s*([A-Za-z])/g,"|$1")).trim().split("|"),n=[],r=0,i=e.length;r<i;++r)n.push(this.read(e[r]));return this.geometryFactory.createGeometryCollection(n)}},z=function(t){this.parser=new R(t)};z.prototype.write=function(t){return this.parser.write(t)},z.toLineString=function(t,e){if(2!==arguments.length)throw new Error("Not implemented");return"LINESTRING ( "+t.x+" "+t.y+", "+e.x+" "+e.y+" )"};var B=function(t){function e(e){t.call(this,e),this.name="RuntimeException",this.message=e,this.stack=(new t).stack}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),q=function(t){function e(){if(t.call(this),0===arguments.length)t.call(this);else if(1===arguments.length){var e=arguments[0];t.call(this,e)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(B),G=function(){};G.prototype.interfaces_=function(){return[]},G.prototype.getClass=function(){return G},G.shouldNeverReachHere=function(){if(0===arguments.length)G.shouldNeverReachHere(null);else if(1===arguments.length){var t=arguments[0];throw new q("Should never reach here"+(null!==t?": "+t:""))}},G.isTrue=function(){var t,e;if(1===arguments.length)t=arguments[0],G.isTrue(t,null);else if(2===arguments.length&&(t=arguments[0],e=arguments[1],!t))throw null===e?new q:new q(e)},G.equals=function(){var t,e,n;if(2===arguments.length)t=arguments[0],e=arguments[1],G.equals(t,e,null);else if(3===arguments.length&&(t=arguments[0],e=arguments[1],n=arguments[2],!e.equals(t)))throw new q("Expected "+t+" but encountered "+e+(null!==n?": "+n:""))};var U=function(){this._result=null,this._inputLines=Array(2).fill().map(function(){return Array(2)}),this._intPt=new Array(2).fill(null),this._intLineIndex=null,this._isProper=null,this._pa=null,this._pb=null,this._precisionModel=null,this._intPt[0]=new h,this._intPt[1]=new h,this._pa=this._intPt[0],this._pb=this._intPt[1],this._result=0},V={DONT_INTERSECT:{configurable:!0},DO_INTERSECT:{configurable:!0},COLLINEAR:{configurable:!0},NO_INTERSECTION:{configurable:!0},POINT_INTERSECTION:{configurable:!0},COLLINEAR_INTERSECTION:{configurable:!0}};U.prototype.getIndexAlongSegment=function(t,e){return this.computeIntLineIndex(),this._intLineIndex[t][e]},U.prototype.getTopologySummary=function(){var t=new b;return this.isEndPoint()&&t.append(" endpoint"),this._isProper&&t.append(" proper"),this.isCollinear()&&t.append(" collinear"),t.toString()},U.prototype.computeIntersection=function(t,e,n,r){this._inputLines[0][0]=t,this._inputLines[0][1]=e,this._inputLines[1][0]=n,this._inputLines[1][1]=r,this._result=this.computeIntersect(t,e,n,r)},U.prototype.getIntersectionNum=function(){return this._result},U.prototype.computeIntLineIndex=function(){if(0===arguments.length)null===this._intLineIndex&&(this._intLineIndex=Array(2).fill().map(function(){return Array(2)}),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(1===arguments.length){var t=arguments[0];this.getEdgeDistance(t,0)>this.getEdgeDistance(t,1)?(this._intLineIndex[t][0]=0,this._intLineIndex[t][1]=1):(this._intLineIndex[t][0]=1,this._intLineIndex[t][1]=0)}},U.prototype.isProper=function(){return this.hasIntersection()&&this._isProper},U.prototype.setPrecisionModel=function(t){this._precisionModel=t},U.prototype.isInteriorIntersection=function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var t=arguments[0],e=0;e<this._result;e++)if(!this._intPt[e].equals2D(this._inputLines[t][0])&&!this._intPt[e].equals2D(this._inputLines[t][1]))return!0;return!1}},U.prototype.getIntersection=function(t){return this._intPt[t]},U.prototype.isEndPoint=function(){return this.hasIntersection()&&!this._isProper},U.prototype.hasIntersection=function(){return this._result!==U.NO_INTERSECTION},U.prototype.getEdgeDistance=function(t,e){return U.computeEdgeDistance(this._intPt[e],this._inputLines[t][0],this._inputLines[t][1])},U.prototype.isCollinear=function(){return this._result===U.COLLINEAR_INTERSECTION},U.prototype.toString=function(){return z.toLineString(this._inputLines[0][0],this._inputLines[0][1])+" - "+z.toLineString(this._inputLines[1][0],this._inputLines[1][1])+this.getTopologySummary()},U.prototype.getEndpoint=function(t,e){return this._inputLines[t][e]},U.prototype.isIntersection=function(t){for(var e=0;e<this._result;e++)if(this._intPt[e].equals2D(t))return!0;return!1},U.prototype.getIntersectionAlongSegment=function(t,e){return this.computeIntLineIndex(),this._intPt[this._intLineIndex[t][e]]},U.prototype.interfaces_=function(){return[]},U.prototype.getClass=function(){return U},U.computeEdgeDistance=function(t,e,n){var r=Math.abs(n.x-e.x),i=Math.abs(n.y-e.y),o=-1;if(t.equals(e))o=0;else if(t.equals(n))o=r>i?r:i;else{var a=Math.abs(t.x-e.x),s=Math.abs(t.y-e.y);0!==(o=r>i?a:s)||t.equals(e)||(o=Math.max(a,s))}return G.isTrue(!(0===o&&!t.equals(e)),"Bad distance calculation"),o},U.nonRobustComputeEdgeDistance=function(t,e,n){var r=t.x-e.x,i=t.y-e.y,o=Math.sqrt(r*r+i*i);return G.isTrue(!(0===o&&!t.equals(e)),"Invalid distance calculation"),o},V.DONT_INTERSECT.get=function(){return 0},V.DO_INTERSECT.get=function(){return 1},V.COLLINEAR.get=function(){return 2},V.NO_INTERSECTION.get=function(){return 0},V.POINT_INTERSECTION.get=function(){return 1},V.COLLINEAR_INTERSECTION.get=function(){return 2},Object.defineProperties(U,V);var J=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isInSegmentEnvelopes=function(t){var e=new N(this._inputLines[0][0],this._inputLines[0][1]),n=new N(this._inputLines[1][0],this._inputLines[1][1]);return e.contains(t)&&n.contains(t)},e.prototype.computeIntersection=function(){if(3!==arguments.length)return t.prototype.computeIntersection.apply(this,arguments);var e=arguments[0],n=arguments[1],r=arguments[2];if(this._isProper=!1,N.intersects(n,r,e)&&0===X.orientationIndex(n,r,e)&&0===X.orientationIndex(r,n,e))return this._isProper=!0,(e.equals(n)||e.equals(r))&&(this._isProper=!1),this._result=t.POINT_INTERSECTION,null;this._result=t.NO_INTERSECTION},e.prototype.normalizeToMinimum=function(t,e,n,r,i){i.x=this.smallestInAbsValue(t.x,e.x,n.x,r.x),i.y=this.smallestInAbsValue(t.y,e.y,n.y,r.y),t.x-=i.x,t.y-=i.y,e.x-=i.x,e.y-=i.y,n.x-=i.x,n.y-=i.y,r.x-=i.x,r.y-=i.y},e.prototype.safeHCoordinateIntersection=function(t,n,r,i){var o=null;try{o=A.intersection(t,n,r,i)}catch(a){if(!(a instanceof I))throw a;o=e.nearestEndpoint(t,n,r,i)}return o},e.prototype.intersection=function(t,n,r,i){var o=this.intersectionWithNormalization(t,n,r,i);return this.isInSegmentEnvelopes(o)||(o=new h(e.nearestEndpoint(t,n,r,i))),null!==this._precisionModel&&this._precisionModel.makePrecise(o),o},e.prototype.smallestInAbsValue=function(t,e,n,r){var i=t,o=Math.abs(i);return Math.abs(e)<o&&(i=e,o=Math.abs(e)),Math.abs(n)<o&&(i=n,o=Math.abs(n)),Math.abs(r)<o&&(i=r),i},e.prototype.checkDD=function(t,e,n,r,i){var o=M.intersection(t,e,n,r),a=this.isInSegmentEnvelopes(o);L.out.println("DD in env = "+a+" --------------------- "+o),i.distance(o)>1e-4&&L.out.println("Distance = "+i.distance(o))},e.prototype.intersectionWithNormalization=function(t,e,n,r){var i=new h(t),o=new h(e),a=new h(n),s=new h(r),u=new h;this.normalizeToEnvCentre(i,o,a,s,u);var c=this.safeHCoordinateIntersection(i,o,a,s);return c.x+=u.x,c.y+=u.y,c},e.prototype.computeCollinearIntersection=function(e,n,r,i){var o=N.intersects(e,n,r),a=N.intersects(e,n,i),s=N.intersects(r,i,e),u=N.intersects(r,i,n);return o&&a?(this._intPt[0]=r,this._intPt[1]=i,t.COLLINEAR_INTERSECTION):s&&u?(this._intPt[0]=e,this._intPt[1]=n,t.COLLINEAR_INTERSECTION):o&&s?(this._intPt[0]=r,this._intPt[1]=e,!r.equals(e)||a||u?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):o&&u?(this._intPt[0]=r,this._intPt[1]=n,!r.equals(n)||a||s?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):a&&s?(this._intPt[0]=i,this._intPt[1]=e,!i.equals(e)||o||u?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):a&&u?(this._intPt[0]=i,this._intPt[1]=n,!i.equals(n)||o||s?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):t.NO_INTERSECTION},e.prototype.normalizeToEnvCentre=function(t,e,n,r,i){var o=t.x<e.x?t.x:e.x,a=t.y<e.y?t.y:e.y,s=t.x>e.x?t.x:e.x,u=t.y>e.y?t.y:e.y,c=n.x<r.x?n.x:r.x,l=n.y<r.y?n.y:r.y,h=n.x>r.x?n.x:r.x,f=n.y>r.y?n.y:r.y,p=((o>c?o:c)+(s<h?s:h))/2,d=((a>l?a:l)+(u<f?u:f))/2;i.x=p,i.y=d,t.x-=i.x,t.y-=i.y,e.x-=i.x,e.y-=i.y,n.x-=i.x,n.y-=i.y,r.x-=i.x,r.y-=i.y},e.prototype.computeIntersect=function(e,n,r,i){if(this._isProper=!1,!N.intersects(e,n,r,i))return t.NO_INTERSECTION;var o=X.orientationIndex(e,n,r),a=X.orientationIndex(e,n,i);if(o>0&&a>0||o<0&&a<0)return t.NO_INTERSECTION;var s=X.orientationIndex(r,i,e),u=X.orientationIndex(r,i,n);return s>0&&u>0||s<0&&u<0?t.NO_INTERSECTION:0===o&&0===a&&0===s&&0===u?this.computeCollinearIntersection(e,n,r,i):(0===o||0===a||0===s||0===u?(this._isProper=!1,e.equals2D(r)||e.equals2D(i)?this._intPt[0]=e:n.equals2D(r)||n.equals2D(i)?this._intPt[0]=n:0===o?this._intPt[0]=new h(r):0===a?this._intPt[0]=new h(i):0===s?this._intPt[0]=new h(e):0===u&&(this._intPt[0]=new h(n))):(this._isProper=!0,this._intPt[0]=this.intersection(e,n,r,i)),t.POINT_INTERSECTION)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.nearestEndpoint=function(t,e,n,r){var i=t,o=X.distancePointLine(t,n,r),a=X.distancePointLine(e,n,r);return a<o&&(o=a,i=e),(a=X.distancePointLine(n,t,e))<o&&(o=a,i=n),(a=X.distancePointLine(r,t,e))<o&&(o=a,i=r),i},e}(U),H=function(){};H.prototype.interfaces_=function(){return[]},H.prototype.getClass=function(){return H},H.orientationIndex=function(t,e,n){var r=e.x-t.x,i=e.y-t.y,o=n.x-e.x,a=n.y-e.y;return H.signOfDet2x2(r,i,o,a)},H.signOfDet2x2=function(t,e,n,r){var i=null,o=null,a=null;if(i=1,0===t||0===r)return 0===e||0===n?0:e>0?n>0?-i:i:n>0?i:-i;if(0===e||0===n)return r>0?t>0?i:-i:t>0?-i:i;if(e>0?r>0?e<=r||(i=-i,o=t,t=n,n=o,o=e,e=r,r=o):e<=-r?(i=-i,n=-n,r=-r):(o=t,t=-n,n=o,o=e,e=-r,r=o):r>0?-e<=r?(i=-i,t=-t,e=-e):(o=-t,t=n,n=o,o=-e,e=r,r=o):e>=r?(t=-t,e=-e,n=-n,r=-r):(i=-i,o=-t,t=-n,n=o,o=-e,e=-r,r=o),t>0){if(!(n>0))return i;if(!(t<=n))return i}else{if(n>0)return-i;if(!(t>=n))return-i;i=-i,t=-t,n=-n}for(;;){if(n-=(a=Math.floor(n/t))*t,(r-=a*e)<0)return-i;if(r>e)return i;if(t>n+n){if(e<r+r)return i}else{if(e>r+r)return-i;n=t-n,r=e-r,i=-i}if(0===r)return 0===n?0:-i;if(0===n)return i;if(t-=(a=Math.floor(t/n))*n,(e-=a*r)<0)return i;if(e>r)return-i;if(n>t+t){if(r<e+e)return-i}else{if(r>e+e)return i;t=n-t,e=r-e,i=-i}if(0===e)return 0===t?0:i;if(0===t)return-i}};var Y=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var t=arguments[0];this._p=t};Y.prototype.countSegment=function(t,e){if(t.x<this._p.x&&e.x<this._p.x)return null;if(this._p.x===e.x&&this._p.y===e.y)return this._isPointOnSegment=!0,null;if(t.y===this._p.y&&e.y===this._p.y){var n=t.x,r=e.x;return n>r&&(n=e.x,r=t.x),this._p.x>=n&&this._p.x<=r&&(this._isPointOnSegment=!0),null}if(t.y>this._p.y&&e.y<=this._p.y||e.y>this._p.y&&t.y<=this._p.y){var i=t.x-this._p.x,o=t.y-this._p.y,a=e.x-this._p.x,s=e.y-this._p.y,u=H.signOfDet2x2(i,o,a,s);if(0===u)return this._isPointOnSegment=!0,null;s<o&&(u=-u),u>0&&this._crossingCount++}},Y.prototype.isPointInPolygon=function(){return this.getLocation()!==g.EXTERIOR},Y.prototype.getLocation=function(){return this._isPointOnSegment?g.BOUNDARY:this._crossingCount%2==1?g.INTERIOR:g.EXTERIOR},Y.prototype.isOnSegment=function(){return this._isPointOnSegment},Y.prototype.interfaces_=function(){return[]},Y.prototype.getClass=function(){return Y},Y.locatePointInRing=function(){if(arguments[0]instanceof h&&v(arguments[1],P)){for(var t=arguments[0],e=arguments[1],n=new Y(t),r=new h,i=new h,o=1;o<e.size();o++)if(e.getCoordinate(o,r),e.getCoordinate(o-1,i),n.countSegment(r,i),n.isOnSegment())return n.getLocation();return n.getLocation()}if(arguments[0]instanceof h&&arguments[1]instanceof Array){for(var a=arguments[0],s=arguments[1],u=new Y(a),c=1;c<s.length;c++){var l=s[c],f=s[c-1];if(u.countSegment(l,f),u.isOnSegment())return u.getLocation()}return u.getLocation()}};var X=function(){},Z={CLOCKWISE:{configurable:!0},RIGHT:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},LEFT:{configurable:!0},COLLINEAR:{configurable:!0},STRAIGHT:{configurable:!0}};X.prototype.interfaces_=function(){return[]},X.prototype.getClass=function(){return X},X.orientationIndex=function(t,e,n){return M.orientationIndex(t,e,n)},X.signedArea=function(){if(arguments[0]instanceof Array){var t=arguments[0];if(t.length<3)return 0;for(var e=0,n=t[0].x,r=1;r<t.length-1;r++){var i=t[r].x-n,o=t[r+1].y;e+=i*(t[r-1].y-o)}return e/2}if(v(arguments[0],P)){var a=arguments[0],s=a.size();if(s<3)return 0;var u=new h,c=new h,l=new h;a.getCoordinate(0,c),a.getCoordinate(1,l);var f=c.x;l.x-=f;for(var p=0,d=1;d<s-1;d++)u.y=c.y,c.x=l.x,c.y=l.y,a.getCoordinate(d+1,l),l.x-=f,p+=c.x*(u.y-l.y);return p/2}},X.distanceLineLine=function(t,e,n,r){if(t.equals(e))return X.distancePointLine(t,n,r);if(n.equals(r))return X.distancePointLine(r,t,e);var i=!1;if(N.intersects(t,e,n,r)){var o=(e.x-t.x)*(r.y-n.y)-(e.y-t.y)*(r.x-n.x);if(0===o)i=!0;else{var a=(t.y-n.y)*(r.x-n.x)-(t.x-n.x)*(r.y-n.y),s=((t.y-n.y)*(e.x-t.x)-(t.x-n.x)*(e.y-t.y))/o,u=a/o;(u<0||u>1||s<0||s>1)&&(i=!0)}}else i=!0;return i?m.min(X.distancePointLine(t,n,r),X.distancePointLine(e,n,r),X.distancePointLine(n,t,e),X.distancePointLine(r,t,e)):0},X.isPointInRing=function(t,e){return X.locatePointInRing(t,e)!==g.EXTERIOR},X.computeLength=function(t){var e=t.size();if(e<=1)return 0;var n=0,r=new h;t.getCoordinate(0,r);for(var i=r.x,o=r.y,a=1;a<e;a++){t.getCoordinate(a,r);var s=r.x,u=r.y,c=s-i,l=u-o;n+=Math.sqrt(c*c+l*l),i=s,o=u}return n},X.isCCW=function(t){var e=t.length-1;if(e<3)throw new i("Ring has fewer than 4 points, so orientation cannot be determined");for(var n=t[0],r=0,o=1;o<=e;o++){var a=t[o];a.y>n.y&&(n=a,r=o)}var s=r;do{(s-=1)<0&&(s=e)}while(t[s].equals2D(n)&&s!==r);var u=r;do{u=(u+1)%e}while(t[u].equals2D(n)&&u!==r);var c=t[s],l=t[u];if(c.equals2D(n)||l.equals2D(n)||c.equals2D(l))return!1;var h=X.computeOrientation(c,n,l),f=!1;return f=0===h?c.x>l.x:h>0,f},X.locatePointInRing=function(t,e){return Y.locatePointInRing(t,e)},X.distancePointLinePerpendicular=function(t,e,n){var r=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),i=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/r;return Math.abs(i)*Math.sqrt(r)},X.computeOrientation=function(t,e,n){return X.orientationIndex(t,e,n)},X.distancePointLine=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];if(0===e.length)throw new i("Line array must contain at least one vertex");for(var n=t.distance(e[0]),r=0;r<e.length-1;r++){var o=X.distancePointLine(t,e[r],e[r+1]);o<n&&(n=o)}return n}if(3===arguments.length){var a=arguments[0],s=arguments[1],u=arguments[2];if(s.x===u.x&&s.y===u.y)return a.distance(s);var c=(u.x-s.x)*(u.x-s.x)+(u.y-s.y)*(u.y-s.y),l=((a.x-s.x)*(u.x-s.x)+(a.y-s.y)*(u.y-s.y))/c;if(l<=0)return a.distance(s);if(l>=1)return a.distance(u);var h=((s.y-a.y)*(u.x-s.x)-(s.x-a.x)*(u.y-s.y))/c;return Math.abs(h)*Math.sqrt(c)}},X.isOnLine=function(t,e){for(var n=new J,r=1;r<e.length;r++){var i=e[r-1],o=e[r];if(n.computeIntersection(t,i,o),n.hasIntersection())return!0}return!1},Z.CLOCKWISE.get=function(){return-1},Z.RIGHT.get=function(){return X.CLOCKWISE},Z.COUNTERCLOCKWISE.get=function(){return 1},Z.LEFT.get=function(){return X.COUNTERCLOCKWISE},Z.COLLINEAR.get=function(){return 0},Z.STRAIGHT.get=function(){return X.COLLINEAR},Object.defineProperties(X,Z);var W=function(){};W.prototype.filter=function(t){},W.prototype.interfaces_=function(){return[]},W.prototype.getClass=function(){return W};var K=function(){var t=arguments[0];this._envelope=null,this._factory=null,this._SRID=null,this._userData=null,this._factory=t,this._SRID=t.getSRID()},Q={serialVersionUID:{configurable:!0},SORTINDEX_POINT:{configurable:!0},SORTINDEX_MULTIPOINT:{configurable:!0},SORTINDEX_LINESTRING:{configurable:!0},SORTINDEX_LINEARRING:{configurable:!0},SORTINDEX_MULTILINESTRING:{configurable:!0},SORTINDEX_POLYGON:{configurable:!0},SORTINDEX_MULTIPOLYGON:{configurable:!0},SORTINDEX_GEOMETRYCOLLECTION:{configurable:!0},geometryChangedFilter:{configurable:!0}};K.prototype.isGeometryCollection=function(){return this.getSortIndex()===K.SORTINDEX_GEOMETRYCOLLECTION},K.prototype.getFactory=function(){return this._factory},K.prototype.getGeometryN=function(t){return this},K.prototype.getArea=function(){return 0},K.prototype.isRectangle=function(){return!1},K.prototype.equals=function(){if(arguments[0]instanceof K){var t=arguments[0];return null!==t&&this.equalsTopo(t)}if(arguments[0]instanceof Object){var e=arguments[0];if(!(e instanceof K))return!1;var n=e;return this.equalsExact(n)}},K.prototype.equalsExact=function(t){return this===t||this.equalsExact(t,0)},K.prototype.geometryChanged=function(){this.apply(K.geometryChangedFilter)},K.prototype.geometryChangedAction=function(){this._envelope=null},K.prototype.equalsNorm=function(t){return null!==t&&this.norm().equalsExact(t.norm())},K.prototype.getLength=function(){return 0},K.prototype.getNumGeometries=function(){return 1},K.prototype.compareTo=function(){if(1===arguments.length){var t=arguments[0],e=t;return this.getSortIndex()!==e.getSortIndex()?this.getSortIndex()-e.getSortIndex():this.isEmpty()&&e.isEmpty()?0:this.isEmpty()?-1:e.isEmpty()?1:this.compareToSameClass(t)}if(2===arguments.length){var n=arguments[0],r=arguments[1];return this.getSortIndex()!==n.getSortIndex()?this.getSortIndex()-n.getSortIndex():this.isEmpty()&&n.isEmpty()?0:this.isEmpty()?-1:n.isEmpty()?1:this.compareToSameClass(n,r)}},K.prototype.getUserData=function(){return this._userData},K.prototype.getSRID=function(){return this._SRID},K.prototype.getEnvelope=function(){return this.getFactory().toGeometry(this.getEnvelopeInternal())},K.prototype.checkNotGeometryCollection=function(t){if(t.getSortIndex()===K.SORTINDEX_GEOMETRYCOLLECTION)throw new i("This method does not support GeometryCollection arguments")},K.prototype.equal=function(t,e,n){return 0===n?t.equals(e):t.distance(e)<=n},K.prototype.norm=function(){var t=this.copy();return t.normalize(),t},K.prototype.getPrecisionModel=function(){return this._factory.getPrecisionModel()},K.prototype.getEnvelopeInternal=function(){return null===this._envelope&&(this._envelope=this.computeEnvelopeInternal()),new N(this._envelope)},K.prototype.setSRID=function(t){this._SRID=t},K.prototype.setUserData=function(t){this._userData=t},K.prototype.compare=function(t,e){for(var n=t.iterator(),r=e.iterator();n.hasNext()&&r.hasNext();){var i=n.next(),o=r.next(),a=i.compareTo(o);if(0!==a)return a}return n.hasNext()?1:r.hasNext()?-1:0},K.prototype.hashCode=function(){return this.getEnvelopeInternal().hashCode()},K.prototype.isGeometryCollectionOrDerived=function(){return this.getSortIndex()===K.SORTINDEX_GEOMETRYCOLLECTION||this.getSortIndex()===K.SORTINDEX_MULTIPOINT||this.getSortIndex()===K.SORTINDEX_MULTILINESTRING||this.getSortIndex()===K.SORTINDEX_MULTIPOLYGON},K.prototype.interfaces_=function(){return[u,s,l]},K.prototype.getClass=function(){return K},K.hasNonEmptyElements=function(t){for(var e=0;e<t.length;e++)if(!t[e].isEmpty())return!0;return!1},K.hasNullElements=function(t){for(var e=0;e<t.length;e++)if(null===t[e])return!0;return!1},Q.serialVersionUID.get=function(){return 0x799ea46522854c00},Q.SORTINDEX_POINT.get=function(){return 0},Q.SORTINDEX_MULTIPOINT.get=function(){return 1},Q.SORTINDEX_LINESTRING.get=function(){return 2},Q.SORTINDEX_LINEARRING.get=function(){return 3},Q.SORTINDEX_MULTILINESTRING.get=function(){return 4},Q.SORTINDEX_POLYGON.get=function(){return 5},Q.SORTINDEX_MULTIPOLYGON.get=function(){return 6},Q.SORTINDEX_GEOMETRYCOLLECTION.get=function(){return 7},Q.geometryChangedFilter.get=function(){return $},Object.defineProperties(K,Q);var $=function(){};$.interfaces_=function(){return[W]},$.filter=function(t){t.geometryChangedAction()};var tt=function(){};tt.prototype.filter=function(t){},tt.prototype.interfaces_=function(){return[]},tt.prototype.getClass=function(){return tt};var et=function(){},nt={Mod2BoundaryNodeRule:{configurable:!0},EndPointBoundaryNodeRule:{configurable:!0},MultiValentEndPointBoundaryNodeRule:{configurable:!0},MonoValentEndPointBoundaryNodeRule:{configurable:!0},MOD2_BOUNDARY_RULE:{configurable:!0},ENDPOINT_BOUNDARY_RULE:{configurable:!0},MULTIVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},MONOVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},OGC_SFS_BOUNDARY_RULE:{configurable:!0}};et.prototype.isInBoundary=function(t){},et.prototype.interfaces_=function(){return[]},et.prototype.getClass=function(){return et},nt.Mod2BoundaryNodeRule.get=function(){return rt},nt.EndPointBoundaryNodeRule.get=function(){return it},nt.MultiValentEndPointBoundaryNodeRule.get=function(){return ot},nt.MonoValentEndPointBoundaryNodeRule.get=function(){return at},nt.MOD2_BOUNDARY_RULE.get=function(){return new rt},nt.ENDPOINT_BOUNDARY_RULE.get=function(){return new it},nt.MULTIVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new ot},nt.MONOVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new at},nt.OGC_SFS_BOUNDARY_RULE.get=function(){return et.MOD2_BOUNDARY_RULE},Object.defineProperties(et,nt);var rt=function(){};rt.prototype.isInBoundary=function(t){return t%2==1},rt.prototype.interfaces_=function(){return[et]},rt.prototype.getClass=function(){return rt};var it=function(){};it.prototype.isInBoundary=function(t){return t>0},it.prototype.interfaces_=function(){return[et]},it.prototype.getClass=function(){return it};var ot=function(){};ot.prototype.isInBoundary=function(t){return t>1},ot.prototype.interfaces_=function(){return[et]},ot.prototype.getClass=function(){return ot};var at=function(){};at.prototype.isInBoundary=function(t){return 1===t},at.prototype.interfaces_=function(){return[et]},at.prototype.getClass=function(){return at};var st=function(){};function ut(t){this.message=t||""}st.prototype.add=function(){},st.prototype.addAll=function(){},st.prototype.isEmpty=function(){},st.prototype.iterator=function(){},st.prototype.size=function(){},st.prototype.toArray=function(){},st.prototype.remove=function(){},ut.prototype=new Error,ut.prototype.name="IndexOutOfBoundsException";var ct=function(){};ct.prototype.hasNext=function(){},ct.prototype.next=function(){},ct.prototype.remove=function(){};var lt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(){},e.prototype.set=function(){},e.prototype.isEmpty=function(){},e}(st);function ht(t){this.message=t||""}ht.prototype=new Error,ht.prototype.name="NoSuchElementException";var ft=function(t){function e(){t.call(this),this.array_=[],arguments[0]instanceof st&&this.addAll(arguments[0])}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.ensureCapacity=function(){},e.prototype.interfaces_=function(){return[t,st]},e.prototype.add=function(t){return 1===arguments.length?this.array_.push(t):this.array_.splice(arguments[0],arguments[1]),!0},e.prototype.clear=function(){this.array_=[]},e.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},e.prototype.set=function(t,e){var n=this.array_[t];return this.array_[t]=e,n},e.prototype.iterator=function(){return new pt(this)},e.prototype.get=function(t){if(t<0||t>=this.size())throw new ut;return this.array_[t]},e.prototype.isEmpty=function(){return 0===this.array_.length},e.prototype.size=function(){return this.array_.length},e.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},e.prototype.remove=function(t){for(var e=!1,n=0,r=this.array_.length;n<r;n++)if(this.array_[n]===t){this.array_.splice(n,1),e=!0;break}return e},e}(lt),pt=function(t){function e(e){t.call(this),this.arrayList_=e,this.position_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){if(this.position_===this.arrayList_.size())throw new ht;return this.arrayList_.get(this.position_++)},e.prototype.hasNext=function(){return this.position_<this.arrayList_.size()},e.prototype.set=function(t){return this.arrayList_.set(this.position_-1,t)},e.prototype.remove=function(){this.arrayList_.remove(this.arrayList_.get(this.position_))},e}(ct),dt=function(t){function e(){if(t.call(this),0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.ensureCapacity(e.length),this.add(e,!0)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.ensureCapacity(n.length),this.add(n,r)}}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={coordArrayType:{configurable:!0}};return n.coordArrayType.get=function(){return new Array(0).fill(null)},e.prototype.getCoordinate=function(t){return this.get(t)},e.prototype.addAll=function(){if(2===arguments.length){for(var e=arguments[0],n=arguments[1],r=!1,i=e.iterator();i.hasNext();)this.add(i.next(),n),r=!0;return r}return t.prototype.addAll.apply(this,arguments)},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=0;n<this.size();n++)e.add(n,this.get(n).copy());return e},e.prototype.toCoordinateArray=function(){return this.toArray(e.coordArrayType)},e.prototype.add=function(){if(1===arguments.length){var e=arguments[0];t.prototype.add.call(this,e)}else if(2===arguments.length){if(arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var n=arguments[0],r=arguments[1];return this.add(n,r,!0),!0}if(arguments[0]instanceof h&&"boolean"==typeof arguments[1]){var i=arguments[0];if(!arguments[1])if(this.size()>=1)if(this.get(this.size()-1).equals2D(i))return null;t.prototype.add.call(this,i)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var o=arguments[0],a=arguments[1];return this.add(o,a),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var s=arguments[0],u=arguments[1];if(arguments[2])for(var c=0;c<s.length;c++)this.add(s[c],u);else for(var l=s.length-1;l>=0;l--)this.add(s[l],u);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof h){var f=arguments[0],p=arguments[1];if(!arguments[2]){var d=this.size();if(d>0){if(f>0)if(this.get(f-1).equals2D(p))return null;if(f<d)if(this.get(f).equals2D(p))return null}}t.prototype.add.call(this,f,p)}}else if(4===arguments.length){var g=arguments[0],y=arguments[1],v=arguments[2],m=arguments[3],_=1;v>m&&(_=-1);for(var b=v;b!==m;b+=_)this.add(g[b],y);return!0}},e.prototype.closeRing=function(){this.size()>0&&this.add(new h(this.get(0)),!1)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},Object.defineProperties(e,n),e}(ft),gt=function(){},yt={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};yt.ForwardComparator.get=function(){return vt},yt.BidirectionalComparator.get=function(){return mt},yt.coordArrayType.get=function(){return new Array(0).fill(null)},gt.prototype.interfaces_=function(){return[]},gt.prototype.getClass=function(){return gt},gt.isRing=function(t){return!(t.length<4)&&!!t[0].equals2D(t[t.length-1])},gt.ptNotInList=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(gt.indexOf(r,e)<0)return r}return null},gt.scroll=function(t,e){var n=gt.indexOf(e,t);if(n<0)return null;var r=new Array(t.length).fill(null);L.arraycopy(t,n,r,0,t.length-n),L.arraycopy(t,0,r,t.length-n,n),L.arraycopy(r,0,t,0,t.length)},gt.equals=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];if(t===e)return!0;if(null===t||null===e)return!1;if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].equals(e[n]))return!1;return!0}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];if(r===i)return!0;if(null===r||null===i)return!1;if(r.length!==i.length)return!1;for(var a=0;a<r.length;a++)if(0!==o.compare(r[a],i[a]))return!1;return!0}},gt.intersection=function(t,e){for(var n=new dt,r=0;r<t.length;r++)e.intersects(t[r])&&n.add(t[r],!0);return n.toCoordinateArray()},gt.hasRepeatedPoints=function(t){for(var e=1;e<t.length;e++)if(t[e-1].equals(t[e]))return!0;return!1},gt.removeRepeatedPoints=function(t){return gt.hasRepeatedPoints(t)?new dt(t,!1).toCoordinateArray():t},gt.reverse=function(t){for(var e=t.length-1,n=Math.trunc(e/2),r=0;r<=n;r++){var i=t[r];t[r]=t[e-r],t[e-r]=i}},gt.removeNull=function(t){for(var e=0,n=0;n<t.length;n++)null!==t[n]&&e++;var r=new Array(e).fill(null);if(0===e)return r;for(var i=0,o=0;o<t.length;o++)null!==t[o]&&(r[i++]=t[o]);return r},gt.copyDeep=function(){if(1===arguments.length){for(var t=arguments[0],e=new Array(t.length).fill(null),n=0;n<t.length;n++)e[n]=new h(t[n]);return e}if(5===arguments.length)for(var r=arguments[0],i=arguments[1],o=arguments[2],a=arguments[3],s=arguments[4],u=0;u<s;u++)o[a+u]=new h(r[i+u])},gt.isEqualReversed=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[t.length-n-1];if(0!==r.compareTo(i))return!1}return!0},gt.envelope=function(t){for(var e=new N,n=0;n<t.length;n++)e.expandToInclude(t[n]);return e},gt.toCoordinateArray=function(t){return t.toArray(gt.coordArrayType)},gt.atLeastNCoordinatesOrNothing=function(t,e){return e.length>=t?e:[]},gt.indexOf=function(t,e){for(var n=0;n<e.length;n++)if(t.equals(e[n]))return n;return-1},gt.increasingDirection=function(t){for(var e=0;e<Math.trunc(t.length/2);e++){var n=t.length-1-e,r=t[e].compareTo(t[n]);if(0!==r)return r}return 1},gt.compare=function(t,e){for(var n=0;n<t.length&&n<e.length;){var r=t[n].compareTo(e[n]);if(0!==r)return r;n++}return n<e.length?-1:n<t.length?1:0},gt.minCoordinate=function(t){for(var e=null,n=0;n<t.length;n++)(null===e||e.compareTo(t[n])>0)&&(e=t[n]);return e},gt.extract=function(t,e,n){e=m.clamp(e,0,t.length);var r=(n=m.clamp(n,-1,t.length))-e+1;n<0&&(r=0),e>=t.length&&(r=0),n<e&&(r=0);var i=new Array(r).fill(null);if(0===r)return i;for(var o=0,a=e;a<=n;a++)i[o++]=t[a];return i},Object.defineProperties(gt,yt);var vt=function(){};vt.prototype.compare=function(t,e){return gt.compare(t,e)},vt.prototype.interfaces_=function(){return[c]},vt.prototype.getClass=function(){return vt};var mt=function(){};mt.prototype.compare=function(t,e){var n=t,r=e;if(n.length<r.length)return-1;if(n.length>r.length)return 1;if(0===n.length)return 0;var i=gt.compare(n,r);return gt.isEqualReversed(n,r)?0:i},mt.prototype.OLDcompare=function(t,e){var n=t,r=e;if(n.length<r.length)return-1;if(n.length>r.length)return 1;if(0===n.length)return 0;for(var i=gt.increasingDirection(n),o=gt.increasingDirection(r),a=i>0?0:n.length-1,s=o>0?0:n.length-1,u=0;u<n.length;u++){var c=n[a].compareTo(r[s]);if(0!==c)return c;a+=i,s+=o}return 0},mt.prototype.interfaces_=function(){return[c]},mt.prototype.getClass=function(){return mt};var _t=function(){};_t.prototype.get=function(){},_t.prototype.put=function(){},_t.prototype.size=function(){},_t.prototype.values=function(){},_t.prototype.entrySet=function(){};var bt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_t);function wt(t){this.message=t||""}function Et(){}wt.prototype=new Error,wt.prototype.name="OperationNotSupported",Et.prototype=new st,Et.prototype.contains=function(){};var xt=function(t){function e(){t.call(this),this.array_=[],arguments[0]instanceof st&&this.addAll(arguments[0])}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.contains=function(t){for(var e=0,n=this.array_.length;e<n;e++){if(this.array_[e]===t)return!0}return!1},e.prototype.add=function(t){return!this.contains(t)&&(this.array_.push(t),!0)},e.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},e.prototype.remove=function(t){throw new Error},e.prototype.size=function(){return this.array_.length},e.prototype.isEmpty=function(){return 0===this.array_.length},e.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},e.prototype.iterator=function(){return new Ot(this)},e}(Et),Ot=function(t){function e(e){t.call(this),this.hashSet_=e,this.position_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){if(this.position_===this.hashSet_.size())throw new ht;return this.hashSet_.array_[this.position_++]},e.prototype.hasNext=function(){return this.position_<this.hashSet_.size()},e.prototype.remove=function(){throw new wt},e}(ct),Mt=0;function St(t){return null===t?Mt:t.color}function Pt(t){return null===t?null:t.parent}function Ct(t,e){null!==t&&(t.color=e)}function Tt(t){return null===t?null:t.left}function It(t){return null===t?null:t.right}function Lt(){this.root_=null,this.size_=0}Lt.prototype=new bt,Lt.prototype.get=function(t){for(var e=this.root_;null!==e;){var n=t.compareTo(e.key);if(n<0)e=e.left;else{if(!(n>0))return e.value;e=e.right}}return null},Lt.prototype.put=function(t,e){if(null===this.root_)return this.root_={key:t,value:e,left:null,right:null,parent:null,color:Mt,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,r,i=this.root_;do{if(n=i,(r=t.compareTo(i.key))<0)i=i.left;else{if(!(r>0)){var o=i.value;return i.value=e,o}i=i.right}}while(null!==i);var a={key:t,left:null,right:null,value:e,parent:n,color:Mt,getValue:function(){return this.value},getKey:function(){return this.key}};return r<0?n.left=a:n.right=a,this.fixAfterInsertion(a),this.size_++,null},Lt.prototype.fixAfterInsertion=function(t){for(t.color=1;null!=t&&t!==this.root_&&1===t.parent.color;)if(Pt(t)===Tt(Pt(Pt(t)))){var e=It(Pt(Pt(t)));1===St(e)?(Ct(Pt(t),Mt),Ct(e,Mt),Ct(Pt(Pt(t)),1),t=Pt(Pt(t))):(t===It(Pt(t))&&(t=Pt(t),this.rotateLeft(t)),Ct(Pt(t),Mt),Ct(Pt(Pt(t)),1),this.rotateRight(Pt(Pt(t))))}else{var n=Tt(Pt(Pt(t)));1===St(n)?(Ct(Pt(t),Mt),Ct(n,Mt),Ct(Pt(Pt(t)),1),t=Pt(Pt(t))):(t===Tt(Pt(t))&&(t=Pt(t),this.rotateRight(t)),Ct(Pt(t),Mt),Ct(Pt(Pt(t)),1),this.rotateLeft(Pt(Pt(t))))}this.root_.color=Mt},Lt.prototype.values=function(){var t=new ft,e=this.getFirstEntry();if(null!==e)for(t.add(e.value);null!==(e=Lt.successor(e));)t.add(e.value);return t},Lt.prototype.entrySet=function(){var t=new xt,e=this.getFirstEntry();if(null!==e)for(t.add(e);null!==(e=Lt.successor(e));)t.add(e);return t},Lt.prototype.rotateLeft=function(t){if(null!=t){var e=t.right;t.right=e.left,null!=e.left&&(e.left.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.left===t?t.parent.left=e:t.parent.right=e,e.left=t,t.parent=e}},Lt.prototype.rotateRight=function(t){if(null!=t){var e=t.left;t.left=e.right,null!=e.right&&(e.right.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.right===t?t.parent.right=e:t.parent.left=e,e.right=t,t.parent=e}},Lt.prototype.getFirstEntry=function(){var t=this.root_;if(null!=t)for(;null!=t.left;)t=t.left;return t},Lt.successor=function(t){if(null===t)return null;if(null!==t.right){for(var e=t.right;null!==e.left;)e=e.left;return e}for(var n=t.parent,r=t;null!==n&&r===n.right;)r=n,n=n.parent;return n},Lt.prototype.size=function(){return this.size_};var At=function(){};function Nt(){}function kt(){this.array_=[],arguments[0]instanceof st&&this.addAll(arguments[0])}At.prototype.interfaces_=function(){return[]},At.prototype.getClass=function(){return At},Nt.prototype=new Et,kt.prototype=new Nt,kt.prototype.contains=function(t){for(var e=0,n=this.array_.length;e<n;e++){if(0===this.array_[e].compareTo(t))return!0}return!1},kt.prototype.add=function(t){if(this.contains(t))return!1;for(var e=0,n=this.array_.length;e<n;e++){if(1===this.array_[e].compareTo(t))return this.array_.splice(e,0,t),!0}return this.array_.push(t),!0},kt.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},kt.prototype.remove=function(t){throw new wt},kt.prototype.size=function(){return this.array_.length},kt.prototype.isEmpty=function(){return 0===this.array_.length},kt.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},kt.prototype.iterator=function(){return new jt(this)};var jt=function(t){this.treeSet_=t,this.position_=0};jt.prototype.next=function(){if(this.position_===this.treeSet_.size())throw new ht;return this.treeSet_.array_[this.position_++]},jt.prototype.hasNext=function(){return this.position_<this.treeSet_.size()},jt.prototype.remove=function(){throw new wt};var Rt=function(){};Rt.sort=function(){var t,e,n,r,i=arguments[0];if(1===arguments.length)r=function(t,e){return t.compareTo(e)},i.sort(r);else if(2===arguments.length)n=arguments[1],r=function(t,e){return n.compare(t,e)},i.sort(r);else if(3===arguments.length){(e=i.slice(arguments[1],arguments[2])).sort();var o=i.slice(0,arguments[1]).concat(e,i.slice(arguments[2],i.length));for(i.splice(0,i.length),t=0;t<o.length;t++)i.push(o[t])}else if(4===arguments.length)for(e=i.slice(arguments[1],arguments[2]),n=arguments[3],r=function(t,e){return n.compare(t,e)},e.sort(r),o=i.slice(0,arguments[1]).concat(e,i.slice(arguments[2],i.length)),i.splice(0,i.length),t=0;t<o.length;t++)i.push(o[t])},Rt.asList=function(t){for(var e=new ft,n=0,r=t.length;n<r;n++)e.add(t[n]);return e};var Dt=function(){},Ft={P:{configurable:!0},L:{configurable:!0},A:{configurable:!0},FALSE:{configurable:!0},TRUE:{configurable:!0},DONTCARE:{configurable:!0},SYM_FALSE:{configurable:!0},SYM_TRUE:{configurable:!0},SYM_DONTCARE:{configurable:!0},SYM_P:{configurable:!0},SYM_L:{configurable:!0},SYM_A:{configurable:!0}};Ft.P.get=function(){return 0},Ft.L.get=function(){return 1},Ft.A.get=function(){return 2},Ft.FALSE.get=function(){return-1},Ft.TRUE.get=function(){return-2},Ft.DONTCARE.get=function(){return-3},Ft.SYM_FALSE.get=function(){return"F"},Ft.SYM_TRUE.get=function(){return"T"},Ft.SYM_DONTCARE.get=function(){return"*"},Ft.SYM_P.get=function(){return"0"},Ft.SYM_L.get=function(){return"1"},Ft.SYM_A.get=function(){return"2"},Dt.prototype.interfaces_=function(){return[]},Dt.prototype.getClass=function(){return Dt},Dt.toDimensionSymbol=function(t){switch(t){case Dt.FALSE:return Dt.SYM_FALSE;case Dt.TRUE:return Dt.SYM_TRUE;case Dt.DONTCARE:return Dt.SYM_DONTCARE;case Dt.P:return Dt.SYM_P;case Dt.L:return Dt.SYM_L;case Dt.A:return Dt.SYM_A}throw new i("Unknown dimension value: "+t)},Dt.toDimensionValue=function(t){switch(E.toUpperCase(t)){case Dt.SYM_FALSE:return Dt.FALSE;case Dt.SYM_TRUE:return Dt.TRUE;case Dt.SYM_DONTCARE:return Dt.DONTCARE;case Dt.SYM_P:return Dt.P;case Dt.SYM_L:return Dt.L;case Dt.SYM_A:return Dt.A}throw new i("Unknown dimension symbol: "+t)},Object.defineProperties(Dt,Ft);var zt=function(){};zt.prototype.filter=function(t){},zt.prototype.interfaces_=function(){return[]},zt.prototype.getClass=function(){return zt};var Bt=function(){};Bt.prototype.filter=function(t,e){},Bt.prototype.isDone=function(){},Bt.prototype.isGeometryChanged=function(){},Bt.prototype.interfaces_=function(){return[]},Bt.prototype.getClass=function(){return Bt};var qt=function(t){function e(e,n){if(t.call(this,n),this._geometries=e||[],t.hasNullElements(this._geometries))throw new i("geometries must not contain null elements")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){for(var t=new N,e=0;e<this._geometries.length;e++)t.expandToInclude(this._geometries[e].getEnvelopeInternal());return t},e.prototype.getGeometryN=function(t){return this._geometries[t]},e.prototype.getSortIndex=function(){return t.SORTINDEX_GEOMETRYCOLLECTION},e.prototype.getCoordinates=function(){for(var t=new Array(this.getNumPoints()).fill(null),e=-1,n=0;n<this._geometries.length;n++)for(var r=this._geometries[n].getCoordinates(),i=0;i<r.length;i++)t[++e]=r[i];return t},e.prototype.getArea=function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getArea();return t},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];if(!this.isEquivalentClass(e))return!1;var r=e;if(this._geometries.length!==r._geometries.length)return!1;for(var i=0;i<this._geometries.length;i++)if(!this._geometries[i].equalsExact(r._geometries[i],n))return!1;return!0}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){for(var t=0;t<this._geometries.length;t++)this._geometries[t].normalize();Rt.sort(this._geometries)},e.prototype.getCoordinate=function(){return this.isEmpty()?null:this._geometries[0].getCoordinate()},e.prototype.getBoundaryDimension=function(){for(var t=Dt.FALSE,e=0;e<this._geometries.length;e++)t=Math.max(t,this._geometries[e].getBoundaryDimension());return t},e.prototype.getDimension=function(){for(var t=Dt.FALSE,e=0;e<this._geometries.length;e++)t=Math.max(t,this._geometries[e].getDimension());return t},e.prototype.getLength=function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getLength();return t},e.prototype.getNumPoints=function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getNumPoints();return t},e.prototype.getNumGeometries=function(){return this._geometries.length},e.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n<this._geometries.length;n++)e[n]=this._geometries[n].reverse();return this.getFactory().createGeometryCollection(e)},e.prototype.compareToSameClass=function(){if(1===arguments.length){var t=arguments[0],e=new kt(Rt.asList(this._geometries)),n=new kt(Rt.asList(t._geometries));return this.compare(e,n)}if(2===arguments.length){for(var r=arguments[0],i=arguments[1],o=r,a=this.getNumGeometries(),s=o.getNumGeometries(),u=0;u<a&&u<s;){var c=this.getGeometryN(u),l=o.getGeometryN(u),h=c.compareToSameClass(l,i);if(0!==h)return h;u++}return u<a?1:u<s?-1:0}},e.prototype.apply=function(){if(v(arguments[0],tt))for(var t=arguments[0],e=0;e<this._geometries.length;e++)this._geometries[e].apply(t);else if(v(arguments[0],Bt)){var n=arguments[0];if(0===this._geometries.length)return null;for(var r=0;r<this._geometries.length&&(this._geometries[r].apply(n),!n.isDone());r++);n.isGeometryChanged()&&this.geometryChanged()}else if(v(arguments[0],zt)){var i=arguments[0];i.filter(this);for(var o=0;o<this._geometries.length;o++)this._geometries[o].apply(i)}else if(v(arguments[0],W)){var a=arguments[0];a.filter(this);for(var s=0;s<this._geometries.length;s++)this._geometries[s].apply(a)}},e.prototype.getBoundary=function(){return this.checkNotGeometryCollection(this),G.shouldNeverReachHere(),null},e.prototype.clone=function(){var e=t.prototype.clone.call(this);e._geometries=new Array(this._geometries.length).fill(null);for(var n=0;n<this._geometries.length;n++)e._geometries[n]=this._geometries[n].clone();return e},e.prototype.getGeometryType=function(){return"GeometryCollection"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.isEmpty=function(){for(var t=0;t<this._geometries.length;t++)if(!this._geometries[t].isEmpty())return!1;return!0},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x4f07bcb1f857d800},Object.defineProperties(e,n),e}(K),Gt=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return K.SORTINDEX_MULTILINESTRING},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&t.prototype.equalsExact.call(this,e,n)}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return this.isClosed()?Dt.FALSE:0},e.prototype.isClosed=function(){if(this.isEmpty())return!1;for(var t=0;t<this._geometries.length;t++)if(!this._geometries[t].isClosed())return!1;return!0},e.prototype.getDimension=function(){return 1},e.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n<this._geometries.length;n++)e[t-1-n]=this._geometries[n].reverse();return this.getFactory().createMultiLineString(e)},e.prototype.getBoundary=function(){return new Ut(this).getBoundary()},e.prototype.getGeometryType=function(){return"MultiLineString"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.interfaces_=function(){return[At]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return 0x7155d2ab4afa8000},Object.defineProperties(e,n),e}(qt),Ut=function(){if(this._geom=null,this._geomFact=null,this._bnRule=null,this._endpointMap=null,1===arguments.length){var t=arguments[0],e=et.MOD2_BOUNDARY_RULE;this._geom=t,this._geomFact=t.getFactory(),this._bnRule=e}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this._geom=n,this._geomFact=n.getFactory(),this._bnRule=r}};Ut.prototype.boundaryMultiLineString=function(t){if(this._geom.isEmpty())return this.getEmptyMultiPoint();var e=this.computeBoundaryCoordinates(t);return 1===e.length?this._geomFact.createPoint(e[0]):this._geomFact.createMultiPointFromCoords(e)},Ut.prototype.getBoundary=function(){return this._geom instanceof Zt?this.boundaryLineString(this._geom):this._geom instanceof Gt?this.boundaryMultiLineString(this._geom):this._geom.getBoundary()},Ut.prototype.boundaryLineString=function(t){return this._geom.isEmpty()?this.getEmptyMultiPoint():t.isClosed()?this._bnRule.isInBoundary(2)?t.getStartPoint():this._geomFact.createMultiPoint():this._geomFact.createMultiPoint([t.getStartPoint(),t.getEndPoint()])},Ut.prototype.getEmptyMultiPoint=function(){return this._geomFact.createMultiPoint()},Ut.prototype.computeBoundaryCoordinates=function(t){var e=new ft;this._endpointMap=new Lt;for(var n=0;n<t.getNumGeometries();n++){var r=t.getGeometryN(n);0!==r.getNumPoints()&&(this.addEndpoint(r.getCoordinateN(0)),this.addEndpoint(r.getCoordinateN(r.getNumPoints()-1)))}for(var i=this._endpointMap.entrySet().iterator();i.hasNext();){var o=i.next(),a=o.getValue().count;this._bnRule.isInBoundary(a)&&e.add(o.getKey())}return gt.toCoordinateArray(e)},Ut.prototype.addEndpoint=function(t){var e=this._endpointMap.get(t);null===e&&(e=new Vt,this._endpointMap.put(t,e)),e.count++},Ut.prototype.interfaces_=function(){return[]},Ut.prototype.getClass=function(){return Ut},Ut.getBoundary=function(){if(1===arguments.length){var t=arguments[0];return new Ut(t).getBoundary()}if(2===arguments.length){var e=arguments[0],n=arguments[1];return new Ut(e,n).getBoundary()}};var Vt=function(){this.count=null};Vt.prototype.interfaces_=function(){return[]},Vt.prototype.getClass=function(){return Vt};function Jt(){}var Ht=function(){},Yt={NEWLINE:{configurable:!0},SIMPLE_ORDINATE_FORMAT:{configurable:!0}};Ht.prototype.interfaces_=function(){return[]},Ht.prototype.getClass=function(){return Ht},Ht.chars=function(t,e){for(var n=new Array(e).fill(null),r=0;r<e;r++)n[r]=t;return String(n)},Ht.getStackTrace=function(){if(1===arguments.length){var t=arguments[0],e=new function(){},n=new function(){}(e);return t.printStackTrace(n),e.toString()}if(2===arguments.length){for(var r=arguments[0],i=arguments[1],o="",a=new function(){}(new function(){}(Ht.getStackTrace(r))),s=0;s<i;s++)try{o+=a.readLine()+Ht.NEWLINE}catch(t){if(!(t instanceof Jt))throw t;G.shouldNeverReachHere()}return o}},Ht.split=function(t,e){for(var n=e.length,r=new ft,i=""+t,o=i.indexOf(e);o>=0;){var a=i.substring(0,o);r.add(a),o=(i=i.substring(o+n)).indexOf(e)}i.length>0&&r.add(i);for(var s=new Array(r.size()).fill(null),u=0;u<s.length;u++)s[u]=r.get(u);return s},Ht.toString=function(){if(1===arguments.length){var t=arguments[0];return Ht.SIMPLE_ORDINATE_FORMAT.format(t)}},Ht.spaces=function(t){return Ht.chars(" ",t)},Yt.NEWLINE.get=function(){return L.getProperty("line.separator")},Yt.SIMPLE_ORDINATE_FORMAT.get=function(){return new function(){}("0.#")},Object.defineProperties(Ht,Yt);var Xt=function(){};Xt.prototype.interfaces_=function(){return[]},Xt.prototype.getClass=function(){return Xt},Xt.copyCoord=function(t,e,n,r){for(var i=Math.min(t.getDimension(),n.getDimension()),o=0;o<i;o++)n.setOrdinate(r,o,t.getOrdinate(e,o))},Xt.isRing=function(t){var e=t.size();return 0===e||!(e<=3)&&(t.getOrdinate(0,P.X)===t.getOrdinate(e-1,P.X)&&t.getOrdinate(0,P.Y)===t.getOrdinate(e-1,P.Y))},Xt.isEqual=function(t,e){var n=t.size();if(n!==e.size())return!1;for(var r=Math.min(t.getDimension(),e.getDimension()),i=0;i<n;i++)for(var a=0;a<r;a++){var s=t.getOrdinate(i,a),u=e.getOrdinate(i,a);if(t.getOrdinate(i,a)!==e.getOrdinate(i,a)&&(!o.isNaN(s)||!o.isNaN(u)))return!1}return!0},Xt.extend=function(t,e,n){var r=t.create(n,e.getDimension()),i=e.size();if(Xt.copy(e,0,r,0,i),i>0)for(var o=i;o<n;o++)Xt.copy(e,i-1,r,o,1);return r},Xt.reverse=function(t){for(var e=t.size()-1,n=Math.trunc(e/2),r=0;r<=n;r++)Xt.swap(t,r,e-r)},Xt.swap=function(t,e,n){if(e===n)return null;for(var r=0;r<t.getDimension();r++){var i=t.getOrdinate(e,r);t.setOrdinate(e,r,t.getOrdinate(n,r)),t.setOrdinate(n,r,i)}},Xt.copy=function(t,e,n,r,i){for(var o=0;o<i;o++)Xt.copyCoord(t,e+o,n,r+o)},Xt.toString=function(){if(1===arguments.length){var t=arguments[0],e=t.size();if(0===e)return"()";var n=t.getDimension(),r=new b;r.append("(");for(var i=0;i<e;i++){i>0&&r.append(" ");for(var o=0;o<n;o++)o>0&&r.append(","),r.append(Ht.toString(t.getOrdinate(i,o)))}return r.append(")"),r.toString()}},Xt.ensureValidRing=function(t,e){var n=e.size();return 0===n?e:n<=3?Xt.createClosedRing(t,e,4):e.getOrdinate(0,P.X)===e.getOrdinate(n-1,P.X)&&e.getOrdinate(0,P.Y)===e.getOrdinate(n-1,P.Y)?e:Xt.createClosedRing(t,e,n+1)},Xt.createClosedRing=function(t,e,n){var r=t.create(n,e.getDimension()),i=e.size();Xt.copy(e,0,r,0,i);for(var o=i;o<n;o++)Xt.copy(e,0,r,o,1);return r};var Zt=function(t){function e(e,n){t.call(this,n),this._points=null,this.init(e)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){return this.isEmpty()?new N:this._points.expandEnvelope(new N)},e.prototype.isRing=function(){return this.isClosed()&&this.isSimple()},e.prototype.getSortIndex=function(){return t.SORTINDEX_LINESTRING},e.prototype.getCoordinates=function(){return this._points.toCoordinateArray()},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];if(!this.isEquivalentClass(e))return!1;var r=e;if(this._points.size()!==r._points.size())return!1;for(var i=0;i<this._points.size();i++)if(!this.equal(this._points.getCoordinate(i),r._points.getCoordinate(i),n))return!1;return!0}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){for(var t=0;t<Math.trunc(this._points.size()/2);t++){var e=this._points.size()-1-t;if(!this._points.getCoordinate(t).equals(this._points.getCoordinate(e)))return this._points.getCoordinate(t).compareTo(this._points.getCoordinate(e))>0&&Xt.reverse(this._points),null}},e.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},e.prototype.getBoundaryDimension=function(){return this.isClosed()?Dt.FALSE:0},e.prototype.isClosed=function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},e.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},e.prototype.getDimension=function(){return 1},e.prototype.getLength=function(){return X.computeLength(this._points)},e.prototype.getNumPoints=function(){return this._points.size()},e.prototype.reverse=function(){var t=this._points.copy();return Xt.reverse(t),this.getFactory().createLineString(t)},e.prototype.compareToSameClass=function(){if(1===arguments.length){for(var t=arguments[0],e=0,n=0;e<this._points.size()&&n<t._points.size();){var r=this._points.getCoordinate(e).compareTo(t._points.getCoordinate(n));if(0!==r)return r;e++,n++}return e<this._points.size()?1:n<t._points.size()?-1:0}if(2===arguments.length){var i=arguments[0];return arguments[1].compare(this._points,i._points)}},e.prototype.apply=function(){if(v(arguments[0],tt))for(var t=arguments[0],e=0;e<this._points.size();e++)t.filter(this._points.getCoordinate(e));else if(v(arguments[0],Bt)){var n=arguments[0];if(0===this._points.size())return null;for(var r=0;r<this._points.size()&&(n.filter(this._points,r),!n.isDone());r++);n.isGeometryChanged()&&this.geometryChanged()}else if(v(arguments[0],zt)){arguments[0].filter(this)}else if(v(arguments[0],W)){arguments[0].filter(this)}},e.prototype.getBoundary=function(){return new Ut(this).getBoundary()},e.prototype.isEquivalentClass=function(t){return t instanceof e},e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e._points=this._points.clone(),e},e.prototype.getCoordinateN=function(t){return this._points.getCoordinate(t)},e.prototype.getGeometryType=function(){return"LineString"},e.prototype.copy=function(){return new e(this._points.copy(),this._factory)},e.prototype.getCoordinateSequence=function(){return this._points},e.prototype.isEmpty=function(){return 0===this._points.size()},e.prototype.init=function(t){if(null===t&&(t=this.getFactory().getCoordinateSequenceFactory().create([])),1===t.size())throw new i("Invalid number of points in LineString (found "+t.size()+" - must be 0 or >= 2)");this._points=t},e.prototype.isCoordinate=function(t){for(var e=0;e<this._points.size();e++)if(this._points.getCoordinate(e).equals(t))return!0;return!1},e.prototype.getStartPoint=function(){return this.isEmpty()?null:this.getPointN(0)},e.prototype.getPointN=function(t){return this.getFactory().createPoint(this._points.getCoordinate(t))},e.prototype.interfaces_=function(){return[At]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return 0x2b2b51ba435c8e00},Object.defineProperties(e,n),e}(K),Wt=function(){};Wt.prototype.interfaces_=function(){return[]},Wt.prototype.getClass=function(){return Wt};var Kt=function(t){function e(e,n){t.call(this,n),this._coordinates=e||null,this.init(this._coordinates)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){if(this.isEmpty())return new N;var t=new N;return t.expandToInclude(this._coordinates.getX(0),this._coordinates.getY(0)),t},e.prototype.getSortIndex=function(){return t.SORTINDEX_POINT},e.prototype.getCoordinates=function(){return this.isEmpty()?[]:[this.getCoordinate()]},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&(!(!this.isEmpty()||!e.isEmpty())||this.isEmpty()===e.isEmpty()&&this.equal(e.getCoordinate(),this.getCoordinate(),n))}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){},e.prototype.getCoordinate=function(){return 0!==this._coordinates.size()?this._coordinates.getCoordinate(0):null},e.prototype.getBoundaryDimension=function(){return Dt.FALSE},e.prototype.getDimension=function(){return 0},e.prototype.getNumPoints=function(){return this.isEmpty()?0:1},e.prototype.reverse=function(){return this.copy()},e.prototype.getX=function(){if(null===this.getCoordinate())throw new Error("getX called on empty Point");return this.getCoordinate().x},e.prototype.compareToSameClass=function(){if(1===arguments.length){var t=arguments[0];return this.getCoordinate().compareTo(t.getCoordinate())}if(2===arguments.length){var e=arguments[0];return arguments[1].compare(this._coordinates,e._coordinates)}},e.prototype.apply=function(){if(v(arguments[0],tt)){var t=arguments[0];if(this.isEmpty())return null;t.filter(this.getCoordinate())}else if(v(arguments[0],Bt)){var e=arguments[0];if(this.isEmpty())return null;e.filter(this._coordinates,0),e.isGeometryChanged()&&this.geometryChanged()}else if(v(arguments[0],zt)){arguments[0].filter(this)}else if(v(arguments[0],W)){arguments[0].filter(this)}},e.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e._coordinates=this._coordinates.clone(),e},e.prototype.getGeometryType=function(){return"Point"},e.prototype.copy=function(){return new e(this._coordinates.copy(),this._factory)},e.prototype.getCoordinateSequence=function(){return this._coordinates},e.prototype.getY=function(){if(null===this.getCoordinate())throw new Error("getY called on empty Point");return this.getCoordinate().y},e.prototype.isEmpty=function(){return 0===this._coordinates.size()},e.prototype.init=function(t){null===t&&(t=this.getFactory().getCoordinateSequenceFactory().create([])),G.isTrue(t.size()<=1),this._coordinates=t},e.prototype.isSimple=function(){return!0},e.prototype.interfaces_=function(){return[Wt]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return 0x44077bad161cbc00},Object.defineProperties(e,n),e}(K),Qt=function(){};Qt.prototype.interfaces_=function(){return[]},Qt.prototype.getClass=function(){return Qt};var $t=function(t){function e(e,n,r){if(t.call(this,r),this._shell=null,this._holes=null,null===e&&(e=this.getFactory().createLinearRing()),null===n&&(n=[]),t.hasNullElements(n))throw new i("holes must not contain null elements");if(e.isEmpty()&&t.hasNonEmptyElements(n))throw new i("shell is empty but holes are not");this._shell=e,this._holes=n}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){return this._shell.getEnvelopeInternal()},e.prototype.getSortIndex=function(){return t.SORTINDEX_POLYGON},e.prototype.getCoordinates=function(){if(this.isEmpty())return[];for(var t=new Array(this.getNumPoints()).fill(null),e=-1,n=this._shell.getCoordinates(),r=0;r<n.length;r++)t[++e]=n[r];for(var i=0;i<this._holes.length;i++)for(var o=this._holes[i].getCoordinates(),a=0;a<o.length;a++)t[++e]=o[a];return t},e.prototype.getArea=function(){var t=0;t+=Math.abs(X.signedArea(this._shell.getCoordinateSequence()));for(var e=0;e<this._holes.length;e++)t-=Math.abs(X.signedArea(this._holes[e].getCoordinateSequence()));return t},e.prototype.isRectangle=function(){if(0!==this.getNumInteriorRing())return!1;if(null===this._shell)return!1;if(5!==this._shell.getNumPoints())return!1;for(var t=this._shell.getCoordinateSequence(),e=this.getEnvelopeInternal(),n=0;n<5;n++){var r=t.getX(n);if(r!==e.getMinX()&&r!==e.getMaxX())return!1;var i=t.getY(n);if(i!==e.getMinY()&&i!==e.getMaxY())return!1}for(var o=t.getX(0),a=t.getY(0),s=1;s<=4;s++){var u=t.getX(s),c=t.getY(s);if(u!==o===(c!==a))return!1;o=u,a=c}return!0},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];if(!this.isEquivalentClass(e))return!1;var r=e,i=this._shell,o=r._shell;if(!i.equalsExact(o,n))return!1;if(this._holes.length!==r._holes.length)return!1;for(var a=0;a<this._holes.length;a++)if(!this._holes[a].equalsExact(r._holes[a],n))return!1;return!0}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){if(0===arguments.length){this.normalize(this._shell,!0);for(var t=0;t<this._holes.length;t++)this.normalize(this._holes[t],!1);Rt.sort(this._holes)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(e.isEmpty())return null;var r=new Array(e.getCoordinates().length-1).fill(null);L.arraycopy(e.getCoordinates(),0,r,0,r.length);var i=gt.minCoordinate(e.getCoordinates());gt.scroll(r,i),L.arraycopy(r,0,e.getCoordinates(),0,r.length),e.getCoordinates()[r.length]=r[0],X.isCCW(e.getCoordinates())===n&&gt.reverse(e.getCoordinates())}},e.prototype.getCoordinate=function(){return this._shell.getCoordinate()},e.prototype.getNumInteriorRing=function(){return this._holes.length},e.prototype.getBoundaryDimension=function(){return 1},e.prototype.getDimension=function(){return 2},e.prototype.getLength=function(){var t=0;t+=this._shell.getLength();for(var e=0;e<this._holes.length;e++)t+=this._holes[e].getLength();return t},e.prototype.getNumPoints=function(){for(var t=this._shell.getNumPoints(),e=0;e<this._holes.length;e++)t+=this._holes[e].getNumPoints();return t},e.prototype.reverse=function(){var t=this.copy();t._shell=this._shell.copy().reverse(),t._holes=new Array(this._holes.length).fill(null);for(var e=0;e<this._holes.length;e++)t._holes[e]=this._holes[e].copy().reverse();return t},e.prototype.convexHull=function(){return this.getExteriorRing().convexHull()},e.prototype.compareToSameClass=function(){if(1===arguments.length){var t=arguments[0],e=this._shell,n=t._shell;return e.compareToSameClass(n)}if(2===arguments.length){var r=arguments[0],i=arguments[1],o=r,a=this._shell,s=o._shell,u=a.compareToSameClass(s,i);if(0!==u)return u;for(var c=this.getNumInteriorRing(),l=o.getNumInteriorRing(),h=0;h<c&&h<l;){var f=this.getInteriorRingN(h),p=o.getInteriorRingN(h),d=f.compareToSameClass(p,i);if(0!==d)return d;h++}return h<c?1:h<l?-1:0}},e.prototype.apply=function(t){if(v(t,tt)){this._shell.apply(t);for(var e=0;e<this._holes.length;e++)this._holes[e].apply(t)}else if(v(t,Bt)){if(this._shell.apply(t),!t.isDone())for(var n=0;n<this._holes.length&&(this._holes[n].apply(t),!t.isDone());n++);t.isGeometryChanged()&&this.geometryChanged()}else if(v(t,zt))t.filter(this);else if(v(t,W)){t.filter(this),this._shell.apply(t);for(var r=0;r<this._holes.length;r++)this._holes[r].apply(t)}},e.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();var t=new Array(this._holes.length+1).fill(null);t[0]=this._shell;for(var e=0;e<this._holes.length;e++)t[e+1]=this._holes[e];return t.length<=1?this.getFactory().createLinearRing(t[0].getCoordinateSequence()):this.getFactory().createMultiLineString(t)},e.prototype.clone=function(){var e=t.prototype.clone.call(this);e._shell=this._shell.clone(),e._holes=new Array(this._holes.length).fill(null);for(var n=0;n<this._holes.length;n++)e._holes[n]=this._holes[n].clone();return e},e.prototype.getGeometryType=function(){return"Polygon"},e.prototype.copy=function(){for(var t=this._shell.copy(),n=new Array(this._holes.length).fill(null),r=0;r<n.length;r++)n[r]=this._holes[r].copy();return new e(t,n,this._factory)},e.prototype.getExteriorRing=function(){return this._shell},e.prototype.isEmpty=function(){return this._shell.isEmpty()},e.prototype.getInteriorRingN=function(t){return this._holes[t]},e.prototype.interfaces_=function(){return[Qt]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x307ffefd8dc97200},Object.defineProperties(e,n),e}(K),te=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return K.SORTINDEX_MULTIPOINT},e.prototype.isValid=function(){return!0},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&t.prototype.equalsExact.call(this,e,n)}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.getCoordinate=function(){if(1===arguments.length){var e=arguments[0];return this._geometries[e].getCoordinate()}return t.prototype.getCoordinate.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return Dt.FALSE},e.prototype.getDimension=function(){return 0},e.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},e.prototype.getGeometryType=function(){return"MultiPoint"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.interfaces_=function(){return[Wt]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x6fb1ed4162e0fc00},Object.defineProperties(e,n),e}(qt),ee=function(t){function e(e,n){e instanceof h&&n instanceof ve&&(e=n.getCoordinateSequenceFactory().create(e)),t.call(this,e,n),this.validateConstruction()}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={MINIMUM_VALID_SIZE:{configurable:!0},serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return K.SORTINDEX_LINEARRING},e.prototype.getBoundaryDimension=function(){return Dt.FALSE},e.prototype.isClosed=function(){return!!this.isEmpty()||t.prototype.isClosed.call(this)},e.prototype.reverse=function(){var t=this._points.copy();return Xt.reverse(t),this.getFactory().createLinearRing(t)},e.prototype.validateConstruction=function(){if(!this.isEmpty()&&!t.prototype.isClosed.call(this))throw new i("Points of LinearRing do not form a closed linestring");if(this.getCoordinateSequence().size()>=1&&this.getCoordinateSequence().size()<e.MINIMUM_VALID_SIZE)throw new i("Invalid number of points in LinearRing (found "+this.getCoordinateSequence().size()+" - must be 0 or >= 4)")},e.prototype.getGeometryType=function(){return"LinearRing"},e.prototype.copy=function(){return new e(this._points.copy(),this._factory)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.MINIMUM_VALID_SIZE.get=function(){return 4},n.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(e,n),e}(Zt),ne=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return K.SORTINDEX_MULTIPOLYGON},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&t.prototype.equalsExact.call(this,e,n)}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return 1},e.prototype.getDimension=function(){return 2},e.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n<this._geometries.length;n++)e[n]=this._geometries[n].reverse();return this.getFactory().createMultiPolygon(e)},e.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();for(var t=new ft,e=0;e<this._geometries.length;e++)for(var n=this._geometries[e].getBoundary(),r=0;r<n.getNumGeometries();r++)t.add(n.getGeometryN(r));var i=new Array(t.size()).fill(null);return this.getFactory().createMultiLineString(t.toArray(i))},e.prototype.getGeometryType=function(){return"MultiPolygon"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.interfaces_=function(){return[Qt]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x7a5aa1369171980},Object.defineProperties(e,n),e}(qt),re=function(t){this._factory=t||null,this._isUserDataCopied=!1},ie={NoOpGeometryOperation:{configurable:!0},CoordinateOperation:{configurable:!0},CoordinateSequenceOperation:{configurable:!0}};re.prototype.setCopyUserData=function(t){this._isUserDataCopied=t},re.prototype.edit=function(t,e){if(null===t)return null;var n=this.editInternal(t,e);return this._isUserDataCopied&&n.setUserData(t.getUserData()),n},re.prototype.editInternal=function(t,e){return null===this._factory&&(this._factory=t.getFactory()),t instanceof qt?this.editGeometryCollection(t,e):t instanceof $t?this.editPolygon(t,e):t instanceof Kt?e.edit(t,this._factory):t instanceof Zt?e.edit(t,this._factory):(G.shouldNeverReachHere("Unsupported Geometry class: "+t.getClass().getName()),null)},re.prototype.editGeometryCollection=function(t,e){for(var n=e.edit(t,this._factory),r=new ft,i=0;i<n.getNumGeometries();i++){var o=this.edit(n.getGeometryN(i),e);null===o||o.isEmpty()||r.add(o)}return n.getClass()===te?this._factory.createMultiPoint(r.toArray([])):n.getClass()===Gt?this._factory.createMultiLineString(r.toArray([])):n.getClass()===ne?this._factory.createMultiPolygon(r.toArray([])):this._factory.createGeometryCollection(r.toArray([]))},re.prototype.editPolygon=function(t,e){var n=e.edit(t,this._factory);if(null===n&&(n=this._factory.createPolygon(null)),n.isEmpty())return n;var r=this.edit(n.getExteriorRing(),e);if(null===r||r.isEmpty())return this._factory.createPolygon();for(var i=new ft,o=0;o<n.getNumInteriorRing();o++){var a=this.edit(n.getInteriorRingN(o),e);null===a||a.isEmpty()||i.add(a)}return this._factory.createPolygon(r,i.toArray([]))},re.prototype.interfaces_=function(){return[]},re.prototype.getClass=function(){return re},re.GeometryEditorOperation=function(){},ie.NoOpGeometryOperation.get=function(){return oe},ie.CoordinateOperation.get=function(){return ae},ie.CoordinateSequenceOperation.get=function(){return se},Object.defineProperties(re,ie);var oe=function(){};oe.prototype.edit=function(t,e){return t},oe.prototype.interfaces_=function(){return[re.GeometryEditorOperation]},oe.prototype.getClass=function(){return oe};var ae=function(){};ae.prototype.edit=function(t,e){var n=this.editCoordinates(t.getCoordinates(),t);return null===n?t:t instanceof ee?e.createLinearRing(n):t instanceof Zt?e.createLineString(n):t instanceof Kt?n.length>0?e.createPoint(n[0]):e.createPoint():t},ae.prototype.interfaces_=function(){return[re.GeometryEditorOperation]},ae.prototype.getClass=function(){return ae};var se=function(){};se.prototype.edit=function(t,e){return t instanceof ee?e.createLinearRing(this.edit(t.getCoordinateSequence(),t)):t instanceof Zt?e.createLineString(this.edit(t.getCoordinateSequence(),t)):t instanceof Kt?e.createPoint(this.edit(t.getCoordinateSequence(),t)):t},se.prototype.interfaces_=function(){return[re.GeometryEditorOperation]},se.prototype.getClass=function(){return se};var ue=function(){if(this._dimension=3,this._coordinates=null,1===arguments.length){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var t=arguments[0];this._coordinates=new Array(t).fill(null);for(var e=0;e<t;e++)this._coordinates[e]=new h}else if(v(arguments[0],P)){var n=arguments[0];if(null===n)return this._coordinates=new Array(0).fill(null),null;this._dimension=n.getDimension(),this._coordinates=new Array(n.size()).fill(null);for(var r=0;r<this._coordinates.length;r++)this._coordinates[r]=n.getCoordinateCopy(r)}}else if(2===arguments.length)if(arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var i=arguments[0],o=arguments[1];this._coordinates=i,this._dimension=o,null===i&&(this._coordinates=new Array(0).fill(null))}else if(Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var a=arguments[0],s=arguments[1];this._coordinates=new Array(a).fill(null),this._dimension=s;for(var u=0;u<a;u++)this._coordinates[u]=new h}},ce={serialVersionUID:{configurable:!0}};ue.prototype.setOrdinate=function(t,e,n){switch(e){case P.X:this._coordinates[t].x=n;break;case P.Y:this._coordinates[t].y=n;break;case P.Z:this._coordinates[t].z=n;break;default:throw new i("invalid ordinateIndex")}},ue.prototype.size=function(){return this._coordinates.length},ue.prototype.getOrdinate=function(t,e){switch(e){case P.X:return this._coordinates[t].x;case P.Y:return this._coordinates[t].y;case P.Z:return this._coordinates[t].z}return o.NaN},ue.prototype.getCoordinate=function(){if(1===arguments.length){var t=arguments[0];return this._coordinates[t]}if(2===arguments.length){var e=arguments[0],n=arguments[1];n.x=this._coordinates[e].x,n.y=this._coordinates[e].y,n.z=this._coordinates[e].z}},ue.prototype.getCoordinateCopy=function(t){return new h(this._coordinates[t])},ue.prototype.getDimension=function(){return this._dimension},ue.prototype.getX=function(t){return this._coordinates[t].x},ue.prototype.clone=function(){for(var t=new Array(this.size()).fill(null),e=0;e<this._coordinates.length;e++)t[e]=this._coordinates[e].clone();return new ue(t,this._dimension)},ue.prototype.expandEnvelope=function(t){for(var e=0;e<this._coordinates.length;e++)t.expandToInclude(this._coordinates[e]);return t},ue.prototype.copy=function(){for(var t=new Array(this.size()).fill(null),e=0;e<this._coordinates.length;e++)t[e]=this._coordinates[e].copy();return new ue(t,this._dimension)},ue.prototype.toString=function(){if(this._coordinates.length>0){var t=new b(17*this._coordinates.length);t.append("("),t.append(this._coordinates[0]);for(var e=1;e<this._coordinates.length;e++)t.append(", "),t.append(this._coordinates[e]);return t.append(")"),t.toString()}return"()"},ue.prototype.getY=function(t){return this._coordinates[t].y},ue.prototype.toCoordinateArray=function(){return this._coordinates},ue.prototype.interfaces_=function(){return[P,l]},ue.prototype.getClass=function(){return ue},ce.serialVersionUID.get=function(){return-0xcb44a778db18e00},Object.defineProperties(ue,ce);var le=function(){},he={serialVersionUID:{configurable:!0},instanceObject:{configurable:!0}};le.prototype.readResolve=function(){return le.instance()},le.prototype.create=function(){if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return new ue(t)}if(v(arguments[0],P)){var e=arguments[0];return new ue(e)}}else if(2===arguments.length){var n=arguments[0],r=arguments[1];return r>3&&(r=3),r<2?new ue(n):new ue(n,r)}},le.prototype.interfaces_=function(){return[d,l]},le.prototype.getClass=function(){return le},le.instance=function(){return le.instanceObject},he.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00},he.instanceObject.get=function(){return new le},Object.defineProperties(le,he);var fe=function(t){function e(){t.call(this),this.map_=new Map}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return this.map_.get(t)||null},e.prototype.put=function(t,e){return this.map_.set(t,e),e},e.prototype.values=function(){for(var t=new ft,e=this.map_.values(),n=e.next();!n.done;)t.add(n.value),n=e.next();return t},e.prototype.entrySet=function(){var t=new xt;return this.map_.entries().forEach(function(e){return t.add(e)}),t},e.prototype.size=function(){return this.map_.size()},e}(_t),pe=function t(){if(this._modelType=null,this._scale=null,0===arguments.length)this._modelType=t.FLOATING;else if(1===arguments.length)if(arguments[0]instanceof ge){var e=arguments[0];this._modelType=e,e===t.FIXED&&this.setScale(1)}else if("number"==typeof arguments[0]){var n=arguments[0];this._modelType=t.FIXED,this.setScale(n)}else if(arguments[0]instanceof t){var r=arguments[0];this._modelType=r._modelType,this._scale=r._scale}},de={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};pe.prototype.equals=function(t){if(!(t instanceof pe))return!1;var e=t;return this._modelType===e._modelType&&this._scale===e._scale},pe.prototype.compareTo=function(t){var e=t,n=this.getMaximumSignificantDigits(),r=e.getMaximumSignificantDigits();return new w(n).compareTo(new w(r))},pe.prototype.getScale=function(){return this._scale},pe.prototype.isFloating=function(){return this._modelType===pe.FLOATING||this._modelType===pe.FLOATING_SINGLE},pe.prototype.getType=function(){return this._modelType},pe.prototype.toString=function(){var t="UNKNOWN";return this._modelType===pe.FLOATING?t="Floating":this._modelType===pe.FLOATING_SINGLE?t="Floating-Single":this._modelType===pe.FIXED&&(t="Fixed (Scale="+this.getScale()+")"),t},pe.prototype.makePrecise=function(){if("number"==typeof arguments[0]){var t=arguments[0];return o.isNaN(t)?t:this._modelType===pe.FLOATING_SINGLE?t:this._modelType===pe.FIXED?Math.round(t*this._scale)/this._scale:t}if(arguments[0]instanceof h){var e=arguments[0];if(this._modelType===pe.FLOATING)return null;e.x=this.makePrecise(e.x),e.y=this.makePrecise(e.y)}},pe.prototype.getMaximumSignificantDigits=function(){var t=16;return this._modelType===pe.FLOATING?t=16:this._modelType===pe.FLOATING_SINGLE?t=6:this._modelType===pe.FIXED&&(t=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),t},pe.prototype.setScale=function(t){this._scale=Math.abs(t)},pe.prototype.interfaces_=function(){return[l,s]},pe.prototype.getClass=function(){return pe},pe.mostPrecise=function(t,e){return t.compareTo(e)>=0?t:e},de.serialVersionUID.get=function(){return 0x6bee6404e9a25c00},de.maximumPreciseValue.get=function(){return 9007199254740992},Object.defineProperties(pe,de);var ge=function t(e){this._name=e||null,t.nameToTypeMap.put(e,this)},ye={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};ge.prototype.readResolve=function(){return ge.nameToTypeMap.get(this._name)},ge.prototype.toString=function(){return this._name},ge.prototype.interfaces_=function(){return[l]},ge.prototype.getClass=function(){return ge},ye.serialVersionUID.get=function(){return-552860263173159e4},ye.nameToTypeMap.get=function(){return new fe},Object.defineProperties(ge,ye),pe.Type=ge,pe.FIXED=new ge("FIXED"),pe.FLOATING=new ge("FLOATING"),pe.FLOATING_SINGLE=new ge("FLOATING SINGLE");var ve=function t(){this._precisionModel=new pe,this._SRID=0,this._coordinateSequenceFactory=t.getDefaultCoordinateSequenceFactory(),0===arguments.length||(1===arguments.length?v(arguments[0],d)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof pe&&(this._precisionModel=arguments[0]):2===arguments.length?(this._precisionModel=arguments[0],this._SRID=arguments[1]):3===arguments.length&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},me={serialVersionUID:{configurable:!0}};ve.prototype.toGeometry=function(t){return t.isNull()?this.createPoint(null):t.getMinX()===t.getMaxX()&&t.getMinY()===t.getMaxY()?this.createPoint(new h(t.getMinX(),t.getMinY())):t.getMinX()===t.getMaxX()||t.getMinY()===t.getMaxY()?this.createLineString([new h(t.getMinX(),t.getMinY()),new h(t.getMaxX(),t.getMaxY())]):this.createPolygon(this.createLinearRing([new h(t.getMinX(),t.getMinY()),new h(t.getMinX(),t.getMaxY()),new h(t.getMaxX(),t.getMaxY()),new h(t.getMaxX(),t.getMinY()),new h(t.getMinX(),t.getMinY())]),null)},ve.prototype.createLineString=function(t){return t?t instanceof Array?new Zt(this.getCoordinateSequenceFactory().create(t),this):v(t,P)?new Zt(t,this):void 0:new Zt(this.getCoordinateSequenceFactory().create([]),this)},ve.prototype.createMultiLineString=function(){if(0===arguments.length)return new Gt(null,this);if(1===arguments.length){var t=arguments[0];return new Gt(t,this)}},ve.prototype.buildGeometry=function(t){for(var e=null,n=!1,r=!1,i=t.iterator();i.hasNext();){var o=i.next(),a=o.getClass();null===e&&(e=a),a!==e&&(n=!0),o.isGeometryCollectionOrDerived()&&(r=!0)}if(null===e)return this.createGeometryCollection();if(n||r)return this.createGeometryCollection(ve.toGeometryArray(t));var s=t.iterator().next();if(t.size()>1){if(s instanceof $t)return this.createMultiPolygon(ve.toPolygonArray(t));if(s instanceof Zt)return this.createMultiLineString(ve.toLineStringArray(t));if(s instanceof Kt)return this.createMultiPoint(ve.toPointArray(t));G.shouldNeverReachHere("Unhandled class: "+s.getClass().getName())}return s},ve.prototype.createMultiPointFromCoords=function(t){return this.createMultiPoint(null!==t?this.getCoordinateSequenceFactory().create(t):null)},ve.prototype.createPoint=function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof h){var t=arguments[0];return this.createPoint(null!==t?this.getCoordinateSequenceFactory().create([t]):null)}if(v(arguments[0],P)){var e=arguments[0];return new Kt(e,this)}}},ve.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory},ve.prototype.createPolygon=function(){if(0===arguments.length)return new $t(null,null,this);if(1===arguments.length){if(v(arguments[0],P)){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof Array){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof ee){var n=arguments[0];return this.createPolygon(n,null)}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];return new $t(r,i,this)}},ve.prototype.getSRID=function(){return this._SRID},ve.prototype.createGeometryCollection=function(){if(0===arguments.length)return new qt(null,this);if(1===arguments.length){var t=arguments[0];return new qt(t,this)}},ve.prototype.createGeometry=function(t){return new re(this).edit(t,{edit:function(){if(2===arguments.length){var t=arguments[0];return this._coordinateSequenceFactory.create(t)}}})},ve.prototype.getPrecisionModel=function(){return this._precisionModel},ve.prototype.createLinearRing=function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLinearRing(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(v(arguments[0],P)){var e=arguments[0];return new ee(e,this)}}},ve.prototype.createMultiPolygon=function(){if(0===arguments.length)return new ne(null,this);if(1===arguments.length){var t=arguments[0];return new ne(t,this)}},ve.prototype.createMultiPoint=function(){if(0===arguments.length)return new te(null,this);if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return new te(t,this)}if(arguments[0]instanceof Array){var e=arguments[0];return this.createMultiPoint(null!==e?this.getCoordinateSequenceFactory().create(e):null)}if(v(arguments[0],P)){var n=arguments[0];if(null===n)return this.createMultiPoint(new Array(0).fill(null));for(var r=new Array(n.size()).fill(null),i=0;i<n.size();i++){var o=this.getCoordinateSequenceFactory().create(1,n.getDimension());Xt.copy(n,i,o,0,1),r[i]=this.createPoint(o)}return this.createMultiPoint(r)}}},ve.prototype.interfaces_=function(){return[l]},ve.prototype.getClass=function(){return ve},ve.toMultiPolygonArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.toGeometryArray=function(t){if(null===t)return null;var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.getDefaultCoordinateSequenceFactory=function(){return le.instance()},ve.toMultiLineStringArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.toLineStringArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.toMultiPointArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.toLinearRingArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.toPointArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.toPolygonArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ve.createPointFromInternalCoord=function(t,e){return e.getPrecisionModel().makePrecise(t),e.getFactory().createPoint(t)},me.serialVersionUID.get=function(){return-0x5ea75f2051eeb400},Object.defineProperties(ve,me);var _e=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],be=function(t){this.geometryFactory=t||new ve};be.prototype.read=function(t){var e,n=(e="string"==typeof t?JSON.parse(t):t).type;if(!we[n])throw new Error("Unknown GeoJSON type: "+e.type);return-1!==_e.indexOf(n)?we[n].apply(this,[e.coordinates]):"GeometryCollection"===n?we[n].apply(this,[e.geometries]):we[n].apply(this,[e])},be.prototype.write=function(t){var e=t.getGeometryType();if(!Ee[e])throw new Error("Geometry is not supported");return Ee[e].apply(this,[t])};var we={Feature:function(t){var e={};for(var n in t)e[n]=t[n];if(t.geometry){var r=t.geometry.type;if(!we[r])throw new Error("Unknown GeoJSON type: "+t.type);e.geometry=this.read(t.geometry)}return t.bbox&&(e.bbox=we.bbox.apply(this,[t.bbox])),e},FeatureCollection:function(t){var e={};if(t.features){e.features=[];for(var n=0;n<t.features.length;++n)e.features.push(this.read(t.features[n]))}return t.bbox&&(e.bbox=this.parse.bbox.apply(this,[t.bbox])),e},coordinates:function(t){for(var e=[],n=0;n<t.length;++n){var r=t[n];e.push(new h(r[0],r[1]))}return e},bbox:function(t){return this.geometryFactory.createLinearRing([new h(t[0],t[1]),new h(t[2],t[1]),new h(t[2],t[3]),new h(t[0],t[3]),new h(t[0],t[1])])},Point:function(t){var e=new h(t[0],t[1]);return this.geometryFactory.createPoint(e)},MultiPoint:function(t){for(var e=[],n=0;n<t.length;++n)e.push(we.Point.apply(this,[t[n]]));return this.geometryFactory.createMultiPoint(e)},LineString:function(t){var e=we.coordinates.apply(this,[t]);return this.geometryFactory.createLineString(e)},MultiLineString:function(t){for(var e=[],n=0;n<t.length;++n)e.push(we.LineString.apply(this,[t[n]]));return this.geometryFactory.createMultiLineString(e)},Polygon:function(t){for(var e=we.coordinates.apply(this,[t[0]]),n=this.geometryFactory.createLinearRing(e),r=[],i=1;i<t.length;++i){var o=t[i],a=we.coordinates.apply(this,[o]),s=this.geometryFactory.createLinearRing(a);r.push(s)}return this.geometryFactory.createPolygon(n,r)},MultiPolygon:function(t){for(var e=[],n=0;n<t.length;++n){var r=t[n];e.push(we.Polygon.apply(this,[r]))}return this.geometryFactory.createMultiPolygon(e)},GeometryCollection:function(t){for(var e=[],n=0;n<t.length;++n){var r=t[n];e.push(this.read(r))}return this.geometryFactory.createGeometryCollection(e)}},Ee={coordinate:function(t){return[t.x,t.y]},Point:function(t){return{type:"Point",coordinates:Ee.coordinate.apply(this,[t.getCoordinate()])}},MultiPoint:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var r=t._geometries[n],i=Ee.Point.apply(this,[r]);e.push(i.coordinates)}return{type:"MultiPoint",coordinates:e}},LineString:function(t){for(var e=[],n=t.getCoordinates(),r=0;r<n.length;++r){var i=n[r];e.push(Ee.coordinate.apply(this,[i]))}return{type:"LineString",coordinates:e}},MultiLineString:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var r=t._geometries[n],i=Ee.LineString.apply(this,[r]);e.push(i.coordinates)}return{type:"MultiLineString",coordinates:e}},Polygon:function(t){var e=[],n=Ee.LineString.apply(this,[t._shell]);e.push(n.coordinates);for(var r=0;r<t._holes.length;++r){var i=t._holes[r],o=Ee.LineString.apply(this,[i]);e.push(o.coordinates)}return{type:"Polygon",coordinates:e}},MultiPolygon:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var r=t._geometries[n],i=Ee.Polygon.apply(this,[r]);e.push(i.coordinates)}return{type:"MultiPolygon",coordinates:e}},GeometryCollection:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var r=t._geometries[n],i=r.getGeometryType();e.push(Ee[i].apply(this,[r]))}return{type:"GeometryCollection",geometries:e}}},xe=function(t){this.geometryFactory=t||new ve,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new be(this.geometryFactory)};xe.prototype.read=function(t){var e=this.parser.read(t);return this.precisionModel.getType()===pe.FIXED&&this.reducePrecision(e),e},xe.prototype.reducePrecision=function(t){var e,n;if(t.coordinate)this.precisionModel.makePrecise(t.coordinate);else if(t.points)for(e=0,n=t.points.length;e<n;e++)this.precisionModel.makePrecise(t.points[e]);else if(t.geometries)for(e=0,n=t.geometries.length;e<n;e++)this.reducePrecision(t.geometries[e])};var Oe=function(){this.parser=new be(this.geometryFactory)};Oe.prototype.write=function(t){return this.parser.write(t)};var Me=function(){},Se={ON:{configurable:!0},LEFT:{configurable:!0},RIGHT:{configurable:!0}};function Pe(t){this.message=t||""}function Ce(){this.array_=[]}Me.prototype.interfaces_=function(){return[]},Me.prototype.getClass=function(){return Me},Me.opposite=function(t){return t===Me.LEFT?Me.RIGHT:t===Me.RIGHT?Me.LEFT:t},Se.ON.get=function(){return 0},Se.LEFT.get=function(){return 1},Se.RIGHT.get=function(){return 2},Object.defineProperties(Me,Se),Pe.prototype=new Error,Pe.prototype.name="EmptyStackException",Ce.prototype=new lt,Ce.prototype.add=function(t){return this.array_.push(t),!0},Ce.prototype.get=function(t){if(t<0||t>=this.size())throw new Error;return this.array_[t]},Ce.prototype.push=function(t){return this.array_.push(t),t},Ce.prototype.pop=function(t){if(0===this.array_.length)throw new Pe;return this.array_.pop()},Ce.prototype.peek=function(){if(0===this.array_.length)throw new Pe;return this.array_[this.array_.length-1]},Ce.prototype.empty=function(){return 0===this.array_.length},Ce.prototype.isEmpty=function(){return this.empty()},Ce.prototype.search=function(t){return this.array_.indexOf(t)},Ce.prototype.size=function(){return this.array_.length},Ce.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t};var Te=function(){this._minIndex=-1,this._minCoord=null,this._minDe=null,this._orientedDe=null};Te.prototype.getCoordinate=function(){return this._minCoord},Te.prototype.getRightmostSide=function(t,e){var n=this.getRightmostSideOfSegment(t,e);return n<0&&(n=this.getRightmostSideOfSegment(t,e-1)),n<0&&(this._minCoord=null,this.checkForRightmostCoordinate(t)),n},Te.prototype.findRightmostEdgeAtVertex=function(){var t=this._minDe.getEdge().getCoordinates();G.isTrue(this._minIndex>0&&this._minIndex<t.length,"rightmost point expected to be interior vertex of edge");var e=t[this._minIndex-1],n=t[this._minIndex+1],r=X.computeOrientation(this._minCoord,n,e),i=!1;e.y<this._minCoord.y&&n.y<this._minCoord.y&&r===X.COUNTERCLOCKWISE?i=!0:e.y>this._minCoord.y&&n.y>this._minCoord.y&&r===X.CLOCKWISE&&(i=!0),i&&(this._minIndex=this._minIndex-1)},Te.prototype.getRightmostSideOfSegment=function(t,e){var n=t.getEdge().getCoordinates();if(e<0||e+1>=n.length)return-1;if(n[e].y===n[e+1].y)return-1;var r=Me.LEFT;return n[e].y<n[e+1].y&&(r=Me.RIGHT),r},Te.prototype.getEdge=function(){return this._orientedDe},Te.prototype.checkForRightmostCoordinate=function(t){for(var e=t.getEdge().getCoordinates(),n=0;n<e.length-1;n++)(null===this._minCoord||e[n].x>this._minCoord.x)&&(this._minDe=t,this._minIndex=n,this._minCoord=e[n])},Te.prototype.findRightmostEdgeAtNode=function(){var t=this._minDe.getNode().getEdges();this._minDe=t.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)},Te.prototype.findEdge=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();n.isForward()&&this.checkForRightmostCoordinate(n)}G.isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===Me.LEFT&&(this._orientedDe=this._minDe.getSym())},Te.prototype.interfaces_=function(){return[]},Te.prototype.getClass=function(){return Te};var Ie=function(t){function e(n,r){t.call(this,e.msgWithCoord(n,r)),this.pt=r?new h(r):null,this.name="TopologyException"}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getCoordinate=function(){return this.pt},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.msgWithCoord=function(t,e){return e?t:t+" [ "+e+" ]"},e}(B),Le=function(){this.array_=[]};Le.prototype.addLast=function(t){this.array_.push(t)},Le.prototype.removeFirst=function(){return this.array_.shift()},Le.prototype.isEmpty=function(){return 0===this.array_.length};var Ae=function(){this._finder=null,this._dirEdgeList=new ft,this._nodes=new ft,this._rightMostCoord=null,this._env=null,this._finder=new Te};Ae.prototype.clearVisitedEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();){t.next().setVisited(!1)}},Ae.prototype.getRightmostCoordinate=function(){return this._rightMostCoord},Ae.prototype.computeNodeDepth=function(t){for(var e=null,n=t.getEdges().iterator();n.hasNext();){var r=n.next();if(r.isVisited()||r.getSym().isVisited()){e=r;break}}if(null===e)throw new Ie("unable to find edge to compute depths at "+t.getCoordinate());t.getEdges().computeDepths(e);for(var i=t.getEdges().iterator();i.hasNext();){var o=i.next();o.setVisited(!0),this.copySymDepths(o)}},Ae.prototype.computeDepth=function(t){this.clearVisitedEdges();var e=this._finder.getEdge();e.setEdgeDepths(Me.RIGHT,t),this.copySymDepths(e),this.computeDepths(e)},Ae.prototype.create=function(t){this.addReachable(t),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()},Ae.prototype.findResultEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();){var e=t.next();e.getDepth(Me.RIGHT)>=1&&e.getDepth(Me.LEFT)<=0&&!e.isInteriorAreaEdge()&&e.setInResult(!0)}},Ae.prototype.computeDepths=function(t){var e=new xt,n=new Le,r=t.getNode();for(n.addLast(r),e.add(r),t.setVisited(!0);!n.isEmpty();){var i=n.removeFirst();e.add(i),this.computeNodeDepth(i);for(var o=i.getEdges().iterator();o.hasNext();){var a=o.next().getSym();if(!a.isVisited()){var s=a.getNode();e.contains(s)||(n.addLast(s),e.add(s))}}}},Ae.prototype.compareTo=function(t){var e=t;return this._rightMostCoord.x<e._rightMostCoord.x?-1:this._rightMostCoord.x>e._rightMostCoord.x?1:0},Ae.prototype.getEnvelope=function(){if(null===this._env){for(var t=new N,e=this._dirEdgeList.iterator();e.hasNext();)for(var n=e.next().getEdge().getCoordinates(),r=0;r<n.length-1;r++)t.expandToInclude(n[r]);this._env=t}return this._env},Ae.prototype.addReachable=function(t){var e=new Ce;for(e.add(t);!e.empty();){var n=e.pop();this.add(n,e)}},Ae.prototype.copySymDepths=function(t){var e=t.getSym();e.setDepth(Me.LEFT,t.getDepth(Me.RIGHT)),e.setDepth(Me.RIGHT,t.getDepth(Me.LEFT))},Ae.prototype.add=function(t,e){t.setVisited(!0),this._nodes.add(t);for(var n=t.getEdges().iterator();n.hasNext();){var r=n.next();this._dirEdgeList.add(r);var i=r.getSym().getNode();i.isVisited()||e.push(i)}},Ae.prototype.getNodes=function(){return this._nodes},Ae.prototype.getDirectedEdges=function(){return this._dirEdgeList},Ae.prototype.interfaces_=function(){return[s]},Ae.prototype.getClass=function(){return Ae};var Ne=function t(){if(this.location=null,1===arguments.length){if(arguments[0]instanceof Array){var e=arguments[0];this.init(e.length)}else if(Number.isInteger(arguments[0])){var n=arguments[0];this.init(1),this.location[Me.ON]=n}else if(arguments[0]instanceof t){var r=arguments[0];if(this.init(r.location.length),null!==r)for(var i=0;i<this.location.length;i++)this.location[i]=r.location[i]}}else if(3===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2];this.init(3),this.location[Me.ON]=o,this.location[Me.LEFT]=a,this.location[Me.RIGHT]=s}};Ne.prototype.setAllLocations=function(t){for(var e=0;e<this.location.length;e++)this.location[e]=t},Ne.prototype.isNull=function(){for(var t=0;t<this.location.length;t++)if(this.location[t]!==g.NONE)return!1;return!0},Ne.prototype.setAllLocationsIfNull=function(t){for(var e=0;e<this.location.length;e++)this.location[e]===g.NONE&&(this.location[e]=t)},Ne.prototype.isLine=function(){return 1===this.location.length},Ne.prototype.merge=function(t){if(t.location.length>this.location.length){var e=new Array(3).fill(null);e[Me.ON]=this.location[Me.ON],e[Me.LEFT]=g.NONE,e[Me.RIGHT]=g.NONE,this.location=e}for(var n=0;n<this.location.length;n++)this.location[n]===g.NONE&&n<t.location.length&&(this.location[n]=t.location[n])},Ne.prototype.getLocations=function(){return this.location},Ne.prototype.flip=function(){if(this.location.length<=1)return null;var t=this.location[Me.LEFT];this.location[Me.LEFT]=this.location[Me.RIGHT],this.location[Me.RIGHT]=t},Ne.prototype.toString=function(){var t=new b;return this.location.length>1&&t.append(g.toLocationSymbol(this.location[Me.LEFT])),t.append(g.toLocationSymbol(this.location[Me.ON])),this.location.length>1&&t.append(g.toLocationSymbol(this.location[Me.RIGHT])),t.toString()},Ne.prototype.setLocations=function(t,e,n){this.location[Me.ON]=t,this.location[Me.LEFT]=e,this.location[Me.RIGHT]=n},Ne.prototype.get=function(t){return t<this.location.length?this.location[t]:g.NONE},Ne.prototype.isArea=function(){return this.location.length>1},Ne.prototype.isAnyNull=function(){for(var t=0;t<this.location.length;t++)if(this.location[t]===g.NONE)return!0;return!1},Ne.prototype.setLocation=function(){if(1===arguments.length){var t=arguments[0];this.setLocation(Me.ON,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.location[e]=n}},Ne.prototype.init=function(t){this.location=new Array(t).fill(null),this.setAllLocations(g.NONE)},Ne.prototype.isEqualOnSide=function(t,e){return this.location[e]===t.location[e]},Ne.prototype.allPositionsEqual=function(t){for(var e=0;e<this.location.length;e++)if(this.location[e]!==t)return!1;return!0},Ne.prototype.interfaces_=function(){return[]},Ne.prototype.getClass=function(){return Ne};var ke=function t(){if(this.elt=new Array(2).fill(null),1===arguments.length){if(Number.isInteger(arguments[0])){var e=arguments[0];this.elt[0]=new Ne(e),this.elt[1]=new Ne(e)}else if(arguments[0]instanceof t){var n=arguments[0];this.elt[0]=new Ne(n.elt[0]),this.elt[1]=new Ne(n.elt[1])}}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.elt[0]=new Ne(g.NONE),this.elt[1]=new Ne(g.NONE),this.elt[r].setLocation(i)}else if(3===arguments.length){var o=arguments[0],a=arguments[1],s=arguments[2];this.elt[0]=new Ne(o,a,s),this.elt[1]=new Ne(o,a,s)}else if(4===arguments.length){var u=arguments[0],c=arguments[1],l=arguments[2],h=arguments[3];this.elt[0]=new Ne(g.NONE,g.NONE,g.NONE),this.elt[1]=new Ne(g.NONE,g.NONE,g.NONE),this.elt[u].setLocations(c,l,h)}};ke.prototype.getGeometryCount=function(){var t=0;return this.elt[0].isNull()||t++,this.elt[1].isNull()||t++,t},ke.prototype.setAllLocations=function(t,e){this.elt[t].setAllLocations(e)},ke.prototype.isNull=function(t){return this.elt[t].isNull()},ke.prototype.setAllLocationsIfNull=function(){if(1===arguments.length){var t=arguments[0];this.setAllLocationsIfNull(0,t),this.setAllLocationsIfNull(1,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.elt[e].setAllLocationsIfNull(n)}},ke.prototype.isLine=function(t){return this.elt[t].isLine()},ke.prototype.merge=function(t){for(var e=0;e<2;e++)null===this.elt[e]&&null!==t.elt[e]?this.elt[e]=new Ne(t.elt[e]):this.elt[e].merge(t.elt[e])},ke.prototype.flip=function(){this.elt[0].flip(),this.elt[1].flip()},ke.prototype.getLocation=function(){if(1===arguments.length){var t=arguments[0];return this.elt[t].get(Me.ON)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return this.elt[e].get(n)}},ke.prototype.toString=function(){var t=new b;return null!==this.elt[0]&&(t.append("A:"),t.append(this.elt[0].toString())),null!==this.elt[1]&&(t.append(" B:"),t.append(this.elt[1].toString())),t.toString()},ke.prototype.isArea=function(){if(0===arguments.length)return this.elt[0].isArea()||this.elt[1].isArea();if(1===arguments.length){var t=arguments[0];return this.elt[t].isArea()}},ke.prototype.isAnyNull=function(t){return this.elt[t].isAnyNull()},ke.prototype.setLocation=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];this.elt[t].setLocation(Me.ON,e)}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this.elt[n].setLocation(r,i)}},ke.prototype.isEqualOnSide=function(t,e){return this.elt[0].isEqualOnSide(t.elt[0],e)&&this.elt[1].isEqualOnSide(t.elt[1],e)},ke.prototype.allPositionsEqual=function(t,e){return this.elt[t].allPositionsEqual(e)},ke.prototype.toLine=function(t){this.elt[t].isArea()&&(this.elt[t]=new Ne(this.elt[t].location[0]))},ke.prototype.interfaces_=function(){return[]},ke.prototype.getClass=function(){return ke},ke.toLineLabel=function(t){for(var e=new ke(g.NONE),n=0;n<2;n++)e.setLocation(n,t.getLocation(n));return e};var je=function(){this._startDe=null,this._maxNodeDegree=-1,this._edges=new ft,this._pts=new ft,this._label=new ke(g.NONE),this._ring=null,this._isHole=null,this._shell=null,this._holes=new ft,this._geometryFactory=null;var t=arguments[0],e=arguments[1];this._geometryFactory=e,this.computePoints(t),this.computeRing()};je.prototype.computeRing=function(){if(null!==this._ring)return null;for(var t=new Array(this._pts.size()).fill(null),e=0;e<this._pts.size();e++)t[e]=this._pts.get(e);this._ring=this._geometryFactory.createLinearRing(t),this._isHole=X.isCCW(this._ring.getCoordinates())},je.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},je.prototype.computePoints=function(t){this._startDe=t;var e=t,n=!0;do{if(null===e)throw new Ie("Found null DirectedEdge");if(e.getEdgeRing()===this)throw new Ie("Directed Edge visited twice during ring-building at "+e.getCoordinate());this._edges.add(e);var r=e.getLabel();G.isTrue(r.isArea()),this.mergeLabel(r),this.addPoints(e.getEdge(),e.isForward(),n),n=!1,this.setEdgeRing(e,this),e=this.getNext(e)}while(e!==this._startDe)},je.prototype.getLinearRing=function(){return this._ring},je.prototype.getCoordinate=function(t){return this._pts.get(t)},je.prototype.computeMaxNodeDegree=function(){this._maxNodeDegree=0;var t=this._startDe;do{var e=t.getNode().getEdges().getOutgoingDegree(this);e>this._maxNodeDegree&&(this._maxNodeDegree=e),t=this.getNext(t)}while(t!==this._startDe);this._maxNodeDegree*=2},je.prototype.addPoints=function(t,e,n){var r=t.getCoordinates();if(e){var i=1;n&&(i=0);for(var o=i;o<r.length;o++)this._pts.add(r[o])}else{var a=r.length-2;n&&(a=r.length-1);for(var s=a;s>=0;s--)this._pts.add(r[s])}},je.prototype.isHole=function(){return this._isHole},je.prototype.setInResult=function(){var t=this._startDe;do{t.getEdge().setInResult(!0),t=t.getNext()}while(t!==this._startDe)},je.prototype.containsPoint=function(t){var e=this.getLinearRing();if(!e.getEnvelopeInternal().contains(t))return!1;if(!X.isPointInRing(t,e.getCoordinates()))return!1;for(var n=this._holes.iterator();n.hasNext();){if(n.next().containsPoint(t))return!1}return!0},je.prototype.addHole=function(t){this._holes.add(t)},je.prototype.isShell=function(){return null===this._shell},je.prototype.getLabel=function(){return this._label},je.prototype.getEdges=function(){return this._edges},je.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree},je.prototype.getShell=function(){return this._shell},je.prototype.mergeLabel=function(){if(1===arguments.length){var t=arguments[0];this.mergeLabel(t,0),this.mergeLabel(t,1)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],r=e.getLocation(n,Me.RIGHT);if(r===g.NONE)return null;if(this._label.getLocation(n)===g.NONE)return this._label.setLocation(n,r),null}},je.prototype.setShell=function(t){this._shell=t,null!==t&&t.addHole(this)},je.prototype.toPolygon=function(t){for(var e=new Array(this._holes.size()).fill(null),n=0;n<this._holes.size();n++)e[n]=this._holes.get(n).getLinearRing();return t.createPolygon(this.getLinearRing(),e)},je.prototype.interfaces_=function(){return[]},je.prototype.getClass=function(){return je};var Re=function(t){function e(){var e=arguments[0],n=arguments[1];t.call(this,e,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setEdgeRing=function(t,e){t.setMinEdgeRing(e)},e.prototype.getNext=function(t){return t.getNextMin()},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(je),De=function(t){function e(){var e=arguments[0],n=arguments[1];t.call(this,e,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.buildMinimalRings=function(){var t=new ft,e=this._startDe;do{if(null===e.getMinEdgeRing()){var n=new Re(e,this._geometryFactory);t.add(n)}e=e.getNext()}while(e!==this._startDe);return t},e.prototype.setEdgeRing=function(t,e){t.setEdgeRing(e)},e.prototype.linkDirectedEdgesForMinimalEdgeRings=function(){var t=this._startDe;do{t.getNode().getEdges().linkMinimalDirectedEdges(this),t=t.getNext()}while(t!==this._startDe)},e.prototype.getNext=function(t){return t.getNext()},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(je),Fe=function(){if(this._label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._label=t}};Fe.prototype.setVisited=function(t){this._isVisited=t},Fe.prototype.setInResult=function(t){this._isInResult=t},Fe.prototype.isCovered=function(){return this._isCovered},Fe.prototype.isCoveredSet=function(){return this._isCoveredSet},Fe.prototype.setLabel=function(t){this._label=t},Fe.prototype.getLabel=function(){return this._label},Fe.prototype.setCovered=function(t){this._isCovered=t,this._isCoveredSet=!0},Fe.prototype.updateIM=function(t){G.isTrue(this._label.getGeometryCount()>=2,"found partial label"),this.computeIM(t)},Fe.prototype.isInResult=function(){return this._isInResult},Fe.prototype.isVisited=function(){return this._isVisited},Fe.prototype.interfaces_=function(){return[]},Fe.prototype.getClass=function(){return Fe};var ze=function(t){function e(){t.call(this),this._coord=null,this._edges=null;var e=arguments[0],n=arguments[1];this._coord=e,this._edges=n,this._label=new ke(0,g.NONE)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isIncidentEdgeInResult=function(){for(var t=this.getEdges().getEdges().iterator();t.hasNext();){if(t.next().getEdge().isInResult())return!0}return!1},e.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},e.prototype.getCoordinate=function(){return this._coord},e.prototype.print=function(t){t.println("node "+this._coord+" lbl: "+this._label)},e.prototype.computeIM=function(t){},e.prototype.computeMergedLocation=function(t,e){var n=g.NONE;if(n=this._label.getLocation(e),!t.isNull(e)){var r=t.getLocation(e);n!==g.BOUNDARY&&(n=r)}return n},e.prototype.setLabel=function(){if(2!==arguments.length)return t.prototype.setLabel.apply(this,arguments);var e=arguments[0],n=arguments[1];null===this._label?this._label=new ke(e,n):this._label.setLocation(e,n)},e.prototype.getEdges=function(){return this._edges},e.prototype.mergeLabel=function(){if(arguments[0]instanceof e){var t=arguments[0];this.mergeLabel(t._label)}else if(arguments[0]instanceof ke)for(var n=arguments[0],r=0;r<2;r++){var i=this.computeMergedLocation(n,r);this._label.getLocation(r)===g.NONE&&this._label.setLocation(r,i)}},e.prototype.add=function(t){this._edges.insert(t),t.setNode(this)},e.prototype.setLabelBoundary=function(t){if(null===this._label)return null;var e=g.NONE;null!==this._label&&(e=this._label.getLocation(t));var n=null;switch(e){case g.BOUNDARY:n=g.INTERIOR;break;case g.INTERIOR:default:n=g.BOUNDARY}this._label.setLocation(t,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Fe),Be=function(){this.nodeMap=new Lt,this.nodeFact=null;var t=arguments[0];this.nodeFact=t};Be.prototype.find=function(t){return this.nodeMap.get(t)},Be.prototype.addNode=function(){if(arguments[0]instanceof h){var t=arguments[0],e=this.nodeMap.get(t);return null===e&&(e=this.nodeFact.createNode(t),this.nodeMap.put(t,e)),e}if(arguments[0]instanceof ze){var n=arguments[0],r=this.nodeMap.get(n.getCoordinate());return null===r?(this.nodeMap.put(n.getCoordinate(),n),n):(r.mergeLabel(n),r)}},Be.prototype.print=function(t){for(var e=this.iterator();e.hasNext();){e.next().print(t)}},Be.prototype.iterator=function(){return this.nodeMap.values().iterator()},Be.prototype.values=function(){return this.nodeMap.values()},Be.prototype.getBoundaryNodes=function(t){for(var e=new ft,n=this.iterator();n.hasNext();){var r=n.next();r.getLabel().getLocation(t)===g.BOUNDARY&&e.add(r)}return e},Be.prototype.add=function(t){var e=t.getCoordinate();this.addNode(e).add(t)},Be.prototype.interfaces_=function(){return[]},Be.prototype.getClass=function(){return Be};var qe=function(){},Ge={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};qe.prototype.interfaces_=function(){return[]},qe.prototype.getClass=function(){return qe},qe.isNorthern=function(t){return t===qe.NE||t===qe.NW},qe.isOpposite=function(t,e){return t!==e&&2===(t-e+4)%4},qe.commonHalfPlane=function(t,e){if(t===e)return t;if(2===(t-e+4)%4)return-1;var n=t<e?t:e;return 0===n&&3===(t>e?t:e)?3:n},qe.isInHalfPlane=function(t,e){return e===qe.SE?t===qe.SE||t===qe.SW:t===e||t===e+1},qe.quadrant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new i("Cannot compute the quadrant for point ( "+t+", "+e+" )");return t>=0?e>=0?qe.NE:qe.SE:e>=0?qe.NW:qe.SW}if(arguments[0]instanceof h&&arguments[1]instanceof h){var n=arguments[0],r=arguments[1];if(r.x===n.x&&r.y===n.y)throw new i("Cannot compute the quadrant for two identical points "+n);return r.x>=n.x?r.y>=n.y?qe.NE:qe.SE:r.y>=n.y?qe.NW:qe.SW}},Ge.NE.get=function(){return 0},Ge.NW.get=function(){return 1},Ge.SW.get=function(){return 2},Ge.SE.get=function(){return 3},Object.defineProperties(qe,Ge);var Ue=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,1===arguments.length){var t=arguments[0];this._edge=t}else if(3===arguments.length){var e=arguments[0],n=arguments[1],r=arguments[2];this._edge=e,this.init(n,r),this._label=null}else if(4===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];this._edge=i,this.init(o,a),this._label=s}};Ue.prototype.compareDirection=function(t){return this._dx===t._dx&&this._dy===t._dy?0:this._quadrant>t._quadrant?1:this._quadrant<t._quadrant?-1:X.computeOrientation(t._p0,t._p1,this._p1)},Ue.prototype.getDy=function(){return this._dy},Ue.prototype.getCoordinate=function(){return this._p0},Ue.prototype.setNode=function(t){this._node=t},Ue.prototype.print=function(t){var e=Math.atan2(this._dy,this._dx),n=this.getClass().getName(),r=n.lastIndexOf("."),i=n.substring(r+1);t.print(" "+i+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+e+" "+this._label)},Ue.prototype.compareTo=function(t){var e=t;return this.compareDirection(e)},Ue.prototype.getDirectedCoordinate=function(){return this._p1},Ue.prototype.getDx=function(){return this._dx},Ue.prototype.getLabel=function(){return this._label},Ue.prototype.getEdge=function(){return this._edge},Ue.prototype.getQuadrant=function(){return this._quadrant},Ue.prototype.getNode=function(){return this._node},Ue.prototype.toString=function(){var t=Math.atan2(this._dy,this._dx),e=this.getClass().getName(),n=e.lastIndexOf(".");return" "+e.substring(n+1)+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+t+" "+this._label},Ue.prototype.computeLabel=function(t){},Ue.prototype.init=function(t,e){this._p0=t,this._p1=e,this._dx=e.x-t.x,this._dy=e.y-t.y,this._quadrant=qe.quadrant(this._dx,this._dy),G.isTrue(!(0===this._dx&&0===this._dy),"EdgeEnd with identical endpoints found")},Ue.prototype.interfaces_=function(){return[s]},Ue.prototype.getClass=function(){return Ue};var Ve=function(t){function e(){var e=arguments[0],n=arguments[1];if(t.call(this,e),this._isForward=null,this._isInResult=!1,this._isVisited=!1,this._sym=null,this._next=null,this._nextMin=null,this._edgeRing=null,this._minEdgeRing=null,this._depth=[0,-999,-999],this._isForward=n,n)this.init(e.getCoordinate(0),e.getCoordinate(1));else{var r=e.getNumPoints()-1;this.init(e.getCoordinate(r),e.getCoordinate(r-1))}this.computeDirectedLabel()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getNextMin=function(){return this._nextMin},e.prototype.getDepth=function(t){return this._depth[t]},e.prototype.setVisited=function(t){this._isVisited=t},e.prototype.computeDirectedLabel=function(){this._label=new ke(this._edge.getLabel()),this._isForward||this._label.flip()},e.prototype.getNext=function(){return this._next},e.prototype.setDepth=function(t,e){if(-999!==this._depth[t]&&this._depth[t]!==e)throw new Ie("assigned depths do not match",this.getCoordinate());this._depth[t]=e},e.prototype.isInteriorAreaEdge=function(){for(var t=!0,e=0;e<2;e++)this._label.isArea(e)&&this._label.getLocation(e,Me.LEFT)===g.INTERIOR&&this._label.getLocation(e,Me.RIGHT)===g.INTERIOR||(t=!1);return t},e.prototype.setNextMin=function(t){this._nextMin=t},e.prototype.print=function(e){t.prototype.print.call(this,e),e.print(" "+this._depth[Me.LEFT]+"/"+this._depth[Me.RIGHT]),e.print(" ("+this.getDepthDelta()+")"),this._isInResult&&e.print(" inResult")},e.prototype.setMinEdgeRing=function(t){this._minEdgeRing=t},e.prototype.isLineEdge=function(){var t=this._label.isLine(0)||this._label.isLine(1),e=!this._label.isArea(0)||this._label.allPositionsEqual(0,g.EXTERIOR),n=!this._label.isArea(1)||this._label.allPositionsEqual(1,g.EXTERIOR);return t&&e&&n},e.prototype.setEdgeRing=function(t){this._edgeRing=t},e.prototype.getMinEdgeRing=function(){return this._minEdgeRing},e.prototype.getDepthDelta=function(){var t=this._edge.getDepthDelta();return this._isForward||(t=-t),t},e.prototype.setInResult=function(t){this._isInResult=t},e.prototype.getSym=function(){return this._sym},e.prototype.isForward=function(){return this._isForward},e.prototype.getEdge=function(){return this._edge},e.prototype.printEdge=function(t){this.print(t),t.print(" "),this._isForward?this._edge.print(t):this._edge.printReverse(t)},e.prototype.setSym=function(t){this._sym=t},e.prototype.setVisitedEdge=function(t){this.setVisited(t),this._sym.setVisited(t)},e.prototype.setEdgeDepths=function(t,e){var n=this.getEdge().getDepthDelta();this._isForward||(n=-n);var r=1;t===Me.LEFT&&(r=-1);var i=Me.opposite(t),o=e+n*r;this.setDepth(t,e),this.setDepth(i,o)},e.prototype.getEdgeRing=function(){return this._edgeRing},e.prototype.isInResult=function(){return this._isInResult},e.prototype.setNext=function(t){this._next=t},e.prototype.isVisited=function(){return this._isVisited},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.depthFactor=function(t,e){return t===g.EXTERIOR&&e===g.INTERIOR?1:t===g.INTERIOR&&e===g.EXTERIOR?-1:0},e}(Ue),Je=function(){};Je.prototype.createNode=function(t){return new ze(t,null)},Je.prototype.interfaces_=function(){return[]},Je.prototype.getClass=function(){return Je};var He=function(){if(this._edges=new ft,this._nodes=null,this._edgeEndList=new ft,0===arguments.length)this._nodes=new Be(new Je);else if(1===arguments.length){var t=arguments[0];this._nodes=new Be(t)}};He.prototype.printEdges=function(t){t.println("Edges:");for(var e=0;e<this._edges.size();e++){t.println("edge "+e+":");var n=this._edges.get(e);n.print(t),n.eiList.print(t)}},He.prototype.find=function(t){return this._nodes.find(t)},He.prototype.addNode=function(){if(arguments[0]instanceof ze){var t=arguments[0];return this._nodes.addNode(t)}if(arguments[0]instanceof h){var e=arguments[0];return this._nodes.addNode(e)}},He.prototype.getNodeIterator=function(){return this._nodes.iterator()},He.prototype.linkResultDirectedEdges=function(){for(var t=this._nodes.iterator();t.hasNext();){t.next().getEdges().linkResultDirectedEdges()}},He.prototype.debugPrintln=function(t){L.out.println(t)},He.prototype.isBoundaryNode=function(t,e){var n=this._nodes.find(e);if(null===n)return!1;var r=n.getLabel();return null!==r&&r.getLocation(t)===g.BOUNDARY},He.prototype.linkAllDirectedEdges=function(){for(var t=this._nodes.iterator();t.hasNext();){t.next().getEdges().linkAllDirectedEdges()}},He.prototype.matchInSameDirection=function(t,e,n,r){return!!t.equals(n)&&(X.computeOrientation(t,e,r)===X.COLLINEAR&&qe.quadrant(t,e)===qe.quadrant(n,r))},He.prototype.getEdgeEnds=function(){return this._edgeEndList},He.prototype.debugPrint=function(t){L.out.print(t)},He.prototype.getEdgeIterator=function(){return this._edges.iterator()},He.prototype.findEdgeInSameDirection=function(t,e){for(var n=0;n<this._edges.size();n++){var r=this._edges.get(n),i=r.getCoordinates();if(this.matchInSameDirection(t,e,i[0],i[1]))return r;if(this.matchInSameDirection(t,e,i[i.length-1],i[i.length-2]))return r}return null},He.prototype.insertEdge=function(t){this._edges.add(t)},He.prototype.findEdgeEnd=function(t){for(var e=this.getEdgeEnds().iterator();e.hasNext();){var n=e.next();if(n.getEdge()===t)return n}return null},He.prototype.addEdges=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this._edges.add(n);var r=new Ve(n,!0),i=new Ve(n,!1);r.setSym(i),i.setSym(r),this.add(r),this.add(i)}},He.prototype.add=function(t){this._nodes.add(t),this._edgeEndList.add(t)},He.prototype.getNodes=function(){return this._nodes.values()},He.prototype.findEdge=function(t,e){for(var n=0;n<this._edges.size();n++){var r=this._edges.get(n),i=r.getCoordinates();if(t.equals(i[0])&&e.equals(i[1]))return r}return null},He.prototype.interfaces_=function(){return[]},He.prototype.getClass=function(){return He},He.linkResultDirectedEdges=function(t){for(var e=t.iterator();e.hasNext();){e.next().getEdges().linkResultDirectedEdges()}};var Ye=function(){this._geometryFactory=null,this._shellList=new ft;var t=arguments[0];this._geometryFactory=t};Ye.prototype.sortShellsAndHoles=function(t,e,n){for(var r=t.iterator();r.hasNext();){var i=r.next();i.isHole()?n.add(i):e.add(i)}},Ye.prototype.computePolygons=function(t){for(var e=new ft,n=t.iterator();n.hasNext();){var r=n.next().toPolygon(this._geometryFactory);e.add(r)}return e},Ye.prototype.placeFreeHoles=function(t,e){for(var n=e.iterator();n.hasNext();){var r=n.next();if(null===r.getShell()){var i=this.findEdgeRingContaining(r,t);if(null===i)throw new Ie("unable to assign hole to a shell",r.getCoordinate(0));r.setShell(i)}}},Ye.prototype.buildMinimalEdgeRings=function(t,e,n){for(var r=new ft,i=t.iterator();i.hasNext();){var o=i.next();if(o.getMaxNodeDegree()>2){o.linkDirectedEdgesForMinimalEdgeRings();var a=o.buildMinimalRings(),s=this.findShell(a);null!==s?(this.placePolygonHoles(s,a),e.add(s)):n.addAll(a)}else r.add(o)}return r},Ye.prototype.containsPoint=function(t){for(var e=this._shellList.iterator();e.hasNext();){if(e.next().containsPoint(t))return!0}return!1},Ye.prototype.buildMaximalEdgeRings=function(t){for(var e=new ft,n=t.iterator();n.hasNext();){var r=n.next();if(r.isInResult()&&r.getLabel().isArea()&&null===r.getEdgeRing()){var i=new De(r,this._geometryFactory);e.add(i),i.setInResult()}}return e},Ye.prototype.placePolygonHoles=function(t,e){for(var n=e.iterator();n.hasNext();){var r=n.next();r.isHole()&&r.setShell(t)}},Ye.prototype.getPolygons=function(){return this.computePolygons(this._shellList)},Ye.prototype.findEdgeRingContaining=function(t,e){for(var n=t.getLinearRing(),r=n.getEnvelopeInternal(),i=n.getCoordinateN(0),o=null,a=null,s=e.iterator();s.hasNext();){var u=s.next(),c=u.getLinearRing(),l=c.getEnvelopeInternal();null!==o&&(a=o.getLinearRing().getEnvelopeInternal());var h=!1;l.contains(r)&&X.isPointInRing(i,c.getCoordinates())&&(h=!0),h&&(null===o||a.contains(l))&&(o=u)}return o},Ye.prototype.findShell=function(t){for(var e=0,n=null,r=t.iterator();r.hasNext();){var i=r.next();i.isHole()||(n=i,e++)}return G.isTrue(e<=1,"found two shells in MinimalEdgeRing list"),n},Ye.prototype.add=function(){if(1===arguments.length){var t=arguments[0];this.add(t.getEdgeEnds(),t.getNodes())}else if(2===arguments.length){var e=arguments[0],n=arguments[1];He.linkResultDirectedEdges(n);var r=this.buildMaximalEdgeRings(e),i=new ft,o=this.buildMinimalEdgeRings(r,this._shellList,i);this.sortShellsAndHoles(o,this._shellList,i),this.placeFreeHoles(this._shellList,i)}},Ye.prototype.interfaces_=function(){return[]},Ye.prototype.getClass=function(){return Ye};var Xe=function(){};Xe.prototype.getBounds=function(){},Xe.prototype.interfaces_=function(){return[]},Xe.prototype.getClass=function(){return Xe};var Ze=function(){this._bounds=null,this._item=null;var t=arguments[0],e=arguments[1];this._bounds=t,this._item=e};Ze.prototype.getItem=function(){return this._item},Ze.prototype.getBounds=function(){return this._bounds},Ze.prototype.interfaces_=function(){return[Xe,l]},Ze.prototype.getClass=function(){return Ze};var We=function(){this._size=null,this._items=null,this._size=0,this._items=new ft,this._items.add(null)};We.prototype.poll=function(){if(this.isEmpty())return null;var t=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),t},We.prototype.size=function(){return this._size},We.prototype.reorder=function(t){for(var e=null,n=this._items.get(t);2*t<=this._size&&((e=2*t)!==this._size&&this._items.get(e+1).compareTo(this._items.get(e))<0&&e++,this._items.get(e).compareTo(n)<0);t=e)this._items.set(t,this._items.get(e));this._items.set(t,n)},We.prototype.clear=function(){this._size=0,this._items.clear()},We.prototype.isEmpty=function(){return 0===this._size},We.prototype.add=function(t){this._items.add(null),this._size+=1;var e=this._size;for(this._items.set(0,t);t.compareTo(this._items.get(Math.trunc(e/2)))<0;e/=2)this._items.set(e,this._items.get(Math.trunc(e/2)));this._items.set(e,t)},We.prototype.interfaces_=function(){return[]},We.prototype.getClass=function(){return We};var Ke=function(){};Ke.prototype.visitItem=function(t){},Ke.prototype.interfaces_=function(){return[]},Ke.prototype.getClass=function(){return Ke};var Qe=function(){};Qe.prototype.insert=function(t,e){},Qe.prototype.remove=function(t,e){},Qe.prototype.query=function(){},Qe.prototype.interfaces_=function(){return[]},Qe.prototype.getClass=function(){return Qe};var $e=function(){if(this._childBoundables=new ft,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._level=t}},tn={serialVersionUID:{configurable:!0}};$e.prototype.getLevel=function(){return this._level},$e.prototype.size=function(){return this._childBoundables.size()},$e.prototype.getChildBoundables=function(){return this._childBoundables},$e.prototype.addChildBoundable=function(t){G.isTrue(null===this._bounds),this._childBoundables.add(t)},$e.prototype.isEmpty=function(){return this._childBoundables.isEmpty()},$e.prototype.getBounds=function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds},$e.prototype.interfaces_=function(){return[Xe,l]},$e.prototype.getClass=function(){return $e},tn.serialVersionUID.get=function(){return 0x5a1e55ec41369800},Object.defineProperties($e,tn);var en=function(){};en.reverseOrder=function(){return{compare:function(t,e){return e.compareTo(t)}}},en.min=function(t){return en.sort(t),t.get(0)},en.sort=function(t,e){var n=t.toArray();e?Rt.sort(n,e):Rt.sort(n);for(var r=t.iterator(),i=0,o=n.length;i<o;i++)r.next(),r.set(n[i])},en.singletonList=function(t){var e=new ft;return e.add(t),e};var nn=function(){this._boundable1=null,this._boundable2=null,this._distance=null,this._itemDistance=null;var t=arguments[0],e=arguments[1],n=arguments[2];this._boundable1=t,this._boundable2=e,this._itemDistance=n,this._distance=this.distance()};nn.prototype.expandToQueue=function(t,e){var n=nn.isComposite(this._boundable1),r=nn.isComposite(this._boundable2);if(n&&r)return nn.area(this._boundable1)>nn.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,t,e),null):(this.expand(this._boundable2,this._boundable1,t,e),null);if(n)return this.expand(this._boundable1,this._boundable2,t,e),null;if(r)return this.expand(this._boundable2,this._boundable1,t,e),null;throw new i("neither boundable is composite")},nn.prototype.isLeaves=function(){return!(nn.isComposite(this._boundable1)||nn.isComposite(this._boundable2))},nn.prototype.compareTo=function(t){var e=t;return this._distance<e._distance?-1:this._distance>e._distance?1:0},nn.prototype.expand=function(t,e,n,r){for(var i=t.getChildBoundables().iterator();i.hasNext();){var o=i.next(),a=new nn(o,e,this._itemDistance);a.getDistance()<r&&n.add(a)}},nn.prototype.getBoundable=function(t){return 0===t?this._boundable1:this._boundable2},nn.prototype.getDistance=function(){return this._distance},nn.prototype.distance=function(){return this.isLeaves()?this._itemDistance.distance(this._boundable1,this._boundable2):this._boundable1.getBounds().distance(this._boundable2.getBounds())},nn.prototype.interfaces_=function(){return[s]},nn.prototype.getClass=function(){return nn},nn.area=function(t){return t.getBounds().getArea()},nn.isComposite=function(t){return t instanceof $e};var rn=function t(){if(this._root=null,this._built=!1,this._itemBoundables=new ft,this._nodeCapacity=null,0===arguments.length){var e=t.DEFAULT_NODE_CAPACITY;this._nodeCapacity=e}else if(1===arguments.length){var n=arguments[0];G.isTrue(n>1,"Node capacity must be greater than 1"),this._nodeCapacity=n}},on={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};rn.prototype.getNodeCapacity=function(){return this._nodeCapacity},rn.prototype.lastNode=function(t){return t.get(t.size()-1)},rn.prototype.size=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){for(var t=0,e=arguments[0].getChildBoundables().iterator();e.hasNext();){var n=e.next();n instanceof $e?t+=this.size(n):n instanceof Ze&&(t+=1)}return t}},rn.prototype.removeItem=function(t,e){for(var n=null,r=t.getChildBoundables().iterator();r.hasNext();){var i=r.next();i instanceof Ze&&i.getItem()===e&&(n=i)}return null!==n&&(t.getChildBoundables().remove(n),!0)},rn.prototype.itemsTree=function(){if(0===arguments.length){this.build();var t=this.itemsTree(this._root);return null===t?new ft:t}if(1===arguments.length){for(var e=arguments[0],n=new ft,r=e.getChildBoundables().iterator();r.hasNext();){var i=r.next();if(i instanceof $e){var o=this.itemsTree(i);null!==o&&n.add(o)}else i instanceof Ze?n.add(i.getItem()):G.shouldNeverReachHere()}return n.size()<=0?null:n}},rn.prototype.insert=function(t,e){G.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new Ze(t,e))},rn.prototype.boundablesAtLevel=function(){if(1===arguments.length){var t=arguments[0],e=new ft;return this.boundablesAtLevel(t,this._root,e),e}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];if(G.isTrue(n>-2),r.getLevel()===n)return i.add(r),null;for(var o=r.getChildBoundables().iterator();o.hasNext();){var a=o.next();a instanceof $e?this.boundablesAtLevel(n,a,i):(G.isTrue(a instanceof Ze),-1===n&&i.add(a))}return null}},rn.prototype.query=function(){if(1===arguments.length){var t=arguments[0];this.build();var e=new ft;return this.isEmpty()?e:(this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.query(t,this._root,e),e)}if(2===arguments.length){var n=arguments[0],r=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),n)&&this.query(n,this._root,r)}else if(3===arguments.length)if(v(arguments[2],Ke)&&arguments[0]instanceof Object&&arguments[1]instanceof $e)for(var i=arguments[0],o=arguments[1],a=arguments[2],s=o.getChildBoundables(),u=0;u<s.size();u++){var c=s.get(u);this.getIntersectsOp().intersects(c.getBounds(),i)&&(c instanceof $e?this.query(i,c,a):c instanceof Ze?a.visitItem(c.getItem()):G.shouldNeverReachHere())}else if(v(arguments[2],lt)&&arguments[0]instanceof Object&&arguments[1]instanceof $e)for(var l=arguments[0],h=arguments[1],f=arguments[2],p=h.getChildBoundables(),d=0;d<p.size();d++){var g=p.get(d);this.getIntersectsOp().intersects(g.getBounds(),l)&&(g instanceof $e?this.query(l,g,f):g instanceof Ze?f.add(g.getItem()):G.shouldNeverReachHere())}},rn.prototype.build=function(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0},rn.prototype.getRoot=function(){return this.build(),this._root},rn.prototype.remove=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.remove(t,this._root,e)}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=this.removeItem(r,i);if(o)return!0;for(var a=null,s=r.getChildBoundables().iterator();s.hasNext();){var u=s.next();if(this.getIntersectsOp().intersects(u.getBounds(),n)&&(u instanceof $e&&(o=this.remove(n,u,i)))){a=u;break}}return null!==a&&a.getChildBoundables().isEmpty()&&r.getChildBoundables().remove(a),o}},rn.prototype.createHigherLevels=function(t,e){G.isTrue(!t.isEmpty());var n=this.createParentBoundables(t,e+1);return 1===n.size()?n.get(0):this.createHigherLevels(n,e+1)},rn.prototype.depth=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(1===arguments.length){for(var t=0,e=arguments[0].getChildBoundables().iterator();e.hasNext();){var n=e.next();if(n instanceof $e){var r=this.depth(n);r>t&&(t=r)}}return t+1}},rn.prototype.createParentBoundables=function(t,e){G.isTrue(!t.isEmpty());var n=new ft;n.add(this.createNode(e));var r=new ft(t);en.sort(r,this.getComparator());for(var i=r.iterator();i.hasNext();){var o=i.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(e)),this.lastNode(n).addChildBoundable(o)}return n},rn.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()},rn.prototype.interfaces_=function(){return[l]},rn.prototype.getClass=function(){return rn},rn.compareDoubles=function(t,e){return t>e?1:t<e?-1:0},on.IntersectsOp.get=function(){return an},on.serialVersionUID.get=function(){return-0x35ef64c82d4c5400},on.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(rn,on);var an=function(){},sn=function(){};sn.prototype.distance=function(t,e){},sn.prototype.interfaces_=function(){return[]},sn.prototype.getClass=function(){return sn};var un=function(t){function e(n){n=n||e.DEFAULT_NODE_CAPACITY,t.call(this,n)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={STRtreeNode:{configurable:!0},serialVersionUID:{configurable:!0},xComparator:{configurable:!0},yComparator:{configurable:!0},intersectsOp:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};return e.prototype.createParentBoundablesFromVerticalSlices=function(t,e){G.isTrue(t.length>0);for(var n=new ft,r=0;r<t.length;r++)n.addAll(this.createParentBoundablesFromVerticalSlice(t[r],e));return n},e.prototype.createNode=function(t){return new cn(t)},e.prototype.size=function(){return 0===arguments.length?t.prototype.size.call(this):t.prototype.size.apply(this,arguments)},e.prototype.insert=function(){if(2!==arguments.length)return t.prototype.insert.apply(this,arguments);var e=arguments[0],n=arguments[1];if(e.isNull())return null;t.prototype.insert.call(this,e,n)},e.prototype.getIntersectsOp=function(){return e.intersectsOp},e.prototype.verticalSlices=function(t,e){for(var n=Math.trunc(Math.ceil(t.size()/e)),r=new Array(e).fill(null),i=t.iterator(),o=0;o<e;o++){r[o]=new ft;for(var a=0;i.hasNext()&&a<n;){var s=i.next();r[o].add(s),a++}}return r},e.prototype.query=function(){if(1===arguments.length){var e=arguments[0];return t.prototype.query.call(this,e)}if(2===arguments.length){var n=arguments[0],r=arguments[1];t.prototype.query.call(this,n,r)}else if(3===arguments.length)if(v(arguments[2],Ke)&&arguments[0]instanceof Object&&arguments[1]instanceof $e){var i=arguments[0],o=arguments[1],a=arguments[2];t.prototype.query.call(this,i,o,a)}else if(v(arguments[2],lt)&&arguments[0]instanceof Object&&arguments[1]instanceof $e){var s=arguments[0],u=arguments[1],c=arguments[2];t.prototype.query.call(this,s,u,c)}},e.prototype.getComparator=function(){return e.yComparator},e.prototype.createParentBoundablesFromVerticalSlice=function(e,n){return t.prototype.createParentBoundables.call(this,e,n)},e.prototype.remove=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return t.prototype.remove.call(this,e,n)}return t.prototype.remove.apply(this,arguments)},e.prototype.depth=function(){return 0===arguments.length?t.prototype.depth.call(this):t.prototype.depth.apply(this,arguments)},e.prototype.createParentBoundables=function(t,n){G.isTrue(!t.isEmpty());var r=Math.trunc(Math.ceil(t.size()/this.getNodeCapacity())),i=new ft(t);en.sort(i,e.xComparator);var o=this.verticalSlices(i,Math.trunc(Math.ceil(Math.sqrt(r))));return this.createParentBoundablesFromVerticalSlices(o,n)},e.prototype.nearestNeighbour=function(){if(1===arguments.length){if(v(arguments[0],sn)){var t=arguments[0],n=new nn(this.getRoot(),this.getRoot(),t);return this.nearestNeighbour(n)}if(arguments[0]instanceof nn){var r=arguments[0];return this.nearestNeighbour(r,o.POSITIVE_INFINITY)}}else if(2===arguments.length){if(arguments[0]instanceof e&&v(arguments[1],sn)){var i=arguments[0],a=arguments[1],s=new nn(this.getRoot(),i.getRoot(),a);return this.nearestNeighbour(s)}if(arguments[0]instanceof nn&&"number"==typeof arguments[1]){var u=arguments[0],c=arguments[1],l=null,h=new We;for(h.add(u);!h.isEmpty()&&c>0;){var f=h.poll(),p=f.getDistance();if(p>=c)break;f.isLeaves()?(c=p,l=f):f.expandToQueue(h,c)}return[l.getBoundable(0).getItem(),l.getBoundable(1).getItem()]}}else if(3===arguments.length){var d=arguments[0],g=arguments[1],y=arguments[2],m=new Ze(d,g),_=new nn(this.getRoot(),m,y);return this.nearestNeighbour(_)[0]}},e.prototype.interfaces_=function(){return[Qe,l]},e.prototype.getClass=function(){return e},e.centreX=function(t){return e.avg(t.getMinX(),t.getMaxX())},e.avg=function(t,e){return(t+e)/2},e.centreY=function(t){return e.avg(t.getMinY(),t.getMaxY())},n.STRtreeNode.get=function(){return cn},n.serialVersionUID.get=function(){return 0x39920f7d5f261e0},n.xComparator.get=function(){return{interfaces_:function(){return[c]},compare:function(n,r){return t.compareDoubles(e.centreX(n.getBounds()),e.centreX(r.getBounds()))}}},n.yComparator.get=function(){return{interfaces_:function(){return[c]},compare:function(n,r){return t.compareDoubles(e.centreY(n.getBounds()),e.centreY(r.getBounds()))}}},n.intersectsOp.get=function(){return{interfaces_:function(){return[t.IntersectsOp]},intersects:function(t,e){return t.intersects(e)}}},n.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(e,n),e}(rn),cn=function(t){function e(){var e=arguments[0];t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.computeBounds=function(){for(var t=null,e=this.getChildBoundables().iterator();e.hasNext();){var n=e.next();null===t?t=new N(n.getBounds()):t.expandToInclude(n.getBounds())}return t},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}($e),ln=function(){};ln.prototype.interfaces_=function(){return[]},ln.prototype.getClass=function(){return ln},ln.relativeSign=function(t,e){return t<e?-1:t>e?1:0},ln.compare=function(t,e,n){if(e.equals2D(n))return 0;var r=ln.relativeSign(e.x,n.x),i=ln.relativeSign(e.y,n.y);switch(t){case 0:return ln.compareValue(r,i);case 1:return ln.compareValue(i,r);case 2:return ln.compareValue(i,-r);case 3:return ln.compareValue(-r,i);case 4:return ln.compareValue(-r,-i);case 5:return ln.compareValue(-i,-r);case 6:return ln.compareValue(-i,r);case 7:return ln.compareValue(r,-i)}return G.shouldNeverReachHere("invalid octant value"),0},ln.compareValue=function(t,e){return t<0?-1:t>0?1:e<0?-1:e>0?1:0};var hn=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];this._segString=t,this.coord=new h(e),this.segmentIndex=n,this._segmentOctant=r,this._isInterior=!e.equals2D(t.getCoordinate(n))};hn.prototype.getCoordinate=function(){return this.coord},hn.prototype.print=function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex)},hn.prototype.compareTo=function(t){var e=t;return this.segmentIndex<e.segmentIndex?-1:this.segmentIndex>e.segmentIndex?1:this.coord.equals2D(e.coord)?0:ln.compare(this._segmentOctant,this.coord,e.coord)},hn.prototype.isEndPoint=function(t){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===t},hn.prototype.isInterior=function(){return this._isInterior},hn.prototype.interfaces_=function(){return[s]},hn.prototype.getClass=function(){return hn};var fn=function(){this._nodeMap=new Lt,this._edge=null;var t=arguments[0];this._edge=t};fn.prototype.getSplitCoordinates=function(){var t=new dt;this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var r=e.next();this.addEdgeCoordinates(n,r,t),n=r}return t.toCoordinateArray()},fn.prototype.addCollapsedNodes=function(){var t=new ft;this.findCollapsesFromInsertedNodes(t),this.findCollapsesFromExistingVertices(t);for(var e=t.iterator();e.hasNext();){var n=e.next().intValue();this.add(this._edge.getCoordinate(n),n)}},fn.prototype.print=function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();){e.next().print(t)}},fn.prototype.findCollapsesFromExistingVertices=function(t){for(var e=0;e<this._edge.size()-2;e++){var n=this._edge.getCoordinate(e),r=this._edge.getCoordinate(e+2);n.equals2D(r)&&t.add(new w(e+1))}},fn.prototype.addEdgeCoordinates=function(t,e,n){var r=this._edge.getCoordinate(e.segmentIndex),i=e.isInterior()||!e.coord.equals2D(r);n.add(new h(t.coord),!1);for(var o=t.segmentIndex+1;o<=e.segmentIndex;o++)n.add(this._edge.getCoordinate(o));i&&n.add(new h(e.coord))},fn.prototype.iterator=function(){return this._nodeMap.values().iterator()},fn.prototype.addSplitEdges=function(t){this.addEndpoints(),this.addCollapsedNodes();for(var e=this.iterator(),n=e.next();e.hasNext();){var r=e.next(),i=this.createSplitEdge(n,r);t.add(i),n=r}},fn.prototype.findCollapseIndex=function(t,e,n){if(!t.coord.equals2D(e.coord))return!1;var r=e.segmentIndex-t.segmentIndex;return e.isInterior()||r--,1===r&&(n[0]=t.segmentIndex+1,!0)},fn.prototype.findCollapsesFromInsertedNodes=function(t){for(var e=new Array(1).fill(null),n=this.iterator(),r=n.next();n.hasNext();){var i=n.next();this.findCollapseIndex(r,i,e)&&t.add(new w(e[0])),r=i}},fn.prototype.getEdge=function(){return this._edge},fn.prototype.addEndpoints=function(){var t=this._edge.size()-1;this.add(this._edge.getCoordinate(0),0),this.add(this._edge.getCoordinate(t),t)},fn.prototype.createSplitEdge=function(t,e){var n=e.segmentIndex-t.segmentIndex+2,r=this._edge.getCoordinate(e.segmentIndex),i=e.isInterior()||!e.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),a=0;o[a++]=new h(t.coord);for(var s=t.segmentIndex+1;s<=e.segmentIndex;s++)o[a++]=this._edge.getCoordinate(s);return i&&(o[a]=new h(e.coord)),new yn(o,this._edge.getData())},fn.prototype.add=function(t,e){var n=new hn(this._edge,t,e,this._edge.getSegmentOctant(e)),r=this._nodeMap.get(n);return null!==r?(G.isTrue(r.coord.equals2D(t),"Found equal nodes with different coordinates"),r):(this._nodeMap.put(n,n),n)},fn.prototype.checkSplitEdgesCorrectness=function(t){var e=this._edge.getCoordinates(),n=t.get(0).getCoordinate(0);if(!n.equals2D(e[0]))throw new B("bad split edge start point at "+n);var r=t.get(t.size()-1).getCoordinates(),i=r[r.length-1];if(!i.equals2D(e[e.length-1]))throw new B("bad split edge end point at "+i)},fn.prototype.interfaces_=function(){return[]},fn.prototype.getClass=function(){return fn};var pn=function(){};pn.prototype.interfaces_=function(){return[]},pn.prototype.getClass=function(){return pn},pn.octant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new i("Cannot compute the octant for point ( "+t+", "+e+" )");var n=Math.abs(t),r=Math.abs(e);return t>=0?e>=0?n>=r?0:1:n>=r?7:6:e>=0?n>=r?3:2:n>=r?4:5}if(arguments[0]instanceof h&&arguments[1]instanceof h){var o=arguments[0],a=arguments[1],s=a.x-o.x,u=a.y-o.y;if(0===s&&0===u)throw new i("Cannot compute the octant for two identical points "+o);return pn.octant(s,u)}};var dn=function(){};dn.prototype.getCoordinates=function(){},dn.prototype.size=function(){},dn.prototype.getCoordinate=function(t){},dn.prototype.isClosed=function(){},dn.prototype.setData=function(t){},dn.prototype.getData=function(){},dn.prototype.interfaces_=function(){return[]},dn.prototype.getClass=function(){return dn};var gn=function(){};gn.prototype.addIntersection=function(t,e){},gn.prototype.interfaces_=function(){return[dn]},gn.prototype.getClass=function(){return gn};var yn=function(){this._nodeList=new fn(this),this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};yn.prototype.getCoordinates=function(){return this._pts},yn.prototype.size=function(){return this._pts.length},yn.prototype.getCoordinate=function(t){return this._pts[t]},yn.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},yn.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(t),this.getCoordinate(t+1))},yn.prototype.setData=function(t){this._data=t},yn.prototype.safeOctant=function(t,e){return t.equals2D(e)?0:pn.octant(t,e)},yn.prototype.getData=function(){return this._data},yn.prototype.addIntersection=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];this.addIntersectionNode(t,e)}else if(4===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[3],o=new h(n.getIntersection(i));this.addIntersection(o,r)}},yn.prototype.toString=function(){return z.toLineString(new ue(this._pts))},yn.prototype.getNodeList=function(){return this._nodeList},yn.prototype.addIntersectionNode=function(t,e){var n=e,r=n+1;if(r<this._pts.length){var i=this._pts[r];t.equals2D(i)&&(n=r)}return this._nodeList.add(t,n)},yn.prototype.addIntersections=function(t,e,n){for(var r=0;r<t.getIntersectionNum();r++)this.addIntersection(t,e,n,r)},yn.prototype.interfaces_=function(){return[gn]},yn.prototype.getClass=function(){return yn},yn.getNodedSubstrings=function(){if(1===arguments.length){var t=arguments[0],e=new ft;return yn.getNodedSubstrings(t,e),e}if(2===arguments.length)for(var n=arguments[0],r=arguments[1],i=n.iterator();i.hasNext();){i.next().getNodeList().addSplitEdges(r)}};var vn=function(){if(this.p0=null,this.p1=null,0===arguments.length)this.p0=new h,this.p1=new h;else if(1===arguments.length){var t=arguments[0];this.p0=new h(t.p0),this.p1=new h(t.p1)}else if(2===arguments.length)this.p0=arguments[0],this.p1=arguments[1];else if(4===arguments.length){var e=arguments[0],n=arguments[1],r=arguments[2],i=arguments[3];this.p0=new h(e,n),this.p1=new h(r,i)}},mn={serialVersionUID:{configurable:!0}};vn.prototype.minX=function(){return Math.min(this.p0.x,this.p1.x)},vn.prototype.orientationIndex=function(){if(arguments[0]instanceof vn){var t=arguments[0],e=X.orientationIndex(this.p0,this.p1,t.p0),n=X.orientationIndex(this.p0,this.p1,t.p1);return e>=0&&n>=0?Math.max(e,n):e<=0&&n<=0?Math.max(e,n):0}if(arguments[0]instanceof h){var r=arguments[0];return X.orientationIndex(this.p0,this.p1,r)}},vn.prototype.toGeometry=function(t){return t.createLineString([this.p0,this.p1])},vn.prototype.isVertical=function(){return this.p0.x===this.p1.x},vn.prototype.equals=function(t){if(!(t instanceof vn))return!1;var e=t;return this.p0.equals(e.p0)&&this.p1.equals(e.p1)},vn.prototype.intersection=function(t){var e=new J;return e.computeIntersection(this.p0,this.p1,t.p0,t.p1),e.hasIntersection()?e.getIntersection(0):null},vn.prototype.project=function(){if(arguments[0]instanceof h){var t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new h(t);var e=this.projectionFactor(t),n=new h;return n.x=this.p0.x+e*(this.p1.x-this.p0.x),n.y=this.p0.y+e*(this.p1.y-this.p0.y),n}if(arguments[0]instanceof vn){var r=arguments[0],i=this.projectionFactor(r.p0),o=this.projectionFactor(r.p1);if(i>=1&&o>=1)return null;if(i<=0&&o<=0)return null;var a=this.project(r.p0);i<0&&(a=this.p0),i>1&&(a=this.p1);var s=this.project(r.p1);return o<0&&(s=this.p0),o>1&&(s=this.p1),new vn(a,s)}},vn.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()},vn.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},vn.prototype.getCoordinate=function(t){return 0===t?this.p0:this.p1},vn.prototype.distancePerpendicular=function(t){return X.distancePointLinePerpendicular(t,this.p0,this.p1)},vn.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)},vn.prototype.midPoint=function(){return vn.midPoint(this.p0,this.p1)},vn.prototype.projectionFactor=function(t){if(t.equals(this.p0))return 0;if(t.equals(this.p1))return 1;var e=this.p1.x-this.p0.x,n=this.p1.y-this.p0.y,r=e*e+n*n;return r<=0?o.NaN:((t.x-this.p0.x)*e+(t.y-this.p0.y)*n)/r},vn.prototype.closestPoints=function(t){var e=this.intersection(t);if(null!==e)return[e,e];var n=new Array(2).fill(null),r=o.MAX_VALUE,i=null,a=this.closestPoint(t.p0);r=a.distance(t.p0),n[0]=a,n[1]=t.p0;var s=this.closestPoint(t.p1);(i=s.distance(t.p1))<r&&(r=i,n[0]=s,n[1]=t.p1);var u=t.closestPoint(this.p0);(i=u.distance(this.p0))<r&&(r=i,n[0]=this.p0,n[1]=u);var c=t.closestPoint(this.p1);return(i=c.distance(this.p1))<r&&(r=i,n[0]=this.p1,n[1]=c),n},vn.prototype.closestPoint=function(t){var e=this.projectionFactor(t);return e>0&&e<1?this.project(t):this.p0.distance(t)<this.p1.distance(t)?this.p0:this.p1},vn.prototype.maxX=function(){return Math.max(this.p0.x,this.p1.x)},vn.prototype.getLength=function(){return this.p0.distance(this.p1)},vn.prototype.compareTo=function(t){var e=t,n=this.p0.compareTo(e.p0);return 0!==n?n:this.p1.compareTo(e.p1)},vn.prototype.reverse=function(){var t=this.p0;this.p0=this.p1,this.p1=t},vn.prototype.equalsTopo=function(t){return this.p0.equals(t.p0)&&(this.p1.equals(t.p1)||this.p0.equals(t.p1))&&this.p1.equals(t.p0)},vn.prototype.lineIntersection=function(t){try{return A.intersection(this.p0,this.p1,t.p0,t.p1)}catch(t){if(!(t instanceof I))throw t}return null},vn.prototype.maxY=function(){return Math.max(this.p0.y,this.p1.y)},vn.prototype.pointAlongOffset=function(t,e){var n=this.p0.x+t*(this.p1.x-this.p0.x),r=this.p0.y+t*(this.p1.y-this.p0.y),i=this.p1.x-this.p0.x,o=this.p1.y-this.p0.y,a=Math.sqrt(i*i+o*o),s=0,u=0;if(0!==e){if(a<=0)throw new Error("Cannot compute offset from zero-length line segment");s=e*i/a,u=e*o/a}return new h(n-u,r+s)},vn.prototype.setCoordinates=function(){if(1===arguments.length){var t=arguments[0];this.setCoordinates(t.p0,t.p1)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.p0.x=e.x,this.p0.y=e.y,this.p1.x=n.x,this.p1.y=n.y}},vn.prototype.segmentFraction=function(t){var e=this.projectionFactor(t);return e<0?e=0:(e>1||o.isNaN(e))&&(e=1),e},vn.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},vn.prototype.isHorizontal=function(){return this.p0.y===this.p1.y},vn.prototype.distance=function(){if(arguments[0]instanceof vn){var t=arguments[0];return X.distanceLineLine(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof h){var e=arguments[0];return X.distancePointLine(e,this.p0,this.p1)}},vn.prototype.pointAlong=function(t){var e=new h;return e.x=this.p0.x+t*(this.p1.x-this.p0.x),e.y=this.p0.y+t*(this.p1.y-this.p0.y),e},vn.prototype.hashCode=function(){var t=o.doubleToLongBits(this.p0.x);t^=31*o.doubleToLongBits(this.p0.y);var e=Math.trunc(t)^Math.trunc(t>>32),n=o.doubleToLongBits(this.p1.x);return n^=31*o.doubleToLongBits(this.p1.y),e^(Math.trunc(n)^Math.trunc(n>>32))},vn.prototype.interfaces_=function(){return[s,l]},vn.prototype.getClass=function(){return vn},vn.midPoint=function(t,e){return new h((t.x+e.x)/2,(t.y+e.y)/2)},mn.serialVersionUID.get=function(){return 0x2d2172135f411c00},Object.defineProperties(vn,mn);var _n=function(){this.tempEnv1=new N,this.tempEnv2=new N,this._overlapSeg1=new vn,this._overlapSeg2=new vn};_n.prototype.overlap=function(){if(2===arguments.length);else if(4===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];t.getLineSegment(e,this._overlapSeg1),n.getLineSegment(r,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}},_n.prototype.interfaces_=function(){return[]},_n.prototype.getClass=function(){return _n};var bn=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];this._pts=t,this._start=e,this._end=n,this._context=r};bn.prototype.getLineSegment=function(t,e){e.p0=this._pts[t],e.p1=this._pts[t+1]},bn.prototype.computeSelect=function(t,e,n,r){var i=this._pts[e],o=this._pts[n];if(r.tempEnv1.init(i,o),n-e==1)return r.select(this,e),null;if(!t.intersects(r.tempEnv1))return null;var a=Math.trunc((e+n)/2);e<a&&this.computeSelect(t,e,a,r),a<n&&this.computeSelect(t,a,n,r)},bn.prototype.getCoordinates=function(){for(var t=new Array(this._end-this._start+1).fill(null),e=0,n=this._start;n<=this._end;n++)t[e++]=this._pts[n];return t},bn.prototype.computeOverlaps=function(t,e){this.computeOverlapsInternal(this._start,this._end,t,t._start,t._end,e)},bn.prototype.setId=function(t){this._id=t},bn.prototype.select=function(t,e){this.computeSelect(t,this._start,this._end,e)},bn.prototype.getEnvelope=function(){if(null===this._env){var t=this._pts[this._start],e=this._pts[this._end];this._env=new N(t,e)}return this._env},bn.prototype.getEndIndex=function(){return this._end},bn.prototype.getStartIndex=function(){return this._start},bn.prototype.getContext=function(){return this._context},bn.prototype.getId=function(){return this._id},bn.prototype.computeOverlapsInternal=function(t,e,n,r,i,o){var a=this._pts[t],s=this._pts[e],u=n._pts[r],c=n._pts[i];if(e-t==1&&i-r==1)return o.overlap(this,t,n,r),null;if(o.tempEnv1.init(a,s),o.tempEnv2.init(u,c),!o.tempEnv1.intersects(o.tempEnv2))return null;var l=Math.trunc((t+e)/2),h=Math.trunc((r+i)/2);t<l&&(r<h&&this.computeOverlapsInternal(t,l,n,r,h,o),h<i&&this.computeOverlapsInternal(t,l,n,h,i,o)),l<e&&(r<h&&this.computeOverlapsInternal(l,e,n,r,h,o),h<i&&this.computeOverlapsInternal(l,e,n,h,i,o))},bn.prototype.interfaces_=function(){return[]},bn.prototype.getClass=function(){return bn};var wn=function(){};wn.prototype.interfaces_=function(){return[]},wn.prototype.getClass=function(){return wn},wn.getChainStartIndices=function(t){var e=0,n=new ft;n.add(new w(e));do{var r=wn.findChainEnd(t,e);n.add(new w(r)),e=r}while(e<t.length-1);return wn.toIntArray(n)},wn.findChainEnd=function(t,e){for(var n=e;n<t.length-1&&t[n].equals2D(t[n+1]);)n++;if(n>=t.length-1)return t.length-1;for(var r=qe.quadrant(t[n],t[n+1]),i=e+1;i<t.length;){if(!t[i-1].equals2D(t[i]))if(qe.quadrant(t[i-1],t[i])!==r)break;i++}return i-1},wn.getChains=function(){if(1===arguments.length){var t=arguments[0];return wn.getChains(t,null)}if(2===arguments.length){for(var e=arguments[0],n=arguments[1],r=new ft,i=wn.getChainStartIndices(e),o=0;o<i.length-1;o++){var a=new bn(e,i[o],i[o+1],n);r.add(a)}return r}},wn.toIntArray=function(t){for(var e=new Array(t.size()).fill(null),n=0;n<e.length;n++)e[n]=t.get(n).intValue();return e};var En=function(){};En.prototype.computeNodes=function(t){},En.prototype.getNodedSubstrings=function(){},En.prototype.interfaces_=function(){return[]},En.prototype.getClass=function(){return En};var xn=function(){if(this._segInt=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.setSegmentIntersector(t)}};xn.prototype.setSegmentIntersector=function(t){this._segInt=t},xn.prototype.interfaces_=function(){return[En]},xn.prototype.getClass=function(){return xn};var On=function(t){function e(e){e?t.call(this,e):t.call(this),this._monoChains=new ft,this._index=new un,this._idCounter=0,this._nodedSegStrings=null,this._nOverlaps=0}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={SegmentOverlapAction:{configurable:!0}};return e.prototype.getMonotoneChains=function(){return this._monoChains},e.prototype.getNodedSubstrings=function(){return yn.getNodedSubstrings(this._nodedSegStrings)},e.prototype.getIndex=function(){return this._index},e.prototype.add=function(t){for(var e=wn.getChains(t.getCoordinates(),t).iterator();e.hasNext();){var n=e.next();n.setId(this._idCounter++),this._index.insert(n.getEnvelope(),n),this._monoChains.add(n)}},e.prototype.computeNodes=function(t){this._nodedSegStrings=t;for(var e=t.iterator();e.hasNext();)this.add(e.next());this.intersectChains()},e.prototype.intersectChains=function(){for(var t=new Mn(this._segInt),e=this._monoChains.iterator();e.hasNext();)for(var n=e.next(),r=this._index.query(n.getEnvelope()).iterator();r.hasNext();){var i=r.next();if(i.getId()>n.getId()&&(n.computeOverlaps(i,t),this._nOverlaps++),this._segInt.isDone())return null}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.SegmentOverlapAction.get=function(){return Mn},Object.defineProperties(e,n),e}(xn),Mn=function(t){function e(){t.call(this),this._si=null;var e=arguments[0];this._si=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.overlap=function(){if(4!==arguments.length)return t.prototype.overlap.apply(this,arguments);var e=arguments[0],n=arguments[1],r=arguments[2],i=arguments[3],o=e.getContext(),a=r.getContext();this._si.processIntersections(o,n,a,i)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(_n),Sn=function t(){if(this._quadrantSegments=t.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=t.CAP_ROUND,this._joinStyle=t.JOIN_ROUND,this._mitreLimit=t.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=t.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.setQuadrantSegments(e)}else if(2===arguments.length){var n=arguments[0],r=arguments[1];this.setQuadrantSegments(n),this.setEndCapStyle(r)}else if(4===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3];this.setQuadrantSegments(i),this.setEndCapStyle(o),this.setJoinStyle(a),this.setMitreLimit(s)}},Pn={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};Sn.prototype.getEndCapStyle=function(){return this._endCapStyle},Sn.prototype.isSingleSided=function(){return this._isSingleSided},Sn.prototype.setQuadrantSegments=function(t){this._quadrantSegments=t,0===this._quadrantSegments&&(this._joinStyle=Sn.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=Sn.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),t<=0&&(this._quadrantSegments=1),this._joinStyle!==Sn.JOIN_ROUND&&(this._quadrantSegments=Sn.DEFAULT_QUADRANT_SEGMENTS)},Sn.prototype.getJoinStyle=function(){return this._joinStyle},Sn.prototype.setJoinStyle=function(t){this._joinStyle=t},Sn.prototype.setSimplifyFactor=function(t){this._simplifyFactor=t<0?0:t},Sn.prototype.getSimplifyFactor=function(){return this._simplifyFactor},Sn.prototype.getQuadrantSegments=function(){return this._quadrantSegments},Sn.prototype.setEndCapStyle=function(t){this._endCapStyle=t},Sn.prototype.getMitreLimit=function(){return this._mitreLimit},Sn.prototype.setMitreLimit=function(t){this._mitreLimit=t},Sn.prototype.setSingleSided=function(t){this._isSingleSided=t},Sn.prototype.interfaces_=function(){return[]},Sn.prototype.getClass=function(){return Sn},Sn.bufferDistanceError=function(t){var e=Math.PI/2/t;return 1-Math.cos(e/2)},Pn.CAP_ROUND.get=function(){return 1},Pn.CAP_FLAT.get=function(){return 2},Pn.CAP_SQUARE.get=function(){return 3},Pn.JOIN_ROUND.get=function(){return 1},Pn.JOIN_MITRE.get=function(){return 2},Pn.JOIN_BEVEL.get=function(){return 3},Pn.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8},Pn.DEFAULT_MITRE_LIMIT.get=function(){return 5},Pn.DEFAULT_SIMPLIFY_FACTOR.get=function(){return.01},Object.defineProperties(Sn,Pn);var Cn=function(t){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=X.COUNTERCLOCKWISE,this._inputLine=t||null},Tn={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};Cn.prototype.isDeletable=function(t,e,n,r){var i=this._inputLine[t],o=this._inputLine[e],a=this._inputLine[n];return!!this.isConcave(i,o,a)&&(!!this.isShallow(i,o,a,r)&&this.isShallowSampled(i,o,t,n,r))},Cn.prototype.deleteShallowConcavities=function(){for(var t=1,e=this.findNextNonDeletedIndex(t),n=this.findNextNonDeletedIndex(e),r=!1;n<this._inputLine.length;){var i=!1;this.isDeletable(t,e,n,this._distanceTol)&&(this._isDeleted[e]=Cn.DELETE,i=!0,r=!0),t=i?n:e,e=this.findNextNonDeletedIndex(t),n=this.findNextNonDeletedIndex(e)}return r},Cn.prototype.isShallowConcavity=function(t,e,n,r){return X.computeOrientation(t,e,n)===this._angleOrientation&&X.distancePointLine(e,t,n)<r},Cn.prototype.isShallowSampled=function(t,e,n,r,i){var o=Math.trunc((r-n)/Cn.NUM_PTS_TO_CHECK);o<=0&&(o=1);for(var a=n;a<r;a+=o)if(!this.isShallow(t,e,this._inputLine[a],i))return!1;return!0},Cn.prototype.isConcave=function(t,e,n){var r=X.computeOrientation(t,e,n)===this._angleOrientation;return r},Cn.prototype.simplify=function(t){this._distanceTol=Math.abs(t),t<0&&(this._angleOrientation=X.CLOCKWISE),this._isDeleted=new Array(this._inputLine.length).fill(null);var e=!1;do{e=this.deleteShallowConcavities()}while(e);return this.collapseLine()},Cn.prototype.findNextNonDeletedIndex=function(t){for(var e=t+1;e<this._inputLine.length&&this._isDeleted[e]===Cn.DELETE;)e++;return e},Cn.prototype.isShallow=function(t,e,n,r){return X.distancePointLine(e,t,n)<r},Cn.prototype.collapseLine=function(){for(var t=new dt,e=0;e<this._inputLine.length;e++)this._isDeleted[e]!==Cn.DELETE&&t.add(this._inputLine[e]);return t.toCoordinateArray()},Cn.prototype.interfaces_=function(){return[]},Cn.prototype.getClass=function(){return Cn},Cn.simplify=function(t,e){return new Cn(t).simplify(e)},Tn.INIT.get=function(){return 0},Tn.DELETE.get=function(){return 1},Tn.KEEP.get=function(){return 1},Tn.NUM_PTS_TO_CHECK.get=function(){return 10},Object.defineProperties(Cn,Tn);var In=function(){this._ptList=null,this._precisionModel=null,this._minimimVertexDistance=0,this._ptList=new ft},Ln={COORDINATE_ARRAY_TYPE:{configurable:!0}};In.prototype.getCoordinates=function(){return this._ptList.toArray(In.COORDINATE_ARRAY_TYPE)},In.prototype.setPrecisionModel=function(t){this._precisionModel=t},In.prototype.addPt=function(t){var e=new h(t);if(this._precisionModel.makePrecise(e),this.isRedundant(e))return null;this._ptList.add(e)},In.prototype.revere=function(){},In.prototype.addPts=function(t,e){if(e)for(var n=0;n<t.length;n++)this.addPt(t[n]);else for(var r=t.length-1;r>=0;r--)this.addPt(t[r])},In.prototype.isRedundant=function(t){if(this._ptList.size()<1)return!1;var e=this._ptList.get(this._ptList.size()-1);return t.distance(e)<this._minimimVertexDistance},In.prototype.toString=function(){return(new ve).createLineString(this.getCoordinates()).toString()},In.prototype.closeRing=function(){if(this._ptList.size()<1)return null;var t=new h(this._ptList.get(0)),e=this._ptList.get(this._ptList.size()-1);if(t.equals(e))return null;this._ptList.add(t)},In.prototype.setMinimumVertexDistance=function(t){this._minimimVertexDistance=t},In.prototype.interfaces_=function(){return[]},In.prototype.getClass=function(){return In},Ln.COORDINATE_ARRAY_TYPE.get=function(){return new Array(0).fill(null)},Object.defineProperties(In,Ln);var An=function(){},Nn={PI_TIMES_2:{configurable:!0},PI_OVER_2:{configurable:!0},PI_OVER_4:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},CLOCKWISE:{configurable:!0},NONE:{configurable:!0}};An.prototype.interfaces_=function(){return[]},An.prototype.getClass=function(){return An},An.toDegrees=function(t){return 180*t/Math.PI},An.normalize=function(t){for(;t>Math.PI;)t-=An.PI_TIMES_2;for(;t<=-Math.PI;)t+=An.PI_TIMES_2;return t},An.angle=function(){if(1===arguments.length){var t=arguments[0];return Math.atan2(t.y,t.x)}if(2===arguments.length){var e=arguments[0],n=arguments[1],r=n.x-e.x,i=n.y-e.y;return Math.atan2(i,r)}},An.isAcute=function(t,e,n){var r=t.x-e.x,i=t.y-e.y;return r*(n.x-e.x)+i*(n.y-e.y)>0},An.isObtuse=function(t,e,n){var r=t.x-e.x,i=t.y-e.y;return r*(n.x-e.x)+i*(n.y-e.y)<0},An.interiorAngle=function(t,e,n){var r=An.angle(e,t),i=An.angle(e,n);return Math.abs(i-r)},An.normalizePositive=function(t){if(t<0){for(;t<0;)t+=An.PI_TIMES_2;t>=An.PI_TIMES_2&&(t=0)}else{for(;t>=An.PI_TIMES_2;)t-=An.PI_TIMES_2;t<0&&(t=0)}return t},An.angleBetween=function(t,e,n){var r=An.angle(e,t),i=An.angle(e,n);return An.diff(r,i)},An.diff=function(t,e){var n=null;return(n=t<e?e-t:t-e)>Math.PI&&(n=2*Math.PI-n),n},An.toRadians=function(t){return t*Math.PI/180},An.getTurn=function(t,e){var n=Math.sin(e-t);return n>0?An.COUNTERCLOCKWISE:n<0?An.CLOCKWISE:An.NONE},An.angleBetweenOriented=function(t,e,n){var r=An.angle(e,t),i=An.angle(e,n)-r;return i<=-Math.PI?i+An.PI_TIMES_2:i>Math.PI?i-An.PI_TIMES_2:i},Nn.PI_TIMES_2.get=function(){return 2*Math.PI},Nn.PI_OVER_2.get=function(){return Math.PI/2},Nn.PI_OVER_4.get=function(){return Math.PI/4},Nn.COUNTERCLOCKWISE.get=function(){return X.COUNTERCLOCKWISE},Nn.CLOCKWISE.get=function(){return X.CLOCKWISE},Nn.NONE.get=function(){return X.COLLINEAR},Object.defineProperties(An,Nn);var kn=function t(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new vn,this._seg1=new vn,this._offset0=new vn,this._offset1=new vn,this._side=0,this._hasNarrowConcaveAngle=!1;var e=arguments[0],n=arguments[1],r=arguments[2];this._precisionModel=e,this._bufParams=n,this._li=new J,this._filletAngleQuantum=Math.PI/2/n.getQuadrantSegments(),n.getQuadrantSegments()>=8&&n.getJoinStyle()===Sn.JOIN_ROUND&&(this._closingSegLengthFactor=t.MAX_CLOSING_SEG_LEN_FACTOR),this.init(r)},jn={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};kn.prototype.addNextSegment=function(t,e){if(this._s0=this._s1,this._s1=this._s2,this._s2=t,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var n=X.computeOrientation(this._s0,this._s1,this._s2),r=n===X.CLOCKWISE&&this._side===Me.LEFT||n===X.COUNTERCLOCKWISE&&this._side===Me.RIGHT;0===n?this.addCollinear(e):r?this.addOutsideTurn(n,e):this.addInsideTurn(n,e)},kn.prototype.addLineEndCap=function(t,e){var n=new vn(t,e),r=new vn;this.computeOffsetSegment(n,Me.LEFT,this._distance,r);var i=new vn;this.computeOffsetSegment(n,Me.RIGHT,this._distance,i);var o=e.x-t.x,a=e.y-t.y,s=Math.atan2(a,o);switch(this._bufParams.getEndCapStyle()){case Sn.CAP_ROUND:this._segList.addPt(r.p1),this.addFilletArc(e,s+Math.PI/2,s-Math.PI/2,X.CLOCKWISE,this._distance),this._segList.addPt(i.p1);break;case Sn.CAP_FLAT:this._segList.addPt(r.p1),this._segList.addPt(i.p1);break;case Sn.CAP_SQUARE:var u=new h;u.x=Math.abs(this._distance)*Math.cos(s),u.y=Math.abs(this._distance)*Math.sin(s);var c=new h(r.p1.x+u.x,r.p1.y+u.y),l=new h(i.p1.x+u.x,i.p1.y+u.y);this._segList.addPt(c),this._segList.addPt(l)}},kn.prototype.getCoordinates=function(){return this._segList.getCoordinates()},kn.prototype.addMitreJoin=function(t,e,n,r){var i=!0,o=null;try{o=A.intersection(e.p0,e.p1,n.p0,n.p1),(r<=0?1:o.distance(t)/Math.abs(r))>this._bufParams.getMitreLimit()&&(i=!1)}catch(t){if(!(t instanceof I))throw t;o=new h(0,0),i=!1}i?this._segList.addPt(o):this.addLimitedMitreJoin(e,n,r,this._bufParams.getMitreLimit())},kn.prototype.addFilletCorner=function(t,e,n,r,i){var o=e.x-t.x,a=e.y-t.y,s=Math.atan2(a,o),u=n.x-t.x,c=n.y-t.y,l=Math.atan2(c,u);r===X.CLOCKWISE?s<=l&&(s+=2*Math.PI):s>=l&&(s-=2*Math.PI),this._segList.addPt(e),this.addFilletArc(t,s,l,r,i),this._segList.addPt(n)},kn.prototype.addOutsideTurn=function(t,e){if(this._offset0.p1.distance(this._offset1.p0)<this._distance*kn.OFFSET_SEGMENT_SEPARATION_FACTOR)return this._segList.addPt(this._offset0.p1),null;this._bufParams.getJoinStyle()===Sn.JOIN_MITRE?this.addMitreJoin(this._s1,this._offset0,this._offset1,this._distance):this._bufParams.getJoinStyle()===Sn.JOIN_BEVEL?this.addBevelJoin(this._offset0,this._offset1):(e&&this._segList.addPt(this._offset0.p1),this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,t,this._distance),this._segList.addPt(this._offset1.p0))},kn.prototype.createSquare=function(t){this._segList.addPt(new h(t.x+this._distance,t.y+this._distance)),this._segList.addPt(new h(t.x+this._distance,t.y-this._distance)),this._segList.addPt(new h(t.x-this._distance,t.y-this._distance)),this._segList.addPt(new h(t.x-this._distance,t.y+this._distance)),this._segList.closeRing()},kn.prototype.addSegments=function(t,e){this._segList.addPts(t,e)},kn.prototype.addFirstSegment=function(){this._segList.addPt(this._offset1.p0)},kn.prototype.addLastSegment=function(){this._segList.addPt(this._offset1.p1)},kn.prototype.initSideSegments=function(t,e,n){this._s1=t,this._s2=e,this._side=n,this._seg1.setCoordinates(t,e),this.computeOffsetSegment(this._seg1,n,this._distance,this._offset1)},kn.prototype.addLimitedMitreJoin=function(t,e,n,r){var i=this._seg0.p1,o=An.angle(i,this._seg0.p0),a=An.angleBetweenOriented(this._seg0.p0,i,this._seg1.p1)/2,s=An.normalize(o+a),u=An.normalize(s+Math.PI),c=r*n,l=n-c*Math.abs(Math.sin(a)),f=i.x+c*Math.cos(u),p=i.y+c*Math.sin(u),d=new h(f,p),g=new vn(i,d),y=g.pointAlongOffset(1,l),v=g.pointAlongOffset(1,-l);this._side===Me.LEFT?(this._segList.addPt(y),this._segList.addPt(v)):(this._segList.addPt(v),this._segList.addPt(y))},kn.prototype.computeOffsetSegment=function(t,e,n,r){var i=e===Me.LEFT?1:-1,o=t.p1.x-t.p0.x,a=t.p1.y-t.p0.y,s=Math.sqrt(o*o+a*a),u=i*n*o/s,c=i*n*a/s;r.p0.x=t.p0.x-c,r.p0.y=t.p0.y+u,r.p1.x=t.p1.x-c,r.p1.y=t.p1.y+u},kn.prototype.addFilletArc=function(t,e,n,r,i){var o=r===X.CLOCKWISE?-1:1,a=Math.abs(e-n),s=Math.trunc(a/this._filletAngleQuantum+.5);if(s<1)return null;for(var u=a/s,c=0,l=new h;c<a;){var f=e+o*c;l.x=t.x+i*Math.cos(f),l.y=t.y+i*Math.sin(f),this._segList.addPt(l),c+=u}},kn.prototype.addInsideTurn=function(t,e){if(this._li.computeIntersection(this._offset0.p0,this._offset0.p1,this._offset1.p0,this._offset1.p1),this._li.hasIntersection())this._segList.addPt(this._li.getIntersection(0));else if(this._hasNarrowConcaveAngle=!0,this._offset0.p1.distance(this._offset1.p0)<this._distance*kn.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)this._segList.addPt(this._offset0.p1);else{if(this._segList.addPt(this._offset0.p1),this._closingSegLengthFactor>0){var n=new h((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(n);var r=new h((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(r)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}},kn.prototype.createCircle=function(t){var e=new h(t.x+this._distance,t.y);this._segList.addPt(e),this.addFilletArc(t,0,2*Math.PI,-1,this._distance),this._segList.closeRing()},kn.prototype.addBevelJoin=function(t,e){this._segList.addPt(t.p1),this._segList.addPt(e.p0)},kn.prototype.init=function(t){this._distance=t,this._maxCurveSegmentError=t*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new In,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(t*kn.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},kn.prototype.addCollinear=function(t){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===Sn.JOIN_BEVEL||this._bufParams.getJoinStyle()===Sn.JOIN_MITRE?(t&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,X.CLOCKWISE,this._distance))},kn.prototype.closeRing=function(){this._segList.closeRing()},kn.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle},kn.prototype.interfaces_=function(){return[]},kn.prototype.getClass=function(){return kn},jn.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return.001},jn.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return.001},jn.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6},jn.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80},Object.defineProperties(kn,jn);var Rn=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var t=arguments[0],e=arguments[1];this._precisionModel=t,this._bufParams=e};Rn.prototype.getOffsetCurve=function(t,e){if(this._distance=e,0===e)return null;var n=e<0,r=Math.abs(e),i=this.getSegGen(r);t.length<=1?this.computePointCurve(t[0],i):this.computeOffsetCurve(t,n,i);var o=i.getCoordinates();return n&&gt.reverse(o),o},Rn.prototype.computeSingleSidedBufferCurve=function(t,e,n){var r=this.simplifyTolerance(this._distance);if(e){n.addSegments(t,!0);var i=Cn.simplify(t,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],Me.LEFT),n.addFirstSegment();for(var a=o-2;a>=0;a--)n.addNextSegment(i[a],!0)}else{n.addSegments(t,!1);var s=Cn.simplify(t,r),u=s.length-1;n.initSideSegments(s[0],s[1],Me.LEFT),n.addFirstSegment();for(var c=2;c<=u;c++)n.addNextSegment(s[c],!0)}n.addLastSegment(),n.closeRing()},Rn.prototype.computeRingBufferCurve=function(t,e,n){var r=this.simplifyTolerance(this._distance);e===Me.RIGHT&&(r=-r);var i=Cn.simplify(t,r),o=i.length-1;n.initSideSegments(i[o-1],i[0],e);for(var a=1;a<=o;a++){var s=1!==a;n.addNextSegment(i[a],s)}n.closeRing()},Rn.prototype.computeLineBufferCurve=function(t,e){var n=this.simplifyTolerance(this._distance),r=Cn.simplify(t,n),i=r.length-1;e.initSideSegments(r[0],r[1],Me.LEFT);for(var o=2;o<=i;o++)e.addNextSegment(r[o],!0);e.addLastSegment(),e.addLineEndCap(r[i-1],r[i]);var a=Cn.simplify(t,-n),s=a.length-1;e.initSideSegments(a[s],a[s-1],Me.LEFT);for(var u=s-2;u>=0;u--)e.addNextSegment(a[u],!0);e.addLastSegment(),e.addLineEndCap(a[1],a[0]),e.closeRing()},Rn.prototype.computePointCurve=function(t,e){switch(this._bufParams.getEndCapStyle()){case Sn.CAP_ROUND:e.createCircle(t);break;case Sn.CAP_SQUARE:e.createSquare(t)}},Rn.prototype.getLineCurve=function(t,e){if(this._distance=e,e<0&&!this._bufParams.isSingleSided())return null;if(0===e)return null;var n=Math.abs(e),r=this.getSegGen(n);if(t.length<=1)this.computePointCurve(t[0],r);else if(this._bufParams.isSingleSided()){var i=e<0;this.computeSingleSidedBufferCurve(t,i,r)}else this.computeLineBufferCurve(t,r);return r.getCoordinates()},Rn.prototype.getBufferParameters=function(){return this._bufParams},Rn.prototype.simplifyTolerance=function(t){return t*this._bufParams.getSimplifyFactor()},Rn.prototype.getRingCurve=function(t,e,n){if(this._distance=n,t.length<=2)return this.getLineCurve(t,n);if(0===n)return Rn.copyCoordinates(t);var r=this.getSegGen(n);return this.computeRingBufferCurve(t,e,r),r.getCoordinates()},Rn.prototype.computeOffsetCurve=function(t,e,n){var r=this.simplifyTolerance(this._distance);if(e){var i=Cn.simplify(t,-r),o=i.length-1;n.initSideSegments(i[o],i[o-1],Me.LEFT),n.addFirstSegment();for(var a=o-2;a>=0;a--)n.addNextSegment(i[a],!0)}else{var s=Cn.simplify(t,r),u=s.length-1;n.initSideSegments(s[0],s[1],Me.LEFT),n.addFirstSegment();for(var c=2;c<=u;c++)n.addNextSegment(s[c],!0)}n.addLastSegment()},Rn.prototype.getSegGen=function(t){return new kn(this._precisionModel,this._bufParams,t)},Rn.prototype.interfaces_=function(){return[]},Rn.prototype.getClass=function(){return Rn},Rn.copyCoordinates=function(t){for(var e=new Array(t.length).fill(null),n=0;n<e.length;n++)e[n]=new h(t[n]);return e};var Dn=function(){this._subgraphs=null,this._seg=new vn,this._cga=new X;var t=arguments[0];this._subgraphs=t},Fn={DepthSegment:{configurable:!0}};Dn.prototype.findStabbedSegments=function(){if(1===arguments.length){for(var t=arguments[0],e=new ft,n=this._subgraphs.iterator();n.hasNext();){var r=n.next(),i=r.getEnvelope();t.y<i.getMinY()||t.y>i.getMaxY()||this.findStabbedSegments(t,r.getDirectedEdges(),e)}return e}if(3===arguments.length)if(v(arguments[2],lt)&&arguments[0]instanceof h&&arguments[1]instanceof Ve)for(var o=arguments[0],a=arguments[1],s=arguments[2],u=a.getEdge().getCoordinates(),c=0;c<u.length-1;c++){if(this._seg.p0=u[c],this._seg.p1=u[c+1],this._seg.p0.y>this._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)<o.x||this._seg.isHorizontal()||o.y<this._seg.p0.y||o.y>this._seg.p1.y||X.computeOrientation(this._seg.p0,this._seg.p1,o)===X.RIGHT)){var l=a.getDepth(Me.LEFT);this._seg.p0.equals(u[c])||(l=a.getDepth(Me.RIGHT));var f=new zn(this._seg,l);s.add(f)}}else if(v(arguments[2],lt)&&arguments[0]instanceof h&&v(arguments[1],lt))for(var p=arguments[0],d=arguments[1],g=arguments[2],y=d.iterator();y.hasNext();){var m=y.next();m.isForward()&&this.findStabbedSegments(p,m,g)}},Dn.prototype.getDepth=function(t){var e=this.findStabbedSegments(t);return 0===e.size()?0:en.min(e)._leftDepth},Dn.prototype.interfaces_=function(){return[]},Dn.prototype.getClass=function(){return Dn},Fn.DepthSegment.get=function(){return zn},Object.defineProperties(Dn,Fn);var zn=function(){this._upwardSeg=null,this._leftDepth=null;var t=arguments[0],e=arguments[1];this._upwardSeg=new vn(t),this._leftDepth=e};zn.prototype.compareTo=function(t){var e=t;if(this._upwardSeg.minX()>=e._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=e._upwardSeg.minX())return-1;var n=this._upwardSeg.orientationIndex(e._upwardSeg);return 0!==n?n:0!==(n=-1*e._upwardSeg.orientationIndex(this._upwardSeg))?n:this._upwardSeg.compareTo(e._upwardSeg)},zn.prototype.compareX=function(t,e){var n=t.p0.compareTo(e.p0);return 0!==n?n:t.p1.compareTo(e.p1)},zn.prototype.toString=function(){return this._upwardSeg.toString()},zn.prototype.interfaces_=function(){return[s]},zn.prototype.getClass=function(){return zn};var Bn=function(t,e,n){this.p0=t||null,this.p1=e||null,this.p2=n||null};Bn.prototype.area=function(){return Bn.area(this.p0,this.p1,this.p2)},Bn.prototype.signedArea=function(){return Bn.signedArea(this.p0,this.p1,this.p2)},Bn.prototype.interpolateZ=function(t){if(null===t)throw new i("Supplied point is null.");return Bn.interpolateZ(t,this.p0,this.p1,this.p2)},Bn.prototype.longestSideLength=function(){return Bn.longestSideLength(this.p0,this.p1,this.p2)},Bn.prototype.isAcute=function(){return Bn.isAcute(this.p0,this.p1,this.p2)},Bn.prototype.circumcentre=function(){return Bn.circumcentre(this.p0,this.p1,this.p2)},Bn.prototype.area3D=function(){return Bn.area3D(this.p0,this.p1,this.p2)},Bn.prototype.centroid=function(){return Bn.centroid(this.p0,this.p1,this.p2)},Bn.prototype.inCentre=function(){return Bn.inCentre(this.p0,this.p1,this.p2)},Bn.prototype.interfaces_=function(){return[]},Bn.prototype.getClass=function(){return Bn},Bn.area=function(t,e,n){return Math.abs(((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2)},Bn.signedArea=function(t,e,n){return((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2},Bn.det=function(t,e,n,r){return t*r-e*n},Bn.interpolateZ=function(t,e,n,r){var i=e.x,o=e.y,a=n.x-i,s=r.x-i,u=n.y-o,c=r.y-o,l=a*c-s*u,h=t.x-i,f=t.y-o,p=(c*h-s*f)/l,d=(-u*h+a*f)/l;return e.z+p*(n.z-e.z)+d*(r.z-e.z)},Bn.longestSideLength=function(t,e,n){var r=t.distance(e),i=e.distance(n),o=n.distance(t),a=r;return i>a&&(a=i),o>a&&(a=o),a},Bn.isAcute=function(t,e,n){return!!An.isAcute(t,e,n)&&(!!An.isAcute(e,n,t)&&!!An.isAcute(n,t,e))},Bn.circumcentre=function(t,e,n){var r=n.x,i=n.y,o=t.x-r,a=t.y-i,s=e.x-r,u=e.y-i,c=2*Bn.det(o,a,s,u),l=Bn.det(a,o*o+a*a,u,s*s+u*u),f=Bn.det(o,o*o+a*a,s,s*s+u*u);return new h(r-l/c,i+f/c)},Bn.perpendicularBisector=function(t,e){var n=e.x-t.x,r=e.y-t.y,i=new A(t.x+n/2,t.y+r/2,1),o=new A(t.x-r+n/2,t.y+n+r/2,1);return new A(i,o)},Bn.angleBisector=function(t,e,n){var r=e.distance(t),i=r/(r+e.distance(n)),o=n.x-t.x,a=n.y-t.y;return new h(t.x+i*o,t.y+i*a)},Bn.area3D=function(t,e,n){var r=e.x-t.x,i=e.y-t.y,o=e.z-t.z,a=n.x-t.x,s=n.y-t.y,u=n.z-t.z,c=i*u-o*s,l=o*a-r*u,h=r*s-i*a,f=c*c+l*l+h*h,p=Math.sqrt(f)/2;return p},Bn.centroid=function(t,e,n){var r=(t.x+e.x+n.x)/3,i=(t.y+e.y+n.y)/3;return new h(r,i)},Bn.inCentre=function(t,e,n){var r=e.distance(n),i=t.distance(n),o=t.distance(e),a=r+i+o,s=(r*t.x+i*e.x+o*n.x)/a,u=(r*t.y+i*e.y+o*n.y)/a;return new h(s,u)};var qn=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new ft;var t=arguments[0],e=arguments[1],n=arguments[2];this._inputGeom=t,this._distance=e,this._curveBuilder=n};qn.prototype.addPoint=function(t){if(this._distance<=0)return null;var e=t.getCoordinates(),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,g.EXTERIOR,g.INTERIOR)},qn.prototype.addPolygon=function(t){var e=this._distance,n=Me.LEFT;this._distance<0&&(e=-this._distance,n=Me.RIGHT);var r=t.getExteriorRing(),i=gt.removeRepeatedPoints(r.getCoordinates());if(this._distance<0&&this.isErodedCompletely(r,this._distance))return null;if(this._distance<=0&&i.length<3)return null;this.addPolygonRing(i,e,n,g.EXTERIOR,g.INTERIOR);for(var o=0;o<t.getNumInteriorRing();o++){var a=t.getInteriorRingN(o),s=gt.removeRepeatedPoints(a.getCoordinates());this._distance>0&&this.isErodedCompletely(a,-this._distance)||this.addPolygonRing(s,e,Me.opposite(n),g.INTERIOR,g.EXTERIOR)}},qn.prototype.isTriangleErodedCompletely=function(t,e){var n=new Bn(t[0],t[1],t[2]),r=n.inCentre();return X.distancePointLine(r,n.p0,n.p1)<Math.abs(e)},qn.prototype.addLineString=function(t){if(this._distance<=0&&!this._curveBuilder.getBufferParameters().isSingleSided())return null;var e=gt.removeRepeatedPoints(t.getCoordinates()),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,g.EXTERIOR,g.INTERIOR)},qn.prototype.addCurve=function(t,e,n){if(null===t||t.length<2)return null;var r=new yn(t,new ke(0,g.BOUNDARY,e,n));this._curveList.add(r)},qn.prototype.getCurves=function(){return this.add(this._inputGeom),this._curveList},qn.prototype.addPolygonRing=function(t,e,n,r,i){if(0===e&&t.length<ee.MINIMUM_VALID_SIZE)return null;var o=r,a=i;t.length>=ee.MINIMUM_VALID_SIZE&&X.isCCW(t)&&(o=i,a=r,n=Me.opposite(n));var s=this._curveBuilder.getRingCurve(t,n,e);this.addCurve(s,o,a)},qn.prototype.add=function(t){if(t.isEmpty())return null;t instanceof $t?this.addPolygon(t):t instanceof Zt?this.addLineString(t):t instanceof Kt?this.addPoint(t):t instanceof te?this.addCollection(t):t instanceof Gt?this.addCollection(t):t instanceof ne?this.addCollection(t):t instanceof qt&&this.addCollection(t)},qn.prototype.isErodedCompletely=function(t,e){var n=t.getCoordinates();if(n.length<4)return e<0;if(4===n.length)return this.isTriangleErodedCompletely(n,e);var r=t.getEnvelopeInternal(),i=Math.min(r.getHeight(),r.getWidth());return e<0&&2*Math.abs(e)>i},qn.prototype.addCollection=function(t){for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);this.add(n)}},qn.prototype.interfaces_=function(){return[]},qn.prototype.getClass=function(){return qn};var Gn=function(){};Gn.prototype.locate=function(t){},Gn.prototype.interfaces_=function(){return[]},Gn.prototype.getClass=function(){return Gn};var Un=function(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;var t=arguments[0];this._parent=t,this._atStart=!0,this._index=0,this._max=t.getNumGeometries()};Un.prototype.next=function(){if(this._atStart)return this._atStart=!1,Un.isAtomic(this._parent)&&this._index++,this._parent;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return this._subcollectionIterator.next();this._subcollectionIterator=null}if(this._index>=this._max)throw new ht;var t=this._parent.getGeometryN(this._index++);return t instanceof qt?(this._subcollectionIterator=new Un(t),this._subcollectionIterator.next()):t},Un.prototype.remove=function(){throw new Error(this.getClass().getName())},Un.prototype.hasNext=function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)},Un.prototype.interfaces_=function(){return[ct]},Un.prototype.getClass=function(){return Un},Un.isAtomic=function(t){return!(t instanceof qt)};var Vn=function(){this._geom=null;var t=arguments[0];this._geom=t};Vn.prototype.locate=function(t){return Vn.locate(t,this._geom)},Vn.prototype.interfaces_=function(){return[Gn]},Vn.prototype.getClass=function(){return Vn},Vn.isPointInRing=function(t,e){return!!e.getEnvelopeInternal().intersects(t)&&X.isPointInRing(t,e.getCoordinates())},Vn.containsPointInPolygon=function(t,e){if(e.isEmpty())return!1;var n=e.getExteriorRing();if(!Vn.isPointInRing(t,n))return!1;for(var r=0;r<e.getNumInteriorRing();r++){var i=e.getInteriorRingN(r);if(Vn.isPointInRing(t,i))return!1}return!0},Vn.containsPoint=function(t,e){if(e instanceof $t)return Vn.containsPointInPolygon(t,e);if(e instanceof qt)for(var n=new Un(e);n.hasNext();){var r=n.next();if(r!==e&&Vn.containsPoint(t,r))return!0}return!1},Vn.locate=function(t,e){return e.isEmpty()?g.EXTERIOR:Vn.containsPoint(t,e)?g.INTERIOR:g.EXTERIOR};var Jn=function(){this._edgeMap=new Lt,this._edgeList=null,this._ptInAreaLocation=[g.NONE,g.NONE]};Jn.prototype.getNextCW=function(t){this.getEdges();var e=this._edgeList.indexOf(t),n=e-1;return 0===e&&(n=this._edgeList.size()-1),this._edgeList.get(n)},Jn.prototype.propagateSideLabels=function(t){for(var e=g.NONE,n=this.iterator();n.hasNext();){var r=n.next().getLabel();r.isArea(t)&&r.getLocation(t,Me.LEFT)!==g.NONE&&(e=r.getLocation(t,Me.LEFT))}if(e===g.NONE)return null;for(var i=e,o=this.iterator();o.hasNext();){var a=o.next(),s=a.getLabel();if(s.getLocation(t,Me.ON)===g.NONE&&s.setLocation(t,Me.ON,i),s.isArea(t)){var u=s.getLocation(t,Me.LEFT),c=s.getLocation(t,Me.RIGHT);if(c!==g.NONE){if(c!==i)throw new Ie("side location conflict",a.getCoordinate());u===g.NONE&&G.shouldNeverReachHere("found single null side (at "+a.getCoordinate()+")"),i=u}else G.isTrue(s.getLocation(t,Me.LEFT)===g.NONE,"found single null side"),s.setLocation(t,Me.RIGHT,i),s.setLocation(t,Me.LEFT,i)}}},Jn.prototype.getCoordinate=function(){var t=this.iterator();return t.hasNext()?t.next().getCoordinate():null},Jn.prototype.print=function(t){L.out.println("EdgeEndStar: "+this.getCoordinate());for(var e=this.iterator();e.hasNext();){e.next().print(t)}},Jn.prototype.isAreaLabelsConsistent=function(t){return this.computeEdgeEndLabels(t.getBoundaryNodeRule()),this.checkAreaLabelsConsistent(0)},Jn.prototype.checkAreaLabelsConsistent=function(t){var e=this.getEdges();if(e.size()<=0)return!0;var n=e.size()-1,r=e.get(n).getLabel().getLocation(t,Me.LEFT);G.isTrue(r!==g.NONE,"Found unlabelled area edge");for(var i=r,o=this.iterator();o.hasNext();){var a=o.next().getLabel();G.isTrue(a.isArea(t),"Found non-area edge");var s=a.getLocation(t,Me.LEFT),u=a.getLocation(t,Me.RIGHT);if(s===u)return!1;if(u!==i)return!1;i=s}return!0},Jn.prototype.findIndex=function(t){this.iterator();for(var e=0;e<this._edgeList.size();e++){if(this._edgeList.get(e)===t)return e}return-1},Jn.prototype.iterator=function(){return this.getEdges().iterator()},Jn.prototype.getEdges=function(){return null===this._edgeList&&(this._edgeList=new ft(this._edgeMap.values())),this._edgeList},Jn.prototype.getLocation=function(t,e,n){return this._ptInAreaLocation[t]===g.NONE&&(this._ptInAreaLocation[t]=Vn.locate(e,n[t].getGeometry())),this._ptInAreaLocation[t]},Jn.prototype.toString=function(){var t=new b;t.append("EdgeEndStar: "+this.getCoordinate()),t.append("\n");for(var e=this.iterator();e.hasNext();){var n=e.next();t.append(n),t.append("\n")}return t.toString()},Jn.prototype.computeEdgeEndLabels=function(t){for(var e=this.iterator();e.hasNext();){e.next().computeLabel(t)}},Jn.prototype.computeLabelling=function(t){this.computeEdgeEndLabels(t[0].getBoundaryNodeRule()),this.propagateSideLabels(0),this.propagateSideLabels(1);for(var e=[!1,!1],n=this.iterator();n.hasNext();)for(var r=n.next().getLabel(),i=0;i<2;i++)r.isLine(i)&&r.getLocation(i)===g.BOUNDARY&&(e[i]=!0);for(var o=this.iterator();o.hasNext();)for(var a=o.next(),s=a.getLabel(),u=0;u<2;u++)if(s.isAnyNull(u)){var c=g.NONE;if(e[u])c=g.EXTERIOR;else{var l=a.getCoordinate();c=this.getLocation(u,l,t)}s.setAllLocationsIfNull(u,c)}},Jn.prototype.getDegree=function(){return this._edgeMap.size()},Jn.prototype.insertEdgeEnd=function(t,e){this._edgeMap.put(t,e),this._edgeList=null},Jn.prototype.interfaces_=function(){return[]},Jn.prototype.getClass=function(){return Jn};var Hn=function(t){function e(){t.call(this),this._resultAreaEdgeList=null,this._label=null,this._SCANNING_FOR_INCOMING=1,this._LINKING_TO_OUTGOING=2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.linkResultDirectedEdges=function(){this.getResultAreaEdges();for(var t=null,e=null,n=this._SCANNING_FOR_INCOMING,r=0;r<this._resultAreaEdgeList.size();r++){var i=this._resultAreaEdgeList.get(r),o=i.getSym();if(i.getLabel().isArea())switch(null===t&&i.isInResult()&&(t=i),n){case this._SCANNING_FOR_INCOMING:if(!o.isInResult())continue;e=o,n=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(!i.isInResult())continue;e.setNext(i),n=this._SCANNING_FOR_INCOMING}}if(n===this._LINKING_TO_OUTGOING){if(null===t)throw new Ie("no outgoing dirEdge found",this.getCoordinate());G.isTrue(t.isInResult(),"unable to link last incoming dirEdge"),e.setNext(t)}},e.prototype.insert=function(t){var e=t;this.insertEdgeEnd(e,e)},e.prototype.getRightmostEdge=function(){var t=this.getEdges(),e=t.size();if(e<1)return null;var n=t.get(0);if(1===e)return n;var r=t.get(e-1),i=n.getQuadrant(),o=r.getQuadrant();return qe.isNorthern(i)&&qe.isNorthern(o)?n:qe.isNorthern(i)||qe.isNorthern(o)?0!==n.getDy()?n:0!==r.getDy()?r:(G.shouldNeverReachHere("found two horizontal edges incident on node"),null):r},e.prototype.print=function(t){L.out.println("DirectedEdgeStar: "+this.getCoordinate());for(var e=this.iterator();e.hasNext();){var n=e.next();t.print("out "),n.print(t),t.println(),t.print("in "),n.getSym().print(t),t.println()}},e.prototype.getResultAreaEdges=function(){if(null!==this._resultAreaEdgeList)return this._resultAreaEdgeList;this._resultAreaEdgeList=new ft;for(var t=this.iterator();t.hasNext();){var e=t.next();(e.isInResult()||e.getSym().isInResult())&&this._resultAreaEdgeList.add(e)}return this._resultAreaEdgeList},e.prototype.updateLabelling=function(t){for(var e=this.iterator();e.hasNext();){var n=e.next().getLabel();n.setAllLocationsIfNull(0,t.getLocation(0)),n.setAllLocationsIfNull(1,t.getLocation(1))}},e.prototype.linkAllDirectedEdges=function(){this.getEdges();for(var t=null,e=null,n=this._edgeList.size()-1;n>=0;n--){var r=this._edgeList.get(n),i=r.getSym();null===e&&(e=i),null!==t&&i.setNext(t),t=r}e.setNext(t)},e.prototype.computeDepths=function(){if(1===arguments.length){var t=arguments[0],e=this.findIndex(t),n=t.getDepth(Me.LEFT),r=t.getDepth(Me.RIGHT),i=this.computeDepths(e+1,this._edgeList.size(),n);if(this.computeDepths(0,e,i)!==r)throw new Ie("depth mismatch at "+t.getCoordinate())}else if(3===arguments.length){for(var o=arguments[0],a=arguments[1],s=arguments[2],u=o;u<a;u++){var c=this._edgeList.get(u);c.setEdgeDepths(Me.RIGHT,s),s=c.getDepth(Me.LEFT)}return s}},e.prototype.mergeSymLabels=function(){for(var t=this.iterator();t.hasNext();){var e=t.next();e.getLabel().merge(e.getSym().getLabel())}},e.prototype.linkMinimalDirectedEdges=function(t){for(var e=null,n=null,r=this._SCANNING_FOR_INCOMING,i=this._resultAreaEdgeList.size()-1;i>=0;i--){var o=this._resultAreaEdgeList.get(i),a=o.getSym();switch(null===e&&o.getEdgeRing()===t&&(e=o),r){case this._SCANNING_FOR_INCOMING:if(a.getEdgeRing()!==t)continue;n=a,r=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(o.getEdgeRing()!==t)continue;n.setNextMin(o),r=this._SCANNING_FOR_INCOMING}}r===this._LINKING_TO_OUTGOING&&(G.isTrue(null!==e,"found null for first outgoing dirEdge"),G.isTrue(e.getEdgeRing()===t,"unable to link last incoming dirEdge"),n.setNextMin(e))},e.prototype.getOutgoingDegree=function(){if(0===arguments.length){for(var t=0,e=this.iterator();e.hasNext();){e.next().isInResult()&&t++}return t}if(1===arguments.length){for(var n=arguments[0],r=0,i=this.iterator();i.hasNext();){i.next().getEdgeRing()===n&&r++}return r}},e.prototype.getLabel=function(){return this._label},e.prototype.findCoveredLineEdges=function(){for(var t=g.NONE,e=this.iterator();e.hasNext();){var n=e.next(),r=n.getSym();if(!n.isLineEdge()){if(n.isInResult()){t=g.INTERIOR;break}if(r.isInResult()){t=g.EXTERIOR;break}}}if(t===g.NONE)return null;for(var i=t,o=this.iterator();o.hasNext();){var a=o.next(),s=a.getSym();a.isLineEdge()?a.getEdge().setCovered(i===g.INTERIOR):(a.isInResult()&&(i=g.EXTERIOR),s.isInResult()&&(i=g.INTERIOR))}},e.prototype.computeLabelling=function(e){t.prototype.computeLabelling.call(this,e),this._label=new ke(g.NONE);for(var n=this.iterator();n.hasNext();)for(var r=n.next().getEdge().getLabel(),i=0;i<2;i++){var o=r.getLocation(i);o!==g.INTERIOR&&o!==g.BOUNDARY||this._label.setLocation(i,g.INTERIOR)}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Jn),Yn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createNode=function(t){return new ze(t,new Hn)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Je),Xn=function t(){this._pts=null,this._orientation=null;var e=arguments[0];this._pts=e,this._orientation=t.orientation(e)};Xn.prototype.compareTo=function(t){var e=t;return Xn.compareOriented(this._pts,this._orientation,e._pts,e._orientation)},Xn.prototype.interfaces_=function(){return[s]},Xn.prototype.getClass=function(){return Xn},Xn.orientation=function(t){return 1===gt.increasingDirection(t)},Xn.compareOriented=function(t,e,n,r){for(var i=e?1:-1,o=r?1:-1,a=e?t.length:-1,s=r?n.length:-1,u=e?0:t.length-1,c=r?0:n.length-1;;){var l=t[u].compareTo(n[c]);if(0!==l)return l;var h=(u+=i)===a,f=(c+=o)===s;if(h&&!f)return-1;if(!h&&f)return 1;if(h&&f)return 0}};var Zn=function(){this._edges=new ft,this._ocaMap=new Lt};Zn.prototype.print=function(t){t.print("MULTILINESTRING ( ");for(var e=0;e<this._edges.size();e++){var n=this._edges.get(e);e>0&&t.print(","),t.print("(");for(var r=n.getCoordinates(),i=0;i<r.length;i++)i>0&&t.print(","),t.print(r[i].x+" "+r[i].y);t.println(")")}t.print(") ")},Zn.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next())},Zn.prototype.findEdgeIndex=function(t){for(var e=0;e<this._edges.size();e++)if(this._edges.get(e).equals(t))return e;return-1},Zn.prototype.iterator=function(){return this._edges.iterator()},Zn.prototype.getEdges=function(){return this._edges},Zn.prototype.get=function(t){return this._edges.get(t)},Zn.prototype.findEqualEdge=function(t){var e=new Xn(t.getCoordinates());return this._ocaMap.get(e)},Zn.prototype.add=function(t){this._edges.add(t);var e=new Xn(t.getCoordinates());this._ocaMap.put(e,t)},Zn.prototype.interfaces_=function(){return[]},Zn.prototype.getClass=function(){return Zn};var Wn=function(){};Wn.prototype.processIntersections=function(t,e,n,r){},Wn.prototype.isDone=function(){},Wn.prototype.interfaces_=function(){return[]},Wn.prototype.getClass=function(){return Wn};var Kn=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._hasInterior=!1,this._properIntersectionPoint=null,this._li=null,this._isSelfIntersection=null,this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var t=arguments[0];this._li=t};Kn.prototype.isTrivialIntersection=function(t,e,n,r){if(t===n&&1===this._li.getIntersectionNum()){if(Kn.isAdjacentSegments(e,r))return!0;if(t.isClosed()){var i=t.size()-1;if(0===e&&r===i||0===r&&e===i)return!0}}return!1},Kn.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},Kn.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},Kn.prototype.getLineIntersector=function(){return this._li},Kn.prototype.hasProperIntersection=function(){return this._hasProper},Kn.prototype.processIntersections=function(t,e,n,r){if(t===n&&e===r)return null;this.numTests++;var i=t.getCoordinates()[e],o=t.getCoordinates()[e+1],a=n.getCoordinates()[r],s=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,a,s),this._li.hasIntersection()&&(this.numIntersections++,this._li.isInteriorIntersection()&&(this.numInteriorIntersections++,this._hasInterior=!0),this.isTrivialIntersection(t,e,n,r)||(this._hasIntersection=!0,t.addIntersections(this._li,e,0),n.addIntersections(this._li,r,1),this._li.isProper()&&(this.numProperIntersections++,this._hasProper=!0,this._hasProperInterior=!0)))},Kn.prototype.hasIntersection=function(){return this._hasIntersection},Kn.prototype.isDone=function(){return!1},Kn.prototype.hasInteriorIntersection=function(){return this._hasInterior},Kn.prototype.interfaces_=function(){return[Wn]},Kn.prototype.getClass=function(){return Kn},Kn.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)};var Qn=function(){this.coord=null,this.segmentIndex=null,this.dist=null;var t=arguments[0],e=arguments[1],n=arguments[2];this.coord=new h(t),this.segmentIndex=e,this.dist=n};Qn.prototype.getSegmentIndex=function(){return this.segmentIndex},Qn.prototype.getCoordinate=function(){return this.coord},Qn.prototype.print=function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex),t.println(" dist = "+this.dist)},Qn.prototype.compareTo=function(t){var e=t;return this.compare(e.segmentIndex,e.dist)},Qn.prototype.isEndPoint=function(t){return 0===this.segmentIndex&&0===this.dist||this.segmentIndex===t},Qn.prototype.toString=function(){return this.coord+" seg # = "+this.segmentIndex+" dist = "+this.dist},Qn.prototype.getDistance=function(){return this.dist},Qn.prototype.compare=function(t,e){return this.segmentIndex<t?-1:this.segmentIndex>t?1:this.dist<e?-1:this.dist>e?1:0},Qn.prototype.interfaces_=function(){return[s]},Qn.prototype.getClass=function(){return Qn};var $n=function(){this._nodeMap=new Lt,this.edge=null;var t=arguments[0];this.edge=t};$n.prototype.print=function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();){e.next().print(t)}},$n.prototype.iterator=function(){return this._nodeMap.values().iterator()},$n.prototype.addSplitEdges=function(t){this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var r=e.next(),i=this.createSplitEdge(n,r);t.add(i),n=r}},$n.prototype.addEndpoints=function(){var t=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[t],t,0)},$n.prototype.createSplitEdge=function(t,e){var n=e.segmentIndex-t.segmentIndex+2,r=this.edge.pts[e.segmentIndex],i=e.dist>0||!e.coord.equals2D(r);i||n--;var o=new Array(n).fill(null),a=0;o[a++]=new h(t.coord);for(var s=t.segmentIndex+1;s<=e.segmentIndex;s++)o[a++]=this.edge.pts[s];return i&&(o[a]=e.coord),new ir(o,new ke(this.edge._label))},$n.prototype.add=function(t,e,n){var r=new Qn(t,e,n),i=this._nodeMap.get(r);return null!==i?i:(this._nodeMap.put(r,r),r)},$n.prototype.isIntersection=function(t){for(var e=this.iterator();e.hasNext();){if(e.next().coord.equals(t))return!0}return!1},$n.prototype.interfaces_=function(){return[]},$n.prototype.getClass=function(){return $n};var tr=function(){};tr.prototype.getChainStartIndices=function(t){var e=0,n=new ft;n.add(new w(e));do{var r=this.findChainEnd(t,e);n.add(new w(r)),e=r}while(e<t.length-1);return tr.toIntArray(n)},tr.prototype.findChainEnd=function(t,e){for(var n=qe.quadrant(t[e],t[e+1]),r=e+1;r<t.length;){if(qe.quadrant(t[r-1],t[r])!==n)break;r++}return r-1},tr.prototype.interfaces_=function(){return[]},tr.prototype.getClass=function(){return tr},tr.toIntArray=function(t){for(var e=new Array(t.size()).fill(null),n=0;n<e.length;n++)e[n]=t.get(n).intValue();return e};var er=function(){this.e=null,this.pts=null,this.startIndex=null,this.env1=new N,this.env2=new N;var t=arguments[0];this.e=t,this.pts=t.getCoordinates();var e=new tr;this.startIndex=e.getChainStartIndices(this.pts)};er.prototype.getCoordinates=function(){return this.pts},er.prototype.getMaxX=function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return e>n?e:n},er.prototype.getMinX=function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return e<n?e:n},er.prototype.computeIntersectsForChain=function(){if(4===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3];this.computeIntersectsForChain(this.startIndex[t],this.startIndex[t+1],e,e.startIndex[n],e.startIndex[n+1],r)}else if(6===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2],s=arguments[3],u=arguments[4],c=arguments[5],l=this.pts[i],h=this.pts[o],f=a.pts[s],p=a.pts[u];if(o-i==1&&u-s==1)return c.addIntersections(this.e,i,a.e,s),null;if(this.env1.init(l,h),this.env2.init(f,p),!this.env1.intersects(this.env2))return null;var d=Math.trunc((i+o)/2),g=Math.trunc((s+u)/2);i<d&&(s<g&&this.computeIntersectsForChain(i,d,a,s,g,c),g<u&&this.computeIntersectsForChain(i,d,a,g,u,c)),d<o&&(s<g&&this.computeIntersectsForChain(d,o,a,s,g,c),g<u&&this.computeIntersectsForChain(d,o,a,g,u,c))}},er.prototype.getStartIndexes=function(){return this.startIndex},er.prototype.computeIntersects=function(t,e){for(var n=0;n<this.startIndex.length-1;n++)for(var r=0;r<t.startIndex.length-1;r++)this.computeIntersectsForChain(n,t,r,e)},er.prototype.interfaces_=function(){return[]},er.prototype.getClass=function(){return er};var nr=function t(){this._depth=Array(2).fill().map(function(){return Array(3)});for(var e=0;e<2;e++)for(var n=0;n<3;n++)this._depth[e][n]=t.NULL_VALUE},rr={NULL_VALUE:{configurable:!0}};nr.prototype.getDepth=function(t,e){return this._depth[t][e]},nr.prototype.setDepth=function(t,e,n){this._depth[t][e]=n},nr.prototype.isNull=function(){if(0===arguments.length){for(var t=0;t<2;t++)for(var e=0;e<3;e++)if(this._depth[t][e]!==nr.NULL_VALUE)return!1;return!0}if(1===arguments.length){var n=arguments[0];return this._depth[n][1]===nr.NULL_VALUE}if(2===arguments.length){var r=arguments[0],i=arguments[1];return this._depth[r][i]===nr.NULL_VALUE}},nr.prototype.normalize=function(){for(var t=0;t<2;t++)if(!this.isNull(t)){var e=this._depth[t][1];this._depth[t][2]<e&&(e=this._depth[t][2]),e<0&&(e=0);for(var n=1;n<3;n++){var r=0;this._depth[t][n]>e&&(r=1),this._depth[t][n]=r}}},nr.prototype.getDelta=function(t){return this._depth[t][Me.RIGHT]-this._depth[t][Me.LEFT]},nr.prototype.getLocation=function(t,e){return this._depth[t][e]<=0?g.EXTERIOR:g.INTERIOR},nr.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]},nr.prototype.add=function(){if(1===arguments.length)for(var t=arguments[0],e=0;e<2;e++)for(var n=1;n<3;n++){var r=t.getLocation(e,n);r!==g.EXTERIOR&&r!==g.INTERIOR||(this.isNull(e,n)?this._depth[e][n]=nr.depthAtLocation(r):this._depth[e][n]+=nr.depthAtLocation(r))}else if(3===arguments.length){var i=arguments[0],o=arguments[1];arguments[2]===g.INTERIOR&&this._depth[i][o]++}},nr.prototype.interfaces_=function(){return[]},nr.prototype.getClass=function(){return nr},nr.depthAtLocation=function(t){return t===g.EXTERIOR?0:t===g.INTERIOR?1:nr.NULL_VALUE},rr.NULL_VALUE.get=function(){return-1},Object.defineProperties(nr,rr);var ir=function(t){function e(){if(t.call(this),this.pts=null,this._env=null,this.eiList=new $n(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new nr,this._depthDelta=0,1===arguments.length){var n=arguments[0];e.call(this,n,null)}else if(2===arguments.length){var r=arguments[0],i=arguments[1];this.pts=r,this._label=i}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDepth=function(){return this._depth},e.prototype.getCollapsedEdge=function(){var t=new Array(2).fill(null);return t[0]=this.pts[0],t[1]=this.pts[1],new e(t,ke.toLineLabel(this._label))},e.prototype.isIsolated=function(){return this._isIsolated},e.prototype.getCoordinates=function(){return this.pts},e.prototype.setIsolated=function(t){this._isIsolated=t},e.prototype.setName=function(t){this._name=t},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;if(this.pts.length!==n.pts.length)return!1;for(var r=!0,i=!0,o=this.pts.length,a=0;a<this.pts.length;a++)if(this.pts[a].equals2D(n.pts[a])||(r=!1),this.pts[a].equals2D(n.pts[--o])||(i=!1),!r&&!i)return!1;return!0},e.prototype.getCoordinate=function(){if(0===arguments.length)return this.pts.length>0?this.pts[0]:null;if(1===arguments.length){var t=arguments[0];return this.pts[t]}},e.prototype.print=function(t){t.print("edge "+this._name+": "),t.print("LINESTRING (");for(var e=0;e<this.pts.length;e++)e>0&&t.print(","),t.print(this.pts[e].x+" "+this.pts[e].y);t.print(") "+this._label+" "+this._depthDelta)},e.prototype.computeIM=function(t){e.updateIM(this._label,t)},e.prototype.isCollapsed=function(){return!!this._label.isArea()&&(3===this.pts.length&&!!this.pts[0].equals(this.pts[2]))},e.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},e.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},e.prototype.getDepthDelta=function(){return this._depthDelta},e.prototype.getNumPoints=function(){return this.pts.length},e.prototype.printReverse=function(t){t.print("edge "+this._name+": ");for(var e=this.pts.length-1;e>=0;e--)t.print(this.pts[e]+" ");t.println("")},e.prototype.getMonotoneChainEdge=function(){return null===this._mce&&(this._mce=new er(this)),this._mce},e.prototype.getEnvelope=function(){if(null===this._env){this._env=new N;for(var t=0;t<this.pts.length;t++)this._env.expandToInclude(this.pts[t])}return this._env},e.prototype.addIntersection=function(t,e,n,r){var i=new h(t.getIntersection(r)),o=e,a=t.getEdgeDistance(n,r),s=o+1;if(s<this.pts.length){var u=this.pts[s];i.equals2D(u)&&(o=s,a=0)}this.eiList.add(i,o,a)},e.prototype.toString=function(){var t=new b;t.append("edge "+this._name+": "),t.append("LINESTRING (");for(var e=0;e<this.pts.length;e++)e>0&&t.append(","),t.append(this.pts[e].x+" "+this.pts[e].y);return t.append(") "+this._label+" "+this._depthDelta),t.toString()},e.prototype.isPointwiseEqual=function(t){if(this.pts.length!==t.pts.length)return!1;for(var e=0;e<this.pts.length;e++)if(!this.pts[e].equals2D(t.pts[e]))return!1;return!0},e.prototype.setDepthDelta=function(t){this._depthDelta=t},e.prototype.getEdgeIntersectionList=function(){return this.eiList},e.prototype.addIntersections=function(t,e,n){for(var r=0;r<t.getIntersectionNum();r++)this.addIntersection(t,e,n,r)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.updateIM=function(){if(2!==arguments.length)return t.prototype.updateIM.apply(this,arguments);var e=arguments[0],n=arguments[1];n.setAtLeastIfValid(e.getLocation(0,Me.ON),e.getLocation(1,Me.ON),1),e.isArea()&&(n.setAtLeastIfValid(e.getLocation(0,Me.LEFT),e.getLocation(1,Me.LEFT),2),n.setAtLeastIfValid(e.getLocation(0,Me.RIGHT),e.getLocation(1,Me.RIGHT),2))},e}(Fe),or=function(t){this._workingPrecisionModel=null,this._workingNoder=null,this._geomFact=null,this._graph=null,this._edgeList=new Zn,this._bufParams=t||null};or.prototype.setWorkingPrecisionModel=function(t){this._workingPrecisionModel=t},or.prototype.insertUniqueEdge=function(t){var e=this._edgeList.findEqualEdge(t);if(null!==e){var n=e.getLabel(),r=t.getLabel();e.isPointwiseEqual(t)||(r=new ke(t.getLabel())).flip(),n.merge(r);var i=or.depthDelta(r),o=e.getDepthDelta()+i;e.setDepthDelta(o)}else this._edgeList.add(t),t.setDepthDelta(or.depthDelta(t.getLabel()))},or.prototype.buildSubgraphs=function(t,e){for(var n=new ft,r=t.iterator();r.hasNext();){var i=r.next(),o=i.getRightmostCoordinate(),a=new Dn(n).getDepth(o);i.computeDepth(a),i.findResultEdges(),n.add(i),e.add(i.getDirectedEdges(),i.getNodes())}},or.prototype.createSubgraphs=function(t){for(var e=new ft,n=t.getNodes().iterator();n.hasNext();){var r=n.next();if(!r.isVisited()){var i=new Ae;i.create(r),e.add(i)}}return en.sort(e,en.reverseOrder()),e},or.prototype.createEmptyResultGeometry=function(){return this._geomFact.createPolygon()},or.prototype.getNoder=function(t){if(null!==this._workingNoder)return this._workingNoder;var e=new On,n=new J;return n.setPrecisionModel(t),e.setSegmentIntersector(new Kn(n)),e},or.prototype.buffer=function(t,e){var n=this._workingPrecisionModel;null===n&&(n=t.getPrecisionModel()),this._geomFact=t.getFactory();var r=new Rn(n,this._bufParams),i=new qn(t,e,r).getCurves();if(i.size()<=0)return this.createEmptyResultGeometry();this.computeNodedEdges(i,n),this._graph=new He(new Yn),this._graph.addEdges(this._edgeList.getEdges());var o=this.createSubgraphs(this._graph),a=new Ye(this._geomFact);this.buildSubgraphs(o,a);var s=a.getPolygons();return s.size()<=0?this.createEmptyResultGeometry():this._geomFact.buildGeometry(s)},or.prototype.computeNodedEdges=function(t,e){var n=this.getNoder(e);n.computeNodes(t);for(var r=n.getNodedSubstrings().iterator();r.hasNext();){var i=r.next(),o=i.getCoordinates();if(2!==o.length||!o[0].equals2D(o[1])){var a=i.getData(),s=new ir(i.getCoordinates(),new ke(a));this.insertUniqueEdge(s)}}},or.prototype.setNoder=function(t){this._workingNoder=t},or.prototype.interfaces_=function(){return[]},or.prototype.getClass=function(){return or},or.depthDelta=function(t){var e=t.getLocation(0,Me.LEFT),n=t.getLocation(0,Me.RIGHT);return e===g.INTERIOR&&n===g.EXTERIOR?1:e===g.EXTERIOR&&n===g.INTERIOR?-1:0},or.convertSegStrings=function(t){for(var e=new ve,n=new ft;t.hasNext();){var r=t.next(),i=e.createLineString(r.getCoordinates());n.add(i)}return e.buildGeometry(n)};var ar=function(){if(this._noder=null,this._scaleFactor=null,this._offsetX=null,this._offsetY=null,this._isScaled=!1,2===arguments.length){var t=arguments[0],e=arguments[1];this._noder=t,this._scaleFactor=e,this._offsetX=0,this._offsetY=0,this._isScaled=!this.isIntegerPrecision()}else if(4===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=arguments[3];this._noder=n,this._scaleFactor=r,this._offsetX=i,this._offsetY=o,this._isScaled=!this.isIntegerPrecision()}};ar.prototype.rescale=function(){if(v(arguments[0],st))for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.rescale(e.getCoordinates())}else if(arguments[0]instanceof Array){for(var n=arguments[0],r=0;r<n.length;r++)n[r].x=n[r].x/this._scaleFactor+this._offsetX,n[r].y=n[r].y/this._scaleFactor+this._offsetY;2===n.length&&n[0].equals2D(n[1])&&L.out.println(n)}},ar.prototype.scale=function(){if(v(arguments[0],st)){for(var t=arguments[0],e=new ft,n=t.iterator();n.hasNext();){var r=n.next();e.add(new yn(this.scale(r.getCoordinates()),r.getData()))}return e}if(arguments[0]instanceof Array){for(var i=arguments[0],o=new Array(i.length).fill(null),a=0;a<i.length;a++)o[a]=new h(Math.round((i[a].x-this._offsetX)*this._scaleFactor),Math.round((i[a].y-this._offsetY)*this._scaleFactor),i[a].z);return gt.removeRepeatedPoints(o)}},ar.prototype.isIntegerPrecision=function(){return 1===this._scaleFactor},ar.prototype.getNodedSubstrings=function(){var t=this._noder.getNodedSubstrings();return this._isScaled&&this.rescale(t),t},ar.prototype.computeNodes=function(t){var e=t;this._isScaled&&(e=this.scale(t)),this._noder.computeNodes(e)},ar.prototype.interfaces_=function(){return[En]},ar.prototype.getClass=function(){return ar};var sr=function(){this._li=new J,this._segStrings=null;var t=arguments[0];this._segStrings=t},ur={fact:{configurable:!0}};sr.prototype.checkEndPtVertexIntersections=function(){if(0===arguments.length)for(var t=this._segStrings.iterator();t.hasNext();){var e=t.next().getCoordinates();this.checkEndPtVertexIntersections(e[0],this._segStrings),this.checkEndPtVertexIntersections(e[e.length-1],this._segStrings)}else if(2===arguments.length)for(var n=arguments[0],r=arguments[1].iterator();r.hasNext();)for(var i=r.next().getCoordinates(),o=1;o<i.length-1;o++)if(i[o].equals(n))throw new B("found endpt/interior pt intersection at index "+o+" :pt "+n)},sr.prototype.checkInteriorIntersections=function(){if(0===arguments.length)for(var t=this._segStrings.iterator();t.hasNext();)for(var e=t.next(),n=this._segStrings.iterator();n.hasNext();){var r=n.next();this.checkInteriorIntersections(e,r)}else if(2===arguments.length)for(var i=arguments[0],o=arguments[1],a=i.getCoordinates(),s=o.getCoordinates(),u=0;u<a.length-1;u++)for(var c=0;c<s.length-1;c++)this.checkInteriorIntersections(i,u,o,c);else if(4===arguments.length){var l=arguments[0],h=arguments[1],f=arguments[2],p=arguments[3];if(l===f&&h===p)return null;var d=l.getCoordinates()[h],g=l.getCoordinates()[h+1],y=f.getCoordinates()[p],v=f.getCoordinates()[p+1];if(this._li.computeIntersection(d,g,y,v),this._li.hasIntersection()&&(this._li.isProper()||this.hasInteriorIntersection(this._li,d,g)||this.hasInteriorIntersection(this._li,y,v)))throw new B("found non-noded intersection at "+d+"-"+g+" and "+y+"-"+v)}},sr.prototype.checkValid=function(){this.checkEndPtVertexIntersections(),this.checkInteriorIntersections(),this.checkCollapses()},sr.prototype.checkCollapses=function(){if(0===arguments.length)for(var t=this._segStrings.iterator();t.hasNext();){var e=t.next();this.checkCollapses(e)}else if(1===arguments.length)for(var n=arguments[0].getCoordinates(),r=0;r<n.length-2;r++)this.checkCollapse(n[r],n[r+1],n[r+2])},sr.prototype.hasInteriorIntersection=function(t,e,n){for(var r=0;r<t.getIntersectionNum();r++){var i=t.getIntersection(r);if(!i.equals(e)&&!i.equals(n))return!0}return!1},sr.prototype.checkCollapse=function(t,e,n){if(t.equals(n))throw new B("found non-noded collapse at "+sr.fact.createLineString([t,e,n]))},sr.prototype.interfaces_=function(){return[]},sr.prototype.getClass=function(){return sr},ur.fact.get=function(){return new ve},Object.defineProperties(sr,ur);var cr=function(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;var t=arguments[0],e=arguments[1],n=arguments[2];if(this._originalPt=t,this._pt=t,this._scaleFactor=e,this._li=n,e<=0)throw new i("Scale factor must be non-zero");1!==e&&(this._pt=new h(this.scale(t.x),this.scale(t.y)),this._p0Scaled=new h,this._p1Scaled=new h),this.initCorners(this._pt)},lr={SAFE_ENV_EXPANSION_FACTOR:{configurable:!0}};cr.prototype.intersectsScaled=function(t,e){var n=Math.min(t.x,e.x),r=Math.max(t.x,e.x),i=Math.min(t.y,e.y),o=Math.max(t.y,e.y),a=this._maxx<n||this._minx>r||this._maxy<i||this._miny>o;if(a)return!1;var s=this.intersectsToleranceSquare(t,e);return G.isTrue(!(a&&s),"Found bad envelope test"),s},cr.prototype.initCorners=function(t){this._minx=t.x-.5,this._maxx=t.x+.5,this._miny=t.y-.5,this._maxy=t.y+.5,this._corner[0]=new h(this._maxx,this._maxy),this._corner[1]=new h(this._minx,this._maxy),this._corner[2]=new h(this._minx,this._miny),this._corner[3]=new h(this._maxx,this._miny)},cr.prototype.intersects=function(t,e){return 1===this._scaleFactor?this.intersectsScaled(t,e):(this.copyScaled(t,this._p0Scaled),this.copyScaled(e,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))},cr.prototype.scale=function(t){return Math.round(t*this._scaleFactor)},cr.prototype.getCoordinate=function(){return this._originalPt},cr.prototype.copyScaled=function(t,e){e.x=this.scale(t.x),e.y=this.scale(t.y)},cr.prototype.getSafeEnvelope=function(){if(null===this._safeEnv){var t=cr.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new N(this._originalPt.x-t,this._originalPt.x+t,this._originalPt.y-t,this._originalPt.y+t)}return this._safeEnv},cr.prototype.intersectsPixelClosure=function(t,e){return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),!!this._li.hasIntersection())))},cr.prototype.intersectsToleranceSquare=function(t,e){var n=!1,r=!1;return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!this._li.isProper()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),!!this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),!!this._li.isProper()||(this._li.hasIntersection()&&(r=!0),this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),!!this._li.isProper()||(!(!n||!r)||(!!t.equals(this._pt)||!!e.equals(this._pt))))))},cr.prototype.addSnappedNode=function(t,e){var n=t.getCoordinate(e),r=t.getCoordinate(e+1);return!!this.intersects(n,r)&&(t.addIntersection(this.getCoordinate(),e),!0)},cr.prototype.interfaces_=function(){return[]},cr.prototype.getClass=function(){return cr},lr.SAFE_ENV_EXPANSION_FACTOR.get=function(){return.75},Object.defineProperties(cr,lr);var hr=function(){this.tempEnv1=new N,this.selectedSegment=new vn};hr.prototype.select=function(){if(1===arguments.length);else if(2===arguments.length){var t=arguments[0],e=arguments[1];t.getLineSegment(e,this.selectedSegment),this.select(this.selectedSegment)}},hr.prototype.interfaces_=function(){return[]},hr.prototype.getClass=function(){return hr};var fr=function(){this._index=null;var t=arguments[0];this._index=t},pr={HotPixelSnapAction:{configurable:!0}};fr.prototype.snap=function(){if(1===arguments.length){var t=arguments[0];return this.snap(t,null,-1)}if(3===arguments.length){var e=arguments[0],n=arguments[1],r=arguments[2],i=e.getSafeEnvelope(),o=new dr(e,n,r);return this._index.query(i,{interfaces_:function(){return[Ke]},visitItem:function(t){t.select(i,o)}}),o.isNodeAdded()}},fr.prototype.interfaces_=function(){return[]},fr.prototype.getClass=function(){return fr},pr.HotPixelSnapAction.get=function(){return dr},Object.defineProperties(fr,pr);var dr=function(t){function e(){t.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var e=arguments[0],n=arguments[1],r=arguments[2];this._hotPixel=e,this._parentEdge=n,this._hotPixelVertexIndex=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isNodeAdded=function(){return this._isNodeAdded},e.prototype.select=function(){if(2!==arguments.length)return t.prototype.select.apply(this,arguments);var e=arguments[0],n=arguments[1],r=e.getContext();if(null!==this._parentEdge&&r===this._parentEdge&&n===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(r,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(hr),gr=function(){this._li=null,this._interiorIntersections=null;var t=arguments[0];this._li=t,this._interiorIntersections=new ft};gr.prototype.processIntersections=function(t,e,n,r){if(t===n&&e===r)return null;var i=t.getCoordinates()[e],o=t.getCoordinates()[e+1],a=n.getCoordinates()[r],s=n.getCoordinates()[r+1];if(this._li.computeIntersection(i,o,a,s),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var u=0;u<this._li.getIntersectionNum();u++)this._interiorIntersections.add(this._li.getIntersection(u));t.addIntersections(this._li,e,0),n.addIntersections(this._li,r,1)}},gr.prototype.isDone=function(){return!1},gr.prototype.getInteriorIntersections=function(){return this._interiorIntersections},gr.prototype.interfaces_=function(){return[Wn]},gr.prototype.getClass=function(){return gr};var yr=function(){this._pm=null,this._li=null,this._scaleFactor=null,this._noder=null,this._pointSnapper=null,this._nodedSegStrings=null;var t=arguments[0];this._pm=t,this._li=new J,this._li.setPrecisionModel(t),this._scaleFactor=t.getScale()};yr.prototype.checkCorrectness=function(t){var e=yn.getNodedSubstrings(t),n=new sr(e);try{n.checkValid()}catch(t){if(!(t instanceof T))throw t;t.printStackTrace()}},yr.prototype.getNodedSubstrings=function(){return yn.getNodedSubstrings(this._nodedSegStrings)},yr.prototype.snapRound=function(t,e){var n=this.findInteriorIntersections(t,e);this.computeIntersectionSnaps(n),this.computeVertexSnaps(t)},yr.prototype.findInteriorIntersections=function(t,e){var n=new gr(e);return this._noder.setSegmentIntersector(n),this._noder.computeNodes(t),n.getInteriorIntersections()},yr.prototype.computeVertexSnaps=function(){if(v(arguments[0],st))for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.computeVertexSnaps(e)}else if(arguments[0]instanceof yn)for(var n=arguments[0],r=n.getCoordinates(),i=0;i<r.length;i++){var o=new cr(r[i],this._scaleFactor,this._li);this._pointSnapper.snap(o,n,i)&&n.addIntersection(r[i],i)}},yr.prototype.computeNodes=function(t){this._nodedSegStrings=t,this._noder=new On,this._pointSnapper=new fr(this._noder.getIndex()),this.snapRound(t,this._li)},yr.prototype.computeIntersectionSnaps=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),r=new cr(n,this._scaleFactor,this._li);this._pointSnapper.snap(r)}},yr.prototype.interfaces_=function(){return[En]},yr.prototype.getClass=function(){return yr};var vr=function(){if(this._argGeom=null,this._distance=null,this._bufParams=new Sn,this._resultGeometry=null,this._saveException=null,1===arguments.length){var t=arguments[0];this._argGeom=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._argGeom=e,this._bufParams=n}},mr={CAP_ROUND:{configurable:!0},CAP_BUTT:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},MAX_PRECISION_DIGITS:{configurable:!0}};vr.prototype.bufferFixedPrecision=function(t){var e=new ar(new yr(new pe(1)),t.getScale()),n=new or(this._bufParams);n.setWorkingPrecisionModel(t),n.setNoder(e),this._resultGeometry=n.buffer(this._argGeom,this._distance)},vr.prototype.bufferReducedPrecision=function(){if(0===arguments.length){for(var t=vr.MAX_PRECISION_DIGITS;t>=0;t--){try{this.bufferReducedPrecision(t)}catch(t){if(!(t instanceof Ie))throw t;this._saveException=t}if(null!==this._resultGeometry)return null}throw this._saveException}if(1===arguments.length){var e=arguments[0],n=vr.precisionScaleFactor(this._argGeom,this._distance,e),r=new pe(n);this.bufferFixedPrecision(r)}},vr.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var t=this._argGeom.getFactory().getPrecisionModel();t.getType()===pe.FIXED?this.bufferFixedPrecision(t):this.bufferReducedPrecision()},vr.prototype.setQuadrantSegments=function(t){this._bufParams.setQuadrantSegments(t)},vr.prototype.bufferOriginalPrecision=function(){try{var t=new or(this._bufParams);this._resultGeometry=t.buffer(this._argGeom,this._distance)}catch(t){if(!(t instanceof B))throw t;this._saveException=t}},vr.prototype.getResultGeometry=function(t){return this._distance=t,this.computeGeometry(),this._resultGeometry},vr.prototype.setEndCapStyle=function(t){this._bufParams.setEndCapStyle(t)},vr.prototype.interfaces_=function(){return[]},vr.prototype.getClass=function(){return vr},vr.bufferOp=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return new vr(t).getResultGeometry(e)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof K&&"number"==typeof arguments[1]){var n=arguments[0],r=arguments[1],i=arguments[2],o=new vr(n);return o.setQuadrantSegments(i),o.getResultGeometry(r)}if(arguments[2]instanceof Sn&&arguments[0]instanceof K&&"number"==typeof arguments[1]){var a=arguments[0],s=arguments[1],u=arguments[2];return new vr(a,u).getResultGeometry(s)}}else if(4===arguments.length){var c=arguments[0],l=arguments[1],h=arguments[2],f=arguments[3],p=new vr(c);return p.setQuadrantSegments(h),p.setEndCapStyle(f),p.getResultGeometry(l)}},vr.precisionScaleFactor=function(t,e,n){var r=t.getEnvelopeInternal(),i=m.max(Math.abs(r.getMaxX()),Math.abs(r.getMaxY()),Math.abs(r.getMinX()),Math.abs(r.getMinY()))+2*(e>0?e:0),o=n-Math.trunc(Math.log(i)/Math.log(10)+1);return Math.pow(10,o)},mr.CAP_ROUND.get=function(){return Sn.CAP_ROUND},mr.CAP_BUTT.get=function(){return Sn.CAP_FLAT},mr.CAP_FLAT.get=function(){return Sn.CAP_FLAT},mr.CAP_SQUARE.get=function(){return Sn.CAP_SQUARE},mr.MAX_PRECISION_DIGITS.get=function(){return 12},Object.defineProperties(vr,mr);var _r=function(){this._pt=[new h,new h],this._distance=o.NaN,this._isNull=!0};_r.prototype.getCoordinates=function(){return this._pt},_r.prototype.getCoordinate=function(t){return this._pt[t]},_r.prototype.setMinimum=function(){if(1===arguments.length){var t=arguments[0];this.setMinimum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var r=e.distance(n);r<this._distance&&this.initialize(e,n,r)}},_r.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var t=arguments[0],e=arguments[1];this._pt[0].setCoordinate(t),this._pt[1].setCoordinate(e),this._distance=t.distance(e),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(r),this._distance=i,this._isNull=!1}},_r.prototype.getDistance=function(){return this._distance},_r.prototype.setMaximum=function(){if(1===arguments.length){var t=arguments[0];this.setMaximum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var r=e.distance(n);r>this._distance&&this.initialize(e,n,r)}},_r.prototype.interfaces_=function(){return[]},_r.prototype.getClass=function(){return _r};var br=function(){};br.prototype.interfaces_=function(){return[]},br.prototype.getClass=function(){return br},br.computeDistance=function(){if(arguments[2]instanceof _r&&arguments[0]instanceof Zt&&arguments[1]instanceof h)for(var t=arguments[0],e=arguments[1],n=arguments[2],r=t.getCoordinates(),i=new vn,o=0;o<r.length-1;o++){i.setCoordinates(r[o],r[o+1]);var a=i.closestPoint(e);n.setMinimum(a,e)}else if(arguments[2]instanceof _r&&arguments[0]instanceof $t&&arguments[1]instanceof h){var s=arguments[0],u=arguments[1],c=arguments[2];br.computeDistance(s.getExteriorRing(),u,c);for(var l=0;l<s.getNumInteriorRing();l++)br.computeDistance(s.getInteriorRingN(l),u,c)}else if(arguments[2]instanceof _r&&arguments[0]instanceof K&&arguments[1]instanceof h){var f=arguments[0],p=arguments[1],d=arguments[2];if(f instanceof Zt)br.computeDistance(f,p,d);else if(f instanceof $t)br.computeDistance(f,p,d);else if(f instanceof qt)for(var g=f,y=0;y<g.getNumGeometries();y++){var v=g.getGeometryN(y);br.computeDistance(v,p,d)}else d.setMinimum(f.getCoordinate(),p)}else if(arguments[2]instanceof _r&&arguments[0]instanceof vn&&arguments[1]instanceof h){var m=arguments[0],_=arguments[1],b=arguments[2],w=m.closestPoint(_);b.setMinimum(w,_)}};var wr=function(t){this._maxPtDist=new _r,this._inputGeom=t||null},Er={MaxPointDistanceFilter:{configurable:!0},MaxMidpointDistanceFilter:{configurable:!0}};wr.prototype.computeMaxMidpointDistance=function(t){var e=new Or(this._inputGeom);t.apply(e),this._maxPtDist.setMaximum(e.getMaxPointDistance())},wr.prototype.computeMaxVertexDistance=function(t){var e=new xr(this._inputGeom);t.apply(e),this._maxPtDist.setMaximum(e.getMaxPointDistance())},wr.prototype.findDistance=function(t){return this.computeMaxVertexDistance(t),this.computeMaxMidpointDistance(t),this._maxPtDist.getDistance()},wr.prototype.getDistancePoints=function(){return this._maxPtDist},wr.prototype.interfaces_=function(){return[]},wr.prototype.getClass=function(){return wr},Er.MaxPointDistanceFilter.get=function(){return xr},Er.MaxMidpointDistanceFilter.get=function(){return Or},Object.defineProperties(wr,Er);var xr=function(t){this._maxPtDist=new _r,this._minPtDist=new _r,this._geom=t||null};xr.prototype.filter=function(t){this._minPtDist.initialize(),br.computeDistance(this._geom,t,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},xr.prototype.getMaxPointDistance=function(){return this._maxPtDist},xr.prototype.interfaces_=function(){return[tt]},xr.prototype.getClass=function(){return xr};var Or=function(t){this._maxPtDist=new _r,this._minPtDist=new _r,this._geom=t||null};Or.prototype.filter=function(t,e){if(0===e)return null;var n=t.getCoordinate(e-1),r=t.getCoordinate(e),i=new h((n.x+r.x)/2,(n.y+r.y)/2);this._minPtDist.initialize(),br.computeDistance(this._geom,i,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Or.prototype.isDone=function(){return!1},Or.prototype.isGeometryChanged=function(){return!1},Or.prototype.getMaxPointDistance=function(){return this._maxPtDist},Or.prototype.interfaces_=function(){return[Bt]},Or.prototype.getClass=function(){return Or};var Mr=function(t){this._comps=t||null};Mr.prototype.filter=function(t){t instanceof $t&&this._comps.add(t)},Mr.prototype.interfaces_=function(){return[zt]},Mr.prototype.getClass=function(){return Mr},Mr.getPolygons=function(){if(1===arguments.length){var t=arguments[0];return Mr.getPolygons(t,new ft)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e instanceof $t?n.add(e):e instanceof qt&&e.apply(new Mr(n)),n}};var Sr=function(){if(this._lines=null,this._isForcedToLineString=!1,1===arguments.length){var t=arguments[0];this._lines=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._lines=e,this._isForcedToLineString=n}};Sr.prototype.filter=function(t){if(this._isForcedToLineString&&t instanceof ee){var e=t.getFactory().createLineString(t.getCoordinateSequence());return this._lines.add(e),null}t instanceof Zt&&this._lines.add(t)},Sr.prototype.setForceToLineString=function(t){this._isForcedToLineString=t},Sr.prototype.interfaces_=function(){return[W]},Sr.prototype.getClass=function(){return Sr},Sr.getGeometry=function(){if(1===arguments.length){var t=arguments[0];return t.getFactory().buildGeometry(Sr.getLines(t))}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e.getFactory().buildGeometry(Sr.getLines(e,n))}},Sr.getLines=function(){if(1===arguments.length){var t=arguments[0];return Sr.getLines(t,!1)}if(2===arguments.length){if(v(arguments[0],st)&&v(arguments[1],st)){for(var e=arguments[0],n=arguments[1],r=e.iterator();r.hasNext();){var i=r.next();Sr.getLines(i,n)}return n}if(arguments[0]instanceof K&&"boolean"==typeof arguments[1]){var o=arguments[0],a=arguments[1],s=new ft;return o.apply(new Sr(s,a)),s}if(arguments[0]instanceof K&&v(arguments[1],st)){var u=arguments[0],c=arguments[1];return u instanceof Zt?c.add(u):u.apply(new Sr(c)),c}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&v(arguments[0],st)&&v(arguments[1],st)){for(var l=arguments[0],h=arguments[1],f=arguments[2],p=l.iterator();p.hasNext();){var d=p.next();Sr.getLines(d,h,f)}return h}if("boolean"==typeof arguments[2]&&arguments[0]instanceof K&&v(arguments[1],st)){var g=arguments[0],y=arguments[1],m=arguments[2];return g.apply(new Sr(y,m)),y}}};var Pr=function(){if(this._boundaryRule=et.OGC_SFS_BOUNDARY_RULE,this._isIn=null,this._numBoundaries=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];if(null===t)throw new i("Rule must be non-null");this._boundaryRule=t}};Pr.prototype.locateInternal=function(){if(arguments[0]instanceof h&&arguments[1]instanceof $t){var t=arguments[0],e=arguments[1];if(e.isEmpty())return g.EXTERIOR;var n=e.getExteriorRing(),r=this.locateInPolygonRing(t,n);if(r===g.EXTERIOR)return g.EXTERIOR;if(r===g.BOUNDARY)return g.BOUNDARY;for(var i=0;i<e.getNumInteriorRing();i++){var o=e.getInteriorRingN(i),a=this.locateInPolygonRing(t,o);if(a===g.INTERIOR)return g.EXTERIOR;if(a===g.BOUNDARY)return g.BOUNDARY}return g.INTERIOR}if(arguments[0]instanceof h&&arguments[1]instanceof Zt){var s=arguments[0],u=arguments[1];if(!u.getEnvelopeInternal().intersects(s))return g.EXTERIOR;var c=u.getCoordinates();return u.isClosed()||!s.equals(c[0])&&!s.equals(c[c.length-1])?X.isOnLine(s,c)?g.INTERIOR:g.EXTERIOR:g.BOUNDARY}if(arguments[0]instanceof h&&arguments[1]instanceof Kt){var l=arguments[0];return arguments[1].getCoordinate().equals2D(l)?g.INTERIOR:g.EXTERIOR}},Pr.prototype.locateInPolygonRing=function(t,e){return e.getEnvelopeInternal().intersects(t)?X.locatePointInRing(t,e.getCoordinates()):g.EXTERIOR},Pr.prototype.intersects=function(t,e){return this.locate(t,e)!==g.EXTERIOR},Pr.prototype.updateLocationInfo=function(t){t===g.INTERIOR&&(this._isIn=!0),t===g.BOUNDARY&&this._numBoundaries++},Pr.prototype.computeLocation=function(t,e){if(e instanceof Kt&&this.updateLocationInfo(this.locateInternal(t,e)),e instanceof Zt)this.updateLocationInfo(this.locateInternal(t,e));else if(e instanceof $t)this.updateLocationInfo(this.locateInternal(t,e));else if(e instanceof Gt)for(var n=e,r=0;r<n.getNumGeometries();r++){var i=n.getGeometryN(r);this.updateLocationInfo(this.locateInternal(t,i))}else if(e instanceof ne)for(var o=e,a=0;a<o.getNumGeometries();a++){var s=o.getGeometryN(a);this.updateLocationInfo(this.locateInternal(t,s))}else if(e instanceof qt)for(var u=new Un(e);u.hasNext();){var c=u.next();c!==e&&this.computeLocation(t,c)}},Pr.prototype.locate=function(t,e){return e.isEmpty()?g.EXTERIOR:e instanceof Zt?this.locateInternal(t,e):e instanceof $t?this.locateInternal(t,e):(this._isIn=!1,this._numBoundaries=0,this.computeLocation(t,e),this._boundaryRule.isInBoundary(this._numBoundaries)?g.BOUNDARY:this._numBoundaries>0||this._isIn?g.INTERIOR:g.EXTERIOR)},Pr.prototype.interfaces_=function(){return[]},Pr.prototype.getClass=function(){return Pr};var Cr=function t(){if(this._component=null,this._segIndex=null,this._pt=null,2===arguments.length){var e=arguments[0],n=arguments[1];t.call(this,e,t.INSIDE_AREA,n)}else if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];this._component=r,this._segIndex=i,this._pt=o}},Tr={INSIDE_AREA:{configurable:!0}};Cr.prototype.isInsideArea=function(){return this._segIndex===Cr.INSIDE_AREA},Cr.prototype.getCoordinate=function(){return this._pt},Cr.prototype.getGeometryComponent=function(){return this._component},Cr.prototype.getSegmentIndex=function(){return this._segIndex},Cr.prototype.interfaces_=function(){return[]},Cr.prototype.getClass=function(){return Cr},Tr.INSIDE_AREA.get=function(){return-1},Object.defineProperties(Cr,Tr);var Ir=function(t){this._pts=t||null};Ir.prototype.filter=function(t){t instanceof Kt&&this._pts.add(t)},Ir.prototype.interfaces_=function(){return[zt]},Ir.prototype.getClass=function(){return Ir},Ir.getPoints=function(){if(1===arguments.length){var t=arguments[0];return t instanceof Kt?en.singletonList(t):Ir.getPoints(t,new ft)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e instanceof Kt?n.add(e):e instanceof qt&&e.apply(new Ir(n)),n}};var Lr=function(){this._locations=null;var t=arguments[0];this._locations=t};Lr.prototype.filter=function(t){(t instanceof Kt||t instanceof Zt||t instanceof $t)&&this._locations.add(new Cr(t,0,t.getCoordinate()))},Lr.prototype.interfaces_=function(){return[zt]},Lr.prototype.getClass=function(){return Lr},Lr.getLocations=function(t){var e=new ft;return t.apply(new Lr(e)),e};var Ar=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new Pr,this._minDistanceLocation=null,this._minDistance=o.MAX_VALUE,2===arguments.length){var t=arguments[0],e=arguments[1];this._geom=[t,e],this._terminateDistance=0}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=n,this._geom[1]=r,this._terminateDistance=i}};Ar.prototype.computeContainmentDistance=function(){if(0===arguments.length){var t=new Array(2).fill(null);if(this.computeContainmentDistance(0,t),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],r=1-e,i=Mr.getPolygons(this._geom[e]);if(i.size()>0){var o=Lr.getLocations(this._geom[r]);if(this.computeContainmentDistance(o,i,n),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[r]=n[0],this._minDistanceLocation[e]=n[1],null}}else if(3===arguments.length)if(arguments[2]instanceof Array&&v(arguments[0],lt)&&v(arguments[1],lt)){for(var a=arguments[0],s=arguments[1],u=arguments[2],c=0;c<a.size();c++)for(var l=a.get(c),h=0;h<s.size();h++)if(this.computeContainmentDistance(l,s.get(h),u),this._minDistance<=this._terminateDistance)return null}else if(arguments[2]instanceof Array&&arguments[0]instanceof Cr&&arguments[1]instanceof $t){var f=arguments[0],p=arguments[1],d=arguments[2],y=f.getCoordinate();if(g.EXTERIOR!==this._ptLocator.locate(y,p))return this._minDistance=0,d[0]=f,d[1]=new Cr(p,y),null}},Ar.prototype.computeMinDistanceLinesPoints=function(t,e,n){for(var r=0;r<t.size();r++)for(var i=t.get(r),o=0;o<e.size();o++){var a=e.get(o);if(this.computeMinDistance(i,a,n),this._minDistance<=this._terminateDistance)return null}},Ar.prototype.computeFacetDistance=function(){var t=new Array(2).fill(null),e=Sr.getLines(this._geom[0]),n=Sr.getLines(this._geom[1]),r=Ir.getPoints(this._geom[0]),i=Ir.getPoints(this._geom[1]);return this.computeMinDistanceLines(e,n,t),this.updateMinDistance(t,!1),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistanceLinesPoints(e,i,t),this.updateMinDistance(t,!1),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistanceLinesPoints(n,r,t),this.updateMinDistance(t,!0),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistancePoints(r,i,t),void this.updateMinDistance(t,!1))))},Ar.prototype.nearestLocations=function(){return this.computeMinDistance(),this._minDistanceLocation},Ar.prototype.updateMinDistance=function(t,e){if(null===t[0])return null;e?(this._minDistanceLocation[0]=t[1],this._minDistanceLocation[1]=t[0]):(this._minDistanceLocation[0]=t[0],this._minDistanceLocation[1]=t[1])},Ar.prototype.nearestPoints=function(){return this.computeMinDistance(),[this._minDistanceLocation[0].getCoordinate(),this._minDistanceLocation[1].getCoordinate()]},Ar.prototype.computeMinDistance=function(){if(0===arguments.length){if(null!==this._minDistanceLocation)return null;if(this._minDistanceLocation=new Array(2).fill(null),this.computeContainmentDistance(),this._minDistance<=this._terminateDistance)return null;this.computeFacetDistance()}else if(3===arguments.length)if(arguments[2]instanceof Array&&arguments[0]instanceof Zt&&arguments[1]instanceof Kt){var t=arguments[0],e=arguments[1],n=arguments[2];if(t.getEnvelopeInternal().distance(e.getEnvelopeInternal())>this._minDistance)return null;for(var r=t.getCoordinates(),i=e.getCoordinate(),o=0;o<r.length-1;o++){var a=X.distancePointLine(i,r[o],r[o+1]);if(a<this._minDistance){this._minDistance=a;var s=new vn(r[o],r[o+1]).closestPoint(i);n[0]=new Cr(t,o,s),n[1]=new Cr(e,0,i)}if(this._minDistance<=this._terminateDistance)return null}}else if(arguments[2]instanceof Array&&arguments[0]instanceof Zt&&arguments[1]instanceof Zt){var u=arguments[0],c=arguments[1],l=arguments[2];if(u.getEnvelopeInternal().distance(c.getEnvelopeInternal())>this._minDistance)return null;for(var h=u.getCoordinates(),f=c.getCoordinates(),p=0;p<h.length-1;p++)for(var d=0;d<f.length-1;d++){var g=X.distanceLineLine(h[p],h[p+1],f[d],f[d+1]);if(g<this._minDistance){this._minDistance=g;var y=new vn(h[p],h[p+1]),v=new vn(f[d],f[d+1]),m=y.closestPoints(v);l[0]=new Cr(u,p,m[0]),l[1]=new Cr(c,d,m[1])}if(this._minDistance<=this._terminateDistance)return null}}},Ar.prototype.computeMinDistancePoints=function(t,e,n){for(var r=0;r<t.size();r++)for(var i=t.get(r),o=0;o<e.size();o++){var a=e.get(o),s=i.getCoordinate().distance(a.getCoordinate());if(s<this._minDistance&&(this._minDistance=s,n[0]=new Cr(i,0,i.getCoordinate()),n[1]=new Cr(a,0,a.getCoordinate())),this._minDistance<=this._terminateDistance)return null}},Ar.prototype.distance=function(){if(null===this._geom[0]||null===this._geom[1])throw new i("null geometries are not supported");return this._geom[0].isEmpty()||this._geom[1].isEmpty()?0:(this.computeMinDistance(),this._minDistance)},Ar.prototype.computeMinDistanceLines=function(t,e,n){for(var r=0;r<t.size();r++)for(var i=t.get(r),o=0;o<e.size();o++){var a=e.get(o);if(this.computeMinDistance(i,a,n),this._minDistance<=this._terminateDistance)return null}},Ar.prototype.interfaces_=function(){return[]},Ar.prototype.getClass=function(){return Ar},Ar.distance=function(t,e){return new Ar(t,e).distance()},Ar.isWithinDistance=function(t,e,n){return new Ar(t,e,n).distance()<=n},Ar.nearestPoints=function(t,e){return new Ar(t,e).nearestPoints()};var Nr=function(){this._pt=[new h,new h],this._distance=o.NaN,this._isNull=!0};Nr.prototype.getCoordinates=function(){return this._pt},Nr.prototype.getCoordinate=function(t){return this._pt[t]},Nr.prototype.setMinimum=function(){if(1===arguments.length){var t=arguments[0];this.setMinimum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var r=e.distance(n);r<this._distance&&this.initialize(e,n,r)}},Nr.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var t=arguments[0],e=arguments[1];this._pt[0].setCoordinate(t),this._pt[1].setCoordinate(e),this._distance=t.distance(e),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(r),this._distance=i,this._isNull=!1}},Nr.prototype.toString=function(){return z.toLineString(this._pt[0],this._pt[1])},Nr.prototype.getDistance=function(){return this._distance},Nr.prototype.setMaximum=function(){if(1===arguments.length){var t=arguments[0];this.setMaximum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var r=e.distance(n);r>this._distance&&this.initialize(e,n,r)}},Nr.prototype.interfaces_=function(){return[]},Nr.prototype.getClass=function(){return Nr};var kr=function(){};kr.prototype.interfaces_=function(){return[]},kr.prototype.getClass=function(){return kr},kr.computeDistance=function(){if(arguments[2]instanceof Nr&&arguments[0]instanceof Zt&&arguments[1]instanceof h)for(var t=arguments[0],e=arguments[1],n=arguments[2],r=new vn,i=t.getCoordinates(),o=0;o<i.length-1;o++){r.setCoordinates(i[o],i[o+1]);var a=r.closestPoint(e);n.setMinimum(a,e)}else if(arguments[2]instanceof Nr&&arguments[0]instanceof $t&&arguments[1]instanceof h){var s=arguments[0],u=arguments[1],c=arguments[2];kr.computeDistance(s.getExteriorRing(),u,c);for(var l=0;l<s.getNumInteriorRing();l++)kr.computeDistance(s.getInteriorRingN(l),u,c)}else if(arguments[2]instanceof Nr&&arguments[0]instanceof K&&arguments[1]instanceof h){var f=arguments[0],p=arguments[1],d=arguments[2];if(f instanceof Zt)kr.computeDistance(f,p,d);else if(f instanceof $t)kr.computeDistance(f,p,d);else if(f instanceof qt)for(var g=f,y=0;y<g.getNumGeometries();y++){var v=g.getGeometryN(y);kr.computeDistance(v,p,d)}else d.setMinimum(f.getCoordinate(),p)}else if(arguments[2]instanceof Nr&&arguments[0]instanceof vn&&arguments[1]instanceof h){var m=arguments[0],_=arguments[1],b=arguments[2],w=m.closestPoint(_);b.setMinimum(w,_)}};var jr=function(){this._g0=null,this._g1=null,this._ptDist=new Nr,this._densifyFrac=0;var t=arguments[0],e=arguments[1];this._g0=t,this._g1=e},Rr={MaxPointDistanceFilter:{configurable:!0},MaxDensifiedByFractionDistanceFilter:{configurable:!0}};jr.prototype.getCoordinates=function(){return this._ptDist.getCoordinates()},jr.prototype.setDensifyFraction=function(t){if(t>1||t<=0)throw new i("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=t},jr.prototype.compute=function(t,e){this.computeOrientedDistance(t,e,this._ptDist),this.computeOrientedDistance(e,t,this._ptDist)},jr.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()},jr.prototype.computeOrientedDistance=function(t,e,n){var r=new Dr(e);if(t.apply(r),n.setMaximum(r.getMaxPointDistance()),this._densifyFrac>0){var i=new Fr(e,this._densifyFrac);t.apply(i),n.setMaximum(i.getMaxPointDistance())}},jr.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()},jr.prototype.interfaces_=function(){return[]},jr.prototype.getClass=function(){return jr},jr.distance=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return new jr(t,e).distance()}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=new jr(n,r);return o.setDensifyFraction(i),o.distance()}},Rr.MaxPointDistanceFilter.get=function(){return Dr},Rr.MaxDensifiedByFractionDistanceFilter.get=function(){return Fr},Object.defineProperties(jr,Rr);var Dr=function(){this._maxPtDist=new Nr,this._minPtDist=new Nr,this._euclideanDist=new kr,this._geom=null;var t=arguments[0];this._geom=t};Dr.prototype.filter=function(t){this._minPtDist.initialize(),kr.computeDistance(this._geom,t,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Dr.prototype.getMaxPointDistance=function(){return this._maxPtDist},Dr.prototype.interfaces_=function(){return[tt]},Dr.prototype.getClass=function(){return Dr};var Fr=function(){this._maxPtDist=new Nr,this._minPtDist=new Nr,this._geom=null,this._numSubSegs=0;var t=arguments[0],e=arguments[1];this._geom=t,this._numSubSegs=Math.trunc(Math.round(1/e))};Fr.prototype.filter=function(t,e){if(0===e)return null;for(var n=t.getCoordinate(e-1),r=t.getCoordinate(e),i=(r.x-n.x)/this._numSubSegs,o=(r.y-n.y)/this._numSubSegs,a=0;a<this._numSubSegs;a++){var s=n.x+a*i,u=n.y+a*o,c=new h(s,u);this._minPtDist.initialize(),kr.computeDistance(this._geom,c,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)}},Fr.prototype.isDone=function(){return!1},Fr.prototype.isGeometryChanged=function(){return!1},Fr.prototype.getMaxPointDistance=function(){return this._maxPtDist},Fr.prototype.interfaces_=function(){return[Bt]},Fr.prototype.getClass=function(){return Fr};var zr=function(t,e,n){this._minValidDistance=null,this._maxValidDistance=null,this._minDistanceFound=null,this._maxDistanceFound=null,this._isValid=!0,this._errMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=t||null,this._bufDistance=e||null,this._result=n||null},Br={VERBOSE:{configurable:!0},MAX_DISTANCE_DIFF_FRAC:{configurable:!0}};zr.prototype.checkMaximumDistance=function(t,e,n){var r=new jr(e,t);if(r.setDensifyFraction(.25),this._maxDistanceFound=r.orientedDistance(),this._maxDistanceFound>n){this._isValid=!1;var i=r.getCoordinates();this._errorLocation=i[1],this._errorIndicator=t.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+z.toLineString(i[0],i[1])+")"}},zr.prototype.isValid=function(){var t=Math.abs(this._bufDistance),e=zr.MAX_DISTANCE_DIFF_FRAC*t;return this._minValidDistance=t-e,this._maxValidDistance=t+e,!(!this._input.isEmpty()&&!this._result.isEmpty())||(this._bufDistance>0?this.checkPositiveValid():this.checkNegativeValid(),zr.VERBOSE&&L.out.println("Min Dist= "+this._minDistanceFound+" err= "+(1-this._minDistanceFound/this._bufDistance)+" Max Dist= "+this._maxDistanceFound+" err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)},zr.prototype.checkNegativeValid=function(){if(!(this._input instanceof $t||this._input instanceof ne||this._input instanceof qt))return null;var t=this.getPolygonLines(this._input);if(this.checkMinimumDistance(t,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(t,this._result,this._maxValidDistance)},zr.prototype.getErrorIndicator=function(){return this._errorIndicator},zr.prototype.checkMinimumDistance=function(t,e,n){var r=new Ar(t,e,n);if(this._minDistanceFound=r.distance(),this._minDistanceFound<n){this._isValid=!1;var i=r.nearestPoints();this._errorLocation=r.nearestPoints()[1],this._errorIndicator=t.getFactory().createLineString(i),this._errMsg="Distance between buffer curve and input is too small ("+this._minDistanceFound+" at "+z.toLineString(i[0],i[1])+" )"}},zr.prototype.checkPositiveValid=function(){var t=this._result.getBoundary();if(this.checkMinimumDistance(this._input,t,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(this._input,t,this._maxValidDistance)},zr.prototype.getErrorLocation=function(){return this._errorLocation},zr.prototype.getPolygonLines=function(t){for(var e=new ft,n=new Sr(e),r=Mr.getPolygons(t).iterator();r.hasNext();){r.next().apply(n)}return t.getFactory().buildGeometry(e)},zr.prototype.getErrorMessage=function(){return this._errMsg},zr.prototype.interfaces_=function(){return[]},zr.prototype.getClass=function(){return zr},Br.VERBOSE.get=function(){return!1},Br.MAX_DISTANCE_DIFF_FRAC.get=function(){return.012},Object.defineProperties(zr,Br);var qr=function(t,e,n){this._isValid=!0,this._errorMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=t||null,this._distance=e||null,this._result=n||null},Gr={VERBOSE:{configurable:!0},MAX_ENV_DIFF_FRAC:{configurable:!0}};qr.prototype.isValid=function(){return this.checkPolygonal(),this._isValid?(this.checkExpectedEmpty(),this._isValid?(this.checkEnvelope(),this._isValid?(this.checkArea(),this._isValid?(this.checkDistance(),this._isValid):this._isValid):this._isValid):this._isValid):this._isValid},qr.prototype.checkEnvelope=function(){if(this._distance<0)return null;var t=this._distance*qr.MAX_ENV_DIFF_FRAC;0===t&&(t=.001);var e=new N(this._input.getEnvelopeInternal());e.expandBy(this._distance);var n=new N(this._result.getEnvelopeInternal());n.expandBy(t),n.contains(e)||(this._isValid=!1,this._errorMsg="Buffer envelope is incorrect",this._errorIndicator=this._input.getFactory().toGeometry(n)),this.report("Envelope")},qr.prototype.checkDistance=function(){var t=new zr(this._input,this._distance,this._result);t.isValid()||(this._isValid=!1,this._errorMsg=t.getErrorMessage(),this._errorLocation=t.getErrorLocation(),this._errorIndicator=t.getErrorIndicator()),this.report("Distance")},qr.prototype.checkArea=function(){var t=this._input.getArea(),e=this._result.getArea();this._distance>0&&t>e&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&t<e&&(this._isValid=!1,this._errorMsg="Area of negative buffer is larger than input",this._errorIndicator=this._result),this.report("Area")},qr.prototype.checkPolygonal=function(){this._result instanceof $t||this._result instanceof ne||(this._isValid=!1),this._errorMsg="Result is not polygonal",this._errorIndicator=this._result,this.report("Polygonal")},qr.prototype.getErrorIndicator=function(){return this._errorIndicator},qr.prototype.getErrorLocation=function(){return this._errorLocation},qr.prototype.checkExpectedEmpty=function(){return this._input.getDimension()>=2?null:this._distance>0?null:(this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),void this.report("ExpectedEmpty"))},qr.prototype.report=function(t){if(!qr.VERBOSE)return null;L.out.println("Check "+t+": "+(this._isValid?"passed":"FAILED"))},qr.prototype.getErrorMessage=function(){return this._errorMsg},qr.prototype.interfaces_=function(){return[]},qr.prototype.getClass=function(){return qr},qr.isValidMsg=function(t,e,n){var r=new qr(t,e,n);return r.isValid()?null:r.getErrorMessage()},qr.isValid=function(t,e,n){return!!new qr(t,e,n).isValid()},Gr.VERBOSE.get=function(){return!1},Gr.MAX_ENV_DIFF_FRAC.get=function(){return.012},Object.defineProperties(qr,Gr);var Ur=function(){this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};Ur.prototype.getCoordinates=function(){return this._pts},Ur.prototype.size=function(){return this._pts.length},Ur.prototype.getCoordinate=function(t){return this._pts[t]},Ur.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},Ur.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:pn.octant(this.getCoordinate(t),this.getCoordinate(t+1))},Ur.prototype.setData=function(t){this._data=t},Ur.prototype.getData=function(){return this._data},Ur.prototype.toString=function(){return z.toLineString(new ue(this._pts))},Ur.prototype.interfaces_=function(){return[dn]},Ur.prototype.getClass=function(){return Ur};var Vr=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new ft,this._intersectionCount=0,this._keepIntersections=!0;var t=arguments[0];this._li=t,this._interiorIntersection=null};Vr.prototype.getInteriorIntersection=function(){return this._interiorIntersection},Vr.prototype.setCheckEndSegmentsOnly=function(t){this._isCheckEndSegmentsOnly=t},Vr.prototype.getIntersectionSegments=function(){return this._intSegments},Vr.prototype.count=function(){return this._intersectionCount},Vr.prototype.getIntersections=function(){return this._intersections},Vr.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},Vr.prototype.setKeepIntersections=function(t){this._keepIntersections=t},Vr.prototype.processIntersections=function(t,e,n,r){if(!this._findAllIntersections&&this.hasIntersection())return null;if(t===n&&e===r)return null;if(this._isCheckEndSegmentsOnly&&!(this.isEndSegment(t,e)||this.isEndSegment(n,r)))return null;var i=t.getCoordinates()[e],o=t.getCoordinates()[e+1],a=n.getCoordinates()[r],s=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,a,s),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=i,this._intSegments[1]=o,this._intSegments[2]=a,this._intSegments[3]=s,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)},Vr.prototype.isEndSegment=function(t,e){return 0===e||e>=t.size()-2},Vr.prototype.hasIntersection=function(){return null!==this._interiorIntersection},Vr.prototype.isDone=function(){return!this._findAllIntersections&&null!==this._interiorIntersection},Vr.prototype.interfaces_=function(){return[Wn]},Vr.prototype.getClass=function(){return Vr},Vr.createAllIntersectionsFinder=function(t){var e=new Vr(t);return e.setFindAllIntersections(!0),e},Vr.createAnyIntersectionFinder=function(t){return new Vr(t)},Vr.createIntersectionCounter=function(t){var e=new Vr(t);return e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e};var Jr=function(){this._li=new J,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var t=arguments[0];this._segStrings=t};Jr.prototype.execute=function(){if(null!==this._segInt)return null;this.checkInteriorIntersections()},Jr.prototype.getIntersections=function(){return this._segInt.getIntersections()},Jr.prototype.isValid=function(){return this.execute(),this._isValid},Jr.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},Jr.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new Vr(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var t=new On;if(t.setSegmentIntersector(this._segInt),t.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null},Jr.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new Ie(this.getErrorMessage(),this._segInt.getInteriorIntersection())},Jr.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var t=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+z.toLineString(t[0],t[1])+" and "+z.toLineString(t[2],t[3])},Jr.prototype.interfaces_=function(){return[]},Jr.prototype.getClass=function(){return Jr},Jr.computeIntersections=function(t){var e=new Jr(t);return e.setFindAllIntersections(!0),e.isValid(),e.getIntersections()};var Hr=function t(){this._nv=null;var e=arguments[0];this._nv=new Jr(t.toSegmentStrings(e))};Hr.prototype.checkValid=function(){this._nv.checkValid()},Hr.prototype.interfaces_=function(){return[]},Hr.prototype.getClass=function(){return Hr},Hr.toSegmentStrings=function(t){for(var e=new ft,n=t.iterator();n.hasNext();){var r=n.next();e.add(new Ur(r.getCoordinates(),r))}return e},Hr.checkValid=function(t){new Hr(t).checkValid()};var Yr=function(t){this._mapOp=t};Yr.prototype.map=function(t){for(var e=new ft,n=0;n<t.getNumGeometries();n++){var r=this._mapOp.map(t.getGeometryN(n));r.isEmpty()||e.add(r)}return t.getFactory().createGeometryCollection(ve.toGeometryArray(e))},Yr.prototype.interfaces_=function(){return[]},Yr.prototype.getClass=function(){return Yr},Yr.map=function(t,e){return new Yr(e).map(t)};var Xr=function(){this._op=null,this._geometryFactory=null,this._ptLocator=null,this._lineEdgesList=new ft,this._resultLineList=new ft;var t=arguments[0],e=arguments[1],n=arguments[2];this._op=t,this._geometryFactory=e,this._ptLocator=n};Xr.prototype.collectLines=function(t){for(var e=this._op.getGraph().getEdgeEnds().iterator();e.hasNext();){var n=e.next();this.collectLineEdge(n,t,this._lineEdgesList),this.collectBoundaryTouchEdge(n,t,this._lineEdgesList)}},Xr.prototype.labelIsolatedLine=function(t,e){var n=this._ptLocator.locate(t.getCoordinate(),this._op.getArgGeometry(e));t.getLabel().setLocation(e,n)},Xr.prototype.build=function(t){return this.findCoveredLineEdges(),this.collectLines(t),this.buildLines(t),this._resultLineList},Xr.prototype.collectLineEdge=function(t,e,n){var r=t.getLabel(),i=t.getEdge();t.isLineEdge()&&(t.isVisited()||!Ci.isResultOfOp(r,e)||i.isCovered()||(n.add(i),t.setVisitedEdge(!0)))},Xr.prototype.findCoveredLineEdges=function(){for(var t=this._op.getGraph().getNodes().iterator();t.hasNext();){t.next().getEdges().findCoveredLineEdges()}for(var e=this._op.getGraph().getEdgeEnds().iterator();e.hasNext();){var n=e.next(),r=n.getEdge();if(n.isLineEdge()&&!r.isCoveredSet()){var i=this._op.isCoveredByA(n.getCoordinate());r.setCovered(i)}}},Xr.prototype.labelIsolatedLines=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),r=n.getLabel();n.isIsolated()&&(r.isNull(0)?this.labelIsolatedLine(n,0):this.labelIsolatedLine(n,1))}},Xr.prototype.buildLines=function(t){for(var e=this._lineEdgesList.iterator();e.hasNext();){var n=e.next(),r=this._geometryFactory.createLineString(n.getCoordinates());this._resultLineList.add(r),n.setInResult(!0)}},Xr.prototype.collectBoundaryTouchEdge=function(t,e,n){var r=t.getLabel();return t.isLineEdge()?null:t.isVisited()?null:t.isInteriorAreaEdge()?null:t.getEdge().isInResult()?null:(G.isTrue(!(t.isInResult()||t.getSym().isInResult())||!t.getEdge().isInResult()),void(Ci.isResultOfOp(r,e)&&e===Ci.INTERSECTION&&(n.add(t.getEdge()),t.setVisitedEdge(!0))))},Xr.prototype.interfaces_=function(){return[]},Xr.prototype.getClass=function(){return Xr};var Zr=function(){this._op=null,this._geometryFactory=null,this._resultPointList=new ft;var t=arguments[0],e=arguments[1];this._op=t,this._geometryFactory=e};Zr.prototype.filterCoveredNodeToPoint=function(t){var e=t.getCoordinate();if(!this._op.isCoveredByLA(e)){var n=this._geometryFactory.createPoint(e);this._resultPointList.add(n)}},Zr.prototype.extractNonCoveredResultNodes=function(t){for(var e=this._op.getGraph().getNodes().iterator();e.hasNext();){var n=e.next();if(!n.isInResult()&&(!n.isIncidentEdgeInResult()&&(0===n.getEdges().getDegree()||t===Ci.INTERSECTION))){var r=n.getLabel();Ci.isResultOfOp(r,t)&&this.filterCoveredNodeToPoint(n)}}},Zr.prototype.build=function(t){return this.extractNonCoveredResultNodes(t),this._resultPointList},Zr.prototype.interfaces_=function(){return[]},Zr.prototype.getClass=function(){return Zr};var Wr=function(){this._inputGeom=null,this._factory=null,this._pruneEmptyGeometry=!0,this._preserveGeometryCollectionType=!0,this._preserveCollections=!1,this._preserveType=!1};Wr.prototype.transformPoint=function(t,e){return this._factory.createPoint(this.transformCoordinates(t.getCoordinateSequence(),t))},Wr.prototype.transformPolygon=function(t,e){var n=!0,r=this.transformLinearRing(t.getExteriorRing(),t);null!==r&&r instanceof ee&&!r.isEmpty()||(n=!1);for(var i=new ft,o=0;o<t.getNumInteriorRing();o++){var a=this.transformLinearRing(t.getInteriorRingN(o),t);null===a||a.isEmpty()||(a instanceof ee||(n=!1),i.add(a))}if(n)return this._factory.createPolygon(r,i.toArray([]));var s=new ft;return null!==r&&s.add(r),s.addAll(i),this._factory.buildGeometry(s)},Wr.prototype.createCoordinateSequence=function(t){return this._factory.getCoordinateSequenceFactory().create(t)},Wr.prototype.getInputGeometry=function(){return this._inputGeom},Wr.prototype.transformMultiLineString=function(t,e){for(var n=new ft,r=0;r<t.getNumGeometries();r++){var i=this.transformLineString(t.getGeometryN(r),t);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Wr.prototype.transformCoordinates=function(t,e){return this.copy(t)},Wr.prototype.transformLineString=function(t,e){return this._factory.createLineString(this.transformCoordinates(t.getCoordinateSequence(),t))},Wr.prototype.transformMultiPoint=function(t,e){for(var n=new ft,r=0;r<t.getNumGeometries();r++){var i=this.transformPoint(t.getGeometryN(r),t);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Wr.prototype.transformMultiPolygon=function(t,e){for(var n=new ft,r=0;r<t.getNumGeometries();r++){var i=this.transformPolygon(t.getGeometryN(r),t);null!==i&&(i.isEmpty()||n.add(i))}return this._factory.buildGeometry(n)},Wr.prototype.copy=function(t){return t.copy()},Wr.prototype.transformGeometryCollection=function(t,e){for(var n=new ft,r=0;r<t.getNumGeometries();r++){var i=this.transform(t.getGeometryN(r));null!==i&&(this._pruneEmptyGeometry&&i.isEmpty()||n.add(i))}return this._preserveGeometryCollectionType?this._factory.createGeometryCollection(ve.toGeometryArray(n)):this._factory.buildGeometry(n)},Wr.prototype.transform=function(t){if(this._inputGeom=t,this._factory=t.getFactory(),t instanceof Kt)return this.transformPoint(t,null);if(t instanceof te)return this.transformMultiPoint(t,null);if(t instanceof ee)return this.transformLinearRing(t,null);if(t instanceof Zt)return this.transformLineString(t,null);if(t instanceof Gt)return this.transformMultiLineString(t,null);if(t instanceof $t)return this.transformPolygon(t,null);if(t instanceof ne)return this.transformMultiPolygon(t,null);if(t instanceof qt)return this.transformGeometryCollection(t,null);throw new i("Unknown Geometry subtype: "+t.getClass().getName())},Wr.prototype.transformLinearRing=function(t,e){var n=this.transformCoordinates(t.getCoordinateSequence(),t);if(null===n)return this._factory.createLinearRing(null);var r=n.size();return r>0&&r<4&&!this._preserveType?this._factory.createLineString(n):this._factory.createLinearRing(n)},Wr.prototype.interfaces_=function(){return[]},Wr.prototype.getClass=function(){return Wr};var Kr=function t(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new vn,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof Zt&&"number"==typeof arguments[1]){var e=arguments[0],n=arguments[1];t.call(this,e.getCoordinates(),n)}else if(arguments[0]instanceof Array&&"number"==typeof arguments[1]){var r=arguments[0],i=arguments[1];this._srcPts=r,this._isClosed=t.isClosed(r),this._snapTolerance=i}};Kr.prototype.snapVertices=function(t,e){for(var n=this._isClosed?t.size()-1:t.size(),r=0;r<n;r++){var i=t.get(r),o=this.findSnapForVertex(i,e);null!==o&&(t.set(r,new h(o)),0===r&&this._isClosed&&t.set(t.size()-1,new h(o)))}},Kr.prototype.findSnapForVertex=function(t,e){for(var n=0;n<e.length;n++){if(t.equals2D(e[n]))return null;if(t.distance(e[n])<this._snapTolerance)return e[n]}return null},Kr.prototype.snapTo=function(t){var e=new dt(this._srcPts);return this.snapVertices(e,t),this.snapSegments(e,t),e.toCoordinateArray()},Kr.prototype.snapSegments=function(t,e){if(0===e.length)return null;var n=e.length;e[0].equals2D(e[e.length-1])&&(n=e.length-1);for(var r=0;r<n;r++){var i=e[r],o=this.findSegmentIndexToSnap(i,t);o>=0&&t.add(o+1,new h(i),!1)}},Kr.prototype.findSegmentIndexToSnap=function(t,e){for(var n=o.MAX_VALUE,r=-1,i=0;i<e.size()-1;i++){if(this._seg.p0=e.get(i),this._seg.p1=e.get(i+1),this._seg.p0.equals2D(t)||this._seg.p1.equals2D(t)){if(this._allowSnappingToSourceVertices)continue;return-1}var a=this._seg.distance(t);a<this._snapTolerance&&a<n&&(n=a,r=i)}return r},Kr.prototype.setAllowSnappingToSourceVertices=function(t){this._allowSnappingToSourceVertices=t},Kr.prototype.interfaces_=function(){return[]},Kr.prototype.getClass=function(){return Kr},Kr.isClosed=function(t){return!(t.length<=1)&&t[0].equals2D(t[t.length-1])};var Qr=function(t){this._srcGeom=t||null},$r={SNAP_PRECISION_FACTOR:{configurable:!0}};Qr.prototype.snapTo=function(t,e){var n=this.extractTargetCoordinates(t);return new ti(e,n).transform(this._srcGeom)},Qr.prototype.snapToSelf=function(t,e){var n=this.extractTargetCoordinates(this._srcGeom),r=new ti(t,n,!0).transform(this._srcGeom),i=r;return e&&v(i,Qt)&&(i=r.buffer(0)),i},Qr.prototype.computeSnapTolerance=function(t){return this.computeMinimumSegmentLength(t)/10},Qr.prototype.extractTargetCoordinates=function(t){for(var e=new kt,n=t.getCoordinates(),r=0;r<n.length;r++)e.add(n[r]);return e.toArray(new Array(0).fill(null))},Qr.prototype.computeMinimumSegmentLength=function(t){for(var e=o.MAX_VALUE,n=0;n<t.length-1;n++){var r=t[n].distance(t[n+1]);r<e&&(e=r)}return e},Qr.prototype.interfaces_=function(){return[]},Qr.prototype.getClass=function(){return Qr},Qr.snap=function(t,e,n){var r=new Array(2).fill(null),i=new Qr(t);r[0]=i.snapTo(e,n);var o=new Qr(e);return r[1]=o.snapTo(r[0],n),r},Qr.computeOverlaySnapTolerance=function(){if(1===arguments.length){var t=arguments[0],e=Qr.computeSizeBasedSnapTolerance(t),n=t.getPrecisionModel();if(n.getType()===pe.FIXED){var r=1/n.getScale()*2/1.415;r>e&&(e=r)}return e}if(2===arguments.length){var i=arguments[0],o=arguments[1];return Math.min(Qr.computeOverlaySnapTolerance(i),Qr.computeOverlaySnapTolerance(o))}},Qr.computeSizeBasedSnapTolerance=function(t){var e=t.getEnvelopeInternal();return Math.min(e.getHeight(),e.getWidth())*Qr.SNAP_PRECISION_FACTOR},Qr.snapToSelf=function(t,e,n){return new Qr(t).snapToSelf(e,n)},$r.SNAP_PRECISION_FACTOR.get=function(){return 1e-9},Object.defineProperties(Qr,$r);var ti=function(t){function e(e,n,r){t.call(this),this._snapTolerance=e||null,this._snapPts=n||null,this._isSelfSnap=void 0!==r&&r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.snapLine=function(t,e){var n=new Kr(t,this._snapTolerance);return n.setAllowSnappingToSourceVertices(this._isSelfSnap),n.snapTo(e)},e.prototype.transformCoordinates=function(t,e){var n=t.toCoordinateArray(),r=this.snapLine(n,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(r)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Wr),ei=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};ei.prototype.getCommon=function(){return o.longBitsToDouble(this._commonBits)},ei.prototype.add=function(t){var e=o.doubleToLongBits(t);return this._isFirst?(this._commonBits=e,this._commonSignExp=ei.signExpBits(this._commonBits),this._isFirst=!1,null):ei.signExpBits(e)!==this._commonSignExp?(this._commonBits=0,null):(this._commonMantissaBitsCount=ei.numCommonMostSigMantissaBits(this._commonBits,e),void(this._commonBits=ei.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))))},ei.prototype.toString=function(){if(1===arguments.length){var t=arguments[0],e=o.longBitsToDouble(t),n="0000000000000000000000000000000000000000000000000000000000000000"+o.toBinaryString(t),r=n.substring(n.length-64);return r.substring(0,1)+" "+r.substring(1,12)+"(exp) "+r.substring(12)+" [ "+e+" ]"}},ei.prototype.interfaces_=function(){return[]},ei.prototype.getClass=function(){return ei},ei.getBit=function(t,e){return 0!=(t&1<<e)?1:0},ei.signExpBits=function(t){return t>>52},ei.zeroLowerBits=function(t,e){return t&~((1<<e)-1)},ei.numCommonMostSigMantissaBits=function(t,e){for(var n=0,r=52;r>=0;r--){if(ei.getBit(t,r)!==ei.getBit(e,r))return n;n++}return 52};var ni=function(){this._commonCoord=null,this._ccFilter=new ii},ri={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};ni.prototype.addCommonBits=function(t){var e=new oi(this._commonCoord);t.apply(e),t.geometryChanged()},ni.prototype.removeCommonBits=function(t){if(0===this._commonCoord.x&&0===this._commonCoord.y)return t;var e=new h(this._commonCoord);e.x=-e.x,e.y=-e.y;var n=new oi(e);return t.apply(n),t.geometryChanged(),t},ni.prototype.getCommonCoordinate=function(){return this._commonCoord},ni.prototype.add=function(t){t.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()},ni.prototype.interfaces_=function(){return[]},ni.prototype.getClass=function(){return ni},ri.CommonCoordinateFilter.get=function(){return ii},ri.Translater.get=function(){return oi},Object.defineProperties(ni,ri);var ii=function(){this._commonBitsX=new ei,this._commonBitsY=new ei};ii.prototype.filter=function(t){this._commonBitsX.add(t.x),this._commonBitsY.add(t.y)},ii.prototype.getCommonCoordinate=function(){return new h(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())},ii.prototype.interfaces_=function(){return[tt]},ii.prototype.getClass=function(){return ii};var oi=function(){this.trans=null;var t=arguments[0];this.trans=t};oi.prototype.filter=function(t,e){var n=t.getOrdinate(e,0)+this.trans.x,r=t.getOrdinate(e,1)+this.trans.y;t.setOrdinate(e,0,n),t.setOrdinate(e,1,r)},oi.prototype.isDone=function(){return!1},oi.prototype.isGeometryChanged=function(){return!0},oi.prototype.interfaces_=function(){return[Bt]},oi.prototype.getClass=function(){return oi};var ai=function(t,e){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=t,this._geom[1]=e,this.computeSnapTolerance()};ai.prototype.selfSnap=function(t){return new Qr(t).snapTo(t,this._snapTolerance)},ai.prototype.removeCommonBits=function(t){this._cbr=new ni,this._cbr.add(t[0]),this._cbr.add(t[1]);var e=new Array(2).fill(null);return e[0]=this._cbr.removeCommonBits(t[0].copy()),e[1]=this._cbr.removeCommonBits(t[1].copy()),e},ai.prototype.prepareResult=function(t){return this._cbr.addCommonBits(t),t},ai.prototype.getResultGeometry=function(t){var e=this.snap(this._geom),n=Ci.overlayOp(e[0],e[1],t);return this.prepareResult(n)},ai.prototype.checkValid=function(t){t.isValid()||L.out.println("Snapped geometry is invalid")},ai.prototype.computeSnapTolerance=function(){this._snapTolerance=Qr.computeOverlaySnapTolerance(this._geom[0],this._geom[1])},ai.prototype.snap=function(t){var e=this.removeCommonBits(t);return Qr.snap(e[0],e[1],this._snapTolerance)},ai.prototype.interfaces_=function(){return[]},ai.prototype.getClass=function(){return ai},ai.overlayOp=function(t,e,n){return new ai(t,e).getResultGeometry(n)},ai.union=function(t,e){return ai.overlayOp(t,e,Ci.UNION)},ai.intersection=function(t,e){return ai.overlayOp(t,e,Ci.INTERSECTION)},ai.symDifference=function(t,e){return ai.overlayOp(t,e,Ci.SYMDIFFERENCE)},ai.difference=function(t,e){return ai.overlayOp(t,e,Ci.DIFFERENCE)};var si=function(t,e){this._geom=new Array(2).fill(null),this._geom[0]=t,this._geom[1]=e};si.prototype.getResultGeometry=function(t){var e=null,n=!1,r=null;try{e=Ci.overlayOp(this._geom[0],this._geom[1],t);n=!0}catch(t){if(!(t instanceof B))throw t;r=t}if(!n)try{e=ai.overlayOp(this._geom[0],this._geom[1],t)}catch(t){throw t instanceof B?r:t}return e},si.prototype.interfaces_=function(){return[]},si.prototype.getClass=function(){return si},si.overlayOp=function(t,e,n){return new si(t,e).getResultGeometry(n)},si.union=function(t,e){return si.overlayOp(t,e,Ci.UNION)},si.intersection=function(t,e){return si.overlayOp(t,e,Ci.INTERSECTION)},si.symDifference=function(t,e){return si.overlayOp(t,e,Ci.SYMDIFFERENCE)},si.difference=function(t,e){return si.overlayOp(t,e,Ci.DIFFERENCE)};var ui=function(){this.mce=null,this.chainIndex=null;var t=arguments[0],e=arguments[1];this.mce=t,this.chainIndex=e};ui.prototype.computeIntersections=function(t,e){this.mce.computeIntersectsForChain(this.chainIndex,t.mce,t.chainIndex,e)},ui.prototype.interfaces_=function(){return[]},ui.prototype.getClass=function(){return ui};var ci=function t(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,2===arguments.length){var e=arguments[0],n=arguments[1];this._eventType=t.DELETE,this._xValue=e,this._insertEvent=n}else if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];this._eventType=t.INSERT,this._label=r,this._xValue=i,this._obj=o}},li={INSERT:{configurable:!0},DELETE:{configurable:!0}};ci.prototype.isDelete=function(){return this._eventType===ci.DELETE},ci.prototype.setDeleteEventIndex=function(t){this._deleteEventIndex=t},ci.prototype.getObject=function(){return this._obj},ci.prototype.compareTo=function(t){var e=t;return this._xValue<e._xValue?-1:this._xValue>e._xValue?1:this._eventType<e._eventType?-1:this._eventType>e._eventType?1:0},ci.prototype.getInsertEvent=function(){return this._insertEvent},ci.prototype.isInsert=function(){return this._eventType===ci.INSERT},ci.prototype.isSameLabel=function(t){return null!==this._label&&this._label===t._label},ci.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex},ci.prototype.interfaces_=function(){return[s]},ci.prototype.getClass=function(){return ci},li.INSERT.get=function(){return 1},li.DELETE.get=function(){return 2},Object.defineProperties(ci,li);var hi=function(){};hi.prototype.interfaces_=function(){return[]},hi.prototype.getClass=function(){return hi};var fi=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this._li=t,this._includeProper=e,this._recordIsolated=n};fi.prototype.isTrivialIntersection=function(t,e,n,r){if(t===n&&1===this._li.getIntersectionNum()){if(fi.isAdjacentSegments(e,r))return!0;if(t.isClosed()){var i=t.getNumPoints()-1;if(0===e&&r===i||0===r&&e===i)return!0}}return!1},fi.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},fi.prototype.setIsDoneIfProperInt=function(t){this._isDoneWhenProperInt=t},fi.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},fi.prototype.isBoundaryPointInternal=function(t,e){for(var n=e.iterator();n.hasNext();){var r=n.next().getCoordinate();if(t.isIntersection(r))return!0}return!1},fi.prototype.hasProperIntersection=function(){return this._hasProper},fi.prototype.hasIntersection=function(){return this._hasIntersection},fi.prototype.isDone=function(){return this._isDone},fi.prototype.isBoundaryPoint=function(t,e){return null!==e&&(!!this.isBoundaryPointInternal(t,e[0])||!!this.isBoundaryPointInternal(t,e[1]))},fi.prototype.setBoundaryNodes=function(t,e){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=t,this._bdyNodes[1]=e},fi.prototype.addIntersections=function(t,e,n,r){if(t===n&&e===r)return null;this.numTests++;var i=t.getCoordinates()[e],o=t.getCoordinates()[e+1],a=n.getCoordinates()[r],s=n.getCoordinates()[r+1];this._li.computeIntersection(i,o,a,s),this._li.hasIntersection()&&(this._recordIsolated&&(t.setIsolated(!1),n.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(t,e,n,r)||(this._hasIntersection=!0,!this._includeProper&&this._li.isProper()||(t.addIntersections(this._li,e,0),n.addIntersections(this._li,r,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))},fi.prototype.interfaces_=function(){return[]},fi.prototype.getClass=function(){return fi},fi.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)};var pi=function(t){function e(){t.call(this),this.events=new ft,this.nOverlaps=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.prepareEvents=function(){en.sort(this.events);for(var t=0;t<this.events.size();t++){var e=this.events.get(t);e.isDelete()&&e.getInsertEvent().setDeleteEventIndex(t)}},e.prototype.computeIntersections=function(){if(1===arguments.length){var t=arguments[0];this.nOverlaps=0,this.prepareEvents();for(var e=0;e<this.events.size();e++){var n=this.events.get(e);if(n.isInsert()&&this.processOverlaps(e,n.getDeleteEventIndex(),n,t),t.isDone())break}}else if(3===arguments.length)if(arguments[2]instanceof fi&&v(arguments[0],lt)&&v(arguments[1],lt)){var r=arguments[0],i=arguments[1],o=arguments[2];this.addEdges(r,r),this.addEdges(i,i),this.computeIntersections(o)}else if("boolean"==typeof arguments[2]&&v(arguments[0],lt)&&arguments[1]instanceof fi){var a=arguments[0],s=arguments[1];arguments[2]?this.addEdges(a,null):this.addEdges(a),this.computeIntersections(s)}},e.prototype.addEdge=function(t,e){for(var n=t.getMonotoneChainEdge(),r=n.getStartIndexes(),i=0;i<r.length-1;i++){var o=new ui(n,i),a=new ci(e,n.getMinX(i),o);this.events.add(a),this.events.add(new ci(n.getMaxX(i),a))}},e.prototype.processOverlaps=function(t,e,n,r){for(var i=n.getObject(),o=t;o<e;o++){var a=this.events.get(o);if(a.isInsert()){var s=a.getObject();n.isSameLabel(a)||(i.computeIntersections(s,r),this.nOverlaps++)}}},e.prototype.addEdges=function(){if(1===arguments.length)for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.addEdge(e,e)}else if(2===arguments.length)for(var n=arguments[0],r=arguments[1],i=n.iterator();i.hasNext();){var o=i.next();this.addEdge(o,r)}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(hi),di=function(){this._min=o.POSITIVE_INFINITY,this._max=o.NEGATIVE_INFINITY},gi={NodeComparator:{configurable:!0}};di.prototype.getMin=function(){return this._min},di.prototype.intersects=function(t,e){return!(this._min>e||this._max<t)},di.prototype.getMax=function(){return this._max},di.prototype.toString=function(){return z.toLineString(new h(this._min,0),new h(this._max,0))},di.prototype.interfaces_=function(){return[]},di.prototype.getClass=function(){return di},gi.NodeComparator.get=function(){return yi},Object.defineProperties(di,gi);var yi=function(){};yi.prototype.compare=function(t,e){var n=t,r=e,i=(n._min+n._max)/2,o=(r._min+r._max)/2;return i<o?-1:i>o?1:0},yi.prototype.interfaces_=function(){return[c]},yi.prototype.getClass=function(){return yi};var vi=function(t){function e(){t.call(this),this._item=null;var e=arguments[0],n=arguments[1],r=arguments[2];this._min=e,this._max=n,this._item=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.query=function(t,e,n){if(!this.intersects(t,e))return null;n.visitItem(this._item)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(di),mi=function(t){function e(){t.call(this),this._node1=null,this._node2=null;var e=arguments[0],n=arguments[1];this._node1=e,this._node2=n,this.buildExtent(this._node1,this._node2)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.buildExtent=function(t,e){this._min=Math.min(t._min,e._min),this._max=Math.max(t._max,e._max)},e.prototype.query=function(t,e,n){if(!this.intersects(t,e))return null;null!==this._node1&&this._node1.query(t,e,n),null!==this._node2&&this._node2.query(t,e,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(di),_i=function(){this._leaves=new ft,this._root=null,this._level=0};_i.prototype.buildTree=function(){en.sort(this._leaves,new di.NodeComparator);for(var t=this._leaves,e=null,n=new ft;;){if(this.buildLevel(t,n),1===n.size())return n.get(0);e=t,t=n,n=e}},_i.prototype.insert=function(t,e,n){if(null!==this._root)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new vi(t,e,n))},_i.prototype.query=function(t,e,n){this.init(),this._root.query(t,e,n)},_i.prototype.buildRoot=function(){if(null!==this._root)return null;this._root=this.buildTree()},_i.prototype.printNode=function(t){L.out.println(z.toLineString(new h(t._min,this._level),new h(t._max,this._level)))},_i.prototype.init=function(){if(null!==this._root)return null;this.buildRoot()},_i.prototype.buildLevel=function(t,e){this._level++,e.clear();for(var n=0;n<t.size();n+=2){var r=t.get(n);if(null===(n+1<t.size()?t.get(n):null))e.add(r);else{var i=new mi(t.get(n),t.get(n+1));e.add(i)}}},_i.prototype.interfaces_=function(){return[]},_i.prototype.getClass=function(){return _i};var bi=function(){this._items=new ft};bi.prototype.visitItem=function(t){this._items.add(t)},bi.prototype.getItems=function(){return this._items},bi.prototype.interfaces_=function(){return[Ke]},bi.prototype.getClass=function(){return bi};var wi=function(){this._index=null;var t=arguments[0];if(!v(t,Qt))throw new i("Argument must be Polygonal");this._index=new Oi(t)},Ei={SegmentVisitor:{configurable:!0},IntervalIndexedGeometry:{configurable:!0}};wi.prototype.locate=function(t){var e=new Y(t),n=new xi(e);return this._index.query(t.y,t.y,n),e.getLocation()},wi.prototype.interfaces_=function(){return[Gn]},wi.prototype.getClass=function(){return wi},Ei.SegmentVisitor.get=function(){return xi},Ei.IntervalIndexedGeometry.get=function(){return Oi},Object.defineProperties(wi,Ei);var xi=function(){this._counter=null;var t=arguments[0];this._counter=t};xi.prototype.visitItem=function(t){var e=t;this._counter.countSegment(e.getCoordinate(0),e.getCoordinate(1))},xi.prototype.interfaces_=function(){return[Ke]},xi.prototype.getClass=function(){return xi};var Oi=function(){this._index=new _i;var t=arguments[0];this.init(t)};Oi.prototype.init=function(t){for(var e=Sr.getLines(t).iterator();e.hasNext();){var n=e.next().getCoordinates();this.addLine(n)}},Oi.prototype.addLine=function(t){for(var e=1;e<t.length;e++){var n=new vn(t[e-1],t[e]),r=Math.min(n.p0.y,n.p1.y),i=Math.max(n.p0.y,n.p1.y);this._index.insert(r,i,n)}},Oi.prototype.query=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=new bi;return this._index.query(t,e,n),n.getItems()}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];this._index.query(r,i,o)}},Oi.prototype.interfaces_=function(){return[]},Oi.prototype.getClass=function(){return Oi};var Mi=function(t){function e(){if(t.call(this),this._parentGeom=null,this._lineEdgeMap=new fe,this._boundaryNodeRule=null,this._useBoundaryDeterminationRule=!0,this._argIndex=null,this._boundaryNodes=null,this._hasTooFewPoints=!1,this._invalidPoint=null,this._areaPtLocator=null,this._ptLocator=new Pr,2===arguments.length){var e=arguments[0],n=arguments[1],r=et.OGC_SFS_BOUNDARY_RULE;this._argIndex=e,this._parentGeom=n,this._boundaryNodeRule=r,null!==n&&this.add(n)}else if(3===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2];this._argIndex=i,this._parentGeom=o,this._boundaryNodeRule=a,null!==o&&this.add(o)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.insertBoundaryPoint=function(t,n){var r=this._nodes.addNode(n).getLabel(),i=1;g.NONE;r.getLocation(t,Me.ON)===g.BOUNDARY&&i++;var o=e.determineBoundary(this._boundaryNodeRule,i);r.setLocation(t,o)},e.prototype.computeSelfNodes=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return this.computeSelfNodes(t,e,!1)}if(3===arguments.length){var n=arguments[0],r=arguments[1],i=arguments[2],o=new fi(n,!0,!1);o.setIsDoneIfProperInt(i);var a=this.createEdgeSetIntersector(),s=this._parentGeom instanceof ee||this._parentGeom instanceof $t||this._parentGeom instanceof ne,u=r||!s;return a.computeIntersections(this._edges,o,u),this.addSelfIntersectionNodes(this._argIndex),o}},e.prototype.computeSplitEdges=function(t){for(var e=this._edges.iterator();e.hasNext();){e.next().eiList.addSplitEdges(t)}},e.prototype.computeEdgeIntersections=function(t,e,n){var r=new fi(e,n,!0);return r.setBoundaryNodes(this.getBoundaryNodes(),t.getBoundaryNodes()),this.createEdgeSetIntersector().computeIntersections(this._edges,t._edges,r),r},e.prototype.getGeometry=function(){return this._parentGeom},e.prototype.getBoundaryNodeRule=function(){return this._boundaryNodeRule},e.prototype.hasTooFewPoints=function(){return this._hasTooFewPoints},e.prototype.addPoint=function(){if(arguments[0]instanceof Kt){var t=arguments[0].getCoordinate();this.insertPoint(this._argIndex,t,g.INTERIOR)}else if(arguments[0]instanceof h){var e=arguments[0];this.insertPoint(this._argIndex,e,g.INTERIOR)}},e.prototype.addPolygon=function(t){this.addPolygonRing(t.getExteriorRing(),g.EXTERIOR,g.INTERIOR);for(var e=0;e<t.getNumInteriorRing();e++){var n=t.getInteriorRingN(e);this.addPolygonRing(n,g.INTERIOR,g.EXTERIOR)}},e.prototype.addEdge=function(t){this.insertEdge(t);var e=t.getCoordinates();this.insertPoint(this._argIndex,e[0],g.BOUNDARY),this.insertPoint(this._argIndex,e[e.length-1],g.BOUNDARY)},e.prototype.addLineString=function(t){var e=gt.removeRepeatedPoints(t.getCoordinates());if(e.length<2)return this._hasTooFewPoints=!0,this._invalidPoint=e[0],null;var n=new ir(e,new ke(this._argIndex,g.INTERIOR));this._lineEdgeMap.put(t,n),this.insertEdge(n),G.isTrue(e.length>=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,e[0]),this.insertBoundaryPoint(this._argIndex,e[e.length-1])},e.prototype.getInvalidPoint=function(){return this._invalidPoint},e.prototype.getBoundaryPoints=function(){for(var t=this.getBoundaryNodes(),e=new Array(t.size()).fill(null),n=0,r=t.iterator();r.hasNext();){var i=r.next();e[n++]=i.getCoordinate().copy()}return e},e.prototype.getBoundaryNodes=function(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},e.prototype.addSelfIntersectionNode=function(t,e,n){if(this.isBoundaryNode(t,e))return null;n===g.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(t,e):this.insertPoint(t,e,n)},e.prototype.addPolygonRing=function(t,e,n){if(t.isEmpty())return null;var r=gt.removeRepeatedPoints(t.getCoordinates());if(r.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=r[0],null;var i=e,o=n;X.isCCW(r)&&(i=n,o=e);var a=new ir(r,new ke(this._argIndex,g.BOUNDARY,i,o));this._lineEdgeMap.put(t,a),this.insertEdge(a),this.insertPoint(this._argIndex,r[0],g.BOUNDARY)},e.prototype.insertPoint=function(t,e,n){var r=this._nodes.addNode(e),i=r.getLabel();null===i?r._label=new ke(t,n):i.setLocation(t,n)},e.prototype.createEdgeSetIntersector=function(){return new pi},e.prototype.addSelfIntersectionNodes=function(t){for(var e=this._edges.iterator();e.hasNext();)for(var n=e.next(),r=n.getLabel().getLocation(t),i=n.eiList.iterator();i.hasNext();){var o=i.next();this.addSelfIntersectionNode(t,o.coord,r)}},e.prototype.add=function(){if(1!==arguments.length)return t.prototype.add.apply(this,arguments);var e=arguments[0];if(e.isEmpty())return null;if(e instanceof ne&&(this._useBoundaryDeterminationRule=!1),e instanceof $t)this.addPolygon(e);else if(e instanceof Zt)this.addLineString(e);else if(e instanceof Kt)this.addPoint(e);else if(e instanceof te)this.addCollection(e);else if(e instanceof Gt)this.addCollection(e);else if(e instanceof ne)this.addCollection(e);else{if(!(e instanceof qt))throw new Error(e.getClass().getName());this.addCollection(e)}},e.prototype.addCollection=function(t){for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);this.add(n)}},e.prototype.locate=function(t){return v(this._parentGeom,Qt)&&this._parentGeom.getNumGeometries()>50?(null===this._areaPtLocator&&(this._areaPtLocator=new wi(this._parentGeom)),this._areaPtLocator.locate(t)):this._ptLocator.locate(t,this._parentGeom)},e.prototype.findEdge=function(){if(1===arguments.length){var e=arguments[0];return this._lineEdgeMap.get(e)}return t.prototype.findEdge.apply(this,arguments)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.determineBoundary=function(t,e){return t.isInBoundary(e)?g.BOUNDARY:g.INTERIOR},e}(He),Si=function(){if(this._li=new J,this._resultPrecisionModel=null,this._arg=null,1===arguments.length){var t=arguments[0];this.setComputationPrecision(t.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new Mi(0,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],r=et.OGC_SFS_BOUNDARY_RULE;e.getPrecisionModel().compareTo(n.getPrecisionModel())>=0?this.setComputationPrecision(e.getPrecisionModel()):this.setComputationPrecision(n.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Mi(0,e,r),this._arg[1]=new Mi(1,n,r)}else if(3===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2];i.getPrecisionModel().compareTo(o.getPrecisionModel())>=0?this.setComputationPrecision(i.getPrecisionModel()):this.setComputationPrecision(o.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Mi(0,i,a),this._arg[1]=new Mi(1,o,a)}};Si.prototype.getArgGeometry=function(t){return this._arg[t].getGeometry()},Si.prototype.setComputationPrecision=function(t){this._resultPrecisionModel=t,this._li.setPrecisionModel(this._resultPrecisionModel)},Si.prototype.interfaces_=function(){return[]},Si.prototype.getClass=function(){return Si};var Pi=function(){};Pi.prototype.interfaces_=function(){return[]},Pi.prototype.getClass=function(){return Pi},Pi.map=function(){if(arguments[0]instanceof K&&v(arguments[1],Pi.MapOp)){for(var t=arguments[0],e=arguments[1],n=new ft,r=0;r<t.getNumGeometries();r++){var i=e.map(t.getGeometryN(r));null!==i&&n.add(i)}return t.getFactory().buildGeometry(n)}if(v(arguments[0],st)&&v(arguments[1],Pi.MapOp)){for(var o=arguments[0],a=arguments[1],s=new ft,u=o.iterator();u.hasNext();){var c=u.next(),l=a.map(c);null!==l&&s.add(l)}return s}},Pi.MapOp=function(){};var Ci=function(t){function e(){var e=arguments[0],n=arguments[1];t.call(this,e,n),this._ptLocator=new Pr,this._geomFact=null,this._resultGeom=null,this._graph=null,this._edgeList=new Zn,this._resultPolyList=new ft,this._resultLineList=new ft,this._resultPointList=new ft,this._graph=new He(new Yn),this._geomFact=e.getFactory()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.insertUniqueEdge=function(t){var e=this._edgeList.findEqualEdge(t);if(null!==e){var n=e.getLabel(),r=t.getLabel();e.isPointwiseEqual(t)||(r=new ke(t.getLabel())).flip();var i=e.getDepth();i.isNull()&&i.add(n),i.add(r),n.merge(r)}else this._edgeList.add(t)},e.prototype.getGraph=function(){return this._graph},e.prototype.cancelDuplicateResultEdges=function(){for(var t=this._graph.getEdgeEnds().iterator();t.hasNext();){var e=t.next(),n=e.getSym();e.isInResult()&&n.isInResult()&&(e.setInResult(!1),n.setInResult(!1))}},e.prototype.isCoveredByLA=function(t){return!!this.isCovered(t,this._resultLineList)||!!this.isCovered(t,this._resultPolyList)},e.prototype.computeGeometry=function(t,n,r,i){var o=new ft;return o.addAll(t),o.addAll(n),o.addAll(r),o.isEmpty()?e.createEmptyResult(i,this._arg[0].getGeometry(),this._arg[1].getGeometry(),this._geomFact):this._geomFact.buildGeometry(o)},e.prototype.mergeSymLabels=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();){t.next().getEdges().mergeSymLabels()}},e.prototype.isCovered=function(t,e){for(var n=e.iterator();n.hasNext();){var r=n.next();if(this._ptLocator.locate(t,r)!==g.EXTERIOR)return!0}return!1},e.prototype.replaceCollapsedEdges=function(){for(var t=new ft,e=this._edgeList.iterator();e.hasNext();){var n=e.next();n.isCollapsed()&&(e.remove(),t.add(n.getCollapsedEdge()))}this._edgeList.addAll(t)},e.prototype.updateNodeLabelling=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();){var e=t.next(),n=e.getEdges().getLabel();e.getLabel().merge(n)}},e.prototype.getResultGeometry=function(t){return this.computeOverlay(t),this._resultGeom},e.prototype.insertUniqueEdges=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.insertUniqueEdge(n)}},e.prototype.computeOverlay=function(t){this.copyPoints(0),this.copyPoints(1),this._arg[0].computeSelfNodes(this._li,!1),this._arg[1].computeSelfNodes(this._li,!1),this._arg[0].computeEdgeIntersections(this._arg[1],this._li,!0);var e=new ft;this._arg[0].computeSplitEdges(e),this._arg[1].computeSplitEdges(e),this.insertUniqueEdges(e),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),Hr.checkValid(this._edgeList.getEdges()),this._graph.addEdges(this._edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(t),this.cancelDuplicateResultEdges();var n=new Ye(this._geomFact);n.add(this._graph),this._resultPolyList=n.getPolygons();var r=new Xr(this,this._geomFact,this._ptLocator);this._resultLineList=r.build(t);var i=new Zr(this,this._geomFact,this._ptLocator);this._resultPointList=i.build(t),this._resultGeom=this.computeGeometry(this._resultPointList,this._resultLineList,this._resultPolyList,t)},e.prototype.labelIncompleteNode=function(t,e){var n=this._ptLocator.locate(t.getCoordinate(),this._arg[e].getGeometry());t.getLabel().setLocation(e,n)},e.prototype.copyPoints=function(t){for(var e=this._arg[t].getNodeIterator();e.hasNext();){var n=e.next();this._graph.addNode(n.getCoordinate()).setLabel(t,n.getLabel().getLocation(t))}},e.prototype.findResultAreaEdges=function(t){for(var n=this._graph.getEdgeEnds().iterator();n.hasNext();){var r=n.next(),i=r.getLabel();i.isArea()&&!r.isInteriorAreaEdge()&&e.isResultOfOp(i.getLocation(0,Me.RIGHT),i.getLocation(1,Me.RIGHT),t)&&r.setInResult(!0)}},e.prototype.computeLabelsFromDepths=function(){for(var t=this._edgeList.iterator();t.hasNext();){var e=t.next(),n=e.getLabel(),r=e.getDepth();if(!r.isNull()){r.normalize();for(var i=0;i<2;i++)n.isNull(i)||!n.isArea()||r.isNull(i)||(0===r.getDelta(i)?n.toLine(i):(G.isTrue(!r.isNull(i,Me.LEFT),"depth of LEFT side has not been initialized"),n.setLocation(i,Me.LEFT,r.getLocation(i,Me.LEFT)),G.isTrue(!r.isNull(i,Me.RIGHT),"depth of RIGHT side has not been initialized"),n.setLocation(i,Me.RIGHT,r.getLocation(i,Me.RIGHT))))}}},e.prototype.computeLabelling=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();){t.next().getEdges().computeLabelling(this._arg)}this.mergeSymLabels(),this.updateNodeLabelling()},e.prototype.labelIncompleteNodes=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();){var e=t.next(),n=e.getLabel();e.isIsolated()&&(n.isNull(0)?this.labelIncompleteNode(e,0):this.labelIncompleteNode(e,1)),e.getEdges().updateLabelling(n)}},e.prototype.isCoveredByA=function(t){return!!this.isCovered(t,this._resultPolyList)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Si);Ci.overlayOp=function(t,e,n){return new Ci(t,e).getResultGeometry(n)},Ci.intersection=function(t,e){if(t.isEmpty()||e.isEmpty())return Ci.createEmptyResult(Ci.INTERSECTION,t,e,t.getFactory());if(t.isGeometryCollection()){var n=e;return Yr.map(t,{interfaces_:function(){return[Pi.MapOp]},map:function(t){return t.intersection(n)}})}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),si.overlayOp(t,e,Ci.INTERSECTION)},Ci.symDifference=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return Ci.createEmptyResult(Ci.SYMDIFFERENCE,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),si.overlayOp(t,e,Ci.SYMDIFFERENCE)},Ci.resultDimension=function(t,e,n){var r=e.getDimension(),i=n.getDimension(),o=-1;switch(t){case Ci.INTERSECTION:o=Math.min(r,i);break;case Ci.UNION:o=Math.max(r,i);break;case Ci.DIFFERENCE:o=r;break;case Ci.SYMDIFFERENCE:o=Math.max(r,i)}return o},Ci.createEmptyResult=function(t,e,n,r){var i=null;switch(Ci.resultDimension(t,e,n)){case-1:i=r.createGeometryCollection(new Array(0).fill(null));break;case 0:i=r.createPoint();break;case 1:i=r.createLineString();break;case 2:i=r.createPolygon()}return i},Ci.difference=function(t,e){return t.isEmpty()?Ci.createEmptyResult(Ci.DIFFERENCE,t,e,t.getFactory()):e.isEmpty()?t.copy():(t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),si.overlayOp(t,e,Ci.DIFFERENCE))},Ci.isResultOfOp=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=t.getLocation(0),r=t.getLocation(1);return Ci.isResultOfOp(n,r,e)}if(3===arguments.length){var i=arguments[0],o=arguments[1],a=arguments[2];switch(i===g.BOUNDARY&&(i=g.INTERIOR),o===g.BOUNDARY&&(o=g.INTERIOR),a){case Ci.INTERSECTION:return i===g.INTERIOR&&o===g.INTERIOR;case Ci.UNION:return i===g.INTERIOR||o===g.INTERIOR;case Ci.DIFFERENCE:return i===g.INTERIOR&&o!==g.INTERIOR;case Ci.SYMDIFFERENCE:return i===g.INTERIOR&&o!==g.INTERIOR||i!==g.INTERIOR&&o===g.INTERIOR}return!1}},Ci.INTERSECTION=1,Ci.UNION=2,Ci.DIFFERENCE=3,Ci.SYMDIFFERENCE=4;var Ti=function(){this._g=null,this._boundaryDistanceTolerance=null,this._linework=null,this._ptLocator=new Pr,this._seg=new vn;var t=arguments[0],e=arguments[1];this._g=t,this._boundaryDistanceTolerance=e,this._linework=this.extractLinework(t)};Ti.prototype.isWithinToleranceOfBoundary=function(t){for(var e=0;e<this._linework.getNumGeometries();e++)for(var n=this._linework.getGeometryN(e).getCoordinateSequence(),r=0;r<n.size()-1;r++){if(n.getCoordinate(r,this._seg.p0),n.getCoordinate(r+1,this._seg.p1),this._seg.distance(t)<=this._boundaryDistanceTolerance)return!0}return!1},Ti.prototype.getLocation=function(t){return this.isWithinToleranceOfBoundary(t)?g.BOUNDARY:this._ptLocator.locate(t,this._g)},Ti.prototype.extractLinework=function(t){var e=new Ii;t.apply(e);var n=e.getLinework(),r=ve.toLineStringArray(n);return t.getFactory().createMultiLineString(r)},Ti.prototype.interfaces_=function(){return[]},Ti.prototype.getClass=function(){return Ti};var Ii=function(){this._linework=null,this._linework=new ft};Ii.prototype.getLinework=function(){return this._linework},Ii.prototype.filter=function(t){if(t instanceof $t){var e=t;this._linework.add(e.getExteriorRing());for(var n=0;n<e.getNumInteriorRing();n++)this._linework.add(e.getInteriorRingN(n))}},Ii.prototype.interfaces_=function(){return[zt]},Ii.prototype.getClass=function(){return Ii};var Li=function(){this._g=null,this._doLeft=!0,this._doRight=!0;var t=arguments[0];this._g=t};Li.prototype.extractPoints=function(t,e,n){for(var r=t.getCoordinates(),i=0;i<r.length-1;i++)this.computeOffsetPoints(r[i],r[i+1],e,n)},Li.prototype.setSidesToGenerate=function(t,e){this._doLeft=t,this._doRight=e},Li.prototype.getPoints=function(t){for(var e=new ft,n=Sr.getLines(this._g).iterator();n.hasNext();){var r=n.next();this.extractPoints(r,t,e)}return e},Li.prototype.computeOffsetPoints=function(t,e,n,r){var i=e.x-t.x,o=e.y-t.y,a=Math.sqrt(i*i+o*o),s=n*i/a,u=n*o/a,c=(e.x+t.x)/2,l=(e.y+t.y)/2;if(this._doLeft){var f=new h(c-u,l+s);r.add(f)}if(this._doRight){var p=new h(c+u,l-s);r.add(p)}},Li.prototype.interfaces_=function(){return[]},Li.prototype.getClass=function(){return Li};var Ai=function t(){this._geom=null,this._locFinder=null,this._location=new Array(3).fill(null),this._invalidLocation=null,this._boundaryDistanceTolerance=t.TOLERANCE,this._testCoords=new ft;var e=arguments[0],n=arguments[1],r=arguments[2];this._boundaryDistanceTolerance=t.computeBoundaryDistanceTolerance(e,n),this._geom=[e,n,r],this._locFinder=[new Ti(this._geom[0],this._boundaryDistanceTolerance),new Ti(this._geom[1],this._boundaryDistanceTolerance),new Ti(this._geom[2],this._boundaryDistanceTolerance)]},Ni={TOLERANCE:{configurable:!0}};Ai.prototype.reportResult=function(t,e,n){L.out.println("Overlay result invalid - A:"+g.toLocationSymbol(e[0])+" B:"+g.toLocationSymbol(e[1])+" expected:"+(n?"i":"e")+" actual:"+g.toLocationSymbol(e[2]))},Ai.prototype.isValid=function(t){this.addTestPts(this._geom[0]),this.addTestPts(this._geom[1]);var e=this.checkValid(t);return e},Ai.prototype.checkValid=function(){if(1===arguments.length){for(var t=arguments[0],e=0;e<this._testCoords.size();e++){var n=this._testCoords.get(e);if(!this.checkValid(t,n))return this._invalidLocation=n,!1}return!0}if(2===arguments.length){var r=arguments[0],i=arguments[1];return this._location[0]=this._locFinder[0].getLocation(i),this._location[1]=this._locFinder[1].getLocation(i),this._location[2]=this._locFinder[2].getLocation(i),!!Ai.hasLocation(this._location,g.BOUNDARY)||this.isValidResult(r,this._location)}},Ai.prototype.addTestPts=function(t){var e=new Li(t);this._testCoords.addAll(e.getPoints(5*this._boundaryDistanceTolerance))},Ai.prototype.isValidResult=function(t,e){var n=Ci.isResultOfOp(e[0],e[1],t),r=!(n^e[2]===g.INTERIOR);return r||this.reportResult(t,e,n),r},Ai.prototype.getInvalidLocation=function(){return this._invalidLocation},Ai.prototype.interfaces_=function(){return[]},Ai.prototype.getClass=function(){return Ai},Ai.hasLocation=function(t,e){for(var n=0;n<3;n++)if(t[n]===e)return!0;return!1},Ai.computeBoundaryDistanceTolerance=function(t,e){return Math.min(Qr.computeSizeBasedSnapTolerance(t),Qr.computeSizeBasedSnapTolerance(e))},Ai.isValid=function(t,e,n,r){return new Ai(t,e,r).isValid(n)},Ni.TOLERANCE.get=function(){return 1e-6},Object.defineProperties(Ai,Ni);var ki=function t(e){this._geomFactory=null,this._skipEmpty=!1,this._inputGeoms=null,this._geomFactory=t.extractFactory(e),this._inputGeoms=e};ki.prototype.extractElements=function(t,e){if(null===t)return null;for(var n=0;n<t.getNumGeometries();n++){var r=t.getGeometryN(n);this._skipEmpty&&r.isEmpty()||e.add(r)}},ki.prototype.combine=function(){for(var t=new ft,e=this._inputGeoms.iterator();e.hasNext();){var n=e.next();this.extractElements(n,t)}return 0===t.size()?null!==this._geomFactory?this._geomFactory.createGeometryCollection(null):null:this._geomFactory.buildGeometry(t)},ki.prototype.interfaces_=function(){return[]},ki.prototype.getClass=function(){return ki},ki.combine=function(){if(1===arguments.length){var t=arguments[0];return new ki(t).combine()}if(2===arguments.length){var e=arguments[0],n=arguments[1];return new ki(ki.createList(e,n)).combine()}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2];return new ki(ki.createList(r,i,o)).combine()}},ki.extractFactory=function(t){return t.isEmpty()?null:t.iterator().next().getFactory()},ki.createList=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=new ft;return n.add(t),n.add(e),n}if(3===arguments.length){var r=arguments[0],i=arguments[1],o=arguments[2],a=new ft;return a.add(r),a.add(i),a.add(o),a}};var ji=function(){this._inputPolys=null,this._geomFactory=null;var t=arguments[0];this._inputPolys=t,null===this._inputPolys&&(this._inputPolys=new ft)},Ri={STRTREE_NODE_CAPACITY:{configurable:!0}};ji.prototype.reduceToGeometries=function(t){for(var e=new ft,n=t.iterator();n.hasNext();){var r=n.next(),i=null;v(r,lt)?i=this.unionTree(r):r instanceof K&&(i=r),e.add(i)}return e},ji.prototype.extractByEnvelope=function(t,e,n){for(var r=new ft,i=0;i<e.getNumGeometries();i++){var o=e.getGeometryN(i);o.getEnvelopeInternal().intersects(t)?r.add(o):n.add(o)}return this._geomFactory.buildGeometry(r)},ji.prototype.unionOptimized=function(t,e){var n=t.getEnvelopeInternal(),r=e.getEnvelopeInternal();if(!n.intersects(r))return ki.combine(t,e);if(t.getNumGeometries()<=1&&e.getNumGeometries()<=1)return this.unionActual(t,e);var i=n.intersection(r);return this.unionUsingEnvelopeIntersection(t,e,i)},ji.prototype.union=function(){if(null===this._inputPolys)throw new Error("union() method cannot be called twice");if(this._inputPolys.isEmpty())return null;this._geomFactory=this._inputPolys.iterator().next().getFactory();for(var t=new un(ji.STRTREE_NODE_CAPACITY),e=this._inputPolys.iterator();e.hasNext();){var n=e.next();t.insert(n.getEnvelopeInternal(),n)}this._inputPolys=null;var r=t.itemsTree();return this.unionTree(r)},ji.prototype.binaryUnion=function(){if(1===arguments.length){var t=arguments[0];return this.binaryUnion(t,0,t.size())}if(3===arguments.length){var e=arguments[0],n=arguments[1],r=arguments[2];if(r-n<=1){var i=ji.getGeometry(e,n);return this.unionSafe(i,null)}if(r-n==2)return this.unionSafe(ji.getGeometry(e,n),ji.getGeometry(e,n+1));var o=Math.trunc((r+n)/2),a=this.binaryUnion(e,n,o),s=this.binaryUnion(e,o,r);return this.unionSafe(a,s)}},ji.prototype.repeatedUnion=function(t){for(var e=null,n=t.iterator();n.hasNext();){var r=n.next();e=null===e?r.copy():e.union(r)}return e},ji.prototype.unionSafe=function(t,e){return null===t&&null===e?null:null===t?e.copy():null===e?t.copy():this.unionOptimized(t,e)},ji.prototype.unionActual=function(t,e){return ji.restrictToPolygons(t.union(e))},ji.prototype.unionTree=function(t){var e=this.reduceToGeometries(t);return this.binaryUnion(e)},ji.prototype.unionUsingEnvelopeIntersection=function(t,e,n){var r=new ft,i=this.extractByEnvelope(n,t,r),o=this.extractByEnvelope(n,e,r),a=this.unionActual(i,o);return r.add(a),ki.combine(r)},ji.prototype.bufferUnion=function(){if(1===arguments.length){var t=arguments[0];return t.get(0).getFactory().buildGeometry(t).buffer(0)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e.getFactory().createGeometryCollection([e,n]).buffer(0)}},ji.prototype.interfaces_=function(){return[]},ji.prototype.getClass=function(){return ji},ji.restrictToPolygons=function(t){if(v(t,Qt))return t;var e=Mr.getPolygons(t);return 1===e.size()?e.get(0):t.getFactory().createMultiPolygon(ve.toPolygonArray(e))},ji.getGeometry=function(t,e){return e>=t.size()?null:t.get(e)},ji.union=function(t){return new ji(t).union()},Ri.STRTREE_NODE_CAPACITY.get=function(){return 4},Object.defineProperties(ji,Ri);var Di=function(){};Di.prototype.interfaces_=function(){return[]},Di.prototype.getClass=function(){return Di},Di.union=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return Ci.createEmptyResult(Ci.UNION,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),si.overlayOp(t,e,Ci.UNION)}},function(t,e,n){"use strict";n(155),n(320),n(321),n(156),n(88),n(340),n(174),n(341),n(342),n(175),n(343),n(177),n(353),n(354);var r=n(355);n.d(e,"a",function(){return r.a});n(356),n(92),n(357),n(179),n(358),n(359),n(17),n(95),n(360),n(361),n(362),n(363),n(62),n(29),n(63)},function(t,e,n){"use strict";var r=n(36);n(155),n(48),n(3),n(29),Object(r.a)()},function(t,e,n){"use strict";var r,i,o,a,s,u,c,l,h,f=n(3),p=n(24),d=(n(29),{sphere:p.a,point:g,lineStart:v,lineEnd:b,polygonStart:function(){d.lineStart=w,d.lineEnd=E},polygonEnd:function(){d.lineStart=v,d.lineEnd=b}});function g(t,e){t*=f.r,e*=f.r;var n=Object(f.g)(e);y(n*Object(f.g)(t),n*Object(f.t)(t),Object(f.t)(e))}function y(t,e,n){i+=(t-i)/++r,o+=(e-o)/r,a+=(n-a)/r}function v(){d.point=m}function m(t,e){t*=f.r,e*=f.r;var n=Object(f.g)(e);c=n*Object(f.g)(t),l=n*Object(f.t)(t),h=Object(f.t)(e),d.point=_,y(c,l,h)}function _(t,e){t*=f.r,e*=f.r;var n=Object(f.g)(e),r=n*Object(f.g)(t),i=n*Object(f.t)(t),o=Object(f.t)(e),a=Object(f.e)(Object(f.u)((a=l*o-h*i)*a+(a=h*r-c*o)*a+(a=c*i-l*r)*a),c*r+l*i+h*o);a,a*(c+(c=r)),a*(l+(l=i)),a*(h+(h=o)),y(c,l,h)}function b(){d.point=g}function w(){d.point=x}function E(){O(s,u),d.point=g}function x(t,e){s=t,u=e,t*=f.r,e*=f.r,d.point=O;var n=Object(f.g)(e);c=n*Object(f.g)(t),l=n*Object(f.t)(t),h=Object(f.t)(e),y(c,l,h)}function O(t,e){t*=f.r,e*=f.r;var n=Object(f.g)(e),r=n*Object(f.g)(t),i=n*Object(f.t)(t),o=Object(f.t)(e),a=l*o-h*i,s=h*r-c*o,u=c*i-l*r,p=Object(f.u)(a*a+s*s+u*u),d=Object(f.c)(p),g=p&&-d/p;g*a,g*s,g*u,d,d*(c+(c=r)),d*(l+(l=i)),d*(h+(h=o)),y(c,l,h)}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t,e,n,r,i,o){var a,s=t[0],u=t[1],c=0,l=1,h=e[0]-s,f=e[1]-u;if(a=n-s,h||!(a>0)){if(a/=h,h<0){if(a<c)return;a<l&&(l=a)}else if(h>0){if(a>l)return;a>c&&(c=a)}if(a=i-s,h||!(a<0)){if(a/=h,h<0){if(a>l)return;a>c&&(c=a)}else if(h>0){if(a<c)return;a<l&&(l=a)}if(a=r-u,f||!(a>0)){if(a/=f,f<0){if(a<c)return;a<l&&(l=a)}else if(f>0){if(a>l)return;a>c&&(c=a)}if(a=o-u,f||!(a<0)){if(a/=f,f<0){if(a>l)return;a>c&&(c=a)}else if(f>0){if(a<c)return;a<l&&(l=a)}return c>0&&(t[0]=s+c*h,t[1]=u+c*f),l<1&&(e[0]=s+l*h,e[1]=u+l*f),!0}}}}}},function(t,e,n){"use strict";n(163)},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(167),n(161),n(327),n(166),n(328),n(168),n(169),n(170)},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";n(167),n(37),n(49),n(90)},function(t,e,n){"use strict";n(164)},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(49)},function(t,e,n){"use strict";n(37),n(49),n(90)},function(t,e,n){"use strict";e.a=function(t){for(var e,n,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(n=new Array(a);--i>=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n}},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(37)},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(172)},function(t,e,n){"use strict";n(173),n(174),n(3)},function(t,e,n){"use strict";n(89),n(3)},function(t,e,n){"use strict";n(3)},function(t,e,n){"use strict";n(91),n(29),n(344),n(176),n(345),n(346),n(347),n(348)},function(t,e,n){"use strict";var r,i,o,a,s=n(36),u=n(3),c=n(24),l=Object(s.a)(),h=Object(s.a)(),f={point:c.a,lineStart:c.a,lineEnd:c.a,polygonStart:function(){f.lineStart=p,f.lineEnd=y},polygonEnd:function(){f.lineStart=f.lineEnd=f.point=c.a,l.add(Object(u.a)(h)),h.reset()},result:function(){var t=l/2;return l.reset(),t}};function p(){f.point=d}function d(t,e){f.point=g,r=o=t,i=a=e}function g(t,e){h.add(a*t-o*e),o=t,a=e}function y(){g(r,i)}e.a=f},function(t,e,n){"use strict";var r,i,o,a,s=n(3),u=0,c=0,l=0,h=0,f=0,p=0,d=0,g=0,y=0,v={point:m,lineStart:_,lineEnd:E,polygonStart:function(){v.lineStart=x,v.lineEnd=O},polygonEnd:function(){v.point=m,v.lineStart=_,v.lineEnd=E},result:function(){var t=y?[d/y,g/y]:p?[h/p,f/p]:l?[u/l,c/l]:[NaN,NaN];return u=c=l=h=f=p=d=g=y=0,t}};function m(t,e){u+=t,c+=e,++l}function _(){v.point=b}function b(t,e){v.point=w,m(o=t,a=e)}function w(t,e){var n=t-o,r=e-a,i=Object(s.u)(n*n+r*r);h+=i*(o+t)/2,f+=i*(a+e)/2,p+=i,m(o=t,a=e)}function E(){v.point=m}function x(){v.point=M}function O(){S(r,i)}function M(t,e){v.point=S,m(r=o=t,i=a=e)}function S(t,e){var n=t-o,r=e-a,i=Object(s.u)(n*n+r*r);h+=i*(o+t)/2,f+=i*(a+e)/2,p+=i,d+=(i=a*t-o*e)*(o+t),g+=i*(a+e),y+=3*i,m(o=t,a=e)}e.a=v},function(t,e,n){"use strict";e.a=o;var r=n(3),i=n(24);function o(t){this._context=t}o.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,r.w)}},result:i.a}},function(t,e,n){"use strict";var r,i,o,a,s,u=n(36),c=n(3),l=n(24),h=Object(u.a)(),f={point:l.a,lineStart:function(){f.point=p},lineEnd:function(){r&&d(i,o),f.point=l.a},polygonStart:function(){r=!0},polygonEnd:function(){r=null},result:function(){var t=+h;return h.reset(),t}};function p(t,e){f.point=d,i=a=t,o=s=e}function d(t,e){a-=t,s-=e,h.add(Object(c.u)(a*a+s*s)),a=t,s=e}e.a=f},function(t,e,n){"use strict";function r(){this._string=[]}function i(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}e.a=r,r.prototype={_radius:4.5,_circle:i(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=i(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}}},function(t,e,n){"use strict";var r=n(178),i=n(3);e.a=Object(r.a)(function(){return!0},function(t){var e,n=NaN,r=NaN,o=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,s){var u=a>0?i.o:-i.o,c=Object(i.a)(a-n);Object(i.a)(c-i.o)<i.i?(t.point(n,r=(r+s)/2>0?i.l:-i.l),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(a,r),e=0):o!==u&&c>=i.o&&(Object(i.a)(n-o)<i.i&&(n-=o*i.i),Object(i.a)(a-u)<i.i&&(a-=u*i.i),r=function(t,e,n,r){var o,a,s=Object(i.t)(t-n);return Object(i.a)(s)>i.i?Object(i.d)((Object(i.t)(e)*(a=Object(i.g)(r))*Object(i.t)(n)-Object(i.t)(r)*(o=Object(i.g)(e))*Object(i.t)(t))/(o*a*s)):(e+r)/2}(n,r,a,s),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=a,r=s),o=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var o;if(null==t)o=n*i.l,r.point(-i.o,o),r.point(0,o),r.point(i.o,o),r.point(i.o,0),r.point(i.o,-o),r.point(0,-o),r.point(-i.o,-o),r.point(-i.o,0),r.point(-i.o,o);else if(Object(i.a)(t[0]-e[0])>i.i){var a=t[0]<e[0]?i.o:-i.o;o=n*a/2,r.point(-a,o),r.point(0,o),r.point(a,o)}else r.point(e[0],e[1])},[-i.o,-i.l])},function(t,e,n){"use strict";var r=n(48),i=n(156),o=n(3),a=n(160),s=n(178);e.a=function(t,e){var n=Object(o.g)(t),u=n>0,c=Object(o.a)(n)>o.i;function l(t,e){return Object(o.g)(t)*Object(o.g)(e)>n}function h(t,e,i){var a=Object(r.a)(t),s=Object(r.a)(e),u=[1,0,0],c=Object(r.c)(a,s),l=Object(r.d)(c,c),h=c[0],f=l-h*h;if(!f)return!i&&t;var p=n*l/f,d=-n*h/f,g=Object(r.c)(u,c),y=Object(r.f)(u,p),v=Object(r.f)(c,d);Object(r.b)(y,v);var m=g,_=Object(r.d)(y,m),b=Object(r.d)(m,m),w=_*_-b*(Object(r.d)(y,y)-1);if(!(w<0)){var E=Object(o.u)(w),x=Object(r.f)(m,(-_-E)/b);if(Object(r.b)(x,y),x=Object(r.g)(x),!i)return x;var O,M=t[0],S=e[0],P=t[1],C=e[1];S<M&&(O=M,M=S,S=O);var T=S-M,I=Object(o.a)(T-o.o)<o.i,L=I||T<o.i;if(!I&&C<P&&(O=P,P=C,C=O),L?I?P+C>0^x[1]<(Object(o.a)(x[0]-M)<o.i?P:C):P<=x[1]&&x[1]<=C:T>o.o^(M<=x[0]&&x[0]<=S)){var A=Object(r.f)(m,(-_+E)/b);return Object(r.b)(A,y),[x,Object(r.g)(A)]}}}function f(e,n){var r=u?t:o.o-t,i=0;return e<-r?i|=1:e>r&&(i|=2),n<-r?i|=4:n>r&&(i|=8),i}return Object(s.a)(l,function(t){var e,n,r,i,s;return{lineStart:function(){i=r=!1,s=1},point:function(p,d){var g,y=[p,d],v=l(p,d),m=u?v?0:f(p,d):v?f(p+(p<0?o.o:-o.o),d):0;if(!e&&(i=r=v)&&t.lineStart(),v!==r&&(!(g=h(e,y))||Object(a.a)(e,g)||Object(a.a)(y,g))&&(y[0]+=o.i,y[1]+=o.i,v=l(y[0],y[1])),v!==r)s=0,v?(t.lineStart(),g=h(y,e),t.point(g[0],g[1])):(g=h(e,y),t.point(g[0],g[1]),t.lineEnd()),e=g;else if(c&&e&&u^v){var _;m&n||!(_=h(y,e,!0))||(s=0,u?(t.lineStart(),t.point(_[0][0],_[0][1]),t.point(_[1][0],_[1][1]),t.lineEnd()):(t.point(_[1][0],_[1][1]),t.lineEnd(),t.lineStart(),t.point(_[0][0],_[0][1])))}!v||e&&Object(a.a)(e,y)||t.point(y[0],y[1]),e=y,r=v,n=m},lineEnd:function(){r&&t.lineEnd(),e=null},clean:function(){return s|(i&&r)<<1}}},function(n,r,o,a){Object(i.a)(a,t,e,o,n,r)},u?[0,-t]:[-o.o,t-o.o])}},function(t,e,n){"use strict";var r=n(48),i=n(3),o=n(63),a=16,s=Object(i.g)(30*i.r);e.a=function(t,e){return+e?function(t,e){function n(r,o,a,u,c,l,h,f,p,d,g,y,v,m){var _=h-r,b=f-o,w=_*_+b*b;if(w>4*e&&v--){var E=u+d,x=c+g,O=l+y,M=Object(i.u)(E*E+x*x+O*O),S=Object(i.c)(O/=M),P=Object(i.a)(Object(i.a)(O)-1)<i.i||Object(i.a)(a-p)<i.i?(a+p)/2:Object(i.e)(x,E),C=t(P,S),T=C[0],I=C[1],L=T-r,A=I-o,N=b*L-_*A;(N*N/w>e||Object(i.a)((_*L+b*A)/w-.5)>.3||u*d+c*g+l*y<s)&&(n(r,o,a,u,c,l,T,I,P,E/=M,x/=M,O,v,m),m.point(T,I),n(T,I,P,E,x,O,h,f,p,d,g,y,v,m))}}return function(e){var i,o,s,u,c,l,h,f,p,d,g,y,v={point:m,lineStart:_,lineEnd:w,polygonStart:function(){e.polygonStart(),v.lineStart=E},polygonEnd:function(){e.polygonEnd(),v.lineStart=_}};function m(n,r){n=t(n,r),e.point(n[0],n[1])}function _(){f=NaN,v.point=b,e.lineStart()}function b(i,o){var s=Object(r.a)([i,o]),u=t(i,o);n(f,p,h,d,g,y,f=u[0],p=u[1],h=i,d=s[0],g=s[1],y=s[2],a,e),e.point(f,p)}function w(){v.point=m,e.lineEnd()}function E(){_(),v.point=x,v.lineEnd=O}function x(t,e){b(i=t,e),o=f,s=p,u=d,c=g,l=y,v.point=b}function O(){n(f,p,h,d,g,y,o,s,i,u,c,l,a,e),v.lineEnd=w,w()}return v}}(t,e):function(t){return Object(o.a)({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)}},function(t,e,n){"use strict";e.a=function(t){var e=Object(r.g)(t);function n(t,n){return[t*e,Object(r.t)(n)/e]}return n.invert=function(t,n){return[t/e,Object(r.c)(n*e)]},n};var r=n(3)},function(t,e,n){"use strict";n(3),n(177),n(92),n(94)},function(t,e,n){"use strict";var r=n(3),i=n(50),o=(n(17),Object(i.b)(function(t){return Object(r.u)(2/(1+t))}));o.invert=Object(i.a)(function(t){return 2*Object(r.c)(t/2)})},function(t,e,n){"use strict";var r=n(3),i=n(50),o=n(17),a=Object(i.b)(function(t){return(t=Object(r.b)(t))&&t/Object(r.t)(t)});a.invert=Object(i.a)(function(t){return t}),e.a=function(){return Object(o.a)(a).scale(79.4188).clipAngle(179.999)}},function(t,e,n){"use strict";n(3),n(93),n(95)},function(t,e,n){"use strict";n(3),n(93),n(179)},function(t,e,n){"use strict";var r=n(3),i=n(50);n(17);function o(t,e){var n=Object(r.g)(e),i=Object(r.g)(t)*n;return[n*Object(r.t)(t)/i,Object(r.t)(e)/i]}o.invert=Object(i.a)(r.d)},function(t,e,n){"use strict";n(88),n(91),n(63),n(94)},function(t,e,n){"use strict";n(17);var r=n(3);function i(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}i.invert=function(t,e){var n,i=e,o=25;do{var a=i*i,s=a*a;i-=n=(i*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-e)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(Object(r.a)(n)>r.i&&--o>0);return[t/(.8707+(a=i*i)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),i]}},function(t,e,n){"use strict";var r=n(3),i=n(50);n(17);function o(t,e){return[Object(r.g)(e)*Object(r.t)(t),Object(r.t)(e)]}o.invert=Object(i.a)(r.c)},function(t,e,n){"use strict";var r=n(3),i=n(50);n(17);function o(t,e){var n=Object(r.g)(e),i=1+Object(r.g)(t)*n;return[n*Object(r.t)(t)/i,Object(r.t)(e)/i]}o.invert=Object(i.a)(function(t){return 2*Object(r.d)(t)})},function(t,e,n){"use strict";var r=n(3);n(95);function i(t,e){return[Object(r.n)(Object(r.v)((r.l+e)/2)),-t]}i.invert=function(t,e){return[-e,2*Object(r.d)(Object(r.k)(t))-r.l]}},function(t,e,n){"use strict";var r=n(47),i=n(2),o=n(0);e.a=function(t,e,n){void 0===n&&(n={});var a=Object(i.getGeom)(t),s=Object(i.getGeom)(e),u=r.a.union(a.coordinates,s.coordinates);return 0===u.length?null:1===u.length?Object(o.polygon)(u[0],n.properties):Object(o.multiPolygon)(u,n.properties)}},function(t,e,n){"use strict";var r=n(0),i=n(2),o=n(1),a=n(126),s=n(47);e.a=function(t,e){if(e=e||{},!Object(r.isObject)(e))throw new Error("options is invalid");var n=e.propertyName;Object(i.collectionOf)(t,"Polygon","dissolve");var u=[];if(!e.propertyName)return Object(a.a)(Object(r.multiPolygon)(s.a.union.apply(null,t.features.map(function(t){return t.geometry.coordinates}))));var c={};Object(o.featureEach)(t,function(t){Object.prototype.hasOwnProperty.call(c,t.properties[n])||(c[t.properties[n]]=[]),c[t.properties[n]].push(t)});for(var l=Object.keys(c),h=0;h<l.length;h++){var f=Object(r.multiPolygon)(s.a.union.apply(null,c[l[h]].map(function(t){return t.geometry.coordinates})));f.properties[n]=l[h],u.push(f)}return Object(a.a)(Object(r.featureCollection)(u))}},function(t,e,n){"use strict";var r=n(0),i=n(47);function o(t){return Object(r.multiPolygon)(t)}e.a=function(t,e){var n,a=function(t){var e=t&&t.geometry.coordinates||[[[180,90],[-180,90],[-180,-90],[180,-90],[180,90]]];return Object(r.polygon)(e)}(e),s=null;return s="FeatureCollection"===t.type?o(2===(n=t).features.length?i.a.union(n.features[0].geometry.coordinates,n.features[1].geometry.coordinates):i.a.union.apply(i.a,n.features.map(function(t){return t.geometry.coordinates}))):o(i.a.union(t.geometry.coordinates)),s.geometry.coordinates.forEach(function(t){a.geometry.coordinates.push(t[0])}),a}},function(t,e,n){"use strict";var r=n(145),i=n(8),o=n(0);e.a=function(t,e,n,a){void 0===a&&(a={});for(var s=[],u=t[0],c=t[1],l=t[2],h=t[3],f=e/Object(i.a)([u,c],[l,c],a)*(l-u),p=n/Object(i.a)([u,c],[u,h],a)*(h-c),d=l-u,g=h-c,y=Math.floor(d/f),v=Math.floor(g/p),m=(g-v*p)/2,_=u+(d-y*f)/2,b=0;b<y;b++){for(var w=c+m,E=0;E<v;E++){var x=Object(o.polygon)([[[_,w],[_,w+p],[_+f,w+p],[_+f,w],[_,w]]],a.properties);a.mask?Object(r.a)(a.mask,x)&&s.push(x):s.push(x),w+=p}_+=f}return Object(o.featureCollection)(s)}},function(t,e,n){"use strict";var r=n(10),i=n(180),o=n(123),a=n(8),s=n(28),u=n(181),c=n(182),l=n(9),h=n(0),f=n(1),p=n(2);e.a=function(t,e,n){if("object"!=typeof(n=n||{}))throw new Error("options is invalid");var d=n.gridType,g=n.property,y=n.weight;if(!t)throw new Error("points is required");if(Object(p.collectionOf)(t,"Point","input must contain Points"),!e)throw new Error("cellSize is required");if(void 0!==y&&"number"!=typeof y)throw new Error("weight must be a number");g=g||"elevation",d=d||"square",y=y||1;var v,m=Object(r.default)(t);switch(d){case"point":case"points":v=Object(o.a)(m,e,n);break;case"square":case"squares":v=Object(u.a)(m,e,n);break;case"hex":case"hexes":v=Object(i.a)(m,e,n);break;case"triangle":case"triangles":v=Object(c.a)(m,e,n);break;default:throw new Error("invalid gridType")}var _=[];return Object(f.featureEach)(v,function(e){var r=0,i=0;Object(f.featureEach)(t,function(t){var o,u="point"===d?e:Object(s.a)(e),c=Object(a.a)(u,t,n);if(void 0!==g&&(o=t.properties[g]),void 0===o&&(o=t.geometry.coordinates[2]),void 0===o)throw new Error("zValue is missing");0===c&&(r=o);var l=1/Math.pow(c,y);i+=l,r+=l*o});var o=Object(l.a)(e);o.properties[g]=r/i,_.push(o)}),Object(h.featureCollection)(_)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},i={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},o=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],a={CSS:{},springs:{}};function s(t,e,n){return Math.min(Math.max(t,e),n)}function u(t,e){return t.indexOf(e)>-1}function c(t,e){return t.apply(null,e)}var l={arr:function(t){return Array.isArray(t)},obj:function(t){return u(Object.prototype.toString.call(t),"Object")},pth:function(t){return l.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||l.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},nil:function(t){return l.und(t)||null===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return l.hex(t)||l.rgb(t)||l.hsl(t)},key:function(t){return!r.hasOwnProperty(t)&&!i.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function h(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map(function(t){return parseFloat(t)}):[]}function f(t,e){var n=h(t),r=s(l.und(n[0])?1:n[0],.1,100),i=s(l.und(n[1])?100:n[1],.1,100),o=s(l.und(n[2])?10:n[2],.1,100),u=s(l.und(n[3])?0:n[3],.1,100),c=Math.sqrt(i/r),f=o/(2*Math.sqrt(i*r)),p=f<1?c*Math.sqrt(1-f*f):0,d=1,g=f<1?(f*c-u)/p:-u+c;function y(t){var n=e?e*t/1e3:t;return n=f<1?Math.exp(-n*f*c)*(d*Math.cos(p*n)+g*Math.sin(p*n)):(d+g*n)*Math.exp(-n*c),0===t||1===t?t:1-n}return e?y:function(){var e=a.springs[t];if(e)return e;for(var n=0,r=0;;)if(1===y(n+=1/6)){if(++r>=16)break}else r=0;var i=n*(1/6)*1e3;return a.springs[t]=i,i}}function p(t){return void 0===t&&(t=10),function(e){return Math.ceil(s(e,1e-6,1)*t)*(1/t)}}var d,g,y=function(){var t=11,e=1/(t-1);function n(t,e){return 1-3*e+3*t}function r(t,e){return 3*e-6*t}function i(t){return 3*t}function o(t,e,o){return((n(e,o)*t+r(e,o))*t+i(e))*t}function a(t,e,o){return 3*n(e,o)*t*t+2*r(e,o)*t+i(e)}return function(n,r,i,s){if(0<=n&&n<=1&&0<=i&&i<=1){var u=new Float32Array(t);if(n!==r||i!==s)for(var c=0;c<t;++c)u[c]=o(c*e,n,i);return function(t){return n===r&&i===s?t:0===t||1===t?t:o(l(t),r,s)}}function l(r){for(var s=0,c=1,l=t-1;c!==l&&u[c]<=r;++c)s+=e;var h=s+(r-u[--c])/(u[c+1]-u[c])*e,f=a(h,n,i);return f>=.001?function(t,e,n,r){for(var i=0;i<4;++i){var s=a(e,n,r);if(0===s)return e;e-=(o(e,n,r)-t)/s}return e}(r,h,n,i):0===f?h:function(t,e,n,r,i){var a,s,u=0;do{(a=o(s=e+(n-e)/2,r,i)-t)>0?n=s:e=s}while(Math.abs(a)>1e-7&&++u<10);return s}(r,s,s+e,n,i)}}}(),v=(d={linear:function(){return function(t){return t}}},g={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(t,e){void 0===t&&(t=1),void 0===e&&(e=.5);var n=s(t,1,10),r=s(e,.1,2);return function(t){return 0===t||1===t?t:-n*Math.pow(2,10*(t-1))*Math.sin((t-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach(function(t,e){g[t]=function(){return function(t){return Math.pow(t,e+2)}}}),Object.keys(g).forEach(function(t){var e=g[t];d["easeIn"+t]=e,d["easeOut"+t]=function(t,n){return function(r){return 1-e(t,n)(1-r)}},d["easeInOut"+t]=function(t,n){return function(r){return r<.5?e(t,n)(2*r)/2:1-e(t,n)(-2*r+2)/2}},d["easeOutIn"+t]=function(t,n){return function(r){return r<.5?(1-e(t,n)(1-2*r))/2:(e(t,n)(2*r-1)+1)/2}}}),d);function m(t,e){if(l.fnc(t))return t;var n=t.split("(")[0],r=v[n],i=h(t);switch(n){case"spring":return f(t,e);case"cubicBezier":return c(y,i);case"steps":return c(p,i);default:return c(r,i)}}function _(t){try{return document.querySelectorAll(t)}catch(t){return}}function b(t,e){for(var n=t.length,r=arguments.length>=2?arguments[1]:void 0,i=[],o=0;o<n;o++)if(o in t){var a=t[o];e.call(r,a,o,t)&&i.push(a)}return i}function w(t){return t.reduce(function(t,e){return t.concat(l.arr(e)?w(e):e)},[])}function E(t){return l.arr(t)?t:(l.str(t)&&(t=_(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function x(t,e){return t.some(function(t){return t===e})}function O(t){var e={};for(var n in t)e[n]=t[n];return e}function M(t,e){var n=O(t);for(var r in t)n[r]=e.hasOwnProperty(r)?e[r]:t[r];return n}function S(t,e){var n=O(t);for(var r in e)n[r]=l.und(t[r])?e[r]:t[r];return n}function P(t){return l.rgb(t)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e=t))?"rgba("+n[1]+",1)":e:l.hex(t)?function(t){var e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,n,r){return e+e+n+n+r+r}),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgba("+parseInt(n[1],16)+","+parseInt(n[2],16)+","+parseInt(n[3],16)+",1)"}(t):l.hsl(t)?function(t){var e,n,r,i=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t),o=parseInt(i[1],10)/360,a=parseInt(i[2],10)/100,s=parseInt(i[3],10)/100,u=i[4]||1;function c(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(0==a)e=n=r=s;else{var l=s<.5?s*(1+a):s+a-s*a,h=2*s-l;e=c(h,l,o+1/3),n=c(h,l,o),r=c(h,l,o-1/3)}return"rgba("+255*e+","+255*n+","+255*r+","+u+")"}(t):void 0;var e,n}function C(t){var e=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t);if(e)return e[1]}function T(t,e){return l.fnc(t)?t(e.target,e.id,e.total):t}function I(t,e){return t.getAttribute(e)}function L(t,e,n){if(x([n,"deg","rad","turn"],C(e)))return e;var r=a.CSS[e+n];if(!l.und(r))return r;var i=document.createElement(t.tagName),o=t.parentNode&&t.parentNode!==document?t.parentNode:document.body;o.appendChild(i),i.style.position="absolute",i.style.width=100+n;var s=100/i.offsetWidth;o.removeChild(i);var u=s*parseFloat(e);return a.CSS[e+n]=u,u}function A(t,e,n){if(e in t.style){var r=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=t.style[e]||getComputedStyle(t).getPropertyValue(r)||"0";return n?L(t,i,n):i}}function N(t,e){return l.dom(t)&&!l.inp(t)&&(!l.nil(I(t,e))||l.svg(t)&&t[e])?"attribute":l.dom(t)&&x(o,e)?"transform":l.dom(t)&&"transform"!==e&&A(t,e)?"css":null!=t[e]?"object":void 0}function k(t){if(l.dom(t)){for(var e,n=t.style.transform||"",r=/(\w+)\(([^)]*)\)/g,i=new Map;e=r.exec(n);)i.set(e[1],e[2]);return i}}function j(t,e,n,r){var i=u(e,"scale")?1:0+function(t){return u(t,"translate")||"perspective"===t?"px":u(t,"rotate")||u(t,"skew")?"deg":void 0}(e),o=k(t).get(e)||i;return n&&(n.transforms.list.set(e,o),n.transforms.last=e),r?L(t,o,r):o}function R(t,e,n,r){switch(N(t,e)){case"transform":return j(t,e,r,n);case"css":return A(t,e,n);case"attribute":return I(t,e);default:return t[e]||0}}function D(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=C(t)||0,i=parseFloat(e),o=parseFloat(t.replace(n[0],""));switch(n[0][0]){case"+":return i+o+r;case"-":return i-o+r;case"*":return i*o+r}}function F(t,e){if(l.col(t))return P(t);if(/\s/g.test(t))return t;var n=C(t),r=n?t.substr(0,t.length-n.length):t;return e?r+e:r}function z(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function B(t){for(var e,n=t.points,r=0,i=0;i<n.numberOfItems;i++){var o=n.getItem(i);i>0&&(r+=z(e,o)),e=o}return r}function q(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return function(t){return 2*Math.PI*I(t,"r")}(t);case"rect":return function(t){return 2*I(t,"width")+2*I(t,"height")}(t);case"line":return function(t){return z({x:I(t,"x1"),y:I(t,"y1")},{x:I(t,"x2"),y:I(t,"y2")})}(t);case"polyline":return B(t);case"polygon":return function(t){var e=t.points;return B(t)+z(e.getItem(e.numberOfItems-1),e.getItem(0))}(t)}}function G(t,e){var n=e||{},r=n.el||function(t){for(var e=t.parentNode;l.svg(e)&&l.svg(e.parentNode);)e=e.parentNode;return e}(t),i=r.getBoundingClientRect(),o=I(r,"viewBox"),a=i.width,s=i.height,u=n.viewBox||(o?o.split(" "):[0,0,a,s]);return{el:r,viewBox:u,x:u[0]/1,y:u[1]/1,w:a,h:s,vW:u[2],vH:u[3]}}function U(t,e,n){function r(n){void 0===n&&(n=0);var r=e+n>=1?e+n:0;return t.el.getPointAtLength(r)}var i=G(t.el,t.svg),o=r(),a=r(-1),s=r(1),u=n?1:i.w/i.vW,c=n?1:i.h/i.vH;switch(t.property){case"x":return(o.x-i.x)*u;case"y":return(o.y-i.y)*c;case"angle":return 180*Math.atan2(s.y-a.y,s.x-a.x)/Math.PI}}function V(t,e){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=F(l.pth(t)?t.totalLength:t,e)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:l.str(t)||e?r.split(n):[]}}function J(t){return b(t?w(l.arr(t)?t.map(E):E(t)):[],function(t,e,n){return n.indexOf(t)===e})}function H(t){var e=J(t);return e.map(function(t,n){return{target:t,id:n,total:e.length,transforms:{list:k(t)}}})}function Y(t,e){var n=O(e);if(/^spring/.test(n.easing)&&(n.duration=f(n.easing)),l.arr(t)){var r=t.length;2===r&&!l.obj(t[0])?t={value:t}:l.fnc(e.duration)||(n.duration=e.duration/r)}var i=l.arr(t)?t:[t];return i.map(function(t,n){var r=l.obj(t)&&!l.pth(t)?t:{value:t};return l.und(r.delay)&&(r.delay=n?0:e.delay),l.und(r.endDelay)&&(r.endDelay=n===i.length-1?e.endDelay:0),r}).map(function(t){return S(t,n)})}function X(t,e){var n=[],r=e.keyframes;for(var i in r&&(e=S(function(t){for(var e=b(w(t.map(function(t){return Object.keys(t)})),function(t){return l.key(t)}).reduce(function(t,e){return t.indexOf(e)<0&&t.push(e),t},[]),n={},r=function(r){var i=e[r];n[i]=t.map(function(t){var e={};for(var n in t)l.key(n)?n==i&&(e.value=t[n]):e[n]=t[n];return e})},i=0;i<e.length;i++)r(i);return n}(r),e)),e)l.key(i)&&n.push({name:i,tweens:Y(e[i],t)});return n}function Z(t,e){var n;return t.tweens.map(function(r){var i=function(t,e){var n={};for(var r in t){var i=T(t[r],e);l.arr(i)&&1===(i=i.map(function(t){return T(t,e)})).length&&(i=i[0]),n[r]=i}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(r,e),o=i.value,a=l.arr(o)?o[1]:o,s=C(a),u=R(e.target,t.name,s,e),c=n?n.to.original:u,h=l.arr(o)?o[0]:c,f=C(h)||C(u),p=s||f;return l.und(a)&&(a=c),i.from=V(h,p),i.to=V(D(a,h),p),i.start=n?n.end:0,i.end=i.start+i.delay+i.duration+i.endDelay,i.easing=m(i.easing,i.duration),i.isPath=l.pth(o),i.isPathTargetInsideSVG=i.isPath&&l.svg(e.target),i.isColor=l.col(i.from.original),i.isColor&&(i.round=1),n=i,i})}var W={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,r,i){if(r.list.set(e,n),e===r.last||i){var o="";r.list.forEach(function(t,e){o+=e+"("+t+") "}),t.style.transform=o}}};function K(t,e){H(t).forEach(function(t){for(var n in e){var r=T(e[n],t),i=t.target,o=C(r),a=R(i,n,o,t),s=D(F(r,o||C(a)),a),u=N(i,n);W[u](i,n,s,t.transforms,!0)}})}function Q(t,e){return b(w(t.map(function(t){return e.map(function(e){return function(t,e){var n=N(t.target,e.name);if(n){var r=Z(e,t),i=r[r.length-1];return{type:n,property:e.name,animatable:t,tweens:r,duration:i.end,delay:r[0].delay,endDelay:i.endDelay}}}(t,e)})})),function(t){return!l.und(t)})}function $(t,e){var n=t.length,r=function(t){return t.timelineOffset?t.timelineOffset:0},i={};return i.duration=n?Math.max.apply(Math,t.map(function(t){return r(t)+t.duration})):e.duration,i.delay=n?Math.min.apply(Math,t.map(function(t){return r(t)+t.delay})):e.delay,i.endDelay=n?i.duration-Math.max.apply(Math,t.map(function(t){return r(t)+t.duration-t.endDelay})):e.endDelay,i}var tt=0;var et=[],nt=function(){var t;function e(n){for(var r=et.length,i=0;i<r;){var o=et[i];o.paused?(et.splice(i,1),r--):(o.tick(n),i++)}t=i>0?requestAnimationFrame(e):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){it.suspendWhenDocumentHidden&&(rt()?t=cancelAnimationFrame(t):(et.forEach(function(t){return t._onDocumentVisibility()}),nt()))}),function(){t||rt()&&it.suspendWhenDocumentHidden||!(et.length>0)||(t=requestAnimationFrame(e))}}();function rt(){return!!document&&document.hidden}function it(t){void 0===t&&(t={});var e,n=0,o=0,a=0,u=0,c=null;function l(t){var e=window.Promise&&new Promise(function(t){return c=t});return t.finished=e,e}var h=function(t){var e=M(r,t),n=M(i,t),o=X(n,t),a=H(t.targets),s=Q(a,o),u=$(s,n),c=tt;return tt++,S(e,{id:c,children:[],animatables:a,animations:s,duration:u.duration,delay:u.delay,endDelay:u.endDelay})}(t);l(h);function f(){var t=h.direction;"alternate"!==t&&(h.direction="normal"!==t?"normal":"reverse"),h.reversed=!h.reversed,e.forEach(function(t){return t.reversed=h.reversed})}function p(t){return h.reversed?h.duration-t:t}function d(){n=0,o=p(h.currentTime)*(1/it.speed)}function g(t,e){e&&e.seek(t-e.timelineOffset)}function y(t){for(var e=0,n=h.animations,r=n.length;e<r;){var i=n[e],o=i.animatable,a=i.tweens,u=a.length-1,c=a[u];u&&(c=b(a,function(e){return t<e.end})[0]||c);for(var l=s(t-c.start-c.delay,0,c.duration)/c.duration,f=isNaN(l)?1:c.easing(l),p=c.to.strings,d=c.round,g=[],y=c.to.numbers.length,v=void 0,m=0;m<y;m++){var _=void 0,w=c.to.numbers[m],E=c.from.numbers[m]||0;_=c.isPath?U(c.value,f*w,c.isPathTargetInsideSVG):E+f*(w-E),d&&(c.isColor&&m>2||(_=Math.round(_*d)/d)),g.push(_)}var x=p.length;if(x){v=p[0];for(var O=0;O<x;O++){p[O];var M=p[O+1],S=g[O];isNaN(S)||(v+=M?S+M:S+" ")}}else v=g[0];W[i.type](o.target,i.property,v,o.transforms),i.currentValue=v,e++}}function v(t){h[t]&&!h.passThrough&&h[t](h)}function m(t){var r=h.duration,i=h.delay,d=r-h.endDelay,m=p(t);h.progress=s(m/r*100,0,100),h.reversePlayback=m<h.currentTime,e&&function(t){if(h.reversePlayback)for(var n=u;n--;)g(t,e[n]);else for(var r=0;r<u;r++)g(t,e[r])}(m),!h.began&&h.currentTime>0&&(h.began=!0,v("begin")),!h.loopBegan&&h.currentTime>0&&(h.loopBegan=!0,v("loopBegin")),m<=i&&0!==h.currentTime&&y(0),(m>=d&&h.currentTime!==r||!r)&&y(r),m>i&&m<d?(h.changeBegan||(h.changeBegan=!0,h.changeCompleted=!1,v("changeBegin")),v("change"),y(m)):h.changeBegan&&(h.changeCompleted=!0,h.changeBegan=!1,v("changeComplete")),h.currentTime=s(m,0,r),h.began&&v("update"),t>=r&&(o=0,h.remaining&&!0!==h.remaining&&h.remaining--,h.remaining?(n=a,v("loopComplete"),h.loopBegan=!1,"alternate"===h.direction&&f()):(h.paused=!0,h.completed||(h.completed=!0,v("loopComplete"),v("complete"),!h.passThrough&&"Promise"in window&&(c(),l(h)))))}return h.reset=function(){var t=h.direction;h.passThrough=!1,h.currentTime=0,h.progress=0,h.paused=!0,h.began=!1,h.loopBegan=!1,h.changeBegan=!1,h.completed=!1,h.changeCompleted=!1,h.reversePlayback=!1,h.reversed="reverse"===t,h.remaining=h.loop,e=h.children;for(var n=u=e.length;n--;)h.children[n].reset();(h.reversed&&!0!==h.loop||"alternate"===t&&1===h.loop)&&h.remaining++,y(h.reversed?h.duration:0)},h._onDocumentVisibility=d,h.set=function(t,e){return K(t,e),h},h.tick=function(t){a=t,n||(n=a),m((a+(o-n))*it.speed)},h.seek=function(t){m(p(t))},h.pause=function(){h.paused=!0,d()},h.play=function(){h.paused&&(h.completed&&h.reset(),h.paused=!1,et.push(h),d(),nt())},h.reverse=function(){f(),h.completed=!h.reversed,d()},h.restart=function(){h.reset(),h.play()},h.remove=function(t){at(J(t),h)},h.reset(),h.autoplay&&h.play(),h}function ot(t,e){for(var n=e.length;n--;)x(t,e[n].animatable.target)&&e.splice(n,1)}function at(t,e){var n=e.animations,r=e.children;ot(t,n);for(var i=r.length;i--;){var o=r[i],a=o.animations;ot(t,a),a.length||o.children.length||r.splice(i,1)}n.length||r.length||e.pause()}it.version="3.2.1",it.speed=1,it.suspendWhenDocumentHidden=!0,it.running=et,it.remove=function(t){for(var e=J(t),n=et.length;n--;)at(e,et[n])},it.get=R,it.set=K,it.convertPx=L,it.path=function(t,e){var n=l.str(t)?_(t)[0]:t,r=e||100;return function(t){return{property:t,el:n,svg:G(n),totalLength:q(n)*(r/100)}}},it.setDashoffset=function(t){var e=q(t);return t.setAttribute("stroke-dasharray",e),e},it.stagger=function(t,e){void 0===e&&(e={});var n=e.direction||"normal",r=e.easing?m(e.easing):null,i=e.grid,o=e.axis,a=e.from||0,s="first"===a,u="center"===a,c="last"===a,h=l.arr(t),f=h?parseFloat(t[0]):parseFloat(t),p=h?parseFloat(t[1]):0,d=C(h?t[1]:t)||0,g=e.start||0+(h?f:0),y=[],v=0;return function(t,e,l){if(s&&(a=0),u&&(a=(l-1)/2),c&&(a=l-1),!y.length){for(var m=0;m<l;m++){if(i){var _=u?(i[0]-1)/2:a%i[0],b=u?(i[1]-1)/2:Math.floor(a/i[0]),w=_-m%i[0],E=b-Math.floor(m/i[0]),x=Math.sqrt(w*w+E*E);"x"===o&&(x=-w),"y"===o&&(x=-E),y.push(x)}else y.push(Math.abs(a-m));v=Math.max.apply(Math,y)}r&&(y=y.map(function(t){return r(t/v)*v})),"reverse"===n&&(y=y.map(function(t){return o?t<0?-1*t:-t:Math.abs(v-t)}))}return g+(h?(p-f)/v:f)*(Math.round(100*y[e])/100)+d}},it.timeline=function(t){void 0===t&&(t={});var e=it(t);return e.duration=0,e.add=function(n,r){var o=et.indexOf(e),a=e.children;function s(t){t.passThrough=!0}o>-1&&et.splice(o,1);for(var u=0;u<a.length;u++)s(a[u]);var c=S(n,M(i,t));c.targets=c.targets||t.targets;var h=e.duration;c.autoplay=!1,c.direction=e.direction,c.timelineOffset=l.und(r)?h:D(r,h),s(e),e.seek(c.timelineOffset);var f=it(c);s(f),a.push(f);var p=$(a,t);return e.delay=p.delay,e.endDelay=p.endDelay,e.duration=p.duration,e.seek(0),e.reset(),e.autoplay&&e.play(),e},e},it.easing=m,it.penner=v,it.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},e.default=it},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=(s(n(5)),s(n(20))),o=s(n(18)),a=s(n(371));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"simpleLine",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e-6,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=t;(t instanceof i.default||t instanceof o.default)&&(a=t.points);var s=void 0!==e?e*e:1e-12;return a=n?a:this.simplifyRadialDistance(a,s),a=this.simplifyDouglasPeucker(a,s),r?this.smoothLine(a):a}},{key:"smoothLine",value:function(t){for(var e=[t[0]],n=1;n<t.length-1;n++){var r=t[n-1],i=t[n],o=t[n+1],s=new a.default(r.x-i.x,r.y-i.y,r.z-i.z),u=new a.default(o.x-i.x,o.y-i.y,o.z-i.z),c=s.angle(u)/Math.PI*180;if(c<45)if(c<5)e.push(i),e.push({x:i.x+1e-7,y:i.y,z:i.z});else{var l=s.getLength(),h=u.getLength();e.push(this.smoothPoint(r,i,1e-7/l)),e.push(this.smoothPoint(o,i,1e-7/h))}else e.push(i)}return e.push(t[t.length-1]),e}},{key:"smoothPoint",value:function(t,e,n){return{x:n*t.x+(1-n)*e.x,y:n*t.y+(1-n)*e.y,z:n*t.z+(1-n)*e.z}}},{key:"simplifyRadialDistance",value:function(t,e){for(var n=t[0],r=[n],i=void 0,o=1,a=t.length;o<a;o++)i=t[o],this.getSquareDistance(i,n)>e&&(r.push(i),n=i);if(n!==i){var s=i,u=s.x,c=s.y,l=s.z;r.push({x:u,y:c,z:l||0})}return r}},{key:"getSquareDistance",value:function(t,e){var n=t.x-e.x,r=t.y-e.y,i=t.z-e.z;return n*n+r*r+i*i}},{key:"simplifyDouglasPeucker",value:function(t,e){var n=t.length,r=new("undefined"!=typeof Uint8Array?Uint8Array:Array)(n),i=0,o=n-1,a=[],s=[],u=void 0,c=void 0,l=void 0,h=void 0;for(r[i]=r[o]=1;o;){for(c=0,u=i+1;u<o;u++)(l=this.getSquareSegmentDistance(t[u],t[i],t[o]))>c&&(h=u,c=l);c>e&&(r[h]=1,a.push(i,h,h,o)),o=a.pop(),i=a.pop()}for(u=0;u<n;u++)r[u]&&s.push(t[u]);return s}},{key:"getSquareSegmentDistance",value:function(t,e,n){t.z=t.z||0,e.z=e.z||0,n.z=n.z||0;var r=e.x,i=e.y,o=e.z,a=n.x-r,s=n.y-i,u=n.z-o;if(0!==a||0!==s||0!==u){var c=((t.x-r)*a+(t.y-i)*s+(t.z-o)*u)/(a*a+s*s+u*u);c>1?(r=n.x,i=n.y,o=n.z):c>0&&(r+=a*c,i+=s*c,o+=u*c)}return(a=t.x-r)*a+(s=t.y-i)*s+(u=t.z-o)*u}}]),t}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(372),a=n(189),s=n(377),u=(r=s)&&r.__esModule?r:{default:r},c=n(378);var l=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,3)),n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return c.applyArguments.apply(void 0,[t].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(r))),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,u.default),i(e,[{key:"setValue",value:function(t,e,n){this[0]=t,this[1]=e,this[2]=n}},{key:"add",value:function(t){return o.vec3.add(new e,this,t)}},{key:"angle",value:function(t){return window.assert(t instanceof e),o.vec3.angle(this,t)}},{key:"ceil",value:function(){return o.vec3.ceil(new e,this)}},{key:"cross",value:function(t){return window.assert(t instanceof e),o.vec3.cross(new e,this,t)}},{key:"distanceTo",value:function(t){return window.assert(t instanceof e),o.vec3.distance(this,t)}},{key:"divide",value:function(t){return window.assert(t instanceof e),o.vec3.divide(new e,this,t)}},{key:"dot",value:function(t){return window.assert(t instanceof e),o.vec3.dot(this,t)}},{key:"floor",value:function(){return o.vec3.floor(new e,this)}},{key:"inverse",value:function(){return o.vec3.inverse(new e,this)}},{key:"getLength",value:function(){return o.vec3.length(this)}},{key:"lerp",value:function(t){return window.assert(t instanceof e),o.vec3.lerp(new e,this,t)}},{key:"multiply",value:function(t){return window.assert(t instanceof e),o.vec3.multiply(new e,this,t)}},{key:"negate",value:function(){return o.vec3.negate(new e,this)}},{key:"normalize",value:function(){return o.vec3.normalize(new e,this)}},{key:"rotateX",value:function(t,n){return window.assert(t instanceof e),o.vec3.rotateX(new e,this,t,n)}},{key:"rotateY",value:function(t,n){return window.assert(t instanceof e),o.vec3.rotateY(new e,this,t,n)}},{key:"rotateZ",value:function(t,n){return window.assert(t instanceof e),o.vec3.rotateZ(new e,this,t,n)}},{key:"round",value:function(){return o.vec3.round(new e,this)}},{key:"scale",value:function(t){return o.vec3.scale(new e,this,t)}},{key:"squaredDistance",value:function(t){return window.assert(t instanceof e),o.vec3.squaredDistance(this,t)}},{key:"squaredLength",value:function(){return o.vec3.squaredLength(this)}},{key:"subtract",value:function(t){return window.assert(t instanceof e),o.vec3.subtract(new e,this,t)}},{key:"clone",value:function(){return new e(this)}},{key:"copyTo",value:function(t){window.assert(t instanceof e),(0,c.applyArguments)(t,this)}},{key:"equalsTo",value:function(t){return window.assert(t instanceof e),o.vec3.equals(this,t)}},{key:"exactEqualsTo",value:function(t){return window.assert(t instanceof e),o.vec3.exactEquals(this,t)}},{key:"toString",value:function(){return o.vec3.str(this)}},{key:"x",get:function(){return this[0]},set:function(t){this[0]=t}},{key:"y",get:function(){return this[1]},set:function(t){this[1]=t}},{key:"z",get:function(){return this[2]},set:function(t){this[2]=t}},{key:"r",get:function(){return this[0]},set:function(t){this[0]=t}},{key:"g",get:function(){return this[1]},set:function(t){this[1]=t}},{key:"b",get:function(){return this[2]},set:function(t){this[2]=t}}],[{key:"bezier",value:function(t,n,r,i,a){return window.assert(t instanceof e),window.assert(n instanceof e),window.assert(r instanceof e),window.assert(i instanceof e),o.vec3.bezier(new e,t,n,r,i,a)}},{key:"hermite",value:function(t,n,r,i,a){return window.assert(t instanceof e),window.assert(n instanceof e),window.assert(r instanceof e),window.assert(i instanceof e),o.vec3.hermite(new e,t,n,r,i,a)}},{key:"max",value:function(t,n){return window.assert(t instanceof e),window.assert(n instanceof e),o.vec3.max(new e,t,n)}},{key:"min",value:function(t,n){return window.assert(t instanceof e),window.assert(n instanceof e),o.vec3.min(new e,t,n)}},{key:"like",value:function(t){return t instanceof e?t:(0,a.isObject)(t)?new e(t.x,t.y,t.z):(0,a.isArray)(t)&&t.length<=3?new e(t[0],t[1],t[2]):void 0}}]),e}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(19),i=n(373),o=n(374),a=n(184),s=n(185),u=n(186),c=n(375),l=n(376),h=n(187),f=n(188);n.d(e,"glMatrix",function(){return r}),n.d(e,"mat2",function(){return i}),n.d(e,"mat2d",function(){return o}),n.d(e,"mat3",function(){return a}),n.d(e,"mat4",function(){return s}),n.d(e,"quat",function(){return u}),n.d(e,"quat2",function(){return c}),n.d(e,"vec2",function(){return l}),n.d(e,"vec3",function(){return h}),n.d(e,"vec4",function(){return f})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=function(){var t=new r.ARRAY_TYPE(4);r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0);return t[0]=1,t[3]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},e.fromValues=function(t,e,n,i){var o=new r.ARRAY_TYPE(4);return o[0]=t,o[1]=e,o[2]=n,o[3]=i,o},e.set=function(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t},e.transpose=function(t,e){if(t===e){var n=e[1];t[1]=e[2],t[2]=n}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*o-i*r;if(!a)return null;return a=1/a,t[0]=o*a,t[1]=-r*a,t[2]=-i*a,t[3]=n*a,t},e.adjoint=function(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t},e.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},e.multiply=i,e.rotate=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+o*s,t[1]=i*u+a*s,t[2]=r*-s+o*u,t[3]=i*-s+a*u,t},e.scale=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1];return t[0]=r*s,t[1]=i*s,t[2]=o*u,t[3]=a*u,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t},e.str=function(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2))},e.LDU=function(t,e,n,r){return t[2]=r[2]/r[0],n[0]=r[0],n[1]=r[1],n[3]=r[3]-t[2]*n[1],[t,e,n]},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},e.subtract=o,e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},e.equals=function(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=e[0],u=e[1],c=e[2],l=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-c)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(a-l)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))},e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},n.d(e,"mul",function(){return a}),n.d(e,"sub",function(){return s});var r=n(19);function i(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1],c=n[2],l=n[3];return t[0]=r*s+o*u,t[1]=i*s+a*u,t[2]=r*c+o*l,t[3]=i*c+a*l,t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}var a=i,s=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=function(){var t=new r.ARRAY_TYPE(6);r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0);return t[0]=1,t[3]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},e.fromValues=function(t,e,n,i,o,a){var s=new r.ARRAY_TYPE(6);return s[0]=t,s[1]=e,s[2]=n,s[3]=i,s[4]=o,s[5]=a,s},e.set=function(t,e,n,r,i,o,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=n*o-r*i;if(!u)return null;return u=1/u,t[0]=o*u,t[1]=-r*u,t[2]=-i*u,t[3]=n*u,t[4]=(i*s-o*a)*u,t[5]=(r*a-n*s)*u,t},e.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},e.multiply=i,e.rotate=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=Math.sin(n),l=Math.cos(n);return t[0]=r*l+o*c,t[1]=i*l+a*c,t[2]=r*-c+o*l,t[3]=i*-c+a*l,t[4]=s,t[5]=u,t},e.scale=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=n[0],l=n[1];return t[0]=r*c,t[1]=i*c,t[2]=o*l,t[3]=a*l,t[4]=s,t[5]=u,t},e.translate=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=n[0],l=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=r*c+o*l+s,t[5]=i*c+a*l+u,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t[4]=0,t[5]=0,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},e.str=function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},e.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+1)},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t},e.subtract=o,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]},e.equals=function(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=e[0],l=e[1],h=e[2],f=e[3],p=e[4],d=e[5];return Math.abs(n-c)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(i-l)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-h)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(a-f)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(f))&&Math.abs(s-p)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(u-d)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(d))},n.d(e,"mul",function(){return a}),n.d(e,"sub",function(){return s});var r=n(19);function i(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=n[0],l=n[1],h=n[2],f=n[3],p=n[4],d=n[5];return t[0]=r*c+o*l,t[1]=i*c+a*l,t[2]=r*h+o*f,t[3]=i*h+a*f,t[4]=r*p+o*d+s,t[5]=i*p+a*d+u,t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t}var a=i,s=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=function(){var t=new r.ARRAY_TYPE(8);r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0);return t[3]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(8);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e},e.fromValues=function(t,e,n,i,o,a,s,u){var c=new r.ARRAY_TYPE(8);return c[0]=t,c[1]=e,c[2]=n,c[3]=i,c[4]=o,c[5]=a,c[6]=s,c[7]=u,c},e.fromRotationTranslationValues=function(t,e,n,i,o,a,s){var u=new r.ARRAY_TYPE(8);u[0]=t,u[1]=e,u[2]=n,u[3]=i;var c=.5*o,l=.5*a,h=.5*s;return u[4]=c*i+l*n-h*e,u[5]=l*i+h*t-c*n,u[6]=h*i+c*e-l*t,u[7]=-c*t-l*e-h*n,u},e.fromRotationTranslation=a,e.fromTranslation=function(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*e[0],t[5]=.5*e[1],t[6]=.5*e[2],t[7]=0,t},e.fromRotation=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},e.fromMat4=function(t,e){var n=i.create();o.getRotation(n,e);var s=new r.ARRAY_TYPE(3);return o.getTranslation(s,e),a(t,n,s),t},e.copy=s,e.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},e.set=function(t,e,n,r,i,o,a,s,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t},n.d(e,"getReal",function(){return u}),e.getDual=function(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t},n.d(e,"setReal",function(){return c}),e.setDual=function(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t},e.getTranslation=function(t,e){var n=e[4],r=e[5],i=e[6],o=e[7],a=-e[0],s=-e[1],u=-e[2],c=e[3];return t[0]=2*(n*c+o*a+r*u-i*s),t[1]=2*(r*c+o*s+i*a-n*u),t[2]=2*(i*c+o*u+n*s-r*a),t},e.translate=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=.5*n[0],u=.5*n[1],c=.5*n[2],l=e[4],h=e[5],f=e[6],p=e[7];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=a*s+i*c-o*u+l,t[5]=a*u+o*s-r*c+h,t[6]=a*c+r*u-i*s+f,t[7]=-r*s-i*u-o*c+p,t},e.rotateX=function(t,e,n){var r=-e[0],o=-e[1],a=-e[2],s=e[3],u=e[4],c=e[5],l=e[6],h=e[7],f=u*s+h*r+c*a-l*o,p=c*s+h*o+l*r-u*a,d=l*s+h*a+u*o-c*r,g=h*s-u*r-c*o-l*a;return i.rotateX(t,e,n),r=t[0],o=t[1],a=t[2],s=t[3],t[4]=f*s+g*r+p*a-d*o,t[5]=p*s+g*o+d*r-f*a,t[6]=d*s+g*a+f*o-p*r,t[7]=g*s-f*r-p*o-d*a,t},e.rotateY=function(t,e,n){var r=-e[0],o=-e[1],a=-e[2],s=e[3],u=e[4],c=e[5],l=e[6],h=e[7],f=u*s+h*r+c*a-l*o,p=c*s+h*o+l*r-u*a,d=l*s+h*a+u*o-c*r,g=h*s-u*r-c*o-l*a;return i.rotateY(t,e,n),r=t[0],o=t[1],a=t[2],s=t[3],t[4]=f*s+g*r+p*a-d*o,t[5]=p*s+g*o+d*r-f*a,t[6]=d*s+g*a+f*o-p*r,t[7]=g*s-f*r-p*o-d*a,t},e.rotateZ=function(t,e,n){var r=-e[0],o=-e[1],a=-e[2],s=e[3],u=e[4],c=e[5],l=e[6],h=e[7],f=u*s+h*r+c*a-l*o,p=c*s+h*o+l*r-u*a,d=l*s+h*a+u*o-c*r,g=h*s-u*r-c*o-l*a;return i.rotateZ(t,e,n),r=t[0],o=t[1],a=t[2],s=t[3],t[4]=f*s+g*r+p*a-d*o,t[5]=p*s+g*o+d*r-f*a,t[6]=d*s+g*a+f*o-p*r,t[7]=g*s-f*r-p*o-d*a,t},e.rotateByQuatAppend=function(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],u=e[1],c=e[2],l=e[3];return t[0]=s*a+l*r+u*o-c*i,t[1]=u*a+l*i+c*r-s*o,t[2]=c*a+l*o+s*i-u*r,t[3]=l*a-s*r-u*i-c*o,s=e[4],u=e[5],c=e[6],l=e[7],t[4]=s*a+l*r+u*o-c*i,t[5]=u*a+l*i+c*r-s*o,t[6]=c*a+l*o+s*i-u*r,t[7]=l*a-s*r-u*i-c*o,t},e.rotateByQuatPrepend=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1],c=n[2],l=n[3];return t[0]=r*l+a*s+i*c-o*u,t[1]=i*l+a*u+o*s-r*c,t[2]=o*l+a*c+r*u-i*s,t[3]=a*l-r*s-i*u-o*c,s=n[4],u=n[5],c=n[6],l=n[7],t[4]=r*l+a*s+i*c-o*u,t[5]=i*l+a*u+o*s-r*c,t[6]=o*l+a*c+r*u-i*s,t[7]=a*l-r*s-i*u-o*c,t},e.rotateAroundAxis=function(t,e,n,i){if(Math.abs(i)<r.EPSILON)return s(t,e);var o=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);i*=.5;var a=Math.sin(i),u=a*n[0]/o,c=a*n[1]/o,l=a*n[2]/o,h=Math.cos(i),f=e[0],p=e[1],d=e[2],g=e[3];t[0]=f*h+g*u+p*l-d*c,t[1]=p*h+g*c+d*u-f*l,t[2]=d*h+g*l+f*c-p*u,t[3]=g*h-f*u-p*c-d*l;var y=e[4],v=e[5],m=e[6],_=e[7];return t[4]=y*h+_*u+v*l-m*c,t[5]=v*h+_*c+m*u-y*l,t[6]=m*h+_*l+y*c-v*u,t[7]=_*h-y*u-v*c-m*l,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t},e.multiply=l,n.d(e,"mul",function(){return h}),e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t},n.d(e,"dot",function(){return f}),e.lerp=function(t,e,n,r){var i=1-r;f(e,n)<0&&(r=-r);return t[0]=e[0]*i+n[0]*r,t[1]=e[1]*i+n[1]*r,t[2]=e[2]*i+n[2]*r,t[3]=e[3]*i+n[3]*r,t[4]=e[4]*i+n[4]*r,t[5]=e[5]*i+n[5]*r,t[6]=e[6]*i+n[6]*r,t[7]=e[7]*i+n[7]*r,t},e.invert=function(t,e){var n=g(e);return t[0]=-e[0]/n,t[1]=-e[1]/n,t[2]=-e[2]/n,t[3]=e[3]/n,t[4]=-e[4]/n,t[5]=-e[5]/n,t[6]=-e[6]/n,t[7]=e[7]/n,t},e.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=e[7],t},n.d(e,"length",function(){return p}),n.d(e,"len",function(){return d}),n.d(e,"squaredLength",function(){return g}),n.d(e,"sqrLen",function(){return y}),e.normalize=function(t,e){var n=g(e);if(n>0){n=Math.sqrt(n);var r=e[0]/n,i=e[1]/n,o=e[2]/n,a=e[3]/n,s=e[4],u=e[5],c=e[6],l=e[7],h=r*s+i*u+o*c+a*l;t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=(s-r*h)/n,t[5]=(u-i*h)/n,t[6]=(c-o*h)/n,t[7]=(l-a*h)/n}return t},e.str=function(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]},e.equals=function(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],h=e[0],f=e[1],p=e[2],d=e[3],g=e[4],y=e[5],v=e[6],m=e[7];return Math.abs(n-h)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(i-f)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(o-p)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-d)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(s-g)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(u-y)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-v)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(l-m)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(m))};var r=n(19),i=n(186),o=n(185);function a(t,e,n){var r=.5*n[0],i=.5*n[1],o=.5*n[2],a=e[0],s=e[1],u=e[2],c=e[3];return t[0]=a,t[1]=s,t[2]=u,t[3]=c,t[4]=r*c+i*u-o*s,t[5]=i*c+o*a-r*u,t[6]=o*c+r*s-i*a,t[7]=-r*a-i*s-o*u,t}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t}var u=i.copy;var c=i.copy;function l(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[4],u=n[5],c=n[6],l=n[7],h=e[4],f=e[5],p=e[6],d=e[7],g=n[0],y=n[1],v=n[2],m=n[3];return t[0]=r*m+a*g+i*v-o*y,t[1]=i*m+a*y+o*g-r*v,t[2]=o*m+a*v+r*y-i*g,t[3]=a*m-r*g-i*y-o*v,t[4]=r*l+a*s+i*c-o*u+h*m+d*g+f*v-p*y,t[5]=i*l+a*u+o*s-r*c+f*m+d*y+p*g-h*v,t[6]=o*l+a*c+r*u-i*s+p*m+d*v+h*y-f*g,t[7]=a*l-r*s-i*u-o*c+d*m-h*g-f*y-p*v,t}var h=l;var f=i.dot;var p=i.length,d=p,g=i.squaredLength,y=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=i,e.clone=function(t){var e=new r.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new r.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=o,e.multiply=a,e.divide=s,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},e.distance=u,e.squaredDistance=c,e.length=l,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=n*n+r*r;i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i);return t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},e.lerp=function(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t},e.random=function(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},e.transformMat2d=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},e.rotate=function(t,e,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),s=Math.cos(r);return t[0]=i*s-o*a+n[0],t[1]=i*a+o*s+n[1],t},e.angle=function(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=n*n+r*r;a>0&&(a=1/Math.sqrt(a));var s=i*i+o*o;s>0&&(s=1/Math.sqrt(s));var u=(n*i+r*o)*a*s;return u>1?0:u<-1?Math.PI:Math.acos(u)},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))},n.d(e,"len",function(){return p}),n.d(e,"sub",function(){return d}),n.d(e,"mul",function(){return g}),n.d(e,"div",function(){return y}),n.d(e,"dist",function(){return v}),n.d(e,"sqrDist",function(){return m}),n.d(e,"sqrLen",function(){return _}),n.d(e,"forEach",function(){return b});var r=n(19);function i(){var t=new r.ARRAY_TYPE(2);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function a(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function s(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function u(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function l(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function h(t){var e=t[0],n=t[1];return e*e+n*n}var f,p=l,d=o,g=a,y=s,v=u,m=c,_=h,b=(f=i(),function(t,e,n,r,i,o){var a=void 0,s=void 0;for(e||(e=2),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)f[0]=t[a],f[1]=t[a+1],i(f,f,o),t[a]=f[0],t[a+1]=f[1];return t})},function(t,e,n){"use strict";function r(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r(Float32Array)),e}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyArguments=function(t){for(var e={ctx:void 0,forEach:void 0},n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];Array.isArray(r[0])||r[0]instanceof Float32Array?(e.ctx=r[0],e.forEach=r[0].forEach):(e.ctx=r,e.forEach=r.forEach);e.ctx&&e.forEach&&e.forEach.call(e.ctx,function(e,n){"number"==typeof e&&(t[n]=e)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(22)),o=n(4),a=(s(n(51)),s(n(14)));function s(t){return t&&t.__esModule?t:{default:t}}var u=window.L,c=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r._type=o.JSLayerType.IMAGE_MARKER_LAYER,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"addMarker",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=u.marker([t.position.y,t.position.x],{icon:u.icon({iconUrl:t.image,iconSize:[t.width,t.height],iconAnchor:a.default.getImageMarkerOffsetAnchor(t)}),pane:this._pane});return n.addTo(this._layer),e?t.callback(n):(t._node=n,t._nodeId=n._leaflet_id),n.parent=this,n.parentMarker=t,n.nodeType=o.JSNodeType.IMAGE_MARKER,t._updateIcon=function(t){t._node.setIcon(u.icon({iconUrl:t.image,iconSize:[t.width,t.height],iconAnchor:a.default.getImageMarkerOffsetAnchor(t)}))},t._show||n.setOpacity(0),t}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"getFilter",value:function(t){return t.split(/\s+/)}},{key:"isString",value:function(t){return!t||t.length<2?null:"'"!==t[0]&&'"'!==t[0]||"'"!=t[t.length-1]&&'"'!==t[t.length-1]?null:t.substring(1,t.length-1)}},{key:"getFilterArr",value:function(t){var e=this,n=[];return t.forEach(function(t){var r=t.condition.split(/\s+/),i=e.isString(r[2]),o=null==i?r[2]:i;n.push({key:r[0],operation:r[1],filedValue:o,value:{url:t.url,size:t.size}})}),n}},{key:"getResultByOperation",value:function(t,e,n){var r=!1;switch(e){case"==":r=t==n;break;case">":r=t>n;break;case">=":r=t>=n;break;case"<":r=t<n;break;case"<=":r=t<=n;break;case"!=":r=t!=n;break;default:r=!1}return r}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=c(n(22)),o=n(4),a=(c(n(64)),c(n(14))),s=c(n(15)),u=c(n(18));function c(t){return t&&t.__esModule?t:{default:t}}var l=window.L,h=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r._type=o.JSLayerType.POLYGON_MARKER_LAYER,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"addMarker",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=a.default.getLineOrPolygonLatlngs(t._position,!1).latlngs,r=l.polygon(n,{stroke:!0,color:t._strokeColor,opacity:s.default.getAlphafromCssString(t._strokeColor),weight:2,fillColor:t._color,fillOpacity:s.default.getAlphafromCssString(t._color),renderer:this._renderer,bubblingMouseEvents:!1});return r.addTo(this._layer),e?t.callback(r):(t._node=r,t._nodeId=r._leaflet_id),r.parent=this,r.parentMarker=t,r.nodeType=o.JSNodeType.POLYGON_MARKER,t._position instanceof Array&&(t._position=new u.default(t._position)),t._show||r.setStyle({opacity:0,fillOpacity:0}),t}}]),e}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=h(n(22)),o=n(4),a=(h(n(65)),h(n(14))),s=h(n(15)),u=h(n(20)),c=n(383),l=n(97);h(n(7));function h(t){return t&&t.__esModule?t:{default:t}}var f=window.L,p=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r._type=o.JSLayerType.LINE_MARKER_LAYER,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"addToMap",value:function(t){this._map=t,this._registerNodeClickEvent=function(e){t._eventManager._registerNodeClickEvent(e)},this._offNodeClickEvent=function(e){t._eventManager._offNodeClickEvent(e)},function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addToMap",this).call(this,t)}},{key:"removeMarker",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!!t&&(e&&t.clearAnimators(),this._layer.removeLayer(t._node),t._node._symbol&&this._layer.removeLayer(t._node._symbol),e&&(t._removeCallback&&t._removeCallback(),t.destroy()),!0)}},{key:"_getDashSymbol",value:function(t,e,n,r){return new c.PolylineDecorator(t,{patterns:[{offset:0,repeat:5*e,symbol:new l.DashSymbol({pixelSize:2*e,pathOptions:{stroke:!0,weight:e,color:n,opacity:r,renderer:this._renderer}})},{offset:2*e+2,repeat:5*e,symbol:new l.DashSymbol({pixelSize:0,pathOptions:{stroke:!0,weight:e/2,color:n,opacity:r,renderer:this._renderer}})}],bubblingMouseEvents:!1})}},{key:"_getArrowSymbol",value:function(t,e,n){return new c.PolylineDecorator(t,{patterns:[{repeat:5*e,offset:e,symbol:new l.ArrowSymbol({pixelSize:e/2,headAngle:75,polygon:!1,pathOptions:{stroke:!0,weight:e>4?2:1,color:"#FFFFFF",opacity:n,renderer:this._renderer}})}],bubblingMouseEvents:!1})}},{key:"_getFillSymbol",value:function(t,e,n,r,i){return f.polyline(t,{stroke:!0,color:n,opacity:r,weight:e,smoothFactor:i?1:0,renderer:this._renderer,bubblingMouseEvents:!1})}},{key:"addMarker",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=a.default.getLineOrPolygonLatlngs(t.position,t._smooth),i=r.latlngs,c=r.points;t._position=new u.default(c);var l=t._show?s.default.getAlphafromCssString(t._color):0,h=void 0;if(t._lineType==o.JSLineType.DASH)h=this._getDashSymbol(i,t._width,t._color,l).addTo(this._layer);else if((h=this._getFillSymbol(i,t._width,t._color,l,t._smooth)).addTo(this._layer),t._lineType==o.JSLineType.ARROW){var f=this._getArrowSymbol(i,t._width,l).addTo(this._layer);f.parent=this,f.parentMarker=t,f.nodeType=o.JSNodeType.LINE_MARKER,h._symbol=f,this._registerNodeClickEvent(f)}return n?t.callback(h):(t._node=h,t._nodeId=h._leaflet_id),h.parent=this,h.parentMarker=t,h.nodeType=o.JSNodeType.LINE_MARKER,t._position instanceof Array&&(t._position=new u.default(t._position)),t._updateLineType=function(t,n){var r=t._show?s.default.getAlphafromCssString(t._color):0,i=a.default.getLineOrPolygonLatlngs(t.position,t._smooth).latlngs,u=t.getProperties(),c=t._width,l=t._lineType,h=void 0;if(l==o.JSLineType.FILL)n==o.JSLineType.ARROW?(h=e._getArrowSymbol(i,c,r).addTo(e._layer),t._node._symbol=h):(e._offNodeClickEvent(t._node),e._layer.removeLayer(t._node),h=e._getDashSymbol(i,c,t._color,r).addTo(e._layer),t._node=h,e._registerNodeClickEvent(h)),h.parent=e,h.parentMarker=t,h.nodeType=o.JSNodeType.LINE_MARKER,h.properties=u;else if(l==o.JSLineType.ARROW)e._layer.removeLayer(t._node._symbol),e._offNodeClickEvent(t._node._symbol),t._node._symbol=void 0,e._offNodeClickEvent(t._node),e._layer.removeLayer(t._node),h=n==o.JSLineType.DASH?e._getDashSymbol(i,c,t._color,r).addTo(e._layer):e._getFillSymbol(i,c,t._color,r,t._smooth).addTo(e._layer),e._registerNodeClickEvent(h),t._node=h,t._nodeId=h._leaflet_id,h.parent=e,h.parentMarker=t,h.nodeType=o.JSNodeType.LINE_MARKER,h.properties=u;else if(e._offNodeClickEvent(t._node),e._layer.removeLayer(t._node),h=e._getFillSymbol(i,c,t._color,r).addTo(e._layer),e._registerNodeClickEvent(h),t._node=h,t._nodeId=h._leaflet_id,h.parent=e,h.parentMarker=t,h.nodeType=o.JSNodeType.LINE_MARKER,h.properties=u,n==o.JSLineType.ARROW){var f=e._getArrowSymbol(i,c,r).addTo(e._layer);e._registerNodeClickEvent(f),t._node._symbol=f,f.parent=e,f.parentMarker=t,f.nodeType=o.JSNodeType.LINE_MARKER,f.properties=u}},t}}]),e}();e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PolylineDecorator=void 0;var r=n(384);n(97);var i=n(97),o=window.L,a=function(t){return Array.isArray(t)&&((e=t[0])instanceof o.LatLng||Array.isArray(e)&&2===e.length&&"number"==typeof e[0]);var e};e.PolylineDecorator=o.FeatureGroup.extend({options:{patterns:[]},initialize:function(t,e){o.FeatureGroup.prototype.initialize.call(this,e),o.Util.setOptions(this,e),this._map=null,this._paths=this._initPaths(t),this._bounds=this._initBounds(),this._patterns=this._initPatterns(this.options.patterns)},setWidthAndColor:function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this.options.patterns[0].symbol.options.pathOptions.renderer,a=void 0;a=r?[{repeat:5*t,offset:t,symbol:new i.ArrowSymbol({pixelSize:t/2,headAngle:75,polygon:!1,pathOptions:{stroke:!0,weight:t>4?2:1,color:"#FFFFFF",opacity:n,renderer:o}})}]:[{offset:0,repeat:5*t,symbol:new i.DashSymbol({pixelSize:2*t,pathOptions:{stroke:!0,weight:t,color:e,opacity:n,renderer:o}})},{offset:2*t+2,repeat:5*t,symbol:new i.DashSymbol({pixelSize:0,pathOptions:{stroke:!0,weight:t/2,color:e,opacity:n,renderer:o}})}],this.setPatterns(a)},_initPaths:function(t,e){var n=this;return a(t)?[e?t.concat([t[0]]):t]:t instanceof o.Polyline?this._initPaths(t.getLatLngs(),t instanceof o.Polygon):Array.isArray(t)?t.reduce(function(t,r){return t.concat(n._initPaths(r,e))},[]):[]},_initPatterns:function(t){return t.map(this._parsePatternDef)},setPatterns:function(t){this.options.patterns=t,this._patterns=this._initPatterns(this.options.patterns),this.redraw()},setPaths:function(t){this._paths=this._initPaths(t),this._bounds=this._initBounds(),this.redraw()},_parsePatternDef:function(t,e){return{symbolFactory:t.symbol,offset:(0,r.parseRelativeOrAbsoluteValue)(t.offset),endOffset:(0,r.parseRelativeOrAbsoluteValue)(t.endOffset),repeat:(0,r.parseRelativeOrAbsoluteValue)(t.repeat)}},setLatLngs:function(t){this.setPaths(t)},onAdd:function(t){this._map=t,this._draw(),this._map.on("moveend",this.redraw,this)},onRemove:function(t){this._map.off("moveend",this.redraw,this),this._map=null,o.FeatureGroup.prototype.onRemove.call(this,t)},_initBounds:function(){var t=this._paths.reduce(function(t,e){return t.concat(e)},[]);return o.latLngBounds(t)},getBounds:function(){return this._bounds},_buildSymbols:function(t,e,n){var r=this;return n.map(function(i,o){return e.buildSymbol(i,t,r._map,o,n.length)})},_getDirectionPoints:function(t,e){var n=this;if(t.length<2)return[];var i=t.map(function(t){return n._map.project(t)});return(0,r.projectPatternOnPointPath)(i,e).map(function(t){return{latLng:n._map.unproject(o.point(t.pt)),heading:t.heading}})},redraw:function(){this._map&&(this.clearLayers(),this._draw())},_getPatternLayers:function(t){var e=this._map.getBounds().pad(.1),n=this;return n._paths.map(function(r){var i=n._getDirectionPoints(r,t).filter(function(t){return e.contains(t.latLng)});return o.featureGroup(n._buildSymbols(r,t.symbolFactory,i))})},_draw:function(){var t=this;t._patterns.map(function(e){return t._getPatternLayers(e)}).forEach(function(e){t.addLayer(o.featureGroup(e))})}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){return(180*Math.atan2(e.y-t.y,e.x-t.x)/Math.PI+90+360)%360},i=function(t,e){var n=t.value;return t.isInPixels?n/e:n};var o=function(t,e){return t.x===e.x&&t.y===e.y};function a(t){return t.reduce(function(t,e,n,i){if(n>0&&!o(e,i[n-1])){var a=i[n-1],s=t.length>0?t[t.length-1].distB:0,u=(c=a,h=(l=e).x-c.x,f=l.y-c.y,Math.sqrt(h*h+f*f));t.push({a:a,b:e,distA:s,distB:s+u,heading:r(a,e)})}var c,l,h,f;return t},[])}e.projectPatternOnPointPath=function(t,e){var n=a(t),r=n.length;if(0===r)return[];var o=n[r-1].distB,s=i(e.offset,o),u=i(e.endOffset,o),c=o*i(e.repeat,o),l=u>0?o*u:0,h=[],f=s>0?o*s:0;do{h.push(f),f+=c}while(c>0&&f<o-l);var p=0,d=n[0];return h.map(function(t){for(;t>d.distB&&p<r-1;)d=n[++p];var e,i,o,a=(t-d.distA)/(d.distB-d.distA);return{pt:(e=d.a,i=d.b,o=a,i.x!==e.x?{x:e.x+o*(i.x-e.x),y:e.y+o*(i.y-e.y)}:{x:e.x,y:e.y+(i.y-e.y)*o}),heading:d.heading}})},e.parseRelativeOrAbsoluteValue=function(t){if("string"==typeof t&&-1!==t.indexOf("%"))return{value:parseFloat(t)/100,isInPixels:!1};var e=t?parseFloat(t):0;return{value:e,isInPixels:e>0}},e.computeSegmentHeading=r,e.asRatioToPathLength=i},function(t,e){var n,r,i;n=L.Marker.prototype._initIcon,r=L.Marker.prototype._setPos,i="msTransform"===L.DomUtil.TRANSFORM,L.Marker.addInitHook(function(){var t=this.options.icon&&this.options.icon.options&&this.options.icon.options.iconAnchor;t&&(t=t[0]+"px "+t[1]+"px"),this.options.rotationOrigin=this.options.rotationOrigin||t||"center bottom",this.options.rotationAngle=this.options.rotationAngle||0,this.on("drag",function(t){t.target._applyRotation()})}),L.Marker.include({_initIcon:function(){n.call(this)},_setPos:function(t){r.call(this,t),this._applyRotation()},_applyRotation:function(){this.options.rotationAngle&&(this._icon.style[L.DomUtil.TRANSFORM+"Origin"]=this.options.rotationOrigin,i?this._icon.style[L.DomUtil.TRANSFORM]="rotate("+this.options.rotationAngle+"deg)":this._icon.style[L.DomUtil.TRANSFORM]+=" rotateZ("+this.options.rotationAngle+"deg)")},setRotationAngle:function(t){return this.options.rotationAngle=t,this.update(),this},setRotationOrigin:function(t){return this.options.rotationOrigin=t,this.update(),this}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(22)),o=n(4),a=s(n(15));function s(t){return t&&t.__esModule?t:{default:t}}var u=window.L,c=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r._type=o.JSLayerType.POINT_MARKER_LAYER,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"addMarker",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=u.circleMarker([t._position.y,t._position.x],{radius:t._size/2,color:t._outlineColor,opacity:a.default.getAlphafromCssString(t._outlineColor),weight:t._outlineWidth,fillColor:t._color,fillOpacity:a.default.getAlphafromCssString(t._color),renderer:this._renderer,bubblingMouseEvents:!1});return n.addTo(this._layer),e?t.callback(n):(t._node=n,t._nodeId=n._leaflet_id),n.parent=this,n.parentMarker=t,n.nodeType=o.JSNodeType.POINT_MARKER,t._show||n.setStyle({opacity:0,fillOpacity:0}),t}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(22)),o=n(4),a=(s(n(99)),function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(23)));function s(t){return t&&t.__esModule?t:{default:t}}var u=window.L,c=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r._type=o.JSLayerType.DOM_MARKER_LAYER,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"_getMarkerAnchor",value:function(t){var e=this._pane.parentNode.parentNode,n=document.createElement("div");n.innerHTML=t._content,n.style.position="absolute",e.appendChild(n),n.style.height="auto",n.style.visibility="hidden";var r=n.getBoundingClientRect(),i=r.height,a=r.width;e.removeChild(n);var s=void 0,u=void 0;switch(t._offset){case o.JSControlPosition.RIGHT_TOP:s=0,u=a;break;case o.JSControlPosition.RIGHT_CENTER:s=i/2,u=a;break;case o.JSControlPosition.RIGHT_BOTTOM:s=i,u=a;break;case o.JSControlPosition.LEFT_TOP:s=0,u=0;break;case o.JSControlPosition.LEFT_CENTER:s=i/2,u=0;break;case o.JSControlPosition.LEFT_BOTTOM:s=i,u=0;break;case o.JSControlPosition.CENTER_TOP:s=0,u=a/2;break;case o.JSControlPosition.CENTER:s=i/2,u=a/2;break;case o.JSControlPosition.CENTER_BOTTOM:s=i,u=a/2}var c=t._marginOffset||{x:0,y:0};return[u-c.x,s-c.y]}},{key:"addMarker",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=u.marker([t.position.y,t.position.x],{icon:u.divIcon({html:t._content,iconAnchor:this._getMarkerAnchor(t),iconSize:[0,0]}),pane:this._pane});n.addTo(this._layer),a.removeClass(n._icon,"leaflet-div-icon"),e?t.callback(n):(t._node=n,t._nodeId=n.id),n.parent=this,n.parentMarker=t,n.nodeType=o.JSNodeType.DOM_MARKER,t._show||n.setOpacity(0);var r=this;return t._updateIcon=function(t){t._node.setIcon(u.divIcon({html:t._content,iconAnchor:r._getMarkerAnchor(t),iconSize:[0,0]})),a.removeClass(t._node._icon,"leaflet-div-icon")},t}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.svgCreate=function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)},e.pointsToPath=function(t,e){var n,i,o,a,s,u,c="";for(n=0,o=t.length;n<o;n++){for(s=t[n],i=0,a=s.length;i<a;i++)u=s[i],c+=(i?"L":"M")+u.x+" "+u.y;c+=e?r.svg?"z":"x":""}return c||"M0 0"};var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(53))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addPointerListener=function(t,e,n,o){"touchstart"===e?function(t,e,n){var o=i.bind(function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&r.preventDefault(t),y(t,e)});t["_leaflet_touchstart"+n]=o,t.addEventListener(s,o,!1),f||(document.addEventListener(s,p,!0),document.addEventListener(u,d,!0),document.addEventListener(c,g,!0),document.addEventListener(l,g,!0),f=!0)}(t,n,o):"touchmove"===e?function(t,e,n){var r=function(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||y(t,e)};t["_leaflet_touchmove"+n]=r,t.addEventListener(u,r,!1)}(t,n,o):"touchend"===e&&function(t,e,n){var r=function(t){y(t,e)};t["_leaflet_touchend"+n]=r,t.addEventListener(c,r,!1),t.addEventListener(l,r,!1)}(t,n,o);return this},e.removePointerListener=function(t,e,n){var r=t["_leaflet_"+e+n];"touchstart"===e?t.removeEventListener(s,r,!1):"touchmove"===e?t.removeEventListener(u,r,!1):"touchend"===e&&(t.removeEventListener(c,r,!1),t.removeEventListener(l,r,!1));return this};var r=a(n(66)),i=a(n(52)),o=a(n(53));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}var s=o.msPointer?"MSPointerDown":"pointerdown",u=o.msPointer?"MSPointerMove":"pointermove",c=o.msPointer?"MSPointerUp":"pointerup",l=o.msPointer?"MSPointerCancel":"pointercancel",h={},f=!1;function p(t){h[t.pointerId]=t}function d(t){h[t.pointerId]&&(h[t.pointerId]=t)}function g(t){delete h[t.pointerId]}function y(t,e){for(var n in t.touches=[],h)t.touches.push(h[n]);t.changedTouches=[t],e(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addDoubleTapListener=function(t,e,n){var s,u,c=!1,l=250;function h(t){if(r.pointer){if(!t.isPrimary)return;if("mouse"===t.pointerType)return}else if(t.touches.length>1)return;var e=Date.now(),n=e-(s||e);u=t.touches?t.touches[0]:t,c=n>0&&n<=l,s=e}function f(t){if(c&&!u.cancelBubble){if(r.pointer){if("mouse"===t.pointerType)return;var n,i,o={};for(i in u)n=u[i],o[i]=n&&n.bind?n.bind(u):n;u=o}u.type="dblclick",u.button=0,e(u),s=null}}return t[a+i+n]=h,t[a+o+n]=f,t[a+"dblclick"+n]=e,t.addEventListener(i,h,!!r.passiveEvents&&{passive:!1}),t.addEventListener(o,f,!!r.passiveEvents&&{passive:!1}),t.addEventListener("dblclick",e,!1),this},e.removeDoubleTapListener=function(t,e){var n=t[a+i+e],s=t[a+o+e],u=t[a+"dblclick"+e];return t.removeEventListener(i,n,!!r.passiveEvents&&{passive:!1}),t.removeEventListener(o,s,!!r.passiveEvents&&{passive:!1}),t.removeEventListener("dblclick",u,!1),this};var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(53));var i=r.msPointer?"MSPointerDown":r.pointer?"pointerdown":"touchstart",o=r.msPointer?"MSPointerUp":r.pointer?"pointerup":"touchend",a="_leaflet_"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=u(n(22)),o=n(4),a=(u(n(100)),function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(23))),s=u(n(15));function u(t){return t&&t.__esModule?t:{default:t}}var c=window.L,l=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r._type=o.JSLayerType.ICON_TEXT_MARKER_LAYER,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"_getClientRect",value:function(t){var e=this._pane.parentNode.parentNode,n=t.cloneNode(!0);n.style.position="absolute",n.style.height="auto",e.appendChild(n);var r=n.getBoundingClientRect(),i=r.height,o=r.width;return e.removeChild(n),{height:i,width:o}}},{key:"_getMarkerIcon",value:function(t){var e=document.createElement("div"),n=document.createElement("div");n.innerHTML=t._text;var r=n.style;r.color=t._fontColor,r.textAlign="center",r.font=t._font;var i=t._backgroundColor;s.default.getAlphafromCssString(i)>0&&(r.background=i,r.borderWidth=t._backgroundStrokeWidth+"px",r.borderColor=t._backgroundStrokeColor,r.borderRadius=t._backgroundRadius+"px",r.borderStyle="solid");var u=t._fontStrokeWidth+"px "+t._fontStrokeColor;r["-webkit-text-stroke"]=u,r["-moz-text-stroke"]=u,r["-o-text-stroke"]=u;var c=this._getClientRect(n),l=c.height,h=c.width;r.height=1.1*l+"px",r.width=1.2*h+"px",r.lineHeight=1.1*l+"px";var f=document.createElement("img");f.src=t._image;var p=f.style;switch(p.height=t._imageHeight+"px",p.width=t._imageWidth+"px",t._iconTextType){case o.JSIconTextType.LEFTTEXT_RIGHTICON:e.appendChild(n),e.appendChild(f),a.addClass(e,"jsmap2d-icontext-left-right");break;case o.JSIconTextType.LEFTICON_RIGHTTEXT:e.appendChild(f),e.appendChild(n),a.addClass(e,"jsmap2d-icontext-left-right");break;case o.JSIconTextType.TOPICON_BOTTOMTEXT:e.appendChild(f),e.appendChild(n),a.addClass(e,"jsmap2d-icontext-top-bottom");break;case o.JSIconTextType.TOPTEXT_BOTTOMICON:e.appendChild(n),e.appendChild(f),a.addClass(e,"jsmap2d-icontext-top-bottom")}return{html:e,iconAnchor:this._getMarkerAnchor(e,t._offset)}}},{key:"_getMarkerAnchor",value:function(t,e){var n=this._getClientRect(t),r=n.height,i=n.width,a=void 0,s=void 0;switch(e){case o.JSControlPosition.RIGHT_TOP:a=0,s=i;break;case o.JSControlPosition.RIGHT_CENTER:a=r/2,s=i;break;case o.JSControlPosition.RIGHT_BOTTOM:a=r,s=i;break;case o.JSControlPosition.LEFT_TOP:a=0,s=0;break;case o.JSControlPosition.LEFT_CENTER:a=r/2,s=0;break;case o.JSControlPosition.LEFT_BOTTOM:a=r,s=0;break;case o.JSControlPosition.CENTER_TOP:a=0,s=i/2;break;case o.JSControlPosition.CENTER:a=r/2,s=i/2;break;case o.JSControlPosition.CENTER_BOTTOM:a=r,s=i/2}return[s,a]}},{key:"addMarker",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this._getMarkerIcon(t),r=n.html,i=n.iconAnchor,s=c.marker([t.position.y,t.position.x],{icon:c.divIcon({html:r,iconSize:[0,0],iconAnchor:i}),pane:this._pane});s.addTo(this._layer),a.removeClass(s._icon,"leaflet-div-icon"),e?t.callback(s):(t._node=s,t._nodeId=s._leaflet_id),s.parent=this,s.parentMarker=t,s.nodeType=o.JSNodeType.ICON_TEXT_MARKER;var u=this;return t._updateIcon=function(t){var e=u._getMarkerIcon(t),n=e.html,r=e.iconAnchor;t._node.setIcon(c.divIcon({html:n,iconSize:[0,0],iconAnchor:r})),a.removeClass(t._node._icon,"leaflet-div-icon")},t._show||s.setOpacity(0),t}}]),e}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(22)),o=n(4),a=s(n(15));s(n(67));function s(t){return t&&t.__esModule?t:{default:t}}var u=window.L,c=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r._type=o.JSLayerType.CIRCLE_MARKER_LAYER,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"addMarker",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=a.default.getAlphafromCssString(t._color),r=u.circle([t._position.y,t._position.x],{stroke:!0,radius:t._radius,color:t._color,opacity:n+.2,weight:2,fillColor:t._color,fillOpacity:n,renderer:this._renderer,bubblingMouseEvents:!1});return r.addTo(this._layer),e?t.callback(r):(t._node=r,t._nodeId=r._leaflet_id),r.parent=this,r.parentMarker=t,r.nodeType=o.JSNodeType.CIRCLE_MARKER,t._show||r.setStyle({opacity:0,fillOpacity:0}),t}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(22)),o=n(4),a=s(n(15));s(n(68));function s(t){return t&&t.__esModule?t:{default:t}}var u=window.L,c=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r._type=o.JSLayerType.RECTANGLE_MARKER_LAYER,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"addMarker",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t._position,r=n.west,i=n.east,s=n.north,c=n.south,l=u.rectangle([[c,r],[s,i]],{stroke:!0,color:t._strokeColor,opacity:a.default.getAlphafromCssString(t._strokeColor),weight:2,fillColor:t._color,fillOpacity:a.default.getAlphafromCssString(t._color),renderer:this._renderer,bubblingMouseEvents:!1});return l.addTo(this._layer),e?t.callback(l):(t._node=l,t._nodeId=l._leaflet_id),l.parent=this,l.parentMarker=t,l.nodeType=o.JSNodeType.RECTANGLE_MARKER,t._show||l.setStyle({opacity:0,fillOpacity:0}),t}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=P(n(395)),i=P(n(191)),o=P(n(396)),a=P(n(39)),s=P(n(397)),u=P(n(398)),c=P(n(13)),l=P(n(6)),h=P(n(16)),f=P(n(399)),p=P(n(400)),d=P(n(401)),g=P(n(192)),y=P(n(402)),v=P(n(193)),m=P(n(403)),_=P(n(404)),b=P(n(405)),w=P(n(406)),E=P(n(408)),x=P(n(410)),O=P(n(101)),M=P(n(412)),S=P(n(413));function P(t){return t&&t.__esModule?t:{default:t}}var C,T=function(){try{var t=new XMLHttpRequest;return t.open("GET","#",!0),t.responseType="blob","blob"===t.responseType}catch(t){return!1}}();function I(t,e,n,r){var i,o=t.query;if(!(0,l.default)(o)||0===o.length)return{};if(-1===o.indexOf("=")){var a={};a[o]=void 0,i=a}else i=(0,b.default)(o);e._queryParameters=n?N(i,e._queryParameters,r):i,t.query=void 0}function L(t,e){return(0,l.default)(t)?(0,l.default)(t.clone)?t.clone():(0,s.default)(t):e}function A(t){if(t.state===O.default.ISSUED||t.state===O.default.ACTIVE)throw new M.default("The Resource is already being fetched.");t.state=O.default.UNISSUED,t.deferred=void 0}function N(t,e,n){if(!n)return(0,u.default)(t,e);var r=(0,s.default)(t,!0);for(var i in e)if(e.hasOwnProperty(i)){var o=r[i],a=e[i];(0,l.default)(o)?(Array.isArray(o)||(o=r[i]=[o]),r[i]=o.concat(a)):r[i]=Array.isArray(a)?a.slice():a}return r}function k(t){"string"==typeof(t=(0,c.default)(t,c.default.EMPTY_OBJECT))&&(t={url:t}),a.default.typeOf.string("options.url",t.url),this._url=void 0,this._templateValues=L(t.templateValues,{}),this._queryParameters=L(t.queryParameters,{}),this.headers=L(t.headers,{}),this.request=(0,c.default)(t.request,new w.default),this.proxy=t.proxy,this.retryCallback=t.retryCallback,this.retryAttempts=(0,c.default)(t.retryAttempts,0),this._retryCount=0;var e=new r.default(t.url);I(e,this,!0,!0),e.fragment=void 0,this._url=e.toString()}function j(t){var e=t.resource,n=t.flipY,r=t.preferImageBitmap,o=e.request;o.url=e.url,o.requestFunction=function(){var t=!1;e.isDataUri||e.isBlobUri||(t=e.isCrossOriginUrl);var a=i.default.defer();return k._Implementations.createImage(o,t,a,n,r),a.promise};var a=x.default.request(o);if((0,l.default)(a))return a.otherwise(function(t){return o.state!==O.default.FAILED?i.default.reject(t):e.retryOnError(t).then(function(a){return a?(o.state=O.default.UNISSUED,o.deferred=void 0,j({resource:e,flipY:n,preferImageBitmap:r})):i.default.reject(t)})})}k.createIfNeeded=function(t){return t instanceof k?t.getDerivedResource({request:t.request}):"string"!=typeof t?t:new k({url:t})},k.supportsImageBitmapOptions=function(){if((0,l.default)(C))return C;if("function"!=typeof createImageBitmap)return C=i.default.resolve(!1);return C=k.fetchBlob({url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWP4////fwAJ+wP9CNHoHgAAAABJRU5ErkJggg=="}).then(function(t){return createImageBitmap(t,{imageOrientation:"flipY",premultiplyAlpha:"none"})}).then(function(){return!0}).otherwise(function(){return!1})},Object.defineProperties(k,{isBlobSupported:{get:function(){return T}}}),Object.defineProperties(k.prototype,{queryParameters:{get:function(){return this._queryParameters}},templateValues:{get:function(){return this._templateValues}},url:{get:function(){return this.getUrlComponent(!0,!0)},set:function(t){var e=new r.default(t);I(e,this,!1),e.fragment=void 0,this._url=e.toString()}},extension:{get:function(){return(0,d.default)(this._url)}},isDataUri:{get:function(){return(0,v.default)(this._url)}},isBlobUri:{get:function(){return(0,g.default)(this._url)}},isCrossOriginUrl:{get:function(){return(0,y.default)(this._url)}},hasHeaders:{get:function(){return Object.keys(this.headers).length>0}}}),k.prototype.toString=function(){return this.getUrlComponent(!0,!0)},k.prototype.getUrlComponent=function(t,e){if(this.isDataUri)return this._url;var n=new r.default(this._url);t&&function(t,e){var n=e._queryParameters,r=Object.keys(n);1!==r.length||(0,l.default)(n[r[0]])?t.query=(0,_.default)(n):t.query=r[0]}(n,this);var i=n.toString().replace(/%7B/g,"{").replace(/%7D/g,"}"),o=this._templateValues;return i=i.replace(/{(.*?)}/g,function(t,e){var n=o[e];return(0,l.default)(n)?encodeURIComponent(n):t}),e&&(0,l.default)(this.proxy)&&(i=this.proxy.getURL(i)),i},k.prototype.setQueryParameters=function(t,e){this._queryParameters=e?N(this._queryParameters,t,!1):N(t,this._queryParameters,!1)},k.prototype.appendQueryParameters=function(t){this._queryParameters=N(t,this._queryParameters,!0)},k.prototype.setTemplateValues=function(t,e){this._templateValues=e?(0,u.default)(this._templateValues,t):(0,u.default)(t,this._templateValues)},k.prototype.getDerivedResource=function(t){var e=this.clone();if(e._retryCount=0,(0,l.default)(t.url)){var n=new r.default(t.url);I(n,e,!0,(0,c.default)(t.preserveQueryParameters,!1)),n.fragment=void 0,e._url=n.resolve(new r.default((0,f.default)(this._url))).toString()}return(0,l.default)(t.queryParameters)&&(e._queryParameters=(0,u.default)(t.queryParameters,e._queryParameters)),(0,l.default)(t.templateValues)&&(e._templateValues=(0,u.default)(t.templateValues,e.templateValues)),(0,l.default)(t.headers)&&(e.headers=(0,u.default)(t.headers,e.headers)),(0,l.default)(t.proxy)&&(e.proxy=t.proxy),(0,l.default)(t.request)&&(e.request=t.request),(0,l.default)(t.retryCallback)&&(e.retryCallback=t.retryCallback),(0,l.default)(t.retryAttempts)&&(e.retryAttempts=t.retryAttempts),e},k.prototype.retryOnError=function(t){var e=this.retryCallback;if("function"!=typeof e||this._retryCount>=this.retryAttempts)return(0,i.default)(!1);var n=this;return(0,i.default)(e(this,t)).then(function(t){return++n._retryCount,t})},k.prototype.clone=function(t){return(0,l.default)(t)||(t=new k({url:this._url})),t._url=this._url,t._queryParameters=(0,s.default)(this._queryParameters),t._templateValues=(0,s.default)(this._templateValues),t.headers=(0,s.default)(this.headers),t.proxy=this.proxy,t.retryCallback=this.retryCallback,t.retryAttempts=this.retryAttempts,t._retryCount=0,t.request=this.request.clone(),t},k.prototype.getBaseUri=function(t){return(0,p.default)(this.getUrlComponent(t),t)},k.prototype.appendForwardSlash=function(){this._url=(0,o.default)(this._url)},k.prototype.fetchArrayBuffer=function(){return this.fetch({responseType:"arraybuffer"})},k.fetchArrayBuffer=function(t){return new k(t).fetchArrayBuffer()},k.prototype.fetchBlob=function(){return this.fetch({responseType:"blob"})},k.fetchBlob=function(t){return new k(t).fetchBlob()},k.prototype.fetchImage=function(t){t=(0,c.default)(t,c.default.EMPTY_OBJECT);var e=(0,c.default)(t.preferImageBitmap,!1),n=(0,c.default)(t.preferBlob,!1),r=(0,c.default)(t.flipY,!1);if(A(this.request),!T||this.isDataUri||this.isBlobUri||!this.hasHeaders&&!n)return j({resource:this,flipY:r,preferImageBitmap:e});var o,a,s,u=this.fetchBlob();return(0,l.default)(u)?k.supportsImageBitmapOptions().then(function(t){return o=t&&e,u}).then(function(t){if((0,l.default)(t)){if(s=t,o)return k.createImageBitmapFromBlob(t,{flipY:r,premultiplyAlpha:!1});var e=window.URL.createObjectURL(t);return j({resource:a=new k({url:e}),flipY:r,preferImageBitmap:!1})}}).then(function(t){if((0,l.default)(t))return t.blob=s,o?t:(window.URL.revokeObjectURL(a.url),t)}).otherwise(function(t){return(0,l.default)(a)&&window.URL.revokeObjectURL(a.url),t.blob=s,i.default.reject(t)}):void 0},k.fetchImage=function(t){return new k(t).fetchImage({flipY:t.flipY,preferBlob:t.preferBlob,preferImageBitmap:t.preferImageBitmap})},k.prototype.fetchText=function(){return this.fetch({responseType:"text"})},k.fetchText=function(t){return new k(t).fetchText()},k.prototype.fetchJson=function(){var t=this.fetch({responseType:"text",headers:{Accept:"application/json,*/*;q=0.01"}});if((0,l.default)(t))return t.then(function(t){if((0,l.default)(t))return JSON.parse(t)})},k.fetchJson=function(t){return new k(t).fetchJson()},k.prototype.fetchXML=function(){return this.fetch({responseType:"document",overrideMimeType:"text/xml"})},k.fetchXML=function(t){return new k(t).fetchXML()},k.prototype.fetchJsonp=function(t){var e;t=(0,c.default)(t,"callback"),A(this.request);do{e="loadJsonp"+Math.random().toString().substring(2,8)}while((0,l.default)(window[e]));return function t(e,n,r){var o={};o[n]=r;e.setQueryParameters(o);var a=e.request;a.url=e.url;a.requestFunction=function(){var t=i.default.defer();return window[r]=function(e){t.resolve(e);try{delete window[r]}catch(t){window[r]=void 0}},k._Implementations.loadAndExecuteScript(e.url,r,t),t.promise};var s=x.default.request(a);if(!(0,l.default)(s))return;return s.otherwise(function(o){return a.state!==O.default.FAILED?i.default.reject(o):e.retryOnError(o).then(function(s){return s?(a.state=O.default.UNISSUED,a.deferred=void 0,t(e,n,r)):i.default.reject(o)})})}(this,t,e)},k.fetchJsonp=function(t){return new k(t).fetchJsonp(t.callbackParameterName)},k.prototype._makeRequest=function(t){var e=this;A(e.request);var n=e.request;n.url=e.url,n.requestFunction=function(){var r=t.responseType,o=(0,u.default)(t.headers,e.headers),a=t.overrideMimeType,s=t.method,c=t.data,h=i.default.defer(),f=k._Implementations.loadWithXhr(e.url,r,s,c,o,h,a);return(0,l.default)(f)&&(0,l.default)(f.abort)&&(n.cancelFunction=function(){f.abort()}),h.promise};var r=x.default.request(n);if((0,l.default)(r))return r.then(function(t){return n.cancelFunction=void 0,t}).otherwise(function(r){return n.cancelFunction=void 0,n.state!==O.default.FAILED?i.default.reject(r):e.retryOnError(r).then(function(o){return o?(n.state=O.default.UNISSUED,n.deferred=void 0,e.fetch(t)):i.default.reject(r)})})};var R=/^data:(.*?)(;base64)?,(.*)$/;function D(t,e){var n=decodeURIComponent(e);return t?atob(n):n}function F(t,e){for(var n=D(t,e),r=new ArrayBuffer(n.length),i=new Uint8Array(r),o=0;o<n.length;o++)i[o]=n.charCodeAt(o);return r}function z(t,e){switch(e){case"text":return t.toString("utf8");case"json":return JSON.parse(t.toString("utf8"));default:return new Uint8Array(t).buffer}}k.prototype.fetch=function(t){return(t=L(t,{})).method="GET",this._makeRequest(t)},k.fetch=function(t){return new k(t).fetch({responseType:t.responseType,overrideMimeType:t.overrideMimeType})},k.prototype.delete=function(t){return(t=L(t,{})).method="DELETE",this._makeRequest(t)},k.delete=function(t){return new k(t).delete({responseType:t.responseType,overrideMimeType:t.overrideMimeType,data:t.data})},k.prototype.head=function(t){return(t=L(t,{})).method="HEAD",this._makeRequest(t)},k.head=function(t){return new k(t).head({responseType:t.responseType,overrideMimeType:t.overrideMimeType})},k.prototype.options=function(t){return(t=L(t,{})).method="OPTIONS",this._makeRequest(t)},k.options=function(t){return new k(t).options({responseType:t.responseType,overrideMimeType:t.overrideMimeType})},k.prototype.post=function(t,e){return a.default.defined("data",t),(e=L(e,{})).method="POST",e.data=t,this._makeRequest(e)},k.post=function(t){return new k(t).post(t.data,{responseType:t.responseType,overrideMimeType:t.overrideMimeType})},k.prototype.put=function(t,e){return a.default.defined("data",t),(e=L(e,{})).method="PUT",e.data=t,this._makeRequest(e)},k.put=function(t){return new k(t).put(t.data,{responseType:t.responseType,overrideMimeType:t.overrideMimeType})},k.prototype.patch=function(t,e){return a.default.defined("data",t),(e=L(e,{})).method="PATCH",e.data=t,this._makeRequest(e)},k.patch=function(t){return new k(t).patch(t.data,{responseType:t.responseType,overrideMimeType:t.overrideMimeType})},k._Implementations={},k._Implementations.createImage=function(t,e,n,r,o){var a=t.url;k.supportsImageBitmapOptions().then(function(s){if(s&&o){var u=i.default.defer(),c=k._Implementations.loadWithXhr(a,"blob","GET",void 0,void 0,u,void 0,void 0,void 0);return(0,l.default)(c)&&(0,l.default)(c.abort)&&(t.cancelFunction=function(){c.abort()}),u.promise.then(function(t){if((0,l.default)(t))return k.createImageBitmapFromBlob(t,{flipY:r,premultiplyAlpha:!1});n.reject(new M.default("Successfully retrieved "+a+" but it contained no content."))}).then(n.resolve)}!function(t,e,n){var r=new Image;r.onload=function(){n.resolve(r)},r.onerror=function(t){n.reject(t)},e&&(S.default.contains(t)?r.crossOrigin="use-credentials":r.crossOrigin=""),r.src=t}(a,e,n)}).otherwise(n.reject)},k.createImageBitmapFromBlob=function(t,e){return a.default.defined("options",e),a.default.typeOf.bool("options.flipY",e.flipY),a.default.typeOf.bool("options.premultiplyAlpha",e.premultiplyAlpha),createImageBitmap(t,{imageOrientation:e.flipY?"flipY":"none",premultiplyAlpha:e.premultiplyAlpha?"premultiply":"none"})};var B="undefined"==typeof XMLHttpRequest;k._Implementations.loadWithXhr=function(t,e,r,i,o,a,s){var u=R.exec(t);if(null===u){if(!B){var f=new XMLHttpRequest;if(S.default.contains(t)&&(f.withCredentials=!0),f.open(r,t,!0),(0,l.default)(s)&&(0,l.default)(f.overrideMimeType)&&f.overrideMimeType(s),(0,l.default)(o))for(var p in o)o.hasOwnProperty(p)&&f.setRequestHeader(p,o[p]);(0,l.default)(e)&&(f.responseType=e);var d=!1;return"string"==typeof t&&(d=0===t.indexOf("file://")||"undefined"!=typeof window&&"file://"===window.location.origin),f.onload=function(){if(!(f.status<200||f.status>=300)||d&&0===f.status){var t=f.response,n=f.responseType;if("HEAD"===r||"OPTIONS"===r){var i={};return f.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(function(t){var e=t.split(": "),n=e.shift();i[n]=e.join(": ")}),void a.resolve(i)}if(204===f.status)a.resolve();else if(!(0,l.default)(t)||(0,l.default)(e)&&n!==e)if("json"===e&&"string"==typeof t)try{a.resolve(JSON.parse(t))}catch(t){a.reject(t)}else(""===n||"document"===n)&&(0,l.default)(f.responseXML)&&f.responseXML.hasChildNodes()?a.resolve(f.responseXML):""!==n&&"text"!==n||!(0,l.default)(f.responseText)?a.reject(new M.default("Invalid XMLHttpRequest response type.")):a.resolve(f.responseText);else a.resolve(t)}else a.reject(new E.default(f.status,f.response,f.getAllResponseHeaders()))},f.onerror=function(){a.reject(new E.default)},f.send(i),f}!function(t,e,r,i,o,a,s){var u=n(414).parse(t),c=(u.protocol,n(103)),l=n(103),h={protocol:u.protocol,hostname:u.hostname,port:u.port,path:u.path,query:u.query,method:r,headers:o};c.request(h).on("response",function(t){if(t.statusCode<200||t.statusCode>=300)a.reject(new E.default(t.statusCode,t,t.headers));else{var n=[];t.on("data",function(t){n.push(t)}),t.on("end",function(){var r=Buffer.concat(n);"gzip"===t.headers["content-encoding"]?l.gunzip(r,function(t,n){t?a.reject(new M.default("Error decompressing response.")):a.resolve(z(n,e))}):a.resolve(z(r,e))})}}).on("error",function(){a.reject(new E.default)}).end()}(t,e,r,0,o,a)}else a.resolve(function(t,e){e=(0,c.default)(e,"");var n=t[1],r=!!t[2],i=t[3];switch(e){case"":case"text":return D(r,i);case"arraybuffer":return F(r,i);case"blob":var o=F(r,i);return new Blob([o],{type:n});case"document":return(new DOMParser).parseFromString(D(r,i),n);case"json":return JSON.parse(D(r,i));default:throw new h.default("Unhandled responseType: "+e)}}(u,e))},k._Implementations.loadAndExecuteScript=function(t,e,n){return(0,m.default)(t,e).otherwise(n.reject)},k._DefaultImplementations={},k._DefaultImplementations.createImage=k._Implementations.createImage,k._DefaultImplementations.loadWithXhr=k._Implementations.loadWithXhr,k._DefaultImplementations.loadAndExecuteScript=k._Implementations.loadAndExecuteScript,k.DEFAULT=Object.freeze(new k({url:"undefined"==typeof document?"":document.location.href.split("?")[0]})),e.default=k},function(t,e,n){"use strict";function r(t){if(t instanceof r)this.scheme=t.scheme,this.authority=t.authority,this.path=t.path,this.query=t.query,this.fragment=t.fragment;else if(t){var e=i.exec(t);this.scheme=e[1],this.authority=e[2],this.path=e[3],this.query=e[4],this.fragment=e[5]}}Object.defineProperty(e,"__esModule",{value:!0}),r.prototype.scheme=null,r.prototype.authority=null,r.prototype.path="",r.prototype.query=null,r.prototype.fragment=null;var i=new RegExp("^(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*)(?:\\?([^#]*))?(?:#(.*))?$");r.prototype.getScheme=function(){return this.scheme},r.prototype.getAuthority=function(){return this.authority},r.prototype.getPath=function(){return this.path},r.prototype.getQuery=function(){return this.query},r.prototype.getFragment=function(){return this.fragment},r.prototype.isAbsolute=function(){return!!this.scheme&&!this.fragment},r.prototype.isSameDocumentAs=function(t){return t.scheme==this.scheme&&t.authority==this.authority&&t.path==this.path&&t.query==this.query},r.prototype.equals=function(t){return this.isSameDocumentAs(t)&&t.fragment==this.fragment},r.prototype.normalize=function(){this.removeDotSegments(),this.scheme&&(this.scheme=this.scheme.toLowerCase()),this.authority&&(this.authority=this.authority.replace(s,c).replace(o,u)),this.path&&(this.path=this.path.replace(o,u)),this.query&&(this.query=this.query.replace(o,u)),this.fragment&&(this.fragment=this.fragment.replace(o,u))};var o=/%[0-9a-z]{2}/gi,a=/[a-zA-Z0-9\-\._~]/,s=/(.*@)?([^@:]*)(:.*)?/;function u(t){var e=unescape(t);return a.test(e)?e:t.toUpperCase()}function c(t,e,n,r){return(e||"")+n.toLowerCase()+(r||"")}r.prototype.resolve=function(t){var e=new r;return this.scheme?(e.scheme=this.scheme,e.authority=this.authority,e.path=this.path,e.query=this.query):(e.scheme=t.scheme,this.authority?(e.authority=this.authority,e.path=this.path,e.query=this.query):(e.authority=t.authority,""==this.path?(e.path=t.path,e.query=this.query||t.query):("/"==this.path.charAt(0)?(e.path=this.path,e.removeDotSegments()):(t.authority&&""==t.path?e.path="/"+this.path:e.path=t.path.substring(0,t.path.lastIndexOf("/")+1)+this.path,e.removeDotSegments()),e.query=this.query))),e.fragment=this.fragment,e},r.prototype.removeDotSegments=function(){var t,e=this.path.split("/"),n=[],r=""==e[0];r&&e.shift();for(""==e[0]&&e.shift();e.length;)".."==(t=e.shift())?n.pop():"."!=t&&n.push(t);"."!=t&&".."!=t||n.push(""),r&&n.unshift(""),this.path=n.join("/")},r.prototype.toString=function(){var t="";return this.scheme&&(t+=this.scheme+":"),this.authority&&(t+="//"+this.authority),t+=this.path,this.query&&(t+="?"+this.query),this.fragment&&(t+="#"+this.fragment),t},e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return 0!==t.length&&"/"===t[t.length-1]||(t+="/"),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(13),a=(r=o)&&r.__esModule?r:{default:r};e.default=function t(e,n){if(null===e||"object"!==(void 0===e?"undefined":i(e)))return e;n=(0,a.default)(n,!1);var r=new e.constructor;for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];n&&(s=t(s,n)),r[o]=s}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=a(n(13)),o=a(n(6));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function t(e,n,a){a=(0,i.default)(a,!1);var s,u,c,l={},h=(0,o.default)(e),f=(0,o.default)(n);if(h)for(s in e)e.hasOwnProperty(s)&&(u=e[s],f&&a&&"object"===(void 0===u?"undefined":r(u))&&n.hasOwnProperty(s)&&"object"===(void 0===(c=n[s])?"undefined":r(c))?l[s]=t(u,c,a):l[s]=u);if(f)for(s in n)n.hasOwnProperty(s)&&!l.hasOwnProperty(s)&&(c=n[s],l[s]=c);return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(54)),i=s(n(13)),o=s(n(6)),a=s(n(16));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){var n;return"undefined"!=typeof document&&(n=document),u._implementation(t,e,n)}u._implementation=function(t,e,n){if(!(0,o.default)(t))throw new a.default("relative uri is required.");if(!(0,o.default)(e)){if(void 0===n)return t;e=(0,i.default)(n.baseURI,n.location.href)}var s=new r.default(e);return new r.default(t).resolve(s).toString()},e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(54)),i=a(n(6)),o=a(n(16));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if(!(0,i.default)(t))throw new o.default("uri is required.");var n="",a=t.lastIndexOf("/");return-1!==a&&(n=t.substring(0,a+1)),e?(t=new r.default(t),(0,i.default)(t.query)&&(n+="?"+t.query),(0,i.default)(t.fragment)&&(n+="#"+t.fragment),n):n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(54)),i=a(n(6)),o=a(n(16));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){if(!(0,i.default)(t))throw new o.default("uri is required.");var e=new r.default(t);e.normalize();var n=e.path,a=n.lastIndexOf("/");return-1!==a&&(n=n.substr(a+1)),n=-1===(a=n.lastIndexOf("."))?"":n.substr(a+1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i,o=n(6),a=(r=o)&&r.__esModule?r:{default:r};e.default=function(t){(0,a.default)(i)||(i=document.createElement("a")),i.href=window.location.href;var e=i.host,n=i.protocol;return i.href=t,i.href=i.href,n!==i.protocol||e!==i.host}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(194),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t){var e=o.default.defer(),n=document.createElement("script");n.async=!0,n.src=t;var r=document.getElementsByTagName("head")[0];return n.onload=function(){n.onload=void 0,r.removeChild(n),e.resolve()},n.onerror=function(t){e.reject(t)},r.appendChild(n),e.promise}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(6)),i=o(n(16));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){if(!(0,r.default)(t))throw new i.default("obj is required.");var e="";for(var n in t)if(t.hasOwnProperty(n)){var o=t[n],a=encodeURIComponent(n)+"=";if(Array.isArray(o))for(var s=0,u=o.length;s<u;++s)e+=a+encodeURIComponent(o[s])+"&";else e+=a+encodeURIComponent(o)+"&"}return e=e.slice(0,-1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(6)),i=o(n(16));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){if(!(0,r.default)(t))throw new i.default("queryString is required.");var e={};if(""===t)return e;for(var n=t.replace(/\+/g,"%20").split(/[&;]/),o=0,a=n.length;o<a;++o){var s=n[o].split("="),u=decodeURIComponent(s[0]),c=s[1];c=(0,r.default)(c)?decodeURIComponent(c):"";var l=e[u];"string"==typeof l?e[u]=[l,c]:Array.isArray(l)?l.push(c):e[u]=c}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(13)),i=s(n(6)),o=s(n(101)),a=s(n(407));function s(t){return t&&t.__esModule?t:{default:t}}function u(t){t=(0,r.default)(t,r.default.EMPTY_OBJECT);var e=(0,r.default)(t.throttleByServer,!1),n=(0,r.default)(t.throttle,!1);this.url=t.url,this.requestFunction=t.requestFunction,this.cancelFunction=t.cancelFunction,this.priorityFunction=t.priorityFunction,this.priority=(0,r.default)(t.priority,0),this.throttle=n,this.throttleByServer=e,this.type=(0,r.default)(t.type,a.default.OTHER),this.serverKey=void 0,this.state=o.default.UNISSUED,this.deferred=void 0,this.cancelled=!1}u.prototype.cancel=function(){this.cancelled=!0},u.prototype.clone=function(t){return(0,i.default)(t)?(t.url=this.url,t.requestFunction=this.requestFunction,t.cancelFunction=this.cancelFunction,t.priorityFunction=this.priorityFunction,t.priority=this.priority,t.throttle=this.throttle,t.throttleByServer=this.throttleByServer,t.type=this.type,t.serverKey=this.serverKey,t.state=this.RequestState.UNISSUED,t.deferred=void 0,t.cancelled=!1,t):new u(this)},e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=Object.freeze({TERRAIN:0,IMAGERY:1,TILES3D:2,OTHER:3})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(6)),i=o(n(409));function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e,n){this.statusCode=t,this.response=e,this.responseHeaders=n,"string"==typeof this.responseHeaders&&(this.responseHeaders=(0,i.default)(this.responseHeaders))}a.prototype.toString=function(){var t="Request has failed.";return(0,r.default)(this.statusCode)&&(t+=" Status Code: "+this.statusCode),t},e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e={};if(!t)return e;for(var n=t.split("\r\n"),r=0;r<n.length;++r){var i=n[r],o=i.indexOf(": ");if(o>0){var a=i.substring(0,o),s=i.substring(o+2);e[a]=s}}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=p(n(54)),i=p(n(194)),o=p(n(39)),a=p(n(13)),s=p(n(6)),u=p(n(195)),c=p(n(411)),l=p(n(192)),h=p(n(193)),f=p(n(101));function p(t){return t&&t.__esModule?t:{default:t}}var d={numberOfAttemptedRequests:0,numberOfActiveRequests:0,numberOfCancelledRequests:0,numberOfCancelledActiveRequests:0,numberOfFailedRequests:0,numberOfActiveRequestsEver:0,lastNumberOfActiveRequests:0},g=20,y=new c.default({comparator:function(t,e){return t.priority-e.priority}});y.maximumLength=g,y.reserve(g);var v=[],m={},_="undefined"!=typeof document?new r.default(document.location.href):new r.default,b=new u.default;function w(){}function E(t){(0,s.default)(t.priorityFunction)&&(t.priority=t.priorityFunction())}function x(t){var e=(0,a.default)(w.requestsByServer[t],w.maximumRequestsPerServer);return m[t]<e}function O(t){return t.state===f.default.UNISSUED&&(t.state=f.default.ISSUED,t.deferred=i.default.defer()),t.deferred.promise}function M(t){var e=O(t);return t.state=f.default.ACTIVE,v.push(t),++d.numberOfActiveRequests,++d.numberOfActiveRequestsEver,++m[t.serverKey],t.requestFunction().then(function(t){return function(e){if(t.state!==f.default.CANCELLED){var n=t.deferred;--d.numberOfActiveRequests,--m[t.serverKey],b.raiseEvent(),t.state=f.default.RECEIVED,t.deferred=void 0,n.resolve(e)}}}(t)).otherwise(function(t){return function(e){t.state!==f.default.CANCELLED&&(++d.numberOfFailedRequests,--d.numberOfActiveRequests,--m[t.serverKey],b.raiseEvent(e),t.state=f.default.FAILED,t.deferred.reject(e))}}(t)),e}function S(t){var e=t.state===f.default.ACTIVE;if(t.state=f.default.CANCELLED,++d.numberOfCancelledRequests,(0,s.default)(t.deferred)){var n=t.deferred;t.deferred=void 0,n.reject()}e&&(--d.numberOfActiveRequests,--m[t.serverKey],++d.numberOfCancelledActiveRequests),(0,s.default)(t.cancelFunction)&&t.cancelFunction()}w.maximumRequests=50,w.maximumRequestsPerServer=6,w.requestsByServer={"api.cesium.com:443":18,"assets.cesium.com:443":18},w.throttleRequests=!0,w.debugShowStatistics=!1,w.requestCompletedEvent=b,Object.defineProperties(w,{statistics:{get:function(){return d}},priorityHeapLength:{get:function(){return g},set:function(t){if(t<g)for(;y.length>t;){S(y.pop())}g=t,y.maximumLength=t,y.reserve(t)}}}),w.update=function(){var t,e,n=0,r=v.length;for(t=0;t<r;++t)(e=v[t]).cancelled&&S(e),e.state===f.default.ACTIVE?n>0&&(v[t-n]=e):++n;v.length-=n;var i=y.internalArray,o=y.length;for(t=0;t<o;++t)E(i[t]);y.resort();for(var a=Math.max(w.maximumRequests-v.length,0),s=0;s<a&&y.length>0;)(e=y.pop()).cancelled?S(e):!e.throttleByServer||x(e.serverKey)?(M(e),++s):S(e);!function(){if(!w.debugShowStatistics)return;0===d.numberOfActiveRequests&&d.lastNumberOfActiveRequests>0&&(d.numberOfAttemptedRequests>0&&(console.log("Number of attempted requests: "+d.numberOfAttemptedRequests),d.numberOfAttemptedRequests=0),d.numberOfCancelledRequests>0&&(console.log("Number of cancelled requests: "+d.numberOfCancelledRequests),d.numberOfCancelledRequests=0),d.numberOfCancelledActiveRequests>0&&(console.log("Number of cancelled active requests: "+d.numberOfCancelledActiveRequests),d.numberOfCancelledActiveRequests=0),d.numberOfFailedRequests>0&&(console.log("Number of failed requests: "+d.numberOfFailedRequests),d.numberOfFailedRequests=0));d.lastNumberOfActiveRequests=d.numberOfActiveRequests}()},w.getServerKey=function(t){o.default.typeOf.string("url",t);var e=new r.default(t).resolve(_);e.normalize();var n=e.authority;/:/.test(n)||(n=n+":"+("https"===e.scheme?"443":"80"));var i=m[n];return(0,s.default)(i)||(m[n]=0),n},w.request=function(t){if(o.default.typeOf.object("request",t),o.default.typeOf.string("request.url",t.url),o.default.typeOf.func("request.requestFunction",t.requestFunction),(0,h.default)(t.url)||(0,l.default)(t.url))return b.raiseEvent(),t.state=f.default.RECEIVED,t.requestFunction();if(++d.numberOfAttemptedRequests,(0,s.default)(t.serverKey)||(t.serverKey=w.getServerKey(t.url)),!w.throttleRequests||!t.throttleByServer||x(t.serverKey)){if(!w.throttleRequests||!t.throttle)return M(t);if(!(v.length>=w.maximumRequests)){E(t);var e=y.insert(t);if((0,s.default)(e)){if(e===t)return;S(e)}return O(t)}}},w.clearForSpecs=function(){for(;y.length>0;){S(y.pop())}for(var t=v.length,e=0;e<t;++e)S(v[e]);v.length=0,m={},d.numberOfAttemptedRequests=0,d.numberOfActiveRequests=0,d.numberOfCancelledRequests=0,d.numberOfCancelledActiveRequests=0,d.numberOfFailedRequests=0,d.numberOfActiveRequestsEver=0,d.lastNumberOfActiveRequests=0},w.numberOfActiveRequestsByServer=function(t){return m[t]},w.requestHeap=y,e.default=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(39)),i=a(n(13)),o=a(n(6));function a(t){return t&&t.__esModule?t:{default:t}}function s(t){r.default.typeOf.object("options",t),r.default.defined("options.comparator",t.comparator),this._comparator=t.comparator,this._array=[],this._length=0,this._maximumLength=void 0}function u(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}Object.defineProperties(s.prototype,{length:{get:function(){return this._length}},internalArray:{get:function(){return this._array}},maximumLength:{get:function(){return this._maximumLength},set:function(t){r.default.typeOf.number.greaterThanOrEquals("maximumLength",t,0);var e=this._length;if(t<e){for(var n=this._array,i=t;i<e;++i)n[i]=void 0;this._length=t,n.length=t}this._maximumLength=t}},comparator:{get:function(){return this._comparator}}}),s.prototype.reserve=function(t){t=(0,i.default)(t,this._length),this._array.length=t},s.prototype.heapify=function(t){t=(0,i.default)(t,0);for(var e=this._length,n=this._comparator,r=this._array,o=-1,a=!0;a;){var s=2*(t+1),c=s-1;o=c<e&&n(r[c],r[t])<0?c:t,s<e&&n(r[s],r[o])<0&&(o=s),o!==t?(u(r,o,t),t=o):a=!1}},s.prototype.resort=function(){for(var t=this._length,e=Math.ceil(t/2);e>=0;--e)this.heapify(e)},s.prototype.insert=function(t){r.default.defined("element",t);var e,n=this._array,i=this._comparator,a=this._maximumLength,s=this._length++;for(s<n.length?n[s]=t:n.push(t);0!==s;){var c=Math.floor((s-1)/2);if(!(i(n[s],n[c])<0))break;u(n,s,c),s=c}return(0,o.default)(a)&&this._length>a&&(e=n[a],this._length=a),e},s.prototype.pop=function(t){if(t=(0,i.default)(t,0),0!==this._length){r.default.typeOf.number.lessThan("index",t,this._length);var e=this._array,n=e[t];return u(e,t,--this._length),this.heapify(t),e[this._length]=void 0,n}},e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(6),o=(r=i)&&r.__esModule?r:{default:r};function a(t){var e;this.name="RuntimeError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}(0,o.default)(Object.create)&&(a.prototype=Object.create(Error.prototype),a.prototype.constructor=a),a.prototype.toString=function(){var t=this.name+": "+this.message;return(0,o.default)(this.stack)&&(t+="\n"+this.stack.toString()),t},e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(54)),i=a(n(6)),o=a(n(16));function a(t){return t&&t.__esModule?t:{default:t}}var s={},u={};s.add=function(t,e){if(!(0,i.default)(t))throw new o.default("host is required.");if(!(0,i.default)(e)||e<=0)throw new o.default("port is required to be greater than 0.");var n=t.toLowerCase()+":"+e;(0,i.default)(u[n])||(u[n]=!0)},s.remove=function(t,e){if(!(0,i.default)(t))throw new o.default("host is required.");if(!(0,i.default)(e)||e<=0)throw new o.default("port is required to be greater than 0.");var n=t.toLowerCase()+":"+e;(0,i.default)(u[n])&&delete u[n]},s.contains=function(t){if(!(0,i.default)(t))throw new o.default("url is required.");var e=function(t){var e=new r.default(t);e.normalize();var n=e.getAuthority();if((0,i.default)(n)){if(-1!==n.indexOf("@")&&(n=n.split("@")[1]),-1===n.indexOf(":")){var o=e.getScheme();if((0,i.default)(o)||(o=(o=window.location.protocol).substring(0,o.length-1)),"http"===o)n+=":80";else{if("https"!==o)return;n+=":443"}}return n}}(t);return!(!(0,i.default)(e)||!(0,i.default)(u[e]))},s.clear=function(){u={}},e.default=s},function(t,e,n){"use strict";var r=n(415),i=n(417);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=_,e.resolve=function(t,e){return _(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?_(t,!1,!0).resolveObject(e):e},e.format=function(t){i.isString(t)&&(t=_(t));return t instanceof o?t.format():o.prototype.format.call(t)},e.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),h=["%","/","?",";","#"].concat(l),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=n(418);function _(t,e,n){if(t&&i.isObject(t)&&t instanceof o)return t;var r=new o;return r.parse(t,e,n),r}o.prototype.parse=function(t,e,n){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),s=-1!==o&&o<t.indexOf("#")?"?":"#",c=t.split(s);c[0]=c[0].replace(/\\/g,"/");var _=t=c.join(s);if(_=_.trim(),!n&&1===t.split("#").length){var b=u.exec(_);if(b)return this.path=_,this.href=_,this.pathname=b[1],b[2]?(this.search=b[2],this.query=e?m.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var w=a.exec(_);if(w){var E=(w=w[0]).toLowerCase();this.protocol=E,_=_.substr(w.length)}if(n||w||_.match(/^\/\/[^@\/]+@[^@\/]+/)){var x="//"===_.substr(0,2);!x||w&&y[w]||(_=_.substr(2),this.slashes=!0)}if(!y[w]&&(x||w&&!v[w])){for(var O,M,S=-1,P=0;P<f.length;P++){-1!==(C=_.indexOf(f[P]))&&(-1===S||C<S)&&(S=C)}-1!==(M=-1===S?_.lastIndexOf("@"):_.lastIndexOf("@",S))&&(O=_.slice(0,M),_=_.slice(M+1),this.auth=decodeURIComponent(O)),S=-1;for(P=0;P<h.length;P++){var C;-1!==(C=_.indexOf(h[P]))&&(-1===S||C<S)&&(S=C)}-1===S&&(S=_.length),this.host=_.slice(0,S),_=_.slice(S),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var I=this.hostname.split(/\./),L=(P=0,I.length);P<L;P++){var A=I[P];if(A&&!A.match(p)){for(var N="",k=0,j=A.length;k<j;k++)A.charCodeAt(k)>127?N+="x":N+=A[k];if(!N.match(p)){var R=I.slice(0,P),D=I.slice(P+1),F=A.match(d);F&&(R.push(F[1]),D.unshift(F[2])),D.length&&(_="/"+D.join(".")+_),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var z=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+z,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==_[0]&&(_="/"+_))}if(!g[E])for(P=0,L=l.length;P<L;P++){var q=l[P];if(-1!==_.indexOf(q)){var G=encodeURIComponent(q);G===q&&(G=escape(q)),_=_.split(q).join(G)}}var U=_.indexOf("#");-1!==U&&(this.hash=_.substr(U),_=_.slice(0,U));var V=_.indexOf("?");if(-1!==V?(this.search=_.substr(V),this.query=_.substr(V+1),e&&(this.query=m.parse(this.query)),_=_.slice(0,V)):e&&(this.search="",this.query={}),_&&(this.pathname=_),v[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){z=this.pathname||"";var J=this.search||"";this.path=z+J}return this.href=this.format(),this},o.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=m.stringify(this.query));var s=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||v[e])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),e+o+(n=n.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(t){return this.resolveObject(_(t,!1,!0)).format()},o.prototype.resolveObject=function(t){if(i.isString(t)){var e=new o;e.parse(t,!1,!0),t=e}for(var n=new o,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),c=0;c<u.length;c++){var l=u[c];"protocol"!==l&&(n[l]=t[l])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!v[t.protocol]){for(var h=Object.keys(t),f=0;f<h.length;f++){var p=h[f];n[p]=t[p]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||y[t.protocol])n.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),n.pathname=d.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var g=n.pathname||"",m=n.search||"";n.path=g+m}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var _=n.pathname&&"/"===n.pathname.charAt(0),b=t.host||t.pathname&&"/"===t.pathname.charAt(0),w=b||_||n.host&&t.pathname,E=w,x=n.pathname&&n.pathname.split("/")||[],O=(d=t.pathname&&t.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(O&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),w=w&&(""===d[0]||""===x[0])),b)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,x=d;else if(d.length)x||(x=[]),x.pop(),x=x.concat(d),n.search=t.search,n.query=t.query;else if(!i.isNullOrUndefined(t.search)){if(O)n.hostname=n.host=x.shift(),(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift());return n.search=t.search,n.query=t.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var M=x.slice(-1)[0],S=(n.host||t.host||x.length>1)&&("."===M||".."===M)||""===M,P=0,C=x.length;C>=0;C--)"."===(M=x[C])?x.splice(C,1):".."===M?(x.splice(C,1),P++):P&&(x.splice(C,1),P--);if(!w&&!E)for(;P--;P)x.unshift("..");!w||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),S&&"/"!==x.join("/").substr(-1)&&x.push("");var T,I=""===x[0]||x[0]&&"/"===x[0].charAt(0);O&&(n.hostname=n.host=I?"":x.length?x.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(w=w||n.host&&x.length)&&!I&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,n){(function(t,r){var i;!function(o){"object"==typeof e&&e&&e.nodeType,"object"==typeof t&&t&&t.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,c=36,l=1,h=26,f=38,p=700,d=72,g=128,y="-",v=/^xn--/,m=/[^\x20-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=c-l,E=Math.floor,x=String.fromCharCode;function O(t){throw new RangeError(b[t])}function M(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function S(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+M((t=t.replace(_,".")).split("."),e).join(".")}function P(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}function C(t){return M(t,function(t){var e="";return t>65535&&(e+=x((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=x(t)}).join("")}function T(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function I(t,e,n){var r=0;for(t=n?E(t/p):t>>1,t+=E(t/e);t>w*h>>1;r+=c)t=E(t/w);return E(r+(w+1)*t/(t+f))}function L(t){var e,n,r,i,o,a,s,f,p,v,m,_=[],b=t.length,w=0,x=g,M=d;for((n=t.lastIndexOf(y))<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&O("not-basic"),_.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<b;){for(o=w,a=1,s=c;i>=b&&O("invalid-input"),((f=(m=t.charCodeAt(i++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:c)>=c||f>E((u-w)/a))&&O("overflow"),w+=f*a,!(f<(p=s<=M?l:s>=M+h?h:s-M));s+=c)a>E(u/(v=c-p))&&O("overflow"),a*=v;M=I(w-o,e=_.length+1,0==o),E(w/e)>u-x&&O("overflow"),x+=E(w/e),w%=e,_.splice(w++,0,x)}return C(_)}function A(t){var e,n,r,i,o,a,s,f,p,v,m,_,b,w,M,S=[];for(_=(t=P(t)).length,e=g,n=0,o=d,a=0;a<_;++a)(m=t[a])<128&&S.push(x(m));for(r=i=S.length,i&&S.push(y);r<_;){for(s=u,a=0;a<_;++a)(m=t[a])>=e&&m<s&&(s=m);for(s-e>E((u-n)/(b=r+1))&&O("overflow"),n+=(s-e)*b,e=s,a=0;a<_;++a)if((m=t[a])<e&&++n>u&&O("overflow"),m==e){for(f=n,p=c;!(f<(v=p<=o?l:p>=o+h?h:p-o));p+=c)M=f-v,w=c-v,S.push(x(T(v+M%w,0))),f=E(M/w);S.push(x(T(f,0))),o=I(n,b,r==i),n=0,++r}++n,++e}return S.join("")}s={version:"1.4.1",ucs2:{decode:P,encode:C},decode:L,encode:A,toASCII:function(t){return S(t,function(t){return m.test(t)?"xn--"+A(t):t})},toUnicode:function(t){return S(t,function(t){return v.test(t)?L(t.slice(4).toLowerCase()):t})}},void 0===(i=function(){return s}.call(e,n,e,t))||(t.exports=i)}()}).call(e,n(416)(t),n(102))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,n){"use strict";e.decode=e.parse=n(419),e.encode=e.stringify=n(420)},function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,o){e=e||"&",n=n||"=";var a={};if("string"!=typeof t||0===t.length)return a;var s=/\+/g;t=t.split(e);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=t.length;u>0&&c>u&&(c=u);for(var l=0;l<c;++l){var h,f,p,d,g=t[l].replace(s,"%20"),y=g.indexOf(n);y>=0?(h=g.substr(0,y),f=g.substr(y+1)):(h=g,f=""),p=decodeURIComponent(h),d=decodeURIComponent(f),r(a,p)?i(a[p])?a[p].push(d):a[p]=[a[p],d]:a[p]=d}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,s){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?o(a(t),function(a){var s=encodeURIComponent(r(a))+n;return i(t[a])?o(t[a],function(t){return s+encodeURIComponent(r(t))}).join(e):s+encodeURIComponent(r(t[a]))}).join(e):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var a=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(195)),o=(s(n(7)),s(n(12)),n(4)),a=s(n(422));function s(t){return t&&t.__esModule?t:{default:t}}function u(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var c=window.L,l=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._map=e,this._event_id=1,this._floorChangeEvent=new i.default,this._map._map.doubleClickZoom.disable(),e._options.showLoading&&(this._loadingControl=new a.default,this._loadingControl.addToMap(e),this._loadingControl.maxValue=1,this._loadingControl.progressValue(1,100));var n=this;this._clickNodeEvent=function(t){if(c.DomEvent.stopPropagation(t),n._clickNodeEventForDrawTool&&n._clickNodeEventForDrawTool(t),n._clickNodeEventCallback){var e=t.target,r=t.latlng,i=void 0,a=void 0,s=e,u=e.nodeType,l=n._map.focusFloorId;if(u)switch(i=s.properties,u){case o.JSMarkerType.POINT_MARKER:case o.JSMarkerType.IMAGE_MARKER:case o.JSMarkerType.ICON_TEXT_MARKER:case o.JSMarkerType.DOM_MARKER:case o.JSMarkerType.CIRCLE_MARKER:a=e.parentMarker.position;break;case o.JSMarkerType.LINE_MARKER:case o.JSMarkerType.POLYGON_MARKER:case o.JSMarkerType.RECTANGLE_MARKER:a=e.parentMarker.position.center}else u=o.JSMarkerType.FLOOR,i=null,a={x:r.lng,y:r.lat};s.floorId=l,n._clickNodeEventCallback({FID:s._leaflet_id,centroid:{floorId:l,x:a.x,y:a.y,z:0},node:s,floorId:l,eventInfo:{coord:{floorId:l,x:r.lng,y:r.lat,z:0},eventID:n._event_id++},properties:i,nodeType:u,mapCoord:{floorId:l,x:r.lng,y:r.lat,z:0},x:r.lng,y:r.lat,z:0})}},this._map._map.on("click",this._clickNodeEvent)}return r(t,[{key:"registerMarkerClickEvent",value:function(t){this._registerNodeClickEvent(t._node)}},{key:"_registerNodeClickEvent",value:function(t){var e=this;t.on("click",function(t){e._clickNodeEvent&&e._clickNodeEvent(t)})}},{key:"_offNodeClickEvent",value:function(t){t.off("click",this._clickNodeEvent)}},{key:"on",value:function(t,e){if(e instanceof Function){var n=this,r=n._map._map;if("mapClickNode"!=t){if("loadComplete"!=t)return"mapScaleLevelChanged"==t?(n._mapScaleLevelChangedCallback=e,void r.on("zoom",function(t){var e=t.sourceTarget._zoom;n._mapScaleLevelChangedCallback(e)})):void("floorChange"==t&&this._floorChangeEvent.addEventListener(e,this));n._loadComplete=e}else n._clickNodeEventCallback=e}}},{key:"raise",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i;"floorChange"==t?this._floorChangeEvent&&(i=this._floorChangeEvent).raiseEvent.apply(i,u(n)):"loadComplete"==t&&this._loadComplete&&this._loadComplete.apply(this,u(n))}},{key:"off",value:function(t,e){"mapClickNode"==t&&(this._clickNodeEvent=null),"floorChange"==t&&this._floorChangeEvent&&this._floorChangeEvent.removeEventListener(e,this)}},{key:"destroy",value:function(){this._map=void 0,this._loadComplete=void 0,this._clickNodeEvent=void 0,this._clickNodeEventCallback=void 0,this._clickNodeEventForDrawTool=void 0,this._mapScaleLevelChangedCallback=void 0,this._event_id=void 0,this._floorChangeEvent=void 0}}]),t}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(423);var i=a(n(424)),o=a(n(183));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._init(),this._curValue=0}return r(t,[{key:"addToMap",value:function(t){this._container=t._map.getContainer(),this._container.appendChild(this._element)}},{key:"_init",value:function(){var t=this._element=this._createElement("div","jsmap2d-loading-loader"),e=this._createElement("img");e.src=i.default,(this._logoElement=this._createElement("div","jsmap2d-loading-logo",t)).appendChild(e);var n=this._createElement("div","jsmap2d-loading-horizontal",t);this._createLoadingCircles(n);var r=this._createElement("div","jsmap2d-loading-vertical",t);this._createLoadingCircles(r);var o=this._createElement("div","jsmap2d-loading-bar",t);this._processor=this._createElement("div","jsmap2d-loading-progress",o)}},{key:"_createLoadingCircles",value:function(t){var e=this._createElement("div","jsmap2d-loading-circlesup",t);this._createElement("div","jsmap2d-loading-circle",e),this._createElement("div","jsmap2d-loading-circle",e),this._createElement("div","jsmap2d-loading-circle",e),this._createElement("div","jsmap2d-loading-circle",e),this._createElement("div","jsmap2d-loading-circle",e);var n=this._createElement("div","jsmap2d-loading-circlesdwn",t);this._createElement("div","jsmap2d-loading-circle",n),this._createElement("div","jsmap2d-loading-circle",n),this._createElement("div","jsmap2d-loading-circle",n),this._createElement("div","jsmap2d-loading-circle",n),this._createElement("div","jsmap2d-loading-circle",n)}},{key:"_createElement",value:function(t,e,n){var r=document.createElement(t);return r.className=e||"",n&&n.appendChild(r),r}},{key:"removeFromMap",value:function(){this._container.removeChild(this._element),this._container=void 0,this._element=void 0,this._processor=void 0,this._logoElement=void 0,this._animate=void 0}},{key:"progressValue",value:function(t,e){var n=this,r=void 0;t==n.maxValue&&(r=function(){n.removeFromMap()}),this._animate&&this._animate.clear(),this._animate=new o.default({val:n.curValue},{val:t},{loop:!1,duration:e,update:function(t){n.curValue=t.val;var e=(100*t.val/n.maxValue).toFixed(2);n._processor&&(n._processor.style.width=e+"%")},complete:r})}},{key:"maxValue",get:function(){return this._maxValue},set:function(t){this._maxValue=t}},{key:"curValue",get:function(){return this._curValue},set:function(t){this._curValue=t}}]),t}();e.default=s},function(t,e){},function(t,e){t.exports="data:image/png;base64,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"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"printVersion",value:function(){console.log("%c🌏%cJSMapSDK(Light) %c\n\n 版本号1.2.0\n 版本日期2021-10-11 12:00:00\n 升级功能:\n \n 1.修复loadComplete事件不触发问题\n 2.增加floorList接口\n 3.lineMarker增加lineType属性\n 4.增加图像编辑工具JSEditTool;\n 5.增加加载瓦片地图功能;\n \n \n JSMapSDK网址: http://mapdemo.joysuch.com/jsmap/index.html\n 版权所有: 苏州真趣信息科技有限公司©Copyright 2016\n\n 版权声明:\n 1. JSMapSDK版权完全属于苏州真趣信息科技有限公司所有。\n 2. 任何个人和机构在遵守下列条件的前提下可以永久免费使用:\n 1不进行任何形式的破解和裁剪程序包完整引用\n 2保留此版权信息在控制台输出\n 我们保留对此版权信息的最终解释权。","font-size: 100px;padding-left: 20px;",'font-size: 25px;line-height: 1.5;font-weight: 1000;font-family: "微软雅黑";color: rgb(0, 120, 215);','font-size: 12px;line-height: 1.5;font-family: "微软雅黑";color: rgb(0, 120, 215);')}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=(b(n(7)),n(4)),o=(b(n(196)),b(n(443))),a=b(n(444)),s=b(n(445)),u=b(n(446)),c=b(n(447)),l=b(n(448)),h=b(n(449)),f=b(n(450)),p=b(n(451)),d=b(n(452)),g=b(n(453)),y=b(n(454)),v=b(n(455)),m=b(n(456)),_=b(n(457));function b(t){return t&&t.__esModule?t:{default:t}}var w=window.L,E="sk.eyJ1IjoiZ2lzZXJxaWFuIiwiYSI6ImNrbWJnd2sxYTFtazkydmxhYmFvNmIxaXoifQ.T98Iaxk7tQOYOVEzENkZtw",x=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._map=e}return r(t,[{key:"setImageryProvider",value:function(t){this._currentImageryProvider!=t&&(this._baseLayerControl&&(this._baseLayerControl._baseLayerPicker.viewModel.selectedImagery=this._getImageryProviderViewModelByType(t)))}},{key:"getCurrentImageryProviderViewModel",value:function(){return this._getImageryProviderViewModelByType(this._currentImageryProvider)}},{key:"_getImageryProviderViewModelByType",value:function(t){if(!this._map.showGlobe)return null;for(var e=void 0,n=0;n<this._imageryProviderViewModels.length;n++){var r=this._imageryProviderViewModels[n];if(t==r.type){e=r;break}}return e}},{key:"_fetchTokenOfTDT",value:function(){return(new Date).getSeconds()%2==0?"d7aab614275706f61db6a93b59c6014a":"3d47e55ed064282a26610b7303e212ae"}},{key:"createImageryProviderViewModels",value:function(){var t=[],e=this,n=e._callback=function(t){e._currentImageryProvider=t},r=new o.default({name:"影像",iconUrl:a.default,tooltip:"天地图全球影像地图服务(国家测绘局)",category:"天地图",type:i.JSImageryProviderType.IMAGE_TDT,creationFunction:function(){return n(i.JSImageryProviderType.IMAGE_TDT),e._map.showGlobe?e.tdt_image:null}});t.push(r),r=new o.default({name:"矢量",iconUrl:s.default,tooltip:"天地图全球电子地图服务(国家测绘局)",category:"天地图",type:i.JSImageryProviderType.VECTOR_TDT,creationFunction:function(){return n(i.JSImageryProviderType.VECTOR_TDT),e._map.showGlobe?e.tdt_vector:null}}),t.push(r),r=new o.default({name:"地形",iconUrl:u.default,tooltip:"天地图全球地形地图服务(国家测绘局)",category:"天地图",type:i.JSImageryProviderType.TERRAIN_TDT,creationFunction:function(){return n(i.JSImageryProviderType.TERRAIN_TDT),e._map.showGlobe?e.tdt_terrain:null}}),t.push(r),r=new o.default({name:"影像",iconUrl:c.default,tooltip:"高德地图影像地图服务",category:"高德地图",type:i.JSImageryProviderType.IMAGE_GD,creationFunction:function(){return n(i.JSImageryProviderType.IMAGE_GD),e._map.showGlobe?e.gd_image:null}}),t.push(r),r=new o.default({name:"矢量",iconUrl:l.default,tooltip:"高德地图电子地图服务",category:"高德地图",type:i.JSImageryProviderType.VECTOR_GD,creationFunction:function(){return n(i.JSImageryProviderType.VECTOR_GD),e._map.showGlobe?e.gd_vector:null}}),t.push(r),r=new o.default({name:"矢量-彩 GEOQ",iconUrl:d.default,tooltip:"智图基础地图服务 - 彩色",category:"其他地图",type:i.JSImageryProviderType.VECTOR_GEOQ,creationFunction:function(){return n(i.JSImageryProviderType.VECTOR_GEOQ),e.geoq_vector}}),t.push(r),r=new o.default({name:"矢量-灰 GEOQ",iconUrl:f.default,tooltip:"智图基础地图服务 - 灰色",category:"其他地图",type:i.JSImageryProviderType.VECTOR_GEOQ_GRAY,creationFunction:function(){return n(i.JSImageryProviderType.VECTOR_GEOQ_GRAY),e._map.showGlobe?e.geoq_vector_gray:null}}),t.push(r),r=new o.default({name:"矢量-暖 GEOQ",iconUrl:p.default,tooltip:"智图基础地图服务 - 暖色",category:"其他地图",type:i.JSImageryProviderType.VECTOR_GEOQ_WARM,creationFunction:function(){return n(i.JSImageryProviderType.VECTOR_GEOQ_WARM),e._map.showGlobe?e.geoq_vector_warm:null}}),t.push(r),r=new o.default({name:"矢量-暗 GEOQ",iconUrl:h.default,tooltip:"智图基础地图服务 - 暗色",category:"其他地图",type:i.JSImageryProviderType.VECTOR_GEOQ_PINCINE,creationFunction:function(){return n(i.JSImageryProviderType.VECTOR_GEOQ_PINCINE),e._map.showGlobe?e.geoq_vector_pincine:null}}),t.push(r),r=new o.default({name:"矢量OSM",iconUrl:g.default,tooltip:"OpenStreetMap电子地图服务",category:"其他地图",type:i.JSImageryProviderType.VECTOR_OSM,creationFunction:function(){return n(i.JSImageryProviderType.VECTOR_OSM),e._map.showGlobe?e.osm_vector:null}}),t.push(r),r=new o.default({name:"影像ESRI",iconUrl:y.default,tooltip:"ESRI全球影像地图服务",category:"其他地图",type:i.JSImageryProviderType.IMAGE_ARCGIS,creationFunction:function(){return n(i.JSImageryProviderType.IMAGE_ARCGIS),e._map.showGlobe?e.arcgis_image:null}}),t.push(r),r=new o.default({name:"影像MAPBOX",iconUrl:v.default,tooltip:"MAPBOX全球影像地图服务",category:"其他地图",type:i.JSImageryProviderType.VECTOR_MAPBOX,creationFunction:function(){return n(i.JSImageryProviderType.VECTOR_MAPBOX),e._map.showGlobe?e.mapBox_image:null}}),t.push(r),r=new o.default({name:"矢量MAPBOX",iconUrl:m.default,tooltip:"MAPBOX全球电子地图服务",category:"其他地图",type:i.JSImageryProviderType.IMAGE_MAPBOX,creationFunction:function(){return n(i.JSImageryProviderType.IMAGE_MAPBOX),e._map.showGlobe?e.mapBox_vector:null}}),t.push(r),e._imageryProviderViewModels=t}},{key:"getImageryProvidersByType",value:function(t){var e=[];switch(t){case i.JSImageryProviderType.IMAGE_TDT:e=this.tdt_image;break;case i.JSImageryProviderType.TERRAIN_TDT:e=this.tdt_terrain;break;case i.JSImageryProviderType.VECTOR_TDT:e=this.tdt_vector;break;case i.JSImageryProviderType.VECTOR_GD:e=this.gd_vector;break;case i.JSImageryProviderType.IMAGE_GD:e=this.gd_image;break;case i.JSImageryProviderType.VECTOR_OSM:e=this.osm_vector;break;case i.JSImageryProviderType.IMAGE_ARCGIS:e=this.arcgis_image;break;case i.JSImageryProviderType.VECTOR_GEOQ:e=this.geoq_vector;break;case i.JSImageryProviderType.VECTOR_GEOQ_GRAY:e=this.geoq_vector_gray;break;case i.JSImageryProviderType.VECTOR_GEOQ_PINCINE:e=this.geoq_vector_pincine;break;case i.JSImageryProviderType.VECTOR_GEOQ_WARM:e=this.geoq_vector_warm;break;case i.JSImageryProviderType.IMAGE_MAPBOX:e=this.mapBox_image;break;case i.JSImageryProviderType.VECTOR_MAPBOX:e=this.mapBox_vector}return e}},{key:"removeAllImageryProviders",value:function(){if(this._currentImageryProvider){var t=this;this.getImageryProvidersByType(this._currentImageryProvider).forEach(function(e){t._map._map.removeLayer(e)})}this._currentImageryProvider=null}},{key:"setBaseLayer",value:function(t,e){var n=this._map._options.showGlobe;if(this._currentImageryProvider!=t||e!=n){if(this._baseLayerControl)return this._currentImageryProvider=t,this._map._options.showGlobe=e,void(this._baseLayerControl._baseLayerPicker.viewModel.selectedImagery=this._getImageryProviderViewModelByType(t));if(this.removeAllImageryProviders(),this._currentImageryProvider=t,this._map._options.showGlobe=e,e){this._map._options.imageryProvider=t;var r=this.getImageryProvidersByType(t),i=this;if(Object.keys(i._map._map._layers).length>0)r.forEach(function(t){t.addTo(i._map._map),t.bringToBack()});else for(var o=r.length-1;o>=0;o--)r[o].addTo(i._map._map)}}}},{key:"destroy",value:function(){this._map=void 0,this._callback=void 0,this._currentImageryProvider=void 0,this._tdt_image=void 0,this._tdt_vector=void 0,this._tdt_terrain=void 0,this._gd_image=void 0,this._gd_vector=void 0,this._osm_vector=void 0,this._arcgis_image=void 0,this._geoq_vector=void 0,this._geoq_vector_gray=void 0,this._geoq_vector_warm=void 0,this._geoq_vector_pincine=void 0,this._mapBox_image=void 0,this._mapBox_vector=void 0,this._imageryProviderViewModels=void 0,this._baseLayerControl&&this._baseLayerControl.destroy(),this._baseLayerControl=void 0}},{key:"tdt_image",get:function(){if(!this._tdt_image){var t=this._fetchTokenOfTDT(),e=["0","1","2","3","4","5","6","7"];this._tdt_image=[w.tileLayer("https://t{s}.tianditu.gov.cn/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk="+t,{subdomains:e,maxZoom:24,maxNativeZoom:18,key:t}),w.tileLayer("https://t{s}.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk="+t,{subdomains:e,maxZoom:24,maxNativeZoom:18,key:t})]}return this._tdt_image}},{key:"tdt_vector",get:function(){if(!this._tdt_vector){var t=this._fetchTokenOfTDT(),e=["0","1","2","3","4","5","6","7"];this._tdt_vector=[new w.tileLayer("https://t{s}.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk="+t,{subdomains:e,maxZoom:24,maxNativeZoom:18,key:t}),w.tileLayer("https://t{s}.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk="+t,{subdomains:e,maxZoom:24,maxNativeZoom:18,key:t})]}return this._tdt_vector}},{key:"tdt_terrain",get:function(){if(!this._tdt_terrain){var t=this._fetchTokenOfTDT(),e=["0","1","2","3","4","5","6","7"];this._tdt_terrain=[w.tileLayer("https://t{s}.tianditu.gov.cn/DataServer?T=cta_w&x={x}&y={y}&l={z}&tk="+t,{subdomains:e,maxZoom:24,maxNativeZoom:14,key:t}),w.tileLayer("https://t{s}.tianditu.gov.cn/DataServer?T=ter_w&x={x}&y={y}&l={z}&tk="+t,{subdomains:e,maxZoom:24,maxNativeZoom:14,key:t})]}return this._tdt_terrain}},{key:"gd_image",get:function(){if(!this._gd_image){var t=["1","2","3","4"];this._gd_image=[new _.default("https://webst0{s}.is.autonavi.com/appmaptile?style=8&x={x}&y={y}&z={z}",{maxNativeZoom:18,maxZoom:24,subdomains:t}),new _.default("https://webst0{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}",{maxNativeZoom:18,maxZoom:24,subdomains:t})]}return this._gd_image}},{key:"gd_vector",get:function(){return this._gd_vector||(this._gd_vector=[new _.default("https://webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=7&x={x}&y={y}&z={z}",{maxNativeZoom:18,maxZoom:24,subdomains:["1","2","3","4"]})]),this._gd_vector}},{key:"osm_vector",get:function(){return this._osm_vector||(this._osm_vector=[w.tileLayer("https://{s}.tile.osm.org/{z}/{x}/{y}.png",{subdomains:["a","b","c"],maxNativeZoom:19,maxZoom:24})]),this._osm_vector}},{key:"arcgis_image",get:function(){var t=["server","services"];return this._arcgis_image||(this._arcgis_image=[w.tileLayer("https://{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer/tile/{z}/{y}/{x}",{maxNativeZoom:19,maxZoom:24,subdomains:t}),w.tileLayer("https://{s}.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",{maxNativeZoom:19,maxZoom:24,subdomains:t})]),this._arcgis_image}},{key:"geoq_vector",get:function(){return this._geoq_vector||(this._geoq_vector=[new _.default("https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer/tile/{z}/{y}/{x}",{maxNativeZoom:17,maxZoom:24})]),this._geoq_vector}},{key:"geoq_vector_gray",get:function(){return this._geoq_vector_gray||(this._geoq_vector_gray=[new _.default("https://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetGray/MapServer/tile/{z}/{y}/{x}",{maxNativeZoom:16,maxZoom:24})]),this._geoq_vector_gray}},{key:"geoq_vector_warm",get:function(){return this._geoq_vector_warm||(this._geoq_vector_warm=[new _.default("https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetWarm/MapServer/tile/{z}/{y}/{x}",{maxNativeZoom:16,maxZoom:24})]),this._geoq_vector_warm}},{key:"geoq_vector_pincine",get:function(){return this._geoq_vector_pincine||(this._geoq_vector_pincine=[new _.default("https://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}",{maxNativeZoom:16,maxZoom:24})]),this._geoq_vector_pincine}},{key:"mapBox_image",get:function(){return this._mapBox_image||(this._mapBox_image=[w.tileLayer("https://c.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token="+E,{id:"mapbox.satellite",maxNativeZoom:20,maxZoom:24})]),this._mapBox_image}},{key:"mapBox_vector",get:function(){return this._mapBox_vector||(this._mapBox_vector=[w.tileLayer("https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/512/{z}/{x}/{y}?access_token="+E,{id:"streets-v8",maxNativeZoom:20,maxZoom:24})]),this._mapBox_vector}}]),t}();e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(428);u(n(7));var i=u(n(429)),o=u(n(440)),a=u(n(104)),s=u(n(442));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=new i.default(e._map,n),s=this._container=document.createElement("div"),u=document.createElement("button");u.type="button",u.className="jsmap2d-button jsmap2d-toolbar-button",u.setAttribute("data-bind","attr: { title: buttonTooltip },click: toggleDropDown"),s.appendChild(u);var c=document.createElement("img");c.setAttribute("draggable","false"),c.className="jsmap2d-baseLayerPicker-selected",c.setAttribute("data-bind","attr: { src: buttonImageUrl }, visible: !!buttonImageUrl"),u.appendChild(c);var l=document.createElement("div");l.className="jsmap2d-baseLayerPicker-dropDown",l.setAttribute("data-bind",'css: { "jsmap2d-baseLayerPicker-dropDown-visible" : dropDownVisible }'),s.appendChild(l);var h=document.createElement("div");h.className="jsmap2d-baseLayerPicker-section",h.setAttribute("data-bind","foreach: _imageryProviders"),l.appendChild(h);var f=document.createElement("div");f.className="jsmap2d-baseLayerPicker-category",h.appendChild(f);var p=document.createElement("div");p.className="jsmap2d-baseLayerPicker-categoryTitle",p.setAttribute("data-bind","text: name"),f.appendChild(p);var d=document.createElement("div");d.className="jsmap2d-baseLayerPicker-choices",d.setAttribute("data-bind","foreach: providers"),f.appendChild(d);var g=document.createElement("div");g.className="jsmap2d-baseLayerPicker-item",g.setAttribute("data-bind",'css: { "jsmap2d-baseLayerPicker-selectedItem" : $data === $parents[1].selectedImagery },attr: { title: tooltip },visible: creationCommand.canExecute,click: function($data) { $parents[1].selectedImagery = $data; }'),d.appendChild(g);var y=document.createElement("img");y.className="jsmap2d-baseLayerPicker-itemIcon",y.setAttribute("data-bind","attr: { src: iconUrl }"),y.setAttribute("draggable","false"),g.appendChild(y);var v=document.createElement("div");v.className="jsmap2d-baseLayerPicker-itemLabel",v.setAttribute("data-bind","text: name"),g.appendChild(v),a.default.applyBindings(r,u),a.default.applyBindings(r,l),this._viewModel=r,this._element=u,this._dropPanel=l,this._closeDropDown=function(t){u.contains(t.target)||l.contains(t.target)||(r.dropDownVisible=!1)},o.default.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}return r(t,[{key:"destroy",value:function(){return o.default.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),a.default.cleanNode(this._element),a.default.cleanNode(this._dropPanel),this._container.removeChild(this._element),this._container.removeChild(this._dropPanel),(0,s.default)(this)}},{key:"viewModel",get:function(){return this._viewModel}},{key:"container",get:function(){return this._container}}]),t}();e.default=c},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=u(n(13)),o=u(n(104)),a=u(n(6)),s=u(n(197));function u(t){return t&&t.__esModule?t:{default:t}}window.L;var c=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=(0,i.default)(n,i.default.EMPTY_OBJECT);var r=(0,i.default)(n.imageryProviderViewModels,[]);this.imageryProviderViewModels=r.slice(0),this.dropDownVisible=!0,this._map=e,o.default.track(this,["imageryProviderViewModels","dropDownVisible"]);var u=o.default.getObservable(this,"imageryProviderViewModels"),c=o.default.pureComputed(function(){var t=u(),e={},n=void 0;for(n=0;n<t.length;n++){var r=t[n],i=r.category;(0,a.default)(e[i])?e[i].push(r):e[i]=[r]}var o=Object.keys(e),s=[];for(n=0;n<o.length;n++){var c=o[n];s.push({name:c,providers:e[c]})}return s});this._imageryProviders=c,this.buttonTooltip=void 0,this._buttonTooltip=void 0,o.default.defineProperty(this,"buttonTooltip",function(){var t=this.selectedImagery;return(0,a.default)(t)?t.name:void 0}),this.buttonImageUrl=void 0,o.default.defineProperty(this,"buttonImageUrl",function(){var t=this.selectedImagery;if((0,a.default)(t))return t.iconUrl}),this.selectedImagery=void 0;var l=o.default.observable();this._currentImageryProviders=[],o.default.defineProperty(this,"selectedImagery",{get:function(){return l()},set:function(t){if(l()!==t){var e=void 0,n=this._currentImageryProviders,r=n.length;for(e=0;e<r;e++)this._map.removeLayer(n[e]);if((0,a.default)(t)){var i=t.creationCommand();if(Array.isArray(i)){var o=i.length;for(e=0;e<o;e++){var s=i[e];s.addTo(this._map),s.bringToBack()}this._currentImageryProviders=i.slice(0)}}l(t),this.dropDownVisible=!1}else this.dropDownVisible=!1}});var h=this;this._toggleDropDown=(0,s.default)(function(){h.dropDownVisible=!h.dropDownVisible}),this.selectedImagery=(0,i.default)(n.selectedImageryProviderViewModel,r[0])}return r(t,[{key:"toggleDropDown",get:function(){return this._toggleDropDown}},{key:"buttonTooltip",get:function(){return this._buttonTooltip},set:function(t){this._buttonTooltip=t}},{key:"map",set:function(t){this._map=t}}]),t}();e.default=c},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};"undefined"!=typeof ko&&(n=ko),function(t){var e=this||(0,eval)("this"),n=e.document,i=e.navigator,o=e.jQuery,a=e.JSON;o||"undefined"==typeof jQuery||(o=jQuery),function(t){t(e.ko={})}(function(s,u){function c(t,e){return(null===t||(void 0===t?"undefined":r(t))in E)&&t===e}function l(e,n){var r;return function(){r||(r=w.a.setTimeout(function(){r=t,e()},n))}}function h(t,e){var n;return function(){clearTimeout(n),n=w.a.setTimeout(t,e)}}function f(t,e){e&&"change"!==e?"beforeChange"===e?this.pc(t):this.gb(t,e):this.qc(t)}function p(t,e){null!==e&&e.s&&e.s()}function d(t,e){var n=this.qd,r=n[P];r.ra||(this.Qb&&this.mb[e]?(n.uc(e,t,this.mb[e]),this.mb[e]=null,--this.Qb):r.I[e]||n.uc(e,t,r.J?{da:t}:n.$c(t)),t.Ja&&t.gd())}var g,y,v,m,_,b,w=void 0!==s?s:{};w.b=function(t,e){for(var n=t.split("."),r=w,i=0;i<n.length-1;i++)r=r[n[i]];r[n[n.length-1]]=e},w.L=function(t,e,n){t[e]=n},w.version="3.5.1",w.b("version",w.version),w.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1},w.a=function(){function s(t,e){for(var n in t)h.call(t,n)&&e(n,t[n])}function u(t,e){if(e)for(var n in e)h.call(e,n)&&(t[n]=e[n]);return t}function c(t,e){return t.__proto__=e,t}function l(t,e,n,r){var i=t[e].match(_)||[];w.a.D(n.match(_),function(t){w.a.Na(i,t,r)}),t[e]=i.join(" ")}var h=Object.prototype.hasOwnProperty,f={__proto__:[]}instanceof Array,p="function"==typeof Symbol,d={},g={};d[i&&/Firefox\/2/i.test(i.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],d.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),s(d,function(t,e){if(e.length)for(var n=0,r=e.length;n<r;n++)g[e[n]]=t});var y,v={propertychange:!0},m=n&&function(){for(var e=3,r=n.createElement("div"),i=r.getElementsByTagName("i");r.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",i[0];);return 4<e?e:t}(),_=/\S+/g;return{Jc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],D:function(t,e,n){for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t)},A:"function"==typeof Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e)}:function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},Lb:function(e,n,r){for(var i=0,o=e.length;i<o;i++)if(n.call(r,e[i],i,e))return e[i];return t},Pa:function(t,e){var n=w.a.A(t,e);0<n?t.splice(n,1):0===n&&t.shift()},wc:function(t){var e=[];return t&&w.a.D(t,function(t){0>w.a.A(e,t)&&e.push(t)}),e},Mb:function(t,e,n){var r=[];if(t)for(var i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i));return r},jb:function(t,e,n){var r=[];if(t)for(var i=0,o=t.length;i<o;i++)e.call(n,t[i],i)&&r.push(t[i]);return r},Nb:function(t,e){if(e instanceof Array)t.push.apply(t,e);else for(var n=0,r=e.length;n<r;n++)t.push(e[n]);return t},Na:function(t,e,n){var r=w.a.A(w.a.bc(t),e);0>r?n&&t.push(e):n||t.splice(r,1)},Ba:f,extend:u,setPrototypeOf:c,Ab:f?c:u,P:s,Ga:function(t,e,n){if(!t)return t;var r,i={};for(r in t)h.call(t,r)&&(i[r]=e.call(n,t[r],r,t));return i},Tb:function(t){for(;t.firstChild;)w.removeNode(t.firstChild)},Yb:function(t){for(var e=((t=w.a.la(t))[0]&&t[0].ownerDocument||n).createElement("div"),r=0,i=t.length;r<i;r++)e.appendChild(w.oa(t[r]));return e},Ca:function(t,e){for(var n=0,r=t.length,i=[];n<r;n++){var o=t[n].cloneNode(!0);i.push(e?w.oa(o):o)}return i},va:function(t,e){if(w.a.Tb(t),e)for(var n=0,r=e.length;n<r;n++)t.appendChild(e[n])},Xc:function(t,e){var n=t.nodeType?[t]:t;if(0<n.length){for(var r=n[0],i=r.parentNode,o=0,a=e.length;o<a;o++)i.insertBefore(e[o],r);for(o=0,a=n.length;o<a;o++)w.removeNode(n[o])}},Ua:function(t,e){if(t.length){for(e=8===e.nodeType&&e.parentNode||e;t.length&&t[0].parentNode!==e;)t.splice(0,1);for(;1<t.length&&t[t.length-1].parentNode!==e;)t.length--;if(1<t.length){var n=t[0],r=t[t.length-1];for(t.length=0;n!==r;)t.push(n),n=n.nextSibling;t.push(r)}}return t},Zc:function(t,e){7>m?t.setAttribute("selected",e):t.selected=e},Db:function(e){return null===e||e===t?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(t,e){return t=t||"",!(e.length>t.length)&&t.substring(0,e.length)===e},vd:function(t,e){if(t===e)return!0;if(11===t.nodeType)return!1;if(e.contains)return e.contains(1!==t.nodeType?t.parentNode:t);if(e.compareDocumentPosition)return 16==(16&e.compareDocumentPosition(t));for(;t&&t!=e;)t=t.parentNode;return!!t},Sb:function(t){return w.a.vd(t,t.ownerDocument.documentElement)},kd:function(t){return!!w.a.Lb(t,w.a.Sb)},R:function(t){return t&&t.tagName&&t.tagName.toLowerCase()},Ac:function(t){return w.onError?function(){try{return t.apply(this,arguments)}catch(t){throw w.onError&&w.onError(t),t}}:t},setTimeout:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t,e){return setTimeout(w.a.Ac(t),e)}),Gc:function(t){setTimeout(function(){throw w.onError&&w.onError(t),t},0)},B:function(t,e,n){var r=w.a.Ac(n);if(n=v[e],w.options.useOnlyNativeEvents||n||!o)if(n||"function"!=typeof t.addEventListener){if(void 0===t.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var i=function(e){r.call(t,e)},a="on"+e;t.attachEvent(a,i),w.a.K.za(t,function(){t.detachEvent(a,i)})}else t.addEventListener(e,r,!1);else y||(y="function"==typeof o(t).on?"on":"bind"),o(t)[y](e,r)},Fb:function(t,r){if(!t||!t.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var i;if(i=!("input"!==w.a.R(t)||!t.type||"click"!=r.toLowerCase()||"checkbox"!=(i=t.type)&&"radio"!=i),w.options.useOnlyNativeEvents||!o||i)if("function"==typeof n.createEvent){if("function"!=typeof t.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(i=n.createEvent(g[r]||"HTMLEvents")).initEvent(r,!0,!0,e,0,0,0,0,0,!1,!1,!1,!1,0,t),t.dispatchEvent(i)}else if(i&&t.click)t.click();else{if(void 0===t.fireEvent)throw Error("Browser doesn't support triggering events");t.fireEvent("on"+r)}else o(t).trigger(r)},f:function(t){return w.O(t)?t():t},bc:function(t){return w.O(t)?t.v():t},Eb:function(t,e,n){var i;e&&("object"===r(t.classList)?(i=t.classList[n?"add":"remove"],w.a.D(e.match(_),function(e){i.call(t.classList,e)})):"string"==typeof t.className.baseVal?l(t.className,"baseVal",e,n):l(t,"className",e,n))},Bb:function(e,n){var r=w.a.f(n);null!==r&&r!==t||(r="");var i=w.h.firstChild(e);!i||3!=i.nodeType||w.h.nextSibling(i)?w.h.va(e,[e.ownerDocument.createTextNode(r)]):i.data=r,w.a.Ad(e)},Yc:function(t,e){if(t.name=e,7>=m)try{var r=t.name.replace(/[&<>'"]/g,function(t){return"&#"+t.charCodeAt(0)+";"});t.mergeAttributes(n.createElement("<input name='"+r+"'/>"),!1)}catch(t){}},Ad:function(t){9<=m&&(t=1==t.nodeType?t:t.parentNode).style&&(t.style.zoom=t.style.zoom)},wd:function(t){if(m){var e=t.style.width;t.style.width=0,t.style.width=e}},Pd:function(t,e){t=w.a.f(t),e=w.a.f(e);for(var n=[],r=t;r<=e;r++)n.push(r);return n},la:function(t){for(var e=[],n=0,r=t.length;n<r;n++)e.push(t[n]);return e},Da:function(t){return p?Symbol(t):t},Zd:6===m,$d:7===m,W:m,Lc:function(t,e){for(var n=w.a.la(t.getElementsByTagName("input")).concat(w.a.la(t.getElementsByTagName("textarea"))),r="string"==typeof e?function(t){return t.name===e}:function(t){return e.test(t.name)},i=[],o=n.length-1;0<=o;o--)r(n[o])&&i.push(n[o]);return i},Nd:function(t){return"string"==typeof t&&(t=w.a.Db(t))?a&&a.parse?a.parse(t):new Function("return "+t)():null},hc:function(t,e,n){if(!a||!a.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return a.stringify(w.a.f(t),e,n)},Od:function(t,e,i){var o=(i=i||{}).params||{},a=i.includeFields||this.Jc,u=t;if("object"==(void 0===t?"undefined":r(t))&&"form"===w.a.R(t)){u=t.action;for(var c=a.length-1;0<=c;c--)for(var l=w.a.Lc(t,a[c]),h=l.length-1;0<=h;h--)o[l[h].name]=l[h].value}e=w.a.f(e);var f=n.createElement("form");for(var p in f.style.display="none",f.action=u,f.method="post",e)(t=n.createElement("input")).type="hidden",t.name=p,t.value=w.a.hc(w.a.f(e[p])),f.appendChild(t);s(o,function(t,e){var r=n.createElement("input");r.type="hidden",r.name=t,r.value=e,f.appendChild(r)}),n.body.appendChild(f),i.submitter?i.submitter(f):f.submit(),setTimeout(function(){f.parentNode.removeChild(f)},0)}}}(),w.b("utils",w.a),w.b("utils.arrayForEach",w.a.D),w.b("utils.arrayFirst",w.a.Lb),w.b("utils.arrayFilter",w.a.jb),w.b("utils.arrayGetDistinctValues",w.a.wc),w.b("utils.arrayIndexOf",w.a.A),w.b("utils.arrayMap",w.a.Mb),w.b("utils.arrayPushAll",w.a.Nb),w.b("utils.arrayRemoveItem",w.a.Pa),w.b("utils.cloneNodes",w.a.Ca),w.b("utils.createSymbolOrString",w.a.Da),w.b("utils.extend",w.a.extend),w.b("utils.fieldsIncludedWithJsonPost",w.a.Jc),w.b("utils.getFormFields",w.a.Lc),w.b("utils.objectMap",w.a.Ga),w.b("utils.peekObservable",w.a.bc),w.b("utils.postJson",w.a.Od),w.b("utils.parseJson",w.a.Nd),w.b("utils.registerEventHandler",w.a.B),w.b("utils.stringifyJson",w.a.hc),w.b("utils.range",w.a.Pd),w.b("utils.toggleDomNodeCssClass",w.a.Eb),w.b("utils.triggerEvent",w.a.Fb),w.b("utils.unwrapObservable",w.a.f),w.b("utils.objectForEach",w.a.P),w.b("utils.addOrRemoveItem",w.a.Na),w.b("utils.setTextContent",w.a.Bb),w.b("unwrap",w.a.f),Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if(1===arguments.length)return function(){return e.apply(t,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){var r=n.slice(0);return r.push.apply(r,arguments),e.apply(t,r)}}),w.a.g=new function(){var e,n,r=0,i="__ko__"+(new Date).getTime(),o={};return w.a.W?(e=function(e,n){var a=e[i];if(!a||"null"===a||!o[a]){if(!n)return t;a=e[i]="ko"+r++,o[a]={}}return o[a]},n=function(t){var e=t[i];return!!e&&(delete o[e],t[i]=null,!0)}):(e=function(t,e){var n=t[i];return!n&&e&&(n=t[i]={}),n},n=function(t){return!!t[i]&&(delete t[i],!0)}),{get:function(t,n){var r=e(t,!1);return r&&r[n]},set:function(n,r,i){(n=e(n,i!==t))&&(n[r]=i)},Ub:function(t,n,r){return(t=e(t,!0))[n]||(t[n]=r)},clear:n,Z:function(){return r+++i}}},w.b("utils.domData",w.a.g),w.b("utils.domData.clear",w.a.g.clear),w.a.K=new function(){function e(e,n){var r=w.a.g.get(e,i);return r===t&&n&&(r=[],w.a.g.set(e,i,r)),r}function n(t){if(n=e(t,!1))for(var n=n.slice(0),i=0;i<n.length;i++)n[i](t);w.a.g.clear(t),w.a.K.cleanExternalData(t),s[t.nodeType]&&r(t.childNodes,!0)}function r(t,e){for(var r,i=[],o=0;o<t.length;o++)if((!e||8===t[o].nodeType)&&(n(i[i.length]=r=t[o]),t[o]!==r))for(;o--&&-1==w.a.A(i,t[o]););}var i=w.a.g.Z(),a={1:!0,8:!0,9:!0},s={1:!0,9:!0};return{za:function(t,n){if("function"!=typeof n)throw Error("Callback must be a function");e(t,!0).push(n)},yb:function(n,r){var o=e(n,!1);o&&(w.a.Pa(o,r),0==o.length&&w.a.g.set(n,i,t))},oa:function(t){return w.u.G(function(){a[t.nodeType]&&(n(t),s[t.nodeType]&&r(t.getElementsByTagName("*")))}),t},removeNode:function(t){w.oa(t),t.parentNode&&t.parentNode.removeChild(t)},cleanExternalData:function(t){o&&"function"==typeof o.cleanData&&o.cleanData([t])}}},w.oa=w.a.K.oa,w.removeNode=w.a.K.removeNode,w.b("cleanNode",w.oa),w.b("removeNode",w.removeNode),w.b("utils.domNodeDisposal",w.a.K),w.b("utils.domNodeDisposal.addDisposeCallback",w.a.K.za),w.b("utils.domNodeDisposal.removeDisposeCallback",w.a.K.yb),g=[0,"",""],_={thead:y=[1,"<table>","</table>"],tbody:y,tfoot:y,tr:[2,"<table><tbody>","</tbody></table>"],td:v=[3,"<table><tbody><tr>","</tr></tbody></table>"],th:v,option:m=[1,"<select multiple='multiple'>","</select>"],optgroup:m},b=8>=w.a.W,w.a.ua=function(t,r){var i;if(o){if(o.parseHTML)i=o.parseHTML(t,r)||[];else if((i=o.clean([t],r))&&i[0]){for(var a=i[0];a.parentNode&&11!==a.parentNode.nodeType;)a=a.parentNode;a.parentNode&&a.parentNode.removeChild(a)}}else{(i=r)||(i=n),a=i.parentWindow||i.defaultView||e;var s,u=w.a.Db(t).toLowerCase(),c=i.createElement("div");for(s=(u=u.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&_[u[1]]||g,u=s[0],s="ignored<div>"+s[1]+t+s[2]+"</div>","function"==typeof a.innerShiv?c.appendChild(a.innerShiv(s)):(b&&i.body.appendChild(c),c.innerHTML=s,b&&c.parentNode.removeChild(c));u--;)c=c.lastChild;i=w.a.la(c.lastChild.childNodes)}return i},w.a.Md=function(t,e){var n=w.a.ua(t,e);return n.length&&n[0].parentElement||w.a.Yb(n)},w.a.fc=function(e,n){if(w.a.Tb(e),null!==(n=w.a.f(n))&&n!==t)if("string"!=typeof n&&(n=n.toString()),o)o(e).html(n);else for(var r=w.a.ua(n,e.ownerDocument),i=0;i<r.length;i++)e.appendChild(r[i])},w.b("utils.parseHtmlFragment",w.a.ua),w.b("utils.setHtml",w.a.fc),w.aa=function(){var e={};return{Xb:function(t){if("function"!=typeof t)throw Error("You can only pass a function to ko.memoization.memoize()");var n=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return e[n]=t,"\x3c!--[ko_memo:"+n+"]--\x3e"},bd:function(n,r){var i=e[n];if(i===t)throw Error("Couldn't find any memo with ID "+n+". Perhaps it's already been unmemoized.");try{return i.apply(null,r||[]),!0}finally{delete e[n]}},cd:function(t,e){var n=[];!function t(e,n){if(e)if(8==e.nodeType)null!=(r=w.aa.Uc(e.nodeValue))&&n.push({ud:e,Kd:r});else if(1==e.nodeType)for(var r=0,i=e.childNodes,o=i.length;r<o;r++)t(i[r],n)}(t,n);for(var r=0,i=n.length;r<i;r++){var o=n[r].ud,a=[o];e&&w.a.Nb(a,e),w.aa.bd(n[r].Kd,a),o.nodeValue="",o.parentNode&&o.parentNode.removeChild(o)}},Uc:function(t){return(t=t.match(/^\[ko_memo\:(.*?)\]$/))?t[1]:null}}}(),w.b("memoization",w.aa),w.b("memoization.memoize",w.aa.Xb),w.b("memoization.unmemoize",w.aa.bd),w.b("memoization.parseMemoText",w.aa.Uc),w.b("memoization.unmemoizeDomNodeAndDescendants",w.aa.cd),w.na=function(){function t(){if(o)for(var t,e=o,n=0;s<o;)if(t=i[s++]){if(s>e){if(5e3<=++n){s=o,w.a.Gc(Error("'Too much recursion' after processing "+n+" task groups."));break}e=o}try{t()}catch(t){w.a.Gc(t)}}}function r(){t(),s=o=i.length=0}var i=[],o=0,a=1,s=0;return{scheduler:e.MutationObserver?function(t){var e=n.createElement("div");return new MutationObserver(t).observe(e,{attributes:!0}),function(){e.classList.toggle("foo")}}(r):n&&"onreadystatechange"in n.createElement("script")?function(t){var e=n.createElement("script");e.onreadystatechange=function(){e.onreadystatechange=null,n.documentElement.removeChild(e),e=null,t()},n.documentElement.appendChild(e)}:function(t){setTimeout(t,0)},zb:function(t){return o||w.na.scheduler(r),i[o++]=t,a++},cancel:function(t){(t-=a-o)>=s&&t<o&&(i[t]=null)},resetForTesting:function(){var t=o-s;return s=o=i.length=0,t},Sd:t}}(),w.b("tasks",w.na),w.b("tasks.schedule",w.na.zb),w.b("tasks.runEarly",w.na.Sd),w.Ta={throttle:function(t,e){t.throttleEvaluation=e;var n=null;return w.$({read:t,write:function(r){clearTimeout(n),n=w.a.setTimeout(function(){t(r)},e)}})},rateLimit:function(t,e){var n,r,i;"number"==typeof e?n=e:(n=e.timeout,r=e.method),t.Hb=!1,i="function"==typeof r?r:"notifyWhenChangesStop"==r?h:l,t.ub(function(t){return i(t,n,e)})},deferred:function(e,n){if(!0!==n)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");e.Hb||(e.Hb=!0,e.ub(function(n){var r,i=!1;return function(){if(!i){w.na.cancel(r),r=w.na.zb(n);try{i=!0,e.notifySubscribers(t,"dirty")}finally{i=!1}}}}))},notify:function(t,e){t.equalityComparer="always"==e?null:c}};var E={undefined:1,boolean:1,number:1,string:1};w.b("extenders",w.Ta),w.ic=function(t,e,n){this.da=t,this.lc=e,this.mc=n,this.Ib=!1,this.fb=this.Jb=null,w.L(this,"dispose",this.s),w.L(this,"disposeWhenNodeIsRemoved",this.l)},w.ic.prototype.s=function(){this.Ib||(this.fb&&w.a.K.yb(this.Jb,this.fb),this.Ib=!0,this.mc(),this.da=this.lc=this.mc=this.Jb=this.fb=null)},w.ic.prototype.l=function(t){this.Jb=t,w.a.K.za(t,this.fb=this.s.bind(this))},w.T=function(){w.a.Ab(this,x),x.qb(this)};var x={qb:function(t){t.U={change:[]},t.sc=1},subscribe:function(t,e,n){var r=this;n=n||"change";var i=new w.ic(r,e?t.bind(e):t,function(){w.a.Pa(r.U[n],i),r.hb&&r.hb(n)});return r.Qa&&r.Qa(n),r.U[n]||(r.U[n]=[]),r.U[n].push(i),i},notifySubscribers:function(t,e){if("change"===(e=e||"change")&&this.Gb(),this.Wa(e)){var n="change"===e&&this.ed||this.U[e].slice(0);try{w.u.xc();for(var r,i=0;r=n[i];++i)r.Ib||r.lc(t)}finally{w.u.end()}}},ob:function(){return this.sc},Dd:function(t){return this.ob()!==t},Gb:function(){++this.sc},ub:function(t){var e,n,r,i,o,a=this,s=w.O(a);a.gb||(a.gb=a.notifySubscribers,a.notifySubscribers=f);var u=t(function(){a.Ja=!1,s&&i===a&&(i=a.nc?a.nc():a());var t=n||o&&a.sb(r,i);o=n=e=!1,t&&a.gb(r=i)});a.qc=function(t,n){n&&a.Ja||(o=!n),a.ed=a.U.change.slice(0),a.Ja=e=!0,i=t,u()},a.pc=function(t){e||(r=t,a.gb(t,"beforeChange"))},a.rc=function(){o=!0},a.gd=function(){a.sb(r,a.v(!0))&&(n=!0)}},Wa:function(t){return this.U[t]&&this.U[t].length},Bd:function(t){if(t)return this.U[t]&&this.U[t].length||0;var e=0;return w.a.P(this.U,function(t,n){"dirty"!==t&&(e+=n.length)}),e},sb:function(t,e){return!this.equalityComparer||!this.equalityComparer(t,e)},toString:function(){return"[object Object]"},extend:function(t){var e=this;return t&&w.a.P(t,function(t,n){var r=w.Ta[t];"function"==typeof r&&(e=r(e,n)||e)}),e}};w.L(x,"init",x.qb),w.L(x,"subscribe",x.subscribe),w.L(x,"extend",x.extend),w.L(x,"getSubscriptionsCount",x.Bd),w.a.Ba&&w.a.setPrototypeOf(x,Function.prototype),w.T.fn=x,w.Qc=function(t){return null!=t&&"function"==typeof t.subscribe&&"function"==typeof t.notifySubscribers},w.b("subscribable",w.T),w.b("isSubscribable",w.Qc),w.S=w.u=function(){function t(t){r.push(n),n=t}function e(){n=r.pop()}var n,r=[],i=0;return{xc:t,end:e,cc:function(t){if(n){if(!w.Qc(t))throw Error("Only subscribable things can act as dependencies");n.od.call(n.pd,t,t.fd||(t.fd=++i))}},G:function(n,r,i){try{return t(),n.apply(r,i||[])}finally{e()}},qa:function(){if(n)return n.o.qa()},Va:function(){if(n)return n.o.Va()},Ya:function(){if(n)return n.Ya},o:function(){if(n)return n.o}}}(),w.b("computedContext",w.S),w.b("computedContext.getDependenciesCount",w.S.qa),w.b("computedContext.getDependencies",w.S.Va),w.b("computedContext.isInitial",w.S.Ya),w.b("computedContext.registerDependency",w.S.cc),w.b("ignoreDependencies",w.Yd=w.u.G);var O=w.a.Da("_latestValue");w.ta=function(t){function e(){return 0<arguments.length?(e.sb(e[O],arguments[0])&&(e.ya(),e[O]=arguments[0],e.xa()),this):(w.u.cc(e),e[O])}return e[O]=t,w.a.Ba||w.a.extend(e,w.T.fn),w.T.fn.qb(e),w.a.Ab(e,M),w.options.deferUpdates&&w.Ta.deferred(e,!0),e};var M={equalityComparer:c,v:function(){return this[O]},xa:function(){this.notifySubscribers(this[O],"spectate"),this.notifySubscribers(this[O])},ya:function(){this.notifySubscribers(this[O],"beforeChange")}};w.a.Ba&&w.a.setPrototypeOf(M,w.T.fn);var S=w.ta.Ma="__ko_proto__";M[S]=w.ta,w.O=function(t){if((t="function"==typeof t&&t[S])&&t!==M[S]&&t!==w.o.fn[S])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!t},w.Za=function(t){return"function"==typeof t&&(t[S]===M[S]||t[S]===w.o.fn[S]&&t.Nc)},w.b("observable",w.ta),w.b("isObservable",w.O),w.b("isWriteableObservable",w.Za),w.b("isWritableObservable",w.Za),w.b("observable.fn",M),w.L(M,"peek",M.v),w.L(M,"valueHasMutated",M.xa),w.L(M,"valueWillMutate",M.ya),w.Ha=function(t){if("object"!=(void 0===(t=t||[])?"undefined":r(t))||!("length"in t))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return t=w.ta(t),w.a.Ab(t,w.Ha.fn),t.extend({trackArrayChanges:!0})},w.Ha.fn={remove:function(t){for(var e=this.v(),n=[],r="function"!=typeof t||w.O(t)?function(e){return e===t}:t,i=0;i<e.length;i++){var o=e[i];if(r(o)){if(0===n.length&&this.ya(),e[i]!==o)throw Error("Array modified during remove; cannot remove item");n.push(o),e.splice(i,1),i--}}return n.length&&this.xa(),n},removeAll:function(e){if(e===t){var n=this.v(),r=n.slice(0);return this.ya(),n.splice(0,n.length),this.xa(),r}return e?this.remove(function(t){return 0<=w.a.A(e,t)}):[]},destroy:function(t){var e=this.v(),n="function"!=typeof t||w.O(t)?function(e){return e===t}:t;this.ya();for(var r=e.length-1;0<=r;r--){var i=e[r];n(i)&&(i._destroy=!0)}this.xa()},destroyAll:function(e){return e===t?this.destroy(function(){return!0}):e?this.destroy(function(t){return 0<=w.a.A(e,t)}):[]},indexOf:function(t){var e=this();return w.a.A(e,t)},replace:function(t,e){var n=this.indexOf(t);0<=n&&(this.ya(),this.v()[n]=e,this.xa())},sorted:function(t){var e=this().slice(0);return t?e.sort(t):e.sort()},reversed:function(){return this().slice(0).reverse()}},w.a.Ba&&w.a.setPrototypeOf(w.Ha.fn,w.ta.fn),w.a.D("pop push reverse shift sort splice unshift".split(" "),function(t){w.Ha.fn[t]=function(){var e=this.v();this.ya(),this.zc(e,t,arguments);var n=e[t].apply(e,arguments);return this.xa(),n===e?this:n}}),w.a.D(["slice"],function(t){w.Ha.fn[t]=function(){var e=this();return e[t].apply(e,arguments)}}),w.Pc=function(t){return w.O(t)&&"function"==typeof t.remove&&"function"==typeof t.push},w.b("observableArray",w.Ha),w.b("isObservableArray",w.Pc),w.Ta.trackArrayChanges=function(e,n){function i(){function t(){if(l){var t,n=[].concat(e.v()||[]);e.Wa("arrayChange")&&((!c||1<l)&&(c=w.a.Pb(s,n,e.Ob)),t=c),s=n,c=null,l=0,t&&t.length&&e.notifySubscribers(t,"arrayChange")}}u?t():(u=!0,a=e.subscribe(function(){++l},null,"spectate"),s=[].concat(e.v()||[]),c=null,o=e.subscribe(t))}if(e.Ob={},n&&"object"==(void 0===n?"undefined":r(n))&&w.a.extend(e.Ob,n),e.Ob.sparse=!0,!e.zc){var o,a,s,u=!1,c=null,l=0,h=e.Qa,f=e.hb;e.Qa=function(t){h&&h.call(e,t),"arrayChange"===t&&i()},e.hb=function(n){f&&f.call(e,n),"arrayChange"!==n||e.Wa("arrayChange")||(o&&o.s(),a&&a.s(),a=o=null,u=!1,s=t)},e.zc=function(t,e,n){function r(t,e,n){return i[i.length]={status:t,value:e,index:n}}if(u&&!l){var i=[],o=t.length,a=n.length,s=0;switch(e){case"push":s=o;case"unshift":for(e=0;e<a;e++)r("added",n[e],s+e);break;case"pop":s=o-1;case"shift":o&&r("deleted",t[s],s);break;case"splice":e=Math.min(Math.max(0,0>n[0]?o+n[0]:n[0]),o),o=1===a?o:Math.min(e+(n[1]||0),o),a=e+a-2,s=Math.max(o,a);for(var h=[],f=[],p=2;e<s;++e,++p)e<o&&f.push(r("deleted",t[e],e)),e<a&&h.push(r("added",n[p],e));w.a.Kc(f,h);break;default:return}c=i}}}};var P=w.a.Da("_state");w.o=w.$=function(e,n,i){function o(){if(0<arguments.length){if("function"!=typeof a)throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return a.apply(s.nb,arguments),this}return s.ra||w.u.cc(o),(s.ka||s.J&&o.Xa())&&o.ha(),s.X}if("object"===(void 0===e?"undefined":r(e))?i=e:(i=i||{},e&&(i.read=e)),"function"!=typeof i.read)throw Error("Pass a function that returns the value of the ko.computed");var a=i.write,s={X:t,sa:!0,ka:!0,rb:!1,jc:!1,ra:!1,wb:!1,J:!1,Wc:i.read,nb:n||i.owner,l:i.disposeWhenNodeIsRemoved||i.l||null,Sa:i.disposeWhen||i.Sa,Rb:null,I:{},V:0,Ic:null};return o[P]=s,o.Nc="function"==typeof a,w.a.Ba||w.a.extend(o,w.T.fn),w.T.fn.qb(o),w.a.Ab(o,C),i.pure?(s.wb=!0,s.J=!0,w.a.extend(o,T)):i.deferEvaluation&&w.a.extend(o,I),w.options.deferUpdates&&w.Ta.deferred(o,!0),s.l&&(s.jc=!0,s.l.nodeType||(s.l=null)),s.J||i.deferEvaluation||o.ha(),s.l&&o.ja()&&w.a.K.za(s.l,s.Rb=function(){o.s()}),o};var C={equalityComparer:c,qa:function(){return this[P].V},Va:function(){var t=[];return w.a.P(this[P].I,function(e,n){t[n.Ka]=n.da}),t},Vb:function(t){if(!this[P].V)return!1;var e=this.Va();return-1!==w.a.A(e,t)||!!w.a.Lb(e,function(e){return e.Vb&&e.Vb(t)})},uc:function(t,e,n){if(this[P].wb&&e===this)throw Error("A 'pure' computed must not be called recursively");this[P].I[t]=n,n.Ka=this[P].V++,n.La=e.ob()},Xa:function(){var t,e,n=this[P].I;for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&(e=n[t],this.Ia&&e.da.Ja||e.da.Dd(e.La)))return!0},Jd:function(){this.Ia&&!this[P].rb&&this.Ia(!1)},ja:function(){var t=this[P];return t.ka||0<t.V},Rd:function(){this.Ja?this[P].ka&&(this[P].sa=!0):this.Hc()},$c:function(t){if(t.Hb){var e=t.subscribe(this.Jd,this,"dirty"),n=t.subscribe(this.Rd,this);return{da:t,s:function(){e.s(),n.s()}}}return t.subscribe(this.Hc,this)},Hc:function(){var t=this,e=t.throttleEvaluation;e&&0<=e?(clearTimeout(this[P].Ic),this[P].Ic=w.a.setTimeout(function(){t.ha(!0)},e)):t.Ia?t.Ia(!0):t.ha(!0)},ha:function(t){var e=this[P],n=e.Sa,r=!1;if(!e.rb&&!e.ra){if(e.l&&!w.a.Sb(e.l)||n&&n()){if(!e.jc)return void this.s()}else e.jc=!1;e.rb=!0;try{r=this.zd(t)}finally{e.rb=!1}return r}},zd:function(e){var n=this[P],r=!1,i=n.wb?t:!n.V;r={qd:this,mb:n.I,Qb:n.V},w.u.xc({pd:r,od:d,o:this,Ya:i}),n.I={},n.V=0;var o=this.yd(n,r);return n.V?r=this.sb(n.X,o):(this.s(),r=!0),r&&(n.J?this.Gb():this.notifySubscribers(n.X,"beforeChange"),n.X=o,this.notifySubscribers(n.X,"spectate"),!n.J&&e&&this.notifySubscribers(n.X),this.rc&&this.rc()),i&&this.notifySubscribers(n.X,"awake"),r},yd:function(t,e){try{var n=t.Wc;return t.nb?n.call(t.nb):n()}finally{w.u.end(),e.Qb&&!t.J&&w.a.P(e.mb,p),t.sa=t.ka=!1}},v:function(t){var e=this[P];return(e.ka&&(t||!e.V)||e.J&&this.Xa())&&this.ha(),e.X},ub:function(t){w.T.fn.ub.call(this,t),this.nc=function(){return this[P].J||(this[P].sa?this.ha():this[P].ka=!1),this[P].X},this.Ia=function(t){this.pc(this[P].X),this[P].ka=!0,t&&(this[P].sa=!0),this.qc(this,!t)}},s:function(){var e=this[P];!e.J&&e.I&&w.a.P(e.I,function(t,e){e.s&&e.s()}),e.l&&e.Rb&&w.a.K.yb(e.l,e.Rb),e.I=t,e.V=0,e.ra=!0,e.sa=!1,e.ka=!1,e.J=!1,e.l=t,e.Sa=t,e.Wc=t,this.Nc||(e.nb=t)}},T={Qa:function(t){var e=this,n=e[P];if(!n.ra&&n.J&&"change"==t){if(n.J=!1,n.sa||e.Xa())n.I=null,n.V=0,e.ha()&&e.Gb();else{var r=[];w.a.P(n.I,function(t,e){r[e.Ka]=t}),w.a.D(r,function(t,r){var i=n.I[t],o=e.$c(i.da);o.Ka=r,o.La=i.La,n.I[t]=o}),e.Xa()&&e.ha()&&e.Gb()}n.ra||e.notifySubscribers(n.X,"awake")}},hb:function(e){var n=this[P];n.ra||"change"!=e||this.Wa("change")||(w.a.P(n.I,function(t,e){e.s&&(n.I[t]={da:e.da,Ka:e.Ka,La:e.La},e.s())}),n.J=!0,this.notifySubscribers(t,"asleep"))},ob:function(){var t=this[P];return t.J&&(t.sa||this.Xa())&&this.ha(),w.T.fn.ob.call(this)}},I={Qa:function(t){"change"!=t&&"beforeChange"!=t||this.v()}};w.a.Ba&&w.a.setPrototypeOf(C,w.T.fn);var L=w.ta.Ma;C[L]=w.o,w.Oc=function(t){return"function"==typeof t&&t[L]===C[L]},w.Fd=function(t){return w.Oc(t)&&t[P]&&t[P].wb},w.b("computed",w.o),w.b("dependentObservable",w.o),w.b("isComputed",w.Oc),w.b("isPureComputed",w.Fd),w.b("computed.fn",C),w.L(C,"peek",C.v),w.L(C,"dispose",C.s),w.L(C,"isActive",C.ja),w.L(C,"getDependenciesCount",C.qa),w.L(C,"getDependencies",C.Va),w.xb=function(t,e){return"function"==typeof t?w.o(t,e,{pure:!0}):((t=w.a.extend({},t)).pure=!0,w.o(t,e))},w.b("pureComputed",w.xb),function(){function e(i,o,a){if(a=a||new n,"object"!=(void 0===(i=o(i))?"undefined":r(i))||null===i||i===t||i instanceof RegExp||i instanceof Date||i instanceof String||i instanceof Number||i instanceof Boolean)return i;var s=i instanceof Array?[]:{};return a.save(i,s),function(t,e){if(t instanceof Array){for(var n=0;n<t.length;n++)e(n);"function"==typeof t.toJSON&&e("toJSON")}else for(n in t)e(n)}(i,function(n){var u=o(i[n]);switch(void 0===u?"undefined":r(u)){case"boolean":case"number":case"string":case"function":s[n]=u;break;case"object":case"undefined":var c=a.get(u);s[n]=c!==t?c:e(u,o,a)}}),s}function n(){this.keys=[],this.values=[]}w.ad=function(t){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return e(t,function(t){for(var e=0;w.O(t)&&10>e;e++)t=t();return t})},w.toJSON=function(t,e,n){return t=w.ad(t),w.a.hc(t,e,n)},n.prototype={constructor:n,save:function(t,e){var n=w.a.A(this.keys,t);0<=n?this.values[n]=e:(this.keys.push(t),this.values.push(e))},get:function(e){return 0<=(e=w.a.A(this.keys,e))?this.values[e]:t}}}(),w.b("toJS",w.ad),w.b("toJSON",w.toJSON),w.Wd=function(t,e,n){function r(e){var r=w.xb(t,n).extend({ma:"always"}),i=r.subscribe(function(t){t&&(i.s(),e(t))});return r.notifySubscribers(r.v()),i}return"function"!=typeof Promise||e?r(e.bind(n)):new Promise(r)},w.b("when",w.Wd),w.w={M:function(e){switch(w.a.R(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?w.a.g.get(e,w.c.options.$b):7>=w.a.W?e.getAttributeNode("value")&&e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?w.w.M(e.options[e.selectedIndex]):t;default:return e.value}},cb:function(e,n,r){switch(w.a.R(e)){case"option":"string"==typeof n?(w.a.g.set(e,w.c.options.$b,t),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=n):(w.a.g.set(e,w.c.options.$b,n),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof n?n:"");break;case"select":""!==n&&null!==n||(n=t);for(var i,o=-1,a=0,s=e.options.length;a<s;++a)if((i=w.w.M(e.options[a]))==n||""===i&&n===t){o=a;break}(r||0<=o||n===t&&1<e.size)&&(e.selectedIndex=o,6===w.a.W&&w.a.setTimeout(function(){e.selectedIndex=o},0));break;default:null!==n&&n!==t||(n=""),e.value=n}}},w.b("selectExtensions",w.w),w.b("selectExtensions.readValue",w.w.M),w.b("selectExtensions.writeValue",w.w.cb),w.m=function(){function t(t){123===(t=w.a.Db(t)).charCodeAt(0)&&(t=t.slice(1,-1));var e,n=[],a=(t+="\n,").match(r),s=[],u=0;if(1<a.length){for(var c,l=0;c=a[l];++l){var h=c.charCodeAt(0);if(44===h){if(0>=u){n.push(e&&s.length?{key:e,value:s.join("")}:{unknown:e||s.join("")}),e=u=0,s=[];continue}}else if(58===h){if(!u&&!e&&1===s.length){e=s.pop();continue}}else{if(47===h&&1<c.length&&(47===c.charCodeAt(1)||42===c.charCodeAt(1)))continue;47===h&&l&&1<c.length?(h=a[l-1].match(i))&&!o[h[0]]&&(a=(t=t.substr(t.indexOf(c)+1)).match(r),l=-1,c="/"):40===h||123===h||91===h?++u:41===h||125===h||93===h?--u:e||s.length||34!==h&&39!==h||(c=c.slice(1,-1))}s.push(c)}if(0<u)throw Error("Unbalanced parentheses, braces, or brackets")}return n}var e=["true","false","null","undefined"],n=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,r=RegExp("\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/w*|[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]|[^\\s]","g"),i=/[\])"'A-Za-z0-9_$]+$/,o={in:1,return:1,typeof:1},a={};return{Ra:[],wa:a,ac:t,vb:function(r,i){function o(t,r){var i;if(!l){var h=w.getBindingHandler(t);if(h&&h.preprocess&&!(r=h.preprocess(r,t,o)))return;(h=a[t])&&(i=r,i=!(0<=w.a.A(e,i))&&null!==(h=i.match(n))&&(h[1]?"Object("+h[1]+")"+h[2]:i),h=i),h&&u.push("'"+("string"==typeof a[t]?a[t]:t)+"':function(_z){"+i+"=_z}")}c&&(r="function(){return "+r+" }"),s.push("'"+t+"':"+r)}var s=[],u=[],c=(i=i||{}).valueAccessors,l=i.bindingParams,h="string"==typeof r?t(r):r;return w.a.D(h,function(t){o(t.key||t.unknown,t.value)}),u.length&&o("_ko_property_writers","{"+u.join(",")+" }"),s.join(",")},Id:function(t,e){for(var n=0;n<t.length;n++)if(t[n].key==e)return!0;return!1},eb:function(t,e,n,r,i){t&&w.O(t)?!w.Za(t)||i&&t.v()===r||t(r):(t=e.get("_ko_property_writers"))&&t[n]&&t[n](r)}}}(),w.b("expressionRewriting",w.m),w.b("expressionRewriting.bindingRewriteValidators",w.m.Ra),w.b("expressionRewriting.parseObjectLiteral",w.m.ac),w.b("expressionRewriting.preProcessBindings",w.m.vb),w.b("expressionRewriting._twoWayBindings",w.m.wa),w.b("jsonExpressionRewriting",w.m),w.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",w.m.vb),function(){function t(t){return 8==t.nodeType&&a.test(o?t.text:t.nodeValue)}function e(t){return 8==t.nodeType&&s.test(o?t.text:t.nodeValue)}function r(n,r){for(var i=n,o=1,a=[];i=i.nextSibling;){if(e(i)&&(w.a.g.set(i,c,!0),0==--o))return a;a.push(i),t(i)&&o++}if(!r)throw Error("Cannot find closing comment tag to match: "+n.nodeValue);return null}function i(t,e){var n=r(t,e);return n?0<n.length?n[n.length-1].nextSibling:t.nextSibling:null}var o=n&&"\x3c!--test--\x3e"===n.createComment("test").text,a=o?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,s=o?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,u={ul:!0,ol:!0},c="__ko_matchedEndComment__";w.h={ea:{},childNodes:function(e){return t(e)?r(e):e.childNodes},Ea:function(e){if(t(e))for(var n=0,r=(e=w.h.childNodes(e)).length;n<r;n++)w.removeNode(e[n]);else w.a.Tb(e)},va:function(e,n){if(t(e)){w.h.Ea(e);for(var r=e.nextSibling,i=0,o=n.length;i<o;i++)r.parentNode.insertBefore(n[i],r)}else w.a.va(e,n)},Vc:function(e,n){var r;t(e)?(r=e.nextSibling,e=e.parentNode):r=e.firstChild,r?n!==r&&e.insertBefore(n,r):e.appendChild(n)},Wb:function(e,n,r){r?(r=r.nextSibling,t(e)&&(e=e.parentNode),r?n!==r&&e.insertBefore(n,r):e.appendChild(n)):w.h.Vc(e,n)},firstChild:function(n){if(t(n))return!n.nextSibling||e(n.nextSibling)?null:n.nextSibling;if(n.firstChild&&e(n.firstChild))throw Error("Found invalid end comment, as the first child of "+n);return n.firstChild},nextSibling:function(n){if(t(n)&&(n=i(n)),n.nextSibling&&e(n.nextSibling)){var r=n.nextSibling;if(e(r)&&!w.a.g.get(r,c))throw Error("Found end comment without a matching opening comment, as child of "+n);return null}return n.nextSibling},Cd:t,Vd:function(t){return(t=(o?t.text:t.nodeValue).match(a))?t[1]:null},Sc:function(n){if(u[w.a.R(n)]){var r=n.firstChild;if(r)do{if(1===r.nodeType){var o,a=null;if(o=r.firstChild)do{if(a)a.push(o);else if(t(o)){var s=i(o,!0);s?o=s:a=[o]}else e(o)&&(a=[o])}while(o=o.nextSibling);if(o=a)for(a=r.nextSibling,s=0;s<o.length;s++)a?n.insertBefore(o[s],a):n.appendChild(o[s])}}while(r=r.nextSibling)}}}}(),w.b("virtualElements",w.h),w.b("virtualElements.allowedBindings",w.h.ea),w.b("virtualElements.emptyNode",w.h.Ea),w.b("virtualElements.insertAfter",w.h.Wb),w.b("virtualElements.prepend",w.h.Vc),w.b("virtualElements.setDomNodeChildren",w.h.va),w.ga=function(){this.nd={}},w.a.extend(w.ga.prototype,{nodeHasBindings:function(t){switch(t.nodeType){case 1:return null!=t.getAttribute("data-bind")||w.j.getComponentNameForNode(t);case 8:return w.h.Cd(t);default:return!1}},getBindings:function(t,e){var n=(n=this.getBindingsString(t,e))?this.parseBindingsString(n,e,t):null;return w.j.tc(n,t,e,!1)},getBindingAccessors:function(t,e){var n=(n=this.getBindingsString(t,e))?this.parseBindingsString(n,e,t,{valueAccessors:!0}):null;return w.j.tc(n,t,e,!0)},getBindingsString:function(t){switch(t.nodeType){case 1:return t.getAttribute("data-bind");case 8:return w.h.Vd(t);default:return null}},parseBindingsString:function(t,e,n,r){try{var i,o=this.nd,a=t+(r&&r.valueAccessors||"");if(!(i=o[a])){var s,u="with($context){with($data||{}){return{"+w.m.vb(t,r)+"}}}";s=new Function("$context","$element",u),i=o[a]=s}return i(e,n)}catch(e){throw e.message="Unable to parse bindings.\nBindings value: "+t+"\nMessage: "+e.message,e}}}),w.ga.instance=new w.ga,w.b("bindingProvider",w.ga),function(){function i(t){var e=(t=w.a.g.get(t,E))&&t.N;e&&(t.N=null,e.Tc())}function a(t,e,n){this.node=t,this.yc=e,this.kb=[],this.H=!1,e.N||w.a.K.za(t,i),n&&n.N&&(n.N.kb.push(t),this.Kb=n)}function s(t){return function(){return t}}function u(t){return t()}function c(t){return w.a.Ga(w.u.G(t),function(e,n){return function(){return t()[n]}})}function l(t,e,n){return"function"==typeof t?c(t.bind(null,e,n)):w.a.Ga(t,s)}function h(t,e){return c(this.getBindings.bind(this,t,e))}function f(t,e){var n=w.h.firstChild(e);if(n){var r,i=w.ga.instance,o=i.preprocessNode;if(o){for(;r=n;)n=w.h.nextSibling(r),o.call(i,r);n=w.h.firstChild(e)}for(;r=n;)n=w.h.nextSibling(r),p(t,r)}w.i.ma(e,w.i.H)}function p(t,e){var n=t,r=1===e.nodeType;r&&w.h.Sc(e),(r||w.ga.instance.nodeHasBindings(e))&&(n=d(e,null,t).bindingContextForDescendants),n&&!_[w.a.R(e)]&&f(n,e)}function d(e,n,r){var i,o=w.a.g.Ub(e,E,{}),a=o.hd;if(!n){if(a)throw Error("You cannot apply bindings multiple times to the same element.");o.hd=!0}if(a||(o.context=r),o.Zb||(o.Zb={}),n&&"function"!=typeof n)i=n;else{var s=w.ga.instance,c=s.getBindingAccessors||h,l=w.$(function(){return(i=n?n(r,e):c.call(s,e,r))&&(r[y]&&r[y](),r[m]&&r[m]()),i},null,{l:e});i&&l.ja()||(l=null)}var f,p=r;if(i){var d=function(){return w.a.Ga(l?l():i,u)},g=l?function(t){return function(){return u(l()[t])}}:function(t){return i[t]};d.get=function(t){return i[t]&&u(g(t))},d.has=function(t){return t in i},w.i.H in i&&w.i.subscribe(e,w.i.H,function(){var t=(0,i[w.i.H])();if(t){var n=w.h.childNodes(e);n.length&&t(n,w.Ec(n[0]))}}),w.i.pa in i&&(p=w.i.Cb(e,r),w.i.subscribe(e,w.i.pa,function(){var t=(0,i[w.i.pa])();t&&w.h.firstChild(e)&&t(e)})),o=function(t){var e=[],n={},r=[];return w.a.P(t,function i(o){if(!n[o]){var a=w.getBindingHandler(o);a&&(a.after&&(r.push(o),w.a.D(a.after,function(e){if(t[e]){if(-1!==w.a.A(r,e))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+r.join(", "));i(e)}}),r.length--),e.push({key:o,Mc:a})),n[o]=!0}}),e}(i),w.a.D(o,function(n){var r=n.Mc.init,o=n.Mc.update,a=n.key;if(8===e.nodeType&&!w.h.ea[a])throw Error("The binding '"+a+"' cannot be used with virtual elements");try{"function"==typeof r&&w.u.G(function(){var n=r(e,g(a),d,p.$data,p);if(n&&n.controlsDescendantBindings){if(f!==t)throw Error("Multiple bindings ("+f+" and "+a+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");f=a}}),"function"==typeof o&&w.$(function(){o(e,g(a),d,p.$data,p)},null,{l:e})}catch(t){throw t.message='Unable to process binding "'+a+": "+i[a]+'"\nMessage: '+t.message,t}})}return{shouldBindDescendants:o=f===t,bindingContextForDescendants:o&&p}}function g(e,n){return e&&e instanceof w.fa?e:new w.fa(e,t,t,n)}var y=w.a.Da("_subscribable"),v=w.a.Da("_ancestorBindingInfo"),m=w.a.Da("_dataDependency");w.c={};var _={script:!0,textarea:!0,template:!0};w.getBindingHandler=function(t){return w.c[t]};var b={};w.fa=function(e,n,r,i,o){function a(){var t=h?l():l,e=w.a.f(t);return n?(w.a.extend(u,n),v in n&&(u[v]=n[v])):(u.$parents=[],u.$root=e,u.ko=w),u[y]=s,c?e=u.$data:(u.$rawData=t,u.$data=e),r&&(u[r]=e),i&&i(u,n,e),n&&n[y]&&!w.S.o().Vb(n[y])&&n[y](),f&&(u[m]=f),u.$data}var s,u=this,c=e===b,l=c?t:e,h="function"==typeof l&&!w.O(l),f=o&&o.dataDependency;o&&o.exportDependencies?a():((s=w.xb(a)).v(),s.ja()?s.equalityComparer=null:u[y]=t)},w.fa.prototype.createChildContext=function(t,e,n,i){if(!i&&e&&"object"==(void 0===e?"undefined":r(e))&&(e=(i=e).as,n=i.extend),e&&i&&i.noChildContext){var o="function"==typeof t&&!w.O(t);return new w.fa(b,this,null,function(r){n&&n(r),r[e]=o?t():t},i)}return new w.fa(t,this,e,function(t,e){t.$parentContext=e,t.$parent=e.$data,t.$parents=(e.$parents||[]).slice(0),t.$parents.unshift(t.$parent),n&&n(t)},i)},w.fa.prototype.extend=function(t,e){return new w.fa(b,this,null,function(e){w.a.extend(e,"function"==typeof t?t(e):t)},e)};var E=w.a.g.Z();a.prototype.Tc=function(){this.Kb&&this.Kb.N&&this.Kb.N.sd(this.node)},a.prototype.sd=function(t){w.a.Pa(this.kb,t),!this.kb.length&&this.H&&this.Cc()},a.prototype.Cc=function(){this.H=!0,this.yc.N&&!this.kb.length&&(this.yc.N=null,w.a.K.yb(this.node,i),w.i.ma(this.node,w.i.pa),this.Tc())},w.i={H:"childrenComplete",pa:"descendantsComplete",subscribe:function(t,e,n,r,i){var o=w.a.g.Ub(t,E,{});return o.Fa||(o.Fa=new w.T),i&&i.notifyImmediately&&o.Zb[e]&&w.u.G(n,r,[t]),o.Fa.subscribe(n,r,e)},ma:function(e,n){var r=w.a.g.get(e,E);if(r&&(r.Zb[n]=!0,r.Fa&&r.Fa.notifySubscribers(e,n),n==w.i.H))if(r.N)r.N.Cc();else if(r.N===t&&r.Fa&&r.Fa.Wa(w.i.pa))throw Error("descendantsComplete event not supported for bindings on this node")},Cb:function(t,e){var n=w.a.g.Ub(t,E,{});return n.N||(n.N=new a(t,n,e[v])),e[v]==n?e:e.extend(function(t){t[v]=n})}},w.Td=function(t){return(t=w.a.g.get(t,E))&&t.context},w.ib=function(t,e,n){return 1===t.nodeType&&w.h.Sc(t),d(t,e,g(n))},w.ld=function(t,e,n){return n=g(n),w.ib(t,l(e,n,t),n)},w.Oa=function(t,e){1!==e.nodeType&&8!==e.nodeType||f(g(t),e)},w.vc=function(t,r,i){if(!o&&e.jQuery&&(o=e.jQuery),2>arguments.length){if(!(r=n.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!r||1!==r.nodeType&&8!==r.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");p(g(t,i),r)},w.Dc=function(e){return!e||1!==e.nodeType&&8!==e.nodeType?t:w.Td(e)},w.Ec=function(e){return(e=w.Dc(e))?e.$data:t},w.b("bindingHandlers",w.c),w.b("bindingEvent",w.i),w.b("bindingEvent.subscribe",w.i.subscribe),w.b("bindingEvent.startPossiblyAsyncContentBinding",w.i.Cb),w.b("applyBindings",w.vc),w.b("applyBindingsToDescendants",w.Oa),w.b("applyBindingAccessorsToNode",w.ib),w.b("applyBindingsToNode",w.ld),w.b("contextFor",w.Dc),w.b("dataFor",w.Ec)}(),function(t){function e(e,r){var a,s=Object.prototype.hasOwnProperty.call(i,e)?i[e]:t;s?s.subscribe(r):((s=i[e]=new w.T).subscribe(r),n(e,function(t,n){var r=!(!n||!n.synchronous);o[e]={definition:t,Gd:r},delete i[e],a||r?s.notifySubscribers(t):w.na.zb(function(){s.notifySubscribers(t)})}),a=!0)}function n(t,e){r("getConfig",[t],function(n){n?r("loadComponent",[t,n],function(t){e(t,n)}):e(null,null)})}function r(e,n,i,o){o||(o=w.j.loaders.slice(0));var a=o.shift();if(a){var s=a[e];if(s){var u=!1;if(s.apply(a,n.concat(function(t){u?i(null):null!==t?i(t):r(e,n,i,o)}))!==t&&(u=!0,!a.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else r(e,n,i,o)}else i(null)}var i={},o={};w.j={get:function(n,r){var i=Object.prototype.hasOwnProperty.call(o,n)?o[n]:t;i?i.Gd?w.u.G(function(){r(i.definition)}):w.na.zb(function(){r(i.definition)}):e(n,r)},Bc:function(t){delete o[t]},oc:r},w.j.loaders=[],w.b("components",w.j),w.b("components.get",w.j.get),w.b("components.clearCachedDefinition",w.j.Bc)}(),function(){function t(t,e,n,r){function i(){0==--s&&r(o)}var o={},s=2,u=n.template;n=n.viewModel,u?a(e,u,function(e){w.j.oc("loadTemplate",[t,e],function(t){o.template=t,i()})}):i(),n?a(e,n,function(e){w.j.oc("loadViewModel",[t,e],function(t){o[l]=t,i()})}):i()}function i(t){switch(w.a.R(t)){case"script":return w.a.ua(t.text);case"textarea":return w.a.ua(t.value);case"template":if(o(t.content))return w.a.Ca(t.content.childNodes)}return w.a.Ca(t.childNodes)}function o(t){return e.DocumentFragment?t instanceof DocumentFragment:t&&11===t.nodeType}function a(t,n,i){"string"==typeof n.require?u||e.require?(u||e.require)([n.require],function(t){t&&"object"===(void 0===t?"undefined":r(t))&&t.Xd&&t.default&&(t=t.default),i(t)}):t("Uses require, but no AMD loader is present"):i(n)}function s(t){return function(e){throw Error("Component '"+t+"': "+e)}}var c={};w.j.register=function(t,e){if(!e)throw Error("Invalid configuration for "+t);if(w.j.tb(t))throw Error("Component "+t+" is already registered");c[t]=e},w.j.tb=function(t){return Object.prototype.hasOwnProperty.call(c,t)},w.j.unregister=function(t){delete c[t],w.j.Bc(t)},w.j.Fc={getConfig:function(t,e){e(w.j.tb(t)?c[t]:null)},loadComponent:function(e,n,r){var i=s(e);a(i,n,function(n){t(e,i,n,r)})},loadTemplate:function(t,r,a){if(t=s(t),"string"==typeof r)a(w.a.ua(r));else if(r instanceof Array)a(r);else if(o(r))a(w.a.la(r.childNodes));else if(r.element)if(r=r.element,e.HTMLElement?r instanceof HTMLElement:r&&r.tagName&&1===r.nodeType)a(i(r));else if("string"==typeof r){var u=n.getElementById(r);u?a(i(u)):t("Cannot find element with ID "+r)}else t("Unknown element type: "+r);else t("Unknown template value: "+r)},loadViewModel:function(t,e,n){!function t(e,n,r){if("function"==typeof n)r(function(t){return new n(t)});else if("function"==typeof n[l])r(n[l]);else if("instance"in n){var i=n.instance;r(function(){return i})}else"viewModel"in n?t(e,n.viewModel,r):e("Unknown viewModel value: "+n)}(s(t),e,n)}};var l="createViewModel";w.b("components.register",w.j.register),w.b("components.isRegistered",w.j.tb),w.b("components.unregister",w.j.unregister),w.b("components.defaultLoader",w.j.Fc),w.j.loaders.push(w.j.Fc),w.j.dd=c}(),function(){function t(t,n){if(r=t.getAttribute("params")){var r=e.parseBindingsString(r,n,t,{valueAccessors:!0,bindingParams:!0}),i=(r=w.a.Ga(r,function(e){return w.o(e,null,{l:t})}),w.a.Ga(r,function(e){var n=e.v();return e.ja()?w.o({read:function(){return w.a.f(e())},write:w.Za(n)&&function(t){e()(t)},l:t}):n}));return Object.prototype.hasOwnProperty.call(i,"$raw")||(i.$raw=r),i}return{$raw:{}}}w.j.getComponentNameForNode=function(t){var e=w.a.R(t);if(w.j.tb(e)&&(-1!=e.indexOf("-")||"[object HTMLUnknownElement]"==""+t||8>=w.a.W&&t.tagName===e))return e},w.j.tc=function(e,n,r,i){if(1===n.nodeType){var o=w.j.getComponentNameForNode(n);if(o){if((e=e||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var a={name:o,params:t(n,r)};e.component=i?function(){return a}:a}}return e};var e=new w.ga;9>w.a.W&&(w.j.register=function(t){return function(e){return t.apply(this,arguments)}}(w.j.register),n.createDocumentFragment=function(t){return function(){var e,n=t(),r=w.j.dd;for(e in r);return n}}(n.createDocumentFragment))}(),function(){var t=0;w.c.component={init:function(e,n,r,i,o){function a(){var t=s&&s.dispose;"function"==typeof t&&t.call(s),c&&c.s(),u=s=c=null}var s,u,c,l=w.a.la(w.h.childNodes(e));return w.h.Ea(e),w.a.K.za(e,a),w.o(function(){var r,i,h=w.a.f(n());if("string"==typeof h?r=h:(r=w.a.f(h.name),i=w.a.f(h.params)),!r)throw Error("No component name specified");var f=w.i.Cb(e,o),p=u=++t;w.j.get(r,function(t){if(u===p){if(a(),!t)throw Error("Unknown component '"+r+"'");!function(t,e,n){if(!(e=e.template))throw Error("Component '"+t+"' has no template");t=w.a.Ca(e),w.h.va(n,t)}(r,t,e);var n=function(t,e,n){var r=t.createViewModel;return r?r.call(t,e,n):e}(t,i,{element:e,templateNodes:l});t=f.createChildContext(n,{extend:function(t){t.$component=n,t.$componentTemplateNodes=l}}),n&&n.koDescendantsComplete&&(c=w.i.subscribe(e,w.i.pa,n.koDescendantsComplete,n)),s=n,w.Oa(t,e)}})},null,{l:e}),{controlsDescendantBindings:!0}}},w.h.ea.component=!0}();var A={class:"className",for:"htmlFor"};w.c.attr={update:function(e,n){var r=w.a.f(n())||{};w.a.P(r,function(n,r){r=w.a.f(r);var i=n.indexOf(":"),o=(i="lookupNamespaceURI"in e&&0<i&&e.lookupNamespaceURI(n.substr(0,i)),!1===r||null===r||r===t);o?i?e.removeAttributeNS(i,n):e.removeAttribute(n):r=r.toString(),8>=w.a.W&&n in A?(n=A[n],o?e.removeAttribute(n):e[n]=r):o||(i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)),"name"===n&&w.a.Yc(e,o?"":r)})}},w.c.checked={after:["value","attr"],init:function(e,n,r){function i(){var i=e.checked,u=o();if(!w.S.Ya()&&(i||!s&&!w.S.qa())){var h=w.u.G(n);if(c){var p=l?h.v():h,d=f;f=u,d!==u?i&&(w.a.Na(p,u,!0),w.a.Na(p,d,!1)):w.a.Na(p,u,i),l&&w.Za(h)&&h(p)}else a&&(u===t?u=i:i||(u=t)),w.m.eb(h,r,"checked",u,!0)}}var o=w.xb(function(){return r.has("checkedValue")?w.a.f(r.get("checkedValue")):h?r.has("value")?w.a.f(r.get("value")):e.value:void 0}),a="checkbox"==e.type,s="radio"==e.type;if(a||s){var u=n(),c=a&&w.a.f(u)instanceof Array,l=!(c&&u.push&&u.splice),h=s||c,f=c?o():t;s&&!e.name&&w.c.uniqueName.init(e,function(){return!0}),w.o(i,null,{l:e}),w.a.B(e,"click",i),w.o(function(){var r=w.a.f(n()),i=o();c?(e.checked=0<=w.a.A(r,i),f=i):e.checked=a&&i===t?!!r:o()===r},null,{l:e}),u=t}}},w.m.wa.checked=!0,w.c.checkedValue={update:function(t,e){t.value=w.a.f(e())}},w.c.class={update:function(t,e){var n=w.a.Db(w.a.f(e()));w.a.Eb(t,t.__ko__cssValue,!1),t.__ko__cssValue=n,w.a.Eb(t,n,!0)}},w.c.css={update:function(t,e){var n=w.a.f(e());null!==n&&"object"==(void 0===n?"undefined":r(n))?w.a.P(n,function(e,n){n=w.a.f(n),w.a.Eb(t,e,n)}):w.c.class.update(t,e)}},w.c.enable={update:function(t,e){var n=w.a.f(e());n&&t.disabled?t.removeAttribute("disabled"):n||t.disabled||(t.disabled=!0)}},w.c.disable={update:function(t,e){w.c.enable.update(t,function(){return!w.a.f(e())})}},w.c.event={init:function(t,e,n,r,i){var o=e()||{};w.a.P(o,function(o){"string"==typeof o&&w.a.B(t,o,function(t){var a,s=e()[o];if(s){try{var u=w.a.la(arguments);r=i.$data,u.unshift(r),a=s.apply(r,u)}finally{!0!==a&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}!1===n.get(o+"Bubble")&&(t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation())}})})}},w.c.foreach={Rc:function(t){return function(){var e=t(),n=w.a.bc(e);return n&&"number"!=typeof n.length?(w.a.f(e),{foreach:n.data,as:n.as,noChildContext:n.noChildContext,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:w.ba.Ma}):{foreach:e,templateEngine:w.ba.Ma}}},init:function(t,e){return w.c.template.init(t,w.c.foreach.Rc(e))},update:function(t,e,n,r,i){return w.c.template.update(t,w.c.foreach.Rc(e),n,r,i)}},w.m.Ra.foreach=!1,w.h.ea.foreach=!0,w.c.hasfocus={init:function(t,e,n){function r(r){t.__ko_hasfocusUpdating=!0;var i=t.ownerDocument;if("activeElement"in i){var o;try{o=i.activeElement}catch(t){o=i.body}r=o===t}i=e(),w.m.eb(i,n,"hasfocus",r,!0),t.__ko_hasfocusLastValue=r,t.__ko_hasfocusUpdating=!1}var i=r.bind(null,!0),o=r.bind(null,!1);w.a.B(t,"focus",i),w.a.B(t,"focusin",i),w.a.B(t,"blur",o),w.a.B(t,"focusout",o),t.__ko_hasfocusLastValue=!1},update:function(t,e){var n=!!w.a.f(e());t.__ko_hasfocusUpdating||t.__ko_hasfocusLastValue===n||(n?t.focus():t.blur(),!n&&t.__ko_hasfocusLastValue&&t.ownerDocument.body.focus(),w.u.G(w.a.Fb,null,[t,n?"focusin":"focusout"]))}},w.m.wa.hasfocus=!0,w.c.hasFocus=w.c.hasfocus,w.m.wa.hasFocus="hasfocus",w.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(t,e){w.a.fc(t,e())}},function(){function t(t,e,n){w.c[t]={init:function(t,r,i,o,a){var s,u,c,l,h,f={};if(e){o=i.get("as");var p=i.get("noChildContext");f={as:o,noChildContext:p,exportDependencies:h=!(o&&p)}}return l=(c="render"==i.get("completeOn"))||i.has(w.i.pa),w.o(function(){var i,o=w.a.f(r()),p=!n!=!o,d=!u;(h||p!==s)&&(l&&(a=w.i.Cb(t,a)),p&&(e&&!h||(f.dataDependency=w.S.o()),i=e?a.createChildContext("function"==typeof o?o:r,f):w.S.qa()?a.extend(null,f):a),d&&w.S.qa()&&(u=w.a.Ca(w.h.childNodes(t),!0)),p?(d||w.h.va(t,w.a.Ca(u)),w.Oa(i,t)):(w.h.Ea(t),c||w.i.ma(t,w.i.H)),s=p)},null,{l:t}),{controlsDescendantBindings:!0}}},w.m.Ra[t]=!1,w.h.ea[t]=!0}t("if"),t("ifnot",!1,!0),t("with",!0)}(),w.c.let={init:function(t,e,n,r,i){return e=i.extend(e),w.Oa(e,t),{controlsDescendantBindings:!0}}},w.h.ea.let=!0;var N={};w.c.options={init:function(t){if("select"!==w.a.R(t))throw Error("options binding applies only to SELECT elements");for(;0<t.length;)t.remove(0);return{controlsDescendantBindings:!0}},update:function(e,n,i){function o(){return w.a.jb(e.options,function(t){return t.selected})}function a(t,e,n){var i=void 0===e?"undefined":r(e);return"function"==i?e(t):"string"==i?t[e]:n}function s(t,n){if(g&&h)w.i.ma(e,w.i.H);else if(d.length){var r=0<=w.a.A(d,w.w.M(n[0]));w.a.Zc(n[0],r),g&&!r&&w.u.G(w.a.Fb,null,[e,"change"])}}var u=e.multiple,c=0!=e.length&&u?e.scrollTop:null,l=w.a.f(n()),h=i.get("valueAllowUnset")&&i.has("value"),f=i.get("optionsIncludeDestroyed");n={};var p,d=[];h||(u?d=w.a.Mb(o(),w.w.M):0<=e.selectedIndex&&d.push(w.w.M(e.options[e.selectedIndex]))),l&&(void 0===l.length&&(l=[l]),p=w.a.jb(l,function(e){return f||e===t||null===e||!w.a.f(e._destroy)}),i.has("optionsCaption")&&null!==(l=w.a.f(i.get("optionsCaption")))&&l!==t&&p.unshift(N));var g=!1;n.beforeRemove=function(t){e.removeChild(t)},l=s,i.has("optionsAfterRender")&&"function"==typeof i.get("optionsAfterRender")&&(l=function(e,n){s(0,n),w.u.G(i.get("optionsAfterRender"),null,[n[0],e!==N?e:t])}),w.a.ec(e,p,function(n,r,o){return o.length&&(d=!h&&o[0].selected?[w.w.M(o[0])]:[],g=!0),r=e.ownerDocument.createElement("option"),n===N?(w.a.Bb(r,i.get("optionsCaption")),w.w.cb(r,t)):(o=a(n,i.get("optionsValue"),n),w.w.cb(r,w.a.f(o)),n=a(n,i.get("optionsText"),o),w.a.Bb(r,n)),[r]},n,l),h||(u?d.length&&o().length<d.length:d.length&&0<=e.selectedIndex?w.w.M(e.options[e.selectedIndex])!==d[0]:d.length||0<=e.selectedIndex)&&w.u.G(w.a.Fb,null,[e,"change"]),(h||w.S.Ya())&&w.i.ma(e,w.i.H),w.a.wd(e),c&&20<Math.abs(c-e.scrollTop)&&(e.scrollTop=c)}},w.c.options.$b=w.a.g.Z(),w.c.selectedOptions={init:function(t,e,n){function r(){var r=e(),i=[];w.a.D(t.getElementsByTagName("option"),function(t){t.selected&&i.push(w.w.M(t))}),w.m.eb(r,n,"selectedOptions",i)}function i(){var n=w.a.f(e()),r=t.scrollTop;n&&"number"==typeof n.length&&w.a.D(t.getElementsByTagName("option"),function(t){var e=0<=w.a.A(n,w.w.M(t));t.selected!=e&&w.a.Zc(t,e)}),t.scrollTop=r}if("select"!=w.a.R(t))throw Error("selectedOptions binding applies only to SELECT elements");var o;w.i.subscribe(t,w.i.H,function(){o?r():(w.a.B(t,"change",r),o=w.o(i,null,{l:t}))},null,{notifyImmediately:!0})},update:function(){}},w.m.wa.selectedOptions=!0,w.c.style={update:function(e,n){var r=w.a.f(n()||{});w.a.P(r,function(n,r){if(null!==(r=w.a.f(r))&&r!==t&&!1!==r||(r=""),o)o(e).css(n,r);else if(/^--/.test(n))e.style.setProperty(n,r);else{n=n.replace(/-(\w)/g,function(t,e){return e.toUpperCase()});var i=e.style[n];e.style[n]=r,r===i||e.style[n]!=i||isNaN(r)||(e.style[n]=r+"px")}})}},w.c.submit={init:function(t,e,n,r,i){if("function"!=typeof e())throw Error("The value for a submit binding must be a function");w.a.B(t,"submit",function(n){var r,o=e();try{r=o.call(i.$data,t)}finally{!0!==r&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}})}},w.c.text={init:function(){return{controlsDescendantBindings:!0}},update:function(t,e){w.a.Bb(t,e())}},w.h.ea.text=!0,function(){if(e&&e.navigator){var n,r,i,o,a,s=function(t){if(t)return parseFloat(t[1])},u=e.navigator.userAgent;(n=e.opera&&e.opera.version&&parseInt(e.opera.version()))||(a=s(u.match(/Edge\/([^ ]+)$/)))||s(u.match(/Chrome\/([^ ]+)/))||(r=s(u.match(/Version\/([^ ]+) Safari/)))||(i=s(u.match(/Firefox\/([^ ]+)/)))||(o=w.a.W||s(u.match(/MSIE ([^ ]+)/)))||(o=s(u.match(/rv:([^ )]+)/)))}if(8<=o&&10>o)var c=w.a.g.Z(),l=w.a.g.Z(),h=function(t){var e=this.activeElement;(e=e&&w.a.g.get(e,l))&&e(t)},f=function(t,e){var n=t.ownerDocument;w.a.g.get(n,c)||(w.a.g.set(n,c,!0),w.a.B(n,"selectionchange",h)),w.a.g.set(t,l,e)};w.c.textInput={init:function(e,s,u){function c(t,n){w.a.B(e,t,n)}function l(){p||(d=e.value,p=w.a.setTimeout(h,4))}function h(){clearTimeout(p),d=p=t;var n=e.value;g!==n&&(g=n,w.m.eb(s(),u,"textInput",n))}var p,d,g=e.value,y=9==w.a.W?l:h,v=!1;o&&c("keypress",h),11>o&&c("propertychange",function(t){v||"value"!==t.propertyName||y(t)}),8==o&&(c("keyup",h),c("keydown",h)),f&&(f(e,y),c("dragend",l)),(!o||9<=o)&&c("input",y),5>r&&"textarea"===w.a.R(e)?(c("keydown",l),c("paste",l),c("cut",l)):11>n?c("keydown",l):4>i?(c("DOMAutoComplete",h),c("dragdrop",h),c("drop",h)):a&&"number"===e.type&&c("keydown",l),c("change",h),c("blur",h),w.o(function n(){var r=w.a.f(s());null!==r&&r!==t||(r=""),d!==t&&r===d?w.a.setTimeout(n,4):e.value!==r&&(v=!0,e.value=r,v=!1,g=e.value)},null,{l:e})}},w.m.wa.textInput=!0,w.c.textinput={preprocess:function(t,e,n){n("textInput",t)}}}(),w.c.uniqueName={init:function(t,e){if(e()){var n="ko_unique_"+ ++w.c.uniqueName.rd;w.a.Yc(t,n)}}},w.c.uniqueName.rd=0,w.c.using={init:function(t,e,n,r,i){var o;return n.has("as")&&(o={as:n.get("as"),noChildContext:n.get("noChildContext")}),e=i.createChildContext(e,o),w.Oa(e,t),{controlsDescendantBindings:!0}}},w.h.ea.using=!0,w.c.value={init:function(e,n,r){var i=w.a.R(e),o="input"==i;if(!o||"checkbox"!=e.type&&"radio"!=e.type){var a=[],s=r.get("valueUpdate"),u=!1,c=null;s&&(a="string"==typeof s?[s]:w.a.wc(s),w.a.Pa(a,"change"));var l,h,f=function(){c=null,u=!1;var t=n(),i=w.w.M(e);w.m.eb(t,r,"value",i)};!w.a.W||!o||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=w.a.A(a,"propertychange")||(w.a.B(e,"propertychange",function(){u=!0}),w.a.B(e,"focus",function(){u=!1}),w.a.B(e,"blur",function(){u&&f()})),w.a.D(a,function(t){var n=f;w.a.Ud(t,"after")&&(n=function(){c=w.w.M(e),w.a.setTimeout(f,0)},t=t.substring(5)),w.a.B(e,t,n)}),l=o&&"file"==e.type?function(){var r=w.a.f(n());null===r||r===t||""===r?e.value="":w.u.G(f)}:function(){var o=w.a.f(n()),a=w.w.M(e);null!==c&&o===c?w.a.setTimeout(l,0):o===a&&a!==t||("select"===i?(a=r.get("valueAllowUnset"),w.w.cb(e,o,a),a||o===w.w.M(e)||w.u.G(f)):w.w.cb(e,o))},"select"===i?w.i.subscribe(e,w.i.H,function(){h?r.get("valueAllowUnset")?l():f():(w.a.B(e,"change",f),h=w.o(l,null,{l:e}))},null,{notifyImmediately:!0}):(w.a.B(e,"change",f),w.o(l,null,{l:e}))}else w.ib(e,{checkedValue:n})},update:function(){}},w.m.wa.value=!0,w.c.visible={update:function(t,e){var n=w.a.f(e()),r="none"!=t.style.display;n&&!r?t.style.display="":!n&&r&&(t.style.display="none")}},w.c.hidden={update:function(t,e){w.c.visible.update(t,function(){return!w.a.f(e())})}},function(t){w.c[t]={init:function(e,n,r,i,o){return w.c.event.init.call(this,e,function(){var e={};return e[t]=n(),e},r,i,o)}}}("click"),w.ca=function(){},w.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},w.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},w.ca.prototype.makeTemplateSource=function(t,e){if("string"==typeof t){var r=(e=e||n).getElementById(t);if(!r)throw Error("Cannot find template with ID "+t);return new w.C.F(r)}if(1==t.nodeType||8==t.nodeType)return new w.C.ia(t);throw Error("Unknown template type: "+t)},w.ca.prototype.renderTemplate=function(t,e,n,r){return t=this.makeTemplateSource(t,r),this.renderTemplateSource(t,e,n,r)},w.ca.prototype.isTemplateRewritten=function(t,e){return!1===this.allowTemplateRewriting||this.makeTemplateSource(t,e).data("isRewritten")},w.ca.prototype.rewriteTemplate=function(t,e,n){e=e((t=this.makeTemplateSource(t,n)).text()),t.text(e),t.data("isRewritten",!0)},w.b("templateEngine",w.ca),w.kc=function(){function t(t,e,n,r){t=w.m.ac(t);for(var i=w.m.Ra,o=0;o<t.length;o++){var a=t[o].key;if(Object.prototype.hasOwnProperty.call(i,a)){var s=i[a];if("function"==typeof s){if(a=s(t[o].value))throw Error(a)}else if(!s)throw Error("This template engine does not support the '"+a+"' binding within its templates")}}return n="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+w.m.vb(t,{valueAccessors:!0})+" } })()},'"+n.toLowerCase()+"')",r.createJavaScriptEvaluatorBlock(n)+e}var e=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,n=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(t,e,n){e.isTemplateRewritten(t,n)||e.rewriteTemplate(t,function(t){return w.kc.Ld(t,e)},n)},Ld:function(r,i){return r.replace(e,function(e,n,r,o,a){return t(a,n,r,i)}).replace(n,function(e,n){return t(n,"\x3c!-- ko --\x3e","#comment",i)})},md:function(t,e){return w.aa.Xb(function(n,r){var i=n.nextSibling;i&&i.nodeName.toLowerCase()===e&&w.ib(i,t,r)})}}}(),w.b("__tr_ambtns",w.kc.md),function(){w.C={},w.C.F=function(t){if(this.F=t){var e=w.a.R(t);this.ab="script"===e?1:"textarea"===e?2:"template"==e&&t.content&&11===t.content.nodeType?3:4}},w.C.F.prototype.text=function(){var t=1===this.ab?"text":2===this.ab?"value":"innerHTML";if(0==arguments.length)return this.F[t];var e=arguments[0];"innerHTML"===t?w.a.fc(this.F,e):this.F[t]=e};var e=w.a.g.Z()+"_";w.C.F.prototype.data=function(t){if(1===arguments.length)return w.a.g.get(this.F,e+t);w.a.g.set(this.F,e+t,arguments[1])};var n=w.a.g.Z();w.C.F.prototype.nodes=function(){var e=this.F;if(0==arguments.length){var r=w.a.g.get(e,n)||{},i=r.lb||(3===this.ab?e.content:4===this.ab?e:t);if(!i||r.jd){var o=this.text();o&&o!==r.bb&&(i=w.a.Md(o,e.ownerDocument),w.a.g.set(e,n,{lb:i,bb:o,jd:!0}))}return i}r=arguments[0],this.ab!==t&&this.text(""),w.a.g.set(e,n,{lb:r})},w.C.ia=function(t){this.F=t},w.C.ia.prototype=new w.C.F,w.C.ia.prototype.constructor=w.C.ia,w.C.ia.prototype.text=function(){if(0==arguments.length){var e=w.a.g.get(this.F,n)||{};return e.bb===t&&e.lb&&(e.bb=e.lb.innerHTML),e.bb}w.a.g.set(this.F,n,{bb:arguments[0]})},w.b("templateSources",w.C),w.b("templateSources.domElement",w.C.F),w.b("templateSources.anonymousTemplate",w.C.ia)}(),function(){function e(t,e,n){var r;for(e=w.h.nextSibling(e);t&&(r=t)!==e;)n(r,t=w.h.nextSibling(r))}function n(t,n){if(t.length){var r=t[0],i=t[t.length-1],o=r.parentNode,a=w.ga.instance,s=a.preprocessNode;if(s){if(e(r,i,function(t,e){var n=t.previousSibling,o=s.call(a,t);o&&(t===r&&(r=o[0]||e),t===i&&(i=o[o.length-1]||n))}),t.length=0,!r)return;r===i?t.push(r):(t.push(r,i),w.a.Ua(t,o))}e(r,i,function(t){1!==t.nodeType&&8!==t.nodeType||w.vc(n,t)}),e(r,i,function(t){1!==t.nodeType&&8!==t.nodeType||w.aa.cd(t,[n])}),w.a.Ua(t,o)}}function r(t){return t.nodeType?t:0<t.length?t[0]:null}function i(t,e,i,o,s){s=s||{};var u=(t&&r(t)||i||{}).ownerDocument,c=s.templateEngine||a;if(w.kc.xd(i,c,u),"number"!=typeof(i=c.renderTemplate(i,o,s,u)).length||0<i.length&&"number"!=typeof i[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(u=!1,e){case"replaceChildren":w.h.va(t,i),u=!0;break;case"replaceNode":w.a.Xc(t,i),u=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+e)}return u&&(n(i,o),s.afterRender&&w.u.G(s.afterRender,null,[i,o[s.as||"$data"]]),"replaceChildren"==e&&w.i.ma(t,w.i.H)),i}function o(t,e,n){return w.O(t)?t():"function"==typeof t?t(e,n):t}var a;w.gc=function(e){if(e!=t&&!(e instanceof w.ca))throw Error("templateEngine must inherit from ko.templateEngine");a=e},w.dc=function(e,n,s,u,c){if(((s=s||{}).templateEngine||a)==t)throw Error("Set a template engine before calling renderTemplate");if(c=c||"replaceChildren",u){var l=r(u);return w.$(function(){var t=n&&n instanceof w.fa?n:new w.fa(n,null,null,null,{exportDependencies:!0}),a=o(e,t.$data,t);t=i(u,c,a,t,s),"replaceNode"==c&&(l=r(u=t))},null,{Sa:function(){return!l||!w.a.Sb(l)},l:l&&"replaceNode"==c?l.parentNode:l})}return w.aa.Xb(function(t){w.dc(e,n,s,t,"replaceNode")})},w.Qd=function(e,r,a,s,u){function c(t,e){w.u.G(w.a.ec,null,[s,t,h,a,l,e]),w.i.ma(s,w.i.H)}function l(t,e){n(e,f),a.afterRender&&a.afterRender(e,t),f=null}function h(t,n){f=u.createChildContext(t,{as:p,noChildContext:a.noChildContext,extend:function(t){t.$index=n,p&&(t[p+"Index"]=n)}});var r=o(e,t,f);return i(s,"ignoreTargetNode",r,f,a)}var f,p=a.as,d=!1===a.includeDestroyed||w.options.foreachHidesDestroyed&&!a.includeDestroyed;if(d||a.beforeRemove||!w.Pc(r))return w.$(function(){var e=w.a.f(r)||[];void 0===e.length&&(e=[e]),d&&(e=w.a.jb(e,function(e){return e===t||null===e||!w.a.f(e._destroy)})),c(e)},null,{l:s});c(r.v());var g=r.subscribe(function(t){c(r(),t)},null,"arrayChange");return g.l(s),g};var s=w.a.g.Z(),u=w.a.g.Z();w.c.template={init:function(t,e){var n=w.a.f(e());if("string"==typeof n||"name"in n)w.h.Ea(t);else if("nodes"in n){if(n=n.nodes||[],w.O(n))throw Error('The "nodes" option must be a plain, non-observable array.');var r=n[0]&&n[0].parentNode;r&&w.a.g.get(r,u)||(r=w.a.Yb(n),w.a.g.set(r,u,!0)),new w.C.ia(t).nodes(r)}else{if(!(0<(n=w.h.childNodes(t)).length))throw Error("Anonymous template defined, but no template content was provided");r=w.a.Yb(n),new w.C.ia(t).nodes(r)}return{controlsDescendantBindings:!0}},update:function(e,n,r,i,o){var a=n();r=!0,i=null,"string"==typeof(n=w.a.f(a))?n={}:(a="name"in n?n.name:e,"if"in n&&(r=w.a.f(n.if)),r&&"ifnot"in n&&(r=!w.a.f(n.ifnot)),r&&!a&&(r=!1)),"foreach"in n?i=w.Qd(a,r&&n.foreach||[],n,e,o):r?(r=o,"data"in n&&(r=o.createChildContext(n.data,{as:n.as,noChildContext:n.noChildContext,exportDependencies:!0})),i=w.dc(a,r,n,e)):w.h.Ea(e),o=i,(n=w.a.g.get(e,s))&&"function"==typeof n.s&&n.s(),w.a.g.set(e,s,!o||o.ja&&!o.ja()?t:o)}},w.m.Ra.template=function(t){return 1==(t=w.m.ac(t)).length&&t[0].unknown||w.m.Id(t,"name")?null:"This template engine does not support anonymous templates nested within its templates"},w.h.ea.template=!0}(),w.b("setTemplateEngine",w.gc),w.b("renderTemplate",w.dc),w.a.Kc=function(t,e,n){var r,i,o,a,s;if(t.length&&e.length)for(r=i=0;(!n||r<n)&&(a=t[i]);++i){for(o=0;s=e[o];++o)if(a.value===s.value){a.moved=s.index,s.moved=a.index,e.splice(o,1),r=o=0;break}r+=o}},w.a.Pb=function(){function t(t,e,n,r,i){var o,a,s,u,c,l=Math.min,h=Math.max,f=[],p=t.length,d=e.length,g=d-p||1,y=p+d+1;for(o=0;o<=p;o++)for(u=s,f.push(s=[]),c=l(d,o+g),a=h(0,o-1);a<=c;a++)s[a]=a?o?t[o-1]===e[a-1]?u[a-1]:l(u[a]||y,s[a-1]||y)+1:a+1:o+1;for(l=[],h=[],g=[],o=p,a=d;o||a;)d=f[o][a]-1,a&&d===f[o][a-1]?h.push(l[l.length]={status:n,value:e[--a],index:a}):o&&d===f[o-1][a]?g.push(l[l.length]={status:r,value:t[--o],index:o}):(--a,--o,i.sparse||l.push({status:"retained",value:e[a]}));return w.a.Kc(g,h,!i.dontLimitMoves&&10*p),l.reverse()}return function(e,n,r){return r="boolean"==typeof r?{dontLimitMoves:r}:r||{},e=e||[],n=n||[],e.length<n.length?t(e,n,"added","deleted",r):t(n,e,"deleted","added",r)}}(),w.b("utils.compareArrays",w.a.Pb),function(){function e(e,n,r,i,o){var a=[],s=w.$(function(){var t=n(r,o,w.a.Ua(a,e))||[];0<a.length&&(w.a.Xc(a,t),i&&w.u.G(i,null,[r,t,o])),a.length=0,w.a.Nb(a,t)},null,{l:e,Sa:function(){return!w.a.kd(a)}});return{Y:a,$:s.ja()?s:t}}var n=w.a.g.Z(),r=w.a.g.Z();w.a.ec=function(i,o,a,s,u,c){function l(t){p={Aa:t,pb:w.ta(E++)},_.push(p),m||P.push(p)}function h(t){p=v[t],E!==p.pb.v()&&S.push(p),p.pb(E++),w.a.Ua(p.Y,i),_.push(p)}function f(t,e){if(t)for(var n=0,r=e.length;n<r;n++)w.a.D(e[n].Y,function(r){t(r,n,e[n].Aa)})}void 0===(o=o||[]).length&&(o=[o]),s=s||{};var p,d,g,y,v=w.a.g.get(i,n),m=!v,_=[],b=0,E=0,x=[],O=[],M=[],S=[],P=[],C=0;if(m)w.a.D(o,l);else{if(!c||v&&v._countWaitingForRemove){var T=w.a.Mb(v,function(t){return t.Aa});c=w.a.Pb(T,o,{dontLimitMoves:s.dontLimitMoves,sparse:!0})}var I,L,A;for(T=0;I=c[T];T++)switch(L=I.moved,A=I.index,I.status){case"deleted":for(;b<A;)h(b++);L===t&&((p=v[b]).$&&(p.$.s(),p.$=t),w.a.Ua(p.Y,i).length&&(s.beforeRemove&&(_.push(p),C++,p.Aa===r?p=null:M.push(p)),p&&x.push.apply(x,p.Y))),b++;break;case"added":for(;E<A;)h(b++);L!==t?(O.push(_.length),h(L)):l(I.value)}for(;E<o.length;)h(b++);_._countWaitingForRemove=C}w.a.g.set(i,n,_),f(s.beforeMove,S),w.a.D(x,s.beforeRemove?w.oa:w.removeNode);try{y=i.ownerDocument.activeElement}catch(t){}if(O.length)for(;(T=O.shift())!=t;){for(p=_[T],d=t;T;)if((g=_[--T].Y)&&g.length){d=g[g.length-1];break}for(o=0;b=p.Y[o];d=b,o++)w.h.Wb(i,b,d)}for(T=0;p=_[T];T++){for(p.Y||w.a.extend(p,e(i,a,p.Aa,u,p.pb)),o=0;b=p.Y[o];d=b,o++)w.h.Wb(i,b,d);!p.Ed&&u&&(u(p.Aa,p.Y,p.pb),p.Ed=!0,d=p.Y[p.Y.length-1])}for(y&&i.ownerDocument.activeElement!=y&&y.focus(),f(s.beforeRemove,M),T=0;T<M.length;++T)M[T].Aa=r;f(s.afterMove,S),f(s.afterAdd,P)}}(),w.b("utils.setDomNodeChildrenFromArrayMapping",w.a.ec),w.ba=function(){this.allowTemplateRewriting=!1},w.ba.prototype=new w.ca,w.ba.prototype.constructor=w.ba,w.ba.prototype.renderTemplateSource=function(t,e,n,r){return(e=9>w.a.W||!t.nodes?null:t.nodes())?w.a.la(e.cloneNode(!0).childNodes):(t=t.text(),w.a.ua(t,r))},w.ba.Ma=new w.ba,w.gc(w.ba.Ma),w.b("nativeTemplateEngine",w.ba),function(){w.$a=function(){var t=this.Hd=function(){if(!o||!o.tmpl)return 0;try{if(0<=o.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(t){}return 1}();this.renderTemplateSource=function(e,r,i,a){if(a=a||n,i=i||{},2>t)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var s=e.data("precompiled");return s||(s=e.text()||"",s=o.template(null,"{{ko_with $item.koBindingContext}}"+s+"{{/ko_with}}"),e.data("precompiled",s)),e=[r.$data],r=o.extend({koBindingContext:r},i.templateOptions),(r=o.tmpl(s,e,r)).appendTo(a.createElement("div")),o.fragments={},r},this.createJavaScriptEvaluatorBlock=function(t){return"{{ko_code ((function() { return "+t+" })()) }}"},this.addTemplate=function(t,e){n.write("<script type='text/html' id='"+t+"'>"+e+"<\/script>")},0<t&&(o.tmpl.tag.ko_code={open:"__.push($1 || '');"},o.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},w.$a.prototype=new w.ca,w.$a.prototype.constructor=w.$a;var t=new w.$a;0<t.Hd&&w.gc(t),w.b("jqueryTmplTemplateEngine",w.$a)}()})}();var i=ko;"undefined"!=typeof window?(ko=window.ko,void 0!==n?window.ko=n:delete window.ko):(ko=t.ko,void 0!==n?t.ko=n:delete t.ko),e.default=i}).call(e,n(102))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="__knockoutObservables",i="__knockoutSubscribable";function o(t,e){if(!t)throw new Error("When calling ko.track, you must pass an object as the first parameter.");var n=this,o=a(t,!0);return(e=e||Object.getOwnPropertyNames(t)).forEach(function(e){if(e!==r&&e!==i&&!(e in o)){var a=t[e],s=a instanceof Array,u=n.isObservable(a)?a:s?n.observableArray(a):n.observable(a);Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:u,set:n.isWriteableObservable(u)?u:void 0}),o[e]=u,s&&function(t,e){var n=null;t.computed(function(){n&&(n.dispose(),n=null);var r=e();r instanceof Array&&(n=function(t,e,n){return function(t,e){var n=e[i];if(!n){n=new t.subscribable,Object.defineProperty(e,i,{value:n});var r={};!function(t,e,n){["pop","push","reverse","shift","sort","splice","unshift"].forEach(function(r){var i=t[r];t[r]=function(){var t=i.apply(this,arguments);return!0!==n.pause&&e.notifySubscribers(this),t}})}(e,n,r),function(t,e,n,r){["remove","removeAll","destroy","destroyAll","replace"].forEach(function(i){Object.defineProperty(e,i,{enumerable:!1,value:function(){var o;r.pause=!0;try{o=t.observableArray.fn[i].apply(t.observableArray(e),arguments)}finally{r.pause=!1}return n.notifySubscribers(e),o}})})}(t,e,n,r)}return n}(t,n).subscribe(e)}(t,e,r))})}(n,u)}}),t}function a(t,e){var n=t[r];return!n&&e&&(n={},Object.defineProperty(t,r,{value:n})),n}function s(t,e,n){var r={owner:t,deferEvaluation:!0};if("function"==typeof n)r.read=n;else{if("value"in n)throw new Error('For ko.defineProperty, you must not specify a "value" for the property. You must provide a "get" function.');if("function"!=typeof n.get)throw new Error('For ko.defineProperty, the third parameter must be either an evaluator function, or an options object containing a function called "get".');r.read=n.get,r.write=n.set}return t[e]=this.computed(r),o.call(this,t,[e]),t}function u(t,e){if(!t)return null;var n=a(t,!1);return n&&n[e]||null}function c(t,e){var n=u(t,e);n&&n.valueHasMutated()}e.default={attachToKo:function(t){t.track=o,t.getObservable=u,t.valueHasMutated=c,t.defineProperty=s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="http://www.w3.org/2000/svg",i={register:function(t){t.bindingHandlers.jsmapSvgPath={init:function(e,n){var i=document.createElementNS(r,"svg:svg");i.setAttribute("class","jsmap2d-svgPath-svg");var o=document.createElementNS(r,"path");return i.appendChild(o),t.virtualElements.setDomNodeChildren(e,[i]),t.computed({read:function(){var e=t.unwrap(n());o.setAttribute("d",t.unwrap(e.path));var r=t.unwrap(e.width),a=t.unwrap(e.height);i.setAttribute("width",r),i.setAttribute("height",a),i.setAttribute("viewBox","0 0 "+r+" "+a),e.css&&i.setAttribute("class","jsmap2d-svgPath-svg "+t.unwrap(e.css))},disposeWhenNodeIsRemoved:e}),{controlsDescendantBindings:!0}}},t.virtualElements.allowedBindings.jsmapSvgPath=!0}};e.default=i},function(t,e,n){"use strict";function r(t,e){return void 0!==t&&null!==t?t:e}Object.defineProperty(e,"__esModule",{value:!0}),r.EMPTY_OBJECT=Object.freeze({}),e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(435)),i=o(n(70));function o(t){return t&&t.__esModule?t:{default:t}}function a(){this._listeners=[],this._scopes=[],this._toRemove=[],this._insideRaiseEvent=!1}function s(t,e){return e-t}Object.defineProperties(a.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}}),a.prototype.addEventListener=function(t,e){r.default.typeOf.func("listener",t),this._listeners.push(t),this._scopes.push(e);var n=this;return function(){n.removeEventListener(t,e)}},a.prototype.removeEventListener=function(t,e){r.default.typeOf.func("listener",t);for(var n=this._listeners,i=this._scopes,o=-1,a=0;a<n.length;a++)if(n[a]===t&&i[a]===e){o=a;break}return-1!==o&&(this._insideRaiseEvent?(this._toRemove.push(o),n[o]=void 0,i[o]=void 0):(n.splice(o,1),i.splice(o,1)),!0)},a.prototype.raiseEvent=function(){var t;this._insideRaiseEvent=!0;var e=this._listeners,n=this._scopes,r=e.length;for(t=0;t<r;t++){var o=e[t];(0,i.default)(o)&&e[t].apply(n[t],arguments)}var a=this._toRemove;if((r=a.length)>0){for(a.sort(s),t=0;t<r;t++){var u=a[t];e.splice(u,1),n.splice(u,1)}a.length=0}this._insideRaiseEvent=!1},e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=a(n(70)),o=a(n(198));function a(t){return t&&t.__esModule?t:{default:t}}var s={};function u(t,e,n){return"Expected "+n+" to be typeof "+e+", actual typeof was "+t}s.typeOf={},s.defined=function(t,e){if(!(0,i.default)(e))throw new o.default(function(t){return t+" is required, actual value was undefined"}(t))},s.typeOf.func=function(t,e){if("function"!=typeof e)throw new o.default(u(void 0===e?"undefined":r(e),"function",t))},s.typeOf.string=function(t,e){if("string"!=typeof e)throw new o.default(u(void 0===e?"undefined":r(e),"string",t))},s.typeOf.number=function(t,e){if("number"!=typeof e)throw new o.default(u(void 0===e?"undefined":r(e),"number",t))},s.typeOf.number.lessThan=function(t,e,n){if(s.typeOf.number(t,e),e>=n)throw new o.default("Expected "+t+" to be less than "+n+", actual value was "+e)},s.typeOf.number.lessThanOrEquals=function(t,e,n){if(s.typeOf.number(t,e),e>n)throw new o.default("Expected "+t+" to be less than or equal to "+n+", actual value was "+e)},s.typeOf.number.greaterThan=function(t,e,n){if(s.typeOf.number(t,e),e<=n)throw new o.default("Expected "+t+" to be greater than "+n+", actual value was "+e)},s.typeOf.number.greaterThanOrEquals=function(t,e,n){if(s.typeOf.number(t,e),e<n)throw new o.default("Expected "+t+" to be greater than or equal to"+n+", actual value was "+e)},s.typeOf.object=function(t,e){if("object"!==(void 0===e?"undefined":r(e)))throw new o.default(u(void 0===e?"undefined":r(e),"object",t))},s.typeOf.bool=function(t,e){if("boolean"!=typeof e)throw new o.default(u(void 0===e?"undefined":r(e),"boolean",t))},s.typeOf.number.equals=function(t,e,n,r){if(s.typeOf.number(t,n),s.typeOf.number(e,r),n!==r)throw new o.default(t+" must be equal to "+e+", the actual values are "+n+" and "+r)},e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(437)),i=a(n(438)),o=a(n(439));function a(t){return t&&t.__esModule?t:{default:t}}i.default.attachToKo(r.default),o.default.register(r.default),e.default=r.default},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};"undefined"!=typeof ko&&(n=ko),function(t){var e=this||(0,eval)("this"),n=e.document,i=e.navigator,o=e.jQuery,a=e.JSON;o||"undefined"==typeof jQuery||(o=jQuery),function(t){t(e.ko={})}(function(s,u){function c(t,e){return(null===t||(void 0===t?"undefined":r(t))in E)&&t===e}function l(e,n){var r;return function(){r||(r=w.a.setTimeout(function(){r=t,e()},n))}}function h(t,e){var n;return function(){clearTimeout(n),n=w.a.setTimeout(t,e)}}function f(t,e){e&&"change"!==e?"beforeChange"===e?this.pc(t):this.gb(t,e):this.qc(t)}function p(t,e){null!==e&&e.s&&e.s()}function d(t,e){var n=this.qd,r=n[P];r.ra||(this.Qb&&this.mb[e]?(n.uc(e,t,this.mb[e]),this.mb[e]=null,--this.Qb):r.I[e]||n.uc(e,t,r.J?{da:t}:n.$c(t)),t.Ja&&t.gd())}var g,y,v,m,_,b,w=void 0!==s?s:{};w.b=function(t,e){for(var n=t.split("."),r=w,i=0;i<n.length-1;i++)r=r[n[i]];r[n[n.length-1]]=e},w.L=function(t,e,n){t[e]=n},w.version="3.5.1",w.b("version",w.version),w.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1},w.a=function(){function s(t,e){for(var n in t)h.call(t,n)&&e(n,t[n])}function u(t,e){if(e)for(var n in e)h.call(e,n)&&(t[n]=e[n]);return t}function c(t,e){return t.__proto__=e,t}function l(t,e,n,r){var i=t[e].match(_)||[];w.a.D(n.match(_),function(t){w.a.Na(i,t,r)}),t[e]=i.join(" ")}var h=Object.prototype.hasOwnProperty,f={__proto__:[]}instanceof Array,p="function"==typeof Symbol,d={},g={};d[i&&/Firefox\/2/i.test(i.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],d.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),s(d,function(t,e){if(e.length)for(var n=0,r=e.length;n<r;n++)g[e[n]]=t});var y,v={propertychange:!0},m=n&&function(){for(var e=3,r=n.createElement("div"),i=r.getElementsByTagName("i");r.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",i[0];);return 4<e?e:t}(),_=/\S+/g;return{Jc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],D:function(t,e,n){for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t)},A:"function"==typeof Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e)}:function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},Lb:function(e,n,r){for(var i=0,o=e.length;i<o;i++)if(n.call(r,e[i],i,e))return e[i];return t},Pa:function(t,e){var n=w.a.A(t,e);0<n?t.splice(n,1):0===n&&t.shift()},wc:function(t){var e=[];return t&&w.a.D(t,function(t){0>w.a.A(e,t)&&e.push(t)}),e},Mb:function(t,e,n){var r=[];if(t)for(var i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i));return r},jb:function(t,e,n){var r=[];if(t)for(var i=0,o=t.length;i<o;i++)e.call(n,t[i],i)&&r.push(t[i]);return r},Nb:function(t,e){if(e instanceof Array)t.push.apply(t,e);else for(var n=0,r=e.length;n<r;n++)t.push(e[n]);return t},Na:function(t,e,n){var r=w.a.A(w.a.bc(t),e);0>r?n&&t.push(e):n||t.splice(r,1)},Ba:f,extend:u,setPrototypeOf:c,Ab:f?c:u,P:s,Ga:function(t,e,n){if(!t)return t;var r,i={};for(r in t)h.call(t,r)&&(i[r]=e.call(n,t[r],r,t));return i},Tb:function(t){for(;t.firstChild;)w.removeNode(t.firstChild)},Yb:function(t){for(var e=((t=w.a.la(t))[0]&&t[0].ownerDocument||n).createElement("div"),r=0,i=t.length;r<i;r++)e.appendChild(w.oa(t[r]));return e},Ca:function(t,e){for(var n=0,r=t.length,i=[];n<r;n++){var o=t[n].cloneNode(!0);i.push(e?w.oa(o):o)}return i},va:function(t,e){if(w.a.Tb(t),e)for(var n=0,r=e.length;n<r;n++)t.appendChild(e[n])},Xc:function(t,e){var n=t.nodeType?[t]:t;if(0<n.length){for(var r=n[0],i=r.parentNode,o=0,a=e.length;o<a;o++)i.insertBefore(e[o],r);for(o=0,a=n.length;o<a;o++)w.removeNode(n[o])}},Ua:function(t,e){if(t.length){for(e=8===e.nodeType&&e.parentNode||e;t.length&&t[0].parentNode!==e;)t.splice(0,1);for(;1<t.length&&t[t.length-1].parentNode!==e;)t.length--;if(1<t.length){var n=t[0],r=t[t.length-1];for(t.length=0;n!==r;)t.push(n),n=n.nextSibling;t.push(r)}}return t},Zc:function(t,e){7>m?t.setAttribute("selected",e):t.selected=e},Db:function(e){return null===e||e===t?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(t,e){return t=t||"",!(e.length>t.length)&&t.substring(0,e.length)===e},vd:function(t,e){if(t===e)return!0;if(11===t.nodeType)return!1;if(e.contains)return e.contains(1!==t.nodeType?t.parentNode:t);if(e.compareDocumentPosition)return 16==(16&e.compareDocumentPosition(t));for(;t&&t!=e;)t=t.parentNode;return!!t},Sb:function(t){return w.a.vd(t,t.ownerDocument.documentElement)},kd:function(t){return!!w.a.Lb(t,w.a.Sb)},R:function(t){return t&&t.tagName&&t.tagName.toLowerCase()},Ac:function(t){return w.onError?function(){try{return t.apply(this,arguments)}catch(t){throw w.onError&&w.onError(t),t}}:t},setTimeout:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t,e){return setTimeout(w.a.Ac(t),e)}),Gc:function(t){setTimeout(function(){throw w.onError&&w.onError(t),t},0)},B:function(t,e,n){var r=w.a.Ac(n);if(n=v[e],w.options.useOnlyNativeEvents||n||!o)if(n||"function"!=typeof t.addEventListener){if(void 0===t.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var i=function(e){r.call(t,e)},a="on"+e;t.attachEvent(a,i),w.a.K.za(t,function(){t.detachEvent(a,i)})}else t.addEventListener(e,r,!1);else y||(y="function"==typeof o(t).on?"on":"bind"),o(t)[y](e,r)},Fb:function(t,r){if(!t||!t.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var i;if(i=!("input"!==w.a.R(t)||!t.type||"click"!=r.toLowerCase()||"checkbox"!=(i=t.type)&&"radio"!=i),w.options.useOnlyNativeEvents||!o||i)if("function"==typeof n.createEvent){if("function"!=typeof t.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(i=n.createEvent(g[r]||"HTMLEvents")).initEvent(r,!0,!0,e,0,0,0,0,0,!1,!1,!1,!1,0,t),t.dispatchEvent(i)}else if(i&&t.click)t.click();else{if(void 0===t.fireEvent)throw Error("Browser doesn't support triggering events");t.fireEvent("on"+r)}else o(t).trigger(r)},f:function(t){return w.O(t)?t():t},bc:function(t){return w.O(t)?t.v():t},Eb:function(t,e,n){var i;e&&("object"===r(t.classList)?(i=t.classList[n?"add":"remove"],w.a.D(e.match(_),function(e){i.call(t.classList,e)})):"string"==typeof t.className.baseVal?l(t.className,"baseVal",e,n):l(t,"className",e,n))},Bb:function(e,n){var r=w.a.f(n);null!==r&&r!==t||(r="");var i=w.h.firstChild(e);!i||3!=i.nodeType||w.h.nextSibling(i)?w.h.va(e,[e.ownerDocument.createTextNode(r)]):i.data=r,w.a.Ad(e)},Yc:function(t,e){if(t.name=e,7>=m)try{var r=t.name.replace(/[&<>'"]/g,function(t){return"&#"+t.charCodeAt(0)+";"});t.mergeAttributes(n.createElement("<input name='"+r+"'/>"),!1)}catch(t){}},Ad:function(t){9<=m&&(t=1==t.nodeType?t:t.parentNode).style&&(t.style.zoom=t.style.zoom)},wd:function(t){if(m){var e=t.style.width;t.style.width=0,t.style.width=e}},Pd:function(t,e){t=w.a.f(t),e=w.a.f(e);for(var n=[],r=t;r<=e;r++)n.push(r);return n},la:function(t){for(var e=[],n=0,r=t.length;n<r;n++)e.push(t[n]);return e},Da:function(t){return p?Symbol(t):t},Zd:6===m,$d:7===m,W:m,Lc:function(t,e){for(var n=w.a.la(t.getElementsByTagName("input")).concat(w.a.la(t.getElementsByTagName("textarea"))),r="string"==typeof e?function(t){return t.name===e}:function(t){return e.test(t.name)},i=[],o=n.length-1;0<=o;o--)r(n[o])&&i.push(n[o]);return i},Nd:function(t){return"string"==typeof t&&(t=w.a.Db(t))?a&&a.parse?a.parse(t):new Function("return "+t)():null},hc:function(t,e,n){if(!a||!a.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return a.stringify(w.a.f(t),e,n)},Od:function(t,e,i){var o=(i=i||{}).params||{},a=i.includeFields||this.Jc,u=t;if("object"==(void 0===t?"undefined":r(t))&&"form"===w.a.R(t)){u=t.action;for(var c=a.length-1;0<=c;c--)for(var l=w.a.Lc(t,a[c]),h=l.length-1;0<=h;h--)o[l[h].name]=l[h].value}e=w.a.f(e);var f=n.createElement("form");for(var p in f.style.display="none",f.action=u,f.method="post",e)(t=n.createElement("input")).type="hidden",t.name=p,t.value=w.a.hc(w.a.f(e[p])),f.appendChild(t);s(o,function(t,e){var r=n.createElement("input");r.type="hidden",r.name=t,r.value=e,f.appendChild(r)}),n.body.appendChild(f),i.submitter?i.submitter(f):f.submit(),setTimeout(function(){f.parentNode.removeChild(f)},0)}}}(),w.b("utils",w.a),w.b("utils.arrayForEach",w.a.D),w.b("utils.arrayFirst",w.a.Lb),w.b("utils.arrayFilter",w.a.jb),w.b("utils.arrayGetDistinctValues",w.a.wc),w.b("utils.arrayIndexOf",w.a.A),w.b("utils.arrayMap",w.a.Mb),w.b("utils.arrayPushAll",w.a.Nb),w.b("utils.arrayRemoveItem",w.a.Pa),w.b("utils.cloneNodes",w.a.Ca),w.b("utils.createSymbolOrString",w.a.Da),w.b("utils.extend",w.a.extend),w.b("utils.fieldsIncludedWithJsonPost",w.a.Jc),w.b("utils.getFormFields",w.a.Lc),w.b("utils.objectMap",w.a.Ga),w.b("utils.peekObservable",w.a.bc),w.b("utils.postJson",w.a.Od),w.b("utils.parseJson",w.a.Nd),w.b("utils.registerEventHandler",w.a.B),w.b("utils.stringifyJson",w.a.hc),w.b("utils.range",w.a.Pd),w.b("utils.toggleDomNodeCssClass",w.a.Eb),w.b("utils.triggerEvent",w.a.Fb),w.b("utils.unwrapObservable",w.a.f),w.b("utils.objectForEach",w.a.P),w.b("utils.addOrRemoveItem",w.a.Na),w.b("utils.setTextContent",w.a.Bb),w.b("unwrap",w.a.f),Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if(1===arguments.length)return function(){return e.apply(t,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){var r=n.slice(0);return r.push.apply(r,arguments),e.apply(t,r)}}),w.a.g=new function(){var e,n,r=0,i="__ko__"+(new Date).getTime(),o={};return w.a.W?(e=function(e,n){var a=e[i];if(!a||"null"===a||!o[a]){if(!n)return t;a=e[i]="ko"+r++,o[a]={}}return o[a]},n=function(t){var e=t[i];return!!e&&(delete o[e],t[i]=null,!0)}):(e=function(t,e){var n=t[i];return!n&&e&&(n=t[i]={}),n},n=function(t){return!!t[i]&&(delete t[i],!0)}),{get:function(t,n){var r=e(t,!1);return r&&r[n]},set:function(n,r,i){(n=e(n,i!==t))&&(n[r]=i)},Ub:function(t,n,r){return(t=e(t,!0))[n]||(t[n]=r)},clear:n,Z:function(){return r+++i}}},w.b("utils.domData",w.a.g),w.b("utils.domData.clear",w.a.g.clear),w.a.K=new function(){function e(e,n){var r=w.a.g.get(e,i);return r===t&&n&&(r=[],w.a.g.set(e,i,r)),r}function n(t){if(n=e(t,!1))for(var n=n.slice(0),i=0;i<n.length;i++)n[i](t);w.a.g.clear(t),w.a.K.cleanExternalData(t),s[t.nodeType]&&r(t.childNodes,!0)}function r(t,e){for(var r,i=[],o=0;o<t.length;o++)if((!e||8===t[o].nodeType)&&(n(i[i.length]=r=t[o]),t[o]!==r))for(;o--&&-1==w.a.A(i,t[o]););}var i=w.a.g.Z(),a={1:!0,8:!0,9:!0},s={1:!0,9:!0};return{za:function(t,n){if("function"!=typeof n)throw Error("Callback must be a function");e(t,!0).push(n)},yb:function(n,r){var o=e(n,!1);o&&(w.a.Pa(o,r),0==o.length&&w.a.g.set(n,i,t))},oa:function(t){return w.u.G(function(){a[t.nodeType]&&(n(t),s[t.nodeType]&&r(t.getElementsByTagName("*")))}),t},removeNode:function(t){w.oa(t),t.parentNode&&t.parentNode.removeChild(t)},cleanExternalData:function(t){o&&"function"==typeof o.cleanData&&o.cleanData([t])}}},w.oa=w.a.K.oa,w.removeNode=w.a.K.removeNode,w.b("cleanNode",w.oa),w.b("removeNode",w.removeNode),w.b("utils.domNodeDisposal",w.a.K),w.b("utils.domNodeDisposal.addDisposeCallback",w.a.K.za),w.b("utils.domNodeDisposal.removeDisposeCallback",w.a.K.yb),g=[0,"",""],_={thead:y=[1,"<table>","</table>"],tbody:y,tfoot:y,tr:[2,"<table><tbody>","</tbody></table>"],td:v=[3,"<table><tbody><tr>","</tr></tbody></table>"],th:v,option:m=[1,"<select multiple='multiple'>","</select>"],optgroup:m},b=8>=w.a.W,w.a.ua=function(t,r){var i;if(o){if(o.parseHTML)i=o.parseHTML(t,r)||[];else if((i=o.clean([t],r))&&i[0]){for(var a=i[0];a.parentNode&&11!==a.parentNode.nodeType;)a=a.parentNode;a.parentNode&&a.parentNode.removeChild(a)}}else{(i=r)||(i=n),a=i.parentWindow||i.defaultView||e;var s,u=w.a.Db(t).toLowerCase(),c=i.createElement("div");for(s=(u=u.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&_[u[1]]||g,u=s[0],s="ignored<div>"+s[1]+t+s[2]+"</div>","function"==typeof a.innerShiv?c.appendChild(a.innerShiv(s)):(b&&i.body.appendChild(c),c.innerHTML=s,b&&c.parentNode.removeChild(c));u--;)c=c.lastChild;i=w.a.la(c.lastChild.childNodes)}return i},w.a.Md=function(t,e){var n=w.a.ua(t,e);return n.length&&n[0].parentElement||w.a.Yb(n)},w.a.fc=function(e,n){if(w.a.Tb(e),null!==(n=w.a.f(n))&&n!==t)if("string"!=typeof n&&(n=n.toString()),o)o(e).html(n);else for(var r=w.a.ua(n,e.ownerDocument),i=0;i<r.length;i++)e.appendChild(r[i])},w.b("utils.parseHtmlFragment",w.a.ua),w.b("utils.setHtml",w.a.fc),w.aa=function(){var e={};return{Xb:function(t){if("function"!=typeof t)throw Error("You can only pass a function to ko.memoization.memoize()");var n=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return e[n]=t,"\x3c!--[ko_memo:"+n+"]--\x3e"},bd:function(n,r){var i=e[n];if(i===t)throw Error("Couldn't find any memo with ID "+n+". Perhaps it's already been unmemoized.");try{return i.apply(null,r||[]),!0}finally{delete e[n]}},cd:function(t,e){var n=[];!function t(e,n){if(e)if(8==e.nodeType)null!=(r=w.aa.Uc(e.nodeValue))&&n.push({ud:e,Kd:r});else if(1==e.nodeType)for(var r=0,i=e.childNodes,o=i.length;r<o;r++)t(i[r],n)}(t,n);for(var r=0,i=n.length;r<i;r++){var o=n[r].ud,a=[o];e&&w.a.Nb(a,e),w.aa.bd(n[r].Kd,a),o.nodeValue="",o.parentNode&&o.parentNode.removeChild(o)}},Uc:function(t){return(t=t.match(/^\[ko_memo\:(.*?)\]$/))?t[1]:null}}}(),w.b("memoization",w.aa),w.b("memoization.memoize",w.aa.Xb),w.b("memoization.unmemoize",w.aa.bd),w.b("memoization.parseMemoText",w.aa.Uc),w.b("memoization.unmemoizeDomNodeAndDescendants",w.aa.cd),w.na=function(){function t(){if(o)for(var t,e=o,n=0;s<o;)if(t=i[s++]){if(s>e){if(5e3<=++n){s=o,w.a.Gc(Error("'Too much recursion' after processing "+n+" task groups."));break}e=o}try{t()}catch(t){w.a.Gc(t)}}}function r(){t(),s=o=i.length=0}var i=[],o=0,a=1,s=0;return{scheduler:e.MutationObserver?function(t){var e=n.createElement("div");return new MutationObserver(t).observe(e,{attributes:!0}),function(){e.classList.toggle("foo")}}(r):n&&"onreadystatechange"in n.createElement("script")?function(t){var e=n.createElement("script");e.onreadystatechange=function(){e.onreadystatechange=null,n.documentElement.removeChild(e),e=null,t()},n.documentElement.appendChild(e)}:function(t){setTimeout(t,0)},zb:function(t){return o||w.na.scheduler(r),i[o++]=t,a++},cancel:function(t){(t-=a-o)>=s&&t<o&&(i[t]=null)},resetForTesting:function(){var t=o-s;return s=o=i.length=0,t},Sd:t}}(),w.b("tasks",w.na),w.b("tasks.schedule",w.na.zb),w.b("tasks.runEarly",w.na.Sd),w.Ta={throttle:function(t,e){t.throttleEvaluation=e;var n=null;return w.$({read:t,write:function(r){clearTimeout(n),n=w.a.setTimeout(function(){t(r)},e)}})},rateLimit:function(t,e){var n,r,i;"number"==typeof e?n=e:(n=e.timeout,r=e.method),t.Hb=!1,i="function"==typeof r?r:"notifyWhenChangesStop"==r?h:l,t.ub(function(t){return i(t,n,e)})},deferred:function(e,n){if(!0!==n)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");e.Hb||(e.Hb=!0,e.ub(function(n){var r,i=!1;return function(){if(!i){w.na.cancel(r),r=w.na.zb(n);try{i=!0,e.notifySubscribers(t,"dirty")}finally{i=!1}}}}))},notify:function(t,e){t.equalityComparer="always"==e?null:c}};var E={undefined:1,boolean:1,number:1,string:1};w.b("extenders",w.Ta),w.ic=function(t,e,n){this.da=t,this.lc=e,this.mc=n,this.Ib=!1,this.fb=this.Jb=null,w.L(this,"dispose",this.s),w.L(this,"disposeWhenNodeIsRemoved",this.l)},w.ic.prototype.s=function(){this.Ib||(this.fb&&w.a.K.yb(this.Jb,this.fb),this.Ib=!0,this.mc(),this.da=this.lc=this.mc=this.Jb=this.fb=null)},w.ic.prototype.l=function(t){this.Jb=t,w.a.K.za(t,this.fb=this.s.bind(this))},w.T=function(){w.a.Ab(this,x),x.qb(this)};var x={qb:function(t){t.U={change:[]},t.sc=1},subscribe:function(t,e,n){var r=this;n=n||"change";var i=new w.ic(r,e?t.bind(e):t,function(){w.a.Pa(r.U[n],i),r.hb&&r.hb(n)});return r.Qa&&r.Qa(n),r.U[n]||(r.U[n]=[]),r.U[n].push(i),i},notifySubscribers:function(t,e){if("change"===(e=e||"change")&&this.Gb(),this.Wa(e)){var n="change"===e&&this.ed||this.U[e].slice(0);try{w.u.xc();for(var r,i=0;r=n[i];++i)r.Ib||r.lc(t)}finally{w.u.end()}}},ob:function(){return this.sc},Dd:function(t){return this.ob()!==t},Gb:function(){++this.sc},ub:function(t){var e,n,r,i,o,a=this,s=w.O(a);a.gb||(a.gb=a.notifySubscribers,a.notifySubscribers=f);var u=t(function(){a.Ja=!1,s&&i===a&&(i=a.nc?a.nc():a());var t=n||o&&a.sb(r,i);o=n=e=!1,t&&a.gb(r=i)});a.qc=function(t,n){n&&a.Ja||(o=!n),a.ed=a.U.change.slice(0),a.Ja=e=!0,i=t,u()},a.pc=function(t){e||(r=t,a.gb(t,"beforeChange"))},a.rc=function(){o=!0},a.gd=function(){a.sb(r,a.v(!0))&&(n=!0)}},Wa:function(t){return this.U[t]&&this.U[t].length},Bd:function(t){if(t)return this.U[t]&&this.U[t].length||0;var e=0;return w.a.P(this.U,function(t,n){"dirty"!==t&&(e+=n.length)}),e},sb:function(t,e){return!this.equalityComparer||!this.equalityComparer(t,e)},toString:function(){return"[object Object]"},extend:function(t){var e=this;return t&&w.a.P(t,function(t,n){var r=w.Ta[t];"function"==typeof r&&(e=r(e,n)||e)}),e}};w.L(x,"init",x.qb),w.L(x,"subscribe",x.subscribe),w.L(x,"extend",x.extend),w.L(x,"getSubscriptionsCount",x.Bd),w.a.Ba&&w.a.setPrototypeOf(x,Function.prototype),w.T.fn=x,w.Qc=function(t){return null!=t&&"function"==typeof t.subscribe&&"function"==typeof t.notifySubscribers},w.b("subscribable",w.T),w.b("isSubscribable",w.Qc),w.S=w.u=function(){function t(t){r.push(n),n=t}function e(){n=r.pop()}var n,r=[],i=0;return{xc:t,end:e,cc:function(t){if(n){if(!w.Qc(t))throw Error("Only subscribable things can act as dependencies");n.od.call(n.pd,t,t.fd||(t.fd=++i))}},G:function(n,r,i){try{return t(),n.apply(r,i||[])}finally{e()}},qa:function(){if(n)return n.o.qa()},Va:function(){if(n)return n.o.Va()},Ya:function(){if(n)return n.Ya},o:function(){if(n)return n.o}}}(),w.b("computedContext",w.S),w.b("computedContext.getDependenciesCount",w.S.qa),w.b("computedContext.getDependencies",w.S.Va),w.b("computedContext.isInitial",w.S.Ya),w.b("computedContext.registerDependency",w.S.cc),w.b("ignoreDependencies",w.Yd=w.u.G);var O=w.a.Da("_latestValue");w.ta=function(t){function e(){return 0<arguments.length?(e.sb(e[O],arguments[0])&&(e.ya(),e[O]=arguments[0],e.xa()),this):(w.u.cc(e),e[O])}return e[O]=t,w.a.Ba||w.a.extend(e,w.T.fn),w.T.fn.qb(e),w.a.Ab(e,M),w.options.deferUpdates&&w.Ta.deferred(e,!0),e};var M={equalityComparer:c,v:function(){return this[O]},xa:function(){this.notifySubscribers(this[O],"spectate"),this.notifySubscribers(this[O])},ya:function(){this.notifySubscribers(this[O],"beforeChange")}};w.a.Ba&&w.a.setPrototypeOf(M,w.T.fn);var S=w.ta.Ma="__ko_proto__";M[S]=w.ta,w.O=function(t){if((t="function"==typeof t&&t[S])&&t!==M[S]&&t!==w.o.fn[S])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!t},w.Za=function(t){return"function"==typeof t&&(t[S]===M[S]||t[S]===w.o.fn[S]&&t.Nc)},w.b("observable",w.ta),w.b("isObservable",w.O),w.b("isWriteableObservable",w.Za),w.b("isWritableObservable",w.Za),w.b("observable.fn",M),w.L(M,"peek",M.v),w.L(M,"valueHasMutated",M.xa),w.L(M,"valueWillMutate",M.ya),w.Ha=function(t){if("object"!=(void 0===(t=t||[])?"undefined":r(t))||!("length"in t))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return t=w.ta(t),w.a.Ab(t,w.Ha.fn),t.extend({trackArrayChanges:!0})},w.Ha.fn={remove:function(t){for(var e=this.v(),n=[],r="function"!=typeof t||w.O(t)?function(e){return e===t}:t,i=0;i<e.length;i++){var o=e[i];if(r(o)){if(0===n.length&&this.ya(),e[i]!==o)throw Error("Array modified during remove; cannot remove item");n.push(o),e.splice(i,1),i--}}return n.length&&this.xa(),n},removeAll:function(e){if(e===t){var n=this.v(),r=n.slice(0);return this.ya(),n.splice(0,n.length),this.xa(),r}return e?this.remove(function(t){return 0<=w.a.A(e,t)}):[]},destroy:function(t){var e=this.v(),n="function"!=typeof t||w.O(t)?function(e){return e===t}:t;this.ya();for(var r=e.length-1;0<=r;r--){var i=e[r];n(i)&&(i._destroy=!0)}this.xa()},destroyAll:function(e){return e===t?this.destroy(function(){return!0}):e?this.destroy(function(t){return 0<=w.a.A(e,t)}):[]},indexOf:function(t){var e=this();return w.a.A(e,t)},replace:function(t,e){var n=this.indexOf(t);0<=n&&(this.ya(),this.v()[n]=e,this.xa())},sorted:function(t){var e=this().slice(0);return t?e.sort(t):e.sort()},reversed:function(){return this().slice(0).reverse()}},w.a.Ba&&w.a.setPrototypeOf(w.Ha.fn,w.ta.fn),w.a.D("pop push reverse shift sort splice unshift".split(" "),function(t){w.Ha.fn[t]=function(){var e=this.v();this.ya(),this.zc(e,t,arguments);var n=e[t].apply(e,arguments);return this.xa(),n===e?this:n}}),w.a.D(["slice"],function(t){w.Ha.fn[t]=function(){var e=this();return e[t].apply(e,arguments)}}),w.Pc=function(t){return w.O(t)&&"function"==typeof t.remove&&"function"==typeof t.push},w.b("observableArray",w.Ha),w.b("isObservableArray",w.Pc),w.Ta.trackArrayChanges=function(e,n){function i(){function t(){if(l){var t,n=[].concat(e.v()||[]);e.Wa("arrayChange")&&((!c||1<l)&&(c=w.a.Pb(s,n,e.Ob)),t=c),s=n,c=null,l=0,t&&t.length&&e.notifySubscribers(t,"arrayChange")}}u?t():(u=!0,a=e.subscribe(function(){++l},null,"spectate"),s=[].concat(e.v()||[]),c=null,o=e.subscribe(t))}if(e.Ob={},n&&"object"==(void 0===n?"undefined":r(n))&&w.a.extend(e.Ob,n),e.Ob.sparse=!0,!e.zc){var o,a,s,u=!1,c=null,l=0,h=e.Qa,f=e.hb;e.Qa=function(t){h&&h.call(e,t),"arrayChange"===t&&i()},e.hb=function(n){f&&f.call(e,n),"arrayChange"!==n||e.Wa("arrayChange")||(o&&o.s(),a&&a.s(),a=o=null,u=!1,s=t)},e.zc=function(t,e,n){function r(t,e,n){return i[i.length]={status:t,value:e,index:n}}if(u&&!l){var i=[],o=t.length,a=n.length,s=0;switch(e){case"push":s=o;case"unshift":for(e=0;e<a;e++)r("added",n[e],s+e);break;case"pop":s=o-1;case"shift":o&&r("deleted",t[s],s);break;case"splice":e=Math.min(Math.max(0,0>n[0]?o+n[0]:n[0]),o),o=1===a?o:Math.min(e+(n[1]||0),o),a=e+a-2,s=Math.max(o,a);for(var h=[],f=[],p=2;e<s;++e,++p)e<o&&f.push(r("deleted",t[e],e)),e<a&&h.push(r("added",n[p],e));w.a.Kc(f,h);break;default:return}c=i}}}};var P=w.a.Da("_state");w.o=w.$=function(e,n,i){function o(){if(0<arguments.length){if("function"!=typeof a)throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return a.apply(s.nb,arguments),this}return s.ra||w.u.cc(o),(s.ka||s.J&&o.Xa())&&o.ha(),s.X}if("object"===(void 0===e?"undefined":r(e))?i=e:(i=i||{},e&&(i.read=e)),"function"!=typeof i.read)throw Error("Pass a function that returns the value of the ko.computed");var a=i.write,s={X:t,sa:!0,ka:!0,rb:!1,jc:!1,ra:!1,wb:!1,J:!1,Wc:i.read,nb:n||i.owner,l:i.disposeWhenNodeIsRemoved||i.l||null,Sa:i.disposeWhen||i.Sa,Rb:null,I:{},V:0,Ic:null};return o[P]=s,o.Nc="function"==typeof a,w.a.Ba||w.a.extend(o,w.T.fn),w.T.fn.qb(o),w.a.Ab(o,C),i.pure?(s.wb=!0,s.J=!0,w.a.extend(o,T)):i.deferEvaluation&&w.a.extend(o,I),w.options.deferUpdates&&w.Ta.deferred(o,!0),s.l&&(s.jc=!0,s.l.nodeType||(s.l=null)),s.J||i.deferEvaluation||o.ha(),s.l&&o.ja()&&w.a.K.za(s.l,s.Rb=function(){o.s()}),o};var C={equalityComparer:c,qa:function(){return this[P].V},Va:function(){var t=[];return w.a.P(this[P].I,function(e,n){t[n.Ka]=n.da}),t},Vb:function(t){if(!this[P].V)return!1;var e=this.Va();return-1!==w.a.A(e,t)||!!w.a.Lb(e,function(e){return e.Vb&&e.Vb(t)})},uc:function(t,e,n){if(this[P].wb&&e===this)throw Error("A 'pure' computed must not be called recursively");this[P].I[t]=n,n.Ka=this[P].V++,n.La=e.ob()},Xa:function(){var t,e,n=this[P].I;for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&(e=n[t],this.Ia&&e.da.Ja||e.da.Dd(e.La)))return!0},Jd:function(){this.Ia&&!this[P].rb&&this.Ia(!1)},ja:function(){var t=this[P];return t.ka||0<t.V},Rd:function(){this.Ja?this[P].ka&&(this[P].sa=!0):this.Hc()},$c:function(t){if(t.Hb){var e=t.subscribe(this.Jd,this,"dirty"),n=t.subscribe(this.Rd,this);return{da:t,s:function(){e.s(),n.s()}}}return t.subscribe(this.Hc,this)},Hc:function(){var t=this,e=t.throttleEvaluation;e&&0<=e?(clearTimeout(this[P].Ic),this[P].Ic=w.a.setTimeout(function(){t.ha(!0)},e)):t.Ia?t.Ia(!0):t.ha(!0)},ha:function(t){var e=this[P],n=e.Sa,r=!1;if(!e.rb&&!e.ra){if(e.l&&!w.a.Sb(e.l)||n&&n()){if(!e.jc)return void this.s()}else e.jc=!1;e.rb=!0;try{r=this.zd(t)}finally{e.rb=!1}return r}},zd:function(e){var n=this[P],r=!1,i=n.wb?t:!n.V;r={qd:this,mb:n.I,Qb:n.V},w.u.xc({pd:r,od:d,o:this,Ya:i}),n.I={},n.V=0;var o=this.yd(n,r);return n.V?r=this.sb(n.X,o):(this.s(),r=!0),r&&(n.J?this.Gb():this.notifySubscribers(n.X,"beforeChange"),n.X=o,this.notifySubscribers(n.X,"spectate"),!n.J&&e&&this.notifySubscribers(n.X),this.rc&&this.rc()),i&&this.notifySubscribers(n.X,"awake"),r},yd:function(t,e){try{var n=t.Wc;return t.nb?n.call(t.nb):n()}finally{w.u.end(),e.Qb&&!t.J&&w.a.P(e.mb,p),t.sa=t.ka=!1}},v:function(t){var e=this[P];return(e.ka&&(t||!e.V)||e.J&&this.Xa())&&this.ha(),e.X},ub:function(t){w.T.fn.ub.call(this,t),this.nc=function(){return this[P].J||(this[P].sa?this.ha():this[P].ka=!1),this[P].X},this.Ia=function(t){this.pc(this[P].X),this[P].ka=!0,t&&(this[P].sa=!0),this.qc(this,!t)}},s:function(){var e=this[P];!e.J&&e.I&&w.a.P(e.I,function(t,e){e.s&&e.s()}),e.l&&e.Rb&&w.a.K.yb(e.l,e.Rb),e.I=t,e.V=0,e.ra=!0,e.sa=!1,e.ka=!1,e.J=!1,e.l=t,e.Sa=t,e.Wc=t,this.Nc||(e.nb=t)}},T={Qa:function(t){var e=this,n=e[P];if(!n.ra&&n.J&&"change"==t){if(n.J=!1,n.sa||e.Xa())n.I=null,n.V=0,e.ha()&&e.Gb();else{var r=[];w.a.P(n.I,function(t,e){r[e.Ka]=t}),w.a.D(r,function(t,r){var i=n.I[t],o=e.$c(i.da);o.Ka=r,o.La=i.La,n.I[t]=o}),e.Xa()&&e.ha()&&e.Gb()}n.ra||e.notifySubscribers(n.X,"awake")}},hb:function(e){var n=this[P];n.ra||"change"!=e||this.Wa("change")||(w.a.P(n.I,function(t,e){e.s&&(n.I[t]={da:e.da,Ka:e.Ka,La:e.La},e.s())}),n.J=!0,this.notifySubscribers(t,"asleep"))},ob:function(){var t=this[P];return t.J&&(t.sa||this.Xa())&&this.ha(),w.T.fn.ob.call(this)}},I={Qa:function(t){"change"!=t&&"beforeChange"!=t||this.v()}};w.a.Ba&&w.a.setPrototypeOf(C,w.T.fn);var L=w.ta.Ma;C[L]=w.o,w.Oc=function(t){return"function"==typeof t&&t[L]===C[L]},w.Fd=function(t){return w.Oc(t)&&t[P]&&t[P].wb},w.b("computed",w.o),w.b("dependentObservable",w.o),w.b("isComputed",w.Oc),w.b("isPureComputed",w.Fd),w.b("computed.fn",C),w.L(C,"peek",C.v),w.L(C,"dispose",C.s),w.L(C,"isActive",C.ja),w.L(C,"getDependenciesCount",C.qa),w.L(C,"getDependencies",C.Va),w.xb=function(t,e){return"function"==typeof t?w.o(t,e,{pure:!0}):((t=w.a.extend({},t)).pure=!0,w.o(t,e))},w.b("pureComputed",w.xb),function(){function e(i,o,a){if(a=a||new n,"object"!=(void 0===(i=o(i))?"undefined":r(i))||null===i||i===t||i instanceof RegExp||i instanceof Date||i instanceof String||i instanceof Number||i instanceof Boolean)return i;var s=i instanceof Array?[]:{};return a.save(i,s),function(t,e){if(t instanceof Array){for(var n=0;n<t.length;n++)e(n);"function"==typeof t.toJSON&&e("toJSON")}else for(n in t)e(n)}(i,function(n){var u=o(i[n]);switch(void 0===u?"undefined":r(u)){case"boolean":case"number":case"string":case"function":s[n]=u;break;case"object":case"undefined":var c=a.get(u);s[n]=c!==t?c:e(u,o,a)}}),s}function n(){this.keys=[],this.values=[]}w.ad=function(t){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return e(t,function(t){for(var e=0;w.O(t)&&10>e;e++)t=t();return t})},w.toJSON=function(t,e,n){return t=w.ad(t),w.a.hc(t,e,n)},n.prototype={constructor:n,save:function(t,e){var n=w.a.A(this.keys,t);0<=n?this.values[n]=e:(this.keys.push(t),this.values.push(e))},get:function(e){return 0<=(e=w.a.A(this.keys,e))?this.values[e]:t}}}(),w.b("toJS",w.ad),w.b("toJSON",w.toJSON),w.Wd=function(t,e,n){function r(e){var r=w.xb(t,n).extend({ma:"always"}),i=r.subscribe(function(t){t&&(i.s(),e(t))});return r.notifySubscribers(r.v()),i}return"function"!=typeof Promise||e?r(e.bind(n)):new Promise(r)},w.b("when",w.Wd),w.w={M:function(e){switch(w.a.R(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?w.a.g.get(e,w.c.options.$b):7>=w.a.W?e.getAttributeNode("value")&&e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?w.w.M(e.options[e.selectedIndex]):t;default:return e.value}},cb:function(e,n,r){switch(w.a.R(e)){case"option":"string"==typeof n?(w.a.g.set(e,w.c.options.$b,t),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=n):(w.a.g.set(e,w.c.options.$b,n),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof n?n:"");break;case"select":""!==n&&null!==n||(n=t);for(var i,o=-1,a=0,s=e.options.length;a<s;++a)if((i=w.w.M(e.options[a]))==n||""===i&&n===t){o=a;break}(r||0<=o||n===t&&1<e.size)&&(e.selectedIndex=o,6===w.a.W&&w.a.setTimeout(function(){e.selectedIndex=o},0));break;default:null!==n&&n!==t||(n=""),e.value=n}}},w.b("selectExtensions",w.w),w.b("selectExtensions.readValue",w.w.M),w.b("selectExtensions.writeValue",w.w.cb),w.m=function(){function t(t){123===(t=w.a.Db(t)).charCodeAt(0)&&(t=t.slice(1,-1));var e,n=[],a=(t+="\n,").match(r),s=[],u=0;if(1<a.length){for(var c,l=0;c=a[l];++l){var h=c.charCodeAt(0);if(44===h){if(0>=u){n.push(e&&s.length?{key:e,value:s.join("")}:{unknown:e||s.join("")}),e=u=0,s=[];continue}}else if(58===h){if(!u&&!e&&1===s.length){e=s.pop();continue}}else{if(47===h&&1<c.length&&(47===c.charCodeAt(1)||42===c.charCodeAt(1)))continue;47===h&&l&&1<c.length?(h=a[l-1].match(i))&&!o[h[0]]&&(a=(t=t.substr(t.indexOf(c)+1)).match(r),l=-1,c="/"):40===h||123===h||91===h?++u:41===h||125===h||93===h?--u:e||s.length||34!==h&&39!==h||(c=c.slice(1,-1))}s.push(c)}if(0<u)throw Error("Unbalanced parentheses, braces, or brackets")}return n}var e=["true","false","null","undefined"],n=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,r=RegExp("\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/w*|[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]|[^\\s]","g"),i=/[\])"'A-Za-z0-9_$]+$/,o={in:1,return:1,typeof:1},a={};return{Ra:[],wa:a,ac:t,vb:function(r,i){function o(t,r){var i;if(!l){var h=w.getBindingHandler(t);if(h&&h.preprocess&&!(r=h.preprocess(r,t,o)))return;(h=a[t])&&(i=r,i=!(0<=w.a.A(e,i))&&null!==(h=i.match(n))&&(h[1]?"Object("+h[1]+")"+h[2]:i),h=i),h&&u.push("'"+("string"==typeof a[t]?a[t]:t)+"':function(_z){"+i+"=_z}")}c&&(r="function(){return "+r+" }"),s.push("'"+t+"':"+r)}var s=[],u=[],c=(i=i||{}).valueAccessors,l=i.bindingParams,h="string"==typeof r?t(r):r;return w.a.D(h,function(t){o(t.key||t.unknown,t.value)}),u.length&&o("_ko_property_writers","{"+u.join(",")+" }"),s.join(",")},Id:function(t,e){for(var n=0;n<t.length;n++)if(t[n].key==e)return!0;return!1},eb:function(t,e,n,r,i){t&&w.O(t)?!w.Za(t)||i&&t.v()===r||t(r):(t=e.get("_ko_property_writers"))&&t[n]&&t[n](r)}}}(),w.b("expressionRewriting",w.m),w.b("expressionRewriting.bindingRewriteValidators",w.m.Ra),w.b("expressionRewriting.parseObjectLiteral",w.m.ac),w.b("expressionRewriting.preProcessBindings",w.m.vb),w.b("expressionRewriting._twoWayBindings",w.m.wa),w.b("jsonExpressionRewriting",w.m),w.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",w.m.vb),function(){function t(t){return 8==t.nodeType&&a.test(o?t.text:t.nodeValue)}function e(t){return 8==t.nodeType&&s.test(o?t.text:t.nodeValue)}function r(n,r){for(var i=n,o=1,a=[];i=i.nextSibling;){if(e(i)&&(w.a.g.set(i,c,!0),0==--o))return a;a.push(i),t(i)&&o++}if(!r)throw Error("Cannot find closing comment tag to match: "+n.nodeValue);return null}function i(t,e){var n=r(t,e);return n?0<n.length?n[n.length-1].nextSibling:t.nextSibling:null}var o=n&&"\x3c!--test--\x3e"===n.createComment("test").text,a=o?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,s=o?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,u={ul:!0,ol:!0},c="__ko_matchedEndComment__";w.h={ea:{},childNodes:function(e){return t(e)?r(e):e.childNodes},Ea:function(e){if(t(e))for(var n=0,r=(e=w.h.childNodes(e)).length;n<r;n++)w.removeNode(e[n]);else w.a.Tb(e)},va:function(e,n){if(t(e)){w.h.Ea(e);for(var r=e.nextSibling,i=0,o=n.length;i<o;i++)r.parentNode.insertBefore(n[i],r)}else w.a.va(e,n)},Vc:function(e,n){var r;t(e)?(r=e.nextSibling,e=e.parentNode):r=e.firstChild,r?n!==r&&e.insertBefore(n,r):e.appendChild(n)},Wb:function(e,n,r){r?(r=r.nextSibling,t(e)&&(e=e.parentNode),r?n!==r&&e.insertBefore(n,r):e.appendChild(n)):w.h.Vc(e,n)},firstChild:function(n){if(t(n))return!n.nextSibling||e(n.nextSibling)?null:n.nextSibling;if(n.firstChild&&e(n.firstChild))throw Error("Found invalid end comment, as the first child of "+n);return n.firstChild},nextSibling:function(n){if(t(n)&&(n=i(n)),n.nextSibling&&e(n.nextSibling)){var r=n.nextSibling;if(e(r)&&!w.a.g.get(r,c))throw Error("Found end comment without a matching opening comment, as child of "+n);return null}return n.nextSibling},Cd:t,Vd:function(t){return(t=(o?t.text:t.nodeValue).match(a))?t[1]:null},Sc:function(n){if(u[w.a.R(n)]){var r=n.firstChild;if(r)do{if(1===r.nodeType){var o,a=null;if(o=r.firstChild)do{if(a)a.push(o);else if(t(o)){var s=i(o,!0);s?o=s:a=[o]}else e(o)&&(a=[o])}while(o=o.nextSibling);if(o=a)for(a=r.nextSibling,s=0;s<o.length;s++)a?n.insertBefore(o[s],a):n.appendChild(o[s])}}while(r=r.nextSibling)}}}}(),w.b("virtualElements",w.h),w.b("virtualElements.allowedBindings",w.h.ea),w.b("virtualElements.emptyNode",w.h.Ea),w.b("virtualElements.insertAfter",w.h.Wb),w.b("virtualElements.prepend",w.h.Vc),w.b("virtualElements.setDomNodeChildren",w.h.va),w.ga=function(){this.nd={}},w.a.extend(w.ga.prototype,{nodeHasBindings:function(t){switch(t.nodeType){case 1:return null!=t.getAttribute("data-bind")||w.j.getComponentNameForNode(t);case 8:return w.h.Cd(t);default:return!1}},getBindings:function(t,e){var n=(n=this.getBindingsString(t,e))?this.parseBindingsString(n,e,t):null;return w.j.tc(n,t,e,!1)},getBindingAccessors:function(t,e){var n=(n=this.getBindingsString(t,e))?this.parseBindingsString(n,e,t,{valueAccessors:!0}):null;return w.j.tc(n,t,e,!0)},getBindingsString:function(t){switch(t.nodeType){case 1:return t.getAttribute("data-bind");case 8:return w.h.Vd(t);default:return null}},parseBindingsString:function(t,e,n,r){try{var i,o=this.nd,a=t+(r&&r.valueAccessors||"");if(!(i=o[a])){var s,u="with($context){with($data||{}){return{"+w.m.vb(t,r)+"}}}";s=new Function("$context","$element",u),i=o[a]=s}return i(e,n)}catch(e){throw e.message="Unable to parse bindings.\nBindings value: "+t+"\nMessage: "+e.message,e}}}),w.ga.instance=new w.ga,w.b("bindingProvider",w.ga),function(){function i(t){var e=(t=w.a.g.get(t,E))&&t.N;e&&(t.N=null,e.Tc())}function a(t,e,n){this.node=t,this.yc=e,this.kb=[],this.H=!1,e.N||w.a.K.za(t,i),n&&n.N&&(n.N.kb.push(t),this.Kb=n)}function s(t){return function(){return t}}function u(t){return t()}function c(t){return w.a.Ga(w.u.G(t),function(e,n){return function(){return t()[n]}})}function l(t,e,n){return"function"==typeof t?c(t.bind(null,e,n)):w.a.Ga(t,s)}function h(t,e){return c(this.getBindings.bind(this,t,e))}function f(t,e){var n=w.h.firstChild(e);if(n){var r,i=w.ga.instance,o=i.preprocessNode;if(o){for(;r=n;)n=w.h.nextSibling(r),o.call(i,r);n=w.h.firstChild(e)}for(;r=n;)n=w.h.nextSibling(r),p(t,r)}w.i.ma(e,w.i.H)}function p(t,e){var n=t,r=1===e.nodeType;r&&w.h.Sc(e),(r||w.ga.instance.nodeHasBindings(e))&&(n=d(e,null,t).bindingContextForDescendants),n&&!_[w.a.R(e)]&&f(n,e)}function d(e,n,r){var i,o=w.a.g.Ub(e,E,{}),a=o.hd;if(!n){if(a)throw Error("You cannot apply bindings multiple times to the same element.");o.hd=!0}if(a||(o.context=r),o.Zb||(o.Zb={}),n&&"function"!=typeof n)i=n;else{var s=w.ga.instance,c=s.getBindingAccessors||h,l=w.$(function(){return(i=n?n(r,e):c.call(s,e,r))&&(r[y]&&r[y](),r[m]&&r[m]()),i},null,{l:e});i&&l.ja()||(l=null)}var f,p=r;if(i){var d=function(){return w.a.Ga(l?l():i,u)},g=l?function(t){return function(){return u(l()[t])}}:function(t){return i[t]};d.get=function(t){return i[t]&&u(g(t))},d.has=function(t){return t in i},w.i.H in i&&w.i.subscribe(e,w.i.H,function(){var t=(0,i[w.i.H])();if(t){var n=w.h.childNodes(e);n.length&&t(n,w.Ec(n[0]))}}),w.i.pa in i&&(p=w.i.Cb(e,r),w.i.subscribe(e,w.i.pa,function(){var t=(0,i[w.i.pa])();t&&w.h.firstChild(e)&&t(e)})),o=function(t){var e=[],n={},r=[];return w.a.P(t,function i(o){if(!n[o]){var a=w.getBindingHandler(o);a&&(a.after&&(r.push(o),w.a.D(a.after,function(e){if(t[e]){if(-1!==w.a.A(r,e))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+r.join(", "));i(e)}}),r.length--),e.push({key:o,Mc:a})),n[o]=!0}}),e}(i),w.a.D(o,function(n){var r=n.Mc.init,o=n.Mc.update,a=n.key;if(8===e.nodeType&&!w.h.ea[a])throw Error("The binding '"+a+"' cannot be used with virtual elements");try{"function"==typeof r&&w.u.G(function(){var n=r(e,g(a),d,p.$data,p);if(n&&n.controlsDescendantBindings){if(f!==t)throw Error("Multiple bindings ("+f+" and "+a+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");f=a}}),"function"==typeof o&&w.$(function(){o(e,g(a),d,p.$data,p)},null,{l:e})}catch(t){throw t.message='Unable to process binding "'+a+": "+i[a]+'"\nMessage: '+t.message,t}})}return{shouldBindDescendants:o=f===t,bindingContextForDescendants:o&&p}}function g(e,n){return e&&e instanceof w.fa?e:new w.fa(e,t,t,n)}var y=w.a.Da("_subscribable"),v=w.a.Da("_ancestorBindingInfo"),m=w.a.Da("_dataDependency");w.c={};var _={script:!0,textarea:!0,template:!0};w.getBindingHandler=function(t){return w.c[t]};var b={};w.fa=function(e,n,r,i,o){function a(){var t=h?l():l,e=w.a.f(t);return n?(w.a.extend(u,n),v in n&&(u[v]=n[v])):(u.$parents=[],u.$root=e,u.ko=w),u[y]=s,c?e=u.$data:(u.$rawData=t,u.$data=e),r&&(u[r]=e),i&&i(u,n,e),n&&n[y]&&!w.S.o().Vb(n[y])&&n[y](),f&&(u[m]=f),u.$data}var s,u=this,c=e===b,l=c?t:e,h="function"==typeof l&&!w.O(l),f=o&&o.dataDependency;o&&o.exportDependencies?a():((s=w.xb(a)).v(),s.ja()?s.equalityComparer=null:u[y]=t)},w.fa.prototype.createChildContext=function(t,e,n,i){if(!i&&e&&"object"==(void 0===e?"undefined":r(e))&&(e=(i=e).as,n=i.extend),e&&i&&i.noChildContext){var o="function"==typeof t&&!w.O(t);return new w.fa(b,this,null,function(r){n&&n(r),r[e]=o?t():t},i)}return new w.fa(t,this,e,function(t,e){t.$parentContext=e,t.$parent=e.$data,t.$parents=(e.$parents||[]).slice(0),t.$parents.unshift(t.$parent),n&&n(t)},i)},w.fa.prototype.extend=function(t,e){return new w.fa(b,this,null,function(e){w.a.extend(e,"function"==typeof t?t(e):t)},e)};var E=w.a.g.Z();a.prototype.Tc=function(){this.Kb&&this.Kb.N&&this.Kb.N.sd(this.node)},a.prototype.sd=function(t){w.a.Pa(this.kb,t),!this.kb.length&&this.H&&this.Cc()},a.prototype.Cc=function(){this.H=!0,this.yc.N&&!this.kb.length&&(this.yc.N=null,w.a.K.yb(this.node,i),w.i.ma(this.node,w.i.pa),this.Tc())},w.i={H:"childrenComplete",pa:"descendantsComplete",subscribe:function(t,e,n,r,i){var o=w.a.g.Ub(t,E,{});return o.Fa||(o.Fa=new w.T),i&&i.notifyImmediately&&o.Zb[e]&&w.u.G(n,r,[t]),o.Fa.subscribe(n,r,e)},ma:function(e,n){var r=w.a.g.get(e,E);if(r&&(r.Zb[n]=!0,r.Fa&&r.Fa.notifySubscribers(e,n),n==w.i.H))if(r.N)r.N.Cc();else if(r.N===t&&r.Fa&&r.Fa.Wa(w.i.pa))throw Error("descendantsComplete event not supported for bindings on this node")},Cb:function(t,e){var n=w.a.g.Ub(t,E,{});return n.N||(n.N=new a(t,n,e[v])),e[v]==n?e:e.extend(function(t){t[v]=n})}},w.Td=function(t){return(t=w.a.g.get(t,E))&&t.context},w.ib=function(t,e,n){return 1===t.nodeType&&w.h.Sc(t),d(t,e,g(n))},w.ld=function(t,e,n){return n=g(n),w.ib(t,l(e,n,t),n)},w.Oa=function(t,e){1!==e.nodeType&&8!==e.nodeType||f(g(t),e)},w.vc=function(t,r,i){if(!o&&e.jQuery&&(o=e.jQuery),2>arguments.length){if(!(r=n.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!r||1!==r.nodeType&&8!==r.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");p(g(t,i),r)},w.Dc=function(e){return!e||1!==e.nodeType&&8!==e.nodeType?t:w.Td(e)},w.Ec=function(e){return(e=w.Dc(e))?e.$data:t},w.b("bindingHandlers",w.c),w.b("bindingEvent",w.i),w.b("bindingEvent.subscribe",w.i.subscribe),w.b("bindingEvent.startPossiblyAsyncContentBinding",w.i.Cb),w.b("applyBindings",w.vc),w.b("applyBindingsToDescendants",w.Oa),w.b("applyBindingAccessorsToNode",w.ib),w.b("applyBindingsToNode",w.ld),w.b("contextFor",w.Dc),w.b("dataFor",w.Ec)}(),function(t){function e(e,r){var a,s=Object.prototype.hasOwnProperty.call(i,e)?i[e]:t;s?s.subscribe(r):((s=i[e]=new w.T).subscribe(r),n(e,function(t,n){var r=!(!n||!n.synchronous);o[e]={definition:t,Gd:r},delete i[e],a||r?s.notifySubscribers(t):w.na.zb(function(){s.notifySubscribers(t)})}),a=!0)}function n(t,e){r("getConfig",[t],function(n){n?r("loadComponent",[t,n],function(t){e(t,n)}):e(null,null)})}function r(e,n,i,o){o||(o=w.j.loaders.slice(0));var a=o.shift();if(a){var s=a[e];if(s){var u=!1;if(s.apply(a,n.concat(function(t){u?i(null):null!==t?i(t):r(e,n,i,o)}))!==t&&(u=!0,!a.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else r(e,n,i,o)}else i(null)}var i={},o={};w.j={get:function(n,r){var i=Object.prototype.hasOwnProperty.call(o,n)?o[n]:t;i?i.Gd?w.u.G(function(){r(i.definition)}):w.na.zb(function(){r(i.definition)}):e(n,r)},Bc:function(t){delete o[t]},oc:r},w.j.loaders=[],w.b("components",w.j),w.b("components.get",w.j.get),w.b("components.clearCachedDefinition",w.j.Bc)}(),function(){function t(t,e,n,r){function i(){0==--s&&r(o)}var o={},s=2,u=n.template;n=n.viewModel,u?a(e,u,function(e){w.j.oc("loadTemplate",[t,e],function(t){o.template=t,i()})}):i(),n?a(e,n,function(e){w.j.oc("loadViewModel",[t,e],function(t){o[l]=t,i()})}):i()}function i(t){switch(w.a.R(t)){case"script":return w.a.ua(t.text);case"textarea":return w.a.ua(t.value);case"template":if(o(t.content))return w.a.Ca(t.content.childNodes)}return w.a.Ca(t.childNodes)}function o(t){return e.DocumentFragment?t instanceof DocumentFragment:t&&11===t.nodeType}function a(t,n,i){"string"==typeof n.require?u||e.require?(u||e.require)([n.require],function(t){t&&"object"===(void 0===t?"undefined":r(t))&&t.Xd&&t.default&&(t=t.default),i(t)}):t("Uses require, but no AMD loader is present"):i(n)}function s(t){return function(e){throw Error("Component '"+t+"': "+e)}}var c={};w.j.register=function(t,e){if(!e)throw Error("Invalid configuration for "+t);if(w.j.tb(t))throw Error("Component "+t+" is already registered");c[t]=e},w.j.tb=function(t){return Object.prototype.hasOwnProperty.call(c,t)},w.j.unregister=function(t){delete c[t],w.j.Bc(t)},w.j.Fc={getConfig:function(t,e){e(w.j.tb(t)?c[t]:null)},loadComponent:function(e,n,r){var i=s(e);a(i,n,function(n){t(e,i,n,r)})},loadTemplate:function(t,r,a){if(t=s(t),"string"==typeof r)a(w.a.ua(r));else if(r instanceof Array)a(r);else if(o(r))a(w.a.la(r.childNodes));else if(r.element)if(r=r.element,e.HTMLElement?r instanceof HTMLElement:r&&r.tagName&&1===r.nodeType)a(i(r));else if("string"==typeof r){var u=n.getElementById(r);u?a(i(u)):t("Cannot find element with ID "+r)}else t("Unknown element type: "+r);else t("Unknown template value: "+r)},loadViewModel:function(t,e,n){!function t(e,n,r){if("function"==typeof n)r(function(t){return new n(t)});else if("function"==typeof n[l])r(n[l]);else if("instance"in n){var i=n.instance;r(function(){return i})}else"viewModel"in n?t(e,n.viewModel,r):e("Unknown viewModel value: "+n)}(s(t),e,n)}};var l="createViewModel";w.b("components.register",w.j.register),w.b("components.isRegistered",w.j.tb),w.b("components.unregister",w.j.unregister),w.b("components.defaultLoader",w.j.Fc),w.j.loaders.push(w.j.Fc),w.j.dd=c}(),function(){function t(t,n){if(r=t.getAttribute("params")){var r=e.parseBindingsString(r,n,t,{valueAccessors:!0,bindingParams:!0}),i=(r=w.a.Ga(r,function(e){return w.o(e,null,{l:t})}),w.a.Ga(r,function(e){var n=e.v();return e.ja()?w.o({read:function(){return w.a.f(e())},write:w.Za(n)&&function(t){e()(t)},l:t}):n}));return Object.prototype.hasOwnProperty.call(i,"$raw")||(i.$raw=r),i}return{$raw:{}}}w.j.getComponentNameForNode=function(t){var e=w.a.R(t);if(w.j.tb(e)&&(-1!=e.indexOf("-")||"[object HTMLUnknownElement]"==""+t||8>=w.a.W&&t.tagName===e))return e},w.j.tc=function(e,n,r,i){if(1===n.nodeType){var o=w.j.getComponentNameForNode(n);if(o){if((e=e||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var a={name:o,params:t(n,r)};e.component=i?function(){return a}:a}}return e};var e=new w.ga;9>w.a.W&&(w.j.register=function(t){return function(e){return t.apply(this,arguments)}}(w.j.register),n.createDocumentFragment=function(t){return function(){var e,n=t(),r=w.j.dd;for(e in r);return n}}(n.createDocumentFragment))}(),function(){var t=0;w.c.component={init:function(e,n,r,i,o){function a(){var t=s&&s.dispose;"function"==typeof t&&t.call(s),c&&c.s(),u=s=c=null}var s,u,c,l=w.a.la(w.h.childNodes(e));return w.h.Ea(e),w.a.K.za(e,a),w.o(function(){var r,i,h=w.a.f(n());if("string"==typeof h?r=h:(r=w.a.f(h.name),i=w.a.f(h.params)),!r)throw Error("No component name specified");var f=w.i.Cb(e,o),p=u=++t;w.j.get(r,function(t){if(u===p){if(a(),!t)throw Error("Unknown component '"+r+"'");!function(t,e,n){if(!(e=e.template))throw Error("Component '"+t+"' has no template");t=w.a.Ca(e),w.h.va(n,t)}(r,t,e);var n=function(t,e,n){var r=t.createViewModel;return r?r.call(t,e,n):e}(t,i,{element:e,templateNodes:l});t=f.createChildContext(n,{extend:function(t){t.$component=n,t.$componentTemplateNodes=l}}),n&&n.koDescendantsComplete&&(c=w.i.subscribe(e,w.i.pa,n.koDescendantsComplete,n)),s=n,w.Oa(t,e)}})},null,{l:e}),{controlsDescendantBindings:!0}}},w.h.ea.component=!0}();var A={class:"className",for:"htmlFor"};w.c.attr={update:function(e,n){var r=w.a.f(n())||{};w.a.P(r,function(n,r){r=w.a.f(r);var i=n.indexOf(":"),o=(i="lookupNamespaceURI"in e&&0<i&&e.lookupNamespaceURI(n.substr(0,i)),!1===r||null===r||r===t);o?i?e.removeAttributeNS(i,n):e.removeAttribute(n):r=r.toString(),8>=w.a.W&&n in A?(n=A[n],o?e.removeAttribute(n):e[n]=r):o||(i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)),"name"===n&&w.a.Yc(e,o?"":r)})}},w.c.checked={after:["value","attr"],init:function(e,n,r){function i(){var i=e.checked,u=o();if(!w.S.Ya()&&(i||!s&&!w.S.qa())){var h=w.u.G(n);if(c){var p=l?h.v():h,d=f;f=u,d!==u?i&&(w.a.Na(p,u,!0),w.a.Na(p,d,!1)):w.a.Na(p,u,i),l&&w.Za(h)&&h(p)}else a&&(u===t?u=i:i||(u=t)),w.m.eb(h,r,"checked",u,!0)}}var o=w.xb(function(){return r.has("checkedValue")?w.a.f(r.get("checkedValue")):h?r.has("value")?w.a.f(r.get("value")):e.value:void 0}),a="checkbox"==e.type,s="radio"==e.type;if(a||s){var u=n(),c=a&&w.a.f(u)instanceof Array,l=!(c&&u.push&&u.splice),h=s||c,f=c?o():t;s&&!e.name&&w.c.uniqueName.init(e,function(){return!0}),w.o(i,null,{l:e}),w.a.B(e,"click",i),w.o(function(){var r=w.a.f(n()),i=o();c?(e.checked=0<=w.a.A(r,i),f=i):e.checked=a&&i===t?!!r:o()===r},null,{l:e}),u=t}}},w.m.wa.checked=!0,w.c.checkedValue={update:function(t,e){t.value=w.a.f(e())}},w.c.class={update:function(t,e){var n=w.a.Db(w.a.f(e()));w.a.Eb(t,t.__ko__cssValue,!1),t.__ko__cssValue=n,w.a.Eb(t,n,!0)}},w.c.css={update:function(t,e){var n=w.a.f(e());null!==n&&"object"==(void 0===n?"undefined":r(n))?w.a.P(n,function(e,n){n=w.a.f(n),w.a.Eb(t,e,n)}):w.c.class.update(t,e)}},w.c.enable={update:function(t,e){var n=w.a.f(e());n&&t.disabled?t.removeAttribute("disabled"):n||t.disabled||(t.disabled=!0)}},w.c.disable={update:function(t,e){w.c.enable.update(t,function(){return!w.a.f(e())})}},w.c.event={init:function(t,e,n,r,i){var o=e()||{};w.a.P(o,function(o){"string"==typeof o&&w.a.B(t,o,function(t){var a,s=e()[o];if(s){try{var u=w.a.la(arguments);r=i.$data,u.unshift(r),a=s.apply(r,u)}finally{!0!==a&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}!1===n.get(o+"Bubble")&&(t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation())}})})}},w.c.foreach={Rc:function(t){return function(){var e=t(),n=w.a.bc(e);return n&&"number"!=typeof n.length?(w.a.f(e),{foreach:n.data,as:n.as,noChildContext:n.noChildContext,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:w.ba.Ma}):{foreach:e,templateEngine:w.ba.Ma}}},init:function(t,e){return w.c.template.init(t,w.c.foreach.Rc(e))},update:function(t,e,n,r,i){return w.c.template.update(t,w.c.foreach.Rc(e),n,r,i)}},w.m.Ra.foreach=!1,w.h.ea.foreach=!0,w.c.hasfocus={init:function(t,e,n){function r(r){t.__ko_hasfocusUpdating=!0;var i=t.ownerDocument;if("activeElement"in i){var o;try{o=i.activeElement}catch(t){o=i.body}r=o===t}i=e(),w.m.eb(i,n,"hasfocus",r,!0),t.__ko_hasfocusLastValue=r,t.__ko_hasfocusUpdating=!1}var i=r.bind(null,!0),o=r.bind(null,!1);w.a.B(t,"focus",i),w.a.B(t,"focusin",i),w.a.B(t,"blur",o),w.a.B(t,"focusout",o),t.__ko_hasfocusLastValue=!1},update:function(t,e){var n=!!w.a.f(e());t.__ko_hasfocusUpdating||t.__ko_hasfocusLastValue===n||(n?t.focus():t.blur(),!n&&t.__ko_hasfocusLastValue&&t.ownerDocument.body.focus(),w.u.G(w.a.Fb,null,[t,n?"focusin":"focusout"]))}},w.m.wa.hasfocus=!0,w.c.hasFocus=w.c.hasfocus,w.m.wa.hasFocus="hasfocus",w.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(t,e){w.a.fc(t,e())}},function(){function t(t,e,n){w.c[t]={init:function(t,r,i,o,a){var s,u,c,l,h,f={};if(e){o=i.get("as");var p=i.get("noChildContext");f={as:o,noChildContext:p,exportDependencies:h=!(o&&p)}}return l=(c="render"==i.get("completeOn"))||i.has(w.i.pa),w.o(function(){var i,o=w.a.f(r()),p=!n!=!o,d=!u;(h||p!==s)&&(l&&(a=w.i.Cb(t,a)),p&&(e&&!h||(f.dataDependency=w.S.o()),i=e?a.createChildContext("function"==typeof o?o:r,f):w.S.qa()?a.extend(null,f):a),d&&w.S.qa()&&(u=w.a.Ca(w.h.childNodes(t),!0)),p?(d||w.h.va(t,w.a.Ca(u)),w.Oa(i,t)):(w.h.Ea(t),c||w.i.ma(t,w.i.H)),s=p)},null,{l:t}),{controlsDescendantBindings:!0}}},w.m.Ra[t]=!1,w.h.ea[t]=!0}t("if"),t("ifnot",!1,!0),t("with",!0)}(),w.c.let={init:function(t,e,n,r,i){return e=i.extend(e),w.Oa(e,t),{controlsDescendantBindings:!0}}},w.h.ea.let=!0;var N={};w.c.options={init:function(t){if("select"!==w.a.R(t))throw Error("options binding applies only to SELECT elements");for(;0<t.length;)t.remove(0);return{controlsDescendantBindings:!0}},update:function(e,n,i){function o(){return w.a.jb(e.options,function(t){return t.selected})}function a(t,e,n){var i=void 0===e?"undefined":r(e);return"function"==i?e(t):"string"==i?t[e]:n}function s(t,n){if(g&&h)w.i.ma(e,w.i.H);else if(d.length){var r=0<=w.a.A(d,w.w.M(n[0]));w.a.Zc(n[0],r),g&&!r&&w.u.G(w.a.Fb,null,[e,"change"])}}var u=e.multiple,c=0!=e.length&&u?e.scrollTop:null,l=w.a.f(n()),h=i.get("valueAllowUnset")&&i.has("value"),f=i.get("optionsIncludeDestroyed");n={};var p,d=[];h||(u?d=w.a.Mb(o(),w.w.M):0<=e.selectedIndex&&d.push(w.w.M(e.options[e.selectedIndex]))),l&&(void 0===l.length&&(l=[l]),p=w.a.jb(l,function(e){return f||e===t||null===e||!w.a.f(e._destroy)}),i.has("optionsCaption")&&null!==(l=w.a.f(i.get("optionsCaption")))&&l!==t&&p.unshift(N));var g=!1;n.beforeRemove=function(t){e.removeChild(t)},l=s,i.has("optionsAfterRender")&&"function"==typeof i.get("optionsAfterRender")&&(l=function(e,n){s(0,n),w.u.G(i.get("optionsAfterRender"),null,[n[0],e!==N?e:t])}),w.a.ec(e,p,function(n,r,o){return o.length&&(d=!h&&o[0].selected?[w.w.M(o[0])]:[],g=!0),r=e.ownerDocument.createElement("option"),n===N?(w.a.Bb(r,i.get("optionsCaption")),w.w.cb(r,t)):(o=a(n,i.get("optionsValue"),n),w.w.cb(r,w.a.f(o)),n=a(n,i.get("optionsText"),o),w.a.Bb(r,n)),[r]},n,l),h||(u?d.length&&o().length<d.length:d.length&&0<=e.selectedIndex?w.w.M(e.options[e.selectedIndex])!==d[0]:d.length||0<=e.selectedIndex)&&w.u.G(w.a.Fb,null,[e,"change"]),(h||w.S.Ya())&&w.i.ma(e,w.i.H),w.a.wd(e),c&&20<Math.abs(c-e.scrollTop)&&(e.scrollTop=c)}},w.c.options.$b=w.a.g.Z(),w.c.selectedOptions={init:function(t,e,n){function r(){var r=e(),i=[];w.a.D(t.getElementsByTagName("option"),function(t){t.selected&&i.push(w.w.M(t))}),w.m.eb(r,n,"selectedOptions",i)}function i(){var n=w.a.f(e()),r=t.scrollTop;n&&"number"==typeof n.length&&w.a.D(t.getElementsByTagName("option"),function(t){var e=0<=w.a.A(n,w.w.M(t));t.selected!=e&&w.a.Zc(t,e)}),t.scrollTop=r}if("select"!=w.a.R(t))throw Error("selectedOptions binding applies only to SELECT elements");var o;w.i.subscribe(t,w.i.H,function(){o?r():(w.a.B(t,"change",r),o=w.o(i,null,{l:t}))},null,{notifyImmediately:!0})},update:function(){}},w.m.wa.selectedOptions=!0,w.c.style={update:function(e,n){var r=w.a.f(n()||{});w.a.P(r,function(n,r){if(null!==(r=w.a.f(r))&&r!==t&&!1!==r||(r=""),o)o(e).css(n,r);else if(/^--/.test(n))e.style.setProperty(n,r);else{n=n.replace(/-(\w)/g,function(t,e){return e.toUpperCase()});var i=e.style[n];e.style[n]=r,r===i||e.style[n]!=i||isNaN(r)||(e.style[n]=r+"px")}})}},w.c.submit={init:function(t,e,n,r,i){if("function"!=typeof e())throw Error("The value for a submit binding must be a function");w.a.B(t,"submit",function(n){var r,o=e();try{r=o.call(i.$data,t)}finally{!0!==r&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}})}},w.c.text={init:function(){return{controlsDescendantBindings:!0}},update:function(t,e){w.a.Bb(t,e())}},w.h.ea.text=!0,function(){if(e&&e.navigator){var n,r,i,o,a,s=function(t){if(t)return parseFloat(t[1])},u=e.navigator.userAgent;(n=e.opera&&e.opera.version&&parseInt(e.opera.version()))||(a=s(u.match(/Edge\/([^ ]+)$/)))||s(u.match(/Chrome\/([^ ]+)/))||(r=s(u.match(/Version\/([^ ]+) Safari/)))||(i=s(u.match(/Firefox\/([^ ]+)/)))||(o=w.a.W||s(u.match(/MSIE ([^ ]+)/)))||(o=s(u.match(/rv:([^ )]+)/)))}if(8<=o&&10>o)var c=w.a.g.Z(),l=w.a.g.Z(),h=function(t){var e=this.activeElement;(e=e&&w.a.g.get(e,l))&&e(t)},f=function(t,e){var n=t.ownerDocument;w.a.g.get(n,c)||(w.a.g.set(n,c,!0),w.a.B(n,"selectionchange",h)),w.a.g.set(t,l,e)};w.c.textInput={init:function(e,s,u){function c(t,n){w.a.B(e,t,n)}function l(){p||(d=e.value,p=w.a.setTimeout(h,4))}function h(){clearTimeout(p),d=p=t;var n=e.value;g!==n&&(g=n,w.m.eb(s(),u,"textInput",n))}var p,d,g=e.value,y=9==w.a.W?l:h,v=!1;o&&c("keypress",h),11>o&&c("propertychange",function(t){v||"value"!==t.propertyName||y(t)}),8==o&&(c("keyup",h),c("keydown",h)),f&&(f(e,y),c("dragend",l)),(!o||9<=o)&&c("input",y),5>r&&"textarea"===w.a.R(e)?(c("keydown",l),c("paste",l),c("cut",l)):11>n?c("keydown",l):4>i?(c("DOMAutoComplete",h),c("dragdrop",h),c("drop",h)):a&&"number"===e.type&&c("keydown",l),c("change",h),c("blur",h),w.o(function n(){var r=w.a.f(s());null!==r&&r!==t||(r=""),d!==t&&r===d?w.a.setTimeout(n,4):e.value!==r&&(v=!0,e.value=r,v=!1,g=e.value)},null,{l:e})}},w.m.wa.textInput=!0,w.c.textinput={preprocess:function(t,e,n){n("textInput",t)}}}(),w.c.uniqueName={init:function(t,e){if(e()){var n="ko_unique_"+ ++w.c.uniqueName.rd;w.a.Yc(t,n)}}},w.c.uniqueName.rd=0,w.c.using={init:function(t,e,n,r,i){var o;return n.has("as")&&(o={as:n.get("as"),noChildContext:n.get("noChildContext")}),e=i.createChildContext(e,o),w.Oa(e,t),{controlsDescendantBindings:!0}}},w.h.ea.using=!0,w.c.value={init:function(e,n,r){var i=w.a.R(e),o="input"==i;if(!o||"checkbox"!=e.type&&"radio"!=e.type){var a=[],s=r.get("valueUpdate"),u=!1,c=null;s&&(a="string"==typeof s?[s]:w.a.wc(s),w.a.Pa(a,"change"));var l,h,f=function(){c=null,u=!1;var t=n(),i=w.w.M(e);w.m.eb(t,r,"value",i)};!w.a.W||!o||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=w.a.A(a,"propertychange")||(w.a.B(e,"propertychange",function(){u=!0}),w.a.B(e,"focus",function(){u=!1}),w.a.B(e,"blur",function(){u&&f()})),w.a.D(a,function(t){var n=f;w.a.Ud(t,"after")&&(n=function(){c=w.w.M(e),w.a.setTimeout(f,0)},t=t.substring(5)),w.a.B(e,t,n)}),l=o&&"file"==e.type?function(){var r=w.a.f(n());null===r||r===t||""===r?e.value="":w.u.G(f)}:function(){var o=w.a.f(n()),a=w.w.M(e);null!==c&&o===c?w.a.setTimeout(l,0):o===a&&a!==t||("select"===i?(a=r.get("valueAllowUnset"),w.w.cb(e,o,a),a||o===w.w.M(e)||w.u.G(f)):w.w.cb(e,o))},"select"===i?w.i.subscribe(e,w.i.H,function(){h?r.get("valueAllowUnset")?l():f():(w.a.B(e,"change",f),h=w.o(l,null,{l:e}))},null,{notifyImmediately:!0}):(w.a.B(e,"change",f),w.o(l,null,{l:e}))}else w.ib(e,{checkedValue:n})},update:function(){}},w.m.wa.value=!0,w.c.visible={update:function(t,e){var n=w.a.f(e()),r="none"!=t.style.display;n&&!r?t.style.display="":!n&&r&&(t.style.display="none")}},w.c.hidden={update:function(t,e){w.c.visible.update(t,function(){return!w.a.f(e())})}},function(t){w.c[t]={init:function(e,n,r,i,o){return w.c.event.init.call(this,e,function(){var e={};return e[t]=n(),e},r,i,o)}}}("click"),w.ca=function(){},w.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},w.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},w.ca.prototype.makeTemplateSource=function(t,e){if("string"==typeof t){var r=(e=e||n).getElementById(t);if(!r)throw Error("Cannot find template with ID "+t);return new w.C.F(r)}if(1==t.nodeType||8==t.nodeType)return new w.C.ia(t);throw Error("Unknown template type: "+t)},w.ca.prototype.renderTemplate=function(t,e,n,r){return t=this.makeTemplateSource(t,r),this.renderTemplateSource(t,e,n,r)},w.ca.prototype.isTemplateRewritten=function(t,e){return!1===this.allowTemplateRewriting||this.makeTemplateSource(t,e).data("isRewritten")},w.ca.prototype.rewriteTemplate=function(t,e,n){e=e((t=this.makeTemplateSource(t,n)).text()),t.text(e),t.data("isRewritten",!0)},w.b("templateEngine",w.ca),w.kc=function(){function t(t,e,n,r){t=w.m.ac(t);for(var i=w.m.Ra,o=0;o<t.length;o++){var a=t[o].key;if(Object.prototype.hasOwnProperty.call(i,a)){var s=i[a];if("function"==typeof s){if(a=s(t[o].value))throw Error(a)}else if(!s)throw Error("This template engine does not support the '"+a+"' binding within its templates")}}return n="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+w.m.vb(t,{valueAccessors:!0})+" } })()},'"+n.toLowerCase()+"')",r.createJavaScriptEvaluatorBlock(n)+e}var e=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,n=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(t,e,n){e.isTemplateRewritten(t,n)||e.rewriteTemplate(t,function(t){return w.kc.Ld(t,e)},n)},Ld:function(r,i){return r.replace(e,function(e,n,r,o,a){return t(a,n,r,i)}).replace(n,function(e,n){return t(n,"\x3c!-- ko --\x3e","#comment",i)})},md:function(t,e){return w.aa.Xb(function(n,r){var i=n.nextSibling;i&&i.nodeName.toLowerCase()===e&&w.ib(i,t,r)})}}}(),w.b("__tr_ambtns",w.kc.md),function(){w.C={},w.C.F=function(t){if(this.F=t){var e=w.a.R(t);this.ab="script"===e?1:"textarea"===e?2:"template"==e&&t.content&&11===t.content.nodeType?3:4}},w.C.F.prototype.text=function(){var t=1===this.ab?"text":2===this.ab?"value":"innerHTML";if(0==arguments.length)return this.F[t];var e=arguments[0];"innerHTML"===t?w.a.fc(this.F,e):this.F[t]=e};var e=w.a.g.Z()+"_";w.C.F.prototype.data=function(t){if(1===arguments.length)return w.a.g.get(this.F,e+t);w.a.g.set(this.F,e+t,arguments[1])};var n=w.a.g.Z();w.C.F.prototype.nodes=function(){var e=this.F;if(0==arguments.length){var r=w.a.g.get(e,n)||{},i=r.lb||(3===this.ab?e.content:4===this.ab?e:t);if(!i||r.jd){var o=this.text();o&&o!==r.bb&&(i=w.a.Md(o,e.ownerDocument),w.a.g.set(e,n,{lb:i,bb:o,jd:!0}))}return i}r=arguments[0],this.ab!==t&&this.text(""),w.a.g.set(e,n,{lb:r})},w.C.ia=function(t){this.F=t},w.C.ia.prototype=new w.C.F,w.C.ia.prototype.constructor=w.C.ia,w.C.ia.prototype.text=function(){if(0==arguments.length){var e=w.a.g.get(this.F,n)||{};return e.bb===t&&e.lb&&(e.bb=e.lb.innerHTML),e.bb}w.a.g.set(this.F,n,{bb:arguments[0]})},w.b("templateSources",w.C),w.b("templateSources.domElement",w.C.F),w.b("templateSources.anonymousTemplate",w.C.ia)}(),function(){function e(t,e,n){var r;for(e=w.h.nextSibling(e);t&&(r=t)!==e;)n(r,t=w.h.nextSibling(r))}function n(t,n){if(t.length){var r=t[0],i=t[t.length-1],o=r.parentNode,a=w.ga.instance,s=a.preprocessNode;if(s){if(e(r,i,function(t,e){var n=t.previousSibling,o=s.call(a,t);o&&(t===r&&(r=o[0]||e),t===i&&(i=o[o.length-1]||n))}),t.length=0,!r)return;r===i?t.push(r):(t.push(r,i),w.a.Ua(t,o))}e(r,i,function(t){1!==t.nodeType&&8!==t.nodeType||w.vc(n,t)}),e(r,i,function(t){1!==t.nodeType&&8!==t.nodeType||w.aa.cd(t,[n])}),w.a.Ua(t,o)}}function r(t){return t.nodeType?t:0<t.length?t[0]:null}function i(t,e,i,o,s){s=s||{};var u=(t&&r(t)||i||{}).ownerDocument,c=s.templateEngine||a;if(w.kc.xd(i,c,u),"number"!=typeof(i=c.renderTemplate(i,o,s,u)).length||0<i.length&&"number"!=typeof i[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(u=!1,e){case"replaceChildren":w.h.va(t,i),u=!0;break;case"replaceNode":w.a.Xc(t,i),u=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+e)}return u&&(n(i,o),s.afterRender&&w.u.G(s.afterRender,null,[i,o[s.as||"$data"]]),"replaceChildren"==e&&w.i.ma(t,w.i.H)),i}function o(t,e,n){return w.O(t)?t():"function"==typeof t?t(e,n):t}var a;w.gc=function(e){if(e!=t&&!(e instanceof w.ca))throw Error("templateEngine must inherit from ko.templateEngine");a=e},w.dc=function(e,n,s,u,c){if(((s=s||{}).templateEngine||a)==t)throw Error("Set a template engine before calling renderTemplate");if(c=c||"replaceChildren",u){var l=r(u);return w.$(function(){var t=n&&n instanceof w.fa?n:new w.fa(n,null,null,null,{exportDependencies:!0}),a=o(e,t.$data,t);t=i(u,c,a,t,s),"replaceNode"==c&&(l=r(u=t))},null,{Sa:function(){return!l||!w.a.Sb(l)},l:l&&"replaceNode"==c?l.parentNode:l})}return w.aa.Xb(function(t){w.dc(e,n,s,t,"replaceNode")})},w.Qd=function(e,r,a,s,u){function c(t,e){w.u.G(w.a.ec,null,[s,t,h,a,l,e]),w.i.ma(s,w.i.H)}function l(t,e){n(e,f),a.afterRender&&a.afterRender(e,t),f=null}function h(t,n){f=u.createChildContext(t,{as:p,noChildContext:a.noChildContext,extend:function(t){t.$index=n,p&&(t[p+"Index"]=n)}});var r=o(e,t,f);return i(s,"ignoreTargetNode",r,f,a)}var f,p=a.as,d=!1===a.includeDestroyed||w.options.foreachHidesDestroyed&&!a.includeDestroyed;if(d||a.beforeRemove||!w.Pc(r))return w.$(function(){var e=w.a.f(r)||[];void 0===e.length&&(e=[e]),d&&(e=w.a.jb(e,function(e){return e===t||null===e||!w.a.f(e._destroy)})),c(e)},null,{l:s});c(r.v());var g=r.subscribe(function(t){c(r(),t)},null,"arrayChange");return g.l(s),g};var s=w.a.g.Z(),u=w.a.g.Z();w.c.template={init:function(t,e){var n=w.a.f(e());if("string"==typeof n||"name"in n)w.h.Ea(t);else if("nodes"in n){if(n=n.nodes||[],w.O(n))throw Error('The "nodes" option must be a plain, non-observable array.');var r=n[0]&&n[0].parentNode;r&&w.a.g.get(r,u)||(r=w.a.Yb(n),w.a.g.set(r,u,!0)),new w.C.ia(t).nodes(r)}else{if(!(0<(n=w.h.childNodes(t)).length))throw Error("Anonymous template defined, but no template content was provided");r=w.a.Yb(n),new w.C.ia(t).nodes(r)}return{controlsDescendantBindings:!0}},update:function(e,n,r,i,o){var a=n();r=!0,i=null,"string"==typeof(n=w.a.f(a))?n={}:(a="name"in n?n.name:e,"if"in n&&(r=w.a.f(n.if)),r&&"ifnot"in n&&(r=!w.a.f(n.ifnot)),r&&!a&&(r=!1)),"foreach"in n?i=w.Qd(a,r&&n.foreach||[],n,e,o):r?(r=o,"data"in n&&(r=o.createChildContext(n.data,{as:n.as,noChildContext:n.noChildContext,exportDependencies:!0})),i=w.dc(a,r,n,e)):w.h.Ea(e),o=i,(n=w.a.g.get(e,s))&&"function"==typeof n.s&&n.s(),w.a.g.set(e,s,!o||o.ja&&!o.ja()?t:o)}},w.m.Ra.template=function(t){return 1==(t=w.m.ac(t)).length&&t[0].unknown||w.m.Id(t,"name")?null:"This template engine does not support anonymous templates nested within its templates"},w.h.ea.template=!0}(),w.b("setTemplateEngine",w.gc),w.b("renderTemplate",w.dc),w.a.Kc=function(t,e,n){var r,i,o,a,s;if(t.length&&e.length)for(r=i=0;(!n||r<n)&&(a=t[i]);++i){for(o=0;s=e[o];++o)if(a.value===s.value){a.moved=s.index,s.moved=a.index,e.splice(o,1),r=o=0;break}r+=o}},w.a.Pb=function(){function t(t,e,n,r,i){var o,a,s,u,c,l=Math.min,h=Math.max,f=[],p=t.length,d=e.length,g=d-p||1,y=p+d+1;for(o=0;o<=p;o++)for(u=s,f.push(s=[]),c=l(d,o+g),a=h(0,o-1);a<=c;a++)s[a]=a?o?t[o-1]===e[a-1]?u[a-1]:l(u[a]||y,s[a-1]||y)+1:a+1:o+1;for(l=[],h=[],g=[],o=p,a=d;o||a;)d=f[o][a]-1,a&&d===f[o][a-1]?h.push(l[l.length]={status:n,value:e[--a],index:a}):o&&d===f[o-1][a]?g.push(l[l.length]={status:r,value:t[--o],index:o}):(--a,--o,i.sparse||l.push({status:"retained",value:e[a]}));return w.a.Kc(g,h,!i.dontLimitMoves&&10*p),l.reverse()}return function(e,n,r){return r="boolean"==typeof r?{dontLimitMoves:r}:r||{},e=e||[],n=n||[],e.length<n.length?t(e,n,"added","deleted",r):t(n,e,"deleted","added",r)}}(),w.b("utils.compareArrays",w.a.Pb),function(){function e(e,n,r,i,o){var a=[],s=w.$(function(){var t=n(r,o,w.a.Ua(a,e))||[];0<a.length&&(w.a.Xc(a,t),i&&w.u.G(i,null,[r,t,o])),a.length=0,w.a.Nb(a,t)},null,{l:e,Sa:function(){return!w.a.kd(a)}});return{Y:a,$:s.ja()?s:t}}var n=w.a.g.Z(),r=w.a.g.Z();w.a.ec=function(i,o,a,s,u,c){function l(t){p={Aa:t,pb:w.ta(E++)},_.push(p),m||P.push(p)}function h(t){p=v[t],E!==p.pb.v()&&S.push(p),p.pb(E++),w.a.Ua(p.Y,i),_.push(p)}function f(t,e){if(t)for(var n=0,r=e.length;n<r;n++)w.a.D(e[n].Y,function(r){t(r,n,e[n].Aa)})}void 0===(o=o||[]).length&&(o=[o]),s=s||{};var p,d,g,y,v=w.a.g.get(i,n),m=!v,_=[],b=0,E=0,x=[],O=[],M=[],S=[],P=[],C=0;if(m)w.a.D(o,l);else{if(!c||v&&v._countWaitingForRemove){var T=w.a.Mb(v,function(t){return t.Aa});c=w.a.Pb(T,o,{dontLimitMoves:s.dontLimitMoves,sparse:!0})}var I,L,A;for(T=0;I=c[T];T++)switch(L=I.moved,A=I.index,I.status){case"deleted":for(;b<A;)h(b++);L===t&&((p=v[b]).$&&(p.$.s(),p.$=t),w.a.Ua(p.Y,i).length&&(s.beforeRemove&&(_.push(p),C++,p.Aa===r?p=null:M.push(p)),p&&x.push.apply(x,p.Y))),b++;break;case"added":for(;E<A;)h(b++);L!==t?(O.push(_.length),h(L)):l(I.value)}for(;E<o.length;)h(b++);_._countWaitingForRemove=C}w.a.g.set(i,n,_),f(s.beforeMove,S),w.a.D(x,s.beforeRemove?w.oa:w.removeNode);try{y=i.ownerDocument.activeElement}catch(t){}if(O.length)for(;(T=O.shift())!=t;){for(p=_[T],d=t;T;)if((g=_[--T].Y)&&g.length){d=g[g.length-1];break}for(o=0;b=p.Y[o];d=b,o++)w.h.Wb(i,b,d)}for(T=0;p=_[T];T++){for(p.Y||w.a.extend(p,e(i,a,p.Aa,u,p.pb)),o=0;b=p.Y[o];d=b,o++)w.h.Wb(i,b,d);!p.Ed&&u&&(u(p.Aa,p.Y,p.pb),p.Ed=!0,d=p.Y[p.Y.length-1])}for(y&&i.ownerDocument.activeElement!=y&&y.focus(),f(s.beforeRemove,M),T=0;T<M.length;++T)M[T].Aa=r;f(s.afterMove,S),f(s.afterAdd,P)}}(),w.b("utils.setDomNodeChildrenFromArrayMapping",w.a.ec),w.ba=function(){this.allowTemplateRewriting=!1},w.ba.prototype=new w.ca,w.ba.prototype.constructor=w.ba,w.ba.prototype.renderTemplateSource=function(t,e,n,r){return(e=9>w.a.W||!t.nodes?null:t.nodes())?w.a.la(e.cloneNode(!0).childNodes):(t=t.text(),w.a.ua(t,r))},w.ba.Ma=new w.ba,w.gc(w.ba.Ma),w.b("nativeTemplateEngine",w.ba),function(){w.$a=function(){var t=this.Hd=function(){if(!o||!o.tmpl)return 0;try{if(0<=o.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(t){}return 1}();this.renderTemplateSource=function(e,r,i,a){if(a=a||n,i=i||{},2>t)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var s=e.data("precompiled");return s||(s=e.text()||"",s=o.template(null,"{{ko_with $item.koBindingContext}}"+s+"{{/ko_with}}"),e.data("precompiled",s)),e=[r.$data],r=o.extend({koBindingContext:r},i.templateOptions),(r=o.tmpl(s,e,r)).appendTo(a.createElement("div")),o.fragments={},r},this.createJavaScriptEvaluatorBlock=function(t){return"{{ko_code ((function() { return "+t+" })()) }}"},this.addTemplate=function(t,e){n.write("<script type='text/html' id='"+t+"'>"+e+"<\/script>")},0<t&&(o.tmpl.tag.ko_code={open:"__.push($1 || '');"},o.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},w.$a.prototype=new w.ca,w.$a.prototype.constructor=w.$a;var t=new w.$a;0<t.Hd&&w.gc(t),w.b("jqueryTmplTemplateEngine",w.$a)}()})}();var i=ko;"undefined"!=typeof window?(ko=window.ko,void 0!==n?window.ko=n:delete window.ko):(ko=t.ko,void 0!==n?t.ko=n:delete t.ko),e.default=i}).call(e,n(102))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="__knockoutObservables",i="__knockoutSubscribable";function o(t,e){if(!t)throw new Error("When calling ko.track, you must pass an object as the first parameter.");var n=this,o=a(t,!0);return(e=e||Object.getOwnPropertyNames(t)).forEach(function(e){if(e!==r&&e!==i&&!(e in o)){var a=t[e],s=a instanceof Array,u=n.isObservable(a)?a:s?n.observableArray(a):n.observable(a);Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:u,set:n.isWriteableObservable(u)?u:void 0}),o[e]=u,s&&function(t,e){var n=null;t.computed(function(){n&&(n.dispose(),n=null);var r=e();r instanceof Array&&(n=function(t,e,n){return function(t,e){var n=e[i];if(!n){n=new t.subscribable,Object.defineProperty(e,i,{value:n});var r={};!function(t,e,n){["pop","push","reverse","shift","sort","splice","unshift"].forEach(function(r){var i=t[r];t[r]=function(){var t=i.apply(this,arguments);return!0!==n.pause&&e.notifySubscribers(this),t}})}(e,n,r),function(t,e,n,r){["remove","removeAll","destroy","destroyAll","replace"].forEach(function(i){Object.defineProperty(e,i,{enumerable:!1,value:function(){var o;r.pause=!0;try{o=t.observableArray.fn[i].apply(t.observableArray(e),arguments)}finally{r.pause=!1}return n.notifySubscribers(e),o}})})}(t,e,n,r)}return n}(t,n).subscribe(e)}(t,e,r))})}(n,u)}}),t}function a(t,e){var n=t[r];return!n&&e&&(n={},Object.defineProperty(t,r,{value:n})),n}function s(t,e,n){var r={owner:t,deferEvaluation:!0};if("function"==typeof n)r.read=n;else{if("value"in n)throw new Error('For ko.defineProperty, you must not specify a "value" for the property. You must provide a "get" function.');if("function"!=typeof n.get)throw new Error('For ko.defineProperty, the third parameter must be either an evaluator function, or an options object containing a function called "get".');r.read=n.get,r.write=n.set}return t[e]=this.computed(r),o.call(this,t,[e]),t}function u(t,e){if(!t)return null;var n=a(t,!1);return n&&n[e]||null}function c(t,e){var n=u(t,e);n&&n.valueHasMutated()}e.default={attachToKo:function(t){t.track=o,t.getObservable=u,t.valueHasMutated=c,t.defineProperty=s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="http://www.w3.org/2000/svg",i={register:function(t){t.bindingHandlers.jsmapSvgPath={init:function(e,n){var i=document.createElementNS(r,"svg:svg");i.setAttribute("class","jsmap2d-svgPath-svg");var o=document.createElementNS(r,"path");return i.appendChild(o),t.virtualElements.setDomNodeChildren(e,[i]),t.computed({read:function(){var e=t.unwrap(n());o.setAttribute("d",t.unwrap(e.path));var r=t.unwrap(e.width),a=t.unwrap(e.height);i.setAttribute("width",r),i.setAttribute("height",a),i.setAttribute("viewBox","0 0 "+r+" "+a),e.css&&i.setAttribute("class","jsmap2d-svgPath-svg "+t.unwrap(e.css))},disposeWhenNodeIsRemoved:e}),{controlsDescendantBindings:!0}}},t.virtualElements.allowedBindings.jsmapSvgPath=!0}};e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i,o,a,s,u,c,l,h,f,p,d,g,y,v,m,_,b=M(n(191)),w=M(n(13)),E=M(n(16)),x=M(n(441)),O=M(n(6));function M(t){return t&&t.__esModule?t:{default:t}}function S(t){for(var e=t.split("."),n=0,r=e.length;n<r;++n)e[n]=parseInt(e[n],10);return e}function P(){if(!(0,O.default)(i)&&(i=!1,!L())){var t=/ Chrome\/([\.0-9]+)/.exec(r.userAgent);null!==t&&(i=!0,o=S(t[1]))}return i}function C(){if(!(0,O.default)(a)&&(a=!1,!P()&&!L()&&/ Safari\/[\.0-9]+/.test(r.userAgent))){var t=/ Version\/([\.0-9]+)/.exec(r.userAgent);null!==t&&(a=!0,s=S(t[1]))}return a}function T(){if(!(0,O.default)(u)){u=!1;var t=/ AppleWebKit\/([\.0-9]+)(\+?)/.exec(r.userAgent);null!==t&&(u=!0,(c=S(t[1])).isNightly=!!t[2])}return u}function I(){var t;(0,O.default)(l)||(l=!1,"Microsoft Internet Explorer"===r.appName?null!==(t=/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(r.userAgent))&&(l=!0,h=S(t[1])):"Netscape"===r.appName&&null!==(t=/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(r.userAgent))&&(l=!0,h=S(t[1])));return l}function L(){if(!(0,O.default)(f)){f=!1;var t=/ Edge\/([\.0-9]+)/.exec(r.userAgent);null!==t&&(f=!0,p=S(t[1]))}return f}function A(){if(!(0,O.default)(d)){d=!1;var t=/Firefox\/([\.0-9]+)/.exec(r.userAgent);null!==t&&(d=!0,g=S(t[1]))}return d}function N(){if(!(0,O.default)(_)){var t=document.createElement("canvas");t.setAttribute("style","image-rendering: -moz-crisp-edges;image-rendering: pixelated;");var e=t.style.imageRendering;(_=(0,O.default)(e)&&""!==e)&&(m=e)}return _}function k(){if(!k.initialized)throw new E.default("You must call FeatureDetection.supportsWebP.initialize and wait for the promise to resolve before calling FeatureDetection.supportsWebP");return k._result}"undefined"!=typeof navigator?r=navigator:(r={},r={}),k._promise=void 0,k._result=void 0,k.initialize=function(){if((0,O.default)(k._promise))return k._promise;var t=b.default.defer();if(k._promise=t.promise,L())return k._result=!1,t.resolve(k._result),t.promise;var e=new Image;return e.onload=function(){k._result=e.width>0&&e.height>0,t.resolve(k._result)},e.onerror=function(){k._result=!1,t.resolve(k._result)},e.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.promise},Object.defineProperties(k,{initialized:{get:function(){return(0,O.default)(k._result)}}});var j=[];"undefined"!=typeof ArrayBuffer&&(j.push(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array),"undefined"!=typeof Uint8ClampedArray&&j.push(Uint8ClampedArray),"undefined"!=typeof Uint8ClampedArray&&j.push(Uint8ClampedArray));var R={isChrome:P,chromeVersion:function(){return P()&&o},isSafari:C,safariVersion:function(){return C()&&s},isWebkit:T,webkitVersion:function(){return T()&&c},isInternetExplorer:I,internetExplorerVersion:function(){return I()&&h},isEdge:L,edgeVersion:function(){return L()&&p},isFirefox:A,firefoxVersion:function(){return A()&&g},isWindows:function(){return(0,O.default)(y)||(y=/Windows/i.test(r.appVersion)),y},hardwareConcurrency:(0,w.default)(r.hardwareConcurrency,3),supportsPointerEvents:function(){return(0,O.default)(v)||(v=!A()&&"undefined"!=typeof PointerEvent&&(!(0,O.default)(r.pointerEnabled)||r.pointerEnabled)),v},supportsImageRenderingPixelated:N,supportsWebP:k,imageRenderingValue:function(){return N()?m:void 0},typedArrayTypes:j,supportsFullscreen:function(){return x.default.supportsFullscreen()},supportsTypedArrays:function(){return"undefined"!=typeof ArrayBuffer},supportsWebWorkers:function(){return"undefined"!=typeof Worker},supportsWebAssembly:function(){return"undefined"!=typeof WebAssembly&&!R.isEdge()}};e.default=R},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i,o=n(6),a=(r=o)&&r.__esModule?r:{default:r};var s={requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0},u={};Object.defineProperties(u,{element:{get:function(){if(u.supportsFullscreen())return document[s.fullscreenElement]}},changeEventName:{get:function(){if(u.supportsFullscreen())return s.fullscreenchange}},errorEventName:{get:function(){if(u.supportsFullscreen())return s.fullscreenerror}},enabled:{get:function(){if(u.supportsFullscreen())return document[s.fullscreenEnabled]}},fullscreen:{get:function(){if(u.supportsFullscreen())return null!==u.element}}}),u.supportsFullscreen=function(){if((0,a.default)(i))return i;i=!1;var t=document.body;if("function"==typeof t.requestFullscreen)return s.requestFullscreen="requestFullscreen",s.exitFullscreen="exitFullscreen",s.fullscreenEnabled="fullscreenEnabled",s.fullscreenElement="fullscreenElement",s.fullscreenchange="fullscreenchange",s.fullscreenerror="fullscreenerror",i=!0;for(var e,n=["webkit","moz","o","ms","khtml"],r=0,o=n.length;r<o;++r){var u=n[r];"function"==typeof t[e=u+"RequestFullscreen"]?(s.requestFullscreen=e,i=!0):"function"==typeof t[e=u+"RequestFullScreen"]&&(s.requestFullscreen=e,i=!0),e=u+"ExitFullscreen","function"==typeof document[e]?s.exitFullscreen=e:(e=u+"CancelFullScreen","function"==typeof document[e]&&(s.exitFullscreen=e)),e=u+"FullscreenEnabled",void 0!==document[e]?s.fullscreenEnabled=e:(e=u+"FullScreenEnabled",void 0!==document[e]&&(s.fullscreenEnabled=e)),e=u+"FullscreenElement",void 0!==document[e]?s.fullscreenElement=e:(e=u+"FullScreenElement",void 0!==document[e]&&(s.fullscreenElement=e)),e=u+"fullscreenchange",void 0!==document["on"+e]&&("ms"===u&&(e="MSFullscreenChange"),s.fullscreenchange=e),e=u+"fullscreenerror",void 0!==document["on"+e]&&("ms"===u&&(e="MSFullscreenError"),s.fullscreenerror=e)}return i},u.requestFullscreen=function(t,e){u.supportsFullscreen()&&t[s.requestFullscreen]({vrDisplay:e})},u.exitFullscreen=function(){u.supportsFullscreen()&&document[s.exitFullscreen]()},u._names=s,e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(13)),i=o(n(16));function o(t){return t&&t.__esModule?t:{default:t}}function a(){return!0}e.default=function(t,e){function n(){throw new i.default(e)}for(var o in e=(0,r.default)(e,"This object was destroyed, i.e., destroy() was called."),t)"function"==typeof t[o]&&(t[o]=n);t.isDestroyed=a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=c(n(16)),o=c(n(6)),a=c(n(197)),s=c(n(13)),u=c(n(104));function c(t){return t&&t.__esModule?t:{default:t}}var l=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!(0,o.default)(e.name))throw new i.default("options.name is required.");if(!(0,o.default)(e.tooltip))throw new i.default("options.tooltip is required.");if(!(0,o.default)(e.iconUrl))throw new i.default("options.iconUrl is required.");if("function"!=typeof e.creationFunction)throw new i.default("options.creationFunction is required.");if(!(0,o.default)(e.type))throw new i.default("options.type is required.");var n=e.creationFunction;(0,o.default)(n.canExecute)||(n=(0,a.default)(n)),this._creationCommand=n,this._name=e.name,this._tooltip=e.tooltip,this._iconUrl=e.iconUrl,this._type=e.type,this._category=(0,s.default)(e.category,""),u.default.track(this,["name","tooltip","iconUrl"])}return r(t,[{key:"creationCommand",get:function(){return this._creationCommand},set:function(t){this._creationCommand=t}},{key:"name",get:function(){return this._name},set:function(t){this._name=t}},{key:"tooltip",get:function(){return this._tooltip},set:function(t){this._tooltip=t}},{key:"iconUrl",get:function(){return this._iconUrl},set:function(t){this._iconUrl=t}},{key:"category",get:function(){return this._category},set:function(t){this._category=t}},{key:"type",get:function(){return this._type},set:function(t){this._type=t}}]),t}();e.default=l},function(t,e){t.exports="data:image/png;base64,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"},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAC/VBMVEX19e3///+714308+329e/y8ev08+/y8u319PLz8+u614r29vP39vHy8u/z8/H09PS41oiqxu/y8Ojw8Ovw7uimw/Dz67jy6bfx8Obw7dry6bLw7uL3+e3X6Lv06q/x8O3x7M74+PTK6Jj49/X4+PG92JD167T37LH06qvy793y68L5++/Ozcvz673A2pa82I7///r7+/SvgfDv7++xhe/u69Xx7dTKyMjz6rH9/fb6+fP49u+yiO7y8OH27sDx6r7266/G3aDc1Ofz79ny7dba2NbHxcXJ3qbt7Onw7d7h4N7w6sf68b3D25n5+Pju7uTy7Muvrq261Z+hoJ/8/Prq6ea+peXn5uPRz828ubjO4a/L3qr266m92JP6+va0hfb7+O+yjOvy8OrEwr/677LB2JL29vewgvPp6evFsOe7nue4mOfe3dv17Lv577ippajA15zH2Za51pC82IW3zO23lOzk4+Dp7N3o7tjj6tT18NP48cHr5re4tbW11IXh6O/E1e/9/u7Vy+Xs7eDz7dDV1M7z7MfAvr7Lyba51Zi+3YuwyfCiwfDh3ee0keesyeXV1NTv6c3V5sv27LbU4bS2sbK30rHw6K261KWz0aTa4+718+fNvuXB1t2vy9L69NDDxs2xzcT898PZ58Hk4Lz9+buqqqz986v57qvN3KGQj5D9//HQ3fG80fD9++jLuuX49+KtytzZ1tK5wM7n5Mze2szf6sm50cH78760z7i7ua/Y76zBz6nF2Kbj46TM6KO7yKG/0qCel5y10JWDhIjRwu32+OfQwebk4uW6yd3389Xl8dH//s///MTQu8TS1cHMy8G7uL3P3rjf17W9wrDW4Krq5qm816nO25mAfYDc6/+72PzcyPqryfbaz+r8+NX278vH17O1tqLU3p6Vk5R2b3HBlf+rkuvWy+qlqOfN3uDV5diul9LE48bY28bA1sWvp77d8rnG4JeOiorm8v/ct//GpPeltuK6mNmxmtja0NfCqNfEqtPo5KuwqZgII0dRAAAMpElEQVRYw22XBXAbRxSGVzq+090pkiyOZFeyLFuSZZbMzDUz1RhjzIljJ7HDzAxt0lBDZUgDDSdlZmZmZpjuyTJMp/9Id7u62e/+ffv2rQ3C33p05uEvtj45c+sdX8681Xfml1u3bp35ZMHMcQ0PH57p1YMPeu+Sm5h340cOD5feBJ5gQkD4z59c+HrfDQ9tffPNSwtvu3TDpepLX++LfzL5BkHfP3TDpC5529+HiERPPf3kQw8tEd3+dIgIRL9V/93+GWd37ts/IDa8JhXTu527z857XyoWi+nqZHibEJ3pD69Suu6whEnbVZNMj+THa9UQ0Bq3cf+9m+59oU762sKz9GBxMT2YN8+fdorp5Ew4fkoCgK4ZplAgUVv7+15YxmVrl0WDm0Tl9Z9v2p/3wp6xl4/s+SH5VTG9p3pE6kwOlibn0VPDIc9fTPur8/NNJok8ofaVbosl6VjSbcAsSon7dNN+Z031he0XkzN31tCDB78doXcXO8V50MF0QLCYDmbU26ur5/GFxxJWrizMtUTeBR1QnRGfbzo7cLrmQ+3pe8/m0fSa3cOz1gw4ndLMYHrtpAlpcjBN1z1YPTY2tiw/zaDg+Va1ihABP5F+af3vu1/1L66bZXj84GAyHDFrXp7Y39+/7vz7Vy5f9vdKnJnn9HdKaX+n8zATry2QAEm8CoOAUoTorP9g7Zo14oGXF+5Z0/dysNR/OBhaHrzwfHPV1XOzJqYwGRJpML/cbUQB6gEwoiZo4au6ujoxXaz9ZtP+Lx6U7p5XTDuvFPe99Fxl1WonTa8VPtLMSUC1unYLCaCDbTIRMIkQhOqsL/rBf3DNvadrv7l3X6a0r+w0vfalnX2Xn826r+/C+fPnr1y5fIWucUIbNIzrWHVPIodDwLOrMSMEUJgtJWLjNWfxpoN0cNL2PKkQAyedt/by1aLnelfYn++92jva+5KQFdLMedW0dOCVV+ZJAED1RSezKoFfCMmR+vL674o37RwUS1+zznLWSUe2wxcNnN+x+oXRyuaMjOaMqh0vzayjpcHqfNPInovWGhJAhTaXzJ4N8BBMLgcbGht/3TlIrzl47ZUje2hp9fC1NeKDxcnBwX192zPzqjPzgoMz62h62AQaFj1bu3trDABCDJQwBng01oRh+rvrPy1eOziws2579+kBml6WKaUH4IwHadq/hpZK4dxrgmnpYRPKRNZGflsjGQe4IYAJQQhELlF01Ret3Sl2ivtUH0rFY9sLaHEwLR44uEc6FgwJEABzWyodwdnEBG7ZMEOSJMfrtLpoICklCAzD9SlxjddeLRZLxz78e+zaqyPGkQciT/SfeP9Cf3//iZf7Z82adeIEvPafqLEWZgcGpvkW5gYlKlu0h2AeMAwXzpKhHfVfFff19792seXixV3bAnoCBLW0bNtmMVgsbq1W63a3BLh37QqwaC3dKmVi0ErfXIsmFNx8V2paVFrhygTVb/XPHAsI6OlpSXiv0DdKo1OrZWqFTJAafmFPZ0nDZDL4UxNrZDmObI3XNonArbcZDAE3WpSOBffFxf1xjxor2KXjeZJkJCiKAgJBJyWhtIGMp4XgiCeIgVqFCMRGq2UKVs6y3O2Phs1tt6GsajkPvKKMFJgU2gQBntYUQC2C2xmVIDiBC5nVEdZJmUlfJYt6xxAYMg0gcwdKvIBpDmJECMCMGAKlxzrDyvVmhcF3wgKGgSlJdFo1ClAJGouSAKEoCs9WQYApGsMwRo4JAo/NDeuwCanCS8YdGEkJOgEgfVUEjmJGJKuMzcrCCYJV30iUAlMIzAMSo6AITL+hMeJuG5daG6RmSXMoevPNmvgm3ovgHLk8CB390XXyaNXJ5hjBgbZAqEgoShEU6hG+JKUx4pZHOI02SRl0X+Wp5lMqgztXTo7PwKqTgNDejyqvH1110hUjpLJWBgEhFILhGCEImrClxEXcYmPwyJW5O0qeu7qqQhfldusEAp/o4OCgss0VOWVlOVmoEEQIgFPAcdyECyJIBs7iHUhYgpY8X5puH5q9GYnOJxckFTCA0QgGAGIOjY1BmVhATU0BQWD8ECgKRoMCS5bGRTxc0FuSk56RVYbkVA7lVCYmFbQqrL5T6cHA13E4d/MCIgQCAA5jMG19l7zTGNFhzxjaUbLKnl51ctWqkoogq68jiEcnATh8IUHggcqm/wMAGMmwjhi9y+XKsOfYZzdXlcGVPZ4rIyUT+TWZSDJvJrLI+CLgCPzi6O0b5rZ1tt/uZzIxjJ+fBEf5qG2RDkOQDiehCxQCKC8AlnVJtFqtw3RqQTJW4ckouf6xrraNKe8+MX9+arxaRrEa9wM8pwuyrEwFZlwCCG7SgXc3thxPMgQYrAFnbvTqtp6/2uKeOXNogdA5c+bYix/lpO/YnL4699x9rh9dMRNTsDSFwHoQqNn3+L55mnhNYGSAUhOY6tE9j9wd11bebsNkunhNwIJnrzev6M2ocGVVrT73cUbpuANG002UwhjELPLxWX9HLIszvE7lULSSQsHDKVtKV9vcpTYbwzlUrHzzEdWRUznpFYqy9NVHnlB79gqZ5jkbRQ2LfWb4LAYEBZnyRGsUKxf4FKEvK4+I6Gh/pFurkMSGooHdAQnxpMkcE5O6AMaTIxk+N5ETVuGmORBwR6xRGIZykQaVgoNlliAVaOjSjW2NzyToEfgIJ2EUrZYoI4lzbHaiW5WbukyraRUBLss+ZwZ0gMCdICBIRVDLlnAWk5NNGKFv/zOirSsF6D2PGE630uperuAR2PJNVCUdTyy8C/CuqxAww2eRmZDLcCG2ggkdj2AUxioSepZ2hUWUb9ADD0LCKwoNPcsLOEZC8oqkLb6Jh0D4UPOct2e87bOoAYkxeyuHDKaukVewWcoknY19eG5YXMcGoEcoYY68IlVrhSGAEVBxPIzB7PTZB+5//P7HV9nlRfZQb/XjNbsSbmYUPT2gFDXfzr0FEeUpcmhDSHdenqa0OrILDBoGABFw7cgoOXqgylVSlF7Sm4V6iyiDPXDu1AOr7ZWjFfAN5zIEF52Plun1sHZQKMlmO5IClOEQIDjYfP+BA/fff8CV83xRDop563joY9c/OHJ0VdHr9zVX2T8uig5/uCssbG5HitxmpgCAKRN5PKk7m5OIQKlo0dvr1q2bcacfwM0ogsnHPfhVfNBcUWnPqKocGrIX2c1UdPhnnY1hEV13Pwb0AEE5h6Mg0erQiUCo6E4fuArr70TRhvY5e5FxC6jRcQaVxJhjos0SsyTaDIsesIENd3dFhDWWL5XrJZrabBOXrbK+C/zeEMb73GmMRffOWT+HwgAUzgUd32KcqiCAYikUroKNSOnYCG3c0n7bApZSMKzmacC/KQDgKjbcsd5nxl7vQkbWBiUlFSomEBRCeO82W/ujnRFtG59ZZkMwmJ5wCh4H64gGZJ2PzxwCwYXx2bVb+IL5SdZcBQkEEcTEGYlQqA2klMe1zb0lXA9wuArRP3kAexcJW2ovIITaarQkhptMrMLXYNBJxmsgmBJFxdzzYnlc2MbPKD0iAswbPp45wOv6xQ0UAc/J8JUWOQoLNUrKlUrWYwAB04QalYeYlPKIsM6UR4TduHcGJAiMdeGxAG5DPNuazcBAekqGQY3C5CPAdDGa45F8qH5pF0zxVlgP4OqtF8YvNsZ6+JwykUXGRUIAjmAEJnS8LqAxRzefjylCuFsa236BANBALIY1aXFsrHcFWmSsXC6HtVVu1PQoMDnGCF2CwMYlXxYQ2SoyifKR6A3lnwgAgDYsuvMOFB2foNyQy2HwpSyOUWzqNgVCwUEUNAELhCDUXrQifXPWaMXoR0P2kncEAFRsbOzEIR5kMaLAGzkmzSCDHWTaqQNCM0ZdK1yzR9N7P67IuF4GAf8JUK3G+4fQFABMBzAPvDgkz8rJb0+3K8pW5P8HgBrdwhk45cD9XwBqbHnPBA8zkag0FjWbQ0C+iJwmPtcSzhs9TY4jyVaN28jAGu/p855ba1SSzMTIGFEpwygQmIn33OMLtdxX0Pz5hceC5i+f77t8uW8h7BT6BgVsiYqKSouCSg0U7mmabRZNmoYV3ivKb4KZ+MQhJVTCggT4Wbhw4Yvw60iAv6gSEpQOh7IFtlTdwkXZrRJkOQY7uw69pzOJRCIGXQJMItYrP/v1o66SA0df38zIcdgPZ1le44aHxHSFJzrCCQKs/udUZUZORk76czCIuFcxK0qKXCWVRa+viKFQGETMk8oyifcxMJvNoTfprBoGR0NHX3ftOLmid1VVFQRMU+ldtzIh0dN+WAL/P58Qjktywp96ytPOqhgyVjy15dZbQ/4FEK9P9xBuc3YAAAAASUVORK5CYII="},function(t,e){t.exports="data:image/png;base64,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"},function(t,e){t.exports="data:image/png;base64,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"},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAADAFBMVEX8+fH8+fP9+vX////P6LT9+/b8+O/88dr89+z89OT989/89uj++vP89eb879P89OH78t/88dz89+7779b87c7+9eH//PT+89z89ur98NT779T+9+f879D87cvN57H99uT88Nj///e11ur68Nj9+/j///v989v768n/9uL/+/H98tr98dbi8NH9////+u3//+y+w8b9/Pr77dD++Or68uXn5dz9qkr//Pb68+j/8dTIzM797MX///Kw1OnZ3Nz98tjf+cL+9N//9dr76cLi5rf59/Gx1e7s7evp6eHx7N73793+8dHe7cu1u8D19fDv7OX//eL58OLR1tnf3dXj4ND6682or7bS5vLx7+j//uf/+9//9Nf069PM2tPQ09PL0NOjqrD+/Pjw8vD59u308uz/+en/9+S01ePh49XV6r766bvZ57Sr0uzr6+fy9ubi5OLd3+C71uD/9t3g4dv279np5NX37M7/78zq4cvDx8n25cPh5cPt6sDR1Lyyt7vM5Kyfpquao6q4waH9p0TD5/339/T9+fDc6vDj7e/2+Ov28ebe4+XN1d7F2d3T59vv8Nf/89Ta2Mv/7cj27sbV08TR3r2vtLeWnqT3yZvoz435sF77rVTp7/G/2+u0zd/+89nr6Ni72djE3tf46tbX19Xn5tH45c7c38y/3cvt7MrJy8fb7cK6wcLh6r/R6Lns9vvY5e/Y3eLm8Nnj6Na2w9auvczS48aNo8XF4MLCwL2ts7v43rqKm7jH0LfAyKnG2qXixYT3vISPoHD5tmn5/P7k7/TH4O7l5+jW5OTQ3ePBzNy10dTU59Hf58zQzMHK3LzO5bq8urP22a/50aH12pysuJPfwHnfuHPQq2Xt9ODU39igtcWaqMByirfU67b66qezvZ2LlZ31xY6cqoP2vXX5uW7/3GH/ulfB3u/H2eX/5df9/NWrx9TR0s/J0sft98Tl3LzQ1a//46G6rJn8x3bSsnPAl2P5jFXl+8q8z8d9mcbGwbPr2aP+yo+/pHrrpVAAsYWwAAAMZ0lEQVRYw22XBXjbRhSA75QJbZEZYzuOIXbtOMzJkjQLMyzUYBsqM/PKXZlX5nZtx7yVxszMzMy8k+2sHvzfJ+Ui+H3w7vQOJEThEaTdf2WYYrdF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"},function(t,e){t.exports="data:image/png;base64,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"},function(t,e){t.exports="data:image/png;base64,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"},function(t,e){t.exports="data:image/png;base64,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"},function(t,e){t.exports="data:image/png;base64,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"},function(t,e){t.exports="data:image/png;base64,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"},function(t,e){t.exports="data:image/png;base64,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"},function(t,e){t.exports="data:image/png;base64,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"},function(t,e){t.exports="data:image/png;base64,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"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(199),s=(r=a)&&r.__esModule?r:{default:r};var u=window.L,c=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,u.TileLayer),i(e,[{key:"_setZoomTransform",value:function(t,n,r){var i=s.default.WGS84ToGCJ02(n.lng,n.lat);n={lng:i[0],lat:i[1]},o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_setZoomTransform",this).call(this,t,n,r)}},{key:"_getTiledPixelBounds",value:function(t){var n=s.default.WGS84ToGCJ02(t.lng,t.lat);return t={lng:n[0],lat:n[1]},o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"_getTiledPixelBounds",this).call(this,t)}}]),e}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(30);var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"leafletSettings",value:function(t){t.Map.mergeOptions({touchExtend:!0}),t.Map.addInitHook("addHandler","touchExtend",i.JSTouchExtend),t.Util.extend(t.LineUtil,{segmentsIntersect:function(t,e,n,r){return this._checkCounterclockwise(t,n,r)!==this._checkCounterclockwise(e,n,r)&&this._checkCounterclockwise(t,e,n)!==this._checkCounterclockwise(t,e,r)},_checkCounterclockwise:function(t,e,n){return(n.y-t.y)*(e.x-t.x)>(e.y-t.y)*(n.x-t.x)}}),t.Polyline.include({intersects:function(){var t=this._getProjectedPoints(),e=t?t.length:0,n=void 0,r=void 0,i=void 0;if(this._tooFewPointsForIntersection())return!1;for(n=e-1;n>=3;n--)if(r=t[n-1],i=t[n],this._lineSegmentsIntersectsRange(r,i,n-2))return!0;return!1},newLatLngIntersects:function(t,e){return!!this._map&&this.newPointIntersects(this._map.latLngToLayerPoint(t),e)},newPointIntersects:function(t,e){var n=this._getProjectedPoints(),r=n?n.length:0,i=n?n[r-1]:null,o=r-2;return!this._tooFewPointsForIntersection(1)&&this._lineSegmentsIntersectsRange(i,t,o,e?1:0)},_tooFewPointsForIntersection:function(t){var e=this._getProjectedPoints(),n=e?e.length:0;return!e||(n+=t||0)<=3},_lineSegmentsIntersectsRange:function(e,n,r,i){var o=this._getProjectedPoints(),a=void 0,s=void 0;i=i||0;for(var u=r;u>i;u--)if(a=o[u-1],s=o[u],t.LineUtil.segmentsIntersect(e,n,a,s))return!0;return!1},_getProjectedPoints:function(){if(!this._defaultShape)return this._originalPoints;for(var t=[],e=this._defaultShape(),n=0;n<e.length;n++)t.push(this._map.latLngToLayerPoint(e[n]));return t}}),t.Polygon.include({intersects:function(){var e,n,r,i,o=this._getProjectedPoints();return!this._tooFewPointsForIntersection()&&(!!t.Polyline.prototype.intersects.call(this)||(e=o.length,n=o[0],r=o[e-1],i=e-2,this._lineSegmentsIntersectsRange(r,n,i,1)))}})}}]),t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=c(n(69)),o=n(4),a=(c(n(7)),u(n(23))),s=u(n(66));function u(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function c(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,window.mergeOptions({position:o.JSControlPosition.LEFT_TOP},t)));return n._zoomInText="+",n._zoomOutText="&#x2212;",n._zoomInTitle="放大",n._zoomOutTitle="缩小",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"onAdd",value:function(t){var e="leaflet-control-zoom",n=a.create("div",e+" leaflet-bar");return this._zoomInButton=this._createButton(this._zoomInText,this._zoomInTitle,e+"-in",n,this._zoomIn),this._resetViewButton=this._createResetViewButton(n),this._zoomOutButton=this._createButton(this._zoomOutText,this._zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t._map.on("zoomend zoomlevelschange",this._updateDisabled,this),n}},{key:"onRemove",value:function(t){t._map.off("zoomend zoomlevelschange",this._updateDisabled,this)}},{key:"_updateDisabled",value:function(){var t=this._map._map,e="leaflet-disabled";a.removeClass(this._zoomInButton,e),a.removeClass(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&a.addClass(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&a.addClass(this._zoomInButton,e)}},{key:"_createResetViewSvgDiv",value:function(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");a.addClass(t,"jsmap2d-svgPath-svg"),t.setAttribute("viewBox","0 0 32 32");var e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d","M 7.5 0 C 3.375 0 0 3.375 0 7.5 C 0 11.625 3.375 15 7.5 15 c 3.46875 0 6.375 -2.4375 7.21875 -5.625 l -1.96875 0 C 12 11.5313 9.9375 13.125 7.5 13.125 C 4.40625 13.125 1.875 10.5938 1.875 7.5 C 1.875 4.40625 4.40625 1.875 7.5 1.875 c 1.59375 0 2.90625 0.65625 3.9375 1.6875 l -3 3 l 6.5625 0 L 15 0 L 12.75 2.25 C 11.4375 0.84375 9.5625 0 7.5 0 Z"),t.appendChild(e),t}},{key:"_createResetViewButton",value:function(t){var e=a.create("a","jsmap2d-zoom-control-icon-reset",t);e.appendChild(this._createResetViewSvgDiv()),e.href="#",e.title="重置视图",e.setAttribute("role","button"),e.setAttribute("aria-label","重置视图");var n=this;return s.disableClickPropagation(e),s.on(e,"click",s.stop),s.on(e,"click",function(){n._map.resetView()},n),e}},{key:"_createButton",value:function(t,e,n,r,i){var o=a.create("a",n,r);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),s.disableClickPropagation(o),s.on(o,"click",s.stop),s.on(o,"click",i,this),s.on(o,"click",this._refocusOnMap,this),o}},{key:"_zoomIn",value:function(t){var e=this._map._map;!this._disabled&&e._zoom<e.getMaxZoom()&&e.zoomIn(e.options.zoomDelta*(t.shiftKey?3:1))}},{key:"_zoomOut",value:function(t){var e=this._map._map;!this._disabled&&e._zoom>e.getMinZoom()&&e.zoomOut(e.options.zoomDelta*(t.shiftKey?3:1))}},{key:"destroy",value:function(){(function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this._zoomInText=void 0,this._zoomOutText=void 0,this._zoomInTitle=void 0,this._zoomOutTitle=void 0,this._zoomInButton=void 0,this._zoomOutButton=void 0,this._resetViewButton=void 0,this._disabled=void 0}}]),e}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=l(n(69)),o=n(4),a=(l(n(7)),c(n(23))),s=c(n(66)),u=l(n(461));function c(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function l(t){return t&&t.__esModule?t:{default:t}}var h=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,window.mergeOptions({position:o.JSControlPosition.RIGHT_TOP,showBtnCount:7},t)));return n._floorList=new u.default(n._options),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"onAdd",value:function(t){var e=this,n=[];t._rootLayer&&n.push({floorId:0,name:"G"});var r=t._floorLayerSet;if(r&&r.forEach(function(t,e){n.push({floorId:t.floorId,name:e})}),n.sort(function(t,e){return t.floorId-e.floorId}),0!=n.length){var i=e._floorList,o=i.adapter;o.display=function(t){return t.name};var u=i.onAdd(n);if(o.getSize()>this._options.showBtnCount){var c=function(t){t.preventDefault(),t.stopPropagation();var e=t.target.id,n=i._currentItemIndex;"up"===e?n=Math.max(0,--n):"down"===e&&(n=Math.min(o.getSize()-1,++n)),i.select(o.getItem(n))},l=e._up=a.create("a","jsmap2d-up-arrow");l.id="up";var h=e._down=a.create("a","jsmap2d-down-arrow");h.id="down",s.disableClickPropagation(l),s.on(l,"click",s.stop),s.on(l,"click",c,e),s.on(l,"click",e._refocusOnMap,e),s.disableClickPropagation(h),s.on(h,"click",s.stop),s.on(h,"click",c,e),s.on(h,"click",e._refocusOnMap,e),u.insertBefore(l,u.children[0]),u.appendChild(h)}return i.select(n.find(function(e){return e.floorId==t.focusFloorId})),i.on("onChange",function(n,r){t._updateFocusFloorId(r.floorId,!0),e.updateDisabled(r.floorId)}),e._floorChange=function(t,e){i.select(n.find(function(t){return t.floorId==e}),!1)},t.on("floorChange",e._floorChange),e.updateDisabled(t.focusFloorId),u}console.log("The control of floor is initialized fail!")}},{key:"onRemove",value:function(t){t.off("floorChange",this._floorChange)}},{key:"updateDisabled",value:function(t){if(this._up){var e="jsmap2d-disabled";a.removeClass(this._up,e),a.removeClass(this._down,e);var n=this._floorList.adapter.getSize()-1;0===t&&a.addClass(this._up,e),n===t&&a.addClass(this._down,e)}}},{key:"destroy",value:function(){this._up=void 0,this._down=void 0,this._floorList=void 0,this._floorChange=void 0}}]),e}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(200)),o=s(n(462)),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(23));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.resize=function(){if(n._options.autoHeight&&n._content){for(var t=n._content.parentElement;t&&t!==document.body&&!a.hasClass(t,"jsmap2d-container");)t=t.parentElement;if(!t)return;var e=n._content.scrollHeight;a.addStyle(n._content,{height:Math.min(e,t.clientHeight*n._options.height)+"px"})}},n._options=window.mergeOptions({itemEq:function(t,e){return t===e},display:"address",selectClass:["selected"],autoHeight:!1},t),n._adapter=t.adapter||new o.default,n._onItemClick=n._onItemClick.bind(n),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"onAdd",value:function(t){if(this._adapter.items=t,this._content=this._adapter.getItemContainer(),!this._content)throw new Error("generated container error!");return a.addClass(this._content,"jsmap2d-list-switcher"),a.addClass(this._content,"jsmap2d-bar"),(this._container=document.createElement("div")).appendChild(this._content),this._adapter.on("refresh",this.parseList,this),this.parseList(),this._adapter.getSize()>this._options.showBtnCount&&(this._content.style.height=31*this._options.showBtnCount+"px"),this._options.autoHeight&&window.addEventListener("optimizedResize",this.resize),this._container}},{key:"_onItemClick",value:function(t){t.preventDefault(),t.stopPropagation(),this.select(this._adapter.getItem([].indexOf.call(this._content.children,t.target)))}},{key:"clearList",value:function(){if(this._container)for(;this._content.firstChild;){var t=this._content.firstChild;t.removeEventListener("click",this._onItemClick),this._content.removeChild(t)}}},{key:"select",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t&&this._container){for(var r=-1,i=0;i<this._adapter.getSize();i++){var o=this._adapter.getItem(i);this._options.itemEq(o,t)&&(r=i)}-1!==r&&(n&&this.fire("onChange",this._adapter.getItem(this._currentItemIndex),this._adapter.getItem(r)),this._currentItemIndex=r,this.scrollTo(t),[].map.call(this._content.children,function(t,n){return e._options.selectClass.forEach(function(e){return n===r?a.addClass(t,e):a.removeClass(t,e)})}))}}},{key:"scrollTo",value:function(t){for(var e=this._adapter.getSize()-1,n=0;n<this._adapter.getSize();n++){var r=this._adapter.getItem(n);this._options.itemEq(r,t)&&(e=n)}var i=this._content,o=i.clientHeight,a=i.scrollHeight,s=i.children[e],u=s.offsetTop,c=s.offsetHeight;if(!(o>=a)){var l=u-o/2+c/2;"scrollTo"in i?i.scrollTo(0,u-o/2+c/2):i.scrollTop=l}}},{key:"parseList",value:function(){if(this._container){this.clearList();for(var t=0;t<this._adapter.getSize();t++){var e=this._adapter.getItemView(t);e.addEventListener("click",this._onItemClick),this._content.appendChild(e)}this.resize()}}},{key:"adapter",get:function(){return this._adapter}},{key:"currentItem",get:function(){return this._adapter.getItem(this._currentItemIndex)}}]),e}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(200),a=(r=o)&&r.__esModule?r:{default:r},s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(23));var u=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n._items=t,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a.default),i(e,[{key:"refresh",value:function(){this.fire("refresh",this)}},{key:"getSize",value:function(){return this._items.length}},{key:"getItem",value:function(t){return this._items[t]}},{key:"display",value:function(t){return String(t)}},{key:"forEach",value:function(t){this._items.forEach(t)}},{key:"getItemView",value:function(t){var e=document.createElement("a");return e.innerHTML=this.display(this.getItem(t)),e.href="#",e}},{key:"getItemContainer",value:function(){return s.create("div")}},{key:"items",set:function(t){this._items=t||[]}}]),e}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=(l(n(7)),n(4)),o=(l(n(40)),l(n(464))),a=l(n(465)),s=l(n(466)),u=l(n(467)),c=l(n(468));function l(t){return t&&t.__esModule?t:{default:t}}var h=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._map=e,this._mobile=/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent),this._drawLayer=new L.layerGroup,this._drawLayer.addTo(this._map._map),this._options=n,this._addEventListeners()}return r(t,[{key:"activate",value:function(t){this.stop();var e=this._drawLayer;switch(t){case i.JSDrawMode.POINT:this._currentEntity=new a.default(e);break;case i.JSDrawMode.POLYLINE:this._currentEntity=new o.default(e);break;case i.JSDrawMode.POLYGON:this._currentEntity=new s.default(e);break;case i.JSDrawMode.CIRCLE:this._currentEntity=new u.default(e);break;case i.JSDrawMode.RECTANGLE:this._currentEntity=new c.default(e)}this._currentMode=t,this._currentEntity&&this._currentEntity.startEdit()}},{key:"_addEventListeners",value:function(){var t=this,e=t._moveHandler=function(e){if(t._currentMode!=i.JSDrawMode.POINT&&t._currentEntity&&t._currentEntity.isEntity()){var n=e.latlng,r=n.lat,o=n.lng;t._currentEntity.updatePointNode([r,o])}},n=t._clickHandler=function(n){if(t._currentEntity){var r=n.latlng,o=r.lat,a=r.lng;t._currentEntity.addPointNode([o,a])}t._currentMode==i.JSDrawMode.POINT&&t.stop(),t._mobile&&e(n)},r=t._dblClickHandler=function(){t._currentMode!=i.JSDrawMode.POINT&&t.stop()},o=t._map._map;t._map._eventManager._clickNodeEventForDrawTool=n,t._mobile||(o.on("mousemove",e),o.on("dblclick",r))}},{key:"deactivate",value:function(){this._currentEntity&&this._currentEntity.isEntity()&&(this._currentEntity.stopEdit(),this._currentMode=null,this._currentEntity=null)}},{key:"stop",value:function(){if(this._currentEntity&&this._currentEntity.isEntity()){this._currentEntity.stopEdit();var t=this._currentEntity.toGeometry();this._currentEntity=null,this._options.callback&&this._options.callback(t)}}},{key:"clear",value:function(){this._drawLayer.clearLayers(),this._currentEntity&&this._currentEntity.destroy(),this._currentEntity=null}},{key:"destroy",value:function(){this.clear();var t=this._map._map;t.removeLayer(this._drawLayer),this._drawLayer=null,this._map._eventManager._clickNodeEventForDrawTool=null,t.off("mousemove",this._moveHandler),t.off("dblclick",this._dblClickHandler),this._map=void 0,this._options=void 0,this._currentMode=void 0,this._mobile=void 0,this._moveHandler=void 0,this._clickHandler=void 0,this._dblClickHandler=void 0}}]),t}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(40)),o=a(n(20));function a(t){return t&&t.__esModule?t:{default:t}}var s=window.L,u=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"startEdit",value:function(){this._initDynamicEntity()}},{key:"stopEdit",value:function(){this.isEntity()?(this._dynamicEntityToConstant(),this._dynamicPointToConstant()):(this._entity.removeFrom(this._layer),this._currentPointNode&&this._currentPointNode.removeFrom(this._layer))}},{key:"_dynamicEntityToConstant",value:function(){this._entity.setStyle({color:"#00FFFF"})}},{key:"_initDynamicEntity",value:function(){this._positions=[],this._entity=s.polyline([],{stroke:!0,color:"rgb(255,0,0)",opacity:1,weight:2,bubblingMouseEvents:!1}),this._entity.addTo(this._layer)}},{key:"addPointNode",value:function(t){0==this._positions.length&&(this._positions.push(t),this._initDynamicPointNode()),this._dynamicPointToConstant(),this._positions.push(t),this._initDynamicPointNode(),this._entity.setLatLngs([this._positions])}},{key:"_initDynamicPointNode",value:function(){var t=this._positions[this._positions.length-1];this._currentPointNode=s.circleMarker(t,{radius:1,color:"rgb(255,0,0)"}),this._currentPointNode.addTo(this._layer)}},{key:"updatePointNode",value:function(t){this._positions[this._positions.length-1]=t,this._entity.setLatLngs([this._positions]),this._currentPointNode.setLatLng(t)}},{key:"_dynamicPointToConstant",value:function(){this._currentPointNode&&this._currentPointNode.setStyle({color:"#00FFFF",opacity:1})}},{key:"isEntity",value:function(){return this._positions.length>1}},{key:"toGeometry",value:function(){if(this.isEntity()){var t=[],e=void 0;return this._positions.forEach(function(n){e&&e[0]==n[0]&&e[1]==n[1]||(t.push({x:n[1],y:n[0]}),e=n)}),t.length>1?new o.default(t):null}return null}},{key:"destroy",value:function(){(function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this._currentPointNode=void 0}}]),e}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(40)),o=a(n(5));function a(t){return t&&t.__esModule?t:{default:t}}var s=window.L,u=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"startEdit",value:function(){}},{key:"addPointNode",value:function(t){this._entity||(this._entity=s.circleMarker(t,{radius:1,color:"#00FFFF"}),this._entity.addTo(this._layer),this._positions=t)}},{key:"stopEdit",value:function(){}},{key:"updatePointNode",value:function(t){this._positions=t,this._entity.setLatLng(t)}},{key:"isEntity",value:function(){return void 0!==this._positions}},{key:"toGeometry",value:function(){return this.isEntity()?new o.default(this._positions[1],this._positions[0]):null}}]),e}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(40)),o=a(n(18));function a(t){return t&&t.__esModule?t:{default:t}}var s=window.L,u=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"startEdit",value:function(){this._initDynamicEntity()}},{key:"stopEdit",value:function(){this.isEntity()?(this._dynamicEntityToConstant(),this._dynamicPointToConstant()):(this._entity&&this._entity.removeFrom(this._layer),this._currentPointNode&&this._currentPointNode.removeFrom(this._layer))}},{key:"addPointNode",value:function(t){0==this._positions.length&&(this._positions.push(t),this._positions.push(t),this._initDynamicPointNode()),this._dynamicPointToConstant();var e=this._positions[0];this._positions.pop(),this._positions.push(t),this._positions.push(e),this._initDynamicPointNode(),this._entity.setLatLngs([this._positions])}},{key:"updatePointNode",value:function(t){this._positions[this._positions.length-2]=t,this._entity.setLatLngs([this._positions]),this._currentPointNode.setLatLng(t)}},{key:"_initDynamicEntity",value:function(){this._positions=[],this._entity=s.polygon([],{stroke:!0,color:"rgb(255,0,0)",opacity:1,weight:2,bubblingMouseEvents:!0}),this._entity.addTo(this._layer)}},{key:"_initDynamicPointNode",value:function(){var t=this._positions[this._positions.length-2];this._currentPointNode=s.circleMarker(t,{radius:1,color:"rgb(255,0,0)"}),this._currentPointNode.addTo(this._layer)}},{key:"_dynamicEntityToConstant",value:function(){this._entity.setStyle({color:"#00FFFF"})}},{key:"_dynamicPointToConstant",value:function(){this._currentPointNode&&this._currentPointNode.setStyle({color:"#00FFFF",opacity:1})}},{key:"isEntity",value:function(){return this._positions&&this._positions.length>2}},{key:"toGeometry",value:function(){if(this.isEntity()){var t=[],e=void 0;return this._positions.forEach(function(n){e&&e[0]==n[0]&&e[1]==n[1]||(t.push({x:n[1],y:n[0]}),e=n)}),t.length>3?new o.default(t):null}return null}},{key:"destroy",value:function(){(function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this),this._currentPointNode=void 0}}]),e}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(40)),o=a(n(32));function a(t){return t&&t.__esModule?t:{default:t}}var s=window.L,u=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"startEdit",value:function(){}},{key:"stopEdit",value:function(){this.isEntity()?(this._dynamicEntityToConstant(),this._dynamicPointToConstant()):this._entity.removeFrom(this._layer)}},{key:"addPointNode",value:function(t){this._positions||(this._positions=t,this._initDynamicEntity(),this._initDynamicPointNode())}},{key:"updatePointNode",value:function(t){this._radius=s.latLng(this._positions).distanceTo(t),this._entity.setRadius(this._radius),this._lastPointNode.setLatLng(t)}},{key:"_initDynamicEntity",value:function(){this._entity=s.circle(this._positions,{radius:.01,stroke:!0,color:"rgb(255,0,0)",opacity:1,fillColor:"rgb(255,0,0)",fillOpacity:.5,weight:2,bubblingMouseEvents:!1}),this._entity.addTo(this._layer)}},{key:"_initDynamicPointNode",value:function(){this._firstPointNode=s.circleMarker(this._positions,{radius:1,color:"#0FF"}),this._firstPointNode.addTo(this._layer),this._lastPointNode=s.circleMarker(this._positions,{radius:1,color:"rgb(255,0,0)"}),this._lastPointNode.addTo(this._layer)}},{key:"_dynamicEntityToConstant",value:function(){this._entity.setStyle({color:"#00FFFF",fillColor:"#00FFFF"})}},{key:"_dynamicPointToConstant",value:function(){this._lastPointNode&&this._lastPointNode.setStyle({color:"#00FFFF",opacity:1})}},{key:"toGeometry",value:function(){return this.isEntity()?new o.default({x:this._positions[1],y:this._positions[0]},this._radius):null}},{key:"isEntity",value:function(){return this._positions&&2==this._positions.length}},{key:"destroy",value:function(){this._firstPointNode=void 0,this._lastPointNode=void 0,this._radius=void 0}}]),e}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(40)),o=a(n(18));function a(t){return t&&t.__esModule?t:{default:t}}var s=window.L,u=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,i.default),r(e,[{key:"startEdit",value:function(){}},{key:"stopEdit",value:function(){this.isEntity()?(this._dynamicEntityToConstant(),this._dynamicPointToConstant()):this._entity.removeFrom(this._layer)}},{key:"addPointNode",value:function(t){this.isEntity()||(this._positions=this._lastPositions=t,this._initDynamicEntity(),this._initDynamicPointNode())}},{key:"updatePointNode",value:function(t){this._lastPositions=t,this._entity.setBounds(s.latLngBounds(this._positions,this._lastPositions)),this._lastPointNode.setLatLng(t)}},{key:"_initDynamicPointNode",value:function(){this._firstPointNode=s.circleMarker(this._positions,{radius:1,color:"#0FF"}),this._firstPointNode.addTo(this._layer),this._lastPointNode=s.circleMarker(this._lastPositions,{radius:1,color:"rgb(255,0,0)"}),this._lastPointNode.addTo(this._layer)}},{key:"_initDynamicEntity",value:function(){this._entity=s.rectangle(s.latLngBounds(this._positions,this._lastPositions),{radius:.01,stroke:!0,color:"rgb(255,0,0)",opacity:1,fillColor:"rgb(255,0,0)",fillOpacity:.5,weight:2,bubblingMouseEvents:!1}),this._entity.addTo(this._layer)}},{key:"_dynamicEntityToConstant",value:function(){this._entity.setStyle({color:"#00FFFF",fillColor:"#0FF"})}},{key:"_dynamicPointToConstant",value:function(){this._lastPointNode&&this._lastPointNode.setStyle({color:"#00FFFF",opacity:1})}},{key:"toGeometry",value:function(){if(!this.isEntity())return null;var t=this._positions[1],e=this._positions[0],n=this._lastPositions[1],r=this._lastPositions[0];if(t==n&&e==r)return null;var i=[];return i.push({x:t,y:e},{x:t,y:r},{x:n,y:r},{x:n,y:e}),new o.default(i)}},{key:"isEntity",value:function(){return void 0!==this._positions}},{key:"destroy",value:function(){this._lastPositions=void 0,this._firstPointNode=void 0,this._lastPointNode=void 0}}]),e}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(199)),o=a(n(5));a(n(7));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._map=e}return r(t,[{key:"MercatorToWGS84",value:function(t){if(t){var e=void 0;return t instanceof Array?(e=[],t.forEach(function(t){e.push(i.default.project2Cgs(new o.default(t.x,t.y,t.z)))})):e=i.default.project2Cgs(t),e}}},{key:"WGS84ToMercator",value:function(t){if(t){var e=void 0;return t instanceof Array?(e=[],t.forEach(function(t){e.push(i.default.cgs2Project(new o.default(t.x,t.y,t.z)))})):e=i.default.cgs2Project(t),e}}},{key:"GCJ02ToWGS84",value:function(t){if(t){var e=void 0;if(t instanceof Array)e=[],t.forEach(function(t){var n=i.default.GCJ02ToWGS84(t.x,t.y);e.push(new o.default(n[0],n[1],t.z))});else{var n=i.default.GCJ02ToWGS84(t.x,t.y);e=new o.default(n[0],n[1],t.z)}return e}}},{key:"WGS84ToGCJ02",value:function(t){if(t){var e=void 0;if(t instanceof Array)e=[],t.forEach(function(t){var n=i.default.WGS84ToGCJ02(t.x,t.y);e.push(new o.default(n[0],n[1],t.z))});else{var n=i.default.WGS84ToGCJ02(t.x,t.y);e=new o.default(n[0],n[1],t.z)}return e}}},{key:"BD09ToWGS84",value:function(t){if(t){var e=void 0;if(t instanceof Array)e=[],t.forEach(function(t){var n=i.default.BD09ToGCJ02(t.x,t.y),r=i.default.GCJ02ToWGS84(n[0],n[1]);e.push(new o.default(r[0],r[1],t.z))});else{var n=i.default.BD09ToGCJ02(t.x,t.y),r=i.default.GCJ02ToWGS84(n[0],n[1]);e=new o.default(r[0],r[1],t.z)}return e}}},{key:"WGS84ToBD09",value:function(t){if(t){var e=void 0;if(t instanceof Array)e=[],t.forEach(function(t){var n=i.default.WGS84ToGCJ02(t.x,t.y),r=i.default.GCJ02ToBD09(n[0],n[1]);e.push(new o.default(r[0],r[1],t.z))});else{var n=i.default.WGS84ToGCJ02(t.x,t.y),r=i.default.GCJ02ToBD09(n[0],n[1]);e=new o.default(r[0],r[1],t.z)}return e}}},{key:"toGeo",value:function(t,e,n){var r=6371004,i=n/r,o=e/r/Math.cos(t.y*Math.PI/180);return{x:t.x+180*o/Math.PI,y:t.y-180*i/Math.PI,z:1}}},{key:"destinationVincenty",value:function(t,e,n){for(var r=6378137,i=6356752.3142,a=1/298.257223563,s=t.x,u=t.y,c=n,l=this.rad(e),h=Math.sin(l),f=Math.cos(l),p=(1-a)*Math.tan(this.rad(u)),d=1/Math.sqrt(1+p*p),g=p*d,y=Math.atan2(p,f),v=d*h,m=1-v*v,_=m*(r*r-i*i)/(i*i),b=1+_/16384*(4096+_*(_*(320-175*_)-768)),w=_/1024*(256+_*(_*(74-47*_)-128)),E=c/(i*b),x=2*Math.PI;Math.abs(E-x)>1e-12;){var O=Math.cos(2*y+E),M=Math.sin(E),S=Math.cos(E);x=E,E=c/(i*b)+w*M*(O+w/4*(S*(2*O*O-1)-w/6*O*(4*M*M-3)*(4*O*O-3)))}var P=g*M-d*S*f,C=Math.atan2(g*S+d*M*f,(1-a)*Math.sqrt(v*v+P*P)),T=a/16*m*(4+a*(4-3*m)),I=Math.atan2(M*h,d*S-g*M*f)-(1-T)*a*v*(E+T*M*(O+T*S*(2*O*O-1)));return new o.default(s+this.deg(I),this.deg(C))}},{key:"rad",value:function(t){return t*Math.PI/180}},{key:"deg",value:function(t){return 180*t/Math.PI}},{key:"toGeo0",value:function(t,e,n){var r=this.destinationVincenty(t,0,n),i=this.destinationVincenty(t,90,e);return new o.default(i.x,r.y,1.5)}}]),t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=(C(n(7)),n(4)),o=n(471),a=n(31),s=n(472),u=n(473),c=n(203),l=n(474),h=n(30),f=C(n(51)),p=C(n(202)),d=(C(n(25)),n(475)),g=C(n(68)),y=(n(106),n(476)),v=n(477),m=C(n(67)),_=C(n(65)),b=n(478),w=C(n(64)),E=(C(n(12)),C(n(98))),x=C(n(5)),O=C(n(20)),M=C(n(18)),S=C(n(32)),P=C(n(38));function C(t){return t&&t.__esModule?t:{default:t}}window.L;var T=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._map=e,this._options=n,this._markerManager=new Map,this._initMapEventListeners()}return r(t,[{key:"activate",value:function(t){this.deactivate();var e=this._map._map;switch(t){case i.JSDrawMode.POINT:this._currentHandler=new s.JSDrawPoint(e);break;case i.JSDrawMode.POLYLINE:this._currentHandler=new c.JSDrawPolyline(e);break;case i.JSDrawMode.POLYGON:this._currentHandler=new l.JSDrawPolygon(e);break;case i.JSDrawMode.CIRCLE:this._currentHandler=new u.JSDrawCircle(e);break;case i.JSDrawMode.RECTANGLE:this._currentHandler=new o.JSDrawRectangle(e)}this._currentMode=t,this._currentHandler&&this._currentHandler.enable()}},{key:"deactivate",value:function(){this._currentHandler&&this._currentHandler.disable(),this._currentEditHandler&&this._currentEditHandler.disable(),this._currentMode=null,this._currentHandler=null,this._currentEditHandler=null}},{key:"stop",value:function(){this._currentHandler&&(this._currentHandler.finishDrawing(),this._currentHandler.disable()),this._currentEditHandler&&(this._currentEditHandler.disable(),this._fireEditCallback(this._currentEditHandler.getShape())),this._currentMode=null,this._currentHandler=null,this._currentEditHandler=null}},{key:"_fireEditCallback",value:function(t){var e=t.parentMarker;e._position=t.editing.toGeometry(),this._options.editCallback&&this._options.editCallback(e)}},{key:"clear",value:function(){var t=this;t._currentHandler&&(t._currentHandler.disable(),t.activate(t._currentMode)),this._currentEditHandler&&(t._currentEditHandler.disable(),t._currentMode=i.JSDrawMode.EDITED),t._markerManager.forEach(function(e){t._options.removeCallback&&t._options.removeCallback(e),t._map.removeMarker(e)}),t._markerManager=new Map}},{key:"destroy",value:function(){this._removeMapEventListeners(),this.stop(),this.clear(),this._map=void 0,this._options=void 0,this._markerManager=void 0}},{key:"edit",value:function(){this.stop(),this._currentMode=a.JSDrawEvent.EDITED}},{key:"addGeometry",value:function(t){var e=this;t instanceof Array?t.forEach(function(t){e._addSingleGeometry(t)}):e._addSingleGeometry(t)}},{key:"addMarker",value:function(t){var e=this;t instanceof Array?t.forEach(function(t){e._addSingleMarker(t)}):e._addSingleMarker(t)}},{key:"editMarker",value:function(t){var e=t._nodeId;this._markerManager.get(e)||(this.addMarker(t),e=t._nodeId),this.editMarkerById(e)}},{key:"editMarkerById",value:function(t){var e=this._markerManager.get(t),n=this._getLayerTypeByMarker(e);n?(this._startEditNode(e._node,n),this._currentMode=a.JSDrawEvent.EDITED):console.error("The geometry is not been supported!")}},{key:"updateMarkerPosition",value:function(t,e){var n=this._currentMode==a.JSDrawEvent.EDITED;if(this.stop(),!t)return console.error("The marker can not be empty!"),void(n&&(this._currentMode=a.JSDrawEvent.EDITED));var r=t._nodeId;this._markerManager.get(r)||this.addMarker(t),t.setPosition(e),this._options.editCallback&&this._options.editCallback(t),n&&(this._currentMode=a.JSDrawEvent.EDITED)}},{key:"editGeometry",value:function(t){this.stop();var e=this._getLayerTypeByGeometry(t);if(e){var n=this._addSingleGeometry(t);this._startEditNode(n._node,e),this._currentMode=a.JSDrawEvent.EDITED}else console.error("The geometry is not been supported!")}},{key:"_getLayerTypeByGeometry",value:function(t){var e=void 0;return t instanceof x.default?e="marker":t instanceof O.default?e="polyline":t instanceof M.default?e="polygon":t instanceof S.default?e="circle":t instanceof P.default&&(e="rectangle"),e}},{key:"_getLayerTypeByMarker",value:function(t){var e=void 0;return t instanceof E.default?e="marker":t instanceof _.default?e="polyline":t instanceof w.default?e="polygon":t instanceof m.default?e="circle":t instanceof g.default&&(e="rectangle"),e}},{key:"_addSingleMarker",value:function(t){var e=this,n=e._getLayerTypeByMarker(t);if(n){var r=t._callback;t._callback=function(t){r&&r(t),e._markerManager.set(t._leaflet_id,t)},e._map.addMarker(t),e._currentHandler=null,e._options.callback&&e._options.callback(t),t._node.on(h.JSMapEvents.DBLCLICK,function(t){if(e._currentMode==a.JSDrawEvent.EDITED){var r=t.target;e._startEditNode(r,n),e._currentMode=a.JSDrawEvent.EDITED}})}else console.error("The geometry is not been supported!")}},{key:"_addSingleGeometry",value:function(t){var e=this._getLayerTypeByGeometry(t);if(e)return this._initMarker(t,e);console.error("The geometry is not been supported!")}},{key:"_initMapEventListeners",value:function(){var t=this,e=this,n=e._map._map;e._createdHandler=function(t){var n=t.layerType,r=t.geometry;e._initMarker(r,n)},e._rightClickHandler=function(){e._currentMode==a.JSDrawEvent.EDITED&&(e.stop(),e._currentMode=a.JSDrawEvent.EDITED)},e._editingCallHandler=function(){e._currentMode==a.JSDrawEvent.EDITED&&e._options.editCallback&&e._currentEditHandler&&e._fireEditCallback(t._currentEditHandler.getShape())},n.on(a.JSDrawEvent.CREATED,e._createdHandler),n.on(a.JSDrawEvent.EDITRESIZE,e._editingCallHandler),n.on(a.JSDrawEvent.EDITMOVE,e._editingCallHandler),n.on(a.JSDrawEvent.EDITVERTEX,e._editingCallHandler),n.on(h.JSMapEvents.CONTEXTMENU,e._rightClickHandler)}},{key:"_removeMapEventListeners",value:function(){var t=this._map._map;t.off(a.JSDrawEvent.CREATED,this._createdHandler),t.off(a.JSDrawEvent.EDITMOVE,this._editingCallHandler),t.off(a.JSDrawEvent.EDITVERTEX,self._editingCallHandler),t.off(a.JSDrawEvent.EDITRESIZE,this._editingCallHandler),t.off(h.JSMapEvents.CONTEXTMENU,this._rightClickHandler),this._createdHandler=null,this._rightClickHandler=null}},{key:"_startEditNode",value:function(t,e){this.stop(),t.editing||(t.editing=this._initMarkerEditing(t,e)),this._currentEditHandler=t.editing,t.editing.enable()}},{key:"_initMarkerEditing",value:function(t,e){var n=void 0;switch(e){case"rectangle":n=new d.JSEditRectangle(t);break;case"circle":n=new v.JSEditCircle(t);break;case"polygon":case"polyline":n=new b.JSEditPoly(t);break;case"marker":n=new y.JSEditPoint(t)}return n}},{key:"_initMarker",value:function(t,e){var n=this,r=void 0,i=n._map.focusFloorId,o=function(t){n._markerManager.set(t._nodeId,t)};switch(e){case"marker":r=new f.default({position:t,floorId:i,image:p.default,height:40,width:24,callback:o});break;case"polygon":r=new w.default({position:t,floorId:i,strokeColor:"rgb(0,255,255)",color:"rgba(0,255,255,0.5)",callback:o});break;case"rectangle":r=new g.default({position:t,floorId:i,strokeColor:"rgb(0,255,255)",color:"rgba(0,255,255,0.5)",callback:o});break;case"polyline":r=new _.default({position:t,floorId:i,width:4,color:"rgb(0,255,255)",callback:o});break;case"circle":r=new m.default({floorId:i,position:t.center,radius:t.radius,color:"rgba(0,255,255,0.5)",callback:o})}return r&&(n._map.addMarker(r),n._currentHandler=null,n._options.callback&&n._options.callback(r),r._node.on(h.JSMapEvents.DBLCLICK,function(t){if(n._currentMode==a.JSDrawEvent.EDITED){var r=t.target;n._startEditNode(r,e),n._currentMode=a.JSDrawEvent.EDITED}})),r}}]),t}();e.default=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSDrawRectangle=void 0;var r,i=n(201),o=n(38),a=(r=o)&&r.__esModule?r:{default:r};var s=window.L,u=e.JSDrawRectangle=i.JSDrawSimpleShape.extend({statics:{TYPE:"rectangle"},options:{shapeOptions:{radius:.01,stroke:!0,color:"#F00",opacity:1,fillColor:"#F00",fillOpacity:.5,weight:2,clickable:!0},markerOptions:{radius:1,color:"#0FF"}},initialize:function(t,e){this.type=u.TYPE,i.JSDrawSimpleShape.prototype.initialize.call(this,t,e)},disable:function(){this._enabled&&(this._isCurrentlyTwoClickDrawing=!1,i.JSDrawSimpleShape.prototype.disable.call(this))},_drawShape:function(t){if(this._shape)this._shape.setBounds(new s.LatLngBounds(this._startLatLng,t)),this._lastPointNode.setLatLng(t);else{var e=this.options,n=e.shapeOptions,r=e.markerOptions;this._shape=new s.Rectangle(new s.LatLngBounds(this._startLatLng,t),n),this._map.addLayer(this._shape),this._firstPointNode=new s.CircleMarker(this._startLatLng,r),this._lastPointNode=new s.CircleMarker(t,r),this._map.addLayer(this._firstPointNode),this._map.addLayer(this._lastPointNode)}},_fireCreatedEvent:function(){i.JSDrawSimpleShape.prototype._fireCreatedEvent.call(this,this.toGeometry())},toGeometry:function(){if(this._shape){var t=this._shape.getBounds();return new a.default(t.getEast(),t.getSouth(),t.getWest(),t.getNorth())}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSDrawPoint=void 0;var r=n(105),i=n(30),o=s(n(202)),a=s(n(5));function s(t){return t&&t.__esModule?t:{default:t}}var u=window.L,c=e.JSDrawPoint=r.JSDrawFeature.extend({statics:{TYPE:"marker"},options:{icon:new u.Icon({iconUrl:o.default,iconAnchor:[12,40],iconSize:[24,40]}),repeatMode:!1,zIndexOffset:2e3},initialize:function(t,e){this.type=c.TYPE,r.JSDrawFeature.prototype.initialize.call(this,t,e)},addHooks:function(){r.JSDrawFeature.prototype.addHooks.call(this),this._map&&(this._mouseMarker||(this._mouseMarker=u.marker(this._map.getCenter(),{icon:u.divIcon({className:"jsmap2d-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on(i.JSMapEvents.CONTEXTMENU,this._onClick,this).addTo(this._map),this._map.on(i.JSMapEvents.MOUSEMOVE,this._onMouseMove,this),this._map.on(i.JSMapEvents.CONTEXTMENU,this._onClick,this))},removeHooks:function(){r.JSDrawFeature.prototype.removeHooks.call(this),this._map&&(this._map.off(i.JSMapEvents.MOUSEMOVE,this._onMouseMove,this).off(i.JSMapEvents.CONTEXTMENU,this._onClick,this),this._marker&&(this._map.removeLayer(this._marker),delete this._marker),this._mouseMarker.off(i.JSMapEvents.CONTEXTMENU,this._onClick,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker)},_onMouseMove:function(t){var e=t.latlng;this._mouseMarker.setLatLng(e),this._marker?(e=this._mouseMarker.getLatLng(),this._marker.setLatLng(e)):(this._marker=this._createMarker(e),this._map.addLayer(this._marker))},_createMarker:function(t){return new u.Marker(t,{icon:this.options.icon,zIndexOffset:this.options.zIndexOffset})},_onClick:function(){this.finishDrawing()},finishDrawing:function(){this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()},_fireCreatedEvent:function(){var t=this._marker.getLatLng(),e=t.lng,n=t.lat;r.JSDrawFeature.prototype._fireCreatedEvent.call(this,new a.default(e,n))},toGeometry:function(){var t=this._marker.getLatLng();return new a.default(t.lng,t.lat)}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSDrawCircle=void 0;var r,i=n(201),o=n(32),a=(r=o)&&r.__esModule?r:{default:r};var s=window.L,u=e.JSDrawCircle=i.JSDrawSimpleShape.extend({statics:{TYPE:"circle"},options:{shapeOptions:{stroke:!0,color:"#F00",weight:2,opacity:1,fill:!0,fillColor:null,fillOpacity:.5,clickable:!0},markerOptions:{radius:1,color:"#0FF"}},initialize:function(t,e){this.type=u.TYPE,i.JSDrawSimpleShape.prototype.initialize.call(this,t,e)},_drawShape:function(t){var e=this._startLatLng.distanceTo(t);if(this._shape)this._shape.setRadius(e),this._lastPointNode.setLatLng(t);else{var n=this.options,r=n.shapeOptions,i=n.markerOptions;this._shape=new s.Circle(this._startLatLng,e,r),this._map.addLayer(this._shape),this._firstPointNode=new s.CircleMarker(this._startLatLng,i),this._lastPointNode=new s.CircleMarker(t,i),this._map.addLayer(this._firstPointNode),this._map.addLayer(this._lastPointNode)}},_fireCreatedEvent:function(){i.JSDrawSimpleShape.prototype._fireCreatedEvent.call(this,this.toGeometry())},toGeometry:function(){var t=this._startLatLng,e=t.lng,n=t.lat;return new a.default({x:e,y:n},this._shape.getRadius())}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSDrawPolygon=void 0;var r,i=n(203),o=n(18),a=(r=o)&&r.__esModule?r:{default:r};var s=window.L,u=e.JSDrawPolygon=i.JSDrawPolyline.extend({statics:{TYPE:"polygon"},Poly:s.Polygon,options:{showArea:!1,showLength:!1,shapeOptions:{stroke:!0,color:"#F00",weight:2,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0}},initialize:function(t,e){i.JSDrawPolyline.prototype.initialize.call(this,t,e),this.type=u.TYPE},_shapeIsValid:function(){return this._markers.length>=3},toGeometry:function(){var t=[],e=void 0;return this._poly.getLatLngs().forEach(function(n){e&&e.lng==n.lng&&e.lat==n.lat||(t.push({x:n.lng,y:n.lat}),e=n)}),t.length>1?new a.default(t):null}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSEditRectangle=void 0;var r,i=n(106),o=n(31),a=n(38),s=(r=a)&&r.__esModule?r:{default:r};var u=window.L;e.JSEditRectangle=i.JSEditSimpleShape.extend({_createMoveMarker:function(){var t=this._shape.getBounds().getCenter();this._moveMarker=this._createMarker(t,this.options.moveIcon)},_createResizeMarker:function(){var t=this._getCorners();this._resizeMarkers=[];for(var e=0,n=t.length;e<n;e++)this._resizeMarkers.push(this._createMarker(t[e],this.options.resizeIcon)),this._resizeMarkers[e]._cornerIndex=e},_onMarkerDragStart:function(t){i.JSEditSimpleShape.prototype._onMarkerDragStart.call(this,t);var e=this._getCorners(),n=t.target._cornerIndex;this._oppositeCorner=e[(n+2)%4],this._toggleCornerMarkers(0,n)},_onMarkerDragEnd:function(t){var e=t.target,n=void 0;e===this._moveMarker&&(n=this._shape.getBounds().getCenter(),e.setLatLng(n)),this._toggleCornerMarkers(1),this._repositionCornerMarkers(),i.JSEditSimpleShape.prototype._onMarkerDragEnd.call(this,t)},_move:function(t){for(var e=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),n=this._shape.getBounds().getCenter(),r=void 0,i=[],a=0,s=e.length;a<s;a++)r=[e[a].lat-n.lat,e[a].lng-n.lng],i.push([t.lat+r[0],t.lng+r[1]]);this._shape.setLatLngs(i),this._repositionCornerMarkers(),this._map.fire(o.JSDrawEvent.EDITMOVE,{layer:this._shape})},_resize:function(t){var e=void 0;this._shape.setBounds(u.latLngBounds(t,this._oppositeCorner)),e=this._shape.getBounds(),this._moveMarker.setLatLng(e.getCenter()),this._map.fire(o.JSDrawEvent.EDITRESIZE,{layer:this._shape})},_getCorners:function(){var t=this._shape.getBounds();return[t.getNorthWest(),t.getNorthEast(),t.getSouthEast(),t.getSouthWest()]},toGeometry:function(){var t=this._shape.getBounds();return new s.default(t.getEast(),t.getSouth(),t.getWest(),t.getNorth())},_toggleCornerMarkers:function(t){for(var e=0,n=this._resizeMarkers.length;e<n;e++)this._resizeMarkers[e].setOpacity(t)},_repositionCornerMarkers:function(){for(var t=this._getCorners(),e=0,n=this._resizeMarkers.length;e<n;e++)this._resizeMarkers[e].setLatLng(t[e])}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSEditPoint=void 0;var r,i=n(31),o=n(5),a=(r=o)&&r.__esModule?r:{default:r};var s=window.L;e.JSEditPoint=s.Handler.extend({initialize:function(t,e){this._marker=t,s.setOptions(this,e)},addHooks:function(){var t=this._marker;t.dragging.enable(),t.on("dragend",this._onDragEnd,t),this._toggleMarkerHighlight()},removeHooks:function(){var t=this._marker;t.dragging.disable(),t.off("dragend",this._onDragEnd,t),this._toggleMarkerHighlight()},_onDragEnd:function(t){var e=t.target;e.edited=!0,this._map.fire(i.JSDrawEvent.EDITMOVE,{layer:e})},_toggleMarkerHighlight:function(){var t=this._marker._icon;t&&(t.style.display="none",s.DomUtil.hasClass(t,"jsmap2d-edit-marker-selected")?(s.DomUtil.removeClass(t,"jsmap2d-edit-marker-selected"),this._offsetMarker(t,-4)):(s.DomUtil.addClass(t,"jsmap2d-edit-marker-selected"),this._offsetMarker(t,4)),t.style.display="")},_offsetMarker:function(t,e){var n=parseInt(t.style.marginTop,10)-e,r=parseInt(t.style.marginLeft,10)-e;t.style.marginTop=n+"px",t.style.marginLeft=r+"px"},toGeometry:function(){var t=this._marker.getLatLng(),e=t.lng,n=t.lat;return new a.default(e,n)},getShape:function(){return this._marker}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSEditCircle=void 0;var r,i=n(106),o=n(31),a=n(32),s=(r=a)&&r.__esModule?r:{default:r};e.JSEditCircle=i.JSEditSimpleShape.extend({_createResizeMarker:function(){var t=this._shape.getLatLng(),e=this._getResizeMarkerPoint(t);this._resizeMarkers=[],this._resizeMarkers.push(this._createMarker(e,this.options.resizeIcon))},_createMoveMarker:function(){var t=this._shape.getLatLng();this._moveMarker=this._createMarker(t,this.options.moveIcon)},_getResizeMarkerPoint:function(t){var e=this._shape._radius*Math.cos(Math.PI/4),n=this._map.project(t);return this._map.unproject([n.x+e,n.y-e])},_resize:function(t){var e=this._moveMarker.getLatLng().distanceTo(t);this._shape.setRadius(e),this._shape.setRadius(e),this._map.fire(o.JSDrawEvent.EDITRESIZE,{layer:this._shape})},_move:function(t){if(this._resizeMarkers.length){var e=this._getResizeMarkerPoint(t);this._resizeMarkers[0].setLatLng(e)}this._shape.setLatLng(t),this._map.fire(o.JSDrawEvent.EDITMOVE,{layer:this._shape})},toGeometry:function(){var t=this._shape.getLatLng(),e=t.lng,n=t.lat;return new s.default({x:e,y:n},this._shape.getRadius())},getShape:function(){return this._shape}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSEditPolyVerticesEdit=e.JSEditPoly=void 0;var r=n(31),i=n(30),o=c(n(479)),a=c(n(20)),s=n(4),u=c(n(18));function c(t){return t&&t.__esModule?t:{default:t}}var l=window.L,h=(e.JSEditPoly=l.Handler.extend({initialize:function(t){this.latlngs=[t._latlngs],t._holes&&(this.latlngs=this.latlngs.concat(t._holes)),this._poly=t,this._poly.on("revert-edited",this._updateLatLngs,this)},_defaultShape:function(){return l.Polyline._flat?l.Polyline._flat(this._poly._latlngs)?this._poly._latlngs:this._poly._latlngs[0]:this._poly._latlngs},_eachVertexHandler:function(t){for(var e=0;e<this._verticesHandlers.length;e++)t(this._verticesHandlers[e])},addHooks:function(){this._initHandlers(),this._eachVertexHandler(function(t){t.addHooks()})},removeHooks:function(){this._eachVertexHandler(function(t){t.removeHooks()})},updateMarkers:function(){this._eachVertexHandler(function(t){t.updateMarkers()})},_initHandlers:function(){this._verticesHandlers=[];for(var t=0;t<this.latlngs.length;t++)this._verticesHandlers.push(new h(this._poly,this.latlngs[t],this._poly.options.poly))},_updateLatLngs:function(t){this.latlngs=[t.layer._latlngs],t.layer._holes&&(this.latlngs=this.latlngs.concat(t.layer._holes))},getShape:function(){return this._poly},toGeometry:function(){var t=[],e=void 0,n=this._poly.nodeType;return n==s.JSNodeType.LINE_MARKER?(this._poly._latlngs.forEach(function(n){e&&e.lng==n.lng&&e.lat==n.lat||(t.push({x:n.lng,y:n.lat}),e=n)}),t.length>1?new a.default(t):null):n==s.JSNodeType.POLYGON_MARKER?(this._poly._latlngs[0].forEach(function(n){e&&e.lng==n.lng&&e.lat==n.lat||(t.push({x:n.lng,y:n.lat}),e=n)}),t.length>1?new u.default(t):null):void 0}}),e.JSEditPolyVerticesEdit=l.Handler.extend({options:{icon:new l.DivIcon({iconSize:new l.Point(8,8),className:"jsmap2d-div-icon jsmap2d-editing-icon"}),touchIcon:new l.DivIcon({iconSize:new l.Point(20,20),className:"jsmap2d-div-icon jsmap2d-editing-icon jsmap2d-touch-icon"}),drawError:{color:"#b00b00",timeout:1e3}},initialize:function(t,e,n){l.Browser.touch&&(this.options.icon=this.options.touchIcon),this._poly=t,n&&n.drawError&&(n.drawError=l.Util.extend({},this.options.drawError,n.drawError)),this._latlngs=e,l.setOptions(this,n)},_defaultShape:function(){return l.Polyline._flat?l.Polyline._flat(this._latlngs)?this._latlngs:this._latlngs[0]:this._latlngs},addHooks:function(){var t=this._poly,e=t._path;t instanceof l.Polygon||(t.options.fill=!1,t.options.editing&&(t.options.editing.fill=!1)),e&&t.options.editing&&t.options.editing.className&&(t.options.original.className&&t.options.original.className.split(" ").forEach(function(t){l.DomUtil.removeClass(e,t)}),t.options.editing.className.split(" ").forEach(function(t){l.DomUtil.addClass(e,t)})),t.setStyle(t.options.editing),this._poly._map&&(this._map=this._poly._map,this._markerGroup||this._initMarkers(),this._poly._map.addLayer(this._markerGroup))},removeHooks:function(){var t=this._poly,e=t._path;e&&t.options.editing&&t.options.editing.className&&(t.options.editing.className.split(" ").forEach(function(t){l.DomUtil.removeClass(e,t)}),t.options.original.className&&t.options.original.className.split(" ").forEach(function(t){l.DomUtil.addClass(e,t)})),t.setStyle(t.options.original),t._map&&(t._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers)},updateMarkers:function(){this._markerGroup.clearLayers(),this._initMarkers()},_initMarkers:function(){this._markerGroup||(this._markerGroup=new l.LayerGroup),this._markers=[];var t,e=this._defaultShape(),n=void 0,r=void 0,i=void 0;for(n=0,t=e.length;n<t;n++)(i=this._createMarker(e[n],n)).on("click",this._onMarkerClick,this),i.on("contextmenu",this._onContextMenu,this),this._markers.push(i);var o=void 0,a=void 0;for(n=0,r=t-1;n<t;r=n++)(0!==n||l.Polygon&&this._poly instanceof l.Polygon)&&(o=this._markers[r],a=this._markers[n],this._createMiddleMarker(o,a),this._updatePrevNext(o,a))},_createMarker:function(t,e){var n=new i.JSTouchMarker(t,{draggable:!0,icon:this.options.icon});return n._origLatLng=t,n._index=e,n.on("dragstart",this._onMarkerDragStart,this).on("drag",this._onMarkerDrag,this).on("dragend",this._fireEdit,this).on("touchmove",this._onTouchMove,this).on("touchend",this._fireEdit,this).on("MSPointerMove",this._onTouchMove,this).on("MSPointerUp",this._fireEdit,this),this._markerGroup.addLayer(n),n},_onMarkerDragStart:function(){this._poly.fire("editstart")},_spliceLatLngs:function(){var t=this._defaultShape(),e=[].splice.apply(t,arguments);return this._poly._convertLatLngs(t,!0),this._poly.redraw(),e},_removeMarker:function(t){var e=t._index;this._markerGroup.removeLayer(t),this._markers.splice(e,1),this._spliceLatLngs(e,1),this._updateIndexes(e,-1),t.off("dragstart",this._onMarkerDragStart,this).off("drag",this._onMarkerDrag,this).off("dragend",this._fireEdit,this).off("touchmove",this._onMarkerDrag,this).off("touchend",this._fireEdit,this).off("click",this._onMarkerClick,this).off("MSPointerMove",this._onTouchMove,this).off("MSPointerUp",this._fireEdit,this)},_fireEdit:function(){this._poly.edited=!0,this._poly.fire("edit"),this._poly._map.fire(r.JSDrawEvent.EDITVERTEX,{layers:this._markerGroup,poly:this._poly})},_onMarkerDrag:function(t){var e=t.target,n=this._poly,i=o.default.cloneLatLng(e._origLatLng);if(l.extend(e._origLatLng,e._latlng),n.options.poly&&!n.options.poly.allowIntersection&&n.intersects()){l.extend(e._origLatLng,i),e.setLatLng(i);var a=n.options.color;n.setStyle({color:this.options.drawError.color}),setTimeout(function(){n.setStyle({color:a})},1e3)}e._middleLeft&&e._middleLeft.setLatLng(this._getMiddleLatLng(e._prev,e)),e._middleRight&&e._middleRight.setLatLng(this._getMiddleLatLng(e,e._next)),this._poly._bounds._southWest=l.latLng(1/0,1/0),this._poly._bounds._northEast=l.latLng(-1/0,-1/0);var s=this._poly.getLatLngs();this._poly._convertLatLngs(s,!0),this._poly.redraw(),this._poly.fire("editdrag"),this._poly._map.fire(r.JSDrawEvent.EDITMOVE)},_onMarkerClick:function(t){var e=l.Polygon&&this._poly instanceof l.Polygon?4:3,n=t.target;this._defaultShape().length<e||(this._removeMarker(n),this._updatePrevNext(n._prev,n._next),n._middleLeft&&this._markerGroup.removeLayer(n._middleLeft),n._middleRight&&this._markerGroup.removeLayer(n._middleRight),n._prev&&n._next?this._createMiddleMarker(n._prev,n._next):n._prev?n._next||(n._prev._middleRight=null):n._next._middleLeft=null,this._fireEdit())},_onContextMenu:function(t){var e=t.target;this._poly._map.fire(r.JSDrawEvent.MARKERCONTEXT,{marker:e,layers:this._markerGroup,poly:this._poly}),l.DomEvent.stopPropagation},_onTouchMove:function(t){var e=this._map.mouseEventToLayerPoint(t.originalEvent.touches[0]),n=this._map.layerPointToLatLng(e),r=t.target;l.extend(r._origLatLng,n),r._middleLeft&&r._middleLeft.setLatLng(this._getMiddleLatLng(r._prev,r)),r._middleRight&&r._middleRight.setLatLng(this._getMiddleLatLng(r,r._next)),this._poly.redraw(),this.updateMarkers()},_updateIndexes:function(t,e){this._markerGroup.eachLayer(function(n){n._index>t&&(n._index+=e)})},_createMiddleMarker:function(t,e){var n=this._getMiddleLatLng(t,e),r=this._createMarker(n),i=void 0,o=void 0,a=void 0;r.setOpacity(.6),t._middleRight=e._middleLeft=r,o=function(){r.off("touchmove",o,this);var a=e._index;r._index=a,r.off("click",i,this).on("click",this._onMarkerClick,this),n.lat=r.getLatLng().lat,n.lng=r.getLatLng().lng,this._spliceLatLngs(a,0,n),this._markers.splice(a,0,r),r.setOpacity(1),this._updateIndexes(a,1),e._index++,this._updatePrevNext(t,r),this._updatePrevNext(r,e),this._poly.fire("editstart")},a=function(){r.off("dragstart",o,this),r.off("dragend",a,this),r.off("touchmove",o,this),this._createMiddleMarker(t,r),this._createMiddleMarker(r,e)},i=function(){o.call(this),a.call(this),this._fireEdit()},r.on("click",i,this).on("dragstart",o,this).on("dragend",a,this).on("touchmove",o,this),this._markerGroup.addLayer(r)},_updatePrevNext:function(t,e){t&&(t._next=e),e&&(e._prev=t)},_getMiddleLatLng:function(t,e){var n=this._poly._map,r=n.project(t.getLatLng()),i=n.project(e.getLatLng());return n.unproject(r._add(i)._divideBy(2))}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var i=window.L,o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"cloneLatLngs",value:function(t){for(var e=[],n=0,r=t.length;n<r;n++)Array.isArray(t[n])?e.push(this.cloneLatLngs(t[n])):e.push(this.cloneLatLng(t[n]));return e}},{key:"cloneLatLng",value:function(t){return i.latLng(t.lat,t.lng)}}]),t}();e.default=o}]);