Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

ol-mapbox-style

Package Overview
Dependencies
Maintainers
2
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ol-mapbox-style - npm Package Compare versions

Comparing version 3.0.0-beta.5 to 3.0.0-beta.6

2

dist/olms.js

@@ -1,2 +0,2 @@

olms=function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=42)}([function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new i.default(t)};var n,r=o(27),i=(n=r)&&n.__esModule?n:{default:n}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inherits=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},t.getUid=function(e){return e.ol_uid||(e.ol_uid=++n)};t.VERSION="v4.6.4";var n=0},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t,o,n,d,p,y){if(!n){n=[];for(var m=78271.51696402048;n.length<21;m/=2)n.push(m)}if("string"==typeof t&&(t=JSON.parse(t)),8!=t.version)throw new Error("glStyle version 8 required.");var k=void 0,C=void 0;if(p){var P=new Image;P.crossOrigin="anonymous",P.onload=function(){k=P,C=[P.width,P.height],e.changed()},P.src=p}var T=document.createElement("CANVAS").getContext("2d"),R={};function L(e,t,o){var n=o+","+t+","+e,r=R[n];if(!r){T.font=t;for(var i=T.measureText("M").width*o,a=e.split(" "),l="",s=[],u=0,c=a.length;u<c;++u){var f=a[u];T.measureText(l+f).width<=i?l+=(l?" ":"")+f:(l&&s.push(l),l=f)}l&&s.push(l),R[n]=r=s.join("\n")}return r}for(var B=(0,f.default)(t.layers),N={},I=[],D=void 0,G=0,j=B.length;G<j;++G){var z=B[G],E=z.id;if("string"==typeof o&&z.source==o||-1!==o.indexOf(E)){var V=z["source-layer"];D||(D=z.source);var Z=N[V];Z||(Z=N[V]=[]),Z.push({layer:z,index:G}),I.push(E)}delete b[E],delete O[E]}var q=new a.default,K=new i.default,J={},H=[],U=function(e,t){var o=e.getProperties(),f=N[o.layer];if(f){var p=n.indexOf(t);-1==p&&(p=(0,h.getZoomForResolution)(t,n));for(var y=S[e.getGeometry().getType()],m={properties:o,type:y},b=-1,O=0,P=f.length;O<P;++O){var T=f[O],R=T.layer,B=R.id,I=R.layout||F,D=R.paint||F;if(!("none"===I.visibility||"minzoom"in R&&p<R.minzoom||"maxzoom"in R&&p>=R.maxzoom)){var G=R.filter;if(!G||M(B,G,m)){var j=void 0,z=void 0,E=void 0,V=void 0,Z=void 0,U=T.index;3==y&&!("fill-pattern"in D)&&"fill-color"in D&&(z=x(B,D,"fill-opacity",p,o),(j=A(x(B,D,"fill-color",p,o),z))&&((Z=H[++b])&&Z.getFill()&&!Z.getStroke()&&!Z.getText()||(Z=H[b]=new r.default({fill:new i.default})),Z.getFill().setColor(j),Z.setZIndex(U)),"fill-outline-color"in D&&(V=A(x(B,D,"fill-outline-color",p,o),z)),V&&((Z=H[++b])&&Z.getStroke()&&!Z.getFill()&&!Z.getText()||(Z=H[b]=new r.default({stroke:new a.default})),(E=Z.getStroke()).setLineCap(v["line-cap"]),E.setLineJoin(v["line-join"]),E.setMiterLimit(v["line-miter-limit"]),E.setColor(V),E.setWidth(1),E.setLineDash(null),Z.setZIndex(U))),1!=y&&function(){j=!("line-pattern"in D)&&"line-color"in D?A(x(B,D,"line-color",p,o),x(B,D,"line-opacity",p,o)):void 0;var e=x(B,D,"line-width",p,o);j&&e>0&&((Z=H[++b])&&Z.getStroke()&&!Z.getFill()&&!Z.getText()||(Z=H[b]=new r.default({stroke:new a.default})),(E=Z.getStroke()).setLineCap(x(B,I,"line-cap",p,o)),E.setLineJoin(x(B,I,"line-join",p,o)),E.setMiterLimit(x(B,I,"line-miter-limit",p,o)),E.setColor(j),E.setWidth(e),E.setLineDash(D["line-dasharray"]?x(B,D,"line-dasharray",p,o).map(function(t){return t*e}):null),Z.setZIndex(U))}();var Y=!1,W=null,X=void 0,Q=void 0,$=void 0;if((1==y||2==y)&&"icon-image"in I){var ee=x(B,I,"icon-image",p,o);if(ee){X=_(ee,o);var te=void 0;if(k&&d&&d[X]){if(2==y){var oe=e.getGeometry();if(oe.getFlatMidpoint){var ne=oe.getExtent();Math.sqrt(Math.max(Math.pow((ne[2]-ne[0])/t,2),Math.pow((ne[3]-ne[1])/t,2)))>150&&(te=new c.default(oe.getFlatMidpoint()))}}if(2!==y||te){(Z=H[++b])&&Z.getImage()&&!Z.getFill()&&!Z.getStroke()||(Z=H[b]=new r.default),Z.setGeometry(te);var re=x(B,I,"icon-size",p,o),ie=void 0!==D["icon-color"]?x(B,D,"icon-color",p,o):null,ae=X+"."+re;if(null!==ie&&(ae+="."+ie),!(Q=J[ae])){var le=d[X];if(null!==ie){j=A(ie,1);var se=document.createElement("canvas");se.width=le.width,se.height=le.height;var ue=se.getContext("2d");ue.drawImage(k,le.x,le.y,le.width,le.height,0,0,le.width,le.height);for(var ce=ue.getImageData(0,0,se.width,se.height),fe=0,de=ce.data.length;fe<de;fe+=4)ce.data[fe]=j[0],ce.data[fe+1]=j[1],ce.data[fe+2]=j[2];ue.putImageData(ce,0,0),Q=J[ae]=new l.default({img:se,imgSize:[se.width,se.height],scale:re/le.pixelRatio})}else Q=J[ae]=new l.default({img:k,imgSize:C,size:[le.width,le.height],offset:[le.x,le.y],scale:re/le.pixelRatio})}Q.setRotation((0,h.deg2rad)(x(B,I,"icon-rotate",p,o))),Q.setOpacity(x(B,D,"icon-opacity",p,o)),Z.setImage(Q),W=Z.getText(),Z.setText(void 0),Z.setZIndex(99999-U),Y=!0,$=!1}else $=!0}}}if(1==y&&"circle-radius"in D){(Z=H[++b])&&Z.getImage()&&!Z.getFill()&&!Z.getStroke()||(Z=H[b]=new r.default);var pe=x(B,D,"circle-radius",p,o),ge=x(B,D,"circle-stroke-color",p,o),he=x(B,D,"circle-color",p,o),ye=x(B,D,"circle-opacity",p,o),me=x(B,D,"circle-stroke-width",p,o);(Q=J[pe+"."+ge+"."+he+"."+ye+"."+me])||(Q=new u.default({radius:pe,stroke:0===me?void 0:new a.default({width:me,color:A(ge,ye)}),fill:new i.default({color:A(he,ye)})})),Z.setImage(Q),W=Z.getText(),Z.setText(void 0),Z.setGeometry(void 0),Z.setZIndex(99999-U),Y=!0}var ve=void 0;if("text-field"in I)ve=_(x(B,I,"text-field",p,o),o);if(ve&&!$){Y||((Z=H[++b])&&Z.getText()&&!Z.getFill()&&!Z.getStroke()||(Z=H[b]=new r.default),Z.setImage(void 0),Z.setGeometry(void 0)),Z.getText()||Z.setText(W||new s.default),W=Z.getText();var Se=x(B,I,"text-size",p,o),be=(0,g.default)(w(x(B,I,"text-font",p,o)),Se),xe=I["text-transform"];"uppercase"==xe?ve=ve.toUpperCase():"lowercase"==xe&&(ve=ve.toLowerCase());var ke=2==y?ve:L(ve,be,x(B,I,"text-max-width",p,o));W.setText(ke),W.setFont(be),W.setRotation((0,h.deg2rad)(x(B,I,"text-rotate",p,o)));var we=x(B,I,"text-anchor",p,o),Oe=Y||1==y?"point":x(B,I,"symbol-placement",p,o);if(W.setPlacement(Oe),"point"==Oe){var Me="center";-1!==we.indexOf("left")?Me="left":-1!==we.indexOf("right")&&(Me="right"),W.setTextAlign(Me)}else W.setTextAlign();var Ce="middle";0==we.indexOf("bottom")?Ce="bottom":0==we.indexOf("top")&&(Ce="top"),W.setTextBaseline(Ce);var Ae=x(B,I,"text-offset",p,o);W.setOffsetX(Ae[0]*Se),W.setOffsetY(Ae[1]*Se),z=x(B,D,"text-opacity",p,o),K.setColor(A(x(B,D,"text-color",p,o),z)),W.setFill(K);var Pe=A(x(B,D,"text-halo-color",p,o),z);Pe?(q.setColor(Pe),q.setWidth(x(B,D,"text-halo-width",p,o)),W.setStroke(q)):W.setStroke(void 0),Z.setZIndex(99999-U)}}}}return b>-1?(H.length=b+1,H):void 0}};return e.setStyle(U),e.set("mapbox-source",D),e.set("mapbox-layers",I),U};var r=y(o(34)),i=y(o(33)),a=y(o(32)),l=y(o(31)),s=y(o(30)),u=y(o(24)),c=y(o(23)),f=y(o(22)),d=y(o(4)),p=y(o(20)),g=y(o(3)),h=o(19);function y(e){return e&&e.__esModule?e:{default:e}}var m={"line-miter-limit":"interpolated","fill-opacity":"interpolated","line-opacity":"interpolated","line-width":"interpolated","text-halo-width":"interpolated","text-max-width":"interpolated","text-offset":"interpolated","text-opacity":"interpolated","text-rotate":"interpolated","text-size":"interpolated","icon-opacity":"interpolated","icon-rotate":"interpolated","icon-size":"interpolated","icon-color":"interpolated","circle-radius":"interpolated","circle-opacity":"interpolated","circle-stroke-width":"interpolated","circle-color":"interpolated","circle-stroke-color":"interpolated","text-halo-color":"interpolated","text-color":"interpolated","line-color":"interpolated","fill-outline-color":"interpolated","fill-color":"interpolated","icon-image":"piecewise-constant","line-cap":"piecewise-constant","line-join":"piecewise-constant","line-dasharray":"piecewise-constant","symbol-placement":"piecewise-constant","text-anchor":"piecewise-constant","text-field":"piecewise-constant","text-font":"piecewise-constant"},v={"fill-opacity":1,"line-cap":"butt","line-join":"miter","line-miter-limit":2,"line-opacity":1,"line-width":1,"symbol-placement":"point","text-anchor":"center","text-color":"#000000","text-font":["Open Sans Regular","Arial Unicode MS Regular"],"text-halo-color":"rgba(0, 0, 0, 0)","text-halo-width":0,"text-max-width":10,"text-offset":[0,0],"text-opacity":1,"text-rotate":0,"text-size":16,"icon-opacity":1,"icon-rotate":0,"icon-size":1,"circle-color":"#000000","circle-stroke-color":"#000000","circle-opacity":1,"circle-stroke-width":0},S={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},b={};function x(e,t,o,r,i){b[e]||(b[e]={});var a=b[e];if(!a[o]){var l=t[o];void 0===l&&(l=v[o]),a[o]=(0,d.default)(l,{function:m[o],type:-1!==o.indexOf("color")?"color":"object"==(void 0===l?"undefined":n(l))&&l.stops&&"number"==typeof l.stops[0][0]?"number":void 0})}return a[o](r,i)}var k={};function w(e,t){if(k[e])return k[e];if(t){for(var o=0,n=e.length;o<n;++o){var r=e[o];if(-1!=t.indexOf(r)){k[e]=r;break}}k[e]||(k[e]=e[e.length-1])}else k[e]=e[0];return k[e]}var O={};function M(e,t,o){return e in O||(O[e]=(0,p.default)(t)),O[e](o)}var C={};function A(e,t){if(e&&void 0!==t){var o=C[e];o||(C[e]=o={color:[255*e[0]/e[3],255*e[1]/e[3],255*e[2]/e[3],e[3]],opacity:e[3]}),(e=o.color)[3]=o.opacity*t,0===e[3]&&(e=void 0)}return e}var P=/^([^]*)\{(.*)\}([^]*)$/;function _(e,t){var o=void 0;do{if(o=e.match(P)){var n=t[o[2]]||"";e=o[1]+n+o[3]}}while(o);return e}var F={}},function(e,t,o){"use strict";var n={thin:100,hairline:100,"ultra-light":100,"extra-light":100,light:200,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,heavy:800,black:800,"extra-bold":800,"ultra-black":900,"extra-black":900,"ultra-bold":900,"heavy-black":900,fat:900,poster:900},r={};e.exports=function(e,t){var o=r[e];if(!o){var i=e.split(" "),a=i[i.length-1].toLowerCase(),l="normal",s="normal";for(var u in"normal"!=a&&"italic"!=a&&"oblique"!=a||(s=a,i.pop(),a=i[i.length-1].toLowerCase()),n)if(a==u||a==u.replace("-","")||a==u.replace("-"," ")){l=n[u],i.pop();break}"number"==typeof a&&(l=a);var c=i.join(" ").replace("Klokantech Noto Sans","Noto Sans");-1!==c.indexOf(" ")&&(c='"'+c+'"'),o=r[e]=[s,l,c]}return o[0]+" "+o[1]+" "+t+"px "+o[2]}},function(e,t,o){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=o(40),i=o(39),a=o(37),l=o(36),s=o(35);function u(e){return e}function c(e,t,o){return void 0!==e?e:void 0!==t?t:void 0!==o?o:void 0}function f(e,t,o,r,i){return c((void 0===o?"undefined":n(o))===i?r[o]:void 0,e.default,t.default)}function d(e,t,o){if("number"!==l(o))return c(e.default,t.default);var n=e.stops.length;if(1===n)return e.stops[0][1];if(o<=e.stops[0][0])return e.stops[0][1];if(o>=e.stops[n-1][0])return e.stops[n-1][1];var r=h(e.stops,o);return e.stops[r][1]}function p(e,t,o){var n=void 0!==e.base?e.base:1;if("number"!==l(o))return c(e.default,t.default);var r=e.stops.length;if(1===r)return e.stops[0][1];if(o<=e.stops[0][0])return e.stops[0][1];if(o>=e.stops[r-1][0])return e.stops[r-1][1];var i=h(e.stops,o),a=m(o,n,e.stops[i][0],e.stops[i+1][0]),f=e.stops[i][1],d=e.stops[i+1][1],p=s[t.type]||u;return"function"==typeof f?function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];var n=f.apply(void 0,t),r=d.apply(void 0,t);if(void 0!==n&&void 0!==r)return p(n,r,a)}:p(f,d,a)}function g(e,t,o){return"color"===t.type?o=i(o):l(o)===t.type||"enum"===t.type&&t.values[o]||(o=void 0),c(o,e.default,t.default)}function h(e,t){for(var o=0,n=e.length-1,r=0,i=void 0,a=void 0;o<=n;){if(i=e[r=Math.floor((o+n)/2)][0],a=e[r+1][0],t===i||t>i&&t<a)return r;i<t?o=r+1:i>t&&(n=r-1)}return Math.max(r-1,0)}function y(e){return"object"===(void 0===e?"undefined":n(e))&&(e.stops||"identity"===e.type)}function m(e,t,o,n){var r=n-o,i=e-o;return 0===r?0:1===t?i/r:(Math.pow(t,i)-1)/(Math.pow(t,r)-1)}e.exports=function e(t,o){var l="color"===o.type,s=void 0;if(y(t)){var h=t.stops&&"object"===n(t.stops[0][0]),m=h||void 0!==t.property,v=h||!m,S=t.type||("interpolated"===o.function?"exponential":"interval");l&&((t=a({},t)).stops&&(t.stops=t.stops.map(function(e){return[e[0],i(e[1])]})),t.default?t.default=i(t.default):t.default=i(o.default));var b=void 0,x=void 0,k=void 0;if("exponential"===S)b=p;else if("interval"===S)b=d;else if("categorical"===S){b=f,x=Object.create(null);var w=!0,O=!1,M=void 0;try{for(var C,A=t.stops[Symbol.iterator]();!(w=(C=A.next()).done);w=!0){var P=C.value;x[P[0]]=P[1]}}catch(e){O=!0,M=e}finally{try{!w&&A.return&&A.return()}finally{if(O)throw M}}k=n(t.stops[0][0])}else{if("identity"!==S)throw new Error('Unknown function type "'+S+'"');b=g}var _=void 0;if(t.colorSpace&&"rgb"!==t.colorSpace){if(!r[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);var F=r[t.colorSpace];t=JSON.parse(JSON.stringify(t));for(var T=0;T<t.stops.length;T++)t.stops[T]=[t.stops[T][0],F.forward(t.stops[T][1])];_=F.reverse}else _=u;if(h){for(var R={},L=[],B=0;B<t.stops.length;B++){var N=t.stops[B],I=N[0].zoom;void 0===R[I]&&(R[I]={zoom:I,type:t.type,property:t.property,default:t.default,stops:[]},L.push(I)),R[I].stops.push([N[0].value,N[1]])}var D=[],G=!0,j=!1,z=void 0;try{for(var E,V=L[Symbol.iterator]();!(G=(E=V.next()).done);G=!0){var Z=E.value;D.push([R[Z].zoom,e(R[Z],o)])}}catch(e){j=!0,z=e}finally{try{!G&&V.return&&V.return()}finally{if(j)throw z}}(s=function(e,n){return _(p({stops:D,base:t.base},o,e)(e,n))}).isFeatureConstant=!1,s.isZoomConstant=!1}else v?((s=function(e){return _(b(t,o,e,x,k))}).isFeatureConstant=!0,s.isZoomConstant=!1):((s=function(e,n){var r=n[t.property];return void 0===r?c(t.default,o.default):_(b(t,o,r,x,k))}).isFeatureConstant=!1,s.isZoomConstant=!0)}else l&&t&&(t=i(t)),(s=function(){return t}).isFeatureConstant=!0,s.isZoomConstant=!0;return s},e.exports.isFunctionDefinition=y,e.exports.interpolationFactor=m,e.exports.findStopLessThanOrEqualTo=h},function(e,t){e.exports=ol.source.XYZ},function(e,t){e.exports=ol.source.VectorTile},function(e,t){e.exports=ol.source.Vector},function(e,t){e.exports=ol.source.TileJSON},function(e,t){e.exports=ol.layer.VectorTile},function(e,t){e.exports=ol.layer.Vector},function(e,t){e.exports=ol.layer.Tile},function(e,t){e.exports=ol.Observable},function(e,t){e.exports=ol.format.MVT},function(e,t){e.exports=ol.format.GeoJSON},function(e,t){e.exports=ol.Map},function(e,t){e.exports=ol.tilegrid},function(e,t){e.exports=ol.proj},function(e,t,o){"use strict";(function(){var t;e.exports={icon:"icons/google.svg",name:"google",title:"Google Fonts",link:"google.com/fonts",getNames:function(){return t},getLink:function(e){return"https://fonts.google.com/specimen/"+e.replace(/( )/g,"+")},normalizeName:function(e){return e}},t=["ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Amiri","Amita","Anaheim","Andada","Andika","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Arya","Asap","Asar","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Battambang","Baumans","Bayon","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Biryani","Bitter","Black Ops One","Bokor","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script","Dangrek","Dawning of a New Day","Days One","Dekko","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","EB Garamond","Eagle Lake","Eater","Economica","Eczar","Ek Mukta","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fira Mono","Fira Sans","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","GFS Didot","GFS Neohellenic","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","Gidugu","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Gurajada","Habibi","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Hind","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Iceberg","Iceland","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kadwa","Kalam","Kameron","Kantumruy","Karla","Karma","Kaushan Script","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kite One","Knewave","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Kurale","La Belle Aurore","Laila","Lakki Reddy","Lancelot","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Mallanna","Mandali","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modak","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","NTR","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Nokora","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Odor Mean Chey","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Palanquin","Palanquin Dark","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peddana","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poppins","Port Lligat Sans","Port Lligat Slab","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Princess Sofia","Prociono","Prosto One","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Ranchers","Rancho","Ranga","Rationale","Ravi Prakash","Redressed","Reenie Beanie","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Mono","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rozha One","Rubik","Rubik Mono One","Rubik One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sahitya","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarala","Sarina","Sarpanch","Satisfy","Scada","Scheherazade","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sumana","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Tangerine","Taprom","Tauri","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","VT323","Vampiro One","Varela","Varela Round","Vast Shadow","Vesper Libre","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Work Sans","Yanone Kaffeesatz","Yantramanav","Yellowtail","Yeseva One","Yesteryear","Zeyada"]}).call(void 0)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deg2rad=function(e){return e*Math.PI/180},t.getZoomForResolution=function(e,t){for(var o=0,n=t.length;o<n;++o){var r=t[o];if(r<e&&o+1<n){var i=t[o]/t[o+1];return o+Math.log(t[o]/e)/Math.log(i)}}return n-1}},function(e,t,o){"use strict";e.exports=function(e){return new Function("f","var p = (f && f.properties || {}); return "+r(e))};var n=["Unknown","Point","LineString","Polygon"];function r(e){if(!e)return"true";var t=e[0];return e.length<=1?"any"===t?"false":"true":"("+("=="===t?a(e[1],e[2],"===",!1):"!="===t?a(e[1],e[2],"!==",!1):"<"===t||">"===t||"<="===t||">="===t?a(e[1],e[2],t,!0):"any"===t?l(e.slice(1),"||"):"all"===t?l(e.slice(1),"&&"):"none"===t?c(l(e.slice(1),"||")):"in"===t?s(e[1],e.slice(2)):"!in"===t?c(s(e[1],e.slice(2))):"has"===t?u(e[1]):"!has"===t?c(u(e[1])):"true")+")"}function i(e){return"$type"===e?"f.type":"$id"===e?"f.id":"p["+JSON.stringify(e)+"]"}function a(e,t,o,r){var a=i(e),l="$type"===e?n.indexOf(t):JSON.stringify(t);return(r?"typeof "+a+"=== typeof "+l+"&&":"")+a+o+l}function l(e,t){return e.map(r).join(t)}function s(e,t){"$type"===e&&(t=t.map(function(e){return n.indexOf(e)}));var o=JSON.stringify(t.sort(f)),r=i(e);return t.length<=200?o+".indexOf("+r+") !== -1":"function(v, a, i, j) {while (i <= j) { var m = (i + j) >> 1; if (a[m] === v) return true; if (a[m] > v) j = m - 1; else i = m + 1;}return false; }("+r+", "+o+",0,"+(t.length-1)+")"}function u(e){return"$id"===e?'"id" in f':JSON.stringify(e)+" in p"}function c(e){return"!("+e+")"}function f(e,t){return e<t?-1:e>t?1:0}},function(e,t,o){"use strict";e.exports=["type","source","source-layer","minzoom","maxzoom","filter","layout"]},function(e,t,o){"use strict";var n=o(21);function r(e,t){var o={};for(var r in e)"ref"!==r&&(o[r]=e[r]);return n.forEach(function(e){e in t&&(o[e]=t[e])}),o}e.exports=function(e){e=e.slice();for(var t=Object.create(null),o=0;o<e.length;o++)t[e[o].id]=e[o];for(var n=0;n<e.length;n++)"ref"in e[n]&&(e[n]=r(e[n],t[e[n].ref]));return e}},function(e,t){e.exports=ol.geom.Point},function(e,t){e.exports=ol.style.Circle},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={POINT:"point",LINE:"line"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cosh=void 0,t.clamp=function(e,t,o){return Math.min(Math.max(e,t),o)},t.roundUpToPowerOfTwo=function(e){return(0,n.assert)(0<e,29),Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},t.squaredSegmentDistance=function(e,t,o,n,i,a){var l=i-o,s=a-n;if(0!==l||0!==s){var u=((e-o)*l+(t-n)*s)/(l*l+s*s);u>1?(o=i,n=a):u>0&&(o+=l*u,n+=s*u)}return r(e,t,o,n)},t.squaredDistance=r,t.solveLinearSystem=function(e){for(var t=e.length,o=0;o<t;o++){for(var n=o,r=Math.abs(e[o][o]),i=o+1;i<t;i++){var a=Math.abs(e[i][o]);a>r&&(r=a,n=i)}if(0===r)return null;var l=e[n];e[n]=e[o],e[o]=l;for(var s=o+1;s<t;s++)for(var u=-e[s][o]/e[o][o],c=o;c<t+1;c++)o==c?e[s][c]=0:e[s][c]+=u*e[o][c]}for(var f=new Array(t),d=t-1;d>=0;d--){f[d]=e[d][t]/e[d][d];for(var p=d-1;p>=0;p--)e[p][t]-=e[p][d]*f[d]}return f},t.toDegrees=function(e){return 180*e/Math.PI},t.toRadians=function(e){return e*Math.PI/180},t.modulo=function(e,t){var o=e%t;return o*t<0?o+t:o},t.lerp=function(e,t,o){return e+o*(t-e)};var n=o(0);t.cosh="cosh"in Math?Math.cosh:function(e){var t=Math.exp(e);return(t+1/t)/2};function r(e,t,o,n){var r=o-e,i=n-t;return r*r+i*i}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),r=function(e){var t=n.VERSION?n.VERSION.split("-")[0]:"latest";this.message="Assertion failed. See https://openlayers.org/en/"+t+"/doc/errors/#"+e+" for details.",this.code=e,this.name="AssertionError"};(0,n.inherits)(r,Error),t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromString=void 0,t.asString=function(e){return"string"==typeof e?e:f(e)},t.asArray=function(e){return Array.isArray(e)?e:u(e)},t.normalize=c,t.toString=f;var n=o(0),r=o(26),i=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$/i;var l,s,u=t.fromString=(l={},s=0,function(e){var t=void 0;if(l.hasOwnProperty(e))t=l[e];else{if(s>=1024){var o=0;for(var r in l)0==(3&o++)&&(delete l[r],--s)}t=function(e){var t=void 0,o=void 0,r=void 0,l=void 0,s=void 0;if(a.exec(e)&&(e=function(e){var t=document.createElement("div");if(t.style.color=e,""!==t.style.color){document.body.appendChild(t);var o=getComputedStyle(t).color;return document.body.removeChild(t),o}return""}(e)),i.exec(e)){var u=e.length-1,f=void 0;f=u<=4?1:2;var d=4===u||8===u;t=parseInt(e.substr(1+0*f,f),16),o=parseInt(e.substr(1+1*f,f),16),r=parseInt(e.substr(1+2*f,f),16),l=d?parseInt(e.substr(1+3*f,f),16):255,1==f&&(t=(t<<4)+t,o=(o<<4)+o,r=(r<<4)+r,d&&(l=(l<<4)+l)),s=[t,o,r,l/255]}else 0==e.indexOf("rgba(")?c(s=e.slice(5,-1).split(",").map(Number)):0==e.indexOf("rgb(")?((s=e.slice(4,-1).split(",").map(Number)).push(1),c(s)):(0,n.assert)(!1,14);return s}(e),l[e]=t,++s}return t});function c(e){return e[0]=(0,r.clamp)(e[0]+.5|0,0,255),e[1]=(0,r.clamp)(e[1]+.5|0,0,255),e[2]=(0,r.clamp)(e[2]+.5|0,0,255),e[3]=(0,r.clamp)(e[3],0,1),e}function f(e){var t=e[0];t!=(0|t)&&(t=t+.5|0);var o=e[1];o!=(0|o)&&(o=o+.5|0);var n=e[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+t+","+o+","+n+","+(void 0===e[3]?1:e[3])+")"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),r=o(28),i=function(e){var t=e||{};this.color_=void 0!==t.color?t.color:null,this.checksum_=void 0};i.prototype.clone=function(){var e=this.getColor();return new i({color:e&&e.slice?e.slice():e||void 0})},i.prototype.getColor=function(){return this.color_},i.prototype.setColor=function(e){this.color_=e,this.checksum_=void 0},i.prototype.getChecksum=function(){return void 0===this.checksum_&&(this.color_ instanceof CanvasPattern||this.color_ instanceof CanvasGradient?this.checksum_=(0,n.getUid)(this.color_).toString():this.checksum_="f"+(this.color_?(0,r.asString)(this.color_):"-")),this.checksum_},t.default=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(o(29)),r=i(o(25));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e||{};this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.text_=t.text,this.textAlign_=t.textAlign,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new n.default({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:r.default.POINT,this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding};a.prototype.clone=function(){return new a({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:this.getScale(),text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0})},a.prototype.getOverflow=function(){return this.overflow_},a.prototype.getFont=function(){return this.font_},a.prototype.getMaxAngle=function(){return this.maxAngle_},a.prototype.getPlacement=function(){return this.placement_},a.prototype.getOffsetX=function(){return this.offsetX_},a.prototype.getOffsetY=function(){return this.offsetY_},a.prototype.getFill=function(){return this.fill_},a.prototype.getRotateWithView=function(){return this.rotateWithView_},a.prototype.getRotation=function(){return this.rotation_},a.prototype.getScale=function(){return this.scale_},a.prototype.getStroke=function(){return this.stroke_},a.prototype.getText=function(){return this.text_},a.prototype.getTextAlign=function(){return this.textAlign_},a.prototype.getTextBaseline=function(){return this.textBaseline_},a.prototype.getBackgroundFill=function(){return this.backgroundFill_},a.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},a.prototype.getPadding=function(){return this.padding_},a.prototype.setOverflow=function(e){this.overflow_=e},a.prototype.setFont=function(e){this.font_=e},a.prototype.setMaxAngle=function(e){this.maxAngle_=e},a.prototype.setOffsetX=function(e){this.offsetX_=e},a.prototype.setOffsetY=function(e){this.offsetY_=e},a.prototype.setPlacement=function(e){this.placement_=e},a.prototype.setFill=function(e){this.fill_=e},a.prototype.setRotation=function(e){this.rotation_=e},a.prototype.setScale=function(e){this.scale_=e},a.prototype.setStroke=function(e){this.stroke_=e},a.prototype.setText=function(e){this.text_=e},a.prototype.setTextAlign=function(e){this.textAlign_=e},a.prototype.setTextBaseline=function(e){this.textBaseline_=e},a.prototype.setBackgroundFill=function(e){this.backgroundFill_=e},a.prototype.setBackgroundStroke=function(e){this.backgroundStroke_=e},a.prototype.setPadding=function(e){this.padding_=e},t.default=a},function(e,t){e.exports=ol.style.Icon},function(e,t){e.exports=ol.style.Stroke},function(e,t){e.exports=ol.style.Fill},function(e,t){e.exports=ol.style.Style},function(e,t,o){"use strict";function n(e,t,o){return e*(1-o)+t*o}e.exports=n,n.number=n,n.vec2=function(e,t,o){return[n(e[0],t[0],o),n(e[1],t[1],o)]},n.color=function(e,t,o){return[n(e[0],t[0],o),n(e[1],t[1],o),n(e[2],t[2],o),n(e[3],t[3],o)]},n.array=function(e,t,o){return e.map(function(e,r){return n(e,t[r],o)})}},function(e,t,o){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":void 0===e?"undefined":n(e)}},function(e,t,o){"use strict";e.exports=function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];var r=!0,i=!1,a=void 0;try{for(var l,s=o[Symbol.iterator]();!(r=(l=s.next()).done);r=!0){var u=l.value;for(var c in u)e[c]=u[c]}}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return e}},function(e,t,o){"use strict";var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(e){return(e=Math.round(e))<0?0:e>255?255:e}function i(e){return e<0?0:e>1?1:e}function a(e){return"%"===e[e.length-1]?r(parseFloat(e)/100*255):r(parseInt(e))}function l(e){return"%"===e[e.length-1]?i(parseFloat(e)/100):i(parseFloat(e))}function s(e,t,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?e+(t-e)*o*6:2*o<1?t:3*o<2?e+(t-e)*(2/3-o)*6:e}try{t.parseCSSColor=function(e){var t,o=e.replace(/ /g,"").toLowerCase();if(o in n)return n[o].slice();if("#"===o[0])return 4===o.length?(t=parseInt(o.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===o.length&&(t=parseInt(o.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var i=o.indexOf("("),u=o.indexOf(")");if(-1!==i&&u+1===o.length){var c=o.substr(0,i),f=o.substr(i+1,u-(i+1)).split(","),d=1;switch(c){case"rgba":if(4!==f.length)return null;d=l(f.pop());case"rgb":return 3!==f.length?null:[a(f[0]),a(f[1]),a(f[2]),d];case"hsla":if(4!==f.length)return null;d=l(f.pop());case"hsl":if(3!==f.length)return null;var p=(parseFloat(f[0])%360+360)%360/360,g=l(f[1]),h=l(f[2]),y=h<=.5?h*(g+1):h+g-h*g,m=2*h-y;return[r(255*s(m,y,p+1/3)),r(255*s(m,y,p)),r(255*s(m,y,p-1/3)),d];default:return null}}return null}}catch(e){}},function(e,t,o){"use strict";var n=o(38).parseCSSColor;e.exports=function(e){if("string"==typeof e){var t=n(e);if(!t)return;return[t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3]]}return Array.isArray(e)?e:void 0}},function(e,t,o){"use strict";var n=.95047,r=1,i=1.08883,a=4/29,l=6/29,s=3*l*l,u=l*l*l,c=Math.PI/180,f=180/Math.PI;function d(e){return e>u?Math.pow(e,1/3):e/s+a}function p(e){return e>l?e*e*e:s*(e-a)}function g(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function h(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function y(e){var t=h(e[0]),o=h(e[1]),a=h(e[2]),l=d((.4124564*t+.3575761*o+.1804375*a)/n),s=d((.2126729*t+.7151522*o+.072175*a)/r);return[116*s-16,500*(l-s),200*(s-d((.0193339*t+.119192*o+.9503041*a)/i)),e[3]]}function m(e){var t=(e[0]+16)/116,o=isNaN(e[1])?t:t+e[1]/500,a=isNaN(e[2])?t:t-e[2]/200;return t=r*p(t),[g(3.2404542*(o=n*p(o))-1.5371385*t-.4985314*(a=i*p(a))),g(-.969266*o+1.8760108*t+.041556*a),g(.0556434*o-.2040259*t+1.0572252*a),e[3]]}e.exports={lab:{forward:y,reverse:m},hcl:{forward:function(e){var t=y(e),o=t[0],n=t[1],r=t[2],i=Math.atan2(r,n)*f;return[i<0?i+360:i,Math.sqrt(n*n+r*r),o,e[3]]},reverse:function(e){var t=e[0]*c,o=e[1];return m([e[2],Math.cos(t)*o,Math.sin(t)*o,e[3]])}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.applyStyle=P,t.applyBackground=function(e,t){t.layers.some(function(t){if("background"==t.type)return _(e,t),!0})},t.apply=function(e,t){var o,n,r,i;o=n=r=i="",e instanceof f.default||(e=new f.default({target:e}));if("string"==typeof t){var a=t.match(M);a&&(n=a[1],o=a.length>2?a[2]:""),fetch(t,{credentials:"same-origin"}).then(function(e){return e.json()}).then(function(a){var l=document.createElement("A");l.href=t,i=l.pathname.split("/").slice(0,-1).join("/")+"/",r=t.substr(0,t.indexOf(i)),T(a,e,n,r,i,o)}).catch(function(e){throw console.error(e),new Error("Could not load "+t)})}else setTimeout(function(){T(t,e)},0);return e},t.getLayer=function(e,t){for(var o=e.getLayers().getArray(),n=0,r=o.length;n<r;++n)if(-1!==o[n].get("mapbox-layers").indexOf(t))return o[n]},t.getSource=function(e,t){for(var o=e.getLayers().getArray(),n=0,r=o.length;n<r;++n){var i=o[n].getSource();if(-1!==o[n].get("mapbox-source").indexOf(t))return i}};var r,i=k(o(4)),a=k(o(3)),l=k(o(2)),s=k(o(18)),u=o(17),c=o(16),f=k(o(15)),d=k(o(14)),p=k(o(13)),g=o(12),h=k(o(11)),y=k(o(10)),m=k(o(9)),v=k(o(8)),S=k(o(7)),b=k(o(6)),x=k(o(5));function k(e){return e&&e.__esModule?e:{default:e}}var w=["Open Sans Regular","Arial Regular"];function O(e){"layout"in e&&"text-field"in e.layout&&function e(t){var o,n;if(Array.isArray(t)){var i=s.default.getNames(),l=t.map(function(e){return(0,a.default)(e,1).split(" 1px ")[1].replace(/"/g,"")});for(o=0,n=l.length;o<n;++o){var u=l[o],c=t[o];if(-1!==i.indexOf(u)){if(r||(r=[]),-1==r.indexOf(c)){r.push(c);var f="https://fonts.googleapis.com/css?family="+u.replace(/ /g,"+");if(!document.querySelector('link[href="'+f+'"]')){var d=document.createElement("link");d.href=f,d.rel="stylesheet",document.getElementsByTagName("head")[0].appendChild(d)}}break}}}else{var p=t.stops;if(p)for(o=0,n=p.length;o<n;++o)e(p[o][1])}}(e.layout["text-font"]||w)}var M=/^(.*)(\?.*)$/;function C(e,t){return t&&0!=e.indexOf("http")&&(e=t+e),e}function A(e,t,o){var n=(e=C(e,t)).match(M);return n?n[1]+o+(n.length>2?n[2]:""):e+o}function P(e,t,o,i,a){return new Promise(function(s,u){var c,f,d;if("object"!=(void 0===t?"undefined":n(t))&&(t=JSON.parse(t)),8!=t.version&&u(new Error("glStyle version 8 required.")),t.sprite){var p=.5==(window.devicePixelRatio>=1.5?.5:1)?"@2x":"",g=A(t.sprite,i,p+".json");fetch(g,{credentials:"same-origin"}).then(function(e){return 200===e.status?e.json():""!==p?(p="",g=A(t.sprite,i,".json"),fetch(g,{credentials:"same-origin"}).then(function(e){return e.json()})):void 0}).then(function(e){if(void 0===e)throw"No sprites found.";c=e,f=A(t.sprite,i,p+".png"),h()}).catch(function(e){console.error(e),u(new Error("Sprites cannot be loaded from "+g))})}function h(){d||t.sprite&&!c||r&&!(r.length>0)?d&&e.setStyle(d):(d=(0,l.default)(e,t,o,a,c,f,r),s())}if(e instanceof m.default||e instanceof y.default)try{for(var v=t.layers,S=0,b=v.length;S<b;++S)("string"==typeof o&&v[S].source==o||o.indexOf(v[S].id)>=0)&&O(v[S]);h()}catch(e){setTimeout(function(){u(e)},0)}})}function _(e,t){function o(){var o=e.getTargetElement();if(o){var n=t.layout||{},r=t.paint||{},a=e.getView().getZoom();if("background-color"in r){var l=(0,i.default)(r["background-color"],{function:"interpolated",type:"color"})(a);Array.isArray(l)&&(l="rgba("+Math.round(255*l[0])+","+Math.round(255*l[1])+","+Math.round(255*l[2])+","+(l[3]?l[3]:1)+")"),o.style.backgroundColor=l}"background-opacity"in r&&(o.style.backgroundOpacity=(0,i.default)(r["background-opacity"],{function:"interpolated",type:"number"})(a)),"none"==n.visibility&&(o.style.backgroundColor="",o.style.backgroundOpacity="")}}e.getTargetElement()&&o(),e.on(["change:resolution","change:target"],o)}function F(e,t){var o;return e.some(function(e){if(e.id==t)return o=e.source,!0}),o}function T(e,t,o,n,r,i){var a=t.getView();"center"in e&&!a.getCenter()&&a.setCenter((0,u.fromLonLat)(e.center)),"zoom"in e&&void 0===a.getZoom()&&a.setZoom(e.zoom),a.getCenter()&&void 0!==a.getZoom()||a.fit(a.getProjection().getExtent(),{nearest:!0,size:t.getSize()}),e.sprite&&(0==e.sprite.indexOf("mapbox://")?e.sprite=o+"/sprite"+i:0!=e.sprite.indexOf("http")&&(e.sprite=(n?n+r:"")+e.sprite+i));var l,s,f,k,w,O,M,A,T=e.layers,R=new d.default,L=[];function B(o){if(L.length>0){t.addLayer(o);var n=function(){P(o,e,L,r).then(function(){o.setVisible(!0)},function(e){console.error(e)})};o.getSource()?n():o.once("change:source",n)}}for(var N=0,I=T.length;N<I;++N)if("background"==(l=T[N]).type)_(t,l);else{if((k=l.source||F(T,l.ref))!=f){B(w),L=[],s=e.sources[k],M=s.url;var D=s.tiles;if(M&&0==M.indexOf("mapbox://")&&(O=M.replace("mapbox://",""),D=["a","b","c","d"].map(function(e){return"https://"+e+".tiles.mapbox.com/v4/"+O+"/{z}/{x}/{y}."+("vector"==s.type?"vector.pbf":"png")+i})),"vector"==s.type)w=D?(A=void 0,A=(0,c.createXYZ)({tileSize:512,maxZoom:"maxzoom"in s?s.maxzoom:22,minZoom:s.minzoom}),new m.default({declutter:!0,maxResolution:A.getMinZoom()>0?A.getResolution(A.getMinZoom()):void 0,source:new b.default({attributions:s.attribution,format:new p.default,tileGrid:A,urls:D}),visible:!1,zIndex:N})):function(){var e=new m.default({declutter:!0,visible:!1,zIndex:N}),t=new v.default({url:M}),o=t.on("change",function(){if("ready"==t.getState()){for(var n=t.getTileJSON(),r=Array.isArray(n.tiles)?n.tiles:[n.tiles],i=0,a=r.length;i<a;++i){var l=r[i];0!=l.indexOf("http")&&(r[i]=s.url+l)}var u=t.getTileGrid();e.setSource(new b.default({attributions:t.getAttributions()||n.attribution,format:new p.default,tileGrid:(0,c.createXYZ)({minZoom:u.getMinZoom(),maxZoom:u.getMaxZoom(),tileSize:512}),urls:r})),u.getMinZoom()>0&&e.setMaxResolution(u.getResolution(u.getMinZoom())),(0,g.unByKey)(o)}});return e}();else if("raster"==s.type){var G;(G=s.tiles?new x.default({attributions:s.attribution,minZoom:s.minzoom,maxZoom:"maxzoom"in s?s.maxzoom:22,tileSize:s.tileSize||512,url:M,urls:s.tiles,crossOrigin:"anonymous"}):new v.default({url:M,crossOrigin:"anonymous"})).setTileLoadFunction(function(e,t){if(-1!=t.indexOf("{bbox-epsg-3857}")){var o=G.getTileGrid().getTileCoordExtent(e.getTileCoord());t=t.replace("{bbox-epsg-3857}",o.toString())}e.getImage().src=t}),w=new h.default({source:G,visible:!l.layout||"none"!==l.layout.visibility})}else if("geojson"==s.type){var j,z,E=s.data;"string"==typeof E?z=C(E,r):j=R.readFeatures(E,{featureProjection:"EPSG:3857"}),w=new y.default({source:new S.default({attributions:s.attribution,features:j,format:R,url:z}),visible:!1,zIndex:N})}f=k}L.push(l.id)}B(w),t.set("mapbox-style",e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=o(41),i=o(2),a=(n=i)&&n.__esModule?n:{default:n};t.default={apply:r.apply,applyBackground:r.applyBackground,applyStyle:r.applyStyle,stylefunction:a.default}}]).default;
olms=function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=43)}([function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new i.default(t)};var n,r=o(27),i=(n=r)&&n.__esModule?n:{default:n}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=t.WEBGL_EXTENSIONS=t.WEBGL_MAX_TEXTURE_SIZE=t.HAS_WEBGL=t.DEBUG_WEBGL=void 0,t.inherits=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},t.getUid=function(e){return e.ol_uid||(e.ol_uid=++u)};var n=o(29),r=(t.DEBUG_WEBGL=!0,void 0),i=void 0,a=!1;if("undefined"!=typeof window&&"WebGLRenderingContext"in window)try{var l=document.createElement("CANVAS"),s=(0,n.getContext)(l,{failIfMajorPerformanceCaveat:!0});s&&(t.HAS_WEBGL=a=!0,t.WEBGL_MAX_TEXTURE_SIZE=r=s.getParameter(s.MAX_TEXTURE_SIZE),t.WEBGL_EXTENSIONS=i=s.getSupportedExtensions())}catch(e){}t.HAS_WEBGL=a,t.WEBGL_MAX_TEXTURE_SIZE=r,t.WEBGL_EXTENSIONS=i;t.VERSION="v4.6.4";var u=0},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t,o,n,d,p,m){if(!n){n=[];for(var y=78271.51696402048;n.length<21;y/=2)n.push(y)}if("string"==typeof t&&(t=JSON.parse(t)),8!=t.version)throw new Error("glStyle version 8 required.");var k=void 0,C=void 0;if(p){var _=new Image;_.crossOrigin="anonymous",_.onload=function(){k=_,C=[_.width,_.height],e.changed()},_.src=p}var R=document.createElement("CANVAS").getContext("2d"),P={};function F(e,t,o){var n=o+","+t+","+e,r=P[n];if(!r){R.font=t;for(var i=R.measureText("M").width*o,a=e.split(" "),l="",s=[],u=0,c=a.length;u<c;++u){var f=a[u];R.measureText(l+f).width<=i?l+=(l?" ":"")+f:(l&&s.push(l),l=f)}l&&s.push(l),P[n]=r=s.join("\n")}return r}for(var L=(0,f.default)(t.layers),N={},I=[],B=void 0,G=0,D=L.length;G<D;++G){var j=L[G],z=j.id;if("string"==typeof o&&j.source==o||-1!==o.indexOf(z)){var U=j["source-layer"];B||(B=j.source);var W=N[U];W||(W=N[U]=[]),W.push({layer:j,index:G}),I.push(z)}delete b[z],delete O[z]}var V=new a.default,Z=new i.default,H={},K=[],X=function(e,t){var o=e.getProperties(),f=N[o.layer];if(f){var p=n.indexOf(t);-1==p&&(p=(0,h.getZoomForResolution)(t,n));for(var m=S[e.getGeometry().getType()],y={properties:o,type:m},b=-1,O=0,_=f.length;O<_;++O){var R=f[O],P=R.layer,L=P.id,I=P.layout||E,B=P.paint||E;if(!("none"===I.visibility||"minzoom"in P&&p<P.minzoom||"maxzoom"in P&&p>=P.maxzoom)){var G=P.filter;if(!G||M(L,G,y)){var D=void 0,j=void 0,z=void 0,U=void 0,W=void 0,X=R.index;3==m&&!("fill-pattern"in B)&&"fill-color"in B&&(j=x(L,B,"fill-opacity",p,o),(D=A(x(L,B,"fill-color",p,o),j))&&((W=K[++b])&&W.getFill()&&!W.getStroke()&&!W.getText()||(W=K[b]=new r.default({fill:new i.default})),W.getFill().setColor(D),W.setZIndex(X)),"fill-outline-color"in B&&(U=A(x(L,B,"fill-outline-color",p,o),j)),U&&((W=K[++b])&&W.getStroke()&&!W.getFill()&&!W.getText()||(W=K[b]=new r.default({stroke:new a.default})),(z=W.getStroke()).setLineCap(v["line-cap"]),z.setLineJoin(v["line-join"]),z.setMiterLimit(v["line-miter-limit"]),z.setColor(U),z.setWidth(1),z.setLineDash(null),W.setZIndex(X))),1!=m&&function(){D=!("line-pattern"in B)&&"line-color"in B?A(x(L,B,"line-color",p,o),x(L,B,"line-opacity",p,o)):void 0;var e=x(L,B,"line-width",p,o);D&&e>0&&((W=K[++b])&&W.getStroke()&&!W.getFill()&&!W.getText()||(W=K[b]=new r.default({stroke:new a.default})),(z=W.getStroke()).setLineCap(x(L,I,"line-cap",p,o)),z.setLineJoin(x(L,I,"line-join",p,o)),z.setMiterLimit(x(L,I,"line-miter-limit",p,o)),z.setColor(D),z.setWidth(e),z.setLineDash(B["line-dasharray"]?x(L,B,"line-dasharray",p,o).map(function(t){return t*e}):null),W.setZIndex(X))}();var q=!1,J=null,Y=void 0,Q=void 0,$=void 0;if((1==m||2==m)&&"icon-image"in I){var ee=x(L,I,"icon-image",p,o);if(ee){Y=T(ee,o);var te=void 0;if(k&&d&&d[Y]){if(2==m){var oe=e.getGeometry();if(oe.getFlatMidpoint){var ne=oe.getExtent();Math.sqrt(Math.max(Math.pow((ne[2]-ne[0])/t,2),Math.pow((ne[3]-ne[1])/t,2)))>150&&(te=new c.default(oe.getFlatMidpoint()))}}if(2!==m||te){(W=K[++b])&&W.getImage()&&!W.getFill()&&!W.getStroke()||(W=K[b]=new r.default),W.setGeometry(te);var re=x(L,I,"icon-size",p,o),ie=void 0!==B["icon-color"]?x(L,B,"icon-color",p,o):null,ae=Y+"."+re;if(null!==ie&&(ae+="."+ie),!(Q=H[ae])){var le=d[Y];if(null!==ie){D=A(ie,1);var se=document.createElement("canvas");se.width=le.width,se.height=le.height;var ue=se.getContext("2d");ue.drawImage(k,le.x,le.y,le.width,le.height,0,0,le.width,le.height);for(var ce=ue.getImageData(0,0,se.width,se.height),fe=0,de=ce.data.length;fe<de;fe+=4)ce.data[fe]=D[0],ce.data[fe+1]=D[1],ce.data[fe+2]=D[2];ue.putImageData(ce,0,0),Q=H[ae]=new l.default({img:se,imgSize:[se.width,se.height],scale:re/le.pixelRatio})}else Q=H[ae]=new l.default({img:k,imgSize:C,size:[le.width,le.height],offset:[le.x,le.y],scale:re/le.pixelRatio})}Q.setRotation((0,h.deg2rad)(x(L,I,"icon-rotate",p,o))),Q.setOpacity(x(L,B,"icon-opacity",p,o)),W.setImage(Q),J=W.getText(),W.setText(void 0),W.setZIndex(99999-X),q=!0,$=!1}else $=!0}}}if(1==m&&"circle-radius"in B){(W=K[++b])&&W.getImage()&&!W.getFill()&&!W.getStroke()||(W=K[b]=new r.default);var pe=x(L,B,"circle-radius",p,o),ge=x(L,B,"circle-stroke-color",p,o),he=x(L,B,"circle-color",p,o),me=x(L,B,"circle-opacity",p,o),ye=x(L,B,"circle-stroke-width",p,o);(Q=H[pe+"."+ge+"."+he+"."+me+"."+ye])||(Q=new u.default({radius:pe,stroke:0===ye?void 0:new a.default({width:ye,color:A(ge,me)}),fill:new i.default({color:A(he,me)})})),W.setImage(Q),J=W.getText(),W.setText(void 0),W.setGeometry(void 0),W.setZIndex(99999-X),q=!0}var ve=void 0;if("text-field"in I)ve=T(x(L,I,"text-field",p,o),o);if(ve&&!$){q||((W=K[++b])&&W.getText()&&!W.getFill()&&!W.getStroke()||(W=K[b]=new r.default),W.setImage(void 0),W.setGeometry(void 0)),W.getText()||W.setText(J||new s.default),J=W.getText();var Se=x(L,I,"text-size",p,o),be=(0,g.default)(w(x(L,I,"text-font",p,o)),Se),xe=I["text-transform"];"uppercase"==xe?ve=ve.toUpperCase():"lowercase"==xe&&(ve=ve.toLowerCase());var ke=2==m?ve:F(ve,be,x(L,I,"text-max-width",p,o));J.setText(ke),J.setFont(be),J.setRotation((0,h.deg2rad)(x(L,I,"text-rotate",p,o)));var we=x(L,I,"text-anchor",p,o),Oe=q||1==m?"point":x(L,I,"symbol-placement",p,o);if(J.setPlacement(Oe),"point"==Oe){var Me="center";-1!==we.indexOf("left")?Me="left":-1!==we.indexOf("right")&&(Me="right"),J.setTextAlign(Me)}else J.setTextAlign();var Ce="middle";0==we.indexOf("bottom")?Ce="bottom":0==we.indexOf("top")&&(Ce="top"),J.setTextBaseline(Ce);var Ae=x(L,I,"text-offset",p,o);J.setOffsetX(Ae[0]*Se),J.setOffsetY(Ae[1]*Se),j=x(L,B,"text-opacity",p,o),Z.setColor(A(x(L,B,"text-color",p,o),j)),J.setFill(Z);var _e=A(x(L,B,"text-halo-color",p,o),j);_e?(V.setColor(_e),V.setWidth(x(L,B,"text-halo-width",p,o)),J.setStroke(V)):J.setStroke(void 0),W.setZIndex(99999-X)}}}}return b>-1?(K.length=b+1,K):void 0}};return e.setStyle(X),e.set("mapbox-source",B),e.set("mapbox-layers",I),X};var r=m(o(35)),i=m(o(34)),a=m(o(33)),l=m(o(32)),s=m(o(31)),u=m(o(24)),c=m(o(23)),f=m(o(22)),d=m(o(4)),p=m(o(20)),g=m(o(3)),h=o(19);function m(e){return e&&e.__esModule?e:{default:e}}var y={"line-miter-limit":"interpolated","fill-opacity":"interpolated","line-opacity":"interpolated","line-width":"interpolated","text-halo-width":"interpolated","text-max-width":"interpolated","text-offset":"interpolated","text-opacity":"interpolated","text-rotate":"interpolated","text-size":"interpolated","icon-opacity":"interpolated","icon-rotate":"interpolated","icon-size":"interpolated","icon-color":"interpolated","circle-radius":"interpolated","circle-opacity":"interpolated","circle-stroke-width":"interpolated","circle-color":"interpolated","circle-stroke-color":"interpolated","text-halo-color":"interpolated","text-color":"interpolated","line-color":"interpolated","fill-outline-color":"interpolated","fill-color":"interpolated","icon-image":"piecewise-constant","line-cap":"piecewise-constant","line-join":"piecewise-constant","line-dasharray":"piecewise-constant","symbol-placement":"piecewise-constant","text-anchor":"piecewise-constant","text-field":"piecewise-constant","text-font":"piecewise-constant"},v={"fill-opacity":1,"line-cap":"butt","line-join":"miter","line-miter-limit":2,"line-opacity":1,"line-width":1,"symbol-placement":"point","text-anchor":"center","text-color":"#000000","text-font":["Open Sans Regular","Arial Unicode MS Regular"],"text-halo-color":"rgba(0, 0, 0, 0)","text-halo-width":0,"text-max-width":10,"text-offset":[0,0],"text-opacity":1,"text-rotate":0,"text-size":16,"icon-opacity":1,"icon-rotate":0,"icon-size":1,"circle-color":"#000000","circle-stroke-color":"#000000","circle-opacity":1,"circle-stroke-width":0},S={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},b={};function x(e,t,o,r,i){b[e]||(b[e]={});var a=b[e];if(!a[o]){var l=t[o];void 0===l&&(l=v[o]),a[o]=(0,d.default)(l,{function:y[o],type:-1!==o.indexOf("color")?"color":"object"==(void 0===l?"undefined":n(l))&&l.stops&&"number"==typeof l.stops[0][0]?"number":void 0})}return a[o](r,i)}var k={};function w(e,t){if(k[e])return k[e];if(t){for(var o=0,n=e.length;o<n;++o){var r=e[o];if(-1!=t.indexOf(r)){k[e]=r;break}}k[e]||(k[e]=e[e.length-1])}else k[e]=e[0];return k[e]}var O={};function M(e,t,o){return e in O||(O[e]=(0,p.default)(t)),O[e](o)}var C={};function A(e,t){if(e&&void 0!==t){var o=C[e];o||(C[e]=o={color:[255*e[0]/e[3],255*e[1]/e[3],255*e[2]/e[3],e[3]],opacity:e[3]}),(e=o.color)[3]=o.opacity*t,0===e[3]&&(e=void 0)}return e}var _=/^([^]*)\{(.*)\}([^]*)$/;function T(e,t){var o=void 0;do{if(o=e.match(_)){var n=t[o[2]]||"";e=o[1]+n+o[3]}}while(o);return e}var E={}},function(e,t,o){"use strict";var n={thin:100,hairline:100,"ultra-light":100,"extra-light":100,light:200,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,heavy:800,black:800,"extra-bold":800,"ultra-black":900,"extra-black":900,"ultra-bold":900,"heavy-black":900,fat:900,poster:900},r={};e.exports=function(e,t){var o=r[e];if(!o){var i=e.split(" "),a=i[i.length-1].toLowerCase(),l="normal",s="normal";for(var u in"normal"!=a&&"italic"!=a&&"oblique"!=a||(s=a,i.pop(),a=i[i.length-1].toLowerCase()),n)if(a==u||a==u.replace("-","")||a==u.replace("-"," ")){l=n[u],i.pop();break}"number"==typeof a&&(l=a);var c=i.join(" ").replace("Klokantech Noto Sans","Noto Sans");-1!==c.indexOf(" ")&&(c='"'+c+'"'),o=r[e]=[s,l,c]}return o[0]+" "+o[1]+" "+t+"px "+o[2]}},function(e,t,o){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=o(41),i=o(40),a=o(38),l=o(37),s=o(36);function u(e){return e}function c(e,t,o){return void 0!==e?e:void 0!==t?t:void 0!==o?o:void 0}function f(e,t,o,r,i){return c((void 0===o?"undefined":n(o))===i?r[o]:void 0,e.default,t.default)}function d(e,t,o){if("number"!==l(o))return c(e.default,t.default);var n=e.stops.length;if(1===n)return e.stops[0][1];if(o<=e.stops[0][0])return e.stops[0][1];if(o>=e.stops[n-1][0])return e.stops[n-1][1];var r=h(e.stops,o);return e.stops[r][1]}function p(e,t,o){var n=void 0!==e.base?e.base:1;if("number"!==l(o))return c(e.default,t.default);var r=e.stops.length;if(1===r)return e.stops[0][1];if(o<=e.stops[0][0])return e.stops[0][1];if(o>=e.stops[r-1][0])return e.stops[r-1][1];var i=h(e.stops,o),a=y(o,n,e.stops[i][0],e.stops[i+1][0]),f=e.stops[i][1],d=e.stops[i+1][1],p=s[t.type]||u;return"function"==typeof f?function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];var n=f.apply(void 0,t),r=d.apply(void 0,t);if(void 0!==n&&void 0!==r)return p(n,r,a)}:p(f,d,a)}function g(e,t,o){return"color"===t.type?o=i(o):l(o)===t.type||"enum"===t.type&&t.values[o]||(o=void 0),c(o,e.default,t.default)}function h(e,t){for(var o=0,n=e.length-1,r=0,i=void 0,a=void 0;o<=n;){if(i=e[r=Math.floor((o+n)/2)][0],a=e[r+1][0],t===i||t>i&&t<a)return r;i<t?o=r+1:i>t&&(n=r-1)}return Math.max(r-1,0)}function m(e){return"object"===(void 0===e?"undefined":n(e))&&(e.stops||"identity"===e.type)}function y(e,t,o,n){var r=n-o,i=e-o;return 0===r?0:1===t?i/r:(Math.pow(t,i)-1)/(Math.pow(t,r)-1)}e.exports=function e(t,o){var l="color"===o.type,s=void 0;if(m(t)){var h=t.stops&&"object"===n(t.stops[0][0]),y=h||void 0!==t.property,v=h||!y,S=t.type||("interpolated"===o.function?"exponential":"interval");l&&((t=a({},t)).stops&&(t.stops=t.stops.map(function(e){return[e[0],i(e[1])]})),t.default?t.default=i(t.default):t.default=i(o.default));var b=void 0,x=void 0,k=void 0;if("exponential"===S)b=p;else if("interval"===S)b=d;else if("categorical"===S){b=f,x=Object.create(null);var w=!0,O=!1,M=void 0;try{for(var C,A=t.stops[Symbol.iterator]();!(w=(C=A.next()).done);w=!0){var _=C.value;x[_[0]]=_[1]}}catch(e){O=!0,M=e}finally{try{!w&&A.return&&A.return()}finally{if(O)throw M}}k=n(t.stops[0][0])}else{if("identity"!==S)throw new Error('Unknown function type "'+S+'"');b=g}var T=void 0;if(t.colorSpace&&"rgb"!==t.colorSpace){if(!r[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);var E=r[t.colorSpace];t=JSON.parse(JSON.stringify(t));for(var R=0;R<t.stops.length;R++)t.stops[R]=[t.stops[R][0],E.forward(t.stops[R][1])];T=E.reverse}else T=u;if(h){for(var P={},F=[],L=0;L<t.stops.length;L++){var N=t.stops[L],I=N[0].zoom;void 0===P[I]&&(P[I]={zoom:I,type:t.type,property:t.property,default:t.default,stops:[]},F.push(I)),P[I].stops.push([N[0].value,N[1]])}var B=[],G=!0,D=!1,j=void 0;try{for(var z,U=F[Symbol.iterator]();!(G=(z=U.next()).done);G=!0){var W=z.value;B.push([P[W].zoom,e(P[W],o)])}}catch(e){D=!0,j=e}finally{try{!G&&U.return&&U.return()}finally{if(D)throw j}}(s=function(e,n){return T(p({stops:B,base:t.base},o,e)(e,n))}).isFeatureConstant=!1,s.isZoomConstant=!1}else v?((s=function(e){return T(b(t,o,e,x,k))}).isFeatureConstant=!0,s.isZoomConstant=!1):((s=function(e,n){var r=n[t.property];return void 0===r?c(t.default,o.default):T(b(t,o,r,x,k))}).isFeatureConstant=!1,s.isZoomConstant=!0)}else l&&t&&(t=i(t)),(s=function(){return t}).isFeatureConstant=!0,s.isZoomConstant=!0;return s},e.exports.isFunctionDefinition=m,e.exports.interpolationFactor=y,e.exports.findStopLessThanOrEqualTo=h},function(e,t){e.exports=ol.source.XYZ},function(e,t){e.exports=ol.source.VectorTile},function(e,t){e.exports=ol.source.Vector},function(e,t){e.exports=ol.source.TileJSON},function(e,t){e.exports=ol.layer.VectorTile},function(e,t){e.exports=ol.layer.Vector},function(e,t){e.exports=ol.layer.Tile},function(e,t){e.exports=ol.Observable},function(e,t){e.exports=ol.format.MVT},function(e,t){e.exports=ol.format.GeoJSON},function(e,t){e.exports=ol.Map},function(e,t){e.exports=ol.tilegrid},function(e,t){e.exports=ol.proj},function(e,t,o){"use strict";(function(){var t;e.exports={icon:"icons/google.svg",name:"google",title:"Google Fonts",link:"google.com/fonts",getNames:function(){return t},getLink:function(e){return"https://fonts.google.com/specimen/"+e.replace(/( )/g,"+")},normalizeName:function(e){return e}},t=["ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Amiri","Amita","Anaheim","Andada","Andika","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Arya","Asap","Asar","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Battambang","Baumans","Bayon","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Biryani","Bitter","Black Ops One","Bokor","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script","Dangrek","Dawning of a New Day","Days One","Dekko","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","EB Garamond","Eagle Lake","Eater","Economica","Eczar","Ek Mukta","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fira Mono","Fira Sans","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","GFS Didot","GFS Neohellenic","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","Gidugu","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Gurajada","Habibi","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Hind","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Iceberg","Iceland","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kadwa","Kalam","Kameron","Kantumruy","Karla","Karma","Kaushan Script","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kite One","Knewave","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Kurale","La Belle Aurore","Laila","Lakki Reddy","Lancelot","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Mallanna","Mandali","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modak","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","NTR","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Nokora","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Odor Mean Chey","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Palanquin","Palanquin Dark","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peddana","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poppins","Port Lligat Sans","Port Lligat Slab","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Princess Sofia","Prociono","Prosto One","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Ranchers","Rancho","Ranga","Rationale","Ravi Prakash","Redressed","Reenie Beanie","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Mono","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rozha One","Rubik","Rubik Mono One","Rubik One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sahitya","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarala","Sarina","Sarpanch","Satisfy","Scada","Scheherazade","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sumana","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Tangerine","Taprom","Tauri","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","VT323","Vampiro One","Varela","Varela Round","Vast Shadow","Vesper Libre","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Work Sans","Yanone Kaffeesatz","Yantramanav","Yellowtail","Yeseva One","Yesteryear","Zeyada"]}).call(void 0)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deg2rad=function(e){return e*Math.PI/180},t.getZoomForResolution=function(e,t){for(var o=0,n=t.length;o<n;++o){var r=t[o];if(r<e&&o+1<n){var i=t[o]/t[o+1];return o+Math.log(t[o]/e)/Math.log(i)}}return n-1}},function(e,t,o){"use strict";e.exports=function(e){return new Function("f","var p = (f && f.properties || {}); return "+r(e))};var n=["Unknown","Point","LineString","Polygon"];function r(e){if(!e)return"true";var t=e[0];return e.length<=1?"any"===t?"false":"true":"("+("=="===t?a(e[1],e[2],"===",!1):"!="===t?a(e[1],e[2],"!==",!1):"<"===t||">"===t||"<="===t||">="===t?a(e[1],e[2],t,!0):"any"===t?l(e.slice(1),"||"):"all"===t?l(e.slice(1),"&&"):"none"===t?c(l(e.slice(1),"||")):"in"===t?s(e[1],e.slice(2)):"!in"===t?c(s(e[1],e.slice(2))):"has"===t?u(e[1]):"!has"===t?c(u(e[1])):"true")+")"}function i(e){return"$type"===e?"f.type":"$id"===e?"f.id":"p["+JSON.stringify(e)+"]"}function a(e,t,o,r){var a=i(e),l="$type"===e?n.indexOf(t):JSON.stringify(t);return(r?"typeof "+a+"=== typeof "+l+"&&":"")+a+o+l}function l(e,t){return e.map(r).join(t)}function s(e,t){"$type"===e&&(t=t.map(function(e){return n.indexOf(e)}));var o=JSON.stringify(t.sort(f)),r=i(e);return t.length<=200?o+".indexOf("+r+") !== -1":"function(v, a, i, j) {while (i <= j) { var m = (i + j) >> 1; if (a[m] === v) return true; if (a[m] > v) j = m - 1; else i = m + 1;}return false; }("+r+", "+o+",0,"+(t.length-1)+")"}function u(e){return"$id"===e?'"id" in f':JSON.stringify(e)+" in p"}function c(e){return"!("+e+")"}function f(e,t){return e<t?-1:e>t?1:0}},function(e,t,o){"use strict";e.exports=["type","source","source-layer","minzoom","maxzoom","filter","layout"]},function(e,t,o){"use strict";var n=o(21);function r(e,t){var o={};for(var r in e)"ref"!==r&&(o[r]=e[r]);return n.forEach(function(e){e in t&&(o[e]=t[e])}),o}e.exports=function(e){e=e.slice();for(var t=Object.create(null),o=0;o<e.length;o++)t[e[o].id]=e[o];for(var n=0;n<e.length;n++)"ref"in e[n]&&(e[n]=r(e[n],t[e[n].ref]));return e}},function(e,t){e.exports=ol.geom.Point},function(e,t){e.exports=ol.style.Circle},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={POINT:"point",LINE:"line"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cosh=void 0,t.clamp=function(e,t,o){return Math.min(Math.max(e,t),o)},t.roundUpToPowerOfTwo=function(e){return(0,n.assert)(0<e,29),Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},t.squaredSegmentDistance=function(e,t,o,n,i,a){var l=i-o,s=a-n;if(0!==l||0!==s){var u=((e-o)*l+(t-n)*s)/(l*l+s*s);u>1?(o=i,n=a):u>0&&(o+=l*u,n+=s*u)}return r(e,t,o,n)},t.squaredDistance=r,t.solveLinearSystem=function(e){for(var t=e.length,o=0;o<t;o++){for(var n=o,r=Math.abs(e[o][o]),i=o+1;i<t;i++){var a=Math.abs(e[i][o]);a>r&&(r=a,n=i)}if(0===r)return null;var l=e[n];e[n]=e[o],e[o]=l;for(var s=o+1;s<t;s++)for(var u=-e[s][o]/e[o][o],c=o;c<t+1;c++)o==c?e[s][c]=0:e[s][c]+=u*e[o][c]}for(var f=new Array(t),d=t-1;d>=0;d--){f[d]=e[d][t]/e[d][d];for(var p=d-1;p>=0;p--)e[p][t]-=e[p][d]*f[d]}return f},t.toDegrees=function(e){return 180*e/Math.PI},t.toRadians=function(e){return e*Math.PI/180},t.modulo=function(e,t){var o=e%t;return o*t<0?o+t:o},t.lerp=function(e,t,o){return e+o*(t-e)};var n=o(0);t.cosh="cosh"in Math?Math.cosh:function(e){var t=Math.exp(e);return(t+1/t)/2};function r(e,t,o,n){var r=o-e,i=n-t;return r*r+i*i}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),r=function(e){var t=n.VERSION?n.VERSION.split("-")[0]:"latest";this.message="Assertion failed. See https://openlayers.org/en/"+t+"/doc/errors/#"+e+" for details.",this.code=e,this.name="AssertionError"};(0,n.inherits)(r,Error),t.default=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromString=void 0,t.asString=function(e){return"string"==typeof e?e:f(e)},t.asArray=function(e){return Array.isArray(e)?e:u(e)},t.normalize=c,t.toString=f;var n=o(0),r=o(26),i=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$/i;var l,s,u=t.fromString=(l={},s=0,function(e){var t=void 0;if(l.hasOwnProperty(e))t=l[e];else{if(s>=1024){var o=0;for(var r in l)0==(3&o++)&&(delete l[r],--s)}t=function(e){var t=void 0,o=void 0,r=void 0,l=void 0,s=void 0;if(a.exec(e)&&(e=function(e){var t=document.createElement("div");if(t.style.color=e,""!==t.style.color){document.body.appendChild(t);var o=getComputedStyle(t).color;return document.body.removeChild(t),o}return""}(e)),i.exec(e)){var u=e.length-1,f=void 0;f=u<=4?1:2;var d=4===u||8===u;t=parseInt(e.substr(1+0*f,f),16),o=parseInt(e.substr(1+1*f,f),16),r=parseInt(e.substr(1+2*f,f),16),l=d?parseInt(e.substr(1+3*f,f),16):255,1==f&&(t=(t<<4)+t,o=(o<<4)+o,r=(r<<4)+r,d&&(l=(l<<4)+l)),s=[t,o,r,l/255]}else 0==e.indexOf("rgba(")?c(s=e.slice(5,-1).split(",").map(Number)):0==e.indexOf("rgb(")?((s=e.slice(4,-1).split(",").map(Number)).push(1),c(s)):(0,n.assert)(!1,14);return s}(e),l[e]=t,++s}return t});function c(e){return e[0]=(0,r.clamp)(e[0]+.5|0,0,255),e[1]=(0,r.clamp)(e[1]+.5|0,0,255),e[2]=(0,r.clamp)(e[2]+.5|0,0,255),e[3]=(0,r.clamp)(e[3],0,1),e}function f(e){var t=e[0];t!=(0|t)&&(t=t+.5|0);var o=e[1];o!=(0|o)&&(o=o+.5|0);var n=e[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+t+","+o+","+n+","+(void 0===e[3]?1:e[3])+")"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContext=function(e,t){for(var o=n.length,r=0;r<o;++r)try{var i=e.getContext(n[r],t);if(i)return i}catch(e){}return null};t.ONE=1,t.SRC_ALPHA=770,t.COLOR_ATTACHMENT0=36064,t.COLOR_BUFFER_BIT=16384,t.TRIANGLES=4,t.TRIANGLE_STRIP=5,t.ONE_MINUS_SRC_ALPHA=771,t.ARRAY_BUFFER=34962,t.ELEMENT_ARRAY_BUFFER=34963,t.STREAM_DRAW=35040,t.STATIC_DRAW=35044,t.DYNAMIC_DRAW=35048,t.CULL_FACE=2884,t.BLEND=3042,t.STENCIL_TEST=2960,t.DEPTH_TEST=2929,t.SCISSOR_TEST=3089,t.UNSIGNED_BYTE=5121,t.UNSIGNED_SHORT=5123,t.UNSIGNED_INT=5125,t.FLOAT=5126,t.RGBA=6408,t.FRAGMENT_SHADER=35632,t.VERTEX_SHADER=35633,t.LINK_STATUS=35714,t.LINEAR=9729,t.TEXTURE_MAG_FILTER=10240,t.TEXTURE_MIN_FILTER=10241,t.TEXTURE_WRAP_S=10242,t.TEXTURE_WRAP_T=10243,t.TEXTURE_2D=3553,t.TEXTURE0=33984,t.CLAMP_TO_EDGE=33071,t.COMPILE_STATUS=35713,t.FRAMEBUFFER=36160;var n=["experimental-webgl","webgl","webkit-3d","moz-webgl"]},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),r=o(28),i=function(e){var t=e||{};this.color_=void 0!==t.color?t.color:null,this.checksum_=void 0};i.prototype.clone=function(){var e=this.getColor();return new i({color:e&&e.slice?e.slice():e||void 0})},i.prototype.getColor=function(){return this.color_},i.prototype.setColor=function(e){this.color_=e,this.checksum_=void 0},i.prototype.getChecksum=function(){return void 0===this.checksum_&&(this.color_ instanceof CanvasPattern||this.color_ instanceof CanvasGradient?this.checksum_=(0,n.getUid)(this.color_).toString():this.checksum_="f"+(this.color_?(0,r.asString)(this.color_):"-")),this.checksum_},t.default=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(o(30)),r=i(o(25));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e||{};this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.text_=t.text,this.textAlign_=t.textAlign,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new n.default({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:r.default.POINT,this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding};a.prototype.clone=function(){return new a({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:this.getScale(),text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0})},a.prototype.getOverflow=function(){return this.overflow_},a.prototype.getFont=function(){return this.font_},a.prototype.getMaxAngle=function(){return this.maxAngle_},a.prototype.getPlacement=function(){return this.placement_},a.prototype.getOffsetX=function(){return this.offsetX_},a.prototype.getOffsetY=function(){return this.offsetY_},a.prototype.getFill=function(){return this.fill_},a.prototype.getRotateWithView=function(){return this.rotateWithView_},a.prototype.getRotation=function(){return this.rotation_},a.prototype.getScale=function(){return this.scale_},a.prototype.getStroke=function(){return this.stroke_},a.prototype.getText=function(){return this.text_},a.prototype.getTextAlign=function(){return this.textAlign_},a.prototype.getTextBaseline=function(){return this.textBaseline_},a.prototype.getBackgroundFill=function(){return this.backgroundFill_},a.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},a.prototype.getPadding=function(){return this.padding_},a.prototype.setOverflow=function(e){this.overflow_=e},a.prototype.setFont=function(e){this.font_=e},a.prototype.setMaxAngle=function(e){this.maxAngle_=e},a.prototype.setOffsetX=function(e){this.offsetX_=e},a.prototype.setOffsetY=function(e){this.offsetY_=e},a.prototype.setPlacement=function(e){this.placement_=e},a.prototype.setFill=function(e){this.fill_=e},a.prototype.setRotation=function(e){this.rotation_=e},a.prototype.setScale=function(e){this.scale_=e},a.prototype.setStroke=function(e){this.stroke_=e},a.prototype.setText=function(e){this.text_=e},a.prototype.setTextAlign=function(e){this.textAlign_=e},a.prototype.setTextBaseline=function(e){this.textBaseline_=e},a.prototype.setBackgroundFill=function(e){this.backgroundFill_=e},a.prototype.setBackgroundStroke=function(e){this.backgroundStroke_=e},a.prototype.setPadding=function(e){this.padding_=e},t.default=a},function(e,t){e.exports=ol.style.Icon},function(e,t){e.exports=ol.style.Stroke},function(e,t){e.exports=ol.style.Fill},function(e,t){e.exports=ol.style.Style},function(e,t,o){"use strict";function n(e,t,o){return e*(1-o)+t*o}e.exports=n,n.number=n,n.vec2=function(e,t,o){return[n(e[0],t[0],o),n(e[1],t[1],o)]},n.color=function(e,t,o){return[n(e[0],t[0],o),n(e[1],t[1],o),n(e[2],t[2],o),n(e[3],t[3],o)]},n.array=function(e,t,o){return e.map(function(e,r){return n(e,t[r],o)})}},function(e,t,o){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":void 0===e?"undefined":n(e)}},function(e,t,o){"use strict";e.exports=function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];var r=!0,i=!1,a=void 0;try{for(var l,s=o[Symbol.iterator]();!(r=(l=s.next()).done);r=!0){var u=l.value;for(var c in u)e[c]=u[c]}}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return e}},function(e,t,o){"use strict";var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(e){return(e=Math.round(e))<0?0:e>255?255:e}function i(e){return e<0?0:e>1?1:e}function a(e){return"%"===e[e.length-1]?r(parseFloat(e)/100*255):r(parseInt(e))}function l(e){return"%"===e[e.length-1]?i(parseFloat(e)/100):i(parseFloat(e))}function s(e,t,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?e+(t-e)*o*6:2*o<1?t:3*o<2?e+(t-e)*(2/3-o)*6:e}try{t.parseCSSColor=function(e){var t,o=e.replace(/ /g,"").toLowerCase();if(o in n)return n[o].slice();if("#"===o[0])return 4===o.length?(t=parseInt(o.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===o.length&&(t=parseInt(o.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var i=o.indexOf("("),u=o.indexOf(")");if(-1!==i&&u+1===o.length){var c=o.substr(0,i),f=o.substr(i+1,u-(i+1)).split(","),d=1;switch(c){case"rgba":if(4!==f.length)return null;d=l(f.pop());case"rgb":return 3!==f.length?null:[a(f[0]),a(f[1]),a(f[2]),d];case"hsla":if(4!==f.length)return null;d=l(f.pop());case"hsl":if(3!==f.length)return null;var p=(parseFloat(f[0])%360+360)%360/360,g=l(f[1]),h=l(f[2]),m=h<=.5?h*(g+1):h+g-h*g,y=2*h-m;return[r(255*s(y,m,p+1/3)),r(255*s(y,m,p)),r(255*s(y,m,p-1/3)),d];default:return null}}return null}}catch(e){}},function(e,t,o){"use strict";var n=o(39).parseCSSColor;e.exports=function(e){if("string"==typeof e){var t=n(e);if(!t)return;return[t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3]]}return Array.isArray(e)?e:void 0}},function(e,t,o){"use strict";var n=.95047,r=1,i=1.08883,a=4/29,l=6/29,s=3*l*l,u=l*l*l,c=Math.PI/180,f=180/Math.PI;function d(e){return e>u?Math.pow(e,1/3):e/s+a}function p(e){return e>l?e*e*e:s*(e-a)}function g(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function h(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function m(e){var t=h(e[0]),o=h(e[1]),a=h(e[2]),l=d((.4124564*t+.3575761*o+.1804375*a)/n),s=d((.2126729*t+.7151522*o+.072175*a)/r);return[116*s-16,500*(l-s),200*(s-d((.0193339*t+.119192*o+.9503041*a)/i)),e[3]]}function y(e){var t=(e[0]+16)/116,o=isNaN(e[1])?t:t+e[1]/500,a=isNaN(e[2])?t:t-e[2]/200;return t=r*p(t),[g(3.2404542*(o=n*p(o))-1.5371385*t-.4985314*(a=i*p(a))),g(-.969266*o+1.8760108*t+.041556*a),g(.0556434*o-.2040259*t+1.0572252*a),e[3]]}e.exports={lab:{forward:m,reverse:y},hcl:{forward:function(e){var t=m(e),o=t[0],n=t[1],r=t[2],i=Math.atan2(r,n)*f;return[i<0?i+360:i,Math.sqrt(n*n+r*r),o,e[3]]},reverse:function(e){var t=e[0]*c,o=e[1];return y([e[2],Math.cos(t)*o,Math.sin(t)*o,e[3]])}}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.applyStyle=_,t.applyBackground=function(e,t){t.layers.some(function(t){if("background"==t.type)return T(e,t),!0})},t.apply=function(e,t){var o,n,r,i;o=n=r=i="",e instanceof f.default||(e=new f.default({target:e}));if("string"==typeof t){var a=t.match(M);a&&(n=a[1],o=a.length>2?a[2]:""),fetch(t,{credentials:"same-origin"}).then(function(e){return e.json()}).then(function(a){var l=document.createElement("A");l.href=t,i=l.pathname.split("/").slice(0,-1).join("/")+"/",r=t.substr(0,t.indexOf(i)),R(a,e,n,r,i,o)}).catch(function(e){throw console.error(e),new Error("Could not load "+t)})}else setTimeout(function(){R(t,e)},0);return e},t.getLayer=function(e,t){for(var o=e.getLayers().getArray(),n=0,r=o.length;n<r;++n)if(-1!==o[n].get("mapbox-layers").indexOf(t))return o[n]},t.getSource=function(e,t){for(var o=e.getLayers().getArray(),n=0,r=o.length;n<r;++n){var i=o[n].getSource();if(-1!==o[n].get("mapbox-source").indexOf(t))return i}};var r,i=k(o(4)),a=k(o(3)),l=k(o(2)),s=k(o(18)),u=o(17),c=o(16),f=k(o(15)),d=k(o(14)),p=k(o(13)),g=o(12),h=k(o(11)),m=k(o(10)),y=k(o(9)),v=k(o(8)),S=k(o(7)),b=k(o(6)),x=k(o(5));function k(e){return e&&e.__esModule?e:{default:e}}var w=["Open Sans Regular","Arial Regular"];function O(e){"layout"in e&&"text-field"in e.layout&&function e(t){var o,n;if(Array.isArray(t)){var i=s.default.getNames(),l=t.map(function(e){return(0,a.default)(e,1).split(" 1px ")[1].replace(/"/g,"")});for(o=0,n=l.length;o<n;++o){var u=l[o],c=t[o];if(-1!==i.indexOf(u)){if(r||(r=[]),-1==r.indexOf(c)){r.push(c);var f="https://fonts.googleapis.com/css?family="+u.replace(/ /g,"+");if(!document.querySelector('link[href="'+f+'"]')){var d=document.createElement("link");d.href=f,d.rel="stylesheet",document.getElementsByTagName("head")[0].appendChild(d)}}break}}}else{var p=t.stops;if(p)for(o=0,n=p.length;o<n;++o)e(p[o][1])}}(e.layout["text-font"]||w)}var M=/^(.*)(\?.*)$/;function C(e,t){return t&&0!=e.indexOf("http")&&(e=t+e),e}function A(e,t,o){var n=(e=C(e,t)).match(M);return n?n[1]+o+(n.length>2?n[2]:""):e+o}function _(e,t,o,i,a){return new Promise(function(s,u){var c,f,d;if("object"!=(void 0===t?"undefined":n(t))&&(t=JSON.parse(t)),8!=t.version&&u(new Error("glStyle version 8 required.")),t.sprite){var p=.5==(window.devicePixelRatio>=1.5?.5:1)?"@2x":"",g=A(t.sprite,i,p+".json");fetch(g,{credentials:"same-origin"}).then(function(e){return 200===e.status?e.json():""!==p?(p="",g=A(t.sprite,i,".json"),fetch(g,{credentials:"same-origin"}).then(function(e){return e.json()})):void 0}).then(function(e){if(void 0===e)throw"No sprites found.";c=e,f=A(t.sprite,i,p+".png"),h()}).catch(function(e){console.error(e),u(new Error("Sprites cannot be loaded from "+g))})}function h(){d||t.sprite&&!c||r&&!(r.length>0)?d&&e.setStyle(d):(d=(0,l.default)(e,t,o,a,c,f,r),s())}if(e instanceof y.default||e instanceof m.default)try{for(var v=t.layers,S=0,b=v.length;S<b;++S)("string"==typeof o&&v[S].source==o||o.indexOf(v[S].id)>=0)&&O(v[S]);h()}catch(e){setTimeout(function(){u(e)},0)}})}function T(e,t){function o(){var o=e.getTargetElement();if(o){var n=t.layout||{},r=t.paint||{},a=e.getView().getZoom();if("background-color"in r){var l=(0,i.default)(r["background-color"],{function:"interpolated",type:"color"})(a);Array.isArray(l)&&(l="rgba("+Math.round(255*l[0])+","+Math.round(255*l[1])+","+Math.round(255*l[2])+","+(l[3]?l[3]:1)+")"),o.style.backgroundColor=l}"background-opacity"in r&&(o.style.backgroundOpacity=(0,i.default)(r["background-opacity"],{function:"interpolated",type:"number"})(a)),"none"==n.visibility&&(o.style.backgroundColor="",o.style.backgroundOpacity="")}}e.getTargetElement()&&o(),e.on(["change:resolution","change:target"],o)}function E(e,t){var o;return e.some(function(e){if(e.id==t)return o=e.source,!0}),o}function R(e,t,o,n,r,i){var a=t.getView();"center"in e&&!a.getCenter()&&a.setCenter((0,u.fromLonLat)(e.center)),"zoom"in e&&void 0===a.getZoom()&&a.setZoom(e.zoom),a.getCenter()&&void 0!==a.getZoom()||a.fit(a.getProjection().getExtent(),{nearest:!0,size:t.getSize()}),e.sprite&&(0==e.sprite.indexOf("mapbox://")?e.sprite=o+"/sprite"+i:0!=e.sprite.indexOf("http")&&(e.sprite=(n?n+r:"")+e.sprite+i));var l,s,f,k,w,O,M,A,R=e.layers,P=new d.default,F=[];function L(o){if(F.length>0){t.addLayer(o);var n=function(){_(o,e,F,r).then(function(){o.setVisible(!0)},function(e){console.error(e)})};o.getSource()?n():o.once("change:source",n)}}for(var N=0,I=R.length;N<I;++N)if("background"==(l=R[N]).type)T(t,l);else{if((k=l.source||E(R,l.ref))!=f){L(w),F=[],s=e.sources[k],M=s.url;var B=s.tiles;if(M&&0==M.indexOf("mapbox://")&&(O=M.replace("mapbox://",""),B=["a","b","c","d"].map(function(e){return"https://"+e+".tiles.mapbox.com/v4/"+O+"/{z}/{x}/{y}."+("vector"==s.type?"vector.pbf":"png")+i})),"vector"==s.type)w=B?(A=void 0,A=(0,c.createXYZ)({tileSize:512,maxZoom:"maxzoom"in s?s.maxzoom:22,minZoom:s.minzoom}),new y.default({declutter:!0,maxResolution:A.getMinZoom()>0?A.getResolution(A.getMinZoom()):void 0,source:new b.default({attributions:s.attribution,format:new p.default,tileGrid:A,urls:B}),visible:!1,zIndex:N})):function(){var e=new y.default({declutter:!0,visible:!1,zIndex:N}),t=new v.default({url:M}),o=t.on("change",function(){if("ready"==t.getState()){for(var n=t.getTileJSON(),r=Array.isArray(n.tiles)?n.tiles:[n.tiles],i=0,a=r.length;i<a;++i){var l=r[i];0!=l.indexOf("http")&&(r[i]=s.url+l)}var u=t.getTileGrid();e.setSource(new b.default({attributions:t.getAttributions()||n.attribution,format:new p.default,tileGrid:(0,c.createXYZ)({minZoom:u.getMinZoom(),maxZoom:u.getMaxZoom(),tileSize:512}),urls:r})),u.getMinZoom()>0&&e.setMaxResolution(u.getResolution(u.getMinZoom())),(0,g.unByKey)(o)}});return e}();else if("raster"==s.type){var G;(G=s.tiles?new x.default({attributions:s.attribution,minZoom:s.minzoom,maxZoom:"maxzoom"in s?s.maxzoom:22,tileSize:s.tileSize||512,url:M,urls:s.tiles,crossOrigin:"anonymous"}):new v.default({url:M,crossOrigin:"anonymous"})).setTileLoadFunction(function(e,t){if(-1!=t.indexOf("{bbox-epsg-3857}")){var o=G.getTileGrid().getTileCoordExtent(e.getTileCoord());t=t.replace("{bbox-epsg-3857}",o.toString())}e.getImage().src=t}),w=new h.default({source:G,visible:!l.layout||"none"!==l.layout.visibility})}else if("geojson"==s.type){var D,j,z=s.data;"string"==typeof z?j=C(z,r):D=P.readFeatures(z,{featureProjection:"EPSG:3857"}),w=new m.default({source:new S.default({attributions:s.attribution,features:D,format:P,url:j}),visible:!1,zIndex:N})}f=k}F.push(l.id)}L(w),t.set("mapbox-style",e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=o(42),i=o(2),a=(n=i)&&n.__esModule?n:{default:n};t.default={apply:r.apply,applyBackground:r.applyBackground,applyStyle:r.applyStyle,stylefunction:a.default}}]).default;
//# sourceMappingURL=olms.js.map
{
"name": "ol-mapbox-style",
"version": "3.0.0-beta.5",
"version": "3.0.0-beta.6",
"description": "Create OpenLayers maps from Mapbox Style objects",

@@ -78,3 +78,3 @@ "main": "index.js",

"peerDependencies": {
"ol": "^5.0.0-beta.9"
"ol": ">=5.0.0-beta.11 <5.0.0-c"
},

@@ -102,3 +102,3 @@ "devDependencies": {

"nock": "^9.2.3",
"ol": "^5.0.0-beta.11",
"ol": ">=5.0.0-beta.11 <5.0.0-c",
"regenerator-runtime": "^0.11.1",

@@ -105,0 +105,0 @@ "should": "^11.2.1",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc