angular-pdok-geocoder
Version:
AngularJS Geocoding PDOK Geocoder
6 lines • 225 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.angularPdokGeocoder=e():t.angularPdokGeocoder=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=6)}([function(t,e){!function(n,r){"object"==typeof t&&"object"==typeof t.exports&&(e=t.exports=r()),"object"==typeof window&&(n.Terraformer=r())}(this,function(){function t(t){return"[object Array]"===Object.prototype.toString.call(t)}function e(){var t=Array.prototype.slice.apply(arguments);void 0!==typeof console&&console.warn&&console.warn.apply(console,t)}function n(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function r(t){if(t.type)switch(t.type){case"Point":return[t.coordinates[0],t.coordinates[1],t.coordinates[0],t.coordinates[1]];case"MultiPoint":case"LineString":return s(t.coordinates);case"MultiLineString":case"Polygon":return i(t.coordinates);case"MultiPolygon":return o(t.coordinates);case"Feature":return t.geometry?r(t.geometry):null;case"FeatureCollection":return a(t);case"GeometryCollection":return u(t);default:throw new Error("Unknown type: "+t.type)}return null}function i(t){for(var e=null,n=null,r=null,i=null,o=0;o<t.length;o++)for(var s=t[o],a=0;a<s.length;a++){var u=s[a],c=u[0],l=u[1];null===e?e=c:c<e&&(e=c),null===n?n=c:c>n&&(n=c),null===r?r=l:l<r&&(r=l),null===i?i=l:l>i&&(i=l)}return[e,r,n,i]}function o(t){for(var e=null,n=null,r=null,i=null,o=0;o<t.length;o++)for(var s=t[o],a=0;a<s.length;a++)for(var u=s[a],c=0;c<u.length;c++){var l=u[c],f=l[0],h=l[1];null===e?e=f:f<e&&(e=f),null===n?n=f:f>n&&(n=f),null===r?r=h:h<r&&(r=h),null===i?i=h:h>i&&(i=h)}return[e,r,n,i]}function s(t){for(var e=null,n=null,r=null,i=null,o=0;o<t.length;o++){var s=t[o],a=s[0],u=s[1];null===e?e=a:a<e&&(e=a),null===n?n=a:a>n&&(n=a),null===r?r=u:u<r&&(r=u),null===i?i=u:u>i&&(i=u)}return[e,r,n,i]}function a(t){for(var e,n=[],i=t.features.length-1;i>=0;i--)e=r(t.features[i].geometry),n.push([e[0],e[1]]),n.push([e[2],e[3]]);return s(n)}function u(t){for(var e,n=[],i=t.geometries.length-1;i>=0;i--)e=r(t.geometries[i]),n.push([e[0],e[1]]),n.push([e[2],e[3]]);return s(n)}function c(t){var e=r(t);return{x:e[0],y:e[1],w:Math.abs(e[0]-e[2]),h:Math.abs(e[1]-e[3])}}function l(t){return t*W}function f(t){return t*J}function h(t,e){for(var n=0;n<t.length;n++)"number"==typeof t[n][0]&&(t[n]=e(t[n])),"object"==typeof t[n]&&(t[n]=h(t[n],e));return t}function p(t){var e=t[0],n=t[1];return[l(e/G)-360*Math.floor((l(e/G)+180)/360),l(Math.PI/2-2*Math.atan(Math.exp(-1*n/G)))]}function d(t){var e=t[0],n=Math.max(Math.min(t[1],89.99999),-89.99999);return[f(e)*G,G/2*Math.log((1+Math.sin(f(n)))/(1-Math.sin(f(n))))]}function $(t,e,n){if("Point"===t.type)t.coordinates=e(t.coordinates);else if("Feature"===t.type)t.geometry=$(t.geometry,e,!0);else if("FeatureCollection"===t.type)for(var r=0;r<t.features.length;r++)t.features[r]=$(t.features[r],e,!0);else if("GeometryCollection"===t.type)for(var i=0;i<t.geometries.length;i++)t.geometries[i]=$(t.geometries[i],e,!0);else t.coordinates=h(t.coordinates,e);return n||e===d&&(t.crs=Z),e===p&&delete t.crs,t}function g(t){return $(t,d)}function v(t){return $(t,p)}function m(t,e){return t<e?-1:t>e?1:0}function y(t,e){return t[0]>e[0]?-1:t[0]<e[0]?1:t[1]>e[1]?-1:t[1]<e[1]?1:0}function b(t,e,n){return m((e[0]-t[0])*(n[1]-t[1])-(n[0]-t[0])*(e[1]-t[1]),0)}function w(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function x(t,e){var n=e;for(var r in t){var i=b(e,n,t[r]);(-1===i||0===i&&w(e,t[r])>w(e,n))&&(n=t[r])}return n}function S(t){if(0===t.length)return[];if(1===t.length)return t;for(var e=[t.sort(y)[0]],n=0;n<e.length;n++){var r=x(t,e[n]);r!==e[0]&&e.push(r)}return e}function C(t,e){for(var n=!1,r=-1,i=t.length,o=i-1;++r<i;o=r)(t[r][1]<=e[1]&&e[1]<t[o][1]||t[o][1]<=e[1]&&e[1]<t[r][1])&&e[0]<(t[o][0]-t[r][0])*(e[1]-t[r][1])/(t[o][1]-t[r][1])+t[r][0]&&(n=!n);return n}function E(t,e){if(t&&t.length){if(1===t.length)return C(t[0],e);if(C(t[0],e)){for(var n=1;n<t.length;n++)if(C(t[n],e))return!1;return!0}return!1}return!1}function k(t,e,n,r){var i=(r[0]-n[0])*(t[1]-n[1])-(r[1]-n[1])*(t[0]-n[0]),o=(e[0]-t[0])*(t[1]-n[1])-(e[1]-t[1])*(t[0]-n[0]),s=(r[1]-n[1])*(e[0]-t[0])-(r[0]-n[0])*(e[1]-t[1]);if(0!==s){var a=i/s,u=o/s;if(0<=a&&a<=1&&0<=u&&u<=1)return!0}return!1}function A(t){return!isNaN(parseFloat(t))&&isFinite(t)}function O(t,e){if(A(t[0][0])){if(A(e[0][0])){for(var n=0;n<t.length-1;n++)for(var r=0;r<e.length-1;r++)if(k(t[n],t[n+1],e[r],e[r+1]))return!0}else for(var i=0;i<e.length;i++)if(O(t,e[i]))return!0}else for(var o=0;o<t.length;o++)if(O(t[o],e))return!0;return!1}function M(t){for(var e=[],n=0;n<t.length;n++){var r=t[n].slice();!1===T(r[0],r[r.length-1])&&r.push(r[0]),e.push(r)}return e}function T(t,e){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function P(t,e){if(t.length!==e.length)return!1;for(var n=t.slice().sort(y),r=e.slice().sort(y),i=0;i<n.length;i++){if(n[i].length!==r[i].length)return!1;for(var o=0;o<n.length;o++)if(n[i][o]!==r[i][o])return!1}return!0}function N(t){if(t)switch(t.type){case"Point":return new I(t);case"MultiPoint":return new V(t);case"LineString":return new L(t);case"MultiLineString":return new _(t);case"Polygon":return new R(t);case"MultiPolygon":return new U(t);case"Feature":return new D(t);case"FeatureCollection":return new F(t);case"GeometryCollection":return new B(t);default:throw new Error("Unknown type: "+t.type)}}function I(e){var r=Array.prototype.slice.call(arguments);if(e&&"Point"===e.type&&e.coordinates)n(this,e);else if(e&&t(e))this.coordinates=e;else{if(!(r.length>=2))throw"Terraformer: invalid input for Terraformer.Point";this.coordinates=r}this.type="Point"}function V(e){if(e&&"MultiPoint"===e.type&&e.coordinates)n(this,e);else{if(!t(e))throw"Terraformer: invalid input for Terraformer.MultiPoint";this.coordinates=e}this.type="MultiPoint"}function L(e){if(e&&"LineString"===e.type&&e.coordinates)n(this,e);else{if(!t(e))throw"Terraformer: invalid input for Terraformer.LineString";this.coordinates=e}this.type="LineString"}function _(e){if(e&&"MultiLineString"===e.type&&e.coordinates)n(this,e);else{if(!t(e))throw"Terraformer: invalid input for Terraformer.MultiLineString";this.coordinates=e}this.type="MultiLineString"}function R(e){if(e&&"Polygon"===e.type&&e.coordinates)n(this,e);else{if(!t(e))throw"Terraformer: invalid input for Terraformer.Polygon";this.coordinates=e}this.type="Polygon"}function U(e){if(e&&"MultiPolygon"===e.type&&e.coordinates)n(this,e);else{if(!t(e))throw"Terraformer: invalid input for Terraformer.MultiPolygon";this.coordinates=e}this.type="MultiPolygon"}function D(t){if(t&&"Feature"===t.type)n(this,t);else{if(!(t&&t.type&&t.coordinates))throw"Terraformer: invalid input for Terraformer.Feature";this.geometry=t}this.type="Feature"}function F(e){if(e&&"FeatureCollection"===e.type&&e.features)n(this,e);else{if(!t(e))throw"Terraformer: invalid input for Terraformer.FeatureCollection";this.features=e}this.type="FeatureCollection"}function B(e){if(e&&"GeometryCollection"===e.type&&e.geometries)n(this,e);else if(t(e))this.geometries=e;else{if(!e.coordinates||!e.type)throw"Terraformer: invalid input for Terraformer.GeometryCollection";this.type="GeometryCollection",this.geometries=[e]}this.type="GeometryCollection"}function q(t,e,n){for(var r=d(t),i=n||64,o={type:"Polygon",coordinates:[[]]},s=1;s<=i;s++){var a=s*(360/i)*Math.PI/180;o.coordinates[0].push([r[0]+e*Math.cos(a),r[1]+e*Math.sin(a)])}return o.coordinates=M(o.coordinates),v(o)}function H(t,e,r){var i=r||64,o=e||250;if(!t||t.length<2||!o||!i)throw new Error("Terraformer: missing parameter for Terraformer.Circle");n(this,new D({type:"Feature",geometry:q(t,o,i),properties:{radius:o,center:t,steps:i}}))}var z={},G=6378137,W=57.29577951308232,J=.017453292519943,Z={type:"link",properties:{href:"http://spatialreference.org/ref/sr-org/6928/ogcwkt/",type:"ogcwkt"}},Y={type:"link",properties:{href:"http://spatialreference.org/ref/epsg/4326/ogcwkt/",type:"ogcwkt"}},K=["length"];return N.prototype.toMercator=function(){return g(this)},N.prototype.toGeographic=function(){return v(this)},N.prototype.envelope=function(){return c(this)},N.prototype.bbox=function(){return r(this)},N.prototype.convexHull=function(){var t,e,n=[];if("Point"===this.type)return null;if("LineString"===this.type||"MultiPoint"===this.type){if(!(this.coordinates&&this.coordinates.length>=3))return null;n=this.coordinates}else if("Polygon"===this.type||"MultiLineString"===this.type){if(!(this.coordinates&&this.coordinates.length>0))return null;for(t=0;t<this.coordinates.length;t++)n=n.concat(this.coordinates[t]);if(n.length<3)return null}else if("MultiPolygon"===this.type){if(!(this.coordinates&&this.coordinates.length>0))return null;for(t=0;t<this.coordinates.length;t++)for(e=0;e<this.coordinates[t].length;e++)n=n.concat(this.coordinates[t][e]);if(n.length<3)return null}else if("Feature"===this.type)return new N(this.geometry).convexHull();return new R({type:"Polygon",coordinates:M([S(n)])})},N.prototype.toJSON=function(){var t={};for(var e in this)this.hasOwnProperty(e)&&-1===K.indexOf(e)&&(t[e]=this[e]);return t.bbox=r(this),t},N.prototype.contains=function(t){return new N(t).within(this)},N.prototype.within=function(t){var e,n,r;if("Feature"===t.type&&(t=t.geometry),"Point"===t.type&&"Point"===this.type)return T(this.coordinates,t.coordinates);if("MultiLineString"===t.type&&"Point"===this.type)for(n=0;n<t.coordinates.length;n++){var i={type:"LineString",coordinates:t.coordinates[n]};if(this.within(i))return!0}if(("LineString"===t.type||"MultiPoint"===t.type)&&"Point"===this.type)for(n=0;n<t.coordinates.length;n++){if(this.coordinates.length!==t.coordinates[n].length)return!1;if(T(this.coordinates,t.coordinates[n]))return!0}if("Polygon"===t.type){if("Polygon"===this.type){if(t.coordinates.length===this.coordinates.length)for(n=0;n<this.coordinates.length;n++)if(P(this.coordinates[n],t.coordinates[n]))return!0;return!(!this.coordinates.length||!E(t.coordinates,this.coordinates[0][0]))&&!O(M(this.coordinates),M(t.coordinates))}if("Point"===this.type)return E(t.coordinates,this.coordinates);if("LineString"===this.type||"MultiPoint"===this.type){if(!this.coordinates||0===this.coordinates.length)return!1;for(n=0;n<this.coordinates.length;n++)if(!1===E(t.coordinates,this.coordinates[n]))return!1;return!0}if("MultiLineString"===this.type){for(n=0;n<this.coordinates.length;n++)if(!1===new L(this.coordinates[n]).within(t))return r++,!1;return!0}if("MultiPolygon"===this.type){for(n=0;n<this.coordinates.length;n++)if(!1===new N({type:"Polygon",coordinates:this.coordinates[n]}).within(t))return!1;return!0}}if("MultiPolygon"===t.type){if("Point"===this.type){if(t.coordinates.length)for(n=0;n<t.coordinates.length;n++)if(e=t.coordinates[n],E(e,this.coordinates)&&!1===O([this.coordinates],t.coordinates))return!0;return!1}if("Polygon"===this.type){for(n=0;n<this.coordinates.length;n++)if(t.coordinates[n].length===this.coordinates.length)for(j=0;j<this.coordinates.length;j++)if(P(this.coordinates[j],t.coordinates[n][j]))return!0;if(!1===O(this.coordinates,t.coordinates)&&t.coordinates.length){for(n=0;n<t.coordinates.length;n++)r=!1!==E(e=t.coordinates[n],this.coordinates[0][0]);return r}}else if("LineString"===this.type||"MultiPoint"===this.type)for(n=0;n<t.coordinates.length;n++){var o={type:"Polygon",coordinates:t.coordinates[n]};return!!this.within(o)}else{if("MultiLineString"===this.type){for(n=0;n<this.coordinates.length;n++)if(!1===new L(this.coordinates[n]).within(t))return!1;return!0}if("MultiPolygon"===this.type){for(n=0;n<t.coordinates.length;n++){var s={type:"Polygon",coordinates:t.coordinates[n]};if(!1===this.within(s))return!1}return!0}}}return!1},N.prototype.intersects=function(t){"Feature"===t.type&&(t=t.geometry);var n=new N(t);return!(!this.within(t)&&!n.within(this))||("Point"!==this.type&&"MultiPoint"!==this.type&&"Point"!==t.type&&"MultiPoint"!==t.type?O(this.coordinates,t.coordinates):"Feature"===this.type?new N(this.geometry).intersects(t):(e("Type "+this.type+" to "+t.type+" intersection is not supported by intersects"),!1))},I.prototype=new N,I.prototype.constructor=I,V.prototype=new N,V.prototype.constructor=V,V.prototype.forEach=function(t){for(var e=0;e<this.coordinates.length;e++)t.apply(this,[this.coordinates[e],e,this.coordinates]);return this},V.prototype.addPoint=function(t){return this.coordinates.push(t),this},V.prototype.insertPoint=function(t,e){return this.coordinates.splice(e,0,t),this},V.prototype.removePoint=function(t){return"number"==typeof t?this.coordinates.splice(t,1):this.coordinates.splice(this.coordinates.indexOf(t),1),this},V.prototype.get=function(t){return new I(this.coordinates[t])},L.prototype=new N,L.prototype.constructor=L,L.prototype.addVertex=function(t){return this.coordinates.push(t),this},L.prototype.insertVertex=function(t,e){return this.coordinates.splice(e,0,t),this},L.prototype.removeVertex=function(t){return this.coordinates.splice(t,1),this},_.prototype=new N,_.prototype.constructor=_,_.prototype.forEach=function(t){for(var e=0;e<this.coordinates.length;e++)t.apply(this,[this.coordinates[e],e,this.coordinates])},_.prototype.get=function(t){return new L(this.coordinates[t])},R.prototype=new N,R.prototype.constructor=R,R.prototype.addVertex=function(t){return this.insertVertex(t,this.coordinates[0].length-1),this},R.prototype.insertVertex=function(t,e){return this.coordinates[0].splice(e,0,t),this},R.prototype.removeVertex=function(t){return this.coordinates[0].splice(t,1),this},R.prototype.close=function(){this.coordinates=M(this.coordinates)},R.prototype.hasHoles=function(){return this.coordinates.length>1},R.prototype.holes=function(){if(holes=[],this.hasHoles())for(var t=1;t<this.coordinates.length;t++)holes.push(new R([this.coordinates[t]]));return holes},U.prototype=new N,U.prototype.constructor=U,U.prototype.forEach=function(t){for(var e=0;e<this.coordinates.length;e++)t.apply(this,[this.coordinates[e],e,this.coordinates])},U.prototype.get=function(t){return new R(this.coordinates[t])},U.prototype.close=function(){var t=[];return this.forEach(function(e){t.push(M(e))}),this.coordinates=t,this},D.prototype=new N,D.prototype.constructor=D,F.prototype=new N,F.prototype.constructor=F,F.prototype.forEach=function(t){for(var e=0;e<this.features.length;e++)t.apply(this,[this.features[e],e,this.features])},F.prototype.get=function(t){var e;return this.forEach(function(n){n.id===t&&(e=n)}),new D(e)},B.prototype=new N,B.prototype.constructor=B,B.prototype.forEach=function(t){for(var e=0;e<this.geometries.length;e++)t.apply(this,[this.geometries[e],e,this.geometries])},B.prototype.get=function(t){return new N(this.geometries[t])},H.prototype=new N,H.prototype.constructor=H,H.prototype.recalculate=function(){return this.geometry=q(this.properties.center,this.properties.radius,this.properties.steps),this},H.prototype.center=function(t){return t&&(this.properties.center=t,this.recalculate()),this.properties.center},H.prototype.radius=function(t){return t&&(this.properties.radius=t,this.recalculate()),this.properties.radius},H.prototype.steps=function(t){return t&&(this.properties.steps=t,this.recalculate()),this.properties.steps},H.prototype.toJSON=function(){return N.prototype.toJSON.call(this)},z.Primitive=N,z.Point=I,z.MultiPoint=V,z.LineString=L,z.MultiLineString=_,z.Polygon=R,z.MultiPolygon=U,z.Feature=D,z.FeatureCollection=F,z.GeometryCollection=B,z.Circle=H,z.toMercator=g,z.toGeographic=v,z.Tools={},z.Tools.positionToMercator=d,z.Tools.positionToGeographic=p,z.Tools.applyConverter=$,z.Tools.toMercator=g,z.Tools.toGeographic=v,z.Tools.createCircle=q,z.Tools.calculateBounds=r,z.Tools.calculateEnvelope=c,z.Tools.coordinatesContainPoint=C,z.Tools.polygonContainsPoint=E,z.Tools.arraysIntersectArrays=O,z.Tools.coordinatesContainPoint=C,z.Tools.coordinatesEqual=P,z.Tools.convexHull=S,z.Tools.isConvex=function(t){for(var e,n=0;n<t.length-3;n++){var r=t[n],i=t[n+1],o=t[n+2],s=[i[0]-r[0],i[1]-r[1]],a=o[0]*s[1]-o[1]*s[0]+s[0]*r[1]-s[1]*r[0];if(0===n)e=a<0;else if(e&&a>0||!e&&a<0)return!1}return!0},z.MercatorCRS=Z,z.GeographicCRS=Y,z})},function(t,e,n){var r=n(7);"string"==typeof r&&(r=[[t.i,r,""]]);var i={};i.transform=void 0;n(3)(r,i);r.locals&&(t.exports=r.locals)},function(t,e){function n(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var o=r(i),s=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[n].concat(s).concat([o]).join("\n")}return[n].join("\n")}function r(t){return"/*# "+("sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t)))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=d[r.id];if(i){i.refs++;for(s=0;s<i.parts.length;s++)i.parts[s](r.parts[s]);for(;s<r.parts.length;s++)i.parts.push(l(r.parts[s],e))}else{for(var o=[],s=0;s<r.parts.length;s++)o.push(l(r.parts[s],e));d[r.id]={id:r.id,refs:1,parts:o}}}}function i(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],s=e.base?o[0]+e.base:o[0],a={css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}function o(t,e){var n=g(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=y[y.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),y.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function s(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=y.indexOf(t);e>=0&&y.splice(e,1)}function a(t){var e=document.createElement("style");return t.attrs.type="text/css",c(e,t.attrs),o(t,e),e}function u(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",c(e,t.attrs),o(t,e),e}function c(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function l(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var c=m++;n=v||(v=a(e)),r=f.bind(null,n,c,!1),i=f.bind(null,n,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(e),r=p.bind(null,n,e),i=function(){s(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(e),r=h.bind(null,n),i=function(){s(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function f(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=w(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function h(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e,n){var r=n.css,i=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(r=b(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var s=new Blob([r],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}var d={},$=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),g=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),v=null,m=0,y=[],b=n(8);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=$()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=i(t,e);return r(n,e),function(t){for(var o=[],s=0;s<n.length;s++){var a=n[s];(u=d[a.id]).refs--,o.push(u)}t&&r(i(t,e),e);for(s=0;s<o.length;s++){var u=o[s];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete d[u.id]}}}};var w=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){var r=n(9);"string"==typeof r&&(r=[[t.i,r,""]]);var i={};i.transform=void 0;n(3)(r,i);r.locals&&(t.exports=r.locals)},function(t,e,n){!function(r,i){if("object"==typeof t&&"object"==typeof t.exports)e=t.exports=i(n(0));else if("object"==typeof navigator){if(!r.Terraformer)throw new Error("Terraformer.WKT requires the core Terraformer library. http://github.com/esri/terraformer");r.Terraformer.WKT=i(r.Terraformer)}}(this,function(t){function e(t){this.data=[t],this.type="PointArray"}function n(t){this.data=t,this.type="Ring"}function r(t){this.data=[t],this.type="RingList"}function i(t){this.data=[t],this.type="PolygonList"}function o(t){for(var e=[],n="",r=0;r<t.length;r++)e.push(t[r].join(" "));return n+="("+e.join(", ")+")"}function s(t){var e="POINT ";return void 0===t.coordinates||0===t.coordinates.length?e+="EMPTY":(3===t.coordinates.length?t.properties&&!0===t.properties.m?e+="M ":e+="Z ":4===t.coordinates.length&&(e+="ZM "),e+="("+t.coordinates.join(" ")+")")}function a(t){var e="LINESTRING ";return void 0===t.coordinates||0===t.coordinates.length||0===t.coordinates[0].length?e+="EMPTY":(3===t.coordinates[0].length?t.properties&&!0===t.properties.m?e+="M ":e+="Z ":4===t.coordinates[0].length&&(e+="ZM "),e+=o(t.coordinates))}function u(t){var e="POLYGON ";if(void 0===t.coordinates||0===t.coordinates.length||0===t.coordinates[0].length)return e+="EMPTY";3===t.coordinates[0][0].length?t.properties&&!0===t.properties.m?e+="M ":e+="Z ":4===t.coordinates[0][0].length&&(e+="ZM "),e+="(";for(var n=[],r=0;r<t.coordinates.length;r++)n.push(o(t.coordinates[r]));return e+=n.join(", "),e+=")"}function c(t){var e="MULTIPOINT ";return void 0===t.coordinates||0===t.coordinates.length||0===t.coordinates[0].length?e+="EMPTY":(3===t.coordinates[0].length?t.properties&&!0===t.properties.m?e+="M ":e+="Z ":4===t.coordinates[0].length&&(e+="ZM "),e+=o(t.coordinates))}function l(t){var e="MULTILINESTRING ";if(void 0===t.coordinates||0===t.coordinates.length||0===t.coordinates[0].length)return e+="EMPTY";3===t.coordinates[0][0].length?t.properties&&!0===t.properties.m?e+="M ":e+="Z ":4===t.coordinates[0][0].length&&(e+="ZM "),e+="(";for(var n=[],r=0;r<t.coordinates.length;r++)n.push(o(t.coordinates[r]));return e+=n.join(", "),e+=")"}function f(t){var e="MULTIPOLYGON ";if(void 0===t.coordinates||0===t.coordinates.length||0===t.coordinates[0].length)return e+="EMPTY";3===t.coordinates[0][0][0].length?t.properties&&!0===t.properties.m?e+="M ":e+="Z ":4===t.coordinates[0][0][0].length&&(e+="ZM "),e+="(";for(var n=[],r=0;r<t.coordinates.length;r++){for(var i="(",s=[],a=0;a<t.coordinates[r].length;a++)s.push(o(t.coordinates[r][a]));i+=s.join(", "),i+=")",n.push(i)}return e+=n.join(", "),e+=")"}var h={},p=function(){function t(){this.yy={}}var o={trace:function(){},yy:{},symbols_:{error:2,expressions:3,point:4,EOF:5,linestring:6,polygon:7,multipoint:8,multilinestring:9,multipolygon:10,coordinate:11,DOUBLE_TOK:12,ptarray:13,COMMA:14,ring_list:15,ring:16,"(":17,")":18,POINT:19,Z:20,ZM:21,M:22,EMPTY:23,point_untagged:24,polygon_list:25,polygon_untagged:26,point_list:27,LINESTRING:28,POLYGON:29,MULTIPOINT:30,MULTILINESTRING:31,MULTIPOLYGON:32,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",12:"DOUBLE_TOK",14:"COMMA",17:"(",18:")",19:"POINT",20:"Z",21:"ZM",22:"M",23:"EMPTY",28:"LINESTRING",29:"POLYGON",30:"MULTIPOINT",31:"MULTILINESTRING",32:"MULTIPOLYGON"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[3,2],[3,2],[11,2],[11,3],[11,4],[13,3],[13,1],[15,3],[15,1],[16,3],[4,4],[4,5],[4,5],[4,5],[4,2],[24,1],[24,3],[25,3],[25,1],[26,3],[27,3],[27,1],[6,4],[6,5],[6,5],[6,5],[6,2],[7,4],[7,5],[7,5],[7,5],[7,2],[8,4],[8,5],[8,5],[8,5],[8,2],[9,4],[9,5],[9,5],[9,5],[9,2],[10,4],[10,5],[10,5],[10,5],[10,2]],performAction:function(t,o,s,a,u,c,l){var f=c.length-1;switch(u){case 1:case 2:case 3:case 4:case 5:case 6:return c[f-1];case 7:this.$=new e([Number(c[f-1]),Number(c[f])]);break;case 8:this.$=new e([Number(c[f-2]),Number(c[f-1]),Number(c[f])]);break;case 9:this.$=new e([Number(c[f-3]),Number(c[f-2]),Number(c[f-1]),Number(c[f])]);break;case 10:this.$=c[f-2].addPoint(c[f]);break;case 11:this.$=c[f];break;case 12:this.$=c[f-2].addRing(c[f]);break;case 13:this.$=new r(c[f]);break;case 14:this.$=new n(c[f-1]);break;case 15:this.$={type:"Point",coordinates:c[f-1].data[0]};break;case 16:this.$={type:"Point",coordinates:c[f-1].data[0],properties:{z:!0}};break;case 17:this.$={type:"Point",coordinates:c[f-1].data[0],properties:{z:!0,m:!0}};break;case 18:this.$={type:"Point",coordinates:c[f-1].data[0],properties:{m:!0}};break;case 19:this.$={type:"Point",coordinates:[]};break;case 20:this.$=c[f];break;case 21:this.$=c[f-1];break;case 22:this.$=c[f-2].addPolygon(c[f]);break;case 23:this.$=new i(c[f]);break;case 24:this.$=c[f-1];break;case 25:this.$=c[f-2].addPoint(c[f]);break;case 26:this.$=c[f];break;case 27:this.$={type:"LineString",coordinates:c[f-1].data};break;case 28:this.$={type:"LineString",coordinates:c[f-1].data,properties:{z:!0}};break;case 29:this.$={type:"LineString",coordinates:c[f-1].data,properties:{m:!0}};break;case 30:this.$={type:"LineString",coordinates:c[f-1].data,properties:{z:!0,m:!0}};break;case 31:this.$={type:"LineString",coordinates:[]};break;case 32:this.$={type:"Polygon",coordinates:c[f-1].toJSON()};break;case 33:this.$={type:"Polygon",coordinates:c[f-1].toJSON(),properties:{z:!0}};break;case 34:this.$={type:"Polygon",coordinates:c[f-1].toJSON(),properties:{m:!0}};break;case 35:this.$={type:"Polygon",coordinates:c[f-1].toJSON(),properties:{z:!0,m:!0}};break;case 36:this.$={type:"Polygon",coordinates:[]};break;case 37:this.$={type:"MultiPoint",coordinates:c[f-1].data};break;case 38:this.$={type:"MultiPoint",coordinates:c[f-1].data,properties:{z:!0}};break;case 39:this.$={type:"MultiPoint",coordinates:c[f-1].data,properties:{m:!0}};break;case 40:this.$={type:"MultiPoint",coordinates:c[f-1].data,properties:{z:!0,m:!0}};break;case 41:this.$={type:"MultiPoint",coordinates:[]};break;case 42:this.$={type:"MultiLineString",coordinates:c[f-1].toJSON()};break;case 43:this.$={type:"MultiLineString",coordinates:c[f-1].toJSON(),properties:{z:!0}};break;case 44:this.$={type:"MultiLineString",coordinates:c[f-1].toJSON(),properties:{m:!0}};break;case 45:this.$={type:"MultiLineString",coordinates:c[f-1].toJSON(),properties:{z:!0,m:!0}};break;case 46:this.$={type:"MultiLineString",coordinates:[]};break;case 47:this.$={type:"MultiPolygon",coordinates:c[f-1].toJSON()};break;case 48:this.$={type:"MultiPolygon",coordinates:c[f-1].toJSON(),properties:{z:!0}};break;case 49:this.$={type:"MultiPolygon",coordinates:c[f-1].toJSON(),properties:{m:!0}};break;case 50:this.$={type:"MultiPolygon",coordinates:c[f-1].toJSON(),properties:{z:!0,m:!0}};break;case 51:this.$={type:"MultiPolygon",coordinates:[]}}},table:[{3:1,4:2,6:3,7:4,8:5,9:6,10:7,19:[1,8],28:[1,9],29:[1,10],30:[1,11],31:[1,12],32:[1,13]},{1:[3]},{5:[1,14]},{5:[1,15]},{5:[1,16]},{5:[1,17]},{5:[1,18]},{5:[1,19]},{17:[1,20],20:[1,21],21:[1,22],22:[1,23],23:[1,24]},{17:[1,25],20:[1,26],21:[1,28],22:[1,27],23:[1,29]},{17:[1,30],20:[1,31],21:[1,33],22:[1,32],23:[1,34]},{17:[1,35],20:[1,36],21:[1,38],22:[1,37],23:[1,39]},{17:[1,40],20:[1,41],21:[1,43],22:[1,42],23:[1,44]},{17:[1,45],20:[1,46],21:[1,48],22:[1,47],23:[1,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{11:51,12:[1,52],13:50},{17:[1,53]},{17:[1,54]},{17:[1,55]},{5:[2,19]},{11:58,12:[1,52],17:[1,59],24:57,27:56},{17:[1,60]},{17:[1,61]},{17:[1,62]},{5:[2,31]},{15:63,16:64,17:[1,65]},{17:[1,66]},{17:[1,67]},{17:[1,68]},{5:[2,36]},{11:58,12:[1,52],17:[1,59],24:57,27:69},{17:[1,70]},{17:[1,71]},{17:[1,72]},{5:[2,41]},{15:73,16:64,17:[1,65]},{17:[1,74]},{17:[1,75]},{17:[1,76]},{5:[2,46]},{17:[1,79],25:77,26:78},{17:[1,80]},{17:[1,81]},{17:[1,82]},{5:[2,51]},{14:[1,84],18:[1,83]},{14:[2,11],18:[2,11]},{12:[1,85]},{11:51,12:[1,52],13:86},{11:51,12:[1,52],13:87},{11:51,12:[1,52],13:88},{14:[1,90],18:[1,89]},{14:[2,26],18:[2,26]},{14:[2,20],18:[2,20]},{11:91,12:[1,52]},{11:58,12:[1,52],17:[1,59],24:57,27:92},{11:58,12:[1,52],17:[1,59],24:57,27:93},{11:58,12:[1,52],17:[1,59],24:57,27:94},{14:[1,96],18:[1,95]},{14:[2,13],18:[2,13]},{11:51,12:[1,52],13:97},{15:98,16:64,17:[1,65]},{15:99,16:64,17:[1,65]},{15:100,16:64,17:[1,65]},{14:[1,90],18:[1,101]},{11:58,12:[1,52],17:[1,59],24:57,27:102},{11:58,12:[1,52],17:[1,59],24:57,27:103},{11:58,12:[1,52],17:[1,59],24:57,27:104},{14:[1,96],18:[1,105]},{15:106,16:64,17:[1,65]},{15:107,16:64,17:[1,65]},{15:108,16:64,17:[1,65]},{14:[1,110],18:[1,109]},{14:[2,23],18:[2,23]},{15:111,16:64,17:[1,65]},{17:[1,79],25:112,26:78},{17:[1,79],25:113,26:78},{17:[1,79],25:114,26:78},{5:[2,15]},{11:115,12:[1,52]},{12:[1,116],14:[2,7],18:[2,7]},{14:[1,84],18:[1,117]},{14:[1,84],18:[1,118]},{14:[1,84],18:[1,119]},{5:[2,27]},{11:58,12:[1,52],17:[1,59],24:120},{18:[1,121]},{14:[1,90],18:[1,122]},{14:[1,90],18:[1,123]},{14:[1,90],18:[1,124]},{5:[2,32]},{16:125,17:[1,65]},{14:[1,84],18:[1,126]},{14:[1,96],18:[1,127]},{14:[1,96],18:[1,128]},{14:[1,96],18:[1,129]},{5:[2,37]},{14:[1,90],18:[1,130]},{14:[1,90],18:[1,131]},{14:[1,90],18:[1,132]},{5:[2,42]},{14:[1,96],18:[1,133]},{14:[1,96],18:[1,134]},{14:[1,96],18:[1,135]},{5:[2,47]},{17:[1,79],26:136},{14:[1,96],18:[1,137]},{14:[1,110],18:[1,138]},{14:[1,110],18:[1,139]},{14:[1,110],18:[1,140]},{14:[2,10],18:[2,10]},{12:[1,141],14:[2,8],18:[2,8]},{5:[2,16]},{5:[2,17]},{5:[2,18]},{14:[2,25],18:[2,25]},{14:[2,21],18:[2,21]},{5:[2,28]},{5:[2,29]},{5:[2,30]},{14:[2,12],18:[2,12]},{14:[2,14],18:[2,14]},{5:[2,33]},{5:[2,34]},{5:[2,35]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,43]},{5:[2,44]},{5:[2,45]},{14:[2,22],18:[2,22]},{14:[2,24],18:[2,24]},{5:[2,48]},{5:[2,49]},{5:[2,50]},{14:[2,9],18:[2,9]}],defaultActions:{14:[2,1],15:[2,2],16:[2,3],17:[2,4],18:[2,5],19:[2,6],24:[2,19],29:[2,31],34:[2,36],39:[2,41],44:[2,46],49:[2,51],83:[2,15],89:[2,27],95:[2,32],101:[2,37],105:[2,42],109:[2,47],117:[2,16],118:[2,17],119:[2,18],122:[2,28],123:[2,29],124:[2,30],127:[2,33],128:[2,34],129:[2,35],130:[2,38],131:[2,39],132:[2,40],133:[2,43],134:[2,44],135:[2,45],138:[2,48],139:[2,49],140:[2,50]},parseError:function(t,e){throw new Error(t)},parse:function(t){var e=this,n=[0],r=[null],i=[],o=this.table,s="",a=0,u=0,c=0;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var l=this.lexer.yylloc;i.push(l);var f=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var h,p,d,$,g,v,m,y,b,w={};;){if(d=n[n.length-1],this.defaultActions[d]?$=this.defaultActions[d]:(null!==h&&void 0!==h||(h=function(){var t;return"number"!=typeof(t=e.lexer.lex()||1)&&(t=e.symbols_[t]||t),t}()),$=o[d]&&o[d][h]),void 0===$||!$.length||!$[0]){var x="";if(!c){b=[];for(v in o[d])this.terminals_[v]&&v>2&&b.push("'"+this.terminals_[v]+"'");x=this.lexer.showPosition?"Parse error on line "+(a+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+b.join(", ")+", got '"+(this.terminals_[h]||h)+"'":"Parse error on line "+(a+1)+": Unexpected "+(1==h?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(x,{text:this.lexer.match,token:this.terminals_[h]||h,line:this.lexer.yylineno,loc:l,expected:b})}}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+d+", token: "+h);switch($[0]){case 1:n.push(h),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push($[1]),h=null,p?(h=p,p=null):(u=this.lexer.yyleng,s=this.lexer.yytext,a=this.lexer.yylineno,l=this.lexer.yylloc,c>0&&c--);break;case 2:if(m=this.productions_[$[1]][1],w.$=r[r.length-m],w._$={first_line:i[i.length-(m||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(m||1)].first_column,last_column:i[i.length-1].last_column},f&&(w._$.range=[i[i.length-(m||1)].range[0],i[i.length-1].range[1]]),void 0!==(g=this.performAction.call(w,s,u,a,this.yy,$[1],r,i)))return g;m&&(n=n.slice(0,-1*m*2),r=r.slice(0,-1*m),i=i.slice(0,-1*m)),n.push(this.productions_[$[1]][0]),r.push(w.$),i.push(w._$),y=o[n[n.length-2]][n[n.length-1]],n.push(y);break;case 3:return!0}}return!0}},s=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e-1),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this},more:function(){return this._more=!0,this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,r,i;this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),s=0;s<o.length&&(!(n=this._input.match(this.rules[o[s]]))||e&&!(n[0].length>e[0].length)||(e=n,r=s,this.options.flex));s++);return e?((i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],t=this.performAction.call(this,this.yy,this,o[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return void 0!==t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)}};return t.options={},t.performAction=function(t,e,n,r){switch(n){case 0:break;case 1:return 17;case 2:return 18;case 3:return 12;case 4:return 19;case 5:return 28;case 6:return 29;case 7:return 30;case 8:return 31;case 9:return 32;case 10:return 14;case 11:return 23;case 12:return 22;case 13:return 20;case 14:return 21;case 15:return 5;case 16:return"INVALID"}},t.rules=[/^(?:\s+)/,/^(?:\()/,/^(?:\))/,/^(?:-?[0-9]+(\.[0-9]+)?([eE][\-\+]?[0-9]+)?)/,/^(?:POINT\b)/,/^(?:LINESTRING\b)/,/^(?:POLYGON\b)/,/^(?:MULTIPOINT\b)/,/^(?:MULTILINESTRING\b)/,/^(?:MULTIPOLYGON\b)/,/^(?:,)/,/^(?:EMPTY\b)/,/^(?:M\b)/,/^(?:Z\b)/,/^(?:ZM\b)/,/^(?:$)/,/^(?:.)/],t.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],inclusive:!0}},t}();return o.lexer=s,t.prototype=o,o.Parser=t,new t}();return e.prototype.addPoint=function(t){return"PointArray"===t.type?this.data=this.data.concat(t.data):this.data.push(t),this},e.prototype.toJSON=function(){return this.data},n.prototype.toJSON=function(){for(var t=[],e=0;e<this.data.data.length;e++)t.push(this.data.data[e]);return t},r.prototype.addRing=function(t){return this.data.push(t),this},r.prototype.toJSON=function(){for(var t=[],e=0;e<this.data.length;e++)t.push(this.data[e].toJSON());return t.length,t},i.prototype.addPolygon=function(t){return this.data.push(t),this},i.prototype.toJSON=function(){for(var t=[],e=0;e<this.data.length;e++)t=t.concat([this.data[e].toJSON()]);return t},h.parser=p,h.Parser=p.Parser,h.parse=function(e){var n;try{n=p.parse(e)}catch(t){throw Error("Unable to parse: "+t)}return t.Primitive(n)},h.convert=function(t){switch(t.type){case"Point":return s(t);case"LineString":return a(t);case"Polygon":return u(t);case"MultiPoint":return c(t);case"MultiLineString":return l(t);case"MultiPolygon":return f(t);default:throw Error("Unknown Type: "+t.type)}},h})},function(t,e,n){"use strict";n(1),n(4),"undefined"==typeof angular&&n(10);var r=n(12).default,i=n(16).default;angular.module("pdokgeocoder",[]).factory("GeocodeService",["$http",function(t){return new i(t)}]).component("pdokgeocoder",r).name},function(t,e,n){(t.exports=n(2)(void 0)).push([t.i,"body, html, .view {\r\n width: 100%;\r\n height: 100%;\r\n padding: 0;\r\n margin: 0;\r\n}\r\n",""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i))return t;var o;return o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")"})}},function(t,e,n){(t.exports=n(2)(void 0)).push([t.i,".searchbar-container{\r\n position: relative;\r\n width:100%;\r\n}\r\n\r\n.searchbar-body {\r\n height: 40px;\r\n z-index: 1000;\r\n background-color: #fff;\r\n border-style: solid;\r\n border-width: 1px;\r\n border-color: #d3d3d3;\r\n border-left: none;\r\n -moz-border-radius: 4px;\r\n -webkit-border-radius: 4px;\r\n border-radius: 4px;\r\n -moz-box-shadow: 2px 2px 2px -2px gray;\r\n -webkit-box-shadow: 2px 2px 2px -2px grey;\r\n box-shadow: 2px 2px 2px -2px grey;\r\n display: -webkit-box;\r\n display: -webkit-flex;\r\n display: flex;\r\n width:100%;\r\n}\r\n\r\n.searchbar-body-input {\r\n height: 100%;\r\n padding-left: 15px;\r\n}\r\n\r\n.searchbar-body-input input {\r\n width: 100%;\r\n height: 37px;\r\n border: none;\r\n overflow: hidden;\r\n outline: 0;\r\n min-width: 183px;\r\n}\r\n\r\n#search-button, #clear-button{\r\n position: absolute;\r\n right: 40px;\r\n top: 9px;\r\n outline: 0;\r\n cursor: pointer;\r\n}\r\n\r\n#clear-button{\r\n right:15px;\r\n}\r\n\r\n.searchbar-resultlist {\r\n max-height: 400px;\r\n width: 100%;\r\n margin-right: 80px;\r\n overflow-y: auto;\r\n z-index: 1000;\r\n background-color: #fff;\r\n border-width: 0px;\r\n -moz-border-radius: 4px;\r\n -webkit-border-radius: 4px;\r\n border-radius: 4px;\r\n -moz-box-shadow: 2px 2px 2px -2px gray;\r\n -webkit-box-shadow: 2px 2px 2px -2px gray;\r\n box-shadow: 2px 2px 2px -2px gray;\r\n}\r\n\r\n.searchbar-resultlist-results {\r\n width: 100%;\r\n cursor: pointer;\r\n}\r\n\r\n.searchbar-resultlist-results p {\r\n margin: 0;\r\n font-size: 12px;\r\n padding: 10px;\r\n border-bottom: 1px solid #efeaea;\r\n -webkit-transition: background-color 100ms linear;\r\n -ms-transition: background-color 100ms linear;\r\n transition: background-color 100ms linear;\r\n background: #fff;\r\n}\r\n\r\n.searchbar-resultlist-results:hover p {\r\n border-bottom: 1px solid #ddd;\r\n background: #f7f7f7;\r\n}\r\n\r\n.searchbar-resultlist-results.show-more {\r\n color: #B5B5B5;\r\n text-align: center;\r\n}\r\n\r\n.searchbar-resultlist-results:last-of-type {\r\n border-bottom:none;\r\n margin-bottom:0;\r\n}\r\n\r\n.searchbar-resultlist-ul {\r\n list-style-type: none;\r\n padding-left: 5px;\r\n margin: 0;\r\n}\r\n",""])},function(t,e,n){n(11),t.exports=angular},function(t,e){/**
* @license AngularJS v1.6.6
* (c) 2010-2017 Google, Inc. http://angularjs.org
* License: MIT
*/
!function(t){"use strict";function e(t){if(!w(t))return Vr;b(t.objectMaxDepth)&&(Vr.objectMaxDepth=n(t.objectMaxDepth)?t.objectMaxDepth:NaN)}function n(t){return C(t)&&t>0}function r(t,e){return e=e||Error,function(){var n,r,i=arguments[0],o=arguments[1],s="["+(t?t+":":"")+i+"] ",a=W(arguments,2).map(function(t){return St(t,Vr.objectMaxDepth)});for(s+=o.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1);return e<a.length?a[e]:t}),s+="\nhttp://errors.angularjs.org/1.6.6/"+(t?t+"/":"")+i,r=0,n="?";r<a.length;r++,n="&")s+=n+"p"+r+"="+encodeURIComponent(a[r]);return new e(s)}}function i(t){if(null==t||M(t))return!1;if(Qr(t)||S(t)||Fr&&t instanceof Fr)return!0;var e="length"in Object(t)&&t.length;return C(e)&&(e>=0&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function o(t,e,n){var r,s;if(t)if(A(t))for(r in t)"prototype"!==r&&"length"!==r&&"name"!==r&&t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else if(Qr(t)||i(t)){var a="object"!=typeof t;for(r=0,s=t.length;r<s;r++)(a||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==o)t.forEach(e,n,t);else if(x(t))for(r in t)e.call(n,t[r],r,t);else if("function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else for(r in t)_r.call(t,r)&&e.call(n,t[r],r,t);return t}function s(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function a(t){return function(e,n){t(n,e)}}function u(){return++Kr}function c(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function l(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var s=e[i];if(w(s)||A(s))for(var a=Object.keys(s),u=0,f=a.length;u<f;u++){var h=a[u],p=s[h];n&&w(p)?E(p)?t[h]=new Date(p.valueOf()):O(p)?t[h]=new RegExp(p):p.nodeName?t[h]=p.cloneNode(!0):R(p)?t[h]=p.clone():(w(t[h])||(t[h]=Qr(p)?[]:{}),l(t[h],[p],!0)):t[h]=p}}return c(t,r),t}function f(t){return l(t,Hr.call(arguments,1),!1)}function h(t){return l(t,Hr.call(arguments,1),!0)}function p(t){return parseInt(t,10)}function d(t,e){return f(Object.create(t),e)}function $(){}function g(t){return t}function v(t){return function(){return t}}function m(t){return A(t.toString)&&t.toString!==Wr}function y(t){return void 0===t}function b(t){return void 0!==t}function w(t){return null!==t&&"object"==typeof t}function x(t){return null!==t&&"object"==typeof t&&!Jr(t)}function S(t){return"string"==typeof t}function C(t){return"number"==typeof t}function E(t){return"[object Date]"===Wr.call(t)}function k(t){switch(Wr.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function A(t){return"function"==typeof t}function O(t){return"[object RegExp]"===Wr.call(t)}function M(t){return t&&t.window===t}function T(t){return t&&t.$evalAsync&&t.$watch}function P(t){return"[object File]"===Wr.call(t)}function N(t){return"[object FormData]"===Wr.call(t)}function I(t){return"[object Blob]"===Wr.call(t)}function V(t){return"boolean"==typeof t}function j(t){return t&&A(t.then)}function L(t){return t&&C(t.length)&&ti.test(Wr.call(t))}function _(t){return"[object ArrayBuffer]"===Wr.call(t)}function R(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function U(t){var e,n={},r=t.split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}function D(t){return Rr(t.nodeName||t[0]&&t[0].nodeName)}function F(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function B(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function q(t,e,r){function i(t,e,n){if(--n<0)return"...";var r,i=e.$$hashKey;if(Qr(t))for(var o=0,a=t.length;o<a;o++)e.push(s(t[o],n));else if(x(t))for(r in t)e[r]=s(t[r],n);else if(t&&"function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&(e[r]=s(t[r],n));else for(r in t)_r.call(t,r)&&(e[r]=s(t[r],n));return c(e,i),e}function s(t,e){if(!w(t))return t;var n=u.indexOf(t);if(-1!==n)return l[n];if(M(t)||T(t))throw Zr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,o=a(t);return void 0===o&&(o=Qr(t)?[]:Object.create(Jr(t)),r=!0),u.push(t),l.push(o),r?i(t,o,e):o}function a(t){switch(Wr.call(t)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new t.constructor(s(t.buffer),t.byteOffset,t.length);case"[object ArrayBuffer]":if(!t.slice){var e=new ArrayBuffer(t.byteLength);return new Uint8Array(e).set(new Uint8Array(t)),e}return t.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":var n=new RegExp(t.source,t.toString().match(/[^/]*$/)[0]);return n.lastIndex=t.lastIndex,n;case"[object Blob]":return new t.constructor([t],{type:t.type})}if(A(t.cloneNode))return t.cloneNode(!0)}var u=[],l=[];if(r=n(r)?r:NaN,e){if(L(e)||_(e))throw Zr("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw Zr("cpi","Can't copy! Source and destination are identical.");return Qr(e)?e.length=0:o(e,function(t,n){"$$hashKey"!==n&&delete e[n]}),u.push(t),l.push(e),i(t,e,r)}return s(t,r)}function H(t,e){return t===e||t!==t&&e!==e}function z(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var n,r,i,o=typeof t;if(o===typeof e&&"object"===o){if(!Qr(t)){if(E(t))return!!E(e)&&H(t.getTime(),e.getTime());if(O(t))return!!O(e)&&t.toString()===e.toString();if(T(t)||T(e)||M(t)||M(e)||Qr(e)||E(e)||O(e))return!1;i=mt();for(r in t)if("$"!==r.charAt(0)&&!A(t[r])){if(!z(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&b(e[r])&&!A(e[r]))return!1;return!0}if(!Qr(e))return!1;if((n=t.length)===e.length){for(r=0;r<n;r++)if(!z(t[r],e[r]))return!1;return!0}}return!1}function G(t,e,n){return t.concat(Hr.call(e,n))}function W(t,e){return Hr.call(t,e||0)}function J(t,e){var n=arguments.length>2?W(arguments,2):[];return!A(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,G(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function Z(e,n){var r=n;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?r=void 0:M(n)?r="$WINDOW":n&&t.document===n?r="$DOCUMENT":T(n)&&(r="$SCOPE"),r}function Y(t,e){if(!y(t))return C(e)||(e=e?2:null),JSON.stringify(t,Z,e)}function K(t){return S(t)?JSON.parse(t):t}function X(t,e){t=t.replace(oi,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return Xr(n)?e:n}function Q(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}function tt(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return Q(t,n*(X(e,r)-r))}function et(t){t=Fr(t).clone().empty();var e=Fr("<div>").append(t).html();try{return t[0].nodeType===fi?Rr(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(t,e){return"<"+Rr(e)})}catch(t){return Rr(e)}}function nt(t){try{return decodeURIComponent(t)}catch(t){}}function rt(t){var e={};return o((t||"").split("&"),function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),-1!==(n=t.indexOf("="))&&(r=t.substring(0,n),i=t.substring(n+1)),b(r=nt(r))&&(i=!b(i)||nt(i),_r.call(e,r)?Qr(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function it(t){var e=[];return o(t,function(t,n){Qr(t)?o(t,function(t){e.push(st(n,!0)+(!0===t?"":"="+st(t,!0)))}):e.push(st(n,!0)+(!0===t?"":"="+st(t,!0)))}),e.length?e.join("&"):""}function ot(t){return st(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function st(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function at(t,e){var n,r,i=si.length;for(r=0;r<i;++r)if(n=si[r]+e,S(n=t.getA