hi-ucs/front/public/leaflet/libs/openlayers/plugins/ol-mapbox-style/2.11.2/olms.js

12 lines
42 KiB
Vue

/*!
*
* ol-mapbox-style
* Copyright 2016-present Boundless Spatial
* Copyright© 2000-2018 SuperMap Software Co. Ltd
* github: https://github.com/boundlessgeo/ol-mapbox-style
* github: https://github.com/SuperMap/ol-mapbox-style
* license: BSD 2-Clause "Simplified" License
* version: v3.0.0-beta.7
*
*/
olms=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=35)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="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,n,o,f,p,y,m){if(!o){o=[];for(var O=78271.51696402048;o.length<21;O/=2)o.push(O)}if("string"==typeof t&&(t=JSON.parse(t)),8!=t.version)throw new Error("glStyle version 8 required.");if(p&&!y){var A=new Image;A.crossOrigin="anonymous",A.onload=function(){y=A,[A.width,A.height],e.changed()},A.src=p}var F=document.createElement("CANVAS").getContext("2d"),I={};function L(e,t,n){var o=n+","+t+","+e,r=I[o];if(!r){F.font=t;for(var a=F.measureText("M").width*n,i=e.split(" "),l="",s=[],u=0,c=i.length;u<c;++u){var d=i[u];F.measureText(l+d).width<=a?l+=(l?" ":"")+d:(l&&s.push(l),l=d)}l&&s.push(l),I[o]=r=s.join("\n")}return r}for(var G=(0,d.default)(t.layers),N={},D=[],B=void 0,z=0,j=G.length;z<j;++z){var E=G[z],Z=E.id;if("string"==typeof n&&E.source==n||-1!==n.indexOf(Z)){var K=E["source-layer"];B||(B=E.source);var J=N[K];J||(J=N[K]=[]),J.push({layer:E,index:z}),D.push(Z)}delete b[Z],delete M[Z]}var q={},H=[],V={},U=function(e,t){var n=e.getProperties();e.styleIds=e.styleIds||{};var d=N[n.layer];if(d){var p=o.indexOf(t);-1==p&&(p=Math.round((0,h.getZoomForResolution)(t,o)));for(var m=S[e.getGeometry().getType()],b={properties:n,type:m},O=-1,M=0,A=d.length;M<A;++M){var F=d[M],I=F.layer,G=I.id,D=I.layout||R,B=I.paint||R;if(!("none"===D.visibility||"minzoom"in I&&p<I.minzoom||"maxzoom"in I&&p>=I.maxzoom)){e.styleIds[p]=e.styleIds[p]||[];var z=I.filter,j=void 0,E=void 0;if(!z||C(G,z,b)){var Z=void 0,K=void 0,J=void 0,U=void 0,_=void 0,W=void 0,Y=F.index;if(3==m)if("fill-pattern"in B){var Q=x(G,B,"fill-pattern",p,n);if(Q&&(j=T(Q,n),y&&f&&f[j])){++O,-1===e.styleIds[p].indexOf(G)&&e.styleIds[p].push(G),(W=H[O])&&W.getFill()&&!W.getStroke()&&!W.getText()||(W=H[O]=new r.default({fill:new a.default})),J=W.getFill(),W.setZIndex(Y);var $=V[j];if(!$){var X=f[j],ee=document.createElement("canvas");ee.width=X.width,ee.height=X.height;var te=ee.getContext("2d");te.drawImage(y,X.x,X.y,X.width,X.height,0,0,X.width,X.height),$=te.createPattern(ee,"repeat"),V[j]=$}J.setColor($)}}else"fill-color"in B&&(K=x(G,B,"fill-opacity",p,n),(Z=P(x(G,B,"fill-color",p,n),K))&&(++O,-1===e.styleIds[p].indexOf(G)&&e.styleIds[p].push(G),(W=H[O])&&W.getFill()&&!W.getStroke()&&!W.getText()||(W=H[O]=new r.default({fill:new a.default})),(J=W.getFill()).setColor(Z),W.setZIndex(Y)),"fill-outline-color"in B?_=P(x(G,B,"fill-outline-color",p,n),K):"fill-antialias"in B&&(_=Z),_&&(++O,-1===e.styleIds[p].indexOf(G)&&e.styleIds[p].push(G),(W=H[O])&&W.getStroke()&&!W.getFill()&&!W.getText()||(W=H[O]=new r.default({stroke:new i.default})),(U=W.getStroke()).setLineCap(v["line-cap"]),U.setLineJoin(v["line-join"]),U.setMiterLimit(v["line-miter-limit"]),U.setColor(_),U.setWidth(1),U.setLineDash(null),W.setZIndex(Y)));1!=m&&function(){Z=!("line-pattern"in B)&&"line-color"in B?P(x(G,B,"line-color",p,n),x(G,B,"line-opacity",p,n)):void 0;var t=x(G,B,"line-width",p,n);Z&&t>0&&(++O,-1===e.styleIds[p].indexOf(G)&&e.styleIds[p].push(G),(W=H[O])&&W.getStroke()&&!W.getFill()&&!W.getText()||(W=H[O]=new r.default({stroke:new i.default})),(U=W.getStroke()).setLineCap(x(G,D,"line-cap",p,n)),U.setLineJoin(x(G,D,"line-join",p,n)),U.setMiterLimit(x(G,D,"line-miter-limit",p,n)),U.setColor(Z),U.setWidth(t),U.setLineDash(B["line-dasharray"]?x(G,B,"line-dasharray",p,n).map(function(e){return e*t}):null),W.setZIndex(Y))}();var ne=!1,oe=null,re=void 0;if((1==m||2==m)&&"icon-image"in D){var ae=x(G,D,"icon-image",p,n);if(ae){j=T(ae,n);var ie=void 0;if(y&&f&&f[j]){if(2==m){var le=e.getGeometry();if(le.getFlatMidpoint){var se=le.getExtent();Math.sqrt(Math.max(Math.pow((se[2]-se[0])/t,2),Math.pow((se[3]-se[1])/t,2)))>150&&(ie=new c.default(le.getFlatMidpoint()))}}if(2!==m||ie){++O,-1===e.styleIds[p].indexOf(G)&&e.styleIds[p].push(G),(W=H[O])&&W.getImage()&&!W.getFill()&&!W.getStroke()||(W=H[O]=new r.default),W.setGeometry(ie);var ue=x(G,D,"icon-size",p,n),ce=void 0!==B["icon-color"]?x(G,B,"icon-color",p,n):null,de=x(G,B,"icon-translate",p,n),fe=x(G,B,"icon-translate-anchor",p,n),pe=x(G,D,"icon-anchor",p,n),ge=x(G,D,"icon-offset",p,n),he=w(pe),ye=he.anchorOffset,me=he.iconAnchor,ve=void 0===me?pe:me,Se=j+"."+ue+"."+de+"."+fe+"."+ve+"."+ge;if(null!==ce&&(Se+="."+ce),!(E=q[Se])){var be=f[j],xe=document.createElement("canvas");xe.width=be.width,xe.height=be.height;var we=xe.getContext("2d");we.drawImage(y,be.x,be.y,be.width,be.height,0,0,be.width,be.height);var Oe=we.getImageData(0,0,xe.width,xe.height);if(null!==ce){Z=P(ce,1);for(var ke=0,Me=Oe.data.length;ke<Me;ke+=4)Oe.data[ke]=Z[0],Oe.data[ke+1]=Z[1],Oe.data[ke+2]=Z[2]}we.putImageData(Oe,0,0);var Ce=[de[0]/be.width,de[1]/be.height];E=q[Se]=new l.default({img:xe,anchorOrigin:ve,anchor:[ge[0]+ye[0]+Ce[0],ge[1]+ye[1]-Ce[1]],imgSize:[xe.width,xe.height],scale:ue/be.pixelRatio})}var Ae=x(G,D,"icon-rotate",p,n);Ae.indexOf&&0===Ae.indexOf("{")&&(Ae=360-T(Ae,n)),E.setRotation((0,h.deg2rad)(Ae)),E.setOpacity(x(G,B,"icon-opacity",p,n)),W.setImage(E),oe=W.getText(),W.setText(void 0),W.setZIndex(99999-Y),ne=!0,re=!1}else re=!0}}}if(1==m&&"circle-radius"in B){++O,-1===e.styleIds[p].indexOf(G)&&e.styleIds[p].push(G),(W=H[O])&&W.getImage()&&!W.getFill()&&!W.getStroke()||(W=H[O]=new r.default);var Pe=x(G,B,"circle-radius",p,n),Fe=x(G,B,"circle-stroke-color",p,n),Te=x(G,B,"circle-color",p,n),Re=x(G,B,"circle-opacity",p,n),Ie=x(G,B,"circle-stroke-width",p,n),Le=x(G,B,"circle-stroke-opacity",p,n);(E=q[Pe+"."+Fe+"."+Te+"."+Re+"."+Ie+"."+Le])||(E=new u.default({radius:Pe,stroke:0===Ie?void 0:new i.default({width:Ie,color:P(Fe,Le)}),fill:new a.default({color:P(Te,Re)})})),W.setImage(E),oe=W.getText(),W.setText(void 0),W.setGeometry(void 0),W.setZIndex(99999-Y),ne=!0}var Ge=void 0;if("text-field"in D)Ge=T(x(G,D,"text-field",p,n),n);if(Ge&&!re){ne||(++O,-1===e.styleIds[p].indexOf(G)&&e.styleIds[p].push(G),(W=H[O])&&W.getText()&&!W.getFill()&&!W.getStroke()||(W=H[O]=new r.default),W.setImage(void 0),W.setGeometry(void 0)),W.getText()||W.setText(oe||new s.default),oe=W.getText();var Ne=x(G,D,"text-size",p,n),De=(0,g.default)(k(x(G,D,"text-font",p,n)),Ne),Be=D["text-transform"];"uppercase"==Be?Ge=Ge.toUpperCase():"lowercase"==Be&&(Ge=Ge.toLowerCase());var ze=2==m?Ge:L(Ge,De,x(G,D,"text-max-width",p,n));oe.setText(ze),oe.setFont(De),oe.setRotation((0,h.deg2rad)(x(G,D,"text-rotate",p,n)));var je=x(G,D,"text-anchor",p,n),Ee=ne||1==m?"point":x(G,D,"symbol-placement",p,n);if(oe.setPlacement(Ee),"point"==Ee){var Ze="center";-1!==je.indexOf("left")?Ze="left":-1!==je.indexOf("right")&&(Ze="right"),oe.setTextAlign(Ze)}else oe.setTextAlign();var Ke="middle";0==je.indexOf("bottom")?Ke="bottom":0==je.indexOf("top")&&(Ke="top"),oe.setTextBaseline(Ke);var Je=x(G,D,"text-offset",p,n),qe=x(G,B,"text-translate",p,n);oe.setOffsetX(Je[0]*Ne+qe[0]),oe.setOffsetY(Je[1]*Ne+qe[1]),K=x(G,B,"text-opacity",p,n);var He=new a.default;He.setColor(P(x(G,B,"text-color",p,n),K)),oe.setFill(He);var Ve=P(x(G,B,"text-halo-color",p,n),K);if(Ve){var Ue=new i.default;Ue.setColor(Ve),Ue.setWidth(x(G,B,"text-halo-width",p,n)),oe.setStroke(Ue)}else oe.setStroke(void 0);W.setZIndex(99999-Y)}}}}return O>-1?(H.length=O+1,H):void 0}};return e.setStyle(U),e.set("mapbox-source",B),e.set("mapbox-layers",D),U};var r=y(n(27)),a=y(n(26)),i=y(n(25)),l=y(n(24)),s=y(n(23)),u=y(n(22)),c=y(n(21)),d=y(n(20)),f=y(n(2)),p=y(n(18)),g=y(n(1)),h=n(17);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-anchor":"interpolated","icon-offset":"interpolated","icon-translate":"interpolated","icon-translate-anchor":"interpolated","icon-size":"interpolated","icon-color":"interpolated","circle-radius":"interpolated","circle-opacity":"interpolated","circle-stroke-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-translate":[0,0],"text-opacity":1,"text-rotate":0,"text-size":16,"icon-opacity":1,"icon-rotate":0,"icon-offset":[0,0],"icon-translate":[0,0],"icon-translate-anchor":"map","icon-anchor":"center","icon-size":1,"circle-color":"#000000","circle-stroke-color":"#000000","circle-opacity":1,"circle-stroke-opacity":1,"circle-stroke-width":0},S={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},b={};function x(e,t,n,r,a){b[e]||(b[e]={});var i=b[e];if(!i[n]){var l=t[n];void 0===l&&(l=v[n]),i[n]=(0,f.default)(l,{function:m[n],type:-1!==n.indexOf("color")?"color":"object"==(void 0===l?"undefined":o(l))&&l.stops&&"number"==typeof l.stops[0][0]?"number":void 0})}return i[n](r,a)}function w(e){var t=[.5,.5];return["top-left","top-right","bottom-left","bottom-right"].includes(e)&&(t=[0,0]),"left"===e&&(e="top-left",t=[0,.5]),"right"===e&&(e="top-left",t=[1,.5]),"bottom"===e&&(e="top-left",t=[.5,1]),"top"===e&&(e="top-left",t=[.5,0]),{anchorOffset:t,iconAnchor:e}}var O={};function k(e,t){if(O[e])return O[e];if(t){for(var n=0,o=e.length;n<o;++n){var r=e[n];if(-1!=t.indexOf(r)){O[e]=r;break}}O[e]||(O[e]=e[e.length-1])}else O[e]=e[0];return O[e]}var M={};function C(e,t,n){return e in M||(M[e]=(0,p.default)(t)),M[e](n)}var A={};function P(e,t){if(e&&void 0!==t){var n=A[e];n||(A[e]=n={color:[255*e[0]/e[3],255*e[1]/e[3],255*e[2]/e[3],e[3]],opacity:e[3]}),(e=n.color)[3]=n.opacity*t,0===e[3]&&(e=void 0)}return e}var F=/^([^]*)\{(.*)\}([^]*)$/;function T(e,t){var n=void 0;do{if(n=e.match(F)){var o=t[n[2]]||"";e=n[1]+o+n[3]}}while(n);return e}var R={}},function(e,t,n){"use strict";var o={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 n=r[e];if(!n){var a=e.split(" "),i=a[a.length-1].toLowerCase(),l="normal",s="normal";for(var u in"normal"!=i&&"italic"!=i&&"oblique"!=i||(s=i,a.pop(),i=a[a.length-1].toLowerCase()),o)if(i==u||i==u.replace("-","")||i==u.replace("-"," ")){l=o[u],a.pop();break}"number"==typeof i&&(l=i);var c=a.join(" ").replace("Klokantech Noto Sans","Noto Sans");-1!==c.indexOf(" ")&&(c='"'+c+'"'),n=r[e]=[s,l,c]}return n[0]+" "+n[1]+" "+t+"px "+n[2]}},function(e,t,n){"use strict";var o="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=n(33),a=n(32),i=n(30),l=n(29),s=n(28);function u(e){return e}function c(e,t,n){return void 0!==e?e:void 0!==t?t:void 0!==n?n:void 0}function d(e,t,n,r,a){return c((void 0===n?"undefined":o(n))===a?r[n]:void 0,e.default,t.default)}function f(e,t,n){if("number"!==l(n))return c(e.default,t.default);var o=e.stops.length;if(1===o)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[o-1][0])return e.stops[o-1][1];var r=h(e.stops,n);return e.stops[r][1]}function p(e,t,n){var o=void 0!==e.base?e.base:1;if("number"!==l(n))return c(e.default,t.default);var r=e.stops.length;if(1===r)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[r-1][0])return e.stops[r-1][1];var a=h(e.stops,n),i=m(n,o,e.stops[a][0],e.stops[a+1][0]),d=e.stops[a][1],f=e.stops[a+1][1],p=s[t.type]||u;return"function"==typeof d?function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=d.apply(void 0,t),r=f.apply(void 0,t);if(void 0!==o&&void 0!==r)return p(o,r,i)}:p(d,f,i)}function g(e,t,n){return"color"===t.type?n=a(n):l(n)===t.type||"enum"===t.type&&t.values[n]||(n=void 0),c(n,e.default,t.default)}function h(e,t){for(var n=0,o=e.length-1,r=0,a=void 0,i=void 0;n<=o;){if(a=e[r=Math.floor((n+o)/2)][0],i=e[r+1][0],t===a||t>a&&t<i)return r;a<t?n=r+1:a>t&&(o=r-1)}return Math.max(r-1,0)}function y(e){return"object"===(void 0===e?"undefined":o(e))&&(e.stops||"identity"===e.type)}function m(e,t,n,o){var r=o-n,a=e-n;return 0===r?0:1===t?a/r:(Math.pow(t,a)-1)/(Math.pow(t,r)-1)}e.exports=function e(t,n){var l="color"===n.type,s=void 0;if(y(t)){var h=t.stops&&"object"===o(t.stops[0][0]),m=h||void 0!==t.property,v=h||!m,S=t.type||("interpolated"===n.function?"exponential":"interval");l&&((t=i({},t)).stops&&(t.stops=t.stops.map(function(e){return[e[0],a(e[1])]})),t.default?t.default=a(t.default):t.default=a(n.default));var b=void 0,x=void 0,w=void 0;if("exponential"===S)b=p;else if("interval"===S)b=f;else if("categorical"===S){b=d,x=Object.create(null);var O=!0,k=!1,M=void 0;try{for(var C,A=t.stops[Symbol.iterator]();!(O=(C=A.next()).done);O=!0){var P=C.value;x[P[0]]=P[1]}}catch(e){k=!0,M=e}finally{try{!O&&A.return&&A.return()}finally{if(k)throw M}}w=o(t.stops[0][0])}else{if("identity"!==S)throw new Error('Unknown function type "'+S+'"');b=g}var F=void 0;if(t.colorSpace&&"rgb"!==t.colorSpace){if(!r[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);var T=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],T.forward(t.stops[R][1])];F=T.reverse}else F=u;if(h){for(var I={},L=[],G=0;G<t.stops.length;G++){var N=t.stops[G],D=N[0].zoom;void 0===I[D]&&(I[D]={zoom:D,type:t.type,property:t.property,default:t.default,stops:[]},L.push(D)),I[D].stops.push([N[0].value,N[1]])}var B=[],z=!0,j=!1,E=void 0;try{for(var Z,K=L[Symbol.iterator]();!(z=(Z=K.next()).done);z=!0){var J=Z.value;B.push([I[J].zoom,e(I[J],n)])}}catch(e){j=!0,E=e}finally{try{!z&&K.return&&K.return()}finally{if(j)throw E}}(s=function(e,o){return F(p({stops:B,base:t.base},n,e)(e,o))}).isFeatureConstant=!1,s.isZoomConstant=!1}else v?((s=function(e){return F(b(t,n,e,x,w))}).isFeatureConstant=!0,s.isZoomConstant=!1):((s=function(e,o){var r=o[t.property];return void 0===r?c(t.default,n.default):F(b(t,n,r,x,w))}).isFeatureConstant=!1,s.isZoomConstant=!0)}else l&&t&&(t=a(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,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deg2rad=function(e){return e*Math.PI/180},t.getZoomForResolution=function(e,t){for(var n=0,o=t.length;n<o;++n){var r=t[n];if(r<e&&n+1<o){var a=t[n]/t[n+1];return n+Math.log(t[n]/e)/Math.log(a)}}return o-1}},function(e,t,n){"use strict";e.exports=function(e){return new Function("f","var p = (f && f.properties || {}); return "+r(e))};var o=["Unknown","Point","LineString","Polygon"];function r(e){if(!e)return"true";var t=e[0];return e.length<=1?"any"===t?"false":"true":"("+("=="===t?i(e[1],e[2],"===",!1):"!="===t?i(e[1],e[2],"!==",!1):"<"===t||">"===t||"<="===t||">="===t?i(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 a(e){return"$type"===e?"f.type":"$id"===e?"f.id":"p["+JSON.stringify(e)+"]"}function i(e,t,n,r){var i=a(e),l="$type"===e?o.indexOf(t):JSON.stringify(t);return(r?"typeof "+i+"=== typeof "+l+"&&":"")+i+n+l}function l(e,t){return e.map(r).join(t)}function s(e,t){"$type"===e&&(t=t.map(function(e){return o.indexOf(e)}));var n=JSON.stringify(t.sort(d)),r=a(e);return t.length<=200?n+".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+", "+n+",0,"+(t.length-1)+")"}function u(e){return"$id"===e?'"id" in f':JSON.stringify(e)+" in p"}function c(e){return"!("+e+")"}function d(e,t){return e<t?-1:e>t?1:0}},function(e,t,n){"use strict";e.exports=["type","source","source-layer","minzoom","maxzoom","filter","layout"]},function(e,t,n){"use strict";var o=n(19);function r(e,t){var n={};for(var r in e)"ref"!==r&&(n[r]=e[r]);return o.forEach(function(e){e in t&&(n[e]=t[e])}),n}e.exports=function(e){e=e.slice();for(var t=Object.create(null),n=0;n<e.length;n++)t[e[n].id]=e[n];for(var o=0;o<e.length;o++)"ref"in e[o]&&(e[o]=r(e[o],t[e[o].ref]));return e}},function(e,t){e.exports=ol.geom.Point},function(e,t){e.exports=ol.style.Circle},function(e,t){e.exports=ol.style.Text},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,n){"use strict";function o(e,t,n){return e*(1-n)+t*n}e.exports=o,o.number=o,o.vec2=function(e,t,n){return[o(e[0],t[0],n),o(e[1],t[1],n)]},o.color=function(e,t,n){return[o(e[0],t[0],n),o(e[1],t[1],n),o(e[2],t[2],n),o(e[3],t[3],n)]},o.array=function(e,t,n){return e.map(function(e,r){return o(e,t[r],n)})}},function(e,t,n){"use strict";var o="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":o(e)}},function(e,t,n){"use strict";e.exports=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=!0,a=!1,i=void 0;try{for(var l,s=n[Symbol.iterator]();!(r=(l=s.next()).done);r=!0){var u=l.value;for(var c in u)e[c]=u[c]}}catch(e){a=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(a)throw i}}return e}},function(e,t,n){"use strict";var o={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 a(e){return e<0?0:e>1?1:e}function i(e){return"%"===e[e.length-1]?r(parseFloat(e)/100*255):r(parseInt(e))}function l(e){return"%"===e[e.length-1]?a(parseFloat(e)/100):a(parseFloat(e))}function s(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}try{t.parseCSSColor=function(e){var t,n=e.replace(/ /g,"").toLowerCase();if(n in o)return o[n].slice();if("#"===n[0])return 4===n.length?(t=parseInt(n.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===n.length&&(t=parseInt(n.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var a=n.indexOf("("),u=n.indexOf(")");if(-1!==a&&u+1===n.length){var c=n.substr(0,a),d=n.substr(a+1,u-(a+1)).split(","),f=1;switch(c){case"rgba":if(4!==d.length)return null;f=l(d.pop());case"rgb":return 3!==d.length?null:[i(d[0]),i(d[1]),i(d[2]),f];case"hsla":if(4!==d.length)return null;f=l(d.pop());case"hsl":if(3!==d.length)return null;var p=(parseFloat(d[0])%360+360)%360/360,g=l(d[1]),h=l(d[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)),f];default:return null}}return null}}catch(e){}},function(e,t,n){"use strict";var o=n(31).parseCSSColor;e.exports=function(e){if("string"==typeof e){var t=o(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,n){"use strict";var o=.95047,r=1,a=1.08883,i=4/29,l=6/29,s=3*l*l,u=l*l*l,c=Math.PI/180,d=180/Math.PI;function f(e){return e>u?Math.pow(e,1/3):e/s+i}function p(e){return e>l?e*e*e:s*(e-i)}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]),n=h(e[1]),i=h(e[2]),l=f((.4124564*t+.3575761*n+.1804375*i)/o),s=f((.2126729*t+.7151522*n+.072175*i)/r);return[116*s-16,500*(l-s),200*(s-f((.0193339*t+.119192*n+.9503041*i)/a)),e[3]]}function m(e){var t=(e[0]+16)/116,n=isNaN(e[1])?t:t+e[1]/500,i=isNaN(e[2])?t:t-e[2]/200;return t=r*p(t),[g(3.2404542*(n=o*p(n))-1.5371385*t-.4985314*(i=a*p(i))),g(-.969266*n+1.8760108*t+.041556*i),g(.0556434*n-.2040259*t+1.0572252*i),e[3]]}e.exports={lab:{forward:y,reverse:m},hcl:{forward:function(e){var t=y(e),n=t[0],o=t[1],r=t[2],a=Math.atan2(r,o)*d;return[a<0?a+360:a,Math.sqrt(o*o+r*r),n,e[3]]},reverse:function(e){var t=e[0]*c,n=e[1];return m([e[2],Math.cos(t)*n,Math.sin(t)*n,e[3]])}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="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 F(e,t),!0})},t.apply=function(e,t){var n,o,r,a;n=o=r=a="",e instanceof d.default||(e=new d.default({target:e}));if("string"==typeof t){var i=t.match(M);i&&(o=i[1],n=i.length>2?i[2]:""),fetch(t,{credentials:"same-origin"}).then(function(e){return e.json()}).then(function(i){var l=document.createElement("A");l.href=t,a=l.pathname.split("/").slice(0,-1).join("/")+"/",r=t.substr(0,t.indexOf(a)),R(i,e,o,r,a,n)}).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 n=e.getLayers().getArray(),o=0,r=n.length;o<r;++o)if(-1!==n[o].get("mapbox-layers").indexOf(t))return n[o]},t.getSource=function(e,t){for(var n=e.getLayers().getArray(),o=0,r=n.length;o<r;++o){var a=n[o].getSource();if(-1!==n[o].get("mapbox-source").indexOf(t))return a}};var r,a=w(n(2)),i=w(n(1)),l=w(n(0)),s=w(n(16)),u=n(15),c=n(14),d=w(n(13)),f=w(n(12)),p=w(n(11)),g=n(10),h=w(n(9)),y=w(n(8)),m=w(n(7)),v=w(n(6)),S=w(n(5)),b=w(n(4)),x=w(n(3));function w(e){return e&&e.__esModule?e:{default:e}}var O=["Open Sans Regular","Arial Regular"];function k(e){"layout"in e&&"text-field"in e.layout&&function e(t){var n,o;if(Array.isArray(t)){var a=s.default.getNames(),l=t.map(function(e){return(0,i.default)(e,1).split(" 1px ")[1].replace(/"/g,"")});for(n=0,o=l.length;n<o;++n){var u=l[n],c=t[n];if(-1!==a.indexOf(u)){if(r||(r=[]),-1==r.indexOf(c)){r.push(c);var d="https://fonts.googleapis.com/css?family="+u.replace(/ /g,"+");if(!document.querySelector('link[href="'+d+'"]')){var f=document.createElement("link");f.href=d,f.rel="stylesheet",document.getElementsByTagName("head")[0].appendChild(f)}}break}}}else{var p=t.stops;if(p)for(n=0,o=p.length;n<o;++n)e(p[n][1])}}(e.layout["text-font"]||O)}var M=/^(.*)(\?.*)$/;function C(e,t){return t&&0!=e.indexOf("http")&&(e=t+e),e}function A(e,t,n){var o=(e=C(e,t)).match(M);return o?o[1]+n+(o.length>2?o[2]:""):e+n}function P(e,t,n,a,i){return new Promise(function(s,u){var c,d,f;if("object"!=(void 0===t?"undefined":o(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,a,p+".json");fetch(g,{credentials:"same-origin"}).then(function(e){return 200===e.status?e.json():""!==p?(p="",g=A(t.sprite,a,".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,d=A(t.sprite,a,p+".png"),h()}).catch(function(e){console.error(e),u(new Error("Sprites cannot be loaded from "+g))})}function h(){f||t.sprite&&!c||r&&!(r.length>0)?f&&e.setStyle(f):(f=(0,l.default)(e,t,n,i,c,d,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 n&&v[S].source==n||n.indexOf(v[S].id)>=0)&&k(v[S]);h()}catch(e){setTimeout(function(){u(e)},0)}})}function F(e,t){function n(){var n=e.getTargetElement();if(n){var o=t.layout||{},r=t.paint||{},i=e.getView().getZoom();if("background-color"in r){var l=(0,a.default)(r["background-color"],{function:"interpolated",type:"color"})(i);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)+")"),n.style.backgroundColor=l}"background-opacity"in r&&(n.style.backgroundOpacity=(0,a.default)(r["background-opacity"],{function:"interpolated",type:"number"})(i)),"none"==o.visibility&&(n.style.backgroundColor="",n.style.backgroundOpacity="")}}e.getTargetElement()&&n(),e.on(["change:resolution","change:target"],n)}function T(e,t){var n;return e.some(function(e){if(e.id==t)return n=e.source,!0}),n}function R(e,t,n,o,r,a){var i=t.getView();"center"in e&&!i.getCenter()&&i.setCenter((0,u.fromLonLat)(e.center)),"zoom"in e&&void 0===i.getZoom()&&i.setZoom(e.zoom),i.getCenter()&&void 0!==i.getZoom()||i.fit(i.getProjection().getExtent(),{nearest:!0,size:t.getSize()}),e.sprite&&(0==e.sprite.indexOf("mapbox://")?e.sprite=n+"/sprite"+a:0!=e.sprite.indexOf("http")&&(e.sprite=(o?o+r:"")+e.sprite+a));var l,s,d,w,O,k,M,A,R=e.layers,I=new f.default,L=[];function G(n){if(L.length>0){t.addLayer(n);var o=function(){P(n,e,L,r).then(function(){n.setVisible(!0)},function(e){console.error(e)})};n.getSource()?o():n.once("change:source",o)}}for(var N=0,D=R.length;N<D;++N)if("background"==(l=R[N]).type)F(t,l);else{if((w=l.source||T(R,l.ref))!=d){G(O),L=[],s=e.sources[w],M=s.url;var B=s.tiles;if(M&&0==M.indexOf("mapbox://")&&(k=M.replace("mapbox://",""),B=["a","b","c","d"].map(function(e){return"https://"+e+".tiles.mapbox.com/v4/"+k+"/{z}/{x}/{y}."+("vector"==s.type?"vector.pbf":"png")+a})),"vector"==s.type)O=B?(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:B}),visible:!1,zIndex:N})):function(){var e=new m.default({declutter:!0,visible:!1,zIndex:N}),t=new v.default({url:M}),n=t.on("change",function(){if("ready"==t.getState()){for(var o=t.getTileJSON(),r=Array.isArray(o.tiles)?o.tiles:[o.tiles],a=0,i=r.length;a<i;++a){var l=r[a];0!=l.indexOf("http")&&(r[a]=s.url+l)}var u=t.getTileGrid();e.setSource(new b.default({attributions:t.getAttributions()||o.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)(n)}});return e}();else if("raster"==s.type){var z;(z=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 n=z.getTileGrid().getTileCoordExtent(e.getTileCoord());t=t.replace("{bbox-epsg-3857}",n.toString())}e.getImage().src=t}),O=new h.default({source:z,visible:!l.layout||"none"!==l.layout.visibility})}else if("geojson"==s.type){var j,E,Z=s.data;"string"==typeof Z?E=C(Z,r):j=I.readFeatures(Z,{featureProjection:"EPSG:3857"}),O=new y.default({source:new S.default({attributions:s.attribution,features:j,format:I,url:E}),visible:!1,zIndex:N})}d=w}L.push(l.id)}G(O),t.set("mapbox-style",e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(34),a=n(0),i=(o=a)&&o.__esModule?o:{default:o};t.default={apply:r.apply,applyBackground:r.applyBackground,applyStyle:r.applyStyle,stylefunction:i.default}}]).default;